diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f228904 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,75 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + rust: + name: Rust checks + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Build frontend + run: npm ci && npm run build + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - name: Check formatting + run: cargo fmt --check + + - name: Lint + run: cargo clippy --all-targets -- -D warnings + + - name: Test + run: cargo test --all-targets + + msrv: + name: Rust 1.88 compatibility + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Build frontend + run: npm ci && npm run build + + - name: Install minimum supported Rust + uses: dtolnay/rust-toolchain@1.88.0 + + - name: Check locked dependency graph + run: cargo check --locked + + frontend: + name: Frontend + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Type-check and build + run: npm ci && npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59ef538..728fba7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,82 +2,73 @@ name: Release on: push: - tags: ['v*'] + tags: ["v*"] permissions: contents: write jobs: - build: + publish: + name: Build ${{ matrix.platform }} strategy: + fail-fast: false matrix: include: - - os: windows-latest - target: x86_64-pc-windows-msvc - artifact: tglock.exe - - os: macos-latest - target: x86_64-apple-darwin - artifact: tglock-macos-x64 - - os: macos-latest - target: aarch64-apple-darwin - artifact: tglock-macos-arm64 - - os: ubuntu-latest - target: x86_64-unknown-linux-gnu - artifact: tglock-linux-x64 + - platform: macOS universal + os: macos-14 + args: --target universal-apple-darwin + rust-targets: aarch64-apple-darwin,x86_64-apple-darwin + - platform: Windows x64 + os: windows-latest + args: --target x86_64-pc-windows-msvc + rust-targets: x86_64-pc-windows-msvc + - platform: Linux x64 + os: ubuntu-22.04 + args: --target x86_64-unknown-linux-gnu + rust-targets: x86_64-unknown-linux-gnu runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - name: Install Linux desktop dependencies + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y \ + libwebkit2gtk-4.1-dev \ + libappindicator3-dev \ + librsvg2-dev \ + patchelf + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - targets: ${{ matrix.target }} + targets: ${{ matrix.rust-targets }} - - name: Build - run: cargo build --release --target ${{ matrix.target }} + - name: Install frontend dependencies + run: npm ci - - name: Rename (Unix) - if: runner.os != 'Windows' - run: cp target/${{ matrix.target }}/release/tglock ${{ matrix.artifact }} - - - name: Rename (Windows) - if: runner.os == 'Windows' - run: copy target\${{ matrix.target }}\release\tglock.exe ${{ matrix.artifact }} - - - name: Upload - uses: actions/upload-artifact@v4 + - name: Build and publish release + uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: ${{ matrix.artifact }} - path: ${{ matrix.artifact }} + tagName: v__VERSION__ + releaseName: TGLock v__VERSION__ + releaseBody: | + Новый TGLock: адаптивный MTProto/WebSocket-транспорт и полностью обновлённый интерфейс на Tauri 2. - release: - needs: build - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v4 - - - name: Create Release - uses: softprops/action-gh-release@v2 - with: - generate_release_notes: true - files: | - tglock.exe/tglock.exe - tglock-macos-x64/tglock-macos-x64 - tglock-macos-arm64/tglock-macos-arm64 - tglock-linux-x64/tglock-linux-x64 - body: | - ## TGLock ${{ github.ref_name }} - - Обход блокировки Telegram через WebSocket-туннель. Один клик. - - | Файл | Платформа | - |---|---| - | `tglock.exe` | Windows x64 | - | `tglock-macos-x64` | macOS Intel | - | `tglock-macos-arm64` | macOS Apple Silicon | - | `tglock-linux-x64` | Linux x64 | - - **[by sonic VPN](https://t.me/bysonicvpn_bot)** — полный обход блокировок для всех приложений + - macOS: скачайте универсальный `.dmg` или `.app.tar.gz` + - Windows: скачайте `.exe` установщик + - Linux: скачайте `.AppImage` или `.deb` + releaseDraft: false + prerelease: true + args: ${{ matrix.args }} diff --git a/.gitignore b/.gitignore index 1a1b997..1eba73c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ /target +/dist +/dist-ui +/node_modules +/gen /tools -Cargo.lock *.zip .claude/ diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..998a7af --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,4787 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aes" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", +] + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "atk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b" +dependencies = [ + "atk-sys", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "brotli" +version = "8.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.13.1", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "camino" +version = "1.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 2.0.19", +] + +[[package]] +name = "cargo_toml" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" +dependencies = [ + "serde", + "toml 0.9.12+spec-1.1.0", +] + +[[package]] +name = "cc" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5add81bb678e6cb321aff7fa0dc7689ad82b112dbc032cea19f91d6b8e3582b9" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[package]] +name = "cfg-expr" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" +dependencies = [ + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" +dependencies = [ + "bitflags 2.13.1", + "core-foundation", + "core-graphics-types", + "foreign-types 0.5.0", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.1", + "core-foundation", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d85363c37faeca707aef026efa9f3b34d077bce547e48f770770625c6013679e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +version = "0.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf", + "smallvec", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "ctor" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98" +dependencies = [ + "ctor-proc-macro", + "dtor", +] + +[[package]] +name = "ctor-proc-macro" +version = "0.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1" + +[[package]] +name = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher", +] + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.119", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "data-encoding" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4ae5f15dda3c708c0ade84bfee31ccab44a3da4f88015ed22f63732abe300c8" + +[[package]] +name = "dbus" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "serde_core", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.1", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "dlopen2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "dom_query" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89" +dependencies = [ + "bit-set", + "cssparser", + "foldhash", + "html5ever", + "precomputed-hash", + "selectors", + "tendril", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +dependencies = [ + "serde", +] + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dtor" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4" +dependencies = [ + "dtor-proc-macro", +] + +[[package]] +name = "dtor-proc-macro" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5" + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "embed-resource" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbfdaacccebec3b28e4866b8973543c7647797db5ada1bdab552e48fe665fbbd" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.4+spec-1.1.0", + "vswhom", + "winreg", +] + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "erased-serde" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared 0.1.1", +] + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared 0.3.1", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7" + +[[package]] +name = "futures-executor" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6754879cc9f2c66f88c6e5c35344bb0bdb0708b0352b1201815667c7eabc7458" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a" + +[[package]] +name = "futures-macro" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "futures-sink" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307" + +[[package]] +name = "futures-task" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109" + +[[package]] +name = "futures-util" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.13.1", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "futures-util", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "memchr", + "once_cell", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "glib-macros" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc" +dependencies = [ + "heck 0.4.1", + "proc-macro-crate 2.0.2", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2" +dependencies = [ + "log", + "markup5ever", +] + +[[package]] +name = "http" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.58.0", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371" +dependencies = [ + "byteorder", + "png 0.17.16", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + +[[package]] +name = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "generic-array", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys 0.3.1", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "js-sys" +version = "0.3.103" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[package]] +name = "jsonptr" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.13.1", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.189" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libredox" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c943259e342f1e06ff2da7a83eabdfe7f92ce10262688dbf1895ff0b3e6e4652" +dependencies = [ + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" + +[[package]] +name = "markup5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862" +dependencies = [ + "log", + "tendril", + "web_atoms", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.19.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.19", + "windows-sys 0.61.2", +] + +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.1", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.1", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.1", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.1", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.1", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-exception-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a" +dependencies = [ + "cc", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.1", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.13.1", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-web-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "open" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0b3d059e795d52b8a72fef45658620edd4d9c359b338564aa14391ffa511ed5" +dependencies = [ + "is-wsl", + "libc", +] + +[[package]] +name = "openssl" +version = "0.10.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45" +dependencies = [ + "bitflags 2.13.1", + "cfg-if", + "foreign-types 0.3.2", + "libc", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "openssl-sys" +version = "0.9.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkg-config" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" + +[[package]] +name = "plist" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da1d65da6dd5d1e44199ac0f58712d241c0f439f80adea8924d832384087f85" +dependencies = [ + "base64 0.22.1", + "indexmap 2.14.0", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.1", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.13+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22f6172bdec972074665ed81ed53b71da00bfc44b65a753cfde883ec4c702a1a" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.1", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.19", +] + +[[package]] +name = "ref-cast" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216e8f773d7923bcba9ceb86a86c93cabb3903a11872fc3f138c49630e50b96d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9283685feec7d69af75fb0e858d5e7378f33fe4fc699383b2916ab9273e03c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "reqwest" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.13.1", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "indexmap 1.9.3", + "schemars_derive", + "serde", + "serde_json", + "url", + "uuid", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.119", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.13.1", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "selectors" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c" +dependencies = [ + "bitflags 2.13.1", + "cssparser", + "derive_more", + "log", + "new_debug_unreachable", + "phf", + "phf_codegen", + "precomputed-hash", + "rustc-hash", + "servo_arc", + "smallvec", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "serde_json" +version = "1.0.151" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a5c54c7310e7b8b9577c286d7e399ddd876c3e12b3ed917a8aabc4b96e9e8c" +dependencies = [ + "base64 0.22.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "schemars 0.9.0", + "schemars 1.2.2", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84d57bc0c8b9a17920c178daa6bb924850d54a9c97ab45194bb8c17ad66bb660" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "servo_arc" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha1" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "siphasher" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "bytemuck", + "js-sys", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "redox_syscall", + "tracing", + "wasm-bindgen", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "string_cache" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "swift-rs" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7" +dependencies = [ + "base64 0.21.7", + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml 0.8.2", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.35.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9" +dependencies = [ + "bitflags 2.13.1", + "block2", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dbus", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "libc", + "log", + "ndk", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "once_cell", + "parking_lot", + "percent-encoding", + "raw-window-handle", + "tao-macros", + "unicode-segmentation", + "url", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "667b20e2726d572dea2de7370da16e188eb06008faf9a92fab7cdc46791190b5" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs", + "dunce", + "embed_plist", + "getrandom 0.3.4", + "glob", + "gtk", + "heck 0.5.0", + "http", + "jni", + "libc", + "log", + "mime", + "muda", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "plist", + "raw-window-handle", + "reqwest", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.19", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc9ce40b16101cb6ea63d3e221567affd1c3a9205f95d7bc574941a10636b632" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "glob", + "heck 0.5.0", + "json-patch", + "schemars 0.8.22", + "semver", + "serde", + "serde_json", + "tauri-utils", + "tauri-winres", + "walkdir", +] + +[[package]] +name = "tauri-codegen" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08279169ff42f8fc45a1dbc9dcae888893ba95288142e5880c59b93a26d2cfc5" +dependencies = [ + "base64 0.22.1", + "brotli", + "ico", + "json-patch", + "plist", + "png 0.17.16", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.119", + "tauri-utils", + "thiserror 2.0.19", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8b394794f399a421811d06966343e7933fcae92d59f5180b9388d1174497a45" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-runtime" +version = "2.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0b4bc95aed361b0019067d189a1174a603d460d0f6c72606512d59fc9c12ec8" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.19", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e6fac707727b7a2f48e4ded90976324267371073edbb415ffb73bb0458d203f" +dependencies = [ + "gtk", + "http", + "jni", + "log", + "objc2", + "objc2-app-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e176a18e67764923c4f1ce66f25ae4abe5f688384d5eb1a0fa6c77f3d90f887" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata", + "ctor", + "dom_query", + "dunce", + "glob", + "http", + "infer", + "json-patch", + "log", + "memchr", + "phf", + "plist", + "proc-macro2", + "quote", + "regex", + "schemars 0.8.22", + "semver", + "serde", + "serde-untagged", + "serde_json", + "serde_with", + "swift-rs", + "thiserror 2.0.19", + "toml 1.1.4+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6" +dependencies = [ + "dunce", + "embed-resource", + "toml 1.1.4+spec-1.1.0", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08" +dependencies = [ + "new_debug_unreachable", +] + +[[package]] +name = "tglock" +version = "2.0.0-beta.1" +dependencies = [ + "aes", + "cipher", + "ctr", + "futures-util", + "native-tls", + "open", + "rand", + "serde", + "serde_json", + "sha2", + "tauri", + "tauri-build", + "tokio", + "tokio-tungstenite", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9" +dependencies = [ + "thiserror-impl 2.0.19", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "time" +version = "0.3.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e1d5e639ff6bab73cb6885cc7e7b1de96c3f32c68ec55f3952614bec1092244" +dependencies = [ + "deranged", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "time-macros" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f" +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 = "tokio" +version = "1.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6328af13490e73a9b4694030fafd93f8c8c6a9dede33e821c3fc63eddf8042ba" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edc5f74e248dc973e0dbb7b74c7e0d6fcc301c694ff50049504004ef4d0cdcd9" +dependencies = [ + "futures-util", + "log", + "native-tls", + "tokio", + "tokio-native-tls", + "tungstenite", +] + +[[package]] +name = "tokio-util" +version = "0.7.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml" +version = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml" +version = "1.1.4+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3aace63f4bbcdfc2c965b059de67119c89c4017a70d633be6c104910f67056f5" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 1.0.4", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_datetime" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap 2.14.0", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.13+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6975367e4d2ef766d86af01ffad14b622fecc8d4357a998fbc4deb6e9bacaf9b" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.4", +] + +[[package]] +name = "toml_parser" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +dependencies = [ + "winnow 1.0.4", +] + +[[package]] +name = "toml_writer" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.1", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tray-icon" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "045979e3f037cd18ad1cb2a419dfda133c5c29c9f3453370079f2255d46c257e" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.19", + "windows-sys 0.61.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "tungstenite" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18e5b8366ee7a95b16d32197d0b2604b43a0be89dc5fac9f8e96ccafbaedda8a" +dependencies = [ + "byteorder", + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "native-tls", + "rand", + "sha1", + "thiserror 1.0.69", + "utf-8", +] + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "unic-char-property" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221" +dependencies = [ + "unic-char-range", +] + +[[package]] +name = "unic-char-range" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc" + +[[package]] +name = "unic-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc" + +[[package]] +name = "unic-ucd-ident" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987" +dependencies = [ + "unic-char-property", + "unic-char-range", + "unic-ucd-version", +] + +[[package]] +name = "unic-ucd-version" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4" +dependencies = [ + "unic-common", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlpattern" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" +dependencies = [ + "regex", + "serde", + "unic-ucd-ident", + "url", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf3923a6f5c4c6382e0b653c4117f48d631ea17f38ed86e2a828e6f7412f5239" +dependencies = [ + "getrandom 0.4.3", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.119", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web-sys" +version = "0.3.103" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "075474b12bcb3d2e3d4546580e9de478eeeead668a1761e2a8860c836b7ef297" +dependencies = [ + "phf", + "phf_codegen", + "string_cache", + "string_cache_codegen", +] + +[[package]] +name = "webkit2gtk" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793" +dependencies = [ + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webview2-com" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-core 0.61.2", + "windows-implement 0.60.2", + "windows-interface 0.59.3", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "webview2-com-sys" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c" +dependencies = [ + "thiserror 2.0.19", + "windows", + "windows-core 0.61.2", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "window-vibrancy" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c" +dependencies = [ + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "raw-window-handle", + "windows-sys 0.59.0", + "windows-version", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections", + "windows-core 0.61.2", + "windows-future", + "windows-link 0.1.3", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result 0.2.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" + +[[package]] +name = "winnow" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.55.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" +dependencies = [ + "cfg-if", + "windows-sys 0.59.0", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "wry" +version = "0.55.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514" +dependencies = [ + "base64 0.22.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs", + "dom_query", + "dpi", + "dunce", + "gdkx11", + "gtk", + "http", + "javascriptcore-rs", + "jni", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.19", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5a105cd7b140f6eeec8acff2ea38135d3cab283ada58540f629fe51e46696eb" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fe976fb70c78cd64cccfe3a6fc142244e8a77b70959b30faf9d0ac37ee228eb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/Cargo.toml b/Cargo.toml index 5a861a3..dbf183b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,22 +1,29 @@ [package] name = "tglock" -version = "1.0.0" +version = "2.0.0-beta.1" edition = "2021" +rust-version = "1.88" description = "Telegram unblock via local WebSocket tunnel" license = "MIT" [dependencies] -eframe = "0.31" -egui = "0.31" -tokio = { version = "1", features = ["rt-multi-thread", "net", "io-util", "time", "macros"] } +tauri = { version = "2", features = [] } +serde = { version = "1", features = ["derive"] } +serde_json = "1" +tokio = { version = "1", features = ["rt-multi-thread", "net", "io-util", "time", "macros", "sync"] } tokio-tungstenite = { version = "0.24", features = ["native-tls"] } native-tls = "0.2" futures-util = "0.3" aes = "0.8" ctr = "0.9" cipher = "0.4" +sha2 = "0.10" +rand = "0.8" open = "5" +[build-dependencies] +tauri-build = { version = "2", features = [] } + [[bin]] name = "tglock" path = "src/main.rs" diff --git a/HABR.md b/HABR.md index 5e54c33..86cd88e 100644 --- a/HABR.md +++ b/HABR.md @@ -107,7 +107,7 @@ v1 использовала: - `taskkill` для остановки процессов - `ipconfig /flushdns` -Ни одна из этих вещей не нужна для WebSocket-прокси. DNS менять не надо — `web.telegram.org` резолвится нормально. Шрифты — egui использует встроенные. Весь платформо-специфичный код был мусором. +Ни одна из этих вещей не нужна для WebSocket-прокси. DNS менять не надо — `web.telegram.org` резолвится нормально. Новый интерфейс работает в нативной оболочке Tauri 2 и использует системную типографику. Весь старый платформо-специфичный код был мусором. **v2: 0 строк платформо-специфичного кода.** Один и тот же бинарник компилируется на Windows, macOS и Linux без единого `#[cfg(target_os)]`. @@ -121,7 +121,7 @@ v1 использовала: TGLock v2: скачал бинарник, запустил, нажал кнопку. Всё. Никакого `brew`, никакого `sudo`, никаких конфигов. -На Apple Silicon (M1–M4) — нативный ARM-бинарник, ~6 МБ. На Intel-маках — x86_64 билд. Оба собираются автоматически в GitHub Actions. +Для macOS собирается единое universal-приложение: один пакет работает и на Apple Silicon, и на Intel. Сборка выполняется автоматически в GitHub Actions. ### Gatekeeper @@ -190,7 +190,7 @@ TcpListener (0.0.0.0 | 127.0.0.1 : port) ### main.rs (~190 строк) -GUI на egui. Тёмная тема (GitHub Dark). Статистика в реальном времени: активные соединения, WS-туннели, текущий DC, аптайм. +GUI на Tauri 2 с TypeScript-интерфейсом. Настройки и диагностика открываются как внутренние страницы одного окна; статистика в реальном времени показывает активные соединения, WS-туннели, текущий DC и аптайм. Кнопка «Настроить автоматически» — открывает Telegram через `tg://socks?server=...&port=...`. Один клик до рабочего Telegram. diff --git a/README.md b/README.md index a6f6359..3167ea7 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,11 @@ -> **Telegram стал тормозить или перестал открываться?** Запусти TGLock — и мессенджер снова работает. Не нужны VPN, прокси-серверы, абонентская плата или регистрация. Один бинарник на 6 МБ. +> **Telegram стал тормозить или перестал открываться?** Запусти TGLock — и мессенджер снова работает. Не нужны VPN, прокси-серверы, абонентская плата или регистрация. + +

+ Новый интерфейс TGLock +

--- @@ -72,26 +76,24 @@ TGLock — это **локальный SOCKS5-прокси** на твоём к | Платформа | Файл | Размер | |---|---|---| -| **Windows 10/11** (x64) | `tglock.exe` | ~6 МБ | -| **macOS Apple Silicon** (M1–M4) | `tglock-macos-arm64` | ~6 МБ | -| **macOS Intel** | `tglock-macos-x64` | ~6 МБ | -| **Linux** (x86_64) | `tglock-linux-x64` | ~6 МБ | +| **Windows 10/11** (x64) | `.exe` installer | | +| **macOS** (Apple Silicon + Intel) | universal `.dmg` | | +| **Linux** (x86_64) | `.AppImage` / `.deb` | | -> **🍎 macOS:** после скачивания запусти в Терминале: +> **🍎 macOS:** пока сборка не нотарифицирована Apple, при первом запуске может понадобиться: > ```bash -> xattr -cr ~/Downloads/tglock-macos-arm64 -> chmod +x ~/Downloads/tglock-macos-arm64 +> xattr -cr /Applications/TGLock.app > ``` -> Это снимает блокировку Gatekeeper «приложение не проверено». Альтернатива — подписать билд Developer ID за $99/год, что для бесплатного open-source перебор. +> Это снимает карантин Gatekeeper с приложения, скачанного из GitHub. --- ## 🚀 Как пользоваться -1. **Скачай и запусти** бинарник для своей системы -2. Нажми **«ПОДКЛЮЧИТЬ»** в окне приложения -3. Нажми **«Настроить автоматически»** → в Telegram появится диалог «Подключить SOCKS5-прокси?» → жми **«Подключить»** -4. ✅ **Telegram работает.** Можно сворачивать TGLock — он живёт в фоне. +1. **Скачай и запусти** приложение для своей системы. +2. Нажми **«Включить защиту»**. +3. TGLock откроет Telegram и предложит подключить локальный MTProto-прокси. +4. ✅ **Telegram работает.** Окно TGLock можно свернуть. ### Ручная настройка (если автоматическая не сработала) @@ -145,7 +147,7 @@ Telegram Desktop / mobile (через LAN) | Нужен сервер / подписка | ❌ | ❌ | ✅ ($) | **❌** | | Только Telegram | ❌ | ❌ | ❌ | **✅** | | LAN-шаринг | ❌ | сложно | ✅ | **✅ (галочка)** | -| Размер | ~200 КБ | ~5 МБ | ~80 МБ | **~6 МБ** | +| Размер | ~200 КБ | ~5 МБ | ~80 МБ | **компактное desktop-приложение** | | Цена | 0 ₽ | 0 ₽ | $3–10/мес | **0 ₽** | > **⚠ Когда TGLock не подойдёт:** если заблокирован не только Telegram, а ещё YouTube, Discord, Instagram, ChatGPT, Spotify — нужен полноценный VPN. Тут поможет **[🌹 RoseVPN](https://t.me/rosevpnru_bot)** (см. блок ниже). @@ -243,13 +245,12 @@ chmod +x ~/Downloads/tglock-macos-arm64 | Технология | Зачем | |---|---| | **Rust** | Один бинарник, нативная скорость, без runtime-зависимостей | -| **egui** (`eframe`) | Кроссплатформенный GUI — без браузера, без Electron, без Qt | +| **Tauri 2** | Нативная кроссплатформенная оболочка с современным web-интерфейсом | +| **TypeScript + Vite** | Интерфейс, внутренняя навигация и строгая типизация | | **tokio** | Async I/O для тысяч одновременных соединений | | **tokio-tungstenite** | WebSocket-клиент с TLS поверх `native-tls` | | **aes** + **ctr** | Расшифровка MTProto `obfuscated2` init-пакета | -**Размер бинарника:** ~6 МБ. **Памяти в простое:** ~15 МБ. - --- ## 🏗 Сборка из исходников @@ -257,7 +258,8 @@ chmod +x ~/Downloads/tglock-macos-arm64 ```bash git clone https://github.com/by-sonic/tglock.git cd tglock -cargo build --release +npm ci +npm run tauri build ``` Результат — `target/release/tglock` (или `tglock.exe` на Windows). Требуется Rust **stable 1.75+**. diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..d860e1e --- /dev/null +++ b/build.rs @@ -0,0 +1,3 @@ +fn main() { + tauri_build::build() +} diff --git a/capabilities/default.json b/capabilities/default.json new file mode 100644 index 0000000..537e36a --- /dev/null +++ b/capabilities/default.json @@ -0,0 +1,7 @@ +{ + "$schema": "../gen/schemas/desktop-schema.json", + "identifier": "default", + "description": "TGLock desktop window", + "windows": ["main"], + "permissions": ["core:default"] +} diff --git a/docs/ARCHITECTURE_V2.md b/docs/ARCHITECTURE_V2.md new file mode 100644 index 0000000..6450bbd --- /dev/null +++ b/docs/ARCHITECTURE_V2.md @@ -0,0 +1,61 @@ +# TGLock 2.0 architecture + +## Local protocols + +Один TCP-порт автоматически принимает два типа клиентов: + +- MTProto proxy с постоянным 16-байтовым secret — основной режим; +- SOCKS5 без авторизации — режим совместимости. + +MTProto init проверяется по secret и transport tag. Из него извлекаются DC, +признак media-соединения и тип транспорта. Для upstream создаётся новый +стандартный obfuscated2 init, а последующий поток пере-шифровывается между +локальным secret и Telegram. + +## Transport cascade + +Для каждого DC и отдельно для media-соединений строится список маршрутов: + +1. сохранённый успешный маршрут; +2. точный Telegram IP с `kwsN` или `kwsN-1` в TLS SNI и WebSocket Host; +3. дополнительный Telegram IP, если он определён; +4. системный DNS; +5. явно настроенный пользователем Cloudflare Worker. + +Поддерживаются DC1–5 и media/CDN DC203. DC203 использует WebSocket-host DC2, +но подключается к собственному IP. + +После ошибки маршрут получает exponential cooldown от 30 секунд до 30 минут. +Успешный маршрут становится первым для следующего соединения того же DC и +типа трафика. + +## TLS policy + +Проверка сертификатов и hostname никогда не отключается. При подключении к +заданному Telegram IP TCP destination отделён от URI host: TLS продолжает +проверять сертификат настоящего `kws*.web.telegram.org`. + +Cloudflare Worker принимается только как пользовательская настройка. TGLock +не загружает и не скрывает публичные списки чужих доменов. + +## Cloudflare Worker contract + +Worker должен принимать WebSocket на: + +```text +/apiws?dst=&dc= +``` + +и проксировать бинарные frames в TCP `:443`. Рекомендуется +добавить собственную авторизацию до стабильного релиза; поэтому Worker +остаётся расширенной опцией alpha-версии. + +## Current limitations + +- SNI camouflage не включена: небезопасное отключение hostname verification + из референсной реализации не переносится. +- Голосовые звонки по UDP не поддерживаются. +- Работоспособность медиа зависит от конкретного DC аккаунта и доступности + Telegram/Cloudflare у провайдера. +- Пулы заранее открытых WebSocket-соединений будут добавлены после измерения, + что они не создают лишнюю нагрузку и не ухудшают стабильность. diff --git a/docs/ISSUE_AUDIT.md b/docs/ISSUE_AUDIT.md new file mode 100644 index 0000000..f6c4181 --- /dev/null +++ b/docs/ISSUE_AUDIT.md @@ -0,0 +1,51 @@ +# TGLock 2.0 issue audit + +Проверено 29 июля 2026 года: все 15 issues и 5 pull requests, существовавшие +в репозитории на момент аудита. + +## Выводы + +Главная причина жалоб «прокси подключён, но Telegram не работает» — приложение +считало успешный запуск локального SOCKS5-сервера успешным подключением к +Telegram. Единственный upstream `kws{dc}.web.telegram.org` может резолвиться в +недоступный IP или блокироваться провайдером. + +TGLock 2.0 разделяет эти состояния и использует адаптивный список Telegram IP, +`kwsN`/`kwsN-1`, системный DNS и опциональный пользовательский Cloudflare +Worker. TLS SNI и WebSocket Host проверяются. Системный DNS и файл `hosts` +не изменяются. + +## Классификация + +| Issue | Наблюдение | Решение для 2.0 | +|---|---|---| +| #1 | Порт 1080 занят | Уже есть выбор порта; добавить автоматический подбор | +| #2, #11 | Неверный сетевой адаптер | В переписанном Rust-ядре привязка исходящего адаптера отсутствует; добавить только как расширенную настройку | +| #3 | Rust 1.75 не собирает зависимости | `Cargo.lock` зафиксирован; MSRV 1.88 документирована и проверяется в CI | +| #4 | Linux/серверный режим | Добавить headless CLI и systemd/Docker-примеры | +| #5 | macOS | Публиковать universal `.app`, затем подписанный и notarized DMG | +| #8, #19, #21, #23 | Нет подключения | Резервные маршруты, live-probe, понятная диагностика вместо ложного «Подключено» | +| #9 | Android | Не входит в desktop 2.0; LAN остаётся отдельным сценарием | +| #10, #17 | GUI не запускается без GPU/монитора | Headless CLI; отдельно проверить software rendering | +| #13 | Discord/YouTube | Вне области проекта; не смешивать с Telegram-транспортом | +| #14 | Медиа, звонки, LAN | Медиа тестировать отдельно; звонки не обещать без UDP; LAN ограничить Telegram-адресами | + +## Pull requests + +- #6 относится к старой Windows-реализации выбора адаптера. +- #12 относился к шрифту старого GUI. В v2 интерфейс перенесён на Tauri 2 и + использует системную типографику каждой платформы. +- #15 содержит полезное направление разделения GUI/CLI, но основан на старой + архитектуре и меняет DNS системы. +- #18 — экспериментальный Linux GUI без подтверждённого мобильного сценария. +- #7 не содержит продуктового изменения. + +## Не подтверждённые обещания + +- Голосовые и видеозвонки нельзя заявлять рабочими: SOCKS5 UDP Associate не + реализован, а Telegram может обходить proxy для части звонков. +- «Подключено» допустимо показывать только после успешного WebSocket handshake, + а не после открытия локального порта. +- LAN-режим не должен становиться открытым универсальным SOCKS5-прокси. +- Резерв через чужую Cloudflare-инфраструктуру нельзя включать без ясной модели + доверия, владельца, мониторинга и политики обновления endpoint-ов. diff --git a/docs/assets/tglock-v2-main.jpeg b/docs/assets/tglock-v2-main.jpeg new file mode 100644 index 0000000..40ca7fb Binary files /dev/null and b/docs/assets/tglock-v2-main.jpeg differ diff --git a/docs/assets/tglock-v2-settings.jpeg b/docs/assets/tglock-v2-settings.jpeg new file mode 100644 index 0000000..9ef2a20 Binary files /dev/null and b/docs/assets/tglock-v2-settings.jpeg differ diff --git a/icons/128x128.png b/icons/128x128.png new file mode 100644 index 0000000..00e67b3 Binary files /dev/null and b/icons/128x128.png differ diff --git a/icons/128x128@2x.png b/icons/128x128@2x.png new file mode 100644 index 0000000..dbba127 Binary files /dev/null and b/icons/128x128@2x.png differ diff --git a/icons/32x32.png b/icons/32x32.png new file mode 100644 index 0000000..49c6205 Binary files /dev/null and b/icons/32x32.png differ diff --git a/icons/64x64.png b/icons/64x64.png new file mode 100644 index 0000000..2303de1 Binary files /dev/null and b/icons/64x64.png differ diff --git a/icons/Square107x107Logo.png b/icons/Square107x107Logo.png new file mode 100644 index 0000000..44a0e3d Binary files /dev/null and b/icons/Square107x107Logo.png differ diff --git a/icons/Square142x142Logo.png b/icons/Square142x142Logo.png new file mode 100644 index 0000000..2d448c4 Binary files /dev/null and b/icons/Square142x142Logo.png differ diff --git a/icons/Square150x150Logo.png b/icons/Square150x150Logo.png new file mode 100644 index 0000000..65b82dc Binary files /dev/null and b/icons/Square150x150Logo.png differ diff --git a/icons/Square284x284Logo.png b/icons/Square284x284Logo.png new file mode 100644 index 0000000..924c795 Binary files /dev/null and b/icons/Square284x284Logo.png differ diff --git a/icons/Square30x30Logo.png b/icons/Square30x30Logo.png new file mode 100644 index 0000000..2e4b0e5 Binary files /dev/null and b/icons/Square30x30Logo.png differ diff --git a/icons/Square310x310Logo.png b/icons/Square310x310Logo.png new file mode 100644 index 0000000..24f4ddc Binary files /dev/null and b/icons/Square310x310Logo.png differ diff --git a/icons/Square44x44Logo.png b/icons/Square44x44Logo.png new file mode 100644 index 0000000..3d9bb7a Binary files /dev/null and b/icons/Square44x44Logo.png differ diff --git a/icons/Square71x71Logo.png b/icons/Square71x71Logo.png new file mode 100644 index 0000000..9dc151e Binary files /dev/null and b/icons/Square71x71Logo.png differ diff --git a/icons/Square89x89Logo.png b/icons/Square89x89Logo.png new file mode 100644 index 0000000..8e0aa96 Binary files /dev/null and b/icons/Square89x89Logo.png differ diff --git a/icons/StoreLogo.png b/icons/StoreLogo.png new file mode 100644 index 0000000..c4c3898 Binary files /dev/null and b/icons/StoreLogo.png differ diff --git a/icons/icon.icns b/icons/icon.icns new file mode 100644 index 0000000..6b7e18d Binary files /dev/null and b/icons/icon.icns differ diff --git a/icons/icon.ico b/icons/icon.ico new file mode 100644 index 0000000..6e9bdf4 Binary files /dev/null and b/icons/icon.ico differ diff --git a/icons/icon.png b/icons/icon.png new file mode 100644 index 0000000..f04d39a Binary files /dev/null and b/icons/icon.png differ diff --git a/icons/icon.svg b/icons/icon.svg new file mode 100644 index 0000000..87aa130 --- /dev/null +++ b/icons/icon.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..c39f223 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + TGLock + + +
+ + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..a531ce0 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1350 @@ +{ + "name": "tglock-ui", + "version": "2.0.0-beta.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "tglock-ui", + "version": "2.0.0-beta.1", + "dependencies": { + "@tauri-apps/api": "^2.8.0" + }, + "devDependencies": { + "@tauri-apps/cli": "^2.8.0", + "typescript": "^5.8.3", + "vite": "^6.2.6" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.3.tgz", + "integrity": "sha512-c0wdcekXtQvvn5Tsrk/+op/gUArrbWaFduBnTLP2l1cKLSQs4diMWjJw3m6A0DdzT8dAAX95KpkJ3qynCePbmw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.3.tgz", + "integrity": "sha512-3YjElDdWN+qXAFbJ/CzPV+0wspLqh54k/I6GfdYtEJRqg7buSgc1yPM3B+93j1M4neobtkATHZTmxK2AMVGfnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.3.tgz", + "integrity": "sha512-Pch2pFNOxxz1hTjypIdPyRTR6riiwRl84+VcN9djS680fw+Co1nAJINrdpqp7KV0NvyuU8ilZXZCjd7ykJl1GQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.3.tgz", + "integrity": "sha512-LEuncFUHFiF8t4yZVZvvZA1wk0pjAscRnsrn1EfTEmN4HXotBi2YtcnLRyaK6UbuczW7xZS5ES+81Rdz8Z0T6g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.3.tgz", + "integrity": "sha512-zvBUvsQUpOWALdDsk6qbS8bXf2VxmPisuudNDrY7x0p0jBdsoZl8HsHczIOgkQiZldmcacMKtBzpoGVNeIe2bQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.3.tgz", + "integrity": "sha512-C2KmNrcSem/AMg984H/dev+si0lieQGdXdR/lYGJnuumXnFb9Y7QdiI62obFdLlxRYLBv4P0eUVIDbD4c1vVvw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.3.tgz", + "integrity": "sha512-ggXnsTAEzNQx74XpunRsiZ9aBZDsI7XIa0hm2nzR9f4WzH5/f/d73ZSDaC5ejJ8YLY4NW+V3wr0tjOaeCq8hqA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.3.tgz", + "integrity": "sha512-2vng+FlzNUhKZxtej3IUqJgbZoQk2M/dwQM20+ULV0R/E/8tr9/P6uEf2iiGIk4HL0zMKh5Jry7mUHdUOvyGgA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.3.tgz", + "integrity": "sha512-LLLFZKt4/Nraf9rxDkhiU8QVgLF4WmCkfr0L4fj0fPfIZFBib0DeiFk1hhaYKd03LFAFJcxHslhDFlNJLylf5Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.3.tgz", + "integrity": "sha512-WJkdQCvS9sWNOUBJZfQRKpZGFBztRzcowI+nndmflKgU4XY+3a420FgTOSKTsVqJbnzSxeT4vaJalpOaPo2YCQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.3.tgz", + "integrity": "sha512-PwHXCCS2n64/1Ot6rP1YEYA02MGYBcQlr8CSZZyrUG2O7NH6NklYmvr9v3Jy+5e/eDeNchc/ukmKJi9LuflMIQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.3.tgz", + "integrity": "sha512-vUjxINQu3RC8NZS3ykk1gN65gIz8pAopOq2HXuZhiIxHdx7TFvDG+jgrdSgInu1Eza4/Rfi2VzZgyIgEH4WOaw==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.3.tgz", + "integrity": "sha512-wzko4aJ13+0G3kGnviCg5gnXFKd40izKsrf2uOw12US4XqprkDrmwOpeW14aSNa37V8bfPcz5Fkob6LZ3BAPmA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.3.tgz", + "integrity": "sha512-8120ue0JUMSwy11stlwnfdX3pPd+WZYGCDBwEHWtIHi6pOpZmsEF5QKB7a/UN+XFdqvobxz98kv8RTqikyCEBw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.3.tgz", + "integrity": "sha512-XLFHnR3tXMjbOCh2vtVJHmxt+995uJsTERQyseFDRA0xxMxyTZPLa3OIUlyFaO4mF/Lu0FjmWHCuPXJT1n/IOg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.3.tgz", + "integrity": "sha512-se6yXvNGMIl0f+RQzyh7XAmia8/9kplQx424wnG2w0C1oi6XgO6Y8otKhdXFHbHs88Ihavzmvh1NWjuovE76BQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.3.tgz", + "integrity": "sha512-gNoxRefktVIiGflpONuxWWXZAzIQG++z9qHO3xKwk4WdDMuQja3JHGfE1u0i3PfPDyvhypdk+WrgIJqLhGG7sg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.3.tgz", + "integrity": "sha512-V4KtWtQfAFMU7+9/A/VDps/VI8CHd3cYz0L8sgJzz8qK7eY7wI4ruFD82UYIYvW9Z4DtlTfhQcsl4XyPHW5uSg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.3.tgz", + "integrity": "sha512-LBx9LYXvj2CBkMkjLdNAWLwH0MLMin7do2VcVo9kVPibGLkY0BQQut2fv7NVqkXqZ/CrAu9LqDHVV1xHCMpCPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.3.tgz", + "integrity": "sha512-ABVf3Q0RCu7NcyCCOZQI0pJ3GuSdfSl8EXcy88QtdceIMIoCUdfhsJChZ64L9zVM2aJHjde1Bhn5uqSRcX9ySA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.3.tgz", + "integrity": "sha512-+2Cy/ldweGBLlPIKsQLF8U5N44a0KDdbrk1rAjHOM9M2K+kGdIVjHLmmrZIcx+9Ny3ke/1JomCsDI1ocb11+sg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.3.tgz", + "integrity": "sha512-dtZvzc8BedpSaFNy75x6uiWwAGTH+aZHDtdrqP6qk+WcLJrfti6sGje1ZJ9UxyzDLF23d/mV+PaMwuC0hL7UVA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.3.tgz", + "integrity": "sha512-Rj8Ra4noo+aYy7sKBggCx0407mws34kAb1ySyWuq5DAtFBQdkSwnsjCgPrhPe9cvgBKZIukpE+CVHvORCS93kQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.3.tgz", + "integrity": "sha512-vp7N084ew/odXn2gi/mzm9mUkQu9l6AiN6dt4IeUM2Uvm9o+cVmP+YkqbMOteLbiGgqBBlJZjIMYVCfOOIVbVQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.3.tgz", + "integrity": "sha512-MOG/3gTOn4Fwf574RVOaY61I5o6P90legkFADiTyn1hyjNydT+cerU2rLUwPdZkKKyJ+iT+K9p7WXK4LM1Ka6g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@tauri-apps/api": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.1.tgz", + "integrity": "sha512-M2FPuYND2m+wh5hfW9ZpSdxMPdEJovPBWwoHJmwUpysTYNHaOkVFN419m/K0LIgjb/7KU2vBgsUepJWugQCvAA==", + "license": "Apache-2.0 OR MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/tauri" + } + }, + "node_modules/@tauri-apps/cli": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.11.4.tgz", + "integrity": "sha512-R8xGtMpwyetawSqm9kYOuMmEqkhUbvcUy8n0aNXIxollKBLESUu5f4Fx+64hgASYm1H+jSWq6jCW6zqTnH6hqQ==", + "dev": true, + "license": "Apache-2.0 OR MIT", + "bin": { + "tauri": "tauri.js" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/tauri" + }, + "optionalDependencies": { + "@tauri-apps/cli-darwin-arm64": "2.11.4", + "@tauri-apps/cli-darwin-x64": "2.11.4", + "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.4", + "@tauri-apps/cli-linux-arm64-gnu": "2.11.4", + "@tauri-apps/cli-linux-arm64-musl": "2.11.4", + "@tauri-apps/cli-linux-riscv64-gnu": "2.11.4", + "@tauri-apps/cli-linux-x64-gnu": "2.11.4", + "@tauri-apps/cli-linux-x64-musl": "2.11.4", + "@tauri-apps/cli-win32-arm64-msvc": "2.11.4", + "@tauri-apps/cli-win32-ia32-msvc": "2.11.4", + "@tauri-apps/cli-win32-x64-msvc": "2.11.4" + } + }, + "node_modules/@tauri-apps/cli-darwin-arm64": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.4.tgz", + "integrity": "sha512-1ryOF3ZhpZ/nemHV5zVwBQBz9jDGKmKPvWPADOhc83ig0P4bMc2iER4NbC6r9sjeIZ6RVQ4g3RZIYvezhcl4TQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-darwin-x64": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.4.tgz", + "integrity": "sha512-uFsGQAAfuyz1k/yGLmkWfkBlgKAqZfxqlHmLWx81QU27RJWfmbNHCIq8T8w1e+VClleIuZUjpHWfoE4E3DLo3A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.4.tgz", + "integrity": "sha512-IaHZn5CdBL21oUmjiVOS1ctw6Ip1O0pjp70FwOWmYz1myWe0SY96ZIj2FYf7pT0m8bI2h/hrs5ZbEXXh44/MkQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm64-gnu": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.4.tgz", + "integrity": "sha512-N41/ukTRVe6XSuUTESuFdGeOW2i7k62tK+6gHK5Kd5/q5RPvvi19GaWAVPPb9u95HSGmTChSolBfzynUsssFaA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm64-musl": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.4.tgz", + "integrity": "sha512-v277UnT/fB64xAfSroL5N3Km3tLmvATWqJJw/wRI+g6o+HkeD0slyE7gOhNs1MbjE41R7bQOTxMVoL3aomUJmw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-riscv64-gnu": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.4.tgz", + "integrity": "sha512-qqgNkQ2u1yZHxjhxsZaxUtRDW8dIqIYm33rx/mzwQv0SfY9x1B+iraj8vWeFiXjjSVVhEMepXSOts1TqPzvXNQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-x64-gnu": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.4.tgz", + "integrity": "sha512-2VRNWl84FOH0m2giiDkO2h0QXlcMJeX+zJDpI5kDIQAx6s+geF3v48F4DXfJez4GS/FdoDGnPnw1C2iYGbQ7bQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-x64-musl": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.4.tgz", + "integrity": "sha512-o9GyhYor/nc7xarmwDE3ka2szuW3uuZzXjHWh64Q8YX5AtSgxdQkFWzrY4O8KiGtVNvFBI14H3Q49Qj5TOIP/A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-arm64-msvc": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.4.tgz", + "integrity": "sha512-ld5Ehb598m0VkYyylRPNeCFsBe/km0jxis6KgMpl3IGY6I/i1RwQXO05I1AsXUXO2WC6AvB/Lw4qTf/asiuEiQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-ia32-msvc": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.4.tgz", + "integrity": "sha512-12Hxi0XX/H5VFxO/bGgHkFWhml9VMgEOu9CidjeCeTNQ1l6fpUlbiGgSP7CLI3PFtW9/FfbeHieZ+kyWK5H7CA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-x64-msvc": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.11.4.tgz", + "integrity": "sha512-+vDiqBIU5dMISg/wNvX3sF+ZHfgJGJ5T0AcO+EHNXV9GGAG+P5fzodlDXD3QdKCRgZxMoCm5PPvj3BqLNjBthw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.16", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz", + "integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", + "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.24", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.24.tgz", + "integrity": "sha512-8RyVklq0owXUTa4xlpzu4l9AaVKIdQvAcOHZWaMh98HgySsUtxRVf/chRe3dsSLqb6i40BzGRzEUddRaI+9TSw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.16", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rollup": { + "version": "4.62.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.3.tgz", + "integrity": "sha512-Gu0c0iH9FzgX1L1t7ByIbbS3Vmdz+6KHm/EsqmmC71gUQ82yvZRkTK6XzrFObSka91WUVdynqp6nsfilzr5k6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.62.3", + "@rollup/rollup-android-arm64": "4.62.3", + "@rollup/rollup-darwin-arm64": "4.62.3", + "@rollup/rollup-darwin-x64": "4.62.3", + "@rollup/rollup-freebsd-arm64": "4.62.3", + "@rollup/rollup-freebsd-x64": "4.62.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.62.3", + "@rollup/rollup-linux-arm-musleabihf": "4.62.3", + "@rollup/rollup-linux-arm64-gnu": "4.62.3", + "@rollup/rollup-linux-arm64-musl": "4.62.3", + "@rollup/rollup-linux-loong64-gnu": "4.62.3", + "@rollup/rollup-linux-loong64-musl": "4.62.3", + "@rollup/rollup-linux-ppc64-gnu": "4.62.3", + "@rollup/rollup-linux-ppc64-musl": "4.62.3", + "@rollup/rollup-linux-riscv64-gnu": "4.62.3", + "@rollup/rollup-linux-riscv64-musl": "4.62.3", + "@rollup/rollup-linux-s390x-gnu": "4.62.3", + "@rollup/rollup-linux-x64-gnu": "4.62.3", + "@rollup/rollup-linux-x64-musl": "4.62.3", + "@rollup/rollup-openbsd-x64": "4.62.3", + "@rollup/rollup-openharmony-arm64": "4.62.3", + "@rollup/rollup-win32-arm64-msvc": "4.62.3", + "@rollup/rollup-win32-ia32-msvc": "4.62.3", + "@rollup/rollup-win32-x64-gnu": "4.62.3", + "@rollup/rollup-win32-x64-msvc": "4.62.3", + "fsevents": "~2.3.2" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/vite": { + "version": "6.4.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz", + "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..026709e --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "tglock-ui", + "private": true, + "version": "2.0.0-beta.1", + "type": "module", + "scripts": { + "dev": "vite --port 1420", + "build": "tsc && vite build", + "preview": "vite preview", + "tauri": "tauri" + }, + "dependencies": { + "@tauri-apps/api": "^2.8.0" + }, + "devDependencies": { + "@tauri-apps/cli": "^2.8.0", + "typescript": "^5.8.3", + "vite": "^6.2.6" + } +} diff --git a/src/main.rs b/src/main.rs index e515f9b..ed599f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,384 +1,246 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] +mod mtproto; mod proxy; +mod transport; +use serde::{Deserialize, Serialize}; +use std::path::PathBuf; use std::sync::atomic::Ordering; use std::sync::{Arc, Mutex}; -use std::time::Instant; +use std::time::{Instant, SystemTime, UNIX_EPOCH}; +use tauri::{Manager, State}; -use eframe::egui; +#[derive(Clone, Debug, Deserialize, Serialize)] +#[serde(rename_all = "camelCase")] +struct Settings { + lan_mode: bool, + port: u16, + worker_domain: String, +} -// -- Colors (GitHub Dark inspired) ------------------------------------------ +impl Default for Settings { + fn default() -> Self { + Self { + lan_mode: false, + port: proxy::DEFAULT_PORT, + worker_domain: String::new(), + } + } +} -const BG: egui::Color32 = egui::Color32::from_rgb(13, 17, 23); -const SURFACE: egui::Color32 = egui::Color32::from_rgb(22, 27, 34); -const BORDER: egui::Color32 = egui::Color32::from_rgb(48, 54, 61); -const ACCENT: egui::Color32 = egui::Color32::from_rgb(88, 166, 255); -const GREEN: egui::Color32 = egui::Color32::from_rgb(63, 185, 80); -const RED: egui::Color32 = egui::Color32::from_rgb(248, 81, 73); -const TEXT: egui::Color32 = egui::Color32::from_rgb(230, 237, 243); -const TEXT2: egui::Color32 = egui::Color32::from_rgb(139, 148, 158); -const AD_BG: egui::Color32 = egui::Color32::from_rgb(17, 21, 28); +#[derive(Clone, Serialize)] +#[serde(rename_all = "camelCase")] +struct LogLine { + timestamp: String, + message: String, + error: bool, +} -fn main() -> eframe::Result<()> { - eframe::run_native( - "TGLock", - eframe::NativeOptions { - viewport: egui::ViewportBuilder::default() - .with_inner_size([520.0, 620.0]) - .with_min_inner_size([420.0, 500.0]) - .with_title("TGLock"), - ..Default::default() - }, - Box::new(|cc| { - apply_theme(&cc.egui_ctx); - Ok(Box::new(App::new())) - }), +#[derive(Serialize)] +#[serde(rename_all = "camelCase")] +struct StatusSnapshot { + running: bool, + active_connections: u32, + tunnels: u32, + data_center: Option, + route: String, + failures: u32, + uptime_seconds: u64, + port: u16, + logs: Vec, +} + +struct AppState { + stats: Arc, + settings: Mutex, + active_port: Mutex, + started_at: Mutex>, + logs: Arc>>, + settings_path: PathBuf, +} + +impl AppState { + fn new(settings_path: PathBuf) -> Self { + let settings = std::fs::read(&settings_path) + .ok() + .and_then(|contents| serde_json::from_slice(&contents).ok()) + .unwrap_or_default(); + Self { + stats: proxy::Stats::new(), + settings: Mutex::new(settings), + active_port: Mutex::new(proxy::DEFAULT_PORT), + started_at: Mutex::new(None), + logs: Arc::new(Mutex::new(Vec::new())), + settings_path, + } + } + + fn log(&self, message: impl Into, error: bool) { + let mut logs = self.logs.lock().unwrap(); + logs.push(LogLine { + timestamp: current_time(), + message: message.into(), + error, + }); + if logs.len() > 100 { + logs.remove(0); + } + } + + fn snapshot(&self) -> StatusSnapshot { + let data_center = self.stats.last_dc.load(Ordering::Relaxed); + let route = match self.stats.last_route.load(Ordering::Relaxed) { + 1 => "Telegram WebSocket", + 2 => "Cloudflare Worker", + _ => "Автоматический маршрут", + }; + StatusSnapshot { + running: self.stats.running.load(Ordering::SeqCst), + active_connections: self.stats.active.load(Ordering::Relaxed), + tunnels: self.stats.ws.load(Ordering::Relaxed), + data_center: (data_center > 0).then_some(data_center), + route: route.to_owned(), + failures: self.stats.ws_failures.load(Ordering::Relaxed), + uptime_seconds: self + .started_at + .lock() + .unwrap() + .map_or(0, |started| started.elapsed().as_secs()), + port: *self.active_port.lock().unwrap(), + logs: self.logs.lock().unwrap().clone(), + } + } + + fn persist_settings(&self, settings: &Settings) -> Result<(), String> { + if let Some(parent) = self.settings_path.parent() { + std::fs::create_dir_all(parent) + .map_err(|error| format!("Не удалось создать папку настроек: {error}"))?; + } + let contents = serde_json::to_vec_pretty(settings) + .map_err(|error| format!("Не удалось сохранить настройки: {error}"))?; + std::fs::write(&self.settings_path, contents) + .map_err(|error| format!("Не удалось сохранить настройки: {error}")) + } +} + +fn current_time() -> String { + let seconds = SystemTime::now() + .duration_since(UNIX_EPOCH) + .unwrap_or_default() + .as_secs(); + format!( + "{:02}:{:02}:{:02}", + (seconds / 3600) % 24, + (seconds / 60) % 60, + seconds % 60 ) } -fn apply_theme(ctx: &egui::Context) { - let mut v = egui::Visuals::dark(); - v.panel_fill = BG; - v.window_fill = SURFACE; - v.extreme_bg_color = BG; - v.faint_bg_color = SURFACE; - v.override_text_color = Some(TEXT); - - v.widgets.noninteractive.bg_fill = SURFACE; - v.widgets.noninteractive.fg_stroke = egui::Stroke::new(1.0, TEXT2); - v.widgets.noninteractive.bg_stroke = egui::Stroke::new(1.0, BORDER); - - v.widgets.inactive.bg_fill = egui::Color32::from_rgb(33, 38, 45); - v.widgets.inactive.fg_stroke = egui::Stroke::new(1.0, TEXT); - v.widgets.inactive.bg_stroke = egui::Stroke::new(1.0, BORDER); - - v.widgets.hovered.bg_fill = egui::Color32::from_rgb(48, 54, 61); - v.widgets.hovered.fg_stroke = egui::Stroke::new(1.0, TEXT); - - v.widgets.active.bg_fill = ACCENT; - v.widgets.active.fg_stroke = egui::Stroke::new(1.0, BG); - - ctx.set_visuals(v); +#[tauri::command] +fn get_status(state: State<'_, AppState>) -> StatusSnapshot { + state.snapshot() } -// -- Log -------------------------------------------------------------------- - -#[derive(Clone)] -struct LogLine { - ts: String, - msg: String, - err: bool, +#[tauri::command] +fn get_settings(state: State<'_, AppState>) -> Settings { + state.settings.lock().unwrap().clone() } -fn now_ts() -> String { - let s = std::time::SystemTime::now() - .duration_since(std::time::UNIX_EPOCH) - .unwrap_or_default() - .as_secs(); - format!("{:02}:{:02}:{:02}", (s / 3600) % 24, (s / 60) % 60, s % 60) +#[tauri::command] +fn save_settings(settings: Settings, state: State<'_, AppState>) -> Result { + if state.stats.running.load(Ordering::SeqCst) { + return Err("Сначала выключите защиту".into()); + } + if settings.port == 0 { + return Err("Порт должен быть от 1 до 65535".into()); + } + state.persist_settings(&settings)?; + *state.settings.lock().unwrap() = settings.clone(); + state.log("Настройки сохранены", false); + Ok(settings) } -fn log(log: &Arc>>, msg: &str, err: bool) { - log.lock().unwrap().push(LogLine { - ts: now_ts(), - msg: msg.into(), - err, - }); -} - -// -- App -------------------------------------------------------------------- - -struct App { - stats: Arc, - log: Arc>>, - started_at: Option, - lan_mode: bool, - port_str: String, - active_port: u16, -} - -impl App { - fn new() -> Self { - Self { - stats: proxy::Stats::new(), - log: Arc::new(Mutex::new(Vec::new())), - started_at: None, - lan_mode: false, - port_str: proxy::DEFAULT_PORT.to_string(), - active_port: proxy::DEFAULT_PORT, - } +#[tauri::command] +fn start_proxy(state: State<'_, AppState>) -> Result { + if state.stats.running.load(Ordering::SeqCst) { + return Ok(state.snapshot()); } - fn running(&self) -> bool { - self.stats.running.load(Ordering::SeqCst) - } + let settings = state.settings.lock().unwrap().clone(); + state.stats.set_worker_domain(&settings.worker_domain); + *state.active_port.lock().unwrap() = settings.port; + *state.started_at.lock().unwrap() = Some(Instant::now()); + state.log("Запускаю защищённый маршрут…", false); - fn start(&mut self) { - if self.running() { return; } - - let port: u16 = match self.port_str.trim().parse() { - Ok(p) if p > 0 => p, - _ => { - log(&self.log, "Неверный порт", true); + let stats = state.stats.clone(); + let logs = state.logs.clone(); + let lan_mode = settings.lan_mode; + let port = settings.port; + std::thread::spawn(move || { + let runtime = match tokio::runtime::Runtime::new() { + Ok(runtime) => runtime, + Err(error) => { + push_log(&logs, format!("Не удалось запустить сервис: {error}"), true); return; } }; - - self.active_port = port; - self.started_at = Some(Instant::now()); - let stats = self.stats.clone(); - let lg = self.log.clone(); - let lan = self.lan_mode; - - log(&lg, "Запускаю прокси...", false); - - std::thread::spawn(move || { - let rt = tokio::runtime::Runtime::new().unwrap(); - let r = rt.block_on(proxy::run(stats, lan, port)); - if let Err(e) = r { - log(&lg, &format!("Ошибка: {}", e), true); - } - }); - - std::thread::sleep(std::time::Duration::from_millis(250)); - if self.running() { - let addr = if lan { "0.0.0.0" } else { "127.0.0.1" }; - log(&self.log, &format!("SOCKS5 на {}:{}", addr, port), false); - if lan { - log(&self.log, "LAN-режим: другие устройства могут подключаться", false); - } + if let Err(error) = runtime.block_on(proxy::run(stats, lan_mode, port)) { + push_log(&logs, format!("Ошибка подключения: {error}"), true); } + }); + + std::thread::sleep(std::time::Duration::from_millis(220)); + if !state.stats.running.load(Ordering::SeqCst) { + *state.started_at.lock().unwrap() = None; + return Err(state + .logs + .lock() + .unwrap() + .last() + .map(|line| line.message.clone()) + .unwrap_or_else(|| "Не удалось запустить прокси".into())); } - fn stop(&mut self) { - self.stats.running.store(false, Ordering::SeqCst); - self.started_at = None; - log(&self.log, "Остановлен", false); - } - - fn uptime_str(&self) -> String { - match self.started_at { - Some(t) => { - let s = t.elapsed().as_secs(); - format!("{:02}:{:02}:{:02}", s / 3600, (s / 60) % 60, s % 60) - } - None => "--:--:--".into(), - } - } + state.log( + format!( + "Прокси запущен на {}:{}", + if settings.lan_mode { + "0.0.0.0" + } else { + "127.0.0.1" + }, + settings.port + ), + false, + ); + let host = if settings.lan_mode { + local_ip().unwrap_or_else(|| "127.0.0.1".into()) + } else { + "127.0.0.1".into() + }; + let _ = open::that(format!( + "tg://proxy?server={host}&port={}&secret={}", + settings.port, + state.stats.telegram_secret() + )); + state.log("Открываю подключение в Telegram…", false); + Ok(state.snapshot()) } -impl eframe::App for App { - fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { - ctx.request_repaint_after(std::time::Duration::from_millis(300)); - - let on = self.running(); - let active = self.stats.active.load(Ordering::Relaxed); - let total = self.stats.total.load(Ordering::Relaxed); - let ws = self.stats.ws.load(Ordering::Relaxed); - let dc = self.stats.last_dc.load(Ordering::Relaxed); - - // === Ad bar (top) === - egui::TopBottomPanel::top("ad").show(ctx, |ui| { - egui::Frame::new() - .fill(AD_BG) - .inner_margin(egui::Margin::symmetric(12, 6)) - .show(ui, |ui| { - ui.horizontal(|ui| { - ui.colored_label(ACCENT, egui::RichText::new("RoseVPN").size(12.0).strong()); - ui.colored_label(TEXT2, egui::RichText::new("Обход для всех приложений").size(11.0)); - ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { - if ui.add(egui::Button::new( - egui::RichText::new("@rosevpnru_bot").size(11.0).strong().color(ACCENT) - ).frame(false)).clicked() { - let _ = open::that("https://t.me/rosevpnru_bot"); - } - }); - }); - }); - }); - - // === Log (bottom) === - egui::TopBottomPanel::bottom("log") - .min_height(120.0) - .show(ctx, |ui| { - ui.add_space(4.0); - ui.colored_label(TEXT2, egui::RichText::new("LOG").size(11.0)); - ui.separator(); - egui::ScrollArea::vertical() - .auto_shrink([false, false]) - .stick_to_bottom(true) - .show(ui, |ui| { - for e in self.log.lock().unwrap().iter() { - let c = if e.err { RED } else { TEXT2 }; - ui.colored_label(c, egui::RichText::new( - format!("{} {}", e.ts, e.msg) - ).size(11.5).monospace()); - } - }); - }); - - // === Stats bar === - egui::TopBottomPanel::bottom("stats").show(ctx, |ui| { - egui::Frame::new() - .fill(SURFACE) - .inner_margin(egui::Margin::symmetric(16, 8)) - .show(ui, |ui| { - ui.horizontal(|ui| { - stat(ui, "Соединения", &active.to_string()); - ui.add_space(20.0); - stat(ui, "WS-туннели", &ws.to_string()); - ui.add_space(20.0); - stat(ui, "DC", &if dc > 0 { dc.to_string() } else { "—".into() }); - ui.add_space(20.0); - stat(ui, "Всего", &total.to_string()); - ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { - stat(ui, "Аптайм", &self.uptime_str()); - }); - }); - }); - }); - - // === Main === - egui::CentralPanel::default().show(ctx, |ui| { - ui.vertical_centered(|ui| { - ui.add_space(30.0); - - // Title - ui.colored_label(TEXT, egui::RichText::new("TGLock").size(32.0).strong()); - ui.add_space(4.0); - ui.colored_label(TEXT2, egui::RichText::new("WebSocket-туннель для Telegram").size(13.0)); - - ui.add_space(24.0); - - // Status indicator - let (dot_color, status_text) = if on { - (GREEN, "Подключено") - } else { - (egui::Color32::from_rgb(80, 80, 80), "Отключено") - }; - - ui.horizontal(|ui| { - let center = ui.available_width() / 2.0 - 50.0; - ui.add_space(center); - let (r, _) = ui.allocate_exact_size(egui::vec2(10.0, 10.0), egui::Sense::hover()); - ui.painter().circle_filled(r.center(), 5.0, dot_color); - ui.colored_label( - if on { GREEN } else { TEXT2 }, - egui::RichText::new(status_text).size(14.0).strong(), - ); - }); - - ui.add_space(20.0); - - // Options (only when stopped) - if !on { - ui.horizontal(|ui| { - let center = ui.available_width() / 2.0 - 130.0; - ui.add_space(center); - ui.colored_label(TEXT2, egui::RichText::new("Порт:").size(12.0)); - let port_edit = egui::TextEdit::singleline(&mut self.port_str) - .desired_width(55.0) - .font(egui::TextStyle::Monospace); - ui.add(port_edit); - ui.add_space(12.0); - ui.checkbox(&mut self.lan_mode, ""); - ui.colored_label(TEXT2, egui::RichText::new("LAN").size(12.0)); - ui.colored_label( - egui::Color32::from_rgb(80, 85, 95), - egui::RichText::new("(0.0.0.0)").size(10.5), - ); - }); - ui.add_space(8.0); - } - - // Big button - if !on { - let btn = ui.add_sized( - [260.0, 52.0], - egui::Button::new( - egui::RichText::new("ПОДКЛЮЧИТЬ").size(18.0).strong().color(BG) - ).fill(ACCENT).corner_radius(8.0), - ); - if btn.clicked() { - self.start(); - } - } else { - let btn = ui.add_sized( - [260.0, 52.0], - egui::Button::new( - egui::RichText::new("ОТКЛЮЧИТЬ").size(18.0).strong().color(TEXT) - ).fill(egui::Color32::from_rgb(40, 45, 52)).corner_radius(8.0), - ); - if btn.clicked() { - self.stop(); - } - } - - ui.add_space(24.0); - - // Setup section - egui::Frame::new() - .fill(SURFACE) - .corner_radius(8.0) - .inner_margin(16.0) - .show(ui, |ui| { - ui.set_width(360.0); - - ui.colored_label(TEXT, egui::RichText::new("Настройка Telegram").size(14.0).strong()); - ui.add_space(6.0); - - let server_addr = if self.lan_mode && on { - local_ip().unwrap_or_else(|| "127.0.0.1".into()) - } else { - "127.0.0.1".into() - }; - - let display_port = if on { self.active_port } else { - self.port_str.trim().parse().unwrap_or(proxy::DEFAULT_PORT) - }; - - if on { - if ui.add(egui::Button::new( - egui::RichText::new("Настроить автоматически").size(13.0).color(ACCENT) - ).frame(false)).clicked() { - let _ = open::that(format!("tg://socks?server={}&port={}", server_addr, display_port)); - log(&self.log, "Открываю настройку Telegram...", false); - } - ui.add_space(4.0); - } - - ui.colored_label(TEXT2, egui::RichText::new("Настройки → Продвинутые → Тип соединения → SOCKS5").size(11.5)); - ui.add_space(4.0); - - egui::Grid::new("cfg").num_columns(2).spacing([12.0, 3.0]).show(ui, |ui| { - ui.colored_label(TEXT2, "Сервер"); - ui.monospace(&server_addr); - ui.end_row(); - ui.colored_label(TEXT2, "Порт"); - ui.monospace(format!("{}", display_port)); - ui.end_row(); - }); - }); - - ui.add_space(16.0); - - // How it works (compact) - ui.colored_label(TEXT2, egui::RichText::new( - "Трафик Telegram → SOCKS5 → WSS → web.telegram.org → DC" - ).size(11.0)); - ui.colored_label(TEXT2, egui::RichText::new( - "Провайдер видит обычный HTTPS. Остальной трафик не затрагивается." - ).size(11.0)); - }); - }); - } +#[tauri::command] +fn stop_proxy(state: State<'_, AppState>) -> StatusSnapshot { + state.stats.stop(); + *state.started_at.lock().unwrap() = None; + state.log("Защита выключена", false); + state.snapshot() } -fn stat(ui: &mut egui::Ui, label: &str, value: &str) { - ui.vertical(|ui| { - ui.colored_label(TEXT2, egui::RichText::new(label).size(10.0)); - ui.colored_label(TEXT, egui::RichText::new(value).size(13.0).strong().monospace()); +fn push_log(logs: &Arc>>, message: String, error: bool) { + logs.lock().unwrap().push(LogLine { + timestamp: current_time(), + message, + error, }); } @@ -387,3 +249,25 @@ fn local_ip() -> Option { socket.connect("8.8.8.8:80").ok()?; Some(socket.local_addr().ok()?.ip().to_string()) } + +fn main() { + tauri::Builder::default() + .setup(|app| { + let settings_path = app + .path() + .app_config_dir() + .map_err(|error| error.to_string())? + .join("settings.json"); + app.manage(AppState::new(settings_path)); + Ok(()) + }) + .invoke_handler(tauri::generate_handler![ + get_status, + get_settings, + save_settings, + start_proxy, + stop_proxy + ]) + .run(tauri::generate_context!()) + .expect("failed to run TGLock"); +} diff --git a/src/mtproto.rs b/src/mtproto.rs new file mode 100644 index 0000000..4b4d6a2 --- /dev/null +++ b/src/mtproto.rs @@ -0,0 +1,318 @@ +use aes::Aes256; +use cipher::{KeyIvInit, StreamCipher}; +use rand::{rngs::OsRng, RngCore}; +use sha2::{Digest, Sha256}; +#[cfg(not(test))] +use std::path::PathBuf; + +type AesCtr = ctr::Ctr128BE; + +const INIT_LEN: usize = 64; +const KEY_START: usize = 8; +const KEY_END: usize = 40; +const IV_END: usize = 56; +const TAG_START: usize = 56; +const DC_START: usize = 60; + +const ABRIDGED: [u8; 4] = [0xef; 4]; +const INTERMEDIATE: [u8; 4] = [0xee; 4]; +const PADDED_INTERMEDIATE: [u8; 4] = [0xdd; 4]; + +pub struct ClientInit { + pub dc: u16, + pub media: bool, + pub relay_init: [u8; INIT_LEN], + pub crypto: CryptoContext, +} + +pub struct CryptoContext { + client_decrypt: AesCtr, + client_encrypt: AesCtr, + telegram_encrypt: AesCtr, + telegram_decrypt: AesCtr, +} + +impl CryptoContext { + pub fn client_to_telegram(&mut self, data: &mut [u8]) { + self.client_decrypt.apply_keystream(data); + self.telegram_encrypt.apply_keystream(data); + } + + pub fn telegram_to_client(&mut self, data: &mut [u8]) { + self.telegram_decrypt.apply_keystream(data); + self.client_encrypt.apply_keystream(data); + } +} + +pub fn generate_secret() -> [u8; 16] { + let mut secret = [0; 16]; + OsRng.fill_bytes(&mut secret); + secret +} + +#[cfg(not(test))] +pub fn load_or_create_secret() -> [u8; 16] { + let Some(path) = secret_path() else { + return generate_secret(); + }; + if let Ok(value) = std::fs::read_to_string(&path) { + if let Some(secret) = parse_secret_hex(value.trim()) { + return secret; + } + } + + let secret = generate_secret(); + if let Some(parent) = path.parent() { + let _ = std::fs::create_dir_all(parent); + } + write_secret_file(&path, &secret_hex(&secret)); + secret +} + +#[cfg(not(test))] +fn secret_path() -> Option { + #[cfg(target_os = "windows")] + { + std::env::var_os("APPDATA") + .map(PathBuf::from) + .map(|path| path.join("TGLock").join("secret")) + } + #[cfg(target_os = "macos")] + { + std::env::var_os("HOME") + .map(PathBuf::from) + .map(|path| path.join("Library/Application Support/TGLock/secret")) + } + #[cfg(all(unix, not(target_os = "macos")))] + { + if let Some(path) = std::env::var_os("XDG_CONFIG_HOME") { + return Some(PathBuf::from(path).join("tglock").join("secret")); + } + std::env::var_os("HOME") + .map(PathBuf::from) + .map(|path| path.join(".config/tglock/secret")) + } +} + +#[cfg(all(not(test), unix))] +fn write_secret_file(path: &std::path::Path, value: &str) { + use std::io::Write; + use std::os::unix::fs::OpenOptionsExt; + if let Ok(mut file) = std::fs::OpenOptions::new() + .create(true) + .truncate(true) + .write(true) + .mode(0o600) + .open(path) + { + let _ = file.write_all(value.as_bytes()); + } +} + +#[cfg(all(not(test), not(unix)))] +fn write_secret_file(path: &std::path::Path, value: &str) { + let _ = std::fs::write(path, value); +} + +pub fn secret_hex(secret: &[u8; 16]) -> String { + let mut output = String::with_capacity(32); + for byte in secret { + use std::fmt::Write; + let _ = write!(output, "{:02x}", byte); + } + output +} + +fn parse_secret_hex(value: &str) -> Option<[u8; 16]> { + if value.len() != 32 { + return None; + } + let mut secret = [0; 16]; + for (index, byte) in secret.iter_mut().enumerate() { + *byte = u8::from_str_radix(&value[index * 2..index * 2 + 2], 16).ok()?; + } + Some(secret) +} + +pub fn telegram_secret(secret: &[u8; 16]) -> String { + format!("dd{}", secret_hex(secret)) +} + +pub fn parse_client_init(init: &[u8; INIT_LEN], secret: &[u8; 16]) -> Option { + let client_dec_key = secret_key(&init[KEY_START..KEY_END], secret); + let client_dec_iv: [u8; 16] = init[KEY_END..IV_END].try_into().ok()?; + let mut client_decrypt = AesCtr::new((&client_dec_key).into(), (&client_dec_iv).into()); + + let mut decrypted = *init; + client_decrypt.apply_keystream(&mut decrypted); + let protocol_tag: [u8; 4] = decrypted[TAG_START..DC_START].try_into().ok()?; + if !matches!(protocol_tag, ABRIDGED | INTERMEDIATE | PADDED_INTERMEDIATE) { + return None; + } + + let dc_index = i16::from_le_bytes([decrypted[DC_START], decrypted[DC_START + 1]]); + let dc = dc_index.unsigned_abs(); + if !matches!(dc, 1..=5 | 203) { + return None; + } + + let relay_init = generate_relay_init(protocol_tag, dc_index); + let crypto = build_crypto_context(init, secret, &relay_init)?; + Some(ClientInit { + dc, + media: dc_index < 0, + relay_init, + crypto, + }) +} + +fn secret_key(prekey: &[u8], secret: &[u8; 16]) -> [u8; 32] { + let mut hash = Sha256::new(); + hash.update(prekey); + hash.update(secret); + hash.finalize().into() +} + +fn generate_relay_init(protocol_tag: [u8; 4], dc_index: i16) -> [u8; INIT_LEN] { + loop { + let mut init = [0; INIT_LEN]; + OsRng.fill_bytes(&mut init); + if is_reserved_init(&init) { + continue; + } + + let key: [u8; 32] = init[KEY_START..KEY_END].try_into().unwrap(); + let iv: [u8; 16] = init[KEY_END..IV_END].try_into().unwrap(); + let mut cipher = AesCtr::new((&key).into(), (&iv).into()); + let mut encrypted = init; + cipher.apply_keystream(&mut encrypted); + + let mut tail = [0; 8]; + tail[..4].copy_from_slice(&protocol_tag); + tail[4..6].copy_from_slice(&dc_index.to_le_bytes()); + OsRng.fill_bytes(&mut tail[6..]); + for index in 0..8 { + init[TAG_START + index] ^= tail[index] ^ encrypted[TAG_START + index]; + } + return init; + } +} + +fn is_reserved_init(init: &[u8; INIT_LEN]) -> bool { + init[0] == 0xef + || &init[..4] == b"HEAD" + || &init[..4] == b"POST" + || &init[..4] == b"GET " + || init[..4] == [0xee; 4] + || init[..4] == [0xdd; 4] + || init[..4] == [0x16, 0x03, 0x01, 0x02] + || init[4..8] == [0; 4] +} + +fn build_crypto_context( + client_init: &[u8; INIT_LEN], + secret: &[u8; 16], + relay_init: &[u8; INIT_LEN], +) -> Option { + let client_dec_key = secret_key(&client_init[KEY_START..KEY_END], secret); + let client_dec_iv: [u8; 16] = client_init[KEY_END..IV_END].try_into().ok()?; + let mut client_decrypt = AesCtr::new((&client_dec_key).into(), (&client_dec_iv).into()); + client_decrypt.apply_keystream(&mut [0; INIT_LEN]); + + let reversed_client: Vec<_> = client_init[KEY_START..IV_END] + .iter() + .rev() + .copied() + .collect(); + let client_enc_key = secret_key(&reversed_client[..32], secret); + let client_enc_iv: [u8; 16] = reversed_client[32..].try_into().ok()?; + let client_encrypt = AesCtr::new((&client_enc_key).into(), (&client_enc_iv).into()); + + let relay_enc_key: [u8; 32] = relay_init[KEY_START..KEY_END].try_into().ok()?; + let relay_enc_iv: [u8; 16] = relay_init[KEY_END..IV_END].try_into().ok()?; + let mut telegram_encrypt = AesCtr::new((&relay_enc_key).into(), (&relay_enc_iv).into()); + telegram_encrypt.apply_keystream(&mut [0; INIT_LEN]); + + let reversed_relay: Vec<_> = relay_init[KEY_START..IV_END] + .iter() + .rev() + .copied() + .collect(); + let relay_dec_key: [u8; 32] = reversed_relay[..32].try_into().ok()?; + let relay_dec_iv: [u8; 16] = reversed_relay[32..].try_into().ok()?; + let telegram_decrypt = AesCtr::new((&relay_dec_key).into(), (&relay_dec_iv).into()); + + Some(CryptoContext { + client_decrypt, + client_encrypt, + telegram_encrypt, + telegram_decrypt, + }) +} + +#[cfg(test)] +pub(crate) fn test_client_init(secret: &[u8; 16], dc_index: i16) -> [u8; INIT_LEN] { + tests::generate_client_init(secret, PADDED_INTERMEDIATE, dc_index) +} + +#[cfg(test)] +mod tests { + use super::*; + + pub(super) fn generate_client_init( + secret: &[u8; 16], + protocol_tag: [u8; 4], + dc_index: i16, + ) -> [u8; INIT_LEN] { + let mut init = generate_relay_init(protocol_tag, dc_index); + let key = secret_key(&init[KEY_START..KEY_END], secret); + let iv: [u8; 16] = init[KEY_END..IV_END].try_into().unwrap(); + let mut cipher = AesCtr::new((&key).into(), (&iv).into()); + let mut encrypted = init; + cipher.apply_keystream(&mut encrypted); + + let mut tail = [0; 8]; + tail[..4].copy_from_slice(&protocol_tag); + tail[4..6].copy_from_slice(&dc_index.to_le_bytes()); + tail[6..].copy_from_slice(&[17, 23]); + for index in 0..8 { + init[TAG_START + index] ^= tail[index] ^ encrypted[TAG_START + index]; + } + init + } + + #[test] + fn parses_secret_protected_media_init() { + let secret = [42; 16]; + let init = generate_client_init(&secret, PADDED_INTERMEDIATE, -4); + let parsed = parse_client_init(&init, &secret).unwrap(); + assert_eq!(parsed.dc, 4); + assert!(parsed.media); + } + + #[test] + fn rejects_wrong_secret() { + let init = generate_client_init(&[42; 16], INTERMEDIATE, 2); + assert!(parse_client_init(&init, &[7; 16]).is_none()); + } + + #[test] + fn telegram_link_secret_has_padded_intermediate_prefix() { + assert_eq!( + telegram_secret(&[0xab; 16]), + "ddabababababababababababababababab" + ); + } + + #[test] + fn parses_persisted_secret() { + assert_eq!( + parse_secret_hex("00112233445566778899aabbccddeeff"), + Some([ + 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, + 0xee, 0xff, + ]) + ); + assert_eq!(parse_secret_hex("not-a-secret"), None); + } +} diff --git a/src/proxy.rs b/src/proxy.rs index 5c633fb..17f45ee 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -1,20 +1,26 @@ use std::net::Ipv4Addr; -use std::sync::Arc; -use std::sync::atomic::{AtomicBool, AtomicU32, AtomicU8, Ordering}; +use std::sync::atomic::{AtomicBool, AtomicU16, AtomicU32, AtomicU8, Ordering}; +use std::sync::{Arc, Mutex}; use std::time::Duration; +use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt}; use tokio::net::{TcpListener, TcpStream}; -use tokio::io::{AsyncReadExt, AsyncWriteExt}; use tokio_tungstenite::tungstenite; -use tungstenite::client::IntoClientRequest; pub const DEFAULT_PORT: u16 = 1080; +const IO_TIMEOUT: Duration = Duration::from_secs(10); pub struct Stats { pub running: AtomicBool, pub active: AtomicU32, pub total: AtomicU32, pub ws: AtomicU32, - pub last_dc: AtomicU8, + pub last_dc: AtomicU16, + pub ws_failures: AtomicU32, + /// See `transport::RouteKind::ui_code`. + pub last_route: AtomicU8, + transport: crate::transport::TransportEngine, + secret: [u8; 16], + shutdown: Mutex>>, } impl Stats { @@ -24,9 +30,43 @@ impl Stats { active: AtomicU32::new(0), total: AtomicU32::new(0), ws: AtomicU32::new(0), - last_dc: AtomicU8::new(0), + last_dc: AtomicU16::new(0), + ws_failures: AtomicU32::new(0), + last_route: AtomicU8::new(0), + transport: crate::transport::TransportEngine::new(), + secret: initial_secret(), + shutdown: Mutex::new(None), }) } + + pub fn telegram_secret(&self) -> String { + crate::mtproto::telegram_secret(&self.secret) + } + + pub fn set_worker_domain(&self, domain: &str) { + let domains = domain + .split([',', ';', ' ']) + .filter(|value| !value.trim().is_empty()) + .map(str::to_owned) + .collect::>(); + self.transport.set_worker_domains(&domains); + } + + pub fn stop(&self) { + if let Some(sender) = self.shutdown.lock().unwrap().take() { + let _ = sender.send(true); + } + } +} + +#[cfg(not(test))] +fn initial_secret() -> [u8; 16] { + crate::mtproto::load_or_create_secret() +} + +#[cfg(test)] +fn initial_secret() -> [u8; 16] { + crate::mtproto::generate_secret() } pub async fn run(stats: Arc, lan: bool, port: u16) -> Result<(), String> { @@ -37,25 +77,38 @@ pub async fn run(stats: Arc, lan: bool, port: u16) -> Result<(), String> .map_err(|e| format!("Port {} busy: {}", port, e))?; stats.running.store(true, Ordering::SeqCst); + let (shutdown_tx, mut shutdown_rx) = tokio::sync::watch::channel(false); + *stats.shutdown.lock().unwrap() = Some(shutdown_tx); + let mut tasks = tokio::task::JoinSet::new(); loop { - if !stats.running.load(Ordering::SeqCst) { - break; - } tokio::select! { - Ok((stream, _)) = listener.accept() => { - let s = stats.clone(); - s.active.fetch_add(1, Ordering::Relaxed); - s.total.fetch_add(1, Ordering::Relaxed); - tokio::spawn(async move { - let _ = handle(stream, &s).await; - s.active.fetch_sub(1, Ordering::Relaxed); - }); + result = listener.accept() => { + match result { + Ok((stream, _)) => { + let s = stats.clone(); + s.active.fetch_add(1, Ordering::Relaxed); + s.total.fetch_add(1, Ordering::Relaxed); + tasks.spawn(async move { + let _ = handle(stream, &s, !lan).await; + s.active.fetch_sub(1, Ordering::Relaxed); + }); + } + Err(error) => { + stats.running.store(false, Ordering::SeqCst); + return Err(format!("Accept failed: {}", error)); + } + } } - _ = tokio::time::sleep(Duration::from_millis(150)) => {} + _ = shutdown_rx.changed() => break, + Some(_) = tasks.join_next(), if !tasks.is_empty() => {} } } + tasks.abort_all(); + while tasks.join_next().await.is_some() {} + stats.active.store(0, Ordering::Relaxed); + stats.ws.store(0, Ordering::Relaxed); stats.running.store(false, Ordering::SeqCst); Ok(()) } @@ -63,79 +116,179 @@ pub async fn run(stats: Arc, lan: bool, port: u16) -> Result<(), String> // -- SOCKS5 ----------------------------------------------------------------- async fn handle( + s: TcpStream, + stats: &Stats, + allow_direct: bool, +) -> Result<(), Box> { + let mut first = [0; 1]; + let peeked = tokio::time::timeout(IO_TIMEOUT, s.peek(&mut first)) + .await + .map_err(|_| "client protocol detection timeout")??; + if peeked == 0 { + return Ok(()); + } + if first[0] == 0x05 { + handle_socks5(s, stats, allow_direct).await + } else { + handle_mtproto(s, stats).await + } +} + +async fn handle_socks5( mut s: TcpStream, stats: &Stats, + allow_direct: bool, ) -> Result<(), Box> { s.set_nodelay(true)?; - let mut buf = [0u8; 258]; - let n = s.read(&mut buf).await?; - if n < 2 || buf[0] != 0x05 { - return Err("not socks5".into()); - } - s.write_all(&[0x05, 0x00]).await?; - - let n = s.read(&mut buf).await?; - if n < 7 || buf[0] != 0x05 || buf[1] != 0x01 { - s.write_all(&[0x05, 0x07, 0x00, 0x01, 0, 0, 0, 0, 0, 0]).await?; - return Err("bad connect".into()); - } - - let (addr, port) = parse_addr(&buf[3..n])?; + let (addr, port) = tokio::time::timeout(IO_TIMEOUT, read_socks5_request(&mut s)) + .await + .map_err(|_| "SOCKS5 handshake timeout")??; let tg = addr.parse::().ok().and_then(dc_from_ip).is_some(); + if !tg && !allow_direct { + write_socks_reply(&mut s, 0x02).await?; + return Err("LAN mode only permits Telegram destinations".into()); + } // success reply - s.write_all(&[0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x04, 0x38]).await?; + s.write_all(&[0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x04, 0x38]) + .await?; if tg { // Read 64-byte obfuscated2 init → extract real DC let mut init = [0u8; 64]; s.read_exact(&mut init).await?; - let dc = dc_from_init(&init).unwrap_or_else(|| { - addr.parse::().ok().and_then(dc_from_ip).unwrap_or(2) + let (dc, media) = dc_from_init(&init).unwrap_or_else(|| { + addr.parse::() + .ok() + .and_then(dc_from_ip) + .map_or((2, false), |dc| (dc, false)) }); stats.last_dc.store(dc, Ordering::Relaxed); stats.ws.fetch_add(1, Ordering::Relaxed); - let r = ws_tunnel(s, dc, &init).await; + let r = ws_tunnel(s, dc, media, &init, None, stats).await; stats.ws.fetch_sub(1, Ordering::Relaxed); + if r.is_err() { + stats.ws_failures.fetch_add(1, Ordering::Relaxed); + } r?; } else { - let remote = TcpStream::connect(format!("{}:{}", addr, port)).await?; + let remote = tokio::time::timeout(IO_TIMEOUT, TcpStream::connect((addr.as_str(), port))) + .await + .map_err(|_| "direct connection timeout")??; let _ = remote.set_nodelay(true); tcp_relay(s, remote).await; } Ok(()) } -fn parse_addr(d: &[u8]) -> Result<(String, u16), Box> { - match d[0] { - 0x01 if d.len() >= 7 => { - Ok((format!("{}.{}.{}.{}", d[1], d[2], d[3], d[4]), - u16::from_be_bytes([d[5], d[6]]))) +async fn handle_mtproto( + mut stream: TcpStream, + stats: &Stats, +) -> Result<(), Box> { + stream.set_nodelay(true)?; + let mut init = [0; 64]; + tokio::time::timeout(IO_TIMEOUT, stream.read_exact(&mut init)) + .await + .map_err(|_| "MTProto init timeout")??; + let parsed = crate::mtproto::parse_client_init(&init, &stats.secret) + .ok_or("invalid MTProto init or secret")?; + + stats.last_dc.store(parsed.dc, Ordering::Relaxed); + stats.ws.fetch_add(1, Ordering::Relaxed); + let result = ws_tunnel( + stream, + parsed.dc, + parsed.media, + &parsed.relay_init, + Some(parsed.crypto), + stats, + ) + .await; + stats.ws.fetch_sub(1, Ordering::Relaxed); + if result.is_err() { + stats.ws_failures.fetch_add(1, Ordering::Relaxed); + } + result +} + +async fn read_socks5_request( + stream: &mut S, +) -> Result<(String, u16), Box> +where + S: AsyncRead + AsyncWrite + Unpin, +{ + let version = stream.read_u8().await?; + let method_count = stream.read_u8().await? as usize; + if version != 0x05 || method_count == 0 { + return Err("invalid SOCKS5 greeting".into()); + } + + let mut methods = vec![0; method_count]; + stream.read_exact(&mut methods).await?; + if !methods.contains(&0x00) { + stream.write_all(&[0x05, 0xff]).await?; + return Err("SOCKS5 client does not support no-auth mode".into()); + } + stream.write_all(&[0x05, 0x00]).await?; + + let version = stream.read_u8().await?; + let command = stream.read_u8().await?; + let reserved = stream.read_u8().await?; + let address_type = stream.read_u8().await?; + if version != 0x05 || reserved != 0 { + return Err("invalid SOCKS5 request".into()); + } + if command != 0x01 { + write_socks_reply(stream, 0x07).await?; + return Err("unsupported SOCKS5 command".into()); + } + + let address = match address_type { + 0x01 => { + let mut octets = [0; 4]; + stream.read_exact(&mut octets).await?; + Ipv4Addr::from(octets).to_string() } 0x03 => { - let l = d[1] as usize; - if d.len() < 2 + l + 2 { return Err("short".into()); } - Ok((std::str::from_utf8(&d[2..2 + l])?.into(), - u16::from_be_bytes([d[2 + l], d[3 + l]]))) + let length = stream.read_u8().await? as usize; + if length == 0 { + return Err("empty SOCKS5 domain".into()); + } + let mut domain = vec![0; length]; + stream.read_exact(&mut domain).await?; + String::from_utf8(domain)? } - 0x04 if d.len() >= 19 => { - let mut seg = [0u16; 8]; - for i in 0..8 { seg[i] = u16::from_be_bytes([d[1 + i * 2], d[2 + i * 2]]); } - let ip = std::net::Ipv6Addr::new(seg[0],seg[1],seg[2],seg[3],seg[4],seg[5],seg[6],seg[7]); - Ok((ip.to_string(), u16::from_be_bytes([d[17], d[18]]))) + 0x04 => { + let mut octets = [0; 16]; + stream.read_exact(&mut octets).await?; + std::net::Ipv6Addr::from(octets).to_string() } - _ => Err("bad addr".into()), - } + _ => { + write_socks_reply(stream, 0x08).await?; + return Err("unsupported SOCKS5 address type".into()); + } + }; + let port = stream.read_u16().await?; + Ok((address, port)) +} + +async fn write_socks_reply(stream: &mut S, status: u8) -> std::io::Result<()> +where + S: AsyncWrite + Unpin, +{ + stream + .write_all(&[0x05, status, 0x00, 0x01, 127, 0, 0, 1, 0, 0]) + .await } // -- DC detection ----------------------------------------------------------- -fn dc_from_init(init: &[u8; 64]) -> Option { +fn dc_from_init(init: &[u8; 64]) -> Option<(u16, bool)> { use aes::Aes256; use cipher::{KeyIvInit, StreamCipher}; type Ctr = ctr::Ctr128BE; @@ -144,47 +297,49 @@ fn dc_from_init(init: &[u8; 64]) -> Option { let mut c = Ctr::new(init[8..40].into(), init[40..56].into()); c.apply_keystream(&mut dec); - let id = i32::from_le_bytes([dec[60], dec[61], dec[62], dec[63]]); - let dc = id.unsigned_abs() as u8; - (1..=5).contains(&dc).then_some(dc) + let id = i16::from_le_bytes([dec[60], dec[61]]); + let dc = id.unsigned_abs(); + matches!(dc, 1..=5 | 203).then_some((dc, id < 0)) } -fn dc_from_ip(ip: Ipv4Addr) -> Option { +fn dc_from_ip(ip: Ipv4Addr) -> Option { let o = ip.octets(); match (o[0], o[1]) { - (149, 154) => Some(match o[2] { 160..=163 => 1, 164..=167 => 2, 168..=171 => 3, 172..=175 => 1, _ => 2 }), - (91, 108) => Some(match o[2] { 56..=59 => 5, 8..=11 => 3, 12..=15 => 4, _ => 2 }), + (149, 154) => Some(match o[2] { + 160..=163 => 1, + 164..=167 => 2, + 168..=171 => 3, + 172..=175 => 1, + _ => 2, + }), + (91, 108) => Some(match o[2] { + 56..=59 => 5, + 8..=11 => 3, + 12..=15 => 4, + _ => 2, + }), + (91, 105) if o[2] == 192 => Some(203), (91, 105) | (185, 76) => Some(2), _ => None, } } -fn ws_url(dc: u8) -> String { - format!("wss://kws{}.web.telegram.org/apiws", dc) -} - // -- WebSocket tunnel ------------------------------------------------------- async fn ws_tunnel( tcp: TcpStream, - dc: u8, + dc: u16, + media: bool, init: &[u8; 64], + mut crypto: Option, + stats: &Stats, ) -> Result<(), Box> { use futures_util::{SinkExt, StreamExt}; - let mut req = ws_url(dc).as_str().into_client_request()?; - req.headers_mut().insert("Sec-WebSocket-Protocol", "binary".parse()?); - - let tls = native_tls::TlsConnector::new().map_err(|e| format!("tls: {}", e))?; - let connector = tokio_tungstenite::Connector::NativeTls(tls); - - let (mut ws, _) = tokio::time::timeout( - Duration::from_secs(10), - tokio_tungstenite::connect_async_tls_with_config(req, None, false, Some(connector)), - ) - .await - .map_err(|_| "WS connect timeout")? - .map_err(|e| format!("WS: {}", e))?; + let (mut ws, connected) = stats.transport.connect(dc, media).await?; + stats + .last_route + .store(connected.route.kind.ui_code(), Ordering::Relaxed); let (mut tcp_r, mut tcp_w) = tokio::io::split(tcp); @@ -198,7 +353,10 @@ async fn ws_tunnel( biased; msg = ws.next() => match msg { - Some(Ok(tungstenite::Message::Binary(data))) => { + Some(Ok(tungstenite::Message::Binary(mut data))) => { + if let Some(crypto) = &mut crypto { + crypto.telegram_to_client(data.as_mut()); + } tcp_w.write_all(data.as_ref()).await?; tcp_w.flush().await?; } @@ -213,6 +371,9 @@ async fn ws_tunnel( n = tcp_r.read(&mut buf) => match n { Ok(0) | Err(_) => break, Ok(n) => { + if let Some(crypto) = &mut crypto { + crypto.client_to_telegram(&mut buf[..n]); + } ws.send(tungstenite::Message::Binary(buf[..n].to_vec())).await?; } }, @@ -231,3 +392,113 @@ async fn tcp_relay(a: TcpStream, b: TcpStream) { _ = tokio::io::copy(&mut br, &mut aw) => {} } } + +#[cfg(test)] +mod tests { + use super::*; + use tokio::io::{AsyncReadExt, AsyncWriteExt}; + + #[tokio::test] + async fn parses_fragmented_ipv4_socks5_handshake() { + let (mut client, mut server) = tokio::io::duplex(64); + let server_task = + tokio::spawn(async move { read_socks5_request(&mut server).await.unwrap() }); + + for part in [&[0x05][..], &[0x01, 0x00]] { + client.write_all(part).await.unwrap(); + tokio::task::yield_now().await; + } + let mut method_reply = [0; 2]; + client.read_exact(&mut method_reply).await.unwrap(); + assert_eq!(method_reply, [0x05, 0x00]); + + for byte in [0x05, 0x01, 0x00, 0x01, 149, 154, 167, 50, 0x01, 0xbb] { + client.write_all(&[byte]).await.unwrap(); + tokio::task::yield_now().await; + } + + assert_eq!( + server_task.await.unwrap(), + ("149.154.167.50".to_owned(), 443) + ); + } + + #[tokio::test] + async fn rejects_auth_only_clients() { + let (mut client, mut server) = tokio::io::duplex(16); + let server_task = + tokio::spawn(async move { read_socks5_request(&mut server).await.is_err() }); + client.write_all(&[0x05, 0x01, 0x02]).await.unwrap(); + let mut reply = [0; 2]; + client.read_exact(&mut reply).await.unwrap(); + assert_eq!(reply, [0x05, 0xff]); + assert!(server_task.await.unwrap()); + } + + #[test] + fn maps_known_telegram_networks_to_dc() { + assert_eq!(dc_from_ip("149.154.160.1".parse().unwrap()), Some(1)); + assert_eq!(dc_from_ip("149.154.167.255".parse().unwrap()), Some(2)); + assert_eq!(dc_from_ip("91.108.58.1".parse().unwrap()), Some(5)); + assert_eq!(dc_from_ip("1.1.1.1".parse().unwrap()), None); + } + + #[tokio::test] + async fn stops_listener_and_active_tasks_cleanly() { + let reservation = std::net::TcpListener::bind("127.0.0.1:0").unwrap(); + let port = reservation.local_addr().unwrap().port(); + drop(reservation); + + let stats = Stats::new(); + let server_stats = stats.clone(); + let server = tokio::spawn(async move { run(server_stats, false, port).await }); + + tokio::time::timeout(Duration::from_secs(2), async { + while !stats.running.load(Ordering::SeqCst) { + tokio::task::yield_now().await; + } + }) + .await + .unwrap(); + + stats.stop(); + assert!(tokio::time::timeout(Duration::from_secs(2), server) + .await + .unwrap() + .unwrap() + .is_ok()); + assert!(!stats.running.load(Ordering::SeqCst)); + } + + #[tokio::test] + #[ignore = "requires live Telegram network access"] + async fn accepts_mtproto_and_builds_live_media_tunnel() { + let reservation = std::net::TcpListener::bind("127.0.0.1:0").unwrap(); + let port = reservation.local_addr().unwrap().port(); + drop(reservation); + + let stats = Stats::new(); + let server_stats = stats.clone(); + let server = tokio::spawn(async move { run(server_stats, false, port).await }); + while !stats.running.load(Ordering::SeqCst) { + tokio::task::yield_now().await; + } + + let mut client = TcpStream::connect(("127.0.0.1", port)).await.unwrap(); + let init = crate::mtproto::test_client_init(&stats.secret, -4); + client.write_all(&init).await.unwrap(); + + tokio::time::timeout(Duration::from_secs(10), async { + while stats.last_route.load(Ordering::Relaxed) == 0 { + tokio::task::yield_now().await; + } + }) + .await + .unwrap(); + assert_eq!(stats.last_dc.load(Ordering::Relaxed), 4); + assert_eq!(stats.ws_failures.load(Ordering::Relaxed), 0); + + stats.stop(); + server.await.unwrap().unwrap(); + } +} diff --git a/src/transport.rs b/src/transport.rs new file mode 100644 index 0000000..b20c370 --- /dev/null +++ b/src/transport.rs @@ -0,0 +1,386 @@ +use std::collections::HashMap; +use std::sync::Mutex; +use std::time::{Duration, Instant}; + +use tokio::net::TcpStream; +use tokio_tungstenite::tungstenite::client::IntoClientRequest; +use tokio_tungstenite::{MaybeTlsStream, WebSocketStream}; + +const CONNECT_TIMEOUT: Duration = Duration::from_secs(4); +const FAILURE_BACKOFF_INITIAL: Duration = Duration::from_secs(30); +const FAILURE_BACKOFF_MAX: Duration = Duration::from_secs(30 * 60); + +pub type TelegramWebSocket = WebSocketStream>; + +#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] +pub enum RouteKind { + TelegramIp, + AlternateTelegramIp, + SystemDns, + CloudflareWorker, +} + +impl RouteKind { + pub fn ui_code(self) -> u8 { + match self { + Self::TelegramIp => 1, + Self::AlternateTelegramIp => 2, + Self::SystemDns => 3, + Self::CloudflareWorker => 4, + } + } +} + +#[derive(Clone, Debug, Eq, Hash, PartialEq)] +pub struct Route { + pub connect_host: String, + pub websocket_host: String, + pub path: String, + pub kind: RouteKind, +} + +#[derive(Clone, Debug)] +pub struct ConnectedRoute { + pub route: Route, +} + +#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] +struct DcKey { + dc: u16, + media: bool, +} + +#[derive(Clone, Copy, Debug)] +struct RouteHealth { + failures: u32, + retry_at: Instant, +} + +#[derive(Default)] +struct HealthState { + routes: HashMap, + preferred: HashMap, +} + +#[derive(Default)] +pub struct TransportEngine { + health: Mutex, + worker_domains: Mutex>, +} + +impl TransportEngine { + pub fn new() -> Self { + Self::default() + } + + pub fn set_worker_domains(&self, domains: &[String]) { + let mut normalized = Vec::new(); + for domain in domains { + let domain = domain.trim().to_ascii_lowercase(); + if valid_domain(&domain) && !normalized.contains(&domain) { + normalized.push(domain); + } + } + *self.worker_domains.lock().unwrap() = normalized; + } + + pub async fn connect( + &self, + dc: u16, + media: bool, + ) -> Result<(TelegramWebSocket, ConnectedRoute), String> { + let key = DcKey { dc, media }; + let candidates = self.ordered_candidates(key); + let mut errors = Vec::new(); + + for route in candidates { + match connect_route(&route).await { + Ok(websocket) => { + self.record_success(key, &route); + return Ok((websocket, ConnectedRoute { route })); + } + Err(error) => { + self.record_failure(&route); + errors.push(format!( + "{} via {}: {}", + route.websocket_host, route.connect_host, error + )); + } + } + } + + Err(format!( + "all Telegram routes for DC{}{} failed: {}", + dc, + if media { " media" } else { "" }, + errors.join("; ") + )) + } + + fn ordered_candidates(&self, key: DcKey) -> Vec { + let now = Instant::now(); + let all_routes = self.routes_for_key(key); + let health = self.health.lock().unwrap(); + let preferred = health.preferred.get(&key); + let mut candidates: Vec<_> = all_routes + .iter() + .filter(|route| { + health + .routes + .get(route) + .is_none_or(|route_health| route_health.retry_at <= now) + }) + .cloned() + .collect(); + + candidates.sort_by_key(|route| { + let preferred_rank = u8::from(preferred != Some(route)); + let kind_rank = match route.kind { + RouteKind::TelegramIp => 0, + RouteKind::AlternateTelegramIp => 1, + RouteKind::SystemDns => 2, + RouteKind::CloudflareWorker => 3, + }; + (preferred_rank, kind_rank) + }); + + // If every route is cooling down, retry the one that becomes available first. + if candidates.is_empty() { + if let Some((route, _)) = health + .routes + .iter() + .filter(|(route, _)| all_routes.contains(route)) + .min_by_key(|(_, route_health)| route_health.retry_at) + { + candidates.push(route.clone()); + } + } + candidates + } + + fn routes_for_key(&self, key: DcKey) -> Vec { + let mut routes = routes_for_dc(key.dc, key.media); + let Some(destination) = telegram_ips(key.dc).first() else { + return routes; + }; + for domain in self.worker_domains.lock().unwrap().iter() { + routes.push(Route { + connect_host: domain.clone(), + websocket_host: domain.clone(), + path: format!("/apiws?dst={}&dc={}", destination, key.dc), + kind: RouteKind::CloudflareWorker, + }); + } + routes + } + + fn record_success(&self, key: DcKey, route: &Route) { + let mut health = self.health.lock().unwrap(); + health.routes.remove(route); + health.preferred.insert(key, route.clone()); + } + + fn record_failure(&self, route: &Route) { + let mut health = self.health.lock().unwrap(); + let failures = health + .routes + .get(route) + .map_or(1, |route_health| route_health.failures.saturating_add(1)); + let exponent = failures.saturating_sub(1).min(6); + let delay = FAILURE_BACKOFF_INITIAL + .saturating_mul(2_u32.pow(exponent)) + .min(FAILURE_BACKOFF_MAX); + health.routes.insert( + route.clone(), + RouteHealth { + failures, + retry_at: Instant::now() + delay, + }, + ); + } +} + +fn canonical_dc(dc: u16) -> u16 { + if dc == 203 { + 2 + } else { + dc + } +} + +fn telegram_ips(dc: u16) -> &'static [&'static str] { + match dc { + 1 => &["149.154.175.50"], + 2 => &["149.154.167.51", "149.154.167.220"], + 3 => &["149.154.175.100"], + 4 => &["149.154.167.91", "149.154.167.220"], + 5 => &["149.154.171.5"], + 203 => &["91.105.192.100"], + _ => &[], + } +} + +pub fn routes_for_dc(dc: u16, media: bool) -> Vec { + let websocket_dc = canonical_dc(dc); + let primary = format!("kws{}.web.telegram.org", websocket_dc); + let secondary = format!("kws{}-1.web.telegram.org", websocket_dc); + let websocket_hosts = if media { + [secondary, primary] + } else { + [primary, secondary] + }; + let ips = telegram_ips(dc); + let mut routes = Vec::new(); + + for websocket_host in &websocket_hosts { + for (index, ip) in ips.iter().enumerate() { + routes.push(Route { + connect_host: (*ip).to_owned(), + websocket_host: websocket_host.clone(), + path: "/apiws".to_owned(), + kind: if index == 0 { + RouteKind::TelegramIp + } else { + RouteKind::AlternateTelegramIp + }, + }); + } + routes.push(Route { + connect_host: websocket_host.clone(), + websocket_host: websocket_host.clone(), + path: "/apiws".to_owned(), + kind: RouteKind::SystemDns, + }); + } + routes +} + +async fn connect_route(route: &Route) -> Result { + let tcp = tokio::time::timeout( + CONNECT_TIMEOUT, + TcpStream::connect((route.connect_host.as_str(), 443)), + ) + .await + .map_err(|_| "TCP connect timeout".to_owned())? + .map_err(|error| format!("TCP connect: {}", error))?; + tcp.set_nodelay(true) + .map_err(|error| format!("TCP_NODELAY: {}", error))?; + + let url = format!("wss://{}{}", route.websocket_host, route.path); + let mut request = url + .as_str() + .into_client_request() + .map_err(|error| format!("WebSocket request: {}", error))?; + request.headers_mut().insert( + "Sec-WebSocket-Protocol", + "binary" + .parse() + .map_err(|error| format!("WebSocket protocol header: {}", error))?, + ); + + // The URI host remains the real Telegram hostname even when the TCP socket + // is opened to a pinned IP. Native TLS therefore validates Telegram's + // certificate and sends the correct SNI. + let tls = native_tls::TlsConnector::new().map_err(|error| format!("TLS setup: {}", error))?; + let connector = tokio_tungstenite::Connector::NativeTls(tls); + tokio::time::timeout( + CONNECT_TIMEOUT, + tokio_tungstenite::client_async_tls_with_config(request, tcp, None, Some(connector)), + ) + .await + .map_err(|_| "TLS/WebSocket timeout".to_owned())? + .map(|(websocket, _)| websocket) + .map_err(|error| format!("TLS/WebSocket handshake: {}", error)) +} + +fn valid_domain(domain: &str) -> bool { + if domain.is_empty() || domain.len() > 253 || !domain.contains('.') { + return false; + } + domain.split('.').all(|label| { + !label.is_empty() + && label.len() <= 63 + && !label.starts_with('-') + && !label.ends_with('-') + && label + .chars() + .all(|character| character.is_ascii_alphanumeric() || character == '-') + }) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn media_prefers_dash_one_websocket_host() { + let routes = routes_for_dc(2, true); + assert_eq!(routes[0].websocket_host, "kws2-1.web.telegram.org"); + assert_eq!(routes[0].connect_host, "149.154.167.51"); + } + + #[test] + fn dc203_uses_dc2_websocket_and_its_own_ip() { + let routes = routes_for_dc(203, false); + assert_eq!(routes[0].websocket_host, "kws2.web.telegram.org"); + assert_eq!(routes[0].connect_host, "91.105.192.100"); + } + + #[test] + fn successful_route_becomes_preferred() { + let engine = TransportEngine::new(); + let key = DcKey { + dc: 2, + media: false, + }; + let preferred = routes_for_dc(2, false)[2].clone(); + engine.record_success(key, &preferred); + assert_eq!(engine.ordered_candidates(key)[0], preferred); + } + + #[test] + fn failed_route_enters_cooldown() { + let engine = TransportEngine::new(); + let key = DcKey { + dc: 2, + media: false, + }; + let failed = routes_for_dc(2, false)[0].clone(); + engine.record_failure(&failed); + assert!(!engine.ordered_candidates(key).contains(&failed)); + } + + #[test] + fn worker_is_explicit_and_validated() { + let engine = TransportEngine::new(); + engine.set_worker_domains(&[ + "Example.User.Workers.dev".to_owned(), + "https://invalid.example/path".to_owned(), + ]); + let routes = engine.routes_for_key(DcKey { dc: 4, media: true }); + let worker = routes + .iter() + .find(|route| route.kind == RouteKind::CloudflareWorker) + .unwrap(); + assert_eq!(worker.websocket_host, "example.user.workers.dev"); + assert_eq!(worker.path, "/apiws?dst=149.154.167.91&dc=4"); + assert_eq!( + routes + .iter() + .filter(|route| route.kind == RouteKind::CloudflareWorker) + .count(), + 1 + ); + } + + #[tokio::test] + #[ignore = "requires live Telegram network access"] + async fn connects_to_all_production_data_centers() { + let engine = TransportEngine::new(); + for dc in [1, 2, 3, 4, 5, 203] { + let (mut websocket, connected) = engine.connect(dc, false).await.unwrap(); + assert!(!connected.route.websocket_host.is_empty()); + websocket.close(None).await.unwrap(); + } + } +} diff --git a/tauri.conf.json b/tauri.conf.json new file mode 100644 index 0000000..4e4ce3b --- /dev/null +++ b/tauri.conf.json @@ -0,0 +1,43 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "productName": "TGLock", + "version": "2.0.0-beta.1", + "identifier": "com.bysonic.tglock", + "build": { + "beforeDevCommand": "npm run dev", + "devUrl": "http://localhost:1420", + "beforeBuildCommand": "npm run build", + "frontendDist": "dist-ui" + }, + "app": { + "windows": [ + { + "label": "main", + "title": "TGLock", + "width": 460, + "height": 620, + "minWidth": 460, + "minHeight": 620, + "resizable": false, + "fullscreen": false, + "center": true, + "backgroundColor": "#070A10", + "titleBarStyle": "Overlay", + "hiddenTitle": true + } + ], + "security": { + "csp": "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src ipc: http://ipc.localhost" + } + }, + "bundle": { + "active": true, + "targets": ["app", "dmg"], + "category": "Utility", + "shortDescription": "Telegram connectivity through a local MTProto proxy", + "longDescription": "TGLock restores Telegram connectivity through an adaptive WebSocket tunnel.", + "macOS": { + "minimumSystemVersion": "11.0" + } + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..adf624d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ES2022", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + "moduleResolution": "Bundler", + "allowImportingTsExtensions": false, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "strict": true + }, + "include": ["ui"] +} diff --git a/ui/main.ts b/ui/main.ts new file mode 100644 index 0000000..807307d --- /dev/null +++ b/ui/main.ts @@ -0,0 +1,383 @@ +import { invoke } from "@tauri-apps/api/core"; +import "./styles.css"; + +type View = "home" | "settings" | "diagnostics"; + +type Status = { + running: boolean; + activeConnections: number; + tunnels: number; + dataCenter: number | null; + route: string; + failures: number; + uptimeSeconds: number; + port: number; + logs: LogLine[]; +}; + +type LogLine = { + timestamp: string; + message: string; + error: boolean; +}; + +type Settings = { + lanMode: boolean; + port: number; + workerDomain: string; +}; + +const root = document.querySelector("#app")!; + +let view: View = "home"; +let status: Status = { + running: false, + activeConnections: 0, + tunnels: 0, + dataCenter: null, + route: "Автоматический маршрут", + failures: 0, + uptimeSeconds: 0, + port: 1080, + logs: [], +}; +let settings: Settings = { lanMode: false, port: 1080, workerDomain: "" }; +let busy = false; +let toastTimer: number | undefined; + +const icons = { + arrowLeft: ``, + settings: ``, + activity: ``, + plane: ``, +}; + +function escapeHtml(value: string): string { + return value + .replaceAll("&", "&") + .replaceAll("<", "<") + .replaceAll(">", ">") + .replaceAll('"', """); +} + +function formatUptime(seconds: number): string { + const hours = Math.floor(seconds / 3600); + const minutes = Math.floor((seconds % 3600) / 60); + const rest = seconds % 60; + return [hours, minutes, rest].map((value) => value.toString().padStart(2, "0")).join(":"); +} + +function connectionState(): { title: string; subtitle: string; className: string } { + if (!status.running) { + return { + title: "Защита выключена", + subtitle: "Нажмите кнопку, чтобы подключить Telegram", + className: "offline", + }; + } + if (status.failures > 0 && status.tunnels === 0) { + return { + title: "Ищем новый маршрут", + subtitle: "Переключаемся на резервное подключение", + className: "warning", + }; + } + if (status.tunnels > 0) { + return { + title: "Telegram на связи", + subtitle: "Соединение защищено и работает", + className: "online", + }; + } + return { + title: "Защита включена", + subtitle: "Откройте Telegram — маршрут готов", + className: "online", + }; +} + +function shell(content: string, pageClass = ""): string { + return ` +
+
+ ${content} +
+
+ `; +} + +function renderHome(): void { + const connection = connectionState(); + root.innerHTML = shell(` +
+
+
TGLock
+

Свободный Telegram. В один клик.

+
+ +
+
+
+
+
+
+ ${icons.plane} +
+
+
+
+ +

${connection.title}

+
+

${connection.subtitle}

+
+
+ + + +
+ + ${escapeHtml(status.route)} + · + порт ${status.port} +
+ + +
+ `, "home-page"); + + document.querySelector("#power")?.addEventListener("click", toggleProtection); + document.querySelector("#settings-nav")?.addEventListener("click", () => navigate("settings")); + document.querySelector("#diagnostics-nav")?.addEventListener("click", () => navigate("diagnostics")); +} + +function pageHeader(title: string, subtitle: string): string { + return ` + + `; +} + +function renderSettings(): void { + root.innerHTML = shell(` +
+ ${pageHeader("Настройки", "Подключение и локальная сеть")} + +
+
+ + +

Необязательно. Используется как резервный маршрут.

+
+ +
+ +
+ +
+ + ${status.running ? `
Выключите защиту, чтобы изменить настройки
` : ""} + + +
+
+ `, "subpage-shell"); + + document.querySelector("#back")?.addEventListener("click", () => navigate("home")); + document.querySelector("#settings-form")?.addEventListener("submit", saveSettings); +} + +function renderDiagnostics(): void { + const recentLogs = status.logs.slice(-4).reverse(); + root.innerHTML = shell(` +
+ ${pageHeader("Диагностика", "Состояние маршрута в реальном времени")} + +
+ +
+ ${status.running ? "Сервис работает" : "Сервис остановлен"} + ${status.running ? "Локальный прокси принимает подключения" : "Включите защиту на главном экране"} +
+
+ +
+
+ Соединения + ${status.activeConnections} +
+
+ Туннели + ${status.tunnels} +
+
+ Дата-центр + ${status.dataCenter ? `DC${status.dataCenter}` : "—"} +
+
+ Время работы + ${formatUptime(status.uptimeSeconds)} +
+
+ +
+
+ Последние события + LIVE +
+
+ ${recentLogs.length + ? recentLogs + .map( + (line) => ` +
+ + ${escapeHtml(line.message)} +
`, + ) + .join("") + : `
События появятся после включения защиты
`} +
+
+
+ `, "subpage-shell"); + + document.querySelector("#back")?.addEventListener("click", () => navigate("home")); +} + +function render(): void { + if (view === "settings") renderSettings(); + else if (view === "diagnostics") renderDiagnostics(); + else renderHome(); +} + +function navigate(next: View): void { + view = next; + render(); +} + +async function refreshStatus(): Promise { + try { + status = await invoke("get_status"); + if (view !== "settings") render(); + } catch (error) { + showToast(String(error), true); + } +} + +async function toggleProtection(): Promise { + if (busy) return; + busy = true; + renderHome(); + try { + status = status.running + ? await invoke("stop_proxy") + : await invoke("start_proxy"); + } catch (error) { + showToast(String(error), true); + } finally { + busy = false; + await refreshStatus(); + } +} + +async function saveSettings(event: Event): Promise { + event.preventDefault(); + if (busy || status.running) return; + const worker = document.querySelector("#worker"); + const lanMode = document.querySelector("#lan-mode"); + const port = document.querySelector("#port"); + if (!worker || !lanMode || !port) return; + + const parsedPort = Number(port.value); + if (!Number.isInteger(parsedPort) || parsedPort < 1 || parsedPort > 65535) { + showToast("Порт должен быть от 1 до 65535", true); + return; + } + + busy = true; + settings = { + workerDomain: worker.value.trim(), + lanMode: lanMode.checked, + port: parsedPort, + }; + renderSettings(); + try { + settings = await invoke("save_settings", { settings }); + showToast("Настройки сохранены"); + window.setTimeout(() => navigate("home"), 350); + } catch (error) { + showToast(String(error), true); + } finally { + busy = false; + } +} + +function showToast(message: string, error = false): void { + window.clearTimeout(toastTimer); + window.requestAnimationFrame(() => { + const toast = document.querySelector("#toast"); + if (!toast) return; + toast.textContent = message.replace(/^["']|["']$/g, ""); + toast.className = `toast visible${error ? " error" : ""}`; + toastTimer = window.setTimeout(() => toast.classList.remove("visible"), 2800); + }); +} + +async function bootstrap(): Promise { + try { + [status, settings] = await Promise.all([ + invoke("get_status"), + invoke("get_settings"), + ]); + } catch { + // The browser preview intentionally uses the initial local state. + } + render(); + window.setInterval(refreshStatus, 1000); +} + +void bootstrap(); diff --git a/ui/styles.css b/ui/styles.css new file mode 100644 index 0000000..b4f274c --- /dev/null +++ b/ui/styles.css @@ -0,0 +1,849 @@ +:root { + color-scheme: dark; + font-family: + Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", + "Segoe UI", sans-serif; + font-synthesis: none; + text-rendering: geometricPrecision; + --bg: #070a10; + --panel: rgba(18, 24, 36, 0.78); + --panel-strong: #111827; + --line: rgba(148, 163, 184, 0.12); + --text: #f4f8ff; + --muted: #7e8ca3; + --blue: #45a9ff; + --blue-strong: #168dff; + --green: #55e7a6; + --red: #ff6b7d; +} + +* { + box-sizing: border-box; +} + +html, +body, +#app { + width: 100%; + height: 100%; + margin: 0; + overflow: hidden; +} + +body { + color: var(--text); + background: var(--bg); + user-select: none; +} + +button, +input { + font: inherit; +} + +button { + color: inherit; +} + +.app-shell { + position: relative; + width: 100%; + height: 100%; + overflow: hidden; + background: + radial-gradient(circle at 50% 31%, rgba(19, 116, 220, 0.16), transparent 34%), + radial-gradient(circle at 88% 4%, rgba(71, 119, 255, 0.08), transparent 30%), + linear-gradient(165deg, #0b1019 0%, #070a10 58%, #090d15 100%); +} + +.app-shell::before { + content: ""; + position: absolute; + inset: 0; + opacity: 0.13; + pointer-events: none; + background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); +} + +.drag-region { + position: absolute; + z-index: 10; + top: 0; + left: 0; + right: 0; + height: 38px; +} + +.home, +.subpage { + position: relative; + z-index: 1; + height: 100%; +} + +.home { + display: flex; + flex-direction: column; + align-items: center; + padding: 48px 34px 24px; +} + +.brand { + text-align: center; +} + +.wordmark { + font-size: 27px; + font-weight: 760; + letter-spacing: -1.1px; +} + +.wordmark span { + color: var(--blue); +} + +.brand p { + margin: 5px 0 0; + color: var(--muted); + font-size: 12px; + font-weight: 480; + letter-spacing: 0.08px; +} + +.hero { + display: flex; + flex-direction: column; + align-items: center; + margin-top: 24px; +} + +.orb-field { + position: relative; + display: grid; + width: 184px; + height: 184px; + place-items: center; +} + +.orb-field::before { + content: ""; + position: absolute; + width: 108px; + height: 108px; + border-radius: 50%; + background: rgba(35, 126, 221, 0.26); + filter: blur(30px); + transform: scale(1.25); + transition: background 500ms ease; +} + +.online .orb-field::before { + background: rgba(33, 203, 149, 0.28); +} + +.orbit { + position: absolute; + border: 1px solid rgba(83, 174, 255, 0.15); + border-radius: 50%; +} + +.orbit-one { + inset: 10px; + border-left-color: rgba(79, 172, 255, 0.48); + transform: rotate(-30deg); +} + +.orbit-two { + inset: 22px; + border-right-color: rgba(79, 172, 255, 0.34); + transform: rotate(22deg); +} + +.orb { + position: relative; + display: grid; + width: 112px; + height: 112px; + overflow: hidden; + color: white; + border: 1px solid rgba(137, 204, 255, 0.66); + border-radius: 50%; + place-items: center; + background: + linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 40%), + linear-gradient(145deg, #269fff, #0d5fbd); + box-shadow: + inset 0 1px 1px rgba(255, 255, 255, 0.38), + inset 0 -14px 28px rgba(1, 21, 56, 0.28), + 0 0 0 8px rgba(34, 129, 223, 0.06), + 0 18px 45px rgba(2, 90, 183, 0.34); + transition: filter 300ms ease, background 500ms ease; +} + +.offline .orb { + filter: saturate(0.44) brightness(0.72); +} + +.online .orb { + border-color: rgba(112, 245, 192, 0.72); + background: + linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 40%), + linear-gradient(145deg, #29c995, #087e78); + box-shadow: + inset 0 1px 1px rgba(255, 255, 255, 0.38), + inset 0 -14px 28px rgba(1, 46, 54, 0.28), + 0 0 0 8px rgba(34, 220, 157, 0.06), + 0 18px 45px rgba(9, 182, 133, 0.3); +} + +.orb svg { + z-index: 1; + width: 55px; + height: 55px; + transform: translate(-1px, 1px); + filter: drop-shadow(0 5px 10px rgba(0, 32, 75, 0.3)); +} + +.orb-shine { + position: absolute; + top: -34px; + left: 6px; + width: 96px; + height: 72px; + border-radius: 50%; + background: rgba(255, 255, 255, 0.11); + transform: rotate(-20deg); + filter: blur(5px); +} + +.connection-copy { + margin-top: 11px; + text-align: center; +} + +.status-line { + display: flex; + align-items: center; + justify-content: center; + gap: 9px; +} + +.status-line h1 { + margin: 0; + font-size: 19px; + font-weight: 680; + letter-spacing: -0.3px; +} + +.status-dot { + width: 7px; + height: 7px; + border-radius: 50%; + background: #526177; + box-shadow: 0 0 0 4px rgba(82, 97, 119, 0.11); +} + +.online .status-dot { + background: var(--green); + box-shadow: 0 0 12px rgba(85, 231, 166, 0.8); +} + +.warning .status-dot { + background: #ffbf5b; +} + +.connection-copy p { + margin: 6px 0 0; + color: var(--muted); + font-size: 11.5px; +} + +.power-button { + display: flex; + width: 100%; + height: 54px; + margin-top: 24px; + padding: 0 21px 0 25px; + cursor: pointer; + border: 1px solid rgba(118, 196, 255, 0.5); + border-radius: 16px; + align-items: center; + justify-content: space-between; + background: + linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent), + linear-gradient(135deg, #3eaaff, #1685ee); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.26), + 0 12px 28px rgba(7, 103, 204, 0.28); + font-size: 14px; + font-weight: 690; + transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease; +} + +.power-button:hover { + filter: brightness(1.08); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.26), + 0 14px 34px rgba(7, 103, 204, 0.38); +} + +.power-button:active { + transform: scale(0.985); +} + +.power-button.stop { + color: #c9d6e8; + border-color: rgba(148, 163, 184, 0.18); + background: rgba(26, 34, 48, 0.8); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); +} + +.power-button:disabled { + cursor: default; + opacity: 0.62; +} + +.button-arrow { + font-size: 20px; + font-weight: 400; +} + +.route-pill { + display: flex; + height: 30px; + margin-top: 12px; + padding: 0 12px; + color: #78879e; + border: 1px solid var(--line); + border-radius: 999px; + align-items: center; + gap: 7px; + background: rgba(17, 24, 37, 0.54); + font-size: 10px; +} + +.route-pulse { + width: 5px; + height: 5px; + border-radius: 50%; + background: var(--blue); + box-shadow: 0 0 8px rgba(69, 169, 255, 0.7); +} + +.route-separator { + opacity: 0.45; +} + +.bottom-nav { + display: flex; + width: 100%; + margin-top: auto; + padding: 11px 8px 3px; + border-top: 1px solid var(--line); + justify-content: center; +} + +.nav-button { + display: flex; + min-width: 134px; + height: 38px; + padding: 0 14px; + cursor: pointer; + color: #8694aa; + border: 0; + border-radius: 11px; + align-items: center; + justify-content: center; + gap: 8px; + background: transparent; + font-size: 11px; + transition: color 150ms ease, background 150ms ease; +} + +.nav-button:hover { + color: #cbd8ea; + background: rgba(255, 255, 255, 0.035); +} + +.nav-icon, +.banner-icon { + display: grid; + place-items: center; +} + +.nav-icon svg { + width: 17px; + height: 17px; + fill: none; + stroke: currentColor; + stroke-width: 1.6; + stroke-linecap: round; + stroke-linejoin: round; +} + +.nav-divider { + width: 1px; + height: 20px; + margin: 9px 5px; + background: var(--line); +} + +.subpage { + padding: 54px 30px 26px; +} + +.subpage-shell { + background: + radial-gradient(circle at 100% 0, rgba(32, 123, 220, 0.13), transparent 35%), + linear-gradient(165deg, #0b1019, #070a10); +} + +.page-header { + display: flex; + align-items: center; + gap: 14px; +} + +.back-button { + display: grid; + width: 38px; + height: 38px; + padding: 0; + cursor: pointer; + color: #bdc9da; + border: 1px solid var(--line); + border-radius: 12px; + place-items: center; + background: rgba(18, 26, 40, 0.72); + transition: background 150ms ease, border-color 150ms ease; +} + +.back-button:hover { + border-color: rgba(92, 174, 255, 0.3); + background: rgba(28, 42, 61, 0.82); +} + +.back-button svg { + width: 18px; + fill: none; + stroke: currentColor; + stroke-width: 1.8; + stroke-linecap: round; + stroke-linejoin: round; +} + +.page-header h1 { + margin: 0; + font-size: 22px; + font-weight: 720; + letter-spacing: -0.5px; +} + +.page-header p { + margin: 4px 0 0; + color: var(--muted); + font-size: 11px; +} + +.settings-form { + margin-top: 27px; +} + +.setting-card, +.setting-list, +.connection-banner, +.metric-card, +.log-panel { + border: 1px solid var(--line); + background: + linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent), + rgba(15, 22, 34, 0.76); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025); +} + +.setting-card { + padding: 18px; + border-radius: 16px; +} + +.field-label { + display: block; + margin-bottom: 10px; + color: #dfe8f5; + font-size: 12px; + font-weight: 630; +} + +.setting-card input, +.port-input { + color: var(--text); + outline: none; + border: 1px solid rgba(125, 154, 190, 0.18); + background: rgba(6, 10, 17, 0.72); + transition: border-color 150ms ease, box-shadow 150ms ease; +} + +.setting-card input { + width: 100%; + height: 42px; + padding: 0 13px; + border-radius: 11px; + font-size: 12px; +} + +.setting-card input:focus, +.port-input:focus { + border-color: rgba(69, 169, 255, 0.65); + box-shadow: 0 0 0 3px rgba(69, 169, 255, 0.1); +} + +input::placeholder { + color: #4f5b6d; +} + +input:disabled { + cursor: not-allowed; + opacity: 0.55; +} + +.field-hint { + margin: 8px 0 0; + color: #66758b; + font-size: 9.5px; +} + +.setting-list { + margin-top: 13px; + padding: 4px 18px; + border-radius: 16px; +} + +.setting-row { + display: flex; + min-height: 68px; + align-items: center; + justify-content: space-between; +} + +.setting-row strong { + display: block; + font-size: 12px; + font-weight: 620; +} + +.setting-row small { + display: block; + margin-top: 4px; + color: var(--muted); + font-size: 9.5px; +} + +.setting-rule { + height: 1px; + background: var(--line); +} + +.switch { + position: relative; + width: 42px; + height: 24px; +} + +.switch input { + position: absolute; + opacity: 0; +} + +.switch-track { + position: absolute; + inset: 0; + cursor: pointer; + border: 1px solid rgba(148, 163, 184, 0.2); + border-radius: 999px; + background: #202a39; + transition: background 180ms ease; +} + +.switch-track::after { + content: ""; + position: absolute; + top: 3px; + left: 3px; + width: 16px; + height: 16px; + border-radius: 50%; + background: #8e9bad; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); + transition: transform 180ms ease, background 180ms ease; +} + +.switch input:checked + .switch-track { + border-color: rgba(69, 169, 255, 0.5); + background: var(--blue-strong); +} + +.switch input:checked + .switch-track::after { + background: white; + transform: translateX(18px); +} + +.port-input { + width: 78px; + height: 34px; + text-align: center; + border-radius: 10px; + font-size: 12px; + appearance: textfield; +} + +.locked-note { + display: flex; + margin: 13px 2px 0; + color: #8d9aab; + align-items: center; + gap: 8px; + font-size: 10px; +} + +.locked-note span { + width: 6px; + height: 6px; + border-radius: 50%; + background: #ffb84f; +} + +.save-button { + width: 100%; + height: 48px; + margin-top: 18px; + cursor: pointer; + color: white; + border: 1px solid rgba(100, 186, 255, 0.45); + border-radius: 14px; + background: linear-gradient(135deg, #36a8ff, #147fe8); + box-shadow: 0 10px 24px rgba(6, 94, 185, 0.22); + font-size: 12px; + font-weight: 680; +} + +.save-button:disabled { + cursor: not-allowed; + opacity: 0.45; + box-shadow: none; +} + +.connection-banner { + display: flex; + margin-top: 27px; + padding: 16px; + border-radius: 16px; + align-items: center; + gap: 13px; +} + +.connection-banner.active { + border-color: rgba(68, 219, 159, 0.18); + background: + linear-gradient(145deg, rgba(44, 207, 151, 0.055), transparent), + rgba(15, 22, 34, 0.76); +} + +.banner-icon { + width: 38px; + height: 38px; + color: #7c8da5; + border-radius: 12px; + background: rgba(112, 129, 153, 0.1); +} + +.active .banner-icon { + color: var(--green); + background: rgba(65, 221, 159, 0.1); +} + +.banner-icon svg { + width: 19px; + fill: none; + stroke: currentColor; + stroke-width: 1.7; + stroke-linecap: round; + stroke-linejoin: round; +} + +.connection-banner strong, +.connection-banner small { + display: block; +} + +.connection-banner strong { + font-size: 12px; +} + +.connection-banner small { + margin-top: 4px; + color: var(--muted); + font-size: 9.5px; +} + +.metrics-grid { + display: grid; + margin-top: 13px; + grid-template-columns: repeat(2, 1fr); + gap: 10px; +} + +.metric-card { + height: 84px; + padding: 16px; + border-radius: 15px; +} + +.metric-card span { + display: block; + color: var(--muted); + font-size: 9.5px; +} + +.metric-card strong { + display: block; + margin-top: 9px; + font-size: 21px; + letter-spacing: -0.5px; +} + +.metric-card strong.time { + font-family: "SF Mono", ui-monospace, monospace; + font-size: 17px; + letter-spacing: -0.7px; +} + +.log-panel { + margin-top: 13px; + padding: 16px; + border-radius: 16px; +} + +.log-heading { + display: flex; + color: #dbe5f3; + align-items: center; + justify-content: space-between; + font-size: 10px; + font-weight: 640; +} + +.live-label { + display: flex; + color: #65748a; + align-items: center; + gap: 5px; + font-size: 8px; + letter-spacing: 0.7px; +} + +.live-label i { + width: 5px; + height: 5px; + border-radius: 50%; + background: var(--green); + box-shadow: 0 0 7px rgba(85, 231, 166, 0.75); +} + +.logs { + min-height: 96px; + margin-top: 13px; +} + +.log-line { + display: grid; + padding: 6px 0; + color: #8c9ab0; + grid-template-columns: 58px 1fr; + gap: 6px; + font-family: "SF Mono", ui-monospace, monospace; + font-size: 8.7px; + line-height: 1.35; +} + +.log-line.error { + color: var(--red); +} + +.log-line time { + color: #556276; +} + +.empty-log { + display: grid; + height: 92px; + color: #59677b; + place-items: center; + font-size: 9px; +} + +.toast { + position: absolute; + z-index: 20; + left: 50%; + bottom: 22px; + max-width: calc(100% - 48px); + padding: 10px 14px; + pointer-events: none; + color: #dff9ed; + border: 1px solid rgba(73, 222, 161, 0.25); + border-radius: 10px; + opacity: 0; + background: rgba(16, 44, 38, 0.94); + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); + font-size: 10px; + text-align: center; + transform: translate(-50%, 8px); + transition: opacity 160ms ease, transform 160ms ease; +} + +.toast.error { + color: #ffe0e4; + border-color: rgba(255, 107, 125, 0.25); + background: rgba(60, 23, 32, 0.96); +} + +.toast.visible { + opacity: 1; + transform: translate(-50%, 0); +} + +@media (prefers-reduced-motion: no-preference) { + .online .orbit-one { + animation: orbit-spin 12s linear infinite; + } + + .online .orbit-two { + animation: orbit-spin-reverse 16s linear infinite; + } + + .online .orb { + animation: orb-breathe 3.6s ease-in-out infinite; + } +} + +@keyframes orbit-spin { + to { + transform: rotate(330deg); + } +} + +@keyframes orbit-spin-reverse { + to { + transform: rotate(-338deg); + } +} + +@keyframes orb-breathe { + 50% { + box-shadow: + inset 0 1px 1px rgba(255, 255, 255, 0.38), + inset 0 -14px 28px rgba(1, 46, 54, 0.28), + 0 0 0 11px rgba(34, 220, 157, 0.04), + 0 19px 52px rgba(9, 182, 133, 0.4); + } +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..1fb6659 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from "vite"; + +export default defineConfig({ + clearScreen: false, + build: { + outDir: "dist-ui", + }, + server: { + strictPort: true, + watch: { + ignored: ["**/target/**"], + }, + }, +});