39 Commits
Author SHA1 Message Date
omar 72e4ad63a8 release: prepare v0.1.6 and run ARM test subprocesses through qemu
ci / linux-x64 (push) Successful in 6m10s
ci / linux-arm64-cross (push) Successful in 6m32s
release / linux-arm64 (push) Successful in 7m22s
release / linux-x64 (push) Successful in 8m12s
release / appimage-startup (push) Successful in 18s
release / publish (push) Successful in 20s
2026-11-02 11:01:56 +03:00
omar c75c8f3d74 release: prepare v0.1.5 verified account-free snapshot
release / linux-x64 (push) Failing after 59s
ci / linux-x64 (push) Failing after 1m9s
ci / linux-arm64-cross (push) Failing after 4m15s
release / linux-arm64 (push) Successful in 4m36s
release / appimage-startup (push) Skipped
release / publish (push) Skipped
2026-11-02 10:50:54 +03:00
omar 8336f01be7 feat: match identity and transfer settings with real category controls 2026-11-02 10:18:20 +03:00
omar a1f5e43f5f feat: add protected bookmark credentials and startup options 2026-11-02 09:49:29 +03:00
omar 7108026544 test: await persisted state and exercise expanded desktop panels 2026-11-01 22:16:17 +03:00
omar cf42de67e2 feat: add account-free settings and server management panels 2026-11-01 22:14:32 +03:00
omar 672540499c fix(i18n): match original Russian bookmark guidance 2026-11-01 19:54:54 +03:00
omar 33721aee7b fix(ui): match measured empty-chat prompt geometry
Use the actual 22px glyph and secondary-pane contrast background. Packaged dark/en captures at1553x998 and880x800 completed without harness errors; wide chat region passes. Whole-screen parity still fails bookmark/tree and narrow residuals.
2026-11-01 19:52:53 +03:00
omar ceecbb790a docs: record source parity evidence and remaining acceptance gaps
Document accumulated interoperability findings and current source-backed design. Record build-specific visual results, matched acceleration policy, passing packaged behavior checks, and explicit native/ARM and strict visual acceptance limits. No complete 1:1 claim.
2026-11-01 19:47:52 +03:00
omar e6464bc4ed feat: checkpoint account-free client workflows and source-matched UI
Preserve accumulated client implementation since v0.1.4, including local identities, multi-server state, chat, administration, audio and streaming controls. Refine official-source layout, original artwork, responsive composer overflow, settings navigation and chat scroll anchoring.

Current verification: Node suite passes; isolated packaged chat and responsive control smokes pass without device capture. Native core is reused, not rebuilt in this pass. Strict whole-screen visual parity remains incomplete; no 1:1 or cross-platform acceptance claim. Local checkpoint only; no release or push.
2026-11-01 19:43:18 +03:00
omar 0486ad361f v0.1.4 released: evidence, changelog date; vad tests assert window remainders and sensitivity decisions
ci / linux-x64 (push) Successful in 2m56s
ci / linux-arm64-cross (push) Successful in 4m2s
2026-10-24 10:07:25 +03:00
omar 4b1257a84d Evidence: 0.1.4 CI excerpts (x64, ARM64 qemu) and packaged Windows smokes from 0923b32
ci / linux-x64 (push) Successful in 4m32s
ci / linux-arm64-cross (push) Successful in 5m18s
2026-10-24 09:57:23 +03:00
omar 0923b32841 Transmit race tests: settle with setImmediate (fixture timers are unreferenced; Node 22 ended the loop)
ci / linux-x64 (push) Successful in 2m48s
ci / linux-arm64-cross (push) Successful in 2m48s
release / linux-arm64 (push) Successful in 6m21s
release / linux-x64 (push) Successful in 6m51s
release / appimage-startup (push) Successful in 14s
release / publish (push) Successful in 19s
2026-10-24 09:50:56 +03:00
omar 3d623329b3 Transmit mode: only the latest set_transmit answer counts; forwarding terminology; 0.1.4
ci / linux-x64 (push) Failing after 33s
ci / linux-arm64-cross (push) Successful in 3m8s
An older answer (same settings or a restarted core) could re-enable forwarding while a newer mode
change was pending. Requests and core restarts now start a new epoch. Renderer stats count frames
forwarded to the core. v0.1.3 was tagged but never released.
2026-10-24 09:45:49 +03:00
omar a924d792b4 VAD docs: startup buffer latency stated precisely; smoke-voice-vad --exe
ci / linux-arm64-cross (push) Successful in 2m48s
ci / linux-x64 (push) Successful in 2m53s
release / linux-arm64 (push) Successful in 4m15s
release / linux-x64 (push) Successful in 4m38s
release / appimage-startup (push) Successful in 15s
release / publish (push) Failing after 9s
2026-10-24 09:31:27 +03:00
omar b7951e0693 Voice activation (core voice detector, set_transmit handshake), transmission mode in Settings → Audio, atomic prefs commit, ARM64 unit tests under qemu; version 0.1.3
ci / linux-x64 (push) Successful in 2m50s
ci / linux-arm64-cross (push) Successful in 2m50s
2026-10-24 09:29:46 +03:00
omar 8439fe062e Evidence: v0.1.2 release, packaged 0.1.2 smokes, updater E2E logs (rc.1→rc.2, rc.2→0.1.2)
ci / linux-arm64-cross (push) Successful in 2m19s
ci / linux-x64 (push) Successful in 2m41s
2026-10-24 07:41:41 +03:00
omar 9e7483601b Updater harness: hash the pending update file; updater RC proof notes
ci / linux-arm64-cross (push) Successful in 2m18s
ci / linux-x64 (push) Successful in 3m20s
release / linux-arm64 (push) Successful in 4m12s
release / linux-x64 (push) Successful in 4m30s
release / appimage-startup (push) Successful in 14s
release / publish (push) Successful in 19s
2026-10-24 07:30:23 +03:00
omar f97a651c87 TeamsPeach 0.1.2
ci / linux-arm64-cross (push) Successful in 2m51s
ci / linux-x64 (push) Successful in 3m9s
2026-10-24 07:28:47 +03:00
omar 2cf63f5d88 Evidence: packaged 0.1.2-rc.2 (ed2e123) smokes
ci / linux-x64 (push) Successful in 3m3s
ci / linux-arm64-cross (push) Successful in 2m34s
2026-10-24 07:15:35 +03:00
omar ed2e123404 Release candidate 0.1.2-rc.2
ci / linux-x64 (push) Successful in 3m45s
ci / linux-arm64-cross (push) Successful in 2m50s
release / linux-arm64 (push) Successful in 4m8s
release / linux-x64 (push) Successful in 4m36s
release / appimage-startup (push) Successful in 13s
release / publish (push) Successful in 19s
2026-10-24 07:13:20 +03:00
omar 6b8994f1cb Use the application icon asset as the in-app brand mark; drop the old inline peach; smoke checks the decoded image
ci / linux-arm64-cross (push) Successful in 2m53s
ci / linux-x64 (push) Successful in 4m54s
2026-10-24 07:12:44 +03:00
omar d505890c74 Evidence: packaged 0.1.2-rc.1 (2a71d63) real-device, menu, theme and UI smokes
ci / linux-arm64-cross (push) Successful in 2m25s
ci / linux-x64 (push) Successful in 2m40s
release / linux-arm64 (push) Successful in 5m47s
release / linux-x64 (push) Successful in 6m57s
release / appimage-startup (push) Successful in 17s
release / publish (push) Successful in 20s
2026-10-24 07:09:08 +03:00
omar 2a71d63b7b Fail closed on a missing microphone, release partial capture setup, menus show enumeration failures; deterministic packaged smoke launch; NSIS custom-profile update guard 2026-10-24 07:07:05 +03:00
omar 7afce5ab20 Release candidate 0.1.2-rc.1
ci / linux-arm64-cross (push) Successful in 3m13s
ci / linux-x64 (push) Successful in 4m14s
2026-10-24 06:40:25 +03:00
omar 5f5d30d3ed i18n: final sweep, i18n smoke and evidence, docs/i18n.md
ci / linux-arm64-cross (push) Successful in 3m51s
ci / linux-x64 (push) Successful in 4m22s
2026-10-24 06:40:15 +03:00
omar 0fffb27166 Docs: English authored prose; 0.1.2 changelog (devices, menus, theme, language, updater, icon, identity fix)
ci / linux-arm64-cross (push) Successful in 1m52s
ci / linux-x64 (push) Successful in 2m43s
2026-10-24 06:36:56 +03:00
omar 1142c9f60d Updater from public releases, English UI by default with Russian selectable, cancelable capture, English technical messages, language-independent smoke hooks
ci / linux-arm64-cross (push) Successful in 1m54s
ci / linux-x64 (push) Successful in 2m45s
2026-10-24 06:34:33 +03:00
omar ba4c7ec2af core: decode stored keys with upstream's simple_asn1 shape plus scalar left-padding; deterministic and malformed-input tests 2026-10-24 06:18:41 +03:00
omar 456041bfde Dark theme by default (stored choices kept); updateChannel pref; new peach icon (transparent); packaged device evidence
ci / linux-arm64-cross (push) Successful in 2m29s
ci / linux-x64 (push) Successful in 3m11s
2026-10-24 06:13:08 +03:00
omar 41e90fb5e8 Device menus: loading shell, stale enumeration dropped; strict origin parsing; no automatic silence warning; core transmit state at debug
ci / linux-arm64-cross (push) Successful in 1m51s
ci / linux-x64 (push) Failing after 5m39s
2026-10-24 06:09:48 +03:00
omar 401c331aa4 Core 0.1.2 (zero-leading private key load fix); capture state in diagnostics; changelog
ci / linux-arm64-cross (push) Successful in 2m0s
ci / linux-x64 (push) Successful in 2m47s
2026-10-24 06:06:49 +03:00
omar 7ad5ee8572 Voice burst and PTT diagnostics only at TEAMSPEACH_LOG=debug 2026-10-24 06:06:20 +03:00
omar a3185229ee Audio devices: fix permission origin (app://teamspeach/), real device lists, right-click device menus, voice TX diagnostics; version 0.1.2 2026-10-24 06:05:46 +03:00
omar 8153e9b88b Evidence: v0.1.1 release (static AppImage runtime), v0.1.0 marked superseded
ci / linux-arm64-cross (push) Successful in 2m13s
ci / linux-x64 (push) Successful in 2m34s
2026-10-24 05:01:13 +03:00
omar 71300ff061 0.1.1: static AppImage runtime (toolset appimage 1.0.3); core version 0.1.1
ci / linux-arm64-cross (push) Successful in 1m49s
ci / linux-x64 (push) Successful in 2m59s
release / linux-x64 (push) Successful in 4m23s
release / linux-arm64 (push) Successful in 4m28s
release / appimage-startup (push) Successful in 14s
release / publish (push) Successful in 19s
2026-10-24 04:44:22 +03:00
omar 7c9616f0bb Release gate: AppImage runtime must start in a slim container (x64 native, arm64 qemu)
ci / linux-arm64-cross (push) Successful in 3m52s
ci / linux-x64 (push) Successful in 4m29s
2026-10-24 04:37:21 +03:00
omar 4d144a581e Evidence: public switch verified anonymously
ci / linux-arm64-cross (push) Successful in 3m46s
ci / linux-x64 (push) Successful in 4m10s
2026-10-24 04:31:25 +03:00
omar 8f5d8c9e10 Public-repo CI policy (no pull_request trigger), visibility audit, v0.1.0 release evidence
ci / linux-arm64-cross (push) Successful in 3m57s
ci / linux-x64 (push) Successful in 4m32s
2026-10-24 04:31:15 +03:00
879 changed files with 142260 additions and 3490 deletions

No files matched your search

+23 -2
View File
@@ -1,11 +1,13 @@
# Continuous integration on the self-hosted Gitea runner (Linux x64 container jobs).
# Everything runs inside the job container; nothing is installed on the runner host.
# Triggers are trusted only: pushes to main by maintainers and manual dispatch. There is deliberately no
# pull_request trigger: the repository is public and the runner sits on a private network, so outside
# contributions are reviewed first and then validated by a maintainer (push to main or workflow_dispatch).
name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
@@ -31,7 +33,7 @@ jobs:
- name: Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target wasm32-unknown-unknown
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: glibc baseline
@@ -40,6 +42,11 @@ jobs:
- name: Node dependencies
run: npm ci
- name: Portable microphone DSP
run: |
node scripts/build-denoise.mjs
cargo test --manifest-path dsp/Cargo.toml --locked
- name: Unit tests (desktop)
run: npm test
@@ -60,6 +67,9 @@ jobs:
TEAMSPEACH_SMOKE_EXTRA_ARGS: --no-sandbox
run: xvfb-run -a node scripts/smoke-ui.mjs --out smoke-out
- name: Updater engine behaviour (Xvfb, emulated release host)
run: xvfb-run -a node --test test/update-engine.test.mjs
- name: Upload smoke evidence
if: always()
uses: actions/upload-artifact@v3
@@ -107,3 +117,14 @@ jobs:
- name: Core identity smoke under qemu-aarch64 (emulated, not native hardware)
run: node scripts/core-smoke.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --wrapper "qemu-aarch64 -L /usr/aarch64-linux-gnu"
# The unit tests (voice detector, resampler, identity keys, codecs, protocol) built for aarch64 and run
# under user-mode qemu. Emulated, not native hardware; the bridge smoke tests spawn the core binary and
# are left to the host build above. Tests that re-run their own binary as a child get the same emulator
# and sysroot explicitly (core/src/test_exec.rs): without binfmt the kernel cannot exec the aarch64 ELF.
- name: Core unit tests under qemu-aarch64 (emulated, not native hardware)
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER: qemu-aarch64 -L /usr/aarch64-linux-gnu
TEAMSPEACH_TEST_QEMU: qemu-aarch64
TEAMSPEACH_TEST_QEMU_SYSROOT: /usr/aarch64-linux-gnu
run: cargo test --manifest-path core/Cargo.toml --locked --target aarch64-unknown-linux-gnu --bin teamspeach-core
+55 -10
View File
@@ -41,13 +41,15 @@ jobs:
- name: Rust toolchain
run: |
set -euo pipefail
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target wasm32-unknown-unknown
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Tests
run: |
set -euo pipefail
npm ci
node scripts/build-denoise.mjs
cargo test --manifest-path dsp/Cargo.toml --locked
npm test
cargo test --manifest-path core/Cargo.toml --locked
@@ -63,9 +65,15 @@ jobs:
TEAMSPEACH_SMOKE_EXTRA_ARGS: --no-sandbox
run: xvfb-run -a node scripts/smoke-ui.mjs --out smoke-out
- name: Updater engine behaviour (Xvfb, real electron-updater, emulated release server)
run: xvfb-run -a node --test test/update-engine.test.mjs
- name: Package
run: node scripts/dist.mjs --os linux --arch x64
- name: Update feed matches the packages (name, size, sha512, version)
run: node scripts/update-feed-check.mjs --version "$(node -p "require('./package.json').version")" dist/*-linux.yml
- name: Package report (ELF layout of every packaged binary incl. the AppImage runtime)
run: |
set -euo pipefail
@@ -75,7 +83,7 @@ jobs:
git rev-parse HEAD >> "$report"
node scripts/elf-pagesize.mjs dist/linux-unpacked dist/TeamsPeach-*.AppImage --page 4096 --json dist/elf-report-linux-x64.json > elf.txt
cat elf.txt >> "$report"
sha256sum dist/*.AppImage dist/*.tar.gz >> "$report"
sha256sum dist/*.AppImage dist/*.tar.gz dist/*-linux.yml >> "$report"
cat "$report"
- uses: actions/upload-artifact@v3
@@ -86,6 +94,7 @@ jobs:
dist/*.tar.gz
dist/build-info-linux-x64.txt
dist/elf-report-linux-x64.json
dist/*-linux.yml
if-no-files-found: error
linux-arm64:
@@ -115,7 +124,7 @@ jobs:
- name: Rust toolchain
run: |
set -euo pipefail
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target aarch64-unknown-linux-gnu
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target aarch64-unknown-linux-gnu --target wasm32-unknown-unknown
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Core cross build and checks
@@ -131,6 +140,7 @@ jobs:
set -euo pipefail
npm ci
node scripts/dist.mjs --os linux --arch arm64
node scripts/update-feed-check.mjs --version "$(node -p "require('./package.json').version")" dist/*-linux-arm64.yml
- name: 16 KiB page check of every packaged ELF incl. the AppImage runtime (Asahi)
run: |
@@ -140,7 +150,7 @@ jobs:
git rev-parse HEAD >> "$report"
node scripts/elf-pagesize.mjs dist/linux-arm64-unpacked dist/TeamsPeach-*-arm64.AppImage --page 16384 --json dist/elf-report-linux-arm64.json > elf.txt
cat elf.txt >> "$report"
sha256sum dist/*.AppImage dist/*.tar.gz >> "$report"
sha256sum dist/*.AppImage dist/*.tar.gz dist/*-linux-arm64.yml >> "$report"
cat "$report"
- uses: actions/upload-artifact@v3
@@ -151,10 +161,42 @@ jobs:
dist/*.tar.gz
dist/build-info-linux-arm64.txt
dist/elf-report-linux-arm64.json
dist/*-linux-arm64.yml
if-no-files-found: error
publish:
# The AppImage runtime must start on a stock system: run it in a slim container without development
# packages (no unversioned libz.so), natively for x64 and under qemu-aarch64 for arm64.
appimage-startup:
needs: [linux-x64, linux-arm64]
runs-on: ubuntu-latest
container:
image: node:22-bookworm-slim
steps:
- uses: actions/download-artifact@v3
with:
path: artifacts
- name: x64 AppImage runtime starts without development packages
run: |
set -euo pipefail
echo "zlib files present:"; ls /usr/lib/x86_64-linux-gnu/ | grep '^libz\.' || true
app=$(ls artifacts/teamspeach-linux-x64/TeamsPeach-*.AppImage)
chmod +x "$app"
"$app" --appimage-version
- name: arm64 AppImage runtime starts under qemu-aarch64 (emulated)
run: |
set -euo pipefail
dpkg --add-architecture arm64
apt-get update
apt-get install -y --no-install-recommends qemu-user libc6:arm64 zlib1g:arm64
echo "arm64 zlib files present:"; ls /usr/lib/aarch64-linux-gnu/ | grep '^libz\.' || true
app=$(ls artifacts/teamspeach-linux-arm64/TeamsPeach-*-arm64.AppImage)
chmod +x "$app"
qemu-aarch64 -L / "$app" --appimage-version
publish:
needs: [linux-x64, linux-arm64, appimage-startup]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
container:
@@ -177,10 +219,13 @@ jobs:
set -euo pipefail
node scripts/check-version.mjs
cat > notes.md <<'EOF'
Linux x64 и Linux ARM64 (aarch64) собраны в CI: тесты, офлайн-проверка ядра, проверка выравнивания ELF
(для ARM64 — страницы 16 КиБ, включая загрузчик AppImage), см. build-info-*.txt.
ARM64 проверен статически и под qemu, не на Apple Silicon. Пакеты не подписаны.
Сборка Windows x64 собирается на машине разработчика из того же коммита и прикладывается отдельно
с пометкой local.
Linux x64 and Linux ARM64 (aarch64) are built in CI: tests, offline core check, ELF alignment check
(16 KiB pages for ARM64, including the AppImage runtime), see build-info-*.txt.
ARM64 is checked statically and under qemu, not on Apple Silicon. Packages are not signed.
Windows x64 is built on the developer machine from the same commit and attached separately
(provenance in *-win-x64-local-build-info.txt).
Automatic updates (from the first updater-capable version on): Windows x64 NSIS installation and
Linux AppImage install from this release's latest*.yml / <channel>*.yml feeds after user confirmation;
zip and tar.gz users are notified and replace files manually.
EOF
node scripts/publish-release.mjs artifacts notes.md
+78
View File
@@ -0,0 +1,78 @@
# Manual end-to-end proof of the AppImage self-update between two PUBLISHED releases (Linux x64).
# Downloads the older release's AppImage anonymously, runs it in a disposable profile under Xvfb with
# APPIMAGE_EXTRACT_AND_RUN, lets it update itself from git.eeee.moe and checks version + identity afterwards.
# Uses no secrets; never runs on pull requests.
name: update-e2e
on:
workflow_dispatch:
inputs:
from_tag:
description: Older updater-capable release tag (e.g. v0.1.2-rc.1)
required: true
to_tag:
description: Newer release tag the old one must update to (e.g. v0.1.2-rc.2)
required: true
new_prefs:
description: Optional JSON of settings that exist only in the new version, applied after the update and checked after a restart
required: false
default: ''
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
appimage-x64:
runs-on: ubuntu-latest
container:
image: node:22-bookworm
steps:
- uses: actions/checkout@v4
- name: System packages (container only)
run: |
set -euo pipefail
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl xvfb xauth libnss3 libatk1.0-0 \
libatk-bridge2.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 libasound2 libxss1 libxshmfence1 \
libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libpango-1.0-0
- name: Test driver (playwright-core)
run: npm ci
- name: Download the older published AppImage (anonymous)
env:
FROM_TAG: ${{ inputs.from_tag }}
run: |
set -euo pipefail
[[ "$FROM_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]] || { echo "bad tag $FROM_TAG"; exit 2; }
mkdir -p old
curl -fsSL -o "old/TeamsPeach-${FROM_TAG#v}.AppImage" \
"https://git.eeee.moe/TeamsPeach/client/releases/download/${FROM_TAG}/TeamsPeach-${FROM_TAG#v}.AppImage"
sha256sum old/*.AppImage
- name: Self-update end to end
env:
FROM_TAG: ${{ inputs.from_tag }}
TO_TAG: ${{ inputs.to_tag }}
NEW_PREFS: ${{ inputs.new_prefs }}
run: |
set -euo pipefail
[[ "$TO_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]] || { echo "bad tag $TO_TAG"; exit 2; }
if [ -n "$NEW_PREFS" ]; then
node -e 'const p = JSON.parse(process.argv[1]); if (!p || typeof p !== "object" || Array.isArray(p)) process.exit(2)' "$NEW_PREFS"
xvfb-run -a node scripts/update-e2e.mjs --from "old/TeamsPeach-${FROM_TAG#v}.AppImage" --to-tag "$TO_TAG" --out update-e2e-out --new-prefs "$NEW_PREFS"
else
xvfb-run -a node scripts/update-e2e.mjs --from "old/TeamsPeach-${FROM_TAG#v}.AppImage" --to-tag "$TO_TAG" --out update-e2e-out
fi
cat update-e2e-out/result.json
- uses: actions/upload-artifact@v3
if: always()
with:
name: update-e2e
path: update-e2e-out/
+98
View File
@@ -0,0 +1,98 @@
{
"schemaVersion": 2,
"generatedAt": "2026-11-01",
"title": "Design System: TeamsPeach",
"extensions": {
"shadows": [
{ "name": "context-menu", "value": "1px 1px 2px 0 rgba(0, 0, 0, 0.2)", "purpose": "Official .ts-context-menu shadow; menus, device menus and composer submenus." },
{ "name": "notification", "value": "#000 4px 8px 5px 0 at opacity .25", "purpose": "Official .ts-notification ::after plate shadow for toasts." }
],
"motion": [
{ "name": "tree-pill", "value": "150ms ease-out (32ms while hovered)", "purpose": "Channel pill growth from 7/10 to 4/7 insets." },
{ "name": "action-magnify", "value": "100ms ease-out scale(1.15)", "purpose": "Toolbar and status-bar icon hover." },
{ "name": "stream-controls", "value": "opacity 120ms, transform 80ms", "purpose": "Stream tile control bar reveal." },
{ "name": "toast-entrance", "value": "180ms cubic-bezier(0.16, 1, 0.3, 1)", "purpose": "Single toast entrance; disabled with reduced motion." }
],
"breakpoints": [
{ "name": "pane-compressed", "value": "440px", "purpose": "Official tsv-view-size-category-h-compressed: 10px side padding." },
{ "name": "settings-in-sidebar", "value": "900px", "purpose": "The same settings categories node moves into sidebar resources below this width." },
{ "name": "sidebar-collapse", "value": "200px", "purpose": "Sidebar slot snaps to the 62px rail below this width." }
],
"slots": {
"sidebar": "270px default, 420 max, 52/62/72px rail for Small/Medium/Large",
"server": "500px default, 220 min",
"detail": "flexible, 295 min"
},
"source": "TeamSpeak 6.0.0.5163 installed client: main.css sha256 bc700401d04954d0…, main.js sha256 9d6bea2ee5333086…; extracted values in docs/evidence/official-parity/."
},
"components": [
{
"name": "Filled action",
"kind": "button",
"refersTo": "button-filled",
"description": "Official .tsv-button-filled: blue gradient pill for the primary action.",
"html": "<button class=\"ds-filled\">Connect</button>",
"css": ".ds-filled{font:450 15px/22px 'Noto Sans',sans-serif;padding:4px 20px;min-height:26px;border:0;border-radius:100px;background:linear-gradient(60deg,#0058FF,#1365BB);color:#fff;cursor:pointer}.ds-filled:hover{background:#1c82cc}.ds-filled:focus-visible{outline:2px solid #1588FA;outline-offset:2px}.ds-filled:disabled{opacity:.4;cursor:default}"
},
{
"name": "Toolbar pill",
"kind": "toolbar",
"description": "Official central toolbar: 26px pill on --tsv-bg, icon buttons split by 1px strong-bg lines.",
"html": "<div class=\"ds-pill\"><button aria-label=\"Microphone\"><svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\"><rect x=\"9\" y=\"3\" width=\"6\" height=\"11\" rx=\"3\"/><path d=\"M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21\"/></svg></button><button aria-label=\"Speakers\"><svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\"><path d=\"M4.5 9.5v5h3.8l4.7 4V5.5l-4.7 4z\"/></svg></button></div>",
"css": ".ds-pill{display:inline-flex;height:26px;padding:0 20px 0 10px;border-radius:100px;background:#2b3346}.ds-pill button{position:relative;padding:0 10px 0 0;border:0;background:none;color:#fff;cursor:pointer}.ds-pill button:not(:last-child)::after{content:'';position:absolute;right:4px;top:2px;bottom:2px;width:1px;background:#0B1124}.ds-pill button[aria-pressed=true]{color:#CC3838}"
},
{
"name": "Labelled field",
"kind": "input",
"description": "Official ts-text-input: 26px, tsv-bg fill, 1.5px transparent border turning tint on focus.",
"html": "<label class=\"ds-field\">Server address<input placeholder=\"address or address:9987\"></label>",
"css": ".ds-field{display:grid;gap:4px;font:450 14px/18px 'Noto Sans',sans-serif;color:#fff}.ds-field input{font:inherit;min-height:26px;padding:2px 10px;border:1.5px solid transparent;border-radius:4px;background:#2b3346;color:#fff}.ds-field input::placeholder{color:#697A97}.ds-field input:focus-visible{outline:none;border-color:#1588FA}"
},
{
"name": "Settings category list",
"kind": "nav",
"description": "44px rows; selection fill #282F40 with a 4px tint bar and tinted icon.",
"html": "<nav class=\"ds-nav\"><button>Identity</button><button aria-current=\"page\">Audio</button><button>Video</button></nav>",
"css": ".ds-nav{display:grid;padding:8px 10px 8px 20px;background:#2b3346}.ds-nav button{position:relative;font:450 14px 'Noto Sans',sans-serif;min-height:44px;text-align:left;padding:0 20px;border:0;border-radius:4px;background:transparent;color:#fff;cursor:pointer}.ds-nav button:hover{background:#222A3C}.ds-nav button[aria-current]{background:#282F40}.ds-nav button[aria-current]::after{content:'';position:absolute;left:0;top:6px;bottom:6px;width:4px;border-radius:100px;background:#1588FA}"
},
{
"name": "Group tag",
"kind": "chip",
"description": "Server-group name beside a nickname in the tree: header-bg chip, 13px subtitle text.",
"html": "<span class=\"ds-group\">Admin</span>",
"css": ".ds-group{display:inline-block;max-width:14ch;padding:0 5px;border-radius:6px;background:#1C2539;color:#697A97;font:450 13px/17px 'Noto Sans',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"
},
{
"name": "Settings section",
"kind": "card",
"refersTo": "settings-section",
"description": "Official .ts-widget-wrapper: header-bg, radius 15, 8px 20px padding, 15px semibold title.",
"html": "<section class=\"ds-card\"><h2>Microphone</h2><p>Capture device</p></section>",
"css": ".ds-card{display:grid;gap:16px;padding:8px 20px 20px;border-radius:15px;background:#1C2539;color:#fff;font:450 14px/18px 'Noto Sans',sans-serif}.ds-card h2{margin:8px 0 0;font-size:15px;line-height:19px;font-weight:600}.ds-card p{margin:0;color:#697A97;font-size:13px}"
}
],
"narrative": {
"northStar": "The official TeamSpeak 6 client, value for value",
"overview": "TeamsPeach targets the installed TeamSpeak 6 interface using extracted theme tokens, source component geometry and the three-slot window. The independent name/icon, local offline onboarding and omission of account-bound surfaces are deliberate exceptions. Source matching does not itself prove rendered or functional identity.",
"keyCharacteristics": [
"Navy dark theme (#2b3346 / #222A3C / #121A2C) with #1588FA tint; matching official light theme.",
"Three slots: 270px sidebar (62px rail), 500px server tree, flexible detail pane.",
"Noto Sans at 15/19 weight 450; official row heights 44/40/30/23.",
"Depth from the official background ladder, not shadows."
],
"rules": [
{ "name": "The Source Rule", "body": "Take target values from the installed official client with offsets in docs/evidence/official-parity/; verify actual composition with isolated screenshots and document differences.", "section": "overview" },
{ "name": "The Account-Free Rule", "body": "Omit cloud-only controls (bell, contacts, presence, Setup Chat) rather than showing controls that do nothing.", "section": "components" }
],
"dos": [
"Do keep native caption overlay colours equal to the window-bar token.",
"Do keep stock --tsv-* tokens at (0,1,0) specificity for local theme files.",
"Do document every deviation from the official client in DESIGN.md."
],
"donts": [
"Don't reinterpret or restyle the official look.",
"Don't ship TeamSpeak logos, label artwork or bundle files.",
"Don't claim feature parity from visual parity."
]
}
}
+273 -1
View File
@@ -1,6 +1,278 @@
# Changelog
## 0.1.0 — unreleased
## 0.1.6 — 2026-11-02
Current development snapshot; full visual parity and native Asahi verification remain unfinished.
Version 0.1.5 was not published: CI rejected an empty changelog section.
- Added source-style advanced notification controls with independent persisted event choices,
confirmation before hiding advanced controls and single-event expansion.
- Corrected server-tree painting against paired hidden captures. Remaining light-theme,
narrow-layout and composer differences are not claimed fixed in this release.
- Rebuilt Identities around the original selector, inline creation/rename, selected-identity Details,
security-level controls and related bookmarks. Fixed default-profile UID leakage into selected Details,
selector popup initialization and the final improvement level briefly reverting during a list refresh.
Export and the explicit current-server nickname action remain available.
- Replaced raw File Transfer number fields with source-style keyboard/step controls that retain focus
and drafts through serialized saves. Native folder/copy restrictions, shared limits and safe defaults remain.
- Added notification category switches with real sound-policy gating, preserved per-event states and
independent event logs; concurrent state edits are serialized.
- Added nested bookmark folders with inline creation, rename, ordering, move/duplicate menus and
confirmed subtree deletion, using validated local preferences rather than a separate bookmark store.
- Extended bookmarks with a per-connection nickname, initial channel, session-bound channel drops,
startup connection and input-only startup mute. A nickname override never changes the stored identity.
- Bookmark passwords use OS-protected encryption, bound to address and server/channel purpose. Plaintext
is never persisted; Linux basic_text/unknown storage is refused. Stale metadata writes cannot overwrite
or resurrect a password, and native key-store interactions revalidate the window, bookmark and connection.
Explicit reveal, same-address duplication, address-change cleanup, restart and forgetting a password
after storage becomes unavailable were exercised with real Windows DPAPI. No live server join was performed.
- Startup bookmark enumeration is one-shot in main, so a renderer reload cannot start a second set of
connections. Automatic microphone mute is applied before connecting and never changes speaker mute.
- Added Privacy with trusted-site management and remembered confirmations; reset and concurrent
confirmation changes are serialized so an older save cannot overwrite a later reset.
- Removed the mistakenly added Remote Apps integration to honor the owner's explicit exclusion:
no listener, authorization IPC, settings page, remote-button capture or WebSocket production dependency.
- Added account-free local UID contacts and public badge artwork display. These are not myTeamSpeak
contacts, owned-badge management, cloud presence or offline messaging.
- Added server icon management bound to the listing's connection generation. Reconnecting invalidates
mutation grants; old icon/snapshot transfers cannot cancel a new session's reused transfer ID.
- Added the four-level noise-reduction control with persisted per-input settings. Processing remains
an independent implementation, not a claim of identity with TeamSpeak's private native DSP.
- Fixed key recording in the contents-layout settings host by checking the enclosing panel's visibility.
Packaged verification covers saving the binding and retaining it across an application restart.
- Isolated Mermaid rendering from the privileged application renderer; nested renderers cannot acquire
media/presentation permissions. Local diagram/math rendering and hostile-content rejection were exercised.
- Corrected smoke polling to await asynchronous IPC/import predicates instead of accepting a Promise
as a satisfied condition. Persistence checks now wait for actual saved state.
- Fixed full Changelog and Open Source Licenses pages rendering arrays as text instead of appending
their DOM nodes. Added a real offscreen navigation smoke covering document text and back-focus restoration.
- Whispers follow the original manager: Live Preview highlights the current list's clients and channels in
the server tree (resolved from the current snapshot only), "Switch to Server and Overlay" shows the list
next to the microphone's server, and the status bar Whisper History lists received whispers with Delete.
Replies and avatars use only entries whose client id and UID are still on the same server session.
- Key Bindings follow the original page: "Require exact key match" toggle, named profiles (inline
"New Profile Name" editor, rename, choose, Activate, delete of inactive profiles) and every official
hotkey action, each running the app's real operation. Push-to-mute stops sending without touching your
mute choice; global push-to-talk survives window focus loss while local keys still release on it. Go Live
opens the broadcast source chooser instead of guessing the focused application. Bindings can be in-window,
or global; with exact matching off, global keys also register their
extra-modifier combinations. keybinds.json moves to version 2; version 1 whisper bindings migrate unchanged
into one active profile and the original file is kept as `keybinds.v1-<time>.json`.
- Reworked the interface against the actual installed TeamSpeak frontend rather than the earlier
hand-reconstructed component sheet: original non-brand SVG artwork, Noto Sans 2.013, channel and
client chat layouts, membership event rows, sidebar actions, in-pane administration, settings
dropdowns/sliders and the two-stage broadcast dialog. Independent branding and account-free
behavior remain. Artwork provenance does not grant redistribution rights.
- Corrected sidebar group geometry and moved New Connection into its own account-free action slot;
bookmark add/search/disclosure retain their real persistence/navigation behavior. Language and sidebar
icon-mode selectors use original local artwork, content-based widths and restored keyboard focus.
Audio device captions use the observed system-default alias, not an inferred physical device.
- Matched device-field, VAD selector, slider, record-test and display-preview geometry to source values.
Fixed the chat spacer to use the composer's content-box height, removing a two-pixel full-history offset.
- Preserve a bottom-pinned chat on window reflow without forcing readers of older history to the end.
The regression reproduced a 119px gap after narrowing; the packaged fix retains a zero gap and
separately preserves the history reader's position. The paired harness retains this behavioral check.
- Match chat scrollbar safe-area width and system-event wrapping to the actual original renderer;
restore the localized empty-chat prompt with real draft/send-state visibility. Narrow composer tools
now overflow into working ordered menus rather than clipping. Settings categories occupy the original
narrow-sidebar position below Servers/New Connection, with source-sized previews and server columns.
- Correct empty-chat prompt geometry with the measured 22px glyph and the secondary-pane contrast
background. The focused dark/en wide-screen chat region passes; the whole screen still fails other regions.
- Use the original Russian bookmark-help wording (`Добавьте`), preserving the same save/connect behavior.
- Run both sides of visual QA with Electron's normal acceleration policy. Earlier reference captures
forced software rendering while the product did not; those comparisons remain historical evidence,
not directly comparable pixel baselines for the corrected capture policy.
- Actual whole-screen comparison still does not meet the 1:1 acceptance criterion. The refreshed 168-pair
run has no blocked captures but no fully passing screen pairs. Viewport-only timestamp comparison and
nested native-caption exclusions now avoid earlier harness false positives; thresholds are unchanged.
See `docs/evidence/official-parity/qa-parity-harness.md` for build-specific results and remaining differences.
- Initialize custom controls explicitly at renderer startup, not when audio/notification modules
import the slider helper. The Node suite and focused packaged chat/control smoke checks pass;
this does not establish complete visual or native platform parity.
- Added local TS6 theme extensions (Settings → Appearance → User Theme): the official `package.json`
schema, `<identifier>//<variant>` selection, stock fallback and a five-minute list cache with Reload.
Files load only through the restricted `tsext:` scheme (selected variant CSS, fonts, images, previews);
`@import`, remote URLs, links and path traversal are rejected and reads are bounded. Account-free; no
store or Remote Apps. Compatibility covers the package format and `--tsv-*` tokens, not official DOM
class hooks.
- Added account-free local identity management: additive import, selected-identity export, per-identity
names/nicknames, default and bookmark selection, guarded deletion, and resumable/cancellable bounded
security-level improvement. Active connections retain their chosen identity.
- Added simultaneous connection records with one isolated native core per server, explicit viewed/input
connection routing, connection-local chat, streams, recording and administrative operations.
- Added channel/server administration, local whisper lists and held targets, general legacy file browsing
and transfers, server snapshots, recording, notifications, and OS-specific local settings. Available
functionality and unverified native protocol branches are listed separately in the compatibility matrix.
- Migrated audio preferences to per-device capture/playback profiles and the official piecewise dB fader;
existing voice choices are converted on load. Automatic/hybrid/level activation, PTT release delay,
notification routing and independent processing are implemented without claiming native-DSP identity.
- Added connection/identity-scoped disk chat history, independent drafts/unread state, local rich text,
emoji/math/diagrams and server-file links. Remote images require explicit consent; account-only Matrix
editing, reactions and read receipts are not included. Local vendor assets carry redistribution notices.
- Recording finalization preserves dropped-tail timing and counts actual published bytes. Notification
event overrides and the event log are independent. Theme loading rejects directory escapes and remote
content; Small/Medium/Large and compact/detailed appearance settings use source-backed values.
- File Transfer settings apply app-wide directional concurrency and pacing limits across server tabs,
including snapshot transfers. The remembered destination is main-approved; no renderer-provided host
path is accepted and an unavailable folder never silently changes the destination.
- Unversioned legacy sidebar widths migrate lazily to the server-pane width for the three-pane layout.
Reading preferences does not rewrite the file; the next successful save records layout version 2,
while existing new-layout choices remain unchanged.
- Added a bounded ten-second in-memory microphone record/listen test using the selected output device.
It never sends test audio to a server; Finish, device/privacy changes and closing settings clear the clip.
- Bounded microphone MessagePort backlog to 200 ms using capture-context sample timestamps; renderer
stalls no longer replay older queued speech. Capture DSP preferences and channel bitrate mapping are
unchanged. Hidden 190-second speech/silence captures and a real Opus encode/decode matrix were measured;
natural-microphone and official-client subjective quality remain unproven.
- Saved servers now use an always-visible inline heading/chevron disclosure, with persisted collapsed
state; toggling the heading never connects or navigates. Removed the old detached bookmark toggle.
- Connection information now uses vertical labelled groups instead of one column per protocol field,
with locale-aware duration, byte, rate and loss units, long-value wrapping and expandable raw records.
Member menus use measured pointer/keyboard anchors, side flipping and viewport bounds, reposition on
resize and dismiss on background scrolling rather than retaining a stale sidebar offset.
- The flat application caption follows the official 44 px palette. Windows/Linux window-controls overlay
and macOS traffic lights remain OS-owned; offscreen fixtures do not claim native Snap, fullscreen,
picture-in-picture or focus behavior.
- Application chrome no longer selects text during clicks and drags; chat, inputs and useful content remain
selectable. Removed the redundant audio-muted banner and transmission-mode/key header hint without
changing mute/deafen or push-to-talk safety. The host banner now sits behind the server header card.
- Added separate channel-member collapse chevrons with compact avatar summaries and per-server persistence,
plus a bounded sidebar divider supporting pointer and keyboard resize/reset.
- Watched screen shares now have independent tiles, controls and native picture-in-picture windows. Full
screen and PiP preserve their media sessions; stopping one view leaves its siblings running. The upper
stream stage can be resized or collapsed independently of chat, with saved layout preferences.
- Stream players now put the picture first: large resizable video above chat, a small name overlay, and
controls over the picture on hover or keyboard focus instead of a permanent footer. Live statistics move
into an accessible EN/RU details disclosure. New profiles start with a larger stage; existing saved sizes,
independent streams and the broadcaster's separate local-preview controls are preserved.
- Added target-bound member context menus with server-derived capability hints, explicit unknown/denied
states, guarded confirmations for moderation and permission/group changes, native bounded avatar
selection, and visible backend errors. Menus reject stale identities and connection generations.
- Per-participant voice volume uses -200..+10 dB and an independent Mute control. Reset restores 0 dB and
unmutes. Explicit committed modifiers persist by UID; session mute remains connection-local.
- Added explicit source selection, private preview and Start/Stop P2P publishing, with a muted local tile,
quality targets, per-viewer admission and a transmission-scoped UID allowlist. Capture remains opt-in;
native OS/portal support and live official-client interoperability require separate platform evidence.
- Added selected-application audio adapters for Windows WASAPI process trees and Linux PulseAudio /
pipewire-pulse streams, with bounded IPC and outgoing per-app/master gain. macOS application-audio capture
remains unavailable. The native combined capture-to-WebRTC path is not claimed proven by UI fixtures.
- Disposable UI checks now run hidden and offscreen by default, with separate profiles, denied physical
capture/permission prompts and native dialogs disabled unless a test supplies a fixture answer. The
shared launcher asserts invisible/unfocused/nonfocusable offscreen state and mutes webContents.
Packaged tests verify bundled main-process bytes match the current offscreen-safe source before launch.
- Channel clicks now browse the channel without moving voice; double-click or the explicit Join channel
action moves voice. The header explains when the channel chat still belongs to the current voice channel.
- Available screen shares appear above chat with explicit Watch actions, including multiple announced
streams; the old member-row Watch buttons are replaced by stream indicators. Browsing never subscribes.
Unavailable discovery and denied joins remain visible errors rather than fabricated streams.
- Allowed HTML fullscreen requests from the app origin while retaining the existing camera/screen-capture
restrictions. The player uses native full screen, an exit control and native Escape, keeps the same media
session, and exits on stop/end/disconnect. Request/exit failures are reported, and teardown only exits
fullscreen owned by the stream player.
- Added an isolated Electron stream-UI/media smoke with EN/RU and light/dark captures. Synthetic directory
events and local real WebRTC media are explicitly distinguished from TS6 server interoperability.
- Fixed memory growth during microphone restart/test cycles: capture processors acknowledge shutdown,
release their ports and track listeners, and close their own capture context without interrupting the
persistent playback context. Partial audio initialization is rolled back and can be retried.
- The active chat DOM now follows the existing 500-message history limit, preserving message headers and
the visible scroll anchor. Reconnect history retains server labels instead of entire server snapshots.
- Server image caching releases obsolete avatars, banners and icons when the snapshot no longer refers
to them, including downloads that finish after removal; current resources are not arbitrarily evicted.
- Core startup failures now release child/log/readiness resources on process close, including failures
without an exit event. Core stderr applies lossless log-stream backpressure.
- Screenshare lifecycle: duplicate/unknown per-stream stop notifications no longer remove sibling shares;
cancellation stops queued ICE/offer work, releases closed peer connections, and avoids retaining stopped
sessions through empty translated-label callbacks. Added isolated generated-media pipeline/lifecycle
evidence; no codec, bitrate or throttling policy change, and no claimed FPS-cap fix.
- Added reproducible disposable-profile Electron memory workloads with generated/fake audio, native heap
and process memory evidence, and regression coverage for capture cancellation, chat and image ownership.
- Second lifecycle audit: obsolete pending image downloads no longer expose revoked URLs when a cache
key returns (A→B→A); reused client rows reload avatars when UID changes. Stream discovery ignores old
responses after newer announcements, client/channel changes or stream restarts while preserving current
failures and completing fresh discovery. Delayed output/fullscreen failures cannot report errors for
ended or replaced viewing sessions. Added disposable real-renderer interleaving and generated-WebRTC
callback regressions; the live 20 fps report remains unexplained, with no performance-policy change.
- Audio/core failure ownership: capture-processor errors stop the microphone; failed context closure
retains ownership until an explicit recovery succeeds. Explicit playback recovery settles failed
diagnostics and preserves applied volume/output selection. Core log-destination failures report an
error without crashing main or stalling stderr; exited cores reject new commands while final replies
and events drain before close.
## 0.1.4 — 2026-10-24
Version 0.1.3 was tagged but never released: a race in the transmit-mode handshake was found before
publication (an older answer could re-enable forwarding while a newer mode change was still pending). It is
fixed here.
- Added voice activation as a third transmission mode next to push to talk and the open microphone
(Settings → Audio → Voice transmission, sensitivity High / Normal / Low). The core decides locally with
the earshot voice detector (a small embedded neural network, no cloud service, no speech recognition) on
audio that has already passed the microphone processing (noise suppression, echo cancellation, gain
control). It sends from about 100 ms before a detected onset until about 400 ms after the last detected
speech. After connecting, unmuting or changing the mode the gate cannot open for 200 ms, but every frame
since then is kept (up to 300 ms) and sent with the first spurt, so the first word is complete; that first
spurt therefore starts up to 300 ms late (later spurts carry the normal 100 ms). Muting, deafening, disconnecting, a channel or codec change and
a server talk denial discard what the detector heard. Push to talk and the open microphone are unchanged;
stored settings keep their mode, and new profiles still start with push to talk.
- The transmission mode moved from Settings → Keyboard to Settings → Audio; the push-to-talk key stays in
Keyboard. The microphone test explains that it only shows the input level and never transmits.
- The renderer forwards microphone audio only after the core has confirmed the selected mode; only the
answer to the latest request counts (older answers, also from a restarted core, are ignored), and a failed
mode change is shown and nothing is sent until it is applied. Renderer diagnostics now count frames
forwarded to the core, not "sent" frames; whether voice is sent is the core's transmitting state.
- Fixed: a preference write failure no longer changes the in-memory value the app keeps using.
- ARM64 CI runs the core unit tests (voice detector, resampler, identity, codecs) under qemu-aarch64
(emulated, not native hardware).
## 0.1.2 — 2026-10-24
- Fixed: Settings → Audio listed only the system default device. Electron reports the app origin as
`app://teamspeach/` and the permission check compared it with `app://teamspeach`, so Chromium withheld
device ids and names. The audio-only permission policy now normalises origins (camera stays denied);
real inputs and outputs are listed without starting the microphone, and the default entry names the
device it points to.
- The default theme is now dark, independent of the OS; Light or System can be chosen in
Settings → Appearance and persists. A theme already saved by an earlier version is kept as is.
- Right-click (or Shift+F10 / Menu key) on the microphone and headphones buttons opens an input / output
device menu sharing the Settings selection; left click still mutes/deafens.
- Voice diagnostics: the local log records the capture device and track state; with
`TEAMSPEACH_LOG=debug` it also records push-to-talk presses with window focus and each transmission burst
(frames, peak level).
- The push-to-talk hint says when the window is not focused (the key is read only there).
- Fixed: ~1/256 newly created or imported identities could not be loaded again (private key with a leading
zero byte). Storage format unchanged.
- Replaced the application icon assets with an original peach silhouette on a transparent background,
including PNG assets and a seven-size Windows ICO. The reproducible Electron export now renders the
SVG directly to an alpha-enabled canvas instead of capturing a window, avoiding captured scrollbars.
The start, error and onboarding screens show the same icon asset instead of a separate inline drawing.
- Added an English-default interface with selectable Russian, backed by shared catalogs for the renderer
and native identity dialogs. Repository-authored documentation and technical diagnostics are English;
historical captures and server-provided content remain unchanged.
- Added update checks against published public Gitea releases, Preview and Stable channels, verified
downloads for Windows x64 NSIS and Linux x64/ARM64 AppImage installations, and manual-update guidance
for zip/tar.gz distributions. Installation requires confirmation; active sessions defer background
downloads. Version 0.1.1 and older require a first manual installation of an updater-capable version.
- Fixed capture cancellation during pending microphone acquisition and prevented device changes from
being applied when saving the selected device fails.
- A saved microphone that is no longer available is reported as unavailable; TeamsPeach no longer opens
a different microphone in its place. Choosing an available device restores capture while connected or
during the microphone test, and opens nothing otherwise. A failure while building the capture chain
releases the microphone.
- The microphone and headphones menus show a failed device enumeration instead of an earlier list.
- Windows installations started with a custom profile (`TEAMSPEACH_PROFILE_DIR`) only offer manual
updates, because the installer would restart TeamsPeach on the default profile.
## 0.1.1 — 2026-10-24
- Linux AppImages use the static AppImage runtime (electron-builder toolset `appimage` 1.0.3,
runtime 20251108). The 0.1.0 ARM64 AppImage used the legacy runtime, which needs an unversioned `libz.so`
(normally only in zlib development packages) and failed to start on stock systems.
- Release gate: every AppImage must start (`--appimage-version`) in a slim container without development
packages — natively for x64, under qemu for ARM64.
- No application changes.
## 0.1.0 — 2026-10-24 (pre-release, superseded by 0.1.1)
- Electron desktop shell (contextIsolation, sandbox, strict CSP, allowlisted IPC, `app://` protocol).
- First-run nickname with persistent P-256 identity, visible UID, rename without UID change,
+239 -47
View File
@@ -1,62 +1,254 @@
# Design
---
name: TeamsPeach
description: The installed TeamSpeak 6 client's own visual system, reproduced from its source values.
colors:
tsv-bg-dark: "#2b3346"
tsv-bg-light: "#f5f5f5"
tsv-shaded-bg-dark: "#222A3C"
tsv-shaded-bg-light: "rgb(235, 235, 235)"
tsv-header-bg-dark: "#1C2539"
ts-new-header-bg-dark: "#121A2C"
tsv-contrast-bg-dark: "#0C1326"
tsv-contrast-bg-light: "#C9D9E5"
tsv-deviant-bg-dark: "#1E2538"
tsv-deviant-bg-light: "#d3d5de"
tsv-side-bar-bg-gradient-bottom-dark: "#1D2537"
presence-separator-presence-dark: "#171C2A"
strong-bg-dark: "#0B1124"
tsv-tint-dark: "#1588FA"
tsv-tint-light: "#5DA1CB"
tsv-tint2-light: "#22658f"
tsv-font-color-dark: "#FFFFFF"
tsv-font-color-light: "#1a1a1a"
tsv-font-subtitle-color-dark: "#697A97"
tsv-font-subtitle-color-light: "#445d77"
ts-third-font-color-dark: "#bbd6f3"
tsv-error-color-dark: "#CC3838"
tsv-error-light-color-dark: "rgb(255, 130, 130)"
tsv-away-color-dark: "#FF8B04"
presence-online-dark: "#17f78d"
tsv-online-color-dark: "#13F78D"
settings-highlight-bg-dark: "#282F40"
ts-tree-channel-bg-start-dark: "#192031"
ts-tree-channel-bg-end-dark: "#1D263A"
ts-tree-badges-bg-dark: "#222A3B"
tsv-chat-remote-bg-dark: "#697a97"
tsv-chat-self-bg-dark: "#0C1326"
ts-chat-system-message-bg-dark: "#131824"
ts-chat-system-message-text-color-dark: "#acacac"
tsv-chat-link-color: "#081cbd"
tsv-preview-bg-light: "#bccbeb"
ts-menu-action-color: "#8ac5fc"
tsv-separation-border-color-dark: "#1D1F20"
tsv-scrollbar-bg-dark: "#0B111D"
tsv-slider-track-bg-dark: "#131824"
ts-checkbox-bg-color-dark: "#0c0d0f"
tsv-commander-color: "#daa520"
typography:
body:
fontFamily: '"Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Fixed", "Segoe UI", Roboto, Helvetica, Arial, sans-serif'
fontSize: "15px"
lineHeight: "19px"
fontWeight: 450
content:
fontSize: "14px"
lineHeight: "18px"
small:
fontSize: "13px"
lineHeight: "15px"
large:
fontSize: "16px"
lineHeight: "19px"
title-small:
fontSize: "24px"
lineHeight: "28px"
fontWeight: 700
rounded:
small: "2px"
base: "4px"
large: "8px"
xlarge: "10px"
xxlarge: "15px"
xxxlarge: "20px"
pill: "100px"
spacing:
v-minimal: "2px"
v-small: "4px"
h-minimal: "5px"
v: "8px"
h-small: "10px"
v-large: "16px"
h: "20px"
h-large: "40px"
components:
button-filled:
backgroundColor: "linear-gradient(60deg, #0058FF, #1365BB)"
textColor: "#FFFFFF"
rounded: "{rounded.pill}"
padding: "4px 20px"
settings-section:
backgroundColor: "{colors.tsv-header-bg-dark}"
textColor: "{colors.tsv-font-color-dark}"
rounded: "{rounded.xxlarge}"
padding: "8px 20px"
---
Documented from the shipped interface (`app/renderer/styles/app.css`, `index.html`) — this records what is
built, it is not an aspiration. Mode: **Operate**. Direction: the category standard of voice-chat clients,
an engineering choice for a familiar working tool, executed with a restrained peach accent. The only
owner-pinned visual reference is the TeamSpeak 6 settings screenshot that the settings layout follows.
# Design System: TeamsPeach
## Overview
**North Star: "The official TeamSpeak 6 client, value for value."**
The owner asked for the installed TeamSpeak 6 client's design, without reinterpretation. Two earlier
TeamsPeach worlds (flat warm-neutral, then the Liquid Glass approximation) are retired. The target values
come from installed client 6.0.0.5163 (`main.css` sha256 `bc700401…`, `main.js` sha256 `9d6bea2e…`): theme
tokens from its webpack theme modules (`main.js` @92422 dark, @201685 light), scale tokens and component
geometry from `main.css`, layout constants from `main.js` (window slots @1273206). The extracted values
and source offsets are in `docs/evidence/official-parity/ts6spec-{shell,tree,chat,controls,settings}.md`.
The stylesheet keeps the official `--tsv-*` token names so values can be compared one to one. Source
matching, screenshot similarity and functional parity are separate evidence claims; this document is
the implementation contract, not proof that every rendered pixel or feature matches.
The product name and application icon stay TeamsPeach's own. Non-brand interface pictograms now use
the installed client's SVG artwork; provenance and redistribution limitations are recorded in
`LICENSES/teamspeak-client-icons-PROVENANCE.md`. The official JavaScript application is reference-only,
not the product's implementation.
## Colors
Dark is the default for new profiles; light follows the official light module. Both are declared as
plain `:root` (dark) and `@media (prefers-color-scheme: light) :root` blocks at (0,1,0) specificity, so a
locally installed theme file can override them by order, as with the official stock theme.
Blue `--tsv-tint` (#1588FA dark, #5DA1CB light; `--tsv-tint2` #22658f light) marks own nickname,
selection outlines, active toggles and primary actions; green (`--presence-online`) marks talking/online
and enabled toggles; red (`--tsv-error-color`) mutes and destructive actions; orange
(`--tsv-away-color`) away and warnings. Secondary text is `--tsv-font-subtitle-color`; client names
in the tree use `--ts-third-font-color` (#bbd6f3).
## Typography
Noto Sans variable files version 2.013 from the installed client are bundled under
`app/renderer/assets/fonts/`, with SIL OFL 1.1 in `LICENSES/NotoSans-OFL.txt`. Normal, italic and
oblique declarations follow the original font-face semantics. Body 15/19, content 14/18, small 13,
header titles 24/28 bold. Channel labels use 14px normal weight; client names use 14px semibold.
Chat names use the source hash/contrast colour calculation, with 16/19 message text and 13/15 events.
## Layout
- Two columns: sidebar `clamp(280px, 27vw, 390px)` (server header, host banner, channel tree, own-status
footer) and a workspace (connect form, or channel header + optional stream viewer + chat, or settings).
- Tree rows: channels with `#`/lock glyph, server channel icon at the right, server banner as a row
background fading from the sidebar colour; members indented under channels with avatar/status dot,
nickname (never truncated before group labels), server-configured group labels, mute/away/recording
flags, group icons and country code, and a pill "Смотреть" button for streamers.
- Settings follow the owner's pinned reference: the sidebar's room area is replaced by category navigation
(Назад к серверу, groups Пользователь / Приложение / Информация, active item with an accent bar and tint),
the workspace shows the selected category as titled cards (`.card`, 12 px radius) with an expandable
"Подробности" area for advanced video information. The connection, voice footer and any stream keep running.
- Saved servers sit above the tree as a compact list (name, address, action: Подключиться / Переключиться /
Подключено); a bookmark button in the server header shows or hides it.
- Stream viewer: black stage with the video contained, dark control bar (title, codec · resolution · fps,
mute, volume 0–100 %, fullscreen, stop). Overlay text explains every non-live state.
The window is the official three-slot frame (`.tsv-window`):
## Colour
1. **Sidebar** `#app-sidebar`, 270px default, max 420; dragging below 200 collapses it to the 62px rail.
Header gradient #121A2C → #1D2537, activity rows 44px with an always-visible 8px-radius pill inset
10px (4px gap), group captions 13px subtitle, footer 55px with a 3px separator inset 20px.
2. **Server pane** `#server-panel`, 500px default, min 220: 44px window bar (#121A2C) carrying the toolbar
pill (26px, `--tsv-bg`, 1px `--strong-bg` separators) with microphone and speaker; separate Away action; a 10px
inverse fillet; the server tree on the 25° gradient (#252F44 → #2E374C); the 92px server header card;
channel rows 44px with a 30px pill (inset 7/10, radius 9, 1.5px outline, channel background gradient
on by default); client rows 40px with 33px avatars and 23px status plates; the 55px status bar with
40px side padding.
3. **Detail pane** `.workspace`, min 295, body `--tsv-shaded-bg`: 44px window bar with the native caption
overlay, 71px content header (38px icon, 24/28 bold title, segmented mode switch), 4px separator, the
stream stage, chat log and composer.
Restrained strategy: warm neutrals plus one accent; state colours only where they mean something.
Settings occupy the main and detail slots as the official settings activity does at ≥900px: category
column `clamp(30ch, 20vw, 50ch)` with 44px rows, `--settings-highlight-bg` selection and a 4px tint bar;
pages max 640px wide with section cards (`--tsv-header-bg`, radius 15, padding 8px 20px, 12px apart).
Below 900px the same settings category node moves into sidebar resources and returns on leaving settings
or widening the window. Small/Large use the official token modules (53225/68865), not browser zoom;
collapsed rail widths are 52/62/72px. The native caption bar remains 44px to match its OS overlay.
| Token | Light | Dark | Use |
|---|---|---|---|
| `--bg` | `#f6f3f0` | `#1b2029` | window ground, settings background |
| `--surface` | `#fffdfb` | `#242b37` | workspace, inputs, settings cards |
| `--sidebar` | `#eee9e4` | `#1e242e` | sidebar, settings navigation |
| `--sunken` | `#e6e0da` | `#171b23` | footer, UID, group labels |
| `--text` / `--text-2` / `--text-3` | `#221c18` / `#5e544d` / `#776c64` | `#e7ebf2` / `#aab3c2` / `#8e98aa` | text hierarchy |
| `--accent` | `#b24f26` | `#f09a6c` | primary buttons, selected tab, own name, focus |
| `--accent-soft` | `#fbe2d4` | `#3a3033` | current channel, active settings category |
| `--peach` | `#f3a37c` | `#f3a37c` | brand mark |
| `--talk` | `#1f8a5a` | `#4fcf8e` | talking indicator, PTT held |
| `--danger` | `#b3261e` | `#f08b82` | mute/deafen active, errors |
Resize handles are invisible 9px strips centred on each pane edge, tinted at 50% while focused or
dragged. The native caption overlay is 44px high in the window-bar colour (`app/main/titlebar.js`).
Theme follows the choice in Settings → Внешний вид (system by default, implemented through Electron
`nativeTheme.themeSource`, so `prefers-color-scheme` stays the single switch). The dark palette uses the
blue-gray surfaces of the owner's reference (`--bg #1b2029`, `--surface #242b37`, `--sidebar #1e242e`).
Selection, caret, scrollbars and focus rings use the palette.
## Elevation & Depth
## Type
Depth comes from the official background ladder (contrast < header < shaded < bg), not shadows.
Context menus paint `linear-gradient(#0B1124, #222C41)` at 0.8 behind a 4px blur, radius 8, shadow
`1px 1px 2px rgba(0,0,0,.2)`. Dialogs use the modal container (contrast-bg, 1px tint2 border, radius 8)
over a 25% contrast-bg wash with 2px blur. Notifications use the 15px-radius gradient plate.
Stream tiles have a 2px `--tsv-bg` border and radius 8; their 26px control bar slides in on hover.
System UI stack (`system-ui, -apple-system, "Segoe UI", "Noto Sans", Ubuntu, Cantarell, …`), 14 px base,
line-height 1.45; headings 600–650 weight at 17–24 px; monospace only for the UID and codec lists (data).
Tabular numerals for counts, times and statistics.
## Shapes
Radii follow the official scale: 2 (toolbar buttons), 4 (fields, chips), 8 (menus, tiles, composer,
dialogs), 9 (tree pills), 10 (server card, event rows, selects), 15 (settings sections, theme tiles,
notifications), pill (toolbar, filled buttons, segmented controls).
## Components
Buttons (primary, default, ghost), 34 px icon buttons with `aria-pressed` states, fields with labels above,
radio/checkbox choices with accent colour, range sliders, chat tabs with unread counters, toasts in a polite
live region (errors 10 s, others 5 s). Icons are an inline SVG sprite drawn in one 1.8 stroke style.
- **Buttons:** filled pill gradient (#0058FF → #1365BB) for primary; gray pill on `--tsv-preview-bg`;
plain tint text for secondary; 42px subtle icon buttons whose glyph tints on hover.
- **Inputs:** 26px, `--tsv-bg`, 1.5px transparent border turning tint on focus; selects in the
multiselect look (radius 10); 20px dark checkboxes with a green check; 40×20 toggles; 10px slider
tracks; segmented 26px pills.
- **Chat:** detailed and compact styles. Remote bubbles #697a97 with a 12×14 tail on the first message,
own bubbles #0C1326; compact rows use the source 65px timestamp column and 13px bold sender. Event rows
have a #131824 → transparent gradient and radius 10; composer formatting sits above the 14/18 input
and working emoji, conditional attachment and send actions.
- **Menus:** 30px rows, 22px icons, 13px subtitle section captions, disabled #9c9c9c, destructive
rgb(255,130,130), min width 170, max 260. Client group/volume subpages replace the same popup contents;
Back or Left/Escape restores the original items and focus, not a second flyout.
- **Dynamic settings:** Audio follows Microphone, Output and Processing sections; device controls move
without being recreated. Identities use the source selector/Details/Bookmarks order; creation and rename
use the inline selector editor, and Details always represent the selected identity. Export/private-key
guidance and the separately labelled Current Server Nickname action remain functional product additions.
Whisper receive/list/editor and key binding controls use actual labelled rows, not an
unstyled vertical list. Toggle labels remain left with 40×20 switches right; numeric controls stay
compact and faders include their real live output. All fields, including inputs with implicit text
type, receive the shared source control styling. These changes address the first packaged capture
batch; confirmation screenshots are QA evidence, not assumed passes.
- **Selected values:** language flags and sidebar icon-mode pictograms come from the original local
artwork. The underlying select owns the value; decorative selected artwork is aria-hidden. Default
audio-device captions come only from Chromium's explicit `default` alias and remain available to
assistive technology. Missing alias metadata leaves the caption blank, not guessed.
## Motion
Motion is limited to the official short state transitions (pill growth 150ms, toolbar 100ms, controls
120ms, toast 180ms); reduced motion removes them. Reduced transparency/increased contrast make menus and
notifications opaque; forced colours use system tokens.
Only colour transitions (120 ms) and the toast entrance (180 ms, exponential ease-out); everything is
disabled under `prefers-reduced-motion`.
## Documented deviations from the official client
- No TeamSpeak logo in the sidebar header: the header shows the TeamsPeach name/icon. Search filters
local server connections/bookmarks only. Connecting and identity selection use a detail-pane form.
The account-bound community action slot instead exposes the real New Connection action. Bookmark
search/add/disclosure remain working; no decorative, nonfunctional folder action is introduced.
- No notification bell, cloud contacts, myTeamSpeak presence or "Setup Chat" footer state: TeamsPeach is
strictly account-free. Offline onboarding includes a real persisted System/Dark/Light choice before
local identity creation/restoration, adapting the official `first_launch.theme` stage (render@2995390)
without its account stages. Existing profiles keep their theme and do not repeat onboarding. The footer
shows the local nickname and UID instead of cloud presence: the approved account-free exception.
- A push-to-talk hold button remains in the server footer in push-to-talk mode for pointer access;
the central toolbar preserves the source Away + microphone/speaker geometry.
- Information/Chat/Files modes are in the detail header. Open private conversations and explicitly
opened server chat are sidebar activities; no extra tab row occupies the channel chat canvas.
- Stream placement moves the same stage/media nodes between chat and the 175px tree overlay. Tile layout
and stream controls depend on the native/media capabilities described in FEATURE_COMPATIBILITY.md.
- Original non-brand SVGs and the exact 2.013 font replace the earlier approximate glyphs and font.
This is not evidence that every component's placement or state matches the original.
- A "System" theme tile exists beside the official Dark and Light tiles.
- New server administration, identity, snapshot, whisper, recording and file surfaces use the source
control tokens around real APIs. Token conformity alone does not establish identical screen composition.
- Local UID contacts, public badge display, bookmark folders, Privacy and the
whisper manager bind real local/server operations. They do not emulate a myTeamSpeak account.
The whisper overlay shares the settings controls and list reset; its tree preview derives only from
current-session snapshots, and received-whisper history distinguishes departed identities.
- File Transfer uses source-style icon actions and keyboard-operable minus/value/plus controls. Existing
always-ask and 2/2 concurrency defaults remain; folder captions expose only the basename and concurrency
subtitles truthfully describe the shared app-wide pool, not the original's per-server wording.
- Notification category switches suppress all sounds in that category without erasing per-event choices
or event logs. The disabled-category message and system notification subtitles use the original strings.
- The refreshed actual-frontend matrix remains a strict visual failure: 168 evaluated pairs, none
blocked and none fully passing. A later focused 32-pair confirmation also failed; it measures a
newer build and is not substituted for the full matrix. Native/account/branding exceptions remain
explicit; source transfer and functional checks do not establish completed 1:1 reproduction.
Build-specific results and remaining differences are in `qa-parity-harness.md`.
## Do's and Don'ts
- **Do** take every new value from the installed client and cite its offset in the evidence specs.
- **Do** keep the native caption overlay colours equal to `--ts-new-header-bg` and `--tsv-font-color`.
- **Do** keep the stock `--tsv-*` token declarations at (0,1,0) specificity.
- **Don't** reinterpret, restyle or "improve" the official look; deviations above are product constraints.
- **Don't** add account-bound controls (bell, cloud contacts, presence) that would do nothing.
- **Don't** claim full feature parity from visual parity; see `FEATURE_COMPATIBILITY.md`.
+125 -16
View File
@@ -1,43 +1,152 @@
# TeamsPeach ↔ TeamSpeak 6 server features
Status: **proven** = exercised against the real server 10.10.10.160 (TS6 6.0.0-beta13.1) with the real
UI, evidence path given; **implemented** = code + unit/loopback tests, no live proof yet;
**blocked** = not available, reason given. Windows x64 only unless stated.
## Expanded local panels checkpoint (2026-11-01)
This supersedes the earlier absence of local contacts below. Remote Apps remains explicitly excluded.
The earlier tables remain historical evidence, not a declaration that all current screens match TS6.
Runtime artifacts are under `C:/Users/Admin/tmp/teamspeach-exact-design-20261101/`;
the exact build hashes and limits are in `docs/evidence/official-parity/qa-parity-harness.md`.
| Surface | Current exercised result | Boundary |
|---|---|---|
| Bookmark folders and connection options | Actual editor, nickname/channel/startup persistence, current-channel insertion, stale-session drag rejection and duplication passed; real Windows DPAPI save/reveal/restart/clear passed | Startup routing was exercised with injected enumeration and real offscreen connect rejection; live joins and Linux/macOS key stores remain unverified |
| Privacy and Markdown Help | Actual trusted-host subpage and production Markdown examples opened; concurrent confirmation/reset regression passed | No cloud typing/presence or telemetry service |
| Key bindings | Actual profile/binding persistence and process restart passed after the contents-layout visibility fix | Native global shortcut registration was not exercised |
| Four-level noise reduction | All levels persisted via the native range control for the selected input device | Independent processing; no physical microphone or native-DSP identity proof |
| Remote Apps | Excluded by the owner's explicit instruction; erroneous intermediate integration removed | Historical test artifacts describe only that removed intermediate implementation |
| Server icons and snapshot transfer ownership | Main/renderer consumer tests cover session grants, reconnect, partial failure and recycled transfer IDs | No successful live server icon mutation is claimed |
| Local contacts and public badges | Model/prefs/catalog tests and actual contact add/alias/restart passed; offline state is retained honestly | Not cloud contacts, badge ownership/redeeming or global presence |
| Rich chat | Actual history IPC/restart, scope isolation and local KaTeX/Mermaid hydration passed | Synthetic messages, no server traffic; sandbox permissions tested separately |
| Identity related bookmarks | Actual nested/default assignment display and nickname-clearing restart passed without changing UID | The original identity component exposes ordinary nickname, not a separate editable phonetic field |
| Whisper manager and history | Actual hidden UI with synthetic events passed overlay switching, preview, session/recycled-ID cleanup and received-history handling | No live whisper delivery proof; two microphone attempts were refused by the test stub |
| Changelog and licenses | Actual packaged list/detail navigation and focus restoration passed after fixing stringified DOM arrays | Displays this installation's documents, not TeamSpeak service terms |
Strict whole-screen visual parity remains open. The historical pair failures below are not converted
to passes by adding functionality or changing the test wait implementation.
## Historical interoperability baseline
The table below records earlier exercised builds, not automatic proof of the current cutover. **Proven**
means the cited earlier run exercised that feature; **implemented** means its recorded implementation
scope, not a new live-server pass. Current account-free acceptance follows the table. Windows x64 only
unless stated. No new live-server mutation or physical media capture is part of the final parity run.
| Feature | Status | Evidence / reason |
|---|---|---|
| First-run nickname, P-256 identity, public UID, restart persistence, rename keeps UID | proven | `docs/evidence/runtime/2026-10-24-identity/` |
| Connect / disconnect by address | proven | identity run `04-connected.png` |
| Saved servers (name + address, no passwords): save, edit, delete, restart persistence, one-click connect, clean switch | proven | `docs/evidence/runtime/2026-10-24-servers-settings/` (connect with same UID, mic muted) + `test/prefs.test.js` |
| Sectioned settings (Идентичность, Серверы, Внешний вид, Звук, Видео, Клавиши, Информация) without dropping the connection | proven | servers-settings run: all 7 panels visited while connected, keyboard Home/arrows, Escape returns |
| Sectioned settings (Identity, Servers, Appearance, Audio, Video, Keys, Information) without dropping the connection | proven | servers-settings run: all 7 panels visited while connected, keyboard Home/arrows, Escape returns |
| Theme: system / dark / light | implemented | dark captured in servers-settings screenshots |
| User themes / extensions | Current implementation; format- and `--tsv-*` token-compatible, not official DOM-class compatible | `docs/themes.md`; current consumer unit suite and guarded runtime acceptance below |
| Server password on connect | implemented, not exercised | the test server has no password |
| Channel tree, join channel, password channels (inline prompt) | proven (join), implemented (password) | probe joined `cs`; no password test performed |
| Voice TX/RX (Opus via core), talking indicators, mute, deafen RX+TX block/restore, PTT, open mic | proven | `docs/evidence/runtime/2026-10-24-voice-chat/` (synthetic capture device, real path after it) |
| Voice TX/RX (Opus via core), talking indicators, mute, deafen RX+TX block/restore, PTT, open mic | proven between two TeamsPeach clients with synthetic capture | `docs/evidence/runtime/2026-10-24-voice-chat/`; the path after capture is real. Live microphone voice with the official TS6 client and Asahi hardware operation are not proven |
| Voice activation (local voice detector in the core, sensitivity High/Normal/Low, 100 ms preroll, 400 ms hangover) | proven between two TeamsPeach clients with a real speech recording as file-fed capture; detector unit tests on real speech and synthetic noise | `docs/evidence/runtime/2026-10-24-vad-dev/`, `docs/evidence/vad-0.1.4.md`: speech opens and silence closes the gate, mute/deafen/push-to-talk-not-held/disconnected send nothing, setting persists. A live microphone, an official TS6 receiver and native ARM64 hardware are not proven (ARM64 unit tests run under qemu) |
| Long-session capture freshness and offline Opus fidelity | measured with real Chromium fake-file capture and native encoder/receiver, not natural microphone or server interoperability | `docs/evidence/voice-timed-20261029.json`: before/after 190 s, 9500 frames each, stable 48 kHz mono EC/NS/AGC; 600 ms renderer stall previously replayed 30 frames in 10 ms, now discards 20 older-than-200-ms frames. Both codecs at quality 0/6/10 measured. Synthetic session did not reproduce progressive barrel coloration; subjective live report remains unresolved. Official UI estimator vs unknown native DSP/encoder distinction: `docs/evidence/voice-official-source-20261029.json`. |
| Private chat | proven | voice-chat run `15/16-*.png` |
| Channel chat | proven error path | server denies guests: TS 2568, permission 224, shown in UI |
| Server chat | implemented | not exercised live |
| Mic/output device selection | implemented; output routing proven in loopback | `2026-10-24-loopback-browser-pipeline/` |
| Mic/output device selection (Settings and right-click menus on the footer buttons) | proven on real hardware (Windows) | `2026-10-24-audio-devices/`: 6 inputs + 6 outputs listed without capture (matches the OS endpoint inventory), choice persists across restart, menus do not toggle mute/deafen; output routing also proven in loopback |
| TS6 screenshare viewing (P2P): discovery, join, answer, ICE buffering, stop | proven | `2026-10-24-ts6-stream-view/`: AV1 2560×1440 ~59 fps, 2298 frames, D3D11 decoder |
| Realign / reconnect offer renegotiation | implemented | unit tests + loopback (2 offers/2 answers); no realign seen live |
| Stream audio | implemented | live stream advertised `audio=0`; loopback 139 inbound audio packets |
| SFU streams | blocked | P2P only; `notifysfuaccessinfo` → "не поддерживается" |
| Sending own screenshare | blocked | not implemented |
| Server/channel group labels (`name_mode`), custom group icons, country | proven | `2026-10-24-tree-metadata/`: labels «куколд», «бля ща», 6 custom icons, RU |
| Independent simultaneous P2P viewers, native fullscreen/Escape and picture in picture | real local WebRTC and historical native Windows fixture proof, not new live-server proof | `C:/Users/Admin/tmp/teamspeach-ui9-20261024/dev-streams/result.json`: native PiP HWND/topmost and cleanup before the desktop-test prohibition. Redesigned player: `C:/Users/Admin/tmp/teamspeach-player-refine-20261024/final-stage/result.json`, 120 offscreen assertions covering two generated receivers, identity/continuity, controls, keyboard, resize/collapse, and actual contained-image proportions. No new native PiP/fullscreen evidence; see `docs/evidence/player-refine-20261024.md` |
| SFU streams | blocked | Exact request fields are partly recovered, but token/URL/auth values and Chromium negotiation interoperability remain unproven; see current limits below |
| Sending own screenshare | generated production sender-to-viewer media verified; native/live interoperability not established | `C:/Users/Admin/tmp/teamspeach-publisher-decoded-pass/result.json`: decoded 640×360 H.264 and audio RMS 0.1063, admission/stop/cleanup. `offscreen-broadcast-final/result.json` under the UI9 evidence root covers 14 UI cases and eight locale/theme/size captures with injected capture only |
| Server/channel group labels (`name_mode`), custom group icons, country | proven | `2026-10-24-tree-metadata/`: two server-supplied group labels retained verbatim in the raw capture, 6 custom icons, RU country code |
| Built-in group icons (ids 100, 200, 300, 500, 600) | partial | server has no file (core: `not_found`, `builtin:true`); neutral badge named after the group |
| Channel icons and channel banners | proven | tree-metadata run: 11/11 channel icons and 11/11 banners from the server's file transfer |
| Host banner | proven | tree-metadata run: server GIF rendered above the tree |
| Host banner | historical server download proven; new behind-card presentation fixture verified | `C:/Users/Admin/tmp/teamspeach-ui9-20261024/offscreen-shell-confirmed/result.json`: compact artwork, theme/locale/window sizes, selectable content, absent-banner cleanup; not a new server-media download test |
| Avatars (server file) | implemented | no client on this server has `client_flag_avatar` |
| Avatars (myTeamSpeak URL) | proven | tree-metadata run: 1 avatar (public https PNG, bytes sniffed; URL allowlisted from server data) |
| Nickname colours | matches official semantics | official UI colours own client and myTS contacts locally (`docs/evidence/ts6-official-client.md`); TeamsPeach highlights own nickname, has no contacts |
| Poke | not implemented | core supports target `poke` |
| Poke, target menus, moderation confirmations, avatar selection | historical real-shell/preload/validator fixture | `C:/Users/Admin/tmp/teamspeach-ui9-20261024/offscreen-menu/result.json`; no live moderation/avatar transactions. Current whisper/menu additions are tested separately below |
| Identity export | proven | packaged Windows run `2026-10-24-windows-package/result.json`: real core CLI export through the app (only the native save dialog answered by the harness), file starts with `[Identity]`, status shows the UID |
| Identity import / restore from backup | implemented, not exercised | uses the same core CLI; import of a file produced by the official TeamSpeak client not verified |
| Hardware video decode on/off | proven (policy) | packaged run: saved off → restart → launched with `disable-accelerated-video-decode`, engine reports `disabled_software`. Separately, the live TS6 stream decoded AV1 with `D3D11VideoDecoder` while allowed; no claim for other codecs |
| Cisco OpenH264 toggle / per-codec backend choice | not possible in this engine | Chromium WebRTC decodes H.264 with FFmpeg (OpenH264 only encodes) and exposes no decoder selection; stated in settings |
| Linux x64 / arm64 packages | in CI | release workflow written; results only from finished runs; Asahi hardware not reachable |
| Windows x64 package | local build | built on the developer PC, not in CI |
| Linux x64 / arm64 packages | released (pre-release v0.1.1), built in CI | release run #18 on `71300ff`: tests, core smoke (arm64 under qemu), every packaged arm64 ELF 16 KiB-compatible, static AppImage runtime starts in a slim container (arm64 under qemu); `docs/evidence/release-v0.1.1.md`. v0.1.0 ARM64 AppImage is broken (needs `libz.so`). Not run on Asahi hardware (target unreachable) |
| Windows x64 package | released (pre-release v0.1.1), local build | built on the developer PC from `71300ff`, static CRT core, provenance file attached; packaged smoke in `docs/evidence/runtime/2026-10-24-windows-package*/`; not tested on a pristine Windows |
| macOS, Windows ARM64 | blocked | no macOS host; Windows ARM64 needs the VS "MSVC ARM64 build tools" component (not installed) |
| Server/channel group (role) and permission management | not implemented | groups are displayed read-only; no assignment or permission editing |
| General file browser / file transfer | not implemented | file transfer is used internally only to download icons, banners and avatars |
| Other TeamSpeak 6 features not listed here | not implemented | TeamsPeach does not claim full TS6 parity |
| Server/channel group (role) and explicit client/channel permission management | implemented; controlled command/wiring coverage, not live server proof | Real verbs and target/connection-generation guards; production-shell fixture confirms group/permission payloads and cancel paths. Unknown effective rights remain server-decided |
| Per-participant local volume/mute/reset | generated native two-codec decode/mix plus real UI transport verified | Whole native suite: 66 unit tests including both codecs, gain/mute/reset and subprocess proof; max sample error 2, target mute retains other speaker exactly. Connection-scoped UID identity and recycled decode queues tested; no new live call claim |
| Channel member collapse and sidebar resize | isolated Electron UI verified | `C:/Users/Admin/tmp/teamspeach-ui9-20261024/dev-tree/result.json`; actual pointer/keyboard, per-server persistence, child headings retained; no active live-call proof |
| Selected-application broadcast audio | Windows native capture proof and synthetic bridge-to-WebRTC proof are separate; Linux runtime unverified; macOS blocked | `docs/evidence/native-app-audio-proof.json` records prior Windows 64.7 dB selection isolation, before later ancestry/lifetime fixes. `smoke-out/appaudio-synthetic/result.json` proves exact-contract PCM through production transport/worklet and decoded WebRTC. Combined native-to-WebRTC verification needs an isolated audio endpoint; prior default-output tone was potentially audible. Linux requires pactl/parec and PulseAudio or PipeWire-Pulse; macOS SDK/CoreAudio/TCC implementation is missing |
| General file browser / file transfer | Implemented in current cutover, not part of this historical baseline | Legacy TCP transfer and app-wide settings; current native and main/renderer tests below |
| Other features | No blanket parity claim | The current full feature matrix identifies owners, observed tests and exact remaining prerequisites |
## Earlier account-free acceptance checkpoint (2026-11-01)
Scope is strictly local/server functionality without an account; myTeamSpeak/cloud/Matrix services and
Remote Apps integration are excluded by instruction. No account UI is substituted for a missing local
feature. Tests use disposable state and controlled inputs. A protocol unit fixture is not a real server
interoperability claim, and synthetic renderer IPC is never described as native transaction success.
Current exercised gates: **318 Node consumer tests passed**, one deliberately skipped live release-list
test; **152 native unit tests passed**, one optional external-PCM audit ignored; **5 native stdio bridge
tests passed** after contract fixes. Full logs are in
`C:/Users/Admin/tmp/teamspeach-official-parity-20261101/qa-final/`. Actual release subprocess checks also
passed: two simultaneous core PIDs sharing the canonical identity without private-key runtime copies,
and 30 disconnected administration requests plus four malformed requests rejecting with exact errors.
Linux x64 additionally passed **154 native unit tests and 5 stdio tests** in an approved disposable
Rust 1.96 container. The same source cross-built for `aarch64-unknown-linux-gnu`; its ELF passed the
16 KiB page-alignment check (64 KiB LOAD alignment, GLIBC_2.34). It was not executed on ARM/Asahi.
Only owned temporary build files/containers were removed afterward; runner services/config were unchanged.
Actual hidden runtime passes include all twelve settings categories in EN/RU plus restart, native identity
CRUD/improvement cancellation, whisper/keybind persistence/restart, rich-chat history and safe local
math/diagram rendering, theme-resource confinement, onboarding theme-save ordering, menus, broadcast UI,
and administration/recording/file-browser controller rendering. The whole-shell batch passed 1,001 checks
over 324 cases. **224/224 class-matched visual metrics passed** at 1553×998 after correcting the independent
reference's source-observed 260 px popup modifier; this is not whole-image or whole-client identity.
| Feature family | Owner | Current observed evidence | Scope boundary |
|---|---|---|---|
| Multiple identities, additive import/export, defaults, guarded delete, hash-cash resume/cancel | AstraIdentity | Native profile/improvement and real CLI stdio tests; hidden actual create/edit/default/delete/improve-cancel passed | No official exported-key corpus claimed |
| Eight simultaneous server slots, viewed/input routing, reconnect epochs, bookmark identity | AstraConnections | Connection/media consumer units passed; actual two-core release subprocess proof passed | No new server joins; native microphone routing hardware not exercised |
| Channel CRUD/subscriptions, away/talk power, server moderation/keys/passwords/log/client database | AstraCore | Native wire/target units and 13 renderer behavioral cases passed; real disconnected-core rejections passed | Controlled protocol replies, not successful live server mutation |
| Server snapshots, typed properties, UID memberships and icons | AstraCore | Snapshot codec and main consumer suites passed | Import is non-atomic; server icon canonicalization and server feature support remain server-dependent |
| Whisper lists/groups/quick/reply, epoch gating and incoming deny | AstraAudio | Native generated Opus whisper route/block and target tests passed; local store/hold tests passed | Offline core rejection is not live whisper interoperability; contacts-only targets excluded |
| Per-device DSP, voice activation/PTT delay, dB fader, output/notification routing | AstraAudio | Native detector/mix tests and generated worklet consumer tests passed | Independent processing, not private native DSP identity; physical audio not exercised |
| Global hotkeys | AstraAudio | Windows/Linux parsing/backend tests and Linux x64/ARM compilation passed; offscreen no-helper guard passed | macOS global shortcuts unsupported; Windows/Linux OS registration/portal runtime deliberately unexercised |
| Legacy files, opaque chooser capabilities, commit/cancel/no-overwrite, global settings | AstraFiles | Real loopback TCP byte/hash/pacing/cancellation tests and main/renderer/scheduler consumer suites passed | HTTPFT/S3 explicitly unsupported; no speculative fallback; filesystem hard-link requirement fails safely |
| Recording/WAV timing, tracks, pause/finalize, notification log/matrix, OS local settings | AstraRecordThemes | Generated native PCM/WAV tests and main/renderer policy suites passed | No real microphone, OS startup/lock action, notification sound or private recording exercised |
| Local themes and appearance options | AstraRecordThemes / AstraVisual | Functional confinement suites and real selected CSS/font/image/restart/denied-remote smoke passed; actual settings pixels inspected | Package/token compatibility only, not official DOM-class compatibility |
| Local history, safe rich chat, drafts/unread, links/images, file attachments | AstraChat | Main/parser suites; actual 621-row history IPC/restart, local KaTeX/Mermaid and inert malicious-content smoke passed | Non-own-channel legacy text delivery unverified; no Matrix/cloud edit/reactions/read receipts |
| P2P stream extras, layout, internal/standalone popout and publishing controls | AstraStreams | 249 generated-media stage checks; actual sender→receiver video/Opus, admission, rate changes, pause, ban and cleanup passed | macOS selected-application audio unimplemented; standalone viewport emulation limitation below; no live SFU claim |
| Official visual system and EN/RU catalogs | AstraVisual / AstraQA | All twelve settings categories EN/RU/restart; actual full three-pane/settings/menu pixels reviewed; 224 class-matched metrics passed | Historical 22/22 source-reference probes are not whole-client identity |
The complete **38-row original feature inventory**, owner, evidence and exclusions is
[`docs/evidence/official-parity/final-feature-matrix.json`](docs/evidence/official-parity/final-feature-matrix.json).
Consolidated results and exact package hashes: `qa-final/verification.json` and `qa-final/package-manifest.json`
under the evidence root above. The isolated package is `build/win-unpacked/TeamsPeach.exe`; no installer
was run, no version was changed and nothing was published.
## Remaining implementation gaps and external verification prerequisites
- **SFU:** `docs/evidence/official-parity/sfu-native-inspection.json` and
`docs/evidence/official-parity/sfu-request-construction.json` recover command/envelope fields,
not authoritative token origin/renewal, exact optional/value branches or a proved mediasoup-to-Chromium
negotiation. `docs/evidence/official-parity/server-sfu-prerequisite.json` records a read-only check of the configured server's empty
SFU endpoint; it does not prove absence of an advertised runtime capability. No controlled SFU endpoint
has been exercised, so SFU remains blocked rather than falsely successful.
- **HTTPFT/S3:** `docs/evidence/ts6-filetransfer-native.json` and `docs/evidence/ts6-filetransfer-native-continuation.json` record
command arguments but not complete endpoint/base-URL binding, operation response envelopes, S3 payload
mapping or required headers/verb values. No controlled newer-storage server fixture is available.
- **macOS implementations:** selected-application audio capture is not implemented; a CoreAudio/TCC
backend is still needed. Global shortcuts are explicitly unsupported by the non-Windows/non-Linux
branch of `core/src/hotkeys.rs`. These are implementation gaps, not merely unexecuted tests.
- **Non-own-channel chat:** arbitrary legacy channel-text delivery is not established by the own-channel
and UID-bound private-message fixtures. It remains specifically unverified; current results do not
establish permission semantics or delivery to a channel the client has not joined.
- **Platform/native behavior:** hidden Windows tests and Linux cross-compilation do not prove Asahi/M1 hardware, Linux portal/global
shortcuts, physical microphone/speaker/camera/application capture, native fullscreen/PiP or official
native DSP sound identity. Those are stated as verification limits, not silently emulated passes.
- **Standalone pop-out:** the actual Electron 44.9.3 offscreen guest starts with a 0×0 native viewport.
`docs/evidence/official-parity/popout-offscreen-limitation.json` records the source-supported engine
explanation. Explicitly authorized test-only CDP viewport emulation exercises the real adopted video,
MediaStream, continuing RTP, child controls and restore/cleanup. It does not verify unmodified native
offscreen painting or a normal visible child window; production flags are not weakened for the test.
+14
View File
@@ -6,5 +6,19 @@
(`LICENSE`, `LICENSES.chromium.html`), as placed there by electron-builder.
- The native core (`teamspeach-core`, built on ReSpeak tsclientlib, libopus and other Rust crates)
ships its complete third-party notices in `teamspeach-core-THIRD_PARTY_NOTICES.md` in this folder.
This includes the earshot voice detector (MIT OR Apache-2.0), whose crate embeds the small neural network
it runs (`weights.bin`) under the same license.
- The interface font Noto Sans (variable regular and italic, version 2.013, © 2022 The Noto Project Authors) is
bundled under the SIL Open Font License 1.1; see `NotoSans-OFL.txt` in this folder. The files are the exact
copies shipped in the installed official TeamSpeak 6 client bundle, unmodified.
- Interface icons are artwork of the official TeamSpeak 6 client (TeamSpeak Systems GmbH), included at the owner's
direction without an identified redistribution licence; TeamsPeach does not relicense them. Source, hashes and
transformations are recorded in `teamspeak-client-icons-PROVENANCE.md` in this folder.
- The portable microphone noise suppressor uses the WebRTC-derived Sonora implementation, BSD-3-Clause.
See `sonora-NOTICE.txt` for source/version provenance and `denoise-THIRD-PARTY-NOTICES.txt` for the pinned
dependency and Rust standard-library license texts. The same packaged WebAssembly module runs on all targets.
- Notification WAV files are copied from the installed official TeamSpeak client at the owner's direction.
No redistribution licence has been identified; source hashes and event mapping are recorded in
`teamspeak-client-sounds-PROVENANCE.md`. They are not relicensed by TeamsPeach.
- TeamSpeak is a trademark of TeamSpeak Systems GmbH. TeamsPeach is an independent client and is not
affiliated with or endorsed by TeamSpeak Systems GmbH.
+99
View File
@@ -0,0 +1,99 @@
Noto Sans 2.013 variable, axes wght 100-900 and wdth 62.5-100 (app/renderer/assets/fonts/NotoSans-VF.ttf,
NotoSans-Italic-VF.ttf): unmodified copies of the files shipped in the installed official TeamSpeak 6 client
(html/client_ui/b1d0ab70303caea663db.ttf, name ID 3 "2.013;GOOG;NotoSans-Regular", sha256
74df1f61ab9d4bfaa961c65f8dc991deaae2885b0a6a6d6a60ed23980b3c8554; html/client_ui/628d4779d07f4e15066b.ttf, name ID 3
"2.013;GOOG;NotoSans-Italic", sha256 fe5a1fafb96618733aa4ea4c14a2e76ee65fee0d042b040e374f17575467e433).
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
File diff suppressed because it is too large. Load diff
+61
View File
@@ -0,0 +1,61 @@
TeamsPeach noise reduction (app/renderer/assets/audio/denoise.wasm)
===================================================================
The microphone noise reduction module is built from TeamsPeach's dsp/ crate
(scripts/build-denoise.mjs, target wasm32-unknown-unknown) and contains code from
the following crates, compiled in unmodified:
sonora 0.2.0 BSD-3-Clause (three-band 48 kHz filter bank)
sonora-ns 0.2.0 BSD-3-Clause (WebRTC noise suppressor)
sonora-fft 0.2.0 BSD-3-Clause (FFT used by the noise suppressor)
Source: https://github.com/dignifiedquire/sonora
Commit: a024d6ef8351add55be5e8b1d6cc35f555787660 (per the published crates'
.cargo_vcs_info.json)
Registry: crates.io; package checksums (SHA-256 of the .crate files)
sonora 0.2.0 2e1ce442ab5cb392c4067b8f2cced20be4cf12e479f6dfbf44acbe9b14ac9250
sonora-ns 0.2.0 d511feef19302c716d245c4555087d161ba91c178735ea11107dcce0d0b7a86f
sonora-fft 0.2.0 27e272c70f34363afb5382dd1818c05f8f63ef6785635736a14e9ccbbb5ba012
sonora is a pure Rust port of the WebRTC Native Code audio processing module
(M145 plus later upstream fixes), via PulseAudio's webrtc-audio-processing
extraction. Only the filter bank and noise suppressor run; sonora's echo
canceller and gain controller are never constructed. TeamsPeach does not claim
bit-identical behaviour with TeamSpeak's own noise reduction.
The module also contains parts of the Rust standard library (core, alloc, std
and its bundled allocator and math routines), licensed MIT OR Apache-2.0.
License of sonora, sonora-ns and sonora-fft (BSD-3-Clause, verbatim):
Copyright (c) 2011, The WebRTC Project Authors. All rights reserved.
Copyright (c) 2016, Arun Raghavan and contributors. All rights reserved.
Copyright (c) 2026, dignifiedquire. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of Google nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,356 @@
# Official TeamSpeak 6 client icon artwork in TeamsPeach — provenance
The SVG symbols in the sprite of `app/renderer/index.html` and the four mask files in `app/renderer/assets/icons/`
are artwork of the official TeamSpeak 6 client (TeamSpeak Systems GmbH), copied from the client installed on the
owner's workstation at the owner's direction (2026-11-01 brief: the installed client's design, value for value).
**Licence status.** No licence grant for redistributing this artwork has been identified. The installed client is
governed by its own licence agreement (`licenses/en/la_desktop.html` in the client installation). TeamsPeach does not
relicense this artwork and does not claim the right to publish it; it is not covered by TeamsPeach's own terms or by
any open-source licence in this folder. TeamSpeak logos, wordmarks, `teamspeak_label`, brand icons, presets and
account/myTeamSpeak-only artwork are deliberately not included; the TeamsPeach name and `assets/icon.png` remain the
product brand.
## Source
- Installation: `%LOCALAPPDATA%/Programs/TeamSpeak/html/client_ui` (TeamSpeak.exe file version 6.0.0.0; DESIGN.md
records build 6.0.0.5163 for the same bundle).
- `main.js` sha256 `9d6bea2ee5333086555c36584621c1b3462a83042ce746d3229d6766a9b82c39`; `main.css` sha256 `bc700401d04954d07f82570b060335e2278166db4f618f6cf3dcf8fde1834adf`.
- `images/icons/settings.json` sha256 `82c6a1be9a052fcbabe5b762c21c7893947703fd4db13094c92c48f89ba76f76` maps each TSIcon id to its file.
- TSIcon enum: `main.js` webpack module 58917 (`e.Settings="settings"`, … at offset ≈1959558); the `ts-icon`
renderer is at offset ≈10686241. Offsets below (`@N`) are character offsets in `main.js`.
## Transformations (render-preserving)
Each source file becomes one `<symbol id="i-<TSIcon id>">`. Applied mechanically by a one-off conversion, nothing redrawn:
1. `style` attributes converted to equivalent presentation attributes, because the renderer CSP (`style-src 'self'`)
blocks inline styles. Where a `style` declaration and an official colour class (`tsv-icon-*-fill|stroke`) set the
same property, the class (which the inline style always overrode) would be dropped; no source file needed this.
2. `enable-background` (SVG 1.1 hint, no rendering effect) dropped from `chat_poke.svg` and `chat_poke_solid.svg`.
3. Element ids prefixed with the symbol id (`i-away--label`) and their `url(#…)` references rewritten, so ids stay
unique in one document. Editor metadata (`serif:id`, Inkscape/Sodipodi attributes and `<metadata>`), XML
declarations, DOCTYPEs, comments, `version`, `xml:space`, root `width/height/x/y/id` are omitted.
4. `viewBox` is written as `0 0 <int w> <int h>`, exactly as the official `ts-icon` renderer rewrites it; every
source already had that form. Root class names (`tsv-icon-audio-input`, …) are kept on the symbol.
5. `shape-rendering="geometricPrecision"` is set on each symbol, as the official renderer sets it on every inline icon.
6. At runtime `icon()`/`setIcon()` in `app/renderer/js/dom.js` copy the symbol content inline into the `<svg>` with the
symbol's root class and attributes, as the official `ts-icon` renderer injects `innerHTML`. Ids referenced by
`url(#…)` get a per-instance suffix; other ids regain their source id so official id selectors (`#label`,
`#bar1_step0`, …) apply.
Mask files (`client_detailed_mask.svg`, `contact_mask.svg`, `server_mask.svg`, `channel_mask.svg`) are byte-identical
copies, used as CSS `-webkit-mask` images exactly as the official `ts-icon-stack` (`@3162500`) does.
## Symbols
| Symbol | Source | Source file | sha256 (source) |
|---|---|---|---|
| `i-delay-low` | DelayLow | `images/icons/delay_low.svg` | `16a2c7e08cdcf636a917b1fd3f99445869f0d0c6c24ce3cd6bf80885872a1832` |
| `i-delay-medium` | DelayMedium | `images/icons/delay_medium.svg` | `fb11aab3b06c0555ce164b1e443a40d864ca24556c8fdd0b01663e42d9270700` |
| `i-delay-high` | DelayHigh | `images/icons/delay_high.svg` | `154421a45765777aac316c3a0408e3f867bc7195d22a27c96c918cce166a72ce` |
| `i-accept` | Accept | `images/icons/item_accept.svg` | `c37087a87505a50a…` |
| `i-add` | Add | `images/icons/add.svg` | `06b8d432a7e8265e…` |
| `i-away` | Away | `images/icons/away.svg` | `1dfbb5649223e71e…` |
| `i-away-small` | AwaySmall | `images/icons/away_small.svg` | `dc1ac78a381a1621…` |
| `i-bookmark` | Bookmark | `images/icons/bookmark.svg` | `7c838e615fcdc016…` |
| `i-bookmarks` | BookmarkEdit | `images/icons/bookmarks.svg` | `eb3e1ec7f17c4ef2…` |
| `i-channel` | Channel | `images/icons/channel.svg` | `da88eccbd1bbb7ca…` |
| `i-channel-commander` | ChannelCommander | `images/icons/channel_commander.svg` | `496637e240474ef3…` |
| `i-channel-create` | ChannelCreate | `images/icons/channel_create.svg` | `450e18178dcd006f…` |
| `i-channel-default` | ChannelDefault | `images/icons/channel_default.svg` | `d5937550d3415c0e…` |
| `i-channel-mask` | ChannelMask | `images/icons/channel_mask.svg` | `69e1d3e053e77256…` |
| `i-channel-red` | ChannelRed | `images/icons/channel_restricted.svg` | `80853e27620d57f7…` |
| `i-channel-show-chat` | ChannelShowChat | `images/icons/channel_show_chat.svg` | `16d2d6354dc4b2e1…` |
| `i-channel-status-full` | ChannelStatusFull | `images/icons/channel_status_full.svg` | `6653c7e2bc19548d…` |
| `i-channel-status-restricted` | ChannelStatusRestricted | `images/icons/channel_status_restricted.svg` | `7f92a4e3be437977…` |
| `i-channel-yellow` | ChannelYellow | `images/icons/channel_locked.svg` | `c836375982c5c2bf…` |
| `i-chat-emoji` | ChatEmoji | `images/icons/chat_emoji.svg` | `c4e56048536a96d2…` |
| `i-chat-image` | ChatImage | `images/icons/chat_image.svg` | `b490111ba17ad580…` |
| `i-chat-poke` | ChatPoke | `images/icons/chat_poke.svg` | `482f8e135955e711…` |
| `i-chat-poke-solid` | ChatPokeSolid | `images/icons/chat_poke_solid.svg` | `0324599ddbc4c5e7…` |
| `i-chat-scroll-bottom` | ChatScrollBottom | `images/icons/chat_scroll_bottom.svg` | `ffc342c97703cbca…` |
| `i-chat-send` | ChatSend | `images/icons/chat_send.svg` | `cd23d5874caf4955…` |
| `i-checkbox-checked` | CheckboxChecked | `images/icons/checkbox_checked.svg` | `eec817685169e518…` |
| `i-checkbox-tick` | CheckboxTick | `images/icons/checkbox_tick.svg` | `c37b8bffa558868c…` |
| `i-checkbox-unchecked` | CheckboxUnchecked | `images/icons/checkbox_unchecked.svg` | `058673894173f0be…` |
| `i-client` | PlayerOff | `images/icons/client_normal.svg` | `c974ac95caaa1026…` |
| `i-client-detailed` | ClientDetailed | `images/icons/client_detailed_normal.svg` | `b16e10a88a032d32…` |
| `i-client-detailed-mask` | ClientDetailedMask | `images/icons/client_detailed_mask.svg` | `006e04703e627c8d…` |
| `i-client-detailed-placeholder` | ClientDetailedPlaceholder | `images/icons/client_detailed_placeholder.svg` | `7a35e3c9ba26e91b…` |
| `i-client-detailed-talking` | ClientDetailedTalking | `images/icons/client_detailed_talking.svg` | `01f65ddb3539c052…` |
| `i-client-detailed-voiceless` | ClientDetailedVoiceless | `images/icons/client_detailed_voiceless.svg` | `ee25d4ac9fb53035…` |
| `i-client-invisible` | ClientInvisible | `images/icons/client_invisible.svg` | `9b73e1a670795a58…` |
| `i-client-talking` | PlayerOn | `images/icons/client_talking.svg` | `f6e654923b5257d5…` |
| `i-client-voiceless` | ClientVoiceless | `images/icons/client_voiceless.svg` | `037849d56372402c…` |
| `i-connection-lost` | ConnectionLost | `images/icons/connection_lost.svg` | `8d6fa715ac1ffb0f…` |
| `i-connection-reconnecting` | ConnectionReconnecting | `images/icons/connection_reconnecting.svg` | `d998fa1936eb5fc9…` |
| `i-connection-status` | ConnectionStatus | `images/icons/connection_status.svg` | `6abd9fb0e4fd5829…` |
| `i-connection-status-label` | ConnectionStatusLabel | `images/icons/connection_status_label.svg` | `2015cb11cb504057…` |
| `i-contact-mask` | ContactMask | `images/icons/contact_mask.svg` | `176d68bc8c65caf6…` |
| `i-contact-normal` | ContactNormal | `images/icons/contact_normal.svg` | `110a7768034350b9…` |
| `i-contact-placeholder` | ContactPlaceholder | `images/icons/contact_placeholder.svg` | `d9b9390a77ed44e5…` |
| `i-contacts` | Contacts | `images/icons/contacts.svg` | `4eb8c29de4630f6f…` |
| `i-decline` | Decline | `images/icons/item_decline.svg` | `4eb1851b7e07e77d…` |
| `i-delete` | Delete | `images/icons/delete.svg` | `86b35526820aab24…` |
| `i-dots` | Dots | `images/icons/dots.svg` | `3b5bacf307ef1247…` |
| `i-download` | Download | `images/icons/download.svg` | `a8745797944f94c6…` |
| `i-download-flat` | DownloadFlat | `images/icons/download_flat.svg` | `be8f38d114ced5e2…` |
| `i-drag` | Drag | `images/icons/drag_indicator.svg` | `e07278d722fa784a…` |
| `i-edit` | Edit | `images/icons/item_edit.svg` | `0812e24304ab5359…` |
| `i-emoji` | Emoji | `images/icons/emoji.svg` | `357a4b8688ebc0da…` |
| `i-empty` | Empty | `images/icons/item_empty.svg` | `3141ea74fdb9d539…` |
| `i-exclamation-triangle` | Warning | `images/icons/exclamation-triangle.svg` | `2374cc1524f4d43a…` |
| `i-expand` | Expand | `images/icons/expand.svg` | `98a71fdbac31171d…` |
| `i-fa-align-center` | FaAlignCenter | `images/icons/fa_align-center.svg` | `1f6d10ae5947f152…` |
| `i-fa-align-justify` | FaAlignJustify | `images/icons/fa_align-justify.svg` | `ad8c53483fe90031…` |
| `i-fa-align-left` | FaAlignLeft | `images/icons/fa_align-left.svg` | `d10294d25252aac1…` |
| `i-fa-align-right` | FaAlignRight | `images/icons/fa_align-right.svg` | `eaecfe8bcd8dfbe1…` |
| `i-fa-asterisk` | FaAsterisk | `images/icons/fa_asterisk.svg` | `128f63761bc0c1b5…` |
| `i-fa-block-quote` | FaBlockquote | `images/icons/fa_block-quote.svg` | `c9259e07ca73a9d2…` |
| `i-fa-bold` | FaBold | `images/icons/fa_bold.svg` | `7ad7159a7b833081…` |
| `i-fa-chart-diagram` | FaChartDiagram | `images/icons/fa_chart-diagram.svg` | `80b9c1ca124af38b…` |
| `i-fa-code` | FaCode | `images/icons/fa_code.svg` | `af4f9b9679da1890…` |
| `i-fa-dash` | FaDash | `images/icons/fa_dash.svg` | `d5c7399ad747da9c…` |
| `i-fa-function` | FaFunction | `images/icons/fa_function.svg` | `9c2656ac652dd69b…` |
| `i-fa-h1` | FaHeading1 | `images/icons/fa_h1.svg` | `e979446418683043…` |
| `i-fa-h2` | FaHeading2 | `images/icons/fa_h2.svg` | `6032da9a2c7f9a8e…` |
| `i-fa-h3` | FaHeading3 | `images/icons/fa_h3.svg` | `0f872fd3d422585f…` |
| `i-fa-h4` | FaHeading4 | `images/icons/fa_h4.svg` | `7db6b3cc838e0706…` |
| `i-fa-h5` | FaHeading5 | `images/icons/fa_h5.svg` | `946825713599e02a…` |
| `i-fa-h6` | FaHeading6 | `images/icons/fa_h6.svg` | `9895825e957e8d19…` |
| `i-fa-heading` | FaHeading | `images/icons/fa_heading.svg` | `e6267b2415251c53…` |
| `i-fa-highlighter` | FaHighlighter | `images/icons/fa_highlighter.svg` | `72803253d03ca796…` |
| `i-fa-italic` | FaItalic | `images/icons/fa_italic.svg` | `0cdc36fdcedead43…` |
| `i-fa-link` | FaLink | `images/icons/fa_link.svg` | `251db02d8df47424…` |
| `i-fa-list-check` | FaListCheck | `images/icons/fa_list-check.svg` | `5458eae97afeea54…` |
| `i-fa-list-ol` | FaListOl | `images/icons/fa_list-ol.svg` | `f5a9b94c6deff472…` |
| `i-fa-list-ul` | FaListUl | `images/icons/fa_list-ul.svg` | `6828c3e8667836f5…` |
| `i-fa-strikethrough` | FaStrikethrough | `images/icons/fa_strikethrough.svg` | `06efdda10193edbf…` |
| `i-fa-subscript` | FaSubscript | `images/icons/fa_subscript.svg` | `cfad1c6f1915e180…` |
| `i-fa-superscript` | FaSuperscript | `images/icons/fa_superscript.svg` | `b37a64ef30ca863d…` |
| `i-fa-table` | FaTable | `images/icons/fa_table.svg` | `d61158d1bfae0288…` |
| `i-fa-underline` | FaUnderline | `images/icons/fa_underline.svg` | `8b546d77026607b1…` |
| `i-file-archive` | FileArchive | `images/icons/file_archive.svg` | `96de2a20f97e23a6…` |
| `i-file-executable` | FileExecutable | `images/icons/file_executable.svg` | `b1e36ea24752d657…` |
| `i-file-image` | FileImage | `images/icons/file_image.svg` | `0d427733c2d153a5…` |
| `i-file-pdf` | FilePdf | `images/icons/file_pdf.svg` | `4c5a7da87b63c74e…` |
| `i-file-text` | FileText | `images/icons/file_text.svg` | `531179c88753b796…` |
| `i-file-video` | FileVideo | `images/icons/file_video.svg` | `4637a535200bff33…` |
| `i-folder` | Folder | `images/icons/folder.svg` | `73c9d3232aae0e6e…` |
| `i-folder-add` | FolderAdd | `images/icons/folder_add.svg` | `59f4417f1026f72e…` |
| `i-folder-up` | FolderUp | `images/icons/folder_up.svg` | `bc208a31c007b4e8…` |
| `i-generic-file-attachment` | GenericFileAttachment | `images/icons/generic_file_attachment.svg` | `259e5b4e4d5bd9a2…` |
| `i-globe` | Globe | `images/icons/globe.svg` | `cd3ba6451e404325…` |
| `i-group-100` | server built-in group icon; `GetIcon` maps ids 1–999 to `group_<id>.svg` @2407426 | `images/icons/group_100.svg` | `1218b6852fe6c58e…` |
| `i-group-200` | server built-in group icon; `GetIcon` maps ids 1–999 to `group_<id>.svg` @2407426 | `images/icons/group_200.svg` | `959a58918fa66b26…` |
| `i-group-300` | server built-in group icon; `GetIcon` maps ids 1–999 to `group_<id>.svg` @2407426 | `images/icons/group_300.svg` | `a0d817ea944c0a5b…` |
| `i-group-500` | server built-in group icon; `GetIcon` maps ids 1–999 to `group_<id>.svg` @2407426 | `images/icons/group_500.svg` | `d8fc5f716a283bc6…` |
| `i-group-600` | server built-in group icon; `GetIcon` maps ids 1–999 to `group_<id>.svg` @2407426 | `images/icons/group_600.svg` | `dbb80d6687c16946…` |
| `i-groups` | Groups | `images/icons/groups.svg` | `1b69dd2d6b1dfbc5…` |
| `i-hidden` | Hidden | `images/icons/hidden.svg` | `96703f0789262f12…` |
| `i-info` | Info | `images/icons/info.svg` | `3f88c77dedf677b4…` |
| `i-input-muted-local` | InputMutedLocal | `images/icons/audio_input_muted_local.svg` | `389f1609902d564a…` |
| `i-item-close` | ItemClose | `images/icons/item_close.svg` | `72a1bc4ddac9a649…` |
| `i-item-collapse` | ItemCollapse | `images/icons/item_collapse.svg` | `7849a8feb879ceca…` |
| `i-item-copy` | ItemCopy | `images/icons/item_copy.svg` | `0aa0c0042d60ae9f…` |
| `i-item-expand` | ItemExpand | `images/icons/item_expand.svg` | `7a5b4228c34d4fca…` |
| `i-item-indent` | ItemIndent | `images/icons/item_indent.svg` | `3d54802e47ab6fd2…` |
| `i-item-leave` | ItemLeave | `images/icons/item_leave.svg` | `834b1096de82e6bd…` |
| `i-item-menu` | ItemMenu | `images/icons/item_menu.svg` | `b5b54c17b6cb8d00…` |
| `i-item-pin` | ItemPin | `images/icons/item_pin.svg` | `3d883f74a24916db…` |
| `i-item-settings` | ItemSettings | `images/icons/item_settings.svg` | `2c4027ab4f8c491f…` |
| `i-loading` | Loading | `images/icons/loading.svg` | `93f459dfb6937c5a…` |
| `i-lock` | Lock | `images/icons/lock.svg` | `940e806a10882ddf…` |
| `i-lock-opened` | LockOpened | `images/icons/lock_opened.svg` | `5fbac2e7a0b77d43…` |
| `i-microphone` | Input | `images/icons/audio_input.svg` | `c4a4bed2f5aa65fc…` |
| `i-microphone-slash` | InputMuted | `images/icons/audio_input_muted.svg` | `2f6a53252ec823f3…` |
| `i-microphone-slash-small` | InputMutedSmall | `images/icons/audio_input_muted_small.svg` | `87db7bab2852a36b…` |
| `i-microphone-small` | InputSmall | `images/icons/audio_input_small.svg` | `c6a3879869d73ef8…` |
| `i-mode-chat` | ModeChat | `images/icons/mode_chat.svg` | `61e4a63cf96bddc9…` |
| `i-mode-events` | ModeEvents | `images/icons/mode_events.svg` | `221a75257af47493…` |
| `i-mode-files` | ModeFiles | `images/icons/mode_files.svg` | `8b45d0235e5f304d…` |
| `i-mode-info` | ModeInfo | `images/icons/mode_info.svg` | `0f1441469a6afbf2…` |
| `i-mode-recording` | ModeRecording | `images/icons/mode_recording.svg` | `9942158cd6cba65d…` |
| `i-mode-server-bans` | ModeServerBans | `images/icons/mode_server_bans.svg` | `3864ce4c547d6943…` |
| `i-mode-server-compact` | ModeServerCompact | `images/icons/mode_server_compact.svg` | `ee8a00e62099cee4…` |
| `i-mode-server-detailed` | ModeServerDetailed | `images/icons/mode_server_detailed.svg` | `d2095ab12d5320a6…` |
| `i-mode-server-permissions` | ModeServerPermissions | `images/icons/mode_server_permissions.svg` | `9a42f928cb3c497f…` |
| `i-mode-stats` | ModeStats | `images/icons/mode_stats.svg` | `da6337edd873471d…` |
| `i-mode-streaming` | ModeStreaming | `images/icons/mode_streaming.svg` | `9266f6d1903d7c95…` |
| `i-navigation-back` | NavigationBack | `images/icons/navigation_back.svg` | `0840b7ff6c8238af…` |
| `i-navigation-forward` | NavigationForward | `images/icons/navigation_forward.svg` | `4c043e9c0751ab2b…` |
| `i-notifications` | Notifications | `images/icons/notifications.svg` | `8329f49d50a1bb65…` |
| `i-open-file` | OpenFile | `images/icons/open.svg` | `27b6c5a632b76ce8…` |
| `i-pause` | Pause | `images/icons/pause.svg` | `0ae327e335ecea24…` |
| `i-phonetic-available` | PhoneticAvailable | `images/icons/phonetic_available.svg` | `07a2790929d8bc50…` |
| `i-phonetic-unavailable` | PhoneticUnavailable | `images/icons/phonetic_unavailable.svg` | `76ab4d5bb87ed399…` |
| `i-play` | Play | `images/icons/play.svg` | `a156bbc7b646ac11…` |
| `i-privilege-key` | PrivilegeKey | `images/icons/privilege_key.svg` | `b1b241c52d781873…` |
| `i-refresh` | Refresh | `images/icons/refresh.svg` | `be320bc183d48268…` |
| `i-remove` | Remove | `images/icons/remove.svg` | `69bf994d573aefa4…` |
| `i-reply` | Reply | `images/icons/reply.svg` | `db14a05b7e0a01d0…` |
| `i-reset` | Reset | `images/icons/reset.svg` | `bcda4c52cc87f4cd…` |
| `i-search` | Search | `images/icons/search.svg` | `82e53700c60e5295…` |
| `i-server` | ServerGreen | `images/icons/server.svg` | `e154bfdff4b29dc6…` |
| `i-server-connect` | ServerConnect | `images/icons/server_connect.svg` | `cd01cc4a5a954b65…` |
| `i-server-info-users` | ServerInfoUsers | `images/icons/server_info_users.svg` | `831f971da2a118d0…` |
| `i-server-mask` | ServerMask | `images/icons/server_mask.svg` | `61dcf36ea4c6fa57…` |
| `i-settings` | Settings | `images/icons/settings.svg` | `6b3e4baed758cabb…` |
| `i-settings-addons` | SettingsAddons | `images/icons/settings_addons.svg` | `4f7eeea20e1a9793…` |
| `i-settings-appearances` | SettingsAppearances | `images/icons/settings_appearances.svg` | `217094ddb593bb5a…` |
| `i-settings-audio` | SettingsAudio | `images/icons/settings_audio.svg` | `1bc3fe384e4fcda6…` |
| `i-settings-behavior` | SettingsBehavior | `images/icons/settings_behavior.svg` | `743dc5de305ee52f…` |
| `i-settings-chat` | SettingsChat | `images/icons/settings_chat.svg` | `ba267177ededa7de…` |
| `i-settings-identities` | SettingsIdentities | `images/icons/settings_identities.svg` | `58ec6ac93a54d0fc…` |
| `i-settings-keybindings` | SettingsKeybindings | `images/icons/settings_keybindings.svg` | `d12aaf38122645c3…` |
| `i-settings-notifications` | SettingsNotifications | `images/icons/settings_notifications.svg` | `71671c67ca04aec4…` |
| `i-settings-privacy` | SettingsPrivacy | `images/icons/settings_privacy.svg` | `2786b5525bdfb5c7…` |
| `i-settings-whispers` | SettingsWhispers | `images/icons/settings_whispers.svg` | `abad49ce11dd6d10…` |
| `i-share` | Share | `images/icons/share.svg` | `fa64b0aea74ddc36…` |
| `i-slider-knob` | SliderKnob | `images/icons/slider_knob.svg` | `78d89c9dfa3ddbef…` |
| `i-speaker` | Output | `images/icons/audio_output.svg` | `131b918c2f78ca28…` |
| `i-speaker-slash` | OutputMuted | `images/icons/audio_output_muted.svg` | `859adad3f67a4109…` |
| `i-speaker-slash-small` | OutputMutedSmall | `images/icons/audio_output_muted_small.svg` | `bf534b06195aa96b…` |
| `i-speaker-small` | OutputSmall | `images/icons/audio_output_small.svg` | `c9100861f5fe9128…` |
| `i-status-recording` | StatusRecording | `images/icons/status_recording.svg` | `224f1f36ceb8edee…` |
| `i-stream-join` | StreamJoin | `images/icons/stream_join.svg` | `8bdbfa61c6ba5ed9…` |
| `i-stream-leave` | StreamLeave | `images/icons/stream_leave.svg` | `4945f241d5580522…` |
| `i-stream-maximize` | StreamMaximize | `images/icons/stream_maximize.svg` | `1e273e2190c591b8…` |
| `i-stream-minimize` | StreamMinimize | `images/icons/stream_minimize.svg` | `15ab09e5bb0a3496…` |
| `i-stream-playing` | StreamPlaying | `images/icons/stream_playing.svg` | `29017299d75b2a4b…` |
| `i-stream-settings` | StreamSettings | `images/icons/stream_settings.svg` | `7254dfc213ffcf41…` |
| `i-stream-shutdown` | StreamShutdown | `images/icons/stream_shutdown.svg` | `cf65796b2e5f0cf4…` |
| `i-transfer` | Transfer | `images/icons/transfer.svg` | `a7a1bd86f367978e…` |
| `i-upload` | Upload | `images/icons/upload.svg` | `318339a5c1476712…` |
| `i-upload-flat` | UploadFlat | `images/icons/upload_flat.svg` | `f78dee30d9d7ebab…` |
| `i-video-screen` | VideoScreen | `images/icons/video_screen.svg` | `fc504c589e8c3597…` |
| `i-viewer-small` | ViewerSmall | `images/icons/viewer_small.svg` | `6b70ae8be28dd5ba…` |
| `i-visible` | Visible | `images/icons/visible.svg` | `89150f6fc862ee7d…` |
| `i-waiting` | Waiting | `images/icons/waiting.svg` | `77659891ca6a57b5…` |
| `i-whisper` | Whisper | `images/icons/whisper.svg` | `83bcba03cb41abd2…` |
## Composite
`i-avatar` (viewBox 0 0 51 33) is the official default client avatar stack, composed only of official symbols: `i-client-detailed`
(ClientDetailed portrait) under `i-client-detailed-placeholder` placed at x=9 (the centred 33×33 `tsv-avatar` layer) and clipped by
`i-client-detailed-mask` as an alpha mask, matching `clientDetailedIcons`/`avatarImage` (@10693354) rendered by `ts-icon-stack`
(@3162500, `-webkit-mask: url(client_detailed_mask.svg)`). The talking ring is the separate `i-client-detailed-talking` layer.
## Mask assets
| File | sha256 |
|---|---|
| `app/renderer/assets/icons/channel_mask.svg` | `69e1d3e053e77256c83c539796ac01a3ddc4dc9b55e1d1ff6441ba19c5c4cc16` |
| `app/renderer/assets/icons/client_detailed_mask.svg` | `006e04703e627c8d2da6eb619647fcdf46cc466882c9fb3b05b45fa9a0a2e888` |
| `app/renderer/assets/icons/contact_mask.svg` | `176d68bc8c65caf6092ac615eaf3229e7b0c5612cde1ddc4706b0f75de72b0b2` |
| `app/renderer/assets/icons/server_mask.svg` | `61dcf36ea4c6fa5790b8dc513b2bebfe0d91b3879601eb2fedc0af5551eebb93` |
## Aliases
An alias symbol contains only `<use href="#i-<target>">`, so it renders the official target unchanged. Surface evidence is the
official usage that matches the TeamsPeach surface; entries marked UNAVAILABLE have no exact official counterpart and name the
nearest official glyph instead.
| Alias | Target | Evidence |
|---|---|---|
| `i-attachment` | `i-chat-image` | composer file picker ts-chat-image-button ChatImage (paperclip) @3571934 |
| `i-back` | `i-navigation-back` | menu Back NavigationBack @1615889 |
| `i-bell` | `i-notifications` | settings Notifications category; poke uses i-poke |
| `i-bold` | `i-fa-bold` | composer toolbar FaBold (markdown table @3507384 ff.) |
| `i-channel-green` | `i-channel` | official kebab channel-green maps to same file channel.svg (settings.json) |
| `i-channel-locked` | `i-channel-yellow` | official kebab channel-locked maps to same file channel_locked.svg (settings.json) |
| `i-check` | `i-checkbox-tick` | menu current-choice accessory CheckboxTick @1642454, @1738614 |
| `i-chevron-down` | `i-item-expand` | expander chevron ItemExpand @2864925, sections collapse @2854917 |
| `i-chevron-right` | `i-navigation-forward` | menu submenu accessory NavigationForward @1620314, @1627400 |
| `i-code` | `i-fa-code` | composer codeblock FaCode @3513668 |
| `i-commander` | `i-channel-commander` | tree commander ChannelCommander @4127418 |
| `i-copy` | `i-item-copy` | ItemCopy copy actions (28 uses), files @3834346 |
| `i-file` | `i-file-text` | UNAVAILABLE exact row source: official browser row icon not located; generic document FileText |
| `i-file-transfer` | `i-mode-files` | official kebab file-transfer maps to same file mode_files.svg (settings.json) |
| `i-fullscreen` | `i-stream-maximize` | stream enlargeImage (not fullscreen) @4061371 |
| `i-fullscreen-exit` | `i-stream-minimize` | stream enlargeImage (fullscreen) @4061351 |
| `i-gear` | `i-settings` | settings button Settings @2840824, settings title |
| `i-heading` | `i-fa-heading` | composer heading group FaHeading @3518397 |
| `i-headphones` | `i-speaker` | playback toggle Output @3992939 |
| `i-headphones-off` | `i-speaker-slash` | tree mutedIcon OutputMuted @2891233 |
| `i-image` | `i-chat-image` | composer file picker ChatImage (paperclip) @3571934 |
| `i-input` | `i-microphone` | enum key alias Input |
| `i-italic` | `i-fa-italic` | composer toolbar FaItalic |
| `i-keyboard` | `i-settings-keybindings` | settings category SettingsKeybindings |
| `i-link` | `i-fa-link` | composer toolbar FaLink @3510645 |
| `i-list` | `i-fa-list-ul` | composer lists group FaListUl @3518496 |
| `i-logout` | `i-item-leave` | kick channel/server/ban ItemLeave @1624216; NOTE official Disconnect uses ItemClose @1757045 |
| `i-message` | `i-mode-chat` | content mode Chat ModeChat @1343509 |
| `i-mic` | `i-microphone` | toolbar/call-bar capture toggle Input @3992501 |
| `i-mic-off` | `i-microphone-slash` | capture toggle InputMuted @3992484; tree mutedIcon @2891329 |
| `i-monitor` | `i-video-screen` | start stream / screen source VideoScreen @1896420, app-audio list @3720680 |
| `i-moon` | `i-away` | tree/presence state Away @2891233, @1745074 |
| `i-more` | `i-dots` | stream view settings Dots @4051881 |
| `i-output` | `i-speaker` | enum key alias Output |
| `i-palette` | `i-settings-appearances` | settings category SettingsAppearances |
| `i-permissions` | `i-mode-server-permissions` | client/channel permissions ModeServerPermissions @1630053 |
| `i-pip` | `i-expand` | UNAVAILABLE: official toolbar has no PiP glyph; nearest official = video.action.popout Expand @4064201 |
| `i-pip-exit` | `i-expand` | UNAVAILABLE: no official PiP-exit glyph; same Expand fallback, pressed state via --tsv-icon-base tint |
| `i-plus` | `i-add` | Add (26 uses) |
| `i-poke` | `i-chat-poke-solid` | client menu poke ChatPokeSolid @1627400 |
| `i-popout` | `i-expand` | video.action.popout Expand @4064201 |
| `i-priority-speaker` | `i-microphone` | official kebab priority-speaker maps to same file audio_input.svg (settings.json) |
| `i-quote` | `i-fa-block-quote` | composer toolbar FaBlockquote @3512197 |
| `i-record` | `i-status-recording` | recording status StatusRecording @1759184 |
| `i-self-avatar` | `i-contact-placeholder` | sidebar presence slot default avatar ts-presence avatarImage = ContactPlaceholder @2881456 (no account avatar) |
| `i-send` | `i-chat-send` | chat send button ChatSend @3572254 |
| `i-shield` | `i-mode-server-permissions` | legacy group-icon fallback; official permissions ModeServerPermissions @1614689 (official has no group fallback: icon 0 = none @2407426) |
| `i-sliders` | `i-item-settings` | no 1:1 official surface (legacy generic glyph); ItemSettings = settings resource @2954502. Use i-settings-behavior (OS settings), i-connection-status (connection info @4398096) |
| `i-speaker-off` | `i-speaker-slash` | playback toggle OutputMuted @3992939; stream hero mute @4075195 |
| `i-stats` | `i-mode-stats` | ModeStats content mode |
| `i-stream` | `i-mode-streaming` | screenshare toolbar ModeStreaming @2818131 |
| `i-strike` | `i-fa-strikethrough` | composer toolbar FaStrikethrough |
| `i-underline` | `i-fa-underline` | composer toolbar FaUnderline |
| `i-user` | `i-settings-identities` | identity surfaces SettingsIdentities @1914926, settings category @1376540 |
| `i-warning` | `i-exclamation-triangle` | enum key alias Warning |
| `i-x` | `i-item-close` | close/cancel ItemClose @1547254, @1607017 |
## Legacy ids that are official ids
`i-away`, `i-bookmark`, `i-channel`, `i-download`, `i-edit`, `i-emoji`, `i-folder`, `i-folder-add`, `i-folder-up`, `i-hidden`, `i-info`,
`i-lock`, `i-play`, `i-refresh`, `i-search`, `i-server`, `i-speaker` and `i-upload` now render the official icon of the same id.
`i-emoji` is `emoji.svg` (the composer button is `i-chat-emoji`, @3571700) and `i-info` is `info.svg` (the detail-pane Information
mode is `i-mode-info`, @1343385).
## Additional footer import
`i-connection-events` uses the installed `images/icons/connection_events.svg`, SHA-256
`1736f417cdf38002f3478e0a7e03809764738b657322a5b9d211f20c8d53257b`.
The conversion preserves geometry, changes inline styles to presentation attributes, prefixes IDs,
and omits XML/doctype declarations, as for the other sprite imports. No redistribution licence is implied.
## Country and language flags
The 258 SVG files in `app/renderer/assets/countries/` are byte-identical to the same-named files
under the installed client's `images/countries/`; all 258 were compared on 2026-11-01, with no mismatches.
They supply the optional server-tree country markers and the US/RU language-selection artwork.
`country-flags.js` accepts only its explicit local country-code allowlist, never arbitrary resource URLs.
Aggregate SHA-256: `eebd6910a9077dacaf199ff25fbdc12cf3d50ea35a0b27123e556ca8856cba0c`.
Input: filename-sorted records `filename + NUL + lowercase_file_sha256 + LF`, UTF-8 encoded.
The provenance and redistribution caveats above apply; these copies receive no new licence grant.
## Expanded bookmark and whisper controls
Additional symbols use the same transformations and redistribution caveats above. Source files are
under the installed client's `images/icons/`; hashes were read on 2026-11-01.
| Product symbol | Source file | SHA-256 |
|---|---|---|
| `i-folder-action` | `folder_action.svg` | `59df74a51ea024d214611b25568dfa53420f706b886ebdf9302e8c0011979d94` |
| `i-connection-whispers` | `connection_whispers.svg` | `50de820d13d6a4f08966448d81b94d59188a2f15fe9de9d730e43e83b34e65ad` |
| `i-chat-contact` | `chat_contact.svg` | `d11e41302a634d8e4f48a38ee8443e095c4c09b8d1fb87d4a4b95190c8d370a3` |
| `i-channel-select-default` | `channel_select_default.svg` | `690ebc95dff843e6257743c91fa752868bafdce63e788c47364fa80303b918a9` |
`i-chat-contact` represents a locally received whisper participant, not an account service.
## Not included
TeamSpeak logo/label/mono marks, `ts_logo_qr.png`, `brands-*`, room presets and banners, content backgrounds, hex decorations,
contact-status, chat-room, homebase, two-factor and phone-call (myTeamSpeak account) artwork, and the other unused `*_old` files.
@@ -0,0 +1,96 @@
# Official TeamSpeak 6 client notification sounds in TeamsPeach — provenance
The 54 files in `app/renderer/assets/sounds/` are notification sounds of the official TeamSpeak 6 client
(TeamSpeak Systems GmbH), copied byte for byte from the client installed on the owner's workstation at the owner's
direction (2026-11-01 brief: the installed client's features and panels, value for value).
**Licence status.** No licence grant for redistributing these sounds has been identified. The installed client is
governed by its own licence agreement (`licenses/en/la_desktop.html` in the client installation). TeamsPeach does not
relicense these sounds and does not claim the right to publish them; they are not covered by TeamsPeach's own terms or
by any open-source licence in this folder.
## Source
- Installation: `%LOCALAPPDATA%/Programs/TeamSpeak/html/client_ui/sound/default/` (the only sound pack the client
ships; 61 files). `main.js` sha256 `9d6bea2ee5333086555c36584621c1b3462a83042ce746d3229d6766a9b82c39`.
- Event → file table: `NotificationSoundManager.soundFiles`, `main.js` webpack module 82164 (first file name at
character offset ≈2267292). Event types and sub types: module 69818 enums `J1` (event type), `l2`, `nA`, `x8`, `rJ`,
`eM`, `T9`, `rt`, `nZ`, `jk`, `KY`, `yc`, `ih` and `r.I3d` (stream). Playback: `playSoundForDefaultEvent` passes the
file name to native `tsclient_internal.playWaveFile(0, name)` (`main.js` ≈2120604). That the native side resolves
the name to `html/client_ui/sound/default/<name>.wav` is inferred from the adjacent `sound`, `client_ui`, `html` and
`.wav` strings in `TeamSpeak.dll` and from `default` being the only installed pack; the native code was not traced.
- Settings rows: coalesced setting table module 69818 `rg`; the row's Listen button (`playPreview`, module 186,
`main.js` ≈4964155) plays the first sub type of the row, an advanced row plays its own sub type, both ignoring the
throttle.
## Transformations
None. Each file is an unchanged copy (RIFF/WAVE PCM, including its original `LIST`/`CDif`/`cue `/`bext` chunks); the
renderer decodes it with Chromium's own decoder at playback time.
## Files
`time` is the official repeat throttle; a repeat within it is skipped.
| File | Official event sub types (`EventType.SubType`) | Format | Bytes | sha256 |
|---|---|---|---|---|
| `away_activated.wav` | ClientUpdate.YouAway (100 ms) | 1×16-bit 44100 Hz, 0.759 s | 67190 | `170fdd2f8fd07ce0b7077a45e9df6cdac8ddf9a8cdaf2e6bc5828944564d5acf` |
| `away_deactivated.wav` | ClientUpdate.YouPresent (100 ms) | 1×16-bit 44100 Hz, 0.758 s | 67034 | `6c00635fad802ebe62543e85fd402f8fcb5957b8d68c4e80a74d721fcab6306f` |
| `channel_created.wav` | ChannelEvent.YouCreated | 1×16-bit 44100 Hz, 1.065 s | 94194 | `9354320217fb8600c9b88a9ec34b19e1f5e242a13570d94ad0ec5811850f7ae2` |
| `channel_deleted.wav` | ChannelEvent.YouDeleted | 1×16-bit 44100 Hz, 1.028 s | 90882 | `25d80e7f1274caa9322bf5f1cd1846e5f4a2be1e978b5edbaf81693ccaf4c5dc` |
| `channel_edited.wav` | ChannelEvent.YouEdited | 1×16-bit 44100 Hz, 1.005 s | 88898 | `33605c5a802efa895ee043bbcc7cd43081c264a9602589355ced95a321c6c562` |
| `channel_moved.wav` | ChannelEvent.YouMoved | 1×16-bit 44100 Hz, 0.918 s | 81144 | `144bfc4a22c578872a998d518833c7b0cc1d60be0d81319506da5d84e3278ffd` |
| `channel_switched.wav` | ClientMove.YouSwitchedChannel | 1×16-bit 44100 Hz, 0.995 s | 87998 | `f38c9e67bbd861319d4eef15454893419285ba6dcdd05566dcb3b2042899f468` |
| `channelgroup_changed.wav` | ClientUpdate.YouChannelGroupChanged (1000 ms) | 1×16-bit 44100 Hz, 1.298 s | 114698 | `4ac60b4c0b4bb7a5784d6ae55412fdc198d89ac8a52c7cf3116cf6620f2a024e` |
| `chat_message_inbound.wav` | TextMessage.FromAnotherClient, TextMessage.FromChannel, TextMessage.FromServer | 1×16-bit 44100 Hz, 1.000 s | 88244 | `51e29bb0284b1c62447a720684dd9628034d0bd5b0c1fab2b1dde5986f457a3c` |
| `chat_message_outbound.wav` | TextMessage.ToAnotherClient | 1×16-bit 44100 Hz, 0.047 s | 4148 | `7fc8296f113485aa7d66b3f1e1e04ea3c7470d9efb238fb692a9504cf8c33ce2` |
| `connected.wav` | ConnectStatus.Connected | 1×16-bit 44100 Hz, 0.624 s | 55262 | `e9bc4136b91bc7d36dc9a561b2b8d4436244f42af65c1d01540f0b8a958c5a10` |
| `connection_lost.wav` | ConnectStatus.ConnectionLost | 1×16-bit 44100 Hz, 0.988 s | 87394 | `5566aa08c4e0f126a586ff50ed41ccbad3c5f942e75c9f924ad6578e8ccf6d45` |
| `disconnected.wav` | ConnectStatus.Disconnected | 1×16-bit 44100 Hz, 0.950 s | 84018 | `58ad23d848d07c37e0b521dadeecedbc268beaad657d4e12d03daf7b9ab16e53` |
| `error.wav` | ConnectStatus.FailedToConnect (1000 ms), LogEvent.LogError (1000 ms) | 1×16-bit 44100 Hz, 0.472 s | 41870 | `3b0589a6349d96198f496861b2be12c825a922b1b59b56d202195208014035e0` |
| `insufficient_permissions.wav` | ServerPermissionErrorEvent.Error (2000 ms) | 1×16-bit 44100 Hz, 1.370 s | 121066 | `4284bf1e85c53cb450b7ae9d488df417a372e0c23ad91bf24fcd2992b28cec1c` |
| `mic_activated.wav` | ClientUpdate.YouCaptureUnmuted (100 ms) | 1×16-bit 44100 Hz, 1.210 s | 106982 | `c44490c0f9ce270d0ee90c5f5fc4004ea39ebbdc8b6ebc5dab75cf175f9f6f83` |
| `mic_muted.wav` | ClientUpdate.YouCaptureMuted (100 ms) | 1×16-bit 44100 Hz, 1.017 s | 89936 | `528ea98a11951d8fa96a5396c12c9e3bceabf0a895e084826f3b1cfca0d4ed8e` |
| `neutral_banned_server_currentchannel.wav` | ClientMove.SomeoneInYourChannelWasBanned | 1×16-bit 44100 Hz, 2.478 s | 218768 | `599e671f50842cee1603a56f7e211686b985abd92a977b5f3c5532393213b67c` |
| `neutral_connection_connected_currentchannel.wav` | ClientMove.SomeoneInYourChannelConnected | 1×16-bit 44100 Hz, 1.446 s | 127760 | `6a4ad2636c93e88cd6247a3105a65d88af8ca3fff05f9debb09726df6074b9e0` |
| `neutral_connection_connectionlost_currentchannel.wav` | ClientMove.SomeoneInYourChannelConnectionLost | 1×16-bit 44100 Hz, 1.829 s | 161498 | `7c39ad53fd3d041fa711c97e6559c5af3ebf7b3b3285f9ae0edb4a42a92a5568` |
| `neutral_connection_disconnected_currentchannel.wav` | ClientMove.SomeoneInYourChannelDisconnected | 1×16-bit 44100 Hz, 1.900 s | 167834 | `cdbb181918c33842ae3572ad3752aabff8b47559e881862fe64ee6e40bddd6f8` |
| `neutral_kicked_channel_awayfromcurrentchannel.wav` | ClientMove.SomeoneInYourChannelWasKickedChannel | 1×16-bit 44100 Hz, 2.020 s | 178416 | `eafadd9b5f7cef69c106803bb0bac94d39880158330a3820995c4a1a897538e4` |
| `neutral_kicked_channel_tocurrentchannel.wav` | ClientMove.SomeoneWasKickedToYourChannel | 1×16-bit 44100 Hz, 1.856 s | 163914 | `29e2bf7ceaadb1d124a9f0ac8c4e1fe8c26697e3072f3d0b8936c4766416ff25` |
| `neutral_kicked_server_currentchannel.wav` | ClientMove.SomeoneInYourChannelWasKickedFromServer | 1×16-bit 44100 Hz, 2.534 s | 223686 | `2d53d3c8a338418e23c8803a8abb8b73349df5befc0af0096ae7a3bb0a376872` |
| `neutral_moved_awayfromcurrentchannel.wav` | ClientMove.SomeoneWasMovedAwayFromYourChannel (100 ms) | 1×16-bit 44100 Hz, 1.764 s | 155802 | `e2b1e2a4336a8af7e8cfcdd239f26138c3a11b045cd952d81aaa671ebd6c6c85` |
| `neutral_moved_tocurrentchannel.wav` | ClientMove.SomeoneWasMovedToYourChannel (100 ms) | 1×16-bit 44100 Hz, 1.741 s | 153818 | `569fd8904a2d6a70529ea36466cc590179ec7c4e40b6b5d40f2643fb0a25ed68` |
| `neutral_recording_active_currentchannel.wav` | ClientMove.YouSwitchedChannelRecording | 1×16-bit 44100 Hz, 1.815 s | 160290 | `7448f91c3ecd901500a954a42276a3459bbc93daa66e1080b3aead80f24cf92d` |
| `neutral_recording_started_currentchannel.wav` | ClientUpdate.SomeoneInYourChannelRecordingStarted | 1×16-bit 44100 Hz, 2.106 s | 185978 | `af5a29f7974591b010044d6a212f4238c4446f66ab27b2429e08b1c07c6a8670` |
| `neutral_recording_stopped_currentchannel.wav` | ClientUpdate.SomeoneInYourChannelRecordingStopped | 1×16-bit 44100 Hz, 2.096 s | 185126 | `3f0ab4f666518055fc05d8b5102bdddcde7b042aee6cd2527529b0753edf4557` |
| `neutral_switched_awayfromcurrentchannel.wav` | ClientMove.SomeoneLeftYourChannel (1000 ms) | 1×16-bit 44100 Hz, 1.326 s | 117182 | `d0c0fb1153a6b28f038c83ccc91bfecb218a0202171f3b2d14266fd290c5d622` |
| `neutral_switched_tocurrentchannel.wav` | ClientMove.SomeoneJoinedYourChannel (1000 ms) | 1×16-bit 44100 Hz, 1.343 s | 118682 | `d334e0e463472dfe389b1bfb2e24d254f99e00744d4f634c6eac76c0bcd6a19b` |
| `no_whisper_target_found.wav` | WhisperErrorEvent.NoSelection | 1×16-bit 44100 Hz, 1.514 s | 133786 | `6c6d1054a9b218f2ae1600c1567eeff9052802254ed1ed888c17a73a7095e5e0` |
| `recording_paused.wav` | LocalRecordingEvent.RecordingPaused (300 ms) | 2×16-bit 48000 Hz, 1.155 s | 221728 | `fee07ad4647998381f1c176c19c51ff88bff9be76c9bb999384cadec181d55ca` |
| `recording_resumed.wav` | LocalRecordingEvent.RecordingResumed (300 ms) | 2×16-bit 48000 Hz, 1.152 s | 221280 | `bbecb5fb7a9f1cf3f60cdb0ab690f8043dcf3fa7fbae69d8b4b93ebc99939d64` |
| `recording_started.wav` | LocalRecordingEvent.RecordingStarted (500 ms) | 2×16-bit 48000 Hz, 1.230 s | 236272 | `1fd58b214c851cd88b53fd61a38d71bc98d8cd407bb4270951360d4dc4e89b23` |
| `recording_stopped.wav` | LocalRecordingEvent.RecordingStopped (500 ms) | 2×16-bit 48000 Hz, 1.263 s | 242484 | `b9261ceccf4828680256b7edfbdd131781d815c30aef019dc624f4d55219967d` |
| `servergroup_assigned.wav` | ClientUpdate.YouServerGroupAssigned (1000 ms) | 1×16-bit 44100 Hz, 1.327 s | 117248 | `8f278ac08f259131eebc6a78ed700a76e036e627cb8a3ef78036f3f570c4501f` |
| `servergroup_revoked.wav` | ClientUpdate.YouServerGroupRevoked (1000 ms) | 1×16-bit 44100 Hz, 1.476 s | 130438 | `8befbc4a4025ed28de7d397ccb718c59417ea553065c50173693678b0e5d4211` |
| `sound_muted.wav` | ClientUpdate.YouPlaybackMuted (100 ms) | 1×16-bit 44100 Hz, 1.011 s | 89424 | `41cf6d43b7115e7e212f4cc75146291f0d847f079268b385fcd053090cd1e36c` |
| `sound_resumed.wav` | ClientUpdate.YouPlaybackUnmuted (100 ms) | 1×16-bit 44100 Hz, 1.018 s | 89978 | `28b0bfabfe904d54779979e652ae99122d1689aa64820e01a82db7d3c2f67cd8` |
| `stop_talking.wav` | TalkStatusChanged.YouTalkingWhileMuted, WhisperErrorEvent.NoInput (2000 ms) | 1×16-bit 48000 Hz, 0.467 s | 45742 | `c734b077fe252640535b7ba4ca607aadbf0884a8734c68cf17522b7f2f3a64bc` |
| `stream_started.wav` | StreamEvent.StreamStarted (100 ms) | 2×16-bit 48000 Hz, 1.300 s | 249812 | `55b922d7d457e0e9c6e86cbbb4bf7aa5edf310934ec673a39bd2f8e45629bf32` |
| `stream_stopped.wav` | StreamEvent.StreamStopped (100 ms) | 2×16-bit 48000 Hz, 1.233 s | 236924 | `8f8138de2d91ccdb0a2a1af112ea9acff58e845f30e79913697e025bf9b5cdba` |
| `talkpower_granted.wav` | ClientUpdate.YouTalkPowerGranted | 1×16-bit 44100 Hz, 1.267 s | 111962 | `3ef9564294f6673e3dbc945ee8b49bc381e674a31c93ab4c0363fa45b5eeadea` |
| `talkpower_requested.wav` | ClientUpdate.SomeoneRequestsTalkPower | 1×16-bit 44100 Hz, 1.720 s | 151946 | `57c1eac582806288b0e055110d265271bb597fd4556ccba01a59f87dd9ca48fc` |
| `talkpower_revoked.wav` | ClientUpdate.YouTalkPowerRevoked | 1×16-bit 44100 Hz, 1.503 s | 132770 | `02af63898cc739ef439afdc5c54420148d030532129f578c84d5e91ccd9e406f` |
| `whisper_received.wav` | WhisperEvent.WhisperReceived (2000 ms) | 1×16-bit 48000 Hz, 0.173 s | 16648 | `6c8e708f35a7025ed096e2c50677f2a2e677ada99d9c3db2546fe22e51d7d83b` |
| `you_edited_server.wav` | ServerEdited.YouEdited | 1×16-bit 44100 Hz, 1.229 s | 108638 | `1dc49aae0f48fd021e27ee642f345756b5c734512d3683bc15328d0f14188d67` |
| `you_kicked_channel.wav` | ClientMove.YouWereKickedFromChannel | 1×16-bit 44100 Hz, 1.431 s | 126418 | `3bf0594419ce06d87df94c8a8f068b882b3ff0b131b76088dfcc24cbbf370e3d` |
| `you_kicked_server.wav` | ClientMove.YouWereKickedFromServer | 1×16-bit 44100 Hz, 1.458 s | 128804 | `6e80de6a0dfcf2ead8163f8988cc664f8b09f046e1fe0337d8d8b4dd40f0afa7` |
| `you_were_banned.wav` | ClientMove.YouWereBanned | 1×16-bit 44100 Hz, 1.501 s | 132570 | `5e07d8d80230e9f663f0945b79180b363636d7dcc54962b82bf7bb20798ce0f7` |
| `you_were_moved.wav` | ClientMove.YouWereMoved | 1×16-bit 44100 Hz, 0.875 s | 77390 | `009f7b61dd7bfbdd3c6a4c4cda8d3d56af23c378d5e43654b69d421fc1b528e8` |
| `you_were_poked.wav` | TextMessage.PokedFromAnotherClient | 1×16-bit 44100 Hz, 0.936 s | 82766 | `ecb415cf29eccebb9d72ac745f7e5ac919cb0d1bcb62dc9c690fc1c0ed560385` |
| `your_channel_was_edited.wav` | ChannelEvent.YourChannelEdited | 1×16-bit 44100 Hz, 1.380 s | 121976 | `02363f9f2285747b78c271edb15dde0f99dffc0d08f07d0220b166dc940f8583` |
## Not included
`call_incoming.wav`, `call_outgoing.wav` (CallEvent, myTeamSpeak calls), `chat_inbound.wav` (MatrixMessageEvent
IncomingFollowupMessage, myTeamSpeak chat), and `chat_outbound.wav`, `client_joined.wav`, `client_left.wav`,
`incoming_call.wav`, which no official event table references. TeamsPeach has no local source for these events.
+25 -10
View File
@@ -33,14 +33,15 @@ working voice and can watch a friend's stream.
## Positioning
An independent, account-free TeamSpeak 6 client that interoperates with the official client's voice and P2P
screenshare protocol, built for platforms the official client does not serve.
An independent, account-free TeamSpeak 6 client targeting interoperability with the official client's voice
and P2P screenshare protocol on platforms the official client does not serve. This is a product goal, not
a claim of complete interoperability; the evidence matrix records the demonstrated scope.
## Operating Context
Long voice sessions with the app in the background; push-to-talk or an open microphone; occasional stream
viewing in a channel; the server is the owner's own TS6 server, administered elsewhere (no administration
from this client).
viewing and explicitly started publishing in a channel; the client now offers target-bound moderation
and explicit group/client permission changes, while the server remains authoritative.
## Capabilities and Constraints
@@ -53,10 +54,22 @@ from this client).
## Brand Commitments
Name "TeamsPeach"; restrained peach accent (*inferred* from the name and brief); Russian interface language.
The owner pinned a visual reference for settings (TeamSpeak 6 style: category navigation on the left,
titled card sections on the right, dark blue-gray surfaces); settings follow it.
The owner explicitly asked for a straightforward, familiar chat UI rather than a branding exercise.
Name "TeamsPeach" and its own application icon; English as the default interface language, with Russian
selectable through the shared translation catalog. The owner's latest brief (2026-11-01) requires the
installed official TeamSpeak 6 client's design, not an interpretation: the Liquid Glass world and the
peach accent are retired. Colours, typography (bundled Noto Sans, SIL OFL), spacing, row heights,
the three-slot window (sidebar, server tree, detail pane), menus, settings and chat geometry come from
the installed client's own source values, with extraction offsets in `docs/evidence/official-parity/`.
The TeamSpeak application logo and name are not shipped. Non-brand SVG artwork is copied from the
installed client for the owner's requested local reproduction; no redistribution licence is claimed.
Account-bound surfaces (notification bell, cloud contacts, myTeamSpeak presence, Setup Chat) remain omitted.
Local UID contacts use connected-server presence only and are not a substitute for cloud synchronization.
Remaining visual and functional deviations are listed in DESIGN.md and FEATURE_COMPATIBILITY.md; visual
parity is never presented as feature parity. Offline identity onboarding and the independent brand marker
are explicit exceptions, not imitations of account functionality. New module controls bind real APIs;
source-token matching is not a substitute for rendered screenshot comparison. No preference, error or
working control is removed for visual reasons. Keyboard focus, reduced motion, reduced transparency
where supported, increased contrast and forced colours remain part of the design contract.
## Evidence on Hand
@@ -73,5 +86,7 @@ benchmarks exist and none may be invented.
## Accessibility & Inclusion
Keyboard-operable controls with visible focus, screen-reader names for icon buttons and tree rows, light and
dark themes following the OS, readable system fonts (*inferred* from the brief).
Keyboard-operable controls with visible focus, screen-reader names for icon buttons and tree rows, light
and dark themes with an optional System mode, and the official interface font bundled locally so text
renders the same on Windows and Asahi Linux. New profiles default to dark; an existing saved theme choice
is preserved.
+289 -72
View File
@@ -1,102 +1,319 @@
# TeamsPeach
Настольный клиент для серверов **TeamSpeak 6** без учётной записи myTeamSpeak: голос, чат, дерево
каналов с группами/иконками/баннерами сервера и **просмотр трансляций экрана TS6**.
Интерфейс — Electron (обычные JS-модули, HTML/CSS), протокол — нативное ядро на Rust
(`core/`, ReSpeak tsclientlib) через приватный stdio (контракт: [`docs/bridge.md`](docs/bridge.md)).
A desktop client for **TeamSpeak 6** servers without a myTeamSpeak account: voice, chat, a channel tree
with server groups, icons and banners, and **TS6 screenshare viewing**.
The interface uses Electron (plain JavaScript modules and HTML/CSS); a native Rust core handles the
protocol (`core/`, ReSpeak tsclientlib) over private stdio. See the [bridge contract](docs/bridge.md).
Подробная карта возможностей и доказательств: [`FEATURE_COMPATIBILITY.md`](FEATURE_COMPATIBILITY.md).
See [`FEATURE_COMPATIBILITY.md`](FEATURE_COMPATIBILITY.md) for feature status and evidence. This is not a
claim of full TeamSpeak 6 parity: official-client voice interoperability and Asahi hardware operation
have not been proven.
## Запуск для разработки (Windows / Linux)
## Development (Windows / Linux)
```
npm ci
cargo build --release --locked --manifest-path core/Cargo.toml # нужен Rust ≥ 1.89, CMake, C-компилятор
rustup target add wasm32-unknown-unknown
node scripts/build-denoise.mjs # independent WASM noise reduction
cargo build --release --locked --manifest-path core/Cargo.toml # requires Rust ≥ 1.89, CMake and a C compiler
npm start
```
Electron ищет ядро в `core/target/release` и `core/target/debug` (берётся более свежий файл).
На Windows cargo установлен rustup'ом без изменения PATH — запускайте `%USERPROFILE%\.cargo\bin\cargo.exe`
или откройте «Developer PowerShell for VS». При нехватке памяти линковки используйте `-j 2`.
Electron looks for the core in `core/target/release` and `core/target/debug`, choosing the newer binary.
If rustup installed Cargo without adding it to PATH on Windows, run
`%USERPROFILE%\.cargo\bin\cargo.exe` or open Developer PowerShell for VS. Use `-j 2` if linking runs out
of memory.
Отдельный профиль (не трогает основной): `TEAMSPEACH_PROFILE_DIR=<абсолютный путь> npm start`.
Use a separate profile without touching the main one: `TEAMSPEACH_PROFILE_DIR=<absolute-path> npm start`.
## Сборка пакетов
The safe UI suites use a disposable, hidden, nonfocusable, offscreen and muted Electron process:
`node scripts/smoke-official-shell-offscreen.mjs --exe <isolated-package> --out <evidence-directory>`.
The launcher refuses packaged main code that differs from the current offscreen-aware source. Generated
streams use real local Chromium WebRTC but synthetic signaling/server state; this is not live-server
interoperability proof. No native fullscreen/PiP, OS input, capture, clipboard or native dialogs are used.
## Packaging
```
npm run dist:win-x64 # NSIS + zip
npm run dist:linux-x64 # AppImage + tar.gz
npm run dist:linux-arm64 # AppImage + tar.gz (ядро aarch64 собирается отдельно)
npm run dist:linux-arm64 # AppImage + tar.gz (build the aarch64 core separately)
```
`scripts/dist.mjs` **отказывается** собирать пакет без ядра нужной ОС/архитектуры (проверка
заголовка PE/ELF/Mach-O), кладёт `THIRD_PARTY_NOTICES.md` ядра в `resources/licenses/` и проверяет,
что ядро действительно попало в пакет. Для Asahi (страницы 16 КиБ) есть
`node scripts/elf-pagesize.mjs <файл|папка>` — проверка выравнивания PT_LOAD, glibc и зависимостей.
`scripts/dist.mjs` **refuses** to package without a core for the target OS and architecture (checked via
its PE/ELF/Mach-O header), copies the core's `THIRD_PARTY_NOTICES.md` into `resources/licenses/`, and
checks that the package actually contains the core. For Asahi's 16 KiB pages, use
`node scripts/elf-pagesize.mjs <file-or-directory>` to check PT_LOAD alignment, glibc and dependencies.
CI: `.gitea/workflows/ci.yml` (Gitea Actions, контейнеры на Linux x64): тесты, сборка ядра,
офлайн-проверка идентичности через stdio, Electron-смоук под Xvfb, кросс-сборка ядра aarch64 с
проверкой 16 КиБ и запуском под `qemu-aarch64` (эмуляция, не железо Apple).
CI: `.gitea/workflows/ci.yml` (Gitea Actions, Linux x64 containers) runs tests, builds the core, checks
identity invariants offline over stdio, runs Electron smoke checks under Xvfb, and cross-compiles the
aarch64 core with 16 KiB checks and execution under `qemu-aarch64` (emulation, not Apple hardware).
It runs on pushes to `main` and manual dispatch only. Pull requests do not run automatically: this is a
public repository with a runner on a private network, so a maintainer reviews external changes first.
## Использование
Releases: `.gitea/workflows/release.yml` runs for `v*` tags. The tag must match `package.json` and
`core/Cargo.toml`. It builds Linux x64 and ARM64, checks ELF files, and publishes the release only after
uploading all files to a draft. Windows x64 is built on the developer's machine from the same commit and
attached with a `local` designation and a `*-build-info.txt` provenance file.
1. Первый запуск: один раз ввести никнейм — создаётся криптографическая идентичность (P-256),
публичный UID виден в «Настройки → Идентичность». Никнейм меняется без смены UID.
2. Ввести адрес сервера (и пароль, если нужен) → «Подключиться». Кнопка «Сохранить» добавляет адрес в
сохранённые серверы: они видны слева над деревом (значок закладки в шапке), подключение — в один клик;
если вы уже на другом сервере, кнопка называется «Переключиться» и сначала корректно отключает текущий.
Название, адрес и удаление — в «Настройки → Серверы». Пароли серверов не сохраняются; для всех серверов
используется одна и та же идентичность.
3. Клик по каналу — переход (для каналов с паролем откроется поле ввода).
4. Голос: «Нажми и говори» (по умолчанию F8 или кнопка в шапке) либо «Открытый микрофон»;
кнопки микрофона и звука внизу слева видны серверу.
5. Трансляции: у стримящего участника появится кнопка «Смотреть». Громкость, отключение звука,
полный экран, «Прекратить просмотр» — на панели под видео. В строке статуса — реально
согласованный кодек, разрешение и частота кадров.
## Usage
## Резервная копия идентичности
1. On first launch, enter a nickname to create a local P-256 identity without an account. Settings →
Identity manages multiple identities, their names/nicknames, default selection, additive import,
selected export and cancellable security-level improvement. Default and in-use identities cannot be
deleted. Editing a stored nickname affects future connections; it does not rename every active session.
2. Enter a server address and, if required, its password, then select Connect. Up to eight simultaneous
native connections are supported. Selecting a server tab changes the viewed server, not automatically
the microphone target; input routing has its own controls and acknowledgement. Bookmarks save a name,
address, optional local identity and folder. The sidebar editor also configures a per-connection nickname,
initial channel, startup connection and optional OS-encrypted server/channel passwords. Startup muting
affects only the microphone; it never changes output mute or unmutes a connection. The sidebar supports nested
folders, rename, duplicate, moving/reordering and confirmed subtree deletion. A security-level
rejection offers an explicit improvement action rather than starting expensive work automatically.
3. Click a channel (or focus its row and press Enter) to **browse** its heading and available streams.
This does not move your voice or change the channel-chat destination: the chat tab and composer still
name your current voice channel, and a notice explains this while browsing elsewhere. Double-click
a channel, or use **Join channel** in its header, to move voice. Password channels then show a password field.
The right-edge chevron hides or shows that channel's direct members without joining; collapsed rows show
a compact avatar summary. Collapse choices are saved per server address. Drag the sidebar divider or
focus it and use Left/Right or Home/End to resize; Enter or a double-click restores the responsive default.
4. Settings → Audio provides per-input and per-output device processing profiles. Voice activation can
use automatic speech detection, a volume gate, or a hybrid; push-to-talk can be combined with activation
and an optional release delay. Disabling both gives continuous transmission. Existing profile choices
migrate to this model. Notification output has a separate device and dB level. Processing is independent
and is not claimed bit-identical to the official client's private native DSP. Settings → Key Bindings has
named profiles (add/rename/activate/delete; only the active one is live), the official "Require exact key
match" toggle and the full official action list (push-to-talk, push-to-mute, microphone/speaker, away,
whispers, recording, disconnect, talk power, and Go Live, which opens the normal broadcast source chooser).
A binding is an in-window key or a global key (depends on the OS backend and permissions).
Older whisper-only bindings move unchanged into one active profile.
Local whisper lists/groups, quick whisper and reply use held-target epochs; failed or stale whisper
targets suppress sending rather than falling back to ordinary channel voice. Contact-only targets are
not offered without an account. The microphone test retains at most ten seconds of PCM in memory,
plays it only after an explicit Listen action through the selected output, and blocks server voice
until Finish clears the clip. Device/privacy changes and leaving settings also cancel and clear it.
The microphone and audio buttons update your server-visible mute state; muting or deafening stops transmission in every
mode. Right-click these buttons, or press Shift+F10 while focused, to select an input or output device
using the same selection as Settings → Audio. Left-click still mutes or deafens.
Deafening still blocks playback and transmission; its button state replaces the former muted banner.
5. Streaming members have a screen indicator. Select their channel to see available shares above the chat,
then choose **Watch** on a share. Several announced shares are listed separately; browsing alone never
subscribes to one. If the server flags a member as streaming but does not provide usable details, the
area shows discovery progress or the actual error instead of inventing a watchable stream.
Each watched share gets its own tile above chat and keeps playing while you browse other channels.
Volume, mute, picture in picture, full screen and Stop watching apply to that tile, not its neighbours.
The picture fills the tile: its name remains over the video while controls appear on pointer hover or
keyboard focus (always visible on coarse-pointer devices). **Stream details** opens the live statistics;
Escape closes that panel. Unavailable picture-in-picture remains disabled with an explanatory label.
Native picture in picture detaches the same video into an OS-managed floating window; full screen and
PiP do not subscribe again. Ending a share closes only its presentation; disconnecting closes all views.
Drag the divider above chat or focus it and use Up/Down or Home/End to resize the stream stage. Enter or
a double-click resets its height. Collapse hides the stage without stopping watched shares; its height
and collapsed state are saved. The chat retains usable space at the minimum window size.
6. Application chrome does not select text during interaction. Chat messages, editable fields, public
identity data and other useful content remain selectable. The server's host banner sits behind its
top card rather than in a separate panel, with a theme-aware contrast overlay.
7. Right-click a member, or focus the row and press Shift+F10 / the Menu key, for target-specific actions.
The menu uses server permission hints and distinguishes a known denial from an unknown permission that
the server must decide; group names never grant authority. Group/permission changes and moderation show
the exact target and operation before confirmation. A target that leaves, changes identity, or moves
channels closes its stale menu. Server errors are shown rather than reported as success.
Local volume uses the official -200..+10 dB taper, Mute and Reset. Reset restores 0 dB and unmutes;
explicitly committed modifiers persist by UID, while mute is session-local. Gain is applied before
voice mixing and never changes other participants.
The native avatar chooser accepts PNG/JPEG up to 128 KiB and exposes image bytes, never a file path, to
the renderer. Permission lists show explicit client/channel assignments, not a full effective-rights audit.
8. **Start Stream** opens the source chooser. Selecting a tile shows its thumbnail; **Next** starts
the muted private preview. Only **Go Live** publishes it. Choose an observed window/screen or
explicitly opt into a camera; camera capture does not include a microphone. Back, cancellation,
source loss and disconnect release the preview capture.
Presets and advanced controls set resolution/frame-rate and bitrate targets. Public allows viewers;
Selected participants uses a local UID allowlist (empty means nobody); Private requires a decision
per viewer. The stream can still appear in discovery. Audience settings remain locked until Stop.
Selected-application audio is opt-in: Windows uses WASAPI process-tree capture on build 20348+;
Linux uses PulseAudio/pipewire-pulse sink-input streams through `pactl` and `parec`. Pure PipeWire
without Pulse compatibility and macOS selected-application audio are not implemented.
Changing the audio source/scope/app selection never silently reopens the system picker. An explicit
Restart preview action is required for desktop-capturer sources; system-picker sources require Back
and a new explicit selection. The separate supported system-audio choice remains under Advanced.
Per-app/master gains apply to the outgoing mix; clicking the percent readout resets gain to 100%.
System audio is never substituted silently, and the local tile is not another receiver subscription.
Native capture depends on OS consent and the installed desktop/portal backend; these paths are not
universal cross-platform or official-client interoperability proof.
9. Channel/server menus provide typed administration with explicit destructive confirmations and server
errors. Snapshot import is non-atomic: completed server changes are not rolled back by cancellation.
General file browsing/transfers support the legacy server transport; HTTPFT/S3 remain explicit gaps
with no speculative legacy fallback. Filesystem publication fails safely when required atomic/no-replace
semantics are unavailable. Recording and transfer destinations are approved in main, not renderer paths.
File Transfer settings retain an approved download folder or ask every time, and apply upload/download
concurrency across all tabs (combined at most ten) plus shared directional rate limits. Limits apply to
active file/snapshot work without restarting streams; they are conservative ceilings, not bandwidth guarantees.
10. Chat history is local and separated by own identity, server and channel/peer identity. Drafts and
unread state are connection-local. Rich text, local math/diagrams, emoji and server-file links do not
require cloud services. Remote images require explicit consent; trusted external sites can be removed
in Settings → Privacy. Matrix/cloud edits, reactions, read receipts and cloud contacts are outside
the account-free scope; local UID contacts are separate.
11. Streams support hide/show without unsubscribing, ordering, focus with a secondary strip, pages,
an internal tile overlay and moving the existing stage over the server tree. Publisher admission,
kick/ban/unblock, pause and live options keep the original tracks/sessions. Standalone pop-out reuses
the same video; its hidden guest renderer was exercised with explicit test-only viewport emulation.
Unmodified native pop-out painting and SFU interoperability remain unverified.
«Настройки → Профиль → Экспортировать…» сохраняет файл в формате TeamSpeak (`.ini`) через системный
диалог. **Файл содержит закрытый ключ** — храните как пароль. Восстановление: «Импортировать…»
(после отключения от сервера; текущая идентичность заменяется только после подтверждения) или
кнопка «Восстановить из резервной копии…» на экране первого запуска. Ядро никогда не создаёт новую
идентичность поверх повреждённой.
Данные: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux): `core/identity.json`,
`core/profile.json`, `prefs.json`, `logs/`.
## Local panels and integrations
## Ограничения (честно)
- **Privacy:** manage trusted external hosts and reset remembered confirmations. Skipping a confirmation
changes that operation's local preference; reset restores prompts. No analytics service is enabled.
- **Contacts:** save server users locally by identity UID, optionally give them aliases, and show/sort/group
offline entries. Presence comes from the client's connected server snapshots, not a global service.
Public badge display does not redeem badges or claim ownership of them.
- **Remote Apps:** excluded by the owner's explicit instruction. No Remote Apps listener, authorization
IPC, page or remote-button binding is included.
- **Server icons:** the server administration pane lists, uploads, deletes and assigns icons through
legacy TeamSpeak file transfer. The server's permissions remain authoritative. A reconnect invalidates
the panel's mutation grant; HTTPFT/S3 storage is not silently treated as an empty icon collection.
- **Noise reduction:** Settings → Audio has four levels saved per input device. The implementation is
independent DSP; selected settings and generated-media checks do not prove microphone sound quality
or bit-identical behavior with the official client.
- **Saved bookmark passwords:** encryption uses the operating system's protected storage. Linux
`basic_text`/unknown backends are refused; there is no plaintext fallback. A password is revealed only
by an explicit eye-button click. Changing the address removes its saved passwords; duplicating a bookmark
at the same address preserves them. Forgetting a password still works if encryption becomes unavailable.
Encryption is tied to the OS user/key store and is not a portable backup format. Windows DPAPI was exercised;
Linux keyring and macOS Keychain behavior have not been verified on hardware.
- Трансляции только P2P (как у официального клиента по умолчанию). SFU-трансляции сервер
обозначает уведомлением — TeamsPeach пишет «не поддерживается». TURN нет: нужен прямой путь
до компьютера стримера (STUN `turn.teamspeak.com`, как у официального клиента).
- Показ своего экрана (отправка трансляции) не реализован.
- Клавиша PTT в TeamsPeach работает только пока окно активно: глобальная клавиша с удержанием
(например, через портал GlobalShortcuts на Wayland) не реализована.
- Цвет ника: официальный клиент подсвечивает собственный ник и ники контактов myTeamSpeak (локальные
связи, а не данные сервера). Без учётной записи контактов нет, поэтому TeamsPeach выделяет только свой ник.
- Аватары: показываются серверные и myTeamSpeak-аватары (публичные https-ссылки, байты проверяются по
сигнатуре). Встроенные иконки групп TeamSpeak (id 100, 200, 300, 500, 600) — нейтральный значок с
названием группы: у сервера нет этих файлов.
- Управление «Cisco OpenH264» и выбор аппаратных бэкендов из TS6 в движке Chromium недоступны;
декодирование выбирает Chromium (на Windows подтверждён аппаратный D3D11 для AV1).
- Сборки macOS и Windows ARM64 не выпускаются: нет сборочных машин. Linux ARM64 собирается
кроссом; запуск на Asahi M1 Pro не проверен — машина недоступна по SSH.
- Пакеты не подписаны: Windows SmartScreen и macOS Gatekeeper будут предупреждать.
## Language
## Продукт и дизайн
The interface defaults to English, independently of the operating-system language. Select Russian in
Settings → Appearance; the saved choice applies to the interface and native identity dialogs. Language
changes do not translate server names, chat messages or operating-system device names.
Рабочий инструмент: привычная раскладка голосового чата (сервер и дерево слева, канал/чат справа),
настройки — разделы слева (Идентичность, Серверы, Внешний вид, Звук, Видео, Клавиши, Информация) и
карточки справа, как на образце владельца; тема — «как в системе», тёмная или светлая.
Системные шрифты, единственный акцент — персиковый; зелёный —
только «говорит». Всё содержимое сервера выводится как текст (`textContent`), изображения — только
байты, проверенные по сигнатуре. Renderer изолирован (contextIsolation, sandbox, строгая CSP,
список разрешённых команд в main); пути к файлам выбирает только main через системные диалоги.
## Updates
## Проверки
Check for updates in Settings → Information. The first updater-capable version must be installed
manually: version 0.1.1 and older cannot update themselves. Updates come only from published releases
of the public [TeamsPeach/client repository](https://git.eeee.moe/TeamsPeach/client), without credentials.
- `npm test` — модульные тесты (валидация IPC, сессия просмотра, каталог трансляций).
- `node scripts/core-smoke.mjs <ядро>` — офлайн-инварианты идентичности.
- `node scripts/smoke-ui.mjs`, `smoke-voice.mjs`, `probe-stream.mjs`, `loopback-stream.mjs`,
`smoke-tree.mjs` — реальный UI; результаты прогонов лежат в `docs/evidence/runtime/`.
Windows x64 NSIS installations and Linux x64/ARM64 AppImages can download a verified package and install
it after confirmation. Windows zip and Linux tar.gz distributions notify you and open the release page;
replace those files manually. Development runs and unsupported platforms do not self-update. The
default Preview channel includes prereleases; choose Stable to exclude them. Installation never starts
automatically, and interrupting an active server session requires explicit confirmation.
For platform details, release requirements and verification scope, see [Updates](docs/updates.md).
Implementation and service-level tests do not by themselves prove a successful installed upgrade;
published-release end-to-end evidence must identify the source and destination versions.
## Identity backups
Settings → Identity → Export saves a TeamSpeak-format `.ini` file through a native dialog.
**This file contains your private key: protect it like a password.** Restore it with Import after
disconnecting from the server; replacing the current identity requires confirmation. You can also use
Restore from backup on the first-run screen. The core never silently replaces a corrupt identity.
Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux). Files include
`core/identity.json`, `core/profile.json`, `prefs.json` and `logs/`.
## Limitations
- Screenshares use P2P only, as the official client does by default. SFU notifications are reported as
unsupported. There is no TURN relay: the viewer needs a direct network path to the streaming computer
(STUN uses `turn.teamspeak.com`, as in the official client).
- P2P screenshare publishing is implemented, but native source capture on every OS/window manager,
macOS selected-application audio and official-client interoperability are not all verified. SFU publishing
is unavailable. See the feature matrix for the precise implementation and evidence boundaries.
- In-window push-to-talk releases on focus loss. Global bindings use the available Windows/Linux
backend; actual OS registration and Wayland portal operation were not exercised by the hidden UI
checks. macOS global shortcuts are explicitly unsupported. No platform-wide shortcut guarantee is made.
- Local contacts are keyed by server identity UID and can be highlighted in the tree. They do not sync
with myTeamSpeak, provide global presence or enable cloud/offline chat.
- Server-stored avatars, icons and banners use TeamSpeak file transfer. myTeamSpeak avatars use public
HTTPS URLs announced by the server; downloaded image bytes are checked by signature. A myTeamSpeak
avatar was observed in the live run; server-stored avatar support is implemented but was not exercised
live because no client on the test server advertised one.
Built-in TeamSpeak group icons (IDs 100, 200, 300, 500, 600) use a neutral badge with the group name,
because the server does not supply these files.
- Chromium does not expose the official client's Cisco OpenH264 switch or per-codec hardware backend
selection. Chromium chooses the decoder; AV1 hardware decoding with D3D11 was demonstrated on Windows.
- macOS and Windows ARM64 builds are not published because build hosts are unavailable. Linux ARM64 is
cross-compiled; execution on Asahi M1 Pro hardware has not been checked because the target was
unreachable over SSH.
- Packages are unsigned. Windows SmartScreen warns about unsigned builds; macOS Gatekeeper would also
require attention for a future macOS build.
- The recorded two-way voice run used synthetic capture between two TeamsPeach clients. It does not
prove live microphone interoperability with the official TS6 client or operation on Asahi hardware.
## Product and design
The interface reproduces the installed TeamSpeak 6 client's own design from its source values (see
DESIGN.md and `docs/evidence/official-parity/`): a three-pane window with a 270 px navigation sidebar
(collapsible to a 62 px rail) listing server connections and saved servers, a 500 px server pane with
the server header card and channel tree, and a detail pane with the channel header, stream stage, chat
and composer. Settings open in the main and detail panes with the official category column and section
cards (Identity, Servers, Appearance, Audio, Video, Keyboard, Chats, Notifications, OS Specific,
Information). Reduced-transparency, reduced-motion and forced-colors preferences have explicit fallbacks.
New profiles default to dark independently of the OS; Light and System remain selectable. Account-bound
official surfaces (notification bell, cloud contacts, myTeamSpeak presence) are intentionally absent;
local UID contacts are an independent account-free feature.
Each pane has the official 44 px window bar as its drag surface; the server pane's bar carries the
microphone/speakers toolbar pill. Startup and error views keep a 44 px drag strip. Electron's hidden
title bar retains native caption controls in the window-bar colour: Windows/Linux use the
window-controls overlay; macOS retains left-side traffic lights.
Minimize, maximize/restore, close, system shortcuts and caption double-click belong to the OS, not
duplicated JavaScript handlers. Native button accessibility names follow the OS language; the app's
title-bar landmark follows English/Russian. Theme changes also update the native overlay colours.
Fullscreen content removes the app bar; picture-in-picture remains a separate native window.
Only a read-only, trusted top-frame state endpoint is exposed, not generic window control IPC.
Bundled Noto Sans (OFL) and the official blue tint keep text identical across platforms; green indicates
a speaker.
Server text is rendered with `textContent`; image bytes are checked by signature. The renderer uses
context isolation, a sandbox, a strict CSP and allowlisted main-process commands. Only the main process
selects file paths through native dialogs.
## Repository language and evidence
Repository-authored documentation, comments, logs, diagnostics, scripts and release notes are in
English. Localized UI text belongs in the shared translation catalog; technical error details stay in
English and may be shown after a localized explanation. Server content, operating-system device names
and user messages are data, not translation resources.
Historical JSON captures and screenshots in `docs/evidence/runtime/` retain the exact UI text, server
names and device names observed during each run, including Russian text. They are not translated or
rewritten to resemble the current interface. Unicode test fixtures retain their original values.
## Checks
- `npm test` runs unit tests for contracts such as IPC validation, viewer sessions and stream discovery.
- `node --test test/titlebar.test.js` covers native caption configuration, state-event publication,
theme-listener cleanup and IPC trust rejection. `node scripts/smoke-titlebar-offscreen.mjs --out <dir>`
uses the shared hidden/offscreen harness and a disposable profile for EN/RU, light/dark, System-theme
and layout evidence. Native overlay buttons are outside renderer screenshots. Actual OS dragging,
Snap layouts, caption double-click, shortcuts and Linux/macOS integration require separate manual
platform checks; this smoke never sends OS keys or shows/maximizes/minimizes a window.
- `node scripts/smoke-official-shell-offscreen.mjs --out <dir>` measures the actual renderer across EN/RU,
dark/light and 1280×900/880×560, including onboarding, connection, chat, all settings, menus and dialogs.
Its server data is labelled read-only synthetic IPC, not a live connection or product demonstration.
Companion `smoke-stream-stage-offscreen.mjs` measures actual contained image size with generated local
WebRTC; `smoke-broadcast-ui-offscreen.mjs` uses generated muted canvas capture, never private pixels.
The shared launcher requires an invisible, unfocused, nonfocusable offscreen window, mutes webContents,
and rejects packaged main-process code that differs from the current guarded source. Separate disposable
profiles prevent these checks from changing normal preferences. Results are evidence only when exercised.
- `node scripts/official-pair-capture-offscreen.mjs --out <dir> --sizes 1553x998,1280x800,880x800`
compares the actual installed official frontend with TeamsPeach using the same synthetic data.
It preserves explicit brand/account/native-caption exceptions, checks painted chat timestamps rather
than hidden DOM history, and exercises bottom-anchor/history-reading behavior across window resize.
The strict pixel gate currently fails; see `docs/evidence/official-parity/qa-parity-harness.md`.
The default matrix uses 1553×998, 1280×800 and the supported 880×800 minimum-width case.
- `smoke-identity-offscreen.mjs`, `smoke-information-offscreen.mjs` and `smoke-file-settings-offscreen.mjs`
exercise actual local UI, native identity CLI, document navigation and persisted transfer settings.
`smoke-notification-groups-offscreen.mjs` checks mute precedence and restart without playing sound.
- `smoke-bookmarks-offscreen.mjs` is Windows-specific: real DPAPI save/reveal/restart, safe credential
deletion, session-bound channel drops and startup routing with main's server-connect guard retained.
`smoke-server-icons-offscreen.mjs` uses the production main grant service with synthetic core replies,
not a real server or native file chooser. All accept `--exe <isolated-package> --out <evidence-directory>`.
- `node scripts/core-smoke.mjs <core-binary>` checks identity invariants offline.
- `node scripts/smoke-ui.mjs`, `smoke-voice.mjs`, `probe-stream.mjs`, `loopback-stream.mjs` and
`smoke-tree.mjs` exercise the real UI. Recorded results are in `docs/evidence/runtime/`; each run's
scope and limitations apply.
+155
View File
@@ -0,0 +1,155 @@
'use strict';
/** Renderer allowlist for core/src/admin.rs and admin_extra.rs; server permissions remain authoritative. */
function createAdminValidators({shape,bool,boundedInt,optional,oneOf,isPlainObject,ValidationError}) {
const bad = message => { throw new ValidationError(message); };
const text = (min,max) => (v,k) => {
if (typeof v !== 'string' || [...v].length < min || [...v].length > max || (max===8192 ? /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f]/ : /[\u0000-\u001f\u007f-\u009f]/).test(v)) bad(k+': invalid text');
return v;
};
const float=(v,k)=>{if(typeof v!=='number'||!Number.isFinite(v)||Math.abs(v)>3.4028234663852886e38)bad(k+': expected finite f32');return v;};
const positive=boundedInt(1,Number.MAX_SAFE_INTEGER), zero=boundedInt(0,Number.MAX_SAFE_INTEGER), generation=positive;
const properties=(spec,requiredName=false)=>(v)=>{
if(!isPlainObject(v)||Object.keys(v).length===0)bad('properties: nonempty object required');
const out=shape(Object.fromEntries(Object.entries(spec).map(([k,check])=>[k,optional(check)])))(v);
if(requiredName&&!out.channel_name)bad('channel_name: required');
if(out.channel_flag_permanent&&out.channel_flag_semi_permanent)bad('channel cannot be permanent and semi-permanent');
return out;
};
const CHANNEL_CREATE = {
"channel_name": text(1,40),
"channel_topic": text(0,255),
"channel_description": text(0,8192),
"channel_password": text(0,1024),
"channel_codec": boundedInt(0,5),
"channel_codec_quality": boundedInt(0,10),
"channel_maxclients": boundedInt(-1,2147483647),
"channel_maxfamilyclients": boundedInt(-1,2147483647),
"channel_order": boundedInt(0,Number.MAX_SAFE_INTEGER),
"channel_codec_is_unencrypted": bool,
"channel_delete_delay": boundedInt(0,4294967295),
"channel_flag_maxclients_unlimited": bool,
"channel_flag_maxfamilyclients_unlimited": bool,
"channel_flag_maxfamilyclients_inherited": bool,
"channel_name_phonetic": text(0,255),
"channel_flag_permanent": bool,
"channel_flag_semi_permanent": bool,
"channel_flag_default": bool,
};
const CHANNEL_EDIT = {
"channel_order": boundedInt(0,Number.MAX_SAFE_INTEGER),
"channel_name": text(1,40),
"channel_topic": text(0,255),
"channel_flag_default": bool,
"channel_password": text(0,1024),
"channel_flag_permanent": bool,
"channel_flag_semi_permanent": bool,
"channel_codec": boundedInt(0,5),
"channel_codec_quality": boundedInt(0,10),
"channel_needed_talk_power": boundedInt(-2147483648,2147483647),
"channel_maxclients": boundedInt(-1,2147483647),
"channel_maxfamilyclients": boundedInt(-1,2147483647),
"channel_codec_latency_factor": boundedInt(1,10),
"channel_codec_is_unencrypted": bool,
"channel_delete_delay": boundedInt(0,4294967295),
"channel_flag_maxclients_unlimited": bool,
"channel_flag_maxfamilyclients_unlimited": bool,
"channel_flag_maxfamilyclients_inherited": bool,
"channel_name_phonetic": text(0,255),
"channel_description": text(0,8192),
"channel_banner_gfx_url": text(0,1024),
"channel_banner_mode": boundedInt(0,2),
};
const SERVER_EDIT = {
"virtualserver_name": text(1,64),
"virtualserver_sfu_endpoint": text(0,1024),
"virtualserver_storage_quota": boundedInt(-1,4294967295),
"virtualserver_welcomemessage": text(0,8192),
"virtualserver_maxclients": boundedInt(0,65535),
"virtualserver_password": text(0,1024),
"virtualserver_hostmessage": text(0,8192),
"virtualserver_hostmessage_mode": boundedInt(0,3),
"virtualserver_hostbanner_url": text(0,1024),
"virtualserver_hostbanner_gfx_url": text(0,1024),
"virtualserver_hostbanner_gfx_interval": boundedInt(0,4294967295),
"virtualserver_hostbutton_tooltip": text(0,1024),
"virtualserver_hostbutton_url": text(0,1024),
"virtualserver_hostbutton_gfx_url": text(0,1024),
"virtualserver_icon_id": boundedInt(0,4294967295),
"virtualserver_reserved_slots": boundedInt(0,65535),
"virtualserver_hostbanner_mode": boundedInt(0,2),
"virtualserver_nickname": text(0,1024),
"virtualserver_max_download_total_bandwidth": boundedInt(0,Number.MAX_SAFE_INTEGER),
"virtualserver_max_upload_total_bandwidth": boundedInt(0,Number.MAX_SAFE_INTEGER),
"virtualserver_download_quota": boundedInt(0,Number.MAX_SAFE_INTEGER),
"virtualserver_upload_quota": boundedInt(0,Number.MAX_SAFE_INTEGER),
"virtualserver_antiflood_points_tick_reduce": boundedInt(0,4294967295),
"virtualserver_antiflood_points_needed_command_block": boundedInt(0,4294967295),
"virtualserver_antiflood_points_needed_ip_block": boundedInt(0,4294967295),
"virtualserver_codec_encryption_mode": boundedInt(0,2),
"virtualserver_needed_identity_security_level": boundedInt(0,255),
"virtualserver_default_server_group": boundedInt(0,Number.MAX_SAFE_INTEGER),
"virtualserver_default_channel_group": boundedInt(0,Number.MAX_SAFE_INTEGER),
"virtualserver_default_channel_admin_group": boundedInt(0,Number.MAX_SAFE_INTEGER),
"virtualserver_complain_autoban_count": boundedInt(0,4294967295),
"virtualserver_complain_autoban_time": boundedInt(0,4294967295),
"virtualserver_complain_remove_time": boundedInt(0,4294967295),
"virtualserver_min_clients_in_channel_before_forced_silence": boundedInt(0,4294967295),
"virtualserver_priority_speaker_dimm_modificator": float,
"virtualserver_name_phonetic": text(0,1024),
"virtualserver_channel_temp_delete_delay_default": boundedInt(0,4294967295),
"virtualserver_weblist_enabled": bool,
"virtualserver_log_client": bool,
"virtualserver_log_query": bool,
"virtualserver_log_channel": bool,
"virtualserver_log_permissions": bool,
"virtualserver_log_server": bool,
"virtualserver_log_filetransfer": bool,
};
const confirm=text(0,1024), uid=text(1,128), groupKind=oneOf('server','channel');
const permission=(server)=>(value)=>{
if(!Array.isArray(value)||value.length<1||value.length>512)bad('permissions: expected 1..512 rows');
return value.map(v=>{
const p=shape({id:text(1,128),value:boundedInt(-2147483648,2147483647),negate:optional(bool),skip:optional(bool)})(v);
if(!/^[A-Za-z0-9_]+$/.test(p.id)||(/^\d+$/.test(p.id)&&(!Number.isSafeInteger(Number(p.id))||Number(p.id)<1||Number(p.id)>4294967295)))bad('permission: invalid identifier');
if(!server&&(p.negate||p.skip))bad('permission: negate/skip require server group');return p;
});
};
const commands={
admin_context:shape({}),
channel_create:shape({generation,parent_id:zero,properties:properties(CHANNEL_CREATE,true)}),
channel_edit:shape({generation,channel_id:positive,properties:properties(CHANNEL_EDIT)}),
channel_move:(a)=>{const o=shape({generation,channel_id:positive,parent_id:zero,order:optional(zero)})(a);if(o.channel_id===o.parent_id)bad('channel cannot parent itself');return o;},
channel_delete:shape({generation,channel_id:positive,force:bool,confirm}),
channel_subscribe:shape({channel_id:positive,subscribe:bool}), channel_subscribe_all:shape({subscribe:bool}),
channel_description:shape({channel_id:positive}),channel_info:shape({channel_id:positive}),channel_list:shape({}),
client_info:shape({client_id:boundedInt(1,65535),uid}),
set_away:(a)=>{const o=shape({away:bool,message:optional(text(0,80))})(a);if(!o.away&&o.message!==undefined)bad('message requires away');return o;},
talk_request:(a)=>{const o=shape({request:bool,message:optional(text(0,50))})(a);if(!o.request&&o.message!==undefined)bad('message requires request');return o;},
talk_power:shape({generation,client_id:boundedInt(1,65535),uid,grant:bool}),
ban_list:shape({}),ban_add:(a)=>{const o=shape({generation,ip:optional(text(0,255)),name:optional(text(0,255)),uid:optional(text(0,255)),duration_s:boundedInt(0,4294967295),reason:optional(text(0,512))})(a);if(!o.ip&&!o.name&&!o.uid)bad('ban needs ip, name or uid');return o;},
ban_delete:shape({generation,ban_id:positive,confirm}),ban_delete_all:shape({generation,confirm}),
privilege_key_list:shape({}),privilege_key_add:(a)=>{
const o=shape({generation,kind:oneOf('server_group','channel_group'),group_id:positive,channel_id:optional(positive),description:optional(text(0,255))})(a);
if((o.kind==='channel_group')!==(o.channel_id!==undefined))bad('channel_id required only for channel_group');return o;
},
privilege_key_delete:shape({generation,token:text(1,255),confirm}),privilege_key_use:shape({generation,token:text(1,255)}),
temp_password_list:shape({}),temp_password_add:(a)=>{const o=shape({generation,password:text(1,255),description:optional(text(0,255)),duration_s:boundedInt(1,4294967295),channel_id:optional(zero),channel_password:optional(text(0,255))})(a);if(!o.channel_id&&o.channel_password)bad('channel_password needs channel_id');return o;},
temp_password_delete:shape({generation,password:text(1,255),confirm}),
server_info:shape({}),server_edit:shape({generation,confirm,properties:properties(SERVER_EDIT)}),
server_group_perm_list:shape({group_id:positive}),channel_group_perm_list:shape({group_id:positive}),channel_perm_list:shape({channel_id:positive}),server_group_client_list:shape({group_id:positive}),
server_group_list:shape({}),channel_group_list:shape({}),
server_log:shape({lines:boundedInt(1,1000),reverse:bool,instance:bool,begin_pos:zero}),
client_database_list:shape({start:boundedInt(0,4294967295),duration:boundedInt(1,200)}),
client_database_find:shape({pattern:text(1,255),uid:bool}),client_database_id:shape({uid}),
client_database_delete:shape({generation,client_database_id:positive,confirm}),
group_add:shape({generation,kind:groupKind,name:text(1,128),type:boundedInt(0,2)}),
group_rename:shape({generation,kind:groupKind,group_id:positive,name:text(1,128)}),
group_set_permissions:(a)=>shape({generation,kind:groupKind,group_id:positive,permissions:permission(a?.kind==='server')})(a),
channel_set_permissions:shape({generation,channel_id:positive,permissions:permission(false)}),
server_group_add_client:shape({generation,group_id:positive,client_database_id:positive}),
server_group_member_add_uid:shape({generation,group_id:positive,uid}),
};
return commands;
}
module.exports={createAdminValidators};
+326
View File
@@ -0,0 +1,326 @@
'use strict';
const { spawn } = require('node:child_process');
const { randomUUID } = require('node:crypto');
const PCM_BYTES = 3840;
const MAX_APPS = 8;
const MAX_IN_FLIGHT = 4;
const fail = (code, message) => ({ ok: false, error: { code, message } });
const error = (message) => new Error(message);
const object = value => value && typeof value === 'object' && !Array.isArray(value);
const keys = (value, allowed) => object(value) && Object.keys(value).every(key => allowed.includes(key));
const identifier = value => typeof value === 'string' && value.length > 0 && value.length <= 256 && !/[\x00-\x20]/.test(value);
// Bound unfinished lines too: readline's line event alone cannot bound a corrupt helper.
function readLines(stream, limit, onLine, onError) {
let pending = '';
let failed = false;
stream.setEncoding('utf8');
stream.on('data', chunk => {
if (failed) return;
pending += chunk;
let end;
while ((end = pending.indexOf('\n')) >= 0) {
if (end > limit) { failed = true; onError(error('Application audio helper exceeded its frame limit.')); return; }
const line = pending.slice(0, end);
pending = pending.slice(end + 1);
try { if (line) onLine(JSON.parse(line)); } catch (cause) { failed = true; onError(cause); return; }
}
if (pending.length > limit) { failed = true; onError(error('Application audio helper exceeded its frame limit.')); }
});
stream.on('error', onError);
stream.on('end', () => { if (!failed && pending.trim()) onError(error('Application audio helper returned a truncated frame.')); });
}
function validPcm(frame) {
return object(frame) && frame.event === 'pcm' && Number.isSafeInteger(frame.sequence) && frame.sequence >= 0 &&
typeof frame.pcm === 'string' && frame.pcm.length === 5120 && /^[A-Za-z0-9+/]+$/.test(frame.pcm) && Buffer.from(frame.pcm, 'base64').length === PCM_BYTES;
}
class AppAudioController {
constructor({ resolveBinary, getWindow, trustedFrame, spawnProcess = spawn, ownPid = process.pid, now = Date.now }) {
this.resolveBinary = resolveBinary;
this.getWindow = getWindow;
this.trustedFrame = trustedFrame;
this.spawnProcess = spawnProcess;
this.ownPid = ownPid;
this.now = now;
this.observed = new Map();
this.grant = null;
this.active = null;
this.pendingSession = null;
this.listing = null;
this.generation = 0;
this.listChildren = new Set();
this.bound = new WeakSet();
}
bindWindow() {
const contents = this.getWindow()?.webContents;
if (!contents || this.bound.has(contents)) return;
this.bound.add(contents);
contents.on('did-start-navigation', (_event, _url, _inPlace, isMainFrame) => { if (isMainFrame) this.stopAll(); });
contents.on('render-process-gone', () => this.stopAll());
contents.on('destroyed', () => this.stopAll());
}
authorizeSelection(frame, sourceId) {
this.stopAll();
this.bindWindow();
if (!this.trustedFrame(frame)) return {};
const sessionId = randomUUID();
this.grant = { sessionId, frame, sourceId, expiresAt: this.now() + 30000, confirmed: false };
return { appAudioSessionId: sessionId };
}
confirmSelection(frame) {
if (this.grant?.frame === frame && this.trustedFrame(frame) && this.grant.expiresAt >= this.now()) this.grant.confirmed = true;
}
spawn(args) {
const child = this.spawnProcess(this.resolveBinary(), ['app-audio', ...args], { stdio: ['pipe', 'pipe', 'pipe'], windowsHide: true });
child.stdin.on('error', () => {});
// Never retain unbounded diagnostics or forward native process details to a renderer.
child.stderr.resume();
return child;
}
terminate(child) {
if (child.exitCode !== null && child.exitCode !== undefined) return;
child.stdin.end();
const timer = setTimeout(() => child.kill(), 250);
timer.unref?.();
child.once('close', () => clearTimeout(timer));
}
enumerate() {
return new Promise((resolve, reject) => {
let child;
try { child = this.spawn(['list']); } catch (cause) { reject(cause); return; }
this.listChildren.add(child);
let result;
let settled = false;
const timer = setTimeout(() => finish(error('Application audio enumeration timed out.')), 12000);
const finish = cause => {
if (settled) return;
settled = true;
clearTimeout(timer);
this.listChildren.delete(child);
if (cause) { this.terminate(child); reject(cause); } else resolve(result);
};
readLines(child.stdout, 256 * 1024, value => {
if (result !== undefined || !object(value) || typeof value.supported !== 'boolean' || !Array.isArray(value.applications) || value.applications.length > 2048) throw error('Invalid application audio list.');
if (value.supported && !['process-tree', 'audio-stream'].includes(value.scope)) throw error('Unsupported application audio scope.');
const hostAncestors = value.hostAncestors;
if (value.supported && value.scope === 'process-tree' && (!Array.isArray(hostAncestors) || hostAncestors.length > 128 || !hostAncestors.includes(this.ownPid) || hostAncestors.some(pid => !Number.isSafeInteger(pid) || pid <= 0))) throw error('Native helper did not establish process-tree self-exclusion.');
const applications = value.applications.map(app => {
if (!object(app) || !identifier(app.id) || typeof app.label !== 'string' || app.label.length > 4096 || !Number.isSafeInteger(app.pid) || app.pid <= 0 || !Array.isArray(app.ancestors) || app.ancestors.length > 128 || app.ancestors.some(pid => !Number.isSafeInteger(pid) || pid <= 0)) throw error('Invalid application audio identity.');
return { id: app.id, label: app.label, pid: app.pid, ancestors: app.ancestors };
}).filter(app => app.pid !== this.ownPid && !app.ancestors.includes(this.ownPid) && (value.scope !== 'process-tree' || !hostAncestors.includes(app.pid)));
if (new Set(applications.map(app => app.id)).size !== applications.length) throw error('Duplicate application audio identity.');
result = { supported: value.supported, platform: value.platform, scope: value.scope, reason: typeof value.reason === 'string' ? value.reason.slice(0, 4096) : undefined, applications: value.supported ? applications : [] };
}, finish);
child.once('error', finish);
child.once('close', code => finish(code !== 0 || result === undefined ? error('Application audio enumeration failed.') : null));
});
}
async list() {
this.bindWindow();
const generation = this.generation;
try {
const result = await this.enumerate();
if (generation !== this.generation) return fail('appaudio_cancelled', 'Application audio selection was cancelled.');
this.observed = new Map(result.applications.map(app => [app.id, app]));
return { ok: true, ...result };
} catch (cause) { return fail('appaudio_unavailable', cause.message); }
}
async start(frame, options) {
const scope = options?.scope ?? 'selected';
if (!keys(options, ['sessionId', 'ids', 'scope']) || !['selected', 'all', 'exclude'].includes(scope) || !identifier(options.sessionId) || !Array.isArray(options.ids) || options.ids.length > MAX_APPS || (scope === 'selected' && !options.ids.length) || (scope === 'all' && options.ids.length) || options.ids.some(id => !identifier(id)) || new Set(options.ids).size !== options.ids.length) return fail('invalid_appaudio_options', 'Choose an audio scope and at most eight observed applications.');
const grant = this.grant;
if (!grant || grant.sessionId !== options.sessionId || grant.frame !== frame || !grant.confirmed || grant.expiresAt < this.now() || !this.trustedFrame(frame)) return fail('appaudio_selection_expired', 'Explicitly select and preview a broadcast source before capturing application audio.');
if (options.ids.some(id => !this.observed.has(id))) return fail('appaudio_not_observed', 'Select applications from the current audio list.');
this.grant = null; // one use, including failures and concurrent requests
const pending = { id: options.sessionId, frame };
this.pendingSession = pending;
const generation = this.generation;
try {
const fresh = await this.enumerate();
if (generation !== this.generation || !this.trustedFrame(frame)) return fail('appaudio_cancelled', 'Application audio selection was cancelled.');
if (!fresh.supported) return fail('appaudio_unsupported', fresh.reason || 'Application audio is not supported on this platform.');
const selected = this.selectScope(fresh, options.ids, scope);
if (scope === 'selected' && selected.length !== options.ids.length) return fail('appaudio_selection_expired', 'A selected audio application exited or changed identity.');
const session = { id: options.sessionId, frame, children: new Set(), captures: new Map(), inFlight: new Set(), nextToken: 1, closed: false, rejectReady: new Set(), scope, ids: [...options.ids], refreshTimer: null };
this.active = session;
if (scope !== 'selected') this.send(session, { event: 'applications', applications: selected.map(app => ({ id: app.id, label: app.label })) });
await Promise.all(selected.map(app => this.capture(session, app.id)));
if (session.closed || generation !== this.generation) return fail('appaudio_cancelled', 'Application audio selection was cancelled.');
if (scope !== 'selected') this.refreshScope(session);
return { ok: true, sessionId: session.id };
} catch (cause) {
if (generation === this.generation) this.stopAll();
return fail(cause.code || 'appaudio_failed', cause.message);
} finally {
if (this.pendingSession === pending) this.pendingSession = null;
}
}
selectScope(fresh, ids, scope) {
const chosen = new Set(ids);
const excludedPids = new Set(ids.map(id => this.observed.get(id)?.pid).filter(Boolean));
let selected = fresh.applications.filter(app => scope === 'all' || (scope === 'selected' ? chosen.has(app.id)
: !chosen.has(app.id) && !excludedPids.has(app.pid) && !app.ancestors.some(pid => excludedPids.has(pid))));
if (fresh.scope === 'process-tree') {
if (scope === 'exclude' && selected.some(app => fresh.applications.some(other => chosen.has(other.id) && other.ancestors.includes(app.pid)))) {
throw error('The excluded application shares a captured ancestor process tree. This backend cannot separate that ancestor without also recording the excluded app; choose Selected Apps instead.');
}
const roots = selected.filter(app => !selected.some(other => other.id !== app.id && (app.ancestors.includes(other.pid) || (app.pid === other.pid && other.id < app.id))));
if (scope === 'selected' && roots.length !== selected.length) throw Object.assign(error('Choose only one member of an application process tree to avoid duplicate audio.'), { code: 'appaudio_overlap' });
selected = roots;
}
if (selected.length > MAX_APPS) throw error('This audio scope exceeds the eight-application capture limit. Narrow the scope; no applications were silently omitted.');
return selected;
}
refreshScope(session) {
clearTimeout(session.refreshTimer);
session.refreshTimer = setTimeout(async () => {
if (session.closed) return;
try {
const fresh = await this.enumerate();
if (session.closed) return;
if (!fresh.supported) throw error(fresh.reason || 'Application audio became unavailable.');
const selected = this.selectScope(fresh, session.ids, session.scope);
const wanted = new Set(selected.map(app => app.id));
for (const [id, capture] of session.captures) if (!wanted.has(id)) {
session.captures.delete(id); capture.retired = true; this.terminate(capture.child);
}
this.send(session, { event: 'applications', applications: selected.map(app => ({ id: app.id, label: app.label })) });
await Promise.all(selected.filter(app => !session.captures.has(app.id)).map(app => this.capture(session, app.id)));
if (!session.closed) this.refreshScope(session);
} catch (cause) {
if (!session.closed) { this.send(session, { event: 'error', code: 'appaudio_scope_failed', message: cause.message }); this.stopAll(); }
}
}, 1000);
}
capture(session, id) {
return new Promise((resolve, reject) => {
const child = this.spawn(['capture', id]);
session.children.add(child);
const capture = { child, retired: false };
session.captures.set(id, capture);
let formatted = false;
let sequence = -1;
let ready = false;
let ended = false;
const timer = setTimeout(() => finish(error('Application audio activation timed out.')), 12000);
const rejectReady = cause => { clearTimeout(timer); if (!ready) { ready = true; reject(cause); } };
session.rejectReady.add(rejectReady);
const finish = cause => {
if (ended) return;
ended = true;
clearTimeout(timer);
session.rejectReady.delete(rejectReady);
if (capture.retired) { rejectReady(error('Application left the audio scope.')); return; }
if (formatted && session.scope !== 'selected' && !session.closed) {
// A normal app exit changes a dynamic scope; a still-present broken recorder is an error.
void this.enumerate().then(fresh => {
if (session.closed || capture.retired) return;
if (!fresh.supported || fresh.applications.some(app => app.id === id)) throw cause || error('Application audio recorder stopped unexpectedly.');
capture.retired = true; session.captures.delete(id); this.terminate(child);
this.refreshScope(session);
}).catch(failure => {
if (!session.closed) { this.send(session, { event: 'error', code: 'appaudio_ended', message: failure.message }); this.stopAll(); }
});
return;
}
rejectReady(cause || error('The selected audio application stopped.'));
if (!session.closed) {
this.send(session, { event: 'error', code: 'appaudio_ended', message: cause?.message || 'The selected audio application stopped.' });
this.stopAll();
}
};
readLines(child.stdout, 8192, packet => {
if (session.closed || capture.retired) return;
if (!formatted) {
if (packet?.event !== 'format' || packet.sampleRate !== 48000 || packet.channels !== 2 || packet.format !== 's16le' || packet.frames !== 960) throw error('Invalid application audio format.');
formatted = true;
clearTimeout(timer);
ready = true;
session.rejectReady.delete(rejectReady);
resolve();
return;
}
if (!validPcm(packet) || packet.sequence <= sequence) throw error('Invalid application audio PCM frame.');
sequence = packet.sequence;
// Keep draining native pipes but drop realtime frames while the renderer is
// stalled. At most four unacknowledged PCM events can cross Electron IPC.
if (session.inFlight.size >= MAX_IN_FLIGHT) return;
const token = session.nextToken++;
session.inFlight.add(token);
this.send(session, { event: 'pcm', id, sequence, pcm: packet.pcm, token });
}, finish);
child.once('error', finish);
child.once('close', () => { session.children.delete(child); finish(); });
});
}
send(session, packet) {
const win = this.getWindow();
if (session.closed || !win || win.isDestroyed() || !this.trustedFrame(session.frame)) { this.stopAll(); return; }
try { win.webContents.send('appaudio:event', { sessionId: session.id, ...packet }); } catch { this.stopAll(); }
}
ack(frame, options) {
if (!keys(options, ['sessionId', 'token']) || !Number.isSafeInteger(options.token)) return;
const session = this.active;
if (session?.frame === frame && session.id === options.sessionId) session.inFlight.delete(options.token);
}
stop(frame, options) {
if (!keys(options, ['sessionId']) || !identifier(options.sessionId)) return fail('invalid_appaudio_options', 'Invalid audio capture session.');
if ((this.active?.id === options.sessionId && this.active.frame === frame) || (this.pendingSession?.id === options.sessionId && this.pendingSession.frame === frame) || (this.grant?.sessionId === options.sessionId && this.grant.frame === frame)) this.stopAll();
return { ok: true };
}
stopAll() {
this.generation++;
this.grant = null;
this.pendingSession = null;
const session = this.active;
this.active = null;
if (session) {
const win = this.getWindow();
if (win && !win.isDestroyed() && this.trustedFrame(session.frame)) {
try { win.webContents.send('appaudio:event', { sessionId: session.id, event: 'stopped', message: 'Application audio capture stopped.' }); } catch { /* Window teardown still owns disposal. */ }
}
session.closed = true;
clearTimeout(session.refreshTimer);
session.captures.clear();
session.inFlight.clear();
for (const reject of session.rejectReady) reject(error('Application audio capture was cancelled.'));
session.rejectReady.clear();
for (const child of session.children) this.terminate(child);
session.children.clear();
}
for (const child of this.listChildren) this.terminate(child);
}
registerIpc(ipcMain, trustedSender) {
const trusted = event => trustedSender(event) && this.trustedFrame(event.senderFrame);
const handle = (channel, fn) => ipcMain.handle(channel, (event, options) => trusted(event) ? fn(event.senderFrame, options) : fail('forbidden', 'Application audio is restricted to the application top frame.'));
handle('appaudio:list', () => {
if (!this.listing) this.listing = this.list().finally(() => { this.listing = null; });
return this.listing;
});
handle('appaudio:start', (frame, options) => this.start(frame, options));
handle('appaudio:stop', (frame, options) => this.stop(frame, options));
ipcMain.on('appaudio:ack', (event, options) => { if (trusted(event)) this.ack(event.senderFrame, options); });
}
}
module.exports = { AppAudioController, readLines, validPcm, MAX_IN_FLIGHT };
+458
View File
@@ -0,0 +1,458 @@
'use strict';
/**
* Public myTeamSpeak badge catalog for displaying other clients' badges (official tree `ts-badges`, client info
* Badge Showcase). Account-free: this only reads TeamSpeak's public catalog; it never redeems, owns, signs or
* sets badges.
*
* Evidence (installed TS6 6.0.0, read-only):
* - TeamSpeak.dll embeds the catalog URL `https://badges-content.teamspeak.com/list` and the protobuf schema
* `global_badge_list.proto` (package com.teamspeak.myteamspeak.proto.cloud):
* message BadgeList { int32 version = 1; int64 updated = 2; repeated Badge badges = 3; }
* message Badge { string uuid = 1; string name = 2; string url = 3; string description = 4;
* int64 created = 5; int32 version = 6; }
* - The native client caches artwork per badge as `<cache>/badges/96/<uuid>` (small SVG, client_ui `url`) and
* `<uuid>_details` (detailed SVG, client_ui `detailed_url`); on Windows the cache is
* %LOCALAPPDATA%/TeamSpeak/Cache/Default/badges/96. Those files are read here read-only when present.
* - Network artwork for a badge missing from both caches is derived from the catalog entry's own `url` as
* `<url>.svg` / `<url>_details.svg` (TeamSpeak.dll string "_details.svg"). Observed live 2026-11-01: GET /list →
* 200 application/octet-stream, 17245 bytes, a plain BadgeList body (no extra header; version 99, 91 badges);
* badge 0005232e-538e-4cb2-93b6-d7d83e873829 has url `https://badges-content.teamspeak.com/<uuid>/PietSmiet`,
* and `<url>.svg` / `<url>_details.svg` → 200 image/svg+xml, 6880 / 7278 bytes, the same sizes as the TS6 cache
* files. The suffix rule is verified for that sample, not for every catalog entry. Only URLs on the fixed
* catalog origin are ever requested.
*
* Network policy (same as phishing-list.js): anonymous GET, no cookies/credentials/referrer, redirect:'error',
* bounded time and bytes, single-flight, no request until the renderer first needs badge data, failed refreshes
* keep the previous list, the last good list and fetched artwork are cached in the profile with a size bound.
*/
const fs = require('node:fs');
const path = require('node:path');
const BADGE_LIST_URL = 'https://badges-content.teamspeak.com/list';
const BADGE_ORIGIN = 'https://badges-content.teamspeak.com';
const REFRESH_MS = 24 * 60 * 60 * 1000;
const RETRY_MS = 10 * 60 * 1000;
const REQUEST_TIMEOUT_MS = 20000;
const MAX_LIST_BYTES = 4 * 1024 * 1024;
const MAX_BADGES = 10000;
const MAX_ART_BYTES = 512 * 1024;
const MAX_CACHED_ART = 400;
const MAX_REQUEST_UUIDS = 64;
const CACHE_VERSION = 1;
const MAX_NAME = 256;
const MAX_DESCRIPTION = 2048;
const MAX_URL = 1024;
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
const CONTROL = /[\u0000-\u0008\u000b-\u001f\u007f]/;
const SVG_START = /^\s*(?:<\?xml[^>]*\?>\s*)?(?:<!--[\s\S]*?-->\s*)*(?:<!DOCTYPE[^>]*>\s*)?(?:<!--[\s\S]*?-->\s*)*<svg[\s>]/i;
class BadgeError extends Error {
constructor(code, message) { super(message); this.code = code; }
}
const validUuid = (v) => typeof v === 'string' && UUID.test(v);
// ---------- protobuf (proto3 wire format, only what BadgeList needs) ----------
function readVarint(buf, state) {
let result = 0;
let scale = 1;
for (let i = 0; i < 10; i += 1) {
if (state.pos >= buf.length) throw new BadgeError('format', 'badge list: truncated varint');
const byte = buf[state.pos++];
result += (byte & 0x7f) * scale;
if ((byte & 0x80) === 0) return result;
scale *= 128;
}
throw new BadgeError('format', 'badge list: varint too long');
}
/** Calls onField(fieldNo, wireType, value) for each field of buf; value is a Number (varint) or a subarray. */
function readFields(buf, onField) {
const state = { pos: 0 };
while (state.pos < buf.length) {
const key = readVarint(buf, state);
const field = Math.floor(key / 8);
const wire = key % 8;
if (field < 1) throw new BadgeError('format', 'badge list: invalid field number');
switch (wire) {
case 0: onField(field, wire, readVarint(buf, state)); break;
case 1:
if (state.pos + 8 > buf.length) throw new BadgeError('format', 'badge list: truncated fixed64');
state.pos += 8;
break;
case 2: {
const length = readVarint(buf, state);
if (length > buf.length - state.pos) throw new BadgeError('format', 'badge list: truncated field');
onField(field, wire, buf.subarray(state.pos, state.pos + length));
state.pos += length;
break;
}
case 5:
if (state.pos + 4 > buf.length) throw new BadgeError('format', 'badge list: truncated fixed32');
state.pos += 4;
break;
default: throw new BadgeError('format', `badge list: unsupported wire type ${wire}`);
}
}
}
const utf8 = new TextDecoder('utf-8', { fatal: true });
function text(bytes) {
try { return utf8.decode(bytes); } catch { throw new BadgeError('format', 'badge list: invalid UTF-8'); }
}
/** Only https URLs on the fixed catalog origin, without credentials, query or fragment. */
function catalogUrl(value) {
if (typeof value !== 'string' || value.length === 0 || value.length > MAX_URL) return null;
let url;
try { url = new URL(value); } catch { return null; }
if (url.origin !== BADGE_ORIGIN || url.username || url.password || url.search || url.hash || url.pathname.length < 2) return null;
return url.href;
}
function cleanBadge(raw) {
const uuid = typeof raw.uuid === 'string' ? raw.uuid.toLowerCase() : '';
if (!validUuid(uuid)) return null;
const name = raw.name ?? '';
const description = raw.description ?? '';
if (name.length > MAX_NAME || CONTROL.test(name) || description.length > MAX_DESCRIPTION || CONTROL.test(description)) return null;
return { uuid, name, description, url: catalogUrl(raw.url) };
}
/**
* Bytes → { version, updated, badges }. Structural errors reject the whole body; individual badges with an invalid
* UUID or text are dropped, duplicates keep the first entry. A body without any valid badge is rejected.
*/
function parseBadgeList(bytes) {
const buf = Buffer.isBuffer(bytes) ? bytes : Buffer.from(bytes);
if (buf.length === 0 || buf.length > MAX_LIST_BYTES) throw new BadgeError('format', 'badge list: empty or too large');
let version = 0;
let updated = 0;
const raws = [];
readFields(buf, (field, wire, value) => {
if (field === 1 && wire === 0) version = value;
else if (field === 2 && wire === 0) updated = value;
else if (field === 3 && wire === 2) {
if (raws.length >= MAX_BADGES) throw new BadgeError('format', 'badge list: too many badges');
const badge = {};
readFields(value, (f, w, v) => {
if (w !== 2) return;
if (f === 1) badge.uuid = text(v);
else if (f === 2) badge.name = text(v);
else if (f === 3) badge.url = text(v);
else if (f === 4) badge.description = text(v);
});
raws.push(badge);
}
});
const seen = new Set();
const badges = [];
for (const raw of raws) {
const badge = cleanBadge(raw);
if (!badge || seen.has(badge.uuid)) continue;
seen.add(badge.uuid);
badges.push(badge);
}
if (badges.length === 0) throw new BadgeError('format', 'badge list: no valid badges');
return { version, updated, badges };
}
/** Network artwork URL for a catalog entry; null unless it stays on the fixed origin. */
function artworkUrl(badge, detailed) {
if (!badge?.url) return null;
const base = badge.url.endsWith('.svg') ? badge.url.slice(0, -4) : badge.url;
return catalogUrl(`${base}${detailed ? '_details' : ''}.svg`);
}
function validSvg(value) {
return typeof value === 'string' && value.length > 0 && Buffer.byteLength(value) <= MAX_ART_BYTES && SVG_START.test(value.replace(/^\uFEFF/, ''));
}
async function readBounded(res, max, signal) {
const declared = Number(res.headers?.get?.('content-length'));
if (Number.isFinite(declared) && declared > max) throw new BadgeError('too-large', 'badge response too large');
if (!res.body || typeof res.body.getReader !== 'function') {
const buf = Buffer.from(await res.arrayBuffer());
if (signal.aborted) throw signal.reason;
if (buf.length > max) throw new BadgeError('too-large', 'badge response too large');
return buf;
}
const reader = res.body.getReader();
const chunks = [];
let total = 0;
const onAbort = () => { reader.cancel(signal.reason).catch(() => {}); };
signal.addEventListener('abort', onAbort, { once: true });
try {
for (;;) {
if (signal.aborted) throw signal.reason;
const { done, value } = await reader.read();
if (signal.aborted) throw signal.reason;
if (done) break;
total += value.byteLength;
if (total > max) {
await reader.cancel().catch(() => {});
throw new BadgeError('too-large', 'badge response too large');
}
chunks.push(Buffer.from(value.buffer, value.byteOffset, value.byteLength));
}
} finally {
signal.removeEventListener('abort', onAbort);
}
return Buffer.concat(chunks, total);
}
/** The installed official client's artwork cache directory (observed on Windows only; read-only use). */
function officialBadgeCacheDirs(env = process.env, platform = process.platform) {
if (platform !== 'win32' || typeof env.LOCALAPPDATA !== 'string' || !path.win32.isAbsolute(env.LOCALAPPDATA)) return [];
return [path.win32.join(env.LOCALAPPDATA, 'TeamSpeak', 'Cache', 'Default', 'badges', '96')];
}
class BadgeCatalog {
/**
* @param {object} o
* @param {string} o.cacheDir profile directory for list.json and fetched artwork
* @param {(url: string, init: object) => Promise<Response>} o.fetchImpl Electron net.fetch in the app
* @param {string[]} [o.officialCacheDirs] read-only artwork directories of an installed TS6 client
* @param {boolean} [o.enabled] false: no network (offscreen tests); caches are still read
*/
constructor({ cacheDir, fetchImpl, officialCacheDirs = [], enabled = true, now = Date.now, log = () => {} }) {
Object.assign(this, { cacheDir, fetchImpl, officialCacheDirs, enabled, now, log });
this.badges = new Map();
this.fetchedAt = null;
this.checkedAt = null;
this.fromCache = false;
this.error = null;
this.cacheLoaded = false;
this.pending = null;
this.artPending = new Map();
this.artFailures = new Map();
this.controllers = new Set();
this.generation = 0;
}
status() {
return {
enabled: this.enabled, source: BADGE_LIST_URL, loaded: this.fetchedAt !== null, count: this.badges.size,
fetchedAt: this.fetchedAt, checkedAt: this.checkedAt, fromCache: this.fromCache, error: this.error,
};
}
get listFile() { return path.join(this.cacheDir, 'list.json'); }
get artDir() { return path.join(this.cacheDir, 'art'); }
loadCache() {
if (this.cacheLoaded) return;
this.cacheLoaded = true;
try {
const stat = fs.statSync(this.listFile);
if (!stat.isFile() || stat.size > MAX_LIST_BYTES * 2) return;
const data = JSON.parse(fs.readFileSync(this.listFile, 'utf8'));
if (data?.version !== CACHE_VERSION || data.source !== BADGE_LIST_URL || !Number.isFinite(data.fetchedAt)
|| !Array.isArray(data.badges) || data.badges.length > MAX_BADGES) return;
const badges = new Map();
for (const entry of data.badges) {
const badge = entry && typeof entry === 'object' ? cleanBadge(entry) : null;
if (badge && !badges.has(badge.uuid)) badges.set(badge.uuid, badge);
}
if (badges.size === 0 || (this.fetchedAt !== null && this.fetchedAt >= data.fetchedAt)) return;
this.badges = badges;
this.fetchedAt = data.fetchedAt;
this.fromCache = true;
} catch {
// no cache yet or unreadable
}
}
/** Loads the cache and starts a refresh when the list is missing or older than REFRESH_MS (RETRY_MS after a failure). */
ensureFresh() {
this.loadCache();
if (!this.enabled) return Promise.resolve(this.status());
const now = this.now();
const stale = this.fetchedAt === null || now - this.fetchedAt >= REFRESH_MS;
const recentlyTried = this.checkedAt !== null && now - this.checkedAt < (this.error ? RETRY_MS : REFRESH_MS);
if (stale && !recentlyTried) return this.refresh();
return this.pending ?? Promise.resolve(this.status());
}
refresh() {
if (!this.enabled) return Promise.resolve(this.status());
if (!this.pending) {
const pending = this.fetchList().finally(() => { if (this.pending === pending) this.pending = null; });
this.pending = pending;
}
return this.pending;
}
stop() {
this.generation += 1;
for (const controller of this.controllers) controller.abort(new BadgeError('stopped', 'badge catalog stopped'));
this.controllers.clear();
this.pending = null;
this.artPending.clear();
}
async request(url, accept) {
const generation = this.generation;
const controller = new AbortController();
this.controllers.add(controller);
const timer = setTimeout(() => controller.abort(new BadgeError('timeout', `badges: no answer in ${REQUEST_TIMEOUT_MS / 1000} s`)), REQUEST_TIMEOUT_MS);
timer.unref?.();
try {
const res = await this.fetchImpl(url, {
method: 'GET', signal: controller.signal, redirect: 'error', cache: 'no-store',
credentials: 'omit', referrerPolicy: 'no-referrer', headers: { Accept: accept },
});
if (generation !== this.generation) throw new BadgeError('stopped', 'badge catalog stopped');
if (res.redirected || (res.url && res.url !== url)) throw new BadgeError('redirect', 'badge response did not come from the fixed endpoint');
if (!res.ok) throw new BadgeError('http', `badges: HTTP ${res.status}`);
const body = await readBounded(res, accept === 'image/svg+xml' ? MAX_ART_BYTES : MAX_LIST_BYTES, controller.signal);
if (generation !== this.generation) throw new BadgeError('stopped', 'badge catalog stopped');
return body;
} catch (err) {
const reason = controller.signal.aborted ? controller.signal.reason : null;
throw reason instanceof BadgeError ? reason : err;
} finally {
clearTimeout(timer);
this.controllers.delete(controller);
}
}
async fetchList() {
const generation = this.generation;
this.checkedAt = this.now();
try {
const body = await this.request(BADGE_LIST_URL, 'application/octet-stream');
const { badges } = parseBadgeList(body);
if (generation !== this.generation) return this.status();
this.badges = new Map(badges.map((badge) => [badge.uuid, badge]));
this.fetchedAt = this.now();
this.fromCache = false;
this.error = null;
this.writeList();
this.log('info', `badge catalog: ${badges.length} badges`);
} catch (err) {
if (generation !== this.generation) return this.status();
this.error = { code: err instanceof BadgeError ? err.code : 'network', message: String(err?.message ?? err) };
this.log('warn', `badge catalog: ${this.error.message} (keeping ${this.badges.size} known badges)`);
}
return this.status();
}
writeList() {
try {
fs.mkdirSync(this.cacheDir, { recursive: true });
const tmp = `${this.listFile}.tmp`;
fs.writeFileSync(tmp, JSON.stringify({ version: CACHE_VERSION, source: BADGE_LIST_URL, fetchedAt: this.fetchedAt, badges: [...this.badges.values()] }));
fs.renameSync(tmp, this.listFile);
} catch (err) {
this.log('warn', `badge catalog cache not written: ${err.message}`);
}
}
/** Catalog entries for the requested UUIDs (unknown ones flagged), plus the source status. */
async info(uuids) {
await this.ensureFresh();
return {
status: this.status(),
badges: uuids.map((uuid) => {
const badge = this.badges.get(uuid);
return badge ? { uuid, known: true, name: badge.name, description: badge.description } : { uuid, known: false, name: '', description: '' };
}),
};
}
readArtFile(file) {
try {
const stat = fs.statSync(file);
if (!stat.isFile() || stat.size === 0 || stat.size > MAX_ART_BYTES) return null;
const svg = fs.readFileSync(file, 'utf8');
return validSvg(svg) ? svg : null;
} catch {
return null;
}
}
/** SVG text for a badge: profile cache, then the installed TS6 cache, then the fixed catalog origin. */
async artwork(uuid, detailed) {
if (!validUuid(uuid)) throw new BadgeError('bad_request', 'invalid badge id');
const name = `${uuid}${detailed ? '_details' : ''}`;
const own = this.readArtFile(path.join(this.artDir, `${name}.svg`));
if (own) return { svg: own, source: 'cache' };
for (const dir of this.officialCacheDirs) {
const svg = this.readArtFile(path.join(dir, name));
if (svg) return { svg, source: 'teamspeak-cache' };
}
if (!this.enabled) throw new BadgeError('unavailable', 'badge artwork is not cached and network access is disabled');
const failedAt = this.artFailures.get(name);
if (failedAt !== undefined && this.now() - failedAt < RETRY_MS) throw new BadgeError('unavailable', 'badge artwork recently failed');
let pending = this.artPending.get(name);
if (!pending) {
pending = this.fetchArt(uuid, detailed, name).finally(() => { if (this.artPending.get(name) === pending) this.artPending.delete(name); });
this.artPending.set(name, pending);
}
return pending;
}
async fetchArt(uuid, detailed, name) {
await this.ensureFresh();
const url = artworkUrl(this.badges.get(uuid), detailed);
if (!url) throw new BadgeError('unavailable', 'badge is not in the public catalog');
try {
const svg = (await this.request(url, 'image/svg+xml')).toString('utf8');
if (!validSvg(svg)) throw new BadgeError('format', 'badge artwork is not an SVG image');
this.artFailures.delete(name);
this.writeArt(name, svg);
return { svg, source: 'network' };
} catch (err) {
this.artFailures.set(name, this.now());
throw err instanceof BadgeError ? err : new BadgeError('network', String(err?.message ?? err));
}
}
/** Atomic write; the oldest files beyond MAX_CACHED_ART are evicted. */
writeArt(name, svg) {
try {
fs.mkdirSync(this.artDir, { recursive: true });
const entries = fs.readdirSync(this.artDir).filter((file) => file.endsWith('.svg'));
if (entries.length >= MAX_CACHED_ART) {
const aged = entries.map((file) => {
try { return { file, at: fs.statSync(path.join(this.artDir, file)).mtimeMs }; } catch { return { file, at: 0 }; }
}).sort((a, b) => a.at - b.at);
for (const { file } of aged.slice(0, entries.length - MAX_CACHED_ART + 1)) fs.rmSync(path.join(this.artDir, file), { force: true });
}
const file = path.join(this.artDir, `${name}.svg`);
fs.writeFileSync(`${file}.tmp`, svg);
fs.renameSync(`${file}.tmp`, file);
} catch (err) {
this.log('warn', `badge artwork not cached: ${err.message}`);
}
}
}
const FORBIDDEN = Object.freeze({ ok: false, error: { code: 'forbidden', message: 'forbidden' } });
const failure = (err) => ({ ok: false, error: { code: err instanceof BadgeError ? err.code : 'internal', message: String(err?.message ?? err) } });
/** badges:info(uuids[]) and badges:art(uuid, detailed): the renderer never supplies a URL or a path. */
function registerBadgesIpc({ ipcMain, trustedSender, catalog }) {
ipcMain.handle('badges:info', async (event, uuids) => {
if (!trustedSender(event)) return FORBIDDEN;
if (!Array.isArray(uuids) || uuids.length > MAX_REQUEST_UUIDS || !uuids.every(validUuid)) {
return { ok: false, error: { code: 'bad_request', message: 'Invalid badge ids' } };
}
try { return { ok: true, ...(await catalog.info([...new Set(uuids)])) }; } catch (err) { return failure(err); }
});
ipcMain.handle('badges:art', async (event, uuid, detailed) => {
if (!trustedSender(event)) return FORBIDDEN;
if (!validUuid(uuid) || typeof detailed !== 'boolean') return { ok: false, error: { code: 'bad_request', message: 'Invalid badge request' } };
try { return { ok: true, ...(await catalog.artwork(uuid, detailed)) }; } catch (err) { return failure(err); }
});
}
module.exports = {
BadgeCatalog, registerBadgesIpc, parseBadgeList, artworkUrl, validSvg, officialBadgeCacheDirs,
BADGE_LIST_URL, BADGE_ORIGIN, MAX_LIST_BYTES, MAX_BADGES, MAX_ART_BYTES, MAX_CACHED_ART, MAX_REQUEST_UUIDS, REFRESH_MS,
};
+296
View File
@@ -0,0 +1,296 @@
'use strict';
const bookmarks = require('../renderer/shared/bookmarks.js');
const { validateRequest } = require('./ipc-validate');
const { ConnectionManager } = require('./connections');
/**
* Bookmark passwords and bookmark connects, resolved only in main.
*
* Passwords are sealed with Electron's synchronous safeStorage (Windows DPAPI, macOS Keychain, Linux
* libsecret/KWallet) and stored as opaque base64 in the bookmark (`server_password_encrypted`,
* `channel_password_encrypted`). The sealed plaintext is an envelope binding the format version, the purpose
* (server/channel) and the exact trimmed address, so ciphertext moved to another field or address never
* decrypts into a connect. There is no plaintext fallback: Linux `basic_text` (a hardcoded key) and an
* undetermined backend are refused, and nothing here ever enables safeStorage plain-text encryption.
*
* The renderer never receives plaintext except from an explicit `bookmarks:password-reveal`. Generic
* `prefs:set` writes pass through `protectPrefsPatch`, which keeps the current ciphertext of an unchanged
* bookmark whatever stale copy the renderer sends, drops it on an address change and accepts it on a new
* bookmark only as an exact copy of a same-address bookmark (explicit duplication).
*/
const ENVELOPE_VERSION = 1;
const FIELDS = Object.freeze({ server: 'server_password_encrypted', channel: 'channel_password_encrypted' });
const PASSWORD_MAX = 255;
const CONTROL = /[\u0000-\u001f\u007f]/;
// Backends whose key lives in the OS keyring; `basic_text` uses Chromium's hardcoded key and `unknown` means the
// backend is not determined (for example before app ready).
const LINUX_KEYRING_BACKENDS = new Set(['gnome_libsecret', 'kwallet', 'kwallet5', 'kwallet6']);
// Chromium OSCrypt on Linux prefixes data sealed with its hardcoded fallback key `v10` (keyring key: `v11`).
const LINUX_HARDCODED_KEY_PREFIX = 'v10';
const MESSAGE_MAX = 200;
class BookmarkError extends Error {
constructor(code, message) {
super(message);
this.code = code;
}
}
const fail = (code, message) => ({ ok: false, error: { code, message } });
const isRecord = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
const sameAddress = (a, b) => typeof a === 'string' && typeof b === 'string' && a.trim() === b.trim();
const validAddress = (value) => typeof value === 'string' && value.length <= bookmarks.ADDRESS_MAX && value.trim().length > 0 && !CONTROL.test(value);
// Same bound as the connect validator's server_password/channel_password (ipc-validate.js).
const validPassword = (value) => typeof value === 'string' && value.length <= PASSWORD_MAX && !CONTROL.test(value);
const validBookmarkId = (value) => typeof value === 'string' && bookmarks.ID.test(value);
/** Bounded, non-secret failure for any thrown error; unknown errors never echo their message. */
function failure(error) {
if (error instanceof BookmarkError) return fail(error.code, error.message);
const message = typeof error?.message === 'string' ? error.message : '';
// ipc-validate.js ValidationError and Prefs/bookmark validation name keys and rules, never values.
if (error?.code === 'bad_request' || /^(prefs|bookmarks): /.test(message)) return fail('bad_request', message.slice(0, MESSAGE_MAX));
// Node file errors (Prefs.set persisting) carry paths; report only that saving failed.
if (typeof error?.code === 'string' && /^E[A-Z]+$/.test(error.code)) return fail('io', 'The bookmark could not be saved');
return fail('internal', 'The bookmark request failed');
}
/**
* @param {object} o
* @param {Electron.IpcMain} o.ipcMain
* @param {(event) => boolean} o.trustedSender application top frame check
* @param {{ get(): object, set(partial: object): object }} o.prefs the main Prefs instance
* @param {Electron.SafeStorage} o.safeStorage
* @param {NodeJS.Platform} o.platform
* @param {(id: string) => ({ state: string, session: number, core: object | null } | null)} o.getConnection
* @param {(id: string, cmd: string, args?: object) => Promise<object>} o.request core request on one connection
* @param {boolean} o.testOffscreen hidden test runs never dispatch a bookmark connect
* @returns {{ protectPrefsPatch(partial: unknown): unknown }}
*/
function registerBookmarkIpc({ ipcMain, trustedSender, prefs, safeStorage, platform, getConnection, request, testOffscreen }) {
let startupIssued = false;
/**
* Whether OS-backed encryption can be used. `touch: false` (status display) avoids opening the macOS Keychain
* or the Linux keyring, which can block on a user prompt; saving, revealing and connecting check for real.
*/
function storageStatus({ touch }) {
// DPAPI never prompts; Keychain and keyring prompts would be visible in a hidden test run.
if (testOffscreen && platform !== 'win32') return { available: false, reason: 'test_mode' };
if (platform === 'linux') {
let backend = 'unknown';
try { backend = safeStorage.getSelectedStorageBackend(); } catch { /* treated as unknown */ }
if (!LINUX_KEYRING_BACKENDS.has(backend)) return { available: false, reason: backend === 'basic_text' ? 'insecure_backend' : 'unknown_backend' };
} else if (platform !== 'win32' && platform !== 'darwin') {
return { available: false, reason: 'unsupported_platform' };
}
if (!touch && platform !== 'win32') return { available: true };
let available = false;
try { available = safeStorage.isEncryptionAvailable() === true; } catch { /* unavailable */ }
return available ? { available: true } : { available: false, reason: 'unavailable' };
}
function requireStorage() {
const status = storageStatus({ touch: true });
if (!status.available) throw new BookmarkError('storage_unavailable', `Secure password storage is unavailable (${status.reason})`);
}
const hardcodedKey = (sealed) => platform === 'linux' && sealed.subarray(0, LINUX_HARDCODED_KEY_PREFIX.length).toString('latin1') === LINUX_HARDCODED_KEY_PREFIX;
function seal(kind, address, secret) {
requireStorage();
let sealed;
try { sealed = safeStorage.encryptString(JSON.stringify({ v: ENVELOPE_VERSION, purpose: kind, address, secret })); } catch { sealed = null; }
if (!Buffer.isBuffer(sealed) || sealed.length === 0 || hardcodedKey(sealed)) throw new BookmarkError('encryption_failed', 'The operating system could not encrypt the password');
const text = sealed.toString('base64');
if (!bookmarks.validSecret(text)) throw new BookmarkError('too_long', 'The encrypted password is too long to store');
return text;
}
/** Decrypts one stored field for `kind` at `address`; any doubt is an error, never an empty password. */
function open(text, kind, address) {
const unreadable = new BookmarkError('password_unreadable', `The saved ${kind} password cannot be decrypted; save it again`);
if (!bookmarks.validSecret(text)) throw unreadable;
const sealed = Buffer.from(text, 'base64');
if (sealed.toString('base64') !== text || hardcodedKey(sealed)) throw unreadable;
requireStorage();
let envelope;
try { envelope = JSON.parse(safeStorage.decryptString(sealed)); } catch { throw unreadable; }
if (!isRecord(envelope) || Object.keys(envelope).length !== 4 || envelope.v !== ENVELOPE_VERSION || !validPassword(envelope.secret) || envelope.secret === '') throw unreadable;
if (envelope.purpose !== kind || envelope.address !== address) {
throw new BookmarkError('password_mismatch', `The saved ${kind} password does not belong to this bookmark address; save it again`);
}
return envelope.secret;
}
const find = (id) => prefs.get().savedServers.find((server) => server.id === id) ?? null;
/** The bookmark `id`, still at `expectedAddress` (exact after trimming). */
function target(id, expectedAddress) {
const bookmark = find(id);
if (!bookmark) throw new BookmarkError('not_found', 'The bookmark no longer exists');
if (!sameAddress(bookmark.address, expectedAddress)) throw new BookmarkError('address_changed', 'The bookmark address changed; review it and try again');
return bookmark;
}
function passwordArgs(id, expectedAddress, kind) {
if (!validBookmarkId(id)) throw new BookmarkError('bad_request', 'Invalid bookmark');
if (!validAddress(expectedAddress)) throw new BookmarkError('bad_request', 'Invalid bookmark address');
if (typeof kind !== 'string' || !Object.hasOwn(FIELDS, kind)) throw new BookmarkError('bad_request', 'Invalid password kind');
}
/** Connect arguments for the stored bookmark, decrypted here and checked like a renderer connect. */
function connectArgs(bookmark) {
const address = bookmark.address.trim();
const args = { address };
if (bookmark.identity_id !== undefined) args.identity_id = bookmark.identity_id;
if (bookmark.nickname !== undefined) args.nickname = bookmark.nickname;
if (bookmark.channel !== undefined) args.channel = bookmark.channel;
if (bookmark[FIELDS.server] !== undefined) args.server_password = open(bookmark[FIELDS.server], 'server', address);
if (bookmark[FIELDS.channel] !== undefined) args.channel_password = open(bookmark[FIELDS.channel], 'channel', address);
return validateRequest('connect', args);
}
// Everything a connect is derived from; a difference after an await means the target changed.
const connectSource = (bookmark) => JSON.stringify([bookmark.address, bookmark.identity_id, bookmark.nickname, bookmark.channel,
bookmark.auto_connect, bookmark.auto_connect_muted, bookmark[FIELDS.server], bookmark[FIELDS.channel]]);
const handle = (channel, fn) => ipcMain.handle(channel, async (event, ...args) => {
if (!trustedSender(event)) return fail('forbidden', 'forbidden');
try { return await fn(event, ...args); } catch (error) { return failure(error); }
});
handle('bookmarks:password-state', (_event, id) => {
if (!validBookmarkId(id)) throw new BookmarkError('bad_request', 'Invalid bookmark');
const bookmark = find(id);
if (!bookmark) throw new BookmarkError('not_found', 'The bookmark no longer exists');
const status = storageStatus({ touch: false });
return {
ok: true,
available: status.available,
serverPasswordSaved: bookmark[FIELDS.server] !== undefined,
channelPasswordSaved: bookmark[FIELDS.channel] !== undefined,
...(status.reason ? { reason: status.reason } : {}),
};
});
handle('bookmarks:password-set', (event, id, expectedAddress, kind, value) => {
passwordArgs(id, expectedAddress, kind);
if (!validPassword(value)) throw new BookmarkError('bad_request', `The ${kind} password must be at most ${PASSWORD_MAX} characters without control characters`);
const field = FIELDS[kind];
const original = target(id, expectedAddress);
const address = original.address.trim();
const previous = original[field];
// Encryption may block on an OS prompt; the write below starts again from the current prefs.
const sealed = value === '' ? null : seal(kind, address, value);
if (!trustedSender(event)) throw new BookmarkError('forbidden', 'forbidden');
const current = target(id, expectedAddress);
if (current[field] !== previous) throw new BookmarkError('password_changed', 'The saved password changed; review it and try again');
if (sealed === null && current[field] === undefined) return { ok: true, prefs: prefs.get() };
const savedServers = prefs.get().savedServers.map((server) => {
if (server.id !== id) return server;
const next = { ...server };
if (sealed === null) delete next[field];
else next[field] = sealed;
return next;
});
return { ok: true, prefs: prefs.set({ savedServers }) };
});
handle('bookmarks:password-reveal', (event, id, expectedAddress, kind) => {
passwordArgs(id, expectedAddress, kind);
const bookmark = target(id, expectedAddress);
const stored = bookmark[FIELDS[kind]];
if (stored === undefined) throw new BookmarkError('not_saved', `No ${kind} password is saved for this bookmark`);
const value = open(stored, kind, bookmark.address.trim());
if (!trustedSender(event)) throw new BookmarkError('forbidden', 'forbidden');
if (target(id, expectedAddress)[FIELDS[kind]] !== stored) throw new BookmarkError('password_changed', 'The saved password changed; try again');
return { ok: true, value };
});
handle('bookmarks:connect', async (event, connectionId, bookmarkId, startup = false) => {
if (!ConnectionManager.validId(connectionId)) throw new BookmarkError('bad_request', 'Invalid server connection');
if (!validBookmarkId(bookmarkId)) throw new BookmarkError('bad_request', 'Invalid bookmark');
if (typeof startup !== 'boolean') throw new BookmarkError('bad_request', 'Invalid startup flag');
const resolve = () => {
const bookmark = find(bookmarkId);
if (!bookmark) throw new BookmarkError('not_found', 'The bookmark no longer exists');
if (startup && bookmark.auto_connect !== true) throw new BookmarkError('not_startup', 'The bookmark no longer connects at startup');
return bookmark;
};
const bookmark = resolve();
const source = connectSource(bookmark);
const entry = getConnection(connectionId);
if (!entry) throw new BookmarkError('connection_closed', 'The server connection is no longer available');
if (!entry.core) throw new BookmarkError('core_unavailable', 'The core is not running');
if (entry.state !== 'disconnected') throw new BookmarkError('already_connected', 'The server tab is already connected');
const { session, core } = entry;
const unchanged = () => getConnection(connectionId) === entry && entry.session === session && entry.core === core && entry.state === 'disconnected';
// A keyring prompt may outlive the original window, bookmark or connection grant.
const args = connectArgs(bookmark);
if (!trustedSender(event)) throw new BookmarkError('forbidden', 'forbidden');
if (!unchanged()) throw new BookmarkError('connection_changed', 'The server connection changed before connecting');
if (connectSource(resolve()) !== source) throw new BookmarkError('bookmark_changed', 'The bookmark changed before connecting; try again');
if (testOffscreen) throw new BookmarkError('test_safety', 'Real server connections are disabled in offscreen tests');
// Official Connect(bookmark, autoconnect): connect_muted only on an automatic connect, and only the input
// (initialClientSelfProperties.inputMuted). Unmuted bookmarks leave the current mute state alone.
if (startup && bookmark.auto_connect_muted === true) {
const muted = await request(connectionId, 'set_audio', { input_muted: true });
if (!trustedSender(event)) throw new BookmarkError('forbidden', 'forbidden');
if (muted?.ok !== true) return isRecord(muted?.error) ? muted : fail('mute_failed', 'The microphone could not be muted before connecting');
if (!unchanged()) throw new BookmarkError('connection_changed', 'The server connection changed before connecting');
if (connectSource(resolve()) !== source) throw new BookmarkError('bookmark_changed', 'The bookmark changed before connecting; try again');
}
return request(connectionId, 'connect', args);
});
handle('bookmarks:startup', () => {
if (testOffscreen || startupIssued) return { ok: true, bookmarks: [] };
const list = bookmarks.allBookmarks(prefs.get())
.filter((bookmark) => bookmark.auto_connect === true)
.map((bookmark) => ({
id: bookmark.id,
address: bookmark.address,
...(bookmark.identity_id !== undefined ? { identity_id: bookmark.identity_id } : {}),
...(bookmark.nickname !== undefined ? { nickname: bookmark.nickname } : {}),
...(bookmark.channel !== undefined ? { channel: bookmark.channel } : {}),
}));
startupIssued = true;
return { ok: true, bookmarks: list };
});
/**
* Generic renderer prefs writes: call immediately before `prefs.set(partial)` with no await between, so both see
* the same stored bookmarks. Returns the partial with protected fields taken from the store, or throws.
*/
function protectPrefsPatch(partial) {
if (!isRecord(partial) || !Object.hasOwn(partial, 'savedServers') || !Array.isArray(partial.savedServers)) return partial;
const current = prefs.get().savedServers;
const byId = new Map(current.map((server) => [server.id, server]));
const savedServers = partial.savedServers.map((incoming) => {
if (!isRecord(incoming)) return incoming; // the prefs validator rejects it
const next = { ...incoming };
for (const field of bookmarks.SECRET_KEYS) delete next[field];
const existing = typeof incoming.id === 'string' ? byId.get(incoming.id) : undefined;
if (existing) {
if (sameAddress(incoming.address, existing.address)) {
for (const field of bookmarks.SECRET_KEYS) if (existing[field] !== undefined) next[field] = existing[field];
}
return next;
}
for (const field of bookmarks.SECRET_KEYS) {
if (incoming[field] === undefined) continue;
const copied = typeof incoming[field] === 'string' && current.some((server) => server[field] === incoming[field] && sameAddress(server.address, incoming.address));
if (!copied) throw new Error(`prefs: ${field} can only be copied from a bookmark with the same address`);
next[field] = incoming[field];
}
return next;
});
return { ...partial, savedServers };
}
return { protectPrefsPatch };
}
module.exports = { registerBookmarkIpc };
+194
View File
@@ -0,0 +1,194 @@
'use strict';
const os = require('node:os');
const { normalizeOrigin } = require('./permissions');
// Electron 44.9.3: session.setDisplayMediaRequestHandler and desktopCapturer.
// restrictOwnAudio is mapped to kLoopbackWithoutChromeId in electron_browser_context.cc.
// Capability means a real API path exists, not that OS consent/drivers/portals were verified.
function captureCapabilities({ platform = process.platform, release = os.release(), env = process.env } = {}) {
const minor = Number(release.split('.')[1]);
const major = Number(release.split('.')[0]);
const build = Number(release.split('.')[2]);
const wayland = platform === 'linux' && (env.XDG_SESSION_TYPE === 'wayland' || Boolean(env.WAYLAND_DISPLAY));
const mac = platform === 'darwin';
const windows = platform === 'win32';
const supported = windows || mac || platform === 'linux';
const systemAudio = windows || (mac && major >= 22);
const excludeSelf = (windows && build >= 20348) || (mac && (major > 23 || (major === 23 && minor >= 2)));
return {
platform, backend: windows ? 'windows-desktop-capturer' : mac ? 'macos-screencapturekit' : wayland ? 'pipewire-portal' : platform === 'linux' ? 'x11-desktop-capturer' : 'unsupported',
supported, sourceTypes: supported ? ['window', 'screen', 'camera'] : [],
nativePicker: mac && major >= 24, portal: wayland,
audio: {
system: { supported: systemAudio, reason: systemAudio ? 'OS consent and a working loopback device are required.' : 'Electron does not expose Linux desktop audio through its supported display-capture API.' },
applications: { supported: false, reason: 'Electron 44 has no supported arbitrary process-audio selection API. A platform-native audio helper is required; system audio is never substituted.' },
excludeSelf: { supported: excludeSelf, verified: false, reason: excludeSelf ? 'Chromium restrictOwnAudio requests exclusion of this application; actual isolation requires platform audio verification.' : 'Self-audio exclusion requires Windows build 20348+ or the macOS CoreAudio tap path (macOS 14.2+).' },
},
requirements: wayland
? ['PipeWire and an active xdg-desktop-portal ScreenCast backend are required.', 'GNOME/KDE use their matching portal; Hyprland uses its portal; niri uses the GNOME portal. wlroots monitor/window choices depend on installed backend and compositor protocols.', 'The portal owns source selection. No fallback to X11 or a whole monitor is performed.']
: mac ? ['Screen Recording consent is required. macOS 15+ uses the native system picker.', 'Audio capture on macOS 14.2+ requires NSAudioCaptureUsageDescription in the running application bundle.']
: windows ? ['Protected, minimized, elevated or hardware-accelerated windows may not be capturable.'] : ['An accessible X11 session is required; window-manager and GPU behavior are not guaranteed.'],
};
}
function failure(code, message) { return { ok: false, error: { code, message } }; }
function validOptions(options, keys) {
return options !== null && typeof options === 'object' && !Array.isArray(options) && Object.keys(options).every(key => keys.includes(key));
}
class CaptureController {
constructor({ desktopCapturer, getWindow, appOrigin, platform, release, env, now = Date.now, onSelected = () => ({}), onCaptureGranted = () => {} }) {
this.desktopCapturer = desktopCapturer;
this.getWindow = getWindow;
this.appOrigin = appOrigin;
this.capabilities = captureCapabilities({ platform, release, env });
this.now = now;
this.onSelected = onSelected;
this.onCaptureGranted = onCaptureGranted;
this.sources = new Map();
this.selection = null;
this.generation = 0;
this.timer = null;
this.boundContents = new WeakSet();
}
trustedFrame(frame) {
const win = this.getWindow();
return Boolean(win && !win.isDestroyed() && frame && frame === win.webContents.mainFrame && normalizeOrigin(frame.url) === this.appOrigin);
}
bindWindow() {
const win = this.getWindow();
if (!win || win.isDestroyed() || this.boundContents.has(win.webContents)) return;
this.boundContents.add(win.webContents);
win.webContents.on('did-start-navigation', (_event, _url, _inPlace, isMainFrame) => { if (isMainFrame) this.cancel(); });
win.webContents.on('render-process-gone', () => this.cancel());
win.webContents.on('destroyed', () => this.cancel());
}
cancel() {
this.generation++;
this.selection = null;
this.sources.clear();
clearTimeout(this.timer);
this.timer = null;
return { ok: true };
}
async listSources(options = {}) {
this.bindWindow();
this.cancel();
if (!validOptions(options, ['types'])) return failure('invalid_capture_options', 'Invalid source chooser options.');
if (!this.capabilities.supported) return failure('capture_unsupported', 'This operating system has no supported display capture backend.');
const types = options.types ?? ['window', 'screen'];
if (!Array.isArray(types) || !types.length || types.length > 2 || types.some(t => t !== 'window' && t !== 'screen')) return failure('invalid_capture_options', 'Choose window and/or screen sources.');
if (this.capabilities.nativePicker || this.capabilities.portal) return { ok: true, capabilities: this.capabilities, sources: [{ id: 'native-picker', name: this.capabilities.portal ? 'Choose in the desktop portal' : 'Choose in the macOS system picker', kind: 'native', thumbnail: '', appIcon: '' }] };
const generation = this.generation;
try {
// No thumbnails: enumerating private windows must not capture their pixels.
// A preview starts only after selecting that source and clicking Preview.
const sources = await this.desktopCapturer.getSources({ types, thumbnailSize: { width: 0, height: 0 }, fetchWindowIcons: true });
if (generation !== this.generation) return failure('capture_cancelled', 'Source selection was cancelled.');
const result = sources.map(source => {
this.sources.set(source.id, { id: source.id, name: source.name });
return { id: source.id, name: source.name, kind: this.capabilities.portal ? 'portal' : source.id.startsWith('window:') ? 'window' : 'screen', thumbnail: '', appIcon: source.appIcon?.toDataURL() ?? '' };
});
return { ok: true, sources: result, capabilities: this.capabilities };
} catch (error) {
return failure(this.capabilities.portal ? 'portal_unavailable_or_cancelled' : 'source_enumeration_failed', this.capabilities.portal ? `The ScreenCast portal did not provide a source. Check PipeWire, the desktop portal backend, and chooser consent. ${error.message}` : `Unable to enumerate display sources: ${error.message}`);
}
}
select(options = {}) {
if (!this.capabilities.supported) return failure('capture_unsupported', 'This operating system has no supported capture backend.');
this.bindWindow();
this.generation++;
this.selection = null;
clearTimeout(this.timer);
if (!validOptions(options, ['sourceId', 'audioMode', 'excludeSelf'])) return failure('invalid_capture_options', 'Invalid capture selection options.');
const { sourceId, audioMode = 'none', excludeSelf = true } = options;
if (typeof sourceId !== 'string' || sourceId.length > 2048) return failure('invalid_capture_source', 'Select a source from the chooser.');
if (typeof excludeSelf !== 'boolean') return failure('invalid_capture_options', 'Audio exclusion must be a boolean.');
const camera = sourceId.startsWith('camera:') && sourceId.length > 7;
const native = this.capabilities.nativePicker && sourceId === 'native-picker';
const portal = this.capabilities.portal && sourceId === 'native-picker';
const source = this.sources.get(sourceId);
if (!camera && !native && !portal && !source) return failure('capture_source_expired', 'Select the source again; stale or arbitrary source IDs cannot be captured.');
if (audioMode !== 'none' && audioMode !== 'system') return failure('application_audio_unavailable', this.capabilities.audio.applications.reason);
if (camera && audioMode !== 'none') return failure('camera_audio_unavailable', 'Camera preview does not capture microphone or system audio.');
if (audioMode === 'system' && !this.capabilities.audio.system.supported) return failure('system_audio_unavailable', this.capabilities.audio.system.reason);
if (audioMode === 'system' && excludeSelf && !this.capabilities.audio.excludeSelf.supported) return failure('audio_exclusion_unavailable', this.capabilities.audio.excludeSelf.reason);
const win = this.getWindow();
if (!win || win.isDestroyed() || !this.trustedFrame(win.webContents.mainFrame)) return failure('forbidden', 'Capture is restricted to the application top frame.');
const expiresAt = this.now() + 15000;
// Camera device IDs are opaque renderer-origin IDs. Electron's permission
// request supplies mediaTypes, not deviceId; exact binding is enforced by
// the renderer's observed enumeration + exact getUserMedia constraint.
this.selection = { source, sourceId, native, portal, camera, audioMode, excludeSelf, expiresAt, frame: win.webContents.mainFrame, permissionUsed: false };
let session;
try { session = this.onSelected(this.selection); } catch (error) { this.cancel(); return failure('capture_authorization_failed', error.message); }
this.timer = setTimeout(() => this.cancel(), 15000);
this.timer.unref?.();
return { ok: true, expiresAt, audio: audioMode === 'system', excludeSelf: audioMode === 'system' && excludeSelf, camera, appAudioSessionId: session?.appAudioSessionId };
}
permissionRequestAllowed(webContents, permission, details) {
const selection = this.selection;
const win = this.getWindow();
if (!selection || selection.permissionUsed || selection.expiresAt < this.now() || !win || win.isDestroyed() || webContents !== win.webContents || !this.trustedFrame(selection.frame)) return false;
if (permission !== 'media' || !details || normalizeOrigin(details.requestingUrl) !== this.appOrigin || details.isMainFrame !== true) return false;
const types = details.mediaTypes;
if (!Array.isArray(types) || (selection.camera ? types.length !== 1 || types[0] !== 'video' : types.length !== 0)) return false;
selection.permissionUsed = true;
if (selection.camera || selection.native) {
clearTimeout(this.timer);
this.timer = null;
try { this.onCaptureGranted(selection); } catch { this.cancel(); return false; }
}
return true;
}
install(session) {
session.setDisplayMediaRequestHandler(async (request, callback) => {
const selection = this.selection;
const allow = selection && !selection.camera && selection.permissionUsed && selection.expiresAt >= this.now() && this.trustedFrame(request.frame) && request.frame === selection.frame && normalizeOrigin(request.securityOrigin) === this.appOrigin && request.userGesture && request.videoRequested && request.audioRequested === (selection.audioMode === 'system');
// Consume before any await. A portal is opened inside this gesture-bound
// display request, not while enumerating cards or after user activation expires.
this.cancel();
if (!allow || selection.native) { callback(null); return; }
const generation = this.generation;
try {
let source = selection.source;
if (selection.portal) {
const sources = await this.desktopCapturer.getSources({ types: ['window', 'screen'], thumbnailSize: { width: 0, height: 0 }, fetchWindowIcons: false });
if (sources.length !== 1 || generation !== this.generation || !this.trustedFrame(request.frame)) { callback(null); return; }
source = { id: sources[0].id, name: sources[0].name };
}
this.onCaptureGranted(selection);
callback({ video: source, ...(selection.audioMode === 'system' ? { audio: 'loopback' } : {}) });
} catch { callback(null); }
}, { useSystemPicker: this.capabilities.nativePicker });
}
registerIpc(ipcMain, trustedSender) {
const handle = (channel, fn) => ipcMain.handle(channel, (event, options) => trustedSender(event) && this.trustedFrame(event.senderFrame) ? fn(options, event) : failure('forbidden', 'Capture is restricted to the application top frame.'));
handle('capture:capabilities', () => this.capabilities);
handle('capture:sources', options => this.listSources(options));
handle('capture:select', async (options, event) => {
// Read Chromium's real activation state, never execute with userGesture=true.
// Camera getUserMedia does not itself require a gesture, so this check is
// required in addition to the display handler's request.userGesture gate.
const generation = this.generation;
try {
const active = await event.sender.executeJavaScriptInIsolatedWorld(1001, [{ code: 'navigator.userActivation.isActive' }]);
if (generation !== this.generation) return failure('capture_cancelled', 'Capture selection was cancelled.');
if (active !== true || !this.trustedFrame(event.senderFrame)) return failure('capture_gesture_required', 'Click Preview to authorize capture.');
return this.select(options);
} catch { return failure('capture_cancelled', 'The capture frame closed or navigated.'); }
});
handle('capture:cancel', () => this.cancel());
}
}
module.exports = { CaptureController, captureCapabilities };
+395
View File
@@ -0,0 +1,395 @@
'use strict';
// Account-free local chat history, external-link opening and the unread badge.
// The official client keeps legacy server text chat per identity × server × conversation and loads
// it in pages (`saveChatMessage` / `getChatMessages`, installed main.js col 2147052 / 2139200).
// The renderer never names a path: it sends a validated scope; the directory is derived from hashes.
const fs = require('node:fs');
const path = require('node:path');
const crypto = require('node:crypto');
const STORE_DIR = 'v1';
const STORE_VERSION = 1;
const CHUNK_LINES = 128;
const MAX_PAGE = 200;
const MAX_TEXT_LENGTH = 32768;
const MAX_NAME_LENGTH = 128;
const MAX_LIST = 200;
const CONTROL = /[\u0000-\u001f\u007f]/;
const UID = /^[A-Za-z0-9+/=_-]{1,128}$/;
const EXTERNAL_PROTOCOLS = new Set(['http:', 'https:', 'mailto:']);
class ValidationError extends Error {
constructor(message) {
super(message);
this.code = 'bad_request';
}
}
function validBase(base) {
if (!base || typeof base !== 'object') throw new ValidationError('scope must be an object');
const { identity, server } = base;
if (typeof identity !== 'string' || !UID.test(identity)) throw new ValidationError('identity must be a client uid');
if (typeof server !== 'string' || server.length < 1 || server.length > 256 || CONTROL.test(server)) throw new ValidationError('server must be a server uid');
return { identity, server };
}
function validScope(scope) {
const base = validBase(scope);
const { kind, key } = scope;
if (kind === 'channel') {
if (typeof key !== 'string' || !/^[1-9][0-9]{0,9}$/.test(key)) throw new ValidationError('channel key must be a channel id');
} else if (kind === 'server') {
if (key !== 'server') throw new ValidationError('server key must be "server"');
} else if (kind === 'client') {
if (typeof key !== 'string' || !UID.test(key)) throw new ValidationError('client key must be a client uid');
} else {
throw new ValidationError('kind must be channel, server or client');
}
return { ...base, kind, key };
}
function validName(value, field) {
if (typeof value !== 'string' || value.length > MAX_NAME_LENGTH) throw new ValidationError(`${field} must be a string up to ${MAX_NAME_LENGTH} characters`);
return value.replace(/[\u0000-\u001f\u007f]/g, ' ');
}
function validRecord(record) {
if (!record || typeof record !== 'object') throw new ValidationError('record must be an object');
const { time, type, from_uid: fromUid, from_name: fromName, own, text } = record;
if (!Number.isSafeInteger(time) || time <= 0 || time > 8_640_000_000_000_000) throw new ValidationError('time must be valid epoch milliseconds');
if (type !== 'text' && type !== 'poke') throw new ValidationError('type must be text or poke');
if (fromUid !== null && (typeof fromUid !== 'string' || !UID.test(fromUid))) throw new ValidationError('from_uid must be a uid or null');
if (typeof own !== 'boolean') throw new ValidationError('own must be boolean');
if (typeof text !== 'string' || text.length > MAX_TEXT_LENGTH) throw new ValidationError(`text must be a string up to ${MAX_TEXT_LENGTH} characters`);
return { t: time, y: type, u: fromUid, n: validName(fromName, 'from_name'), o: own, m: text };
}
function hash(value) {
return crypto.createHash('sha256').update(value, 'utf8').digest('hex').slice(0, 32);
}
function chunkName(index) {
return `${String(index).padStart(6, '0')}.jsonl`;
}
function decodeLine(line) {
try {
const r = JSON.parse(line);
if (!r || typeof r !== 'object') return null;
const record = { time: r.t, type: r.y, from_uid: r.u, from_name: r.n, own: r.o, text: r.m };
validRecord(record);
return record;
} catch {
return null;
}
}
async function writeAtomic(file, data) {
const tmp = `${file}.${process.pid}.${crypto.randomBytes(4).toString('hex')}.tmp`;
const fh = await fs.promises.open(tmp, 'w', 0o600);
try {
await fh.writeFile(data);
await fh.sync();
} finally {
await fh.close();
}
await fs.promises.rename(tmp, file);
}
/**
* One directory per conversation: `meta.json` plus append-only chunk files of CHUNK_LINES JSON lines.
* A message's numeric index is its line position, so page reads touch at most two chunks.
*/
class ChatHistoryStore {
constructor(baseDir) {
this.root = path.join(baseDir, STORE_DIR);
this.conversations = new Map();
this.opening = new Map();
}
serverDir(base) {
return path.join(this.root, hash(base.identity), hash(base.server));
}
conversationDir(scope) {
return path.join(this.serverDir(scope), `${scope.kind}-${hash(scope.key)}`);
}
/** Opens (and repairs) a conversation once per process; later calls reuse the cached counters. */
async open(scope, create) {
const dir = this.conversationDir(scope);
let conv = this.conversations.get(dir);
if (conv) return conv;
const pending = this.opening.get(dir);
if (pending) {
conv = await pending;
return conv || (create ? this.open(scope, true) : null);
}
const operation = this.openConversation(scope, create);
this.opening.set(dir, operation);
try { return await operation; }
finally { this.opening.delete(dir); }
}
async openConversation(scope, create) {
const dir = this.conversationDir(scope);
let meta = null;
try {
meta = JSON.parse(await fs.promises.readFile(path.join(dir, 'meta.json'), 'utf8'));
} catch (err) {
if (err.code !== 'ENOENT' && !(err instanceof SyntaxError)) throw err;
}
if (meta && meta.version !== STORE_VERSION) {
const e = new Error(`Chat history format ${meta.version} is not supported by this version`);
e.code = 'unsupported_version';
throw e;
}
if (meta && (meta.identity !== scope.identity || meta.server !== scope.server || meta.kind !== scope.kind || meta.key !== scope.key)) {
// A hash collision or a hand-edited file: never mix two conversations.
const e = new Error('Chat history directory belongs to another conversation');
e.code = 'conflict';
throw e;
}
if (!meta && !create) {
try {
await fs.promises.access(dir);
} catch {
return null;
}
}
const loaded = Boolean(meta);
if (!meta) meta = { version: STORE_VERSION, identity: scope.identity, server: scope.server, kind: scope.kind, key: scope.key, label: '', open: false, created: Date.now() };
const conv = { dir, meta, chunks: 0, lastLines: 0, lastTime: 0, queue: Promise.resolve(), metaWritten: loaded };
await this.scan(conv);
this.conversations.set(dir, conv);
return conv;
}
async scan(conv) {
let names;
try {
names = await fs.promises.readdir(conv.dir);
} catch (err) {
if (err.code === 'ENOENT') return;
throw err;
}
const indices = names.map((n) => /^(\d{6})\.jsonl$/.exec(n)).filter(Boolean).map((m) => Number(m[1])).sort((a, b) => a - b);
if (indices.length === 0) return;
const last = indices[indices.length - 1];
const file = path.join(conv.dir, chunkName(last));
const buf = await fs.promises.readFile(file);
// An interrupted append leaves a line without its newline; cut it so the next append starts clean.
const end = buf.lastIndexOf(0x0a) + 1;
if (end !== buf.length) await fs.promises.truncate(file, end);
const text = buf.subarray(0, end).toString('utf8');
const lines = end === 0 ? 0 : text.split('\n').length - 1;
conv.chunks = last + 1;
conv.lastLines = lines;
const lastLine = text.slice(text.lastIndexOf('\n', text.length - 2) + 1, -1);
conv.lastTime = (lastLine && decodeLine(lastLine)?.time) || 0;
}
total(conv) {
return conv.chunks === 0 ? 0 : (conv.chunks - 1) * CHUNK_LINES + conv.lastLines;
}
async writeMeta(conv) {
await fs.promises.mkdir(conv.dir, { recursive: true, mode: 0o700 });
await writeAtomic(path.join(conv.dir, 'meta.json'), JSON.stringify(conv.meta));
conv.metaWritten = true;
}
serialize(conv, task) {
const run = conv.queue.then(task, task);
conv.queue = run.catch(() => {});
return run;
}
async append(rawScope, rawRecord, rawLabel) {
const scope = validScope(rawScope);
const line = `${JSON.stringify(validRecord(rawRecord))}\n`;
const label = rawLabel == null ? null : validName(rawLabel, 'label');
const conv = await this.open(scope, true);
return this.serialize(conv, async () => {
const rollover = conv.chunks === 0 || conv.lastLines >= CHUNK_LINES;
const chunk = rollover ? conv.chunks : conv.chunks - 1;
if (!conv.metaWritten || (label !== null && conv.meta.label !== label)) {
if (label !== null) conv.meta.label = label;
await this.writeMeta(conv);
}
const fh = await fs.promises.open(path.join(conv.dir, chunkName(chunk)), 'a', 0o600);
try {
await fh.write(line);
await fh.datasync();
} finally {
await fh.close();
}
if (rollover) {
conv.chunks += 1;
conv.lastLines = 0;
}
conv.lastLines += 1;
conv.lastTime = rawRecord.time;
return { index: this.total(conv) - 1, total: this.total(conv) };
});
}
async page(rawScope, before, count) {
const scope = validScope(rawScope);
if (!Number.isSafeInteger(before) || before < -1) throw new ValidationError('before must be -1 or an index');
if (!Number.isSafeInteger(count) || count < 1 || count > MAX_PAGE) throw new ValidationError(`count must be 1..${MAX_PAGE}`);
const conv = await this.open(scope, false);
if (!conv) return { total: 0, messages: [] };
return this.serialize(conv, async () => {
const total = this.total(conv);
const end = before === -1 ? total : Math.min(before, total);
const start = Math.max(0, end - count);
const messages = [];
for (let chunk = Math.floor(start / CHUNK_LINES); start < end && chunk <= Math.floor((end - 1) / CHUNK_LINES); chunk += 1) {
let text;
try {
text = await fs.promises.readFile(path.join(conv.dir, chunkName(chunk)), 'utf8');
} catch (err) {
if (err.code === 'ENOENT') continue;
throw err;
}
const lines = text.split('\n');
for (let i = 0; i < lines.length - 1; i += 1) {
const index = chunk * CHUNK_LINES + i;
if (index < start || index >= end) continue;
const message = decodeLine(lines[i]);
// A damaged line keeps its index (so paging stays stable) but is not shown.
if (message) messages.push({ index, ...message });
}
}
return { total, start, messages };
});
}
async setOpen(rawScope, open, rawLabel) {
const scope = validScope(rawScope);
if (typeof open !== 'boolean') throw new ValidationError('open must be boolean');
const label = rawLabel == null ? null : validName(rawLabel, 'label');
const conv = await this.open(scope, open);
if (!conv) return { changed: false };
return this.serialize(conv, async () => {
const changed = conv.meta.open !== open || (label !== null && conv.meta.label !== label);
conv.meta.open = open;
if (label !== null) conv.meta.label = label;
if (changed || !conv.metaWritten) await this.writeMeta(conv);
return { changed };
});
}
async list(rawBase) {
const base = validBase(rawBase);
let names;
try {
names = await fs.promises.readdir(this.serverDir(base));
} catch (err) {
if (err.code === 'ENOENT') return { conversations: [] };
throw err;
}
const out = [];
for (const name of names) {
if (!/^(channel|server|client)-[0-9a-f]{32}$/.test(name)) continue;
let meta;
try {
meta = JSON.parse(await fs.promises.readFile(path.join(this.serverDir(base), name, 'meta.json'), 'utf8'));
} catch {
continue;
}
if (!meta || meta.version !== STORE_VERSION || meta.identity !== base.identity || meta.server !== base.server) continue;
let conv;
try {
conv = await this.open(validScope({ ...base, kind: meta.kind, key: meta.key }), false);
} catch {
continue;
}
if (!conv) continue;
const scope = conv.meta;
out.push({ kind: scope.kind, key: scope.key, label: typeof conv.meta.label === 'string' ? conv.meta.label : '', open: conv.meta.open === true, updated: conv.lastTime || Number(conv.meta.created) || 0, total: this.total(conv) });
}
out.sort((a, b) => b.updated - a.updated);
return { conversations: out.slice(0, MAX_LIST) };
}
}
function validExternalUrl(url) {
if (typeof url !== 'string' || url.length === 0 || url.length > 2048 || CONTROL.test(url)) throw new ValidationError('url must be a string up to 2048 characters');
let parsed;
try {
parsed = new URL(url);
} catch {
throw new ValidationError('url is not absolute');
}
if (!EXTERNAL_PROTOCOLS.has(parsed.protocol)) throw new ValidationError('only http, https and mailto links can be opened');
if (parsed.protocol !== 'mailto:' && !parsed.hostname) throw new ValidationError('url has no host');
if (parsed.username || parsed.password) throw new ValidationError('url credentials are not allowed');
return parsed.href;
}
const BADGE_PREFIX = 'data:image/png;base64,';
function wrap(fn) {
return async (...args) => {
try {
return { ok: true, ...(await fn(...args)) };
} catch (err) {
return { ok: false, error: { code: err.code || 'io', message: err.message } };
}
};
}
/**
* Registers chat IPC. `testOffscreen` runs never reach the OS shell or the taskbar: the requests are
* recorded on `globalThis` for the hidden smoke harness instead.
*/
function registerChatIpc(ipcMain, { trustedSender, getWindow, baseDir, testOffscreen, shell, nativeImage, app }) {
const store = new ChatHistoryStore(baseDir);
const guarded = (channel, fn) => {
const run = wrap(fn);
ipcMain.handle(channel, (event, ...args) => (trustedSender(event) ? run(...args) : { ok: false, error: { code: 'forbidden', message: 'forbidden' } }));
};
guarded('chat-history:append', (scope, record, label) => store.append(scope, record, label));
guarded('chat-history:page', (scope, before, count) => store.page(scope, before, count));
guarded('chat-history:list', (base) => store.list(base));
guarded('chat-history:set-open', (scope, open, label) => store.setOpen(scope, open, label));
guarded('link:open-external', async (url) => {
const href = validExternalUrl(url);
if (testOffscreen) {
(globalThis.__teamspeachOpenedExternal ??= []).push(href);
return { suppressed: true };
}
await shell.openExternal(href);
return {};
});
guarded('app:unread-badge', async (count, png) => {
if (!Number.isSafeInteger(count) || count < 0 || count > 1_000_000) throw new ValidationError('count must be a non-negative integer');
if (testOffscreen) {
globalThis.__teamspeachUnreadBadge = { count, png: typeof png === 'string' && png.startsWith(BADGE_PREFIX) };
return { suppressed: true, supported: false };
}
if (process.platform === 'win32') {
const win = getWindow();
if (!win || win.isDestroyed()) return { supported: false };
if (count === 0) {
win.setOverlayIcon(null, '');
return { supported: true };
}
if (typeof png !== 'string' || !png.startsWith(BADGE_PREFIX) || png.length > 32768) throw new ValidationError('badge must be a small PNG data URL');
const image = nativeImage.createFromDataURL(png);
const size = image.getSize();
if (image.isEmpty() || size.width > 64 || size.height > 64) throw new ValidationError('badge image must be at most 64×64');
win.setOverlayIcon(image, `${count} unread`);
return { supported: true };
}
if (process.platform === 'darwin' || process.platform === 'linux') return { supported: app.setBadgeCount(count) };
return { supported: false };
});
return store;
}
module.exports = { registerChatIpc, ChatHistoryStore, validScope, validRecord, validExternalUrl, CHUNK_LINES, MAX_PAGE };
+60
View File
@@ -0,0 +1,60 @@
'use strict';
/**
* Chat preferences that follow the official TS6 Settings > Chats page (client_ui/main.js settings component
* near offset 4873300; defaults from workflowSettings class `Xe` and appearanceSettings class `qe`).
*
* Official key → TeamsPeach key default
* appearanceSettings.chat_input_toolbar_visibility → chatToolbarVisibility 'always-visible'
* appearanceSettings.chat_mermaid_autoload_mode → chatMermaidAutoload 'only-simple'
* workflowSettings.openIncomingChats → chatOpenIncoming true
* appearanceSettings.chat_show_system_messages → chatShowModerationEvents true
* workflowSettings.use24hrTime → chatUse24hTime true
* workflowSettings.autoDownloadImages → autoDownloadImages false
* chat-server ignore list (per myTeamSpeak chat connection) → chatIgnoredUsers [] (local, keyed by client UID)
*
* Not modelled because TeamsPeach has no backing feature: useRichTextEditor (the composer is a plain
* textarea), autoAcceptIncomingDirectChats (TS6-server decentral chat invitations), useChatsHistory and
* sort_contacts_alphabetically / show_offline_contacts / group_offline_contacts (myTeamSpeak contacts and
* group chats).
*/
const MAX_IGNORED_USERS = 1000;
const MAX_NAME_LENGTH = 128;
// TeamSpeak client UIDs are base64 SHA-1 digests; ServerQuery clients use short ASCII ids such as "serveradmin".
const UID = /^[A-Za-z0-9+/]{1,126}={0,2}$/;
const CONTROL = /[\u0000-\u001f\u007f]/;
const isBool = (v) => typeof v === 'boolean';
const isPlainObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
function validUid(uid) {
return typeof uid === 'string' && uid.length <= 128 && UID.test(uid);
}
/** [{ uid, name }]: unique UIDs; `name` is the nickname seen when the user was ignored (display only). */
function validIgnoredUsers(list) {
if (!Array.isArray(list) || list.length > MAX_IGNORED_USERS) return false;
const seen = new Set();
for (const entry of list) {
if (!isPlainObject(entry)) return false;
const keys = Object.keys(entry);
if (keys.length !== 2 || !keys.includes('uid') || !keys.includes('name')) return false;
if (!validUid(entry.uid) || seen.has(entry.uid)) return false;
if (typeof entry.name !== 'string' || entry.name.length > MAX_NAME_LENGTH || CONTROL.test(entry.name)) return false;
seen.add(entry.uid);
}
return true;
}
const CHAT_SCHEMA = {
chatToolbarVisibility: { default: 'always-visible', check: (v) => v === 'inactive' || v === 'dynamic' || v === 'always-visible' },
chatMermaidAutoload: { default: 'only-simple', check: (v) => v === 'never' || v === 'only-simple' },
chatOpenIncoming: { default: true, check: isBool },
chatShowModerationEvents: { default: true, check: isBool },
chatUse24hTime: { default: true, check: isBool },
autoDownloadImages: { default: false, check: isBool },
chatIgnoredUsers: { default: [], check: validIgnoredUsers },
};
module.exports = { CHAT_SCHEMA, MAX_IGNORED_USERS, validUid };
+113
View File
@@ -0,0 +1,113 @@
'use strict';
const fs = require('node:fs');
const path = require('node:path');
/**
* Persisted local per-user volume modifiers (official TS6 `setClientVolumeModifier(sc, clid, dB, persist)`
* with persist=true when the fader is released or Reset is chosen). TS6 stores them natively; the key it
* uses is not visible. TeamsPeach keys them by the client's unique identity (base64 UID), so a person keeps
* their volume on every server and after reconnecting; numeric client ids are never used as keys.
* Mute is not persisted (session only), and 0 dB entries are removed.
*
* File `<userData>/client-volumes.json`: { schema, volumes: { <uid>: { db, updated } } }, at most
* MAX_ENTRIES (the least recently updated entry is dropped first). Invalid entries are dropped on load;
* writes are atomic (tmp + rename) and leave memory unchanged when they fail.
*
* Every core gets the whole map (`set_local_volumes replace:true`) whenever it becomes ready, and each
* change as an upsert, so all simultaneous connections play a person at the same modifier.
*/
const SCHEMA = 'teamspeach-client-volumes/1';
const MAX_ENTRIES = 4096;
const UID = /^[A-Za-z0-9+/]{1,126}={0,2}$/;
function validUid(uid) {
return typeof uid === 'string' && uid.length <= 128 && UID.test(uid);
}
function validDb(db) {
return typeof db === 'number' && Number.isFinite(db) && db >= -200 && db <= 10 && Number.isInteger(db * 2);
}
class ClientVolumes {
constructor(file) {
this.file = file;
/** @type {Map<string, {db: number, updated: number}>} */
this.volumes = new Map();
let raw = null;
try {
raw = JSON.parse(fs.readFileSync(file, 'utf8'));
} catch {
return; // first run or unreadable: empty
}
if (!raw || raw.schema !== SCHEMA || !raw.volumes || typeof raw.volumes !== 'object') return;
const entries = Object.entries(raw.volumes)
.filter(([uid, e]) => validUid(uid) && e && validDb(e.db) && e.db !== 0 && Number.isSafeInteger(e.updated) && e.updated >= 0)
.sort((a, b) => b[1].updated - a[1].updated)
.slice(0, MAX_ENTRIES);
for (const [uid, e] of entries) this.volumes.set(uid, { db: e.db, updated: e.updated });
}
get(uid) {
return this.volumes.get(uid)?.db ?? 0;
}
/** [{uid, db}] for `set_local_volumes`. */
list() {
return Array.from(this.volumes, ([uid, e]) => ({ uid, db: e.db }));
}
/** Stores (or with 0 dB removes) one modifier. Throws on invalid input or a failed write. */
set(uid, db, now = Date.now()) {
if (!validUid(uid)) throw new Error('client volume: invalid uid');
if (!validDb(db)) throw new Error('client volume: db must be -200..10 in 0.5 steps');
const next = new Map(this.volumes);
next.delete(uid);
if (db !== 0) next.set(uid, { db, updated: now });
while (next.size > MAX_ENTRIES) {
let oldest = null;
for (const [k, e] of next) if (oldest === null || e.updated < next.get(oldest).updated) oldest = k;
next.delete(oldest);
}
const body = { schema: SCHEMA, volumes: Object.fromEntries(next) };
fs.mkdirSync(path.dirname(this.file), { recursive: true });
const tmp = `${this.file}.tmp`;
fs.writeFileSync(tmp, JSON.stringify(body));
fs.renameSync(tmp, this.file);
this.volumes = next;
}
}
/**
* @param {object} o
* @param {Electron.IpcMain} o.ipcMain
* @param {(event) => boolean} o.trustedSender
* @param {import('./connections').ConnectionManager} o.connections
* @param {string} o.file
* @param {(level: string, msg: string) => void} [o.log]
*/
function registerClientVolumesIpc({ ipcMain, trustedSender, connections, file, log = () => {} }) {
const store = new ClientVolumes(file);
const push = (id, args) => connections.request(id, 'set_local_volumes', args).then((r) => {
if (r && r.ok === false && r.error?.code !== 'connection_closed') log('warn', `client volumes: ${id} ${r.error?.code} ${r.error?.message}`);
}, (err) => log('warn', `client volumes: ${id} ${err?.message ?? err}`));
connections.on('status', (id, status) => {
if (status?.status === 'ready') void push(id, { replace: true, volumes: store.list() });
});
ipcMain.handle('client-volumes:set', (event, uid, db) => {
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
try {
store.set(uid, db);
} catch (err) {
return { ok: false, error: { code: 'bad_request', message: String(err?.message ?? err) } };
}
for (const c of connections.list()) {
if (c.core?.status === 'ready') void push(c.id, { replace: false, volumes: [{ uid, db }] });
}
return { ok: true, db };
});
return store;
}
module.exports = { ClientVolumes, registerClientVolumesIpc, MAX_ENTRIES, SCHEMA };
+233
View File
@@ -0,0 +1,233 @@
'use strict';
const path = require('node:path');
const { EventEmitter } = require('node:events');
const { CoreProcess } = require('./core-process');
/** Official TS6 keeps one server connection handler per tab; this bounds the number of core processes. */
const MAX_CONNECTIONS = 8;
const ID_PATTERN = /^c[1-9][0-9]{0,8}$/;
const closedError = (id) => ({ ok: false, error: { code: 'connection_closed', message: `Server connection ${id} no longer exists` } });
/**
* Simultaneous server connections: one `teamspeach-core` process per connection, all sharing the
* profile (identity + nickname) in `dataDir`. Each core locks the profile shared and its own
* `<dataDir>/connections/<slot>` exclusively; the private key is never copied (core/src/main.rs,
* core/src/profile.rs serialize identity writes across cores).
*
* Connection ids (`c1`, `c2`, …) are never reused within a run, so a request, answer or event for a
* closed connection can never be attributed to a newer one. Slots (directories, log files) are reused.
*
* Captured microphone audio goes only to the input connection chosen by the renderer (official
* `FindAudioInputServerConnectionHandler`: the connection whose own client has the input hardware);
* changing it ends any talk spurt on the previous core first.
*
* Emits 'event' (id, coreEvent), 'status' (id, status), 'changed' (list).
*/
class ConnectionManager extends EventEmitter {
constructor({ resolveBinary, dataDir, logsDir, createCore = (options) => new CoreProcess(options), maxConnections = MAX_CONNECTIONS }) {
super();
this.resolveBinary = resolveBinary;
this.dataDir = dataDir;
this.logsDir = logsDir;
this.createCore = createCore;
this.maxConnections = maxConnections;
this.entries = new Map();
this.nextId = 1;
this.stoppingSlots = new Set();
this.inputId = null;
}
static validId(id) {
return typeof id === 'string' && ID_PATTERN.test(id);
}
_freeSlot() {
const used = new Set(Array.from(this.entries.values(), (e) => e.slot));
for (let slot = 1; ; slot += 1) if (!used.has(slot) && !this.stoppingSlots.has(slot)) return slot;
}
_info(entry) {
return {
id: entry.id,
slot: entry.slot,
core: { ...entry.status },
state: entry.state,
address: entry.address,
identityId: entry.identityId,
session: entry.session,
input: this.inputId === entry.id,
};
}
list() {
return Array.from(this.entries.values(), (e) => this._info(e));
}
get(id) {
return this.entries.get(id) ?? null;
}
/** True while any connection is connecting, connected or disconnecting. */
anyActive() {
for (const e of this.entries.values()) if (e.state !== 'disconnected') return true;
return false;
}
/** Opens a new server connection (a new core process). */
create() {
if (this.entries.size >= this.maxConnections) {
return { ok: false, error: { code: 'too_many_connections', message: `At most ${this.maxConnections} server connections can be open` } };
}
const id = `c${this.nextId++}`;
const entry = { id, slot: this._freeSlot(), core: null, status: { status: 'starting' }, state: 'disconnected', address: '', identityId: null, session: 0, stopping: null, restarting: null };
this.entries.set(id, entry);
// Announce first: the core's 'starting' status must never reach the renderer before the connection does.
this.emit('changed', this.list());
this._spawn(entry);
return { ok: true, connection: this._info(entry) };
}
_spawn(entry) {
const binary = this.resolveBinary();
if (!binary.path) {
entry.core = null;
entry.status = { status: 'missing', candidates: binary.candidates };
this.emit('status', entry.id, entry.status);
return;
}
const core = this.createCore({
binary: binary.path,
dataDir: this.dataDir,
connectionDir: path.join(this.dataDir, 'connections', String(entry.slot)),
// Slot 1 keeps the historical file name, so single-server diagnostics stay where they were.
logFile: path.join(this.logsDir, entry.slot === 1 ? 'core.log' : `core-${entry.slot}.log`),
});
entry.core = core;
// Listeners check identity: a replaced or closed core can never write into a live connection.
const current = () => this.entries.get(entry.id) === entry && entry.core === core;
core.on('status', (status) => {
if (!current()) return;
entry.status = { ...status, binary: binary.path };
if (status.status !== 'ready') {
if (entry.state !== 'disconnected') entry.session += 1;
entry.state = 'disconnected';
if (this.inputId === entry.id) this.setInput(null);
}
this.emit('status', entry.id, entry.status);
});
core.on('event', (evt) => {
if (!current()) return;
if (evt.event === 'state' && typeof evt.state === 'string') {
if ((evt.state === 'disconnected' && entry.state !== 'disconnected') || (entry.state === 'connected' && evt.state === 'connecting')) entry.session += 1;
if (typeof evt.identity_id === 'string') entry.identityId = evt.identity_id;
entry.state = evt.state;
if (typeof evt.address === 'string') entry.address = evt.address;
}
this.emit('event', entry.id, evt);
});
core.start();
}
async _stopCore(entry) {
if (entry.stopping) return entry.stopping;
const core = entry.core;
entry.core = null;
entry.state = 'disconnected';
entry.session += 1;
if (this.inputId === entry.id) this.setInput(null);
if (!core) return;
this.stoppingSlots.add(entry.slot);
entry.stopping = (async () => {
try { await core.stop(); }
finally {
core.removeAllListeners();
this.stoppingSlots.delete(entry.slot);
if (this.entries.get(entry.id) === entry && !entry.core) {
entry.status = { status: 'stopped' };
this.emit('status', entry.id, entry.status);
}
}
})();
try { await entry.stopping; }
finally { entry.stopping = null; }
}
request(id, cmd, args) {
const entry = this.entries.get(id);
if (!entry) return Promise.resolve(closedError(id));
if (!entry.core) return Promise.resolve({ ok: false, error: { code: 'core_unavailable', message: 'The core is not running' } });
return entry.core.request(cmd, args);
}
/** Selects the connection that receives captured microphone audio (`null`: none). */
setInput(id) {
if (id !== null && !this.entries.has(id)) return { ok: false, error: closedError(id).error };
if (this.inputId !== id) {
this.entries.get(this.inputId)?.core?.sendAudio('audio_end');
this.inputId = id;
this.emit('changed', this.list());
}
return { ok: true, input: this.inputId };
}
sendAudioFrame(pcmBase64, whisper) {
const entry = this.entries.get(this.inputId);
return entry?.state === 'connected' && entry.status.status === 'ready' ? entry.core?.sendAudio('audio_frame', whisper === undefined ? { pcm: pcmBase64 } : { pcm: pcmBase64, whisper }) ?? false : false;
}
endAudio() {
this.entries.get(this.inputId)?.core?.sendAudio('audio_end');
}
/** Disconnects (best effort) and stops the connection's core; its id becomes invalid. */
async close(id) {
const entry = this.entries.get(id);
if (!entry) return { ok: false, error: closedError(id).error };
if (entry.core || entry.stopping) this.stoppingSlots.add(entry.slot);
this.entries.delete(id);
if (this.inputId === id) {
entry.core?.sendAudio('audio_end');
this.inputId = null;
}
this.emit('changed', this.list());
await this._stopCore(entry);
return { ok: true };
}
async restart(id) {
const entry = this.entries.get(id);
if (!entry) return { ok: false, error: closedError(id).error };
if (entry.restarting) return entry.restarting;
entry.restarting = (async () => {
await this._stopCore(entry);
if (this.entries.get(id) !== entry) return { ok: false, error: closedError(id).error };
entry.status = { status: 'starting' };
this._spawn(entry);
return { ok: true };
})();
try { return await entry.restarting; }
finally { entry.restarting = null; }
}
/** Stops every core but keeps the connections (identity import); `startAll` respawns them. */
async stopAll() {
await Promise.all(Array.from(this.entries.values(), (e) => this._stopCore(e)));
}
startAll() {
for (const entry of this.entries.values()) {
if (entry.core) continue;
entry.status = { status: 'starting' };
this._spawn(entry);
}
}
get running() {
for (const e of this.entries.values()) if (e.core?.running) return true;
return false;
}
}
module.exports = { ConnectionManager, MAX_CONNECTIONS };
+61
View File
@@ -0,0 +1,61 @@
'use strict';
/**
* Local contacts and the related server-tree options.
*
* The official TS6 contact list is a myTeamSpeak/Matrix service (direct rooms keyed by myTeamSpeak id, cloud
* presence, invites, categories, favourites). TeamsPeach has no account, so it keeps an account-free
* replacement on this computer only:
* - a contact is a TeamSpeak identity UID (the stable key the server reports for every client) with an optional
* local display alias and the nickname seen when it was added; nothing is sent to anyone when a contact is
* added, renamed or removed (no invite, no request, no acceptance by the other side);
* - presence is derived only from the snapshots of servers this client is connected to: "offline" means "not on
* any connected server", never a cloud status.
* Blocking reuses the existing chatIgnoredUsers list (chat-prefs.js) rather than a second list.
*
* Official appearanceSettings key (client_ui/main.js class qe) → TeamsPeach key default
* sort_contacts_alphabetically → contactsSortAlphabetically true
* show_offline_contacts → contactsShowOffline true
* group_offline_contacts → contactsGroupOffline true
* contact_grouping.state.online_is_expanded / offline_is_expanded (class T defaults)
* → contactsOnlineExpanded true / contactsOfflineExpanded false
* show_server_badges → showBadges true
* should_highlight_contacts → highlightContacts true
*/
const { validUid } = require('./chat-prefs');
const MAX_CONTACTS = 1000;
const MAX_TEXT = 128;
const CONTROL = /[\u0000-\u001f\u007f]/;
const isBool = (v) => typeof v === 'boolean';
const isPlainObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
const validText = (v) => typeof v === 'string' && v.length <= MAX_TEXT && !CONTROL.test(v);
/** [{ uid, alias, name }]: unique UIDs; alias '' = no local rename; name = nickname seen when added (display fallback). */
function validContacts(list) {
if (!Array.isArray(list) || list.length > MAX_CONTACTS) return false;
const seen = new Set();
for (const entry of list) {
if (!isPlainObject(entry)) return false;
const keys = Object.keys(entry);
if (keys.length !== 3 || !keys.includes('uid') || !keys.includes('alias') || !keys.includes('name')) return false;
if (!validUid(entry.uid) || seen.has(entry.uid) || !validText(entry.alias) || !validText(entry.name)) return false;
seen.add(entry.uid);
}
return true;
}
const CONTACT_SCHEMA = {
contacts: { default: [], check: validContacts },
contactsSortAlphabetically: { default: true, check: isBool },
contactsShowOffline: { default: true, check: isBool },
contactsGroupOffline: { default: true, check: isBool },
contactsOnlineExpanded: { default: true, check: isBool },
contactsOfflineExpanded: { default: false, check: isBool },
showBadges: { default: true, check: isBool },
highlightContacts: { default: true, check: isBool },
};
module.exports = { CONTACT_SCHEMA, MAX_CONTACTS, validContacts };
+66 -30
View File
@@ -22,13 +22,16 @@ const TIMEOUTS = {
/**
* Owns one `teamspeach-core` child process speaking the newline-JSON protocol of docs/bridge.md.
* With `connectionDir` the core is one of several simultaneous connection cores sharing the profile
* in `dataDir` (shared profile lock, exclusive lock on its own connection directory).
* Emits: 'event' (core event object), 'status' ({status, code?, message?, coreVersion?}).
*/
class CoreProcess extends EventEmitter {
constructor({ binary, dataDir, logFile, logLevel }) {
constructor({ binary, dataDir, connectionDir, logFile, logLevel }) {
super();
this.binary = binary;
this.dataDir = dataDir;
this.connectionDir = connectionDir || null;
this.logFile = logFile;
this.logLevel = logLevel || 'info';
this.child = null;
@@ -46,59 +49,91 @@ class CoreProcess extends EventEmitter {
this.coreVersion = null;
rotateLog(this.logFile);
const log = fs.createWriteStream(this.logFile, { flags: 'a' });
log.write(`\n=== ${new Date().toISOString()} start ${this.binary}\n`);
const writeLog = (text) => { if (!log.destroyed && !log.writableEnded) log.write(text); };
let child;
let logFailed = false;
const onLogFailure = (err) => {
if (logFailed) return;
logFailed = true;
// A broken diagnostic destination must neither crash main nor leave stderr paused.
child?.stderr.unpipe(log);
child?.stderr.resume();
log.destroy();
const message = `Core log unavailable: ${err.message}`;
console.warn(message);
this.emit('status', { status: this.status, logError: message });
};
log.on('error', onLogFailure);
log.on('close', () => {
if (!log.writableFinished) onLogFailure(new Error('log destination closed before finishing'));
});
writeLog(`\n=== ${new Date().toISOString()} start ${this.binary}\n`);
try {
child = spawn(this.binary, ['--data-dir', this.dataDir], {
const args = ['--data-dir', this.dataDir];
if (this.connectionDir) args.push('--connection-dir', this.connectionDir);
child = spawn(this.binary, args, {
stdio: ['pipe', 'pipe', 'pipe'],
windowsHide: true,
env: { ...process.env, TEAMSPEACH_LOG: process.env.TEAMSPEACH_LOG || this.logLevel },
});
} catch (err) {
log.end();
this._setStatus('failed', { message: err.message });
this._setStatus('failed', { reason: 'spawn', message: err.message });
return;
}
this.child = child;
this._setStatus('starting');
child.stderr.on('data', (chunk) => log.write(chunk));
child.stdin.on('error', (err) => log.write(`[main] stdin error: ${err.message}\n`));
child.stderr.pipe(log, { end: false });
child.stdin.on('error', (err) => writeLog(`[main] stdin error: ${err.message}\n`));
const rl = readline.createInterface({ input: child.stdout, crlfDelay: Infinity });
rl.on('line', (line) => this._onLine(line, log));
let exited = false;
const diagnostics = { write: writeLog };
rl.on('line', (line) => this._onLine(line, diagnostics));
const readyTimer = setTimeout(() => {
if (this.status === 'starting') {
log.write('[main] core did not report ready in time, terminating\n');
this._setStatus('failed', { message: 'Ядро не ответило за 15 секунд' });
writeLog('[main] core did not report ready in time, terminating\n');
this._setStatus('failed', { reason: 'ready_timeout', message: 'The core did not report ready within 15 seconds' });
child.kill();
}
}, READY_TIMEOUT_MS);
const onReady = () => clearTimeout(readyTimer);
this.once('ready-internal', onReady);
child.on('error', (err) => {
clearTimeout(readyTimer);
log.write(`[main] spawn error: ${err.message}\n`);
this._setStatus('failed', { message: err.message });
writeLog(`[main] spawn error: ${err.message}\n`);
this._setStatus('failed', { reason: 'spawn', message: err.message });
});
child.on('exit', (code, signal) => {
const finishProcess = (code, signal) => {
if (exited) return;
exited = true;
clearTimeout(readyTimer);
this.removeListener('ready-internal', onReady);
const expected = this.stopping;
if (expected || this.status !== 'failed') this._setStatus(expected ? 'stopped' : 'exited', { code, signal, message: exitMessage(code) });
};
// exit ends command availability; close owns final stdio/log disposal (also failed spawn).
child.once('exit', finishProcess);
// close also fires after a failed spawn (exit does not), and follows stdio closure.
child.on('close', (code, signal) => {
finishProcess(code, signal);
rl.close();
log.write(`[main] core exited code=${code} signal=${signal}\n`);
log.end();
writeLog(`[main] core exited code=${code} signal=${signal}\n`);
if (!log.destroyed) log.end();
this.child = null;
for (const [, entry] of this.pending) {
clearTimeout(entry.timer);
entry.resolve({ ok: false, error: { code: 'core_exited', message: 'Ядро завершило работу' } });
entry.resolve({ ok: false, error: { code: 'core_exited', message: 'The core exited' } });
}
this.pending.clear();
const expected = this.stopping;
this._setStatus(expected ? 'stopped' : 'exited', { code, signal, message: exitMessage(code) });
});
this.once('ready-internal', () => clearTimeout(readyTimer));
}
_onLine(line, log) {
@@ -120,10 +155,11 @@ class CoreProcess extends EventEmitter {
return;
}
if (msg.event === 'ready') {
if (this.status !== 'starting') return; // late/duplicate ready cannot resurrect an exited core
this.coreVersion = typeof msg.core_version === 'string' ? msg.core_version : null;
if (msg.protocol !== 1) {
log.write(`[main] unsupported core protocol ${msg.protocol}\n`);
this._setStatus('failed', { message: `Неподдерживаемая версия протокола ядра: ${msg.protocol}` });
this._setStatus('failed', { reason: 'protocol', protocol: msg.protocol, message: `Unsupported core protocol version: ${msg.protocol}` });
this.child?.kill();
return;
}
@@ -145,19 +181,19 @@ class CoreProcess extends EventEmitter {
request(cmd, args) {
if (!this.child || this.status !== 'ready') {
return Promise.resolve({ ok: false, error: { code: 'core_unavailable', message: 'Ядро не запущено' } });
return Promise.resolve({ ok: false, error: { code: 'core_unavailable', message: 'The core is not running' } });
}
const id = `m${this.nextId++}`;
const payload = args === undefined ? { id, cmd } : { id, cmd, args };
const line = JSON.stringify(payload) + '\n';
if (Buffer.byteLength(line) > MAX_LINE_BYTES) {
return Promise.resolve({ ok: false, error: { code: 'bad_request', message: 'Запрос слишком большой' } });
return Promise.resolve({ ok: false, error: { code: 'bad_request', message: 'Request too large' } });
}
return new Promise((resolve) => {
const timeoutMs = TIMEOUTS[cmd] ?? TIMEOUTS.default;
const timer = setTimeout(() => {
this.pending.delete(id);
resolve({ ok: false, error: { code: 'timeout', message: `Ядро не ответило на «${cmd}» за ${Math.round(timeoutMs / 1000)} с` } });
resolve({ ok: false, error: { code: 'timeout', message: `The core did not answer "${cmd}" within ${Math.round(timeoutMs / 1000)} s` } });
}, timeoutMs);
this.pending.set(id, { resolve, timer });
this.child.stdin.write(line);
@@ -179,7 +215,7 @@ class CoreProcess extends EventEmitter {
const child = this.child;
if (!child) return;
this.stopping = true;
const exited = new Promise((resolve) => child.once('exit', resolve));
const exited = new Promise((resolve) => child.once('close', resolve));
if (this.status === 'ready') {
await Promise.race([this.request('shutdown'), delay(STOP_TIMEOUT_MS)]);
} else {
@@ -194,7 +230,7 @@ class CoreProcess extends EventEmitter {
}
function normalizeError(error) {
if (!error || typeof error !== 'object') return { code: 'internal', message: 'Пустой ответ об ошибке' };
if (!error || typeof error !== 'object') return { code: 'internal', message: 'Empty error response' };
const out = { code: String(error.code ?? 'internal'), message: String(error.message ?? '') };
if (error.ts_error && typeof error.ts_error === 'object') out.ts_error = error.ts_error;
if (error.detail && typeof error.detail === 'object') out.detail = error.detail;
@@ -203,11 +239,11 @@ function normalizeError(error) {
function exitMessage(code) {
switch (code) {
case 0: return 'Ядро завершило работу';
case 2: return 'Ядро отклонило аргументы запуска';
case 3: return 'Профиль уже используется другим экземпляром TeamsPeach или каталог данных недоступен';
case 1: return 'Внутренняя ошибка ядра (подробности в журнале core.log)';
default: return `Ядро завершилось с кодом ${code}`;
case 0: return 'The core exited';
case 2: return 'The core rejected its start arguments';
case 3: return 'The profile is in use by another TeamsPeach instance or the data directory is unavailable';
case 1: return 'Internal core error (details in core.log)';
default: return `The core exited with code ${code}`;
}
}
+257
View File
@@ -0,0 +1,257 @@
'use strict';
const crypto = require('node:crypto');
const fs = require('node:fs');
const path = require('node:path');
const { FileSettings, TransferScheduler } = require('./files-settings');
/**
* Channel file browser, main side. Owns every host path: the renderer only ever sees opaque tokens plus a
* display name/size, and asks main to start transfers with them. Host paths come exclusively from native
* dialogs opened for a user click (official "Choose destination folder" / "Choose Files"), and main builds
* the core commands `file_download` / `file_upload` itself — these commands are never renderer-callable.
*
* Offscreen tests never open a dialog: with TEAMSPEACH_TEST_OFFSCREEN the "chosen" download folder is
* TEAMSPEACH_TEST_FILES_DOWNLOAD_DIR and the "chosen" upload files are the regular files directly inside
* TEAMSPEACH_TEST_FILES_UPLOAD_DIR; both must lie inside the disposable test profile.
*/
const TOKEN_TTL_MS = 30 * 60 * 1000;
const MAX_TOKENS = 512;
const MAX_UPLOAD_PICK = 100;
const MAX_REMOTE_PATH = 512;
const MAX_PASSWORD = 255;
const MAX_SUBDIRS = 32;
const CONTROL = /[\u0000-\u001f\u007f]/;
const fail = (code, message) => ({ ok: false, error: { code, message } });
function within(child, parent) {
const rel = path.relative(parent, child);
return rel !== '' && !rel.startsWith('..') && !path.isAbsolute(rel);
}
function absolute(value) {
return typeof value === 'string' && value.length >= 1 && value.length <= 4096 && path.isAbsolute(value) && !value.includes('\u0000');
}
const posInt = value => Number.isSafeInteger(value) && value > 0;
const remotePath = value => typeof value === 'string' && value.startsWith('/') && value.length <= MAX_REMOTE_PATH && !CONTROL.test(value) && !value.includes('\\') && value.slice(1).split('/').every((part, i, parts) => part === '' ? i === parts.length - 1 : remoteName(part));
const remoteName = value => typeof value === 'string' && value.length >= 1 && value.length <= 255 && !/[/\\]/.test(value) && !CONTROL.test(value) && value !== '.' && value !== '..';
const password = value => value === undefined || (typeof value === 'string' && value.length <= MAX_PASSWORD && !CONTROL.test(value));
class TokenStore {
constructor(now = () => Date.now()) {
this.now = now;
this.tokens = new Map();
}
add(entry) {
this.prune();
if (this.tokens.size >= MAX_TOKENS) {
const oldest = this.tokens.keys().next().value;
this.tokens.delete(oldest);
}
const token = crypto.randomUUID();
this.tokens.set(token, { ...entry, expires: this.now() + TOKEN_TTL_MS });
return token;
}
get(token, kind) {
this.prune();
if (typeof token !== 'string') return null;
const entry = this.tokens.get(token);
if (!entry || entry.kind !== kind) return null;
entry.expires = this.now() + TOKEN_TTL_MS;
return entry;
}
release(token) { return this.tokens.delete(token); }
prune() {
const now = this.now();
for (const [token, entry] of this.tokens) if (entry.expires <= now) this.tokens.delete(token);
}
}
function regularFile(file) {
try {
const st = fs.statSync(file);
return st.isFile() ? st.size : null;
} catch {
return null;
}
}
function folder(dir) {
try {
return fs.statSync(dir).isDirectory();
} catch {
return false;
}
}
/**
* @param {object} o
* @param {Electron.IpcMain} o.ipcMain
* @param {(event) => boolean} o.trustedSender
* @param {Electron.Dialog} o.dialog
* @param {Electron.Shell} o.shell
* @param {() => Electron.BrowserWindow | null} o.getWindow
* @param {(connectionId: string, cmd: string, args: object) => Promise<object>} o.request raw per-connection core request
* @param {(connectionId: unknown) => boolean} o.validConnectionId
* @param {boolean} o.testOffscreen
* @param {string | null} o.testProfileDir absolute disposable profile dir in offscreen tests
* @param {(key: string) => string} o.tr native dialog text in the interface language
* @param {NodeJS.ProcessEnv} [o.env]
*/
function registerFilesIpc({ ipcMain, trustedSender, dialog, shell, clipboard, getWindow, request, validConnectionId, getConnectionEpoch, settingsPath, testOffscreen, testProfileDir, tr, env = process.env }) {
const tokens = new TokenStore();
const settings = new FileSettings(settingsPath);
const scheduler = new TransferScheduler(request, settings, getConnectionEpoch);
const testDir = name => {
const dir = env[name];
if (!absolute(dir) || !testProfileDir || !folder(dir)) return null;
const real = fs.realpathSync(dir);
return within(real, fs.realpathSync(testProfileDir)) ? real : null;
};
const showOpen = async options => {
const win = getWindow();
return win ? dialog.showOpenDialog(win, options) : dialog.showOpenDialog(options);
};
const handle = (channel, fn) => ipcMain.handle(channel, async (event, ...args) => {
if (!trustedSender(event)) return fail('forbidden', 'forbidden');
try {
return await fn(...args);
} catch (err) {
return fail('internal', String(err?.message ?? err));
}
});
const chooseFolder = async () => {
if (testOffscreen) {
const dir = testDir('TEAMSPEACH_TEST_FILES_DOWNLOAD_DIR');
if (!dir) throw new Error('Folder dialogs are disabled in offscreen tests');
return dir;
}
const result = await showOpen({ title: tr('files.native.choose_destination'), properties: ['openDirectory', 'createDirectory', 'dontAddToRecent'] });
if (result.canceled || !result.filePaths?.length) return null;
return fs.realpathSync(result.filePaths[0]);
};
handle('files:settings/get', async () => ({ ok: true, settings: settings.publicValue() }));
handle('files:settings/set', async partial => {
const previous = { ...settings.value };
try {
settings.save(partial);
await scheduler.changed();
return { ok: true, settings: settings.publicValue() };
} catch (err) {
settings.save(previous, true);
await scheduler.changed();
return fail('bad_request', err.message);
}
});
handle('files:settings/choose-default', async () => {
const dir = await chooseFolder();
if (dir) settings.save({ approvedDownloadDir: dir }, true);
return { ok: true, settings: settings.publicValue() };
});
handle('files:settings/copy-default', async () => {
if (testOffscreen) return fail('unavailable', 'Clipboard access is disabled in offscreen tests');
if (!settings.value.approvedDownloadDir) return fail('not_found', 'No download folder has been approved');
clipboard.writeText(settings.value.approvedDownloadDir);
return { ok: true };
});
handle('files:choose-download-dir', async connectionId => {
const epoch = validConnectionId(connectionId) ? getConnectionEpoch(connectionId) : null;
if (epoch == null) return fail('not_connected', 'The server connection is no longer available');
let dir = !settings.value.alwaysAsk ? settings.value.approvedDownloadDir : null;
const outsideFixture = dir && testOffscreen && (!testProfileDir || !within(fs.realpathSync(dir), fs.realpathSync(testProfileDir)));
if (dir && (!absolute(dir) || !folder(dir) || outsideFixture)) {
return fail('not_found', 'The saved download folder is unavailable; choose it again in File Transfer settings');
}
if (!dir) dir = await chooseFolder();
if (!dir) return { ok: true, token: null };
if (getConnectionEpoch(connectionId) !== epoch) return fail('not_connected', 'The server connection changed while choosing a folder');
if (!absolute(dir) || !folder(dir)) return fail('bad_request', 'The chosen folder is not usable');
return { ok: true, token: tokens.add({ kind: 'dir', path: dir }), label: path.basename(dir) || dir };
});
handle('files:choose-upload', async connectionId => {
const epoch = validConnectionId(connectionId) ? getConnectionEpoch(connectionId) : null;
if (epoch == null) return fail('not_connected', 'The server connection is no longer available');
let files;
if (testOffscreen) {
const dir = testDir('TEAMSPEACH_TEST_FILES_UPLOAD_DIR');
if (!dir) return fail('unavailable', 'File dialogs are disabled in offscreen tests');
files = fs.readdirSync(dir).sort().map(name => path.join(dir, name));
} else {
const result = await showOpen({ title: tr('files.native.choose_files'), properties: ['openFile', 'multiSelections', 'dontAddToRecent'] });
if (result.canceled || !result.filePaths?.length) return { ok: true, files: [] };
files = result.filePaths.map(p => path.resolve(p));
}
if (getConnectionEpoch(connectionId) !== epoch) return fail('not_connected', 'The server connection changed while choosing files');
const picked = [];
for (const file of files.slice(0, MAX_UPLOAD_PICK)) {
const safeTestPath = !testOffscreen || (within(fs.realpathSync(file), fs.realpathSync(testProfileDir)) && !fs.lstatSync(file).isSymbolicLink());
const size = absolute(file) && safeTestPath ? regularFile(file) : null;
const name = path.basename(file);
if (size === null || !remoteName(name)) continue;
picked.push({ token: tokens.add({ kind: 'file', path: file, name }), name, size });
}
return { ok: true, files: picked, skipped: files.length - picked.length };
});
handle('files:download', async (connectionId, opts) => {
if (!validConnectionId(connectionId)) return fail('bad_request', 'Invalid server connection');
const o = opts && typeof opts === 'object' ? opts : {};
const entry = tokens.get(o.token, 'dir');
if (!entry) return fail('bad_request', 'Choose the destination folder again');
if (!posInt(o.channelId) || !remotePath(o.path) || !password(o.channelPassword) || typeof o.overwrite !== 'boolean') return fail('bad_request', 'Invalid download request');
const subdirs = o.subdirs === undefined ? [] : o.subdirs;
if (!Array.isArray(subdirs) || subdirs.length > MAX_SUBDIRS || !subdirs.every(remoteName)) return fail('bad_request', 'Invalid download folder');
return scheduler.requestTransfer(connectionId, 'file_download', {
channel_id: o.channelId,
path: o.path,
...(o.channelPassword ? { channel_password: o.channelPassword } : {}),
dest_dir: entry.path,
subdirs,
overwrite: o.overwrite,
});
});
handle('files:upload', async (connectionId, opts) => {
if (!validConnectionId(connectionId)) return fail('bad_request', 'Invalid server connection');
const o = opts && typeof opts === 'object' ? opts : {};
const entry = tokens.get(o.token, 'file');
if (!entry) return fail('bad_request', 'Choose the file again');
if (!posInt(o.channelId) || !remotePath(o.dir) || !o.dir.endsWith('/') || !password(o.channelPassword) || typeof o.overwrite !== 'boolean') return fail('bad_request', 'Invalid upload request');
const target = o.dir + entry.name;
if (target.length > MAX_REMOTE_PATH) return fail('bad_request', 'The server path is too long');
return scheduler.requestTransfer(connectionId, 'file_upload', {
channel_id: o.channelId,
path: target,
...(o.channelPassword ? { channel_password: o.channelPassword } : {}),
source: entry.path,
overwrite: o.overwrite,
});
});
handle('files:release', async token => ({ ok: true, released: tokens.release(token) }));
handle('files:open-folder', async token => {
const entry = tokens.get(token, 'dir');
if (!entry || !folder(entry.path)) return fail('bad_request', 'The folder is no longer available');
if (testOffscreen) return fail('unavailable', 'Opening folders is disabled in offscreen tests');
const error = await shell.openPath(entry.path);
return error ? fail('io', error) : { ok: true };
});
return { tokens, onEvent: (id, event) => scheduler.onEvent(id, event), onClosed: id => scheduler.onClosed(id), requestTransfer: (id, cmd, args) => scheduler.requestTransfer(id, cmd, args) };
}
module.exports = { registerFilesIpc, TokenStore };
+134
View File
@@ -0,0 +1,134 @@
'use strict';
const fs = require('node:fs');
const path = require('node:path');
const DEFAULTS = Object.freeze({ alwaysAsk: true, downloadSlots: 2, uploadSlots: 2, limitDownload: false, limitUpload: false, downloadMiB: 10, uploadMiB: 10, approvedDownloadDir: null });
const PUBLIC = ['alwaysAsk', 'downloadSlots', 'uploadSlots', 'limitDownload', 'limitUpload', 'downloadMiB', 'uploadMiB'];
function valid(s) {
return ['alwaysAsk', 'limitDownload', 'limitUpload'].every(k => typeof s[k] === 'boolean')
&& ['downloadSlots', 'uploadSlots'].every(k => Number.isInteger(s[k]) && s[k] >= 1 && s[k] <= 9)
&& s.downloadSlots + s.uploadSlots <= 10
&& ['downloadMiB', 'uploadMiB'].every(k => Number.isFinite(s[k]) && s[k] >= 1 && s[k] <= 25600 && Number.isInteger(s[k] * 2));
}
class FileSettings {
constructor(filename) {
this.filename = filename;
this.value = { ...DEFAULTS };
if (filename && fs.existsSync(filename)) {
const saved = JSON.parse(fs.readFileSync(filename, 'utf8'));
if (!valid(saved) || !(saved.approvedDownloadDir === null || (typeof saved.approvedDownloadDir === 'string' && path.isAbsolute(saved.approvedDownloadDir)))) throw new Error('Invalid saved transfer settings');
this.value = { ...DEFAULTS, ...saved };
}
}
publicValue() {
const out = Object.fromEntries(PUBLIC.map(k => [k, this.value[k]]));
out.downloadFolder = this.value.approvedDownloadDir ? path.basename(this.value.approvedDownloadDir) || this.value.approvedDownloadDir : null;
return out;
}
save(partial, approved = false) {
if (!partial || typeof partial !== 'object' || Array.isArray(partial) || Object.keys(partial).some(k => !PUBLIC.includes(k) && !(approved && k === 'approvedDownloadDir'))) throw new Error('Invalid transfer setting');
const next = { ...this.value, ...partial };
if (!valid(next)) throw new Error('Invalid transfer limits: concurrency total must not exceed 10');
if (this.filename) {
const temp = `${this.filename}.${process.pid}.tmp`;
try { fs.writeFileSync(temp, JSON.stringify(next), { mode: 0o600 }); fs.renameSync(temp, this.filename); }
finally { try { fs.unlinkSync(temp); } catch (e) { if (e.code !== 'ENOENT') throw e; } }
}
this.value = next;
return this.publicValue();
}
}
// Native queues own IDs/progress/cancellation. This broker allocates app-wide starts across
// per-server cores, preserving already-started transfers when a limit is reduced.
class TransferScheduler {
constructor(request, settings, epoch) {
this.request = request; this.settings = settings; this.epoch = epoch;
this.cores = new Map(); this.serial = Promise.resolve();
}
run(fn) { const next = this.serial.then(fn); this.serial = next.catch(() => {}); return next; }
core(id) {
let c = this.cores.get(id);
if (!c || c.epoch !== this.epoch(id)) { c = { epoch: this.epoch(id), records: new Map(), config: null }; this.cores.set(id, c); }
return c;
}
requestTransfer(id, cmd, args) {
const epoch = this.epoch(id);
return this.run(async () => {
if (epoch == null || this.epoch(id) !== epoch) return { ok: false, error: { code: 'not_connected', message: 'Connection changed before transfer' } };
const c = this.core(id);
// First enqueue with no unallocated starts. Existing active transfers are unaffected.
const paused = { download_slots: 0, upload_slots: 0, download_limit: c.config?.download_limit ?? 0, upload_limit: c.config?.upload_limit ?? 0 };
const configured = await this.request(id, 'file_config', paused);
if (!configured.ok) return configured;
c.config = paused;
let result;
try { result = await this.request(id, cmd, args); }
catch (err) { await this.rebalance(); throw err; }
if (result.ok && this.epoch(id) === epoch && this.cores.get(id) === c) {
const rec = result.result;
if (!c.records.has(rec.transfer_id)) c.records.set(rec.transfer_id, rec);
}
await this.rebalance();
return result;
});
}
onEvent(id, event) {
if (event.event !== 'file_transfer') return;
const c = this.cores.get(id);
if (!c || c.epoch !== this.epoch(id)) return;
// Keep terminal tombstones until the queued response has been reconciled.
c.records.set(event.transfer_id, event);
this.run(() => this.rebalance()).catch(err => console.error('Transfer scheduler:', err.message));
}
onClosed(id) { this.cores.delete(id); this.run(() => this.rebalance()).catch(err => console.error('Transfer scheduler:', err.message)); }
changed() { return this.run(() => this.rebalance()); }
async rebalance() {
const entries = [...this.cores].filter(([id, c]) => c.epoch === this.epoch(id) && c.epoch != null);
const settings = this.settings.value;
const configs = new Map(entries.map(([id]) => [id, { download_slots: 0, upload_slots: 0, download_limit: 0, upload_limit: 0 }]));
for (const direction of ['download', 'upload']) {
const cap = settings[`${direction}Slots`];
const demand = entries.map(([id, c]) => {
const rows = [...c.records.values()].filter(r => r.direction === direction && !['done', 'failed', 'cancelled'].includes(r.state));
return { id, active: rows.filter(r => r.state !== 'queued' || r.reserved).length, queued: rows.filter(r => r.state === 'queued' && !r.reserved) };
});
let remaining = Math.max(0, cap - demand.reduce((n, d) => n + d.active, 0));
for (const d of demand) configs.get(d.id)[`${direction}_slots`] = d.active;
// Round-robin one slot per demanded connection, never multiply a per-app limit.
while (remaining > 0) {
let used = false;
for (const d of demand) {
if (remaining === 0) break;
if (d.queued.length > 0) { configs.get(d.id)[`${direction}_slots`]++; d.queued.shift().reserved = true; remaining--; used = true; }
}
if (!used) break;
}
const enabled = settings[direction === 'download' ? 'limitDownload' : 'limitUpload'];
const consumers = demand.filter(d => d.active > 0 || configs.get(d.id)[`${direction}_slots`] > 0);
const rate = enabled ? Math.floor(settings[`${direction}MiB`] * 1048576 / Math.max(1, consumers.length)) : 0;
for (const d of consumers) configs.get(d.id)[`${direction}_limit`] = rate;
}
// Apply decreases before increases, so adding a core never multiplies the old ceiling.
for (const [id, c] of entries) {
const next = configs.get(id);
const interim = { ...next };
for (const k of ['download_slots', 'upload_slots']) interim[k] = Math.min(c.config?.[k] ?? 0, next[k]);
for (const k of ['download_limit', 'upload_limit']) {
const old = c.config?.[k] ?? 0;
interim[k] = old === 0 ? next[k] : next[k] === 0 ? old : Math.min(old, next[k]);
}
if (JSON.stringify(c.config) !== JSON.stringify(interim)) {
const r = await this.request(id, 'file_config', interim); if (!r.ok) throw new Error(r.error?.message || 'Transfer limits refused'); c.config = interim;
}
}
for (const [id, c] of entries) {
const next = configs.get(id);
if (JSON.stringify(c.config) !== JSON.stringify(next)) {
const r = await this.request(id, 'file_config', next); if (!r.ok) throw new Error(r.error?.message || 'Transfer limits refused'); c.config = next;
}
for (const [key, rec] of c.records) if (['done', 'failed', 'cancelled'].includes(rec.state)) c.records.delete(key);
}
}
}
module.exports = { FileSettings, TransferScheduler, DEFAULTS };
+124
View File
@@ -0,0 +1,124 @@
'use strict';
// Only main owns paths, dialogs, subprocesses and private-key import/export.
const path = require('node:path');
const { spawn } = require('node:child_process');
const UID = /^[A-Za-z0-9+/]{27}=$/;
const failure = (code, message) => ({ ok: false, error: { code, message } });
function registerIdentityIpc({ ipcMain, trustedSender, getWindow, resolveCoreBinary, dataDir, dialog, tr, sendToRenderer, onChanged = () => {} }) {
let improvement = null;
let closing = false;
const children = new Set();
const notify = (action, uid, result) => {
const change = { action, uid, result };
sendToRenderer('identities:changed', change);
onChanged(change);
};
function launch(action, fields = {}, improving = false) {
if (closing) return Promise.resolve(failure('closed', 'Application is closing'));
const binary = resolveCoreBinary();
if (!binary.path) return Promise.resolve(failure('core_missing', 'Core executable not found'));
const args = ['identity', action, '--data-dir', dataDir()];
for (const [key, value] of Object.entries(fields)) args.push(`--${key}`, String(value));
return new Promise((resolve) => {
const child = spawn(binary.path, args, { windowsHide: true, stdio: ['pipe', 'pipe', 'pipe'] });
children.add(child);
let buffer = ''; let answer = null; let settled = false;
if (improving) improvement = { child, uid: fields.uid, progress: { uid: fields.uid, target: fields.target, running: true } };
const finish = (value) => {
if (settled) return;
settled = true; clearTimeout(timer); children.delete(child);
if (improvement?.child === child) improvement = null;
if (improving) sendToRenderer('identity:progress', { uid: fields.uid, running: false, ...value });
resolve(value);
};
const timer = setTimeout(() => { child.kill(); finish(failure('timeout', 'Identity operation exceeded its time limit')); }, improving ? 65000 : 30000);
child.stdin.on('error', () => {});
// stderr can contain OS paths; never forward it or key-bearing input to logs/renderer.
child.stderr.resume();
child.on('error', () => finish(failure('io', 'Cannot launch identity worker')));
child.stdout.setEncoding('utf8');
child.stdout.on('data', (chunk) => {
buffer += chunk;
if (buffer.length > 1024 * 1024) { child.kill(); finish(failure('protocol', 'Identity worker output exceeded limit')); return; }
let end;
while ((end = buffer.indexOf('\n')) >= 0) {
const line = buffer.slice(0, end); buffer = buffer.slice(end + 1);
try {
const value = JSON.parse(line);
if (value.event === 'identity_progress' && improvement?.child === child) {
improvement.progress = { ...value, running: true };
sendToRenderer('identity:progress', improvement.progress);
} else if (typeof value.ok === 'boolean') answer = value;
} catch { child.kill(); finish(failure('protocol', 'Invalid identity worker response')); }
}
});
child.on('close', () => finish(answer || failure('io', 'Identity worker stopped without a result')));
if (!improving) child.stdin.end();
});
}
ipcMain.handle('identity:request', async (event, action, args = {}) => {
if (!trustedSender(event)) return failure('forbidden', 'Untrusted sender');
if (!args || typeof args !== 'object' || Array.isArray(args)) return failure('bad_request', 'Invalid identity arguments');
const fields = {};
if (!['list', 'create', 'update', 'default', 'delete', 'improve', 'cancel', 'status'].includes(action)) return failure('bad_request', 'Unknown identity action');
if (action === 'status') return { ok: true, result: improvement?.progress || null };
if (action === 'cancel') {
if (improvement) improvement.child.stdin.end('cancel\n');
return { ok: true, result: { cancel_requested: Boolean(improvement) } };
}
if (!['list', 'create'].includes(action)) {
if (typeof args.uid !== 'string' || !UID.test(args.uid)) return failure('bad_request', 'Invalid identity UID');
fields.uid = args.uid;
}
if (action === 'create' || action === 'update') {
for (const key of ['name', 'nickname']) {
if (action === 'update' && args[key] === undefined) continue;
if (typeof args[key] !== 'string' || args[key].length > 256 || /[\x00-\x1f\x7f]/.test(args[key])) return failure('bad_request', 'Invalid identity name or nickname');
fields[key] = args[key];
}
}
if (action === 'delete') {
if (args.confirm_uid !== args.uid) return failure('bad_request', 'Confirm the exact identity to delete');
if (improvement?.uid === args.uid) return failure('identity_in_use', 'Cancel security improvement before deleting');
fields['confirm-uid'] = args.confirm_uid;
}
if (action === 'improve') {
if (improvement) return failure('busy', 'Security improvement is already running');
if (!Number.isInteger(args.target) || args.target < 1 || args.target > 100) return failure('bad_request', 'Security target must be 1–100');
fields.target = args.target; fields.seconds = 30;
}
const result = await launch(action, fields, action === 'improve');
if (result.ok && action !== 'list') notify(action, fields.uid || result.result?.uid, result.result);
return result;
});
ipcMain.handle('identity:export', async (event, uid) => {
if (!trustedSender(event)) return failure('forbidden', 'Untrusted sender');
if (typeof uid !== 'string' || !UID.test(uid)) return failure('bad_request', 'Select an identity');
try {
const picked = await dialog.showSaveDialog(getWindow(), { title: tr('native.identityExport.title'), defaultPath: 'teamspeach-identity.ini', filters: [{ name: tr('native.identity.filter'), extensions: ['ini'] }], properties: ['showOverwriteConfirmation', 'createDirectory'] });
if (picked.canceled || !picked.filePath) return { ok: false, canceled: true };
const result = await launch('export', { uid, out: picked.filePath });
return result.ok ? { ...result, uid, file: path.basename(picked.filePath) } : result;
} catch { return failure('io', 'Cannot select identity export destination'); }
});
ipcMain.handle('identity:import', async (event) => {
if (!trustedSender(event)) return failure('forbidden', 'Untrusted sender');
try {
const picked = await dialog.showOpenDialog(getWindow(), { title: tr('native.identityImport.title'), filters: [{ name: tr('native.identity.filter'), extensions: ['ini'] }], properties: ['openFile'] });
if (picked.canceled || !picked.filePaths?.length) return { ok: false, canceled: true };
const result = await launch('import', { in: picked.filePaths[0] });
if (result.ok) notify('import', null, result.result);
return result;
} catch { return failure('io', 'Cannot select identity import file'); }
});
return {
shutdown() {
closing = true;
for (const child of children) child.stdin.end('cancel\n');
// Graceful cancellation checkpoints first; enforce termination if a worker is stuck in I/O.
const timer = setTimeout(() => { for (const child of children) child.kill(); }, 1500);
timer.unref();
},
};
}
module.exports = { registerIdentityIpc };
+515
View File
@@ -0,0 +1,515 @@
'use strict';
// Settings > About data (installed client_ui/main.js: ChangelogEntry render@1810599, changelog view
// render@1814959, Open Source Licenses list render@1822582, license detail render@1821111).
//
// The official client reads a changelog feed and fetches tsui://default/licenses/licenses.json
// ({ name: { icon, repository, licenseText } }). TeamsPeach serves the same three views from files that are
// actually part of this installation, chosen here in main only; the renderer passes nothing but an opaque
// license id that must exist in the index built below:
// - CHANGELOG.md (repository root; packaged as resources/CHANGELOG.md),
// - the licenses folder (repository LICENSES/; packaged as resources/licenses/) with the TeamsPeach notice,
// bundled font/noise-reduction notices and the native core's generated THIRD_PARTY_NOTICES.md,
// - Electron's own LICENSE and Chromium's LICENSES.chromium.html next to the executable,
// - license files of the production npm dependency tree inside the application directory,
// - the chat renderer vendor notices (app/renderer/vendor/THIRD_PARTY_NOTICES.txt).
// Nothing is fetched from the network. A source that is missing in this installation is reported as missing.
const fs = require('node:fs');
const fsp = require('node:fs/promises');
const path = require('node:path');
const MAX_CHANGELOG_BYTES = 2 * 1024 * 1024;
const MAX_NOTICE_BYTES = 64 * 1024 * 1024;
const LICENSE_FILE = /^(licen[cs]e|copying|notice|unlicense)([-._].*)?$/i;
const GROUP_ORDER = ['teamspeach', 'electron', 'chromium', 'npm', 'core', 'renderer'];
// ---------- CHANGELOG.md ----------
const RELEASE_HEADING = /^##\s+(.+?)\s*$/;
const DATED = /^(.+?)\s+[—–-]\s+(\d{4}-\d{2}-\d{2})(?:\s+(.*))?$/;
/**
* Keep-a-changelog style CHANGELOG.md → official changelog entries (old format: notes + changes).
* `## <version> — <YYYY-MM-DD> [qualifier]` or `## Unreleased`; paragraphs become notes, `- ` items changes
* (indented continuation lines are joined with a space).
*/
function parseChangelog(markdown) {
const entries = [];
let entry = null;
let block = null; // { kind: 'note' | 'change', lines: [] }
const flush = () => {
if (!entry || !block) { block = null; return; }
const text = block.lines.join(' ').replace(/\s+/g, ' ').trim();
if (text) (block.kind === 'change' ? entry.changes : entry.notes).push(text);
block = null;
};
for (const raw of String(markdown).split(/\r?\n/)) {
const heading = RELEASE_HEADING.exec(raw);
if (heading && !raw.startsWith('###')) {
flush();
const title = heading[1];
const dated = DATED.exec(title);
entry = {
version: dated ? dated[1].trim() : title,
date: dated ? dated[2] : null,
qualifier: dated && dated[3] ? dated[3].trim() : null,
unreleased: !dated && /^unreleased$/i.test(title),
notes: [],
changes: [],
};
entries.push(entry);
continue;
}
if (!entry) continue;
if (/^#/.test(raw)) { flush(); continue; }
if (!raw.trim()) { flush(); continue; }
const item = /^[-*]\s+(.*)$/.exec(raw);
if (item) {
flush();
block = { kind: 'change', lines: [item[1]] };
} else if (block) {
block.lines.push(raw.trim());
} else {
block = { kind: 'note', lines: [raw.trim()] };
}
}
flush();
return entries;
}
// ---------- core THIRD_PARTY_NOTICES.md (core/tools/third_party_notices.py) ----------
const CRATES_IO_INDEX = 'registry+https://github.com/rust-lang/crates.io-index';
function crateRepository(name, version, source) {
if (source === CRATES_IO_INDEX) return `https://crates.io/crates/${encodeURIComponent(name)}/${encodeURIComponent(version)}`;
const git = /^git\+(https:\/\/[^?#\s]+)/.exec(source);
return git ? git[1].replace(/\.git$/, '') : null;
}
/** Fenced text blocks following a `### a 1.0 (FILE); b 2.0 (FILE)` header, keyed by "name version". */
function parseCoreNotices(markdown) {
const lines = String(markdown).split(/\r?\n/);
const crates = [];
let intro = '';
let i = 0;
for (; i < lines.length && !lines[i].startsWith('| '); i++) {
if (!lines[i].startsWith('#') && lines[i].trim()) intro += `${intro ? ' ' : ''}${lines[i].trim()}`;
}
for (; i < lines.length && lines[i].startsWith('|'); i++) {
const cells = lines[i].split('|').slice(1, -1).map((cell) => cell.trim());
if (cells.length !== 4 || cells[0] === 'Crate' || /^-+$/.test(cells[0])) continue;
const [name, version, license, source] = cells;
crates.push({ name, version, license, repository: crateRepository(name, version, source), texts: [] });
}
const byKey = new Map(crates.map((crate) => [`${crate.name} ${crate.version}`, crate]));
const extra = [];
let header = null;
let fence = null;
for (; i < lines.length; i++) {
const line = lines[i];
if (fence) {
if (line.startsWith('```')) {
const text = fence.join('\n');
if (header.kind === 'section') extra.push({ name: header.title, version: null, license: null, repository: null, texts: [{ label: null, text }] });
else {
for (const { key, label } of header.owners) byKey.get(key)?.texts.push({ label, text });
}
fence = null;
header = null;
} else fence.push(line);
continue;
}
if (line.startsWith('### ')) {
const owners = [];
// "a 1.0 (LICENSE-MIT); b 2.0 (LICENSE)"; a label may itself contain "; " (crates without a license file).
for (const m of line.slice(4).matchAll(/(?:^|; )([^\s;()]+) ([^\s;()]+) \(([^)]*)\)/g)) {
owners.push({ key: `${m[1]} ${m[2]}`, label: m[3] });
}
header = { kind: 'texts', owners };
} else if (line.startsWith('## ') && line.trim() !== '## License texts') {
// e.g. "## libopus (bundled in audiopus_sys, statically linked)"
header = { kind: 'section', title: line.slice(3).trim() };
} else if (line.startsWith('```') && header) {
fence = [];
}
}
return { intro, entries: [...extra, ...crates] };
}
// ---------- app/renderer/vendor/THIRD_PARTY_NOTICES.txt (scripts/vendor-chat-notices.mjs) ----------
const VENDOR_HEADER = /^===== (.+)@([^@\s]+) \((.*)\) =====$/;
function parseVendorNotices(text) {
const lines = String(text).split(/\r?\n/);
const preface = [];
const entries = [];
let current = null;
for (const line of lines) {
const header = VENDOR_HEADER.exec(line);
if (header) {
if (current) entries.push(current);
current = { name: header[1], version: header[2], license: header[3].replace(/^\((.*)\)$/, '$1'), lines: [] };
} else if (current) current.lines.push(line);
else if (line.trim()) preface.push(line.trim());
}
if (current) entries.push(current);
return {
// The first line is the file title; the rest states the inventory's scope.
intro: preface.slice(1).join(' '),
entries: entries.map(({ lines: body, ...entry }) => ({ ...entry, text: body.join('\n').trim() })),
};
}
// ---------- Electron LICENSES.chromium.html ----------
const ENTITIES = { amp: '&', lt: '<', gt: '>', quot: '"', apos: "'", nbsp: '\u00a0' };
function decodeEntities(text) {
return text.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi, (all, code) => {
if (code[0] === '#') {
const n = code[1] === 'x' || code[1] === 'X' ? parseInt(code.slice(2), 16) : parseInt(code.slice(1), 10);
return Number.isInteger(n) && n >= 0 && n <= 0x10ffff ? String.fromCodePoint(n) : all;
}
return ENTITIES[code.toLowerCase()] ?? all;
});
}
const PRODUCT_TITLE = /^\s*<span class="title">([\s\S]*?)<\/span>/;
const PRODUCT_HOMEPAGE = /<span class="homepage"><a href="([^"]*)">/;
const PRODUCT_LICENSE = /<pre>([\s\S]*?)<\/pre>/;
/** Chromium credits page (tools/licenses/licenses.py): one product per <div class="product">. */
function parseChromiumCredits(html) {
const products = [];
for (const chunk of String(html).split('<div class="product">').slice(1)) {
const title = PRODUCT_TITLE.exec(chunk);
const license = PRODUCT_LICENSE.exec(chunk);
if (!title || !license) continue;
const homepage = PRODUCT_HOMEPAGE.exec(chunk);
const url = homepage ? decodeEntities(homepage[1]) : null;
products.push({
name: decodeEntities(title[1]).trim(),
repository: url && /^https?:\/\//i.test(url) ? url : null,
text: decodeEntities(license[1]),
});
}
return products;
}
// ---------- production npm dependencies ----------
/** package.json "repository" → https URL, or null when it is not a recognisable public URL. */
function npmRepository(repository) {
let url = typeof repository === 'string' ? repository : repository && typeof repository.url === 'string' ? repository.url : null;
if (!url) return null;
url = url.trim();
// npm shorthand: "user/repo" and "github:user/repo" denote GitHub.
const shorthand = /^(?:github:)?([\w.-]+)\/([\w.-]+)$/.exec(url);
if (shorthand) return `https://github.com/${shorthand[1]}/${shorthand[2].replace(/\.git$/, '')}`;
url = url.replace(/^git\+/, '')
.replace(/^git@([^:]+):/, 'https://$1/')
.replace(/^ssh:\/\/git@/, 'https://')
.replace(/^git:\/\//, 'https://')
.replace(/\.git$/, '');
return /^https:\/\/[^\s/]+\/\S+$/.test(url) ? url : null;
}
/** Node resolution of `name` required from `fromDir`, staying inside `rootDir`. */
function resolvePackage(fromDir, name, rootDir) {
let dir = fromDir;
for (;;) {
const candidate = path.join(dir, 'node_modules', name);
if (fs.existsSync(path.join(candidate, 'package.json'))) return candidate;
if (path.resolve(dir) === path.resolve(rootDir)) return null;
const parent = path.dirname(dir);
if (parent === dir) return null;
dir = parent;
}
}
/** Runtime `dependencies` (plus installed optional ones) reachable from the application's package.json. */
function collectProductionPackages(appDir) {
const found = new Map();
const missing = [];
const visit = (dir, manifest) => {
const names = new Set([...Object.keys(manifest.dependencies ?? {}), ...Object.keys(manifest.optionalDependencies ?? {})]);
for (const name of names) {
const location = resolvePackage(dir, name, appDir);
if (!location) {
if (!manifest.optionalDependencies?.[name]) missing.push(name);
continue;
}
if (found.has(location)) continue;
let pkg;
try { pkg = JSON.parse(fs.readFileSync(path.join(location, 'package.json'), 'utf8')); } catch { missing.push(name); continue; }
let files = [];
try { files = fs.readdirSync(location).filter((file) => LICENSE_FILE.test(file)).sort(); } catch { /* unreadable */ }
const license = typeof pkg.license === 'string' ? pkg.license
: Array.isArray(pkg.licenses) ? pkg.licenses.map((l) => l?.type ?? l).filter((l) => typeof l === 'string').join(' OR ') || null
: pkg.license?.type ?? null;
found.set(location, { name: pkg.name ?? name, version: pkg.version ?? null, license, repository: npmRepository(pkg.repository), location, files });
visit(location, pkg);
}
};
const root = JSON.parse(fs.readFileSync(path.join(appDir, 'package.json'), 'utf8'));
visit(appDir, root);
const packages = [...found.values()].sort((a, b) => a.name.localeCompare(b.name) || String(a.version).localeCompare(String(b.version)));
return { packages, missing: [...new Set(missing)].sort() };
}
// ---------- service ----------
const OS_DIR = { win32: 'win', darwin: 'mac', linux: 'linux' };
/** Fixed file locations for this installation; only main decides them. */
function informationPaths({ isPackaged, appRoot, appPath, resourcesPath, execPath, rendererDir, platform, arch }) {
const exeDir = path.dirname(execPath);
// Packaged: electron-builder renames Electron's LICENSE to LICENSE.electron.txt beside the executable
// (macOS: inside Contents/Resources). Development: node_modules/electron/dist (macOS: beside Electron.app).
const electronLicenses = isPackaged
? [path.join(exeDir, 'LICENSE.electron.txt'), path.join(resourcesPath, 'LICENSE.electron.txt')]
: [path.join(exeDir, 'LICENSE'), ...(platform === 'darwin' ? [path.resolve(exeDir, '..', '..', '..', 'LICENSE')] : [])];
const chromiumCredits = [path.join(exeDir, 'LICENSES.chromium.html'),
...(platform === 'darwin' ? [isPackaged ? path.join(resourcesPath, 'LICENSES.chromium.html') : path.resolve(exeDir, '..', '..', '..', 'LICENSES.chromium.html')] : [])];
const electronFiles = { electronLicenses, chromiumCredits };
if (isPackaged) {
return {
changelog: [path.join(resourcesPath, 'CHANGELOG.md')],
licensesDir: path.join(resourcesPath, 'licenses'),
coreNotices: [path.join(resourcesPath, 'licenses', 'teamspeach-core-THIRD_PARTY_NOTICES.md')],
appDir: appPath,
vendorDir: path.join(rendererDir, 'vendor'),
...electronFiles,
};
}
return {
changelog: [path.join(appRoot, 'CHANGELOG.md')],
licensesDir: path.join(appRoot, 'LICENSES'),
coreNotices: [
path.join(appRoot, 'core-bin', `${OS_DIR[platform] ?? platform}-${arch}`, 'THIRD_PARTY_NOTICES.md'),
path.join(appRoot, 'core', 'THIRD_PARTY_NOTICES.md'),
],
appDir: appRoot,
vendorDir: path.join(rendererDir, 'vendor'),
...electronFiles,
};
}
// Known files of the licenses folder (LICENSES/NOTICE.md describes each); others are listed by file name.
const LICENSE_DIR_NAMES = {
'NOTICE.md': { name: 'TeamsPeach', order: 0 },
'NotoSans-OFL.txt': { name: 'Noto Sans', license: 'OFL-1.1', order: 1 },
'sonora-NOTICE.txt': { name: 'sonora', license: 'BSD-3-Clause', order: 2 },
'teamspeak-client-icons-PROVENANCE.md': { name: 'TeamSpeak 6 client icons', order: 3 },
};
const CORE_NOTICES_FILE = 'teamspeach-core-THIRD_PARTY_NOTICES.md';
async function readFirst(candidates, maxBytes) {
for (const file of candidates) {
try {
const stat = await fsp.stat(file);
if (!stat.isFile()) continue;
if (stat.size > maxBytes) throw Object.assign(new Error(`${path.basename(file)} is too large`), { code: 'too_large' });
return { file, text: await fsp.readFile(file, 'utf8') };
} catch (err) {
if (err.code === 'too_large') throw err;
}
}
return null;
}
function missingError(candidates) {
return { code: 'missing', file: path.basename(candidates[0]) };
}
function createInformationService(options) {
const paths = informationPaths(options);
const electronVersion = options.electronVersion ?? null;
let changelog = null;
let index = null;
async function getChangelog() {
if (!changelog) {
changelog = (async () => {
const found = await readFirst(paths.changelog, MAX_CHANGELOG_BYTES);
if (!found) return { ok: false, error: missingError(paths.changelog) };
return { ok: true, entries: parseChangelog(found.text) };
})().catch((err) => { changelog = null; return { ok: false, error: { code: err.code === 'too_large' ? 'too_large' : 'unreadable', file: 'CHANGELOG.md' } }; });
}
return changelog;
}
// Each group: { id, note, error, entries: [{ name, version, license, repository, load: () => Promise<string> }] }
async function teamspeachGroup() {
let files;
try { files = await fsp.readdir(paths.licensesDir); } catch { return { id: 'teamspeach', error: missingError([paths.licensesDir]), entries: [] }; }
const entries = files
.filter((file) => file !== CORE_NOTICES_FILE && /\.(md|txt)$/i.test(file))
.map((file) => ({ file, known: LICENSE_DIR_NAMES[file] }))
.sort((a, b) => (a.known?.order ?? 99) - (b.known?.order ?? 99) || a.file.localeCompare(b.file))
.map(({ file, known }) => ({
name: known?.name ?? file,
version: null,
license: known?.license ?? null,
repository: null,
load: () => fsp.readFile(path.join(paths.licensesDir, file), 'utf8'),
}));
return { id: 'teamspeach', entries };
}
async function electronGroups() {
const { electronLicenses: electronLicense, chromiumCredits } = paths;
const electron = await readFirst(electronLicense, MAX_NOTICE_BYTES);
const electronGroup = electron
? { id: 'electron', entries: [{ name: 'Electron', version: electronVersion, license: 'MIT', repository: null, load: async () => electron.text }] }
: { id: 'electron', error: missingError(['LICENSE.electron.txt']), entries: [] };
const chromium = await readFirst(chromiumCredits, MAX_NOTICE_BYTES);
if (!chromium) return [electronGroup, { id: 'chromium', error: missingError(chromiumCredits), entries: [] }];
const products = parseChromiumCredits(chromium.text);
const chromiumGroup = {
id: 'chromium',
entries: products.map(({ name, repository, text }) => ({ name, version: null, license: null, repository, load: async () => text })),
};
if (!products.length) chromiumGroup.error = { code: 'unparsed', file: 'LICENSES.chromium.html' };
return [electronGroup, chromiumGroup];
}
function npmGroup() {
let result;
try { result = collectProductionPackages(paths.appDir); } catch { return { id: 'npm', error: missingError([path.join(paths.appDir, 'package.json')]), entries: [] }; }
const group = {
id: 'npm',
entries: result.packages.map((pkg) => ({
name: pkg.name,
version: pkg.version,
license: pkg.license,
repository: pkg.repository,
noLicenseFile: pkg.files.length === 0,
load: async () => {
const parts = [];
for (const file of pkg.files) parts.push(`--- ${file} ---\n${(await fsp.readFile(path.join(pkg.location, file), 'utf8')).trim()}`);
return parts.join('\n\n');
},
})),
};
if (result.missing.length) group.error = { code: 'missing_packages', file: result.missing.join(', ') };
return group;
}
async function coreGroup() {
const found = await readFirst(paths.coreNotices, MAX_NOTICE_BYTES);
if (!found) return { id: 'core', error: missingError(paths.coreNotices), entries: [] };
const parsed = parseCoreNotices(found.text);
return {
id: 'core',
note: parsed.intro,
entries: parsed.entries.map((crate) => ({
name: crate.name,
version: crate.version,
license: crate.license,
repository: crate.repository,
noLicenseFile: crate.texts.length === 0,
load: async () => crate.texts.map(({ label, text }) => (label ? `--- ${label} ---\n${text}` : text)).join('\n\n'),
})),
};
}
async function rendererGroup() {
const file = path.join(paths.vendorDir, 'THIRD_PARTY_NOTICES.txt');
let text;
try { text = await fsp.readFile(file, 'utf8'); } catch { return { id: 'renderer', error: missingError([file]), entries: [] }; }
const parsed = parseVendorNotices(text);
let fromRegistry = new Set();
try {
const deps = JSON.parse(await fsp.readFile(path.join(paths.vendorDir, 'DEPENDENCIES.json'), 'utf8'));
fromRegistry = new Set((deps.packages ?? []).filter((p) => typeof p.resolved === 'string' && p.resolved.startsWith('https://registry.npmjs.org/')).map((p) => `${p.name}@${p.version}`));
} catch { /* inventory without registry provenance: no links */ }
return {
id: 'renderer',
note: parsed.intro,
entries: parsed.entries.map((entry) => ({
name: entry.name,
version: entry.version,
license: entry.license,
repository: fromRegistry.has(`${entry.name}@${entry.version}`) ? `https://www.npmjs.com/package/${entry.name}/v/${entry.version}` : null,
load: async () => entry.text,
})),
};
}
async function buildIndex() {
const settle = (promise, id) => Promise.resolve().then(promise).catch(() => ({ id, error: { code: 'unreadable', file: id }, entries: [] }));
const results = await Promise.all([
settle(teamspeachGroup, 'teamspeach'),
settle(electronGroups, 'electron'),
settle(npmGroup, 'npm'),
settle(coreGroup, 'core'),
settle(rendererGroup, 'renderer'),
]);
const groups = results.flat().sort((a, b) => GROUP_ORDER.indexOf(a.id) - GROUP_ORDER.indexOf(b.id));
const byId = new Map();
for (const group of groups) {
group.entries.forEach((entry, i) => {
entry.id = `${group.id}:${i}`;
byId.set(entry.id, entry);
});
}
return { groups, byId };
}
async function ensureIndex() {
if (!index) index = buildIndex().catch((err) => { index = null; throw err; });
return index;
}
async function getLicenses() {
try {
const { groups } = await ensureIndex();
return {
ok: true,
groups: groups.map((group) => ({
id: group.id,
note: group.note ?? null,
error: group.error ?? null,
entries: group.entries.map(({ id, name, version, license, repository, noLicenseFile }) => ({ id, name, version, license, repository, noLicenseFile: noLicenseFile === true })),
})),
};
} catch {
return { ok: false, error: { code: 'unreadable', file: null } };
}
}
async function getLicenseText(id) {
if (typeof id !== 'string' || id.length > 64 || !/^[a-z]+:\d+$/.test(id)) return { ok: false, error: { code: 'bad_request', file: null } };
let entry;
try { entry = (await ensureIndex()).byId.get(id); } catch { entry = null; }
if (!entry) return { ok: false, error: { code: 'not_found', file: null } };
try {
return { ok: true, id, name: entry.name, version: entry.version, license: entry.license, text: await entry.load() };
} catch {
return { ok: false, error: { code: 'unreadable', file: null } };
}
}
return { getChangelog, getLicenses, getLicenseText, paths };
}
function registerInformationIpc({ ipcMain, trustedSender, service }) {
const forbidden = { ok: false, error: { code: 'forbidden', file: null } };
ipcMain.handle('about:changelog', (event) => (trustedSender(event) ? service.getChangelog() : forbidden));
ipcMain.handle('about:licenses', (event) => (trustedSender(event) ? service.getLicenses() : forbidden));
ipcMain.handle('about:license-text', (event, id) => (trustedSender(event) ? service.getLicenseText(id) : forbidden));
}
module.exports = {
parseChangelog,
parseCoreNotices,
parseVendorNotices,
parseChromiumCredits,
collectProductionPackages,
npmRepository,
informationPaths,
createInformationService,
registerInformationIpc,
};
+153 -22
View File
@@ -1,4 +1,5 @@
'use strict';
const { createAdminValidators } = require('./admin-validate');
/**
* Allowlist + argument-shape validation for renderer → core requests.
@@ -16,27 +17,27 @@ class ValidationError extends Error {
const CONTROL_CHARS = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/;
const str = (min, max, { multiline = false, maxBytes } = {}) => (value, key) => {
if (typeof value !== 'string') throw new ValidationError(`${key}: ожидалась строка`);
if (value.length < min || value.length > max) throw new ValidationError(`${key}: недопустимая длина`);
if (maxBytes !== undefined && Buffer.byteLength(value, 'utf8') > maxBytes) throw new ValidationError(`${key}: слишком длинно`);
if (typeof value !== 'string') throw new ValidationError(`${key}: expected a string`);
if (value.length < min || value.length > max) throw new ValidationError(`${key}: invalid length`);
if (maxBytes !== undefined && Buffer.byteLength(value, 'utf8') > maxBytes) throw new ValidationError(`${key}: too long`);
if (multiline ? CONTROL_CHARS.test(value) : /[\u0000-\u001f\u007f]/.test(value)) {
throw new ValidationError(`${key}: недопустимые управляющие символы`);
throw new ValidationError(`${key}: control characters are not allowed`);
}
return value;
};
const posInt = (value, key) => {
if (!Number.isSafeInteger(value) || value < 0) throw new ValidationError(`${key}: ожидалось целое число`);
if (!Number.isSafeInteger(value) || value < 0) throw new ValidationError(`${key}: expected a non-negative integer`);
return value;
};
const bool = (value, key) => {
if (typeof value !== 'boolean') throw new ValidationError(`${key}: ожидалось true/false`);
if (typeof value !== 'boolean') throw new ValidationError(`${key}: expected true/false`);
return value;
};
const oneOf = (...allowed) => (value, key) => {
if (!allowed.includes(value)) throw new ValidationError(`${key}: недопустимое значение`);
if (!allowed.includes(value)) throw new ValidationError(`${key}: value not allowed`);
return value;
};
@@ -53,15 +54,15 @@ function isPlainObject(value) {
function shape(spec) {
return (args) => {
if (args === undefined || args === null) args = {};
if (!isPlainObject(args)) throw new ValidationError('args: ожидался объект');
if (!isPlainObject(args)) throw new ValidationError('args: expected an object');
for (const key of Object.keys(args)) {
if (!Object.prototype.hasOwnProperty.call(spec, key)) throw new ValidationError(`${key}: неизвестный аргумент`);
if (!Object.prototype.hasOwnProperty.call(spec, key)) throw new ValidationError(`${key}: unknown argument`);
}
const out = {};
for (const [key, check] of Object.entries(spec)) {
const value = args[key];
if (value === undefined) {
if (!check.optional) throw new ValidationError(`${key}: обязательный аргумент`);
if (!check.optional) throw new ValidationError(`${key}: required argument`);
continue;
}
out[key] = check(value, key);
@@ -71,17 +72,19 @@ function shape(spec) {
}
const streamId = str(1, 256);
const SIGNAL_COMMANDS = new Set(['answer', 'iceCandidate']);
const SIGNAL_COMMANDS = new Set(['answer', 'iceCandidate', 'reconnectOffer']);
function signalJson(value) {
if (!isPlainObject(value)) throw new ValidationError('json: ожидался объект');
if (!isPlainObject(value)) throw new ValidationError('json: expected an object');
const keys = Object.keys(value);
if (keys.length !== 2 || !keys.includes('cmd') || !keys.includes('args')) throw new ValidationError('json: ожидались поля cmd и args');
if (!SIGNAL_COMMANDS.has(value.cmd)) throw new ValidationError('json.cmd: недопустимая команда сигнализации');
if (keys.length !== 2 || !keys.includes('cmd') || !keys.includes('args')) throw new ValidationError('json: expected exactly the fields cmd and args');
if (!SIGNAL_COMMANDS.has(value.cmd)) throw new ValidationError('json.cmd: signalling command not allowed');
const args = value.args;
if (!isPlainObject(args)) throw new ValidationError('json.args: ожидался объект');
if (!isPlainObject(args)) throw new ValidationError('json.args: expected an object');
if (value.cmd === 'answer') {
shape({ answer: str(1, 60000, { multiline: true }) })(args);
} else if (value.cmd === 'reconnectOffer') {
shape({ offer: str(1, 60000, { multiline: true }) })(args);
} else {
shape({
mLine: posInt,
@@ -90,11 +93,77 @@ function signalJson(value) {
})(args);
}
const serialized = JSON.stringify(value);
if (Buffer.byteLength(serialized, 'utf8') > 60 * 1024) throw new ValidationError('json: больше 60 КиБ');
if (Buffer.byteLength(serialized, 'utf8') > 60 * 1024) throw new ValidationError('json: larger than 60 KiB');
return JSON.parse(serialized);
}
const boundedInt = (min, max) => (value, key) => {
if (!Number.isSafeInteger(value) || value < min || value > max) throw new ValidationError(`${key}: integer out of range`);
return value;
};
const modifierDb = (value, key) => {
if (typeof value !== 'number' || !Number.isFinite(value) || value < -200 || value > 10 || !Number.isInteger(value * 2)) throw new ValidationError(`${key}: expected dB -200..10 in 0.5 steps`);
return value;
};
/** Server-side file path: absolute within the channel's file area ("/…"), no control characters. */
const filePath = (value, key) => {
str(1, 512)(value, key);
if (!value.startsWith('/')) throw new ValidationError(`${key}: expected a path starting with /`);
return value;
};
const channelPassword = str(0, 255);
const clientTarget = { client_id: boundedInt(1, 65535), uid: str(1, 128) };
const menuActionArgs = {
poke: { message: str(1, 1024, { maxBytes: 1024 }) },
connection_info: {}, commander: { enabled: bool },
move_to_own_channel: { password: optional(str(0, 1024, { maxBytes: 1024 })) },
delete_avatar: {},
server_group: { group_id: boundedInt(1, Number.MAX_SAFE_INTEGER), enabled: bool },
channel_group: { group_id: boundedInt(1, Number.MAX_SAFE_INTEGER), channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER) },
client_permissions: {}, channel_permissions: { channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER) },
set_client_permission: { permission_id: boundedInt(1, 0xffffffff), value: (v,k) => v === null ? null : boundedInt(-2147483648,2147483647)(v,k), skip: bool },
set_channel_permission: { channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), permission_id: boundedInt(1,0xffffffff), value: (v,k) => v === null ? null : boundedInt(-2147483648,2147483647)(v,k) },
kick_channel: { reason: str(0,1024,{ maxBytes:1024 }) },
kick_server: { reason: str(0,1024,{ maxBytes:1024 }) },
ban: { reason: str(0,1024,{ maxBytes:1024 }), duration: boundedInt(0,0xffffffff) },
volume: { db: modifierDb, muted: bool },
avatar: { data: (v,k) => {
str(1,174764)(v,k);
if (!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(v)) throw new ValidationError('avatar: invalid base64');
const bytes=Buffer.from(v,'base64');
if (bytes.length > 128*1024 || !(bytes.subarray(0,8).equals(Buffer.from([137,80,78,71,13,10,26,10])) || bytes.subarray(0,3).equals(Buffer.from([255,216,255])))) throw new ValidationError('avatar: expected PNG/JPEG <=128 KiB');
return v;
} },
};
function clientAction(args) {
if (!isPlainObject(args) || !Object.prototype.hasOwnProperty.call(menuActionArgs,args.action)) throw new ValidationError('action: unknown client action');
return shape({ ...clientTarget, generation: boundedInt(1,Number.MAX_SAFE_INTEGER), action: oneOf(args.action), ...menuActionArgs[args.action] })(args);
}
const streamMetadata = {
name: str(1, 200), type: oneOf(1, 2, 3), accessibility: oneOf(1, 2, 3), mode: oneOf(1),
bitrate: boundedInt(100, 100000), viewer_limit: boundedInt(0, 65535), audio: bool,
};
const boundedArray = (max, item) => (value, key) => {
if (!Array.isArray(value) || value.length > max) throw new ValidationError(`${key}: expected at most ${max} items`);
return value.map((v, i) => item(v, `${key}[${i}]`));
};
function whisperTarget(value, key) {
if (!isPlainObject(value)) throw new ValidationError(`${key}: expected an object`);
switch (value.kind) {
case 'list': return shape({ kind: oneOf('list'), entries: boundedArray(1024, shape({ type: boundedInt(0, 255), uuid: str(0, 256), name: str(0, 8192, { maxBytes: 8192 }) })) })(value);
case 'group': return shape({ kind: oneOf('group'), group_type: boundedInt(0, 3), target_mode: boundedInt(0, 6), group_id: str(0, 20), server_uuid: str(0, 256) })(value);
case 'ids': return shape({ kind: oneOf('ids'), clients: boundedArray(255, shape({ id: boundedInt(1, 65535), uid: (u, k) => u === null ? null : str(1, 128)(u, k) })), channel_ids: boundedArray(255, boundedInt(1, Number.MAX_SAFE_INTEGER)) })(value);
default: throw new ValidationError(`${key}.kind: expected list, group or ids`);
}
}
const COMMANDS = {
...createAdminValidators({ shape, bool, boundedInt, optional, oneOf, isPlainObject, ValidationError }),
whisper_start: shape({ epoch: boundedInt(1, 0xffffffff), target: whisperTarget }),
whisper_stop: shape({ epoch: boundedInt(1, 0xffffffff) }),
set_whisper_receive: shape({ mode: oneOf('allow_all', 'deny_all') }),
profile_get: shape({}),
profile_create: shape({ nickname: str(1, 64) }),
rename: shape({ nickname: str(1, 64) }),
@@ -103,6 +172,9 @@ const COMMANDS = {
server_password: optional(str(0, 255)),
channel: optional(str(1, 512)),
channel_password: optional(str(0, 255)),
identity_id: optional((v, k) => { if (typeof v !== 'string' || !/^[A-Za-z0-9+/]{27}=$/.test(v)) throw new ValidationError(`${k}: invalid identity UID`); return v; }),
// Per-connection override (bookmark nickname); same bound as rename, the core enforces 3-30 trimmed chars.
nickname: optional(str(1, 64)),
}),
disconnect: shape({ message: optional(str(0, 80)) }),
join_channel: shape({ channel_id: posInt, password: optional(str(0, 255)) }),
@@ -110,37 +182,96 @@ const COMMANDS = {
const out = shape({
target: oneOf('channel', 'server', 'client'),
client_id: optional(posInt),
expected_client_uid: optional(str(1, 128)),
message: str(1, 8192, { multiline: true, maxBytes: 8192 }),
})(args);
if ((out.target === 'client') !== (out.client_id !== undefined)) {
throw new ValidationError('client_id: обязателен только для личных сообщений');
throw new ValidationError('client_id: required for private messages only');
}
if ((out.target === 'client') !== (out.expected_client_uid !== undefined)) throw new ValidationError('expected_client_uid: required for private messages only');
return out;
},
set_audio: shape({ input_muted: optional(bool), output_muted: optional(bool) }),
set_transmit: (args) => {
const out = shape({ mode: oneOf('direct', 'vad'), detector: optional(oneOf('automatic', 'volume_gate', 'hybrid')), sensitivity: optional(oneOf('high', 'normal', 'low')), level_db: optional(boundedInt(-50, 50)) })(args);
if (out.mode === 'direct' && (out.detector !== undefined || out.sensitivity !== undefined || out.level_db !== undefined)) throw new ValidationError('set_transmit: detector, sensitivity and level_db apply to vad only');
return out;
},
set_playback_dsp: shape({ agc: bool }),
stream_list: shape({ client_id: optional(posInt) }),
stream_join: shape({ stream_id: streamId, client_id: posInt, message: optional(str(0, 200)) }),
stream_signal: shape({ stream_id: streamId, client_id: posInt, json: signalJson }),
stream_leave: shape({ stream_id: streamId, client_id: posInt }),
stream_setup: shape(streamMetadata),
stream_update: shape({ stream_id: streamId, ...streamMetadata }),
stream_stop: shape({ stream_id: streamId }),
stream_respond: (args) => {
const out = shape({ stream_id: streamId, client_id: boundedInt(1, 65535), decision: bool,
offer: str(0, 60000, { multiline: true, maxBytes: 60000 }), message: str(0, 200) })(args);
if (out.decision !== (out.offer.length > 0)) throw new ValidationError('offer: required only for acceptance');
return out;
},
stream_remove: shape({ stream_id: streamId, client_id: boundedInt(1, 65535) }),
fetch_icon: shape({
icon_id: (v, k) => {
if (!Number.isSafeInteger(v) || v <= 0 || v > 0xffffffff) throw new ValidationError(`${k}: ожидался идентификатор иконки`);
if (!Number.isSafeInteger(v) || v <= 0 || v > 0xffffffff) throw new ValidationError(`${k}: expected an icon id`);
return v;
},
}),
fetch_avatar: shape({ client_id: posInt }),
fetch_banner: shape({ channel_id: posInt }),
fetch_server_banner: shape({}),
client_context: shape(clientTarget),
client_action: clientAction,
// Local recording (core/src/recording_session.rs). The folder must be the one chosen in the main-owned
// folder dialog (recording-main.js); the renderer cannot name another directory.
recording_start: (args, context) => shape({
directory: (v, key) => {
const approved = context.approvedRecordingDirectory?.() ?? null;
if (typeof v !== 'string' || approved === null || v !== approved) throw new ValidationError(`${key}: folder was not chosen in the folder dialog`);
return v;
},
mode: oneOf(1, 2, 3),
label: optional(str(19, 19)),
})(args),
recording_stop: shape({}),
recording_pause: shape({}),
recording_resume: shape({}),
recording_status: shape({}),
recording_info: shape({}),
recording_waveform: shape({ track_id: posInt, from_bucket: posInt }),
// Server file browser (legacy file transfer). file_download/file_upload carry host paths and are main-only
// (files-main.js), so they are deliberately absent here.
file_list: shape({ channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), path: filePath, channel_password: optional(channelPassword) }),
file_mkdir: shape({ channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), path: filePath, channel_password: optional(channelPassword) }),
file_rename: shape({
channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), from: filePath, to: filePath, channel_password: optional(channelPassword),
target_channel_id: optional(boundedInt(1, Number.MAX_SAFE_INTEGER)), target_channel_password: optional(channelPassword),
}),
file_delete: shape({
channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER),
paths: (v, key) => {
if (!Array.isArray(v) || v.length < 1 || v.length > 100) throw new ValidationError(`${key}: expected 1-100 paths`);
return v.map((p, i) => filePath(p, `${key}[${i}]`));
},
channel_password: optional(channelPassword),
}),
file_cancel: shape({ transfer_id: boundedInt(1, 0xffffffff) }),
file_transfers: shape({}),
file_fetch_image: shape({ channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), path: filePath }),
};
/** Returns sanitized args or throws ValidationError. */
function validateRequest(cmd, args) {
/**
* Returns sanitized args or throws ValidationError. `context` supplies main-owned facts some commands are
* checked against (approvedRecordingDirectory()).
*/
function validateRequest(cmd, args, context = {}) {
if (typeof cmd !== 'string' || !Object.prototype.hasOwnProperty.call(COMMANDS, cmd)) {
const err = new ValidationError('Команда не разрешена');
const err = new ValidationError('Command not allowed');
err.code = 'unknown_command';
throw err;
}
return COMMANDS[cmd](args);
return COMMANDS[cmd](args, context);
}
module.exports = { validateRequest, ValidationError, RENDERER_COMMANDS: Object.keys(COMMANDS) };
+242
View File
@@ -0,0 +1,242 @@
'use strict';
/**
* Key binding schema (keybinds.json version 2): profiles, actions, binding sources, conflicts and the
* version 1 → 2 migration. Pure: no file system and no Electron, so it is unit-testable.
*
* Actions follow the official hotkey action enum (main.js 6.0.0 @2287523): every enum entry except
* "Unassigned" has an id here. `kind` is when it runs:
* hold – down starts, up ends (official up/down pair: Push-To-Talk, Push-To-Mute, the three whispers);
* press – runs on down only (official GoLiveCurrentFullscreen: down Activate, up Deactivate = no-op);
* trigger – runs once on release (official single-mode actions store only the `up` event).
* `group` is the official settings group (get_all @2290500); a group holds at most MAX_PER_GROUP bindings.
*
* A binding's source is physical: { code, ctrl, alt, shift, meta, global }: KeyboardEvent.code plus modifiers;
* global ones are registered with the `teamspeach-core hotkeys` helper, local ones work only in the focused window.
*/
const { randomUUID } = require('node:crypto');
const KEYBINDS_VERSION = 2;
const MAX_BINDINGS = 64; // per profile; also the helper's registration limit
const MAX_PROFILES = 32;
const MAX_PER_GROUP = 6; // official max_hotkeys_for_action (c3V = 6)
const PROFILE_NAME_MAX = 64;
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
const CONTROL = /[\u0000-\u001f\u007f]/;
const KEY_CODE = /^[A-Za-z0-9]{1,32}$/;
const MODIFIER_CODES = new Set(['ControlLeft', 'ControlRight', 'AltLeft', 'AltRight', 'ShiftLeft', 'ShiftRight', 'MetaLeft', 'MetaRight', 'OSLeft', 'OSRight']);
/** id → { kind, group, official }. Group order below is the settings order. */
const ACTIONS = Object.freeze({
push_to_talk: { kind: 'hold', group: 'push_to_talk', official: 'Push-To-Talk' },
push_to_mute: { kind: 'hold', group: 'push_to_mute', official: 'Push-To-Mute' },
microphone_toggle: { kind: 'trigger', group: 'microphone', official: 'Toggle Microphone Mute' },
microphone_mute: { kind: 'trigger', group: 'microphone', official: 'Microphone Mute' },
microphone_unmute: { kind: 'trigger', group: 'microphone', official: 'Microphone Unmute' },
speaker_toggle: { kind: 'trigger', group: 'speaker', official: 'Toggle Speaker Mute' },
speaker_mute: { kind: 'trigger', group: 'speaker', official: 'Speaker Mute' },
speaker_unmute: { kind: 'trigger', group: 'speaker', official: 'Speaker Unmute' },
away_toggle: { kind: 'trigger', group: 'away', official: 'Toggle Away Status' },
away_online: { kind: 'trigger', group: 'away', official: 'Set Online' },
away_set: { kind: 'trigger', group: 'away', official: 'Set Away' },
away_toggle_message: { kind: 'trigger', group: 'away', official: 'Toggle Away Status with Message' },
reply_whisper: { kind: 'hold', group: 'reply_whisper', official: 'Reply to the last user that whispered you' },
quick_whisper: { kind: 'hold', group: 'quick_whisper', official: 'Whisper to the currently selected items in the servertree' },
whisper_list: { kind: 'hold', group: 'whisper_list', official: 'Whisper to a set list', target: 'whisper_list' },
go_live_current: { kind: 'press', group: 'go_live_current', official: 'Go Live with current Fullscreen App' },
recording_start: { kind: 'trigger', group: 'recording_start', official: 'Start Recording' },
recording_stop: { kind: 'trigger', group: 'recording_stop', official: 'Stop Recording' },
recording_toggle_pause: { kind: 'trigger', group: 'recording_toggle_pause', official: 'Pause or Resume Recording' },
disconnect_current: { kind: 'trigger', group: 'disconnect', official: 'Disconnect from Current Server' },
disconnect_all: { kind: 'trigger', group: 'disconnect', official: 'Disconnect from All Servers' },
talk_power_request: { kind: 'trigger', group: 'talk_power', official: 'Request Talk Power' },
talk_power_grant_next: { kind: 'trigger', group: 'talk_power', official: 'Grant Next User Talk Power' },
});
const fail = (message) => { throw new Error(message); };
const isObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
const onlyKeys = (v, keys) => Object.keys(v).every((k) => keys.includes(k));
const text = (v, min, max) => typeof v === 'string' && v.length >= min && v.length <= max && !CONTROL.test(v);
function normalizeId(id) {
const value = id === undefined || id === '' ? randomUUID() : id;
if (typeof value !== 'string' || !UUID.test(value)) fail('id: expected a UUID');
return value.toLowerCase();
}
/**
* Returns a normalized binding or throws naming the bad field. A whisper_list target may be '' or a list
* that no longer exists: like the official resolveTarget the row then asks for a list and does nothing.
*/
function normalizeBinding(b) {
if (!isObject(b) || !onlyKeys(b, ['id', 'action', 'target', 'code', 'ctrl', 'alt', 'shift', 'meta', 'global'])) fail('binding: unknown field');
const id = normalizeId(b.id);
const spec = ACTIONS[b.action];
if (!spec) fail('action: unknown');
const target = b.target ?? '';
if (spec.target === 'whisper_list') {
if (typeof target !== 'string' || (target !== '' && !UUID.test(target))) fail('target: expected a whisper list UUID');
} else if (target !== '') fail('target: only whisper_list has a target');
if (typeof b.code !== 'string' || !KEY_CODE.test(b.code) || MODIFIER_CODES.has(b.code)) fail('code: invalid key');
for (const m of ['ctrl', 'alt', 'shift', 'meta', 'global']) {
if (typeof (b[m] ?? false) !== 'boolean') fail(`${m}: expected true/false`);
}
return { id, action: b.action, target: target.toLowerCase(), code: b.code, ctrl: Boolean(b.ctrl), alt: Boolean(b.alt), shift: Boolean(b.shift), meta: Boolean(b.meta), global: b.global !== false };
}
function normalizeProfileName(name) {
if (typeof name !== 'string') fail('name: expected text');
const trimmed = name.trim();
if (!text(trimmed, 1, PROFILE_NAME_MAX)) fail(`name: 1-${PROFILE_NAME_MAX} characters`);
return trimmed;
}
/** Bindings of one profile; `previous` (same profile before the change) lets migrated groups keep >6 rows. */
function normalizeBindings(raw, previous = []) {
if (!Array.isArray(raw) || raw.length > MAX_BINDINGS) fail(`bindings: at most ${MAX_BINDINGS}`);
const next = raw.map(normalizeBinding);
if (new Set(next.map((b) => b.id)).size !== next.length) fail('bindings: duplicate id');
const count = (list) => list.reduce((m, b) => m.set(ACTIONS[b.action].group, (m.get(ACTIONS[b.action].group) ?? 0) + 1), new Map());
const before = count(previous);
for (const [group, n] of count(next)) {
if (n > Math.max(MAX_PER_GROUP, before.get(group) ?? 0)) fail(`bindings: at most ${MAX_PER_GROUP} per action`);
}
return next;
}
function normalizeProfile(p) {
if (!isObject(p) || !onlyKeys(p, ['id', 'name', 'bindings'])) fail('profile: unknown field');
const id = normalizeId(p.id);
const name = normalizeProfileName(p.name);
const bindings = [];
let dropped = 0;
for (const raw of Array.isArray(p.bindings) ? p.bindings.slice(0, MAX_BINDINGS) : []) {
try {
const b = normalizeBinding(raw);
if (!bindings.some((x) => x.id === b.id)) bindings.push(b);
} catch {
dropped += 1;
}
}
return { profile: { id, name, bindings }, dropped };
}
/**
* Loads a parsed store (version 1 or 2) into the v2 shape. Version 1 `{ bindings }` becomes one active
* profile named `defaultProfileName` holding every valid binding unchanged (ids, chords, global flag,
* targets); `requireExactMatch` is true because version 1 always matched exactly. A version 1 file without
* valid bindings becomes "No Profile" (the official first-run state). Fresh stores default to the official
* unchecked toggle (captured settings-keybinds: "Hotkeys will trigger even when other keys are pressed.").
*/
function loadStore(data, { defaultProfileName = 'Default' } = {}) {
const empty = { requireExactMatch: false, activeProfile: null, profiles: [] };
if (!data) return { state: empty, dropped: 0, migrated: false };
if (data.version === 1) {
const { profile, dropped } = normalizeProfile({ id: '', name: defaultProfileName, bindings: data.bindings });
if (profile.bindings.length === 0) return { state: { ...empty, requireExactMatch: true }, dropped, migrated: true };
return { state: { requireExactMatch: true, activeProfile: profile.id, profiles: [profile] }, dropped, migrated: true };
}
let dropped = 0;
const profiles = [];
for (const raw of Array.isArray(data.profiles) ? data.profiles.slice(0, MAX_PROFILES) : []) {
try {
const r = normalizeProfile(raw);
dropped += r.dropped;
if (!profiles.some((p) => p.id === r.profile.id)) profiles.push(r.profile);
} catch {
dropped += 1;
}
}
const active = typeof data.activeProfile === 'string' ? data.activeProfile.toLowerCase() : null;
return {
state: {
requireExactMatch: data.requireExactMatch === true,
activeProfile: profiles.some((p) => p.id === active) ? active : (profiles[0]?.id ?? null),
profiles,
},
dropped,
migrated: false,
};
}
const chordKey = (b) => `${b.ctrl ? 'C' : ''}${b.alt ? 'A' : ''}${b.shift ? 'S' : ''}${b.meta ? 'M' : ''}+${b.code}`;
/**
* Bindings that cannot work as stored: the same chord twice, a plain chord on the Audio
* push-to-talk key (voice.js handles that key itself), or a whisper_list row without an existing list.
*/
function conflicts(bindings, pttCode, listIds = null) {
const out = [];
const byChord = new Map();
for (const b of bindings) {
const key = chordKey(b);
const other = byChord.get(key);
if (other) {
out.push({ id: b.id, reason: 'duplicate', with: other.id });
if (!out.some((c) => c.id === other.id && c.reason === 'duplicate')) out.push({ id: other.id, reason: 'duplicate', with: b.id });
} else byChord.set(key, b);
if (pttCode && b.action !== 'push_to_talk' && b.code === pttCode && !b.ctrl && !b.alt && !b.shift && !b.meta) out.push({ id: b.id, reason: 'ptt' });
if (listIds && ACTIONS[b.action]?.target === 'whisper_list' && !listIds.has(b.target)) out.push({ id: b.id, reason: 'select_list' });
}
return out;
}
const MODIFIER_BITS = [['ctrl', 1], ['alt', 2], ['shift', 4], ['meta', 8]];
const maskOf = (b) => MODIFIER_BITS.reduce((m, [k, bit]) => (b[k] ? m | bit : m), 0);
const popcount = (m) => (m & 1) + ((m >> 1) & 1) + ((m >> 2) & 1) + ((m >> 3) & 1);
/**
* Registrations for the global helper. Windows RegisterHotKey and X11 XGrabKey only fire on the exact
* modifier set, so "Require exact key match" off is realised by also registering the chord with extra
* modifiers. Every binding's own chord comes first; extra-modifier variants follow by fewest added
* modifiers while the helper limit allows, never taking a chord another binding uses exactly. Variant
* ids are `<id>~<mask>`; `variantOf` maps each registered id back to its binding id.
*/
function expandRegistrations(bindings, { exact, limit = MAX_BINDINGS } = {}) {
const regs = [];
const variantOf = new Map();
const taken = new Set();
for (const b of bindings.slice(0, limit)) {
regs.push(b);
variantOf.set(b.id, b.id);
taken.add(chordKey(b));
}
let wanted = 0;
if (!exact) {
const extras = [];
for (let mask = 1; mask < 16; mask += 1) extras.push(mask);
extras.sort((a, b) => popcount(a) - popcount(b) || a - b);
for (const extra of extras) {
for (const b of bindings) {
if (maskOf(b) & extra) continue;
const variant = { ...b, id: `${b.id}~${extra}` };
for (const [k, bit] of MODIFIER_BITS) if (extra & bit) variant[k] = true;
const key = chordKey(variant);
if (taken.has(key)) continue;
wanted += 1;
if (regs.length >= limit) continue;
taken.add(key);
regs.push(variant);
variantOf.set(variant.id, b.id);
}
}
}
return { registrations: regs, variantOf, variants: { wanted, registered: regs.length - Math.min(bindings.length, limit) } };
}
module.exports = {
KEYBINDS_VERSION,
MAX_BINDINGS,
MAX_PROFILES,
MAX_PER_GROUP,
ACTIONS,
UUID,
normalizeBinding,
normalizeBindings,
normalizeProfileName,
loadStore,
conflicts,
chordKey,
expandRegistrations,
};
+352 -171
View File
@@ -2,13 +2,13 @@
const path = require('node:path');
const fs = require('node:fs');
const { execFile } = require('node:child_process');
const {
app, BrowserWindow, ipcMain, protocol, session, nativeTheme, dialog, Menu, shell, clipboard,
app, BrowserWindow, ipcMain, protocol, session, nativeTheme, dialog, Menu, shell, clipboard, desktopCapturer, nativeImage, net, safeStorage,
} = require('electron');
// A disposable profile directory for tests/second instances. Set by whoever launches the app, never by the renderer.
const profileOverride = process.env.TEAMSPEACH_PROFILE_DIR;
const normalUserData = app.getPath('userData');
if (profileOverride) {
if (!path.isAbsolute(profileOverride)) {
console.error('TEAMSPEACH_PROFILE_DIR must be an absolute path');
@@ -16,28 +16,71 @@ if (profileOverride) {
}
app.setPath('userData', profileOverride);
}
// Automated UI checks must not steal focus from the owner's desktop.
if (process.env.TEAMSPEACH_TEST_OFFSCREEN === '1' && (!profileOverride || path.resolve(profileOverride).toLowerCase() === path.resolve(normalUserData).toLowerCase())) {
console.error('Offscreen tests require a separate absolute disposable profile');
process.exit(2);
}
const testOffscreen = Boolean(profileOverride) && process.env.TEAMSPEACH_TEST_OFFSCREEN === '1';
if (testOffscreen) {
// Tests may replace these with fixture answers; never open a native dialog from a hidden run.
for (const name of ['showOpenDialog', 'showSaveDialog', 'showMessageBox']) dialog[name] = async () => { throw new Error('Native dialogs are disabled in offscreen tests'); };
}
const { RENDERER_DIR, resolveCoreBinary, dataDir, logsDir, prefsFile } = require('./paths');
const { CoreProcess } = require('./core-process');
const { APP_ROOT, RENDERER_DIR, resolveCoreBinary, dataDir, logsDir, prefsFile } = require('./paths');
const { ConnectionManager } = require('./connections');
const { validateRequest } = require('./ipc-validate');
const { permissionCheckAllowed, permissionRequestAllowed } = require('./permissions');
const { CaptureController } = require('./capture');
const { AppAudioController } = require('./appaudio-main');
// Same switch the core uses for its own verbosity (see docs/bridge.md).
const RENDERER_DEBUG_LOG = /\b(debug|trace)\b/.test(process.env.TEAMSPEACH_LOG ?? '');
const { Prefs } = require('./prefs');
const { createUpdateService } = require('./updates');
const { titlebarOptions, registerTitlebarIpc, bindTitlebar } = require('./titlebar');
const i18n = require('../renderer/shared/i18n.js');
const themes = require('./themes');
const { registerChatIpc } = require('./chat-main');
const { registerRecordingIpc, approvedRecordingDirectory } = require('./recording-main');
const { registerFilesIpc } = require('./files-main');
const { registerOsSettings, defaultIconPath } = require('./os-settings-main');
const { registerIdentityIpc } = require('./identities');
const { registerClientVolumesIpc } = require('./client-volumes');
const { registerWhisperIpc } = require('./whisper-main');
const { registerServerSnapshotsIpc } = require('./server-snapshots');
const { registerStreamPopout } = require('./stream-popout-main');
const { PhishingList, registerPhishingIpc } = require('./phishing-list');
const { trustedHostsUpdateError } = require('./privacy-prefs');
const { createInformationService, registerInformationIpc } = require('./information-panels');
const { BadgeCatalog, registerBadgesIpc, officialBadgeCacheDirs } = require('./badges');
const { registerServerIconsIpc } = require('./server-icons');
const { registerBookmarkIpc } = require('./bookmark-secrets');
const APP_SCHEME = 'app';
const APP_HOST = 'teamspeach';
const APP_ORIGIN = `${APP_SCHEME}://${APP_HOST}`;
const MERMAID_FRAME_PATH = '/mermaid-frame.html';
const MERMAID_FRAME_CSP = [
"default-src 'none'",
`script-src ${APP_ORIGIN}/vendor/mermaid/mermaid.min.js ${APP_ORIGIN}/js/markdown/mermaid-frame.js`,
"style-src 'unsafe-inline'", 'img-src data: blob:', "connect-src 'none'",
"base-uri 'none'", "form-action 'none'", "frame-src 'none'", "object-src 'none'",
`frame-ancestors ${APP_ORIGIN}`, 'sandbox allow-scripts',
].join('; ');
const MERMAID_FRAME_PERMISSIONS = 'camera=(), microphone=(), display-capture=(), geolocation=(), fullscreen=(), clipboard-read=(), clipboard-write=(), autoplay=(), usb=(), serial=(), hid=(), midi=(), screen-wake-lock=(), encrypted-media=(), picture-in-picture=(), publickey-credentials-get=()';
const CSP = [
"default-src 'none'",
"script-src 'self'",
"style-src 'self'",
"img-src 'self' data: blob:",
"script-src 'self' 'wasm-unsafe-eval'",
"style-src 'self' tsext:",
"img-src 'self' data: blob: tsext:",
"media-src 'self' blob: mediastream:",
"font-src 'self'",
"connect-src 'none'",
"font-src 'self' tsext:",
"connect-src 'self'",
"worker-src 'self'",
"base-uri 'none'",
"form-action 'none'",
"frame-src 'none'",
`frame-src ${APP_ORIGIN}${MERMAID_FRAME_PATH}`,
"frame-ancestors 'none'",
"object-src 'none'",
].join('; ');
@@ -49,7 +92,10 @@ const MIME = {
'.svg': 'image/svg+xml',
'.png': 'image/png',
'.woff2': 'font/woff2',
'.ttf': 'font/ttf',
'.json': 'application/json',
'.wasm': 'application/wasm',
'.wav': 'audio/wav',
};
// Chromium hides host candidates behind mDNS names when the page has no capture permission.
@@ -63,11 +109,22 @@ if (!hardwareVideoDecodeAtLaunch) app.commandLine.appendSwitch('disable-accelera
protocol.registerSchemesAsPrivileged([
{ scheme: APP_SCHEME, privileges: { standard: true, secure: true, supportFetchAPI: true, codeCache: true } },
themes.SCHEME_PRIVILEGE,
]);
let mainWindow = null;
let core = null;
let connections = null;
let prefs = null;
let capture = null;
let appAudio = null;
let themeService = null;
let osSettings = null;
let identities = null;
let whisperIpc = null;
let filesController = null;
let streamPopout = null;
let phishingList = null;
let badgeCatalog = null;
const gotInstanceLock = app.requestSingleInstanceLock();
if (!gotInstanceLock) {
@@ -81,8 +138,7 @@ if (!gotInstanceLock) {
});
}
let coreStatus = { status: 'starting' };
let connectionState = 'disconnected';
let updates = null;
let quitting = false;
let rendererLog = null;
let rendererLogBudget = { windowStart: 0, count: 0 };
@@ -92,87 +148,92 @@ function isAppUrl(url) {
}
function trustedSender(event) {
return Boolean(mainWindow && event.sender === mainWindow.webContents && event.senderFrame && isAppUrl(event.senderFrame.url));
return Boolean(mainWindow && event.sender === mainWindow.webContents && event.senderFrame && event.senderFrame === mainWindow.webContents.mainFrame && isAppUrl(event.senderFrame.url));
}
function sendToRenderer(channel, payload) {
if (mainWindow && !mainWindow.isDestroyed()) mainWindow.webContents.send(channel, payload);
}
// ---------- core lifecycle ----------
// ---------- server connections (one core process each) ----------
function startCore() {
const binary = resolveCoreBinary();
if (!binary.path) {
coreStatus = { status: 'missing', candidates: binary.candidates };
sendToRenderer('core:status', coreStatus);
return;
}
fs.mkdirSync(logsDir(), { recursive: true });
core = new CoreProcess({
binary: binary.path,
dataDir: dataDir(),
logFile: path.join(logsDir(), 'core.log'),
});
core.on('status', (status) => {
coreStatus = { ...status, binary: binary.path };
if (status.status !== 'ready') connectionState = 'disconnected';
sendToRenderer('core:status', coreStatus);
});
core.on('event', onCoreEvent);
core.start();
function sendConnections(list) {
sendToRenderer('connections:changed', { connections: list, input: connections.inputId });
}
function onCoreEvent(evt) {
function startConnections() {
fs.mkdirSync(logsDir(), { recursive: true });
connections = new ConnectionManager({ resolveBinary: resolveCoreBinary, dataDir: dataDir(), logsDir: logsDir() });
connections.on('status', (id, status) => {
if (status.status !== 'ready') onConnectionInactive(id);
sendToRenderer('core:status', { ...status, connectionId: id });
});
connections.on('event', onCoreEvent);
connections.on('changed', sendConnections);
// The first server tab exists from the start, like the official client's initial connection tab.
connections.create();
}
/** Media that belonged to a connection's server session is no longer reachable through it. */
function onConnectionInactive(id) {
externalMedia.delete(id);
filesController?.onClosed(id);
// Capture and app audio serve the one outgoing share; once no connection is active nothing can publish.
if (!connections.anyActive()) {
appAudio?.stopAll();
capture?.cancel();
}
}
function onCoreEvent(id, evt) {
filesController?.onEvent(id, evt);
if (evt.event === 'audio') {
if (typeof evt.pcm !== 'string') return;
const pcm = Buffer.from(evt.pcm, 'base64');
if (pcm.length !== 1920) return;
sendToRenderer('core:audio', { pcm, speakers: Array.isArray(evt.speakers) ? evt.speakers : [] });
sendToRenderer('core:audio', { connectionId: id, pcm, speakers: Array.isArray(evt.speakers) ? evt.speakers : [] });
return;
}
if (evt.event === 'state' && typeof evt.state === 'string') connectionState = evt.state;
if (evt.event === 'state' && evt.state === 'disconnected') externalMedia.clear();
if (evt.event === 'state' && (evt.state === 'disconnected' || evt.state === 'connecting')) onConnectionInactive(id);
if (evt.event === 'snapshot' && Array.isArray(evt.clients)) {
for (const c of evt.clients) {
if (Array.isArray(c.myts_avatars)) for (const v of c.myts_avatars) allowExternalMedia(v && v.url);
if (Array.isArray(c.myts_avatars)) for (const v of c.myts_avatars) allowExternalMedia(id, v && v.url);
}
}
sendToRenderer('core:event', evt);
sendToRenderer('core:event', { ...evt, connectionId: id });
}
async function restartCore() {
if (core) {
const old = core;
core = null;
await old.stop();
old.removeAllListeners();
}
startCore();
// ---------- shared profile ----------
// Only these go through profile:request; `rename` on a connection is a normal per-connection core:request.
const PROFILE_COMMANDS = new Set(['profile_get', 'profile_create', 'rename']);
const PROFILE_ONLY_COMMANDS = new Set(['profile_get', 'profile_create']);
/**
* Profile commands have one explicit owner instead of "whichever tab is on screen":
* - profile_get / profile_create: the oldest connection core that is ready (creation order); it reports the
* profile's default identity. Creating the identity is additionally single-writer in the core
* (profile.lock + re-check), so a second creator fails with profile_exists.
* - rename: saves the profile nickname WITHOUT renaming on any server, so it is only sent to a ready core that
* is not connected. Renaming on a server is the per-connection `rename` (core:request) and affects only that
* server; nothing ever renames on all servers implicitly.
*/
async function profileRequest(cmd, args) {
const ready = Array.from(connections.entries.values()).filter((e) => e.core && e.status.status === 'ready');
if (ready.length === 0) return { ok: false, error: { code: 'core_unavailable', message: 'The core is not running' } };
if (cmd !== 'rename') return connections.request(ready[0].id, cmd, args);
const idle = ready.find((e) => e.state === 'disconnected');
if (!idle) return { ok: false, error: { code: 'connected', message: 'Every server tab is connected; rename on a server instead' } };
return connections.request(idle.id, cmd, args);
}
function runCoreCli(args) {
const binary = resolveCoreBinary();
if (!binary.path) return Promise.resolve({ ok: false, error: { code: 'core_missing', message: 'Исполняемый файл ядра не найден' } });
return new Promise((resolve) => {
execFile(binary.path, args, { windowsHide: true, timeout: 30000, maxBuffer: 1024 * 1024 }, (err, stdout, stderr) => {
if (stderr) appendLog('core-cli.log', stderr);
const line = String(stdout || '').trim().split(/\r?\n/).filter(Boolean).pop();
let parsed = null;
try {
parsed = line ? JSON.parse(line) : null;
} catch {
parsed = null;
}
if (parsed && typeof parsed === 'object') {
resolve(parsed.ok ? { ok: true, uid: parsed.uid } : { ok: false, error: parsed.error || { code: 'internal', message: 'Неизвестная ошибка' } });
return;
}
resolve({ ok: false, error: { code: 'internal', message: err ? err.message : 'Ядро не вернуло результат' } });
});
});
async function onIdentityChanged() {
// Vault edits affect future connections; active server nicknames change only through explicit rename.
const profile = await profileRequest('profile_get');
if (profile.ok) sendToRenderer('profile:changed', profile.result);
}
function appendLog(file, text) {
try {
fs.mkdirSync(logsDir(), { recursive: true });
@@ -185,11 +246,12 @@ function appendLog(file, text) {
// ---------- external images announced by the server (http/https only) ----------
const EXTERNAL_MEDIA_LIMIT = 4 * 1024 * 1024;
const externalMedia = new Set();
/** connection id → URLs announced by that connection's server. */
const externalMedia = new Map();
let mediaSession = null;
/** Only URLs the core reported from server data may be fetched; the renderer cannot add its own. */
function allowExternalMedia(url) {
/** Only URLs a core reported from server data may be fetched; the renderer cannot add its own. */
function allowExternalMedia(id, url) {
if (typeof url !== 'string' || url.length > 2048) return;
try {
const u = new URL(url);
@@ -197,10 +259,13 @@ function allowExternalMedia(url) {
} catch {
return;
}
if (externalMedia.size >= 512) externalMedia.clear();
externalMedia.add(url);
let urls = externalMedia.get(id);
if (!urls) externalMedia.set(id, (urls = new Set()));
if (urls.size >= 512) urls.clear();
urls.add(url);
}
function sniffImage(b) {
if (b.length >= 8 && b.readUInt32BE(0) === 0x89504e47) return 'image/png';
if (b.length >= 3 && b[0] === 0xff && b[1] === 0xd8 && b[2] === 0xff) return 'image/jpeg';
@@ -210,9 +275,10 @@ function sniffImage(b) {
return null;
}
async function fetchExternalMedia(url) {
if (typeof url !== 'string' || !externalMedia.has(url)) {
return { ok: false, error: { code: 'forbidden', message: 'Адрес не был объявлен сервером' } };
async function fetchExternalMedia(connectionId, url) {
const allowed = externalMedia.get(connectionId);
if (typeof url !== 'string' || !allowed?.has(url)) {
return { ok: false, error: { code: 'forbidden', message: 'The server did not announce this address' } };
}
if (!mediaSession) mediaSession = session.fromPartition('teamspeach-media', { cache: true });
const controller = new AbortController();
@@ -231,17 +297,18 @@ async function fetchExternalMedia(url) {
size += value.byteLength;
if (size > EXTERNAL_MEDIA_LIMIT) {
controller.abort();
return { ok: false, error: { code: 'media_too_large', message: 'Изображение больше 4 МиБ' } };
return { ok: false, error: { code: 'media_too_large', message: 'Image larger than 4 MiB' } };
}
chunks.push(Buffer.from(value));
}
const bytes = Buffer.concat(chunks);
// Servers mislabel images (e.g. text/plain); trust only the bytes.
const mime = sniffImage(bytes);
if (!mime) return { ok: false, error: { code: 'media_unsupported', message: 'Не изображение' } };
if (externalMedia.get(connectionId) !== allowed) return { ok: false, error: { code: 'connection_closed', message: 'The server session ended' } };
if (!mime) return { ok: false, error: { code: 'media_unsupported', message: 'Not an image' } };
return { ok: true, result: { mime, bytes: bytes.length, data: bytes.toString('base64') } };
} catch (err) {
return { ok: false, error: { code: 'io', message: err.name === 'AbortError' ? 'Истекло время загрузки' : err.message } };
return { ok: false, error: { code: 'io', message: err.name === 'AbortError' ? 'Download timed out' : err.message } };
} finally {
clearTimeout(timer);
}
@@ -249,61 +316,43 @@ async function fetchExternalMedia(url) {
// ---------- identity backup (main-only, native dialogs) ----------
async function exportIdentity() {
const result = await dialog.showSaveDialog(mainWindow, {
title: 'Экспорт идентичности TeamsPeach',
defaultPath: path.join(app.getPath('documents'), 'teamspeach-identity.ini'),
filters: [{ name: 'Идентичность TeamSpeak', extensions: ['ini'] }],
properties: ['showOverwriteConfirmation', 'createDirectory'],
});
if (result.canceled || !result.filePath) return { ok: false, canceled: true };
const outcome = await runCoreCli(['identity', 'export', '--data-dir', dataDir(), '--out', result.filePath]);
if (outcome.ok && process.platform !== 'win32') {
try {
fs.chmodSync(result.filePath, 0o600);
} catch (err) {
appendLog('core-cli.log', `chmod failed: ${err.message}`);
}
}
return outcome.ok ? { ok: true, uid: outcome.uid, file: path.basename(result.filePath) } : outcome;
/** Native dialog text in the user's interface language. */
function tr(key, params) {
return i18n.t(key, params, prefs.get().language);
}
async function importIdentity() {
if (connectionState !== 'disconnected') {
return { ok: false, error: { code: 'connected', message: 'Сначала отключитесь от сервера' } };
}
const identityExists = fs.existsSync(path.join(dataDir(), 'identity.json'));
if (identityExists) {
const confirm = await dialog.showMessageBox(mainWindow, {
type: 'warning',
title: 'Заменить идентичность?',
message: 'Импорт заменит текущую идентичность.',
detail: 'Текущий UID будет потерян, если у вас нет его резервной копии. Серверные права и группы привязаны к UID.',
buttons: ['Отмена', 'Выбрать файл и заменить'],
defaultId: 0,
cancelId: 0,
noLink: true,
});
if (confirm.response !== 1) return { ok: false, canceled: true };
}
async function chooseAvatar() {
const pick = await dialog.showOpenDialog(mainWindow, {
title: 'Импорт идентичности',
filters: [{ name: 'Идентичность TeamSpeak', extensions: ['ini'] }, { name: 'Все файлы', extensions: ['*'] }],
title: tr('native.avatar.title'),
filters: [{ name: tr('native.avatar.filter'), extensions: ['png', 'jpg', 'jpeg'] }],
properties: ['openFile'],
});
if (pick.canceled || pick.filePaths.length !== 1) return { ok: false, canceled: true };
const old = core;
core = null;
if (old) {
await old.stop();
old.removeAllListeners();
if (pick.canceled || pick.filePaths.length !== 1) return { ok: true, canceled: true };
let file;
try {
file = await fs.promises.open(pick.filePaths[0], 'r');
const stat = await file.stat();
const limit = 128 * 1024;
if (!stat.isFile() || stat.size === 0 || stat.size > limit) throw new Error(tr('native.avatar.invalid'));
// Read at most the validated size plus one byte, even if the selected file changes while open.
const data = Buffer.alloc(stat.size + 1);
let size = 0;
while (size < data.length) {
const { bytesRead } = await file.read(data, size, data.length - size, null);
if (!bytesRead) break;
size += bytesRead;
}
const image = data.subarray(0, size);
const png = image.length >= 8 && image.toString('latin1', 0, 8) === '\x89PNG\r\n\x1a\n';
const jpeg = image.length >= 3 && image[0] === 0xff && image[1] === 0xd8 && image[2] === 0xff;
if (size !== stat.size || (!png && !jpeg)) throw new Error(tr('native.avatar.invalid'));
return { ok: true, data: image.toString('base64') };
} catch {
return { ok: false, error: { code: 'invalid_avatar', message: tr('native.avatar.invalid') } };
} finally {
if (file) await file.close();
}
const args = ['identity', 'import', '--data-dir', dataDir(), '--in', pick.filePaths[0]];
if (identityExists) args.push('--replace');
const outcome = await runCoreCli(args);
startCore();
return outcome;
}
// ---------- window ----------
@@ -315,10 +364,13 @@ function createWindow() {
minWidth: 880,
minHeight: 560,
show: false,
...(testOffscreen ? { focusable: false } : {}),
title: 'TeamsPeach',
backgroundColor: nativeTheme.shouldUseDarkColors ? '#1a1817' : '#f6f3f0',
...titlebarOptions(process.platform, nativeTheme.shouldUseDarkColors),
backgroundColor: nativeTheme.shouldUseDarkColors ? '#141b27' : '#e9edf2',
icon: path.join(__dirname, '..', 'renderer', 'assets', 'icon.png'),
webPreferences: {
...(testOffscreen ? { offscreen: true, backgroundThrottling: false, paintWhenInitiallyHidden: true } : {}),
preload: path.join(__dirname, '..', 'preload', 'preload.js'),
contextIsolation: true,
sandbox: true,
@@ -330,8 +382,18 @@ function createWindow() {
devTools: !app.isPackaged || process.env.TEAMSPEACH_DEVTOOLS === '1',
},
});
mainWindow.once('ready-to-show', () => mainWindow.show());
if (testOffscreen) mainWindow.webContents.setAudioMuted(true);
streamPopout.attach(mainWindow);
bindTitlebar(mainWindow, nativeTheme);
osSettings.attachWindow(mainWindow);
// Hide-to-tray on close (official os settings) is decided first; only a real close continues below.
mainWindow.on('close', (event) => {
if (osSettings.interceptClose(event)) return;
});
if (!testOffscreen) mainWindow.once('ready-to-show', () => mainWindow.show());
mainWindow.on('closed', () => {
appAudio?.stopAll();
capture?.cancel();
mainWindow = null;
});
mainWindow.loadURL(`${APP_ORIGIN}/index.html`);
@@ -358,7 +420,8 @@ function registerProtocol() {
status: 200,
headers: {
'Content-Type': type,
'Content-Security-Policy': CSP,
'Content-Security-Policy': rel === MERMAID_FRAME_PATH ? MERMAID_FRAME_CSP : CSP,
...(rel === MERMAID_FRAME_PATH ? { 'Permissions-Policy': MERMAID_FRAME_PERMISSIONS } : {}),
'X-Content-Type-Options': 'nosniff',
'Cross-Origin-Opener-Policy': 'same-origin',
'Referrer-Policy': 'no-referrer',
@@ -372,15 +435,15 @@ function registerProtocol() {
function hardenSession() {
const ses = session.defaultSession;
// Electron passes origins as "app://teamspeach/"; the policy normalises them (see permissions.js).
ses.setPermissionRequestHandler((_wc, permission, callback, details) => {
const mediaTypes = details && Array.isArray(details.mediaTypes) ? details.mediaTypes : [];
const audioOnly = mediaTypes.length > 0 && mediaTypes.every((t) => t === 'audio');
callback(permission === 'media' && audioOnly && isAppUrl(details.requestingUrl));
callback(!testOffscreen && details?.isMainFrame !== false && (permissionRequestAllowed(permission, details, APP_ORIGIN) || capture.permissionRequestAllowed(_wc, permission, details)));
});
ses.setPermissionCheckHandler((_wc, permission, requestingOrigin) => {
return (permission === 'media' || permission === 'speaker-selection') && requestingOrigin === APP_ORIGIN;
ses.setPermissionCheckHandler((_wc, permission, requestingOrigin, details) => {
return !testOffscreen && permissionCheckAllowed(permission, requestingOrigin, details, APP_ORIGIN);
});
ses.setDisplayMediaRequestHandler((_request, callback) => callback({}));
if (testOffscreen) ses.setDisplayMediaRequestHandler((_request, callback) => callback(null));
else capture.install(ses);
}
app.on('web-contents-created', (_event, contents) => {
@@ -397,42 +460,107 @@ app.on('web-contents-created', (_event, contents) => {
// ---------- IPC ----------
function registerIpc() {
ipcMain.handle('core:request', async (event, cmd, args) => {
registerInformationIpc({ ipcMain, trustedSender, service: createInformationService({ isPackaged: app.isPackaged,
appRoot: APP_ROOT, appPath: app.getAppPath(), resourcesPath: process.resourcesPath, execPath: process.execPath,
rendererDir: RENDERER_DIR, platform: process.platform, arch: process.arch, electronVersion: process.versions.electron }) });
registerTitlebarIpc(ipcMain, () => mainWindow, APP_ORIGIN);
capture.registerIpc(ipcMain, (event) => !testOffscreen && trustedSender(event));
appAudio.registerIpc(ipcMain, (event) => !testOffscreen && trustedSender(event));
themeService.registerIpc(ipcMain, trustedSender);
registerChatIpc(ipcMain, { trustedSender, getWindow: () => mainWindow, baseDir: path.join(app.getPath('userData'), 'chat-history'), testOffscreen, shell, nativeImage, app });
registerRecordingIpc({ ipcMain, trustedSender, dialog, getWindow: () => mainWindow, testOffscreen, testProfileDir: testOffscreen ? profileOverride : null, prefs });
filesController = registerFilesIpc({ ipcMain, trustedSender, dialog, shell, clipboard, getWindow: () => mainWindow, request: (id, cmd, args) => connections.request(id, cmd, args), validConnectionId: (id) => ConnectionManager.validId(id), getConnectionEpoch: (id) => { const entry = connections.get(id); return entry?.state === 'connected' ? entry.session : null; }, settingsPath: path.join(app.getPath('userData'), 'files-settings.json'), testOffscreen, testProfileDir: testOffscreen ? profileOverride : null, tr });
osSettings = registerOsSettings({ ipcMain, trustedSender, getWindow: () => mainWindow, testOffscreen, prefs, translate: (k) => i18n.t(k, {}, prefs.get().language), iconPath: defaultIconPath() });
registerClientVolumesIpc({ ipcMain, trustedSender, connections, file: path.join(path.dirname(prefsFile()), 'client-volumes.json'), log: (level, message) => appendLog('main.log', `${level}: ${message}`) });
identities = registerIdentityIpc({ ipcMain, trustedSender, getWindow: () => mainWindow, resolveCoreBinary, dataDir, dialog, tr, sendToRenderer, onChanged: onIdentityChanged });
whisperIpc = registerWhisperIpc({ ipcMain, trustedSender, getWindow: () => mainWindow, userDataDir: app.getPath('userData'), resolveBinary: () => resolveCoreBinary().path, testOffscreen, getPttCode: () => prefs.get().pttCode, defaultProfileName: tr('keybind.profile.default') });
phishingList = new PhishingList({ cacheFile: path.join(app.getPath('userData'), 'phishing-domains.json'),
fetchImpl: (url, init) => net.fetch(url, init), enabled: !testOffscreen,
log: (level, message) => appendLog('main.log', `${level}: ${message}`) });
registerPhishingIpc({ ipcMain, trustedSender, list: phishingList });
phishingList.start();
badgeCatalog = new BadgeCatalog({ cacheDir: path.join(app.getPath('userData'), 'badges'),
fetchImpl: (url, init) => net.fetch(url, init), enabled: !testOffscreen,
officialCacheDirs: testOffscreen ? [] : officialBadgeCacheDirs(),
log: (level, message) => appendLog('main.log', `${level}: ${message}`) });
registerBadgesIpc({ ipcMain, trustedSender, catalog: badgeCatalog });
const bookmarkService = registerBookmarkIpc({ ipcMain, trustedSender, prefs, safeStorage, platform: process.platform,
getConnection: (id) => connections.get(id), request: (id, cmd, args) => connections.request(id, cmd, args), testOffscreen });
registerServerIconsIpc({ ipcMain, trustedSender, dialog, nativeImage, getWindow: () => mainWindow,
request: (id, cmd, args) => ['file_upload', 'file_download'].includes(cmd) ? filesController.requestTransfer(id, cmd, args) : connections.request(id, cmd, args),
validConnectionId: (id) => ConnectionManager.validId(id), getConnection: (id) => connections.get(id),
subscribeCore: (listener) => { connections.on('event', listener); return () => connections.off('event', listener); }, testOffscreen, tr });
registerServerSnapshotsIpc({ ipcMain, trustedSender, dialog, getWindow: () => mainWindow, request: (id, cmd, args) => ['file_upload', 'file_download'].includes(cmd) ? filesController.requestTransfer(id, cmd, args) : connections.request(id, cmd, args), validConnectionId: (id) => ConnectionManager.validId(id), getConnection: (id) => connections.get(id), subscribeCore: (listener) => { connections.on('event', listener); return () => connections.off('event', listener); }, testOffscreen, tr });
streamPopout = registerStreamPopout({ ipcMain, BrowserWindow, getWindow: () => mainWindow, trustedSender, appOrigin: APP_ORIGIN, getConnection: (id) => connections.get(id), testOffscreen });
ipcMain.handle('core:request', async (event, connectionId, cmd, args) => {
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
if (!ConnectionManager.validId(connectionId)) return { ok: false, error: { code: 'bad_request', message: 'Invalid server connection' } };
if (PROFILE_ONLY_COMMANDS.has(cmd)) return { ok: false, error: { code: 'bad_request', message: 'Profile commands go through profile:request' } };
if (testOffscreen && cmd === 'connect') return { ok: false, error: { code: 'test_safety', message: 'Real server connections are disabled in offscreen tests' } };
let clean;
try {
clean = validateRequest(cmd, args, { approvedRecordingDirectory: () => approvedRecordingDirectory(prefs) });
} catch (err) {
return { ok: false, error: { code: err.code || 'bad_request', message: err.message } };
}
const hasArgs = Object.keys(clean).length > 0;
const entry = connections.get(connectionId);
const epoch = entry?.session;
const core = entry?.core;
const response = await connections.request(connectionId, cmd, hasArgs ? clean : undefined);
if (!response.ok && response.error.code === 'external_media' && response.error.detail && connections.get(connectionId) === entry && entry?.session === epoch && entry?.core === core) {
const detail = response.error.detail;
allowExternalMedia(connectionId, detail.url);
if (Array.isArray(detail.urls)) for (const v of detail.urls) allowExternalMedia(connectionId, v && v.url);
}
return response;
});
// The profile (identity + nickname) is shared by every connection core; see profileRequest().
ipcMain.handle('profile:request', async (event, cmd, args) => {
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
if (!PROFILE_COMMANDS.has(cmd)) return { ok: false, error: { code: 'unknown_command', message: 'Command not allowed' } };
let clean;
try {
clean = validateRequest(cmd, args);
} catch (err) {
return { ok: false, error: { code: err.code || 'bad_request', message: err.message } };
}
if (!core) return { ok: false, error: { code: 'core_unavailable', message: 'Ядро не запущено' } };
const hasArgs = Object.keys(clean).length > 0;
const response = await core.request(cmd, hasArgs ? clean : undefined);
if (!response.ok && response.error.code === 'external_media' && response.error.detail) {
const detail = response.error.detail;
allowExternalMedia(detail.url);
if (Array.isArray(detail.urls)) for (const v of detail.urls) allowExternalMedia(v && v.url);
}
return response;
return profileRequest(cmd, Object.keys(clean).length > 0 ? clean : undefined);
});
ipcMain.on('core:audio-frame', (event, frame) => {
if (!core || !trustedSender(event)) return;
// Captured voice: routed by main to the selected input connection only (connections.setInput).
ipcMain.on('core:audio-frame', (event, frame, whisper) => {
if (!trustedSender(event)) return;
if (!(frame instanceof Uint8Array) || frame.byteLength !== 1920) return;
core.sendAudio('audio_frame', { pcm: Buffer.from(frame.buffer, frame.byteOffset, frame.byteLength).toString('base64') });
if (whisper !== undefined && !(Number.isInteger(whisper) && whisper >= 1 && whisper <= 0xffffffff)) return;
connections.sendAudioFrame(Buffer.from(frame.buffer, frame.byteOffset, frame.byteLength).toString('base64'), whisper);
});
ipcMain.on('core:audio-end', (event) => {
if (!core || !trustedSender(event)) return;
core.sendAudio('audio_end');
if (!trustedSender(event)) return;
connections.endAudio();
});
ipcMain.handle('core:status', (event) => (trustedSender(event) ? coreStatus : null));
ipcMain.handle('connections:list', (event) => (trustedSender(event) ? { connections: connections.list(), input: connections.inputId } : null));
ipcMain.handle('connections:create', (event) => (trustedSender(event) ? connections.create() : { ok: false, error: { code: 'forbidden', message: 'forbidden' } }));
ipcMain.handle('connections:close', (event, connectionId) => {
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
if (!ConnectionManager.validId(connectionId)) return { ok: false, error: { code: 'bad_request', message: 'Invalid server connection' } };
// The official client always keeps one connection tab; the last one is reused, never closed.
if (connections.entries.size <= 1) return { ok: false, error: { code: 'last_connection', message: 'The last server tab cannot be closed' } };
onConnectionInactive(connectionId);
return connections.close(connectionId);
});
ipcMain.handle('connections:set-input', (event, connectionId) => {
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
if (connectionId !== null && !ConnectionManager.validId(connectionId)) return { ok: false, error: { code: 'bad_request', message: 'Invalid server connection' } };
return connections.setInput(connectionId);
});
ipcMain.handle('core:restart', async (event) => {
if (!trustedSender(event)) return false;
await restartCore();
return true;
ipcMain.handle('core:restart', async (event, connectionId) => {
if (!trustedSender(event) || !ConnectionManager.validId(connectionId)) return false;
return (await connections.restart(connectionId)).ok;
});
ipcMain.handle('app:info', (event) => {
@@ -444,8 +572,8 @@ function registerIpc() {
platform: process.platform,
arch: process.arch,
packaged: app.isPackaged,
coreVersion: core ? core.coreVersion : null,
coreBinary: coreStatus.binary || null,
coreVersion: Array.from(connections.entries.values()).find((e) => e.core?.coreVersion)?.core.coreVersion ?? null,
coreBinary: resolveCoreBinary().path || null,
dataDir: dataDir(),
logsDir: logsDir(),
};
@@ -454,22 +582,26 @@ function registerIpc() {
ipcMain.handle('prefs:get', (event) => (trustedSender(event) ? prefs.get() : null));
ipcMain.handle('prefs:set', (event, partial) => {
if (!trustedSender(event)) return { ok: false };
// Main-only: set by the recording folder dialog (recording-main.js), never by the renderer.
if (partial && typeof partial === 'object' && Object.hasOwn(partial, 'recordingFolder')) return { ok: false, message: 'prefs: recordingFolder is chosen in the folder dialog' };
const trustError = trustedHostsUpdateError(prefs.get(), partial, (host) => phishingList.has(host));
if (trustError) return { ok: false, message: trustError };
try {
const next = prefs.set(partial);
const next = prefs.set(bookmarkService.protectPrefsPatch(partial));
if (partial && Object.prototype.hasOwnProperty.call(partial, 'theme')) nativeTheme.themeSource = next.theme;
if (Object.hasOwn(partial, 'pttCode')) whisperIpc?.refreshBindings();
return { ok: true, prefs: next };
} catch (err) {
return { ok: false, message: err.message };
}
});
ipcMain.handle('identity:export', (event) => (trustedSender(event) ? exportIdentity() : { ok: false }));
ipcMain.handle('identity:import', (event) => (trustedSender(event) ? importIdentity() : { ok: false }));
ipcMain.handle('avatar:choose', (event) => (trustedSender(event) ? chooseAvatar() : { ok: false, error: { code: 'forbidden', message: 'forbidden' } }));
ipcMain.handle('media:external', (event, url) => (trustedSender(event) ? fetchExternalMedia(url) : { ok: false }));
ipcMain.handle('media:external', (event, connectionId, url) => (trustedSender(event) ? fetchExternalMedia(connectionId, url) : { ok: false }));
ipcMain.handle('clipboard:write', (event, text) => {
if (!trustedSender(event) || typeof text !== 'string' || text.length > 4096) return false;
if (!trustedSender(event) || testOffscreen || typeof text !== 'string' || text.length > 4096) return false;
clipboard.writeText(text);
return true;
});
@@ -480,14 +612,14 @@ function registerIpc() {
});
ipcMain.handle('app:relaunch', (event) => {
if (!trustedSender(event)) return false;
if (!trustedSender(event) || testOffscreen) return false;
app.relaunch();
app.quit();
return true;
});
ipcMain.handle('app:open-logs', async (event) => {
if (!trustedSender(event)) return false;
if (!trustedSender(event) || testOffscreen) return false;
fs.mkdirSync(logsDir(), { recursive: true });
return (await shell.openPath(logsDir())) === '';
});
@@ -498,6 +630,8 @@ function registerIpc() {
if (now - rendererLogBudget.windowStart > 1000) rendererLogBudget = { windowStart: now, count: 0 };
if (++rendererLogBudget.count > 40) return;
const lvl = ['debug', 'info', 'warn', 'error'].includes(level) ? level : 'info';
// Per-burst voice diagnostics are debug level: written only when started with TEAMSPEACH_LOG=debug|trace.
if (lvl === 'debug' && !RENDERER_DEBUG_LOG) return;
if (!rendererLog) {
fs.mkdirSync(logsDir(), { recursive: true });
rendererLog = fs.createWriteStream(path.join(logsDir(), 'renderer.log'), { flags: 'a' });
@@ -515,17 +649,64 @@ app.whenReady().then(() => {
// Explicit theme choice drives Chromium's prefers-color-scheme; 'system' follows the OS.
nativeTheme.themeSource = prefs.get().theme;
registerProtocol();
themeService = themes.createThemeService({
root: themes.extensionsDir(app.getPath('userData')),
appOrigin: APP_ORIGIN,
prefs,
openPath: (dir) => shell.openPath(dir),
openExternal: (url) => shell.openExternal(url),
allowShell: !testOffscreen,
});
themeService.registerProtocol(protocol);
appAudio = new AppAudioController({
resolveBinary: () => resolveCoreBinary().path,
getWindow: () => mainWindow,
trustedFrame: (frame) => Boolean(capture?.trustedFrame(frame)),
});
capture = new CaptureController({
desktopCapturer, getWindow: () => mainWindow, appOrigin: APP_ORIGIN,
onSelected: (selection) => appAudio.authorizeSelection(selection.frame, selection.sourceId),
onCaptureGranted: (selection) => appAudio.confirmSelection(selection.frame),
});
hardenSession();
// Before IPC and the window exist, so no renderer request can find the manager missing.
startConnections();
registerIpc();
createWindow();
startCore();
if (process.env.TEAMSPEACH_TEST_HOLD_WINDOW === '1') {
// Test harness only (scripts/lib/electron-app.mjs with --exe): Playwright cannot inject its startup loader
// into a packaged app, and attaching while the first page commits loses its utility world, so the harness
// attaches first and then creates the window through this hook.
globalThis.__teamspeachCreateWindow = () => {
delete globalThis.__teamspeachCreateWindow;
createWindow();
};
} else {
createWindow();
}
// Updates come only from published releases of the public repo; nothing installs without a click.
updates = createUpdateService({
prefs,
isSessionActive: () => connections.anyActive(),
send: (state) => sendToRenderer('update:state', state),
...(testOffscreen ? { openExternal: async () => { throw new Error('External applications are disabled in offscreen tests'); } } : {}),
});
updates.registerIpc(ipcMain, trustedSender);
updates.start();
});
app.on('window-all-closed', () => app.quit());
app.on('before-quit', (event) => {
if (quitting || !core || !core.running) return;
osSettings?.markQuitting();
identities?.shutdown();
whisperIpc?.dispose();
phishingList?.stop();
badgeCatalog?.stop();
streamPopout?.dispose();
appAudio?.stopAll();
capture?.cancel();
if (quitting || !connections || !connections.running) return;
event.preventDefault();
quitting = true;
core.stop().finally(() => app.quit());
connections.stopAll().finally(() => app.quit());
});
+189
View File
@@ -0,0 +1,189 @@
'use strict';
const path = require('node:path');
const { app, Menu, Notification, Tray, powerMonitor } = require('electron');
/**
* Official Settings → OS Specific (settings.os.windows.*), account-free: Start with the OS, flash the taskbar on
* messages / pokes, hide in the taskbar on minimize or close (with a tray icon to come back), mute the microphone
* while the computer is locked; plus the "Server Private Chat" system notification.
*
* Every item is explicit opt-in (all defaults off) and reports what the platform API actually supports:
* - autostart: Electron app.setLoginItemSettings exists on Windows and macOS only; installed builds only (a dev
* run would register the Electron binary). The OS login item is the source of truth, never a stored pref.
* - lock events: powerMonitor 'lock-screen' / 'unlock-screen' are emitted on Windows and macOS only.
* - setSkipTaskbar: Windows and Linux (no-op on macOS, where the Dock is not a taskbar).
* In TEAMSPEACH_TEST_OFFSCREEN nothing native is touched: no login item, tray, flash or notification.
*/
const HIDE_MODES = new Set(['never', 'minimize', 'close', 'both']);
function capabilities({ testOffscreen }) {
const platform = process.platform;
const loginItems = platform === 'win32' || platform === 'darwin';
const autoStart = testOffscreen
? { supported: false, reason: 'test_mode' }
: !loginItems
? { supported: false, reason: 'platform' }
: !app.isPackaged
? { supported: false, reason: 'not_packaged' }
: { supported: true, enabled: Boolean(app.getLoginItemSettings().openAtLogin) };
return {
platform,
autoStart,
flashFrame: { supported: !testOffscreen },
hideInTaskbar: { supported: !testOffscreen && (platform === 'win32' || platform === 'linux') },
lockMute: { supported: !testOffscreen && (platform === 'win32' || platform === 'darwin') },
notifications: { supported: !testOffscreen && Notification.isSupported() },
};
}
/**
* @param {object} o
* @param {Electron.IpcMain} o.ipcMain
* @param {(event) => boolean} o.trustedSender
* @param {() => Electron.BrowserWindow | null} o.getWindow
* @param {boolean} o.testOffscreen
* @param {{ get(): object }} o.prefs
* @param {(key: string) => string} o.translate main-side translator for tray labels
* @param {string} o.iconPath tray icon file
* @returns {{ attachWindow(win): void, interceptClose(event): boolean, markQuitting(): void }}
*/
function registerOsSettings({ ipcMain, trustedSender, getWindow, testOffscreen, prefs, translate, iconPath }) {
let tray = null;
let quitting = false;
let lockListenersOn = false;
const caps = () => capabilities({ testOffscreen });
const hideMode = () => (HIDE_MODES.has(prefs.get().osHideInTaskbar) ? prefs.get().osHideInTaskbar : 'never');
function showWindow() {
const win = getWindow();
if (!win || win.isDestroyed()) return;
win.setSkipTaskbar(false);
if (win.isMinimized()) win.restore();
win.show();
win.focus();
}
function ensureTray() {
if (tray || testOffscreen) return;
tray = new Tray(iconPath);
tray.setToolTip('TeamsPeach');
tray.setContextMenu(Menu.buildFromTemplate([
{ label: translate('os.tray.show'), click: showWindow },
{ type: 'separator' },
{ label: translate('os.tray.quit'), click: () => { quitting = true; app.quit(); } },
]));
tray.on('click', showWindow);
}
function dropTrayIfUnused() {
if (tray && hideMode() === 'never') {
const win = getWindow();
if (win && !win.isDestroyed()) {
win.setSkipTaskbar(false);
if (!win.isVisible()) win.show();
}
tray.destroy();
tray = null;
}
}
function updateLockListeners() {
const want = !testOffscreen && caps().lockMute.supported && prefs.get().osMuteWhenLocked === true;
if (want === lockListenersOn) return;
lockListenersOn = want;
if (want) {
powerMonitor.on('lock-screen', onLock);
powerMonitor.on('unlock-screen', onUnlock);
} else {
powerMonitor.off('lock-screen', onLock);
powerMonitor.off('unlock-screen', onUnlock);
}
}
function send(locked) {
const win = getWindow();
if (win && !win.isDestroyed()) win.webContents.send('os:lock', locked);
}
function onLock() { send(true); }
function onUnlock() { send(false); }
const forbidden = { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
ipcMain.handle('os:capabilities', (event) => (trustedSender(event) ? caps() : null));
ipcMain.handle('os:set-autostart', (event, enabled) => {
if (!trustedSender(event)) return forbidden;
if (typeof enabled !== 'boolean') return { ok: false, error: { code: 'bad_request', message: 'expected true/false' } };
const c = caps().autoStart;
if (!c.supported) return { ok: false, error: { code: 'unsupported', message: c.reason } };
try {
app.setLoginItemSettings({ openAtLogin: enabled });
return { ok: true, enabled: Boolean(app.getLoginItemSettings().openAtLogin) };
} catch (error) {
return { ok: false, error: { code: 'os_error', message: String(error.message ?? error) } };
}
});
// Called by the renderer after it saved osHideInTaskbar / osMuteWhenLocked, so main applies them at once.
ipcMain.handle('os:apply', (event) => {
if (!trustedSender(event)) return forbidden;
updateLockListeners();
dropTrayIfUnused();
return { ok: true };
});
ipcMain.handle('os:flash', (event, kind) => {
if (!trustedSender(event) || testOffscreen) return false;
const p = prefs.get();
const allowed = (kind === 'message' && p.osFlashOnMessage === true) || (kind === 'poke' && p.osFlashOnPoke === true);
const win = getWindow();
if (!allowed || !win || win.isDestroyed() || win.isFocused()) return false;
win.flashFrame(true);
win.once('focus', () => { if (!win.isDestroyed()) win.flashFrame(false); });
return true;
});
ipcMain.handle('os:notify', (event, title, body, kind = 'private') => {
if (!trustedSender(event) || testOffscreen) return false;
if (kind !== 'private' && kind !== 'channel') return false;
const preference = kind === 'channel' ? 'systemNotifyChannelChat' : 'systemNotifyServerPrivate';
if (prefs.get()[preference] !== true || !Notification.isSupported()) return false;
if (typeof title !== 'string' || typeof body !== 'string' || title.length > 200) return false;
const win = getWindow();
if (win && !win.isDestroyed() && win.isFocused()) return false;
const n = new Notification({ title, body: body.slice(0, 500), silent: true });
n.on('click', showWindow);
n.show();
return true;
});
updateLockListeners();
return {
attachWindow(win) {
if (testOffscreen) return;
win.on('minimize', () => {
if (!['minimize', 'both'].includes(hideMode()) || !caps().hideInTaskbar.supported) return;
ensureTray();
win.setSkipTaskbar(true);
});
win.on('restore', () => win.setSkipTaskbar(false));
win.on('show', () => win.setSkipTaskbar(false));
},
/** Call first in the window 'close' handler; true = the window was hidden instead of closed. */
interceptClose(event) {
if (quitting || !['close', 'both'].includes(hideMode()) || !caps().hideInTaskbar.supported) return false;
const win = getWindow();
if (!win || win.isDestroyed()) return false;
ensureTray();
event.preventDefault();
win.hide();
return true;
},
markQuitting() { quitting = true; },
};
}
module.exports = { registerOsSettings, capabilities, HIDE_MODES, defaultIconPath: () => path.join(__dirname, '..', 'renderer', 'assets', 'icon.png') };
+48
View File
@@ -0,0 +1,48 @@
'use strict';
/**
* Permission policy for the app's own origin. Electron reports origins as a URL spec with a trailing
* slash ("app://teamspeach/"), so origins are compared after normalisation. Allowed: microphone capture
* on request, device enumeration and output selection on check, and HTML full screen on request (the
* stream player; Electron asks the request handler before entering it). Camera, screen capture and every
* other permission stay denied.
*/
// WHATWG URL reports "null" as the origin of non-special schemes such as app:, so the origin is rebuilt from
// the parsed protocol and host. Inputs with credentials or backslashes (lookalikes such as
// "app://teamspeach\@evil" or "app://teamspeach@evil") never match.
function normalizeOrigin(origin) {
if (typeof origin !== 'string' || origin.includes('\\')) return '';
let url;
try {
url = new URL(origin);
} catch {
return '';
}
if (url.username || url.password || !url.host) return '';
return `${url.protocol}//${url.host}`.toLowerCase();
}
function isAppOrigin(origin, appOrigin) {
return normalizeOrigin(origin) === appOrigin;
}
/** setPermissionCheckHandler: enumerateDevices labels/ids and setSinkId depend on this. */
function permissionCheckAllowed(permission, requestingOrigin, details, appOrigin) {
if (details?.isMainFrame === false) return false;
if (!isAppOrigin(requestingOrigin, appOrigin)) return false;
if (permission === 'media') return Boolean(details) && details.mediaType === 'audio';
return permission === 'speaker-selection';
}
/** setPermissionRequestHandler: getUserMedia for audio only, and full screen, from a page of the app. */
function permissionRequestAllowed(permission, details, appOrigin) {
if (details?.isMainFrame === false) return false;
if (!details || !isAppOrigin(details.requestingUrl, appOrigin)) return false;
if (permission === 'fullscreen') return true;
if (permission !== 'media') return false;
const types = Array.isArray(details.mediaTypes) ? details.mediaTypes : [];
return types.length > 0 && types.every((t) => t === 'audio');
}
module.exports = { normalizeOrigin, permissionCheckAllowed, permissionRequestAllowed };
+226
View File
@@ -0,0 +1,226 @@
'use strict';
/**
* Threat classification for external links, from the same source as the installed TS6 client's
* ExternalLinkGuard (client_ui/main.js class Ee): PHISHING_LIST_URLS = [PHISHING_LIST_URL], fetched at start
* and every FETCH_INTERVAL_MS (1 h), one domain per line, matched exactly against the link's lowercase
* hostname ("warn-malicious").
*
* Network policy (stricter than the official fetch):
* - one fixed public HTTPS URL, anonymous GET: no cookies or credentials, no referrer, no query, no
* identifiers; the request never contains a visited link — classification is a local Set lookup;
* - redirect:'error': the fixed endpoint is fetched directly and any redirect fails the request before a second
* request is made; the whole request is bounded by REQUEST_TIMEOUT_MS and MAX_BYTES, and a body with any
* non-domain line (other than blank or '#' comment lines) or over MAX_DOMAINS is rejected as a whole, so an
* error page mixed with domains can never replace a known good list;
* - stop() aborts an in-flight request and discards its result: no list or cache update after stop;
* - a failed refresh keeps the previous list; the last good list is cached in the profile so a restart
* while offline still classifies links;
* - disabled (no request, no cache) when the owner passes enabled=false, e.g. offscreen tests.
*/
const fs = require('node:fs');
const path = require('node:path');
const PHISHING_LIST_URL = 'https://files.teamspeak-services.com/client/phishing-domains/active.txt';
const FETCH_INTERVAL_MS = 60 * 60 * 1000;
const REQUEST_TIMEOUT_MS = 20000;
const MAX_BYTES = 16 * 1024 * 1024;
const MAX_DOMAINS = 1000000;
const CACHE_VERSION = 1;
// Lowercase DNS name as WHATWG URL serialises it (punycode for IDN); '_' occurs in real hostnames.
const LABEL = '[a-z0-9_](?:[a-z0-9_-]{0,61}[a-z0-9_])?';
const DOMAIN = new RegExp(`^(?=.{1,253}$)${LABEL}(?:\\.${LABEL})*$`);
const validDomain = (value) => typeof value === 'string' && DOMAIN.test(value);
class ListError extends Error {
constructor(code, message) { super(message); this.code = code; }
}
/** Text → Set of domains. Empty and '#' lines are skipped; any other non-domain line rejects the whole body. */
function parseList(text) {
const domains = new Set();
for (const line of text.split('\n')) {
const entry = line.trim().toLowerCase().replace(/\.$/, '');
if (!entry || entry.startsWith('#')) continue;
if (!validDomain(entry)) throw new ListError('bad-response', 'phishing list contains a line that is not a domain');
domains.add(entry);
if (domains.size > MAX_DOMAINS) throw new ListError('too-large', `phishing list has more than ${MAX_DOMAINS} domains`);
}
return { domains };
}
/** Reads at most `max` bytes; an abort (stop or timeout) cancels the body even if the stream ignores it. */
async function readBounded(res, max, signal) {
const declared = Number(res.headers?.get?.('content-length'));
if (Number.isFinite(declared) && declared > max) throw new ListError('too-large', 'phishing list response too large');
if (!res.body || typeof res.body.getReader !== 'function') {
const text = await res.text();
if (signal.aborted) throw signal.reason;
if (Buffer.byteLength(text) > max) throw new ListError('too-large', 'phishing list response too large');
return text;
}
const reader = res.body.getReader();
const chunks = [];
let total = 0;
const onAbort = () => { reader.cancel(signal.reason).catch(() => {}); };
signal.addEventListener('abort', onAbort, { once: true });
try {
for (;;) {
if (signal.aborted) throw signal.reason;
const { done, value } = await reader.read();
if (signal.aborted) throw signal.reason;
if (done) break;
total += value.byteLength;
if (total > max) {
await reader.cancel().catch(() => {});
throw new ListError('too-large', 'phishing list response too large');
}
chunks.push(Buffer.from(value.buffer, value.byteOffset, value.byteLength));
}
} finally {
signal.removeEventListener('abort', onAbort);
}
return Buffer.concat(chunks, total).toString('utf8');
}
class PhishingList {
/**
* @param {object} o
* @param {string} o.cacheFile profile file for the last good list
* @param {(url: string, init: object) => Promise<Response>} o.fetchImpl Electron net.fetch in the app
* @param {boolean} [o.enabled]
*/
constructor({ cacheFile, fetchImpl, enabled = true, now = Date.now, setIntervalImpl = setInterval, clearIntervalImpl = clearInterval, log = () => {} }) {
Object.assign(this, { cacheFile, fetchImpl, enabled, now, setIntervalImpl, clearIntervalImpl, log });
this.domains = new Set();
this.fetchedAt = null; // ms of the list in use (network or cache)
this.checkedAt = null; // ms of the last network attempt
this.fromCache = false;
this.error = null;
this.timer = null;
this.pending = null;
this.controller = null; // AbortController of the in-flight request
this.generation = 0; // bumped by stop(); results of an older generation are discarded
}
/** Exact hostname match, like the official `_phishingDomains.has(hostname)`. */
has(host) {
return typeof host === 'string' && this.domains.has(host.toLowerCase().replace(/\.$/, ''));
}
status() {
return {
enabled: this.enabled, source: PHISHING_LIST_URL, loaded: this.fetchedAt !== null, count: this.domains.size,
fetchedAt: this.fetchedAt, checkedAt: this.checkedAt, fromCache: this.fromCache, error: this.error,
};
}
start() {
if (!this.enabled || this.timer !== null) return;
this.loadCache();
void this.refresh();
this.timer = this.setIntervalImpl(() => { void this.refresh(); }, FETCH_INTERVAL_MS);
this.timer?.unref?.();
}
/** Ends the schedule, aborts an in-flight request and discards its result. refresh() may be called again later. */
stop() {
if (this.timer !== null) this.clearIntervalImpl(this.timer);
this.timer = null;
this.generation += 1;
this.controller?.abort(new ListError('stopped', 'phishing list refresh stopped'));
this.controller = null;
this.pending = null;
}
loadCache() {
try {
const stat = fs.statSync(this.cacheFile);
if (!stat.isFile() || stat.size > MAX_BYTES * 2) return;
const data = JSON.parse(fs.readFileSync(this.cacheFile, 'utf8'));
if (data?.version !== CACHE_VERSION || data.source !== PHISHING_LIST_URL || !Number.isFinite(data.fetchedAt)
|| !Array.isArray(data.domains) || data.domains.length > MAX_DOMAINS || !data.domains.every(validDomain)) return;
if (this.fetchedAt !== null && this.fetchedAt >= data.fetchedAt) return;
this.domains = new Set(data.domains);
this.fetchedAt = data.fetchedAt;
this.fromCache = true;
} catch {
// no cache yet, or unreadable: classification starts empty until the first fetch
}
}
/** Single-flight network refresh; never throws. Resolves to status(). */
refresh() {
if (!this.enabled) return Promise.resolve(this.status());
if (!this.pending) {
const pending = this.fetchOnce().finally(() => { if (this.pending === pending) this.pending = null; });
this.pending = pending;
}
return this.pending;
}
async fetchOnce() {
const generation = this.generation;
const stopped = () => generation !== this.generation;
const controller = new AbortController();
this.controller = controller;
const timer = setTimeout(() => controller.abort(new ListError('timeout', `phishing list: no answer in ${REQUEST_TIMEOUT_MS / 1000} s`)), REQUEST_TIMEOUT_MS);
timer.unref?.();
this.checkedAt = this.now();
try {
const res = await this.fetchImpl(PHISHING_LIST_URL, {
method: 'GET', signal: controller.signal, redirect: 'error', cache: 'no-store',
credentials: 'omit', referrerPolicy: 'no-referrer', headers: { Accept: 'text/plain' },
});
if (stopped()) return this.status();
// redirect:'error' already refuses redirects; a fetch implementation that followed one anyway is rejected.
if (res.redirected || (res.url && res.url !== PHISHING_LIST_URL)) throw new ListError('redirect', 'phishing list response did not come from the fixed endpoint');
if (!res.ok) throw new ListError('http', `phishing list: HTTP ${res.status}`);
const text = await readBounded(res, MAX_BYTES, controller.signal);
if (stopped()) return this.status();
const { domains } = parseList(text);
this.domains = domains;
this.fetchedAt = this.now();
this.fromCache = false;
this.error = null;
this.writeCache();
this.log('info', `phishing list: ${domains.size} domains`);
} catch (err) {
if (stopped()) return this.status();
const reason = controller.signal.aborted ? controller.signal.reason : null;
const code = err instanceof ListError ? err.code : reason instanceof ListError ? reason.code : 'network';
this.error = { code, message: String((reason instanceof ListError ? reason : err)?.message ?? err) };
this.log('warn', `phishing list: ${this.error.message} (keeping ${this.domains.size} known domains)`);
} finally {
clearTimeout(timer);
if (this.controller === controller) this.controller = null;
}
return this.status();
}
writeCache() {
try {
fs.mkdirSync(path.dirname(this.cacheFile), { recursive: true });
const tmp = `${this.cacheFile}.tmp`;
fs.writeFileSync(tmp, JSON.stringify({ version: CACHE_VERSION, source: PHISHING_LIST_URL, fetchedAt: this.fetchedAt, domains: [...this.domains] }));
fs.renameSync(tmp, this.cacheFile);
} catch (err) {
this.log('warn', `phishing list cache not written: ${err.message}`);
}
}
}
/** Renderer access: one exact-host lookup per external link, and the source state. */
function registerPhishingIpc({ ipcMain, trustedSender, list }) {
ipcMain.handle('privacy:link-threat', (event, host) => {
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
if (typeof host !== 'string' || host.length > 253) return { ok: false, error: { code: 'bad_request', message: 'Invalid host' } };
return { ok: true, malicious: list.has(host), loaded: list.status().loaded };
});
ipcMain.handle('privacy:threat-status', (event) => (trustedSender(event) ? { ok: true, status: list.status() } : { ok: false, error: { code: 'forbidden', message: 'forbidden' } }));
}
module.exports = { PhishingList, registerPhishingIpc, parseList, PHISHING_LIST_URL, FETCH_INTERVAL_MS, MAX_BYTES, MAX_DOMAINS };
+103 -25
View File
@@ -2,6 +2,13 @@
const fs = require('node:fs');
const path = require('node:path');
const { USER_STYLE_PREF } = require('./themes');
const { VOICE_SCHEMA, migrateVoicePrefs } = require('./voice-prefs');
const { PRIVACY_SCHEMA, migratePrivacyPrefs } = require('./privacy-prefs');
const { CHAT_SCHEMA } = require('./chat-prefs');
const { CONTACT_SCHEMA } = require('./contacts-prefs');
const bookmarks = require('../renderer/shared/bookmarks.js');
const LAYOUT_VERSION = 2;
/**
* UI preferences owned by main (identity/nickname live in the core data dir, never here).
@@ -9,34 +16,89 @@ const path = require('node:path');
*/
const SCHEMA = {
lastAddress: { default: '', check: (v) => typeof v === 'string' && v.length <= 255 && !/[\u0000-\u001f]/.test(v) },
transmitMode: { default: 'ptt', check: (v) => v === 'ptt' || v === 'open' },
...VOICE_SCHEMA,
...PRIVACY_SCHEMA,
pttCode: { default: 'F8', check: (v) => typeof v === 'string' && /^[A-Za-z0-9]{1,32}$/.test(v) },
inputDeviceId: { default: '', check: (v) => typeof v === 'string' && v.length <= 512 },
outputDeviceId: { default: '', check: (v) => typeof v === 'string' && v.length <= 512 },
echoCancellation: { default: true, check: (v) => typeof v === 'boolean' },
noiseSuppression: { default: true, check: (v) => typeof v === 'boolean' },
autoGainControl: { default: true, check: (v) => typeof v === 'boolean' },
voiceVolume: { default: 100, check: (v) => Number.isInteger(v) && v >= 0 && v <= 200 },
hardwareVideoDecode: { default: true, check: (v) => typeof v === 'boolean' },
streamVolume: { default: 100, check: (v) => Number.isInteger(v) && v >= 0 && v <= 100 },
theme: { default: 'system', check: (v) => v === 'system' || v === 'dark' || v === 'light' },
// Quick-access servers: name + address only. Passwords are never stored.
savedServers: { default: [], check: validServers },
streamStageRatio: { default: 0.55, check: (v) => typeof v === 'number' && Number.isFinite(v) && v >= 0.15 && v <= 0.8 },
streamStageCollapsed: { default: false, check: (v) => typeof v === 'boolean' },
// Zero retains the responsive default; the renderer clamps saved pixels to the current window.
sidebarWidth: { default: 0, check: (v) => Number.isInteger(v) && v >= 0 && v <= 1600 },
// Server pane width in px (official main slot); zero keeps the official default 500 px.
serverPaneWidth: { default: 0, check: (v) => Number.isInteger(v) && v >= 0 && v <= 1600 },
collapsedChannels: { default: [], check: validCollapsedChannels },
savedServersCollapsed: { default: false, check: (v) => typeof v === 'boolean' },
// Dark by default for new profiles regardless of the OS (owner's request); a stored valid choice —
// including 'system' or 'light' — is always kept.
theme: { default: 'dark', check: (v) => v === 'system' || v === 'dark' || v === 'light' },
displaySize: { default: 'medium', check: (v) => ['small', 'medium', 'large'].includes(v) },
treeStyle: { default: 'detailed', check: (v) => ['compact', 'detailed'].includes(v) },
chatStyle: { default: 'detailed', check: (v) => ['compact', 'detailed'].includes(v) },
sidebarIconMode: { default: 'adaptive', check: (v) => ['adaptive', 'small', 'large'].includes(v) },
showCountryFlags: { default: false, check: (v) => typeof v === 'boolean' },
showChannelBanners: { default: true, check: (v) => typeof v === 'boolean' },
showChannelBackground: { default: true, check: (v) => typeof v === 'boolean' },
showClientsBeforeChannels: { default: true, check: (v) => typeof v === 'boolean' },
channelCommanderAsLamp: { default: true, check: (v) => typeof v === 'boolean' },
// Updater: 'preview' accepts prereleases (all TeamsPeach releases so far), 'stable' only full releases.
updateChannel: { default: 'preview', check: (v) => v === 'preview' || v === 'stable' },
// Interface language: English for new profiles (owner's request); a stored valid choice is kept.
language: { default: 'en', check: (v) => v === 'en' || v === 'ru' },
// Bookmarks: a local identity UID, containing folder and connect options (nickname, initial channel,
// startup connect/mute). Passwords are only ever stored as OS-encrypted ciphertext written by
// bookmark-secrets.js; the shape rules live in shared/bookmarks.js.
savedServers: { default: [], check: bookmarks.validServers },
// Local bookmark folders (official Bookmarks "New Folder") and the shared display order of folders and
// bookmarks. Cross-field rules (references, cycles, depth, order permutation) live in shared/bookmarks.js.
bookmarkFolders: { default: [], check: bookmarks.validFolders },
bookmarkOrder: { default: [], check: bookmarks.validOrder },
// Chat (official settings.chat.*): formatting toolbar visibility, diagram auto-load and images.
...CHAT_SCHEMA,
...CONTACT_SCHEMA,
// Official workflowSettings.autoEnableMicrophone (default off): focusing a server tab moves the microphone there.
autoEnableMicrophone: { default: false, check: (v) => typeof v === 'boolean' },
// Official workflowSettings.autoReactivateMicOnPreviousTarget (default on): when the microphone's connection
// ends, the microphone returns to the connection that had it before.
autoReactivateMicOnPreviousTarget: { default: true, check: (v) => typeof v === 'boolean' },
// Third-party theme extension selection '<identifier>//<variant name>' (official appearance.user_style); null = stock theme.
userStyle: USER_STYLE_PREF,
// Main-only (main.js rejects renderer writes): set by the recording folder dialog (recording-main.js).
recordingFolder: { default: null, check: (v) => v === null || (typeof v === 'string' && v.length >= 1 && v.length <= 1024 && path.isAbsolute(v) && !/[\u0000-\u001f\u007f]/.test(v)) },
// Official recording.mode: 1 Multitrack, 2 Master, 3 Multitrack + Master (default).
recordingMode: { default: 3, check: (v) => v === 1 || v === 2 || v === 3 },
// Per event: 0 off, 1 sound, 2 important (also while muted/away); logs are independent.
notificationStates: { default: {}, check: (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.keys(v).length <= 128 && Object.entries(v).every(([k, s]) => /^[a-z_]{1,96}$/.test(k) && (s === 0 || s === 1 || s === 2)) },
systemNotifyServerPrivate: { default: false, check: (v) => typeof v === 'boolean' },
systemNotifyChannelChat: { default: false, check: (v) => typeof v === 'boolean' },
// OS integration (official settings.os.*).
osFlashOnMessage: { default: false, check: (v) => typeof v === 'boolean' },
osFlashOnPoke: { default: false, check: (v) => typeof v === 'boolean' },
osHideInTaskbar: { default: 'never', check: (v) => ['never', 'minimize', 'close', 'both'].includes(v) },
osMuteWhenLocked: { default: false, check: (v) => typeof v === 'boolean' },
};
const CONTROL = /[\u0000-\u001f\u007f]/;
function validServers(list) {
if (!Array.isArray(list) || list.length > 50) return false;
const ids = new Set();
for (const s of list) {
if (!s || typeof s !== 'object' || Array.isArray(s)) return false;
const keys = Object.keys(s);
if (keys.length !== 3 || !keys.includes('id') || !keys.includes('name') || !keys.includes('address')) return false;
if (typeof s.id !== 'string' || !/^[a-z0-9]{6,32}$/.test(s.id) || ids.has(s.id)) return false;
if (typeof s.name !== 'string' || s.name.trim().length < 1 || s.name.length > 64 || CONTROL.test(s.name)) return false;
if (typeof s.address !== 'string' || s.address.trim().length < 1 || s.address.length > 255 || CONTROL.test(s.address)) return false;
ids.add(s.id);
const BOOKMARK_KEYS = ['savedServers', 'bookmarkFolders', 'bookmarkOrder'];
function validCollapsedChannels(list) {
if (!Array.isArray(list) || list.length > 32) return false;
const servers = new Set();
for (const entry of list) {
if (!entry || typeof entry !== 'object' || Array.isArray(entry)) return false;
const keys = Object.keys(entry);
if (keys.length !== 2 || !keys.includes('server') || !keys.includes('channels')) return false;
if (typeof entry.server !== 'string' || !entry.server.trim() || entry.server.length > 255 || CONTROL.test(entry.server) || servers.has(entry.server)) return false;
if (!Array.isArray(entry.channels) || entry.channels.length > 512) return false;
const channels = new Set();
for (const id of entry.channels) {
if (!Number.isSafeInteger(id) || id <= 0 || channels.has(id)) return false;
channels.add(id);
}
servers.add(entry.server);
}
return true;
}
@@ -51,10 +113,20 @@ class Prefs {
for (const [key, spec] of Object.entries(SCHEMA)) {
if (Object.prototype.hasOwnProperty.call(raw, key) && spec.check(raw[key])) this.values[key] = raw[key];
}
migrateVoicePrefs(raw, this.values);
migratePrivacyPrefs(raw, this.values);
// Two-pane files predate serverPaneWidth. Three-pane saves always include that key,
// so preserve those even before the explicit version marker was introduced.
if (!Object.hasOwn(raw, 'layoutVersion') && !Object.hasOwn(raw, 'serverPaneWidth') && Object.hasOwn(raw, 'sidebarWidth') && SCHEMA.sidebarWidth.check(raw.sidebarWidth)) {
this.values.serverPaneWidth = raw.sidebarWidth;
this.values.sidebarWidth = SCHEMA.sidebarWidth.default;
}
}
} catch {
// first run or unreadable file: defaults
}
// Each bookmark list was validated alone; references and order are repaired together without losing bookmarks.
Object.assign(this.values, bookmarks.normalize(this.values));
}
get() {
@@ -63,25 +135,31 @@ class Prefs {
/** Applies a validated partial update; returns the full prefs or throws. */
set(partial) {
if (!partial || typeof partial !== 'object' || Array.isArray(partial)) throw new Error('prefs: ожидался объект');
if (!partial || typeof partial !== 'object' || Array.isArray(partial)) throw new Error('prefs: expected an object');
const next = { ...this.values };
for (const [key, value] of Object.entries(partial)) {
const spec = SCHEMA[key];
if (!spec) throw new Error(`prefs: неизвестный ключ ${key}`);
if (!spec.check(value)) throw new Error(`prefs: недопустимое значение ${key}`);
if (!spec) throw new Error(`prefs: unknown key ${key}`);
if (!spec.check(value)) throw new Error(`prefs: invalid value for ${key}`);
next[key] = value;
}
this.values = next;
if (BOOKMARK_KEYS.some((key) => Object.hasOwn(partial, key))) {
// A write without an explicit order keeps the stored sequence: removed ids drop out, new ones go last.
if (!Object.hasOwn(partial, 'bookmarkOrder')) next.bookmarkOrder = bookmarks.completeOrder(next);
if (!bookmarks.consistent(next)) throw new Error('prefs: inconsistent bookmarks and folders');
}
// Persist first: if writing fails, neither the file nor the in-memory values change.
fs.mkdirSync(path.dirname(this.file), { recursive: true });
const tmp = `${this.file}.tmp`;
fs.writeFileSync(tmp, JSON.stringify(next, null, 2));
fs.writeFileSync(tmp, JSON.stringify({ ...next, layoutVersion: LAYOUT_VERSION }, null, 2));
fs.renameSync(tmp, this.file);
this.values = next;
return this.get();
}
}
function defaults() {
return Object.fromEntries(Object.entries(SCHEMA).map(([key, spec]) => [key, spec.default]));
return Object.fromEntries(Object.entries(SCHEMA).map(([key, spec]) => [key, structuredClone(spec.default)]));
}
module.exports = { Prefs };
+66
View File
@@ -0,0 +1,66 @@
'use strict';
/**
* Privacy preferences that follow the installed TS6 client's workflowSettings (client_ui/main.js, class Xe/Ge):
* - trustedExternalHosts: hosts the user chose to "Always trust" in the external-link warning.
* - allowWhitelistMalicious (default off): lets the warning offer "Always trust" for a host the phishing list
* flags. Off, a flagged host can still be opened after the warning but never becomes trusted.
* - confirmationSettings: one boolean per remembered confirmation (true = ask). A confirmation that offers
* "Don't ask again" stores false; Settings > Privacy > Reset Confirmations sets every key back to true.
*
* Myteamspeak chat settings (enableServerShare, enableTypingNotifications) and analytics are not stored:
* TeamsPeach has no chat-service presence or typing channel and sends no diagnostics.
*/
// Official class Ge defaults: every confirmation is shown until the user opts out.
const CONFIRMATION_KEYS = Object.freeze(['delete_ban', 'delete_temp_pw', 'delete_privilege_key', 'clear_file_transfer_history']);
const CONFIRMATION_DEFAULTS = Object.freeze(Object.fromEntries(CONFIRMATION_KEYS.map((key) => [key, true])));
const MAX_TRUSTED_HOSTS = 500;
const HOST = /^[a-z0-9.-]+$/;
const isPlainObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
function validTrustedHosts(v) {
return Array.isArray(v) && v.length <= MAX_TRUSTED_HOSTS
&& v.every((h) => typeof h === 'string' && h.length >= 1 && h.length <= 253 && HOST.test(h));
}
/** Exactly the known keys, each a boolean: the renderer always writes the complete object. */
function validConfirmationSettings(v) {
if (!isPlainObject(v)) return false;
const keys = Object.keys(v);
return keys.length === CONFIRMATION_KEYS.length && CONFIRMATION_KEYS.every((key) => typeof v[key] === 'boolean');
}
const PRIVACY_SCHEMA = {
trustedExternalHosts: { default: [], check: validTrustedHosts },
allowWhitelistMalicious: { default: false, check: (v) => typeof v === 'boolean' },
confirmationSettings: { default: { ...CONFIRMATION_DEFAULTS }, check: validConfirmationSettings },
};
/**
* Keeps the remembered choices of a stored confirmationSettings object that does not match the current key set
* (written by another version): known boolean keys are kept, missing keys default to "ask", unknown keys drop.
* Mirrors the official load merge `{...defaults, ...stored}`. `values` already holds validated keys/defaults.
*/
function migratePrivacyPrefs(raw, values) {
const stored = raw?.confirmationSettings;
if (!isPlainObject(stored) || validConfirmationSettings(stored)) return;
values.confirmationSettings = Object.fromEntries(CONFIRMATION_KEYS.map((key) => [key, typeof stored[key] === 'boolean' ? stored[key] : true]));
}
/**
* Main-side guard for a prefs update: a host the phishing list flags may only become newly trusted while
* allowWhitelistMalicious is (or becomes, in the same update) enabled. Hosts already trusted stay as they are,
* like the official client. Returns an error message or null.
*/
function trustedHostsUpdateError(current, partial, isMalicious) {
if (!partial || !Object.hasOwn(partial, 'trustedExternalHosts') || !Array.isArray(partial.trustedExternalHosts)) return null;
const allow = Object.hasOwn(partial, 'allowWhitelistMalicious') ? partial.allowWhitelistMalicious === true : current.allowWhitelistMalicious === true;
if (allow) return null;
const before = new Set(current.trustedExternalHosts ?? []);
const flagged = partial.trustedExternalHosts.find((host) => !before.has(host) && isMalicious(host));
return flagged ? `prefs: ${flagged} is flagged as malicious; enable "Allow trusting sites flagged as malicious" first` : null;
}
module.exports = { PRIVACY_SCHEMA, CONFIRMATION_KEYS, CONFIRMATION_DEFAULTS, migratePrivacyPrefs, trustedHostsUpdateError };
+88
View File
@@ -0,0 +1,88 @@
'use strict';
const path = require('node:path');
const fs = require('node:fs');
/**
* Local recording, main side: the output folder is chosen only through the native folder dialog (official
* "Select Recording Folder") and kept in the main-owned pref `recordingFolder`. The renderer can never set
* that pref or name another folder: `recording_start` is accepted only for exactly the approved folder
* (see `approvedRecordingDirectory`, used by ipc-validate).
*
* Offscreen tests never open a dialog: with TEAMSPEACH_TEST_OFFSCREEN the folder comes from
* TEAMSPEACH_TEST_RECORDING_DIR, which must lie inside the disposable test profile.
*/
const MAX_TITLE = 200;
function within(child, parent) {
const rel = path.relative(parent, child);
return rel !== '' && !rel.startsWith('..') && !path.isAbsolute(rel);
}
function validFolder(value) {
return typeof value === 'string' && value.length >= 1 && value.length <= 1024 && path.isAbsolute(value) && !/[\u0000-\u001f\u007f]/.test(value);
}
/** The folder `recording_start` may write to, or null. */
function approvedRecordingDirectory(prefs) {
const dir = prefs.get().recordingFolder;
return validFolder(dir) ? dir : null;
}
/**
* @param {object} o
* @param {Electron.IpcMain} o.ipcMain
* @param {(event) => boolean} o.trustedSender
* @param {Electron.Dialog} o.dialog
* @param {() => Electron.BrowserWindow | null} o.getWindow
* @param {boolean} o.testOffscreen
* @param {string | null} o.testProfileDir absolute disposable profile dir in offscreen tests
* @param {{ get(): object, set(partial: object): object }} o.prefs
*/
function registerRecordingIpc({ ipcMain, trustedSender, dialog, getWindow, testOffscreen, testProfileDir, prefs }) {
ipcMain.handle('recording:pick-folder', async (event, title) => {
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
let picked = null;
if (testOffscreen) {
const fixture = process.env.TEAMSPEACH_TEST_RECORDING_DIR;
if (!validFolder(fixture) || !testProfileDir || !within(path.resolve(fixture), path.resolve(testProfileDir))) {
return { ok: false, error: { code: 'unavailable', message: 'Folder dialogs are disabled in offscreen tests' } };
}
picked = path.resolve(fixture);
try {
const profile = await fs.promises.realpath(testProfileDir);
let current = path.resolve(testProfileDir);
for (const component of path.relative(current, picked).split(path.sep)) {
current = path.join(current, component);
let stat;
try { stat = await fs.promises.lstat(current); }
catch (error) { if (error.code !== 'ENOENT') throw error; await fs.promises.mkdir(current); stat = await fs.promises.lstat(current); }
if (stat.isSymbolicLink() || !stat.isDirectory() || !within(await fs.promises.realpath(current), profile)) throw new Error('unsafe fixture path');
}
} catch {
return { ok: false, error: { code: 'unavailable', message: 'Recording fixture must stay inside the disposable profile' } };
}
} else {
const options = {
title: typeof title === 'string' && title.length <= MAX_TITLE && !/[\u0000-\u001f]/.test(title) ? title : undefined,
properties: ['openDirectory', 'createDirectory', 'dontAddToRecent'],
};
const current = approvedRecordingDirectory(prefs);
if (current) options.defaultPath = current;
const win = getWindow();
const result = win ? await dialog.showOpenDialog(win, options) : await dialog.showOpenDialog(options);
if (result.canceled || !result.filePaths?.length) return { ok: true, path: null };
picked = path.resolve(result.filePaths[0]);
}
if (!validFolder(picked)) return { ok: false, error: { code: 'bad_request', message: 'Folder path is not usable' } };
try {
prefs.set({ recordingFolder: picked });
} catch (err) {
return { ok: false, error: { code: 'io', message: String(err?.message ?? err) } };
}
return { ok: true, path: picked };
});
}
module.exports = { registerRecordingIpc, approvedRecordingDirectory, validFolder };
+297
View File
@@ -0,0 +1,297 @@
'use strict';
// Server Icons manager (official client_ui module 33609 with icon provider 66727): the virtual server's
// icon files live in file-transfer channel 0. Listing is `/icons/`; classic storage addresses each file as
// `/icon_<id>` on the wire, which the core derives from the canonical `/icons/icon_<id>` bridge path.
// Channel 0 never reaches the renderer's generic file commands: everything here is main-owned, pinned to
// one connection session, and host paths come only from the native dialog opened by an explicit click.
// HTTPFT/S3 servers are refused by the core (`media_unsupported`); nothing pretends to reach that storage.
const crypto = require('node:crypto');
const fs = require('node:fs/promises');
const os = require('node:os');
const path = require('node:path');
const { crc32 } = require('./server-snapshot-codec');
const ICON_FOLDER = '/icons/';
/** Same bound as snapshot icon transfers; also below the core's 256 KiB `fetch_icon` preview limit. */
const MAX_ICON_BYTES = 128 * 1024;
/** Local decode-safety bound for raster headers (not a TeamSpeak rule; the server stays authoritative). */
const MAX_ICON_SIDE = 1024;
const MAX_SELECTION = 32;
/** `file_delete` accepts at most this many paths per command (core/src/file_transfer.rs MAX_DELETE). */
const DELETE_BATCH = 100;
const MAX_DELETE_IDS = 10_000;
const TRANSFER_DEADLINE_MS = 120_000;
/** Official upload dialog filter: image/jpeg, image/png, image/svg+xml. */
const UPLOAD_EXTENSIONS = ['png', 'jpg', 'jpeg', 'svg'];
/** Listing grants (one per open panel listing) and how long a panel may act on one. */
const MAX_GRANTS = 32;
const GRANT_TTL_MS = 30 * 60 * 1000;
function coded(code, message, extra = {}) { return Object.assign(new Error(message), { code }, extra); }
const fail = error => ({ ok: false, error: { code: error.code || 'server_icons_error', message: String(error.message || error) } });
/** Icon id of a listing entry name `icon_<canonical nonzero u32>`, else null. */
function iconIdOf(name) {
const match = /^icon_([1-9]\d{0,9})$/.exec(typeof name === 'string' ? name : '');
if (!match) return null;
const id = Number(match[1]);
return id <= 0xffffffff ? id : null;
}
function validIconId(id) { return Number.isSafeInteger(id) && id >= 1 && id <= 0xffffffff; }
const iconPath = id => `${ICON_FOLDER}icon_${id}`;
/** PNG IHDR or JPEG SOFn dimensions; null when the header is malformed. */
function rasterSize(bytes, mime) {
if (mime === 'image/png') {
if (bytes.length < 24 || bytes.subarray(12, 16).toString('ascii') !== 'IHDR') return null;
return { width: bytes.readUInt32BE(16), height: bytes.readUInt32BE(20) };
}
let i = 2;
while (i + 4 <= bytes.length) {
if (bytes[i] !== 0xff) return null;
const marker = bytes[i + 1];
if (marker === 0xff) { i += 1; continue; }
if (marker === 0x01 || (marker >= 0xd0 && marker <= 0xd8)) { i += 2; continue; }
if (marker === 0xd9 || marker === 0xda) return null;
const length = bytes.readUInt16BE(i + 2);
if (length < 2) return null;
const sof = marker >= 0xc0 && marker <= 0xcf && ![0xc4, 0xc8, 0xcc].includes(marker);
if (sof) return i + 9 <= bytes.length ? { height: bytes.readUInt16BE(i + 5), width: bytes.readUInt16BE(i + 7) } : null;
i += 2 + length;
}
return null;
}
/**
* Type, size and decode checks for one chosen file. Raster headers are bounded before any decode; when
* Electron's nativeImage is supplied the bytes must also decode. SVG stays opaque bytes in main and is only
* ever shown by the renderer as an <img> blob (no script execution).
*/
function checkIconBytes(bytes, nativeImage) {
if (!bytes.length || bytes.length > MAX_ICON_BYTES) throw coded('too_large', 'Icon must be 1 byte to 128 KiB');
let mime = null;
if (bytes.subarray(0, 8).equals(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]))) mime = 'image/png';
else if (bytes[0] === 0xff && bytes[1] === 0xd8 && bytes[2] === 0xff) mime = 'image/jpeg';
else if (/^(?:\uFEFF)?\s*(?:<\?xml[^>]*>\s*)?(?:<!--[\s\S]*?-->\s*)*(?:<!DOCTYPE[^>]*>\s*)?<svg[\s>]/i.test(bytes.toString('utf8'))) mime = 'image/svg+xml';
if (!mime) throw coded('unsupported_type', 'Icons must be PNG, JPEG or SVG');
if (mime !== 'image/svg+xml') {
const size = rasterSize(bytes, mime);
if (!size || size.width < 1 || size.height < 1) throw coded('invalid_image', 'The image header is damaged');
if (size.width > MAX_ICON_SIDE || size.height > MAX_ICON_SIDE) throw coded('too_large', `Icons may be at most ${MAX_ICON_SIDE}×${MAX_ICON_SIDE} pixels`);
if (nativeImage && nativeImage.createFromBuffer(bytes).isEmpty()) throw coded('invalid_image', 'The image could not be decoded');
}
return mime;
}
/** Read a dialog-chosen regular file of bounded size; never follows a size that changed while reading. */
async function readChosenFile(file) {
const handle = await fs.open(file, 'r');
try {
const stat = await handle.stat();
if (!stat.isFile()) throw coded('not_a_file', 'Choose a regular image file');
if (stat.size < 1 || stat.size > MAX_ICON_BYTES) throw coded('too_large', 'Icon must be 1 byte to 128 KiB');
const bytes = Buffer.alloc(stat.size + 1);
let read = 0;
for (;;) {
const { bytesRead } = await handle.read(bytes, read, bytes.length - read, read);
if (bytesRead === 0) break;
read += bytesRead;
if (read > stat.size) throw coded('changed', 'The file changed while it was read');
}
if (read !== stat.size) throw coded('changed', 'The file changed while it was read');
return bytes.subarray(0, read);
} finally { await handle.close(); }
}
function registerServerIconsIpc({ ipcMain, trustedSender, dialog, getWindow, request, validConnectionId, getConnection, subscribeCore, testOffscreen, tr, nativeImage = null }) {
const busy = new Set();
const invoke = async (id, command, args = {}) => {
const response = await request(id, command, args);
if (!response?.ok) throw coded(response?.error?.code || 'server_error', response?.error?.message || `${command} failed`);
return response.result;
};
/** The exact connection entry, main session counter and core process the operation started on. */
const pin = id => {
if (!validConnectionId(id)) throw coded('bad_request', 'Invalid server connection');
const entry = getConnection(id); if (!entry) throw coded('connection_closed', 'Server connection is closed');
const pinned = { id, entry, session: entry.session, core: entry.core };
pinned.same = () => getConnection(id) === entry && entry.session === pinned.session && entry.core === pinned.core;
pinned.alive = () => { if (!pinned.same()) throw coded('connection_changed', 'Server connection changed; reopen Server Icons'); };
return pinned;
};
const handle = (channel, callback) => ipcMain.handle(channel, async (event, ...args) => {
if (!trustedSender(event)) return fail(coded('forbidden', 'Forbidden'));
try { return await callback(event, ...args); } catch (error) { return fail(error); }
});
/** One icon operation per connection; `guard.check` fails once the connection or window changed. */
async function exclusive(event, id, work) {
const pinned = pin(id);
if (busy.has(id)) throw coded('busy', 'Another server icon operation is running');
busy.add(id);
const check = () => { pinned.alive(); if (!trustedSender(event)) throw coded('forbidden', 'Server Icons window changed'); };
try { return await work({ check, pinned }); } finally { busy.delete(id); }
}
// Opaque list grants: mutations are accepted only for the exact connection entry, session, core and admin
// generation that produced the listing the user saw. A UI from before a reconnect cannot mutate the new one.
const grants = new Map();
function grant(pinned, generation) {
const now = Date.now();
for (const [token, entry] of grants) if (entry.expires < now || !entry.pinned.same()) grants.delete(token);
while (grants.size >= MAX_GRANTS) grants.delete(grants.keys().next().value);
const token = crypto.randomUUID();
grants.set(token, { pinned, generation, expires: now + GRANT_TTL_MS });
return token;
}
/** Before the first mutation: the grant must belong to this pinned session and its generation still be current. */
async function authorize(id, token, { check, pinned }) {
const entry = typeof token === 'string' ? grants.get(token) : undefined;
const stale = () => coded('connection_changed', 'Server connection changed; reload Server Icons');
if (!entry || entry.expires < Date.now() || entry.pinned.id !== id || entry.pinned.entry !== pinned.entry
|| entry.pinned.session !== pinned.session || entry.pinned.core !== pinned.core || !entry.pinned.same()) throw stale();
const context = await invoke(id, 'admin_context'); check();
if (context?.generation !== entry.generation) { grants.delete(token); throw stale(); }
}
async function list(id, check) {
const listing = await invoke(id, 'file_list', { channel_id: 0, path: ICON_FOLDER }); check();
if (!Array.isArray(listing?.entries)) throw coded('server_error', 'Invalid icon list response');
const icons = [];
for (const entry of listing.entries) {
const iconId = entry?.type === 'file' ? iconIdOf(entry.name) : null;
if (iconId !== null) icons.push({ id: iconId, size: Number(entry.size) || 0, datetime: Number(entry.datetime) || 0 });
}
return icons;
}
/**
* Run one queued transfer to its terminal `file_transfer` event. A transfer abandoned while its session is
* unchanged (window changed, timeout) is cancelled; after a reconnect it is not: transfer ids restart per
* session, so the old id could name an unrelated transfer of the new session.
*/
async function transfer(id, command, args, { check, pinned }) {
check();
let transferId, finished = false, resolve, reject;
const early = new Map();
const completion = new Promise((a, b) => { resolve = a; reject = b; });
completion.catch(() => {});
const accept = event => {
if (finished || !['done', 'failed', 'cancelled'].includes(event.state)) return;
finished = true;
if (event.state === 'done') resolve(event);
else reject(coded(event.error?.code || event.state, event.error?.message || `Icon transfer ${event.state}`));
};
// Installed before the request: short transfers can finish before the queued reply arrives.
const unsubscribe = subscribeCore((connectionId, event) => {
if (connectionId !== id || event?.event !== 'file_transfer' || !pinned.same()) return;
if (transferId === undefined) early.set(event.transfer_id, event);
else if (event.transfer_id === transferId) accept(event);
});
let timer = null, deadline = null;
try {
transferId = (await invoke(id, command, args)).transfer_id;
if (!Number.isSafeInteger(transferId)) throw coded('server_error', 'Missing icon transfer ID');
if (early.has(transferId)) accept(early.get(transferId));
timer = setInterval(() => { try { check(); } catch (error) { if (!finished) { finished = true; reject(error); } } }, 250);
deadline = setTimeout(() => { if (!finished) { finished = true; reject(coded('timeout', 'Icon transfer did not finish')); } }, TRANSFER_DEADLINE_MS);
await completion;
check();
} catch (error) {
const terminal = ['done', 'failed', 'cancelled'].includes(error.code);
if (Number.isSafeInteger(transferId) && !terminal && pinned.same()) {
await request(id, 'file_cancel', { transfer_id: transferId }).catch(() => {});
}
throw error;
} finally {
clearInterval(timer); clearTimeout(deadline); unsubscribe();
}
}
const temporary = async fn => {
const folder = await fs.mkdtemp(path.join(os.tmpdir(), 'teamspeach-icons-'));
try { return await fn(folder); } finally { await fs.rm(folder, { recursive: true, force: true }); }
};
/** Content-addressed upload: never overwrites a different file that already holds this CRC32 name. */
async function uploadBytes(id, bytes, guard) {
const iconId = crc32(bytes);
if (!validIconId(iconId)) throw coded('invalid_image', 'This image has a reserved icon checksum');
const name = `icon_${iconId}`;
return temporary(async folder => {
if ((await list(id, guard.check)).some(icon => icon.id === iconId)) {
await transfer(id, 'file_download', { channel_id: 0, path: iconPath(iconId), dest_dir: folder, subdirs: [], overwrite: false }, guard);
const existing = await fs.readFile(path.join(folder, name));
if (!existing.equals(bytes)) throw coded('collision', 'A different icon already uses this checksum; it was not overwritten');
return { id: iconId, existing: true };
}
const source = path.join(folder, name);
await fs.writeFile(source, bytes, { flag: 'wx', mode: 0o600 });
await transfer(id, 'file_upload', { channel_id: 0, path: iconPath(iconId), source, overwrite: false }, guard);
if (!(await list(id, guard.check)).some(icon => icon.id === iconId)) throw coded('server_error', 'The upload finished but the server does not list the icon');
return { id: iconId, existing: false };
});
}
// A failed listing (e.g. HTTPFT/S3 storage) returns no grant, so nothing can be mutated from it.
handle('server-icons:list', (event, id) => exclusive(event, id, async ({ check, pinned }) => {
const context = await invoke(id, 'admin_context'); check();
if (!Number.isSafeInteger(context?.generation) || context.generation < 1) throw coded('connection_changed', 'Server connection is not ready');
const icons = await list(id, check);
return { ok: true, icons, generation: context.generation, authorization: grant(pinned, context.generation) };
}));
handle('server-icons:upload', (event, id, authorization) => exclusive(event, id, async guard => {
const { check } = guard;
if (testOffscreen) throw coded('unavailable', 'Icon file dialogs are disabled in offscreen tests');
await authorize(id, authorization, guard);
const window = getWindow();
const options = {
title: tr ? tr('server.icons.upload.title') : 'Select icon',
filters: [{ name: 'PNG, JPEG, SVG', extensions: UPLOAD_EXTENSIONS }],
properties: ['openFile', 'multiSelections', 'dontAddToRecent'],
};
const picked = await (window ? dialog.showOpenDialog(window, options) : dialog.showOpenDialog(options)); check();
if (picked.canceled || !picked.filePaths?.length) return { ok: true, cancelled: true };
// The dialog can stay open across a reconnect: verify the grant again before the first transfer.
await authorize(id, authorization, guard);
if (picked.filePaths.length > MAX_SELECTION) throw coded('bad_request', `Choose at most ${MAX_SELECTION} icons at once`);
const uploaded = [], errors = [];
for (const file of picked.filePaths) {
const name = path.basename(file);
try {
const bytes = await readChosenFile(file); check();
checkIconBytes(bytes, nativeImage);
uploaded.push({ ...(await uploadBytes(id, bytes, guard)), name });
} catch (error) {
if (['connection_changed', 'connection_closed', 'forbidden'].includes(error.code)) throw error;
errors.push({ name, code: error.code || 'server_icons_error', message: String(error.message || error) });
}
}
return { ok: true, uploaded, errors };
}));
handle('server-icons:delete', (event, id, authorization, ids) => exclusive(event, id, async guard => {
const { check } = guard;
if (!Array.isArray(ids) || ids.length < 1 || ids.length > MAX_DELETE_IDS || !ids.every(validIconId) || new Set(ids).size !== ids.length) {
throw coded('bad_request', 'Invalid icon selection');
}
await authorize(id, authorization, guard);
const deleted = [];
try {
for (let i = 0; i < ids.length; i += DELETE_BATCH) {
const batch = ids.slice(i, i + DELETE_BATCH);
await invoke(id, 'file_delete', { channel_id: 0, paths: batch.map(iconPath) }); check();
deleted.push(...batch);
}
} catch (error) {
return { ...fail(error), deleted };
}
return { ok: true, deleted };
}));
return { dispose() { busy.clear(); grants.clear(); } };
}
module.exports = { registerServerIconsIpc, checkIconBytes, rasterSize, iconIdOf, MAX_ICON_BYTES };
+217
View File
@@ -0,0 +1,217 @@
'use strict';
// Client snapshot schema/ordering: installed TS6 6.0.0.5163 main.js, service zS,
// createSnapshot @2426171. This is NOT the unrelated native live UI snapshot.
const SERVER_FIELDS = {
name: 'name', namePhonetic: 'name_phonetic', welcomeMessage: 'welcomemessage', webListEnabled: 'weblist_enabled',
sfuEndpoint: 'sfu_endpoint', maxUsers: 'maxclients', reservedSlots: 'reserved_slots', iconId: 'icon_id',
bannerGfxUrl: 'hostbanner_gfx_url', bannerUrl: 'hostbanner_url', bannerGfxInterval: 'hostbanner_gfx_interval', bannerMode: 'hostbanner_mode',
hostButtonGfxUrl: 'hostbutton_gfx_url', hostButtonUrl: 'hostbutton_url', hostButtonTooltip: 'hostbutton_tooltip',
hostMessage: 'hostmessage', hostMessageMode: 'hostmessage_mode', maxDownloadTotalBandwidth: 'max_download_total_bandwidth',
maxUploadTotalBandwidth: 'max_upload_total_bandwidth', downloadQuota: 'download_quota', uploadQuota: 'upload_quota', storageQuota: 'storage_quota',
minClientsInChannelBeforeForcedSilence: 'min_clients_in_channel_before_forced_silence', antiFloodPointsTickReduce: 'antiflood_points_tick_reduce',
antiFloodPointsNeededCommandBlock: 'antiflood_points_needed_command_block', antiFloodPointsNeededIpBlock: 'antiflood_points_needed_ip_block',
prioritySpeakerDimmModificator: 'priority_speaker_dimm_modificator', channelTempDeleteDelayDefault: 'channel_temp_delete_delay_default',
neededIdentitySecurityLevel: 'needed_identity_security_level', codecEncryptionMode: 'codec_encryption_mode',
logClient: 'log_client', logChannel: 'log_channel', logServer: 'log_server', logFiletransfer: 'log_filetransfer', logPermissions: 'log_permissions', logQuery: 'log_query',
};
const CHANNEL_FIELDS = { name: 'name', topic: 'topic', description: 'description', default: 'flag_default', maxUsers: 'maxclients', maxFamilyUsers: 'maxfamilyclients', bannerGfxUrl: 'banner_gfx_url', bannerMode: 'banner_mode', codec: 'codec', quality: 'codec_quality' };
const TEXT_FIELDS = new Set(['name', 'namePhonetic', 'welcomeMessage', 'sfuEndpoint', 'bannerGfxUrl', 'bannerUrl', 'hostButtonGfxUrl', 'hostButtonUrl', 'hostButtonTooltip', 'hostMessage', 'topic', 'description']);
const BOOL_FIELDS = new Set(['webListEnabled', 'default', 'logClient', 'logChannel', 'logServer', 'logFiletransfer', 'logPermissions', 'logQuery']);
const FLAGS = ['includeServerSettings', 'includeChannels', 'includeServerGroups', 'includeServerGroupMembers', 'includeChannelGroups', 'includeIcons'];
const object = x => x !== null && typeof x === 'object' && !Array.isArray(x);
function variables(value, vars, extracting = false) {
if (typeof value !== 'string' || !vars) return value;
if (!extracting) return value.replace(/\$\{([^}]+)\}/g, (match, key) => Object.hasOwn(vars, key) ? vars[key] : match);
for (const [key, text] of Object.entries(vars).sort((a, b) => b[1].length - a[1].length)) if (text) value = value.split(text).join('${' + key + '}');
return value;
}
function validVars(vars) { return vars === undefined || (object(vars) && Object.keys(vars).length <= 100 && Object.entries(vars).every(([k, v]) => k.length <= 128 && typeof v === 'string' && v.length <= 8192)); }
function validate(document) {
if (!object(document) || document.type !== 'teamspeak.server.snapshot' || document.schemaVersion !== '0.0.1') throw new Error('Expected a TeamSpeak client snapshot, schema 0.0.1');
if (!object(document.meta) || typeof document.meta.createdAt !== 'string' || !validVars(document.vars) || !Array.isArray(document.catalog) || !document.catalog.length) throw new Error('Invalid snapshot metadata or catalog');
let count = 0;
const permissions = rows => {
if (!Array.isArray(rows)) throw new Error('Invalid permissions');
for (const p of rows) if (!object(p) || !/^[ib]_[a-z0-9_]+$/.test(p.id) || !Number.isInteger(p.value) || p.value < -2147483648 || p.value > 4294967295 || ['skip', 'negate'].some(k => p[k] !== undefined && typeof p[k] !== 'boolean')) throw new Error('Invalid permission value');
};
const fields = (row, map) => { for (const key of Object.keys(map)) if (row[key] !== undefined && !(TEXT_FIELDS.has(key) ? typeof row[key] === 'string' : BOOL_FIELDS.has(key) ? typeof row[key] === 'boolean' : typeof row[key] === 'number' && Number.isFinite(row[key]))) throw new Error(`Invalid property ${key}`); };
const channels = (rows, depth = 0) => {
if (!Array.isArray(rows) || depth > 64) throw new Error('Invalid channel tree');
for (const row of rows) { if (++count > 10000 || !object(row) || typeof row.name !== 'string' || !row.name) throw new Error('Invalid channel'); fields(row, CHANNEL_FIELDS); if (row.permissions !== undefined) permissions(row.permissions); if (row.channels !== undefined) channels(row.channels, depth + 1); }
};
const ids = new Set();
for (const item of document.catalog) {
if (!object(item) || typeof item.id !== 'string' || !item.id || ids.has(item.id)) throw new Error('Invalid or duplicate catalog id'); ids.add(item.id);
if (item.server !== undefined) { if (!object(item.server)) throw new Error('Invalid server settings'); fields(item.server, SERVER_FIELDS); }
if (item.channels !== undefined) channels(item.channels);
for (const key of ['serverGroups', 'channelGroups']) if (item[key] !== undefined) {
if (!Array.isArray(item[key])) throw new Error('Invalid groups');
for (const group of item[key]) {
if (++count > 10000 || !object(group) || typeof group.name !== 'string' || !group.name) throw new Error('Invalid group'); permissions(group.permissions);
for (const flag of ['default', 'defaultChannelAdmin']) if (group[flag] !== undefined && typeof group[flag] !== 'boolean') throw new Error('Invalid group default');
if (group.members !== undefined && (!Array.isArray(group.members) || group.members.length > 10000 || group.members.some(m => !object(m) || typeof m.uid !== 'string' || !m.uid || m.uid.length > 128 || (m.nickname !== undefined && typeof m.nickname !== 'string')))) throw new Error('Invalid group members');
}
}
if (item.icons !== undefined && (!Array.isArray(item.icons) || item.icons.length > 10000 || item.icons.some(i => !object(i) || !/^\d{1,10}$/.test(i.id) || Number(i.id) > 4294967295 || typeof i.data !== 'string' || i.data.length > 180000 || typeof i.mimeType !== 'string'))) throw new Error('Invalid icons');
}
return document;
}
function fromWire(row, fields, prefix, vars) {
const result = {};
for (const [key, wire] of Object.entries(fields)) if (row[prefix + wire] !== undefined) {
const value = row[prefix + wire];
result[key] = TEXT_FIELDS.has(key) ? variables(String(value), vars, true) : BOOL_FIELDS.has(key) ? value === true || value === '1' || value === 1 : Number(value);
if (!TEXT_FIELDS.has(key) && !BOOL_FIELDS.has(key) && key !== 'prioritySpeakerDimmModificator' && !Number.isSafeInteger(result[key])) throw new Error(`Property ${prefix + wire} is outside the lossless JSON integer range`);
}
if (result.iconId !== undefined) result.iconId >>>= 0;
return result;
}
function crc32(bytes) { let crc = 0xffffffff; for (const byte of bytes) { crc ^= byte; for (let j = 0; j < 8; j++) crc = (crc >>> 1) ^ ((crc & 1) ? 0xedb88320 : 0); } return (crc ^ 0xffffffff) >>> 0; }
class SnapshotOperation {
constructor({ call, context, check, progress, icons }) { Object.assign(this, { call, context, check, progress, icons }); this.errors = []; this.completed = 0; this.total = 0; this.created = { channels: [], serverGroups: [], channelGroups: [], icons: [], members: [], renamed: [] }; }
async step(type, identifier, action) {
this.check();
try { return await action(); } catch (error) { this.check(); this.errors.push({ type, identifier: String(identifier), message: error.message, code: error.code }); return undefined; }
finally { this.completed++; this.progress({ phase: type, identifier: String(identifier), current: this.completed, total: this.total, errors: this.errors.length }); }
}
async rows(cmd, args = {}) { const result = await this.call(cmd, args); if (!Array.isArray(result.rows)) throw new Error(`${cmd}: invalid rows response`); return result.rows; }
mutate(cmd, args) { this.check(); return this.call(cmd, { generation: this.context.generation, ...args }); }
async permissions(cmd, args) {
const catalog = new Map((this.context.permissions_catalog || []).map(p => [String(p.id), p.name]));
const result = [];
for (const row of await this.rows(cmd, args)) {
const name = row.permsid || catalog.get(String(row.permid));
if (!name) { this.errors.push({ type: 'permission', identifier: String(row.permid), message: 'Permission is missing from server catalog' }); continue; }
const p = { id: name, value: name === 'i_icon_id' ? Number(row.permvalue) >>> 0 : Number(row.permvalue) };
if (Number(row.permskip)) p.skip = true; if (Number(row.permnegated)) p.negate = true; if (Number(row.permgrant)) p.grant = Number(row.permgrant); result.push(p);
}
return result;
}
async create(options) {
if (!object(options) || !validVars(options.vars) || FLAGS.some(f => options[f] !== undefined && typeof options[f] !== 'boolean')) throw new Error('Invalid snapshot options');
const server = (await this.rows('server_info'))[0] || {};
const entry = { id: options.catalogId || 'default', description: options.catalogDescription || 'Server snapshot' };
if (options.includeServerSettings) entry.server = fromWire(server, SERVER_FIELDS, 'virtualserver_', options.vars);
if (options.includeChannels) {
const rows = await this.rows('channel_list'); this.total += rows.length;
const visit = async (parent, seen = new Set()) => {
const out = [];
// channel_order is the predecessor ID, not a numeric rank.
const remaining = rows.filter(r => String(r.cpid ?? r.pid ?? 0) === String(parent)); let previous = '0';
const ordered = [];
while (remaining.length) { let index = remaining.findIndex(r => String(r.channel_order ?? 0) === previous); if (index < 0) index = 0; const row = remaining.splice(index, 1)[0]; ordered.push(row); previous = String(row.cid); }
for (const row of ordered) {
if (seen.has(String(row.cid))) throw new Error('Cyclic server channel tree');
if (!Number(row.channel_flag_permanent)) continue;
seen.add(String(row.cid));
const channel = await this.step('channel', row.channel_name, async () => {
const info = (await this.rows('channel_info', { channel_id: Number(row.cid) }))[0];
const item = fromWire({ ...row, ...info }, CHANNEL_FIELDS, 'channel_', options.vars);
item.permissions = await this.step('channelPermission', row.cid, () => this.permissions('channel_perm_list', { channel_id: Number(row.cid) })) || [];
const children = await visit(row.cid, seen); if (children.length) item.channels = children;
return item;
}); if (channel) out.push(channel);
}
return out;
};
entry.channels = await visit(0);
}
for (const [kind, enabled, key] of [['server', options.includeServerGroups, 'serverGroups'], ['channel', options.includeChannelGroups, 'channelGroups']]) if (enabled) {
const rows = (await this.rows(`${kind}_group_list`)).filter(g => Number(g.type) === 1).sort((a, b) => Number(a.sortid ?? 0) - Number(b.sortid ?? 0) || Number(a.sgid ?? a.cgid) - Number(b.sgid ?? b.cgid)); this.total += rows.length;
entry[key] = [];
for (const row of rows) {
const id = Number(row.sgid ?? row.cgid);
const group = await this.step(key, row.name, async () => {
const item = { name: variables(row.name, options.vars, true), permissions: await this.permissions(`${kind}_group_perm_list`, { group_id: id }) };
if (String(id) === String(server[`virtualserver_default_${kind}_group`])) item.default = true;
if (kind === 'channel' && String(id) === String(server.virtualserver_default_channel_admin_group)) item.defaultChannelAdmin = true;
if (kind === 'server' && options.includeServerGroupMembers && !item.default) {
const members = await this.step('members', id, () => this.rows('server_group_client_list', { group_id: id }));
if (members?.length) item.members = members.map(m => ({ nickname: m.client_nickname ?? m.nickname ?? '', uid: m.client_unique_identifier ?? m.cluid ?? m.uid }));
}
return item;
}); if (group) entry[key].push(group);
}
}
if (options.includeIcons) entry.icons = await this.step('icons', 'export', () => this.icons.collect(this)) || [];
return { type: 'teamspeak.server.snapshot', schemaVersion: '0.0.1', meta: { description: options.snapshotDescription, createdAt: new Date().toISOString(), createdBy: options.createdBy || 'Unknown', source: { serverVersion: server.virtualserver_version, platform: server.virtualserver_platform } }, vars: options.vars, catalog: [entry] };
}
async apply(entry, vars, conflictMode) {
const iconMap = new Map();
const countChannels = rows => (rows || []).reduce((n, c) => n + 1 + countChannels(c.channels), 0);
this.total = (entry.icons || []).length + countChannels(entry.channels) + (entry.serverGroups || []).length + (entry.channelGroups || []).length + Object.keys(entry.server || {}).length;
for (const icon of entry.icons || []) {
const id = await this.step('icon', icon.id, () => this.icons.upload(icon, this));
if (id !== undefined) { iconMap.set(String(icon.id), id); this.created.icons.push(id); }
}
const remapIcon = value => {
const id = value >>> 0; if (id <= 1000) return id;
if (!iconMap.has(String(id))) throw new Error(`Icon ${id} was not imported; reference not changed`);
return iconMap.get(String(id));
};
const setPermissions = async (scope, id, list) => {
for (const p of list || []) {
if (p.id === 'i_group_auto_update_max_value') continue; // Official client intentionally excludes this permission.
await this.step('permission', `${scope}:${id}:${p.id}`, async () => {
let value = p.id === 'i_icon_id' ? remapIcon(p.value) | 0 : p.value;
const permission = { id: p.id, value, ...(scope === 'channel' ? {} : { negate: !!p.negate, skip: !!p.skip }) };
return scope === 'channel' ? this.mutate('channel_set_permissions', { channel_id: id, permissions: [permission] }) : this.mutate('group_set_permissions', { kind: scope === 'channel_group' ? 'channel' : 'server', group_id: id, permissions: [permission] });
});
}
};
for (const [key, value] of Object.entries(entry.server || {})) await this.step('server', key, async () => {
if (!Object.hasOwn(SERVER_FIELDS, key)) throw new Error(`Unsupported server property ${key}`);
return this.mutate('server_edit', { confirm: this.context.server_uid, properties: { ['virtualserver_' + SERVER_FIELDS[key]]: key === 'iconId' ? remapIcon(value) : variables(value, vars) } });
});
const channelRows = entry.channels?.length ? await this.rows('channel_list') : [];
const resolveName = async (name, rows, getName, rename) => {
const existing = rows.find(row => getName(row) === name); if (!existing) return name;
if (conflictMode === 'skip') { this.errors.push({ type: 'conflict', identifier: name, message: 'Skipped existing name', severity: 'warning' }); return null; }
const next = (base, start) => { let suffix = start; let candidate = base; while (rows.some(row => getName(row) === candidate)) { candidate = `${base} (${suffix++})`; if (suffix > 10000) throw new Error('No unused name'); } return candidate; };
if (conflictMode === 'rename_existing') { const replacement = next(`OLD ${name}`, 2); await rename(existing, replacement); this.created.renamed.push({ name, replacement }); return name; }
return next(name, 1);
};
const applyChannels = async (rows, parent = 0) => {
let previous = 0;
for (const item of rows || []) {
const id = await this.step('channel', item.name, async () => {
const siblings = channelRows.filter(c => Number(c.cpid ?? c.pid ?? 0) === parent);
const name = await resolveName(variables(item.name, vars), siblings, c => c.channel_name, async (row, replacement) => { await this.mutate('channel_edit', { channel_id: Number(row.cid), properties: { channel_name: replacement } }); row.channel_name = replacement; });
if (name === null) return undefined;
const result = await this.mutate('channel_create', { parent_id: parent, properties: { channel_name: name, channel_flag_permanent: true, channel_order: previous } });
if (!Number.isSafeInteger(result.channel_id) || result.channel_id <= 0) throw new Error('Server did not return a created channel ID');
const id = result.channel_id; this.created.channels.push(id); channelRows.push({ cid: id, cpid: parent, channel_name: name });
for (const [key, value] of Object.entries(item)) if (key !== 'name' && Object.hasOwn(CHANNEL_FIELDS, key)) await this.step('channelProperty', `${name}:${key}`, () => this.mutate('channel_edit', { channel_id: id, properties: { ['channel_' + CHANNEL_FIELDS[key]]: variables(value, vars) } }));
await setPermissions('channel', id, item.permissions);
return id;
});
if (id !== undefined) { previous = id; await applyChannels(item.channels, id); }
}
};
await applyChannels(entry.channels);
const defaults = {};
const pendingMembers = [];
for (const [kind, key] of [['server', 'serverGroups'], ['channel', 'channelGroups']]) if (entry[key]?.length) {
const existing = await this.rows(`${kind}_group_list`);
for (const item of entry[key]) await this.step(key, item.name, async () => {
const name = await resolveName(variables(item.name, vars), existing, g => g.name, async (row, replacement) => { await this.mutate('group_rename', { kind, group_id: Number(row.sgid ?? row.cgid), name: replacement }); row.name = replacement; });
if (name === null) return;
const result = await this.mutate('group_add', { kind, name, type: 1 });
const id = result.group_id; if (!Number.isSafeInteger(id) || id <= 0) throw new Error('Server did not return a created group ID');
this.created[key].push(id); existing.push({ name, [kind === 'server' ? 'sgid' : 'cgid']: id, type: 1 });
if (item.default) defaults[`virtualserver_default_${kind}_group`] = id;
if (kind === 'channel' && item.defaultChannelAdmin) defaults.virtualserver_default_channel_admin_group = id;
await setPermissions(kind === 'server' ? 'server' : 'channel_group', id, item.permissions);
if (kind === 'server') for (const member of item.members || []) pendingMembers.push({ id, member });
});
}
for (const [key, value] of Object.entries(defaults)) await this.step('defaultGroup', key, () => this.mutate('server_edit', { confirm: this.context.server_uid, properties: { [key]: value } }));
for (const { id, member } of pendingMembers) await this.step('member', member.uid, async () => {
await this.mutate('server_group_member_add_uid', { group_id: id, uid: member.uid });
this.created.members.push({ group_id: id, uid: member.uid });
});
}
}
module.exports = { SnapshotOperation, validate, validVars, crc32, FLAGS };
+192
View File
@@ -0,0 +1,192 @@
'use strict';
const fs = require('node:fs/promises');
const os = require('node:os');
const path = require('node:path');
const crypto = require('node:crypto');
const { SnapshotOperation, validate, validVars, crc32 } = require('./server-snapshot-codec');
const MAX_DOCUMENT_BYTES = 32 * 1024 * 1024;
const MAX_ICON_BYTES = 128 * 1024;
const fail = error => ({ ok: false, error: { code: error.code || 'snapshot_error', message: String(error.message || error) } });
function coded(code, message) { return Object.assign(new Error(message), { code }); }
function iconBytes(icon) {
const encoded = icon.data.startsWith('data:') ? icon.data.slice(icon.data.indexOf(',') + 1) : icon.data;
if (!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(encoded)) throw new Error('Invalid icon base64');
const bytes = Buffer.from(encoded, 'base64');
if (!bytes.length || bytes.length > MAX_ICON_BYTES) throw new Error('Icon exceeds 128 KiB');
mimeType(bytes); // Never turn arbitrary imported bytes into server files.
return bytes;
}
function mimeType(bytes) {
if (bytes.subarray(0, 8).equals(Buffer.from([137,80,78,71,13,10,26,10]))) return 'image/png';
if (bytes[0] === 255 && bytes[1] === 216 && bytes[2] === 255) return 'image/jpeg';
if (/^GIF8[79]a$/.test(bytes.subarray(0, 6).toString('ascii'))) return 'image/gif';
if (bytes.subarray(0, 4).toString() === 'RIFF' && bytes.subarray(8, 12).toString() === 'WEBP') return 'image/webp';
// SVG stays opaque file bytes in main; it is never parsed or inserted into renderer DOM.
if (/^(?:\uFEFF)?\s*(?:<\?xml[^>]*>\s*)?(?:<!--[\s\S]*?-->\s*)*<svg[\s>]/i.test(bytes.toString('utf8'))) return 'image/svg+xml';
throw new Error('Unsupported server icon image format');
}
function registerServerSnapshotsIpc({ ipcMain, trustedSender, dialog, getWindow, request, validConnectionId, getConnection, subscribeCore, testOffscreen, tr }) {
const jobs = new Map();
const imports = new Map();
const invoke = async (id, command, args = {}) => {
const response = await request(id, command, args);
if (!response?.ok) throw coded(response?.error?.code || 'server_error', response?.error?.message || `${command} failed`);
return response.result;
};
const pin = id => {
if (!validConnectionId(id)) throw new Error('Invalid server connection');
const entry = getConnection(id); if (!entry) throw coded('connection_closed', 'Server connection is closed');
const session = entry.session, core = entry.core;
return () => { if (getConnection(id) !== entry || entry.session !== session || entry.core !== core) throw coded('connection_changed', 'Server connection changed; reopen snapshots'); };
};
const pick = async (method, options) => {
if (testOffscreen) throw coded('unavailable', 'Snapshot file dialogs are disabled in offscreen tests');
const window = getWindow(); return window ? dialog[method](window, options) : dialog[method](options);
};
const nativeTitle = key => tr ? tr(key) : key;
const handle = (channel, callback) => ipcMain.handle(channel, async (event, ...args) => {
if (!trustedSender(event)) return fail(coded('forbidden', 'Forbidden'));
try { return await callback(event, ...args); } catch (error) { return fail(error); }
});
const iconsFor = (id, job, check) => {
const transfer = async (command, args) => {
check();
let transferId, finished = false;
const early = new Map();
let resolve, reject;
const completion = new Promise((a, b) => { resolve = a; reject = b; });
// Install before starting: short transfers can finish before the queued reply arrives.
const accept = event => {
if (finished || !['done', 'failed', 'cancelled'].includes(event.state)) return;
finished = true;
if (event.state === 'done') resolve(event);
else reject(coded(event.state, event.error?.message || event.error || `Icon transfer ${event.state}`));
};
const unsubscribe = subscribeCore((connectionId, event) => {
if (connectionId !== id || event.event !== 'file_transfer') return;
try { job.alive(); } catch (error) { if (!finished) { finished = true; reject(error); } return; }
if (transferId === undefined) early.set(event.transfer_id, event);
else if (event.transfer_id === transferId) accept(event);
});
// Attach immediately so a terminal event racing the request cannot become unhandled.
completion.catch(() => {});
try {
const result = await invoke(id, command, args); transferId = result.transfer_id;
job.alive();
if (!Number.isSafeInteger(transferId) && typeof transferId !== 'string') throw new Error('Missing icon transfer ID');
job.transferId = transferId;
if (early.has(transferId)) accept(early.get(transferId));
if (job.cancelled) { job.alive(); await invoke(id, 'file_cancel', { transfer_id: transferId }); }
const timer = setInterval(() => { try { check(); } catch (error) { if (error.code !== 'cancelled' && !finished) { finished = true; reject(error); } } }, 250);
try { await completion; } finally { clearInterval(timer); }
check();
} finally {
unsubscribe(); job.transferId = null;
}
};
const temporary = async fn => {
const folder = await fs.mkdtemp(path.join(os.tmpdir(), 'teamspeach-snapshot-'));
try { return await fn(folder); } finally { await fs.rm(folder, { recursive: true, force: true }); }
};
return {
collect: async operation => {
const listing = await invoke(id, 'file_list', { channel_id: 0, path: '/icons/' });
if (!Array.isArray(listing.entries)) throw new Error('Invalid icon list response');
const icons = [];
for (const file of listing.entries) {
if (file.type !== 'file' || !/^icon_\d{1,10}$/.test(file.name)) continue;
const icon = await operation.step('icon', file.name, () => temporary(async folder => {
if (Number(file.size) > MAX_ICON_BYTES) throw new Error('Icon exceeds 128 KiB');
await transfer('file_download', { channel_id: 0, path: '/icons/' + file.name, dest_dir: folder, subdirs: [], overwrite: false });
const bytes = await fs.readFile(path.join(folder, file.name)); if (bytes.length > MAX_ICON_BYTES) throw new Error('Icon exceeds 128 KiB');
return { id: file.name.slice(5), data: bytes.toString('base64'), mimeType: mimeType(bytes) };
}));
if (icon) icons.push(icon);
}
return icons;
},
upload: async icon => temporary(async folder => {
const bytes = iconBytes(icon), iconId = crc32(bytes), name = 'icon_' + iconId;
// Identical content-addressed icons need no write. Never overwrite a different file.
const listing = await invoke(id, 'file_list', { channel_id: 0, path: '/icons/' });
if (!Array.isArray(listing.entries)) throw new Error('Invalid icon list response');
if (listing.entries?.some(file => file.name === name)) {
await transfer('file_download', { channel_id: 0, path: '/icons/' + name, dest_dir: folder, subdirs: [], overwrite: false });
const existing = await fs.readFile(path.join(folder, name));
if (!existing.equals(bytes)) throw new Error('Icon CRC32 collision; existing icon was not overwritten');
return iconId;
}
const source = path.join(folder, name); await fs.writeFile(source, bytes, { flag: 'wx', mode: 0o600 });
await transfer('file_upload', { channel_id: 0, path: '/icons/' + name, source, overwrite: false });
const uploaded = await invoke(id, 'file_list', { channel_id: 0, path: '/icons/' });
if (!uploaded.entries?.some(file => file.name === name)) throw new Error('Icon upload completed but its target ID was not listed; references were not changed');
return iconId;
}),
};
};
async function run(event, id, mode, prepare, action) {
if (jobs.has(id)) throw coded('busy', 'A snapshot operation is already running on this connection');
const alive = pin(id), job = { cancelled: false, transferId: null, alive };
jobs.set(id, job);
let operation;
const check = () => { alive(); if (!trustedSender(event)) throw coded('forbidden', 'Snapshot window changed'); if (job.cancelled) throw coded('cancelled', 'Snapshot cancelled; completed changes are retained'); };
try {
const context = await invoke(id, 'admin_context'); check();
const prepared = await prepare(context, check); check();
if (prepared === null) return { ok: true, cancelled: true, success: false };
const progress = value => { if (!event.sender.isDestroyed()) event.sender.send('snapshots:progress', { connectionId: id, mode, ...value }); };
const call = async (command, args) => { check(); const result = await invoke(id, command, args); alive(); return result; };
operation = new SnapshotOperation({ call, context, check, progress, icons: iconsFor(id, job, check) });
const result = await action(operation, prepared, check);
check();
return { ok: true, success: operation.errors.length === 0, partial: operation.errors.length > 0, errors: operation.errors, created: operation.created, ...result };
} catch (error) {
if (!operation) throw error;
operation.errors.push({ type: mode, identifier: 'operation', code: error.code, message: error.message });
return { ok: true, success: false, partial: true, cancelled: error.code === 'cancelled', errors: operation.errors, created: operation.created };
} finally { jobs.delete(id); }
}
handle('snapshots:export', (event, id, options) => run(event, id, 'export', async (_context, check) => {
const picked = await pick('showSaveDialog', { title: nativeTitle('snapshots.export'), defaultPath: 'server-snapshot.json', filters: [{ name: 'JSON', extensions: ['json'] }] }); check();
return picked.canceled || !picked.filePath ? null : picked.filePath;
}, async (operation, file, check) => {
const document = await operation.create(options); check();
const contents = JSON.stringify(document, null, 2); if (Buffer.byteLength(contents) > MAX_DOCUMENT_BYTES) throw new Error('Snapshot exceeds 32 MiB');
await fs.writeFile(file, contents, { mode: 0o600 });
return { saved: true, name: path.basename(file) };
}));
handle('snapshots:open', async (event, id) => {
const alive = pin(id);
const check = () => { alive(); if (!trustedSender(event)) throw coded('forbidden', 'Snapshot window changed'); };
const context = await invoke(id, 'admin_context'); check();
const result = await pick('showOpenDialog', { title: nativeTitle('snapshots.open'), filters: [{ name: 'JSON', extensions: ['json'] }], properties: ['openFile', 'dontAddToRecent'] }); check();
if (result.canceled || !result.filePaths?.length) return { ok: true, cancelled: true };
const file = await fs.open(result.filePaths[0], 'r'); let text;
try { const stat = await file.stat(); if (!stat.isFile() || stat.size > MAX_DOCUMENT_BYTES) throw new Error('Snapshot must be a regular file no larger than 32 MiB'); text = await file.readFile('utf8'); } finally { await file.close(); }
if (text.trimStart().startsWith('version=')) throw new Error('Server-side snapshot files are not supported; choose a client JSON snapshot');
const document = validate(JSON.parse(text)); check();
for (const [token, entry] of imports) if (entry.expires < Date.now() || entry.id === id) imports.delete(token);
if (imports.size >= 16) imports.delete(imports.keys().next().value);
const token = crypto.randomUUID(); imports.set(token, { id, document, check, generation: context.generation, serverUid: context.server_uid, expires: Date.now() + 30 * 60 * 1000 });
return { ok: true, token, name: path.basename(result.filePaths[0]), meta: document.meta, vars: document.vars || {}, confirmation: context.server_uid, catalog: document.catalog.map(item => ({ id: item.id, description: item.description || '', sections: ['server', 'channels', 'serverGroups', 'channelGroups', 'icons'].filter(key => item[key] !== undefined) })) };
});
handle('snapshots:apply', (event, id, options) => run(event, id, 'apply', async (context, check) => {
const entry = imports.get(options?.token);
if (!entry || entry.id !== id || entry.expires < Date.now()) throw new Error('Open the snapshot file again');
entry.check(); check();
if (entry.generation !== context.generation || entry.serverUid !== context.server_uid || options.confirmation !== context.server_uid) throw new Error('Confirm the current server identity before applying');
if (!['skip', 'rename_new', 'rename_existing'].includes(options.conflictMode) || !validVars(options.vars)) throw new Error('Invalid apply options');
const catalog = entry.document.catalog.find(c => c.id === options.catalogId); if (!catalog) throw new Error('Choose a catalog entry');
return { catalog, vars: { ...entry.document.vars, ...options.vars }, conflictMode: options.conflictMode };
}, async (operation, value) => { await operation.apply(value.catalog, value.vars, value.conflictMode); return {}; }));
handle('snapshots:cancel', async (_event, id) => {
const job = jobs.get(id); if (!job) return { ok: true, cancelling: false };
job.cancelled = true;
if (job.transferId !== null) { job.alive(); await invoke(id, 'file_cancel', { transfer_id: job.transferId }); }
return { ok: true, cancelling: true };
});
return { dispose() { for (const job of jobs.values()) job.cancelled = true; imports.clear(); } };
}
module.exports = { registerServerSnapshotsIpc };
+104
View File
@@ -0,0 +1,104 @@
'use strict';
const { randomUUID } = require('node:crypto');
const deny = () => ({ action: 'deny' });
const failure = message => ({ ok: false, error: { code: 'stream_popout', message } });
/** Only a one-use main-frame grant can open the fixed, scriptless same-origin player document. */
function registerStreamPopout({ ipcMain, BrowserWindow, getWindow, trustedSender, appOrigin, getConnection, testOffscreen = false, now = Date.now }) {
const url = `${appOrigin}/stream-popout.html`;
const grants = new Map(), children = new Map();
let attached = null;
const current = grant => testOffscreen || (() => {
const connection = getConnection(grant.connectionId);
return connection?.state === 'connected' && connection.session === grant.epoch;
})();
const trusted = event => trustedSender(event) && event.senderFrame === event.sender.mainFrame;
const close = token => {
grants.delete(token);
const entry = children.get(token);
if (entry && !entry.window.isDestroyed()) entry.window.close();
};
const dispose = () => {
grants.clear();
for (const token of children.keys()) close(token);
};
ipcMain.handle('stream-popout:prepare', (event, input) => {
if (!trusted(event)) return failure('Only the main application frame can detach a stream.');
if (!input || Object.keys(input).some(key => !['connectionId', 'streamId'].includes(key)) || typeof input.connectionId !== 'string' || !/^c[1-9][0-9]*$/.test(input.connectionId) || typeof input.streamId !== 'string' || !input.streamId || input.streamId.length > 256 || /[\u0000-\u001f]/.test(input.streamId)) return failure('Invalid stream owner.');
for (const [token, grant] of grants) if (grant.expires < now()) grants.delete(token);
if (grants.size + children.size >= 16) return failure('Close an existing detached stream before opening another.');
const connection = getConnection(input.connectionId);
const grant = { ...input, frame: event.senderFrame, epoch: connection?.session, expires: now() + 5000 };
if (!current(grant)) return failure('The stream connection is no longer active.');
const token = `stream-popout-${randomUUID()}`;
grants.set(token, grant);
return { ok: true, token, url };
});
ipcMain.handle('stream-popout:close', (event, input) => {
if (!trusted(event) || !input || Object.keys(input).some(key => key !== 'token') || typeof input.token !== 'string') return failure('Invalid detached stream owner.');
close(input.token); return { ok: true };
});
ipcMain.handle('stream-popout:present', (event, input) => {
if (!trusted(event) || !input || Object.keys(input).some(key => key !== 'token')) return failure('Invalid detached stream owner.');
const entry = children.get(input.token);
if (!entry || entry.window.isDestroyed() || !entry.loaded || !current(entry.grant)) return failure('Detached stream is no longer available.');
if (!testOffscreen) entry.window.show();
return { ok: true };
});
const attach = parent => {
if (attached === parent) return;
attached = parent;
parent.webContents.on('did-start-navigation', (_event, _url, sameDocument, isMainFrame) => { if (isMainFrame && !sameDocument) dispose(); });
parent.webContents.on('render-process-gone', dispose);
parent.once('closed', dispose);
parent.webContents.setWindowOpenHandler(details => {
const grant = grants.get(details.frameName);
if (!grant || details.url !== url || details.postBody || grant.frame !== parent.webContents.mainFrame || grant.expires < now() || !current(grant) || parent !== getWindow()) return deny();
grants.delete(details.frameName);
const token = details.frameName;
// Electron constructs the guest WebContents BEFORE createWindow. Security/offscreen prefs
// must be supplied here, and the callback must wrap that exact guest (not a second blank one).
const webPreferences = { contextIsolation: true, sandbox: true, nodeIntegration: false, nodeIntegrationInWorker: false,
nodeIntegrationInSubFrames: false, webSecurity: true, webviewTag: false, navigateOnDragDrop: false,
spellcheck: false, autoplayPolicy: 'no-user-gesture-required', offscreen: Boolean(testOffscreen) };
return {
action: 'allow', outlivesOpener: false,
overrideBrowserWindowOptions: { show: false, focusable: !testOffscreen, webPreferences },
createWindow: inherited => {
const child = new BrowserWindow({ webContents: inherited.webContents,
width: 960, height: 600, minWidth: 320, minHeight: 200, title: 'TeamsPeach',
show: false, focusable: !testOffscreen, skipTaskbar: Boolean(testOffscreen), fullscreenable: !testOffscreen,
...(testOffscreen ? { x: -10000, y: -10000 } : {}), webPreferences });
child.setMenu(null);
if (testOffscreen) child.webContents.setAudioMuted(true);
child.webContents.setWindowOpenHandler(deny);
let loaded = false;
child.webContents.on('will-navigate', (event, destination) => { if (loaded || destination !== url) event.preventDefault(); });
child.webContents.on('will-frame-navigate', event => { if (!event.isMainFrame || loaded || event.url !== url) event.preventDefault(); });
child.webContents.on('will-redirect', event => event.preventDefault());
child.webContents.on('will-attach-webview', event => event.preventDefault());
if (testOffscreen) child.webContents.on('content-bounds-updated', event => event.preventDefault());
const entry = { window: child, grant, loaded: false };
children.set(token, entry);
child.webContents.on('did-finish-load', () => {
if (child.webContents.getURL() !== url) return;
// A wrapped offscreen guest can retain its pre-attachment 0×0 viewport despite
// BrowserWindow outer bounds. Set the loaded document's client size without showing it.
child.setContentSize(960, 600, false);
loaded = true; entry.loaded = true;
if (!parent.isDestroyed()) parent.webContents.send('stream-popout:ready', { token });
});
child.once('closed', () => {
children.delete(token);
if (!parent.isDestroyed() && !parent.webContents.isDestroyed()) parent.webContents.send('stream-popout:closed', { token });
});
return child.webContents;
},
};
});
};
return { attach, dispose };
}
module.exports = { registerStreamPopout };
+784
View File
@@ -0,0 +1,784 @@
'use strict';
// Local TeamSpeak 6 theme extensions (the official client's "User Theme"), account-free and offline.
// Format: official docs/Extensions.md + docs/extensions.json (JSON Schema draft-07) shipped with TS6.
// Official runtime behaviour mirrored here (TS6 html/client_ui/main.js, offsets in docs/themes.md):
// * getInstalledThemes() lists one folder per extension; the UI re-reads it at most every 5 minutes
// unless the user presses refresh;
// * the selection is saved as "<identifier>//<variant name>"; an unknown selection resets to the stock theme;
// * the variant CSS is applied as <link rel="stylesheet" id="userStyle"> appended to <head>.
// Hardening that the official client does not document: files are served only through the restricted
// tsext: scheme, never outside the extension folder (no traversal, no symlinks/junctions), with bounded
// reads, a CSS scan that rejects @import and non-local url()/image-set() references, and only the
// selected variant's stylesheet, fonts and images (other extensions expose their preview images only).
// This module is electron-free: protocol/shell functions are injected by main.js.
const fs = require('node:fs');
const path = require('node:path');
const SCHEME = 'tsext';
// No fetch API, no service workers, no CSP bypass: the page CSP adds only `tsext:` to style/img/font-src.
// corsEnabled lets @font-face (always a CORS request) load from the app origin.
const SCHEME_PRIVILEGE = Object.freeze({ scheme: SCHEME, privileges: Object.freeze({ standard: true, secure: true, corsEnabled: true }) });
const LIMITS = Object.freeze({
rootEntries: 1024, // directory entries looked at in the extension root
extensions: 64, // extension folders validated per scan
packageBytes: 64 * 1024,
cssBytes: 2 * 1024 * 1024,
imageBytes: 4 * 1024 * 1024,
fontBytes: 4 * 1024 * 1024,
pathLength: 512,
pathDepth: 8,
});
const CACHE_MS = 5 * 60 * 1000; // official refreshAvailableUserStyles: 3e5 ms unless forced
const TYPES = Object.freeze({
'.css': { mime: 'text/css; charset=utf-8', kind: 'css', limit: LIMITS.cssBytes },
'.png': { mime: 'image/png', kind: 'image', limit: LIMITS.imageBytes },
'.svg': { mime: 'image/svg+xml', kind: 'image', limit: LIMITS.imageBytes },
'.jpg': { mime: 'image/jpeg', kind: 'image', limit: LIMITS.imageBytes },
'.jpeg': { mime: 'image/jpeg', kind: 'image', limit: LIMITS.imageBytes },
'.gif': { mime: 'image/gif', kind: 'image', limit: LIMITS.imageBytes },
'.webp': { mime: 'image/webp', kind: 'image', limit: LIMITS.imageBytes },
'.woff': { mime: 'font/woff', kind: 'font', limit: LIMITS.fontBytes },
'.woff2': { mime: 'font/woff2', kind: 'font', limit: LIMITS.fontBytes },
'.ttf': { mime: 'font/ttf', kind: 'font', limit: LIMITS.fontBytes },
'.otf': { mime: 'font/otf', kind: 'font', limit: LIMITS.fontBytes },
});
const RESOURCE_CSP = "default-src 'none'; style-src 'unsafe-inline'; img-src data:; sandbox";
// ---------- schema (exact transcription of extensions.json; draft-07 semantics) ----------
const IDENTIFIER = /^[a-z]{2,}\.([a-z]{3,}\.){1,}[a-z]{3,}$/;
const SEMVER = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
const HTTPS = /^https:\/\/.*\..*/;
const SOURCE = /^[-\w\s=.]{3,200}$/;
const VARIANT_IMAGE = /^.*\.(?:png|svg)$/;
const ROOM = /^#.*:([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))*$/;
// "format" keywords: a conservative reading of RFC 5322 addr-spec and RFC 1123 host names.
const EMAIL = /^[^\s@<>()[\]\\,;:"]+@[^\s@<>()[\]\\,;:"]+\.[^\s@<>()[\]\\,;:"]+$/;
const HOSTNAME = /^(?=.{1,253}$)([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))*$/;
class SchemaError extends Error {}
const isObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
// JSON Schema lengths count code points, not UTF-16 units.
const length = (s) => Array.from(s).length;
function fail(where, message) {
throw new SchemaError(`${where}: ${message}`);
}
function checkObject(v, where, { required = [], allowed }) {
if (!isObject(v)) fail(where, 'must be an object');
for (const key of Object.keys(v)) if (!allowed.includes(key)) fail(where, `unknown property "${key}"`);
for (const key of required) if (!Object.prototype.hasOwnProperty.call(v, key)) fail(where, `missing "${key}"`);
}
function checkString(v, where, { min = 0, max = Infinity, pattern, format } = {}) {
if (typeof v !== 'string') fail(where, 'must be a string');
const n = length(v);
if (n < min) fail(where, `shorter than ${min}`);
if (n > max) fail(where, `longer than ${max}`);
if (pattern && !pattern.test(v)) fail(where, 'does not match the required pattern');
if (format && !format.test(v)) fail(where, 'has an invalid format');
}
function checkInteger(v, where, min) {
if (typeof v !== 'number' || !Number.isInteger(v)) fail(where, 'must be an integer');
if (v < min) fail(where, `must be at least ${min}`);
}
function canonical(v) {
if (Array.isArray(v)) return `[${v.map(canonical).join(',')}]`;
if (isObject(v)) return `{${Object.keys(v).sort().map((k) => `${JSON.stringify(k)}:${canonical(v[k])}`).join(',')}}`;
return JSON.stringify(v);
}
function checkUnique(list, where) {
const seen = new Set();
for (const item of list) {
const key = canonical(item);
if (seen.has(key)) fail(where, 'items must be unique');
seen.add(key);
}
}
const TOP_KEYS = ['engines', 'version', 'name', 'description', 'author', 'homepage', 'docsUrl', 'repository', 'community', 'identifier', 'image', 'license', 'keywords', 'content'];
const TOP_REQUIRED = ['engines', 'identifier', 'image', 'repository', 'author', 'description', 'name', 'version', 'content', 'license'];
/** Validates a parsed package.json against extensions.json; throws SchemaError("<path>: <reason>"). */
function validatePackage(pkg) {
checkObject(pkg, 'package', { required: TOP_REQUIRED, allowed: TOP_KEYS });
checkObject(pkg.engines, 'engines', { required: ['teamspeak'], allowed: ['teamspeak'] });
checkInteger(pkg.engines.teamspeak, 'engines.teamspeak', 1);
checkString(pkg.version, 'version', { pattern: SEMVER });
checkString(pkg.name, 'name', { min: 5, max: 64 });
checkString(pkg.description, 'description', { min: 20, max: 256 });
if (typeof pkg.author === 'string') {
checkString(pkg.author, 'author', { min: 3, max: 64 });
} else {
checkObject(pkg.author, 'author', { required: ['name'], allowed: ['name', 'email', 'url', 'userTag'] });
checkString(pkg.author.name, 'author.name', { min: 3, max: 64 });
if ('email' in pkg.author) checkString(pkg.author.email, 'author.email', { format: EMAIL });
if ('url' in pkg.author) checkString(pkg.author.url, 'author.url', { pattern: HTTPS });
if ('userTag' in pkg.author) checkString(pkg.author.userTag, 'author.userTag', { format: EMAIL });
}
if ('homepage' in pkg) checkString(pkg.homepage, 'homepage', { max: 1024, pattern: HTTPS });
if ('docsUrl' in pkg) checkString(pkg.docsUrl, 'docsUrl', { max: 1024, pattern: HTTPS });
if (typeof pkg.repository === 'string') {
checkString(pkg.repository, 'repository', { min: 15, max: 512, pattern: HTTPS });
} else {
checkObject(pkg.repository, 'repository', { required: ['type', 'url'], allowed: ['type', 'url', 'directory'] });
if (pkg.repository.type !== 'git' && pkg.repository.type !== 'svn') fail('repository.type', 'must be "git" or "svn"');
checkString(pkg.repository.url, 'repository.url', { max: 1024, pattern: HTTPS });
if ('directory' in pkg.repository) checkString(pkg.repository.directory, 'repository.directory', { max: 256 });
}
if ('community' in pkg) {
checkObject(pkg.community, 'community', { allowed: ['room', 'server'] });
if ('room' in pkg.community) checkString(pkg.community.room, 'community.room', { min: 20, max: 256, pattern: ROOM });
if ('server' in pkg.community) checkString(pkg.community.server, 'community.server', { min: 3, max: 128, format: HOSTNAME });
}
checkString(pkg.identifier, 'identifier', { min: 11, max: 64, pattern: IDENTIFIER });
checkString(pkg.image, 'image', { min: 6 });
checkString(pkg.license, 'license', { min: 3, max: 20 });
if ('keywords' in pkg) {
if (!Array.isArray(pkg.keywords)) fail('keywords', 'must be an array');
if (pkg.keywords.length > 5) fail('keywords', 'more than 5 items');
pkg.keywords.forEach((k, i) => checkString(k, `keywords[${i}]`, { min: 3, max: 10 }));
checkUnique(pkg.keywords, 'keywords');
}
checkObject(pkg.content, 'content', { allowed: ['themes'] });
if (Object.keys(pkg.content).length < 1) fail('content', 'must not be empty');
const themes = pkg.content.themes;
if (!Array.isArray(themes)) fail('content.themes', 'must be an array');
if (themes.length < 1 || themes.length > 20) fail('content.themes', 'must contain 1–20 items');
checkUnique(themes, 'content.themes');
themes.forEach((theme, i) => {
const where = `content.themes[${i}]`;
checkObject(theme, where, { required: ['name', 'source', 'apiVersion', 'image'], allowed: ['name', 'source', 'apiVersion', 'image'] });
checkString(theme.name, `${where}.name`, { min: 4, max: 30 });
checkString(theme.source, `${where}.source`, { pattern: SOURCE });
checkInteger(theme.apiVersion, `${where}.apiVersion`, 1);
checkString(theme.image, `${where}.image`, { min: 6, max: 128, pattern: VARIANT_IMAGE });
});
return pkg;
}
// ---------- selection ("<identifier>//<variant name>") ----------
function parseSelection(value) {
if (typeof value !== 'string' || value.length > 200 || /[\u0000-\u001f\u007f]/.test(value)) return null;
const at = value.indexOf('//');
if (at <= 0) return null;
const identifier = value.slice(0, at);
const name = value.slice(at + 2);
if (!IDENTIFIER.test(identifier) || identifier.length > 64) return null;
const n = length(name);
if (n < 4 || n > 30) return null;
return { identifier, name };
}
/** Accepts the saved string and the official client's older object form {extensionIdentifier, name}. */
function normalizeSelection(value) {
if (value === null) return null;
if (isObject(value) && typeof value.extensionIdentifier === 'string' && typeof value.name === 'string') {
value = `${value.extensionIdentifier}//${value.name}`;
}
const parsed = parseSelection(value);
return parsed ? `${parsed.identifier}//${parsed.name}` : undefined;
}
const USER_STYLE_PREF = Object.freeze({ default: null, check: (v) => v === null || parseSelection(v) !== null });
function extensionsDir(userData) {
return path.join(userData, 'extensions');
}
// ---------- confined, bounded file access ----------
class AccessError extends Error {
constructor(code, detail) {
super(code);
this.code = code;
this.detail = detail;
}
}
/** A relative POSIX path inside the extension: no absolute paths, drives, streams, backslashes or dot segments. */
function relativeSegments(rel) {
if (typeof rel !== 'string' || rel.length === 0 || rel.length > LIMITS.pathLength) return null;
if (/[\u0000-\u001f\u007f\\:*?"<>|]/.test(rel) || rel.startsWith('/')) return null;
const segments = rel.split('/');
if (segments.length > LIMITS.pathDepth) return null;
for (const s of segments) if (s === '' || s === '.' || s === '..') return null;
return segments;
}
function within(base, target) {
const rel = path.relative(base, target);
return rel !== '' && !rel.startsWith('..') && !path.isAbsolute(rel);
}
/** Reject a replaced extension/root directory, including junctions, before every resource read. */
async function checkedDirectory(directory, expectedReal = null) {
const st = await fs.promises.lstat(directory);
if (st.isSymbolicLink() || !st.isDirectory()) throw new AccessError('link');
const real = await fs.promises.realpath(directory);
if (expectedReal !== null && real !== expectedReal) throw new AccessError('link');
return real;
}
/** Resolves a file inside `rootReal` (already a realpath), refusing links anywhere on the way. */
async function resolveInside(rootReal, rel) {
const segments = relativeSegments(rel);
if (!segments) throw new AccessError('file', rel);
let current = rootReal;
for (let i = 0; i < segments.length; i++) {
current = path.join(current, segments[i]);
let st;
try {
st = await fs.promises.lstat(current);
} catch {
throw new AccessError('file', rel);
}
if (st.isSymbolicLink()) throw new AccessError('link', rel);
const last = i === segments.length - 1;
if (last ? !st.isFile() : !st.isDirectory()) throw new AccessError('file', rel);
}
let real;
try {
real = await fs.promises.realpath(current);
} catch {
throw new AccessError('file', rel);
}
if (!within(rootReal, real)) throw new AccessError('file', rel);
return real;
}
/** Reads at most `limit` bytes; fails if the file is larger, not regular, or replaced while open. */
async function readBounded(file, limit) {
const before = await fs.promises.lstat(file);
if (!before.isFile()) throw new AccessError('file');
if (before.size > limit) throw new AccessError('size');
const handle = await fs.promises.open(file, 'r');
try {
const st = await handle.stat();
if (!st.isFile() || st.ino !== before.ino || st.dev !== before.dev) throw new AccessError('file');
if (st.size > limit) throw new AccessError('size');
const data = Buffer.alloc(st.size + 1);
let size = 0;
while (size < data.length) {
const { bytesRead } = await handle.read(data, size, data.length - size, null);
if (!bytesRead) break;
size += bytesRead;
}
if (size !== st.size) throw new AccessError('size');
return { data: data.subarray(0, size), mtimeMs: st.mtimeMs };
} finally {
await handle.close();
}
}
// ---------- content checks ----------
function sniff(kind, ext, buf) {
if (kind === 'image') {
if (ext === '.png') return buf.length >= 8 && buf.toString('latin1', 0, 8) === '\x89PNG\r\n\x1a\n';
if (ext === '.jpg' || ext === '.jpeg') return buf.length >= 3 && buf[0] === 0xff && buf[1] === 0xd8 && buf[2] === 0xff;
if (ext === '.gif') return buf.length >= 6 && /^GIF8[79]a$/.test(buf.toString('latin1', 0, 6));
if (ext === '.webp') return buf.length >= 12 && buf.toString('latin1', 0, 4) === 'RIFF' && buf.toString('latin1', 8, 12) === 'WEBP';
if (ext === '.svg') {
const text = decodeUtf8(buf);
if (text === null || !/<svg[\s>]/i.test(text)) return false;
// SVG is served as an inert image, but active/XML/external content is rejected as well.
if (/<\s*(?:script|foreignObject)\b|<!\s*(?:DOCTYPE|ENTITY)|\bon[a-z]+\s*=/i.test(text)) return false;
if (/\b(?:href|src)\s*=\s*["']\s*(?!#|data:image\/)[^"']+/i.test(text)) return false;
try { checkCss(text); } catch { return false; }
return true;
}
return false;
}
if (kind === 'font') {
const tag = buf.length >= 4 ? buf.toString('latin1', 0, 4) : '';
if (ext === '.woff') return tag === 'wOFF';
if (ext === '.woff2') return tag === 'wOF2';
if (ext === '.ttf') return tag === '\x00\x01\x00\x00' || tag === 'true';
if (ext === '.otf') return tag === 'OTTO' || tag === '\x00\x01\x00\x00';
return false;
}
return false;
}
function decodeUtf8(buf) {
try {
return new TextDecoder('utf-8', { fatal: true }).decode(buf).replace(/^\uFEFF/, '');
} catch {
return null;
}
}
const IDENT_CHAR = /[A-Za-z0-9_\-\u0080-\uffff]/;
const IDENT_START = /[A-Za-z_\-\u0080-\uffff]/;
/**
* Minimal CSS Syntax tokenizer, enough to see every at-rule name, url() target and quoted string after
* escape decoding and comment removal (so `@\69mport` or `u\72l(` cannot hide a reference).
*/
function tokenizeCss(css) {
const tokens = [];
const n = css.length;
let i = 0;
const readEscape = () => {
// at a backslash
const hex = /^[0-9a-fA-F]{1,6}/.exec(css.slice(i + 1, i + 7));
if (hex) {
i += 1 + hex[0].length;
if (i < n && /[ \t\n\r\f]/.test(css[i])) i += css[i] === '\r' && css[i + 1] === '\n' ? 2 : 1;
const cp = parseInt(hex[0], 16);
return cp === 0 || cp > 0x10ffff || (cp >= 0xd800 && cp <= 0xdfff) ? '\ufffd' : String.fromCodePoint(cp);
}
i += 2;
return css[i - 1] ?? '';
};
const validEscape = (at) => css[at] === '\\' && at + 1 < n && css[at + 1] !== '\n';
const readName = () => {
let out = '';
while (i < n) {
if (validEscape(i)) out += readEscape();
else if (IDENT_CHAR.test(css[i])) out += css[i++];
else break;
}
return out;
};
const readString = (quote) => {
i++;
let out = '';
while (i < n && css[i] !== quote) {
if (css[i] === '\\') {
if (css[i + 1] === '\n') i += 2;
else out += readEscape();
} else if (css[i] === '\n') {
break; // bad-string; the rest is still scanned
} else {
out += css[i++];
}
}
i++;
return out;
};
while (i < n) {
const c = css[i];
if (c === '/' && css[i + 1] === '*') {
const end = css.indexOf('*/', i + 2);
if (end < 0) throw new AccessError('css', 'unterminated comment');
i = end + 2;
} else if (c === '"' || c === "'") {
tokens.push({ type: 'string', value: readString(c) });
} else if (c === '@') {
i++;
tokens.push({ type: 'at', value: readName().toLowerCase() });
} else if (IDENT_START.test(c) || validEscape(i)) {
const name = readName();
if (css[i] === '(') {
i++;
const lower = name.toLowerCase();
let j = i;
while (j < n && /[ \t\n\r\f]/.test(css[j])) j++;
if (lower === 'url' && css[j] !== '"' && css[j] !== "'") {
i = j;
let out = '';
while (i < n && css[i] !== ')') {
if (validEscape(i)) out += readEscape();
else out += css[i++];
}
i++;
tokens.push({ type: 'url', value: out.trim() });
} else {
tokens.push({ type: 'function', value: lower });
}
} else {
tokens.push({ type: 'ident', value: name });
}
} else if (c === '(') {
tokens.push({ type: '(' });
i++;
} else if (c === ')') {
tokens.push({ type: ')' });
i++;
} else {
i++;
}
}
return tokens;
}
/** A CSS reference may only be a fragment, data: or a relative path inside the extension. */
function checkCssReference(value) {
const v = value.trim();
if (v === '' || v.startsWith('#')) return;
if (/^data:/i.test(v)) return;
if (/^[a-z][a-z0-9+.-]*:/i.test(v) || v.startsWith('/') || v.startsWith('\\')) throw new AccessError('css', `reference ${v.slice(0, 80)}`);
let pathPart = v.split(/[?#]/, 1)[0];
try {
pathPart = decodeURIComponent(pathPart);
} catch {
throw new AccessError('css', `reference ${v.slice(0, 80)}`);
}
if (!relativeSegments(pathPart)) throw new AccessError('css', `reference ${v.slice(0, 80)}`);
}
/** Rejects @import (any target) and every url()/src()/image-set() string that is not local to the extension. */
function checkCss(text) {
const tokens = tokenizeCss(text);
const stack = [];
for (let k = 0; k < tokens.length; k++) {
const tok = tokens[k];
if (tok.type === 'at' && tok.value === 'import') throw new AccessError('css', '@import');
if (tok.type === 'url') checkCssReference(tok.value);
if (tok.type === 'function') stack.push(tok.value);
else if (tok.type === '(') stack.push('(');
else if (tok.type === ')') stack.pop();
else if (tok.type === 'string' && stack.some((f) => f === 'url' || f === 'src' || f === 'image-set' || f === '-webkit-image-set' || f === 'image')) {
checkCssReference(tok.value);
}
}
}
// ---------- scanning ----------
function encodePath(rel) {
return rel.split('/').map(encodeURIComponent).join('/');
}
function resourceUrl(identifier, rel, mtimeMs) {
return `${SCHEME}://${identifier}/${encodePath(rel)}?v=${Math.floor(mtimeMs).toString(36)}`;
}
async function readPackage(rootReal, folder) {
const dir = path.join(rootReal, folder);
const dirReal = await checkedDirectory(dir);
if (!within(rootReal, dirReal)) throw new AccessError('link');
let file;
try {
file = await resolveInside(dir, 'package.json');
} catch (err) {
throw new AccessError(err.code === 'link' ? 'link' : 'package');
}
const { data } = await readBounded(file, LIMITS.packageBytes);
const text = decodeUtf8(data);
let pkg;
try {
if (text === null) throw new Error('utf-8');
pkg = JSON.parse(text);
} catch {
throw new AccessError('json');
}
try {
validatePackage(pkg);
} catch (err) {
if (err instanceof SchemaError) throw new AccessError('schema', err.message);
throw err;
}
if (pkg.identifier !== folder) throw new AccessError('folder', pkg.identifier);
// Selection keys are "<identifier>//<name>"; duplicate names would be ambiguous.
const names = new Set();
for (const theme of pkg.content.themes) {
if (names.has(theme.name)) throw new AccessError('schema', `content.themes: duplicate name "${theme.name}"`);
names.add(theme.name);
if (path.extname(theme.source).toLowerCase() !== '.css') throw new AccessError('file', theme.source);
}
const stamp = async (rel, kindWanted) => {
const type = TYPES[path.extname(rel).toLowerCase()];
if (!type || type.kind !== kindWanted) throw new AccessError('file', rel);
const real = await resolveInside(dirReal, rel);
const fst = await fs.promises.stat(real);
if (fst.size > type.limit) throw new AccessError('size', rel);
return { rel, mtimeMs: fst.mtimeMs };
};
const image = await stamp(pkg.image, 'image');
const themes = [];
for (const theme of pkg.content.themes) {
const source = await stamp(theme.source, 'css');
const preview = await stamp(theme.image, 'image');
themes.push({ name: theme.name, apiVersion: theme.apiVersion, sourceRel: source.rel, sourceUrl: resourceUrl(folder, source.rel, source.mtimeMs), imageRel: preview.rel, imageUrl: resourceUrl(folder, preview.rel, preview.mtimeMs) });
}
return { pkg, dirReal, imageRel: image.rel, imageUrl: resourceUrl(folder, image.rel, image.mtimeMs), themes };
}
function publicEntry(entry) {
const { pkg } = entry;
const author = typeof pkg.author === 'string' ? { name: pkg.author } : { ...pkg.author };
const repository = typeof pkg.repository === 'string' ? { url: pkg.repository } : { ...pkg.repository };
return {
identifier: pkg.identifier,
name: pkg.name,
description: pkg.description,
version: pkg.version,
license: pkg.license,
author,
repository,
homepage: pkg.homepage ?? null,
docsUrl: pkg.docsUrl ?? null,
community: pkg.community ? { ...pkg.community } : null,
keywords: pkg.keywords ? [...pkg.keywords] : [],
image: entry.imageUrl,
themes: entry.themes.map((t) => ({ name: t.name, source: t.sourceUrl, image: t.imageUrl, apiVersion: t.apiVersion })),
};
}
/** Scans `root`: one folder per extension; returns valid entries keyed by identifier and rejected folders. */
async function scanExtensions(root) {
// mkdir may race another local process; lstat afterwards must still reject a root link.
await fs.promises.mkdir(root, { recursive: true });
const rootReal = await checkedDirectory(root);
const names = [];
let truncated = false;
let visited = 0;
const dir = await fs.promises.opendir(rootReal);
try {
for await (const dirent of dir) {
if (++visited > LIMITS.rootEntries) {
truncated = true;
break;
}
if (dirent.name.startsWith('.')) continue;
if (dirent.isDirectory() || dirent.isSymbolicLink()) names.push(dirent.name);
}
} finally {
await dir.close().catch(() => {});
}
names.sort();
if (names.length > LIMITS.extensions) truncated = true;
const entries = new Map();
const invalid = [];
for (const folder of names.slice(0, LIMITS.extensions)) {
try {
const entry = await readPackage(rootReal, folder);
entries.set(folder, entry);
} catch (err) {
const code = err instanceof AccessError ? err.code : 'package';
invalid.push({ folder, reason: code === 'css' ? 'file' : code, detail: err instanceof AccessError && err.detail ? String(err.detail).slice(0, 200) : null });
}
}
if (truncated) invalid.push({ folder: '', reason: 'limit', detail: null, max: LIMITS.extensions });
return { rootReal, entries, invalid };
}
// ---------- service ----------
function createThemeService({ root, appOrigin, prefs, openPath, openExternal, allowShell, now = Date.now }) {
let scan = null;
let scannedAt = 0;
let pending = null;
let lastMissing = null;
async function ensureScan(force) {
if (!force && scan && now() - scannedAt < CACHE_MS) return scan;
if (!pending) {
pending = scanExtensions(root).then((result) => {
scan = result;
scannedAt = now();
return result;
}).finally(() => {
pending = null;
});
}
return pending;
}
function findTheme(result, selection) {
const parsed = parseSelection(selection);
if (!parsed) return null;
const entry = result.entries.get(parsed.identifier);
const theme = entry && entry.themes.find((t) => t.name === parsed.name);
return theme ? { entry, theme } : null;
}
function activeView(result) {
const selection = prefs.get().userStyle;
const found = selection ? findTheme(result, selection) : null;
return found ? { selection, identifier: found.entry.pkg.identifier, name: found.theme.name, source: found.theme.sourceUrl } : null;
}
/** Official behaviour: a selection that no installed extension provides falls back to the stock theme. */
function reconcileSelection(result) {
const selection = prefs.get().userStyle;
if (selection && !findTheme(result, selection)) {
prefs.set({ userStyle: null });
lastMissing = { selection, name: parseSelection(selection)?.name ?? selection };
}
}
async function list(force) {
const result = await ensureScan(force);
reconcileSelection(result);
const missing = lastMissing;
lastMissing = null;
return {
ok: true,
directory: root,
scannedAt,
extensions: Array.from(result.entries.values()).map(publicEntry),
invalid: result.invalid.map((v) => ({ ...v })),
selection: prefs.get().userStyle,
active: activeView(result),
missing,
};
}
async function select(value) {
const selection = normalizeSelection(value);
if (selection === undefined) return { ok: false, error: { code: 'bad_request', message: 'invalid theme selection' } };
if (selection === null) {
prefs.set({ userStyle: null });
return { ok: true, selection: null, active: null };
}
let result = await ensureScan(false);
if (!findTheme(result, selection)) result = await ensureScan(true);
if (!findTheme(result, selection)) return { ok: false, error: { code: 'not_found', message: 'theme not installed' } };
prefs.set({ userStyle: selection });
return { ok: true, selection, active: activeView(result) };
}
async function openDirectory(identifier) {
if (!allowShell) return { ok: false, error: { code: 'unavailable', message: 'opening folders is disabled in this session' } };
let target = root;
if (identifier !== null) {
if (typeof identifier !== 'string' || !IDENTIFIER.test(identifier)) return { ok: false, error: { code: 'bad_request', message: 'invalid identifier' } };
const entry = (await ensureScan(false)).entries.get(identifier);
if (!entry) return { ok: false, error: { code: 'not_found', message: 'extension not installed' } };
target = entry.dirReal;
} else {
await ensureScan(false);
}
const current = await ensureScan(false);
await checkedDirectory(root, current.rootReal);
if (identifier !== null) await checkedDirectory(target, target);
const error = await openPath(target);
return error ? { ok: false, error: { code: 'open_failed', message: error } } : { ok: true };
}
/** Opens only links taken from a validated package.json (https:// or the author's mailto:). */
async function openLink(options) {
if (!allowShell) return { ok: false, error: { code: 'unavailable', message: 'opening links is disabled in this session' } };
const identifier = options && options.identifier;
const kind = options && options.kind;
if (typeof identifier !== 'string' || !IDENTIFIER.test(identifier)) return { ok: false, error: { code: 'bad_request', message: 'invalid identifier' } };
const entry = (await ensureScan(false)).entries.get(identifier);
if (!entry) return { ok: false, error: { code: 'not_found', message: 'extension not installed' } };
const { pkg } = entry;
let url = null;
if (kind === 'homepage') url = pkg.homepage ?? null;
else if (kind === 'repository') url = typeof pkg.repository === 'string' ? pkg.repository : pkg.repository.url;
else if (kind === 'docs') url = pkg.docsUrl ?? null;
else if (kind === 'email') url = typeof pkg.author === 'object' && pkg.author.email ? `mailto:${pkg.author.email}` : null;
else return { ok: false, error: { code: 'bad_request', message: 'invalid link kind' } };
if (!url || !(HTTPS.test(url) || (kind === 'email' && /^mailto:[^\s]+$/.test(url)))) return { ok: false, error: { code: 'not_found', message: 'no such link' } };
try {
await openExternal(url);
return { ok: true, url };
} catch (err) {
return { ok: false, error: { code: 'open_failed', message: err.message } };
}
}
function deny(status, reason) {
return new Response(reason, { status, headers: { 'Content-Type': 'text/plain; charset=utf-8', 'X-Content-Type-Options': 'nosniff', 'Access-Control-Allow-Origin': appOrigin } });
}
/** Serves tsext://<identifier>/<path>. Everything outside this policy is a 403/404. */
async function handle(request) {
if (request.method !== 'GET') return deny(405, 'method not allowed');
let url;
let rel;
try {
url = new URL(request.url);
rel = decodeURIComponent(url.pathname.replace(/^\//, ''));
} catch {
return deny(400, 'bad request');
}
const identifier = url.hostname;
if (!IDENTIFIER.test(identifier) || url.username || url.password || url.port) return deny(404, 'not found');
const result = await ensureScan(false);
const entry = result.entries.get(identifier);
if (!entry) return deny(404, 'not found');
const ext = path.extname(rel).toLowerCase();
const type = TYPES[ext];
if (!type || !relativeSegments(rel)) return deny(403, 'forbidden');
const previews = new Set([entry.imageRel, ...entry.themes.map((t) => t.imageRel)]);
const active = activeView(result);
const isActive = active && active.identifier === identifier;
const activeTheme = isActive ? entry.themes.find((t) => t.name === active.name) : null;
let allowed;
if (type.kind === 'css') allowed = Boolean(activeTheme && activeTheme.sourceRel === rel);
else if (previews.has(rel)) allowed = type.kind === 'image';
else allowed = Boolean(isActive);
if (!allowed) return deny(403, 'forbidden');
let body;
try {
await checkedDirectory(root, result.rootReal);
await checkedDirectory(entry.dirReal, entry.dirReal);
const file = await resolveInside(entry.dirReal, rel);
({ data: body } = await readBounded(file, type.limit));
if (type.kind === 'css') {
const text = decodeUtf8(body);
if (text === null) throw new AccessError('css', 'not utf-8');
checkCss(text);
} else if (!sniff(type.kind, ext, body)) {
throw new AccessError('type');
}
} catch (err) {
if (err instanceof AccessError) return deny(err.code === 'file' ? 404 : err.code === 'size' ? 413 : 403, err.code);
return deny(404, 'not found');
}
return new Response(body, {
status: 200,
headers: {
'Content-Type': type.mime,
'Content-Security-Policy': RESOURCE_CSP,
'X-Content-Type-Options': 'nosniff',
'Access-Control-Allow-Origin': appOrigin,
'Cache-Control': 'no-store',
'Referrer-Policy': 'no-referrer',
},
});
}
function registerProtocol(protocol) {
protocol.handle(SCHEME, handle);
}
function registerIpc(ipcMain, trustedSender) {
const forbidden = { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
const guard = (fn) => async (event, arg) => {
if (!trustedSender(event)) return forbidden;
try {
return await fn(arg);
} catch (err) {
return { ok: false, error: { code: 'internal', message: err.message } };
}
};
ipcMain.handle('themes:list', guard((force) => list(force === true)));
ipcMain.handle('themes:select', guard(select));
ipcMain.handle('themes:open-dir', guard((identifier) => openDirectory(identifier ?? null)));
ipcMain.handle('themes:open-link', guard(openLink));
}
return { list, select, openDirectory, openLink, handle, registerProtocol, registerIpc };
}
module.exports = {
SCHEME,
SCHEME_PRIVILEGE,
LIMITS,
CACHE_MS,
USER_STYLE_PREF,
extensionsDir,
validatePackage,
parseSelection,
normalizeSelection,
checkCss,
scanExtensions,
createThemeService,
};
+44
View File
@@ -0,0 +1,44 @@
'use strict';
// Native caption controls retain OS accessibility, system menus and Windows Snap layouts.
// Official TS6 draws its captions inside the 44px pane window bar (--tsv-header-window-bar-height)
// on --ts-new-header-bg; the overlay matches that bar so the frame reads as one surface.
const TITLEBAR_HEIGHT = 44;
function overlayColors(dark) {
return { color: dark ? '#121a2c' : '#ebebeb', symbolColor: dark ? '#ffffff' : '#494949', height: TITLEBAR_HEIGHT };
}
function titlebarOptions(platform, dark) {
return {
titleBarStyle: 'hidden',
...(platform === 'darwin' ? { trafficLightPosition: { x: 16, y: 15 } } : { titleBarOverlay: overlayColors(dark) }),
};
}
function trustedWindowFrame(event, win, origin) {
if (!win || win.isDestroyed() || event.sender !== win.webContents || !event.senderFrame || event.senderFrame !== win.webContents.mainFrame) return false;
try {
const url = new URL(event.senderFrame.url);
return `${url.protocol}//${url.host}` === origin && !url.username && !url.password;
} catch { return false; }
}
function windowState(win, platform) {
return { platform, maximized: win.isMaximized(), minimized: win.isMinimized(), fullscreen: win.isFullScreen(), focused: win.isFocused() };
}
function registerTitlebarIpc(ipcMain, getWindow, origin, platform = process.platform) {
ipcMain.handle('window:get-state', event => {
const win = getWindow();
return trustedWindowFrame(event, win, origin) ? windowState(win, platform) : null;
});
}
function bindTitlebar(win, nativeTheme, platform = process.platform) {
const sendState = () => {
if (!win.isDestroyed() && !win.webContents.isDestroyed()) win.webContents.send('window:state', windowState(win, platform));
};
const updateTheme = () => {
if (!win.isDestroyed() && platform !== 'darwin') win.setTitleBarOverlay(overlayColors(nativeTheme.shouldUseDarkColors));
};
for (const event of ['maximize', 'unmaximize', 'minimize', 'restore', 'enter-full-screen', 'leave-full-screen', 'focus', 'blur']) win.on(event, sendState);
win.webContents.on('did-finish-load', sendState);
nativeTheme.on('updated', updateTheme);
win.once('closed', () => nativeTheme.removeListener('updated', updateTheme));
}
module.exports = { TITLEBAR_HEIGHT, overlayColors, titlebarOptions, trustedWindowFrame, windowState, registerTitlebarIpc, bindTitlebar };
+277
View File
@@ -0,0 +1,277 @@
'use strict';
// Where updates come from and which published release this installation may move to.
// Pure Node (no Electron): the complete Gitea release list is fetched anonymously from one fixed HTTPS host,
// releases are filtered by channel, version (semver) and platform, and only complete releases are offered.
// electron-updater then reads the feed of the chosen release and verifies size and sha512.
const path = require('node:path');
const semver = require('semver');
const FORGE_ORIGIN = 'https://git.eeee.moe';
const OWNER = 'TeamsPeach';
const REPO = 'client';
const RELEASES_API = `${FORGE_ORIGIN}/api/v1/repos/${OWNER}/${REPO}/releases`;
const PAGE_SIZE = 50;
const MAX_PAGES = 20;
const MAX_RESPONSE_BYTES = 4 * 1024 * 1024;
const PRODUCT = 'TeamsPeach';
const LINUX_EXECUTABLE = 'teamspeach';
const ASSET_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]{0,199}$/;
const SHA512_BASE64 = /^[A-Za-z0-9+/]{86}==$/;
/**
* Failure with a stable machine code and parameters; the renderer shows the localized text for `code`.
* `message` is English technical text for logs only.
*/
class UpdateError extends Error {
constructor(code, params = {}, message = code) {
super(message);
this.code = code;
this.params = params;
}
}
/** Strict SemVer 2.0 without build metadata (`0.1.2`, `0.1.2-rc.1`); null otherwise (`01.1.1`, `0.1`, `1.0.0+x`). */
function cleanVersion(text) {
if (typeof text !== 'string' || text.includes('+')) return null;
return semver.valid(text) === text ? text : null;
}
/** Release tag `v<version>`; returns the version or null. */
function tagVersion(tag) {
return typeof tag === 'string' && tag.startsWith('v') ? cleanVersion(tag.slice(1)) : null;
}
/**
* What this installation is and how it can be updated.
* mode 'auto': electron-updater installs (NSIS-installed Windows x64, Linux AppImage).
* mode 'manual': user is told and replaces files himself (Windows zip, Linux tar.gz).
* mode 'none': dev run or a platform that has no published build.
*/
function detectTarget({ platform, arch, packaged, env, execPath, exists }) {
const none = (id, disabledCode) => ({ id, platform, arch, mode: 'none', kind: null, disabledCode });
if (!packaged) return none(`${platform}-${arch}-dev`, 'dev-build');
if (platform === 'win32') {
if (arch !== 'x64') return none(`win-${arch}`, 'unsupported-platform');
// The NSIS installer leaves its uninstaller next to the executable; the portable zip does not.
if (exists(path.join(path.dirname(execPath), `Uninstall ${PRODUCT}.exe`))) {
return { id: 'win-x64-nsis', platform, arch, mode: 'auto', kind: 'nsis', disabledCode: null };
}
return { id: 'win-x64-zip', platform, arch, mode: 'manual', kind: 'zip', disabledCode: null };
}
if (platform === 'linux') {
if (arch !== 'x64' && arch !== 'arm64') return none(`linux-${arch}`, 'unsupported-platform');
if (env.APPIMAGE) return { id: `linux-${arch}-appimage`, platform, arch, mode: 'auto', kind: 'appimage', disabledCode: null };
return { id: `linux-${arch}-tar.gz`, platform, arch, mode: 'manual', kind: 'tar.gz', disabledCode: null };
}
if (platform === 'darwin') return none(`mac-${arch}`, 'unsupported-platform');
return none(`${platform}-${arch}`, 'unsupported-platform');
}
/** electron-builder names the feed after the version's first prerelease identifier, else "latest". */
function feedChannel(version) {
const pre = semver.prerelease(version);
return pre && pre.length > 0 ? String(pre[0]) : 'latest';
}
/** Exact feed file electron-builder writes for this target (app-builder-lib getUpdateInfoFileName). */
function feedFileName(target, version) {
const channel = feedChannel(version);
if (target.kind === 'nsis') return `${channel}.yml`;
if (target.kind === 'appimage') return target.arch === 'x64' ? `${channel}-linux.yml` : `${channel}-linux-${target.arch}.yml`;
return null;
}
/**
* Exact installer electron-builder produces for this target (package.json build config: AppImage default
* name, nsis.artifactName "${productName}-${version}-win-${arch}-setup.${ext}").
*/
function packageFileName(target, version) {
if (target.kind === 'appimage') return target.arch === 'x64' ? `${PRODUCT}-${version}.AppImage` : `${PRODUCT}-${version}-${target.arch}.AppImage`;
if (target.kind === 'nsis') return `${PRODUCT}-${version}-win-${target.arch}-setup.exe`;
return null;
}
/** Package names a manual-mode user downloads (builder defaults, plus the historical "-local" Windows zip). */
function manualAssetNames(target, version) {
if (target.kind === 'tar.gz') return [target.arch === 'x64' ? `${LINUX_EXECUTABLE}-${version}.tar.gz` : `${LINUX_EXECUTABLE}-${version}-${target.arch}.tar.gz`];
if (target.kind === 'zip') return [`${PRODUCT}-${version}-win-x64.zip`, `${PRODUCT}-${version}-win.zip`, `${PRODUCT}-${version}-win-x64-local.zip`];
return [];
}
function releaseDownloadBase(tag) {
return `${FORGE_ORIGIN}/${OWNER}/${REPO}/releases/download/${tag}/`;
}
function releasePageUrl(tag) {
return `${FORGE_ORIGIN}/${OWNER}/${REPO}/releases/tag/${tag}`;
}
/**
* Picks the releases this installation may update to, newest first.
* Every published, non-draft release with a valid tag is considered. A release is "preview" when Gitea
* marks it prerelease or its version has a prerelease part; the stable channel never sees previews.
* Same or older versions are never offered. A release counts only when it carries this target's feed and
* installer (auto) or package (manual); newer releases without one are reported in `withoutBuild`.
*/
function selectReleases(releases, { currentVersion, channel, target }) {
const current = cleanVersion(currentVersion);
if (!current) throw new UpdateError('bad-version', { version: String(currentVersion) }, `app version ${currentVersion} is not semver`);
if (channel !== 'preview' && channel !== 'stable') throw new UpdateError('bad-channel', { channel: String(channel) }, `unknown channel ${channel}`);
if (!Array.isArray(releases)) throw new UpdateError('bad-response', { detail: 'release list is not an array' }, 'release list is not an array');
const candidates = [];
const withoutBuild = [];
const previews = [];
for (const release of releases) {
if (!release || typeof release !== 'object' || release.draft !== false) continue;
const version = tagVersion(release.tag_name);
if (!version || !semver.gt(version, current)) continue;
const preview = release.prerelease !== false || semver.prerelease(version) !== null;
if (channel === 'stable' && preview) {
previews.push(version);
continue;
}
const assets = new Map();
for (const asset of Array.isArray(release.assets) ? release.assets : []) {
if (asset && typeof asset.name === 'string' && ASSET_NAME.test(asset.name) && Number.isSafeInteger(asset.size) && asset.size > 0) {
assets.set(asset.name, asset.size);
}
}
const tag = release.tag_name;
const entry = {
tag,
version,
preview,
publishedAt: typeof release.published_at === 'string' ? release.published_at : null,
assets,
downloadBase: releaseDownloadBase(tag),
releaseUrl: releasePageUrl(tag),
feedChannel: feedChannel(version),
feedFile: null,
packageFile: null,
manualAsset: null,
};
if (target.mode === 'auto') {
const feed = feedFileName(target, version);
const pkg = packageFileName(target, version);
if (!assets.has(feed) || !assets.has(pkg)) {
const missing = assets.has(feed) ? pkg : feed;
withoutBuild.push({ version, code: assets.has(feed) ? 'no-package' : 'no-feed', params: { version, file: missing, target: target.id } });
continue;
}
entry.feedFile = feed;
entry.packageFile = pkg;
} else if (target.mode === 'manual') {
const name = manualAssetNames(target, version).find((n) => assets.has(n));
if (!name) {
withoutBuild.push({ version, code: 'no-package', params: { version, file: manualAssetNames(target, version)[0], target: target.id } });
continue;
}
entry.manualAsset = name;
} else {
continue;
}
candidates.push(entry);
}
candidates.sort((a, b) => semver.rcompare(a.version, b.version));
withoutBuild.sort((a, b) => semver.rcompare(a.version, b.version));
previews.sort(semver.rcompare);
return { candidates, withoutBuild, newestPreview: previews.length > 0 ? previews[0] : null };
}
/**
* Checks the feed electron-updater parsed against the release it was taken from: same version, and exactly
* one package — this target's installer by its exact builder name (so an arm64 feed pointing at the x64
* AppImage, or a renamed/foreign file, is refused) — present in THIS release with the declared size and a sha512.
*/
function verifyFeed(candidate, target, updateInfo) {
const mismatch = (detail) => new UpdateError('feed-mismatch', { tag: candidate.tag, detail }, `${candidate.tag}: ${detail}`);
if (!updateInfo || typeof updateInfo !== 'object') throw mismatch('feed is empty');
if (cleanVersion(updateInfo.version) !== candidate.version) throw mismatch(`feed describes version ${String(updateInfo.version)}`);
const expected = packageFileName(target, candidate.version);
const files = Array.isArray(updateInfo.files) ? updateInfo.files : [];
if (files.length !== 1 || !files[0] || files[0].url !== expected) {
const listed = files.map((f) => (f && typeof f.url === 'string' ? f.url : '?')).join(', ') || 'nothing';
throw mismatch(`feed for ${target.id} must list only ${expected}, lists: ${listed}`);
}
if (updateInfo.path !== undefined && updateInfo.path !== expected) throw mismatch(`feed path ${String(updateInfo.path)} is not ${expected}`);
const file = files[0];
if (typeof file.sha512 !== 'string' || !SHA512_BASE64.test(file.sha512)) throw mismatch(`no sha512 for ${expected}`);
if (!candidate.assets.has(expected)) {
throw new UpdateError('incomplete-release', { tag: candidate.tag, file: expected }, `${candidate.tag} has no asset ${expected}`);
}
if (file.size !== candidate.assets.get(expected)) {
throw new UpdateError('incomplete-release', { tag: candidate.tag, file: expected }, `${candidate.tag}: size of ${expected} differs from the feed`);
}
}
/**
* Anonymous GET of EVERY published release (paged; Gitea reports the total in X-Total-Count).
* `fetchImpl` is Electron's net.fetch in the app. Network failure, timeout (whole listing), HTTP errors,
* malformed bodies and a listing that cannot be completed within MAX_PAGES all throw UpdateError —
* never a partial list that could hide a newer release.
*/
async function fetchReleases({ fetchImpl, timeoutMs = 20000 }) {
const badResponse = (detail) => new UpdateError('bad-response', { detail }, `release list: ${detail}`);
const signal = AbortSignal.timeout(timeoutMs);
const all = [];
let total = null;
for (let page = 1; page <= MAX_PAGES; page += 1) {
const url = `${RELEASES_API}?draft=false&limit=${PAGE_SIZE}&page=${page}`;
let text;
let headerTotal;
try {
const res = await fetchImpl(url, { signal, redirect: 'error', cache: 'no-store', headers: { Accept: 'application/json' } });
if (!res.ok) throw new UpdateError('http', { status: res.status }, `release list: HTTP ${res.status}`);
if (Number(res.headers.get('content-length')) > MAX_RESPONSE_BYTES) throw badResponse('response too large');
headerTotal = res.headers.get('x-total-count');
text = await res.text();
} catch (err) {
if (err instanceof UpdateError) throw err;
const seconds = Math.round(timeoutMs / 1000);
if (signal.aborted) throw new UpdateError('timeout', { seconds }, `release list: no answer in ${seconds} s`);
const detail = err && err.cause && err.cause.message ? `${err.message}: ${err.cause.message}` : String(err && err.message ? err.message : err);
throw new UpdateError('network', { detail }, `release list: ${detail}`);
}
if (text.length > MAX_RESPONSE_BYTES) throw badResponse('response too large');
let items;
try {
items = JSON.parse(text);
} catch {
throw badResponse('not JSON');
}
if (!Array.isArray(items)) throw badResponse('not a release list');
if (headerTotal !== null) {
if (!/^\d+$/.test(headerTotal)) throw badResponse('invalid X-Total-Count');
total = Number(headerTotal);
}
all.push(...items);
// Done when the server's total is reached, or (no total reported) when a page comes back empty.
if (total !== null ? all.length >= total || items.length === 0 : items.length === 0) {
if (total !== null && all.length < total) {
throw new UpdateError('incomplete-list', { fetched: all.length, total }, `release list: got ${all.length} of ${total}`);
}
return all;
}
}
throw new UpdateError('incomplete-list', { fetched: all.length, total }, `release list longer than ${MAX_PAGES} pages`);
}
module.exports = {
FORGE_ORIGIN,
RELEASES_API,
PAGE_SIZE,
UpdateError,
cleanVersion,
detectTarget,
feedFileName,
packageFileName,
manualAssetNames,
releaseDownloadBase,
releasePageUrl,
selectReleases,
verifyFeed,
fetchReleases,
};
+463
View File
@@ -0,0 +1,463 @@
'use strict';
// Update service of the main process. Finds the newest eligible published release (update-source.js),
// lets electron-updater read that release's feed, download and verify the package, and installs ONLY after
// an explicit user action. It never quits or restarts the app on its own.
//
// Every check uses a NEW electron-updater instance. electron-updater keeps the last checked feed inside the
// instance and cannot cancel a running check, so a check that timed out (or a check for another channel) can
// still finish later; with one instance per check, such a late result can only touch an abandoned instance.
// Download and install always use the exact instance that checked the offered release.
const fs = require('node:fs');
const path = require('node:path');
const { app, net, shell } = require('electron');
const source = require('./update-source');
const { logsDir } = require('./paths');
const STARTUP_DELAY_MS = 15 * 1000;
const CHECK_INTERVAL_MS = 6 * 60 * 60 * 1000;
const DEFERRED_POLL_MS = 60 * 1000;
const FEED_TIMEOUT_MS = 60 * 1000;
const LOG_LIMIT_BYTES = 1024 * 1024;
const CHANNELS = ['preview', 'stable'];
function fileLogger(file) {
const write = (level, parts) => {
const line = `${new Date().toISOString()} ${level} ${parts.map((p) => (p instanceof Error ? p.stack || p.message : String(p))).join(' ')}`;
try {
fs.mkdirSync(path.dirname(file), { recursive: true });
try {
if (fs.statSync(file).size > LOG_LIMIT_BYTES) fs.renameSync(file, `${file}.1`);
} catch {
// no log yet
}
fs.appendFileSync(file, `${line.replace(/[\r\n]+/g, ' ')}\n`);
} catch {
// logging must never break updating
}
};
return {
info: (...p) => write('info', p),
warn: (...p) => write('warn', p),
error: (...p) => write('error', p),
debug: () => {},
};
}
/** electron-updater instance for this target, configured so that nothing happens without our call. */
function defaultCreateUpdater(target, logger, channel) {
const { NsisUpdater, AppImageUpdater } = require('electron-updater');
const instance = target.kind === 'nsis' ? new NsisUpdater() : new AppImageUpdater();
instance.logger = logger;
instance.autoDownload = false;
instance.autoInstallOnAppQuit = false;
instance.allowDowngrade = false;
// Only the GitHub providers read allowPrerelease; with the generic provider the channel policy is applied
// by update-source before a feed is chosen. Kept consistent with the selected channel anyway.
instance.allowPrerelease = channel === 'preview';
instance.disableWebInstaller = true;
return instance;
}
const CHECKSUM_FAILURE = /checksum mismatch/i;
const NETWORK_FAILURE = /net::ERR_|ENOTFOUND|ECONNRESET|ECONNREFUSED|ETIMEDOUT|EAI_AGAIN|socket hang up/i;
/** Maps electron-updater / network failures to stable codes; `detail` keeps the technical text. */
function classify(err, fallback, tag) {
if (err instanceof source.UpdateError) return err;
const detail = (err && err.message ? err.message : String(err)).split('\n')[0].slice(0, 300);
const code = err && err.code;
if (code === 'ERR_CHECKSUM_MISMATCH' || CHECKSUM_FAILURE.test(detail)) return new source.UpdateError('checksum', { tag, detail }, detail);
if (code === 'ERR_UPDATER_CHANNEL_FILE_NOT_FOUND' || (err && err.statusCode === 404)) {
return new source.UpdateError('incomplete-release', { tag, file: null, detail }, detail);
}
if (err && Number.isInteger(err.statusCode)) return new source.UpdateError('http', { status: err.statusCode }, detail);
if (NETWORK_FAILURE.test(detail)) {
return new source.UpdateError('network', { detail }, detail);
}
return new source.UpdateError(fallback, { tag, detail }, detail);
}
function withTimeout(promise, ms, tag) {
let timer;
const seconds = Math.round(ms / 1000);
return Promise.race([
promise,
new Promise((_, reject) => {
timer = setTimeout(() => reject(new source.UpdateError('timeout', { seconds, tag }, `feed of ${tag}: no answer in ${seconds} s`)), ms);
}),
]).finally(() => clearTimeout(timer));
}
/**
* @param {object} o
* @param {{ get(): object, set(partial: object): object }} o.prefs holds `updateChannel`
* @param {() => boolean} o.isSessionActive true while connected to a server (voice / stream viewing)
* @param {(state: object) => void} o.send pushes the state to the renderer
* Remaining options exist for the Electron behaviour harness; the release host is not configurable.
*/
function createUpdateService({
prefs,
isSessionActive,
send,
electronApp = app,
fetchImpl = (url, init) => net.fetch(url, init),
target = source.detectTarget({
platform: process.platform,
arch: process.arch,
packaged: electronApp.isPackaged,
env: process.env,
execPath: process.execPath,
exists: fs.existsSync,
}),
createUpdater = defaultCreateUpdater,
openExternal = (url) => shell.openExternal(url),
logger = fileLogger(path.join(logsDir(), 'updater.log')),
appImagePath = () => process.env.APPIMAGE,
argv = process.argv,
feedTimeoutMs = FEED_TIMEOUT_MS,
profileOverride = process.env.TEAMSPEACH_PROFILE_DIR,
}) {
const currentVersion = electronApp.getVersion();
// The NSIS installer restarts the app through Explorer (StdUtils.ExecShellAsUser), which does not pass this
// process's environment on: an app running on a TEAMSPEACH_PROFILE_DIR profile would come back on the
// default profile. Such a run is offered the release page (manual install) instead of an automatic install.
// AppImage relaunch (app.relaunch) keeps the environment and is not affected.
const installBlock = target.kind === 'nsis' && profileOverride ? 'custom-profile' : null;
const autoInstall = target.mode === 'auto' && !installBlock;
let offered = null; // { candidate, updater } — release in state.available and the instance that checked it
let downloaded = null; // { candidate, updater } — verified package ready to install
let downloading = null; // { updater, token }
let busy = null; // in-flight check/download promise
let timers = [];
let deferredTimer = null;
let lastProgressSent = 0;
const state = {
currentVersion,
channel: 'preview',
mode: installBlock ? 'manual' : target.mode,
manualReason: installBlock, // null | 'custom-profile'
target: target.id,
phase: target.mode === 'none' ? 'disabled' : 'idle',
lastCheckedAt: null,
available: null,
progress: null,
newerWithoutBuild: [],
newerPreview: null,
error: null, // { code, params } — localized by the renderer; params.detail is technical text
disabledCode: target.disabledCode,
disabledParams: target.mode === 'none' ? { platform: target.platform, arch: target.arch } : null,
};
logger.info(`updater: version ${currentVersion} pid ${process.pid} target ${target.id} mode ${state.mode}${installBlock ? ` (${installBlock})` : ''}`);
function channel() {
const value = prefs.get().updateChannel;
return CHANNELS.includes(value) ? value : 'preview';
}
function snapshot() {
return {
...state,
channel: channel(),
available: state.available ? { ...state.available } : null,
progress: state.progress ? { ...state.progress } : null,
newerWithoutBuild: state.newerWithoutBuild.map((x) => ({ ...x, params: { ...x.params } })),
error: state.error ? { code: state.error.code, params: { ...state.error.params } } : null,
disabledParams: state.disabledParams ? { ...state.disabledParams } : null,
sessionActive: Boolean(isSessionActive()),
};
}
function emit() {
try {
send(snapshot());
} catch (err) {
logger.warn('updater: state push failed', err);
}
}
function setPhase(phase, extra = {}) {
Object.assign(state, { phase }, extra);
emit();
}
function fail(err, fallback, tag) {
const e = classify(err, fallback, tag);
logger.error(`updater: ${e.code}: ${e.message}`);
setPhase('error', { error: { code: e.code, params: e.params || {} }, progress: null });
return e;
}
function newUpdater(selectedChannel) {
const u = createUpdater(target, logger, selectedChannel);
// Failures are handled where the promises reject; the listener keeps EventEmitter from throwing.
u.on('error', (err) => logger.warn('updater: electron-updater error event', err));
u.on('download-progress', (p) => {
if (!downloading || downloading.updater !== u) return;
state.progress = { percent: Math.max(0, Math.min(100, Number(p.percent) || 0)), transferred: p.transferred, total: p.total };
const now = Date.now();
if (now - lastProgressSent >= 250) {
lastProgressSent = now;
emit();
}
});
return u;
}
/** Reads the candidate's feed through electron-updater and checks it against the release assets. */
async function readFeed(u, candidate) {
u.setFeedURL({ provider: 'generic', url: candidate.downloadBase, channel: candidate.feedChannel });
const result = await withTimeout(u.checkForUpdates(), feedTimeoutMs, candidate.tag);
if (!result) throw new source.UpdateError('feed-mismatch', { tag: candidate.tag, detail: 'updater inactive' }, 'electron-updater inactive');
source.verifyFeed(candidate, target, result.updateInfo);
if (!result.isUpdateAvailable) {
const detail = 'electron-updater: not applicable to this system';
throw new source.UpdateError('feed-mismatch', { tag: candidate.tag, detail }, detail);
}
}
async function runCheck() {
const selectedChannel = channel();
setPhase('checking', { error: null });
let selection;
try {
const releases = await source.fetchReleases({ fetchImpl });
selection = source.selectReleases(releases, { currentVersion, channel: selectedChannel, target });
} catch (err) {
fail(err, 'bad-response');
return;
}
const skipped = [...selection.withoutBuild];
let chosen = null;
if (target.mode === 'manual') {
if (selection.candidates[0]) chosen = { candidate: selection.candidates[0], updater: null };
} else {
for (const candidate of selection.candidates) {
const u = newUpdater(selectedChannel);
try {
await readFeed(u, candidate);
chosen = { candidate, updater: u };
break;
} catch (err) {
const e = classify(err, 'feed-mismatch', candidate.tag);
// A broken or incomplete release is skipped in favour of an older complete one; a network failure or
// timeout ends the check with an error, so "no update" is never reported without a full answer.
if (e.code !== 'feed-mismatch' && e.code !== 'incomplete-release') {
fail(e, 'network');
return;
}
logger.warn(`updater: skip ${candidate.tag}: ${e.message}`);
skipped.push({ version: candidate.version, code: e.code, params: { version: candidate.version, ...e.params } });
}
}
}
offered = chosen;
state.lastCheckedAt = new Date().toISOString();
state.newerWithoutBuild = skipped;
state.newerPreview = selection.newestPreview;
if (!chosen) {
downloaded = null;
logger.info(`updater: up to date (${selectedChannel}), ${skipped.length} newer release(s) without a usable build`);
setPhase('up-to-date', { available: null, progress: null, error: null });
return;
}
const c = chosen.candidate;
logger.info(`updater: ${c.tag} available (${selectedChannel})`);
const available = { version: c.version, tag: c.tag, preview: c.preview, publishedAt: c.publishedAt, assetName: c.manualAsset || c.packageFile };
if (downloaded && downloaded.candidate.tag === c.tag) {
offered = downloaded;
setPhase('downloaded', { available, error: null });
return;
}
downloaded = null;
setPhase('available', { available, progress: null, error: null });
}
async function runDownload() {
const job = offered;
const { CancellationToken } = require('electron-updater');
downloading = { updater: job.updater, token: new CancellationToken() };
const { token } = downloading;
setPhase('downloading', { progress: { percent: 0, transferred: 0, total: 0 }, error: null });
try {
await job.updater.downloadUpdate(token);
if (offered !== job) {
logger.info(`updater: ${job.candidate.tag} downloaded but no longer offered`);
return;
}
downloaded = job;
logger.info(`updater: ${job.candidate.tag} downloaded and verified`);
setPhase('downloaded', { progress: null });
} catch (err) {
if (token.cancelled) {
logger.info('updater: download cancelled');
if (offered === job) setPhase('available', { progress: null });
} else {
fail(err, 'download', job.candidate.tag);
}
} finally {
downloading = null;
}
}
function exclusive(fn) {
if (busy) return busy.then(snapshot);
busy = fn().finally(() => {
busy = null;
});
return busy.then(snapshot);
}
function scheduleDeferredPoll() {
if (deferredTimer) return;
deferredTimer = setInterval(() => {
if (state.phase !== 'deferred') {
clearInterval(deferredTimer);
deferredTimer = null;
} else if (!isSessionActive()) {
download({ manual: false });
}
}, DEFERRED_POLL_MS);
}
/** Background downloads wait while the user is connected; a manual request downloads now. */
function download({ manual }) {
if (busy) return busy.then(snapshot);
if (!autoInstall || !offered || (state.phase !== 'available' && state.phase !== 'deferred')) return Promise.resolve(snapshot());
if (!manual && isSessionActive()) {
if (state.phase !== 'deferred') {
logger.info('updater: download deferred until the session ends');
setPhase('deferred');
}
scheduleDeferredPoll();
return Promise.resolve(snapshot());
}
return exclusive(runDownload);
}
function check({ manual }) {
if (target.mode === 'none' || state.phase === 'installing') return Promise.resolve(snapshot());
return exclusive(runCheck)
.then((s) => (s.phase === 'available' && autoInstall ? download({ manual: false }) : s))
.then((s) => {
if (manual) logger.info(`updater: manual check → ${s.phase}`);
return s;
});
}
/**
* Installs the downloaded, verified package after an explicit user action. Uses electron-updater's
* quitAndInstall; its install step is synchronous and reports failures through the 'error' event.
* NSIS: silent update of the existing installation, the installer starts the new version. Whether the
* installer then succeeds happens after this process quits and is not claimed here.
* AppImage: the file is replaced, then app.relaunch() starts the new AppImage only after this process
* has exited (the single-instance lock and the core's data-dir lock are free by then).
*/
function install(options) {
const confirmInterrupt = Boolean(options && options.confirmInterrupt === true);
if (installBlock) return { ok: false, code: installBlock };
if (target.mode !== 'auto' || state.phase !== 'downloaded' || !downloaded || offered !== downloaded) {
return { ok: false, code: 'not-ready' };
}
if (isSessionActive() && !confirmInterrupt) return { ok: false, code: 'session-active' };
const u = downloaded.updater;
const tag = downloaded.candidate.tag;
setPhase('installing');
let installError = null;
let destination = appImagePath();
const onError = (err) => {
installError = err;
};
const onRename = (file) => {
destination = file;
};
u.on('error', onError);
u.on('appimage-filename-updated', onRename);
try {
if (target.kind === 'appimage') u.quitAndInstall(true, false);
else u.quitAndInstall(true, true);
} catch (err) {
installError = err;
} finally {
u.removeListener('error', onError);
u.removeListener('appimage-filename-updated', onRename);
}
if (installError) {
const e = fail(installError, 'install', tag);
return { ok: false, code: 'install-failed', params: e.params };
}
if (target.kind === 'appimage') {
// quitAndInstall quits on the next tick; the relaunch is registered before that.
electronApp.relaunch({ execPath: destination, args: argv.slice(1) });
logger.info(`updater: AppImage replaced by ${tag} at ${destination}; relaunch after exit`);
} else {
logger.info(`updater: NSIS installer for ${tag} started; app quits`);
}
return { ok: true };
}
async function setChannel(value) {
if (!CHANNELS.includes(value)) return snapshot();
if (value !== channel()) {
prefs.set({ updateChannel: value });
logger.info(`updater: channel → ${value}`);
if (downloading) downloading.token.cancel();
if (busy) await busy;
offered = null;
downloaded = null;
Object.assign(state, { available: null, progress: null, newerWithoutBuild: [], newerPreview: null });
if (state.phase !== 'disabled') setPhase('idle');
}
return check({ manual: true });
}
async function openRelease() {
if (!offered) return { ok: false };
try {
await openExternal(source.releasePageUrl(offered.candidate.tag));
return { ok: true };
} catch (err) {
logger.warn('updater: cannot open release page', err);
return { ok: false };
}
}
function start() {
if (target.mode === 'none') {
logger.info(`updater: disabled: ${target.disabledCode}`);
return;
}
timers.push(setTimeout(() => check({ manual: false }), STARTUP_DELAY_MS));
timers.push(setInterval(() => check({ manual: false }), CHECK_INTERVAL_MS));
}
function stop() {
for (const t of timers) clearTimeout(t);
timers = [];
clearInterval(deferredTimer);
deferredTimer = null;
if (downloading) downloading.token.cancel();
}
function registerIpc(ipcMain, trustedSender) {
ipcMain.handle('update:get-state', (event) => (trustedSender(event) ? snapshot() : null));
ipcMain.handle('update:check', (event) => (trustedSender(event) ? check({ manual: true }) : null));
ipcMain.handle('update:download', (event) => (trustedSender(event) ? download({ manual: true }) : null));
ipcMain.handle('update:install', (event, options) => {
if (!trustedSender(event)) return { ok: false, code: 'forbidden' };
if (options !== undefined && (options === null || typeof options !== 'object' || Array.isArray(options))) {
return { ok: false, code: 'bad-request' };
}
return install(options);
});
ipcMain.handle('update:open-release', (event) => (trustedSender(event) ? openRelease() : { ok: false }));
ipcMain.handle('update:set-channel', (event, value) => (trustedSender(event) && typeof value === 'string' ? setChannel(value) : null));
}
return { start, stop, check, download, install, setChannel, openRelease, getState: snapshot, registerIpc };
}
module.exports = { createUpdateService, createElectronUpdater: defaultCreateUpdater };
+150
View File
@@ -0,0 +1,150 @@
'use strict';
/**
* Voice preferences that follow the official TS6 audio settings model (client_ui/main.js, AudioSettings):
* - push to talk is global (`ptt.active`, release delay Off/100/300/500 ms, stored ms default 300);
* - capture DSP is per input device: agc, denoise on/off + `denoiseLevel` (the official denoiserLevel
* 0..3 = Low/Moderate/High/Very High, default 1 Moderate), typing suppression, VAD on/off, VAD mode
* (automatic | volume_gate | hybrid), VAD level -50..50 dB (default -30);
* - playback DSP is per output device: aec (echo cancellation), agc (level other users), comfort noise
* on/off + level -97..-23 dB (default -60), echo reduction/ducking -40..0 dB (default 0);
* - master output level and notification level are dB on the official fader (-200..+10, 0.5 steps),
* notification device 'voice' (follow playback device, default), '' (system default), 'none' or an id.
* Profiles live under `template` (used for every device without its own entry) and `devices` (by the
* capture/playback device id; a device's entry is created by its first change).
*
* TeamsPeach extension kept from earlier versions: `vadSensitivity` of the automatic/hybrid detector.
*
* Fresh profiles get the official defaults. A profile written by an earlier TeamsPeach version is migrated
* in memory from its legacy keys (transmitMode, vadSensitivity, echoCancellation, noiseSuppression,
* autoGainControl, voiceVolume): every stored choice keeps its effect; controls that did not exist before
* (playback AGC, comfort noise, ducking, typing attenuation, VAD level, noise reduction level) start at the
* official defaults. Input profiles stored before `denoiseLevel` existed keep every stored field, including
* their denoise on/off choice, and gain the default level. The file itself is only rewritten — without the
* legacy keys — by the user's next settings change.
*/
const VAD_MODES = ['automatic', 'volume_gate', 'hybrid'];
const SENSITIVITIES = ['high', 'normal', 'low'];
const RELEASE_DELAYS = [100, 300, 500];
const MAX_DEVICE_PROFILES = 64;
const CONTROL = /[\u0000-\u001f\u007f]/;
const isBool = (v) => typeof v === 'boolean';
const intIn = (lo, hi) => (v) => Number.isInteger(v) && v >= lo && v <= hi;
const isPlainObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
/** Official fader modifier: finite, -200..+10, on the 0.5 dB grid. */
function validDb(v) {
return typeof v === 'number' && Number.isFinite(v) && v >= -200 && v <= 10 && Number.isInteger(v * 2);
}
const IN_FIELDS = {
agc: isBool,
denoise: isBool,
denoiseLevel: intIn(0, 3),
typing: isBool,
vad: isBool,
vadMode: (v) => VAD_MODES.includes(v),
vadLevel: intIn(-50, 50),
vadSensitivity: (v) => SENSITIVITIES.includes(v),
};
const OUT_FIELDS = {
aec: isBool,
agc: isBool,
comfortNoise: isBool,
comfortNoiseLevel: intIn(-97, -23),
echoReduction: intIn(-40, 0),
};
// Official defaults (main.js class k / class T).
const IN_DEFAULT = Object.freeze({ agc: true, denoise: true, denoiseLevel: 1, typing: false, vad: true, vadMode: 'automatic', vadLevel: -30, vadSensitivity: 'normal' });
const OUT_DEFAULT = Object.freeze({ aec: false, agc: true, comfortNoise: false, comfortNoiseLevel: -60, echoReduction: 0 });
function validProfile(fields) {
return (p) => isPlainObject(p)
&& Object.keys(p).length === Object.keys(fields).length
&& Object.entries(fields).every(([k, check]) => Object.prototype.hasOwnProperty.call(p, k) && check(p[k]));
}
function validDsp(fields) {
const profile = validProfile(fields);
return (v) => isPlainObject(v)
&& Object.keys(v).length === 2
&& profile(v.template)
&& isPlainObject(v.devices)
&& Object.keys(v.devices).length <= MAX_DEVICE_PROFILES
&& Object.entries(v.devices).every(([id, p]) => id.length >= 1 && id.length <= 512 && !CONTROL.test(id) && profile(p));
}
const VOICE_SCHEMA = {
pttEnabled: { default: false, check: isBool },
pttReleaseDelay: {
default: { active: false, ms: 300 },
check: (v) => isPlainObject(v) && Object.keys(v).length === 2 && isBool(v.active) && RELEASE_DELAYS.includes(v.ms),
},
inputDsp: { default: { template: { ...IN_DEFAULT }, devices: {} }, check: validDsp(IN_FIELDS) },
outputDsp: { default: { template: { ...OUT_DEFAULT }, devices: {} }, check: validDsp(OUT_FIELDS) },
outputLevelDb: { default: 0, check: validDb },
notificationDeviceId: { default: 'voice', check: (v) => typeof v === 'string' && v.length <= 512 && !CONTROL.test(v) },
notificationLevelDb: { default: -23, check: validDb },
};
const has = (o, k) => Object.prototype.hasOwnProperty.call(o, k);
/** Legacy voice volume percent (0..200) → dB modifier on the 0.5 dB grid. */
function percentToDb(pct) {
if (!(pct > 0)) return -200;
const db = Math.round(2 * 20 * Math.log10(pct / 100)) / 2;
return Math.max(-200, Math.min(10, db));
}
/** An input DSP value stored before `denoiseLevel` existed, with the default level added to every profile. */
function withDenoiseLevel(dsp) {
if (!isPlainObject(dsp) || !isPlainObject(dsp.devices)) return null;
const upgrade = (p) => (isPlainObject(p) && !has(p, 'denoiseLevel') ? { ...p, denoiseLevel: IN_DEFAULT.denoiseLevel } : p);
return { ...dsp, template: upgrade(dsp.template), devices: Object.fromEntries(Object.entries(dsp.devices).map(([id, p]) => [id, upgrade(p)])) };
}
/**
* Fills voice keys missing from a stored profile (`raw`, as read from disk) from its legacy keys, into
* `values` (already holding validated stored keys and defaults). A stored valid key is never touched; a stored
* input DSP that predates `denoiseLevel` is kept with that one field added.
*/
function migrateVoicePrefs(raw, values) {
if (!isPlainObject(raw)) return values;
if (has(raw, 'inputDsp') && !VOICE_SCHEMA.inputDsp.check(raw.inputDsp)) {
const upgraded = withDenoiseLevel(raw.inputDsp);
if (upgraded && VOICE_SCHEMA.inputDsp.check(upgraded)) values.inputDsp = upgraded;
}
// A first-run or unrelated preference object is not a legacy audio profile.
if (!['transmitMode', 'vadSensitivity', 'autoGainControl', 'noiseSuppression', 'echoCancellation', 'voiceVolume'].some((key) => has(raw, key))) return values;
const legacy = (key, check, fallback) => (has(raw, key) && check(raw[key]) ? raw[key] : fallback);
const mode = legacy('transmitMode', (v) => v === 'ptt' || v === 'open' || v === 'vad', 'ptt');
if (!has(raw, 'pttEnabled')) values.pttEnabled = mode === 'ptt';
if (!has(raw, 'inputDsp')) {
values.inputDsp = {
template: {
...IN_DEFAULT,
agc: legacy('autoGainControl', isBool, true),
denoise: legacy('noiseSuppression', isBool, true),
vad: mode === 'vad',
vadSensitivity: legacy('vadSensitivity', (v) => SENSITIVITIES.includes(v), 'normal'),
},
devices: {},
};
}
if (!has(raw, 'outputDsp')) {
// Only echo cancellation existed before; playback controls new to TeamsPeach start at the official
// defaults (release notes say so) — no setting the user made is changed.
values.outputDsp = {
template: { ...OUT_DEFAULT, aec: legacy('echoCancellation', isBool, true) },
devices: {},
};
}
if (!has(raw, 'outputLevelDb')) values.outputLevelDb = percentToDb(legacy('voiceVolume', intIn(0, 200), 100));
return values;
}
module.exports = { VOICE_SCHEMA, migrateVoicePrefs, percentToDb, IN_DEFAULT, OUT_DEFAULT, MAX_DEVICE_PROFILES };
+651
View File
@@ -0,0 +1,651 @@
'use strict';
/**
* Whisper lists, the incoming whisper mode and key binding profiles (local files only), plus the global
* shortcut helper (`teamspeach-core hotkeys`).
*
* The official TeamSpeak 6 client keeps whisper lists and hotkeys as myTeamSpeak "syncable items"
* (`ApplySyncableItemAction`) and the receive mode as a local JSON blob "whisper"; TeamsPeach has no account,
* so all three are local files in the profile directory and nothing is synchronised anywhere.
*
* List objects keep the official field names (main.js 6.0.0.5163 byte 2368379):
* { list_uuid, name, type: 1 List | 2 PredefinedGroup, whisper_entry_list: [{ name, uuid, type: 1 Client | 2 Channel }],
* group_type 0..3, group_target_mode 0..6, target_server_uuid, target_server_name, target_group_id, target_group_name }.
*
* Key bindings: see keybind-schema.js (profiles, actions, sources, version 1 → 2 migration).
*/
const fs = require('node:fs');
const path = require('node:path');
const { randomUUID } = require('node:crypto');
const schema = require('./keybind-schema');
const { spawn } = require('node:child_process');
const WHISPER_FILE = 'whisper.json';
const KEYBINDS_FILE = 'keybinds.json';
const WHISPER_VERSION = 1;
const MAX_LISTS = 200;
const MAX_ENTRIES = 1024;
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
const CONTROL = /[\u0000-\u001f\u007f]/;
const LIST_TYPE = { List: 1, PredefinedGroup: 2 };
const ENTRY_TYPE = { Client: 1, Channel: 2 };
const RECEIVE_MODES = ['allow_all', 'deny_all'];
const fail = (code, message) => ({ ok: false, error: { code, message } });
const isObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
const text = (v, min, max) => typeof v === 'string' && v.length >= min && v.length <= max && !CONTROL.test(v);
const onlyKeys = (v, keys) => Object.keys(v).every((k) => keys.includes(k));
// ------------------------------------------------------------------------------------------- persistence
/** Writes JSON atomically: a crash leaves either the old or the new file, never a torn one. */
function writeJson(file, value) {
fs.mkdirSync(path.dirname(file), { recursive: true });
const tmp = `${file}.tmp`;
const fd = fs.openSync(tmp, 'w');
try {
fs.writeSync(fd, JSON.stringify(value, null, 2));
fs.fsyncSync(fd);
} finally {
fs.closeSync(fd);
}
fs.renameSync(tmp, file);
}
/**
* Reads a versioned store. A missing file is a first run; an unparsable or unknown-shape file is moved aside
* (`<file>.invalid-<time>`) so it is never silently overwritten; a newer version than this build understands
* keeps the file untouched and makes the store read-only.
*/
function readStore(file, version, now) {
let raw;
try {
raw = fs.readFileSync(file, 'utf8');
} catch (err) {
if (err.code === 'ENOENT') return { data: null, readOnly: false, recovered: null };
throw err;
}
let parsed;
try {
parsed = JSON.parse(raw);
} catch {
return { data: null, readOnly: false, recovered: quarantine(file, now) };
}
if (!isObject(parsed) || !Number.isInteger(parsed.version) || parsed.version < 1) {
return { data: null, readOnly: false, recovered: quarantine(file, now) };
}
if (parsed.version > version) return { data: null, readOnly: true, recovered: null };
return { data: parsed, readOnly: false, recovered: null };
}
function quarantine(file, now) {
const target = `${file}.invalid-${now()}`;
fs.renameSync(file, target);
return target;
}
// ------------------------------------------------------------------------------------------- validation
function validEntry(e) {
return isObject(e) && onlyKeys(e, ['name', 'uuid', 'type']) && (e.type === ENTRY_TYPE.Client || e.type === ENTRY_TYPE.Channel)
&& text(e.uuid, 1, 256) && typeof e.name === 'string' && e.name.length <= 8192 && !CONTROL.test(e.name)
// Official addFromSelection refuses channel paths whose names contain "/" (the path separator).
&& (e.type === ENTRY_TYPE.Client || e.name.length > 0);
}
/** Returns a normalized list or throws with a message naming the bad field. */
function normalizeList(list, { assignUuid = false } = {}) {
if (!isObject(list)) throw new Error('list: expected an object');
const keys = ['list_uuid', 'name', 'type', 'whisper_entry_list', 'group_type', 'group_target_mode', 'target_server_uuid',
'target_server_name', 'target_group_id', 'target_group_name'];
if (!onlyKeys(list, keys)) throw new Error('list: unknown field');
let uuid = list.list_uuid;
if (uuid === undefined || uuid === '') {
if (!assignUuid) throw new Error('list_uuid: required');
uuid = randomUUID();
}
if (typeof uuid !== 'string' || !UUID.test(uuid)) throw new Error('list_uuid: expected a UUID');
if (!text(list.name, 1, 128) || list.name.trim() !== list.name) throw new Error('name: 1-128 characters without surrounding spaces');
if (list.type !== LIST_TYPE.List && list.type !== LIST_TYPE.PredefinedGroup) throw new Error('type: unknown whisper list type');
const entries = list.whisper_entry_list ?? [];
if (!Array.isArray(entries) || entries.length > MAX_ENTRIES || !entries.every(validEntry)) throw new Error('whisper_entry_list: invalid entry');
const groupType = list.group_type ?? 0;
const mode = list.group_target_mode ?? 0;
if (!Number.isInteger(groupType) || groupType < 0 || groupType > 3) throw new Error('group_type: 0-3');
if (!Number.isInteger(mode) || mode < 0 || mode > 6) throw new Error('group_target_mode: 0-6');
const groupId = list.target_group_id ?? '0';
if (typeof groupId !== 'string' || !/^\d{1,20}$/.test(groupId)) throw new Error('target_group_id: decimal id');
for (const key of ['target_server_uuid', 'target_server_name', 'target_group_name']) {
if (list[key] !== undefined && !text(list[key], 0, 256)) throw new Error(`${key}: invalid`);
}
// Duplicates by identity (official isClientPresent/isChannelPresent) are collapsed.
const seen = new Set();
const unique = [];
for (const e of entries) {
const key = e.type === ENTRY_TYPE.Client ? `c:${e.uuid}` : `h:${e.uuid}:${e.name}`;
if (seen.has(key)) continue;
seen.add(key);
unique.push({ name: e.name, uuid: e.uuid, type: e.type });
}
return {
list_uuid: uuid.toLowerCase(),
name: list.name,
type: list.type,
whisper_entry_list: unique,
group_type: groupType,
group_target_mode: mode,
target_server_uuid: list.target_server_uuid ?? '',
target_server_name: list.target_server_name ?? '',
target_group_id: groupId,
target_group_name: list.target_group_name ?? '',
};
}
class WhisperStore {
constructor(dir, { now = Date.now } = {}) {
this.file = path.join(dir, WHISPER_FILE);
const { data, readOnly, recovered } = readStore(this.file, WHISPER_VERSION, now);
this.readOnly = readOnly;
this.recovered = recovered;
this.receiveMode = 'allow_all'; // official DEFAULT_SETTINGS { receiveMode: AllowAll }
this.lists = [];
if (data) this.load(data);
}
load(data) {
if (RECEIVE_MODES.includes(data.receiveMode)) this.receiveMode = data.receiveMode;
const lists = Array.isArray(data.lists) ? data.lists.slice(0, MAX_LISTS) : [];
const seen = new Set();
for (const raw of lists) {
try {
const list = normalizeList(raw);
if (!seen.has(list.list_uuid)) {
seen.add(list.list_uuid);
this.lists.push(list);
}
} catch {
// A single broken list is dropped (official type Invalid is never offered); the rest stay usable.
this.droppedOnLoad = (this.droppedOnLoad ?? 0) + 1;
}
}
}
get() {
return { receiveMode: this.receiveMode, lists: this.lists.map((l) => ({ ...l, whisper_entry_list: l.whisper_entry_list.map((e) => ({ ...e })) })), readOnly: this.readOnly };
}
persist(next) {
if (this.readOnly) throw new Error('whisper.json was written by a newer TeamsPeach; not overwriting it');
writeJson(this.file, { version: WHISPER_VERSION, receiveMode: next.receiveMode, lists: next.lists });
this.receiveMode = next.receiveMode;
this.lists = next.lists;
}
saveList(raw) {
const list = normalizeList(raw, { assignUuid: true });
const lists = this.lists.slice();
const at = lists.findIndex((l) => l.list_uuid === list.list_uuid);
if (at >= 0) lists[at] = list;
else {
if (lists.length >= MAX_LISTS) throw new Error(`at most ${MAX_LISTS} whisper lists`);
lists.push(list);
}
this.persist({ receiveMode: this.receiveMode, lists });
return list;
}
deleteList(listUuid) {
const lists = this.lists.filter((l) => l.list_uuid !== listUuid);
if (lists.length === this.lists.length) return false;
this.persist({ receiveMode: this.receiveMode, lists });
return true;
}
setReceiveMode(mode) {
if (!RECEIVE_MODES.includes(mode)) throw new Error('receive mode: allow_all or deny_all');
this.persist({ receiveMode: mode, lists: this.lists });
}
listIds() {
return new Set(this.lists.map((l) => l.list_uuid));
}
}
/**
* keybinds.json version 2: { version, requireExactMatch, activeProfile, profiles: [{ id, name, bindings }] }.
* A version 1 file is migrated on load (keybind-schema.loadStore); the original bytes are kept next to it as
* `keybinds.v1-<time>.json` before the v2 file replaces it, so nothing of the old file is ever lost.
*/
class KeybindStore {
constructor(dir, { now = Date.now, defaultProfileName = 'Default' } = {}) {
this.file = path.join(dir, KEYBINDS_FILE);
const { data, readOnly, recovered } = readStore(this.file, schema.KEYBINDS_VERSION, now);
this.readOnly = readOnly;
this.recovered = recovered;
const { state, dropped, migrated } = schema.loadStore(data, { defaultProfileName });
this.state = state;
this.droppedOnLoad = dropped;
this.migratedFrom = null;
if (migrated && !readOnly) {
const backup = path.join(dir, `keybinds.v1-${now()}.json`);
fs.copyFileSync(this.file, backup, fs.constants.COPYFILE_EXCL);
this.persist(state);
this.migratedFrom = backup;
}
}
get() {
return {
requireExactMatch: this.state.requireExactMatch,
activeProfile: this.state.activeProfile,
profiles: this.state.profiles.map((p) => ({ id: p.id, name: p.name, bindings: p.bindings.map((b) => ({ ...b })) })),
readOnly: this.readOnly,
};
}
profile(id) {
const p = typeof id === 'string' ? this.state.profiles.find((x) => x.id === id.toLowerCase()) : null;
if (!p) throw new Error('profile: not found');
return p;
}
/** Bindings of the active profile ("No Profile" → none). */
activeBindings() {
return this.state.profiles.find((p) => p.id === this.state.activeProfile)?.bindings ?? [];
}
setExact(value) {
if (typeof value !== 'boolean') throw new Error('requireExactMatch: expected true/false');
this.persist({ ...this.state, requireExactMatch: value });
}
/** Official addHotkeyProfile; the first profile becomes the active one (there is no other). */
addProfile(name) {
if (this.state.profiles.length >= schema.MAX_PROFILES) throw new Error(`at most ${schema.MAX_PROFILES} profiles`);
const profile = { id: randomUUID(), name: schema.normalizeProfileName(name), bindings: [] };
this.persist({ ...this.state, activeProfile: this.state.activeProfile ?? profile.id, profiles: [...this.state.profiles, profile] });
return profile.id;
}
renameProfile(id, name) {
const target = this.profile(id);
const nextName = schema.normalizeProfileName(name);
this.persist({ ...this.state, profiles: this.state.profiles.map((p) => (p === target ? { ...p, name: nextName } : p)) });
}
/** Official setDefault: the chosen profile becomes the one whose bindings are live. */
activateProfile(id) {
const target = this.profile(id);
if (target.id !== this.state.activeProfile) this.persist({ ...this.state, activeProfile: target.id });
}
/** Official shows delete only for a non-active profile; the active one cannot be deleted. */
deleteProfile(id) {
const target = this.profile(id);
if (target.id === this.state.activeProfile) throw new Error('profile: activate another profile before deleting this one');
this.persist({ ...this.state, profiles: this.state.profiles.filter((p) => p !== target) });
}
setBindings(id, rawBindings) {
const target = this.profile(id);
const bindings = schema.normalizeBindings(rawBindings, target.bindings);
this.persist({ ...this.state, profiles: this.state.profiles.map((p) => (p === target ? { ...p, bindings } : p)) });
}
/** Official: deleting a whisper list deletes its hotkeys ("…with all associated hotkeys"), in every profile. */
dropTarget(listUuid) {
let changed = false;
const profiles = this.state.profiles.map((p) => {
const bindings = p.bindings.filter((b) => !(b.action === 'whisper_list' && b.target === listUuid));
if (bindings.length === p.bindings.length) return p;
changed = true;
return { ...p, bindings };
});
if (changed) this.persist({ ...this.state, profiles });
}
persist(next) {
if (this.readOnly) throw new Error('keybinds.json was written by a newer TeamsPeach; not overwriting it');
writeJson(this.file, { version: schema.KEYBINDS_VERSION, requireExactMatch: next.requireExactMatch, activeProfile: next.activeProfile, profiles: next.profiles });
this.state = next;
}
}
// ------------------------------------------------------------------------------------------- helper
const HELPER_BACKENDS = ['windows_registerhotkey', 'xdg_portal_global_shortcuts', 'x11_xgrabkey', 'unavailable'];
const HELPER_ERRORS = ['in_use', 'unsupported_key', 'invalid', 'portal_denied', 'failed'];
const MAX_HELPER_LINE = 64 * 1024;
const MAX_RESTARTS = 3;
// Backends that fire only on the exact modifier set; "Require exact key match" off adds modifier variants.
const EXACT_MODIFIER_BACKENDS = new Set(['windows_registerhotkey', 'x11_xgrabkey']);
/**
* Owns the `teamspeach-core hotkeys` child. It registers only the bindings marked global and reports
* press/release for those ids; it never sees other keys (see core/src/hotkeys.rs). Disabled in offscreen
* tests so a test run never registers shortcuts on the user's desktop.
*
* With exact matching off, RegisterHotKey/XGrabKey bindings are also registered with extra modifiers
* (keybind-schema.expandRegistrations); a variant's press/release is reported as its binding. The desktop
* portal decides matching itself, so it always receives only the bindings' own chords.
*/
class HotkeyHelper {
constructor({ resolveBinary, onEvent, onStatus, enabled, spawnProcess = spawn }) {
this.resolveBinary = resolveBinary;
this.onEvent = onEvent;
this.onStatus = onStatus;
this.enabled = enabled;
this.spawnProcess = spawnProcess;
this.child = null;
this.seq = 0;
this.wanted = [];
this.exact = true;
this.variantOf = new Map();
this.heldVariants = new Map(); // binding id → registered ids currently down
this.restarts = 0;
const variants = { wanted: 0, registered: 0 };
this.status = enabled
? { state: 'idle', backend: null, global: false, release: false, detail: '', results: [], exact: true, variants }
: { state: 'disabled', backend: null, global: false, release: false, detail: 'test_offscreen', results: [], exact: true, variants };
}
setStatus(patch) {
this.status = { ...this.status, ...patch };
this.onStatus(this.status);
}
/**
* Replaces the registered set with the global physical `bindings`. Starts or stops the helper as needed.
* `exact` is the profile store's requireExactMatch.
*/
bind(bindings, { exact = true } = {}) {
this.wanted = bindings.filter((b) => b.global).map((b) => ({
id: b.id, code: b.code, ctrl: b.ctrl, alt: b.alt, shift: b.shift, meta: b.meta, description: b.description ?? b.action,
}));
this.exact = exact;
this.status = { ...this.status, exact };
if (!this.enabled) return;
if (this.wanted.length === 0) {
this.stop();
this.setStatus({ state: 'idle', results: [], variants: { wanted: 0, registered: 0 } });
return;
}
if (!this.child) this.start();
else this.sendBind();
}
start() {
const binary = this.resolveBinary();
if (!binary) {
this.setStatus({ state: 'unavailable', backend: 'unavailable', global: false, detail: 'core_binary_missing' });
return;
}
let child;
try {
child = this.spawnProcess(binary, ['hotkeys'], { stdio: ['pipe', 'pipe', 'pipe'], windowsHide: true });
} catch (err) {
this.setStatus({ state: 'unavailable', backend: 'unavailable', global: false, detail: `spawn_failed: ${err.message}` });
return;
}
this.child = child;
this.setStatus({ state: 'starting' });
child.stdin.on('error', () => {});
child.stderr.resume();
let pending = '';
child.stdout.setEncoding('utf8');
child.stdout.on('data', (chunk) => {
pending += chunk;
let end;
while ((end = pending.indexOf('\n')) >= 0) {
const line = pending.slice(0, end);
pending = pending.slice(end + 1);
if (line.trim()) this.onLine(child, line);
}
if (pending.length > MAX_HELPER_LINE) {
pending = '';
this.fault(child, 'helper line too long');
}
});
child.on('error', (err) => this.exited(child, `helper error: ${err.message}`));
child.on('exit', (code) => this.exited(child, `helper exited (${code})`));
}
onLine(child, line) {
if (child !== this.child) return;
let msg;
try {
msg = JSON.parse(line);
} catch {
this.fault(child, 'helper sent invalid JSON');
return;
}
if (!isObject(msg) || typeof msg.event !== 'string') return;
switch (msg.event) {
case 'ready':
if (!HELPER_BACKENDS.includes(msg.backend)) {
this.fault(child, 'unknown helper backend');
return;
}
this.setStatus({
state: msg.backend === 'unavailable' ? 'unavailable' : 'ready',
backend: msg.backend,
global: msg.global === true && msg.backend !== 'unavailable',
release: msg.release === true,
detail: typeof msg.detail === 'string' ? msg.detail.slice(0, 1024) : '',
});
if (this.status.global) this.sendBind();
break;
case 'bound':
case 'rebound': {
if (msg.event === 'bound' && msg.seq !== this.seq) return; // answer to a superseded bind
const all = Array.isArray(msg.results) ? msg.results.filter((r) => isObject(r) && typeof r.id === 'string' && this.variantOf.has(r.id)) : [];
const results = all.filter((r) => this.variantOf.get(r.id) === r.id).map((r) => ({
id: r.id,
ok: r.ok === true,
trigger: typeof r.trigger === 'string' ? r.trigger.slice(0, 128) : '',
error: r.ok === true ? undefined : (HELPER_ERRORS.includes(r.error) ? r.error : 'failed'),
detail: typeof r.detail === 'string' ? r.detail.slice(0, 512) : '',
}));
// Variants another program already owns (in_use) simply do not fire; the binding's own chord decides its status.
const registered = all.filter((r) => this.variantOf.get(r.id) !== r.id && r.ok === true).length;
this.restarts = 0;
this.setStatus({ state: 'ready', results, variants: { ...this.status.variants, registered } });
break;
}
case 'press':
case 'release': {
const id = typeof msg.id === 'string' ? this.variantOf.get(msg.id) : undefined;
if (!id) return;
const down = this.heldVariants.get(id) ?? new Set();
if (msg.event === 'press') {
if (down.has(msg.id)) return;
down.add(msg.id);
this.heldVariants.set(id, down);
if (down.size === 1) this.onEvent({ id, state: 'press', source: 'global' });
} else {
if (!down.delete(msg.id)) return;
if (down.size === 0) {
this.heldVariants.delete(id);
this.onEvent({ id, state: 'release', source: 'global' });
}
}
break;
}
case 'error':
this.setStatus({ detail: typeof msg.detail === 'string' ? msg.detail.slice(0, 1024) : 'helper error' });
break;
default:
break;
}
}
sendBind() {
if (!this.child || !this.status.global) return;
this.releaseAll();
const expand = !this.exact && EXACT_MODIFIER_BACKENDS.has(this.status.backend);
const { registrations, variantOf, variants } = schema.expandRegistrations(this.wanted, { exact: !expand });
this.variantOf = variantOf;
this.status = { ...this.status, variants: { wanted: variants.wanted, registered: 0 } };
this.seq = (this.seq + 1) >>> 0;
this.child.stdin.write(`${JSON.stringify({ cmd: 'bind', seq: this.seq, bindings: registrations })}\n`);
}
/**
* A held global key must never stay "held" after a rebind, crash or shutdown: whisper or PTT would stick.
* These releases are `synthetic`: they end held actions but never fire release-triggered actions.
*/
releaseAll() {
for (const id of this.heldVariants.keys()) this.onEvent({ id, state: 'release', source: 'global', synthetic: true });
this.heldVariants.clear();
}
fault(child, detail) {
if (child !== this.child) return;
try { child.kill(); } catch { /* already gone */ }
this.exited(child, detail);
}
exited(child, detail) {
if (child !== this.child) return;
this.child = null;
this.releaseAll();
if (this.stopping) return;
if (this.wanted.length > 0 && this.restarts < MAX_RESTARTS) {
this.restarts += 1;
this.setStatus({ state: 'restarting', detail });
this.start();
} else {
this.setStatus({ state: 'unavailable', global: false, detail });
}
}
stop() {
const child = this.child;
if (!child) return;
this.stopping = true;
this.releaseAll();
this.child = null;
try {
child.stdin.write(`${JSON.stringify({ cmd: 'shutdown' })}\n`);
child.stdin.end();
} catch { /* pipe closed */ }
const timer = setTimeout(() => { try { child.kill(); } catch { /* gone */ } }, 500);
timer.unref?.();
child.once('exit', () => clearTimeout(timer));
this.stopping = false;
}
}
// ------------------------------------------------------------------------------------------- IPC
/**
* Registers the renderer API. `getPttCode` supplies the Audio push-to-talk key for conflict checks;
* `testOffscreen` disables the global helper (bindings then work only while the window is focused, and the
* status says so). `defaultProfileName` names the profile a version 1 keybinds.json migrates into.
*/
function registerWhisperIpc({ ipcMain, trustedSender, getWindow, userDataDir, resolveBinary, testOffscreen, getPttCode, spawnProcess, defaultProfileName }) {
const whisper = new WhisperStore(userDataDir);
const keybinds = new KeybindStore(userDataDir, { defaultProfileName });
const send = (channel, payload) => {
const contents = getWindow()?.webContents;
if (contents && !contents.isDestroyed()) contents.send(channel, payload);
};
const helper = new HotkeyHelper({
resolveBinary,
enabled: !testOffscreen,
spawnProcess,
onEvent: (event) => send('keybinds:event', event),
onStatus: (status) => send('keybinds:status', status),
});
const conflictsOf = (bindings) => schema.conflicts(bindings, getPttCode(), whisper.listIds());
const keybindState = () => {
const state = keybinds.get();
return {
...state,
profiles: state.profiles.map((p) => ({ ...p, conflicts: conflictsOf(p.bindings) })),
status: helper.status,
recovered: keybinds.recovered,
migratedFrom: keybinds.migratedFrom,
droppedOnLoad: keybinds.droppedOnLoad,
};
};
/**
* Only the active profile is live; conflicting rows are never registered. While the renderer records a
* keyboard chord nothing is registered, so a key already bound globally reaches the recorder instead of
* firing (RegisterHotKey/XGrabKey would swallow it).
*/
let capturing = false;
const bindAvailable = () => {
const bindings = capturing ? [] : keybinds.activeBindings();
const blocked = new Set(conflictsOf(bindings).map((c) => c.id));
helper.bind(bindings.filter((b) => !blocked.has(b.id)), { exact: keybinds.state.requireExactMatch });
};
/** keybinds:capture(on) — the renderer's keyboard recorder started/ended (it also ends on window blur). */
const setCapturing = (on) => {
if (typeof on !== 'boolean') throw new Error('capture: expected true/false');
if (capturing === on) return;
capturing = on;
bindAvailable();
};
bindAvailable();
const guard = (handler) => (event, ...args) => {
if (!trustedSender(event)) return fail('forbidden', 'forbidden');
try {
return handler(...args);
} catch (err) {
return fail('bad_request', err.message);
}
};
const keybindChange = (change) => guard((...args) => {
const extra = change(...args);
bindAvailable();
return { ok: true, ...extra, ...keybindState() };
});
ipcMain.handle('whisper:get', guard(() => ({ ok: true, ...whisper.get(), recovered: whisper.recovered })));
ipcMain.handle('whisper:save-list', guard((list) => {
const saved = whisper.saveList(list);
bindAvailable(); // a binding waiting for this list may become usable
return { ok: true, list: saved };
}));
ipcMain.handle('whisper:delete-list', guard((listUuid) => {
if (typeof listUuid !== 'string' || !UUID.test(listUuid)) throw new Error('list_uuid: expected a UUID');
const deleted = whisper.deleteList(listUuid.toLowerCase());
if (deleted) {
keybinds.dropTarget(listUuid.toLowerCase());
bindAvailable();
}
return { ok: true, deleted, keybinds: keybindState() };
}));
ipcMain.handle('whisper:set-receive-mode', guard((mode) => {
whisper.setReceiveMode(mode);
return { ok: true, receiveMode: whisper.receiveMode };
}));
ipcMain.handle('keybinds:get', guard(() => ({ ok: true, ...keybindState() })));
ipcMain.handle('keybinds:set', keybindChange((profileId, bindings) => { keybinds.setBindings(profileId, bindings); }));
ipcMain.handle('keybinds:set-exact', keybindChange((value) => { keybinds.setExact(value); }));
ipcMain.handle('keybinds:profile-add', keybindChange((name) => ({ profileId: keybinds.addProfile(name) })));
ipcMain.handle('keybinds:profile-rename', keybindChange((profileId, name) => { keybinds.renameProfile(profileId, name); }));
ipcMain.handle('keybinds:profile-activate', keybindChange((profileId) => { keybinds.activateProfile(profileId); }));
ipcMain.handle('keybinds:profile-delete', keybindChange((profileId) => { keybinds.deleteProfile(profileId); }));
ipcMain.handle('keybinds:capture', guard((on) => { setCapturing(on); return { ok: true }; }));
return {
whisper,
keybinds,
helper,
refreshBindings: bindAvailable,
dispose: () => helper.stop(),
};
}
module.exports = {
registerWhisperIpc,
WhisperStore,
KeybindStore,
HotkeyHelper,
normalizeList,
};
+104 -6
View File
@@ -11,23 +11,121 @@ function subscribe(channel, callback) {
}
contextBridge.exposeInMainWorld('teamspeach', {
request: (cmd, args) => ipcRenderer.invoke('core:request', cmd, args),
sendAudioFrame: (frame) => ipcRenderer.send('core:audio-frame', frame),
// Every core request names its server connection (one core process per connection, see main/connections.js).
request: (connectionId, cmd, args) => ipcRenderer.invoke('core:request', connectionId, cmd, args),
// profile_get / profile_create / rename: shared by all connections, routed by main (profileRequest).
profileRequest: (cmd, args) => ipcRenderer.invoke('profile:request', cmd, args),
onProfileChanged: (callback) => subscribe('profile:changed', callback),
// Captured voice: main routes it to the selected input connection only (setInputConnection).
sendAudioFrame: (frame, whisper) => ipcRenderer.send('core:audio-frame', frame, whisper),
getWhisper: () => ipcRenderer.invoke('whisper:get'),
saveWhisperList: (list) => ipcRenderer.invoke('whisper:save-list', list),
deleteWhisperList: (listUuid) => ipcRenderer.invoke('whisper:delete-list', listUuid),
setWhisperReceiveMode: (mode) => ipcRenderer.invoke('whisper:set-receive-mode', mode),
getKeybinds: () => ipcRenderer.invoke('keybinds:get'),
setKeybinds: (profileId, bindings) => ipcRenderer.invoke('keybinds:set', profileId, bindings),
setKeybindExact: (value) => ipcRenderer.invoke('keybinds:set-exact', value),
addKeybindProfile: (name) => ipcRenderer.invoke('keybinds:profile-add', name),
renameKeybindProfile: (profileId, name) => ipcRenderer.invoke('keybinds:profile-rename', profileId, name),
activateKeybindProfile: (profileId) => ipcRenderer.invoke('keybinds:profile-activate', profileId),
deleteKeybindProfile: (profileId) => ipcRenderer.invoke('keybinds:profile-delete', profileId),
setKeybindCapture: (on) => ipcRenderer.invoke('keybinds:capture', on),
onKeybindEvent: (callback) => subscribe('keybinds:event', callback),
onKeybindStatus: (callback) => subscribe('keybinds:status', callback),
snapshotExport: (connectionId, options) => ipcRenderer.invoke('snapshots:export', connectionId, options),
snapshotOpen: (connectionId) => ipcRenderer.invoke('snapshots:open', connectionId),
snapshotApply: (connectionId, options) => ipcRenderer.invoke('snapshots:apply', connectionId, options),
snapshotCancel: (connectionId) => ipcRenderer.invoke('snapshots:cancel', connectionId),
onSnapshotProgress: (callback) => subscribe('snapshots:progress', callback),
endAudio: () => ipcRenderer.send('core:audio-end'),
onEvent: (callback) => subscribe('core:event', callback),
onAudio: (callback) => subscribe('core:audio', callback),
onCoreStatus: (callback) => subscribe('core:status', callback),
getCoreStatus: () => ipcRenderer.invoke('core:status'),
restartCore: () => ipcRenderer.invoke('core:restart'),
restartCore: (connectionId) => ipcRenderer.invoke('core:restart', connectionId),
listConnections: () => ipcRenderer.invoke('connections:list'),
createConnection: () => ipcRenderer.invoke('connections:create'),
closeConnection: (connectionId) => ipcRenderer.invoke('connections:close', connectionId),
setInputConnection: (connectionId) => ipcRenderer.invoke('connections:set-input', connectionId),
onConnections: (callback) => subscribe('connections:changed', callback),
listThemes: (force) => ipcRenderer.invoke('themes:list', force === true),
selectTheme: (selection) => ipcRenderer.invoke('themes:select', selection),
openThemeDirectory: (identifier) => ipcRenderer.invoke('themes:open-dir', typeof identifier === 'string' ? identifier : null),
openThemeLink: (identifier, kind) => ipcRenderer.invoke('themes:open-link', { identifier, kind }),
chatHistoryAppend: (scope, record, label) => ipcRenderer.invoke('chat-history:append', scope, record, label),
chatHistoryPage: (scope, before, count) => ipcRenderer.invoke('chat-history:page', scope, before, count),
chatHistoryList: (base) => ipcRenderer.invoke('chat-history:list', base),
chatHistorySetOpen: (scope, open, label) => ipcRenderer.invoke('chat-history:set-open', scope, open, label),
openExternalLink: (url) => ipcRenderer.invoke('link:open-external', url),
setUnreadBadge: (count, png) => ipcRenderer.invoke('app:unread-badge', count, png),
pickRecordingFolder: (title) => ipcRenderer.invoke('recording:pick-folder', title),
filesChooseDownloadDir: (connectionId) => ipcRenderer.invoke('files:choose-download-dir', connectionId),
filesChooseUpload: (connectionId) => ipcRenderer.invoke('files:choose-upload', connectionId),
filesDownload: (connectionId, options) => ipcRenderer.invoke('files:download', connectionId, options),
filesUpload: (connectionId, options) => ipcRenderer.invoke('files:upload', connectionId, options),
filesRelease: (token) => ipcRenderer.invoke('files:release', token),
filesOpenFolder: (token) => ipcRenderer.invoke('files:open-folder', token),
filesSettings: () => ipcRenderer.invoke('files:settings/get'),
filesSetSettings: (options) => ipcRenderer.invoke('files:settings/set', options),
filesChooseDefaultDir: () => ipcRenderer.invoke('files:settings/choose-default'),
filesCopyDefaultDir: () => ipcRenderer.invoke('files:settings/copy-default'),
prepareStreamPopout: (input) => ipcRenderer.invoke('stream-popout:prepare', input),
closeStreamPopout: (input) => ipcRenderer.invoke('stream-popout:close', input),
onStreamPopoutClosed: (callback) => subscribe('stream-popout:closed', callback),
onStreamPopoutReady: (callback) => subscribe('stream-popout:ready', callback),
presentStreamPopout: (input) => ipcRenderer.invoke('stream-popout:present', input),
osCapabilities: () => ipcRenderer.invoke('os:capabilities'),
getChangelog: () => ipcRenderer.invoke('about:changelog'),
getLicenses: () => ipcRenderer.invoke('about:licenses'),
getLicenseText: (id) => ipcRenderer.invoke('about:license-text', id),
badgeInfo: (uuids) => ipcRenderer.invoke('badges:info', uuids),
badgeArt: (uuid, detailed) => ipcRenderer.invoke('badges:art', uuid, detailed === true),
serverIconsList: (id) => ipcRenderer.invoke('server-icons:list', id),
serverIconsUpload: (id, authorization) => ipcRenderer.invoke('server-icons:upload', id, authorization),
serverIconsDelete: (id, authorization, ids) => ipcRenderer.invoke('server-icons:delete', id, authorization, ids),
osSetAutostart: (on) => ipcRenderer.invoke('os:set-autostart', on === true),
osApply: () => ipcRenderer.invoke('os:apply'),
osFlash: (kind) => ipcRenderer.invoke('os:flash', kind === 'poke' ? 'poke' : 'message'),
osNotify: (title, body, kind = 'private') => ipcRenderer.invoke('os:notify', String(title), String(body), kind),
privacyLinkThreat: (host) => ipcRenderer.invoke('privacy:link-threat', host),
privacyThreatStatus: () => ipcRenderer.invoke('privacy:threat-status'),
onOsLock: (callback) => subscribe('os:lock', (locked) => callback(locked === true)),
getAppInfo: () => ipcRenderer.invoke('app:info'),
getWindowState: () => ipcRenderer.invoke('window:get-state'),
onWindowState: (callback) => subscribe('window:state', callback),
getPrefs: () => ipcRenderer.invoke('prefs:get'),
setPrefs: (partial) => ipcRenderer.invoke('prefs:set', partial),
exportIdentity: () => ipcRenderer.invoke('identity:export'),
getBookmarkPasswordState: (id) => ipcRenderer.invoke('bookmarks:password-state', id),
setBookmarkPassword: (id, address, kind, value) => ipcRenderer.invoke('bookmarks:password-set', id, address, kind, value),
revealBookmarkPassword: (id, address, kind) => ipcRenderer.invoke('bookmarks:password-reveal', id, address, kind),
connectBookmark: (connectionId, id, startup = false) => ipcRenderer.invoke('bookmarks:connect', connectionId, id, startup),
getStartupBookmarks: () => ipcRenderer.invoke('bookmarks:startup'),
identityRequest: (action, args) => ipcRenderer.invoke('identity:request', action, args),
exportIdentity: (uid) => ipcRenderer.invoke('identity:export', uid),
onIdentityProgress: (callback) => subscribe('identity:progress', callback),
onIdentitiesChanged: (callback) => subscribe('identities:changed', callback),
setClientVolume: (uid, db) => ipcRenderer.invoke('client-volumes:set', uid, db),
importIdentity: () => ipcRenderer.invoke('identity:import'),
chooseAvatar: () => ipcRenderer.invoke('avatar:choose'),
getCaptureCapabilities: () => ipcRenderer.invoke('capture:capabilities'),
listCaptureSources: (options) => ipcRenderer.invoke('capture:sources', options),
selectCaptureSource: (options) => ipcRenderer.invoke('capture:select', options),
cancelCaptureSelection: () => ipcRenderer.invoke('capture:cancel'),
listAppAudio: () => ipcRenderer.invoke('appaudio:list'),
startAppAudio: (options) => ipcRenderer.invoke('appaudio:start', options),
stopAppAudio: (options) => ipcRenderer.invoke('appaudio:stop', options),
ackAppAudio: (options) => ipcRenderer.send('appaudio:ack', options),
onAppAudio: (callback) => subscribe('appaudio:event', callback),
copyText: (text) => ipcRenderer.invoke('clipboard:write', text),
openLogs: () => ipcRenderer.invoke('app:open-logs'),
fetchExternalMedia: (url) => ipcRenderer.invoke('media:external', url),
fetchExternalMedia: (connectionId, url) => ipcRenderer.invoke('media:external', connectionId, url),
getVideoStatus: () => ipcRenderer.invoke('app:video-status'),
relaunch: () => ipcRenderer.invoke('app:relaunch'),
getUpdateState: () => ipcRenderer.invoke('update:get-state'),
checkForUpdates: () => ipcRenderer.invoke('update:check'),
downloadUpdate: () => ipcRenderer.invoke('update:download'),
installUpdate: (confirmInterrupt) => ipcRenderer.invoke('update:install', { confirmInterrupt: confirmInterrupt === true }),
openUpdateRelease: () => ipcRenderer.invoke('update:open-release'),
setUpdateChannel: (channel) => ipcRenderer.invoke('update:set-channel', channel),
onUpdateState: (callback) => subscribe('update:state', callback),
log: (level, message) => ipcRenderer.send('app:log', level, String(message)),
});
Binary file not shown.
File diff suppressed because it is too large. Load diff

After

Width:  |  Height:  |  Size: 213 KiB

+285
View File
@@ -0,0 +1,285 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="700">
<rect width="1000" height="700" fill="#d0103a"/>
<rect width="680" height="700" fill="#fedf00"/>
<rect width="320" height="700" fill="#0018a8"/>
<g>
<path fill="#c7b37f" d="m469.37,188.48c12.051,0,16.979,10.338,29.029,10.338,7.4391,0,11.777-2.4293,18.261-6.087,4.5235-2.5618,7.4098-3.9272,12.605-3.9272,5.3188,0,8.5799,1.608,11.301,6.1669,1.5373,2.5796,2.814,7.6282,2.1378,10.525-1.2815,5.4935-2.0711,7.8814-4.2621,12.953-1.0426,2.4383-2.0278,3.8979-2.0278,6.5661,0,6.3963,8.704,8.5937,14.622,8.6852,1.2899,0.02,12.139,0.1981,18.815-6.5609-3.6222-0.1594-7.6754-2.9642-7.6754-6.5867,0-4.0992,2.8804-6.8735,6.7854-8.0573,0.74205-0.2119,2.0058,0.4432,2.6775,0.09,0.95395-0.4947,0.50765-1.5685,1.3558-2.24,1.9436-1.5547,3.2071-2.5253,5.6986-2.5253,1.6254,0,2.5779,0.2291,3.8853,1.1656,0.68913,0.4947,0.94268,1.107,1.7908,1.107,1.7846,0,2.6682-1.1309,4.4529-1.1309,1.4489,0,2.3325,0.1945,3.6044,0.8481,1.0603,0.5479,1.0367,2.3489,2.2382,2.3489,0.6008,0,3.7786-1.2953,5.4395-1.2953,3.4458,0,5.2852,1.2474,7.5117,3.8625,0.60107,0.7068,0.9852,2.1369,1.5961,2.1369,1.2303,0,4.0651,0.7924,5.832,2.5594,0.75978,0.7597,1.0966,1.1194,1.6797,2.0381,0.40663,0.654,1.0299,2.2493,1.7484,2.5256,0.84194,0.3239,1.548,0.2617,2.655,0.9714,2.5256,1.6189,4.4684,4.6622,4.3774,7.611-0.0304,0.9888-0.48176,2.3677-0.75105,3.3096-2.9409,10.284-9.9399,13.548-17.008,22.382-3.004,3.7637-5.3747,6.7673-5.3747,11.591,0,1.1664,1.436,3.3019,2.0722,4.2739-0.38862-2.2664,0.64749-5.0508,3.0433-5.1803,3.282-0.1776,5.8168,2.3176,6.2586,5.5689,0.0882,0.7598-0.19451,2.0723-0.51807,2.8492,1.7669-1.1661,4.0961-1.9543,6.2164-2.2017,1.1487-0.1238,1.813-0.1585,2.9789-0.1294,5.2453,0.1294,11.034,3.0802,14.547,6.0639,10.749,9.1305,12.049,22.492,11.462,26.203-1.3043,8.2462-0.4837,23.168-21.56,29.117,3.8977,1.6412,6.5493,4.5731,6.5493,8.1778,0,3.9227-3.0037,7.2798-6.9264,7.2798-2.2442,0-3.7992-0.5479-5.3717-2.1203-4.3822,4.3819-5.2304,8.8525-5.2304,15.054,0,3.7108,0.70688,5.9018,2.2619,9.2589,1.6431,3.5518,2.8269,5.6367,5.7957,8.1988,1.5725-2.3677,3.2336-4.0994,6.0782-4.0994,2.7566,0,5.0891,0.8836,6.2198,3.3926,0.33573,0.7598,0.0353,1.3783,0.42408,2.1203,0.49471,0.9542,1.3254,1.1664,1.8378,2.1206,0.79496,1.4664,0.018,2.7209,0.7066,4.2405,0.4418,0.9896,1.4138,1.1309,1.8378,2.1203,0.67142,1.5198,0.84815,2.5621,0.84815,4.2407,0,4.7002-4.2762,8.0576-8.9764,8.0576-1.4135,0-2.191-0.5656-3.6047-0.4241,2.686,2.6857,4.7357,3.8518,6.7854,7.0677,2.9685,4.6473,3.7105,7.9515,4.382,13.429,0.12381,1.0249,0.1416,1.6434,0.1416,2.686,0,7.0324-1.0955,11.238-4.2407,17.528-3.004,6.0253-5.5661,9.365-11.026,13.287-8.5168,6.1314-14.719,7.8986-25.02,9.8951-6.6087,1.2722-10.39,1.8378-17.105,2.2616-8.5875,0.5479-13.482,0.5657-22.052,1.131-11.238,0.7598-19.03,2.3499-26.999,10.319,3.7637,2.7563,6.361,5.4597,6.361,10.107,0,4.7706-2.9508,8.1809-7.492,9.683-1.06,0.3531-1.8375,0.035-2.8272,0.5653-1.1838,0.6185-1.1309,1.9788-2.2616,2.6857-1.9968,1.2722-3.5516,1.555-5.937,1.555-4.2055,0-7.0682-0.9894-10.037-3.9582-3.4455,2.8627-4.6118,5.4426-8.4814,7.6336-1.2725,0.7066-1.9262,1.6962-3.3926,1.6962-2.3148,0-3.3751-1.4666-5.2304-2.8272-2.9508-2.1558-4.5235-3.587-6.9267-6.361-3.5161,2.1026-5.6719,3.8166-9.7536,3.8166-2.5093,0-4.0994-0.3534-6.2198-1.6963-1.1132-0.6891-1.2899-1.714-2.4032-2.4031-1.1661-0.7243-2.1381-0.4593-3.3926-0.9894-4.718-2.032-7.7748-5.5307-7.7748-10.672,0-4.5058,2.845-7.3684,6.9266-9.2592-7.828-7.8274-15.532-9.188-26.576-9.8948-8.5343-0.5476-13.394-0.5653-21.911-1.131-6.7674-0.4592-10.531-1.1484-17.246-2.2616-5.0714-0.8304-8.075-1.0955-12.722-3.2513-15.991-7.4565-26.187-17.687-28.272-35.198-0.17671-1.5019-0.14114-2.3677-0.14114-3.8873,0-9.1176,3.5867-14.683,10.036-21.133-1.6611-0.3889-2.774,0.1589-4.3822-0.4241-4.0288-1.4666-6.9264-4.2584-6.9264-8.5523,0-1.5902,0.0707-2.6505,0.84814-4.0285,0.5476-0.9719,1.5902-1.1664,1.8375-2.2619,0.31798-1.4487-0.10603-2.4735,0.56562-3.8166,0.4415-0.9011,1.2722-1.0778,1.6963-1.9791,1.3957-2.8976,3.1452-5.2301,6.361-5.2301,2.7563,0,4.5235,1.4489,5.937,3.8166,2.686-1.2367,3.428-3.2513,4.9476-5.7954,2.5267-4.2232,3.6754-7.174,3.6754-12.086,0-3.428-0.33572-5.4423-1.4135-8.6936-0.7775-2.3322-1.0958-3.9224-2.8272-5.6541-1.5728,1.5724-3.1278,2.1203-5.3717,2.1203-4.4883,0-7.916-3.8521-7.916-8.3401,0-3.3397,1.6431-5.8132,4.6648-7.2092-2.4209-2.0849-4.5235-2.2619-7.2092-3.9579-4.082-2.5799-5.5129-5.301-8.1989-9.3298-1.7495-2.6328-2.2087-4.4703-3.11-7.4917-1.0778-3.6399-1.6963-5.8134-1.6963-9.6123,0-0.9894,0.018-1.5725,0.14115-2.5444,1.0074-7.6687,2.3857-12.475,7.2095-18.518,2.8624-3.587,4.8063-5.7957,9.047-7.6333,3.6044-1.555,5.7602-2.686,9.683-2.686,1.1838,0,1.873,0,3.0394,0.1416,1.8021,0.2297,2.9508,0.3887,4.5232,1.2723,0.6008,0.3357,1.6963,1.3428,1.6963,0.6359,0-0.8126-0.42405-1.2367-0.42405-2.0497,0-3.251,2.3325-6.2195,5.5838-6.2195,2.35,0,3.3042,2.0672,4.4529,4.0995,0.74206-1.2371,1.1307-2.0852,1.1307-3.5342,0-5.3716-2.8801-8.1102-6.2195-12.298-7.2801-9.0999-16.398-13.358-16.398-25.02,0-3.4809,1.6786-5.8488,4.6648-7.6332,0.86585-0.5127,2.0297,0,2.8779-0.5425,0.72432-0.4596,0.64133-1.395,1.1008-2.137,0.72433-1.1484,1.3656-1.6419,2.3731-2.5256,1.6608-1.4486,3.1193-1.0147,4.9568-2.2869,0.91878-0.6362,1.1357-1.4624,Line truncated
<g fill="none" stroke="#703d29">
<path stroke-width="1.041" stroke-linejoin="round" d="m425.59,223.46c0.43223,1.6315,1.7517,3.1604,3.8197,3.8068,1.2441,0.3886,4.1208,0.233,5.9868-2.177,1.5125-1.9537,1.3969-4.3735,0.83211-6.2968-0.36581-1.2447-1.3707-2.4457-2.6981-3.4683l-7.9374,8.0568-0.002,0.079z"/>
<path stroke-width="1.037" stroke-linecap="round" d="m626.61,343.94c-1.866-4.5092-6.6863-2.4879-6.9827,0-0.68323,5.7321,4.3395,7.4638,7.9158,6.5307,1.7714-0.4621,3.0673-1.5778,3.8957-3.0313,0.93454-1.64,1.2171-3.7797,0.61008-5.8235-0.27492-0.9269-0.66242-1.7073-1.3254-2.581-0.66579-0.878-1.3544-1.4791-1.9993-1.8905-1.3755-0.8779-2.8739-0.9646-5.2239-0.9646-8.7079,0-16.327,10.289-18.886,20.977-0.84278,3.52-2.0013,11.371-0.39592,18.815,1.7104,7.9301,5.1381,13.42,9.1598,17.585,2.1769,2.2546,5.1457,4.2618,8.9896,6.4351,1.1856,0.6705,4.3198,2.0609,6.4967,2.6831,2.2357,0.6388,4.3,0.5454,6.1582,0.1418,5.1598-1.1205,7.559-5.9189,4.9597-10.829-2.1279-4.0201-8.3967-6.2198-11.351-1.0885-0.25071,0.4353-0.64103,1.3836-0.62835,2.4107,0.0158,1.3682,0.58418,3.0172,1.5612,3.6391,2.2458,1.4292,5.8382,1.0251,5.6713-2.9401"/>
<path stroke-width="1.276" d="m599.69,403.07c1.7478-2.0561,5.7569-5.1403,10.343-5.7034,4.6541-0.5718,8.6986,0.7837,12.828,3.0048,8.0596,4.3347,12.554,8.9947,15.549,17.641,0.76063,2.1952,1.3915,5.5055,1.3037,9.0211-0.14025,5.604-1.5629,11.73-3.0917,14.692-1.3336,2.5835-4.8204,13.994-23.946,21.868-11.161,4.5949-28.3,5.6538-40.118,6.1204-16.256,0.6416-31.254,1.2438-39.962,11.973"/>
<g stroke-width="1.121">
<path d="m603.75,421.45c-0.46629-1.7104-0.0349-3.3501,1.3217-5.209,1.8139-2.4856,5.6756-3.3431,9.1745-1.3994,1.1703,0.6503,2.6378,1.5066,3.9649,3.2653,0.50202,0.6653,1.3504,1.7391,1.7883,2.4879,1.0586,1.8108,1.494,3.2927,1.703,3.8875,3.8453,10.928-2.2655,22.771-10.255,27.522-6.2062,3.6906-13.608,5.3357-22.469,6.3751-3.9826,0.4674-6.2569,0.4368-10.263,0.6222-3.2237,0.1493-6.0082,0.096-8.63,0.064-2.1575-0.027-4.2049-0.016-6.2969-0.064-3.4156-0.079-6.9497-0.1589-11.274,0.1556-4.5497,0.3309-7.9729,0.4477-11.818,1.0884-2.5118,0.4187-5.4558,0.8226-8.5422,1.5151-0.92609,0.2075-1.8651,0.3773-2.8092,0.6618-0.63398,0.1912-1.2604,0.3853-1.8811,0.5746-5.5717,1.6994-10.985,3.7697-15.257,6.5209-1.3198,0.8501-2.8106,1.7011-3.8771,2.7079-0.66466,0.627-1.472,1.2565-2.1237,1.8978-2.9899,2.9415-6.0473,6.1261-6.7623,10.438-0.13192,0.7955-0.13169,1.6293-0.13169,2.507,0,2.7988,2.2774,6.6084,8.4195,7.8524"/>
<path d="m516.37,229.11c1.2852,2.3241,1.992,3.7378,1.2441,6.1421-0.84731,2.7231-2.7783,4.3538-5.5202,4.3538-6.2198,0-9.8782-7.3642-7.075-12.051,4.976-8.3187,14.539-3.6466,23.402,0.4739-0.42746-2.1338-1.1734-2.8278-1.0958-5.4712,0.19315-6.5642,5.061-9.5412,7.0046-15.605,1.1577-3.6124,1.6183-6.7497-1.0251-9.3155-2.3078-2.2396-4.9819-2.2056-7.9937-1.0248-6.0174,2.3587-13.246,9.1373-25.97,9.3256-12.724-0.1883-20.012-6.9669-26.03-9.3256-3.0115-1.1808-5.686-1.2148-7.9934,1.0248-2.6435,2.5658-2.1831,5.7031-1.0252,9.3155,1.9436,6.0641,6.8116,9.0411,7.0043,15.605,0.0779,2.6434-0.66833,3.3374-1.0955,5.4712,8.8633-4.1205,18.798-9.2119,23.402-0.4739,2.5652,4.8688-0.85519,12.051-7.0752,12.051-2.7417,0-4.6673-1.7481-5.5199-4.3538-0.76005-2.3227,0-4.3538,1.2441-6.1421"/>
<path stroke-linecap="round" d="m491.5,224.79c2.4029,1.8378,4.0994,4.0994,3.8166,7.7748-0.30645,3.9863-1.2722,4.9476-4.382,7.0679"/>
<path stroke-linecap="round" d="m494.68,233.7c-0.14115,2.4029-1.1307,3.9579-3.5338,4.9473"/>
</g>
<path fill="#c7b37f" stroke="none" d="m432.4,214.49,1.0884,0.7775,1.1661,1.2441,0.7775,1.555,0.38862,1.3217,0.0779,1.7104-0.0779,1.1661-0.38862,1.3217-0.7775,0.9328-0.93312,1.0109-1.3214,0.6998-1.7106,0.3886-1.477,0.2333-1.555-0.6999-1.3994-1.0105-0.85517-1.244-0.62218-1.555,0-0.6219,7.6195-7.2306z"/>
<path stroke-width="1.041" stroke-linecap="round" d="m430.01,220.57c-0.47838-2.5813-3.4958-3.1109-4.6648-1.586-1.8001,2.3478-0.48513,6.2572,3.1759,7.4014,1.2438,0.3889,4.1205,0.2333,5.9865-2.1769,1.5125-1.9537,1.3969-4.3735,0.83208-6.2969-0.36552-1.2446-1.3642-2.3294-2.6981-3.3435-4.2511-3.2333-11.118-2.4879-13.373,2.9541-2.9086,7.0203,3.421,12.284,9.2522,16.249,7.3409,4.9918,15.705,5.8996,22.003,5.8312,14.306-0.1556,25.19-6.9973,32.265-10.884,1.6482-0.9056,3.3453-0.7207,4.1982,0.3109,0.96295,1.1644,0.94748,3.0428-0.38861,4.2759"/>
<path stroke-width="1.057" d="m387.6,414.35-3.1877,1.1663-3.2654,2.4879-1.3994,1.9436-1.7883,3.1098-0.7775,2.3325-0.6219,2.8768-0.31096,2.1766"/>
<path stroke-width="1.057" d="m405.95,414.66-0.23327,2.7991-0.46629,1.9436-1.3997,3.343-2.1769,2.8768-2.3325,1.8659-1.7104,0.8552-2.4102,0.5443"/>
<path stroke-width="1.197" d="m499.6,489.23c-0.57969,2.5878-3.0039,5.5484-8.279,6.6169,0,0-0.62556,0.1292-1.0254,0.2118"/>
<path stroke-width="1.356" d="m631.59,406.57c3.3394,3.114,5.6851,6.905,7.488,12.109,0.76064,2.1952,1.3912,5.5056,1.3034,9.0211-0.1398,5.6041-1.5626,11.73-3.0917,14.692-1.3333,2.5838-4.8201,13.994-23.946,21.868-11.161,4.5953-28.3,5.6539-40.118,6.1205-16.022,0.6326-30.822,1.2266-39.582,11.516"/>
<path stroke-width="0.929" d="m605.45,416.95c1.1881-1.6211,5.5174-3.6734,9.0163-1.7295,1.1515,0.6397,2.5163,1.4487,3.7136,3.2426"/>
<path stroke-width="1.356" d="m627.51,402.79c0.78229,0.3008,1.5604,0.5718,2.2436,0.7671,2.236,0.6387,4.3372,0.6883,6.1584,0.1418,4.4225-1.3265,7.2612-5.4589,4.9597-10.829-0.53383-1.2452-1.5556-2.4392-2.7164-3.3335"/>
<path stroke-width="1.041" stroke-linecap="round" d="m375.44,287.13c-2.9685,1.8378-5.1823,2.2728-7.492,4.9475-2.2994,4.5531-3.2034,6.9991-4.1002,10.65"/>
<path stroke-width="1.041" stroke-linecap="round" d="m435.88,221.96c0,2.6856-1.9791,4.3819-4.6648,4.9475"/>
<path stroke-width="0.997" d="m620.49,275.03c7.3898-0.1509,28.859,5.6392,29.012,30.876,0.15083,24.925-15.383,28.997-21.607,30.656"/>
<path stroke-width="1.037" d="m622.43,275.03c12.743-0.5541,25.892,8.8261,26.472,32.236,0.45249,18.289-12.517,26.584-18.742,28.243"/>
<g stroke-width="0.881">
<path d="m615.33,363.16,0.19608-2.5022,0.83407-3.9739,1.1774-3.0909,1.3245-2.5512,1.7171-2.0606"/>
<path d="m632.74,343.67-0.19451,2.449-0.69985,1.6718-1.0884,1.5939-1.2438,0.9328-1.9048,0.6996-1.6715,0.1168-1.2441-0.1945"/>
<path d="m602.33,268.42,0.54422-2.6435,1.1661-2.449,1.5162-2.4491,2.6046-3.343,2.0601-2.2937,3.343-3.3818,2.8767-2.9156,1.8271-2.0993,2.4102-2.9153,2.1381-3.2265,1.2829-2.6435,0.69955-3.4207,0.21252-4.2418-0.3886-1.2302"/>
<path d="m605.44,429.44,2.527-0.5054,1.9048-1.0108,1.0496-1.0496,0.73867-1.205,0.5054-1.9436,0.0388-1.3606"/>
<path d="m364.94,403.38,1.8662,0.1555,2.4099-0.1945,2.4102-0.8552"/>
<path d="m379.44,345.38-0.31093,2.1769-0.50539,0.9717-0.73869,0.9331-1.0108,0.7773-1.1273,0.5054-1.4773,0.2332-1.0108,0.078"/>
<path d="m388.73,326.65-0.54424,3.3819-0.66072,1.4774-1.3606,1.8659-1.8271,1.3994-1.866,0.9328-3.6154,0.8941"/>
<path d="m402.76,274.48-0.69956,2.0213-0.85516,1.4774-1.1664,1.6326-1.6327,1.4771-1.9436,0.9331-1.6327,0.3886-1.0108-0.078"/>
<path d="m394.41,272.65,0.0391,1.555"/>
</g>
<g stroke-width="0.987">
<path stroke-linecap="round" d="m397.32,325.09c-1.1273,1.0105-2.2503,1.6304-3.2654,2.0289"/>
<path stroke-linecap="round" d="m629.24,397.16c0.1335,0.1447,0.58137,0.2172,0.73866,0.3109,2.2157,1.3217,6.5774-0.3264,5.2945-3.7474"/>
<path d="m621.54,349.38c1.5725,2.0547,4.5384,2.588,6.8827,1.9765,1.7717-0.4621,3.0676-1.5781,3.8957-3.0312,0.93454-1.64,1.2173-3.7798,0.61038-5.8239-0.27522-0.9266-0.66242-1.7069-1.3254-2.581-0.66608-0.8777-1.492-1.8111-2.1322-2.2298-0.16974-0.111-0.33908-0.2614-0.51834-0.383"/>
<path d="m638.99,390.46c0.0678-0.365,0.10333-0.7409,0.10333-1.125,0-1.8105-0.75725-3.468-2.0092-4.5857-0.42746-0.3816-0.84138-0.9736-1.3594-1.2328"/>
<path d="m636.47,384.25c-0.0727-2.9123-2.456-4.9954-5.4099-5.5135"/>
<path d="m624.54,383.17c-0.67874-0.5544-1.4064-1.0246-2.0418-1.6895-3.8259-4.0044-6.7038-9.9242-6.7423-16.677-0.0369-6.4737,2.5658-13.062,5.5979-15.627"/>
<path d="m533.07,481.44,2.7988-2.5658,1.9439-1.4771,3.654-2.2546,3.421-1.6326,2.4102-0.6222,4.8204-1.0882,5.5979-0.8554"/>
<path d="m511.61,501.2c-2.0216,3.11-6.842,7.7747-11.896,9.6407-5.0536-1.866-9.8738-6.5307-11.895-9.6407"/>
<path stroke-linecap="round" d="m491.28,494.73c-0.63372,2.3489-1.7852,4.626-3.4677,6.4511"/>
<path d="m491.78,491.47-0.69983,3.4206"/>
<path d="m487.43,501.42-1.4771,1.4773-2.6435,1.4771-3.0321,0.9331"/>
<path d="m471.46,227.45c0.37933-1.1821,0.7671-2.0719,0.70996-4.0144-0.19315-6.5642-5.0607-9.5412-7.0046-15.606-1.1577-3.612-1.618-6.7494,1.0254-9.3152,2.3075-2.2396,4.9816-2.2058,7.9934-1.0251,6.0174,2.359,13.308,9.1376,26.032,9.3259-12.724-0.1882-20.015-6.9669-26.032-9.3259-3.0118-1.1807-5.9347-1.5255-8.2425,0.7142-2.6432,2.5658-1.9341,6.0141-0.77639,9.6261,1.9439,6.0644,6.5628,9.0414,6.7558,15.606,0.0572,1.9425-0.45501,2.8323-0.83406,4.0144"/>
<path d="m500.18,206.37c12.517-0.661,23.245-9.0712,26.706-9.7573,3.0856-0.612,4.8086-0.3354,7.0721,1.7213-2.2636-2.0567-4.8418-1.9931-7.7706-0.845-6.0175,2.359-13.246,9.1376-25.97,9.3259"/>
<path d="m624.59,383.2c-5.209-3.7319-9.672-10.856-9.7184-19.274-0.036-6.4739,2.5655-13.061,5.5976-15.627"/>
<path d="m511.17,500.76c-2.0213,3.1097-6.8416,7.7748-11.895,9.6404-5.0536-1.8656-9.874-6.5307-11.895-9.6404"/>
<path stroke-linecap="round" d="m479.17,230.74c1.3018-0.7209,2.5101-1.4064,3.6244-2.0184,1.6482-0.9056,3.6292-0.7157,4.4821,0.316,0.96266,1.1644,1.1104,3.1826-0.22542,4.416"/>
<path d="m460.48,239.49c8.5875-1.7922,15.585-5.6381,20.875-8.5967"/>
<path d="m531.78,487.43c0.70997,0.4843,1.1661,1.4926,1.1661,1.4926,0.19675,0.4685,0.45052,0.9114,0.52088,1.3268,0.40352,2.3784-1.156,3.8605-3.0828,4.0848-2.6477,0.3078-4.6352-1.2652-5.4825-3.17"/>
<path d="m460.04,239.05c8.5875-1.7925,15.585-5.6384,20.875-8.5968"/>
<path d="m633.38,397.49c-1.6327,0.6292-2.5258,0.544-4.557-0.3579-0.8338-0.3703-1.7883-0.9435-2.9066-1.5784-3.9807-2.2607-8.7079-5.8238-13.139-14.143-1.3105-2.4602-2.1246-4.7432-2.6728-6.9922-0.42266-1.7354-0.71587-3.4505-0.7792-5.2112-0.10783-3,0.21499-6.1323,0.96381-9.721,1.2365-5.9254,2.7251-9.1432,6.3754-14.15,1.7953-2.4622,3.3433-3.9649,6.6863-4.0425"/>
<path d="m398.83,279.88c2.7794,2.3623,4.1208,5.2866,4.1208,8.9409,0,4.8409-4.0502,12.75-14.002,15.549-3.8138,1.0724-7.5882,0.2073-9.8706-1.1807"/>
<path d="m400.46,296.28c1.7883,1.2438,2.4881,2.6406,2.4881,5.0697,0,1.6647-1.0763,3.8228-2.9074,5.8666-2.9977,3.3461-8.0821,6.1897-13.716,6.2603-3.0563,0.038-6.2294-0.6008-9.4218-2.7358-3.4131-2.2821-5.2093-5.3643-5.9868-8.3967"/>
<path d="m400.3,306.71c2.0258,1.8623,2.648,4.1932,2.648,7.129,0,4.2891-1.7424,7.5998-5.7493,11.107-0.89598,0.784-1.9048,1.5187-3.0329,2.1783"/>
<path d="m596.4,292.63,0,5.5188"/>
<path d="m595.96,291.27,0,7.774"/>
<path d="m596.4,274.44,0,10.185"/>
<path d="m595.96,272.19,0,13.918"/>
<path d="m592.99,414.17c-1.9304,3.8352-3.4727,5.8492-6.5307,8.8632-3.0855,3.0408-5.2239,4.4343-9.0965,6.3751-3.7719,1.8905-6.1477,2.4916-10.263,3.421-4.1124,0.9286-6.5175,1.131-10.729,1.3215-3.8619,0.1751-6.0529,0.014-9.9095-0.2544-4.1276-0.2856-6.4168-0.8608-10.538-1.2227-3.4038-0.2988-5.3263-0.5741-8.7434-0.5656-3.5122,0.01-5.5247,0.031-8.9831,0.6433-3.2234,0.5709-5.052,1.0257-8.0857,2.2548-4.1976,1.7005-8.9412,4.6648-9.9517,5.9865-1.0108-1.3217-5.7541-4.286-9.952-5.9865-3.0338-1.2291-4.8623-1.6839-8.0855-2.2548-3.459-0.6124-5.471-0.6346-8.9834-0.6433-3.417-0.01-5.3395,0.2668-8.7434,0.5656-4.1211,0.3619-6.4106,0.9371-10.538,1.2227-3.8566,0.2668-6.0473,0.4294-9.9092,0.2544-4.212-0.1905-6.6174-0.3903-10.729-1.3215-4.1149-0.9317-6.4888-1.5347-10.263-3.421-3.8752-1.9368-6.011-3.3343-9.0965-6.3751-0.33318-0.3286-0.64864-0.6452-0.94832-0.9536"/>
<path d="m478.8,505.47,2.7988-0.3497"/>
<path d="m528.9,501.44,2.825-0.269,2.6907-1.0763,1.8834-1.1437,2.5562-3.027,0.53774-1.1436,0.40382-2.6235,0.13462-1.2108"/>
<path d="m613.23,277.36c1.2131-4.1276-0.2676-8.4831-4.2663-8.3657"/>
<path d="m402.79,341.75c-1.0136,3.4281-3.1939,5.7702-5.6198,7.2934"/>
<path d="m402.86,276.05c-0.99953,2.8889-2.8289,4.953-5.7237,6.2604-2.8866,1.3037-6.2274,0.086-8.014-1.2922"/>
<path stroke-linecap="round" d="m380.95,291.2c2.3922,1.2526,4.8195-0.5836,4.3217-3.6959-0.23329-1.4576-1.8052-3.2988-3.9328-3.4333"/>
<path d="m390.87,422.86c0.51553,0.4852,0.62583,1.1149,1.3218,1.2438,1.0496,0.1945,1.866,0.5831,2.9156-0.8163,1.2939-1.725,0.59855-4.4082-0.7474-6.0974-1.4405-1.808-5.6134-3.4055-9.112-1.4616-1.1706,0.6503-2.6381,1.5063-3.9652,3.2654-0.50172,0.6649-1.3504,1.739-1.788,2.4878-1.0589,1.8108-1.494,3.2924-1.7033,3.8873-3.2012,9.0979,0.59995,18.664,6.4885,24.493"/>
<path stroke-linecap="round" d="m531.59,487.23c0.63794,0.6647,1.0105,1.2441,1.0105,1.2441,0.19675,0.4682,0.35708,0.9112,0.42773,1.3268,0.40323,2.3784-1.156,3.8605-3.083,4.0845-2.6477,0.3082-4.4197-1.2519-5.2672-3.1567"/>
<path d="m608.5,216.81c5.2278,0.6376,9.7837,5.6277,9.7837,10.992,0,6.9194-2.3311,9.4961-5.9741,14.446-3.8985,5.2973-16.638,15.005-16.638,26.045,0,6.6864,1.866,10.962,6.6863,13.139,3.1081,1.4036,6.7423-0.1157,8.3967-1.6107,4.0429-3.6543,2.4265-10.062-1.788-10.828-5.1316-0.9332-6.096,7.145-1.0885,6.6083"/>
<path d="m635.73,383.51c-0.45954-2.7701-2.8132-4.8795-5.648-4.8795-3.1638,0-5.7287,2.628-5.7287,5.87,0,1.5877,0.61514,3.0281,1.6147,4.0848"/>
<path d="m599.79,279.88c-2.7794,2.3623-4.1208,5.2866-4.1208,8.9409,0,4.8409,4.0502,12.75,14.002,15.549,3.8135,1.0724,7.4574,0.9714,9.7398-0.4168"/>
<path d="m375.61,287.8c-2.3784,0.7938-5.3486,2.2774-7.5497,5.3953-1.8561,2.6297-2.9384,6.2856-3.6087,9.4846-0.29321,1.3999-0.64301,5.832,0.2524,10.41,0.6613,3.3805,2.0573,6.5271,3.6016,8.8064,0.5535,0.8169,1.0558,1.3671,1.6206,1.9318,0.51778,0.5178,1.2528,0.9751,1.7737,1.3727"/>
<path d="m471.72,469.02c7.5764,3.3588,13.13,5.8745,17.839,13.31,1.4771,2.3325,1.866,5.6756,1.866,7.6192,0,4.1982-1.7106,8.9409-5.2093,11.895-3.2462,2.7414-6.4531,3.5763-10.418,3.1877-3.007-0.2949-5.8309-2.4878-6.2974-4.0428"/>
<path d="m396.88,325.2c4.2762,3.3431,6.0644,6.5862,6.0644,11.74,0,5.9085-2.8767,9.5627-6.2201,11.662"/>
<path stroke-linecap="round" d="m392.99,344.41c6.3751,7.9301,9.7578,12.637,9.9517,22.08,0.18146,8.8627-2.6435,14.927-7.9304,21.303"/>
<path d="m515.23,239.57c1.1591-0.7609,2.0098-1.9791,2.4974-3.4848,0.75302-2.3252,0.76908-4.3077-0.47471-6.0957,1.5345,2.0081,1.6757,3.7043,1.2438,6.1418-0.27465,1.5522-1.2644,2.3685-2.4974,3.4849"/>
<path d="m596.4,374.24,0,25.241,0.0668,0c0,0.018-0.009,2.3888-0.21183,3.8872-0.13305,0.9824-0.27155,1.8705-0.42857,2.7023"/>
<path d="m595.96,371.81,0,27.223,0.0673,0.0003c0,0.018-0.009,2.3885-0.21183,3.8872-0.21184,1.5624-0.43701,2.8869-0.72939,4.1245"/>
<path d="m595.96,339.94,0,22.702"/>
<path d="m596.4,341.73,0,18.463"/>
<path d="m596.4,318.25,0,13.841"/>
<path d="m595.96,316.62,0,17.064"/>
<path d="m596.4,304.1,0,5.3693"/>
<path d="m595.96,303.01,0,7.7762"/>
<path d="m593.08,412.65c-0.16546,0.3503-0.34189,0.7108-0.5296,1.0842-1.9304,3.8352-3.473,5.8492-6.531,8.863-3.0853,3.0411-5.2236,4.4343-9.0965,6.3754-3.7716,1.8901-6.1475,2.4915-10.263,3.421-4.1121,0.9286-6.5175,1.1309-10.729,1.3214-3.8617,0.1747-6.0529,0.011-9.9092-0.2547-4.1276-0.2853-6.4168-0.8605-10.538-1.2224-3.4038-0.2991-5.3263-0.5743-8.7431-0.5656-3.5124,0.01-5.5244,0.031-8.9831,0.6433-3.2234,0.5707-5.052,1.0254-8.086,2.2546-4.1976,1.7007-8.9409,4.6647-9.9517,5.9865-1.0108-1.3218-5.7538-4.2858-9.9517-5.9865-3.0338-1.2292-4.8623-1.6839-8.0857-2.2546-3.4587-0.6123-5.471-0.6345-8.9834-0.6433-3.4168-0.01-5.3393,0.2665-8.7431,0.5656-4.1214,0.3619-6.4108,0.9371-10.538,1.2224-3.8566,0.2668-6.0473,0.4294-9.9095,0.2547-4.212-0.1904-6.6171-0.39-10.729-1.3214-4.1146-0.9323-6.4891-1.534-10.263-3.421-3.8749-1.9378-6.0113-3.3343-9.0965-6.3754-1.6155-1.5922-2.8081-2.9055-3.8583-4.3555"/>
<path d="m406.42,413.26c0.66553,4.9422-1.4129,9.7995-3.5228,12.034-1.3217,1.3994-4.2005,4.0736-7.7748,4.1205-5.9088,0.078-7.6726-3.9863-8.0306-4.9757"/>
<path d="m399.4,410.7c1.0966,1.0829,2.07,2.4049,2.8934,3.965,1.4771,2.7988,1.022,7.4801-0.14834,9.6407-0.12856,0.2375-0.28789,0.4894-0.47474,0.7482"/>
<path d="m370.04,453.2c3.5136,3.6874,8.8275,7.692,16.99,11.052,11.161,4.5953,28.3,5.6539,40.118,6.1205,15.715,0.6204,30.193,1.266,39.01,10.998"/>
<path d="m493.29,475.01c2.5982,2.556,5.247,5.2954,6.3658,8.798"/>
<path d="m488.18,501.7c-0.33966,0.3625-0.70069,0.7066-1.0831,1.0297-3.2462,2.7411-6.4531,3.5763-10.418,3.1874-3.007-0.2947-5.9077-2.5478-6.6852-4.0252"/>
<path d="m461.63,497.35c0.14498,0.1981,0.29742,0.3906,0.45726,0.5766,1.8876,2.1983,4.8674,3.576,7.9777,3.8332"/>
<path d="m512.05,501.64c-2.0216,3.1098-6.842,7.7745-11.895,9.6405-5.0537-1.866-9.874-6.5307-11.896-9.6405-0.16344-0.2518-0.3208-0.4938-0.4719-0.7266"/>
<path d="m512.13,501.62c0.36074,0.3917,0.74626,0.7624,1.1562,1.1088,3.2462,2.7411,6.4531,3.5763,10.418,3.1874,3.007-0.2947,5.395-2.3036,6.3596-4.0429,0,0,0.54113-0.5816,0.69252-1.1366"/>
<path d="m529.75,500.99-1.1605,1.8666-1.7655,1.4633-2.6739,1.1098-2.4214,0.1011"/>
<path d="m536.03,483.22c1.4306,1.0969,2.8354,2.7594,3.5985,4.5342,0.49076,1.1411,0.71813,2.3956,0.78792,3.6976,0.13215,2.4682-0.73502,4.7413-2.2228,6.4739-1.9974,2.326-5.113,3.7336-8.4288,3.8664-0.24679,0.01-0.49188,0.011-0.73445,0"/>
<path d="m529.32,501.35,0,0c-3.1706,0.1271-6.0037-1.2312-8.0925-3.3754"/>
<path d="m620.72,391.93c-2.4738-2.2799-5.0362-5.4397-7.5069-10.077-1.3105-2.4603-2.1246-4.7433-2.6725-6.9925-0.42292-1.7354-0.71587-3.4505-0.77917-5.211-0.10784-3.0002,0.21498-6.1322,0.96378-9.7212,1.2362-5.9251,3.4426-10.509,6.3754-14.15,0.99982-1.2418,2.1544-2.7915,3.2507-3.4879"/>
<path d="m618.2,223.83c3.9652,0.3109,7.6386,4.5792,7.5902,8.7639-0.0703,6.0782-2.1082,8.5894-6.8906,14.545-4.1205,5.1313-16.482,14.15-16.171,22.78,0.0551,1.5316,0.88023,3.1154,1.8021,4.3895"/>
<path d="m599.59,279.72c0.87826,0.8672,1.9405,1.5839,3.2068,2.1558,2.2613,1.0212,4.8012,0.4952,6.6543-0.4432"/>
<path d="m576.37,213.9c1.3276,0.9044,2.6814,2.2909,3.4151,4.0614,2.9082,7.0204-3.421,12.284-9.2522,16.249-4.181,2.8429-8.6941,4.3614-12.968,5.1288"/>
<path d="m569.69,227.43c-1.4138-0.014-3.0945-0.417-4.9203-2.3393-0.42041-0.4426-0.91259-1.0276-1.1053-1.553"/>
<path d="m540.45,231.2c-0.73839-0.3703-1.5314-0.9092-2.0626-1.5038-1.3864-1.5505-2.3103-3.6498-1.2424-6.8532,0.98742-2.9626,5.7462-11.274,5.9794-17.027,0.35626-8.7895-3.0242-13.977-8.312-16"/>
<path stroke-linecap="round" d="m542.68,203.85-0.20644,3.3051-0.89485,3.374-1.7213,4.6129-1.3082,2.9606-1.3769,2.9609-0.68858,2.0658-0.2755,1.5148,0.20688,1.4458"/>
<path stroke-linecap="round" d="m595.81,423.4c0.27211,0.6607,0.93284,1.3059,0.93284,1.3059,1.0108,1.6873,4.9402,4.6547,8.5146,4.7016,5.9088,0.078,7.3119-4.0572,7.4638-4.9757,0.746-4.5088-0.79607-5.7425-3.11-7.0127,0,0-1.3617-0.7055-2.9944-0.4334"/>
<path d="m370.23,403.67c-2.086,0.5341-4.0454,0.547-5.7574,0.033-4.4228-1.3265-8.0067-5.5636-6.1795-10.829"/>
<path d="m379.21,343.15c0.44292,0.4446,0.58559,1.1076,0.65284,1.6701,0.68324,5.7318-4.3395,7.4016-7.9158,6.4685-1.7714-0.462-3.8824-2.1068-4.7106-3.56-0.59713-1.0473-0.95902-2.2987-0.9621-3.5988"/>
<path d="m400.74,307.15c0.89571,0.8234,1.517,1.7382,1.9315,2.7566"/>
<path d="m400.9,296.6c0.82957,0.5771,1.425,1.3116,1.8249,2.0424"/>
<path stroke-linecap="round" d="m402.91,303.94c-0.48316,1.1906-1.3172,2.4752-2.4304,3.7178-2.9978,3.3459-8.0821,6.1894-13.716,6.26-3.0563,0.038-6.2294-0.6007-9.4218-2.7354-3.4131-2.2825-5.6381-5.5281-6.3768-8.7158"/>
<path d="m399.11,280.13c1.7306,1.4711,3.0594,3.3467,3.6982,5.2945"/>
<path stroke-linecap="round" d="m402.86,292.56c-1.3842,4.5739-5.5104,10.231-13.473,12.248-3.8037,0.9638-8.702-0.2412-10.374-1.6639"/>
<path d="m375.06,291.49c0.41674,4.1205,3.1742,7.2089,8.4012,7.3077,7.3502,0.1386,11.818-10.574,5.2869-18.094"/>
<path stroke-linecap="round" d="m358.52,327.39c1.0738,1.3471,2.3373,2.561,3.6298,3.6365,2.6212,2.1814,5.7118,4.1014,9.2721,5.1528"/>
<path stroke-linecap="round" d="m379.67,336.95c6.569-0.789,10.272-5.6837,9.538-11.41-0.55941-4.3633-4.5629-7.7182-7.2849-7.9123"/>
<path d="m390.39,268.92c2.8494-0.1053,4.4703,2.4831,4.4444,4.6645"/>
<path stroke-linecap="round" d="m389.72,229.81c1.5609,4.0831,4.6034,7.2753,7.8606,9.099"/>
<path stroke-linecap="round" d="m622.86,287.29c2.6862,3.6785,0.92722,10.932-6.379,11.07-2.854,0.054-5.4291-1.5283-6.9385-3.9244"/>
<path d="m596.4,239.25,0,24.686"/>
<path stroke-linecap="round" d="m380.87,291.14c2.2548,1.6324,5.1502-1.1239,4.0296-4.0493-0.75614-1.9752-3.5631-4.1071-7.4504-1.4636-4.2933,2.9192-3.11,12.129,5.1313,12.284,7.3499,0.1387,11.818-10.574,5.2869-18.093-6.2828-7.2342-17.727-5.5419-25.19,0.3959-3.1762,2.5264-9.1745,9.1452-11.04,18.164-0.5811,2.8081-0.9562,5.1122-0.91203,7.9301,0.0292,1.8567,0.20058,3.9365,0.7564,6.5307,1.1231,5.2403,2.9679,9.0797,4.8055,11.745,0.70406,1.0218,1.347,1.871,2.0365,2.5605,1.279,1.2789,1.662,1.9565,2.9541,3.032,4.2235,3.5147,9.665,6.2699,16.327,5.9865,7.3082-0.3112,11.507-5.4422,10.729-11.507-0.75359-5.879-6.6903-8.8052-10.574-6.0641-2.6435,1.8659-3.5839,7.6445,1.0884,9.0185,2.6435,0.7776,4.9757-2.5655,3.1098-4.5091"/>
<path stroke-linecap="round" d="m584.4,210.68c4.2179-2.2909,7.4692-1.8668,9.874,1.47,2.6134,3.6262,2.9862,8.4525,2.4102,11.28-0.85519,4.1985-2.0686,5.942-5.4074,8.9876"/>
<path stroke-linecap="round" d="m594.58,212.55c4.8204-3.1874,10.041-1.8336,12.906,2.4102,2.0992,3.1097,2.6358,5.7121,2.4878,9.5627-0.25353,6.6003-4.3839,11.832-8.9409,14.383"/>
<path d="m617.28,223.67c3.9649,0.3109,7.1526,3.9007,7.1526,8.0857,0,5.9865-1.6707,8.5836-6.4531,14.539-4.1205,5.1313-16.482,14.15-16.171,22.78,0.11774,3.2634,2.8686,6.3383,5.2419,6.5094"/>
<path stroke-linecap="round" d="m617.75,291.14c-2.2546,1.6324-5.1313-1.0035-3.8873-3.8026,0.85884-1.9326,3.421-4.3538,7.3082-1.7103,4.2933,2.9192,3.11,12.129-5.1313,12.284-7.3502,0.1387-12.317-10.297-5.2869-18.093,6.4165-7.1158,18.315-5.7234,25.778,0.2141,3.1761,2.5267,9.5659,9.466,10.936,18.573,1.658,11.02,1.4455,24.575-9.9365,32.922-4.5767,3.356-10.918,4.8817-16.516,4.6364-7.308-0.3205-11.506-5.4423-10.729-11.507,0.75386-5.8791,6.4153-8.3675,10.574-6.0642,4.3192,2.3924,3.565,8.4659-1.0884,9.0186-2.7361,0.325-4.976-2.5655-3.11-4.5092"/>
<path d="m613.86,287.34c1.212-5.4543,5.8846-5.9623,9.6576-5.9068,10.296,0.1508,17.416,12.364,17.535,24.178,0.15083,14.923-6.334,23.711-17.241,24.178-2.8221,0.1211-7.6839-1.2213-7.7675-4.6648"/>
<path stroke-linecap="square" d="m620.2,284.9c10.858,2.413,14.67,12.196,14.67,21.532,0,7.6158-0.75416,18.022-15.575,21.682"/>
<path d="m638.11,389.58c0.0677-0.3647,0.10356-0.7406,0.10356-1.125,0-3.3706-2.7327-6.103-6.1033-6.103-3.3709,0-6.1033,2.7324-6.1033,6.103,0,1.9394,0.90469,3.6675,2.3151,4.7854"/>
<path stroke-linecap="round" d="m616.33,380.33c2.0432,3.0321,4.5165,6.4035,9.7401,9.2375"/>
<path stroke-linecap="round" d="m624.11,406.05c-5.1195-3.3587-14.838-7.7615-23.624-3.4277-3.2589,1.6077-5.4423,3.5963-6.6751,6.8397-2.2197,5.8393,0.26143,12.275,2.7878,14.949,1.3217,1.3994,4.2004,4.0735,7.7748,4.1208,5.9086,0.078,7.3133-4.0572,7.4636-4.976,0.69983-4.2759-1.788-5.9865-3.1098-6.453-1.0139-0.3577-4.3122-0.2662-5.012,2.0654-0.233,0.7773-0.27494,2.133,0.34725,3.1438"/>
<path stroke-linecap="round" d="m531.99,488.16c1.6327,3.343-0.22422,5.0235-2.4878,5.2866-3.343,0.3887-5.1313-2.2545-5.3646-4.6647-0.37819-3.9081,2.9159-7.4492,6.842-7.3859,3.5352,0.057,6.4145,2.3376,7.7644,5.4766,0.49047,1.1411,0.71783,2.3952,0.78763,3.6976,0.13259,2.4678-0.73473,4.7413-2.2228,6.4736-1.9974,2.326-5.1128,3.7336-8.4285,3.8664-6.6002,0.2648-11.74-5.9085-11.74-12.206,0-12.051,17.872-18.623,24.957-20.314,8.7076-2.0775,14.006-2.8553,27.989-3.6323,5.5979-0.3109,9.6973-0.1531,15.861-0.7921,5.5152-0.5715,8.3967-0.8405,14.072-2.1623,7.0828-1.6493,13.684-4.5871,19.592-9.9517,4.5502-4.1309,7.1529-7.0749,9.2592-12.75,1.8178-4.8975,2.653-14.596-1.9509-21.769-4.0688-6.3399-9.7184-9.6331-16.171-10.566-5.8292-0.8428-10.942,1.6726-13.995,7.4565-1.4771,2.7988-1.022,7.4799,0.14836,9.6404,1.0108,1.866,3.8968,4.6178,7.4712,4.6651,5.9086,0.078,7.3133-4.0572,7.4636-4.976,0.69983-4.2759-1.788-5.9865-3.1098-6.453-1.0139-0.3577-4.3122-0.2662-5.012,2.0654-0.233,0.7773-0.27494,2.133,0.34725,3.1438"/>
<path stroke-linecap="round" d="m526.9,469.02c-7.5764,3.3588-13.13,5.8745-17.839,13.31-1.4774,2.3325-1.866,5.6756-1.866,7.6192,0,4.1982,1.7103,8.9409,5.2093,11.895,3.2462,2.7414,6.4528,3.5763,10.418,3.1877,3.007-0.2949,5.8312-2.4878,6.2977-4.0428"/>
<path d="m601.73,325.2c-3.5448,1.1825-6.0644,6.5862-6.0644,11.74,0,5.9085,2.8767,9.5627,6.2198,11.662"/>
<path stroke-linecap="round" d="m605.62,344.41c-6.3754,7.9301-9.7578,12.637-9.9517,22.08-0.1819,8.8627,2.6435,14.927,7.9304,21.303"/>
<path d="m571.64,212.58c0.16411-0.2443,0.34557-0.513,0.54731-0.8096,2.6435-3.8873,7.3116-4.9116,10.729-2.3323,4.1206,3.1098,5.1612,8.4023,4.0429,13.994-0.69985,3.4987-3.0732,6.4128-6.325,8.5211"/>
<path stroke-linecap="round" d="m414.22,210.68c-4.0432-1.8657-7.371-1.5066-9.874,1.47-2.8768,3.421-2.9865,8.4525-2.4102,11.28,0.8552,4.1985,2.0683,5.942,5.4074,8.9876"/>
<path d="m404.03,212.55c-4.8201-3.1874-10.041-1.8336-12.906,2.4102-2.0992,3.1097-2.6358,5.7121-2.4881,9.5627,0.25382,6.6003,4.3842,11.832,8.9412,14.383"/>
<path d="m390.12,216.81c-5.2278,0.6376-9.4004,5.0688-9.4004,10.433,0,6.9196,1.7033,9.7184,5.5906,15.005,3.8965,5.299,16.638,15.005,16.638,26.045,0,6.6864-1.866,10.962-6.6863,13.139-3.1083,1.4036-6.7423-0.1157-8.3967-1.6107-4.0432-3.6543-2.4265-10.062,1.788-10.828,5.1313-0.9332,6.0957,7.145,1.0884,6.6083"/>
<path d="m381.33,223.67c-3.9652,0.3109-7.8665,3.7229-7.8665,7.9079,0,5.9865,2.3846,8.7614,7.1667,14.716,4.1208,5.1313,15.762,13.972,15.451,22.602-0.11729,3.2634-2.3111,7.2531-4.488,6.7865"/>
<path stroke-linecap="round" d="m372,343.94c1.866-4.5092,6.6864-2.4879,6.9829,0,0.68324,5.7321-4.3395,7.4638-7.9158,6.5307-1.7714-0.4621-3.0676-1.5778-3.8957-3.0313-0.93454-1.64-1.2171-3.7797-0.61037-5.8235,0.27521-0.9269,0.66271-1.7073,1.3257-2.581,0.6658-0.878,1.3541-1.4791,1.9991-1.8905,1.3755-0.8779,2.8742-0.9646,5.2242-0.9646,8.7076,0,16.327,10.289,18.886,20.977,0.84278,3.52,2.0013,11.371,0.39592,18.815-1.7106,7.9301-5.1384,13.42-9.1598,17.585-2.1769,2.2546-5.146,4.2618-8.9896,6.4351-1.1856,0.6705-4.3198,2.0609-6.4967,2.6831-2.236,0.6388-4.3369,0.688-6.1582,0.1418-4.4225-1.3268-7.2612-5.4591-4.9596-10.829,1.7916-4.1808,8.3967-6.2198,11.351-1.0885,0.25071,0.4353,0.64073,1.3836,0.62836,2.4107-0.0158,1.3682-0.58419,3.0172-1.5615,3.6391-2.2459,1.4292-5.8382,1.0251-5.6711-2.9401"/>
<path d="m365.24,397.49c1.6327,0.6292,2.5258,0.544,4.5573-0.3579,0.8335-0.3703,1.7883-0.9435,2.9066-1.5784,3.9804-2.2607,8.7076-5.8238,13.139-14.143,1.3105-2.4602,2.1246-4.7432,2.6725-6.9922,0.42293-1.7354,0.71588-3.4505,0.77919-5.2112,0.10805-3-0.215-6.1323-0.96378-9.721-1.2362-5.9254-2.7251-9.1432-6.3754-14.15-1.7951-2.4622-3.343-3.9649-6.6864-4.0425"/>
<path d="m360.51,389.58c-0.0678-0.3647-0.10332-0.7406-0.10332-1.125,0-3.3706,2.7324-6.103,6.1033-6.103,3.3706,0,6.103,2.7324,6.103,6.103,0,1.9394-0.90442,3.6675-2.3148,4.7854"/>
<path d="m362.88,383.51c0.45954-2.7701,2.8132-4.8795,5.6477-4.8795,3.1641,0,5.729,2.628,5.729,5.87,0,1.5877-0.61514,3.0281-1.6147,4.0848"/>
<path d="m374.02,383.2c5.209-3.7319,9.672-10.856,9.7184-19.274,0.0358-6.4739-2.5658-13.061-5.5976-15.627"/>
<path stroke-linecap="round" d="m382.29,380.33c-2.0432,3.0321-4.5165,6.4035-9.7404,9.2375"/>
<path d="m397.81,402.63c-1.4489-3.4089-4.3288-4.9853-9.0189-5.4856-4.6625-0.4978-8.6986,0.7837-12.828,3.0048-8.0598,4.3346-12.554,8.9946-15.55,17.641-0.76034,2.1952-1.3912,5.5056-1.3034,9.0211,0.14025,5.6041,1.5629,11.73,3.0917,14.692,1.3336,2.5835,4.8204,13.994,23.946,21.868,11.161,4.5949,28.3,5.6539,40.118,6.1201,16.256,0.6419,31.255,1.2441,39.962,11.973"/>
<path stroke-linecap="round" d="m374.5,406.05c5.1198-3.3587,14.838-7.7615,23.624-3.4277,3.2589,1.6077,5.4423,3.5963,6.6751,6.8397,2.2197,5.8393-0.2617,12.275-2.7878,14.949-1.3217,1.3994-4.2004,4.0735-7.7748,4.1208-5.9088,0.078-7.3133-4.0572-7.4636-4.976-0.69983-4.2759,1.788-5.9865,3.1098-6.453,1.0139-0.3577,4.3122-0.2662,5.0117,2.0654,0.23327,0.7773,0.27491,2.133-0.34698,3.1438"/>
<path d="m394.86,421.45c0.46656-1.7104,0.22651-3.5063-1.3215-5.209-1.555-1.7104-5.6756-3.3431-9.1745-1.3994-1.1703,0.6503-2.6381,1.5066-3.9649,3.2653-0.50202,0.6653-1.3504,1.7391-1.7883,2.4879-1.0589,1.8108-1.494,3.2927-1.7033,3.8875-3.845,10.928,2.413,22.532,10.256,27.522,6.8416,4.3538,13.839,5.5979,22.469,6.3751,3.9936,0.3599,6.2566,0.4368,10.263,0.6222,3.2237,0.1493,6.0082,0.096,8.63,0.064,2.1575-0.027,4.2049-0.016,6.2969-0.064,3.4156-0.079,6.9494-0.1589,11.274,0.1556,4.5497,0.3309,7.9729,0.4477,11.818,1.0884,2.5115,0.4187,5.4558,0.8226,8.5422,1.5151,0.92609,0.2075,1.8651,0.3773,2.8089,0.6618,0.63427,0.1912,1.2604,0.3853,1.8814,0.5746,5.5714,1.6994,10.985,3.7697,15.257,6.5209,1.3198,0.8501,2.8402,1.6707,3.8771,2.7079,0.7958,0.7956,1.472,1.2565,2.1234,1.8978,2.9902,2.9415,6.0476,6.1261,6.7626,10.438,0.13191,0.7955,0.1317,1.6293,0.1317,2.507,0,2.7988-2.2774,6.6084-8.4195,7.8524"/>
<path d="m466.62,488.16c-1.6327,3.343,0.22422,5.0235,2.4878,5.2866,3.343,0.3887,5.1313-2.2545,5.3646-4.6647,0.37821-3.9081-2.9159-7.4492-6.842-7.3859-3.5352,0.057-6.4145,2.3376-7.7644,5.4766-0.49075,1.1411-0.71784,2.3952-0.78791,3.6976-0.13237,2.4678,0.73501,4.7413,2.2228,6.4736,1.9974,2.326,5.113,3.7336,8.4288,3.8664,6.6002,0.2648,11.74-5.9085,11.74-12.206,0-12.051-17.873-18.623-24.957-20.314-8.7079-2.0775-14.006-2.8553-27.989-3.6323-5.5979-0.3109-9.6973-0.1531-15.861-0.7921-5.5152-0.5715-8.3967-0.8405-14.073-2.1623-7.0826-1.6493-13.684-4.5871-19.592-9.9517-4.55-4.1309-7.1526-7.0749-9.2592-12.75-1.8176-4.8975-2.6527-14.596,1.951-21.769,4.069-6.3399,9.7184-9.6331,16.172-10.566,5.8292-0.8428,10.942,1.6726,13.995,7.4565,1.4771,2.7988,1.0218,7.4799-0.14835,9.6404-1.0108,1.866-3.8968,4.6178-7.4712,4.6651-5.9088,0.078-7.3133-4.0572-7.4636-4.976-0.69983-4.2759,1.788-5.9865,3.1098-6.453,1.0139-0.3577,4.3122-0.2662,5.0117,2.0654,0.23327,0.7773,0.27491,2.133-0.34698,3.1438"/>
<path stroke-linecap="round" d="m426.97,212.58c-0.16411-0.2443-0.34583-0.513-0.54732-0.8096-2.6435-3.8873-7.3116-4.9116-10.729-2.3323-4.1206,3.1098-5.1612,8.4023-4.0429,13.994,0.69955,3.4987,3.0732,6.4128,6.3247,8.5211"/>
<path d="m573.04,224.37c-6.2975,6.8417-12.595,9.0262-22.003,9.3296-2.9376,0.095-8.5523-0.9329-11.818-3.2581-2.0976-1.4936-4.4315-4.0502-2.9544-8.4817,0.98746-2.9622,5.7462-11.273,5.9795-17.027,0.35626-8.7892-3.025-13.606-8.312-15.472-9.7739-3.4497-20.267,6.2113-26.589,8.319-3.3053,1.1017-4.9903,1.2319-8.0081,1.2429-3.0177-0.011-4.7627-0.1411-8.068-1.2429-6.3228-2.1077-16.816-11.769-26.59-8.319-5.2867,1.8659-8.668,6.6824-8.3117,15.472,0.2333,5.7532,4.9918,14.064,5.9792,17.027,1.4774,4.4315-0.85658,6.9881-2.9541,8.4817-3.2656,2.3252-8.8801,3.3529-11.818,3.2581-9.4072-0.3034-15.705-2.4879-22.003-9.3296"/>
<path stroke-linecap="round" d="m464.58,466.27c1.246,0.4868,0.30336-0.2952,8.1947,3.2032,7.5764,3.3585,12.954,6.2999,17.663,13.736,1.4774,2.3323,1.866,5.6756,1.866,7.6192,0,1.2528-0.15217,2.554-0.45867,3.8417"/>
<path d="m465.09,500.06c1.5362,0.7682,3.2792,1.2167,5.081,1.2891,6.6002,0.2648,11.74-5.9089,11.74-12.206,0-4.3662-2.377-8.0441-5.7062-11"/>
<path stroke-linecap="round" d="m466.52,488.15c-1.5938,3.5532,0.67678,5.4749,2.9401,5.738,3.3433,0.3889,5.2248-2.2546,5.458-4.6647,0.25355-2.6213-1.145-5.171-3.278-6.4852"/>
<path d="m609.53,216.87c5.0182,0,9.394,5.5855,9.394,11.317,0,6.605-3.5127,10.648-6.0869,13.705-2.0722,2.4608-4.3158,4.6625-6.9824,7.3482"/>
<path stroke-linecap="round" d="m603.58,211.58c1.7064,0.7901,3.2037,2.1276,4.3456,3.8188,2.099,3.1101,2.6331,5.7121,2.4879,9.5631-0.24905,6.6-4.998,11.17-9.2462,13.959"/>
<path stroke-linecap="round" d="m593.71,211.58c0.34695,0.2961,0.68042,0.6338,1.0004,1.0142,2.8768,3.421,3.0993,8.4775,2.4102,11.281-1.0353,4.2128-2.4276,6.0287-5.8464,8.5483"/>
<path stroke-linecap="round" d="m583.36,209.85c4.1206,3.1098,5.3458,8.4887,3.9807,14.026-0.9756,3.9567-3.4635,6.3281-6.5656,8.2174"/>
<path stroke-linecap="round" d="m598.16,296.28c0.49301,1.4472,1.3065,1.9486,2.3317,3.0225,2.229,2.335,5.4963,4.3434,9.623,5.5039,3.8138,1.0727,7.2494,0.2662,9.8706-1.3671"/>
<path stroke-linecap="round" d="m365.29,387.87c1.9372-0.035,3.869,1.273,5.1325,3.4677,0.25072,0.4356,0.64103,1.3836,0.62835,2.4107-0.0158,1.3682-0.6154,2.8309-1.5924,3.4525-2.2456,1.4292-6.2327,0.8149-6.0659-3.15"/>
<path d="m377.33,336.4c7.7033,1.4379,15.119,10.729,17.546,20.865,0.84279,3.5201,2.0016,11.371,0.39592,18.815-1.7103,7.9301-5.1381,13.42-9.1598,17.585-0.95338,0.9875-2.0587,1.9276-3.3231,2.8548l-1.6428,1.1135"/>
<path d="m368.76,378.67c3.1641,0,5.9336,3.0316,5.9336,6.2733,0,1.5876-0.61515,3.0281-1.6147,4.0848"/>
<path d="m366.62,382.35c3.2966,0,6.4325,3.1758,6.4325,6.5464,0,1.9397-0.90469,3.6678-2.3151,4.7855"/>
<path stroke-linecap="round" d="m396.84,349.2c3.0273,4.0629,5.0252,7.5612,5.9544,12.07"/>
<path stroke-linecap="round" d="m402.69,374.53c-0.4995,2.2459-1.2593,4.3246-2.2639,6.3222-1.2731,2.5304-3.4919,5.3478-5.5523,7.2525"/>
<path d="m397.32,325.52c2.9187,2.2816,4.678,4.6412,5.5011,7.4687"/>
<path stroke-linecap="round" d="m402.9,317.92c-0.76653,2.6592-2.5059,4.6738-5.2661,7.1926"/>
<path stroke-linecap="round" d="m383.33,298.27,3.3686-0.8865,1.9943-1.5071,1.2854-1.8176,1.1081-2.8368,0.4432-2.3049"/>
<path d="m376.51,286.41c-1.0634,0.26582-2.4109,0.65948-3.8239,1.3328-1.8928,0.90191-3.9033,2.3056-5.506,4.5758-1.8561,2.6296-2.9384,6.2859-3.6084,9.4848-0.29322,1.3997-0.64328,5.832,0.25214,10.41,0.66128,3.3801,2.0573,6.527,3.6016,8.8061,0.55379,0.8172,1.0561,1.5226,1.6206,2.0874,2.0216,2.0213,3.8875,3.2654,6.9973,2.6432"/>
<path stroke-linecap="round" d="m395.38,271.58c-0.54618,2.0066-1.6248,4.4933-4.7737,4.2213"/>
<path d="m383.87,285.2c-3.0236-2.9558-9.4292-3.7263-15.798,0.3022-0.81858,0.5181-1.6372,1.183-2.4479,1.8587-0.87628,0.7299-1.5753,1.5693-2.2506,2.4819-0.73419,0.9925-1.6361,2.6801-2.1811,3.8009-0.75022,1.5438-1.0609,2.5579-1.4742,4.1408-1.163,4.4554-1.158,8.5959-1.0209,9.7761,0.17626,1.5131,0.32023,2.9035,0.56757,4.1822,0.84505,4.3715,2.1381,7.439,3.4753,9.6565,1.4067,2.3325,4.9054,7.6898,12.058,8.3967,2.8112,0.278,7.6121-1.0106,7.7675-4.6648"/>
<path stroke-linecap="round" d="m568.38,220.42c0.47838-2.5813,3.5892-3.0796,4.7582-1.555,1.8001,2.348,0.60952,6.3818-3.0515,7.526-1.2441,0.3889-4.1205,0.2333-5.9865-2.1769-1.5125-1.9537-1.3969-4.3735-0.83208-6.2969,0.36553-1.2446,1.3642-2.3294,2.6981-3.3435,4.2511-3.2333,11.118-2.4879,13.372,2.9541,2.9086,7.0203-3.4207,12.284-9.2519,16.249-7.3409,4.9918-15.705,5.8996-22.003,5.8312-14.306-0.1556-25.19-6.9973-32.265-10.884-1.6482-0.9056-3.3456-0.7207-4.1982,0.3109-0.96295,1.1644-0.94749,3.0428,0.38861,4.2759"/>
<path stroke-linecap="round" d="m571.26,218c1.5162,0.07,1.922,0.6616,2.3868,1.2674,1.7998,2.348,0.48487,6.3821-3.1761,7.526"/>
<path stroke-linecap="round" d="m598.34,307.33c-5.4504,5.9325-0.43701,16.116,3.6365,18.418,1.4101,1.0966,2.0126,0.5153,3.1404,1.1749"/>
<path d="m598.63,295.99c-1.7883,1.2441-2.4184,2.6415-2.4879,5.0697-0.0583,2.032,0.29603,4.2883,2.2034,6.2727,2.9713,3.0917,8.7859,5.7836,14.42,5.8542,3.0563,0.038,6.2294-0.6007,9.4218-2.7354,3.4131-2.2825,5.2093-5.3646,5.9868-8.3967"/>
<path d="m595.58,398.6c0,0.018-0.009,2.3885-0.21183,3.8873-0.59151,4.3631-1.2857,6.8737-3.2654,10.807-1.9304,3.8354-3.4728,5.8491-6.5307,8.8632-3.0853,3.0411-5.2236,4.4343-9.0965,6.3754-3.7716,1.8902-6.1477,2.4912-10.263,3.4207-4.1121,0.9286-6.5175,1.1312-10.729,1.3217-3.8619,0.1747-6.0529,0.011-9.9095-0.2546-4.1273-0.2857-6.4167-0.8606-10.538-1.2224-3.4038-0.2992-5.3263-0.5744-8.7431-0.5659-3.5124,0.01-5.525,0.031-8.9834,0.6435-3.2232,0.5707-5.0517,1.0254-8.0857,2.2546-4.1979,1.7008-8.9409,4.6648-9.9517,5.9865-1.0108-1.3217-5.7541-4.286-9.9517-5.9865-3.034-1.2292-4.8626-1.6839-8.0857-2.2546-3.4584-0.6123-5.471-0.6345-8.9834-0.6435-3.417-0.01-5.3396,0.2667-8.7431,0.5659-4.1217,0.3618-6.4108,0.9367-10.538,1.2224-3.8568,0.2667-6.0475,0.4294-9.9095,0.2546-4.2117-0.1904-6.6171-0.3931-10.729-1.3217-4.1149-0.9295-6.4911-1.5305-10.263-3.4207-3.8729-1.9411-6.0112-3.3343-9.0965-6.3754-3.058-3.0141-4.6006-5.0278-6.5307-8.8632-1.9796-3.9329-2.6739-6.4435-3.2656-10.807-0.20329-1.4988-0.21162-3.8687-0.21162-3.8873v-0.0003-159.02h192.55v159.02l0.0668,0.0003z"/>
</g>
<g fill="#c7b37f" stroke="#c7b37f">
<path stroke-width="0.51271021" d="m387.41,421.32c0-2.1575,1.7492-3.9067,3.907-3.9067,2.1575,0,3.9067,1.7492,3.9067,3.9067,0,2.1578-1.7492,3.9067-3.9067,3.9067-2.1578,0-3.907-1.7489-3.907-3.9067z"/>
<path stroke-width="0.51271021" d="m363.42,393.71c0-1.9321,1.2356-3.4986,2.76-3.4986s2.7602,1.5665,2.7602,3.4986c0,1.9324-1.2359,3.4987-2.7602,3.4987s-2.76-1.5663-2.76-3.4987z"/>
<path stroke="none" d="m377.05,324.36c0-1.5871,1.1931-2.8734,2.6649-2.8734,1.4717,0,2.6648,1.2863,2.6648,2.8734,0,1.5868-1.1931,2.8733-2.6648,2.8733s-2.6649-1.2865-2.6649-2.8733z"/>
<path stroke="none" d="m424.91,221.81c-0.16816-1.5919,0.78762-2.9969,2.135-3.1379,1.3473-0.1409,2.5762,1.035,2.7445,2.6271,0.16839,1.5919-0.78765,2.9967-2.1353,3.1379-1.3473,0.141-2.5759-1.0349-2.7442-2.6271z"/>
</g>
<g stroke="#c7b37f" stroke-width="0.987" stroke-linecap="round">
<path d="m373.92,340.54c-0.57379,0.2499-0.89064,0.4561-1.3218,0.9098-0.41197,0.4333-0.49752,0.5906-0.81633,1.2983-0.23329,0.5178-0.29463,1.118-0.38102,1.8581"/>
<path d="m378.77,386.4c0.54255-0.6579,0.87039-1.0119,1.3915-1.687,0.43363-0.5616,0.69168-0.8709,1.073-1.4694,0.34361-0.5392,0.49752-0.8676,0.80087-1.4307,0.42746-0.7938,0.64019-1.2567,1.0496-2.0601"/>
<path d="m381.11,401.53c-0.92495,0.4246-1.4723,0.6123-2.3713,1.0884-0.68354,0.3622-1.0547,0.5935-1.7106,1.0029-0.77441,0.484-1.2069,0.7666-1.9436,1.3063-0.76739,0.5622-1.1619,0.9297-1.9048,1.5237"/>
<path d="m396.56,347.25c-0.50033-0.5152-0.77189-0.8169-1.2829-1.3214-0.53437-0.5274-0.82507-0.8386-1.3994-1.3218-0.55717-0.4685-0.9109-0.6829-1.4928-1.1197"/>
<path stroke-linecap="butt" d="m397.17,326.47c-0.7429,0.3306-1.1326,0.5932-1.9048,0.8476-0.885,0.2915-1.4849,0.4431-2.3401,0.482"/>
<path d="m371,300.68c0.25468,0.9067,0.3104,1.4478,0.65314,2.3246,0.43082,1.102,0.79101,1.6817,1.4461,2.6668,0.68296,1.0266,1.1096,1.5939,1.9904,2.4569,0.77356,0.7576,1.2638,1.14,2.1693,1.7337,0.8597,0.5637,1.418,0.7587,2.3247,1.2438"/>
<path d="m378.04,301.95c0.75809,0.4061,1.1495,0.7119,1.9439,1.0417,0.71899,0.2986,1.1456,0.4247,1.9045,0.5986,1.0268,0.2355,1.6293,0.2946,2.6826,0.3188,1.1402,0.027,1.477,0,2.9156-0.2333"/>
<path d="m398.69,240.15c-1.2463-0.7277-2.0081-1.046-3.1956-1.866-1.2078-0.8341-1.8733-1.3453-2.9232-2.3713-0.75725-0.7395-1.1816-1.1707-1.8116-2.0213-0.56224-0.7595-0.77779-1.257-1.275-2.0604"/>
<path d="m401.2,224.72c0.39114,1.0459,0.50285,1.6839,1.0029,2.6823,0.67873,1.3552,1.2027,2.0671,2.2236,3.1877,1.4149,1.5525,2.6131,1.9917,4.2837,3.2653"/>
<path d="m410.98,224.61c0.38806,0.9398,0.50651,1.5181,0.99532,2.4099,0.43193,0.7885,0.72965,1.2083,1.2984,1.9048,0.72516,0.8886,1.1968,1.3521,2.0992,2.0604,1.049,0.8236,1.7925,1.0671,2.9386,1.7492"/>
</g>
<path fill="#703d29" stroke-width="0.27661592" d="m520.78,211.91c-0.0802-2.6489-2.6896-2.9243-3.6894-2.9243-2.8855,0-3.6661,1.7998-7.2657,3.7327-4.512,2.4231-6.4553,2.9615-10.466,2.9975-4.0102-0.036-6.0048-0.5744-10.517-2.9975-3.5994-1.9329-4.2052-3.6748-7.091-3.6748-1.5663,0-3.5895,1.353-3.5127,3.8327,0,0-0.0301,0.8031,0.0932,1.3465,0.0463,0.2046,0.29518,0.1407,0.3734,0.3199-0.0371-1.2024,0.20757-1.8251,0.80003-2.6327,0.76061-1.0378,2.0244-1.3133,2.5396-1.3133,2.8855,0,3.9537,1.8516,7.5533,3.7845,4.512,2.4231,6.4534,2.9615,10.464,2.9975,4.0102-0.036,6.0068-0.5744,10.519-2.9975,3.5997-1.9329,4.6341-3.9379,7.5198-3.9379,0.99981,0,1.7053,0.6472,2.0328,1.6665,0.20171,0.6269,0.088,1.0451,0.14026,1.2932,0.0254,0.1212,0.17379,0.1088,0.20643,0.2398,0.10018-0.4665,0.33345-0.6331,0.29998-1.7328z"/>
</g>
<g fill="#703d29">
<path d="m413.12,434.42c0.81016-0.8724,1.4225-0.5439,1.5728-0.9458,0.11098-0.2971-0.129-0.327-0.45898-0.4505-0.44038-0.1646-0.90694-0.2592-1.3473-0.4241-0.45614-0.1704-0.87036-0.4049-1.3265-0.5754-0.18887-0.071-0.62527-0.2935-0.74964,0.039-0.2285,0.6114,1.6017,0.5588,0.9877,2.2016-0.10467,0.2794-0.36469,0.8794-1.2744,1.8738l-4.1411,4.5072c-0.0929,0.1047-0.24737,0.3259-0.34162,0.2904-0.0945-0.035-0.0817-0.3092-0.083-0.4494l0.0592-6.3917c0.005-1.2128,0.10807-2.1107,0.30421-2.635,0.27435-0.7339,1.12-0.1191,1.2964-0.5909,0.11121-0.2969,0.0259-0.309-0.47725-0.4973-0.25185-0.094-0.73389-0.1947-1.7404-0.5709-0.53495-0.2002-1.0434-0.47-1.5626-0.6638-0.23581-0.088-0.67113-0.4103-0.82787,0.01-0.0459,0.1224,0.11931,0.3036,0.16006,0.3388,0.57939,0.4159,0.7277,0.6902,0.74035,1.4719l0.11346,11.635c0.009,0.8397,0.10063,1.0732,0.25803,1.132,0.17312,0.065,0.29097-0.011,0.63371-0.4004l8.205-8.9035z"/>
<path d="m417.95,436.22c0.53324-1.6904,1.5322-0.6712,1.723-1.2762,0.0673-0.2136-0.00098-0.2744-0.48203-0.4258-0.91259-0.2878-1.5117-0.3984-2.0883-0.5802-0.56056-0.1767-1.1625-0.4449-1.7872-0.6416-0.14408-0.046-0.52764-0.2254-0.62303,0.077-0.19652,0.6228,1.7703,0.6951,1.2598,2.3142l-2.693,8.5411c-0.53298,1.6904-1.5401,0.8642-1.7365,1.4869-0.0282,0.089-0.0355,0.2238,0.10897,0.2693,0.4162,0.1313,1.1273,0.2772,1.8159,0.4941,1.2491,0.394,1.8192,0.652,2.4119,0.8389,0.36807,0.1161,0.53495,0.09,0.59657-0.1054,0.17942-0.5695-1.8721-0.3165-1.1821-2.5053l2.6761-8.4875z"/>
<path d="m423.73,437.93c0.31798-1.0733,0.81689-0.9256,1.4126-0.7491,1.6262,0.4817,2.1355,2.0725,1.6164,3.8256-0.31264,1.0555-0.70604,2.0289-3.1534,1.3037-0.48288-0.1429-1.0786-0.3194-0.94607-0.7665l1.0704-3.6137zm-4.4337,7.696c-0.66777,2.254-1.797,1.2775-1.9664,1.8499-0.10604,0.3577,0.2479,0.4044,0.42491,0.4567,0.80507,0.2383,1.6313,0.4055,2.5005,0.663,0.67619,0.2001,1.0898,0.4007,1.3637,0.4817,0.37003,0.1095,0.53072,0.04,0.57856-0.1206,0.19067-0.6439-1.6206-0.3827-1.0536-2.2968l0.91681-3.0948c0.1855-0.6261,0.12584-0.7801,0.97927-0.5271,0.80507,0.2383,1.0471,0.4851,1.1841,1.382l0.51524,3.227c0.19157,1.1856,0.37313,2.4651,1.6451,2.8419,0.64384,0.1907,1.8232,0.1119,1.9875-0.4426,0.0423-0.143-0.0225-0.2789-0.16749-0.322-0.16096-0.048-0.35371,0.011-0.51467-0.036-0.12899-0.038-0.43478-0.129-0.49499-0.4578-0.49133-2.5973-1.0915-5.5968-1.0598-5.7043,0.0529-0.1787,0.56759-0.2014,1.1563-0.4747,0.59402-0.291,1.257-0.8144,1.5961-1.9594,0.24396-0.8228,0.66917-3.4406-2.8568-4.4849-1.0789-0.3197-2.1949-0.5724-3.2735-0.892-1.0142-0.3003-1.1219-0.4101-1.8626-0.6296-0.19292-0.057-0.38075-0.016-0.43365,0.1635-0.19068,0.6438,1.7604,0.502,1.1667,2.5053l-2.3314,7.8713z"/>
<path d="m432.46,449.48c-0.51835,2.1589-2.1541,0.8453-2.3241,1.5524-0.0959,0.3994,0.18595,0.4478,0.48007,0.5184,0.65312,0.1567,1.2092,0.2136,2.3032,0.4764,1.0938,0.2625,1.6152,0.4646,2.2684,0.6213,0.47357,0.1137,0.78705,0.2465,0.89147-0.1888,0.12224-0.508-2.0942-0.4838-1.5584-2.7153l1.9687-8.2002c0.20914-0.8707,0.39422-0.9222,1.0637-0.7615l1.3876,0.3332c1.8952,0.3782,0.88922,2.2667,1.5424,2.4234,0.42463,0.102,0.41478-0.6486,0.43448-0.8743l0.22129-1.7123c0.027-0.1851,0.088-0.4393-0.15668-0.4978-1.5184-0.3647-2.63-0.5549-5.0137-1.1273-2.384-0.5724-3.4604-0.9075-4.9788-1.2719-0.24482-0.059-0.30587,0.1949-0.36582,0.3725l-0.83602,2.332c-0.0896,0.2279-0.28309,0.6036,0.0597,0.686,0.73473,0.1763,0.8155-2.3178,2.6606-1.8749l1.3715,0.3292c0.66917,0.161,0.81073,0.2907,0.60164,1.1616l-2.021,8.4178z"/>
<path d="m452.3,444.42c0.64638-0.9996,1.3062-0.7823,1.3848-1.2044,0.0576-0.3118-0.1837-0.2997-0.53045-0.3639-0.46233-0.086-0.93819-0.098-1.4005-0.1837-0.47868-0.089-0.9275-0.2479-1.4062-0.3366-0.19811-0.037-0.66692-0.1803-0.73135,0.168-0.11908,0.6421,1.6743,0.2724,1.3547,1.9968-0.0543,0.2938-0.20643,0.9297-0.92948,2.0669l-3.2958,5.1578c-0.0732,0.119-0.18685,0.3638-0.2859,0.3452-0.099-0.018-0.13395-0.2904-0.15984-0.428l-1.0516-6.3047c-0.20553-1.1957-0.26-2.0979-0.15803-2.648,0.14295-0.7705,1.0825-0.3118,1.1743-0.8073,0.0576-0.3118-0.0282-0.3087-0.55632-0.4067-0.26424-0.049-0.75669-0.064-1.8133-0.26-0.56139-0.104-1.1093-0.2814-1.6541-0.3824-0.24764-0.046-0.73221-0.2876-0.81381,0.1524-0.0239,0.1285,0.17041,0.2783,0.21656,0.3059,0.64272,0.309,0.8366,0.5535,0.98461,1.3209l2.1322,11.439c0.15443,0.8256,0.28561,1.0397,0.4508,1.0704,0.18145,0.034,0.28448-0.061,0.55463-0.5045l6.5341-10.193z"/>
<path d="m453.23,454.93c0.009,0.4556-0.0324,0.6,0.36301,0.7795,0.92073,0.4001,1.6915,0.9832,2.7017,1.152,2.1693,0.363,3.9672-1.0198,4.3704-3.4302,0.39114-2.3371-0.56957-3.3113-2.1969-4.4726-2.0373-1.4571-2.9083-1.8488-2.702-3.0816,0.20622-1.2328,1.0685-1.8074,2.1617-1.6245,2.8486,0.4767,2.5242,3.941,2.9049,4.0046,0.36443,0.061,0.4511-0.1515,0.4857-0.5617l0.23048-2.4966c0.0378-0.4285,0.13372-0.6964-0.11481-0.7378-0.21521-0.036-0.67874,0.1891-0.89373,0.1531-0.49694-0.083-1.0724-0.9174-2.4305-1.1445-1.9377-0.3244-3.5214,0.9996-3.8754,3.1159-0.32332,1.9321,0.53382,2.8132,1.8409,3.7508,2.4479,1.7529,3.4511,2.1665,3.1894,3.7308-0.24651,1.472-1.3879,2.189-2.6798,1.9729-1.8381-0.3078-2.5847-2.1541-2.8191-4.0094-0.0261-0.2501-0.0315-0.4212-0.29659-0.4657-0.41422-0.069-0.33768,0.4922-0.33122,0.7581l0.0919,2.6069z"/>
<path d="m477.95,447.96c0.53833-1.062,1.2173-0.9148,1.2511-1.3426,0.0247-0.3163-0.21386-0.2791-0.56561-0.3067-0.46852-0.037-0.94325,0.0009-1.4121-0.036-0.48539-0.038-0.94802-0.1497-1.4337-0.188-0.20081-0.016-0.68184-0.1096-0.70969,0.2437-0.0511,0.6509,1.6937,0.096,1.5561,1.8443-0.0235,0.2977-0.10806,0.9461-0.70857,2.1527l-2.7383,5.4738c-0.0605,0.1263-0.1479,0.3813-0.24847,0.3734-0.10039-0.01-0.16343-0.2749-0.2035-0.4088l-1.7047-6.1604c-0.32924-1.1678-0.47808-2.059-0.43419-2.6171,0.0612-0.7811,1.044-0.4232,1.0834-0.9255,0.0247-0.316-0.0602-0.3039-0.59599-0.3461-0.2679-0.02-0.75895,0.016-1.8305-0.069-0.56899-0.045-1.1324-0.1641-1.6847-0.2073-0.25101-0.02-0.75838-0.2096-0.79354,0.2367-0.0113,0.1303,0.19877,0.2591,0.24733,0.2816,0.67171,0.2401,0.88979,0.4632,1.1174,1.2109l3.3163,11.153c0.23975,0.8051,0.39256,1.004,0.55998,1.0172,0.18393,0.014,0.27663-0.091,0.49894-0.5597l5.433-10.82z"/>
<path d="m480.6,457c-0.0158,1.9028-1.6256,1.5531-1.6321,2.2993-0.002,0.3172,0.33373,0.2268,0.51863,0.2285,0.45332,0,0.90723-0.067,1.4444-0.062,0.58785,0.01,1.158,0.085,1.9808,0.092,0.21837,0,0.63793,0.024,0.64018-0.2369,0.007-0.8769-2.1527,0.3728-2.1215-3.2091l0.0553-6.3433c0.00098-0.1679,0.036-0.2983,0.13687-0.2975,0.0842,0.0009,0.18392,0.095,0.30026,0.2454l7.992,9.7719c0.11617,0.1504,0.19924,0.2628,0.43422,0.2651,0.20148,0,0.20283-0.1475,0.20643-0.558l0.0912-10.466c0.0158-1.9588,1.4402-1.4987,1.4453-2.0584,0.00056-0.056,0.002-0.2426-0.31685-0.2454-0.15105,0-0.73952,0.068-1.7973,0.059-1.1588-0.011-1.645-0.089-1.9138-0.091-0.21813,0-0.27014,0.1843-0.27126,0.3148-0.005,0.6157,2.046,0.2978,2.0311,1.9955l-0.0541,6.2127c-0.005,0.4663-0.0396,0.69-0.14047,0.6891-0.10063-0.0008-0.30024-0.2265-0.51635-0.4896l-6.6782-8.2866c-0.29914-0.3571-0.0966-0.486-0.63371-0.4905-0.89007-0.01-1.3274,0.063-1.7638,0.059-0.31911,0-0.62077-0.08-0.9396-0.083-0.20149,0-0.28674,0.1465-0.28816,0.3146-0.009,0.8954,1.8831-0.3008,1.8519,3.2814l-0.0617,7.0896z"/>
<path d="m496.86,448.6c0.0158-1.7725,1.2691-1.0898,1.2745-1.7241,0.002-0.224-0.0814-0.262-0.58531-0.2665-0.95706-0.01-1.5623,0.061-2.1665,0.056-0.58783,0-1.2421-0.086-1.8969-0.091-0.15105-0.001-0.57041-0.061-0.57322,0.2564-0.005,0.6528,1.8029,0.1472,1.788,1.8448l0.0158,8.9553c-0.0158,1.7722-1.2202,1.2767-1.2258,1.9298-0.00084,0.093,0.0315,0.224,0.18257,0.2254,0.43673,0.01,1.1594-0.064,1.8814-0.058,1.3096,0.011,1.9304,0.091,2.5514,0.097,0.38637,0,0.53804-0.07,0.53973-0.2752,0.005-0.5971-1.8828,0.2448-1.8629-2.05l0.0776-8.8992z"/>
<path d="m503.9,457.27c0.0202,2.2203-1.8859,1.3412-1.8794,2.0689,0.005,0.4106,0.28871,0.3894,0.59121,0.3866,0.67141-0.01,1.2249-0.085,2.35-0.095,1.125-0.01,1.6797,0.06,2.3514,0.054,0.48682,0,0.82338,0.049,0.81943-0.399-0.005-0.5226-2.149,0.037-2.1693-2.2574l-0.0734-8.433c-0.007-0.8954,0.1594-0.9902,0.84758-0.9961l1.4273-0.011c1.9304-0.091,1.4112,1.9841,2.0829,1.9782,0.43644,0,0.24539-0.7299,0.20981-0.9534l-0.19967-1.7148c-0.0181-0.1866-0.0202-0.4477-0.2724-0.4455-1.5618,0.014-2.686,0.098-5.1375,0.1195-2.4516,0.02-3.5772-0.044-5.1389-0.03-0.25184,0-0.24959,0.2634-0.26479,0.4503l-0.24706,2.465c-0.0315,0.2429-0.12854,0.654,0.22399,0.6512,0.75584-0.01,0.23075-2.4462,2.1279-2.4628l1.4104-0.014c0.68857-0.01,0.85714,0.086,0.86502,0.9812l0.0757,8.6567z"/>
<path d="m513.68,453.74c-0.30139,0.024-0.53439,0.061-0.54902-0.1252-0.0202-0.2603,0.0639-0.4728,0.12989-0.7027l1.0299-3.3933c0.0675-0.2114,0.13304-0.2353,0.16658-0.2378,0.0835-0.01,0.0336,0,0.14543,0.1382l1.6378,3.2586c0.1013,0.2165,0.21769,0.4133,0.23833,0.6737,0.0135,0.1859-0.22128,0.1857-0.52255,0.2095l-2.2765,0.179zm2.8745,0.7845c0.43534-0.034,0.53353,0.1452,1.2002,1.5525,0.22377,0.4877,0.36722,0.8132,0.3993,1.2224,0.0896,1.1346-1.1152,1.0234-1.0727,1.5629,0.0202,0.2606,0.23525,0.2062,0.53635,0.1823,0.48569-0.038,1.0992-0.1611,1.8356-0.2192,1.105-0.087,1.5626-0.048,2.1654-0.096,0.45193-0.035,0.60557-0.011,0.5808-0.3265-0.0484-0.6137-0.89512,0.1828-1.535-1.0954l-5.4156-11.028c-0.2617-0.5409-0.29798-0.5755-0.44882-0.5637-0.21746,0.018-0.27352,0.3771-0.36724,0.6841l-3.6509,11.61c-0.33625,1.0744-1.1988,1.0299-1.1652,1.4577,0.0202,0.242,0.28391,0.1834,0.51833,0.1652,0.4854-0.038,0.9652-0.1508,1.4672-0.1905,0.53578-0.042,1.0437-0.01,1.5795-0.049,0.35148-0.028,0.88079,0.062,0.85012-0.3289-0.0396-0.502-1.8243-0.062-1.9296-1.4014-0.0351-0.4466,0.14791-1.116,0.23581-1.497,0.28845-1.2582,0.63428-1.36,0.91879-1.3825l3.2977-0.2595z"/>
<path d="m529.53,446.79c-0.16838-1.2764-0.10422-1.3037,1.9104-1.5688,3.213-0.4232,2.1994,1.9121,2.982,1.8092,0.3827-0.05,0.21926-0.6498,0.17086-0.8882l-0.30756-1.8226c-0.0225-0.1666-0.16299-0.336-0.37933-0.3075-1.465,0.1927-2.6041,0.4181-3.786,0.5737-2.5472,0.3352-3.7556,0.419-4.438,0.5088-0.23326,0.031-0.34695,0.1963-0.32501,0.363,0.0974,0.7398,1.9008-0.1,2.1201,1.5649l1.1397,8.6572c0.29686,2.2566-1.0997,1.4245-0.98772,2.2751,0.0158,0.1113,0.12675,0.1905,0.34302,0.1621,0.91567-0.1206,1.6051-0.2867,2.1212-0.3545,0.73277-0.097,1.3583-0.1036,1.9909-0.1869,0.41618-0.055,0.77554-0.027,0.72684-0.397-0.0657-0.4992-1.8859,0.2107-2.1564-1.8424l-0.36048-2.7377c-0.14115-1.073-0.23694-1.286,0.52876-1.387l1.232-0.1621c1.7314-0.2279,1.5235,1.7942,2.0562,1.7241,0.39959-0.053,0.21184-0.7054,0.16389-0.9438l-0.55013-3.2771c-0.0824-0.4973-0.26057-0.4362-0.37707-0.421-0.33318,0.044-0.15894,1.7522-1.5908,1.9408l-1.0488,0.1382c-0.71588,0.094-0.73276-0.035-0.83774-0.8307l-0.34076-2.5897z"/>
<path d="m535.67,451.03c0.69026,3.724,3.3782,5.7875,6.6968,5.1724,5.2669-0.9759,5.4408-5.6573,4.965-8.2253-0.72095-3.8893-3.6197-5.8-6.8324-5.1665-3.939,0.7679-5.574,4.2018-4.8294,8.2194zm1.837-1.422c-0.49301-2.66-0.13688-5.3449,2.6435-5.917,2.1229-0.4313,4.5316,1.3235,5.283,5.3776,0.56449,3.0453,0.0957,5.675-2.7341,6.2564-2.9451,0.6027-4.696-3.0386-5.1924-5.717z"/>
<path d="m550.53,443.11c-0.26114-1.0887,0.24509-1.21,0.84897-1.3552,1.6493-0.3959,2.886,0.7272,3.3126,2.505,0.2572,1.0705,0.40297,2.11-2.0787,2.7057-0.48992,0.1177-1.0941,0.2625-1.203-0.1907l-0.87993-3.6646zm0.009,8.8818c0.54873,2.2859-0.91737,2.0045-0.77808,2.585,0.0869,0.363,0.41676,0.2262,0.59657,0.1832,0.81635-0.196,1.6152-0.4646,2.4971-0.6762,0.6855-0.1645,1.1439-0.1981,1.4214-0.2645,0.37566-0.09,0.48007-0.2305,0.44094-0.3937-0.15668-0.6531-1.5947,0.4787-2.0607-1.4624l-0.75358-3.1385c-0.15219-0.6351-0.28085-0.7386,0.58444-0.9463,0.81635-0.1959,1.1495-0.1033,1.7168,0.6047l2.0596,2.5374c0.75895,0.9306,1.5559,1.9481,2.8455,1.6386,0.65314-0.1567,1.6349-0.8147,1.5001-1.3772-0.0348-0.1449-0.15893-0.2304-0.30616-0.1949-0.16321,0.039-0.30026,0.1871-0.46374,0.2265-0.13058,0.031-0.44068,0.1056-0.65735-0.1495-1.7244-2.0035-3.7438-4.3009-3.7699-4.4098-0.0437-0.1814,0.39058-0.4584,0.76402-0.9894,0.36919-0.549,0.68155-1.3338,0.40267-2.4949-0.20036-0.8346-1.1411-3.3143-4.7168-2.4557-1.0941,0.2625-2.1867,0.6016-3.2808,0.8641-1.0285,0.2471-1.1766,0.2058-1.9279,0.3861-0.19586,0.047-0.33739,0.177-0.29378,0.3585,0.15668,0.6532,1.7754-0.4454,2.2633,1.5866l1.9163,7.9824z"/>
<path d="m564.01,448.98c0.55604,2.1496-1.5052,1.7576-1.3232,2.462,0.10265,0.3976,0.37456,0.3081,0.66721,0.2324,0.6503-0.1682,1.1681-0.3793,2.2574-0.661,1.089-0.2817,1.6442-0.3481,2.2945-0.5164,0.47133-0.1218,0.81043-0.1517,0.69844-0.5853-0.13079-0.5057-2.0762,0.5563-2.6508-1.6656l-2.1116-8.1645c-0.22422-0.867-0.0851-0.9993,0.58137-1.1718l1.3819-0.3573c1.8508-0.5558,1.8491,1.5837,2.4994,1.4157,0.42266-0.1094,0.0617-0.7677-0.027-0.9759l-0.60866-1.6155c-0.0628-0.1765-0.12831-0.4295-0.372-0.3664-1.512,0.3911-2.5824,0.7451-4.956,1.3589-2.3733,0.6137-3.4812,0.8231-4.9932,1.2142-0.2437,0.063-0.17852,0.316-0.14813,0.5006l0.35652,2.4518c0.0284,0.2432,0.0336,0.6658,0.37482,0.5775,0.73165-0.1891-0.36807-2.4293,1.4689-2.9043l1.3656-0.3532c0.66663-0.1724,0.85236-0.124,1.0766,0.7429l2.1676,8.3812z"/>
<path d="m572.6,437.52c-0.47387-1.7079,0.91935-1.3972,0.74995-2.0087-0.0599-0.2156-0.15083-0.229-0.63626-0.095-0.92242,0.2558-1.4849,0.4894-2.0674,0.6509-0.56618,0.1569-1.2173,0.26-1.8482,0.435-0.14588,0.04-0.56534,0.098-0.48063,0.4044,0.17469,0.6292,1.8634-0.3813,2.317,1.2548l2.3936,8.6299c0.47358,1.7079-0.82113,1.5635-0.64666,2.193,0.025,0.09,0.0923,0.2069,0.23806,0.1664,0.42042-0.1169,1.0963-0.3816,1.7922-0.5746,1.2621-0.3501,1.8806-0.4441,2.4794-0.6101,0.37228-0.1034,0.49779-0.2155,0.44293-0.4134-0.15961-0.5752-1.7424,0.7544-2.3556-1.4571l-2.3784-8.5759z"/>
<path d="m576.18,441.69c1.2018,3.5918,4.1509,5.2611,7.3516,4.1901,5.0796-1.6994,4.6006-6.3594,3.7716-8.8365-1.255-3.7508-4.3912-5.2394-7.4847-4.1651-3.7938,1.3088-4.9349,4.9366-3.6385,8.8115zm1.6214-1.6639c-0.85856-2.5652-0.87938-5.2734,1.7939-6.2271,2.0424-0.7226,4.6718,0.6799,5.9803,4.5899,0.98265,2.9373,0.88416,5.6064-1.837,6.5761-2.8326,1.0065-5.0731-2.3557-5.9372-4.9389z"/>
<path d="m589.72,431.56c-0.41027-1.0414,0.0741-1.2322,0.65229-1.4599,1.5781-0.6216,2.9589,0.3183,3.6289,2.0193,0.40353,1.0243,0.69254,2.0334-1.6819,2.9688-0.46881,0.1846-1.0468,0.4123-1.2179-0.023l-1.3814-3.5065zm1.2446,8.7943c0.86165,2.1871-0.62977,2.1128-0.41085,2.6683,0.13666,0.3472,0.44433,0.1661,0.61627,0.098,0.78117-0.3076,1.535-0.6847,2.3784-1.017,0.65622-0.2586,1.1056-0.3551,1.371-0.4601,0.35963-0.1412,0.44348-0.2946,0.38185-0.4511-0.24621-0.625-1.5125,0.6962-2.2442-1.1613l-1.183-3.0031c-0.23919-0.6076-0.38101-0.6923,0.44714-1.0184,0.78116-0.3076,1.1239-0.2623,1.7841,0.3599l2.3928,2.2259c0.88105,0.816,1.8117,1.7128,3.0459,1.2266,0.62497-0.2462,1.5058-1.0341,1.2936-1.5725-0.0545-0.1387-0.18933-0.206-0.3298-0.1506-0.15646,0.062-0.27154,0.2271-0.42773,0.2887-0.12494,0.049-0.42181,0.1662-0.67198-0.056-1.9864-1.7441-4.306-3.7381-4.3468-3.8422-0.0687-0.1736,0.32305-0.5082,0.61878-1.0859,0.28901-0.5952,0.48908-1.416,0.0515-2.527-0.31461-0.7986-1.5913-3.123-5.0129-1.7753-1.0468,0.4125-2.0818,0.9002-3.1286,1.3127-0.98406,0.3877-1.1363,0.3675-1.8553,0.6506-0.18752,0.074-0.30954,0.2219-0.24115,0.3956,0.24621,0.625,1.6963-0.688,2.4622,1.2562l3.0087,7.638z"/>
</g>
<g>
<g fill="#fedf00">
<path fill="#d52b1e" d="m412.66,249.25h82.179v82.023h-82.179z"/>
<path id="mits" fill="#fff" d="m451.2,313.83s-0.048,2.9314-0.85518,5.2867c-0.93313,2.7214-0.94016,2.7214-1.7956,4.0429-1.1524,1.7809-2.5571,3.0827-3.8096,3.8875-1.9583,1.2584-3.9483,1.8876-5.9482,1.7103-5.491-0.4865-8.0382-6.4401-9.2831-11.273-1.3217-5.131-5.0733-7.9231-7.4638-6.0642-1.3994,1.0885-1.4782,2.9142-0.31093,4.6651,1.2441,1.8657,4.0991,2.7988,4.0991,2.7988l-2.9328,3.7319s-6.3019-0.8205-7.5345-7.3932c-0.46629-2.4881,0.74177-7.1335,4.891-8.5222,5.2968-1.7731,8.686,2.0041,10.318,5.1916,2.2456,4.3836,3.2096,12.434,9.4294,11.19,3.3838-0.6768,4.976-5.5979,4.976-7.8525l2.467-2.6434,3.6542,1.1664,0.0986,0.078z"/>
<use xlink:href="#mits" transform="matrix(-1,0,0,1,907.5206,0)"/>
<path d="m461.12,278.95,10.76-11.643s1.624-1.3096,1.6096-3.4015l-2.2186,0.3452-0.49694-1.1416-0.11054-1.1473,2.9817-0.6292c0.0473-0.4843,0.007-0.8507,0.092-1.385,0.0795-0.4939,0.19-0.7587,0.31123-1.2441l-3.2656,0.2188c0.16592-0.5715,0.1281-0.8754,0.31094-1.4067,0.15399-0.4469,0.19675-0.6177,0.50287-1.1028,0.60641-0.091,1.158-0.2279,1.9073-0.3039,0.7277-0.073,1.1433-0.039,1.8733-0.085,1.781-3.3214,9.1894-6.3732,14.454-0.9042,3.8096,3.9582,2.9876,11.219-1.9509,13.139-2.7988,1.0885-5.0534,0.4449-6.8617-1.1101l1.9709-3.8656c2.7211,1.6254,4.9757-0.3959,4.8204-2.4952-0.19676-2.6535-1.9186-4.2966-4.3538-4.5094-2.2543-0.197-3.8726,1.093-4.8983,3.1101-0.62583,1.2305-0.33627,2.1332-0.54423,3.4986-0.22568,1.4833-0.0988,2.3109-0.53691,3.8096-0.31825,1.0882-1.1549,2.4341-2.3697,3.5926l-11.03,11.935-42.941,46.445-3.2268-2.9831,43.211-46.737z"/>
<path fill="#fff" d="m429.51,283.04s2.6994,13.372,11.874,33.431c4.665-1.7103,7.4191-2.7991,12.362-2.7991,4.9431,0,7.6971,0.9331,12.362,2.7991,9.1742-20.059,11.874-33.431,11.874-33.431l-24.236-31.177-24.236,31.177z"/>
<path d="m456.12,262.41,16.82,21.637s-2.2433,10.52-9.0782,26.354c-2.646-0.6025-4.9158-1.1276-7.7323-1.3195l-0.009-46.671z"/>
<path d="m451.38,262.41-16.82,21.637s2.2433,10.52,9.0782,26.354c2.646-0.6025,4.9158-1.1276,7.7323-1.3195l0.009-46.671z"/>
</g>
<g fill="#d52b1e">
<path fill="#fedf00" d="m503.6,249.25h82.179v82.023h-82.179z"/>
<path d="m515.11,249.25h12.253v82.023h-12.253z"/>
<path d="m538.59,249.25h12.253v82.023h-12.253z"/>
<path d="m562.07,249.25h12.253v82.023h-12.253z"/>
</g>
<g fill="#d52b1e" stroke="#d52b1e" stroke-width="0.513">
<path fill="#fedf00" stroke="none" d="m412.97,402.41c0.23327,1.4774,0.75922,4.0119,2.1625,6.6087,1.4771,2.3322,0.93285,2.2689,4.2762,6.0008,1.6456,1.837,4.2137,3.4109,6.2271,4.4948,2.0213,1.0885,3.5169,1.6229,6.8417,2.4952,6.5175,1.7104,11.091,1.817,16.574,1.5984,4.2781-0.1709,7.5443-0.6973,10.249-1.0615,3.8574-0.5189,6.7305-0.8278,11.118-1.0105,2.1333-0.089,4.149-0.1101,6.1421,0,2.4057,0.1326,4.7818,0.5054,7.3085,1.0105,5.442,1.0885,10.962,3.1877,10.962,3.1877l0.0135-85.655-82.193-0.023v58.543s0.16862,2.8599,0.31828,3.8096z"/>
<path d="m422.51,417.43,3.8518,2.2412,5.2782,1.8989-0.005-81.527h-9.1264z"/>
<path d="m468.17,421.14,0.0113-81.099h-9.1435v82.396s6.2572-0.80203,9.1312-0.98833z"/>
<path d="m486.41,340.05h-9.1134v81.381c2.9699,0.3213,6.0236,0.85177,9.1311,1.6825l-0.018-83.064z"/>
<path d="m449.92,340.05v83.331c-0.0903,0.01-6.1007,0.31515-9.1733-0.003l0.002-83.314z"/>
</g>
<g>
<path fill="#fedf00" d="m585.48,402.39c-0.23327,1.4771-0.75921,4.0116-2.1626,6.6084-1.4771,2.3325-0.93285,2.2692-4.2759,6.0009-1.6456,1.8369-4.214,3.4108-6.2271,4.495-2.0216,1.0885-3.5169,1.6226-6.8417,2.4952-6.5178,1.7103-11.091,1.817-16.574,1.5981-4.2778-0.1707-7.544-0.6973-10.249-1.0612-3.8574-0.5189-6.7305-0.8279-11.118-1.0108-2.133-0.089-4.149-0.1096-6.1421,0-2.4057,0.1326-4.7815,0.5054-7.3082,1.0108-5.4423,1.0885-11.033,3.1877-11.033,3.1877l0.0565-85.655,82.193-0.023v58.543s-0.16815,2.8596-0.31826,3.8096z"/>
<g id="cow">
<path fill="#d52b1e" d="m524.62,346.91s-0.36638,0.1753-0.59375,0.2813c-0.29828,0.3273-0.44752,0.519-0.78125,0.8125-0.44293,0.3892-0.76881,0.503-1.25,0.8437-0.23045,0.163-0.41928,0.2156-0.59375,0.4375-0.25219,0.3208-0.0791,0.6292-0.25,1-0.18658,0.405-0.36896,0.5965-0.65625,0.9375-0.36612,0.4348-0.64912,0.6098-1.0625,1-0.41817,0.3951-0.58752,0.7265-1.0938,1-0.1339,0.072-0.19832,0.1425-0.34375,0.1875-0.21554,0.067-0.34931-0.011-0.5625,0.062-0.38806,0.1343-0.51024,0.5626-0.78125,0.7188,0.11196,0.2178,0.10686,0.3725,0.21875,0.5937,0.15785,0.3234,0.70512,1.2154,0.8125,1.4375,0.20907,0.3051,0.27011,0.6996,0.53125,0.7813,0.53775,0.1681,0.8586,0.1532,1.3125,0.125,0.79213,0.1818,1.2805,0.1578,2.0312,0.4687,0.61288,0.2539,0.86262,0.575,1.4688,0.8438,0.47418,0.2102,0.77191,0.3394,1.2812,0.4375,0.38665,0.074,0.60802,0.132,1,0.094,0.24961-0.024,0.37681-0.1197,0.625-0.1562,0.0488-0.01,0.0809,0,0.125,0l-0.0312,0.375c-0.005,0,0.005,0.028,0,0.031v0.062h0.0625l2.0625,0.9063c-0.0738,0.1176-0.1515,0.2566-0.1875,0.375-0.0981,0.3205-0.114,0.6886-0.0625,0.8437,0.62922,1.8877,1.1592,3.0684,1.4688,3.1875,0.6154,0.2364,0.80591,0.8649,1.1562,1.5-0.12367,0.1321-0.22734,0.2008-0.34375,0.3125-0.61493,0.5902-1.152,1.0093-1.6562,1.8125-0.74541,1.1879-1.2487,1.2038-0.3125,2.7813,0.54902,0.9247,0.81425,1.0994,1.5312,2.4062,0.36161,0.6591,0.56221,1.1733,0.78125,1.9688,0.20712,0.7519,0.2779,1.1895,0.3125,1.9687l0.96875,0.375,0.65625-0.6562,0.625-1.1875,0.0312-0.9063c-0.23861-0.2026-0.3076-0.4733-0.25-0.7812,0.0695-0.3686,0.51434-0.2913,0.71875-0.625,0.28309-0.4615-0.33152-0.7344-0.65625-1.0938-0.60558-0.6697-1.4305-0.8329-1.625-1.8437-0.0523-0.2732,0.0776-0.4267,0.375-0.7188,0.85519-0.8399,1.1299-0.9736,1.9688-1.8125,0.242,0.142,0.61054,0.1932,0.96875,0.125,0.27914-0.053,0.52914,0.1252,1.4062,0.375,0.60951,0.1736,0.8732,0.086,1.2188,0.031l0.375-0.094c0.0504,0.2114,0.1115,0.4157,0.125,0.6875,0.0531,1.0604-0.15471,2.9947,0.15625,3.5,0.13118,0.2131,0.18605,0.3315,0.28125,0.5625,0.0986,0.2406,0.21375,0.3963,0.21875,0.6563,0.0112,0.6956,0.0471,1.1405,0,1.875-0.0441,0.6911-0.10304,1.042-0.21875,1.75-0.074,0.4511-0.16594,0.7136-0.4375,1.0625-0.28336,0.3639-0.59506,0.4174-0.96875,0.6875l-0.0937,1,1.125,0.4687,1.2812,0.3125,0.6875-0.2812c0-0.2544,0.0399-0.399,0.15625-0.625,0.12748-0.2465,0.23181-0.4386,0.46875-0.5313,0.36244-0.1423,0.75947,0.1292,0.90625-0.094,0.15946-0.242,0.0594-0.3375,0.0312-0.75-0.0453-0.6621-0.18355-0.9888-0.28125-1.6563-0.16416-1.1107-0.20985-1.6865-0.15625-2.75,0.0311-0.6165,0.0383-0.9563,0.15625-1.5625,0.17195-0.8824,0.48556-1.3112,0.6875-2.1875,0.22541-0.9775,0.2647-1.6062,0.375-2.4687,3.1694,0.4528,5.8074,0.3972,9.3438-0.375,0.16911-0.037,0.75-0.25,0.75-0.25,0.79947,0.6889,1.706,1.2642,2.7188,1.625-0.006,0.1016-0.0158,0.8456,0,0.9687,0.0365,0.2876-0.0414,0.4813,0.125,0.7188,0.10551,0.1506,0.19603,0.2396,0.375,0.2812,0.26255,0.061,0.45476,0.023,0.65625-0.1562,0.22633-0.2015,0.1843-0.4545,0.25-0.75,0.032-0.1407,0.007-0.5644,0-0.6875,0.36667,0.055,0.49117,0.062,0.875,0.062,0.35765,0,0.52944,0.014,0.875-0.031,0.005,0.081,0.0199,0.3689,0.0312,0.4688,0.0268,0.2443-0.0757,0.4347,0.0312,0.6562,0.11087,0.2296,0.24955,0.3592,0.5,0.4063,0.20599,0.039,0.35363,0.018,0.53125-0.094,0.29551-0.1851,0.2632-0.4984,0.3125-0.8437,0.0146-0.11,0.0113-0.6919,0-0.7813,0.21161-0.067,0.82729-0.2917,1.0312-0.375-0.005,0.2426-0.0388,0.5168-0.0937,0.8125-0.0699,0.376-0.11965,0.5785-0.25,0.9375-0.20598,0.5676-0.44159,0.8561-0.75,1.375-0.37681,0.6338-0.57286,0.9854-1.0312,1.5625-0.21105,0.266-0.35764,0.3856-0.5625,0.6563-0.25522,0.3374-0.34218,0.5663-0.59375,0.9062-0.32418,0.4382-0.51034,0.724-0.9375,1.0625-0.69364,0.5499-1.1499,0.1099-2.0938,0.8438l-0.21875,1.0312,1.4375,0.5313,1.2812,0.25,0.4375-0.25c-0.0118-0.3011,0.0319-0.5139,0.21875-0.75,0.21357-0.2698,0.44159-0.3511,0.78125-0.4063,0.36132-0.059,0.74677,0.034,1.0312-0.2187,0.35006-0.3109,0.34867-0.9141,0.625-1.4688,0.85827-1.7235,1.6208-2.5628,3-3.9062,0.6126-0.5966,1.1374-0.7579,1.6562-1.4375,0.24651-0.3225,0.51995-0.4692,0.53125-0.875,0.008-0.2828-0.14395-0.4151-0.21875-0.6875-0.10357-0.3771-0.1875-1-0.1875-1,1.5218,0.7446,0.97085,0.6462,1.25,1.4062,0.22555,0.6149-0.0325,1.0395,0.0625,1.6875,0.11114,0.7559,0.46615,1.1139,0.53125,1.875,0.0777,0.9048-0.14299,1.4205-0.3125,2.3125-0.14886,0.7846-0.12995,1.2768-0.46875,2-0.32248,0.6889-0.57094,1.0769-1.1562,1.5625-0.21105,0.175-0.36836,0.2503-0.59375,0.4063l-0.125,1.0312,1.125,0.375,1.625,0.4375,0.375-0.3437c0.16348-0.6545-0.0547-1.6165,0.40625-1.6875,0.40606-0.062,0.69275,0.0001,0.78125-0.3125,0.0367-0.1314,0.0589-0.3259,0.0937-0.625,0.22118-1.8859,0.42149-3.6454,0.625-4.5,0.23012-0.9677,0.21445-1.178,0.40625-1.9063,0.17532-0.6641-0.0853-0.2824,0.40625-1.6875,0.73418-2.0972-0.20816-2.375-1.0625-3.6562-0.46205-0.6931-0.6218-0.9442-0.6875-1.5-0.097-0.8169,0.1647-1.4947,0.125-2.75-0.041-1.3198-0.0225-2.1591,0-2.875,0.11538-0.053,0.22175-0.1207,0.34375-0.1875,1.1706-0.6427,1.6363-0.8361,2.375-2.4688,0.22389-0.4955,0.3195-0.9937,0.3125-1.4687-0.005-0.3321-0Line truncated
<g fill="none" stroke="#fedf00" stroke-width="0.987" stroke-linecap="round">
<path d="m568.77,359.52-0.76315,0.244c-0.86699,0.4021-1.5778,0.4178-2.6001,0.4961-2.6437,0.2021-4.2714-1.0572-6.9976-0.8476-1.4039,0.108-2.0252,1.1909-3.4598,1.5483-0.65256,0.1625-1.0313,0.2254-1.7016,0.2819l0.51272-1.0333s-1.284,0.2617-2.1153,0.2634c-0.59629,0.001-0.93595-0.028-1.5235-0.1301l1.0181-0.9506s-0.81351-0.1319-1.2936-0.3351c-0.44265-0.1871-0.68353-0.3301-1.06-0.6292,0.66327-0.1139,1.0358-0.1921,1.6893-0.3535,1.5561-0.3849,2.0398-1.147,3.8909-1.3254,1.149-0.1112,3.0321-0.046,7.6428,0.7168,3.0357,0.502,4.3822,0.267,5.5354-0.2572,0.7609-0.3459,1.0108-1.0108,1.1031-1.7883,0.0925-0.7764-0.40408-1.4045-0.87376-1.81-0.12268-0.106-0.44404-0.3351-1.1129-0.363"/>
<path fill="#fcd900" stroke-width="0.513" stroke-linecap="butt" d="m524.8,350.61c-0.53042-0.066-0.88442,0.011-1.3397,0.2915-0.48036,0.2958-0.5417,0.6965-0.88809,1.142,0.44517,0.099,0.69843,0.3607,1.1419,0.2538,0.34668-0.084,0.52677-0.2386,0.76117-0.5076,0.31546-0.3625,0.4314-0.6754,0.42746-1.156l-0.10266-0.024z"/>
<path d="m536.04,363.79s0.26396,0.4801,0.40661,0.7992c0.24793,0.5552,0.37624,0.8785,0.52426,1.468,0.20036,0.7987,0.11369,1.2838,0.24088,2.0973,0.0225,0.1432,0.0498,0.2634,0.0767,0.3768l-0.0511,1.1287"/>
<path d="m544.04,362.71s-0.21881,0.8122-0.354,1.3325c-0.35201,1.3538-0.67648,2.0871-0.94381,3.4601-0.0448,0.2302-0.0777,0.4429-0.10356,0.6444"/>
<path d="m531.78,364.17c0.79018,0.1756,0.54424,3.3602,1.7888,4.0904"/>
<path stroke-linecap="butt" d="m560.12,369.78,0.3844-0.249c1.0139-0.4146,1.9251-1.0271,2.6857-1.7897"/>
<path d="m552.38,368.02c0.002-0.0005,0.005-0.0009,0.007,0,3.533-0.883,5.8849-2.6476,7.5786-2.8688"/>
<path d="m555.97,363.61c0.29885-0.011,0.58475-0.033,0.82928-0.068,1.4681-0.2096,1.7042,0.6869,2.7262,1.2584,1.8564,1.0381,2.0973,2.307,4.299,3.3555,0.11638,0.055,0.22331,0.1069,0.32135,0.1551l0.84729,0.4288"/>
<path fill="#fcd900" stroke-width="0.513" stroke-linecap="butt" d="m517.7,354.53c0.26819,0.067,0.43196,0.08,0.70745,0.054,0.33148-0.031,0.48373-0.2378,0.81635-0.2488,0.27097-0.01,0.46261-0.032,0.68407,0.1245,0.14092,0.099,0.1999,0.1894,0.27999,0.3419,0.0871,0.1668,0.163,0.2823,0.1245,0.4666-0.0595,0.2842-0.32417,0.4173-0.61431,0.4198-0.23721,0-0.43391-0.062-0.54422-0.2721-0.0707-0.1348-0.0815-0.2425-0.0388-0.3886-0.28393,0.1067-0.48964,0.1108-0.7775,0.016-0.30308-0.1002-0.47473-0.2386-0.63738-0.513z"/>
</g>
<g fill="#0065bd">
<path d="m525.13,364.17c-0.79692-0.2375-1.9658-0.8259-1.9658-0.8259,0.32277-0.251,0.58672-0.2651,0.86276-0.5547,0.38919-0.4083,0.37287-0.7885,0.59264-1.3192,0.21566-0.52,0.18459-0.9545,0.67142-1.3428,0.28956-0.231,0.76232-0.269,1.1177-0.1652,0.35287,0.1127,0.75921,0.4012,0.84843,0.7662,0.13732,0.5611-0.15984,0.8853-0.24595,1.454-0.0858,0.5679-0.29295,0.894-0.19473,1.4599,0.0651,0.3743,0.22625,0.5186,0.35344,0.9072,0,0-1.2643-0.1488-2.0399-0.3796z"/>
<path d="m524.14,365.12c-0.007-0.3473,0.2707-0.634,0.61795-0.6399,0.34754-0.01,0.634,0.2707,0.64019,0.6179,0.007,0.3475-0.2707,0.634-0.61795,0.6399-0.34754,0.01-0.634-0.2704-0.64019-0.6179z"/>
<path d="m522.38,348.61s-0.0898-0.06-0.14362-0.1036c-0.38326-0.3098-0.41985-0.6531-0.60164-1.111-0.17221-0.4333-0.25692-0.6908-0.3146-1.1534-0.0506-0.4058,0-0.6396,0-1.0485,0-0.3681,0.0396-0.5777,0-0.9435-0.0405-0.3751-0.0306-0.6121-0.21003-0.9438-0.097-0.1801-0.39453-0.3374-0.31435-0.4196,0.0946-0.097,0.25694-0.02,0.4193,0,0.39987,0.048,0.63089,0.1657,0.94381,0.4196,0.37707,0.3058,0.52651,0.5709,0.67171,1.0485,0.16681,0.5481,0.24847,0.8982,0.40774,1.468,0.0826,0.2955,0.12877,0.4688,0.28365,0.7339,0.16096,0.2758,0.31967,0.3838,0.52425,0.6292l-0.0113,0.023c-0.29828,0.327-0.44378,0.5394-0.77666,0.8338-0.30504,0.2699-0.55998,0.4033-0.84674,0.5729l-0.0324-0.01z"/>
<path d="m525.98,359.25,2.2309,1.0311c1.1481-0.6348,2.4732-1.9239,3.4964-3.9191,0.88079-1.7176,1.0206-2.6505,1.3639-4.3127l-1.7891-0.5817-0.35709,0.073c-0.55239,1.7233-0.69253,2.704-1.6178,4.1926-0.80226,1.2911-1.7185,2.3049-2.6491,3.0338l-0.67817,0.4834z"/>
<path d="m530.92,377.37c0.35963-0.4928,0.51327-0.8107,0.92214-1.2635,0.45616-0.5051,0.80003-0.7021,1.3116-1.151,0.15556,0.016,0.33544-0.011,0.4812,0.072-0.0284,0.5448-0.0563,0.9487-0.1801,1.5407-0.10041,0.4804-0.1864,0.746-0.34698,1.2097-0.13462,0.3881-0.15848,0.6391-0.38973,0.979-0.1542,0.2266-0.29013,0.3158-0.47585,0.5178-0.51046-0.7418-1.3302-1.2967-1.3223-1.9053z"/>
<path d="m563.93,379.22c0.57264,0.2103,0.92075,0.2702,1.4686,0.5384,0.6112,0.2994,0.89541,0.5757,1.4678,0.9438,0.0268,0.154,0.10379,0.3188,0.063,0.4823-0.53155,0.1229-0.92749,0.2076-1.5308,0.2516-0.48935,0.036-0.76849,0.027-1.2584,0-0.41028-0.023-0.65818,0.024-1.0485-0.1047-0.26058-0.086-0.38383-0.192-0.62891-0.3146,0.57236-0.6954,0.87992-1.6364,1.4672-1.7968z"/>
<path d="m554.17,377.18c0.57265,0.21,0.92047,0.2699,1.4683,0.538,0.6112,0.2994,0.89571,0.5758,1.4681,0.9438,0.0263,0.154,0.10378,0.3189,0.063,0.4826-0.53157,0.1227-0.92749,0.2074-1.5311,0.2513-0.48934,0.036-0.76821,0.027-1.2581,0-0.41029-0.023-0.65821,0.024-1.0485-0.1046-0.26058-0.086-0.38383-0.1918-0.62921-0.3146,0.57263-0.6954,0.87992-1.6364,1.4675-1.7965z"/>
<path d="m536.83,379.31c0.57292,0.21,0.92073,0.2701,1.4686,0.5383,0.6112,0.2991,0.89571,0.5758,1.4681,0.9438,0.0266,0.154,0.10378,0.3189,0.063,0.4824-0.53157,0.1227-0.92749,0.2075-1.5311,0.2515-0.48934,0.036-0.76821,0.027-1.2581,0-0.41028-0.022-0.65821,0.024-1.0485-0.1049-0.26058-0.086-0.38383-0.1915-0.62922-0.3143,0.57237-0.6953,0.87993-1.6363,1.4672-1.7967z"/>
<path d="m527.85,349.51c-0.61259-0.2781-1.0493-1.0446-0.66072-1.5939,0.15555-0.2197,0.41309-0.1736,0.56617-0.3951,0.18866-0.2726,0.14161-0.5076,0.13597-0.8388-0.007-0.3771-0.14385-0.5727-0.20957-0.9438-0.072-0.4058-0.13913-0.6363-0.13598-1.0485,0.005-0.6281-0.0378-1.0756,0.34555-1.5728,0.24454-0.3171,0.66044-0.5923,0.82421-0.6123,0.14746,0.1364-0.0565,0.502-0.0322,0.822,0.0353,0.462,0.13056,0.7173,0.28758,1.1534,0.20239,0.5625,0.47867,0.8085,0.70267,1.3631,0.20847,0.5156,0.39986,0.8074,0.41956,1.3631,0.0158,0.4567-0.0241,0.7356-0.20959,1.1535-0.16434,0.3695-0.2997,0.5791-0.60951,0.8388-0.26931,0.2252-0.45841,0.3251-0.79637,0.4193-0.24735,0.02-0.40157-0.01-0.62781-0.108z"/>
</g>
</g>
<use xlink:href="#cow" y="36.590756"/>
</g>
<g fill="none" stroke="#703d29" stroke-width="0.797">
<path d="m412.66,249.25h82.179v82.023h-82.179z"/>
<path d="m503.6,249.25h82.179v82.023h-82.179z"/>
<path d="m412.97,402.41c0.23327,1.4774,0.75922,4.0119,2.1625,6.6087,1.4771,2.3322,0.93285,2.2689,4.2762,6.0008,1.6456,1.837,4.2137,3.4109,6.2271,4.4948,2.0213,1.0885,3.5169,1.6229,6.8417,2.4952,6.5175,1.7104,11.091,1.817,16.574,1.5984,4.2781-0.1709,7.5443-0.6973,10.249-1.0615,3.8574-0.5189,6.7305-0.8278,11.118-1.0105,2.1333-0.089,4.149-0.1101,6.1421,0,2.4057,0.1326,4.7818,0.5054,7.3085,1.0105,5.442,1.0885,10.962,3.1877,10.962,3.1877l0.0135-85.655-82.193-0.023v58.543s0.16862,2.8599,0.31828,3.8096z"/>
<path d="m585.48,402.39c-0.23327,1.4771-0.75921,4.0116-2.1626,6.6084-1.4771,2.3325-0.93285,2.2692-4.2759,6.0009-1.6456,1.8369-4.214,3.4108-6.2271,4.495-2.0216,1.0885-3.5169,1.6226-6.8417,2.4952-6.5178,1.7103-11.091,1.817-16.574,1.5981-4.2778-0.1707-7.544-0.6973-10.249-1.0612-3.8574-0.5189-6.7305-0.8279-11.118-1.0108-2.133-0.089-4.149-0.1096-6.1421,0-2.4057,0.1326-4.7815,0.5054-7.3082,1.0108-5.4423,1.0885-11.033,3.1877-11.033,3.1877l0.0565-85.655,82.193-0.023v58.543s-0.16815,2.8596-0.31826,3.8096z"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 76 KiB

+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" viewBox="0 0 12 6">
<rect width="12" height="2" fill="#00732f" id="green"/>
<rect width="12" height="2" y="2" fill="#fff"/>
<rect width="12" height="2" y="4"/>
<rect width="3" height="6" fill="#f00" id="red"/></svg>

After

Width:  |  Height:  |  Size: 321 B

+191
View File
@@ -0,0 +1,191 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="600" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="400">
<rect width="600" fill="#090" height="400"/>
<rect width="400" fill="#bf0000" height="400"/>
<rect width="200" height="400"/>
<g stroke-width=".5" stroke="#bd6b00" fill-rule="evenodd" fill="#fff">
<path d="m319.5 225.84 8.354 0.001c0.0311 3.1574 1.8815 6.5489 4.4798 8.4926h-16.008c2.5051-2.271 3.1897-4.9625 3.1741-8.4938z"/>
<path stroke="none" d="m266.71 178.53 4.5742 5.0402 56.934 0.0932 4.6674-5.0402-14.56-0.18636-7.0937-4.947-22.868-0.0932-6.6266 5.1333h-15.027z"/>
<path d="m290.02 172.74 19.66-0.0203c2.6616-1.4073 3.4919-5.9014 3.4788-8.4161-0.037-7.4282-5.2325-10.991-10.447-11.18-0.78128-0.0394-1.688-0.64749-1.8947-1.3595-0.51368-1.6128-0.38108-2.6411-0.94375-2.5838-0.50055-0.007-0.35361 0.93999-0.79921 2.4524-0.24489 0.75261-1.0907 1.4945-1.9341 1.5375-6.4904 0.32374-10.676 5.0616-10.513 11.134 0.1099 4.0151 0.577 6.4127 3.3927 8.4364z"/>
<path stroke="none" d="m257.66 242.83h84.469l-7.5608-6.1607h-69.348l-7.5596 6.1607z"/>
<path d="m296.39 219.69 1.5399 4.6196h3.4991l-2.799-4.6208-2.2399 0.001zm-1.9592 4.6196 0.88641 4.573 4.1059 0.0466-1.4933-4.6208-3.4991 0.001zm6.9527 0.0466 2.8468 4.5264h5.8334l-4.573-4.5742-4.1071 0.0478zm-34.441 10.36c3.0953-2.8778 5.0712-5.3352 5.0867-8.8665h7.5596c0.0155 1.9759 0.73111 3.1574 1.8206 3.0797l7.654-0.0466-0.0466-4.5264h-5.5538l-0.001-24.688c-0.2019-8.7267 10.609-13.813 15.028-13.767l-26.275-0.0466v-0.79324h55.255l0.0466 0.79324-26.647 0.0466c7.9025 0.0155 15.524 7.4987 15.587 13.815v6.9993h-1.0274l-0.0466-6.9061c0-6.9073-8.6993-13.363-15.681-13.161-6.0364 0.17322-15.4 5.9277-15.307 13.115v2.1467l14.327 0.0932-0.13978 2.4729 2.2495 1.4359 4.487 1.43-0.0657 3.7093 3.2136 0.94734 0.0275 3.7057 3.8551 1.6546v3.8359l2.4454 1.5064-0.1123 3.8957 3.3139 2.3331h-7.8403l4.9004 5.4606h-7.2335l-3.5946-5.4606h-4.7594l2.1467 5.4128-5.0855-0.0466-1.2149-5.3662h-6.2061l0.0466 5.7856-22.214 0.001zm22.168-14.981v4.573h5.3209l-1.0752-4.573h-4.2457z"/>
<rect y="211.66" x="289.39" height="7.6068" fill="none" width="3.3134"/>
<path d="m284.71 219.8h3.2339l-0.0203-5.5968c-0.0418-2.4329 2.142-4.8854 3.1873-4.967 1.1588-0.0439 2.8671 2.2965 2.9244 4.7757l0.0466 5.8064 3.431-0.007v-14.411l-12.803 0.0682v14.332z" fill="none"/>
<rect y="223.14" x="310.3" height="3.1268" fill="none" width="4.0135"/>
<rect y="217.77" x="307.92" height="3.1268" fill="none" width="4.0135"/>
<rect y="212.4" x="304.05" height="3.1268" fill="none" width="4.0135"/>
<rect y="207.88" x="300.74" height="3.1268" fill="none" width="4.0135"/>
<path d="m298.08 219.82 4.1059 0.13977 7.3266 6.4868v-3.8264l-2.4729-1.7728v-3.0344l-3.5934-2.0524v-3.2673l-3.5002-1.166v-4.4344l-1.774-1.4467-0.092 14.374z" fill="none"/>
<rect y="210.35" x="315.43" height="7.0468" width=".98004"/>
<g id="c">
<path d="m257.32 186.53c-1.234-1.9819-2.7118 2.7488-7.7878 6.2706-2.363 1.608-4.0092 5.8931-4.0247 8.7124-0.0777 1.9365 0.21503 3.8682-0.001 5.7414-0.13619 1.1851-1.3714 3.8156-0.52683 4.4882 2.234 1.6605 5.1261 5.4308 6.4677 6.7317 1.16 1.0166 2.1647-5.248 3.0355-8.0518 0.93301-3.0045 0.51489-6.5955 3.1024-9.3718 1.8338-1.8744 6.4594-3.7189 5.9397-4.5539l-6.2049-9.9668z"/>
<path d="m257.06 201.88c-0.38526-0.88581-0.95754-1.8017-1.6562-2.5938-0.69871-0.79204-1.5248-1.4569-2.4375-1.7812-0.88164-0.32494-1.7792-0.75131-2.4062-1.5312-0.31351-0.38997-0.58408-0.88198-0.71875-1.4688-0.12477-0.54363-0.12348-1.2104-0.0312-1.9688-0.10986 0.0798-0.16783 0.17131-0.28125 0.25-2.363 1.608-4.0157 5.8994-4.0312 8.7188-0.0312 0.77881-0.0314 1.5387 0 2.3125 0.17489 0.48532 0.34357 0.95597 0.59375 1.25 0.32596 0.3831 0.71323 0.63629 1.125 0.8125 0.82354 0.35241 1.7746 0.42507 2.6562 0.75 0.9127 0.32434 1.8518 1.058 2.6562 1.9375 0.76683 0.83843 1.3575 1.8005 1.75 2.6562 0.0663-0.2425 0.15395-0.60389 0.21875-0.8125 0.84505-2.7212 0.69713-5.8888 2.5625-8.5312z" fill="#bf0000"/>
<path d="m249.82 192.39c-0.48382 3.3557 1.3846 4.4727 3.1478 5.1226 1.8254 0.64868 3.3223 2.6067 4.0928 4.3783" fill="none"/>
<path d="m245.3 203.44c0.77054 2.8934 2.7978 2.5314 4.5611 3.1813 1.8254 0.64868 3.7452 2.9567 4.5157 4.7283" fill="none"/>
<path d="m255.61 184.48 0.92464-0.59373 17.752 29.898-0.92345 0.59373-17.753-29.898z"/>
<path d="m257.52 183.29a2.0459 2.0459 0 1 1 -4.0919 0 2.0459 2.0459 0 1 1 4.0919 0z"/>
<rect y="159.27" x="272.7" height="1.6499" width="7.1937"/>
<rect y="162.4" x="272.7" height="13.784" width="7.1937"/>
<path d="m272.26 157.39 7.9801 0.0466c0.3118-2.7058-2.3893-5.6291-3.9662-5.5992-1.559 0.0753-4.0761 2.9555-4.014 5.5526z"/>
<path stroke="none" d="m292.62 155.76c-1.5214 0.63988-2.6876 2.3773-3.4062 4.375-0.71863 1.9977-0.99146 4.2674-0.65625 6.0938v0.0312c0.12767 0.63033 0.30087 1.0828 0.5 1.4062s0.42233 0.51338 0.6875 0.5625c0.26517 0.0491 0.51389-0.0929 0.65625-0.3125 0.14236-0.21963 0.21213-0.50902 0.1875-0.84375-0.14424-1.8787-0.13498-3.7323 0.3125-5.4062 0.44748-1.674 1.3381-3.1644 2.9688-4.375 0.29479-0.21603 0.46415-0.46321 0.5-0.71875 0.0358-0.25554-0.0995-0.47402-0.28125-0.625-0.36346-0.30196-0.93739-0.40779-1.4688-0.1875zm0.15625 0.4375c0.37058-0.15363 0.84219-0.0633 1.0312 0.0937 0.0945 0.0785 0.10575 0.13319 0.0937 0.21875-0.012 0.0856-0.0775 0.23402-0.3125 0.40625-1.7131 1.2718-2.6562 2.8713-3.125 4.625s-0.45856 3.6602-0.3125 5.5625c0.019 0.2578-0.0553 0.45499-0.125 0.5625s-0.10683 0.13994-0.1875 0.125c-0.0807-0.0149-0.24759-0.11733-0.40625-0.375s-0.31728-0.65644-0.4375-1.25c-0.31467-1.7145-0.0372-3.9474 0.65625-5.875 0.69341-1.9276 1.8032-3.5378 3.125-4.0938z" fill="#bd6b00"/>
<path stroke="none" d="m295.19 157.73c-1.5192 0.63893-2.5013 2.292-3.0312 4.1875-0.52999 1.8955-0.61336 4.0655-0.28125 5.875 0.26002 1.2838 0.9344 1.9611 1.5938 2.0625 0.32968 0.0507 0.64783-0.0795 0.84375-0.34375 0.19592-0.26429 0.26001-0.61887 0.15625-1.0625-0.37233-1.4981-0.51562-3.366-0.25-5.0625s0.94019-3.2115 2.2188-4.125c0.29553-0.21508 0.46393-0.46314 0.5-0.71875 0.0361-0.25561-0.0995-0.50509-0.28125-0.65625-0.36357-0.30232-0.93709-0.37666-1.4688-0.15625zm0.1875 0.4375c0.37028-0.15351 0.81045-0.0639 1 0.0937 0.0948 0.0788 0.13702 0.13359 0.125 0.21875-0.012 0.0852-0.10826 0.23486-0.34375 0.40625-1.4117 1.0086-2.1286 2.6642-2.4062 4.4375-0.27764 1.7733-0.105 3.6646 0.28125 5.2188 0.0826 0.35318 0.00066 0.59139-0.0937 0.71875-0.0944 0.12736-0.21432 0.18576-0.40625 0.15625-0.38385-0.059-0.98301-0.5548-1.2188-1.7188-0.31777-1.7314-0.22749-3.868 0.28125-5.6875s1.4572-3.2869 2.7812-3.8438z" fill="#bd6b00"/>
<rect y="187.39" x="272.31" height="11.107" width="8.0268"/>
<rect y="204.85" x="272.78" height="2.3334" width="7.7468"/>
<rect y="208.95" x="272.59" height="8.6802" width="7.9335"/>
<rect y="219.41" x="272.03" height="4.8534" width="8.6802"/>
<path d="m273.1 202.76h6.9946l1.387-2.3092h-9.6359l1.2544 2.3092z"/>
<path d="m282.53 194.25 0.0657-6.0711h4.8179c-1.8923 1.5614-3.652 3.4537-4.8836 6.0711z"/>
<path d="m273.56 196.74c0.0478 1.2986 1.5184 0.71916 1.5184 0.0657 0-2.0034 0.0263-4.1693-0.0538-5.5873-0.01-1.0453 2.4908-0.78368 2.4765-0.13978 0.01 1.6916 0.0287 4.0116 0.0382 5.9911-0.0179 0.96407 1.6151 0.88045 1.5924 0-0.01-2.2113-0.0108-5.4248 0-7.0519 0.0143-2.0954-5.5013-2.05-5.5443-0.0466 0.002 1.645-0.0299 4.5898-0.0275 6.7688z" fill="none"/>
<rect y="209.98" x="273.57" height="7.0935" fill="none" width="5.6935"/>
<rect y="212.92" x="277.21" height="1.1667" width="2.0067"/>
<rect y="212.92" x="273.71" height="1.1667" width="1.96"/>
<rect y="210.07" x="275.67" height="2.8934" width="1.54"/>
<rect y="214.04" x="275.67" height="3.0801" width="1.54"/>
<path d="m243.99 138.97c0.356 5.567-1.3714 8.6228-4.3198 8.1581-0.81235-3.0881 1.0357-5.1596 4.3198-8.1581z"/>
<path d="m237.52 151.31c-2.621-1.3332-0.72992-11.513 0.27596-15.78 0.74425 5.4965 1.9891 13.309-0.27596 15.78z"/>
<path d="m238.45 151.79c4.4058 1.5327 7.8941-3.2124 9.0732-8.7077-3.6364 5.0186-9.5546 5.0246-9.0732 8.7077z"/>
<path d="m235.11 156.93c-3.4453-0.9103-1.3702-11.71-0.74425-16.03 0.75739 4.4619 3.1323 14.552 0.74425 16.03z"/>
<path d="m236.29 156.59c0.19233-3.7248 3.9052-2.6485 6.4677-4.6364-0.41812 1.8612-1.9938 5.1596-6.4677 4.6364z"/>
<path d="m232.07 161.58c-3.4142-0.92106-1.3619-12.544-1.5554-17.329 1.0011 4.1346 4.1705 16.209 1.5554 17.329z"/>
<path d="m233.66 161.08c2.7966 0.90911 6.5012-0.90792 6.7927-4.2386-2.4084 1.6343-6.2539 0.38467-6.7927 4.2386z"/>
<path d="m229.52 166.71c-3.2649 0.26043-1.8039-9.6383-1.8015-18.857 1.1994 8.6169 4.4667 16.505 1.8015 18.857z"/>
<path d="m230.65 166.26c2.2053 1.1062 6.1559-0.66182 7.2837-4.3867-3.9841 1.7322-6.6481 0.0394-7.2837 4.3867z"/>
<path d="m256.28 144.13c-0.58059 4.8287-2.5541 7.6385-5.5025 7.1738-0.81235-3.0881 1.5781-5.0616 5.5025-7.1738z"/>
<path d="m248.48 156.52c4.898 0.69527 6.6624-3.0642 9.9596-7.8702-4.6208 3.3438-10.146 4.039-9.9596 7.8702z"/>
<path d="m247.09 155.97c-2.67-3.204-0.0896-7.2275 1.9508-10.657-0.43842 5.1023 1.2998 7.9407-1.9508 10.657z"/>
<path d="m245.91 161.26c-0.30105-3.1335 5.0378-3.83 7.4521-5.5718-0.81235 1.811-2.0428 6.6863-7.4521 5.5718z"/>
<path d="m244.79 161.33c-3.6914-0.41812-2.1587-6.6863 0.4874-10.17-1.1146 4.8072 1.9496 8.1498-0.4874 10.17z"/>
<path d="m242.01 166.55c-4.2015-1.8576-1.5088-7.1272 0.0705-10.238-0.67377 4.0856 2.6927 7.1964-0.0705 10.238z"/>
<path d="m242.84 166.06c2.2053 2.879 6.5012-0.85894 7.3828-5.2241-3.738 3.112-6.5 2.6007-7.3828 5.2241z"/>
<path d="m233.24 186.32c-0.43166-4.2875 2.7929-12.084 0.50438-16.24-0.31201-0.57103 0.68503-2.087 1.329-1.1672 1.0064 1.4682 2.041 5.6518 2.4738 4.1071 0.45863-1.6796 0.52901-4.6507 2.0164-5.2277 0.94895-0.33808 2.2908-0.55909 1.9249 0.9342-0.36362 1.4359-1.1777 3.419-0.27565 3.5469 0.52315 0.0776 2.0304-1.9544 3.2996-2.8934 1.0228-0.83743 2.5489 0.47308 1.0533 1.7262-4.8608 4.0367-9.5704 5.8537-12.326 15.214z"/>
<path d="m224.51 250.85c-0.57042-0.10939-1.3518-0.30325-0.64081 0.58385 5.6789 6.9961 7.3221 8.924 15.603 7.9397 8.3647-1.1012 10.357-3.3637 16.214-6.6504 3.1284-1.8351 7.7026-2.2426 11.17-1.1055 1.6142 0.52834 2.5906 0.56022 1.4336-0.59826-1.1575-1.1569-2.5249-2.7312-3.9485-3.8153-3.1181-2.3942-8.4069-3.4322-12.723-2.6616-6.1044 0.95734-11.148 4.8442-17.176 6.3123-3.1669 0.72294-6.6407 0.61388-9.9317-0.005z"/>
<path d="m272.3 263.35c1.056 0.13141 1.725 2.1766 2.2447 0.79204 0.88164-2.2423 0.26401-4.0259-0.72633-3.8288-1.1696 0.3118-3.1478 2.934-1.5184 3.0368z"/>
<path stroke="none" d="m220.6 182.92c-1.2149-1.2687-0.86372-1.7537 0.933-1.774 1.4252-0.0896 4.2493 0.87328 5.3209 0.0932 0.98198-0.71319 0.59134-3.738 1.0274-5.1333 0.18994-0.77771 0.7347-1.9986 1.9592-0.0932 3.6221 5.8047 8.1462 12.773 10.08 19.6 1.0572 3.8264 0.0621 9.7996-3.4537 13.814 0.12425-3.4226-1.1516-5.7247-2.707-8.587-1.921-3.7619-9.0565-13.951-13.16-17.919z"/>
<path d="m235.53 213.44c3.9829 0.0191 4.6674-5.3197 4.6674-6.813-1.9604 0.37272-5.4141 3.64-4.6674 6.813z"/>
<path d="m269.95 265.26c2.8326 0.64461 2.7937-6.1781-0.0995-9.0701 1.274 4.3824-2.1286 8.3884 0.0995 9.0701z"/>
<path d="m268.85 265.2c0.18688 3.2427-7.9586-0.42377-10.052-2.9462 4.8125 2.0445 9.8145 0.35216 10.052 2.9462z"/>
<path d="m265.28 260.57c0.29129 3.1414-7.0638 0.37929-9.2378-2.074 4.83 1.5602 8.9164-0.51099 9.2378 2.074z"/>
<path d="m266.63 261.01c2.8326 0.64461 2.3737-6.412-0.37932-8.8369 1.3211 4.7091-1.8488 8.1552 0.37932 8.8369z"/>
<path d="m263.65 256.72c2.8326 0.64461 1.207-5.4312-0.89265-7.8575 0.34096 4.4298-1.055 7.5021 0.89265 7.8575z"/>
<path d="m262.15 256.7c0.29185 3.2349-5.4301 0.75147-7.6509-2.3088 4.783 1.561 7.3296-0.27617 7.6509 2.3088z"/>
<path d="m260.59 254.24c1.8558-1.3343-0.11294-4.8633-3.645-4.6447 0.34557 2.1312 1.5659 5.88 3.645 4.6447z"/>
<path d="m274.54 268.87c0.18688 3.2427-7.9595 1.6298-10.519-1.8255 5.1387 0.97109 10.281-0.76847 10.519 1.8255z"/>
<path d="m242.18 263.07c0.29185 3.2349-8.6024-0.32249-10.823-3.3827 4.783 1.561 10.502 0.79778 10.823 3.3827z"/>
<path d="m247.63 264.45c1.8558-1.3343-1.9327-4.7703-4.951-5.578 0.34558 2.1312 2.8719 6.8132 4.951 5.578z"/>
<path d="m248.2 266.69c0.1986 2.9084-9.5373 1.3132-12.084-1.3741 8.3771 1.5142 11.81-1.1172 12.084 1.3741z"/>
<path d="m252.76 268.63c1.0806 2.7015-8.2641 2.0422-11.545 0.4715 5.3012-0.0461 10.802-2.3534 11.545-0.4715z"/>
<path d="m257.13 270.6c1.0345 2.421-7.6104 2.3687-11.824 1.0303 5.5812-0.0458 10.801-3.4259 11.824-1.0303z"/>
<path d="m263.42 271.9c1.531 2.8646-7.5878 3.1435-10.547 1.7331 5.2725-0.72515 9.2422-3.9877 10.547-1.7331z"/>
<path d="m252.74 267c-2.9011 1.8295-2.7458-3.5643-5.0532-7.2996 3.6255 3.3017 7.0194 5.5553 5.0532 7.2996z"/>
<path d="m257.88 268.94c-2.4335 2.156-4.379-5.2459-6.594-9.399 3.5805 3.9539 8.8395 7.6085 6.594 9.399z"/>
<path d="m264.68 271c-2.0609 2.3888-8.0196-7.0181-10.187-11.919 3.2992 3.8152 11.826 9.895 10.187 11.919z"/>
<path d="m258.88 278.18c-1.028 3.6318-16.192-3.4234-17.885-7.0785 8.6768 4.5975 18.092 3.6359 17.885 7.0785z"/>
<path d="m210.15 204.38c-0.35481-0.45993-1.3738 0.012-1.1194 1.1206 0.23653 1.5004 2.449 9.2034 6.2515 11.853 2.7118 1.9544 16.965 5.1023 23.427 6.439 3.5564 0.71558 6.5346 2.4896 8.8677 5.3209-0.96526-3.7022-1.7406-6.445-2.9866-9.7996-1.2114-2.9483-4.4213-6.1738-7.746-6.3471-6.175-0.2222-14.167-0.74783-19.974-3.2673-2.9973-1.252-4.7917-2.9436-6.7198-5.3197z"/>
<path d="m245.54 234.87c1.9469 1.4336 4.0958-3.704 1.6225-8.588-0.0776 4.7012-3.8141 6.2791-1.6225 8.588z"/>
<path d="m247.41 239.58c2.6927 0.82665 3.536-3.937 1.7626-7.7474 0.2957 4.0938-4.2336 6.5596-1.7626 7.7474z"/>
<path d="m249.46 243.36c2.6006 1.2948 3.5848-3.5179 1.7159-7.0917 0.2039 4.5593-3.7203 5.9035-1.7159 7.0917z"/>
<path d="m248.39 243.65c-1.0304 3.0802-7.0069-2.6554-8.0141-5.7748 3.7094 3.6852 8.7568 3.278 8.0141 5.7748z"/>
<path d="m245.68 238.94c-1.171 3.0797-8.6865-4.8497-10.348-8.6679 3.7094 3.6852 11.184 6.4975 10.348 8.6679z"/>
<path d="m244.19 234.32c-1.1706 3.5001-9.3403-5.829-11.654-9.1352 3.8968 3.6388 12.537 6.5919 11.654 9.1352z"/>
<path d="m243.93 230.86c2.8765-0.55945-0.1633-2.9553-3.6892-6.849-0.16487 4.0999 0.50799 6.9664 3.6892 6.849z"/>
<path d="m239.08 228.53c1.2422-1.3529-1.1906-1.9289-4.203-5.3096-0.44441 2.2798 2.7942 6.4535 4.203 5.3096z"/>
<path d="m253 243.73c1.5742 0.92123 2.6516-2.3045 0.68982-5.225-0.44888 3.1594-2.1332 4.0368-0.68982 5.225z"/>
<path d="m218.81 223.38c-3.3424 2.004-8.6516-5.992-10.068-9.2817 2.9329 3.7754 10.699 7.2242 10.068 9.2817z"/>
<path d="m221.65 228.04c-1.8496 2.0506-7.6713-3.5187-9.6942-6.3413 3.1204 2.7022 10.512 3.0236 9.6942 6.3413z"/>
<path d="m224.82 232.22c-0.61034 2.801-9.1062-3.4952-11.092-6.4756 3.6626 3.4518 11.649 3.1398 11.092 6.4756z"/>
<path d="m223.52 235.25c-1.3106 2.5218-8.2206-3.7268-9.8794-6.9868 4.222 3.6843 10.949 4.4926 9.8794 6.9868z"/>
<path d="m219.97 222.97c2.1805-2.2988 1.2516-3.3763-0.338-6.9994-0.8689 3.7206-2.1793 5.2055 0.338 6.9994z"/>
<path d="m222.86 227.31c3.9544 0.17418 0.0381-4.6378-0.89693-8.6793 0.3439 4.6062-1.0136 8.2375 0.89693 8.6793z"/>
<path d="m225.38 231.13c2.7405-0.61933 1.95-4.4971-0.15066-9.1933 0.43644 5.0738-2.3203 8.0055 0.15066 9.1933z"/>
<path d="m224.45 238.8c-1.0304 3.0802-8.8265-4.0555-10.067-6.7554 3.9426 3.3119 10.763 4.4456 10.067 6.7554z"/>
<path d="m229.12 243.61c-1.1698 3.0817-9.3391-3.1669-11.839-6.5678 4.9223 3.8722 12.443 3.5126 11.839 6.5678z"/>
<path d="m233.88 248.46c-1.3096 4.2937-9.8528-2.5609-12.399-5.9148 5.4358 4.1511 13.096 2.859 12.399 5.9148z"/>
<path d="m225.85 237.43c2.3206 1.201 3.2577-5.3837 1.9487-10.033 0.0175 5.0736-4.6535 8.8452-1.9487 10.033z"/>
<path d="m229.81 242.66c2.7876 0.82809 1.904-6.2694-0.47802-10.873-0.30875 4.561-2.3662 8.8924 0.47802 10.873z"/>
<path d="m234.76 247.56c3.1142 0.17446 0.97142-6.084-1.5973-9.6132 0.4372 4.6069-1.0129 9.0788 1.5973 9.6132z"/>
<path d="m229.3 250.23c-0.93619 1.5864-3.226-1.3475-6.9861-3.4886 3.3817 0.88442 7.4021 2.0185 6.9861 3.4886z"/>
<path d="m227.52 197.49c2.9065-2.1503 0.6893-6.1726 0-9.9979-0.93539 3.6281-3.3975 8.3887 0 9.9979z"/>
<path d="m227.42 202.85c-4.3664-0.52444-3.7093-6.1715-3.8407-9.7506 1.3129 4.8586 4.892 5.6793 3.8407 9.7506z"/>
<path d="m228.11 202.12c3.6938-0.21384 3.4979-4.4166 3.695-8.6682-1.872 3.9076-4.0892 4.5145-3.695 8.6682z"/>
<path d="m227.96 207.34c-2.8731 0.22937-4.3664-2.5935-5.0234-6.9934 2.725 4.0546 5.2038 2.7907 5.0234 6.9934z"/>
<path d="m228.99 206.99c3.6938 0.47546 3.1036-3.8252 2.9555-6.9946-1.1325 3.0212-4.137 3.9733-2.9555 6.9946z"/>
<path d="m223.23 205.17c0.29507 2.8074 2.0691 7.6337 4.9255 6.5502 1.1815-3.4477-2.5123-4.137-4.9255-6.5502z"/>
<path d="m229.04 212.02c-1.2806-2.4621 2.9053-3.695 3.7918-6.8954 0.50891 4.5802 0.0824 7.5847-3.7918 6.8954z"/>
<path d="m217.13 182.84c2.2997-2.4765 0.26879-6.4056-0.42051-10.231-0.9354 3.6281-2.5565 8.4353 0.42051 10.231z"/>
<path d="m217.06 187.45c-4.039 0.40976-5.0162-7.8045-5.4272-11.337 1.3129 4.8586 5.9648 7.0794 5.4272 11.337z"/>
<path d="m217.89 187.37c2.854-1.4742 2.191-4.6495 3.0881-7.0352-1.9186 2.928-3.6687 3.3474-3.0881 7.0352z"/>
<path d="m217.09 192.75c-4.2254 0.36197-6.7425-8.7387-6.8739-12.318 1.3129 4.8586 7.3661 7.4999 6.8739 12.318z"/>
<path d="m217.9 192.61c3.9733-0.91389 3.4979-3.4835 2.9018-7.642-1.2651 4.1884-3.4824 3.3008-2.9018 7.642z"/>
<path d="m217.04 198c-4.6459 0.78845-4.3198-6.5609-8.0088-11.893 3.1909 3.9602 8.9358 8.9502 8.0088 11.893z"/>
<path d="m218.09 197.75c3.5074 0.10154 3.8503-5.1787 3.6556-7.3207-0.80638 2.1336-4.9302 4.1597-3.6556 7.3207z"/>
<path d="m209.78 192.34c1.7418 5.6542 4.2158 11.32 7.2586 10.89 1.461-3.2148-2.8862-3.6245-7.2586-10.89z"/>
<path d="m218.14 202.4c-1.2806-2.4621 2.9053-3.695 3.7918-6.8954 0.50891 4.5802 0.0824 7.5847-3.7918 6.8954z"/>
<path d="m210.98 198.8c2.4872 5.0939 3.609 10.948 7.0244 10.097 1.2747-3.9614-3.7714-4.7905-7.0244-10.097z"/>
<path d="m218.71 207.93c-1.467-2.6951 2.719-3.6484 3.7452-7.3625 0.5555 4.861 0.0358 8.3314-3.7452 7.3625z"/>
<path d="m225.87 173.45c2.4514 0.66302 5.0222-2.0894 4.131-6.2085-2.8014 0.69766-4.0868 3.241-4.131 6.2085z"/>
<path d="m218.03 171.39c0.21384 1.1588 1.6235 1.2639 1.2137-0.37272-0.34166-1.3284-0.4002-2.3271 0-3.4071 0.54834-1.3535 0.36556-3.658-0.0466-4.6196-0.41573-1.0154-1.7931-0.42051-1.2137 0.37392 0.63793 0.92106 0.67138 2.8372 0.23295 3.732-0.577 1.3212-0.4205 3.075-0.18636 4.2935z"/>
<path d="m240.9 187.31c-0.94705 1.3932-2.8812 0.54113-1.4078-1.3724 1.2073-1.5486 2.9282-2.8138 3.0552-4.4136 0.10028-2.0286 1.2909-5.1066 2.3726-6.1447 1.1177-1.106 2.4089 0.44989 1.2142 1.1874-1.3426 0.87203-2.2147 4.4568-2.1853 5.836-0.0453 2.0013-2.0413 3.447-3.0489 4.9072z"/>
<path d="m237.92 185.07c-0.94705 1.3932-2.4566 0.58456-1.6013-1.6522 0.72225-1.5486 0.79972-3.4676 1.6042-4.6 1.125-1.7165 3.0307-3.1471 4.1125-4.1853 1.1177-1.106 2.0456-0.0402 1.0207 0.90749-1.2445 1.2453-2.5947 2.7953-3.345 3.9693-1.3993 2.2808-0.78335 4.1004-1.7909 5.5607z"/>
<path d="m222.18 177.86c-0.11229 1.9667 1.4706 2.4433 1.4001-0.40889-0.0717-2.9777-2.179-5.702-0.88642-10.235 0.67975-2.2176 0.69169-6.2814 0.27955-8.4413-0.36198-2.1423-1.8863-0.74253-1.3069 0.92566 0.63793 1.9341-0.11946 5.6442-0.60687 7.5106-1.4634 5.4335 1.2066 8.0801 1.1206 10.649z"/>
<path d="m226.5 166.98c-0.23238 1.8098-1.7642 1.974-1.319-0.58213 0.37128-2.0748 0.43489-3.6346 0-5.3213-0.59586-2.114-0.39724-5.7131 0.0506-7.2151 0.45176-1.5859 1.9486-0.65676 1.319 0.584-0.69323 1.4385-0.72958 4.4313-0.25315 5.8288 0.62702 2.0636 0.45696 4.8026 0.20252 6.7057z"/>
<path d="m210.94 204c0.75806 0.90214 2.0358 0.29761 0.87149-0.92336-0.95298-0.98655-0.63931-1.2979-1.22-2.4999-0.57427-1.343-0.54434-2.084-1.2375-3.0436-0.61297-0.91033-1.535 0.0184-0.91733 0.78454 0.77539 0.90604 0.56133 1.5743 1.0356 2.4508 0.87626 1.4999 0.66261 2.2875 1.4678 3.2315z"/>
<path d="m231.34 228.61c2.4394 1.1994 4.2911 4.1955 4.413 6.6361 0.20667 2.8086 0.61165 5.1799 1.8732 7.1761-2.0082-0.55909-2.9698-3.7595-3.2554-6.8249-0.2891-3.1729-1.9986-4.5491-3.0308-6.9874z"/>
<path d="m236.42 234.49c1.688 3.1159 4.0486 4.3044 4.1692 6.6167 0.2045 2.661 0.40664 2.7968 1.1277 5.4136-1.9871-0.5297-2.4871-0.70287-3.0238-4.6847-0.33098-2.7979-2.571-4.7718-2.2732-7.3456z"/>
<path stroke="none" d="m288.97 263.32c0.94853 1.7884 2.038 4.5109 4.0128 4.0128 0.0311-1.369-2.1312-2.3176-4.0128-4.0128z"/>
<path stroke="none" d="m291.91 263.93c3.8353 1.5721 7.1472 1.1839 7.5598 3.5946-3.598 0.38826-4.9137-1.0895-7.5598-3.5946z"/>
<path stroke="none" d="m275.85 251.24c2.5828 2.1157 4.2588 4.5312 5.0401 7.6528 0.81474 2.9077 1.9604 5.2265 3.6412 7.8403-2.7381-1.8672-4.4596-4.407-5.3209-7.4676-0.7562-3.0081-1.6486-5.2564-3.3605-8.0255z"/>
<path stroke="none" d="m279.03 251.23c2.7692 2.2101 5.3794 4.7188 6.1607 7.8403 0.81474 2.9077 1.3069 5.1333 3.1741 8.0267-2.9244-1.8672-4.0856-4.6877-4.947-7.7483-0.7562-3.0069-2.4896-5.2552-4.3879-8.1187z"/>
<path stroke="none" d="m288.17 258.47c-0.0765-0.54594 0.29746-1.0226 0.74664-1.166 0.87446-0.32733 1.7454-0.59373 2.6126-0.83982 0.98556-0.23296 1.5375 0.47068 1.5411 0.933 0.005 0.76934 0.0406 1.4228 0 2.0058-0.0538 0.72634-0.19234 0.78009-0.65347 0.88761-0.73827 0.12424-1.6844 0.25087-2.4263 0.74664-0.58776 0.36078-1.1528 0.0753-1.4467-0.55908-0.18994-0.48502-0.29387-1.4336-0.37391-2.0082z"/>
<path stroke="none" d="m298.8 258.47c0.0683-0.54594-0.21986-1.0692-0.62115-1.2126-0.78124-0.32732-1.5593-0.40736-2.38-0.37391-0.91144-0.0143-1.1409 0.19114-1.1441 0.65346-0.004 0.76934-0.0363 1.516 0 2.099 0.048 0.72634 0.032 0.78009 0.44398 0.88761 0.65957 0.12424 1.7845 0.15769 2.4472 0.65346 0.5251 0.36078 1.1238 0.0753 1.1526-0.60568-0.0128-0.51368 0.0299-1.5267 0.10139-2.1013z"/>
</g>
<use x="-600" xlink:href="#c" transform="scale(-1,1)"/>
<g stroke="none">
<path d="m328.54 286.65c0.0466 1.1815 0.18756 2.1312 0.88761 3.0797-4.0761-1.633-9.8306-0.75859-13.767 1.074-1.7561 0.83863-3.8802-0.95809-1.8206-2.6604 2.9292-2.3737 9.7063-1.0274 14.7-1.4933zm-57.505-0.0621c0.0573 1.1134-0.0717 2.1336-0.48144 3.106 4.4309-1.8349 9.1879-0.3106 13.664 1.4945 3.0774 1.2723 3.3258-0.93061 2.7823-1.6928-0.9342-1.3523-2.7417-2.8372-5.0282-2.8695-1.522-0.0215-7.3816-0.0741-10.937-0.0382zm3.7404-21.642c-1.2364-0.5328-2.6724-0.0203-3.9602 1.3356-4.3269 4.2397-9.4041 8.3707-13.502 11.584-1.5291 1.3284-3.0917 3.7117 3.431 6.0938 0.23654 0.0896 4.9912 1.8517 8.004 1.964 1.2305-0.0346 1.2269 1.8027 0.99871 2.2925-0.51966 0.9784-0.14336 1.3523-1.1934 2.2937-1.0943 0.92345 0.11707 2.1193 0.9772 1.3069 3.6723-3.1884 9.6275-1.148 15.366 0.71797 1.3559 0.37511 3.8371 0.26999 3.8156-1.6008 0.0239-2.038 1.5004-3.4787 2.4036-3.5313 2.3427 0.40617 13.919 0.53519 17.485 0.10154 2.0786-0.26998 2.2041 2.848 3.3163 4.0773 0.76695 0.81473 3.7189 1.031 5.7426 0.13738 4.0008-1.8588 10.097-1.8588 12.582-0.0824 1.0214 0.7777 1.8278 0.14694 1.2472-0.64271-0.74784-1.0799-0.73112-1.5805-1.1026-2.4334-0.933-1.8983-0.18875-2.363 0.78965-2.5004 11.054-1.4252 14.582-5.1966 11.202-8.2716-4.364-3.8276-9.2225-7.6755-13.408-12.198-1.1349-1.1994-1.8851-1.6808-4.2469-0.69885-7.2215 3.2888-16.388 5.6864-25.358 5.862-8.3469 0.0717-19.824-3.7894-24.589-5.8071z"/>
<path d="m326.62 265.54c-0.58023 0.0578-1.1972 0.23826-1.6562 0.40625-8.921 3.1336-17.117 5.328-25.656 5.3125-8.3351-0.0155-17.066-2.3091-24.906-5.5312-0.44624-0.19053-0.95981-0.16084-1.4688-0.0312-0.50894 0.12959-1.0125 0.36576-1.3438 0.6875-3.6409 3.6266-7.5824 7.1483-11.812 10.344-0.63909 0.48801-0.53496 1.7307 0.5 2.1562h0.0312c8.3042 2.9793 16.412 8.5315 39.625 8.3125 23.433-0.22135 31.746-5.64 39.188-8.125 0.52464-0.19981 1.0644-0.4994 1.3125-0.96875 0.12404-0.23467 0.15766-0.52598 0.0625-0.8125-0.0952-0.28652-0.28357-0.55445-0.625-0.84375h-0.0312c-4.2235-3.4524-8.7488-6.2064-11.719-10.406-0.33382-0.47902-0.91977-0.55785-1.5-0.5zm0.0312 0.4375c0.50718-0.0506 0.89476 0.027 1.0938 0.3125 3.0414 4.3011 7.621 7.0738 11.812 10.5 0.30008 0.25426 0.44154 0.48023 0.5 0.65625 0.0585 0.17602 0.0438 0.29557-0.0312 0.4375-0.15003 0.28386-0.58962 0.56991-1.0625 0.75-7.534 2.5157-15.668 7.9043-39.031 8.125-23.115 0.21804-31.094-5.3023-39.469-8.3125-0.75458-0.31029-0.68706-1.1606-0.40625-1.375 4.2421-3.2062 8.227-6.7414 11.875-10.375 0.25052-0.24332 0.65266-0.45018 1.0938-0.5625 0.44109-0.11232 0.91238-0.13081 1.2188 0 7.8791 3.2384 16.613 5.5781 25.031 5.5938 8.6179 0.0156 16.903-2.2032 25.844-5.3438 0.44524-0.16293 1.0241-0.35569 1.5312-0.40625z" fill="#bd6b00"/>
<path d="m269.71 114.56c-0.0681-1.3788 2.0691-1.4841 1.8242 0.41202-0.313 2.3623 4.4583 8.342 4.8538 12.029 0.2652 2.4726-1.4527 4.6371-3.1538 5.9841-2.0858 1.6157-5.2934 1.3935-6.7938 0.46662-0.90792-0.73075-1.7358-3.2334-1.056-4.224 0.24012-0.33342 1.3272 3.673 3.7213 3.6574 3.2578-0.021 5.8967-2.4682 5.9934-4.6508 0.16725-3.8014-5.3292-9.8095-5.389-13.675z"/>
<path d="m279.24 123.95c0.53878-0.38503 1.3989 1.2959 0.79204 1.716-0.50533 0.33652-1.4921-1.2493-0.79204-1.716z"/>
<path d="m280.69 120.54c-0.27237 0.13212-0.81354-0.0555-0.65226-0.28671 0.76217-1.0889 2.3869-2.7279 3.5648-3.3 0.36198-0.17585 0.99513 0.46303 0.77651 0.77602-0.70483 1.0071-2.4203 2.1949-3.689 2.8107z"/>
<path d="m293.28 110.55c0.30224-0.63089 2.1169-1.3441 2.5792-1.7707 0.42767-0.43783 0.63195 0.37046 0.44917 0.75202-0.30224 0.63052-1.8684 1.6954-2.5553 1.724-0.36914 0.0154-0.65585-0.32422-0.47307-0.7053z"/>
<path d="m297.59 110.75c0.39304-1.1074 1.6605-2.7861 2.5326-3.3387 0.44799-0.28336 1.252-0.0605 1.1014 0.364-0.3333 0.93958-1.8839 2.5812-2.9268 3.3546-0.31657 0.28169-0.79801-0.12328-0.70722-0.37989z"/>
<path d="m293.9 113.52c-0.26282 0.13153-0.12066 0.69133 0.1326 0.77591 0.53878 0.17943 1.5196 0.21443 1.964-0.0307 0.6451-0.39757 0.35122-2.8442-0.5125-1.5372-0.57939 0.80625-1.0023 0.54726-1.5841 0.79204z"/>
<path d="m286.61 119.14c-1.3177-1.0262 0.3548-2.4639 1.7322-1.4601 2.6831 2.024-4.0032 9.7781-7.6408 13.403-0.66541 0.70984-1.2496-1.078-0.39662-1.848 2.6079-2.2121 5.0497-4.8551 6.7472-7.5854 0.32733-0.52563 0.64032-1.6587-0.44201-2.5092z"/>
<path d="m301.88 112.47c0.16366-0.9821-1.5889 0.0206-1.6211-1.2814-0.0167-0.68906 1.915-1.1725 2.7226-0.37989 1.3643 1.384 0.34406 3.7184-1.9245 3.8653-1.8911 0.0835-5.0461 2.685-4.5659 3.2319 0.54595 0.67532 5.4499 1.1213 8.3015 0.67472 1.7657-0.24776 1.3953 1.3314-0.41334 1.5452-1.7477 0.20142-3.1717 0.0147-4.8048 0.52803-1.9222 0.54917-2.7608 3.1292-3.8288 4.0921-0.23773 0.16737-0.87925-0.84591-0.63554-1.2268 0.76934-1.2032 1.9962-3.0449 3.3462-3.572 0.85176-0.34501-2.3486-0.45384-3.37-0.74533-0.80995-0.24418-0.57461-1.2735-0.26401-1.848 0.41215-0.89513 3.4286-3.916 4.6447-3.8666 1.1421 0.0483 2.2997-0.2842 2.4132-1.0173z"/>
<path d="m306.96 112.73c0.56745-0.50055 0.85775-1.3381 1.4527-1.848 0.32613-0.32661 0.84699 0.0647 0.75978 0.85332-0.0729 0.62084-0.90672 1.1559-1.467 1.6227-0.45635 0.34178-0.98676-0.39638-0.74545-0.62802z"/>
<path d="m313.43 110.43c0.8446-0.0933 1.0548 1.5372 0.13141 1.8012-0.56028 0.18672-1.0501-1.7051-0.13141-1.8012z"/>
<path d="m311.3 115.47c-0.0131 1.4037 0.67974 1.2746 2.0022 1.2266 1.283-0.0483 2.412 0.0331 2.4072-1.2346-0.006-1.3141-0.72753-2.4637-0.93898-1.5694-0.18636 0.84006-0.33449 2.2154-0.8231 1.6161-0.46112-0.515-0.27834-0.6279-1.0716 0.2173-0.43962 0.46579-0.48979-0.22578-0.75381-0.66003-0.18397-0.2572-0.8207 0.20775-0.8219 0.40402z"/>
<path d="m302.08 122.63c-0.31538 1.8576-0.0263 4.4587 0.92464 4.4881 1.1755 0.0382 3.6078-4.0615 4.7594-6.188 0.6905-1.1867 1.8768-1.3942 1.3822-0.15602-0.74903 1.9104-0.68213 5.9976-0.0239 7.1987 0.35361 0.64689 2.9639-0.59325 3.3856-1.5147 0.76695-1.6746 0.14335-4.7616 0.41214-6.6468 0.13022-1.2376 1.2627-1.4963 1.203-0.34919-0.11229 2.0524-0.30702 5.8151-0.16247 7.524 0.086 0.98234 2.8946 2.432 3.3462-0.54272 0.23774-1.8724 1.2018-3.7189-0.0466-5.7933-0.77411-1.297 1.1361-1.1345 2.1659 0.63733 0.72036 1.2058-0.60687 3.2015-0.56028 4.744 0.11947 2.3731-1.7262 3.7214-3.0654 3.7494-1.197 0.0241-1.9771-1.4462-2.9579-1.4668-1.0883-0.0694-2.2065 1.693-3.106 1.6307-3.4859-0.23821-1.6402-5.3335-2.7022-5.396-1.1815-0.0695-2.5744 4.994-4.0295 4.8134-1.4348-0.17227-2.9197-4.1268-2.3224-5.8 0.53998-1.5567 1.5578-1.9216 1.3977-0.93204z"/>
<path d="m318.96 114.6c-1.7012-1.0376 0.10752-3.7361 0.93898-2.788 1.6056 1.9229 3.2243 6.487 4.3556 6.8641 0.71678 0.23905 0.68333-3.3736 1.1886-5.016 0.32614-1.2133 1.7931-0.81724 1.5124 0.73733-0.0956 0.51906-1.9162 6.4213-1.7764 6.6546 1.2615 2.522 2.5099 5.0812 3.2996 7.788 0.32613 1.1667-1.0752 0.38097-1.2424 0.1387-0.89478-1.3375-2.4609-6.452-2.4609-6.2187-0.72036 3.598-0.89 4.6599-1.6546 7.7174-0.23295 0.97995-1.6749 0.80147-1.3499-0.92393 0.31299-1.4182 2.3749-8.3926 2.259-8.5947-1.6211-2.8616-3.1036-5.1252-5.07-6.3588z"/>
<path d="m322.03 131.2c-0.47427-0.0538-1.2102 1.055 1.1516 1.4906 3.1562 0.57127 6.6111-0.49171 7.6695-3.5866 1.2125-3.6865 2.0141-7.1765 2.6473-8.4934 0.79084-1.5347 1.8027-1.4107 1.056-3.6506-0.52683-1.6123-1.51-1.1258-1.7167-0.26402-0.55192 2.3498-2.6461 9.9521-3.2996 11.352-1.2328 2.5547-3.7177 3.5654-7.5082 3.152z"/>
<path d="m328.35 119.07c-0.33808-0.72537-1.1265-0.1639-0.98557 0.62933 0.0836 0.71702 0.66541 1.1068 1.2496 1.0866 0.69169-0.0239 2.1551 0.0232 2.1587-1.1253 0.002-0.80685-0.63196-1.481-1.1026-0.59063-0.45037 0.80614-1.0298 0.72168-1.3201 0z"/>
<path d="m329.14 116.03c-0.24251 0.16833-0.0251 1.0656 0.26401 1.0559 1.031-0.0344 2.492-0.36328 3.2745-0.90791 0.22937-0.15937 0.1338-0.70161-0.19233-0.69073-0.99393 0.0331-2.5756 0.007-3.3462 0.54271z"/>
<path d="m337.9 118.29c0.74664-1.1667 2.8062-1.2855 2.0655 0.38001-0.52444 1.1476-5.6518 11.055-6.3518 12.315-0.76337 1.4167-1.3882 0.71522-0.8458-0.38802 0.72992-1.4197 4.898-11.962 5.1321-12.307z"/>
<path d="m330.18 133.04c-0.21862-0.78845-1.4419-1.9543-1.3045 0.1547 0.2437 3.8285 5.5036 2.6184 7.0961 1.2577 1.4455-1.2811 0.19114 4.3222 2.1121 4.9218 1.0584 0.33927 3.0511-1.105 4.0307-2.3761 2.7166-3.5249 4.4452-8.5779 7.0579-12.058 0.98676-1.3608-0.53997-2.3322-1.1576-1.2493-2.2722 3.8098-5.0939 11.585-8.176 13.604-2.5123 1.608-1.768-2.0703-1.8553-3.1753-0.1099-0.81068-1.0979-2.0034-2.4155-0.9084-0.92106 0.71964-2.3522 1.305-3.6484 1.1879-0.75142-0.0418-1.3858-0.0287-1.7394-1.3586z"/>
<path d="m339.57 125.93c0.0275-0.21611-1.1122-0.31419-1.056 0.79204 0.0394 0.81891 1.019 1.0412 1.1875 0.92404 1.5411-1.1208-0.32733-0.56183-0.13141-1.7161z"/>
<path d="m337.33 130.42c-0.30343 0.071-0.58178 1.0397 0.13261 1.0946 0.65346 0.0466 3.2135-0.22817 3.9208-0.18672 0.45755-0.0172 0.63196-0.89191-0.34883-0.84531-1.1898 0.0596-2.7536-0.23857-3.7045-0.0626z"/>
<path d="m275.37 113.76c0.40617 0.0194 1.5196 1.4621 1.4467 1.9133-0.0502 0.21276-1.191-0.0317-1.5399-0.32661-0.25804-0.21838-0.15411-1.5984 0.0932-1.5867zm-5.3687 10.452c-1.0178 0.55514 0.16128 1.651 0.92345 1.1879 2.8611-1.8525 7.1546-3.7984 8.0518-7.4681 0.2879-1.2429 1.4431-3.1481 2.5398-3.5732 1.0596-0.41083 2.5983 1.9171 3.603 0.0853 0.58895-1.0471 2.6533 0.68715 3.1514-0.43329 0.60687-1.3533 0.31778-2.0984 0.34286-3.3946-0.0442-0.84914-0.69288-1.1028-1.1636 0.27202-0.2449 0.62252 0.043 1.251-0.1565 1.576-0.15172 0.24705-0.62479 0.48609-0.89955 0.28002-0.25327-0.18995-0.0777-0.72036-0.68453-0.95475-0.23534-0.1179-0.61284-0.21598-0.7765 0.0853-0.72036 1.2847-1.1194 2.4826-2.1276 1.1174-0.89836-1.176-1.3535-3.2088-2.0118-0.42672-0.23653 0.98187-1.7286 2.4067-2.6091 2.4067-1.0991 0-0.8231-2.8938-3.2374-2.4534-1.2412 0.26473-1.1552 2.6396-0.97004 3.5175 0.30463 1.22 3.9315 0.34369 3.7511 1.1412-0.62001 2.7712-4.4667 5.4053-7.7268 7.0348z"/>
<path d="m247.3 137.42c-0.15411 0.46352 0.46232 1.7227 1.1014 1.8158 0.62718 0.0466 0.94734-1.3595 0.74545-1.8158-0.14933-0.33569-1.737-0.32852-1.8469 0z"/>
<path d="m250.63 142.3c-0.40259-0.43365-1.5889 0.72992-0.62957 1.553 0.53877 0.43604 2.5123 1.0692 3.0523 0.14814 0.73111-1.1851-0.72037-5.4881-0.0777-6.0568 0.50175-0.4444 2.8277 2.8743 3.9757 3.1132 2.6975 0.37392 2.05-4.6184 4.9565-4.2792 1.9807 0.26402 2.1981-2.2113 1.9222-3.7568-0.221-1.483-2.6222-3.6238-3.726-4.5814-1.4527-1.2093-2.1002 0.89156-1.1886 1.5841 1.1731 0.93946 3.2362 2.8371 3.5648 4.0924 0.1553 0.59253-1.4336 1.7704-2.0189 1.4515-1.3511-0.73708-2.6079-3.898-3.7894-4.62-0.40259-0.24586-1.3929 0.30977-0.91628 1.296 0.53639 1.0566 2.9053 2.6932 3.0439 3.8209 0.12543 1.0286-1.0561 3.253-1.8314 3.253-0.85297 0-3.0272-2.6879-3.7057-3.953-0.33928-0.60567-1.5148-0.54714-1.6378 0.28911-0.19473 1.2556 0.18158 3.9124 0.48143 5.5586 0.23774 1.559-0.87805 1.6378-1.4754 1.0871z"/>
<path d="m246.56 133.73c-0.33927 0.38359 0.79204 1.1338 1.0166 0.9391 0.43604-0.37751 2.1288-2.3073 1.8027-2.9818-0.29029-0.6015-2.6186-1.9187-2.9973-1.2666-0.70244 1.1287 2.1945 1.6344 1.7406 1.9653-0.2234 0.12818-1.0202 0.67855-1.5626 1.344z"/>
<path d="m250.73 125.27s0.72752 2.4891 1.3201 1.4521c0.47905-0.71869-1.3201-1.4521-1.3201-1.4521z"/>
<path d="m251.92 129.23c-0.2664 0.14563-1.0166 0.73996-0.52802 1.0561 0.77292 0.45718 2.8755 0.81915 2.4215-0.67605-0.27596-0.88068 3.1706 0.0245 2.3307-2.36-0.21981-0.65991-1.2591-1.6123-1.7704-1.7468-0.32494-0.0855-1.4288 0.5199-0.73828 0.85344 0.50413 0.26103 2.0249 1.1546 1.4598 1.7399-0.64152 0.61225-1.0883-0.27477-1.8863-0.13189-0.4014 0.0763-0.13977 1.2186-0.36556 1.5294-0.12663 0.17334-0.70603-0.3824-0.92345-0.26402z"/>
<path d="m257.4 119.77c-0.43485 0.2173-1.2138 1.3963-1.2424 1.9414-0.0155 0.2909 0.30344 0.69074 0.55192 0.56662 0.45635-0.22794 1.1612-1.3438 1.1875-1.856 0.0167-0.32386-0.22698-0.78678-0.49696-0.65203z"/>
<path d="m260.24 119.46c-0.83982-1.0267 0.8912-2.5509 1.6701-0.49601 0.47069 1.2891 5.4881 7.8921 6.5143 10.132 0.72634 1.516-0.0263 2.1423-0.92464 1.056-2.541-3.242-4.6256-7.2831-7.2598-10.692z"/>
<path d="m265.39 119.6c0.89478-0.96932 2.7214-2.9492 2.2292-4.0533-0.3775-0.94961-1.4873-0.85524-1.6773-0.63614-1.0859 1.2962 0.77173 0.97087 0.50413 1.4135-0.55311 1.0384-1.1038 1.61-1.3894 2.608-0.0669 0.23403 0.17203 0.84257 0.3333 0.66792z"/>
<path d="m343.17 122.84c-0.6427-0.52062 0.63196-3.044 1.4945-2.0534 2.3678 2.74 3.468 11.636 4.1525 18.294 0 0-1.0644 0.8876-1.0728 0.74664 0-3.5468-1.4252-14.397-4.5742-16.987z"/>
<path d="m290.07 114.18c-0.76575-1.7604 1.1492-2.412 1.436-1.1572 1.3308 5.7827 4.5169 10.161 6.942 14.093 0.72992 1.2293 0.14455 1.9618-1.6307 0.83063-1.2293-0.84281-2.4777-3.9162-3.0821-4.0374-1.0943-0.20368-3.7129 4.9927-9.0696 3.5094-1.3858-0.38718-1.2938-4.5079-1.3201-6.328-0.0585-0.85332 0.88402-1.0787 0.91628 0.0853 0.049 1.6781-0.002 5.164 2.1444 5.2813 1.7501 0.0978 5.6267-2.3765 6.4438-4.3107 0.72753-1.9887-1.952-5.9413-2.7799-7.9667z"/>
<path d="m344.61 138.38c0.42767-1.191 6.1141-10.735 6.8607-12.835 0.38228-1.0126 2.0141 1.7366 0.42051 3.2201-1.4001 1.26-5.5311 8.0342-6.3017 10.408-0.3548 1.0716-1.4312 0.56148-0.97959-0.79323z"/>
<path d="m354.28 129.28c1.0501-3.9348 3.5934 0.60699 1.3535 2.8469-3.4584 3.3874-4.5002 9.8539-9.9871 10.827-1.479 0.31777-4.082-0.66541-4.8538-1.2137-0.30105-0.21384 0.19472-1.6187 1.1194-0.93301 1.3368 1.0441 4.0976 1.2794 5.555 0.0932 3.118-3.0606 5.6566-7.1136 6.813-11.621z"/>
<path d="m297.27 142.02c-0.24729 0.28432-1.0035 0.23773-1.0716 0.63674-0.29747 1.4801 0 2.2304-0.32614 3.6556-0.31179 1.3643-1.2591 1.4156-1.1946 0.30343 0.086-1.4419 1.2747-3.4776 0.43484-3.6173-0.55909-0.13141-0.99035-0.87925-0.41215-1.2484 1.0919-0.75739 1.6784-0.64151 2.4287-0.41334 0.26162 0.08 0.32852 0.46471 0.14097 0.68333z"/>
<path d="m296.5 140.09c-1.4479 1.2663-2.7906 1.7836-4.1227 3.3844-0.54475 0.65585-0.52922 1.5697-0.85416 2.406-0.32613 0.88761-1.375 1.062-1.7 0.87685-0.54356-0.35719-0.46471-2.0034-1.0716-1.117-0.51489 0.81593-0.84699 1.9401-1.608 1.9257-0.68811-0.0143-1.9867-1.4216-1.3284-1.4897 2.2519-0.23057 2.2244-2.0332 3.0678-2.1515 0.94615-0.12663 1.0083 1.4885 1.5924 1.1648 0.45874-0.23534 0.67497-2.1169 1.1731-2.6246 1.5267-1.5602 2.7345-2.3845 4.2923-3.5313 0.78845-0.62837 1.3511 0.50533 0.55909 1.1564z"/>
<path d="m301.78 144.94c-1.1588 0.23415-0.96168 1.7238-0.62121 1.909 0.56148 0.26163 1.43 0.37153 1.7549-1.3416 0.15172-0.70363 0.2891 3.4979 1.8314 1.8792 0.88761-0.98079 3.0869 0.17799 4.008-1.056 0.65943-0.82191 0.86252-1.3953 0.34883-2.6091-0.14933-0.36914-1.0525-0.18756-1.0011 0.70841 0.0454 0.755-0.53519 1.6868-1.2902 1.5279-0.36675-0.0669 0.20667-1.8469-0.16127-2.3295-0.20309-0.26521-0.5113-0.23654-0.71319 0.0382-0.28313 0.38467 0.28432 2.0906-0.6463 2.3152-1.1743 0.27118-0.55908-1.1409-1.056-1.3989-1.5984-0.80637-1.7525 0.20906-2.4538 0.35719z"/>
<path d="m310.83 142.08c0.84938-0.23892 0.58418-0.24012 1.921-1.3344 0.52086-0.39423 0.6236 0.75978 0.56865 1.2161-0.0968 0.77532-1.0178 0.22818-1.3033 0.91031-0.41812 0.88641-0.24848 2.9483-0.38826 3.7882-0.0956 0.43126-0.78726 0.39423-0.85296 0.0538-0.19831-1.0238 0.13977-2.0261 0.10752-3.3067-0.0108-0.43484-0.63316-1.117-0.0526-1.3272z"/>
<path d="m305.83 139.46c-0.20548 0.92655-0.18995 1.6899-0.18995 2.3255 0.0466 0.51369 0.98557 0.18278 0.98199 0.11707-0.0466-0.81354 0.13857-1.9389-0.10155-2.2526-0.13021-0.16928-0.64271-0.36484-0.69049-0.18995z"/>
<path d="m299.54 130.19-1.4584 5.5938-2.029-3.75v3.8438l-4.375-5.1875 1.5218 5.5625-3.9312-3.3438 2.0924 3.7812-6.9747-4.5 4.4385 5.1875-5.5798-2.75 3.9946 3.375-9.1305-3.4375 8.8135 4.3438c3.2225-1.5882 7.6406-2.5625 12.554-2.5625 4.8962 0 9.3348 0.98435 12.554 2.5625 0.0116 0.006 0.0518-0.006 0.0634 0l8.7501-4.3438-9.0037 3.4688 3.9312-3.4062-5.5164 2.7188 4.375-5.1562-6.9747 4.5 2.0924-3.7812-3.9312 3.3438 1.5218-5.5625-4.375 5.2188 0.0634-3.875-2.029 3.75-1.4584-5.5938z"/>
</g>
</g>
<path d="m291.82 251.63c-0.00001 0.59294-0.0892 1.4489-0.26749 2.5679h-0.41461c-0.00001-0.76234-0.0357-1.3486-0.107-1.7588-0.0669-0.41014-0.20062-0.89831-0.40124-1.4645-0.16495-0.47701-0.34551-0.88271-0.54166-1.2171-0.19617-0.33881-0.51047-0.78909-0.94291-1.3508l0.82922-2.0463c0.3834 0.4904 0.65535 0.86712 0.81585 1.1301 0.18278 0.30317 0.35442 0.68434 0.51492 1.1435 0.16495 0.4592 0.292 0.94068 0.38117 1.4444 0.0892 0.50378 0.13374 1.0209 0.13375 1.5514" fill="#fff"/>
<path d="m298.32 247.67c-0.00001 0.62415-0.11815 1.0923-0.35443 1.4043-0.23628 0.31208-0.63975 0.53499-1.2104 0.66873 0.16495 0.57957 0.27417 1.0321 0.32768 1.3575 0.0579 0.32546 0.0869 0.6888 0.0869 1.09 0 0.25858-0.0156 0.53498-0.0468 0.82922-0.0268 0.29424-0.078 0.69102-0.15381 1.1903h-0.37448c-0.00001-0.44582-0.0245-0.82922-0.0736-1.1502-0.0446-0.32544-0.11369-0.63083-0.20731-0.91615-0.0223-0.0713-0.14044-0.38563-0.35442-0.94291-0.20954-0.56172-0.41908-1.0276-0.62861-1.3976-0.20507-0.37448-0.54167-0.8894-1.0098-1.5448l0.64197-1.9259c0.33882 0.48595 0.63529 0.82254 0.88941 1.0098 0.25411 0.1828 0.55504 0.27419 0.90278 0.27418 0.75788 0.00001 1.1368-0.41014 1.1368-1.2304h0.38786c0 0.2675 0.007 0.49041 0.0201 0.66872 0.0134 0.17388 0.0201 0.37896 0.0201 0.61523" fill="#fff"/>
<path d="m304.29 252.19-0.48148 2.0062c-0.30316-0.0847-0.55059-0.32321-0.74229-0.71553-0.1605-0.32545-0.27641-0.73783-0.34774-1.2372-0.0669-0.49931-0.10031-1.0165-0.1003-1.5514-0.4057 0.107-0.72669 0.1605-0.96297 0.16049-0.46811 0.00001-0.85597-0.12259-1.1636-0.3678-0.30316-0.24965-0.45474-0.56395-0.45474-0.9429 0-0.81584 0.20954-1.5492 0.62861-2.2001 0.42352-0.65534 0.90054-0.98301 1.4311-0.98302 0.41015 0.00001 0.69547 0.11592 0.85597 0.34773 0.17832 0.25413 0.28755 0.54391 0.32767 0.86935 0.0401 0.32545 0.0602 0.95405 0.0602 1.8858-0.00001 0.83369 0.0669 1.4222 0.20062 1.7654 0.10699 0.26749 0.35665 0.58848 0.74897 0.96297m-1.8056-3.3303c-0.0803-0.50822-0.34774-0.76234-0.80247-0.76235-0.19616 0.00001-0.37672 0.0535-0.54167 0.1605s-0.24743 0.20062-0.24743 0.28086c0 0.2675 0.32099 0.40124 0.96297 0.40124 0.20507 0 0.4146-0.0267 0.6286-0.0802" fill="#fff"/>
<path d="m310.61 251.69-0.24074 2.4342c-0.47703-0.33436-0.91839-0.93844-1.3241-1.8122-0.42353-0.91392-0.85151-2.209-1.284-3.8853-0.37003 1.6139-0.67542 2.7975-0.91615 3.5509-0.23629 0.74898-0.47034 1.2795-0.70217 1.5916-0.15603 0.20953-0.40569 0.4213-0.74897 0.63529l0.0535-2.3272c0.44136-0.60185 0.7512-1.061 0.92953-1.3776 0.26303-0.46811 0.47925-1.0142 0.64866-1.6384 0.17387-0.6286 0.3299-1.469 0.46811-2.5211h0.44136c0.27194 1.0566 0.53498 1.897 0.7891 2.5211 0.23627 0.58848 0.51268 1.1079 0.82922 1.5581 0.2229 0.31653 0.57509 0.74006 1.0566 1.2706" fill="#fff"/>
<path d="m328.98 274.65c0.32497 0.38098 0.55329 0.75473 0.68495 1.1212 0.12801 0.36224 0.22048 0.87984 0.27742 1.5528l-0.72521 0.0591c-0.30903-0.60477-0.60962-1.0784-0.90172-1.4208-0.22275-0.26111-0.58253-0.63238-1.0794-1.1138-0.49683-0.48142-1.0047-0.95049-1.5236-1.4072-0.52252-0.46101-1.188-0.99369-1.9966-1.598-0.28364-0.21128-0.4638-0.36187-0.54049-0.45177-0.11319-0.13269-0.20263-0.39415-0.26833-0.78437-0.0693-0.39448-0.1128-0.88494-0.13041-1.4714l2.5326 2.0598c0.95529 0.78652 1.746 1.4811 2.3722 2.0839 0.48224 0.46431 0.91504 0.92119 1.2984 1.3706m-8.9817-5.4124-0.15174 1.8623-2.9822-0.0806 0.22403-1.9006 2.9099 0.11878m7.8445 8.3364-7.1052 2.1647-1.3076-1.8069 6.1428-1.8715c-0.27881-0.38529-0.49459-0.65466-0.64729-0.80813-0.23728-0.23579-0.50854-0.4207-0.81378-0.55472-0.0197 0.34113-0.16097 0.6409-0.42377 0.89933-0.26282 0.25845-0.60239 0.45109-1.0187 0.57793-0.54602 0.16636-1.0917 0.18937-1.6369 0.069-0.54524-0.12034-0.94606-0.35767-1.2024-0.71196-0.37818-0.52257-0.58114-1.2174-0.60891-2.0846-0.0312-0.95257 0.22954-1.5131 0.78239-1.6815 0.71666-0.21834 1.6856-0.019 2.9069 0.59805 1.2212 0.61706 2.1588 1.3773 2.8126 2.2808l2.12 2.9295m-5.457-3.7938c-0.33492-0.15199-0.60288-0.24601-0.8039-0.28207-0.1974-0.0425-0.378-0.0389-0.54181 0.011-0.20476 0.0624-0.34578 0.17832-0.42306 0.34779-0.0773 0.16949-0.0582 0.33394 0.0571 0.49337 0.0737 0.10186 0.19763 0.16951 0.37177 0.20293 0.17775 0.0269 0.3656 0.0102 0.56352-0.0501 0.15699-0.0478 0.29314-0.12444 0.40847-0.22984 0.11893-0.1119 0.24156-0.27628 0.36786-0.49314m-7.612-1.4544-0.4351 1.8434-2.9552-0.2717 0.44889-1.8622 2.9415 0.29042m7.0047 7.1968-1.5782 0.36205c-0.56162 0.12885-1.0959 0.16839-1.6029 0.11863-0.50697-0.0497-0.98121-0.20821-1.4227-0.47537-0.26101 0.47503-0.71972 0.87346-1.3761 1.1953-0.43524 0.21401-0.94077 0.38707-1.5166 0.51917l-1.1197 0.25686-1.0255-1.882 1.1197-0.25687c0.59006-0.13536 0.99233-0.2484 1.2068-0.33912 0.21909-0.097 0.49354-0.26112 0.82335-0.49247-0.36157-0.22321-0.65323-0.37685-0.87497-0.46091-0.26987-0.099-0.50788-0.12479-0.71405-0.0775-0.0782 0.0179-0.14279 0.0535-0.19377 0.10673-0.0464 0.047-0.0858 0.12867-0.11836 0.24511l-0.49183 0.0661c-0.45495-0.8349-0.5588-1.4805-0.31158-1.9368 0.25182-0.46253 0.85759-0.80388 1.8173-1.0241 0.98816-0.22668 1.8322-0.2776 2.532-0.15275 0.70446 0.11863 1.1761 0.39704 1.4148 0.83524 0.1282 0.23525 0.17671 0.4784 0.14556 0.72944-0.0337 0.24645-0.15614 0.60147-0.36737 1.0651 0.14727 0.0648 0.32005 0.10302 0.51832 0.11461 0.19826 0.0116 0.37559-0.00054 0.53199-0.0364l1.5782-0.36206 1.0255 1.882m-7.5437 1.7549-1.5392 0.2414c-0.85751 0.13449-1.5619 0.003-2.1131-0.3934-0.61288-0.43741-1.1417-1.253-1.5864-2.4466l-0.75738-2.033c-0.17186-0.46128-0.40456-0.80481-0.69812-1.0306-0.14134-0.10869-0.42766-0.25254-0.85894-0.43154l0.52296-1.9696c0.56683 0.31379 1.0036 0.64292 1.3104 0.98741 0.3591 0.40173 0.66356 0.93786 0.91337 1.6084l0.52353 1.4053c0.37027 0.99393 0.72978 1.6674 1.0785 2.0204 0.2764 0.28383 0.5905 0.39815 0.94231 0.34297l1.5391-0.2414 0.72284 1.9403m-6.5774-7.0651-0.99392 1.7499-2.812-0.64929 1.002-1.7654 2.804 0.66485m1.6358 7.9213-7.0124 0.63521-0.42537-1.977 5.8922-0.53374c-0.15305-0.32205-0.36236-0.58714-0.62792-0.79527-0.13913-0.11583-0.44742-0.31021-0.92488-0.58312l0.52396-1.811c0.6487 0.36114 1.1224 0.7579 1.421 1.1903 0.30605 0.43171 0.55448 1.0909 0.74528 1.9776l0.40816 1.897m-5.6298 0.89755c-0.84343-0.028-1.5407-0.0904-2.0917-0.18713-0.55109-0.0967-1.091-0.23959-1.6196-0.42863-0.45261 0.18581-0.85462 0.30471-1.206 0.35671-0.34389 0.0523-0.85848 0.067-1.5437 0.0442l-1.8412-0.0612c-0.50454-0.0168-0.89691-0.11555-1.1771-0.29634-0.28019-0.18078-0.52137-0.47293-0.72355-0.87648-0.4466 0.39667-0.93288 0.67443-1.4588 0.83331-0.44873 0.13694-0.97807 0.19528-1.588 0.17499l-1.6153-0.0537 0.15746-1.9935 1.6153 0.0537c0.7907 0.0263 1.461-0.0959 2.0109-0.36668 0.71498-0.35345 1.1028-0.91373 1.1634-1.6809l0.73973 0.0981c-0.0274 0.15586-0.0566 0.33371-0.0874 0.53354-0.0309 0.19983-0.056 0.4219-0.0753 0.6662-0.0197 0.2492 0.0957 0.46124 0.34614 0.63613 0.25043 0.1749 0.5451 0.26798 0.88397 0.27924l1.3894 0.0462c0.91871 0.0306 1.5804-0.0307 1.9851-0.18384 0.49023-0.18455 0.75696-0.55046 0.80019-1.0977 0.009-0.11727 0.074-0.22044 0.19433-0.30953 0.072-0.0515 0.2177-0.12747 0.43705-0.22796l0.4466-0.2056c0.008 0.0933 0.009 0.22075 0.004 0.38224-0.005 0.15661-0.009 0.25935-0.013 0.3082-0.0212 0.26874-0.10966 0.62343-0.26524 1.0641 0.27166 0.0972 0.57819 0.18334 0.91959 0.25838 0.34136 0.075 0.70273 0.13605 1.0841 0.18302 0.0131-0.16613-0.064-0.38425-0.23145-0.65436-0.16743-0.27011-0.24748-0.45158-0.24013-0.54443 0.01-0.12703 0.0441-0.22387 0.10223-0.29053 0.017-0.0239 0.10579-0.0969 0.26644-0.21895l1.0267-0.81093c0.17899 0.3146 0.29988 0.60031 0.36266 0.85714 0.0707 0.2522 0.0911 0.56641 0.0614 0.94264l-0.21882 2.7704m-10.645-8.1911-1.7712 1.2539-1.3356-0.8244-1.3149 0.9805-1.7572-1.06 1.6777-1.1935 1.4181 0.79248 1.3698-1.0018 1.7134 1.0528m-2.785 7.6352-6.8649-1.1248 0.75327-1.9354 5.7682 0.94517cLine truncated
</svg>

After

Width:  |  Height:  |  Size: 46 KiB

+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="690" height="460" viewBox="0 0 138 92">
<rect width="138" height="92" fill="#fff"/>
<rect width="138" height="36" fill="#000"/>
<g transform="translate(69,36)">
<g id="c3">
<!-- y3 = -y2 = 30*sin(11.25deg)/sqrt(5-4*cos(11.25deg)-sin^2(11.25deg)) -->
<path id="c" d="M-30,0 0,-5.7423716V5.7423716z" fill="#fcd116"/>
<use xlink:href="#c" transform="rotate(22.5)"/>
<use xlink:href="#c" transform="rotate(45)"/>
</g>
<use xlink:href="#c3" transform="rotate(67.5)"/>
<use xlink:href="#c3" transform="rotate(135)"/>
</g>
<rect y="36" width="138" height="20" fill="#0072c6"/>
<path d="M0,0V92H138V0L69,92z" fill="#ce1126"/>
</svg>

After

Width:  |  Height:  |  Size: 754 B

+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">
<clipPath id="c">
<path d="M0,0V150H700V300H600zM600,0H300V350H0V300z"/>
</clipPath>
<rect width="1200" height="600" fill="#00247d"/>
<path d="M0,0 600,300M600,0 0,300" stroke="#fff" stroke-width="60"/>
<path d="M0,0 600,300M600,0 0,300" stroke="#cf142b" stroke-width="40" clip-path="url(#c)"/>
<path d="M300,0V350M0,150H700" stroke="#fff" stroke-width="100"/>
<path d="M300,0V350M0,150H700" stroke="#cf142b" stroke-width="60"/>
<path d="M0,300H600V0H800V400H0z" fill="#00247d"/>
<g>
<path fill="#cc3" d="m780.583,154.039c0,148.827,11.8732,201.675,52.6064,242.479,40.7332,40.8042,56.1659,47.2313,67.5231,53.4827,13.1015-7.21148,28.1971-15.1341,65.1152-52.0521,36.513-36.515,54.173-89.15,54.173-246.452-26.559,11.3712-39.7859,15.1175-63.0119,15.0513-17.202,1.68548-43.7399-9.33789-59.6086-16.5484-10.371,6.60246-25.4152,14.4763-52.4514,15.3604-31.2252,1.30952-41.1191-3.73522-64.3451-11.3217z"/>
<path fill="#fff" d="m787.775,163.438c0,46.0434-2.72184,108.794,7.00639,145.1,9.77001,36.4622,12.0129,41.8034,19.3596,54.5282l171.206-1.27105c10.576-18.3181,11.1098-29.6647,18.9526-58.9348,7.8148-29.1649,9.7886-94.177,10.0167-142.6-17.216,8.72445-39.7613,14.9075-61.6436,12.1948-17.5423-1.2754-33.7513-5.09258-52.6268-15.2637-16.374,9.35261-22.0822,13.6217-49.1184,14.7138-21.0507,0.98975-38.1018,2.61503-63.1522-8.46789z"/>
<path fill="#9cf" d="m814.51,362.056c12.1849,24.4477,69.6325,71.3032,86.433,81.0029,19.168-11.0667,69.8476-57.368,83.9727-81.0029h-170.406z"/>
<path fill="#f90" d="m904.221,231.606c5.41355,12.1396,22.7699,25.5448,27.5414,32.1145-6.07314,6.56934-7.28706,5.85387-6.49064,18.0587,10.5604-10.534,10.7499-11.6322,17.5423-10.0346,14.8794,14.1555,2.66292,44.5571-9.63422,51.1666-12.2936,7.05101-10.0622-0.24417-28.4886,8.59299,8.44836,6.88711,18.237-1.01015,26.2362,1.10047,4.34697,4.91697-2.06648,13.8779,1.31216,22.317,7.06953-0.6489,6.22049-14.2559,7.86595-19.1896,5.16445-18.0757,36.2143-30.6826,37.7931-47.2631,6.54677-2.93012,13.09-0.9165,21.0507,3.34487-3.96455-15.5336-17.0792-15.3664-20.5946-20.2178-8.36767-12.1907-15.7845-26.0981-33.6566-29.7059-13.5672-2.73878-12.5532,0.82385-21.2472-4.83-5.41355-4.01853-21.8612-11.6181-19.2298-5.45416z"/>
<path fill="#f90" d="m860.839,283.106c8.72935-10.2344,13.0534-31.1272,16.9171-38.2184,8.92956,2.05041,8.83312,3.40792,19.7799-2.96497-14.7027-3.98084-15.8096-3.62755-17.5012-10.0994,6.17695-19.1553,40.0786-23.0599,51.953-15.7817,12.2822,7.06894,4.4742,8.596,21.2779,20.0001,2.44044-10.3389-9.45634-14.9009-11.2359-22.6298,2.52932-5.96126,13.8358-4.74122,20.084-11.5316-3.90439-5.6561-16.127,1.41619-21.4712,2.33396-19.1762,4.09085-45.373-16.1931-61.4875-9.77821-5.77578-4.14976-6.96507-10.606-6.73193-19.3072-12.5539,10.5985-6.27225,21.5753-9.12921,26.805-7.39678,12.7485-16.8297,25.4974-11.8265,42.248,3.79803,12.7158,6.62838,10.1968,5.44639,20.1666-1.19785,6.44061-0.56211,23.8553,3.92513,18.7577z"/>
<path fill="#f90" d="m931.763,290.302c-13.7027-1.82835-34.6943,5.45107-43.0585,5.96673-2.77851-8.34642-1.51002-8.96995-12.8934-14.605,4.03197,14.0554,4.9217,14.7758-0.0129,19.5038-20.3904,4.86884-41.4321-20.7724-41.0411-34.2257-0.008-13.6779,5.40195-8.09713,6.94685-27.7067-10.5433,3.35691-8.48447,15.4235-14.502,20.8735-6.65962,1.01994-11.4131-8.83635-20.7407-10.4218-3.05765,6.11145,9.61345,12.4257,13.2018,16.3114,13.5917,13.53,8.93457,45.397,23.0288,55.2268-0.7374,6.85915-5.91783,11.1692-13.8492,15.48,16.0079,4.76053,22.612-6.04289,28.7845-6.41709,15.2702-0.5594,31.594,0.5423,44.0424-12.2046,9.45-9.67656,5.72467-10.6828,15.2857-14.8756,6.40117-2.35427,21.7049-11.8813,14.8078-12.9056z"/>
<circle fill="#fff" cx="266.239" cy="122.104" r="0.806" transform="matrix(3.5084546,0,0,3.3448778,6.3307176,-163.01097)"/>
<circle fill="#fff" cx="266.239" cy="122.104" r="0.806" transform="matrix(-1.6389991,-2.9574373,3.1020668,-1.5625831,914.32327,1224.3275)"/>
<circle fill="#fff" cx="266.239" cy="122.104" r="0.806" transform="matrix(-1.8069804,2.8671155,-3.007328,-1.7227325,1749.0027,-240.21318)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="700" height="500">
<rect width="700" height="500" fill="#e41e20"/>
<path id="half" d="m300.094,97.2043c-4.8618-0.082-12.9308,1.54998-12.75,5.2812-13.5419-2.32092-14.952,3.27267-14.1562,8.25003,1.28844-1.97532,2.85723-3.04776,4.06251-3.24999,1.80576-0.2997,3.6954,0.2835,5.625,1.46871,1.92969,1.1853,4.05558,3.09798,5.00004,4.28121-4.77945,1.14264-8.4717,0.405-12.2188-0.2502-1.84716-0.3231-4.43205-1.36224-5.96871-2.43747-1.53666-1.07541-2.0205-2.08755-4.43754-4.56246-2.84967-2.91798-5.88258-2.09637-4.93749,2.43747,2.18556,4.21092,5.83659,6.08859,10.4375,6.84378,2.214,0.3636,5.51196,1.15263,9.25,1.15623,3.73806,0.004,7.93521-0.54,10.2188-0.0625-1.37187,0.8613-2.92428,2.34621-6.00003,2.93751-3.12777,0.6012-7.88301-1.85994-10.7812-2.53125,0.3681,2.43855,3.44403,4.71816,9.49999,5.90625,9.95152,2.16693,18.2208,3.81375,23.6875,6.78123,5.46669,2.96748,8.91342,6.68268,11.375,9.59375,4.89861,5.79312,5.15628,10.2402,5.46876,11.2187,1.00782,9.2557-2.21958,14.4622-8.21871,16.0625-2.99961,0.8001-8.32788-0.7065-10.2812-2.99997-1.95345-2.29293-3.85407-6.23421-3.31254-12.4062,0.5265-2.42127,3.29526-8.72811,0.93753-10.0312-10.8616-6.00326-24.0512-12.0744-33.5938-15.6873-2.60815-0.98745-4.75675,2.55735-5.59375,3.9375-16.2111-1.97418-30.827-12.9443-37.4062-24.625-4.48101-7.95555-11.8665,0.0164-10.625,7.5312,2.0043,8.38764,8.39502,14.4519,16.0625,18.75,7.86951,4.33314,17.7059,8.59698,27.6562,8.37504,5.36067,1.01412,5.30775,7.94943-1.125,9.24999-12.5809,0.0796-22.6175-0.234-32.0938-9.375-7.18776-6.5628-11.2342,1.25694-9.15624,5.68746,3.52134,13.6583,23.0063,17.483,42.7187,13.0625,7.63344-1.26414,3.06252,6.91542,0.90621,7.00002-8.23662,5.90562-22.9827,11.6841-35.9688-0.0625-5.94243-4.55022-9.96016-0.7254-7.74999,5.84379,5.76216,17.1274,27.8037,13.5302,42.9375,5.09373,3.89529-2.17143,7.43049,2.88045,2.68749,6.71877-18.8201,13.1503-28.2298,13.2999-36.7187,8.24998-10.6275-4.1913-11.5623,7.59637-5.25,11.4688,7.01595,4.30398,24.8701,1.07703,37.9688-7.15626,5.61537-4.17483,5.86944,2.35305,2.31246,4.93749-15.5442,13.4334-21.671,16.971-37.875,14.7812-8.03511-0.6264-7.91442,9.2799-1.59372,13.1562,8.62983,5.29245,25.4827-3.49245,38.5625-14.3438,5.50521-2.94165,6.40935,1.88271,3.68748,7.59375-7.99209,10.0832-15.4932,16.0281-22.7187,18.7812-7.22556,2.75319-14.1755,2.31453-19.0938,0.6246-6.00021-2.06145-6.75261,4.17429-3.43746,9.84375,1.99836,3.41748,10.2797,4.51332,19.2187,1.34379,8.93907-3.16908,18.5358-10.6026,25.125-19.3125,5.73291-5.01894,5.01993,1.72368,2.40624,6.46875-13.1944,20.8587-25.262,28.5963-41.1562,27.2812-7.04754-1.19673-8.6481,4.28364-4.1562,9.34375,7.88742,6.54111,17.7493,6.336,26.375-0.1251,7.66818-7.39323,22.3379-23.3134,30.0312-31.8438,5.42133-4.32189,7.1532-0.0612,5.56254,8.71875-1.44666,5.02803-5.06826,10.3234-14.9375,14.1875-6.74226,3.84804-1.67904,9.15142,3.375,9.25,2.78136,0.0542,8.42922-3.19716,12.75-8.06247,5.68422-6.40053,6.02226-10.6976,9.15625-20.6562,2.96091-4.85442,8.24949-2.58858,8.25003,2.50002-2.53647,9.97519-4.71582,11.7638-9.84375,15.8438-4.90482,4.60494,3.41523,6.13962,6.21873,4.24998,8.11044-5.46678,11.0713-12.5383,13.7812-18.9688,1.95606-4.64166,7.63038-2.39148,5.00004,5.18751-6.28605,18.1128-16.6152,25.2447-34.6875,28.9062-1.83159,0.3258-2.94876,1.40661-2.31246,3.53124,2.42559,2.51811,4.85559,4.80303,7.28127,7.3125-11.1751,3.25377-20.2541,5.08171-31.4377,8.34421-5.48685-3.59721-9.9194-6.64909-15.4062-10.25-1.44684-3.38229-2.12149-8.54505-10.2188-4.90626-5.48685-2.53413-8.01783-1.60488-11.0625,0.93753,4.39542,0.1638,6.30783,1.34091,8.03124,3.34377,2.25009,5.92614,7.43877,6.49863,12.75,4.81248,3.45528,2.91078,5.29542,5.1435,8.74998,8.06247-6.44922-0.2205-10.9422-0.3348-17.375-0.531-6.1407-6.5934-11.042-6.23223-15.4375-1.06245-3.35007,0.5148-4.77018,0.5868-7.06248,4.65624,3.60513-1.4796,5.87322-1.92312,7.43751-0.3123,6.52869,3.78495,10.7938,2.94012,14.0313,0,6.29874,0.3852,11.9746,0.711,18.2812,1.125-2.3166,1.96911-5.49585,3.01365-7.81254,5.00004-9.4603-2.70648-14.3979,0.93663-16.0625,8.65629-1.26783,3.11571-1.86147,6.32349-1.31247,9.65626,0.91566-3.04839,2.38788-5.66937,5.09373-7.3125,8.43201,2.14182,11.6026-1.3005,12.0625-6.34374,4.06449-3.31632,10.1935-4.04766,14.25-7.40628,4.743,1.51839,7.03575,2.45889,11.8125,3.96873,1.6983,5.16078,5.5413,7.20423,11.7812,5.87502,7.42797,0.2331,6.11667,3.28095,6.71877,5.71878,1.97406-3.50109,1.91907-6.90588-2.65626-10-1.66464-4.52241-5.35275-6.57918-10.1875-3.96873-4.55094-1.29204-5.7474-3.1491-10.2812-4.43754,11.4681-3.65526,19.603-4.47777,31.0625-8.12502,2.86848,2.70585,5.14188,4.64841,8.03124,7.06248,1.5228,0.90891,2.98053,1.13787,3.87504,0,7.18083-10.3932,10.3879-19.5528,17.0625-26.4062,2.54997-2.83554,5.77161-6.66135,9.34375-7.59375,1.78605-0.4662,3.97638-0.1818,5.37498,1.34379,1.3986,1.52541,2.49723,4.33683,2.0313,8.53128-0.6687,6.02082-2.12337,7.9218-3.81249,11.5312-1.68912,3.60954-3.75336,5.82975-5.87502,8.59374-4.24341,5.52789-9.8424,8.74539-13.1562,10.9062-6.62769,4.3218-9.43073,2.43027-14.5625,2.15622-6.63273,0.7443-8.39754,3.97467-2.96874,8.4375,5.07492,2.64051,9.63652,2.96649,13.3438,2.28123,3.18312-0.5886,6.90831-4.6971Line truncated
<use xlink:href="#half" transform="matrix(-1,0,0,1,700,0)"/>
</svg>

After

Width:  |  Height:  |  Size: 6.3 KiB

+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">
<rect fill="#F2A800" width="1200" height="600"/>
<rect fill="#0033A0" width="1200" height="400"/>
<rect fill="#D90012" width="1200" height="200"/>
</svg>

After

Width:  |  Height:  |  Size: 260 B

+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="300">
<rect width="450" height="300" fill="#000"/>
<rect width="450" height="150" fill="#ce1126"/>
<g fill="#f9d616">
<path d="M231.115,91.82A58.5,58.5 0 1,1 187.916,195.244L179.358,205.685A72,72 0 1,0 232.526,78.394z"/>
<g id="s3">
<path id="s" d="M302.62435,142.35494C303.12516,147.43953 303.12516,152.56101 302.62435,157.6456L287.69659,156.17534C288.10106,152.06855 288.10106,147.93196 287.69659,143.82518z"/>
<use xlink:href="#s" transform="rotate(22.5,225,150)"/>
<use xlink:href="#s" transform="rotate(45,225,150)"/>
</g>
<use xlink:href="#s3" transform="rotate(-67.5,225,150)"/>
<use xlink:href="#s3" transform="rotate(67.5,225,150)"/>
<path d="M199.32444,114.65618H250.67551L209.1325,144.84033 224.99998,96.000328 240.86746,144.84033z"/>
<path d="M287.87869,216.3146C291.71694,220.02891 296.88529,223.69038 300.6338,227.01716C304.38231,230.34392 307.25434,233.10958 309.57908,236.88884C312.98624,242.42773 309.16023,248.7008 303.85486,245.01872C300.98581,243.02751 299.18307,237.65214 294.78788,233.20395C291.53252,230.43267 288.96764,227.52745 280.78551,226.1257C280.39268,226.05841 280.27777,225.22842 280.58665,224.86618z"/>
<path fill="#000" d="M231.36058,197.84505 251.60791,209.8174 256.00949,226.89558 279.24991,225.13494 289.46162,213.16262 251.60791,186.9291 231.36058,197.84505z"/>
<path d="M279.66324,223.6894C253.62799,206.37539 237.07238,197.02622 212.12131,182.83938C202.31974,177.26634 187.0985,163.25747 199.1052,139.81914C199.86106,155.20638 260.67394,197.4423 286.3703,215.80679z"/>
<path fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" d="M216.08561,167.51949C236.13137,186.41034 261.37565,201.82127 283.89761,218.85496"/>
<circle id="c" cx="290.4" cy="222.297" r="1.008" fill="#000"/>
<use xlink:href="#c" x="7.41957" y="6.4655991"/>
<use xlink:href="#c" x="13.93812" y="13.090317"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="744" height="496">
<rect fill="#3a7dce" width="744" height="496"/>
<path fill="#fff" d="M 183.295 238.539 C 179.242 230.431 179.242 230.431 179.242 222.324 C 177.215 222.324 176.835 222.705 175.663 222.386 C 174.491 222.07 174.048 229.862 170.247 228.341 C 169.614 227.581 172.971 221.945 169.329 219.602 C 168.157 218.839 169.614 214.216 169.107 212.189 C 169.107 212.189 164.484 214.595 161 206.109 C 159.289 203.891 156.946 208.135 156.946 208.135 C 156.946 208.135 157.959 210.732 156.123 211.366 C 153.526 209.465 151.625 210.462 148.332 207.85 C 145.038 205.237 149.029 202.245 142.758 200.028 C 146.812 189.894 146.812 191.92 156.946 187.867 C 150.865 183.813 150.865 183.813 146.812 177.732 C 140.731 175.705 138.704 173.679 132.623 169.625 C 124.516 159.49 120.462 139.222 120.462 125.034 C 125.593 120.283 132.623 141.249 142.758 147.329 C 142.758 147.329 156.946 153.41 156.946 153.41 C 165.053 157.464 167.08 161.517 173.161 165.571 C 173.161 165.571 191.403 171.652 191.403 171.652 C 199.51 177.732 203.564 185.84 209.645 187.867 C 216.232 187.867 217.501 184.073 219.613 183.837 C 231.529 183.226 237.61 181.691 239.985 178.112 C 242.391 175.262 248.155 179.759 264.37 173.679 C 264.37 173.679 262.344 165.571 262.344 165.571 C 262.344 165.571 266.651 162.024 272.478 163.544 C 272.32 159.839 271.939 149.958 277.679 145.5 C 274.193 141.843 276.532 139.222 276.532 139.222 C 276.532 139.222 279.763 136.118 280.142 134.471 C 278.433 125.54 281.625 125.402 282.341 122.774 C 283.056 120.147 279.584 121.047 280.563 117.425 C 281.54 113.802 287.412 112.942 288.198 109.958 C 288.987 106.974 286.524 105.477 286.666 104.765 C 287.933 101.915 286.857 95.2005 286.666 92.6035 C 297.561 89.6898 301.108 80.8223 304.908 84.496 C 306.935 72.3347 308.962 68.2809 321.123 68.2809 C 322.834 64.544 316.688 61.3768 319.096 60.1734 C 323.15 59.6667 326.253 59.9201 331.006 66.0642 C 332.506 68.0112 332.778 63.2138 334.298 62.707 C 335.818 62.2003 339.456 62.1924 339.997 59.7934 C 340.569 57.323 341.392 54.0928 343.419 50.0391 C 345.129 46.7454 346.459 51.3059 347.979 57.7665 C 356.531 58.0831 375.849 59.9835 383.956 62.2003 C 390.037 63.7839 394.091 60.6167 399.918 59.9833 C 404.225 64.2904 408.279 61.0602 410.559 70.2444 C 413.778 75.2001 419.046 70.6879 420.187 72.1446 C 426.965 90.83 450.274 78.2252 452.047 78.542 C 455.023 78.542 458.659 86.8966 461.002 86.689 C 464.81 86.0477 463.732 83.4509 467.058 84.496 C 466.17 91.5266 473.583 99.6343 473.583 104.891 C 473.583 104.891 475.387 105.778 477.059 104.218 C 478.729 102.659 480.265 98.6525 481.753 98.7473 C 485.3 99.2541 486.737 99.7095 490.825 100.424 C 501.815 104.179 507.413 105.026 511.682 106.95 C 513.668 110.584 515.592 112.445 519.617 111.766 C 522.943 114 520.517 116.926 522.481 117.116 C 526.535 115.089 527.865 112.872 531.918 114.899 C 535.972 116.926 540.026 120.98 542.053 125.034 C 542.053 127.06 540.026 135.168 542.053 147.329 C 543.066 151.383 543.557 154.597 547.912 161.549 C 546.755 168.691 553.391 180.709 553.391 183.75 C 553.391 187.803 550.16 189.894 548.133 193.947 C 556.241 200.028 548.133 210.162 544.08 216.243 C 574.483 222.324 560.295 234.485 584.617 228.404 C 578.536 242.592 580.689 241.453 586.77 255.641 C 574.608 263.749 586.518 266.218 578.411 276.352 C 577.904 276.986 583.223 285.157 590.698 285.157 C 588.671 301.372 582.59 295.291 584.617 319.614 C 568.655 319.298 575.115 337.793 564.348 335.829 C 564.981 347.42 570.492 348.434 568.402 360.151 C 560.295 362.178 560.295 362.178 556.241 368.259 C 556.241 368.259 550.16 366.232 550.16 366.232 C 548.133 376.366 544.08 378.393 550.16 388.528 C 550.16 388.528 542.306 388.781 540.026 388.528 C 539.835 392.012 543.51 392.962 544.08 396.635 C 543.763 398.092 532.551 404.489 523.811 404.743 C 521.531 409.747 529.891 415.068 529.385 417.601 C 519.883 419.437 515.703 431.092 515.703 431.092 C 515.703 431.092 520.58 433.056 519.757 435.146 C 517.161 433.245 515.703 433.119 511.65 433.119 C 509.623 433.626 504.683 432.995 499.946 440.989 C 494.747 442.704 492.293 442.084 488.349 447.299 C 486.603 442.331 484.092 447.346 481.021 449.273 C 477.953 451.203 473.82 456 473.265 455.796 C 473.392 454.401 475.166 449.334 475.166 449.334 C 475.166 449.334 465.031 451.361 465.031 451.361 C 465.031 451.361 464.579 451.405 463.783 451.486 C 462.986 451.565 463.199 445.57 461.278 445.787 C 459.358 446.006 453.863 453.327 451.99 453.556 C 450.12 453.785 449.528 451.227 447.916 451.45 C 446.305 451.673 443.163 459.172 442.022 459.371 C 440.881 459.57 436.355 454.813 432.476 455.477 C 412.523 462.509 409.355 441.607 406.252 453.388 C 402.072 451.17 402.796 452.457 398.548 453.57 C 395.838 454.269 395.591 449.987 393.181 450.053 C 388.359 450.189 388.612 454.75 385.983 453.388 C 383.831 443.886 370.844 445.596 369.578 441.543 C 368.548 437.315 375.204 437.335 377.357 434.471 C 379.003 430.338 375.638 428.769 382.317 424.782 C 391.022 418.894 386.018 416.673 387.544 412.248 C 390.274 405.859 390.29 404.299 388.01 398.662 C 388.01 398.662 381.232 380.42 379.902 380.42 C 375.849 379.281 375.849 387.133 36Line truncated
<g style="fill:none;stroke:#fff;stroke-width:2.5;stroke-linejoin:round">
<path d="M 595.512 297.571 C 594.92 298.903 595.025 300.233 595.637 301.183 C 596.736 299.535 595.808 298.775 595.512 297.571 z"/>
<path d="M 119.512 148.153 C 119.512 148.153 116.408 147.773 117.105 150.497 C 118.119 148.406 119.449 148.28 119.512 148.153 z"/>
<path d="M 120.209 141.819 C 118.499 141.883 116.408 141.566 117.105 144.289 C 118.119 142.199 120.146 141.946 120.209 141.819 z"/>
<path d="M 131.888 178.113 C 131.888 178.113 134.549 177.923 133.852 180.647 C 132.838 178.556 131.952 178.24 131.888 178.113 z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.7 KiB

+34
View File
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" height="500">
<rect width="800" fill="#74acdf" height="500"/>
<rect y="166.67" width="800" fill="#fff" height="166.67"/>
<g id="rays">
<path id="ray1" stroke-width="1.1116" stroke="#85340a" fill="#f6b40e" d="m396.84 251.31l28.454 61.992s0.4896 1.185 1.28 0.8586c0.7902-0.3267 0.2988-1.5116 0.2988-1.5116l-23.715-63.956m-0.68 24.12c-0.3465 9.4278 5.4526 14.613 4.6943 23.032-0.7569 8.42 3.8673 13.18 4.9396 16.454 1.0733 3.2744-1.16 5.2323-0.198 5.6982 0.96336 0.4662 3.07-2.1207 2.3833-6.7756-0.68675-4.6549-4.2204-6.0368-3.3898-16.32 0.83-10.283-4.206-12.678-2.98-22.058"/>
<use xlink:href="#ray1" transform="rotate(22.5 400,250)"/>
<use xlink:href="#ray1" transform="rotate(45 400,250)"/>
<use xlink:href="#ray1" transform="rotate(67.5 400,250)"/>
<path id="ray2" fill="#85340a" d="m404.31 274.41c0.45334 9.0538 5.5867 13.063 4.5787 21.314 2.2133-6.5249-3.1233-11.583-2.82-21.22m-7.6487-23.757l19.487 42.577-16.329-43.887"/>
<use xlink:href="#ray2" transform="rotate(22.5 400,250)"/>
<use xlink:href="#ray2" transform="rotate(45 400,250)"/>
<use xlink:href="#ray2" transform="rotate(67.5 400,250)"/>
</g>
<use xlink:href="#rays" transform="rotate(90 400,250)"/>
<use xlink:href="#rays" transform="rotate(180 400,250)"/>
<use xlink:href="#rays" transform="rotate(270 400,250)"/>
<circle r="27.778" stroke="#85340a" cy="250" cx="400" stroke-width="1.5" fill="#f6b40e"/>
<path id="loweyecontour" fill="#843511" d="m409.47 244.06c-1.8967 0.00003-3.7131 0.82183-4.7812 2.5312 2.1367 1.9227 6.8565 2.1318 10.062-0.21875-1.3883-1.4954-3.3845-2.3125-5.2812-2.3125zm-0.0312 0.4375c1.8462-0.0335 3.5717 0.81446 3.8125 1.6562-2.1367 2.3504-5.5508 2.1463-7.6875 0.4375 0.9348-1.4957 2.4391-2.0677 3.875-2.0938z"/>
<use xlink:href="#uppalpebra" transform="matrix(-1 0 0 1 800.25 0)"/>
<use xlink:href="#eyebrow_nose" transform="matrix(-1 0 0 1 800.25 0)"/>
<use xlink:href="#pupil" transform="translate(18.862)"/>
<use xlink:href="#lowpalpebra" transform="matrix(-1 0 0 1 800.25 0)"/>
<path d="m395.75 253.84c-0.91341 0.16668-1.5625 0.97727-1.5625 1.9062 0 1.0614 0.87748 1.9062 1.9375 1.9062 0.62667 0 1.2025-0.2968 1.5625-0.8125 0.73952 0.55614 1.7646 0.61511 2.3125 0.625 0.0843 0.002 0.19312 0 0.25 0 0.54791-0.01 1.573-0.0689 2.3125-0.625 0.36 0.5157 0.93583 0.8125 1.5625 0.8125 1.06 0 1.9375-0.84488 1.9375-1.9062 0-0.92898-0.64918-1.7396-1.5625-1.9062 0.513 0.1809 0.84375 0.6765 0.84375 1.2188 0 0.7074-0.57124 1.2812-1.2812 1.2812-0.6804 0-1.2413-0.54015-1.2812-1.2188-0.20862 0.41637-1.0341 1.6551-2.6562 1.7188-1.6222-0.0636-2.4476-1.3024-2.6562-1.7188-0.04 0.6786-0.60085 1.2188-1.2812 1.2188-0.71001 0-1.2812-0.57385-1.2812-1.2812 0-0.54225 0.33075-1.0378 0.84375-1.2188z" fill="#85340a"/>
<path d="m397.84 259.53c-2.138 0-2.9829 1.9368-4.9062 3.2188 1.0687-0.42633 1.9096-1.2693 3.4062-2.125 1.496-0.85442 2.7717 0.1875 3.625 0.1875h0.0312c0.8532 0 2.129-1.0416 3.625-0.1875 1.4967 0.8559 2.3688 1.6987 3.4375 2.125-1.9233-1.282-2.7996-3.2188-4.9375-3.2188-0.4266 0-1.2716 0.23055-2.125 0.65625h-0.0312c-0.85334-0.42642-1.6983-0.65625-2.125-0.65625z" fill="#85340a"/>
<path d="m397.12 262.06c-0.8439 0.0374-1.9596 0.20675-3.5625 0.6875 3.8473-0.85434 4.6962 0.4375 6.4062 0.4375h0.0312c1.71 0 2.5588-1.292 6.4062-0.4375-4.2744-1.282-5.1242-0.4375-6.4062-0.4375h-0.0312c-0.80125 0-1.4372-0.3124-2.8438-0.25z" fill="#85340a"/>
<path d="m393.75 262.72c-0.24819 0.003-0.51871 0.005-0.8125 0.0312 4.488 0.42766 2.3306 3 7.0312 3h0.0312c4.7007 0 2.5745-2.5724 7.0625-3-4.7007-0.4266-3.2146 2.3438-7.0625 2.3438h-0.0312c-3.6075 0-2.4959-2.4215-6.2188-2.375z" fill="#85340a"/>
<path d="m403.85 269.66c0-2.1234-1.7233-3.8465-3.8463-3.8465-2.1233 0-3.8463 1.723-3.8463 3.8465 0.423-1.781 2.0166-3.0393 3.8463-3.0393 1.8333 0 3.424 1.2586 3.8463 3.0393v0 0z" fill="#85340a"/>
<path id="eyebrow_nose" fill="#85340a" d="m382.73 244.02c4.9146-4.2729 11.11-4.9147 14.53-1.7086 0.837 1.1207 1.3733 2.319 1.5934 3.5696 0.4302 2.433-0.3303 5.0617-2.2367 7.7559 0.2151-0.001 0.6435 0.2124 0.8568 0.4266 1.6967-3.244 2.2967-6.5761 1.74-9.7454-0.1458-0.828-0.3735-1.643-0.6696-2.4357-4.7007-3.8452-11.11-4.2729-15.811 2.1377z"/>
<path id="uppalpebra" fill="#85340a" d="m390.42 242.74c2.7767 0 3.4186 0.6417 4.7007 1.71 1.2833 1.0683 1.9233 0.8541 2.1367 1.0683 0.2124 0.2142 0 0.8541-0.4266 0.6399s-1.2833-0.6399-2.5633-1.7086c-1.2833-1.0696-2.5633-1.0683-3.8463-1.0683-3.8463 0-5.983 3.2046-6.4094 2.9907-0.4266-0.2142 2.1367-3.6325 6.4094-3.6325z"/>
<use xlink:href="#loweyecontour" transform="translate(-19.181)"/>
<circle id="pupil" cy="246.15" cx="390.54" r="1.923" fill="#85340a"/>
<path id="lowpalpebra" fill="#85340a" d="m385.29 247.44c3.6327 2.7783 7.265 2.5644 9.4017 1.282 2.1367-1.282 2.1367-1.7086 1.71-1.7086-0.4266 0-0.8532 0.4266-2.5633 1.281-1.71 0.8559-4.273 0.8559-8.546-0.8541z"/>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

+110
View File
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="500">
<rect height="500" width="1000" fill="#006"/>
<path d="M0,250 1000,0V500z" fill="#bd1021"/>
<path d="M107.14,250 1000,26.79V473.21" fill="#fff"/>
<g stroke="#000" stroke-width="1.72">
<path d="m832.04,306.06s-6.2429-5.108,1.135-13.337c-3.973-3.4049-0.2834-9.9312-0.2834-9.9312s-6.8111-2.5547,0.2834-13.054c-5.108-3.4049-2.8381-11.068-2.8381-11.068s-16.742-6.2429-0.85018-12.201c-13.054,5.6748-25.257-7.6626-25.257-7.6626l-19.012,0.56816c-3.2161-15.797-28.283-2.0814-9.6482-47.39-4.8242-0.85142-10.216-2.27-15.607,1.7027-5.3916,3.9728-20.715,12.486-29.796,3.9728-9.0806-8.5131,5.9593-20.715,6.2431-20.999,0.28367-0.2838,20.148-10.5,22.986-17.31-0.28381-5.108-6.5269-9.0806-0.85142-20.148,6.5267-10.5,46.538-20.432,64.701-23.837,8.7962-3.9728,12.769-11.635,12.769-11.635l1.9865,7.378s40.296-11.918,42.282-17.594c1.9865-5.6755,0.85156,5.1078,0.85156,5.1078,15.891-1.4189,36.038-15.04,38.876-8.7969,13.337-2.5539,38.877-13.905,38.877-13.905s8.7962-0.28364,2.5533,9.3646c3.973,6.2429-1.135,11.635-1.4184,11.635-0.28477,0,1.7017,6.2429-3.4062,9.6482,1.7045,5.3916-3.1215,9.6482-3.1215,9.6482s2.2713,6.5267-6.8097,9.932c0.85157,5.6755-5.108,6.8106-5.108,6.8106s0.85156,5.9593-3.1215,8.5131c0,4.5404-4.5398,6.8106-4.5398,6.8106s2.8367,1.7026-1.1363,4.5404c-3.9716,2.8377-45.119,28.093-45.119,27.81,0-0.28366,30.08,5.3917,32.066,6.5268,1.9865,1.1351,24.688,16.175,24.688,16.175l-22.987,28.377s-25.539-2.8367-26.673-1.4184c-1.135,1.4184,5.3914,1.9865,6.8097,4.2564,1.4197,2.2699,3.6896,7.6627,8.2294,7.0945,4.5412-0.56816-8.5129,8.2295-17.026,9.081,0,3.1215,10.783,3.4049,13.621,0.85155,2.8381-2.5547-6.8111,7.3779-7.9461,8.7962s12.771-1.9865,12.771-1.9865-2.2713,9.3644-14.472,12.202c4.8232,7.946,2.8367,13.054,2.5533,13.054-0.28339,0-7.946-7.946-15.324-6.5277,1.9865,7.6627,7.9461,14.756,9.6492,15.892,1.7017,1.135-13.337,0.85018-15.324-3.4062-1.9865-4.2564-3.6896,10.216,1.7018,14.757-6.2416,0.2834-11.634-3.4062-11.634-3.4062s-3.6882,8.5128-1.135,12.771c2.5547,4.2564-8.7962-8.5142-8.7962-8.5142l-21.567,9.081-4.8246-8.2294z" fill="#9c3900" stroke-linejoin="round"/>
<g fill="#ffc221">
<path d="m665.36,289.17c0.50543,0,31.331-0.50627,45.48-8.5913,7.0747,11.117,16.676,18.697,16.676,18.697l4.5481-16.17s11.117,0.50489,12.128,3.032c-1.516,3.0307-2.0213,7.0739-2.0213,7.0739s7.58,0.50627,8.0853,1.516c0.5053,1.0111-2.0213,9.601-2.0213,9.601l32.342,7.5801s2.5266-12.633,5.0532-11.117c2.5268,1.516,13.644,17.181,29.31,18.192,15.665,1.0111,16.676-13.139,16.676-13.139l3.5369,2.0223s6.569-14.149,7.5801-14.149,2.5272,2.0209,11.117,2.0209c2.5272,3.032,3.5383,10.106,3.5383,10.106s-9.6024,9.6024-6.5704,17.183c3.032,7.5801,3.5383,5.5578,3.5383,5.5578l69.736,16.676s3.5383,5.5592-2.5258,8.5913c0,0.50489-70.242-16.171-70.242-16.171s-6.5704,7.5801-11.623,6.0641c-5.053-1.516-1.516,3.032-1.516,3.032l75.8,6.0641s5.5592,7.0752,1.516,9.0962c-5.053,0.50488-81.864-5.053-81.864-5.053s-4.5481,9.601-9.601,1.516c-3.5369,5.5578-7.5801-1.516-7.5801-1.516s-6.569,5.053-7.5801-0.50626c-5.5592,4.0432-9.0961-2.5258-9.0961-2.5258l-32.341-2.0223-2.0213,3.032s5.5587,1.516-3.032,5.0543c-8.5907,3.5369,51.544,2.0209,53.06,2.5258,1.516,0.50625-4.0418,5.0543-4.0418,5.0543s30.825,2.0209,36.383-4.5481c5.5592-6.5703-2.0209,8.5899-2.0209,8.5899s24.256-1.0098,24.256-2.0209-0.50626,7.5801-17.181,6.569c10.106,6.5704,22.739,10.612,22.739,10.612s-12.633,3.032-27.287-0.50488c2.5258,6.569,13.644,12.633,13.644,12.633s-8.0864,7.0752-26.279-10.107c5.0543,9.0962,1.0111,12.634,0.50625,11.623-0.50625-1.0111-9.0961-13.644-29.309-18.192,12.633,8.085,7.0739,11.623,7.0739,11.623s-6.569-11.623-17.181,0c-4.0432-10.612-19.708-16.676-38.911-17.687-6.064-7.0739-9.6014-5.0529-23.751-9.0961-8.0853-9.0948-19.708-19.202-19.708-19.202s0.5053-13.644,14.149-12.128c1.516,4.5481,1.516,3.032,1.516,3.032s15.16-5.5592,19.708,2.0209c6.5692-11.623,15.665-1.7375,17.181,2.3043,4.3537,0.63832,26.278,1.2326,26.278,1.2326s-2.5272-4.5481-1.0112-4.0418c1.516,0.50488,13.644-4.5481,13.139-6.0641-0.50625-1.516-1.0111-6.569,1.0098-6.0641,2.0223,0.50489-17.181-2.5272-27.793,5.5592-3.5373-3.5383-1.0106-13.139-1.0106-13.139l-31.331-6.569-1.516,8.085s-9.096,1.516-8.5907-0.50487c0.50529-2.0223-2.0213,7.0739-2.0213,7.0739s-12.128-3.0321-12.128-3.5369c0-0.50489,3.5374-18.192,3.5374-17.687,0,0.50626-10.107,1.0112-24.256,11.623-4.0426-12.633-35.879-29.309-35.879-29.814z"/>
<path d="m704.78,247.73s-21.224,18.191,0,28.803c1.0106-7.0752,2.5268-8.085,2.5268-8.085s17.687,6.569,28.299-9.0961c-4.5481-6.569-12.633-4.0418-12.633-4.0418s-16.676-0.001-18.192-7.5801z"/>
</g>
<path d="m722.47,255.82-14.655,12.633" fill="none"/>
<g fill="#fff">
<path d="m705.48,247.88,0,0s2.8377-2.8381,3.6891-6.2429c0.85129-3.4049-1.1351-7.0945,2.2702-10.216,3.4051-3.1215,48.241-22.134,51.93-25.823,3.6891-3.6888,10.499-11.634,11.351-13.337,0.85129-1.7027,3.4053,8.5131-4.2566,13.054,8.2293-2.2707,13.621-4.8243,17.026-3.6892-3.4058,4.8242-12.486,12.77-16.743,12.77,9.932-3.6896,19.012-6.8111,21.567-4.8246,2.5533,1.9865-12.202,11.919-18.162,12.486,9.932-2.5533,23.27-6.5263,24.971-2.2699-5.3914,1.7031-3.6896,3.1201-14.756,9.3644-1.4188,1.1363-8.5131,1.4184-8.5131,1.4184,8.5131-0.85156,20.147-4.2564,21.282,1.9865-6.8097,2.5533-9.3639,5.9595-15.039,7.3779-5.6755,1.4197-18.729,3.973-26.675,7.0945-7.9455,3.1215-19.58,12.202-19.58,12.202s-25.256,0.85155-25.256,0.56678c0-0.28339-4.824-11.634-5.1078-11.918z" stroke-linejoin="round"/>
<path d="m921.99,230.57,49.092,9.3644s5.3928-6.2429,2.5547-9.6478c7.3779-1.7017,5.3914-11.351,5.3914-11.351s8.5128-3.6883,1.4183-12.202c4.826-4.8239-1.135-8.5128-1.135-8.5128s1.9865-8.5131-4.2564-9.3644c1.7031-6.8104-10.783-9.0807-10.783-9.0807s-25.823,7.0944-43.985,7.6618c5.9595,5.9593-2.2699,9.6482-2.2699,9.6482s4.8246,3.4053,3.4049,6.2429c-1.4183,2.8382,0.85157,5.9597-5.3914,7.9462,8.2294,3.6896-0.85156,9.9312-0.85156,9.9312s9.081,6.2429,6.8111,9.3644z"/>
</g>
<g fill="none">
<path d="m742.17,293.72-6.5694,29.309"/>
<path d="m748.24,304.83-2.0213,9.601"/>
<path d="m780.58,312.41-3.032,9.0962"/>
<path d="m836.67,374.06c-0.50489,0-16.17,2.0209-18.192,1.516-2.0209-0.50489,24.761,8.085,24.761,11.622"/>
<path d="m808.37,377.6s-15.666-10.106-18.192-9.0961c-2.5269,1.0111,15.665-0.50489,17.181-2.0209"/>
<path d="m776.03,365.98s-16.171,0.50488-17.687-1.0111,15.665,11.117,18.697,10.107"/>
<path d="m744.7,358.9c-0.5053,0-11.117-4.0418-15.665-5.0543,4.0426,4.0432,7.0747,9.6024,17.181,11.623"/>
<path d="m748.74,352.34c-0.50529-1.0111-20.213-7.0752-20.213-10.107,4.5481,1.516,11.117,3.5369,17.181,2.0209"/>
<path d="m853.35,329.09-2.0209,9.0948"/>
<path d="m767.6,343.56s3.3779,3.724,0.34585,8.2721"/>
<path d="m838.69,347.28-5.5578,0.50625"/>
<path d="m793.21,344.25,10.106,1.516"/>
<path d="m820.4,318.26s0.2834,10.216-8.2294,9.9326c-8.5128-0.28477-5.6762,0.2834-5.6762,0.2834"/>
<path d="m826.93,316.55s3.4049,1.135,2.5547,3.6896c-0.85155,2.5533,0.85018,9.9312-9.081,17.026-10.501,2.2699-9.3644-8.7962-9.3644-8.7962"/>
<path d="m830.62,319.68s6.2429-3.6883,7.0945,2.2713c0.85018,5.9582-5.108,17.026-9.3644,18.729-4.2578,1.7018-9.081-0.28476-8.5142-3.1215"/>
<path d="m838.28,322.23s5.6762-4.5412,7.3779,1.4184c1.7031,5.9596-4.5398,19.297-7.0945,19.58"/>
<path d="m846.23,323.65s2.8381-1.4184,4.8232,0.28339"/>
<path d="m837.15,344.08c-1.135,0.28339-5.9595,0.56678-7.6613-3.1215"/>
<path d="m811.61,334.15c-0.28339,0-5.9582,0.28476-5.9582,0.28476"/>
<path d="m833.46,356.57-0.56679-9.3644-2.2699-3.1215-3.973,3.973s-0.56816,9.3644-2.2699,10.216"/>
<path d="m826.65,347.77c-0.28339-0.56678-3.1215-5.9582-3.1215-5.9582l-4.8246,5.9582s-0.5668,8.5142-2.2699,9.3658"/>
<path d="m818.7,347.49c0-0.28339-1.9865-5.6748-1.9865-5.6748s-5.6748,3.1215-6.2429,5.3914c-0.56679,2.2699-0.85156,8.5128-2.2699,9.081"/>
<path d="m810.47,346.07s0.56816-5.108-1.135-5.108c-1.7018,0-9.3644,7.0945-9.6478,13.337"/>
<path d="m717.39,245.9s0.28382-5.6748,2.8377-7.6613c2.554-1.9865,15.324-6.8111,18.161-11.068,2.8377-4.2564-4.2566,7.3779-3.1215,10.499"/>
<path d="m722.5,237.38s6.2431,2.2713,4.8242,7.0945"/>
<path d="m57.344,126.01a3.9192,3.9192,0,1,1,-7.8384,0,3.9192,3.9192,0,1,1,7.8384,0z" transform="matrix(1.1946929,0,0,1.1946929,661.37184,90.106184)" stroke-width="1pt"/>
<path d="m917.17,220.07,0,0s43.417,5.108,45.404,5.108c1.9865,0,9.6478,2.5547,11.068,5.108"/>
<path d="m919.44,217.52,60.443,1.4184"/>
<path d="m919.72,216.1s57.321-3.4049,61.294-9.3644"/>
<path d="m921.43,203.61s57.606-6.2429,58.174-5.3916"/>
<path d="m919.44,196.52s55.903-8.7969,56.47-7.378"/>
<path d="m759.96,160.48s17.594,19.296,15.891,32.35"/>
<path d="m774.72,182.61s5.6753,8.2293,7.9455,9.0806c2.2702,0.85128,22.134,1.9864,23.269,10.5,1.135,5.3916-4.2564,3.6885-3.4049,7.6616,1.4184,5.108,14.756,11.634,29.228,3.973"/>
<path d="m818.42,217.8s11.918,17.594,29.512-1.4183"/>
<path d="m838.85,224.05s14.472,7.6613,26.39-12.202"/>
<path d="m849.92,225.75s7.0945,5.9596,21.852-1.9851"/>
<path d="m892.2,215.82s21.85,4.5398,23.27,5.9596"/>
<path d="m900.43,210.99c0.28339,0,15.324,0.56817,15.324,0.56817"/>
<path d="m891.06,202.48s26.107-1.7026,29.513,3.6895"/>
<path d="m879.71,194.25s36.607,1.4188,38.309,3.4053"/>
<path d="m887.94,231.71s6.2429-1.7017,7.0945-0.85019"/>
<path d="m873.75,247.03s8.2294,7.0945,18.73,3.973"/>
<path d="m878.29,258.95s9.3644,4.2564,20.432,1.7018"/>
<path d="m881.41,266.04s9.3644,6.2429,15.607,5.1066"/>
<path d="m877.16,269.73s6.5263,4.8246,6.8097,7.3779"/>
<path d="m868.08,275.41s1.9865,10.215,9.081,13.904"/>
<path d="m863.25,279.95s-3.1215,13.337,4.8246,21.567"/>
<path d="m855.02,290.45c0,0.28339-0.56679,6.2429-0.2834,6.8111"/>
<path d="m803.94,238.8,15.324-0.85157s5.6748-2.2699,1.7017-5.9582"/>
<path d="m822.96,235.4c0.28477,0,14.472,1.135,18.162,5.3914,3.6882,4.2564,8.2294,12.769,10.783,14.189,2.5547,1.4184,3.1215-0.56816,3.1215-0.56816"/>
<path d="m848.78,252.14s-7.6613,13.054-1.7018,17.027"/>
<path d="m844.52,266.61s-6.8097,9.081-1.4184,13.621"/>
<path d="m841.69,279.1s-5.3914,8.7976,1.1363,14.756"/>
<path d="m839.3,255.76c-0.36594,0.36594-6.591,4.7599-8.788,3.6621"/>
<path d="m832.71,269.68s2.5629,2.5629,4.7599,2.197"/>
<path d="m833.01,282.98,4.09,2.805"/>
<path d="m833.56,293.17,3.5383,2.1351"/>
<path d="m769.47,154.01s7.4602,3.8794,13.428,0c5.9688-3.8792,34.615-18.501,42.075-20.888,7.4591-2.3873,11.637-16.114,13.13-22.082"/>
<path d="m832.44,127.15,41.777-12.235s6.8634-5.6697,7.1619-16.114"/>
<path d="m878.39,110.14s41.776-4.1776,41.776-19.695"/>
<path d="m913.6,101.19s43.866-11.936,48.044-16.412"/>
<path d="m791.26,163.55s26.558-13.727,30.736-15.219c4.1766-1.4921,13.725-13.428-0.59705-13.428"/>
<path d="m804.09,168.93c0.29852,0,21.783-14.025,28.945-15.815,3.8795-5.3712,1.7912-11.041-4.7737-9.8473"/>
<path d="m834.82,149.53c0.59705-0.29839,11.638-0.59678,7.759,8.0569-5.6679,4.1776-30.139,16.412-30.139,16.412"/>
<path d="m829.15,140.28,46.551-15.517s3.8795-8.0569-1.7898-9.2505"/>
<path d="m912.71,101.49c0,0.29839,5.9692,3.5808,2.3882,8.9521-6.5648,3.8793-37.599,11.339-37.599,11.339"/>
<path d="M959.85,96.712,915.99,108.95"/>
<path d="m956.57,106.56-38.195,11.638"/>
<path d="M953.29,116.11,919.57,126.25"/>
<path d="m947.02,125.66c-0.89558,0-25.065,7.4602-25.065,7.4602"/>
<path d="m941.65,133.12-15.518,6.2665"/>
<path d="m937.77,141.47c-0.59705,0-13.428,5.6697-13.428,5.6697"/>
<path d="m933.89,148.34-11.936,5.6695"/>
<path d="m913.3,161.17s1.4926,0.59678,1.1941,2.3873"/>
<path d="m883.16,177.58s5.0736,1.7903,0.29853,6.5649c-2.3868,3.2824-9.2502,2.3874-13.428,8.3553"/>
<path d="m915.69,110.74s6.2677,1.4919,1.4926,9.5489c-12.534,4.7745-37.898,12.533-37.898,12.533s-1.1927,2.0889-4.4752,3.8793c-3.2824,1.7904-39.389,11.936-39.389,11.936"/>
<path d="m917.78,119.99s6.8634,2.984,0,8.0569c-7.759,4.476-34.914,12.831-34.914,12.831s-0.29854,2.3871-1.4913,3.2824c-1.1941,0.89517-37.002,12.831-37.002,12.831"/>
<path d="m919.57,128.04s7.1619,2.0889,0.89558,8.0568c-7.4604,4.4761-31.333,12.533-31.333,12.533s-2.3868,2.9839-6.2663,4.1776c-3.8795,1.1936-28.646,11.339-28.646,11.339"/>
<path d="m921.36,136.1c2.0897,0.89517,7.759,1.7905,0.89559,7.1618-8.0561,3.5808-27.751,11.339-27.751,11.339l-1.7912,3.2824-31.332,13.428"/>
<path d="m923.15,144.16s2.9839,3.581-3.581,7.7586c-7.1619,3.8792-22.678,9.8473-22.678,9.8473"/>
<path d="m919.57,152.51s3.2824,2.0889-0.8942,5.0729c-4.7751,2.3873-23.574,12.235-23.574,12.235l-12.236,8.0569"/>
<path d="m876.6,125.06c0,0.29839,5.0736,4.4761,3.2824,9.2505,4.4765,3.2824,3.581,6.8634,3.581,6.8634s6.2663,3.5808,5.3721,8.6537c6.2663,1.4921,5.9678,5.0729,5.9678,5.0729l-2.0897,3.2824s6.2663-0.29839,0.89558,7.7586c3.2824,1.7905,1.7912,3.8792,1.7912,3.8792"/>
<path d="m893.61,166.24c-0.89558,0-21.783,7.7586-27.155,12.533"/>
<path d="m843.18,156.99s6.2663-0.29839,5.3721,6.5648c7.1619-2.3873,5.6693,4.476,5.6693,4.476s8.3546-3.2824,6.8634,7.1618c5.3707-1.1936,4.4752,4.1776,4.4752,4.1776s4.7751-0.29839,4.7751,2.3873c3.2824-2.984,6.8634-1.492,6.8634-1.492s2.3868-3.2826,5.6693-2.3872"/>
<path d="m848.85,163.26c0,0.59706-28.051,16.114-28.051,16.114"/>
<path d="m854.22,168.33-21.187,13.13"/>
<path d="m861.38,174.89c0,0.29839-18.502,11.041-18.502,11.041"/>
<path d="m865.56,179.07s-13.13,10.743-16.114,10.146"/>
<path d="m870.04,182.35s-7.4604,5.6698-13.727,8.3553"/>
<path d="m877.79,179.97s2.3868,2.984-12.533,10.742"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 13 KiB

+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600">
<rect fill="#ed2939" width="900" height="600"/>
<rect fill="#fff" y="200" width="900" height="200"/>
</svg>

After

Width:  |  Height:  |  Size: 213 B

+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1280" height="640" viewBox="0 0 10080 5040">
<defs>
<clipPath id="c">
<path d="M0,0V1.5H7V3H6zM6,0H3V3.5H0V3z"/>
</clipPath>
<path id="Star7" d="M0,-360 69.421398,-144.155019 281.459334,-224.456329 155.988466,-35.603349 350.974048,80.107536 125.093037,99.758368 156.198146,324.348792 0,160 -156.198146,324.348792 -125.093037,99.758368 -350.974048,80.107536 -155.988466,-35.603349 -281.459334,-224.456329 -69.421398,-144.155019z"/>
<path id="Star5" d="M0,-210 54.859957,-75.508253 199.721868,-64.893569 88.765275,28.841586 123.434903,169.893569 0,93.333333 -123.434903,169.893569 -88.765275,28.841586 -199.721868,-64.893569 -54.859957,-75.508253z"/>
<use id="Cstar" xlink:href="#Star7" transform="scale(2.1)"/>
</defs>
<g transform="scale(840)">
<rect width="12" height="6" fill="#00008b"/>
<path d="M0,0 6,3M6,0 0,3" stroke="#fff" stroke-width="0.6"/>
<path d="M0,0 6,3M6,0 0,3" stroke="#f00" stroke-width="0.4" clip-path="url(#c)"/>
<path d="M3,0V3.5M0,1.5H7" stroke="#fff"/>
<path d="M3,0V3.5M0,1.5H7" stroke="#f00" stroke-width="0.6"/>
<path d="M0,3H6V0H8V4H0z" fill="#00008b"/>
</g>
<g fill="#fff">
<use id="Comwlth" xlink:href="#Cstar" x="2520" y="3780"/>
<use id="αCrucis" xlink:href="#Star7" x="7560" y="4200"/>
<use id="βCrucis" xlink:href="#Star7" x="6300" y="2205"/>
<use id="γCrucis" xlink:href="#Star7" x="7560" y="840"/>
<use id="δCrucis" xlink:href="#Star7" x="8680" y="1869"/>
<use id="εCrucis" xlink:href="#Star5" x="8064" y="2730"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="900" height="600" viewBox="0 0 27 18">
<path d="M0,0H27V18H0z" fill="#4189dd"/>
<path d="M0,12H27v1H0v1H27v1H0z" fill="#f9d616"/>
<g fill="#fff" transform="translate(4,4)">
<path id="s" d="M0,-3 0.707107,-0.707107 3,0 0.707107,0.707107 0,3 -0.707107,0.707107 -3,0 -0.707107,-0.707107z"/>
<use xlink:href="#s" transform="scale(0.770376)" fill="#d21034"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 495 B

+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg height="850" width="1300" version="1.1" xmlns="http://www.w3.org/2000/svg" id="Flag of Åland">
<rect fill="#0053a5" height="850" width="1300" />
<g fill="#ffce00">
<rect height="850" width="250" x="400" />
<rect height="250" width="1300" y="300" />
</g>
<g fill="#d21034">
<rect height="850" width="100" x="475" />
<rect height="100" width="1300" y="375" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 534 B

+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">
<rect width="1200" height="600" style="fill:#0098c3"/>
<rect width="1200" height="200" y="200" style="fill:#e00034"/>
<rect width="1200" height="200" y="400" style="fill:#00ae65"/>
<circle fill="#fff" cx="581" cy="300" r="90"/>
<circle fill="#e00034" cx="600" cy="300" r="75"/>
<path d="M 716.38014,335.33055 690.58329,323.09028 681.03508,350 671.44912,323.1037 645.66947,335.38014 657.90973,309.58329 631,300.03508 l 26.89631,-9.58596 -12.27645,-25.77965 25.79686,12.24026 9.54821,-26.90973 9.58596,26.8963 25.77965,-12.27644 -12.24026,25.79686 26.90973,9.5482 -26.8963,9.58596 z" style="fill:#fff"/>
</svg>

After

Width:  |  Height:  |  Size: 714 B

+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800" height="400" viewBox="0 0 16 8"><rect width="16" height="8" fill="#002395"/><path d="m4.24,0h8v8z" fill="#fecb00"/><g id="g"><path d="M2.353283,0.5248529 2.8,-0.85 3.246717,0.524853 2.077197,-0.324853H3.522803z" fill="#fff" id="s"/><use xlink:href="#s" x="1" y="1"/><use xlink:href="#s" x="2" y="2"/></g><use xlink:href="#g" x="3" y="3"/><use xlink:href="#g" x="6" y="6"/></svg>

After

Width:  |  Height:  |  Size: 512 B

+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1500" height="1000" viewBox="0 0 24000 16000">
<title>Flag of Barbados</title>
<rect width="24000" height="16000" fill="#00267f" />
<rect width="8000" height="16000" fill="#ffc726" x="8000" />
<path id="h" fill="#000"
d="M 12000,4124 C 11740,4833 11475,5571 10908,6136 C 11084,6078 11392,6026 11590,6031 L 11590,9013 L 10748,9138 C 10718,9135 10708,9088 10708,9024 C 10627,8098 10408,7320 10156,6515 C 10138,6405 9819,5985 10065,6059 C 10095,6063 10424,6197 10372,6133 C 9924,5669 9269,5335 8633,5236 C 8577,5222 8544,5250 8594,5315 C 9438,6614 10144,8147 10138,9966 C 10466,9966 11261,9772 11590,9772 C 11590,9772 11590,11876 11590,11876 L 12005,11876 12100, 6000 z"/>
<use xlink:href="#h" transform="translate(24000,0) scale(-1,1)"/>
</svg>

After

Width:  |  Height:  |  Size: 985 B

+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="500" height="300" viewBox="0 0 20 12"><rect width="20" height="12" fill="#006a4e"/><circle cx="9" cy="6" r="4" fill="#f42a41"/></svg>

After

Width:  |  Height:  |  Size: 219 B

+5
View File
@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="450" height="390">
<rect width="450" height="390" fill="#ED2939"/>
<rect width="300" height="390" fill="#FAE042"/>
<rect width="150" height="390"/>
</svg>

After

Width:  |  Height:  |  Size: 202 B

+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="900" height="600">
<rect width="900" height="600" fill="#009e49"/>
<rect width="900" height="300" fill="#ef2b2d"/>
<g transform="translate(450,300)" fill="#fcd116">
<g id="c">
<path id="t" d="M 0,-100 V 0 H 50" transform="rotate(18 0,-100)"/>
<use xlink:href="#t" transform="scale(-1,1)"/>
</g>
<use xlink:href="#c" transform="rotate(72)"/>
<use xlink:href="#c" transform="rotate(144)"/>
<use xlink:href="#c" transform="rotate(216)"/>
<use xlink:href="#c" transform="rotate(288)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 659 B

+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="600" viewBox="0 0 5 3">
<rect width="5" height="3" fill="#fff"/>
<rect width="5" height="2" y="1" fill="#00966E"/>
<rect width="5" height="1" y="2" fill="#D62612"/>
</svg>

After

Width:  |  Height:  |  Size: 288 B

+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1500" height="900" viewBox="0 0 150 90">
<path d="M0,0H150V90H0" fill="#fff"/>
<path fill="#ce1126" d="M150,0 37,0l23,9 -23,9 23,9 -23,9 23,9 -23,9 23,9 -23,9 23,9 -23,9H150"/>
</svg>

After

Width:  |  Height:  |  Size: 270 B

+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="300">
<defs>
<g id="b" fill="#1eb53a">
<g id="s">
<g id="t">
<g id="c">
<path id="h" d="M0,-20V0H20" transform="rotate(30,0,-20)"/>
<use xlink:href="#h" transform="scale(-1,1)"/>
</g>
<use xlink:href="#c" transform="rotate(120)"/>
<use xlink:href="#c" transform="rotate(240)"/>
</g>
<use xlink:href="#t" transform="rotate(180)"/>
</g>
<use xlink:href="#s" fill="#ce1126" transform="scale(0.82)"/>
</g>
<use id="star" xlink:href="#b" x="250" y="106"/>
</defs>
<path d="M0,0H500L0,300H500z" fill="#ce1126"/>
<path d="M0,0V300L500,0V300z" fill="#1eb53a"/>
<path d="M0,0 500,300M500,0 0,300" stroke="#fff" stroke-width="40"/>
<circle cx="250" cy="150" r="85" fill="#fff"/>
<use xlink:href="#star"/>
<use xlink:href="#star" transform="rotate(120,250,150)"/>
<use xlink:href="#star" transform="rotate(240,250,150)"/>
</svg>

After

Width:  |  Height:  |  Size: 960 B

+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1500" height="1000" viewBox="0 0 15 10">
<rect width="15" height="10" fill="#fcd116" id="Yellow"/>
<rect width="15" height="5" y="5" fill="#e8112d" id="Red"/>
<rect width="6" height="10" fill="#008751" id="Green"/>
</svg>

After

Width:  |  Height:  |  Size: 324 B

+2
View File
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600"><rect width="900" height="600" fill="#ED2939"/><rect width="600" height="600" fill="#fff"/><rect width="300" height="600" fill="#002395"/></svg>

After

Width:  |  Height:  |  Size: 249 B

+245
View File
@@ -0,0 +1,245 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">
<clipPath id="c">
<path d="M0,0V150H700V300H600zM600,0H300V350H0V300z"/>
</clipPath>
<rect width="1200" height="600" fill="#00247d"/>
<path d="M0,0 600,300M600,0 0,300" stroke="#fff" stroke-width="60"/>
<path d="M0,0 600,300M600,0 0,300" stroke="#cf142b" stroke-width="40" clip-path="url(#c)"/>
<path d="M300,0V350M0,150H700" stroke="#fff" stroke-width="100"/>
<path d="M300,0V350M0,150H700" stroke="#cf142b" stroke-width="60"/>
<path d="M0,300H600V0H1200V600H0z" fill="#cf142b"/>
<g>
<path fill="#fff" d="m767.32,145.154v253.639c3.0024,36.3156,78.6864,59.178,131.454,97.7484,69.2124-46.422,136.34-55.812,139.039-107.858l0.8424-243.529h-271.33z"/>
<g fill="none">
<path fill="#2f8f22" stroke="#000" stroke-width="0.45648" d="m767.292,395.158,2.8344,14.4852,9.4464,11.3376,68.34,44.0856,50.0724,31.1796,97.626-53.2224,33.6972-25.8252,6.6144-33.696-4.0956-7.872,0.9456,8.1876-2.5212,6.6132-2.832-1.8912-1.8888-12.2808-0.3168,9.1308-4.7232,5.3568-0.9444-6.6168,1.26-4.722-1.89-5.3532-0.63,10.7064-2.5188,4.7256-2.2056-3.1512,0.9456-4.7256-0.3144-4.4064-1.5756-2.2068-0.3168,4.7256-0.9432,1.5732,0.3156,2.8332-1.89,1.8912-1.26-3.7776,0.6312-3.4668-0.6312-3.1464-1.26-3.4668,0.3168,5.67-3.15,6.9276-2.52,1.5744-1.5744-1.89,0.3168-6.6132-2.2056-3.7776,0.6288,8.1876-3.1476,7.2444-1.8888-2.2068-0.948-2.2032v-3.4668l3.4668-8.8164-3.4668,3.15-2.832,7.5564-1.26,2.2032-1.5744-3.7776,2.2056-8.5032-1.2612-1.572-2.8332,10.3908-2.5212,1.5744-1.8888-0.6312-1.2588,0.6312-152.425,8.5032-4.0944-5.9844-0.9432,5.9844-2.5212,2.2032-2.5176-11.0232-1.89,11.6544-2.5212-5.6688,1.2612-12.9144-1.2612-0.9432-1.8876,6.9276v9.7632l-0.9456,6.6132-1.89-1.26-2.5188-5.9832-0.3144-9.7644,0.9432-6.9276-2.5188,8.1876v10.0788l-0.3144,5.0364-3.1512-6.9276-1.5744-5.67-3.1488-6.612,1.89,8.5032v4.41l-5.3544-4.7256-2.8332-13.2252-0.63,9.7632,1.26,4.722-1.5744,1.8912-3.1488-5.67-1.8888-7.5564-2.2044-7.2444v11.6508l1.5744,6.3-1.26,1.5756-2.5188-1.26-0.9456-6.9312-0.6312-10.0752-2.5176,6.9276-0.6312,7.2408-0.9444,5.67-1.5744,3.7812-4.4088,0.3228z"/>
<path stroke="#4dcf4a" stroke-width="0.91284" d="m876.022,472.104c-0.8184-14.8848,12.6432-29.772-23.5932-44.6604"/>
<path stroke="#38bb26" stroke-width="1.14108" d="m910.572,463.678c0-19.662-11.2356-28.0872-33.7068-25.2792"/>
<path stroke="#51c757" stroke-width="0.91284" d="m922.368,472.104c-11.8752-14.298-27.7368-12.642-46.3464,0"/>
<path stroke="#51c757" stroke-width="0.91284" d="m951.86,453.566c-4.5108-8.406-20.9736-2.8692-38.7612,4.2168"/>
<path stroke="#7acb73" stroke-width="0.82164" d="m1011.69,426.602c-4.494-12.9204-12.3576-20.2248-23.5944-21.9096"/>
<path stroke="#4cb135" stroke-width="1.14108" d="m1026.86,406.376c-2.9808-6.6744-6.1008-13.0752-13.482-10.9548"/>
<path stroke="#60c85a" stroke-width="1.278" d="m845.686,459.466c3.9252-13.476-0.3324-18.7692-7.5828-21.0672"/>
<path stroke="#71ce5b" stroke-width="1.1868" d="m781.645,409.747c7.5-3.2556,13.4892-9.5316,24.4356-5.8956"/>
<path stroke="#71ce5b" stroke-width="1.1868" d="m772.375,401.323c6.1248,0.1284,10.4016,2.5188,11.796,8.4252"/>
</g>
<g stroke="#000" stroke-width="0.45648">
<path fill="#000" d="m905.36,150.642c-3.54226,3.25938-7.17643,6.25083-12.2809,4.95671-3.49269,1.43202-0.1051,9.6721-5.79256,7.97449-5.51847-4.36808-4.05772,5.21006-7.59441,7.21367-3.23212,1.03309-9.23263,2.62193-4.48171,6.4602,2.90371,2.83623,5.69451,7.76316,0.94071,10.2349-2.75484,5.18425-3.34176-4.77529-7.4259,1.07401-1.32405,5.91639,8.79055,4.62676,4.08827,9.21187-0.78856,2.74357-3.59803-6.76192-6.44736,0.79472-2.21447,3.12776-2.29966,7.74438,1.95225,9.14175,3.62127,2.07886,11.2149-1.08347,6.69187,5.02064,0.00071,3.60178-5.94797,9.58271-3.68958,2.80003,4.0639-4.71862-1.8354-6.02381-4.50767-2.80487-5.48606,3.74093-3.207,12.0658,2.15222,14.4675,1.58725,3.3247,3.19831,4.20255-0.81863,8.20386,0.54947,4.0071-0.28217,7.45192-5.56777,7.20054-2.95045,2.79703-4.93387,7.46347-10.5468,6.75851-5.38845,2.17173-6.74333-1.37286-7.75895-5.64889-1.74428-4.24891-8.86625-6.67841-11.4651-1.98322-3.11881-1.26246-7.17118-7.18853-10.3691-1.35643-2.84405,3.89495-7.34196-2.27757-10.3462,2.78933-3.49352,3.83808,2.17437,7.42167,2.99352,10.3485,4.67277,3.76705,2.15916,5.99326,1.16127,10.8641-1.69545,4.41349,6.18471,7.14548,3.74513,10.6827-3.50124,2.73566-9.13569,5.89127-7.78267,11.1306-4.96442,1.74934-4.29305,7.44363-2.75561,11.3861,2.50006,5.62804,13.0832,4.98976,12.577-1.90098,2.80156-0.3991,6.09545,5.68243,8.1378,8.63606-1.9793,2.07989-8.40314-0.42696-11.9477,1.37249-4.64835-0.47891-8.63578,4.57286-13.2739,5.25391-3.36265,1.9929-7.8415,4.58416-6.7234,9.42037,0.8343,4.06606,2.37229,8.11037,1.7734,12.29-2.22903,3.69492-4.13929,7.61192-3.95762,12.0699-1.96561,6.51342,2.42679,14.3677-3.14518,19.6989-1.57378,4.81798,2.70258,4.79602,4.60869,1.72367,2.58216,1.13252,4.21461-3.2789,3.97188-5.18394,2.26039,4.12424,3.04019-1.12915,5.08565,2.74261,4.13911-1.37458-0.94111-13.3054,1.65159-8.31367,1.97682,2.89796,3.02284,9.05703,5.87021,9.48817,3.1671-1.25364,1.55632-12.9016,3.84451-3.84111,2.47079,8.07865,3.75238,16.6026,7.83058,24.029,2.3965,6.98672,8.71819,13.5099,16.7166,12.1469,2.26668,2.14863-3.51443,6.58908-4.62453,9.62413-3.57381,2.7051-7.98711-0.78552-11.767-0.93801-3.78981,1.47298-8.14276,2.27747-10.8382,5.53593-1.72713,3.79253-3.04612,7.09939-3.4332,10.8552-0.88863,5.31036,0.13036,11.4231,5.4288,14.0472,1.32615-4.06475,0.32208-7.52903,5.988-7.1808,3.96282,2.27349-0.43644,8.10318,3.08723,11.6783,1.78178,3.71091,6.91704,8.34229,5.22056,1.031-2.01613-5.74223,3.3569-5.79493,6.61661-8.16246,4.29542-4.53022,4.97256-0.12594,4.39461,4.3024,2.40725,3.14858,7.21565-2.9313,8.38176-5.643,1.66418-3.14588,0.0985-9.92787,3.0556-8.5594,3.80813-0.98073,6.27449-4.46801,9.26253-6.94112,2.69313-5.24053,7.73558-0.0687,11.7046,0.68887,4.94459,2.13323,11.5753,1.37682,13.8037,7.37185-3.80873-1.882-8.25871,1.64004-6.864,6.3864,1.9254,4.86856,7.80907,3.45041,11.3493,2.75596,3.56187,1.46818,7.57486-3.00643,11.4073,0.29753,3.75006-0.8166,7.88442-0.30457,11.4062-2.17749,3.4679-2.8491,2.0463-9.28119-3.0312-8.2992,2.32392-3.43251,7.59164-4.39502,11.094-6.786,4.02682-0.36578,7.52934-4.83217,11.0583-4.16909,5.02567,3.47708,7.52356,9.09418,11.8431,13.1088,4.23568,0.49022,0.3119,6.3769,0.76513,9.97366-1.13344,4.34512,1.29721,10.359,4.92686,4.42063,2.18556-3.95092,8.19703-2.82151,8.52258-8.00637,1.67796-4.37996,2.81142,6.40087,7.104,5.8248,0.28878,3.34521-0.97692,11.5345,4.0692,6.1476,4.42932-4.06469,5.16729-10.2904,3.5904-15.8052,0.71023-4.51311,7.2393,2.71525,6.05479,5.95468,1.00747,4.16725,6.17809-3.60099,6.90937-5.97298,0.56765-6.08552,0.74611-13.2759-3.86336-17.9397-3.49944-1.73665-4.94891-7.1766-9.95409-6.97476-3.44514,1.89486-7.37505,5.50514-8.84411-0.82243-4.5437-4.03599,3.08055-4.31882,5.6258-6.17201,5.12321-3.23731,7.92808-8.79362,8.96725-14.5657,1.86359-5.29724,3.46296-10.6852,4.68515-16.1675,4.00765-1.44117,7.76437-4.3775,9.99505-6.80623,4.55375-8.55582,0.19862,6.4166-1.41842,9.93834,3.47934,1.53958,8.02677-1.24501,9.51677-4.9319,2.2413-2.48392,2.7348-12.2521,3.9023-4.42962,0.5192,2.70794-4.3038,10.7481-0.3951,9.32604,4.04-1.29321,7.2811-5.17916,9.1374-8.91988,1.6184-5.0203,3.2276-11.1261,1.1868-15.964,3.2478-2.22444-0.2354-11.5228-3.7512-6.4668-4.5133-0.851-3.2152-7.41982-4.0384-10.661,3.6967-5.2321,0.613-15.3666-6.5792-15.1198-3.63519-2.08391-6.535-3.01516-10.2622-4.42079-4.84246,1.51061-8.30162-3.06667-13.1193-2.27392-7.27824,0.36128,0.6124-7.96674,3.43543-5.09674,3.30081,4.25235,10.2938,6.27454,13.6909,1.07153-0.16107-3.9225-0.15243-9.32357-3.65476-12.394-0.69406-4.38556-1.86451-8.53282-4.88218-11.951-3.70561-5.44536,3.10924-6.71299,5.35331-10.1034,0.99678-4.38737-1.66522-9.19954-4.29157-12.7821,2.82357-2.82577,5.6705-8.06344,2.6352-11.652,1.12886-3.42185-6.57321-4.017-9.06677-3.68003-4.99081-0.33128-9.18147,4.22055-14.1507,4.56182-4.25118,3.46864-9.40421,5.39471-14.8732,4.01385-3.86818-0.96115-6.90044-5.20991-8.97502-7.73471-5.04291,2.76035-0.91474-5.44702-5.01013-7.84979-2.83276-3.88498-8.69936-3.05119-6.57192,2.6488-3.70572,4.52734-0.47388-6.08652-2.79033-8.26063-3.01597-7.27229-1.7811-2.05451,2.29253-0.0649,4.52782,3.1003,11.1217,1.2253,12.2539-4.Line truncated
<g fill="#d40000">
<path d="m904.106,194.538c-0.3108,6.8796-6.2196,5.4348-7.908,3.5532-1.6236-6.2904,7.8012-8.0148,7.908-3.5532z"/>
<path d="m907.309,194.143c0.6156,5.4336,6.8472,6.1884,8.0268,3.912,2.0592-5.1888-5.6772-8.4852-8.0268-3.912z"/>
<path stroke-linejoin="round" d="m903.481,188.9v1.1904l-0.6552,0.12-0.2376-0.2976-0.1776-1.8468-0.3576-0.1776v-0.834l0.8328-0.0588v-0.7752h-1.0116l-0.3588,0.7752-0.18,1.0716,0.42,0.894-0.42,0.7152-0.7728,0.4164-1.0728,1.014-0.7164,0.3564-1.668,0.1788-1.3692-0.6564-1.3728-1.3104s-0.5952-0.9528-0.6552-1.1916c-0.0588-0.2376-0.4176-1.0716-0.4176-1.0716l-0.3588-0.894-0.6552-0.7152-1.0128-0.12-0.2976,1.2516-0.3564,0.4764-0.8352,0.1188-0.8916-0.774-0.5964-1.0128-0.6564-1.3116-0.5364-0.894-0.774-1.1304-0.3588-0.6552-0.3564-1.5504-0.8952-1.1316-0.5952-0.9528-0.9516-0.774-1.014-0.7752h-1.1916l-0.7752-0.5952-1.1292-1.0728-0.8352-1.1316-0.534-0.6552,0.1188-0.5964,0.4164-0.5376,0.894-0.5352,0.8928-0.06,1.014-0.2376,1.0128-0.5364,0.1788-0.7152,0.1788-1.1916,1.0716-1.9068,0.4764-1.3704,0.06-1.0716,1.5492-0.2388,1.4904,0.1788,1.0716,0.2988,1.1316,0.3564,1.3104-0.6552,1.0728-1.3716,0.3564-2.382,0.4764-2.2044,0.5376-1.2504h2.742l0.9504,0.6552,0.7752-0.3564,0.714-0.3576,1.7292,0.1776h0.8928s0.7152-1.1316,1.014-1.3104c0.2964-0.1788,1.7268-2.0856,1.7268-2.0856l1.8468-0.4764,0.9528,0.12,1.3116,1.4904,1.0716,0.6552,0.954,0.06,2.2644,1.4892s0.7152,0.5952,0.954,0.4752c0.2376-0.1188,2.2656-1.0128,2.2656-1.0128l1.7844-0.1188,1.908-0.6552,0.6552,1.488s0.954,2.2644,1.2516,2.5032c0.2988,0.2376,1.4892,2.5008,1.4892,2.5008s0.5964-0.2976,0.8952-0.3576c0.2964-0.0588,1.6668,0.2988,1.6668,0.2988l3.9324,0.1788,0.5364-0.5964,0.4152,0.7152-0.534,2.7408,0.2376,2.0856,0.7152,2.8008,0.8928,1.3104,1.1928,0.0588,1.5492,1.3116,0.06,1.3104-1.1916,0.4176-1.0728-0.3576-1.3728,0.774-2.1432,1.2504-1.7892,1.788-1.5468,2.2032-1.014,2.2044-1.0116,0.7152-0.8952-0.3576-0.894,0.0588-0.4164,1.0728-0.894,1.0716-0.7752,2.7408-1.668,1.8468-1.728,0.834-1.2504,0.954h-0.8328l-1.4304-1.3716-0.6552-0.5952-0.1776-2.1444-1.3728-1.074h-1.014l1.4904,1.1928,0.06,1.608-0.8328,0.714-0.4188-0.1188-0.4152-0.834h-0.4788l-0.06,1.608-1.7868,2.0856-1.7868-1.4892-0.06-1.9068-0.8916-0.1752z"/>
<path d="m874.307,173.86,2.6616,0.0852,1.3752,2.0628,1.2024,1.2876,1.2012,0.9456,1.032,0.1704,1.9752,2.9208v0.3444l1.5444,1.374,0.4308,1.8024,0.1716,0.6012-0.0864,0.7728-0.8592,0.516-1.0308-0.1728-0.6012-0.4296-1.8876,1.632-1.2036,1.632-0.7728,0.1728-2.0628,2.232-1.0296,0.3444-1.632,1.2024-2.5764-0.0864-1.6308-1.9752-0.342-0.774-0.0864-1.5456,1.4604-1.0308,0.6864,0.7728-0.342,0.7728,0.084,0.9456,0.8604,0.3432,0.858-0.0864,3.0924-2.6628,0.7728-0.4296,1.8036-1.8024,1.1172-0.6012-0.0852-1.116-1.2888-1.9752-0.4284-1.374-0.3432-1.2888-0.342-0.9456-1.2036-1.3728-0.6876-0.774-0.258-0.7728-1.2012-0.9456-0.3432-0.1728v-0.5988h-0.005z"/>
<path fill="#a00" d="m926.009,183.908h1.3752l1.4604-0.6876,1.1172-0.9444h1.0296l0.6876,0.6864,1.1172-0.0852,0.6864-0.8592,0.258-1.0308,0.9444-1.2876,0.258-1.2888,0.8592-1.8036,0.258-1.2888-2.1468-0.0852-2.4912,2.148-1.89,0.0852-1.5456,1.632-1.2012,0.1704-1.2888,1.89-0.4284,1.1172,0.1716,1.1172,0.7692,0.5148z"/>
<path stroke-linejoin="round" d="m899.472,201.173-1.6332,1.632-0.4284,1.4592,0.6864,1.4592,1.5468,0.258,1.1172-0.6,1.0296,1.2012,0.1716,2.0616,2.0616,2.232,0.9444,0.258,0.774-0.8592,0.858-0.8592,0.0864-0.858,1.3752-0.6012,0.3432-2.5764,0.774,0.9432,1.2864-0.7728,1.6332-0.1704v-2.148l-0.6012-1.4592-1.29-0.9456-1.974-0.8592-2.1468-0.7728-1.0308,0.0864-1.8924,1.1184-2.0604,0.6852-1.6308,0.0876z"/>
<path stroke-linejoin="round" d="m912.4,200.641,3.1008-0.1416c2.1276-1.38,3.048-6.9996,4.512-10.7136,2.2716-2.9448,5.0604-3.8256,8.46-2.256l1.974,0.564,2.5368,1.9728h1.8312l1.2708,0.282,1.974,0.1416,3.5256-2.82-0.1404,2.9604-2.3976,2.1144-4.9344,1.8336-3.8076-2.2548-0.1404,0.564,8.178,9.0216h0.7044l1.41,1.41,0.7044-0.564,0.1416-2.3964,2.8212-2.5368,0.2808,3.6648,0.9864,1.8324v3.5244l-2.6784,3.384-4.2288,0.564-4.9344-3.1008-0.1404-1.41-4.5132-5.2164v2.256l2.6796,5.4984,0.4224,2.1144,0.9876,0.9876,0.7056,1.6932v2.1144l1.2672,2.9604,2.256,0.2808,0.5664-1.4088v-1.974l2.3964-2.3976,1.5516-0.1404,0.564,0.846-0.7056,0.7044-0.282,1.5516v0.9864l1.974,2.6784,0.5652,1.692-2.9616,4.5108-1.9752,0.5652-3.5232-0.5652-2.1156-1.4088h-1.128l-3.2436-4.9356-0.4212-2.3964-4.3716-6.9084-0.1428,1.41,1.6944,2.1156,0.8448,3.2424,0.8448,5.7804,2.538,4.9344,0.1404,9.1644,0.8472,0.9864h1.1256l1.4112-1.1268,1.1268-1.5504-0.282-5.358h1.5516l2.6784,1.5516,1.974,3.2424,0.7044,1.41v2.9604l-0.9852,0.1404-1.9752,2.1156-3.2436,1.4088h-5.6376l-1.2684-1.1268h-1.128l-0.8448-0.846h-1.5516l-4.3728-6.2028-0.1392-10.2924,0.564-2.2548v-3.102h-0.7044v3.102l-0.7068,1.9752-0.1404,2.8188,0.1404,7.7544,4.6524,7.4724,3.384,1.692,0.9876,1.128h-1.551l0.1416,1.128-1.2708-0.282-0.2808,0.564-0.7044-0.282-1.2708-0.8472-1.692,0.2832-1.1256,0.564h-2.9604l-1.2708-2.538-0.9852-1.974-3.384-3.102h-2.538l-0.564-1.8324,0.4236-3.2424,0.7068-2.9604v-7.896l-0.5664,9.024-1.5492,5.0748-0.5652,0.4236-0.1416,5.7792,0.9876,2.6796,3.9468,4.3704-2.6784,0.282-1.974-0.8448-2.1156,0.4212-3.2412-0.7044-3.6672-1.2684-2.3964-2.3964-1.128-2.6796-0.4236-2.6772-0.564-2.82,0.564-2.2548,0.282-2.256-1.1268,2.5368v6.0624l-1.5516-0.4224v-1.692l-1.2684-1.692-0.2808-2.256-0.4236-3.3828-0.1428-5.4984,0.1428-3.384,0.7044-3.8064-0.564-0.1416-0.4248,4.7952-0.2808,9.4452-0.9864,0.2832-2.2548,3.1008h-5.078l-1.974-1.6908,3.8076-4.0896-0.4224-3.2424-0.4248-3.8052-0.4224-6.486-4.3716,4.6524-4.9332,3.5256h-4.23l-2.3964-2.9616-0.4248-3.3828,0.2832-2.3976,2.5368-3.384,1.8312-0.2808,0.7068-0.7056,0.4224,0.564-0.9852,2.82-0.9876,2.1144,0.8448,1.974,2.3988,0.282,3.1008-4.7928,2.3964-5.64,1.8324-2.82v-1.5504l-1.6896,1.2684-1.9752,0.4236-5.7792,0.1416-3.3828-2.1156-0.5652-1.692,0.1404-1.5504,0.1428-2.1144,3.6648-2.3976,0.1404,5.0748,2.3988-1.974v-0.982l3.1008-4.0896,7.4724-6.6252h4.512l2.6772,1.974,1.1268,0.282,3.2436,3.102,0.1404,3.9468,3.8076,3.102-2.256,2.6784,0.138,1.4112,2.118,1.5504,1.9728-0.564,0.846,5.2164,2.3964,1.41,1.2684,0.1404,4.7952-5.64,2.1156-0.2808,1.2684-2.82-0.5664-2.256-0.5616-1.2768z"/>
<path d="m858.209,249.643v0.8268l1.6572,2.2476-0.1188,2.3664-8.4,4.2588-3.6648,0.2376-1.8948,1.7736-4.8504,1.5384-2.1276-0.474,0.354-1.182,0.2364-2.0112-0.2364-1.1832-1.5372-0.828v-1.8948l1.8924-0.5904-0.5928-0.8268-1.0644-0.12,0.2376-2.4828,0.4728-0.9456,0.1188-0.5928-0.1188-1.1832-0.4728-1.0644-1.302-0.3564-3.7848,1.5396-0.5916-0.5928-1.7748,1.8924-0.9468,0.1188-0.1176-1.5384-1.8924-2.4852v-0.474l-3.5484-0.5904-2.4852,3.1944h-1.7748l-1.2996-0.9456h-1.0668l-1.1808,0.708-0.7116-0.2352-1.0644,1.8936h-0.5904l-0.7116-1.5396-0.9456-1.5372-0.354-0.948,0.474-1.8912,1.5372-0.9468,1.89-0.948,1.4232-0.2352,1.6548,0.9468,0.7104,1.536,2.13-2.01,2.1276-2.3664,1.7736-0.7092,2.2488,0.354,2.4852,3.3132,2.364,0.2352,2.8404-2.0112,1.0644-0.5916,2.604,0.3552,2.6028,1.4196,2.7204,4.0212,0.474,3.9036,0.5904,1.0656,4.7316-0.3564,4.968-0.9456,2.838-0.1128z"/>
<path stroke="none" d="m861.049,244.319-1.302,5.7972,1.5372,1.656-0.1188,1.8924,0.8268,0.828,1.5384-0.828,1.5372-1.0644,1.5372-0.5928,1.7748-0.9456,0.2352-1.0656,1.8924-0.9456,2.0124-0.5928,2.6016-0.7092,2.604-0.3552-1.8924-1.302-5.442-3.5472-2.2488-0.2376-0.828,0.7092-3.192,0.1188-1.7736,0.4728-1.2996,0.7116z"/>
<path d="m887.192,238.523-3.7848-0.1188h-2.4864l-2.01-0.8268-1.656-1.656-0.2364-1.5384-1.182-1.8924-1.1832-1.1832h-1.7748l-2.4828,1.656-1.0656,2.1288-0.2352,3.4308,1.4184,2.9568,4.7316,3.5496,2.7216,0.5904,1.8948-0.8256,4.2564-1.8936,2.7216-1.7736,0.9492-1.5384-0.5964-1.0656z"/>
<path d="m878.083,233.08,2.1276-2.2464,0.1188-5.088-0.5916-0.4728,0.5916-2.0112,0.2364-1.656h-0.828l-4.614,4.3764-3.1944,0.4728-1.6536,0.948-0.12,1.182,1.302,0.828,2.3664-0.2364,1.2996,0.1188,2.9592,3.7848z"/>
<path d="m879.976,246.448,4.1388-0.3552,3.3132,0.2376,1.656,0.474,3.3132,1.7736,1.8936,0.948,3.6672-0.2376-1.4196-1.7736-1.4208-1.7748-0.948-1.7748-0.2352-1.7736-0.8256,0.2364-0.948-0.2364-1.182-1.5372-0.7092-2.2488-0.4752-2.9568-0.9444-0.12-0.7116,1.4196,0.7116,0.7092,0.708,1.4196-1.1832,1.5372-0.1176,1.1844-1.5372,1.1832-2.13,0.9468-2.0112,0.8268-2.2476,0.828-0.3552,1.0644,0,0z"/>
<path d="m910.26,241.006,0.1188,5.0868,1.7748,1.5384h1.6548l1.302-0.7092,0.3552-1.0644-1.1832-0.7092-0.474-1.4196-2.484-2.7216h-1.065v-0.001z"/>
<path d="m929.543,245.028,5.0856,3.4308,1.5384,0.474,1.4196-0.474,2.3652-1.8924,1.182-2.6028,0.12-1.8912-1.182-0.1188-1.8924,1.302-2.7216,0.2364-2.1288,0.354h-1.6572l-1.6572,0.3552-0.4716,0.8268z"/>
<path d="m944.21,241.126-0.9444,1.5384-0.9468,2.3652-2.13,2.2488,0.1188,1.6548h-0.948l0.1212,1.302,1.6536,1.2996,4.6152,0.7092,3.6684-4.7304v-1.302l-2.0124-2.3664-1.4208-0.354-1.7748-2.3652z"/>
<path d="m965.74,254.375,2.3676,1.1832v0.828l-0.9468,1.302-0.5904,2.4828-0.2376,1.5384-2.8392,0.1188-2.9568-1.0644-1.6572-1.0644h-1.5372l-0.828-0.7092-1.4184-0.9468-1.776-1.1844-1.8912-2.4828-1.3008-1.656v-1.1832l1.7748-2.2476,1.7748-0.5904h7.926l3.666-1.302,2.9568-2.484,3.5496-0.7092,0.828-0.9468,2.3664-0.474,5.9148-3.0756,3.312,0.5904,3.3132-0.1176,2.838,0.8268,1.0656,0.9468-0.5916,0.3552-1.5372-0.1188-1.7748,0.9468-0.2376,3.1944,1.4196,2.6016-0.354,0.7104-1.7748-0.1188-1.182-0.5928-0.5928-1.0644v-1.0644l-1.1808-1.656-0.9468-0.354h-2.1276l-0.7104,4.494h-1.0668l-2.0088-1.7736-2.9592-0.3564-2.0112,1.7748,0.7092,2.3664,2.9592,2.8392h1.5372l1.4196,1.6548-0.12,1.3008-2.1276-0.474-2.13-0.4716-1.7736-0.8304-1.4208,0.2376-1.656-0.948-1.656-0.708-1.0644-0.474-0.714,0.9504z"/>
<path d="m973.724,307.228-1.8816,1.7052-1.2552,2.4192-0.4476,2.508-0.8064,3.1368-0.3588,2.4192,0.3588,5.2872,0.18,2.8668,1.7016,2.6904,0.8952,0.2676,1.0752,2.1492,1.5228-4.2108,0.7188,0.5376,0.4476,3.1356,2.5092,2.1504s-2.3304-1.164-2.868-1.164-0.6264,0.6252-0.6264,0.6252l0.6264,1.344,1.4328,1.434,2.5104,0.984,4.6596,0.09-1.0752,1.0752h-3.2256l-0.8088,0.6264,1.1664,1.7028,1.4328,2.2392,2.6004,1.2552,2.6856-0.7164h0.8964l-0.4476,1.0752,1.344,0.984,1.164,1.0752,1.0764,1.1652,0.8952,0.1788v1.344l-1.6128,4.0332-0.36,1.8804-0.894,1.524-0.5376,2.328-1.6128,2.778-0.1788,0.9864h0.8064l1.164-1.5252,1.704-0.7164,2.0616-2.688s1.164,0.36,1.434-0.18c0.2676-0.5376,1.5228-4.3008,1.5228-4.3008l1.254-0.2688,0.6276-3.942,1.0752,3.6744,0.8976,4.6596-0.36,3.9432-2.3304,4.2996-0.6252,0.72,0.3576,1.4316h1.7028l1.9716-2.0628,3.4044-4.5696,1.3464-4.5696,0.7164-8.8716,1.5228,4.1232,1.434,4.0308,0.7188,3.1356-1.0764,4.122-1.344,4.8408,1.7928-1.2564,3.7644-4.212,2.9556-4.3884,0.8076-3.2256,0.7176-6.1836-0.4488-4.8384,0.1776-1.7928,0.6276-0.9852-0.09-3.2256-0.6264-1.344-2.1492,2.8668-0.8964,0.18-2.5104-1.7028-0.6252-0.18-1.434-2.0616-0.984-3.3156,0.088-3.7632h-0.5364s0.2688-3.1368,0.5364-3.9432c0.27-0.8064,0.6276-2.328,0.6276-2.328l-0.4488-3.3168-1.7016-3.1368-2.0616-1.7904-3.3144-0.9852-3.8556-1.0764-2.2392-1.7904-4.212-0.4476-2.1504,0.2688-4.032-1.8816-2.5992-0.9864-3.3144-0.0876-3.1368-0.36-1.6164,0.0936z"/>
<path d="m829.548,307.424-8.2644-0.1644-1.3224-0.6612-1.9824,1.6512h-3.8016l-4.1328,2.3148-2.8092,2.148-1.4868-0.1644-5.7864,5.2896,0.8268,4.296,0.66,1.158,0.3312,4.1328,0.1644,5.9484-1.3212,0.9936-1.9836,4.9596-1.158,4.296-0.9912,8.43,0.8268,6.2796-1.158,3.306-2.3136,3.6372-0.4956,1.818,1.9824-1.3236-0.3288-0.6612,0.9912,1.4868,2.4768-4.4628,0.9936,1.6536,0.99,0.1644v-5.6196l-1.1556-8.76,2.8092,9.0924,0.6624,3.3048,0.4956-0.1668,0.33-7.4376,1.8168,4.1328,0.1668,3.6348,0.8256,0.6624,0.498-0.9924v-5.454l-2.9772-8.76-1.4868-8.1012,3.9672,10.5792,2.3148,2.148,2.148,5.7864,1.8204,3.3048,0.3288,2.148,1.3224-0.8256,0.498-0.8256-1.158-0.8268,0.8256-0.66-0.1668-2.9748-0.99-6.9396h-0.9912l-3.4716-7.2732,3.1404,4.464h1.3224l0.1656-1.1592-1.4868-2.9748-0.33-3.4716,2.9748,4.2984,0.99-0.4956-1.6524-4.7952-0.3288-5.454,0.9912,2.3136-0.1656,2.6448,2.1492,2.646,2.148,1.1556,1.6524-1.9812-1.158-0.828-0.4944-2.3124-1.6548-1.9836v-2.646l2.3172,4.1328,2.1468,1.488,2.1492,0.4956,2.1492-1.4868,3.6348-4.1328-0.4932-0.4968-3.804,0.1668-2.9748-1.9836-2.6436-2.478v-2.1492l0.4956,0.3288,1.1556,2.316,2.1492,2.1492,2.4792,0.3288,3.1416,0.1668,3.4692-3.1404,1.8204-5.9508,0.4956-3.306-0.6612-4.1316-2.1504-4.794-1.3224-2.1492-1.1568-0.4968z"/>
<path d="m951.204,398.996-8.7624,9.0876-1.1568-0.3288-3.1404,2.6448-0.1644,2.8104,2.9748,2.316,1.158,2.148,0.8268-0.1668,2.9736,3.636,2.8116,3.9684,1.158,0.6624,0.8244,1.8168-1.4856,2.148,0.4956,1.3248,2.3136-0.3324,2.646,0.1668,1.6512,0.9912,0.6624,2.976v1.1544l1.818-0.99,1.488-2.1492,0.1656-5.2884-0.3288-1.4868,0.4932-3.9684,0.4956,5.2884,1.158,1.6536,0.8256-0.6624,0.9912,3.4728,2.1492,2.1492,1.158,1.9812,0.1668-1.32-0.1668-2.6448,1.158-2.976,1.3224-3.4704,1.3224-0.828,1.1556,0.4992,1.656,1.65-0.1668,0.6624,1.488-0.1668-0.3324-3.966-2.1468-2.976-3.3072-2.1456-1.6524-1.6524-1.4868-2.6448,2.3136,1.3212,2.4792,2.3148,2.3136,1.158,1.6536,0.3288,2.8116,5.4552,1.818,2.6448,0.33-3.636,1.3224-4.134,1.3236-1.8168,1.6524-0.1668,2.1492,0.6624-0.4968-2.4804-1.6524-3.1404-3.306-2.9736-3.4716-2.6448-2.9736-1.3248-2.6472,2.316-0.8256,0.3288-1.488,1.3248-1.1556-0.4956-3.8028-3.6396-0.9912-0.6588-1.6524-3.9684-2.4804-1.158-3.8016,0.3324-4.632-0.9936z"/>
<path d="m851.863,396.848,0,0,1.158,1.9812,0.9924,3.1404,1.6512,1.8204-0.1644,0.99,2.3136,1.9824,2.3136,3.636,3.8028,3.1392-2.8104,2.4816-6.612,4.9596-2.1492,0.6624-2.8092-1.6572,0.33,3.9684,1.1568,1.8204-2.9748-0.6624-3.4728,0.3288-2.148,1.8204-0.4968,1.8168-0.8256-1.3212-1.158-1.8204-0.33-0.3288-0.66,0.4956,0.4956,0.3288,0.1644,3.306-0.8256,0.6624-0.1668,0.9912-3.8004,2.478-0.9912-2.478-1.3248-2.8104-2.3136-1.158-2.478,0.3324-2.8104,1.6524,0.8256-2.3148,1.6536-2.6448,3.1392-2.6436,3.1404-1.9824,2.4792-0.9912,0.6624-0.3324-0.828-0.8256-4.626,1.3212-3.3072,2.1492-3.4716,2.4804-2.6436,3.7992-1.3224,0.9912v-2.808l-1.4892-3.8016-0.4956-2.4816-1.488-1.8168h-1.8168l-2.4792,0.4956,1.8192-3.1392,3.6348-1.9824,1.6536-2.8104,2.9748-2.4816,2.4792-0.4956,3.6372,0.4956,1.8156,0.9948,3.474,0.1632,2.1468-0.1632,2.646-1.3248,2.1492-3.9684,2.9736-4.2948,3.474-1.8192,4.1328-0.3264z"/>
</g>
<path fill="#000" d="m892.877,173.292v2.0844l-0.7752,1.2504h-1.3704l-0.8328,0.894-0.2388,0.7152,1.5492,1.4292,1.4292,1.0128,0.5952,0.7164,0.3588,0.1776,5.958-0.06,0.714,0.7152,1.3116-0.9528,1.6104-2.4432,5.064,0.06,2.6796,1.9656,0.1788,1.6092,0.5964,0.2388,1.428-1.2504,1.1916-0.0588,0.5952,0.774h1.074l3.5148-3.1584,0.5964-0.834,1.3104-0.06-0.1776-1.0128-1.4292-0.3576-1.2504-1.2504-0.3588-2.0856-1.1316-0.1776-1.9656,1.0128-3.396,1.668-1.1328,0.834-1.0128,0.0588s-0.4164-0.3564-0.6552-0.3564h-1.3104l-1.074,0.894h-0.834l-0.2976-0.2988-4.5876-0.3576-3.8124-0.9528-1.968-1.3104-1.2504-1.0128-0.3588-0.3564-0.5352,0.2364z"/>
<g fill="#fff">
<path d="m895.739,178.772h2.6208l0.6552,0.5364v0.714l-1.2504,0.5364-2.2056,0.1188-1.5492-0.2376-1.074-0.954-0.2364-1.9056,1.428-1.6092h1.3716l0.12,0.5364,0.12,2.2644z"/>
<path d="m913.254,178.654-0.4164,0.3564v0.7152l0.534,0.3576,2.6232,0.12,2.8596-2.2632,0.06-0.8952-1.7256-1.4892h-1.4904l-0.2388,0.4164,0.3588,0.7752,0.4752,0.7152-0.4752,0.9528-2.5644,0.2388z"/>
</g>
<g fill="#48489c">
<path fill="#5656a6" d="m819.408,249.526,1.5384,2.7192-0.1176,4.8504-0.5928,0.5928-2.2464-1.8936-1.1844-1.6548-1.1832-2.0112v-1.7736l1.1832-0.9468,1.5372-0.354,1.0656,0.4716z"/>
<path fill="#5656a6" d="m824.141,257.33,3.4296-7.0968v-1.8924l-1.302-1.8948h-1.7748l-1.8912,1.7748v6.27l1.5384,2.8392z"/>
<path fill="#5656a6" d="m830.054,257.33,1.8936-0.8268,4.614-4.3776,0.7092-1.3008-0.3564-1.0644-1.2996-0.9468-0.8268-0.2364-1.8936,0.828-1.0644,1.0644-2.13,3.7848,0.354,3.0756,0,0z"/>
<path fill="#5656a6" d="m838.219,260.406-1.6572,1.1844-1.8936-0.1188-3.4284-2.3664,0.1176-0.474,2.1288-0.3552,1.8924-0.828,1.8924,0.1176,1.0668,0.9468,0.3528,1.0656-0.4716,0.828,0,0z"/>
<path d="m970,256.975h2.7216l1.5372,0.828h3.0756v1.1844l-1.7748,1.2996-3.4308,0.9468-1.5384,0.7092-1.182-0.1188-0.828-1.0644v-1.656l0.7092-1.4196,0.7104-0.7092z"/>
<path d="m988.808,253.31,0,0s1.8936-1.0668,2.2464-1.8924c0.3564-0.828,1.1832-2.604,1.1832-2.604l0.7116-3.0756-0.9456-2.6016-1.7748-0.4728-1.5372,0.1176-0.828,0.8268-0.2352,2.2488,0.8268,1.8924,0.7104,1.0644-0.1188,2.0112-0.2388,2.4852z"/>
<path d="m981.71,254.255,0,0,1.8936-0.9456,1.1808-2.2476,0.1212-2.4852-0.9468-1.8936-1.302-1.4172h-1.7748l-0.474,3.3108,1.3008,1.302v4.3764h0.001z"/>
<path d="m979.463,256.385,0.7092-0.828,0.3576-1.7748-0.7104-2.6016-1.0668-1.1832-1.2996-1.1832-1.4208-0.9456h-2.0124l-1.2996,1.0644,0.3528,2.13,2.3688,1.7736,1.8924,0.3552,2.1288,3.1932z"/>
<path d="m988.106,250.757v2.1336l-2.1324,0.306-0.1524-2.8956,2.2848,0.456z"/>
<path fill="#4f4d9f" d="m971.699,428.416-1.818,2.4804v4.1316l0.8256,1.9848-0.8256,7.7676,4.1328-5.784,1.4856-2.9772-0.1644-3.9648-1.158-1.8204-1.3224-1.1568-1.1556-0.6612z"/>
<path fill="#4f4d9f" d="m985.418,419.824-1.3224,0.3288-1.488,3.1392-0.3288,4.1316,0.8256,2.148v2.9772l0.3312,1.8168,1.4856-2.1456,2.1492-3.6384,0.3288-2.6448v-3.6348l-0.9912-1.6536-0.99-0.8244z"/>
<path fill="#4f4d9f" d="m949.384,441.308,2.1492-1.4868,1.6536-1.158,2.1504-2.808-0.3324-2.148-1.3236-0.9912-1.6524-0.6624-1.4868,0.1668-1.6536,2.3124,0.1668,4.6296,0.3288,2.1456,0,0z"/>
<path fill="#4748a5" d="m848.724,426.766,1.6524,0.6588v4.464l-2.8092,3.1404-3.1392,2.3148,0.1632-2.976-0.8256-0.9876v-3.144l0.6624-0.8256v-1.4856l2.8092-1.4904,1.4868,0.3312z"/>
<path fill="#4748a5" d="m827.234,429.409,2.3136-0.1656,2.4792,1.4856,0.9912,2.8116-1.4868,1.3236-0.8256,1.3212-0.4956,2.1492,0.33,3.4728,0.1656,3.1404-2.8092-3.474-2.3136-3.6348-0.1668-3.6348,0.8256-3.1404,0.9924-1.6548z"/>
<path fill="#4748a5" d="m819.3,425.278-0.6612,2.3124-0.8256,0.4956-0.9912,1.3236v4.9572l-1.6536-0.9876-1.818-2.316-0.9912-2.4804,0.3312-6.2796,0.8256-2.6448,1.9836-0.6624,1.9836,0.6624,1.6512,3.8016,0.1656,1.818z"/>
<path fill="#4748a5" d="m819.468,409.246-0.9924,2.4768-2.6448,1.9824c-0.4044-2.64,0.9552-4.026,3.6372-4.4592z"/>
</g>
</g>
<g stroke="#000" stroke-width="0.45648">
<g>
<path fill="#dfda4d" d="m825.559,261.236,3.1932,2.9568,2.3676,1.5372,1.8924,0.7092,2.3664,1.302h4.9692l4.494-0.474,2.2476-0.828,4.3764-0.1188,3.5496-1.656,2.6016-1.7736,2.6016-0.1176,1.4232-1.4208h1.8912l3.7836-2.8392,5.3256-2.364,5.5596-2.0112,6.0348-1.1832,2.4828,0.1176,0.9456,0.7092,1.1844,2.0112,0.4716,0.9468-0.5904,2.0112-2.2464,1.302-0.474-1.4208,1.4184-1.1832-0.354-0.7092-2.2488-0.3552h-1.5384l-1.4172,1.4196-0.2376,3.1944,1.8924,1.6548,2.0112,1.302,1.7748,0.1188,2.13-1.2996,2.8392-2.4852,1.6548-2.8392-0.474-4.14-0.9456-2.604-2.8392-2.1288-3.5484-1.4208-6.1512,0.12-3.6672,0.9456-1.4208,0.474-3.9024,2.6016-1.7748,0.1188-3.9036,2.6016-1.5396,0.5904-1.7748,0.7092-2.7204,1.1844-5.2068,2.364-3.5472,2.13-1.7748,0.2376-4.1388,2.6016-5.916,0.474-1.0644-0.5928-2.7216-0.354-1.7748-0.7116-1.7736-0.9456-2.4828-2.9568-0.7116-0.474h-2.2476l-0.7092,0.948,0.3552,2.0136z"/>
<path fill="#d9d24d" d="m894.408,251.299,0.7104,5.9148-1.3008,3.666,2.7216,0.1188h3.192l2.8392-0.5928,2.7216-0.2364,2.4852,0.1188,2.0112,0.2364,2.4828-0.9456,0.1188-1.8924-0.5916-1.656,1.182-3.6684-0.474-0.828-18.0984-0.2352z"/>
<path fill="#d9d34a" d="m922.444,257.804-0.7092,0.474-1.0644-0.474-0.5928-1.6548,1.1832-1.0656,2.6016,0.1188,2.3664,2.1288v3.0756l-3.1944,1.5396-3.3108,0.828-3.6684-1.0656-2.2476-3.0756-0.5916-2.1288,0.474-3.6684,0.5916-2.3664,3.1944-2.3664,3.4296-1.0644,4.0212-0.5928,4.6164,1.1832,9.3432,3.5496,6.27,2.8392,6.9792,3.6684,4.1412,1.8924,5.442,2.6016,3.3132,1.1832,3.7848-0.474,1.656,0.1188,3.312-1.0644,2.2476-0.2376,4.968-5.7972,2.0112-1.1832-0.2352,2.6016-3.3132,3.6684-2.838,3.1944-1.182,0.1188-1.5384,1.2996-2.9568-0.1188-6.8616,0.3564-3.312-1.0644-5.2056-1.0656-6.1512-2.7204-4.8516-2.4852-2.3664-0.3528-3.6684-1.8936-2.2464-0.2364-1.3008-0.9468-4.0236-1.182-3.3132-1.1844-3.192-0.3552-2.4852-0.354-1.182,0.7092-1.1832,1.656-0.5904,2.2476,0.828,2.7216,1.4196,0.2376,1.302-0.5904,0.4716-0.9468-0.5916-0.2364z"/>
<path fill="#ddd457" d="m852.564,388.192-1.5108,1.5072-2.3736-1.5072,1.0776-2.8044,3.8832-0.648,2.1576,3.2352-0.864,3.234-3.0204,3.018-3.6672,1.08-3.666,0.4296-4.3128-0.2136-5.8248-1.2972-4.5276-5.3904-3.4512-6.9012-2.586-5.8224-3.0204-11.862-1.5108-4.9608-0.6468-4.5288-3.234-6.2544,1.2924-1.0776,11.2152-9.9204h0.648l2.3736-2.1576,4.0956-7.764,0.432-0.4308,1.2936-4.7436-0.216-8.1948-1.0776-3.882-2.5872-4.314s-0.8628-1.5096,0-1.2936c0.8616,0.216-2.3724-3.6672-2.3724-3.6672l-3.884-4.1v-0.86l-2.802-2.8044-1.9416-1.0776h-1.5096l-0.648-0.864-2.8044-0.8616-1.2924,1.2936-0.8628,2.8044v1.0788l1.9392,0.8616,0.6468-0.4308-0.6468-1.08,0.216-1.2936,1.512-1.0776,1.7244,1.2912-0.216,3.2352-1.2936,1.5108-3.234,0.2172-2.5884-1.2948-1.0776-2.1576-0.8616-3.2328,0.8616-1.9416,1.2948-1.0776,2.1564,0.4308,3.45-0.864,1.0776-0.4308,2.8044,0.4308,1.9416,1.9416,2.1552,1.2936,5.3928,6.0396,1.5084,1.5084,2.8044,4.0992,3.4512,7.764,0.8616,5.3904-0.4296,5.3928-2.8044,7.764-3.2352,4.9596-4.5276,5.6076-7.764,6.4716-1.0776,0.2148-1.7256,2.1576,3.0204,6.4692,4.7436,19.842,3.882,8.1948,5.6076,5.8224,4.3128,2.3736,5.6088,0.648,4.9596-1.296,2.1576-1.938-0.864-1.2948z"/>
<path fill="#dbd45d" d="m861.622,392.72-0.6468,1.0764,0.8628,1.7268,2.1576,0.4308,1.5084-1.9416v-2.1588l-1.2948-2.37-1.7244-0.4344-1.9404,0.2172-2.8044,1.9416-1.5108,1.7256-0.8628,4.0968,2.1576,6.6876,3.4512,4.5276,8.6256,5.6076,9.2748,3.45,5.8212,0.8616,4.3152,4.3152,2.1564,5.1744-1.9404,3.2376-2.5884,0.2148v-1.2936l1.0776-0.2172,1.2948-1.2936-0.6468-1.2936-2.5872-1.5108-2.1564,1.7256-0.2172,3.8832,1.9392,1.9416,2.8044,0.6444,2.1576-0.8628,2.1552-2.3736,0.2184-2.8032-0.8628-4.098-3.6684-5.1732-3.8796-1.9416-9.7056-3.4524-6.2544-2.37-4.53-3.2388-4.0968-4.3116-2.3724-6.252,1.0776-4.098,2.3736-1.7268,1.2936,0.4308-0.432,1.2984z"/>
<path fill="#e5dc5e" d="m939.906,392.934,1.7256,1.0788,0.2172,1.7244-1.9416,0.8628-2.5872-0.4308v-2.586l1.5084-3.2352,4.3152-0.2172,1.9404,2.3736,1.2948,4.5276-1.2948,4.746-4.9608,4.0968-6.9012,4.746-7.548,3.234-11.214,5.3904-3.2352,2.37-2.8044,5.1768,1.7268,3.0216,2.1564,0.4308v-1.0788l-0.648-0.8628,0.4308-2.3736,1.2948-1.2924,2.586,1.5108,0.6492,3.234-2.3736,2.3736-2.5884,0.4308-4.0968-1.9416-1.2948-2.1552-0.2148-3.0228,1.7256-2.8032,3.45-3.4488,5.3928-3.0228,7.764-3.234,11.4288-5.6052,7.9788-8.628v-3.4488l-1.7256-2.1564-2.1564,0.2148z"/>
<path fill="#d7d643" d="m949.826,386.681v1.938h1.5096l1.5108-0.2148,0.6468-2.586-1.2936-1.7244-1.7256-0.2184-2.1576,0.4308-2.3712,1.7256-0.216,3.4524,1.0764,2.37,2.1576,3.234,3.882,1.9416,3.8808,1.0788,5.8248-0.4308,6.6852-3.234,6.2544-4.5288,2.5872-6.2556,3.234-11.43,4.0968-14.448,2.5884-5.3904,2.1564-1.9428-0.6468-0.8616h-1.9404l-4.9608-3.666-5.1744-3.2352-6.6864-7.9788-3.45-6.6864-1.0788-9.4884,1.9416-9.2748,4.0968-6.9012,6.6852-5.6076,6.0396-4.3128,6.0384-0.2136,0.8604,2.3712-0.8604,1.9416-1.2948-1.0788-1.9404-0.216-0.8616,3.2352,2.154,1.0776,3.882-0.4308,1.08-2.5872-0.4308-3.666-2.8044-2.5884-4.962,0.4308-3.666,0.4308-4.53,2.5884-4.7424,4.9596-3.234,4.7448-4.0992,6.6852-1.2936,6.0384,0.216,10.5684,5.3928,11.4288,4.7436,6.0396,9.2724,6.2532,1.5108,1.0788-2.8032,6.2544-4.098,13.1556-2.5872,10.5672-2.1564,4.5288-6.9012,6.0384-7.7652,3.018-6.684-0.2136-3.2352-2.3736-0.864-2.1564-0.216-3.234,1.7268-0.4308z"/>
</g>
<g fill="#5db7d2">
<path fill="#44b3cc" d="m890.873,284.615-0.33,3.3048,0.9912,7.2732,3.636,19.9992h1.8192l0.1644-3.1392-6.2808-27.438z"/>
<path fill="#50aece" d="m900.127,313.706-6.6108-28.926,4.9572,29.4216,1.6536-0.4956z"/>
<path fill="#50afce" d="m901.285,313.375,2.3136-0.8256-8.5956-27.7692,6.282,28.5948,0,0z"/>
<path fill="#50abce" d="m897.484,283.127,10.0824,28.926-1.9836,0.66-8.0988-29.586z"/>
<path fill="#50b0ce" d="m909.054,311.39-9.7524-29.2548,12.3972,28.926-2.6448,0.3288,0,0z"/>
<path fill="#50b3ce" d="m912.69,309.904-11.5704-27.9348,14.3796,28.266-2.8092-0.3312,0,0z"/>
<path fill="#64b4d1" d="m822.091,258.767-1.56,0.2388-1.9176,1.56-0.84,2.0388,0.1212,3.7176,1.3188,2.2776,2.2788,2.4,1.0788,1.7988-0.6,3.2364-3.2364,2.0388-3.4776,2.5188-1.32,2.0388-0.48,2.2776,0.1212,2.3988,0.4788,0.5988,2.6388-0.1212,1.5588-0.4776,2.3976-0.24,2.2776,0.36,3.4776,2.3988,4.9176,4.4376,2.1564,2.5188-1.5576-3.7188-0.8388-4.4376-0.6-4.4364,0.7212-2.6376,1.1988-1.68,1.3188,0.7212,1.0788-0.6,1.44,0.72,1.2-0.72,1.9176,0.6,2.3964-1.2,3.5988-2.7576h2.5176l0.7212,0.5988,1.4376-0.5988,0.84,1.2,2.9988-2.28,2.3976-1.1988,2.3976,0.9588,3.1188,0.72,1.2-1.0788,2.5176-0.1212,3.4764-0.4788,1.68,1.1988,1.6764,4.0764,1.2,1.3212,1.8,0.3576,0.9588,0.48,1.6776,4.1976,1.2,3.3576,0.6,4.0764-0.2412,1.0788,1.0788-0.1188,1.68,1.6764,1.4388,0.7212,1.1988,1.3188,0.3576,2.1576,0.9612-0.1188,0.84-1.0788,1.6788,0.36,1.4388,1.5576,1.4376,0.1212-2.52-16.6692-2.3976-1.3188-0.12-3.8364,5.6364-2.04,0.12-1.4376-0.8388-2.4-1.0788-2.1576-2.1588,0.2388,1.6776-5.3952,4.1976,4.3164-1.9188,0.2412,1.6764,6.594,7.1976-1.1988,1.3188,1.8-0.48,1.5576,0.6012,1.0788,0.3576,1.92,2.16,2.7564,5.6364,12.2304,5.3952,11.0328,2.3988-2.5176,2.5188-0.5988,2.7588-1.92,1.6776-0.6,1.1988-1.5576,3.1188-0.1212,4.6752,4.1976,0.7212-1.0788,4.4352-0.2412,1.4388,2.8776,0.2412,1.2,1.7988-0.72,4.9164,1.0776,2.9976,2.4,2.2764,0.9576,0.6012,1.2012,1.3188-1.56,0.96,0.1212,1.56,0.36,4.9152-0.36,2.52-5.0376s2.2764-4.6752,3.3588-5.8752c1.0776-1.1988,5.5152-5.9952,5.5152-5.9952l5.3952-3.5988,4.0764-2.2776,3.8376-0.48,3.5988-0.12-0.12-3.2376-1.4388-3.1176-3.5988-4.6752-0.72-3.7176v-2.28l3.1188-2.0388,3.7176-2.9976,0.1212-3.1188-1.0788-3.8376-2.16-3.2364-0.72-0.6-1.2-0.2388-1.6776,1.0776-3.3576,4.6764-3.7176,3.7188-4.5564,2.7588-5.2764,0.5988-8.3928-1.3188-5.8752-1.8-7.3164-2.7576-7.6752-3.5976-4.1964-0.8412-6.3564-3.1164-2.3976-0.1212-0.1212,1.08,1.9176,1.9176-0.4776,3.3588-1.6788,1.7976-3.1176,0.1212s0.36,0.2412-1.4388,0.72c-1.8,0.48-3.3576,0-3.3576,0l-2.9976-1.7988-2.8788-0.48h-5.7552l-6.3552,0.6012-7.1964,0.5988-3.5964,3.1188-3.1188,0.48-3.3576-0.84-3.4764-4.0764,0.12-2.2776,2.5176-3.1188-1.3188-0.12-7.9152,2.8788-4.9176,2.7564-2.6364,1.68-1.9188-0.1212-2.52,2.2788-3.1176,0.24-1.8,1.9176-0.5988-0.2388-5.0352,1.3188-4.5576,0.8388s-5.7564,0.84-6.3552,0.84c-0.6012,0-6.1152-0.72-6.1152-0.72l-4.0788-2.0388-1.9176-2.1576-1.8-1.2-2.3976-2.5164,0.1212-1.92-0.7188-0.4776z"/>
<path d="m893.774,318.595-0.1704,3.7428,2.7228-0.678-0.3408-3.5736-2.2116,0.5088,0,0z"/>
<path d="m897.348,317.575v3.0624h1.1916v-3.2328l-1.1916,0.1704z"/>
<path d="m900.071,316.895v3.4032l1.7004-0.5112-0.1704-3.0624-1.53,0.1704z"/>
<path d="m903.643,316.213,0.1716,2.5524h1.5288l0.1716-3.0624-1.872,0.51z"/>
<path d="m907.046,315.533v2.724h2.3808l-0.3396-3.0648-2.0412,0.3408z"/>
<path d="m910.788,314.683v2.5524l2.0424-0.5112-0.51-2.7228-1.5324,0.6816z"/>
</g>
<g fill="#ccc">
<path fill="#fffcfc" d="m973.633,345.67v2.6904l0.6276,0.3588,0.18,0.8952,2.7756,0.4488-0.27-0.8964-1.7928-1.7028-0.4476-1.2552-1.0728-0.5388z"/>
<path d="m916.933,309.892-0.4596-0.9156,1.5264-1.6764,2.8932-0.6072,2.286-1.83,2.8956-1.8288,3.048-0.762,3.9636,3.3516-1.3716,1.0704-1.374-0.1536-2.5896,1.6752-1.98,1.2204-1.6764-0.3048-1.5252-0.4572-0.9132,0.762h-1.374l-1.068,0.6096-2.2812-0.1536z"/>
<path d="m935.527,305.623,1.5228-0.6072h2.286l1.2204,3.3516v1.068l1.98-0.6096h3.6588l2.5896,1.2192,2.286,2.286,2.4384,1.3728h1.98v-1.068h1.9812l0.4584,0.6108,2.1324,0.3036,1.5252-0.456,0.4572,1.3716-0.3048,1.8276-0.4584,1.374,0.6096,5.7888,2.7444,9.9072,5.1816,8.3832-1.98-0.9156-4.4208-0.6096-1.3728,0.6096-1.8276-0.1524-2.1336,1.9812-1.068,0.1512-0.9132,0.7632-1.6764-2.286-6.4008-8.5344-1.6764-1.8288-3.6576-7.9236-5.0292-10.8228-0.306-4.4208-1.218-1.2192-0.6096-0.1524v-0.7632h0.001z"/>
<path d="m933.697,364.607,2.592,1.2192-0.1524-1.2192,1.8288,1.2192s1.6752,0.306,2.5896,0.1524c0.9132-0.1524,2.8956-2.1324,2.8956-2.1324l0.6096-4.1148,3.9636-6.8592,2.8932-1.6764,0.918-0.1524,2.7408-3.0492,5.1816-2.742,2.4384-0.9156,3.9636,0.762,2.8956,1.3728,0.6096,2.4384,0.4584,6.5532,1.8276,1.374,1.5252-0.7644,1.3716-1.6752,3.3516-1.2216,2.4396,0.3036-0.1536,3.0504-1.0656,5.6388-1.6764,5.9436-2.7432,9.4476-2.5896,6.708-6.402,4.878-5.0292,3.198h-8.0784l-2.4372-2.2848,3.048-0.7644,1.0668-1.8252,0.3048-3.2016-2.742-1.9812-2.7432,0.1524-3.6576,2.1348-1.374,1.8252-0.762,2.136h-1.3704l-3.0504-0.1536-2.286,1.5252-1.6752,2.1312-0.4584,3.2016,0.7644,2.2872,1.6752,1.0668,3.048-0.1536,0.7632-0.6072h0.6096l-2.7444,3.0444-3.504,3.66-4.5732,3.048-3.048,0.9132-5.0292,1.83-3.6576,1.6764-4.116,0.1524-4.2672,3.8088-2.8956,2.2884-1.9812,2.742-0.9144,4.7256v3.5028l2.2836,3.048-0.3036,0.9168-1.3716-0.156-0.7632-0.6072h-3.3516l-0.9156-1.3728-1.6764,0.306-2.4372,0.7608-1.068,1.0692-1.8288-0.9168,1.068-2.742,0.1524-2.5896-0.762-3.5076-2.286-4.5732-1.98-2.1312-3.5076-2.1348-6.7056-1.9824-7.314-2.7384-5.334-2.5944-1.9812-3.048-0.7632-3.8088,1.2204,1.2192-1.068-4.2672,1.524,1.9788,1.0692,0.1524,3.048,3.8124,2.4384,0.4584,0.6096,0.3024h0.7608l0.1524-0.3024,2.286,1.2192,2.592,0.7608h3.6564l-3.1992-0.7608-3.9636-1.8288-4.1148-2.2884-2.286-3.0444-0.306-1.3728-1.2192-0.1524,0.1536-0.9168,0.9144-1.0668,1.2192,0.1536,0.306,0.9132,1.2192-0.4584,1.98,1.5264,3.354,0.3024,2.4372,0.306-2.1312-1.2192-3.354-1.8288-3.3528-3.0492-1.068-0.1524-3.354-5.1792-1.8276-5.0304-1.524-5.3328v-6.2508l1.98-5.0268,2.8956-4.5732,1.6764-1.5252,1.3716,0.4572,3.5052-2.5896,2.4384-0.762,3.2016,0.15,2.4384,0.7632,3.5052,1.068,1.6752,2.1324,1.6764,0.1536,0.456,1.2192-0.9132,0.3048,1.2192,1.6764-0.4572,1.0668,1.068,1.3716-0.1524,1.98-1.98,2.2872,1.3704,2.2848-0.1536,0.7644,1.6764,1.8288,1.5252,2.2836,2.5908,0.4584,6.096,0.1536,4.4184-0.4584,2.592-0.1536-1.068-1.2192,1.8288-0.4584,2.286-0.4584,4.1148-3.1968s3.2016-5.4888,3.8112-6.2508c0.6096-0.7608,1.8276-3.3528,1.8276-3.3528l5.1816-5.334,1.98-0.762,4.5732-2.2848h4.7256l1.2216,1.3728,1.98,0.3048,1.8288,2.2848,0.9132,6.2496-2.8956,1.98h-2.436l-1.6764-1.0668-0.4584,0.9144-1.9812-0.456z"/>
<path d="m859.741,387.068s0.3588-0.7164,0.7188-0.7164c0.3588,0,1.1652-0.0876,1.1652-0.0876l0.0888-4.662s-0.6264-0.3564-0.7176-0.7164c-0.0888-0.3564-0.0888-2.0604-0.0888-2.0604l-0.6264-0.6276-0.09-18.8184-1.7928-4.8384-1.5228-2.598-1.254-0.9864-1.9728-0.1776-2.2404,1.434-1.344,0.7164-2.868-0.6252-1.074-0.7188-1.7052-0.0876-1.5228-2.778-3.1356-0.9864-1.4328-0.4476-4.3008-0.3588-1.254-0.09-1.6152,1.0764-1.8816,2.2404-1.3428,2.5968-0.1788,4.2132,0.9852,1.344v1.9704l0.4488,0.8064v1.7028l-1.434-1.7028-1.434-3.4944-0.7164-2.1504-0.6276,0.8964,0.1788,2.868,0.0888,2.328,0.8076,2.1528,0.8064,3.0444,1.344,3.8532,1.0752,4.1244,0.9864,3.9408,1.8816,3.5844,1.6128,2.2404,3.6744,3.6732,2.3292,1.6128,3.5844,1.2564,4.032-0.0876,1.2528-0.9-1.6128-1.5216s-0.2676-0.984-0.2676-1.344,0.5364-2.1516,0.5364-2.1516l1.7028-1.7928,4.9284-0.8952,1.7028,1.2552,2.2404,2.5092,1.8816,0.9816z"/>
<path d="m913.682,313.831v2.5524l1.53-0.3408-0.3384-2.2116h-1.1916z"/>
<path d="m916.234,313.151v2.0412h1.0224v-2.2116l-1.0224,0.1704z"/>
<path d="m918.448,312.98,0.1692,1.8708,1.7016-0.3384-0.1704-2.2128-1.7004,0.6804,0,0z"/>
<path d="m921.848,311.62v2.5536h1.0224l0.3396-2.5536h-1.362z"/>
<path d="m924.743,311.11v2.2128l1.3608,0.1704-0.3408-2.382h-1.02v-0.001z"/>
<path d="m927.466,310.429v2.5512l1.3608,0.1704v-2.2116l-1.3608-0.51z"/>
<path d="m930.187,309.577-0.5112,2.892h1.5324l-0.1716-2.2116-0.8496-0.6804z"/>
<path d="m932.228,309.577v2.3832l2.2128-1.0224-0.342-2.5536-1.8708,1.1928z"/>
</g>
<path fill="#76401b" stroke="none" d="m890.046,266.598-1.488,4.4628,5.1252-0.8268-3.6372-3.636,0,0z"/>
<g fill="#784421">
<path d="m932.194,351.556-4.7916,1.3248-3.306,2.6448-4.2984,4.4616-3.4716,6.282-3.966,4.794-7.2744,2.9736-6.612,0.1668-5.124-1.4856-1.818-2.8128-0.4956-3.6348-0.6612-4.464-1.488-2.8092-2.3136-2.8116-2.6448-1.818,2.8116-11.9016,0.8256-2.6448v-3.4716l0.4956-4.626,2.4792-4.1328,2.4792-2.3136,4.2972-1.9836,7.602-1.9824,7.6044-2.4792,7.9344-1.818,8.9256-2.1492,3.8016-0.33-0.33,4.9584,0.9924,1.8192-0.1668,12.8916-0.8256,11.406-0.6612,5.946z"/>
<path d="m934.014,351.391,4.6272,0.9924,3.636,2.1492,1.4868,2.148,1.9836-1.6524,0.8256-2.8116,3.4716-1.9812,5.2908-4.6284-4.4652-6.7776-2.3148-3.306-3.1404-3.6348-3.8016-6.942-4.2972-9.4224h-2.3148l-0.33,18.6768,0.1668,6.7764-0.8244,10.4136z"/>
<path fill="#a05a2c" d="m886.904,279.325,0.1668,3.4716,14.2152-4.4628v-1.3224l-14.382,2.3136z"/>
</g>
<g fill="none">
<path d="m846.526,359.353,0.6396,3.21,2.1408,3.852,4.0632,3.528-3.4224-2.46,2.5668,3.4236-4.3836-2.7804,4.2768,2.7804-4.4928-6.4188-1.3884-5.1348,0,0z"/>
<path d="m841.285,373.577-1.6044,1.7112-2.7816-0.4272,0.1068,3.5304,3.8496,5.67-3.8496-5.3472,0.108-3.6348,2.6748,0.21,1.4964-1.7124,0,0z"/>
<path d="M836.686,383.419,835.83,380.958v-2.7792l0.8556,5.2404z"/>
</g>
<g fill="#666">
<path d="m887.275,369.728-1.2828,1.2816-2.1384,0.5364s-2.1384-0.2136-2.5668-0.5364c-0.4272-0.3192-2.7816-1.71-2.7816-1.71l2.7816,1.4964h4.9188l1.0692-1.068z"/>
<path d="m890.698,374.756,0.534,3.102,2.1384,3.7404,1.3896,1.8204-4.062-8.6628,0,0z"/>
<path fill="#808080" d="m898.078,383.525-2.034-0.6384-1.818-1.7148-2.5668-4.596,2.6736,3.4224,3.7452,3.5268,0,0z"/>
<path stroke-width="0.13692" d="m880.217,371.011,0.3216,9.0912,0.8556,3.5304,1.2804,2.5668,1.7136,2.6748,0.4272-1.0692,1.818,1.2828,0.5364-0.5364-1.8204-1.8168-1.818-2.4612-1.0716-2.5668-1.1748-4.3848-0.4272-4.7052h1.4952l-0.4272-0.8556-1.7088-0.75z"/>
<path fill="#808080" stroke-width="0.13692" d="m920.644,385.344,3.4224-0.3204,3.21-2.6748,0.534-1.8204,1.4964-1.0704-0.2136,3.1032,0.7476,1.6056,2.0316,0.642,1.2828,1.1748,2.2476,0.2148,3.2076-2.0304,2.3532-2.4612,2.0328-1.8192,1.4964-0.642,0.5352-2.994h0.9624l0.2136-1.392-0.4272-2.6712-0.9624-2.568-1.2828-1.7112-2.1396-1.9248-0.9612,0.4284,2.352,2.2452,1.9248,2.46,0.1068,3.8496-0.534,1.4976-2.8884,3.3168-3.7428,4.0632-1.818,0.8556-3.8496-0.5328-1.392-1.8192-0.3204-1.2828-0.4284-1.2828v-1.4976l0.5352-1.0692-3.9564,4.4904-1.6044,0.1056-4.1712,3.5316z"/>
<path fill="#808080" stroke-width="0.22824" d="m972.088,357.323,0.8556-0.7488,0.9624,1.392,0.216,3.8484,0.1056,0.108v2.5668l-1.4952,2.7816-3.21,3.4224-3.7428,1.602-3.4236,0.4272-2.3532-0.5316-0.8556-1.392-0.534-1.3896v-3.2076l0.642-1.284,0.2136,0.6408-0.1068,3.5304,1.1748,1.3908,2.46,0.7464,2.2452-0.7464,2.6748-0.75,2.2452-1.2828,0.108-0.7488-0.8556-0.1068,0.2136-0.3204h1.2828l1.6044-3.21,0.534-2.6748v-2.1384l-0.6396-0.6408-0.3228-0.534v-0.75h0.001z"/>
<path d="m887.381,406.842-5.3484,2.5668-4.9188,1.4964-2.6748-0.4272,5.2392,1.9248,2.034-1.6032,3.2076-1.6056,2.4612-2.352,0,0z"/>
<path fill="#999" stroke-width="0.18252" d="m891.553,417.643,2.8872,0.8556,1.3896,0.5364,2.9952,0.4272-2.2464,1.3884,2.886,0.6408s-2.778,0.3228-3.2064,0.3228-1.926,0.9612-1.926,0.9612-0.3204,1.7148,0.642,1.6056c0.9648-0.108,2.352-0.3228,2.8872-0.3228s2.2464,0.3228,2.2464,0.3228l1.0704,0.8556-0.642,0.9648-4.4928,0.1056,0.6432,0.5364h3.636l-3.528,2.352,4.2756-0.1092,3.4224,1.392v0.8556l-3.3144,0.75-0.7488-1.2864-4.278,1.1772-0.8556,1.0704-1.6044-1.0704,1.2828-2.7792-0.1068-2.8884-0.642-2.2476-1.4964-3.3132-1.176-3.1032z"/>
</g>
<g fill="#e2d67e">
<path fill="#e4cb5e" stroke-width="0.22824" d="m868.889,274.852-3.4452,0.4164-2.436,0.2976-1.6044,0.9516-1.3068-0.774-0.7728,0.4752-2.9112-1.5444-3.3876,1.8432-1.6044,1.4244h-1.008l-0.774-1.0092-1.5444,1.0716-0.8916-0.8928-0.9504-0.534-6.4164,4.6344-2.3172-0.7728-1.0104,0.8916-0.4176,0.3564-0.2352,1.0092-0.9528-2.4972-0.8304,0.594-1.4256-0.4752-1.0104,1.4268-0.2376,3.7428,0.594,4.6932,1.5468,5.1696,1.4244,2.1384,1.188,0.2376,0.3576-1.4856,0.654,2.7924,0.9504,0.9492,0.2976,5.0508,3.8616,8.6748,0.3564,4.4556,0.1776,7.7232-1.4256,1.7256-1.8408,2.7924,0.0588,0.8292-1.9008,3.6252,0.1176,5.526,0.4176,0.4752,0.12,5.2872,1.4844,0.1188,1.188,1.3068,2.6148-0.2364v-1.6044l0.3564,1.8408,2.0784,2.7348,1.7832,1.4244,1.2456,0.06,0.654-0.9504-0.06-5.9412,0.4164,6.5352,1.3068-0.06,1.6656-1.4844,2.1984-0.2976,0.7128,0.06s0.594,0.3564,0.8916,0.8904c0.2964,0.534,1.3668,1.0116,1.3668,1.0116l0.7728,1.6044,0.9504,0.3564,0.4752-1.0116-0.6528-12.6552-0.654-10.3368-0.7128-13.1292-0.714-16.7568-0.1188-5.346-0.8316-0.7128,0.06-1.7232,2.0208-0.594,1.1868-0.3564-0.5352-1.6032-0.5928-5.3472v-2.0196l0.714-0.594,1.4256-0.0588,1.0104,1.188,1.9608,8.1384,1.0104,0.3564,3.564-0.06,8.0808,12.7752,2.8512,4.278,3.9216,7.3068,5.1108,7.308,1.6044,2.1384,1.0692,0.1212,0.3564-7.7844,2.2596-1.9608-1.902-13.4268-1.5444-0.2964-2.1384-1.9608-1.188,0.1776-1.188,1.9608-1.4844-1.6632-0.18-1.902-1.3668-0.8892h-1.008l-1.3092-1.782-0.7116-0.18-0.8316,0.7728-0.1788-6.0588-1.3068-2.8512-0.2376-1.7232-2.436-3.4464-2.5536-0.594s-1.128-2.556-1.128-2.9124-0.4776-1.6044-0.4776-1.6044l-1.7904-1.8456z"/>
<path fill="#dcc56a" d="m871.027,356.128-1.722-2.1972-0.594-2.3172-0.2376-4.9908-0.534-4.7544-0.9516-7.3668-1.5444-9.09-1.2468-7.3668-0.4764-4.3368-1.0092-5.1108-0.4164-3.5052-0.4164-2.9112-0.3564-4.158,1.188,3.7428,1.962,8.7336,2.196,6.06,0.8916,4.0992v2.3172l1.5456,3.3252,1.0104,4.2204,2.0784,8.9112,2.1984,7.3092,1.128,5.286,0.1776,2.0208-2.3172,0.774-1.128,0.5328-1.4256,0.7728z"/>
<path fill="#e2cc75" d="m882.613,354.348,1.2492-6.0012,1.4856-4.5744,0.6528-3.09,0.4752-2.4948-0.12-3.7428-1.0092-2.1984-4.6332-9.3276-2.7936-5.6436-1.1292-2.9124-2.0784-3.6252-2.7924-5.8224-2.496-4.3356-2.0784-3.5652-1.9608-2.616-0.5928,0.5364,1.7808,6.654,1.4844,5.7024,1.4268,6.2976,2.376,8.2584,1.3668,5.7048,1.3668,3.5052,1.3068,4.9308,3.624,11.7648,0.714,3.0888,1.7832,3.5664,0.5916-0.06,0,0z"/>
<path fill="#ddd690" d="m863.999,357.562-1.8732,1.8708,0.1704,0.6816h2.2116l0.6828-1.5324-1.1916-1.02z"/>
<path fill="#ddd690" d="m861.785,355.008,0.3408,2.0424,1.5312-0.1704,0.8496-1.53-0.1692-1.1916-1.5312,0.3408-1.0212,0.5088z"/>
<path fill="#ddd690" d="m865.528,354.158,0.5112,1.3608h2.8932v-1.02l-1.1904-0.5112-2.214,0.1704z"/>
<path fill="#ddd690" d="m865.19,351.607,0.168,1.53h2.0436l1.02-1.3632-1.1904-1.02-2.0412,0.8532z"/>
<path fill="#ddd690" d="m861.104,352.116-0.3408,1.0224,1.0224,0.51,2.214-0.51v-0.852l-2.8956-0.1704z"/>
<path fill="#ddd690" d="m861.104,349.564v1.1916l2.2128,0.1704,0.6816-1.0212-0.852-0.6804-2.0424,0.3396z"/>
<path fill="#ddd690" d="m865.528,348.544-0.3372,1.02,2.04,0.5112,1.02-0.8508-1.5288-1.0224-1.194,0.342,0,0z"/>
<path fill="#ddd690" d="m861.276,345.821-0.3408,1.5312,1.3608,0.1704,1.1916-0.8508,0.1704-1.1892-1.362-0.1728-1.02,0.5112,0,0z"/>
<path fill="#ddd690" d="m865.019,345.14v1.53l2.2128,0.5088v-2.2116l-1.0212-0.3384-1.1916,0.5112z"/>
<path fill="#ddd690" d="m862.976,342.587h-2.0412l-0.1728,2.3808,2.3832-1.02-0.1692-1.3608z"/>
<path fill="#ddd690" d="m864.677,341.906-0.8496,1.7016h2.382l1.0212-2.2104-1.362-0.3408-1.1916,0.8496z"/>
<path fill="#ddd690" d="m864.167,339.014,0.1728,1.362,2.2128-0.3408-0.8532-1.7004-1.5324,0.6792,0,0z"/>
<path fill="#ddd690" d="m861.955,339.526-1.53-0.3408,0.1716,1.8732,2.2116-0.3396-0.8532-1.1928,0,0z"/>
<path fill="#ddd690" d="m860.425,336.462-0.1704,1.7028h2.7228l-0.5112-1.7028h-2.0412z"/>
<path fill="#ddd690" d="m863.658,335.611v2.0424h2.5524l-0.5124-2.0424h-2.04z"/>
<path fill="#ddd690" d="m862.296,334.08-1.7004,2.04-0.6816-1.7004,1.1904-2.0424,1.1916,1.7028,0,0z"/>
<path fill="#ddd690" d="m863.827,332.548-0.3396,1.7028h2.2104v-1.7028l-0.8484-0.51-1.0224,0.51z"/>
<path fill="#ddd690" d="m861.104,330.508h-1.1904l-0.1704,1.362h2.0412l-0.6804-1.362z"/>
<path d="m863.488,329.996-0.3408,1.5312h1.7028v-1.5312h-1.362z"/>
<path d="m862.976,326.933-0.3396,1.53h2.3808l0.1728-1.3596-2.214-0.1704z"/>
<path d="m860.255,327.614-0.3408,2.2116,2.0412-0.8484v-1.1916l-1.7004-0.1716z"/>
<path d="m860.084,324.552-0.6804,1.3608,1.0212,0.5112,0.852-1.1916-0.3408-1.02-0.852,0.3396,0,0z"/>
<path d="m862.894,323.405-0.5376,1.128,0.882,1.5204,1.2264-0.2952,0.0516-1.7172-1.3764-0.6876-0.246,0.0516,0,0z"/>
<path d="m860,321.684-0.444,1.2276,0.8844,0.7848s0.7344-0.2928,0.7344-0.5412c0-0.2436,0.246-1.0296,0.246-1.0296l-0.9804-0.5892-0.4404,0.1476z"/>
<path d="m862.356,321.047-0.2952,1.3752,0.6876,0.4416,1.2264,0.0984s0.0492-0.9336,0.0492-1.2768c0-0.342-0.8844-0.7356-0.8844-0.7356l-0.7836,0.0972z"/>
<path d="m859.754,319.181-0.0996,1.374,1.032,0.246s0.54-0.5376,0.54-0.7344c0-0.1956-0.492-1.08-0.492-1.08l-0.9804,0.1944z"/>
<path d="m862.061,318.788-0.1968,1.1292s0.3936,0.5388,0.8844,0.5388c0.4896,0,0.6864-0.4896,0.6864-0.6852,0-0.198-0.1968-1.032-0.1968-1.032l-1.1772,0.0492z"/>
<path d="m859.655,317.267-0.342,1.1304,0.9804,0.4404,0.7368-0.9816-0.786-0.5376-0.5892-0.0516z"/>
<path d="m861.962,316.58-0.1464,1.0296s0.6852,0.4908,0.9324,0.3432c0.246-0.1464,0.5388-0.7836,0.5388-0.7836l-0.8844-0.5892h-0.4404z"/>
<path d="m858.968,314.371-0.2448,1.2756s0.7344,0.6876,0.9312,0.5904c0.198-0.0996,1.2276-0.3936,1.2276-0.3936l-0.54-1.2756s-0.6372-0.1476-0.8328-0.1476c-0.1968,0-0.5904,0-0.5412-0.0492z"/>
<path d="m861.521,313.733-0.2928,1.2264,1.6668,0.2952s0.246-1.3752-0.096-1.3752c-0.3468,0.001-1.1808-0.0972-1.278-0.1464z"/>
<path d="m859.116,312.065-0.294,0.7368,0.8328,0.6372,0.6876-0.3912-0.4428-0.9336-0.7836-0.0492z"/>
<path d="m861.618,311.574-0.636,0.9828,1.0296,0.4392,0.882-0.6852-1.2756-0.7368z"/>
<path d="m859.165,309.415-0.4416,0.7368,0.4908,0.7836,0.786-0.6384-0.8352-0.882z"/>
<path d="m860.932,308.924-0.3924,0.54,0.5892,0.7836,0.9804-0.5388,0.0984-0.4416-0.4416-0.54-0.834,0.1968z"/>
<path d="m858.919,307.402-0.4416,1.0296,0.9804,0.54,0.5424-0.6852-0.3456-0.786-0.7356-0.0984z"/>
<path d="m860.784,306.42-0.54,0.6888,0.7368,0.7356,0.9312-0.5412-0.636-0.7848-0.492-0.0984z"/>
<path d="m858.919,305.683h-0.3924v0.834l1.128-0.0984-0.1968-0.834-0.5388,0.0984z"/>
<path d="m860.441,304.702-0.0492,0.9324,1.0296-0.1476-0.0492-0.8328-0.9312,0.048z"/>
<path d="m858.674,303.967-0.342,0.4896,0.5868,0.786,0.5904-0.5412s0.1956-0.7344,0-0.7344h-0.8352z"/>
<path d="m858.772,302.347-0.4392,0.3924,0.5376,0.5388,0.6864-0.342-0.7848-0.5892,0,0z"/>
<path d="m858.919,301.121-0.54,0.7836h0.9336l-0.3936-0.7836z"/>
<path d="m860.146,301.561,0.0984,0.786h0.786l-0.8844-0.786z"/>
<path d="m860.195,302.838s-0.1944,1.0296,0,1.0296c0.1968,0,0.7368-0.1476,0.7368-0.1476l-0.7368-0.882z"/>
<path fill="#d3c55f" d="m886.307,326.544-1.0776,1.4724,0.0972,1.5228,1.4244,1.3248,1.3248-1.866-1.7688-2.454z"/>
<path fill="#d3c75f" d="m888.222,324.432-1.3248,1.9164,1.2756,2.0124,1.3248-0.8328s0.1968-1.6716-0.0492-1.9668c-0.246-0.2928-1.2756-1.1784-1.2264-1.1292z"/>
<path d="m885.767,321.733s-0.588,0.8832-0.588,1.0812c0,0.1956,0.3444,1.6176,0.3444,1.6176l0.834,1.0812s0.93-0.2952,1.0284-0.5904c0.0984-0.2916,0.4428-1.4232,0.4428-1.4232l-1.128-1.4736-0.9336-0.2928z"/>
<path fill="#d3c95f" d="m883.706,323.844-0.246,0.4896s-0.1452,1.1796,0.1476,1.3752c0.294,0.1968,1.1772,1.1304,1.1772,1.1304s0.7836-0.4908,0.7836-0.7368-0.588-1.7688-0.588-1.7688l-0.6852-0.6852-0.5892,0.1956z"/>
<path d="m881.693,320.458-0.3912,0.9312,0.4896,1.2768,0.9336,0.9324s1.0296-0.1944,1.0296-0.3936v-1.374l-0.6396-1.0788-1.0788-0.4896-0.3432,0.1956z"/>
<path d="m883.902,319.574-0.2448,0.7356s0.0984,1.032,0.294,1.128c0.1968,0.0984,0.9816,0.492,0.9816,0.492l0.6852-1.1292-0.6852-1.4232-1.0308,0.1968z"/>
<path d="m882.824,317.22-0.492,1.0788,0.2952,0.7836,0.6876,0.3444s0.7836-0.3924,0.7836-0.5892v-1.0296l-0.882-0.5412-0.3924-0.0468z"/>
<path d="m880.565,318.004-0.6372,0.834,0.246,1.032,1.0788,0.3432,0.7356-0.8844-0.5904-1.1772-0.8328-0.1476z"/>
<path d="m879.728,315.794-0.5376,0.4908v0.6384l0.834,0.6396,0.7836-0.3936-0.1956-0.8844-0.3912-0.5892-0.4932,0.0984z"/>
<path d="m881.89,315.157-0.3444,0.7848,0.4908,1.0308,0.7872-0.4416-0.15-0.8844-0.7836-0.4896,0,0z"/>
<path d="m880.417,313.048-0.1944,1.7664,1.2252-0.1968,0.2952-0.9312-0.4404-0.6888-0.8856,0.0504,0,0z"/>
<path d="m879.14,313.439c-0.1956,0.048-0.882,0.0984-0.882,0.0984l0.1968,1.7652,0.7836-0.096,0.2952-0.6384-0.0984-0.7848-0.2952-0.3444z"/>
<path d="m877.669,311.672-0.588,0.7368,0.588,0.9804,0.54-0.0984,0.342-0.7344-0.882-0.8844,0,0z"/>
<path d="m879.581,311.179-0.4896,0.5412,0.3936,0.5892,0.4908,0.0492,0.4896-0.5904-0.4404-0.5376-0.444-0.0516,0,0z"/>
<path d="m876.442,309.906-0.3444,0.9312,0.9336,0.246,0.2436-0.5892-0.2928-0.5412-0.54-0.0468,0,0z"/>
<path d="m878.062,309.415-0.0972,1.0788,1.0296-0.0984-0.0984-0.882-0.834-0.0984,0,0z"/>
<path d="m875.264,308.188,0.0492,0.9312h1.0296s0.3444-1.0788-0.0984-1.0296c-0.4416,0.0492-0.882,0.1452-0.9804,0.0984z"/>
<path d="m877.228,307.745v0.9324l1.0788-0.1476-0.2448-0.8328-0.834,0.048z"/>
<path d="m875.803,306.764h-1.0788l0.1476,0.9324,0.9804-0.0984-0.0492-0.834z"/>
<path d="m876.491,306.125-0.1476,0.8844,1.1304-0.0492v-0.8352h-0.9828z"/>
<path d="m875.412,304.702-0.0492,1.0308s1.2264,0.1956,1.2264,0c0-0.1968-0.246-0.8832-0.246-0.8832l-0.9312-0.1476z"/>
<path d="m874.724,304.8h-0.9816l0.0996,1.128h1.1772l0.1464-0.7836-0.4416-0.3444z"/>
<path d="m872.418,301.463-0.492,0.4908,1.5228,2.4048h0.9312l-0.882-1.2264s0.1464-0.588-0.0984-0.6852c-0.2436-0.0984-0.4404-0.0984-0.4404-0.0984l-0.5412-0.8856z"/>
<path d="m872.612,300.53-0.342,0.4416,1.8168,1.2264v1.0296l0.834,0.786,0.6852,0.1944-0.2436-0.8328-0.3432-0.9312-0.6888-0.5412-0.4884-0.882s-0.246-0.0492-0.4428-0.0984c-0.1944-0.0492-0.3912-0.3444-0.3912-0.3444l-0.396-0.048z"/>
</g>
<g fill="none">
<path fill="#000" d="m851.578,283.375-0.1728,7.9956,0.5112,2.5524v4.4256l0.1704,6.8064v4.5936l-3.9144-4.7664,4.0836,5.106,0.6804,4.9332,1.0224,1.8732-0.6804,2.5524,0.1704,4.2528v12.0804l-3.9144-9.528,0.3408,19.7376,0.3408-11.3988,1.362-2.0436,2.2116,5.6172,0.3396,2.5524-0.5112-9.5304"/>
<path d="m835.582,282.694-0.6804,5.106,1.362,3.5712,0.1716,4.9356-0.1716-5.4444-1.362-2.7228,0.6804-5.4456z"/>
<path d="m840.517,285.757v6.4656l1.1904,1.5312-0.3384,6.8064,1.02,2.0412v11.2296"/>
<path d="m847.492,278.101-1.3608,2.5512,0.5112,4.5948,0.3396,3.2328-0.51,5.1024"/>
<path d="m878.462,290.52-0.1728,7.8276,0.8508,4.2528,0.6816,4.5936"/>
<path d="m885.776,301.921,1.5312,17.016"/>
<path d="m842.047,327.275,0.3408,9.8688,0.6804,4.2552,0.1704,4.5924"/>
</g>
<g fill="#d38d5f">
<path d="m893.264,345.481v-1.7028l7.4868-1.7028-1.1916,0.852,0.1704,5.1048"/>
<path d="m913.682,341.226v-2.2128l7.4868-1.3608-1.7028,0.3408,0.3408,5.274"/>
<path d="m897.518,357.731v-1.7028l6.2964-1.1892-0.1716,6.2952"/>
<path d="m912.491,355.35v-2.724l6.8052-1.1904,0.3408,5.9532"/>
<path d="m890.372,333.059v4.254l-1.5312,0.3408v-2.0424l1.5312-2.5524z"/>
<path d="m893.946,332.377,0.1692,4.2552h-1.1916l-0.3396-3.744,1.362-0.5112z"/>
<path d="m896.665,331.528-1.1892,0.6792v3.4032l1.7028-0.3408-0.5136-3.7416z"/>
<path d="m899.9,330.337-1.1916,1.0212v3.0624l1.8708-0.1704-0.6792-3.9132z"/>
<path d="m903.643,329.485-1.7028,0.6804v3.4032l1.8744-0.3396-0.1716-3.744z"/>
<path d="m907.217,328.464-1.5312,0.1716v4.254l1.8732-0.3408-0.342-4.0848z"/>
<path d="m911.81,327.614-1.7004,0.6792,0.1704,2.892,1.7004-0.5088-0.1704-3.0624z"/>
<path d="m916.064,326.424-1.7004,0.8508v2.892h1.53l0.1704-3.7428z"/>
<path d="m919.468,325.402-1.362,0.6804v3.2328h1.7028l-0.3408-3.9132z"/>
<path d="m923.21,325.063-1.362,0.8496v2.5512h1.8744l-0.5124-3.4008z"/>
<path d="m927.295,323.7-1.5324,0.6816,0.1716,2.5512,1.5312-0.3396-0.1704-2.8932,0,0z"/>
<path d="m931.718,322.679-1.7016,0.8508v2.7228l2.0436-0.1704-0.342-3.4032z"/>
</g>
<g stroke-width="0.91284">
<path fill="#fffcfc" d="m891.564,368.79,26.3712-5.9544"/>
<path fill="#c87137" d="m885.096,352.285,2.7252,0.3408,44.9184-10.2096"/>
<path fill="#c87137" stroke-width="0.86724" d="m887.65,340.717,6.9756-1.0236,38.7948-10.2084"/>
<path fill="none" stroke-width="1.1868" d="m935.122,327.955,6.6348-1.1916"/>
<path fill="#fffcfc" stroke-width="1.32372" d="m935.122,341.906,14.6328-3.912"/>
</g>
</g>
<path fill="none" stroke="#000" stroke-width="8.2159" d="m767.32,145.154v253.639c3.0024,36.3156,78.6864,59.178,131.454,97.7484,69.2124-46.422,136.34-55.812,139.039-107.858l0.8424-243.529h-271.33z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 55 KiB

+59
View File
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1440" height="720">
<rect width="1440" height="720" fill="#f7e017"/>
<path d="M0,50V370L1440,520V350z" fill="#fff"/>
<path d="M0,220V370L1440,670V520z" fill="#000"/>
<g fill="#cf1126">
<path d="M695.74,569.72c-19.36-2.57-37.11-8.73-49.44-17.17-2.39-1.64-4.64-2.98-4.99-2.98-0.36,0-0.65,1.82-0.65,4.07,0,6.37-2.56,9.58-9,11.25-6.16,1.6-15.56-1.63-23.18-7.95-7.89-6.55-17-11.55-24.71-13.55-6.35-1.66-14.78-1.39-20.87,0.65-2.83,0.95-6.05,2.29-7.17,2.98-1.11,0.69-2.36,1.25-2.76,1.25-1.08,0-0.93-6.85,0.2-9.04,1.49-2.87,5.16-5.7,9.44-7.26,2.16-0.79,3.93-1.8,3.93-2.25s-0.73-2.1-1.62-3.65c-2.9-5.08-1.71-10,3.35-13.87,5.18-3.96,13.95-4.64,21.7-1.69,1.95,0.74,3.77,1.35,4.04,1.35,1.02,0,0.4-1.43-2.41-5.52-3.24-4.74-3.88-7.08-3.48-12.72,0.52-7.14,6.34-12.98,13.47-13.5,5.82-0.42,9.44,1.54,18.03,9.72,25.65,24.46,53.54,37.94,86.07,41.59,8.21,0.92,24.73,0.43,34.42-1.03,29.27-4.41,58.76-19.13,81.79-40.82,6.38-6.01,9.45-7.6,14.68-7.62,4.55-0.02,7.74,1.45,11,5.05,2.97,3.3,3.98,6.43,3.66,11.44-0.21,3.21-0.73,4.79-2.64,7.9-2.82,4.59-2.34,5.01,3.24,2.85,7.54-2.94,16.83-1.58,21.84,3.18,4.41,4.19,4.83,8.38,1.4,14.06-1.25,2.08-2.27,4.03-2.27,4.34,0,0.57,0.95,0.84,5.53,1.58,5.99,0.96,9.42,5.41,9.42,12.21,0,2.04-0.25,3.7-0.56,3.7-0.3,0-2.57-0.83-5.04-1.85-6.98-2.88-10.95-3.62-19.11-3.57-6.21,0.04-8.35,0.33-12.68,1.74-6.63,2.17-13.72,6.35-19.5,11.5-6.37,5.68-10.38,7.47-16.58,7.42-5.76-0.06-9.7-1.73-11.78-5.02-1.11-1.76-1.27-2.83-1-6.81,0.18-2.59,0.14-4.71-0.07-4.71-0.22,0-2.46,1.42-4.99,3.17-6.64,4.56-10.87,6.82-18.47,9.83-23.18,9.17-56.63,13.14-82.24,9.75z"/>
<path d="m706.34,525.17c-38.58-3.7033-75.494-23.798-97.939-55.657-24.37-33.235-32.05-77.117-24.611-117.24,3.9535-18.267,11.929-36.546,25.544-49.554-10.85,23.003-14.516,49.369-8.7299,74.29,8.989,49.753,51.036,91.87,101.34,99.156,19.9,5.761,40.487-0.32356,59.496-6.4934,41.935-14.779,73.879-54.583,77.777-99.079,3.3363-24.078-0.36023-49.114-11.207-70.916,6.1825,3.2692,13.987,16.087,18.589,24.707,16.003,31.003,16.734,68.155,7.3126,101.24-12.78,42.097-44.965,78.978-87.511,92.382-19.308,6.3081-39.842,8.2315-60.058,7.1679z"/>
<g id="hand">
<path d="m512.02,469.9c-2.5284-0.39577-5.3161,2.092-4.3628,4.6971,1.823,2.633,4.9641,3.9201,7.798,5.1795,6.7915,2.7224,14.179,3.7823,21.471,3.6055-2.5133-0.006,0.86258,0.026,1.8015-0.00068,5.774,0.0171,11.516-1.0234,16.944-2.98,3.018-1.0614,6.8641-2.0244,8.1009-5.3629,1.2069-2.1744-0.98008-4.3462-3.1859-3.9108-3.0714,0.67078-5.9433,2.064-8.9896,2.8576-6.5725,1.8534-13.494,2.5704-20.303,2.0116-4.9792-0.60782-9.8039-2.2005-14.41-4.1433-1.5972-0.70457-3.0962-1.7322-4.8648-1.9536z"/>
<path d="m514.83,459.52c-2.5558-0.38057-4.7577,2.5607-3.6917,4.9076,1.965,2.8484,5.2671,4.3651,8.356,5.6992,5.3706,2.1486,11.204,3.0471,16.975,2.8752-2.1917-0.006,0.75258,0.026,1.5651-0.00068,4.9069,0.006,9.7882-0.96448,14.325-2.8311,2.7732-1.0787,6.1693-2.1246,7.3241-5.177,0.89621-1.6768,0.21293-4.1165-1.8997-4.2476-1.9288-0.0953-3.5928,1.1322-5.3782,1.6831-6.4849,2.6815-13.622,3.8183-20.614,3.2146-4.3567-0.56071-8.519-2.1681-12.47-4.0312-1.4847-0.71699-2.8205-1.8356-4.4909-2.092z"/>
<path d="m518.28,449.57c-2.1908-0.26295-3.6978,2.2088-3.3288,4.1816,0.32687,1.7334,1.8824,2.8984,3.1689,3.9607,5.3292,3.8973,12.083,5.5573,18.626,5.3398-2.5415-0.009,3.4093,0.0418,1.5947-0.007,4.1442-0.0169,8.2378-1.0309,11.966-2.825,2.4889-1.0824,5.4115-2.3356,6.2502-5.1771,0.40122-1.3236,0.65233-3.227-0.84101-3.97-1.5638-0.87412-3.1169,0.47031-4.5388,1.0156-4.7891,2.4374-10.125,3.7932-15.507,3.7682-4.6507,0.15705-9.0334-1.799-13.068-3.9072-1.464-0.74578-2.6708-2.0422-4.3214-2.3798z"/>
<path d="m481.53,302.7c-3.2575,3.2606-0.7701,9.2712-0.94626,13.543,1.6879,13.158,3.785,26.484,8.697,38.87,6.015,12.102,18.791,18.573,26.533,29.268,2.7675,5.155,1.7849,11.355,2.3681,16.994,0.45808,15.366,0.31593,30.743,0.047,46.111,6.9387,3.4817,14.474,6.9863,22.456,5.6471,4.7306-1.13,13.512-1.8326,14.496-6.5436-0.38235-26.5-0.6304-53.01-0.98289-79.506-2.6903-8.1185-10.951-12.32-17.129-17.514-5.0992-5.0259-9.844-10.435-14.188-16.099-2.6218-4.4175-12.868-6.0092-9.1612,1.6764,2.1735,6.6538,7.7204,11.61,9.1091,18.602,0.30342,3.8316,4.8776,10.879,0.97314,13.114-2.4837-4.2216-6.0823-7.815-10.682-9.9574-4.4324-3.3044-11.759-4.68-13.359-10.517-1.1745-8.2799-5.4152-15.782-10.887-21.986,1.4102-7.4368,0.005-16.737-6.4234-21.49l-0.92101-0.21254-0.00013-0.00002z"/>
<path d="m491.44,304.19c-2.9629,0.47847-2.8621,4.2538-1.491,6.239,1.4583,4.2881,1.8554,8.9449,1.0659,13.409,5.2675,6.1665,9.3467,13.543,10.576,21.64,0.0299,3.0437,3.2327,4.0512,5.309,5.5551,4.8712,3.1016,10.348,5.3512,14.686,9.2326,0.91286,0.97602,1.6017,2.0271,0.9566,0.035-0.67695-2.5463-1.0251-5.3576-3.0207-7.2849-2.7345-2.939-6.15-5.5628-10.133-6.4593-0.33199-4.114-2.2913-7.8931-4.1017-11.532-2.0066-3.4792-4.1026-7.2065-7.5407-9.4626,0.13834-6.098,0.0385-12.495-2.5857-18.122-0.7696-1.4455-1.9032-3.163-3.7197-3.2499z"/>
<path d="m499.73,306.62c-2.0642,0.61274-1.6695,3.1587-1.0158,4.7165,0.98881,4.3156,1.1436,8.7732,1.063,13.184,3.7911,3.0003,6.1624,7.3501,8.3216,11.586,1.3534,2.8304,2.6366,5.7518,3.1556,8.8651,3.0757,1.0188,5.7672,2.946,8.171,5.0773-0.95256-2.8824-3.0766-5.1129-4.5042-7.7441-1.5516-2.7372-3.0336-5.5913-3.6904-8.6923-2.9581-3.1576-4.5872-7.6305-3.9408-11.952,0.13267-4.7762-1.4093-9.7114-4.6059-13.311-0.8049-0.79276-1.7658-1.6692-2.954-1.7296z"/>
<path d="m509.16,307.97c-1.1224,0.1984-1.8054,1.2662-2.4064,2.1373-0.23225,0.87316,0.83776,1.8114,1.0081,2.7596,1.3127,3.2919,1.8084,6.903,1.4162,10.426-0.0864,2.5018,0.80881,4.9458,2.0839,7.0649,0.36793-1.5628,1.8164-2.6864,3.3865-2.8406,0.57114-0.10043,1.4107,0.18835,1.0779-0.68251-0.39881-4.7853-1.128-9.5978-2.8007-14.119-0.64833-1.615-1.3844-3.3147-2.7835-4.4203-0.28367-0.20186-0.62304-0.3745-0.98205-0.32512z"/>
</g>
<use xlink:href="#hand" transform="matrix(-1,0,0,1,1440,0)"/>
<path d="m715.67,475.98c-13.493-1.2846-25.667-11.12-29.829-24,0.22423-2.2187,2.9867,1.2413,4.2917,1.4741,2.4503,1.3606,5.0998,2.4802,7.9211,2.6539,3.5571,1.529,5.7565,5.0346,9.1516,6.8629,1.5764,1.2278,7.1544,3.641,6.1182-0.26421-1.307-2.04-2.2057-4.6242-1.0806-6.9613,1.8918-4.1503,4.8018-7.7638,7.7306-11.226,2.1527-0.71996,3.5939,3.5262,5.1338,4.9568,2.1308,3.2786,4.7004,7.2793,3.447,11.352-1.2198,1.5087-2.0216,6.0472,1.2409,4.5219,4.0213-1.7692,7.3158-4.7418,10.651-7.5175,2.9183-2.0384,6.6539-2.1824,9.7125-3.9699,1.4177-0.35921,4.3706-3.1946,4.9861-1.6225-1.6759,4.4876-4.4822,8.5068-7.4822,12.211-4.8588,5.5503-11.432,9.7247-18.786,10.902-4.3459,0.79562-8.806,0.96352-13.207,0.62747z"/>
<path d="m731.53,460.22c0.29719-2.7079-0.31965-5.4735-1.703-7.9349-2.123-4.3258-5.1213-8.1663-8.0456-11.961-2.7573-1.615-4.2871,3.6582-6.1205,5.1714-2.8566,4.2769-6.4434,8.6562-6.617,14.036-1.6071,2.5012-4.6044-2.0411-5.8962-3.5357-2.4673-3.4911-4.3356-7.6206-4.0297-11.987-0.29227-7.0356,1.0571-14.041,3.6204-20.581,1.9348-5.5826,5.0755-11.006,4.7564-17.105,0.22416-4.5905-0.70745-9.6582-4.4262-12.745-3.538-2.7758,2.2916-3.3674,4.1432-1.928,3.1686,0.21257,4.8825,5.4481,7.7771,4.152,1.1532-2.7346,1.3824-5.9968,3.7595-8.1295,2.3338-3.1959,4.773,1.3562,5.5715,3.488,1.6467,1.8723-0.0931,6.5066,2.5817,6.6282,3.2062-2.2473,5.4923-6.0227,9.5918-6.8447,1.6623-0.94835,4.5034-0.12664,2.3114,1.7848-3.0339,2.8443-5.6262,6.4002-6.1786,10.631-0.92788,5.3074,0.39912,10.69,2.7124,15.47,4.4468,9.3901,7.8854,19.996,5.6361,30.444-1.0432,4.644-4.1982,8.6454-8.0313,11.341-0.4847,0.29274-1.2499,0.27192-1.4134-0.39473z"/>
<path d="m726.73,389.63c-1.4562-2.6239-3.2238-5.2103-5.673-6.9945-2.3812-0.005-3.8508,2.9985-5.468,4.5721-1.134,2.11-2.5118,5.6386-5.3053,2.8796-4.4442-2.5928-5.2306-8.2748-5.202-12.958-0.27951-7.5908,2.777-14.674,5.4923-21.587,1.7275-4.3277,1.3019-9.1991,0.24806-13.634-1.3266-5.0918-5.4137-8.6231-8.5601-12.595,0.214-1.5365,4.235-0.69686,5.7483-0.40478,3.3588,0.85136,5.3664,3.8249,7.8703,5.9259,1.7818-0.53937,1.0545-4.1395,1.8839-5.833,0.0613-2.3821,3.233-5.5228,4.5407-2.1121,1.9588,2.1674-0.0626,6.4643,2.4686,7.8144,2.4113-0.89283,3.6009-3.5283,5.8666-4.72,2.2295-1.5204,5.3776-1.69,7.7781-0.49647,0.84484,2.2126-2.6402,4.0548-3.6496,5.9771-4.052,5.0056-5.4756,11.91-3.7401,18.112,1.3759,4.8649,3.8133,9.4058,4.6546,14.434,1.0126,5.6525,0.97903,11.589-0.48403,17.159-0.87455,3.3816-3.8021,5.6402-6.8258,7.0448-0.74602-0.69428-1.1395-1.7142-1.6436-2.583z"/>
<path d="M711.61,326.89c-3.36-2.46-4.47-4.81-4.47-9.46,0-2.38,0.44-3.67,2.01-5.83,2.31-3.2,1.89-4.21-1.38-3.27-5.26,1.51-7.77,0.13-7.95-4.35-0.08-2.19,0.38-3.12,3.33-6.66,2.36-2.84,3.22-4.33,2.75-4.8-0.46-0.46-3.25,1.96-8.98,7.79-4.57,4.65-9.71,9.4-11.42,10.56-9.84,6.64-19.24,7.67-23.53,2.56-2.2-2.61-2.08-4.08,0.46-5.66,1.17-0.72,3.14-2.38,4.39-3.69,2.95-3.07,11.74-9.41,16.1-11.61,3.54-1.79,4.38-3,2.08-3-2.98,0-12.54,6.22-19.79,12.88-2.13,1.97-5.2,4.16-6.81,4.87-3.62,1.6-10.73,2.19-13.89,1.15-2.23-0.74-6.3-4.58-6.3-5.95,0-0.36,0.93-1.16,2.06-1.77,1.13-0.6,3.16-2.07,4.5-3.24,5.8-5.09,16.79-10.33,25.51-12.16,2.77-0.58,1.75-1.98-1.34-1.84-5.99,0.26-17.88,5.83-24.98,11.69-8.32,6.86-20.87,6.21-24.91-1.29-0.7-1.29-1.11-2.5-0.91-2.69,0.19-0.19,2.66-0.93,5.49-1.65,3.06-0.77,9.12-3.28,14.91-6.17,9.11-4.54,11.81-5.51,18.08-6.52,2.82-0.45,2.97-1.83,0.23-2.15-3.53-0.42-8.94,1.35-18.5,6.05-12.28,6.04-15.72,7.08-22.19,6.7-5.9-0.36-9.23-1.87-14.02-6.4-3.13-2.97-7.57-10.51-6.7-11.38,0.21-0.21,1.65,0,3.2,0.45,1.72,0.51,6.65,0.85,12.59,0.86,8.31,0.02,10.52-0.2,14.95-1.48,7.41-2.14,17.26-7.15,24-12.18,12.89-9.64,23.4-13.51,36.8-13.57,12.37-0.05,20.24,2.81,27.21,9.88,2.36,2.39,4.37,3.94,4.7,3.61,0.31-0.31,0.65-4.49,0.75-9.29,0,0,3.64-0.35,4.41,0.67,0,7.79,0.09,8.4,1.22,8.4,0.74,0,1.53-0.76,2.02-1.94,1.06-2.55,4.98-6.04,9.17-8.16,9.05-4.59,24.71-4.73,37.29-0.34,5.3,1.86,11.18,5.18,16.78,9.5,5.62,4.32,17.11,10.1,23.9,12.03,6.87,1.95,18.98,2.44,25.19,1.03,2.56-0.58,4.96-1.06,5.34-1.06,2.29,0-1.61,7.63-6.19,12.1-8.37,8.18-19.26,8.14-34.58-0.12-9.55-5.14-20.97-7.95-20.97-5.15,0,0.58,0.6,0.97,1.49,0.97,3.32,0,9.73,2.23,18.67,6.47,9.67,4.6,15.1,6.54,18.32,6.54,2.34,0,2.41,1.45,0.23,4.65-2.31,3.41-6.23,5.1-11.77,5.09-5.29-0.02-8.23-1.18-12.96-5.11-7.91-6.58-27.62-13.92-26.86-10,0.15,0.78,1.1,1.26,3.13,1.57,6.86,1.05,14.91,4.89,23.15,11.06,2.54,1.91,5.18,3.79,5.85,4.19,1.13,0.66,1.15,0.86,0.26,2.53-1.48,2.76-5.21,4.9-9.25,5.32-5.23,0.54-9.78-1.02-14.49-4.96-9.94-8.32-19.31-14.34-22.31-14.34-2.45,0-1.35,1.35,2.97,3.64,5.68,3.01,11.52,7.08,15.82,11.03,2.03,1.88,4.32,3.74,5.08,4.15,1.8,0.96,1.73,2.37-0.25,4.96-2.02,2.64-5.36,3.8-9.69,3.34-8.64-0.91-15.38-5.08-25.97-16.07-4.14-4.29-7.83-7.8-8.21-7.8-1.41,0-0.58,1.91,2.15,4.97,3.38,3.78,4.03,5.91,2.75,8.98-1.13,2.72-3.01,3.35-6.87,2.31-3.95-1.07-4.57-0.1-1.98,3.12,3.86,4.81,3.29,10.7-1.44,14.75-1.47,1.25-3.01,2.28-3.43,2.28-0.41,0-1.45-1.07-2.32-2.38-3.04-4.62-5.71-4.59-8.67,0.08-1.03,1.63-1.9,2.95-1.93,2.94-0.04-0.01-1.43-1.01-3.08-2.23z"/>
<path d="M726.67,233.03,721.54,237.09,716.94,233.62,716.94,261.36,726.67,261.48z"/>
<path d="M694.89,204.25c-1.02,13.11-4.35,22.26-8.98,32.35l11.1-10.29,7.72,9.17,8.36-9.33,8.53,7.88,8.2-8.2,8.52,9.97,7.4-8.2,12.54,9c-4.55-10.09-10.71-18.64-9.94-32.84-12.15,9.03-41.02,10.66-53.45,0.49z"/>
<path d="M716.95,197.56c-4.46,0.08-9.16,0.14-13.39,0.97-2.93,0.58-5.59,1.53-7.81,3.1,0.36,8.53,41,12.09,51.9,0.16-2.29-1.67-5.09-2.66-8.17-3.26-4.07-0.79-8.57-0.87-12.84-0.94,0,2.34,0.02,4.69,0.02,7.04l-9.71-0.03v-7.04z"/>
<path d="M724.9,153.97,718.59,154.02,718.59,203.4,725.03,203.43z"/>
<path d="M724.89,155.24,722.48,178.88,746.8,190.76,734.49,174.3,751.3,168.85z"/>
<path d="M722.18,149.08c-3.69,0-6.42,1.38-6.42,3.02s2.73,3.03,6.42,3.03,6.4-1.39,6.4-3.03-2.71-3.02-6.4-3.02z"/>
</g>
<g fill="#f7e017">
<path d="M711.05,563.82c3.99-1.32,6.26-3.74,7.89-8.4,0.81-2.32,1.36-4.73,1.22-5.36-0.34-1.49-2.06-1.41-3.96,0.17-1.3,1.09-1.46,1.64-1.09,3.86,0.95,5.6-1.04,6.99-11.64,8.13-1.05,0.11-4.09-0.07-6.77-0.4-5.04-0.63-6.84-0.13-5.01,1.39,0.55,0.46,1.95,1.08,3.11,1.37,2.83,0.73,13.22,0.24,16.25-0.76z"/>
<path d="M733.02,562.89c0.6-0.55,2.66-1.5,4.58-2.12,2.56-0.82,3.88-1.7,4.96-3.31,3.11-4.63,2.53-8.62-2.04-14-2.48-2.92-3.58-2.84-5.56,0.4-1.71,2.8-1.67,2.98,0.79,3.62,1.29,0.33,2.53,1.28,3.21,2.45,2.68,4.64,1.89,7.51-2.08,7.54-3.6,0.03-4.59,0.54-5.56,2.87-0.51,1.21-0.92,2.5-0.92,2.87,0,0.98,1.36,0.81,2.62-0.32z"/>
<path d="M725.81,557.65c0.68-1.84,0.92-5.15,0.84-11.9-0.05-5.14-0.25-9.5-0.45-9.7-0.6-0.6-3.56,1.31-3.95,2.54-0.2,0.64,0.13,2.12,0.73,3.28,0.92,1.79,1.04,3.46,0.76,10.47-0.36,8.86,0.22,10.35,2.07,5.31z"/>
<path d="M708.89,553.43c0.36-1.65,0.82-5.03,1.03-7.5s0.72-5.59,1.12-6.94c1.02-3.46-0.01-4.37-2.74-2.43l-2.03,1.45,0.42,4.97c0.39,4.48-0.32,12.83-1.35,16.07-0.28,0.86,0.12,0.64,1.25-0.68,0.91-1.06,1.95-3.29,2.3-4.94z"/>
<path d="m693.88,555.84c3.6514-3.0546,3.2318-8.2704,4.04-12.52-0.0835-2.8248,1.8038-6.2116,0.58588-8.6828-3.4119,0.62408-5.5147,3.8554-3.7684,7.0746,0.14546,3.7382,0.0129,7.8076-1.9089,11.113-1.5698,2.1618-6.5419,1.6234-6.3131-1.4406,1.2477-4.6065-4.2718-2.3648-6.4264-1.1571-1.6657,1.1597-5.1825,1.2451-3.9601-1.6569-0.80663-3.8664-5.7798-1.4479-8.4816-1.4651-2.552-0.0466-0.21096-5.1708-3.8736-4.271-6.8058-0.53675-14.319,0.0602-20.21-4.0515-3.4486-1.6577-2.937-5.8052-1.1415-8.4888,2.1442-3.6651,2.7555-8.249,6.1588-11.093,3.369-3.231-3.1775-1.8666-4.6517-0.77788-3.2819,1.7962-0.23302,6.4226-2.9192,8.9886-1.5695,2.6611-3.6362,6.3361-7.2698,5.8296-5.2398-0.9908-8.2605-5.8651-12.017-9.1317-3.218-0.64222-1.4087,5.2218,0.25284,6.4543,3.2878,2.4618,7.1291,4.2558,11.092,5.3187,3.9439-0.63072,4.0717,4.5336,7.4444,5.3437,6.1873,2.883,13.083,3.7467,19.833,4.0986,2.6511,0.22107,1.16,4.9425,4.6458,4.0096,1.948,0.50493,6.3478-0.72487,6.5682,1.5381-2.9527,3.5059,2.8341,3.4276,4.9757,2.7999,2.742-0.41905,6.2461-1.4668,6.9708,2.2924,2.289,2.413,6.4921,2.057,9.2796,0.67619,0.39162-0.22691,0.75972-0.49483,1.0937-0.80043z"/>
<path d="M634.12,525.57c1.11-1.41,2.77-4.26,3.69-6.34,0.91-2.09,2.28-4.46,3.03-5.27,1.76-1.9,0.78-3.07-2.06-2.44-1.5,0.33-2.11,0.88-2.36,2.18-0.85,4.24-2.39,8.58-3.76,10.6-2.48,3.66-2.54,3.81-1.52,3.81,0.53,0,1.87-1.14,2.98-2.54z"/>
<path d="M596.66,502.09c-2.8,0-2.92,1.77-0.19,2.72,1.32,0.46,2.44,1.57,3.34,3.38,2.66,5.29,4.22,6.23,11.28,6.84l4.53,0.41,0.22,2.75c0.11,1.52,0.47,2.78,0.82,2.78s2.1-0.76,3.87-1.66c3.32-1.68,6.47-5.6,6.47-8.03,0-1.59-2.65-3.31-5.06-3.31-1.07,0-3.11,0.86-4.72,2.03-5.04,3.65-10.43,2.91-13.38-1.84-2.42-3.92-4.95-6.07-7.18-6.07zm24.46,9.75c1.34,0,1.67,0.99,0.94,2.88-0.5,1.3-2.13,1.34-2.62,0.06-0.58-1.51,0.23-2.94,1.68-2.94z"/>
<path d="M810.84,505.69c-1.83,0.07-2.37,0.47-3.53,2.19-1.9,2.82-2.09,8.93-0.34,11.09,1.09,1.34,1.25,1.37,3.56,0.41,3.22-1.35,3.76-1.3,3.75,0.43-0.02,4.42-6.36,12.94-13,17.47-1.79,1.22-3.39,2.58-3.56,3.03-0.48,1.26,1.98,0.98,5-0.56,4.12-2.1,9.53-7.62,11.75-11.97,1.76-3.47,2.01-4.65,2.22-10.72,0.19-5.59,0.04-7.23-0.91-9.09-1.06-2.09-1.4-2.28-4.06-2.28-0.32,0-0.61-0.01-0.88,0zm0.22,3.9c1.38,0,1.62,0.31,1.78,2.29,0.14,1.64-0.15,2.64-1.06,3.46-1.24,1.12-1.34,1.11-2.44-0.56-1.54-2.36-0.59-5.19,1.72-5.19z"/>
<path d="M780.7,552.27c5.85-2.88,9.3-6.12,11.52-10.81,1.05-2.23,1.91-4.33,1.91-4.69,0-0.81-2.88-2.15-4.61-2.15-1.72,0-2.07-1.19-1.33-4.48,0.72-3.21-0.15-7.23-1.56-7.23-0.51,0-1.41,0.75-2.01,1.66-0.92,1.41-0.97,2.01-0.29,4.06,1,3.04,0.21,5.31-2.51,7.25-1.29,0.92-2,1.98-2,3.01,0,0.87,0.11,1.58,0.24,1.58,0.14,0,1.56-0.74,3.16-1.63l2.92-1.63,1.72,1.35c0.94,0.74,1.72,1.95,1.72,2.69,0,3.56-10.15,9.54-17.12,10.1-3.71,0.3-4.34,0.17-5.63-1.11-1.05-1.05-1.35-1.93-1.09-3.17,0.2-0.95,0.56-2.68,0.8-3.84,0.64-3.1-0.69-2.68-2.99,0.94-1.89,2.99-2.45,6.18-1.39,7.86,0.87,1.37,6.65,2.68,10.74,2.43,2.57-0.15,5.11-0.87,7.8-2.19z"/>
<path d="M819.74,530.49c3.68-3.67,5.24-8.14,5.26-15.05l0.01-5.19,3.04-1.44c3.95-1.88,7.69-5.62,7.69-7.7,0-2.14-0.95-2.03-2.67,0.3-1.25,1.69-2.92,2.71-9.03,5.52-1.54,0.71-1.64,1.09-1.99,7.55-0.41,7.45-1.42,10.24-5.58,15.33-2.55,3.1-2.64,3.51-0.87,3.51,0.73,0,2.59-1.27,4.14-2.83z"/>
<path d="M779.66,526.33c0.35-1.07-1.68-1.83-2.56-0.96-0.37,0.37-0.47,1.01-0.22,1.42,0.58,0.93,2.42,0.62,2.78-0.46z"/>
<path d="M834.93,512.02c0.36-1.07-1.68-1.83-2.55-0.96-0.38,0.38-0.48,1.02-0.23,1.43,0.58,0.93,2.42,0.62,2.78-0.47z"/>
<path d="m768.41,473.28c-1.4296,0.68071-2.1713,2.2244-3.165,3.4028-0.71516,0.48622-0.14203,0.9405,0.26976,1.3988,2.5225,2.7171,3.5898,6.3866,4.7883,9.8088,1.177,4.0402,2.659,8.3784,1.4283,12.588-0.48423,1.6123-1.7525,3.2813-3.6466,2.746-3.0304-0.18916-6.0122-0.99351-9.0512-0.96152-2.705,0.14095-4.7956,2.6024-7.5614,2.3341-1.767,0.11638-1.6925-3.618-3.3341-2.6194-0.8128,1.9472-0.41254,4.1196-0.50932,6.1787,0.30628,0.29508,1.165,0.0377,1.6799,0.1242h5.4451c0.38492,1.8802,0.33677,4.0358,1.6875,5.5312,1.8899,0.67214,4.0159,0.0917,5.8116-0.64309,1.9256-0.89569,2.1834-3.2112,2.7274-5.0153,0.57858-1.9384,3.117-1.4302,4.6149-2.1913,3.6648-1.0697,6.0666-4.8789,5.852-8.6268-0.23686-5.722-2.4198-11.105-4.0759-16.521-0.83346-2.386-1.4104-4.875-2.377-7.2045-0.11331-0.20034-0.34573-0.36894-0.58432-0.32903zm-9.07,32.72c2.0364-0.13276,2.9212,2.3697,2.4899,4.0293-0.76215,2.2555-3.5349,0.80928-4.0958-0.81602-1.0301-1.4517-0.39353-3.4044,1.6058-3.2133z"/>
<path d="M683.94,487.22c-0.91-0.02-1.93,0.32-2.94,1.03-5.31,3.72-6.67,8.12-3.06,9.84,2.65,1.27,1.98,2.76-2.19,4.85-5.97,2.98-11.24,2.61-21.25-1.53-2.46-1.02-3.1-0.63-2.53,1.62,0.55,2.21,2.57,3.42,7.59,4.56,5.4,1.24,11.93,0.84,16.13-0.97,2.05-0.88,4.48-2.73,6.53-4.96l3.25-3.57,3.78,0.47c4.66,0.57,4.75,0.62,4.75,2.85,0,1.77,0.1,1.81,4.38,2.21,2.41,0.23,5.58,0.44,7.06,0.44,1.89,0.01,2.96,0.34,3.59,1.22,0.84,1.17,1.34,1.23,8.38,0.6,6.58-0.6,7.87-0.55,10.84,0.46,2.11,0.72,4.43,1.01,6.19,0.82,5.04-0.57,11.99-4.69,13-7.72,0.12-0.37,1.95-1.02,4.06-1.44,5.09-1.02,5.31-2.13,0.56-2.72-2.06-0.26-5.15-1.01-6.87-1.69-1.73-0.68-4.09-1.25-5.25-1.25-2.56,0-4.97,1.6-4.97,3.25,0,1.08,0.38,1.19,3.41,0.88,2.85-0.29,3.68-0.13,5.18,1.06,0.99,0.78,1.65,1.7,1.44,2.03-0.67,1.09-6.62,3.8-9.25,4.22-1.76,0.28-3.18,0.09-4.56-0.62-2.31-1.2-5.71-1.38-6.35-0.35-0.27,0.45-1,0.16-2-0.78l-1.56-1.47-3.53,1.47c-3.59,1.49-4.91,1.43-4.91-0.28,0-0.78-1.05-0.87-6.34-0.53-5.83,0.38-6.44,0.28-7.53-0.94-1.01-1.12-1.03-1.51-0.31-2.66,0.66-1.06,0.66-1.52,0.03-2.15s-1.45-0.62-3.75,0c-5.8,1.55-7.44,0.68-7.44-3.85,0-2.72-1.56-4.37-3.56-4.4zm-1.44,4.16c0.31,0,0.57,0.19,0.97,0.59,0.51,0.51,0.78,1.4,0.56,1.97-0.52,1.35-2.98,1.3-3.5-0.06-0.25-0.66,0.07-1.4,0.81-1.94,0.52-0.38,0.85-0.57,1.16-0.56z"/>
<path d="M672.1,495.6c3.53-2.24,3.45-2.07,3.96-8.29,0.35-4.39,0.29-4.72-0.9-4.72-1.73,0-2.63,1.9-2.63,5.52,0,2.32-0.36,3.36-1.6,4.59-2.94,2.94-10.24,1.6-11.16-2.05-0.31-1.25,0.09-2.38,1.62-4.55,3.19-4.53,2.47-5.64-1.44-2.2-2.69,2.35-3.17,2.42-2.66,0.39,0.47-1.87-0.51-2.61-2.7-2.06-1.12,0.28-1.73,0.98-2,2.34-0.26,1.33-0.87,2.07-1.93,2.33-1.77,0.45-4.79-1.23-4.79-2.66,0-1.06,4.52-6.58,10.32-12.6,2.19-2.28,3.98-4.4,3.98-4.72s-1.17-0.58-2.6-0.58c-2.09,0-2.6,0.23-2.6,1.2,0,0.66-2.92,4.49-6.5,8.52-7.46,8.4-8.08,10.15-4.39,12.39,2.97,1.82,6.78,1.68,9.77-0.35l2.42-1.65v2.99c0,3.82,0.76,5.19,3.76,6.78,3.77,1.99,8.33,1.75,12.07-0.62z"/>
<path d="m828.66,443.69c-2.7668,1.6519-0.60168,5.1236-0.18254,7.4288-1.1299,3.146-5.1718,3.9934-8.1183,4.5774-4.1736,0.69135-7.1308,4.1827-8.7186,7.8921-0.86037,2.4089-2.9366,6.1445-5.1993,2.4767-1.9667-1.9933-5.5819-3.5732-7.9078-1.2462-1.7668,1.6824-2.2148,4.1568-2.8735,6.4025-1.0427-1.7262-1.5104-4.2966-3.7201-4.8424-3.5276,0.49628-2.2527,4.9439-0.594,6.7779,1.5076,2.1378,2.9558,4.9578,1.4779,7.4969-1.303,3.0516-5.8095,5.11-8.4565,2.4995-2.4722-1.305-0.81896-5.9649-3.254-6.221-1.204,0.86977-1.3032,5.7458-3.2303,3.1024-1.3906-2.2586-0.65318-5.3523-2.3547-7.3843-2.0106,0.24966-3.6272,3.7115-2.9583,5.5709,2.6825,3.6176,3.7849,8.1558,4.8314,12.467,0.65196,1.7264-0.0951,5.2267,1.5199,5.9106,1.1196-2.7787,0.0791-5.9306,0.96044-8.7358,2.6182-0.32901,5.5303,0.86591,8.2761,0.23077,3.9286-0.50981,6.9646-3.825,8.3424-7.3555,0.41644-2.6542-0.079-5.3476-0.15274-8.0168,3.1034,0.48084,6.3281,0.47101,9.3135,1.4788,1.4804,2.2709-0.46974,5.4485-0.87913,7.9295-1.5586,5.0524-5.5163,8.7194-9.366,12.097-1.6101,0.95299-1.8264,3.4782,0.55162,2.118,5.1735-2.2122,9.0295-6.8975,11.248-11.969,1.619-3.9019,0.31744-8.2474,1.3744-12.238,1.5617-2.9959,5.3215-2.3646,8.1035-2.3553,2.879-0.10959,5.3363-3.464,4.3747-6.2619-0.91607-3.2468,2.519-4.8109,4.8661-5.9714,3.1119-1.5702,5.4981-4.7591,5.2571-8.3583-0.12787-1.8402-0.0371-5.3318-2.5312-5.5zm-11.031,18.75c3.3336,0.88568-0.60342,7.2524-2.375,3.2188-0.54528-1.539,0.75001-3.2741,2.375-3.2188zm-15.47,4.56c4.3385-0.25338,2.7806,6.0812-0.88479,3.2048-1.9006-0.95441-1.2718-3.3229,0.88479-3.2048z"/>
<path d="M645.1,491.48c0.12-0.63-0.2-1.08-0.77-1.08-1.21,0-1.94,1.06-1.37,1.98,0.59,0.95,1.89,0.41,2.14-0.9z"/>
<path d="M695.94,485.8c0-0.93-0.35-1.28-1.13-1.13-1.7,0.32-1.89,2.48-0.22,2.48,0.93,0,1.35-0.42,1.35-1.35z"/>
<path d="m633.03,455.28c-2.029-0.41667-3.3053,1.3004-4,2.9375-1.5174,2.5503-3.3705,5.1587-6.0931,6.5091-1.9578,0.54422-4.0937-0.20046-5.7819-1.2102-2.0147-1.0029-1.5567-3.4259-2.4202-5.1005-1.457-1.1443-4.0407,0.4921-3.9834,2.2714-0.16115,2.3862,2.0713,3.7641,3.9242,4.6869,1.5747,0.96445,3.8577,1.5009,4.4871,3.4529-0.0437,1.6587,0.6235,3.5571,2.6435,2.9166,2.2597-0.0372,2.8449,2.7155,1.9326,4.3671-0.92932,1.8613-1.5564,4.0416-1.1119,6.1154,1.08,0.90934,2.1827-1.5301,2.9652-2.2268,0.53138-0.70851,1.0628-1.417,1.5941-2.1255,3.9984,0.21679,7.9929,0.72673,12.001,0.5846,2.8505-0.0516,5.2778-1.8114,7.0906-3.875,2.5633-2.6802,4.6693-5.8294,7.597-8.142,2.0839-0.50859,0.96439-4.4336-1.2124-3.3001-1.9608,0.7355-2.578,2.9513-3.9368,4.3632-2.3146,2.8028-4.6762,5.6471-7.5941,7.8434-2.1245,0.8812-4.5705,0.49663-6.7532-0.00022-0.91062-0.79618,1.8087-1.445,2.188-2.33,1.252-1.2507,2.7385-2.438,3.4639-4.0814-0.69398-1.5148-2.8167-1.6373-4.3126-1.6678-3.6856,0.44249-6.5007,3.5363-10.223,3.8277-2.8253,0.099-1.355-2.9607-0.0813-4.0046,2.4916-2.9589,5.1844-5.7458,7.7858-8.6074,0.73816-0.88845,3.4086-1.732,1.7006-2.98-0.59723-0.21503-1.2431-0.21478-1.8694-0.22424zm1.8125,14.969c1.8586,1.0454-1.1858,2.7567-2.4681,2.5229-1.6823,0.50416-1.7125-1.2116-0.2183-1.5533,0.8401-0.43711,1.7274-0.89316,2.6864-0.96961zm-5.7188,3.9062c1.0579-0.0202,3.2748,0.99623,1.1931,1.6469-1.4494,1.1234-3.0867-1.1434-1.1931-1.6469z"/>
<path d="M674.15,476.74c0-1.41-2.53-1.21-2.81,0.22-0.18,0.92,0.11,1.14,1.29,0.97,0.84-0.12,1.52-0.65,1.52-1.19z"/>
<path d="M786.2,466.82c0.26-1.35-1.62-2.25-2.61-1.26s-0.08,2.87,1.26,2.61c0.62-0.12,1.23-0.73,1.35-1.35z"/>
<path d="M611.82,453.09c1.76-1.51,1.78-1.61,1.02-4.93-1.08-4.65-1.01-5.15,0.76-5.59,2.24-0.57,7.93,2.48,9.19,4.92,0.98,1.89,0.95,2.02-0.71,3.56-1.79,1.65-1.78,3.58,0.01,3.58,1.48,0,5.57-3.87,5.57-5.26,0-1.93-4.54-6.49-8.13-8.16-2.22-1.04-4.44-1.52-7.01-1.53-4.6,0-5.22,0.99-3.98,6.34,1.46,6.27-0.52,7.12-5.57,2.39-3.75-3.51-5.23-7.16-5.21-12.91,0.01-6.17,2.37-9.22,7.69-9.94,3.53-0.47,3.44-1.3-0.19-1.84-5.3-0.8-9.78,2.74-11.48,9.06-1.89,7.01,2.44,15.55,10.1,19.95,4.01,2.3,5.61,2.37,7.94,0.36z"/>
<path d="M820.66,445.4c0.43-0.43,0.78-1.4,0.78-2.15s0.73-2.36,1.62-3.57c0.9-1.21,1.63-2.45,1.63-2.75,0-1.23-2.03-1.19-3.63,0.08-1.64,1.28-2.87,1.31-2.87,0.06,0-0.31,0.78-0.95,1.74-1.42,2.38-1.16,2.58-2.31,0.57-3.23-2.58-1.17-5.17,0.97-5.44,4.5-0.17,2.36,0.02,2.77,1.84,3.84,1.66,0.98,1.97,1.5,1.69,2.9-0.48,2.43,0.53,3.28,2.07,1.74z"/>
<path d="M840.29,443.18c1.44-1.29,2.61-2.76,2.61-3.25s1.24-1.79,2.76-2.88c4.31-3.1,5.26-6.23,3.33-11.04-0.75-1.89-3.11-4.5-8.24-9.12-3.94-3.56-7.57-6.47-8.04-6.47-1.4,0-1.15,5.15,0.27,5.6,2.56,0.82,4.11,1.87,8.14,5.5,4.68,4.23,6.84,8.18,5.66,10.38-1.13,2.13-2.63,1.47-6.76-2.96-2.17-2.33-4.32-4.23-4.76-4.23-0.48,0.01-0.82,0.85-0.82,2.03,0,1.48,0.79,2.89,2.93,5.27,3.49,3.88,3.83,6.21,1.21,8.27-0.94,0.74-1.91,1.35-2.15,1.35-0.23,0-1-1.16-1.7-2.57-1.46-2.96-10.39-12.39-11.73-12.39-0.61,0-0.91,0.76-0.91,2.26,0,1.81,0.36,2.45,1.8,3.19,1.77,0.92,6.15,5.33,10.55,10.65,1.26,1.52,2.5,2.75,2.77,2.76,0.26,0,1.65-1.06,3.08-2.35z"/>
<path d="M849.05,418.11c-0.58-1.87-12.56-14.2-13.79-14.2-0.64,0-0.84,0.76-0.69,2.72,0.17,2.38,0.43,2.79,2.07,3.22,1.02,0.27,4.18,2.75,7.01,5.5,2.82,2.75,5.3,4.84,5.5,4.63,0.2-0.2,0.16-1.04-0.1-1.87z"/>
<path d="m777.5,556.89a1.7806,1.6322,0,1,1,-3.5612,0,1.7806,1.6322,0,1,1,3.5612,0z"/>
<path d="m783.79,554.79a1.7806,1.6322,0,1,1,-3.5612,0,1.7806,1.6322,0,1,1,3.5612,0z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 24 KiB

+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1100" height="750">
<rect fill="#007934" width="1100" height="750"/>
<rect fill="#F9E300" width="1100" height="500"/>
<rect fill="#D52B1E" width="1100" height="250"/>
</svg>

After

Width:  |  Height:  |  Size: 262 B

+5
View File
@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600" viewBox="0 0 9 6">
<rect fill="#21468B" width="9" height="6"/>
<rect fill="#FFF" width="9" height="4"/>
<rect fill="#AE1C28" width="9" height="2"/>
</svg>

After

Width:  |  Height:  |  Size: 220 B

+90
View File
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" height="504" width="720" version="1.0" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-2100 -1470 4200 2940">
<defs>
<path id="D" fill-rule="evenodd" d="m-31.5 0h33a30 30 0 0 0 30 -30v-10a30 30 0 0 0 -30 -30h-33zm13-13h19a19 19 0 0 0 19 -19v-6a19 19 0 0 0 -19 -19h-19z"/>
<path id="E" transform="translate(-31.5)" d="m0 0h63v-13h-51v-18h40v-12h-40v-14h48v-13h-60z"/>
<path id="e" d="m-26.25 0h52.5v-12h-40.5v-16h33v-12h-33v-11h39.25v-12h-51.25z"/>
<g id="G">
<clipPath id="gcut">
<path d="m-31.5 0v-70h63v70zm31.5-47v12h31.5v-12z"/>
</clipPath>
<use xlink:href="#O" clip-path="url(#gcut)"/>
<rect y="-35" x="5" height="10" width="26.5"/>
<rect y="-35" x="21.5" height="35" width="10"/>
</g>
<path id="M" d="m-31.5 0h12v-48l14 48h11l14-48v48h12v-70h-17.5l-14 48-14-48h-17.5z"/>
<path id="O" fill-rule="evenodd" d="m0 0a31.5 35 0 0 0 0 -70 31.5 35 0 0 0 0 70m0-13a18.5 22 0 0 0 0 -44 18.5 22 0 0 0 0 44"/>
<path id="P" fill-rule="evenodd" d="m-31.5 0h13v-26h28a22 22 0 0 0 0 -44h-40zm13-39h27a9 9 0 0 0 0 -18h-27z"/>
<g id="R">
<use xlink:href="#P"/>
<path d="m28 0c0-10 0-32-15-32h-19c22 0 22 22 22 32"/>
</g>
<path id="S" d="m-15.75-22c0 7 6.75 10.5 16.75 10.5s14.74-3.25 14.75-7.75c0-14.25-46.75-5.25-46.5-30.25 0.25-21.5 24.75-20.5 33.75-20.5s26 4 25.75 21.25h-15.25c0-7.5-7-10.25-15-10.25-7.75 0-13.25 1.25-13.25 8.5-0.25 11.75 46.25 4 46.25 28.75 0 18.25-18 21.75-31.5 21.75-11.5 0-31.55-4.5-31.5-22z"/>
<g id="star" fill="#fff">
<g id="c">
<path id="t" transform="rotate(18 0,-1)" d="m0-1v1h0.5"/>
<use xlink:href="#t" transform="scale(-1,1)"/>
</g>
<use xlink:href="#c" transform="rotate(72)"/>
<use xlink:href="#c" transform="rotate(-72)"/>
<use xlink:href="#c" transform="rotate(144)"/>
<use xlink:href="#c" transform="rotate(216)"/>
</g>
<use id="star1" xlink:href="#star" transform="scale(31.5)"/>
<use id="star2" xlink:href="#star" transform="scale(26.25)"/>
<use id="star3" xlink:href="#star" transform="scale(21)"/>
<use id="star4" xlink:href="#star" transform="scale(15)"/>
<use id="star5" xlink:href="#star" transform="scale(10.5)"/>
</defs>
<rect y="-50%" x="-50%" height="100%" fill="#009b3a" width="100%"/>
<path d="m-1743 0 1743 1113 1743-1113-1743-1113z" fill="#fedf00"/>
<circle r="735" fill="#002776"/>
<clipPath id="band">
<circle r="735"/>
</clipPath>
<path fill="#fff" d="m-2205 1470a1785 1785 0 0 1 3570 0h-105a1680 1680 0 1 0 -3360 0z" clip-path="url(#band)"/>
<g transform="translate(-420,1470)" fill="#009b3a">
<use y="-1697.5" xlink:href="#O" transform="rotate(-7)"/>
<use y="-1697.5" xlink:href="#R" transform="rotate(-4)"/>
<use y="-1697.5" xlink:href="#D" transform="rotate(-1)"/>
<use y="-1697.5" xlink:href="#E" transform="rotate(2)"/>
<use y="-1697.5" xlink:href="#M" transform="rotate(5)"/>
<use y="-1697.5" xlink:href="#e" transform="rotate(9.75)"/>
<use y="-1697.5" xlink:href="#P" transform="rotate(14.5)"/>
<use y="-1697.5" xlink:href="#R" transform="rotate(17.5)"/>
<use y="-1697.5" xlink:href="#O" transform="rotate(20.5)"/>
<use y="-1697.5" xlink:href="#G" transform="rotate(23.5)"/>
<use y="-1697.5" xlink:href="#R" transform="rotate(26.5)"/>
<use y="-1697.5" xlink:href="#E" transform="rotate(29.5)"/>
<use y="-1697.5" xlink:href="#S" transform="rotate(32.5)"/>
<use y="-1697.5" xlink:href="#S" transform="rotate(35.5)"/>
<use y="-1697.5" xlink:href="#O" transform="rotate(38.5)"/>
</g>
<use id="αCMi" y="-132" x="-600" xlink:href="#star1"/>
<use id="αCMa" y="177" x="-535" xlink:href="#star1"/>
<use id="βCMa" y="243" x="-625" xlink:href="#star2"/>
<use id="γCMa" y="132" x="-463" xlink:href="#star4"/>
<use id="δCMa" y="250" x="-382" xlink:href="#star2"/>
<use id="εCMa" y="323" x="-404" xlink:href="#star3"/>
<use id="αVir" y="-228" x="228" xlink:href="#star1"/>
<use id="αSco" y="258" x="515" xlink:href="#star1"/>
<use id="βSco" y="265" x="617" xlink:href="#star3"/>
<use id="εSco" y="323" x="545" xlink:href="#star2"/>
<use id="θSco" y="477" x="368" xlink:href="#star2"/>
<use id="ιSco" y="551" x="367" xlink:href="#star3"/>
<use id="κSco" y="419" x="441" xlink:href="#star3"/>
<use id="λSco" y="382" x="500" xlink:href="#star2"/>
<use id="μSco" y="405" x="365" xlink:href="#star3"/>
<use id="αHya" y="30" x="-280" xlink:href="#star2"/>
<use id="γHya" y="-37" x="200" xlink:href="#star3"/>
<use id="αCru" y="330" xlink:href="#star1"/>
<use id="βCru" y="184" x="85" xlink:href="#star2"/>
<use id="γCru" y="118" xlink:href="#star2"/>
<use id="δCru" y="184" x="-74" xlink:href="#star3"/>
<use id="εCru" y="235" x="-37" xlink:href="#star4"/>
<use id="αTrA" y="495" x="220" xlink:href="#star2"/>
<use id="βTrA" y="430" x="283" xlink:href="#star3"/>
<use id="γTrA" y="412" x="162" xlink:href="#star3"/>
<use id="αCar" y="390" x="-295" xlink:href="#star1"/>
<use id="σOct" y="575" xlink:href="#star5"/>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="300">
<rect width="600" height="300" fill="#00abc9"/>
<rect width="600" height="100" y="100" fill="#fae042"/>
<path d="M0,0V300L259.8076,150z" fill="#000"/>
</svg>

After

Width:  |  Height:  |  Size: 263 B

+467
View File
@@ -0,0 +1,467 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600">
<rect width="900" height="600" fill="#ffd520"/>
<path d="M0,600H900V0z" fill="#ff4e12"/>
<g stroke="#000" stroke-width="0.5208">
<g fill="#fff">
<path d="m481.74,187.59c-4.9875-1.7708-8.2083,0.805-8.0458,7.2442,0.15833,6.4392,3.5417,10.142,8.5292,7.7271l-0.48334-14.971z"/>
<path d="m486.12,175.53c-4.1542-3.28-8.0292-1.8738-9.9458,4.2758-1.9167,6.1492,0.0958,10.742,5.5958,10.058l4.35-14.333z"/>
<path d="m493.04,163.86c-3.5792-3.9046-7.6292-3.1383-10.508,2.6246-2.875,5.7633-1.625,10.618,3.9167,10.825l6.5917-13.45z"/>
<path d="m488.5,220.59c-6.1167,2.2538-6.7625,10.625-2.8958,15.776,3.8625,5.1512,10.946,6.1171,14.808,0l-11.91-15.78z"/>
<path d="m481.42,202.88c-5.7958-1.9317-11.017,5.8525-11.913,12.878-1.125,8.8538-13.683,11.751-6.7583,25.113,1.4458-8.5317,7.0833-13.2,11.588-13.522,4.5083-0.32208,11.271-1.2879,14.167-6.7613l-7.0833-17.708z"/>
<path d="m499.77,237.33c-6.7625,1.6096-7.7292,10.625-2.9,17.064,4.1333,5.5129,17.063,4.1854,16.742-1.2879l-13.842-15.776z"/>
<path d="m518.93,291.58c0.32084-5.795-9.0125-8.0488-13.521-6.9221-4.5083,1.1271-13.121-0.16083-15.133-4.9904-1.6083,3.8638,0.72501,8.0492,7.2458,10.142,4.9333,1.5846,4.8292,5.1512,3.3792,6.7613,3.7042,0.64375,14.65,0.64375,18.029-4.9904z"/>
<path d="m513.62,254.56c-6.6-2.8975-10.513,1.5158-13.038,5.795-3.7042,6.2783-15.133-1.7704-18.996,6.6004,5.2333-2.2538,10.558,2.5525,13.038,4.1854,7.0833,4.6683,20.767,3.2196,22.7-7.7271l-3.7042-8.8538z"/>
<path d="m517.48,262.28c-6.6,4.99-9.175,10.946-9.0125,14.971,0.1625,4.0246,5.7958,12.878,11.913,13.361,3.5417-7.2442,5.3125-22.537-2.9-28.332z"/>
<path d="m490.12,293.35c0-2.4146,3.5417-3.3804,5.9542-2.5758,2.4167,0.805,6.1167,3.2196,4.8292,5.7954l-10.783-3.2196z"/>
<path d="m453.73,280.15c-0.64167-2.8975,4.025-7.8879,10.304-5.1513,6.275,2.7367,7.0833,8.0492,4.5042,10.142l-14.808-4.9904z"/>
<path d="m469.02,285.46c-0.48333-1.61,4.0375-4.8254,11.754-2.8979,7.725,1.9321,9.6208,6.9067,9.3375,10.786l-21.092-7.8879z"/>
<path d="m452.93,280.15c4.025-3.0583,2.5-8.855-1.1292-10.625-6.6-3.2196-4.1833-11.59-8.3708-13.2-4.1833-1.61-8.2083-4.5075-8.3708-7.405-2.0917,4.0242-0.80417,7.7271,2.0958,10.303,2.8958,2.5758-2.2542,13.039,1.4458,15.776l14.329,5.1513z"/>
<path d="m366.64,277.9c-3.3804-5.3121-11.43-4.3463-14.81-0.64375-3.3804,3.7025-2.8975,9.1758,0.32208,11.59l14.488-10.947z"/>
<path d="m385.96,270.01c-1.2879-7.0829-9.82-7.8879-14.488-6.1171-4.6683,1.7708-7.8879,8.8538-4.8292,14.005l19.318-7.8879z"/>
<path d="m398.84,269.04c3.0583-5.9563-2.8975-14.81-9.6588-16.098-5.6446-1.0738-12.315-1.0462-14.488-6.6-1.3683,4.8296,2.2542,7.8879,6.4396,10.625,4.185,2.7367-0.80542,9.82,5.9558,13.844l11.752-1.7708z"/>
<path d="m398.2,269.25c-1.4088-4.2667,1.4488-9.9434,7.2325-9.5454,5.7842,0.39792,9.08,4.6013,6.53,9.8558l-13.763-0.31041z"/>
<path d="m411.07,269.57c-0.79583-4.4221,2.83-9.6404,8.5008-8.435s8.3417,5.83,5.0833,10.675l-13.584-2.2396z"/>
<path d="m423.86,271.6c-0.575-4.4575,3.3083-9.4875,8.9125-8.0013,5.6042,1.4871,8.0417,6.2404,4.5417,10.915l-13.454-2.9142z"/>
<path d="m326.72,345.35c-10.786,0-13.42,2.5679-14.971,13.683-1.9317,13.844,16.903,15.454,14.971-13.683z"/>
<path d="m331.55,330.86c-16.581-6.2783-25.595,19.961-42.015,15.293,5.8754,9.3367,20.118,0.0167,25.434,0.96583,9.015,1.61,28.493-1.7708,16.581-16.259z"/>
<path d="m320.76,366.76c-8.21-3.7021-17.064,8.8542-15.454,14.327,2.0438,6.9521,20.766,1.2879,15.454-14.327z"/>
<path d="m282.45,420.85c4.5075,1.2833,9.9804,3.8625,9.0146,12.554-0.96583,8.6917-17.385,26.4-32.195,27.367-14.81,0.96667-20.123,18.833-32.84,13.842,11.912-2.25,11.912-15.775,21.249-19.958-6.7612-2.4167-10.303,12.879-18.995,12.879-8.6929,0-12.878,13.842-23.503,12.875-10.625-0.9625-11.743,16.854-33,17.067-16.259,0.15834-36.381,19.154-43.625,10.946,15.776-2.2542,22.142-10.996,31.552-20.608,15.132-15.45,32.196-8.5292,37.991-22.213-6.9225,4.6667-14.971,6.9208-22.859,6.7625-9.9017-0.20417-20.766,15.775-31.874,8.6917,6.4392-0.80416,10.625-3.5417,17.386-10.625,6.9238-7.2542,17.083-2.5667,25.113-9.9792,12.556-11.592,23.342-1.9333,35.415-16.421-3.3808-1.6083-10.625-0.48334-17.386,3.0583-6.7613,3.5417-15.454-2.4167-23.181,1.7708,0.96583-9.4958,18.995-4.0625,30.264-10.625,12.718-7.4042,23.262-5.2333,33.323-4.3458-14.005-0.0792-19.478-13.363-38.795-9.5-8.425,1.6875-15.132-11.588-23.503-4.8292,0.24125-4.9875,9.015-9.0134,18.03-4.1833,9.0146,4.8292,12.648-4.2258,30.586,7.0833,7.405,4.6667,20.122-2.9,28.171,2.0917-1.0462-3.0583-5.6346-4.9917-11.027-4.5875,3.3808-6.9208,25.193-6.0375,34.691,0.8875z"/>
<path d="m296.78,410.38c-7.0829-5.4733-16.903,1.1283-23.664-1.4488,0,4.5062,2.2538,11.269,9.6588,13.844,2.2538-1.6083,12.395-10.463,14.005-12.395z"/>
<path d="m307.89,394.77c-11.108-5.6342-13.039,8.3708-21.732,5.4733,0.32209,4.0246,3.5417,9.015,10.625,10.142l11.108-15.615z"/>
<path d="m314.49,382.05c-16.42-6.4392-18.513,9.3367-28.171,6.2779,2.2538,5.4733,16.098,8.3708,23.181,6.4392l4.9904-12.717z"/>
<path d="m337.02,312.99c-4.3467-6.1171-13.522-1.1267-14.971,6.1171-1.4488,7.2442,2.0925,17.386,8.21,15.132l6.7608-21.249z"/>
<path d="m348.13,293.67c-7.5658-1.7704-16.259-0.96584-15.293,6.4392-2.8979,1.2879-3.7025,10.786,4.1854,12.878l11.108-19.318z"/>
<path d="m353.12,288.68c-7.405-8.6929-15.663-8.4908-20.283-4.8296-8.5321,6.7613-16.823,2.8979-17.064,9.6588,5.1517-3.9438,9.6588,0.805,13.844-0.64375,4.1854-1.4488,7.2442,6.6,18.835,3.2196l4.6683-7.405z"/>
<path d="m335.25,418.6c1.1271,2.0917,8.0488,3.0583,11.43-0.48334,4.4804-4.6958-0.48291-17.709-7.5663-18.675-7.0829-0.96583-7.7267,14.65-3.8633,19.158z"/>
<path d="m327.2,418.92c10.141,3.7,14.488-4.6708,9.0146-9.9813-1.4488,1.7708-6.7613,8.2104-9.0146,9.9813z"/>
<path d="m289.21,432.76c-1.9321,5.7958-11.913,6.7625-23.181,24.792-11.269,18.029-22.054,10.463-24.791,22.858,13.522-10.946,24.142-3.675,32.195-14.488,12.235-16.421,22.309-14.063,27.045-25.113,6.7608-15.775,36.381-15.454,37.991-40.244-9.9808-1.9321-41.533,24.79-49.259,32.194z"/>
<path d="m543.24,189.36c12.879,4.1854,13.2,20.927,28.008,26.4,14.813,5.4733,16.263,18.673,28.333,15.454-11.267-3.0588-10.463-16.098-22.213-19.318-13.783-3.7758-18.996-24.791-29.946-28.01"/>
<path d="m602.32,276.77c2.2542,5.1512,1.9333,14.327-6.1167,16.742,4.3458,2.7367,10.783,0.16084,14.325-5.795-5.3125,11.751-1.7708,22.376,6.6,24.469-4.025-8.21,4.9917-12.074,2.0958-17.386,5.3125,2.2538,9.9792,9.4979,9.8167,14.005,6.925-7.7271-5.15-18.03-2.8958-25.273l-23.825-6.7613z"/>
<path d="m518.93,359.51c-7.8875-6.9221-11.254,1.8096-15.133-1.2075-3.6208-2.8171-8.45-3.2196-10.3-0.4025,6.7625,0.24167,3.4583,5.4733,16.579,6.7613-13.121,0.88541-10.704,15.535-19.479,14.81,9.3375,8.8538,14.167-7.8879,21.733-5.1512-2.2542,0.64375,3.5417,5.9562-0.48333,13.039,6.5208-0.16084,9.175-9.1758,9.9833-13.844l-2.9-14.005z"/>
<path d="m345.23,434.69c-2.8979-2.4125-11.269-3.5417-14.488-1.6083-3.2192,1.9292-2.0925,2.4125,1.7708,2.7375,3.8638,0.32084,8.8525,6.5708,0.48291,6.9208-3.8633,0.15834-2.5754,9.4958-10.625,10.142,3.3,4.025,12.718,1.3667,16.098-3.0583-0.64375,3.6208,4.1854,6.9208,2.2538,11.267,5.9562,0.64584,2.495-12.071,11.913-11.429-3.8638,0.48334-2.2538,9.175,4.5071,6.9208-4.0242,1.9333-1.9317,6.6,2.5758,5.475-2.8975,0.96667-3.8638,4.6667,0.16084,6.7625,3.8638-5.3125-0.48292-24.308-14.649-34.129z"/>
<path d="m695.85,257.07c12.321,0,22.308-9.9896,22.308-22.312,0-12.32-9.9875-22.31-22.308-22.31-12.325,0-22.313,9.99-22.313,22.31,0,12.322,9.9875,22.312,22.313,22.312z"/>
<path d="m579.3,284.02c6.7625-6.4392,17.067-9.6588,24.146-4.8296,7.0833,4.8296,30.588,10.625,42.179,2.5758,11.588-8.0492,17.063-12.235,22.213-11.269,3.8667,5.7954,8.5334,8.5321,14.329,9.015,1.7708,1.9317,8.05,3.5417,11.592,3.0583,5.15,1.2879,11.429-0.32166,16.417-5.795,7.7292,1.1267,14.971-4.6683,17.708-13.361,8.2083-0.96583,8.6917-10.142,3.5417-16.259-4.8292-0.96584-1.125-17.225-18.675-14.005,7.4083,4.5071,1.7708,13.522,7.8917,17.708-4.1875,0-9.5792,1.7708-10.867,8.0488,1.6083-4.3462-0.24167-7.2438-1.3708-8.2096,0.1625-3.7025-8.0458-12.798-15.775-9.4979,5.5542,1.2075,2.4167,10.142,6.4417,13.522-2.9,0.16125-5.9583,1.61-7.7292,4.1854-2.0917-3.7025-9.4958-7.5658-14.004-7.8879,0-1.2879-0.24166-3.8633-0.80416-5.1512-2.0125-3.8633-3.7042-8.4508-2.9-14.327-3.8625,4.1854-7.0833,9.9808-9.0125,14.166-6.1167-4.1854-21.25,1.9317-28.333,3.5412-7.0833,1.61-30.908-2.2533-36.383-8.0488-5.4708-5.795-16.096-9.3367-26.075-12.234-13.725-3.9833-13.846-18.995-28.979-29.298-0.32083,18.674,28.013,77.914,34.45,84.353z"/>
<path d="m421.54,426.32c11.913,0,21.571-9.6583,21.571-21.571s-9.6583-21.57-21.571-21.57-21.571,9.6575-21.571,21.57c0,11.913,9.6575,21.571,21.571,21.571z"/>
<path d="m370.02,409.74c4.3462,5.6346,11.751,5.3138,14.81,4.8304,2.5758,6.7583,10.785,6.6,14.327,10.3,3.5417,3.7042,15.613,3.3833,19.155,1.2875-3.2167-0.32083-7.4033-2.25-11.428-5.6333-4.8579-4.0792-2.5758-12.234-6.4392-15.131,2.8975-3.2196,3.3804-8.5317,2.7367-10.625,3.0588-1.7708,5.3121-4.6683,5.6342-6.1171,5.3129-0.32208,9.9796-3.0588,11.913-5.1512,2.7375,2.5754,9.6583-0.805,13.363,3.5412,0.80417-10.625-9.3375-16.259-16.1-12.717-2.7375-1.4488-9.9804-0.48292-11.268,1.4488-2.2538-0.96584-8.5321,2.2538-11.43,4.3462,3.2196-1.7704,3.7025-7.0829,2.4146-9.0146,2.7367-1.1267,5.7954-4.8292,6.1171-7.5658,3.8638,0.64375,9.6575-1.9321,12.233-1.2879-4.1833-5.4733-11.105-7.405-18.189-6.9221-7.325,0.40292-10.463,5.5542-11.429,11.108-4.3467,2.5754-5.7954,11.268-4.1854,14.327-2.4958-0.08-4.8296,2.3346-5.7954,3.7025-3.3804-1.4488-8.21-2.4946-11.671-2.4946"/>
<path d="m366.32,373.2c-1.4488-4.1854,0.47-7.9533,1.4488-11.268,2.495-8.4508,0.96584-10.625-6.6-9.4975-0.64375,4.0242,3.2196,17.225,5.1513,20.766z"/>
<path d="m360.77,352.91c1.9317,1.9317,8.7738,2.8175,9.4979-3.2996,0.83167-7.0225-2.0121-9.74-8.1292-7.0033-0.48292,1.61-1.0471,8.21-1.3688,10.303z"/>
<path d="m362.22,342.37c2.5758,1.0458,8.13,3.1388,11.188-2.8175,2.5658-4.9954-0.80458-8.8538-6.1167-8.5321-1.2883,1.4488-3.8638,6.6004-5.0717,11.35z"/>
<path d="m366.97,330.54c0.64375,1.9317,7.2442,8.3708,12.073,3.7025,4.8296-4.6683,4.8296-11.59-2.4146-14.166-1.9321,0.32166-7.7271,7.0829-9.6588,10.463z"/>
<path d="m376.62,320.08c1.4488,4.0242,5.9558,10.946,14.327,7.7267,8.3713-3.2196,4.8296-13.683,0.96625-15.776-2.2538,0.16125-11.43,4.3467-15.293,8.0492z"/>
<path d="m391.92,312.03c-0.64417,3.5417,0,13.2,11.429,13.039,11.428-0.16083,8.2113-13.522,5.3125-15.454-4.6683,0-12.556,0.16083-16.742,2.4146z"/>
<path d="m409.14,310.09c-1.2879,2.7367-4.1896,20.75,18.191,15.776,2.8958-0.64375,10.463-17.225-18.191-15.776z"/>
<path d="m421.37,311.7c-2.25,2.2533,3.5417,20.444,18.675,17.385,15.133-3.0588,2.4167-20.283-18.675-17.385z"/>
<path d="m434.25,314.44c-2.4125,4.9904,1.2125,19.8,19.883,19.8,16.921,0-0.8875-19.478-19.883-19.8z"/>
<path d="m448.9,318.79c-1.2125,2.7662-2.6958,18.468,19.317,19.8,15.938,0.96583,12.075-21.571-19.317-19.8z"/>
<path d="m472.57,325.39c-2.7333,4.8296-5.6333,16.903,18.513,17.869,15.471,0.61917,5.9583-17.547-18.513-17.869z"/>
<path d="m492.69,329.09c-3.5417,4.8296-0.93333,14.303,8.0458,16.098,11.271,2.2538,12.879-8.3708,5.1542-13.522-7.7292-5.1513-13.2-2.5758-13.2-2.5758z"/>
<path d="m503.64,331.34c-2.575,4.5075-0.97917,15.454,16.096,15.454,3.5417,0,17.067-13.844-16.096-15.454z"/>
<path d="m371.48,541.27c13.83,0,25.042-11.213,25.042-25.042,0-13.833-11.212-25.046-25.042-25.046-13.831,0-25.043,11.213-25.043,25.046,0,13.829,11.212,25.042,25.043,25.042z"/>
<path d="m555.15,177.13c-1.9333,1.9317-5.9542,7.7267-6.7625,9.9804-8.3708,25.113,13.975,43.871,27.046,70.83,10.304,21.249,9.0167,54.733-7.0833,75.982-5.5083,7.2683-3.8625,9.3367-10.946,16.742-2.7167,2.8408-5.7958,6.4392-4.8292,16.742,4.5083-1.61,10.946,2.5758,12.233,6.1171,3.2208-1.6096,7.7292-0.96584,9.3375,0.96583,5.4708-2.5754,9.9792-1.2879,14.808,3.8638,4.1875-0.64416,8.6958,0,12.879,4.5071,2.2542-4.5071,6.7625-6.1171,9.9792-5.1512-0.32083-5.795,5.475-9.9804,10.625-7.7267-1.6083-7.7271,5.475-13.523,12.238-11.269,5.7917-4.5075,17.383-4.8292,23.179,1.9317-10.304-2.8975-9.9792,8.0492-18.675,7.0833,2.2542,6.4392-3.5417,10.142-9.3334,12.234,3.7-1.7708,7.725-3.8633,9.0125-1.6096,3.2208-2.8167,9.6584-1.7708,11.271-0.32208,4.2625-1.3679,8.3708-0.32208,10.3,4.8292,5.7958,3.5417,9.6583,12.556,5.475,19.318-1.2875-7.0829-6.1167-6.7613-8.05-9.6588-4.5083,1.61-9.0167,1.61-10.304-1.2879-2.575,2.5758-11.267,4.8296-15.129,0.96584-1.45,5.7954-6.4417,10.625-12.238,10.625,1.6125,4.5071-2.8958,12.236-6.4375,16.098,5.475,2.8958,3.8625,9.3375,2.575,13.2,8.3708,1.2875,1.2875,8.6917,15.775,13.521-7.0792,2.2542-20.925,0-22.858-8.6917-7.0833-0.32083-11.913-7.4042-11.588-14.813-5.475-5.15-6.2792-12.554,1.2875-17.705-6.4417,1.9317-9.9834-8.3708-19.321-4.1854-4.6417,2.0825-16.9-1.4488-16.738-5.7954-1.9333,3.2196-13.683,1.9321-15.296-3.5412-3.8625,2.0925-12.879-1.4488-12.717-6.7613-4.9917,2.2538-11.75-1.7708-11.429-6.9221-4.6667-0.64375-5.15-4.8292-4.8292-8.3708-4.1875-1.9317-3.0583-5.9563-1.45-10.785-2.8958-3.2196-1.6083-7.7271,0.64583-11.913-3.2208-3.2196-2.575-7.0829-1.6125-11.59-15.454-1.2879-34.813-5.015-79.2-18.673-66.967-20.605-84.997,27.688-70.187,57.952,17.087,34.919-1.9317,42.5,3.8638,68.579,6.1171,1.2875,9.3367,6.4375,9.015,11.913,3.6208,0.15834,6.1967,3.5375,4.9088,9.9792,3.0588-0.5625,7.0034,0.32083,9.5788,2.8958,2.2538-4.1833,9.6588-5.15,13.523-0.32084,8.3688-0.64583,12.556,6.1167,12.235,14.488,4.5042,8.05,2.8958,17.871-1.9333,24.146,0.48334-3.3792,0-8.2084-0.15833-11.104-0.3-5.3292-7.7292-6.4417-6.9242-10.788-3.8633,0.32083-7.5663-1.7708-8.8538-4.6667-2.2538,1.9292-5.4733,2.575-8.21,1.6083,4.3462,1.9333,7.7271,9.6583,6.4392,14.808,2.2538,3.8667,1.7708,10.95-0.96583,14.008-1.2879,6.275-6.1171,8.5292-12.395,5.7917,3.5417-2.25,4.8292-6.275,4.6683-9.6583-2.2538-1.9292-3.3804-5.6333-3.5417-7.8875-6.2779,0.96667-14.971-4.3458-16.574-6.4458-13.831,0-25.043,11.213-25.043,25.046-0.64375-5.1542-7.1588-10.229-6.3542-14.575-3.8633-11.913,1.61-23.021,17.386-25.271-1.9317-4.5083,4.8292-9.1792,2.2538-14.329-3.2904-6.5792-9.3367-15.133-18.351-25.113,5.4733-9.3375,3.8633-21.892,0.64375-29.62-4.6233-11.096-9.015-8.3708-25.435,9.6579-26.76,29.383-62.46,21.25-94.012,40.567-8.3838,5.1333-16.741,7.0833-7.7267-1.9292,9.015-9.0167,32.84-18.029,48.293-25.758,28.94-14.471,53.445-38.635,63.104-85.64,22.697-110.46,106.24-74.05,159.04-53.445,49.571,19.346,40.567-24.469,15.454-50.869-30.183-31.732-24.146-56.664-9.9792-76.626,25.433-3.5412,74.213,5.3125,64.392,13.845z"/>
<path d="m644.82,448.48c15.217,0,27.554-12.333,27.554-27.55,0-15.218-12.338-27.554-27.554-27.554-15.217,0-27.554,12.336-27.554,27.554,0,15.217,12.338,27.55,27.554,27.55z"/>
</g>
<g fill="none">
<path d="m539.7,178.41c-6.1167,27.045-0.96667,39.279,8.05,51.191,18.629,24.621,33.483,80.811,12.233,117.51"/>
<g stroke-linecap="round">
<path d="m571.89,315.41c2.575-0.96583,7.4042-4.0242,8.5333-9.3367"/>
<path d="m573.82,303.66c0.80417-4.6683,8.0458-6.68,8.2083-11.67"/>
<path d="m573.98,285.46c-0.48334-4.8296,7.2458-9.1758,6.1167-14.005"/>
<path d="m569.8,268.08c-0.64584-2.7367,6.4375-7.8879,4.5083-12.234"/>
<path d="m564.49,251.18c-1.45-3.0588,3.3792-6.6004,1.2875-9.82"/>
<path d="m556.76,237.65c-0.48334-2.0925,2.4958-6.68,0.8875-9.4163"/>
<path d="m549.03,221.72c0.64167-0.805,3.2208-2.7367,2.1708-5.1513"/>
<path d="m543.72,210.05c1.0458-0.56375,4.1833-1.53,3.7833-3.8633"/>
<path stroke-linejoin="round" d="m382.58,513.57c-6.4392-2.2542-14.488,0.96667-16.098,6.4417"/>
<path stroke-linejoin="round" d="m371.31,525c0.805-5.4708,9.1758-7.8875,11.751-5.3125-5.3121-2.8958-7.8879,7.4042-3.2196,7.7292"/>
<path stroke-linejoin="round" d="m423.15,397.67c-3.8625,1.9321-4.9875,9.015,0,14.329"/>
<path stroke-linejoin="round" d="m428.94,399.28c-2.7333,2.2538-2.575,9.0146,1.45,10.625-3.3792-2.4146,0-6.6,2.4167-6.7612,2.4125-0.16084,4.0208,2.7367,1.125,5.6342"/>
<path stroke-linejoin="round" d="m655.12,415.21c-9.0125-2.4125-16.258,8.05-8.05,17.388-0.15833-9.0167,6.2792-14.971,14.167-13.363"/>
<path stroke-linejoin="round" d="m657.61,425.47c-2.2167,0-3.4625,1.7333-3.4625,3.4208,0,1.7708,1.5292,3.4625,4.025,3.4625,1.6125,0,2.9-1.85,2.9-3.3"/>
<path stroke-linejoin="round" d="m689.4,227.83c1.45,5.4733,9.0167,7.7271,14.971,6.4392"/>
<path stroke-linejoin="round" d="m704.37,230.73c-4.6667,0.16125-8.5292-4.1854-8.2083-7.8879,0,2.7367,6.2792,4.0246,8.2083,2.2538"/>
<path d="m384.83,414.57c-1.2875-3.2208,3.8638-6.4404,4.0246-9.4992,0.16125-3.0583,5.795-5.4729,11.59,0.32209"/>
<path d="m397.71,371.11c-1.1267,0.48292-2.0929,1.1267-3.0588,1.4488"/>
<path d="m408.82,388.65c-1.3688,0.0813-4.1854-0.08-5.715-1.1271"/>
<path d="m403.19,394.77c-1.1267,0.56417-3.6229,1.53-5.0717,1.8521"/>
<path d="m347.97,492c-0.16125,2.9,2.7367,7.0833,4.3462,8.3708"/>
<path d="m360.53,485.08c-1.61,2.4125-2.5754,6.6-1.61,9.4958"/>
<path d="m384.51,494.74c-2.8979-1.9333-0.96583-6.925-1.2879-10.142-0.32208-3.2208,3.3808-8.3708,10.625-4.025"/>
<path d="m357.47,476.39c2.8979-0.48333,5.9563-0.325,7.8879,0.47917"/>
<path d="m394.17,467.21c-1.2875,1.7708-1.6096,3.7042-1.7704,4.9917"/>
<path d="m407.69,466.89c-2.2538,0-4.1854,1.6083-5.1513,3.2208"/>
<path d="m376.46,384.47c2.5758,0.88584,9.2558,4.9904,9.4979,9.2567"/>
<path d="m403.83,363.54c-7.8875-0.16125-10.946-8.21-4.99-8.21"/>
<path d="m418,374.32c-3.0583,1.2879-1.6083,6.6,2.7375,9.1758"/>
<path d="m399.16,424.87c-1.5296-1.9292,0.48291-7.5625,5.4733-5.875"/>
<path d="m410.91,483.63c0.32-4.9083,6.52-7.8083,9.0158-2.2542"/>
<path d="m388.05,497.63c-0.40292-5.3917,2.3338-7.1625,4.7483-7.4833,2.4146-0.32084,5.8767,1.6875,7.4863,5.2292"/>
<path d="m340.08,501.66c0.32208-3.2208,3.0588-6.6,5.9562-6.1167"/>
<path d="m634.67,358.71c-2.0958,1.53-3.4625,8.3708,4.5042,9.015"/>
<path d="m622.44,369.98c0,0.80459,1.0458,1.9317,1.6917,2.4146"/>
<path d="m660.43,382.86c-2.0917-1.6096-7.4875,4.9104-2.575,9.6588"/>
<path d="m609.24,436.95c-1.2083-4.5875,3.0583-5.7958,7.0833-4.8292"/>
<path d="m598.94,404.43c2.4125-1.6096,4.8292-3.3804,7.8875-4.1854"/>
<path d="m597.65,422.13c0-3.8625,1.9292-7.0792,3.7-8.0458"/>
<path d="m611.81,377.71c-0.32083,4.6683,1.6125,9.1758,3.0625,11.59"/>
<path d="m650.13,378.03c-2.3375,0.725-4.4292,1.6096-5.3125,3.5417"/>
<path d="m647.55,391.23c1.1292-0.96583,2.4167-2.0925,2.9792-2.8975"/>
<path d="m708.4,250.69c0,4.5071-5.6333,6.9217-9.3333,4.0242"/>
<path d="m720.64,250.85c2.4917,1.9317,11.104,0.0812,9.0917-4.9092"/>
<path d="m710.17,276.77c-1.7708-0.32209-4.8292-2.2538-6.1167-3.8633"/>
<path d="m727.88,263.41c-2.8958,0.64375-4.8292,0-6.2792-0.64375"/>
<path d="m682.16,279.51c1.6083,0,5.4708-0.64417,8.1292-2.0117"/>
<path d="m677.33,251.02c-2.0917-0.24083-3.625,0.16125-4.8292,0.96584"/>
<path d="m709.77,258.9c-0.5625,2.0129-2.0125,5.1512-3.7833,6.5204"/>
<path stroke-linejoin="round" d="m671.86,265.99c4.025-1.7708,9.0167,11.912,18.675,7.0829"/>
<path stroke-linejoin="round" d="m691.34,258.9c-1.2875,1.7708-2.0917,4.5075-2.2542,6.9221"/>
</g>
<path d="m498.81,237.98c1.2875-0.16083,3.5417-0.64375,4.025-2.2538"/>
<path d="m333.16,387.85c4.8296,2.7367,8.2104,7.405,6.1175,14.327"/>
<path d="m554.5,223.17c1.45,0.96583,6.925,0.96583,9.9833-0.16083"/>
<path d="m568.35,226.39c-0.1625,2.2538,0.48333,10.785-3.8625,12.556"/>
<path d="m566.1,237.82c4.025,1.2879,12.075,0.80459,14.65-6.6"/>
<path d="m575.11,237.49c2.0917,3.2196,2.7333,9.4979-3.5417,12.878"/>
<path d="m576.72,242.81c4.6667,1.6096,15.454,1.7704,14.325-7.405"/>
<path d="m587.35,242.81c3.2208,4.5071,17.388,9.8196,15.133,0.48292"/>
<path d="m574.31,255.84c5.4708,1.2879,13.2-2.415,9.9792-12.073"/>
<path d="m599.74,248.6c0.80416,3.7025,18.833,7.5658,16.421-0.805"/>
<path d="m612.78,252.63c3.3833,7.7267,21.25,7.0829,15.617-3.2196"/>
<path d="m625.5,257.45c3.5417,4.3467,19.321,1.7708,13.042-8.6929"/>
<path d="m638.37,257.29c9.8208,7.405,21.25-3.2196,8.8542-10.947"/>
<path d="m652.86,254.88c8.6958,6.9221,19.321-5.6346,11.754-9.1758"/>
<path d="m584.12,251.98c2.7375,0.805,8.5333,0.48292,9.8208-4.5071"/>
<path d="m591.77,250.85c-0.32083,7.325,11.996,10.142,15.133,1.6908"/>
<path d="m602.8,257.13c2.2542,4.8292,13.038,6.7608,14.808-0.16125"/>
<path d="m615.84,260.19c1.7708,4.8296,11.108,4.3467,13.683-0.64375"/>
<path d="m626.14,262.77c2.8958,6.2779,14.808,6.2779,17.546-2.8979"/>
<path d="m641.6,263.89c4.6667,2.8979,14.65,1.7708,13.842-7.2438"/>
<path d="m653.51,263.09c6.9208,5.6346,16.742,0.16125,11.913-9.3367"/>
<path d="m664.94,270.49c3.7042-0.64375,5.6333-8.0488,1.7708-9.9804"/>
<path d="m579.14,271.78c7.725-4.1854,9.175-11.268,3.8625-18.19"/>
<path d="m585.74,264.7c4.8292,2.8975,14.004-0.16083,15.613-7.2442"/>
<path d="m592.34,265.5c2.7333,3.5413,3.2167,7.8879-0.325,11.912"/>
<path d="m594.59,270.01c8.5292-5.3121,19.154,4.5075,11.267,10.464"/>
<path d="m604.41,269.53c1.9333-0.48291,5.3125-4.0242,5.6333-8.0488"/>
<path d="m608.27,273.23c3.5417-3.7025,27.692,3.8638,12.396,11.59"/>
<path d="m619.54,263.09c4.6667,1.7708,7.0833,8.3713,0,10.625"/>
<path d="m625.66,279.19c5.15-5.3121,21.25-1.9317,15.454,4.8296"/>
<path d="m637.25,277.09c2.8958-9.82,20.121-3.7025,14.488,0.32167"/>
<path d="m633.71,267.27c0.48333,1.9321,0.64166,6.7613-2.575,9.3371"/>
<path d="m648.2,265.34c0.64167,1.61,0.48334,4.6683-0.96667,6.6004"/>
<path d="m659.14,265.5c0.96666,1.7704,2.575,5.1513-0.96667,7.8879"/>
<path d="m521.35,191.45c0.15833,9.1754,3.3792,15.293,15.775,9.4975"/>
<path d="m525.21,202.4c-6.1167,8.21,0.80417,17.064,12.879,8.21"/>
<path d="m506.37,206.42c8.3708,9.0146,23.342,2.4146,13.683-11.269"/>
<path d="m530.2,214.15c-1.6125,8.8538,5.6333,10.625,11.588,6.6"/>
<path d="m498.97,207.87c1.525,8.9013,10.625,15.937,19.479,10.464"/>
<path d="m509.92,220.11c0,12.718,17.546,14.166,21.571,0.96625"/>
<path d="m525.21,229.12c5.6333,11.59,17.867,6.9221,21.892-0.16084"/>
<path d="m512.81,210.61c2.2542,5.6342,6.7625,11.913,17.225,7.2442"/>
<path d="m480.62,207.87c1.45,4.6683,9.8208,10.303,19.479,3.8633"/>
<path d="m486.57,213.83c-5.1542,7.5658,5.15,14.649,17.546,3.3804"/>
<path d="m492.69,223.17c2.0917,10.625,6.275,19.157,21.408,5.4733"/>
<path d="m506.53,234.11c5.475,6.7608,13.846,10.946,21.733-0.48292"/>
<path d="m534.06,236.04c-0.48333,8.0488,1.125,12.073,7.4042,11.751,4.95-0.25334,9.6584-4.1854,12.396-8.3708"/>
<path d="m540.34,247.8c-0.1625,9.1758,7.0792,16.42,20.604,7.0833"/>
<path d="m545.97,258.58c-2.575,6.9221,5.15,18.19,20.283,12.395"/>
<path d="m513.94,240.23c-0.9625,8.8538,7.2458,14.81,20.446,3.3804"/>
<path d="m520.38,250.05c0.48334,7.2442,8.6917,15.937,20.767,3.3804"/>
<path d="m526.17,259.23c-0.96667,12.395,10.463,15.937,20.121,6.4392"/>
<path d="m508.95,250.05c2.575,0.16125,4.6667-2.0925,5.9542-3.7025"/>
<path d="m514.42,259.06c2.2542,0.48292,6.1208-1.61,7.4083-4.1854"/>
<path d="m520.06,273.71c2.575,2.7367,11.267,0.805,12.392-2.8975"/>
<path d="m529.72,273.55c4.8292,11.268,17.704,10.785,23.017-1.9317"/>
<path d="m550.32,276.13c2.4125,6.6,8.5333,10.785,18.513,8.5317"/>
<path d="m555.15,282.89c-5.6333,9.1758,1.7708,19.961,14.325,9.3367"/>
<path d="m558.21,296.57c-0.64167,5.795,4.6708,12.395,11.913,13.2"/>
<path d="m534.38,279.67c-1.9333,13.039,7.4042,19.318,19.158,12.395"/>
<path d="m520.7,285.95c3.0583,2.4146,8.5333,2.7367,13.683,0.805"/>
<path d="m540.66,294.32c-2.9,10.947,8.3708,18.835,18.029,6.6"/>
<path d="m525.05,287.72c0.1625,5.6342,5.6375,11.751,15.133,9.9804"/>
<path d="m566.74,308.97c-6.4417,4.3462-7.7292,12.073,1.2875,17.063"/>
<path d="m550.96,306.71c0.325,6.6,3.3833,10.303,10.625,10.946"/>
<path d="m541.47,303.33c-9.6583,8.8542-0.1625,19.157,11.267,10.464"/>
<path d="m548.23,316.53c-3.2208,10.142,8.8542,16.259,15.292,5.9562"/>
<path d="m528.27,294.96c-3.5417,9.9808,0.96667,16.581,9.175,15.937"/>
<path d="m515.55,293.03c0.48334,5.9562,5.6333,8.0488,11.429,6.7612"/>
<path d="m519.25,299.31c-4.3458,8.3708,2.2542,12.878,10.95,9.6588"/>
<path d="m556.6,327.64c-1.45,5.3121-0.64583,9.1758,7.2417,10.947"/>
<path d="m557.08,335.21c-9.5,4.3467-10.304,13.523-2.9,19.478"/>
<path d="m549.43,324.99c-4.9875,4.5075-4.025,12.314,1.45,15.373"/>
<path d="m507.18,295.61c-5.475,5.3933-0.24167,20.283,11.829,12.155"/>
<path d="m538.57,314.44c-7.4083,6.1175-4.025,17.225,8.2083,14.166"/>
<path d="m526.33,309.77c-3.8625,10.947-0.15834,14.81,8.5333,14.971"/>
<path d="m499.13,295.12c-6.6,4.99-4.8292,12.073-1.9292,15.293,2.8958,3.2196,8.3667,1.7708,10.138-2.4146"/>
<path d="m485.28,290.78c-7.4042,9.4979,0,20.766,10.467,17.386"/>
<path d="m524.89,318.95c-7.5667,2.7367-13.338,9.6071-8.6958,15.615,2.7375,3.5417,14.65,4.0246,18.029-9.6588"/>
<path d="m511.2,310.09c-4.3458,6.2783-2.9,12.235,5.15,15.293"/>
<path d="m510.72,321.85c-4.6708,2.5758-7.7292,5.6346-6.6,11.269"/>
<path d="m500.26,312.03c-1.7708,7.5663,0.32083,12.235,4.9875,14.488"/>
<path d="m500.1,321.04c-7.2458-0.48292-10.946,2.5754-8.5333,9.6588"/>
<path d="m492.21,322.81c-7.0833-2.5758-8.2125-8.6929-5.1542-15.132"/>
<path d="m486.09,317.18c-7.7292,0.32208-11.108,4.1854-11.108,9.4979"/>
<path d="m475.62,287.07c-5.6333,2.4146-7.4042,9.9808-5.3125,14.166,2.0958,4.1854,8.6958,4.5075,12.721,1.7708"/>
<path d="m459.85,281.12c-5.15,5.7954,0.80417,17.064,9.9834,14.327"/>
<path d="m446.65,276.61c-4.8292,6.7608,0.48333,18.03,12.879,14.81"/>
<path d="m460.17,322.81c-1.2875-8.0492,7.0833-13.361,17.388-2.8979"/>
<path d="m472.57,303.66c-3.0583,2.7367-4.5042,7.0829-4.025,10.625"/>
<path d="m433.45,272.75c-5.3125,9.015,1.1292,17.225,12.558,14.005"/>
<path d="m463.23,295.12c-7.5667,7.5658-4.9917,15.132,0.64167,19.478"/>
<path d="m458.4,303.98c-11.429,0.16084-12.071,13.361-2.7333,17.547"/>
<path d="m449.71,290.78c-4.6667,3.2196-6.1167,12.073,1.9333,15.615"/>
<path d="m449.39,310.58c-4.8292-2.2538-10.625,0.48292-10.142,6.1171"/>
<path d="m442.14,310.74c-4.3458-10.303-17.063-8.5317-15.933,2.0929"/>
<path d="m445.68,298.02c-2.7333,0.48291-8.2083,2.0925-10.3,6.2783"/>
<path d="m436.19,286.43c-5.15,5.795-1.1292,12.717,3.0583,14.166"/>
<path d="m420.9,270.17c-0.96667,6.9221,1.7708,10.303,10.463,9.6588"/>
<path d="m423.95,279.03c-3.3833,8.3708,1.125,12.073,9.8167,11.59"/>
<path d="m425.88,289.33c-5.15,6.1171-1.6083,12.718,3.3792,15.454"/>
<path d="m423.47,297.06c-9.175-1.1271-10.625,9.4975-7.5667,14.488"/>
<path d="m416.06,269.37c-5.6321,2.4146-8.8517,9.4975-5.7933,13.844,3.06,4.3463,9.1767,2.8975,12.556,0.64375"/>
<path d="m412.2,285.14c-4.6675,7.0829-0.48333,12.395,4.5083,14.488"/>
<path d="m394.17,268.56c-3.7021,3.8633-1.4488,11.752,7.5663,11.913,7.2579,0.13,10.946-6.7612,8.6929-11.59"/>
<path d="m400.45,280.47c-2.8975,6.4392-1.1267,13.361,9.8196,12.234"/>
<path d="m414.94,302.85c-6.7608-3.0583-15.776,0-11.912,8.0492"/>
<path d="m402.06,291.42c-2.7367,3.8633-1.7708,9.3367,1.2875,12.717"/>
<path d="m401.58,301.72c-4.5075,0.805-8.8542,3.2196-6.1175,10.303"/>
<path d="m394.81,306.23c-5.795-1.7708-13.2,2.4146-8.6929,8.3708"/>
<path d="m385.16,308.97c-4.9904-0.80501-10.946,4.5071-6.1171,9.8196"/>
<path d="m377.11,314.44c-4.5075,1.1271-9.8196,6.2783-5.1517,10.303"/>
<path d="m399.81,289.17c-6.4392,2.8975-7.0833,10.142-4.0246,15.454"/>
<path d="m393.04,275.81c-9.6588,3.7025-9.4975,16.581,1.1267,20.605"/>
<path d="m389.66,293.51c-5.795,3.3804-6.9221,9.8196-3.0583,14.005"/>
<path d="m379.52,270.98c-3.8638,1.2879-3.5417,13.2,6.7613,12.878"/>
<path d="m368.9,275c-7.7271,5.1513,1.6096,18.19,14.166,8.8538"/>
<path d="m376.14,287.07c-1.1267,5.3125,0.32209,11.108,8.8542,11.752"/>
<path d="m376.62,294.16c-6.1175,2.2533-7.2442,14.81,3.8633,15.776"/>
<path d="m357.15,282.73c-7.8879,7.2442,6.4392,13.522,11.752,3.0588"/>
<path d="m346.2,294.8c-3.8638,4.6683,9.6583,16.903,15.615-3.5417"/>
<path d="m363.26,290.94c0.32167,4.8292,3.2196,7.7267,9.1754,8.0488"/>
<path d="m372.28,303.66c-9.4975,1.4488-12.556,13.361-1.9317,15.937"/>
<path d="m354.73,302.05c-0.32208,4.5071,4.3463,8.2096,9.6588,7.405"/>
<path d="m369.22,319.27c-8.6925,1.9317-9.8196,13.2-2.0925,12.556"/>
<path d="m363.1,342.29c-7.2446-2.1729-7.4054-10.786-0.96625-14.005"/>
<path d="m357.15,334.72c-6.1167,3.7025-3.7021,12.556-0.48292,13.844,3.2196,1.2879,5.7954-0.32166,6.1175-3.0583"/>
<path d="m362.3,357.9c0.64417,4.1854-14.891,2.5758-6.9217-10.463"/>
<path d="m355.29,358.63c-5.2313,8.21,3.3008,14.89,8.6929,7.8883"/>
<path d="m356.02,368.53c-2.0929,6.6004,5.875,11.35,11.026,6.1983"/>
<path d="m338.63,306.71c-2.8979,5.9563,11.59,8.2096,12.556-4.0246"/>
<path d="m334.61,315.57c-2.8975,11.59,18.995,9.1758,13.361-5.7954"/>
<path d="m348.45,317.5c3.0583,1.7708,12.235,1.9317,14.488-7.8879"/>
<path d="m356.34,317.82c0.64375,3.0583,3.3804,6.7608,5.9558,7.8879"/>
<path d="m345.88,320.88c-0.96583,6.2783,5.3121,11.43,12.556,10.947"/>
<path d="m347,327c-3.5412,4.8296-4.6683,14.166,6.4396,14.81"/>
<path d="m330.1,328.61c-1.7708,4.9904,8.6929,10.142,14.81,1.9317"/>
<path d="m326.88,341.32c-0.88625,3.7838,8.5317,8.8542,13.844-7.2438"/>
<path d="m336.54,342.29c2.2538,4.0242,9.8196,7.2438,14.488-0.64417"/>
<path d="m343.46,346.48c-1.9317,5.6342,3.3808,10.946,9.8196,9.3367"/>
<path d="m331.39,345.19c-1.2879,8.0488,8.0488,12.717,13.844,8.5317"/>
<path d="m325.27,348.73c-2.7362,10.303,10.464,14.166,15.454,6.4388"/>
<path d="m337.35,358.23c0.48333,5.7954,9.4983,10.785,16.581,5.9563"/>
<path d="m321.25,363.06c-0.64375,2.5754,10.142,5.1513,11.751-3.8638"/>
<path d="m327.53,365.31c2.5754,6.6004,11.268,8.21,16.259,0.16125"/>
<path d="m340.89,368.69c1.1271,6.1171,9.015,9.4975,15.937,5.3121"/>
<path d="m359.72,376.42c-1.7704,8.21,6.7613,14.81,12.073,10.303"/>
<path d="m346.04,374.97c-2.5754,9.015,8.6929,14.166,14.971,9.1758"/>
<path d="m332.52,370.46c-0.64375,8.3708,5.9562,13.361,13.522,9.6583"/>
<path d="m318.19,371.27c-2.2542,5.4733,9.6588,9.9808,15.293,5.3125"/>
<path d="m310.78,386.24c3.0588,3.5412,13.683,0,14.649-7.8879"/>
<path d="m322.54,384.14c3.8633,4.5075,13.039,6.9221,16.742-2.7367"/>
<path d="m336.06,386.4c-0.16125,6.9221,12.235,11.913,16.259-0.805"/>
<path d="m366.88,388.09c-1.1271,3.3808,1.53,8.7729,7.0829,9.4167"/>
<path d="m356.66,386c-0.805,3.8633,4.8296,9.2554,10.786,7.0829"/>
<path d="m368.58,394.69c-1.6096,4.1854-0.24208,10.221,5.3921,10.141"/>
<path d="m369.14,402.5c-4.1854,3.5412-2.415,9.8204,3.6229,10.062"/>
<path d="m366.97,408.45c-5.9563,4.0225-3.8633,12.877,4.0242,12.398"/>
<path d="m348.94,391.39c0,8.6929,10.785,9.9804,12.878,1.9317"/>
<path d="m357.63,398.47c-1.61,5.1512,2.5754,10.142,9.1754,8.6929"/>
<path d="m358.92,460.61c1.4492,2.0958,7.405-1.4458,5.7954-4.9875s-7.9192-1.6167-7.2442,2.0917"/>
<path d="m363.26,454.17c0.80459-7.0833-7.5663-8.2083-9.6588-2.0917"/>
<path d="m356.66,448.54c2.0929-3.5417-4.99-8.3708-7.8879-3.2208"/>
<path d="m351.35,443.22c1.9317-5.1542-6.1171-7.4042-6.7613-2.7375"/>
<path d="m342.82,433.72c0.96625-2.575,9.9808-0.96667,6.1175,4.3458"/>
<path d="m355.86,444.51c3.5417-3.2208-2.4142-9.8208-6.1171-7.4042"/>
<path d="m379.68,454.33c-2.8179,0.32084-5.7158,2.1708-3.6229,8.1292,1.4512,4.1333,7.6471,4.3458,8.5317,1.85"/>
<path d="m375.58,457.31c-2.7367-1.7708-8.6929,1.2083-5.9562,7.0042,2.0604,4.3625,7.2442,2.575,8.0488,0.32083"/>
<path d="m360.2,465.6c1.3675,2.4125,8.2088,1.3708,9.4167-1.2875"/>
<path d="m364.87,457.63c1.4488-0.96667,4.1042,0.2375,4.6683,1.4458"/>
<path d="m364.39,417.95c-4.6683,3.0583-1.7708,12.396,5.4733,9.9792"/>
<path d="m362.94,425.52c-3.7025,2.8958-0.32208,11.913,6.6,8.5333"/>
<path d="m364.07,434.05c-2.5754,2.575-0.0808,9.7375,6.6004,8.3708"/>
<path d="m363.1,437.59c-1.4492-0.64584-5.2325-0.1625-6.8425,2.25"/>
<path d="m358.92,404.99c-3.5412,3.3804-1.8517,10.304,4.7483,10.866"/>
<path d="m357.63,412.07c-5.0717,2.4958-5.0717,12.554,5.07,12.958"/>
<path d="m357.23,423.42c-2.8167,2.2542-1.4488,10.946,5.7954,9.8167"/>
<path d="m359.56,432.92c-1.0471,1.0458-1.2083,3.7042-0.32208,4.8292"/>
<path d="m356.34,429.62c-2.5754,0.0792-5.9562,1.9333-6.8425,4.5875"/>
<path d="m344.83,424.87c0.96583-2.575,8.9354-2.4125,9.4979,5.1542"/>
<path d="m355.13,421.01c-1.1271,0.24167-3.2996,1.2875-3.8633,3.4625"/>
<path d="m351.67,397.43c-3.4617,3.1388-5.1512,13.04,5.3921,14.97"/>
<path d="m344.67,417.87c0-2.6583,7.1642-4.9125,9.6588-0.96666"/>
<path d="m340.08,403.46c1.0458,2.0129,6.0362,4.7496,9.095,2.4958"/>
<path d="m314.16,387.69c-0.16042,4.6683,3.7029,8.8538,9.015,8.21,5.3121-0.64417,6.4392-5.3125,4.8292-8.3713"/>
<path d="m323.98,396.06c-3.5417,4.3463,0.805,10.464,4.8292,8.6929"/>
<path d="m328.01,393c2.0929-0.805,9.015-1.7708,11.108,1.4488"/>
<path d="m305.63,394.29c-1.61,2.4146,8.3712,4.8296,11.751,0.16083"/>
<path d="m314,396.86c-0.3225,3.2196,1.2875,8.6925,9.4975,6.4392"/>
<path d="m324.79,408.29c1.2875-2.7367-4.8296-7.2438-9.4979-2.2538-4.6683,4.9904,0.64375,10.625,3.5417,8.6917"/>
<path d="m303.38,397.51c-2.4146,4.1854,6.9221,11.833,12.235,4.7496"/>
<path d="m297.18,404.75c-3.3804,3.4617,0.805,9.8208,5.8763,7.8875,5.0704-1.9313,4.5875-7.2438,3.3808-8.6113"/>
<path d="m290.66,411.19c-2.7367,2.4942-0.0813,8.3692,3.7025,8.3692,3.7821,0,6.1171-2.975,5.3921-6.7583"/>
<path d="m306.03,410.71c-0.48333,3.7021,4.99,6.2771,8.5317,2.8188"/>
<path d="m314.73,406.76c0.48292-0.805,0.0813-2.1742-0.72334-2.8179"/>
<path d="m284.79,416.18c-3.1383,2.4958,3.6229,9.4167,7.8879,3.0583"/>
<path d="m309.01,414.81c-2.0129,1.9292,1.2067,7,4.4262,5.4708"/>
<path d="m297.99,418.35c0.48292,3.4583,7.2442,6.0333,11.51,0.725"/>
<path d="m301.69,421.81c-1.0458,2.175,1.0471,5.6375,3.6225,5.1542"/>
<path d="m365.76,441.7c-2.4942,4.9083,5.4733,10.625,11.269,4.6667"/>
<path d="m371.55,449.02c-1.2067,2.6542,0.24209,6.3583,2.4146,7.725"/>
<path d="m363.99,454.57c0.56417-2.4167,4.0242-4.6708,7.1642-3.5417"/>
<path d="m359.8,448.21c0.48292-2.1708,3.3804-4.3458,5.5542-3.7792"/>
<path d="m549.35,347.76c-11.429,0.16125-6.6,18.513,3.2208,14.81"/>
<path d="m545.65,361.29c-2.2542,3.7025,2.0917,9.5788,6.9208,6.1171"/>
<path d="m551.29,368.13c-3.3833,5.6342,8.6917,14.246,13.521,5.3921"/>
<path d="m560.95,376.9c0.15834,5.3125,15.613,8.6929,13.363-1.9317"/>
<path d="m572.86,380.76c3.7,6.2779,17.546,6.9221,16.096-2.4146"/>
<path d="m585.9,384.79c2.9,4.1854,16.421,6.7608,15.938-1.9321"/>
<path d="m531,331.83c1.9292,4.9904,8.5292,6.7613,15.775,3.8633"/>
<path d="m526.82,335.37c4.5083,2.8975-2.0917,16.098-9.0125,10.785"/>
<path d="m526.82,343.58c4.9917,2.415,11.108,0.64417,12.879-6.4392"/>
<path d="m536.64,342.61c0.48334,3.7025,5.7958,6.6004,12.717,5.1512"/>
<path d="m524.24,346.48c6.4417,5.4733-2.8958,16.742-7.0833,11.59"/>
<path d="m526.66,350.66c3.0583,2.2538,10.946,0.96584,11.75-4.9904"/>
<path d="m534.87,350.66c0.64583,3.8633,3.7042,5.3121,8.05,5.4733"/>
<path d="m524.89,355.97c3.2167,4.5075,11.267,5.7954,14.808-0.16083"/>
<path d="m536.15,359.19c-0.32083,4.3467,4.5083,7.8879,9.5,6.9221"/>
<path d="m518.61,368.85c4.1833,2.0925,8.6917-5.795,5.15-11.268"/>
<path d="m523.44,377.22c4.9917,0.32208,5.6333-7.2438,0.96667-11.43"/>
<path d="m534.87,384.14c4.1875-0.96583,2.8958-10.142-7.2458-10.947"/>
<path d="m547.58,390.91c4.025-1.1271,0.80417-11.269-10.3-10.625"/>
<path d="m562.88,394.45c2.7333-4.1854-6.2792-11.268-13.683-7.5658"/>
<path d="m570.44,400.24c4.9917,1.4488,8.3708-11.751-7.4042-9.6588"/>
<path d="m579.62,400.24c4.35-1.1267,7.4084-9.015-5.3083-6.4392"/>
<path d="m589.28,400.89c3.8625,1.9321,5.6333-9.3367-6.1208-6.2779"/>
<path d="m524.4,365.79c4.8292,2.7367,12.396-0.48291,11.75-6.6"/>
<path d="m534.22,364.51c1.6125,2.8975,0.96667,8.5317-2.0917,9.9804"/>
<path d="m534.7,371.27c3.2208,1.2879,7.5667,0.16125,10.142-4.99"/>
<path d="m540.34,371.27c0.9625,2.2538,1.2875,6.7613-0.80833,9.015"/>
<path d="m541.15,375.13c3.5417,1.9317,7.725-0.64417,9.4958-4.3467"/>
<path d="m548.39,374c2.575,1.61,4.8292,9.1758,0.48333,12.235"/>
<path d="m551.29,382.7c3.0583,0.16083,7.5667,0.16083,10.463-3.7025"/>
<path d="m559.66,381.09c2.7375,0.805,5.9542,5.3125,4.8292,9.3371"/>
<path d="m564.65,388.97c3.0625-0.32209,8.3708-2.415,9.8208-6.1175"/>
<path d="m573.02,385.27c2.5792,1.4488,4.35,4.5071,4.025,8.0488"/>
<path d="m577.04,390.74c3.0583-0.16084,5.7958-1.7704,6.6-5.1513"/>
<path d="m582.84,387.85c2.2542,0.805,4.9917,3.3804,5.1542,6.4392"/>
<path d="m587.67,392.35c2.2542-0.32209,3.8625-1.7708,5.3125-4.0246"/>
<path d="m599.1,388.01c2.9,2.8979-0.9625,12.557-6.9208,10.786"/>
<path d="m537.28,192.9c-5.9583,3.5412-22.863,2.4146-14.492-11.59"/>
<path d="m538.89,183.4c-11.75,4.6683-26.242-4.3462-11.108-14.166"/>
<path d="m523.76,166.02c-9.8208,0-16.421,15.776-3.2167,21.249"/>
<path d="m485.61,172.62c-2.575,4.99,6.6,10.463,12.879,5.4733,4.8625-3.8662,4.5042-14.327,1.6083-18.352"/>
<path d="m480.62,184.53c-3.2208,10.624,20.446,11.268,16.742-5.6346"/>
<path d="m479.33,200.31c0.80417,8.0488,22.7,5.4733,15.613-10.786"/>
<path d="m497.52,185.01c1.7708,2.4146,6.6,6.6,14.808,5.795"/>
<path d="m501.38,173.58c0.725,2.8975,5.6333,5.1512,11.913,2.9788"/>
<path d="m281.73,418.51c-5.5533,3.9458,2.9788,10.142,6.1171,3.3"/>
<path d="m277.38,421.57c-5.5529,3.9417,2.9788,10.138,6.1175,3.2958"/>
<path d="m272.79,424.55c-5.5546,3.9458,2.9775,10.142,6.1171,3.3"/>
<path d="m267.96,427.29c-5.3125,2.8167,0.88458,9.7375,6.2779,3.6208"/>
<path d="m262.73,429.95c-5.3125,2.8125,0.88584,9.7375,6.2783,3.6208"/>
<path d="m289.7,421.65c-0.0813,4.1042,7.7271,5.7958,10.543-0.325"/>
<path d="m294.61,425.44c-2.4146,3.0583,2.0129,6.8417,4.4275,5.4708"/>
<path d="m284.22,424.87c-0.24208,3.4625,6.5188,5.475,9.8196,1.6917"/>
<path d="m287.93,428.5c-2.1738,2.8167,2.0925,6.6,4.8292,5.4708"/>
<path d="m279.72,428.01c0.24083,2.7375,4.1042,5.875,8.29,4.1042"/>
<path d="m282.21,431.71c-1.61,1.45-0.80459,4.8333,1.4488,5.8792"/>
<path d="m273.84,431.47c-0.64375,2.4958,3.6225,6.925,7.9688,4.025"/>
<path d="m274.72,434.37c-2.5754,2.0125-2.2538,5.0708,1.0458,5.4708"/>
<path d="m268.53,434.05c-0.32167,1.6875,1.8521,4.425,4.5888,4.1042"/>
<path d="m254.76,433.89c-2.5754,1.3667,4.0246,8.3708,8.1288,1.85"/>
<path d="m248.4,436.78c-3.2196,1.5333,4.7492,9.2584,8.2913,1.3708"/>
<path d="m269.25,436.46c-2.4958,0.5625-4.1054,4.1875-2.0129,5.6333"/>
<path d="m261.12,437.75c-0.32208,1.45,2.7367,3.8625,5.2329,2.9792"/>
<path d="m259.03,438.4c-2.4146,1.5292-1.1271,5.7917,1.6908,5.15"/>
<path d="m250.42,441.21c-2.2538,1.6875-0.725,5.0708,2.4146,4.2667"/>
<path d="m254.52,440.97c0.0813,0.88333,2.0929,2.2542,3.7838,1.6917"/>
<path d="m242.61,439.52c-2.8162,1.2083-2.6554,8.2917,6.8425,4.4292"/>
<path d="m236.25,442.34c-3.9446,1.9333-2.6567,7.2458,5.9562,2.175"/>
<path d="m242.93,444.92c-1.0458,0.80416-2.1725,4.3458,1.7708,2.975"/>
<path d="m235.69,446.6c-1.6096,1.45-0.5625,4.4292,2.9792,3.3"/>
<path d="m227.4,447.09c-2.8975,1.6917,3.4604,3.9458,7.7271-0.5625"/>
<path d="m229.33,449.18c-1.2883,1.2875-1.2883,5.0708,2.0925,3.7042"/>
<path d="m221.12,450.71c-1.9317,1.45,1.3679,3.3833,7.405,0.725"/>
<path d="m223.53,452.8c-2.2538,1.85-2.0129,4.1833,1.2875,3.4583"/>
<path d="m216.85,453.85c-2.4946,2.2542,1.1267,3.7833,5.4733,1.9292"/>
<path d="m216.93,456.35c-4.2667,1.9292-2.415,5.4708,0.24084,4.1042"/>
<path d="m359.4,468.66c-0.98917,2.1292,2.2538,3.8625,5.3125,3.3792,2.9379-0.4625,5.7483-2.8833,3.5413-6.275"/>
<path d="m368.41,469.95c2.8975,2.2542,8.0488-0.32083,8.0488-3.7042"/>
</g>
<g fill="#fff">
<path d="m545.97,128.83c-12.879-6.4392-39.6-18.352-47.167-8.6929,6.9208-2.8975,27.204,0.16125,43.946,15.615l3.2208-6.9221z"/>
<path d="m553.78,128.15c-14.892-17.347-23.663-13.464-34.371-19.439-10.058-5.6142-26.079-6.7612-29.183,2.1671,14.696-7.1575,28.188,3.8488,36.475,5.1804,11.383,1.8279,17.808,10.628,21.138,14.675l5.9417-2.5833z"/>
<path d="m609.88,125.93c-7.7292-17.708-24.254-13.083-31.554-20.605-10.621-10.946-37.504-21.088-48.613-13.522,24.467-1.2879,34.888,16.865,47.971,23.181,9.3375,4.5075,19.317,14.166,32.196,10.947z"/>
<path d="m580.91,124c-13.2-16.42-33.488-30.908-42.821-25.435,12.233,0.64375,16.096,9.1758,24.792,14.649,8.6917,5.4733,4.8292,13.361,18.029,10.786z"/>
<path d="m518.12,152.98c-13.846-5.1513-40.888-7.7267-53.446,8.0492,20.929,3.5413,52.479,1.6096,53.446-8.0492z"/>
<path d="m515.55,159.1c-13.846-6.4392-24.658,2.555-37.671,1.2875-24.788-2.4146-42.496-0.96584-44.75,10.947,14.167-12.717,37.992-2.2538,47.65-4.8292,9.6584-2.5758,45.396-0.32208,56.663,4.5071-5.7958-7.0829-14.808-9.0146-21.892-11.912z"/>
<path d="m559.01,122.23c-3.2167-10.625-3.0583-21.893,12.879-21.088-4.025-4.9904-18.833-7.5658-21.25,11.108-17.546-12.878-36.704-15.132-40.242-4.0242,9.0125-7.7271,23.017-2.0929,39.758,16.903,1.45-0.805,5.3125-2.4146,8.8542-2.8975z"/>
<path d="m534.87,136.88c-9.9792-6.4388-23.504-16.903,0.1625-21.088-10.142-5.4733-24.954-3.0588-23.342,15.615-27.046-10.947-46.467-7.2521-50.55,3.5413-4.5083,11.913,12.238,18.513,15.133,10.947-3.0583,1.2879-13.521-2.2538-8.05-9.015,5.475-6.7608,33.525-1.6854,60.208,12.235,7.4042,3.8633,32.838,3.2196,6.4375-12.235z"/>
<path d="m527.78,154.59c-7.7-15.722-32.679-1.4488-37.713-16.678-6.8792,22.312,35.521,9.9658,37.713,16.678z"/>
<path d="m686.67,171.65c5.2375,2.6025,9.7667-1.4888,1.7542-4.6979,5.2417,2.6012,9.8125-1.3925,1.8-4.6029,5.2417,2.6012,9.8125-1.3921,1.8-4.6025-2.1375,2.1517-5.1958,10.04-5.3542,13.903z"/>
<path d="m689.4,141.39c11.592-12.234-0.9625-16.42,13.2-28.976,11.592-10.273,2.2125-17.12,13.204-25.113,3.5417-2.5754,11.267-7.7267,11.913-12.878,4.6667,11.59-14.492,13.2-13.204,31.874,0.82084,11.89-7.2167,10.851-10.3,30.908-0.64583,4.1854-3.5417,13.522-14.813,4.1854z"/>
<path d="m694.56,146.86c6.4375-13.844,13.829-13.578,17.383-18.995,6.7625-10.303,21.088,1.7708,33.163-7.405-2.0917,13.039-18.35,8.3708-25.433,16.742-7.0833,8.3708-12.879,12.235-25.113,9.6588z"/>
<path d="m696.17,151.37c11.271-9.015,19.575-3.0008,27.367-7.7271,19.638-11.913,27.529,2.4146,45.075-3.2196-4.6708,11.268-30.588,1.61-41.854,9.9808-11.271,8.3708-50.871,16.42-30.588,0.96583z"/>
<path d="m663.33,215.6c-0.1625-5.1513-4.9917-11.752-11.754-12.556-6.7583-0.805-9.6583-7.8883-14.808-8.21-5.15-0.32209-8.5333-10.625-15.617-10.464-7.0833,0.16125-9.9792,9.3367,6.6,17.708,16.583,8.3713,34.933,18.03,35.579,13.523z"/>
<path d="m642.4,219.95c-7.0833,0.32209-8.05,10.625-14.808,10.947,9.3334,4.9904,16.096-2.2538,20.925-8.6929l-6.1167-2.2538z"/>
<path d="m648.2,221.23c-6.1167,5.1513-7.8875,15.937,0.96667,18.995-5.3125-7.3246,9.3375-10.625,4.8292-17.386l-5.7958-1.6096z"/>
<path d="m654.31,221.56c-4.8292,9.3367,7.5667,10.463,4.3458,17.547,7.0833-1.61,8.2125-14.971,1.7708-18.513l-6.1167,0.96625z"/>
<path d="m606.98,201.59c11.592-0.64375,22.192,5.6267,29.3,15.776,4.5083,6.4388,19.638,9.0146,24.792,3.8633,5.15-5.1512,2.2542-16.098-10.625-12.556-3.2208-5.4733-12.558-3.5417-17.063-8.0492-4.5083-4.5071-21.896-17.385-26.404,0.96584z"/>
<path stroke-linecap="round" d="m650.45,208.68c-3.0583,0.64375-4.025,5.9562-2.0958,8.6929"/>
<path stroke-linecap="round" d="m657.05,211.9c0.96667,1.6096,0.32083,3.8633-0.1625,4.9904"/>
<path stroke-linecap="round" d="m625.34,202.08c5.9542,0.32209,7.0833,4.6688,13.521,6.2783"/>
<path d="m621.4,187.43c20.571,5.1512,36.892,9.6588,47.013,15.454,10.121,5.7954,25.792,7.405,39.504,3.5417,13.713-3.8633,40.154-7.405,38.85,9.6588,7.1875-8.5321-1.9583-17.708-20.242-19.318,0.32916-8.3708-8.6292-15.937-15.071-10.947,5.9583-0.80459,11.1,10.303-0.65,14.81,2.2833-8.3708-6.0417-15.937-14.692-12.234,5.55,1.6096,11.163,10.917-1.2542,14.488-7.8375,2.2538-19.263-0.64375-27.75-5.795-8.4875-5.1517-56.154-23.825-45.708-9.6588z"/>
<path d="m673.31,179.06c-6.4375,2.8975-2.2542,9.6588-12.233,13.522-9.9833,3.8633-16.904,12.717-14.65,20.283,6.7625-14.81,18.675-14.166,22.858-19.961,4.1875-5.7954,10.304-14.327,4.025-13.844z"/>
<path d="m675.08,180.02c-0.32083,11.751-9.5708,7.4704-5.9583,23.986,1.1292,5.1512,3.2208,13.522-0.32083,21.893,10.383-7.5658,3.7042-23.46,8.3708-29.459,2.2542-2.8975,5.15-7.405,6.2792-11.268-2.4167,6.7608-2.2542,19.318,4.3458,22.537-5.3125-12.557,14.329-22.859,0.80417-37.347-1.9292,3.5417-8.05,9.8196-13.521,9.6588z"/>
<path d="m642.24,168.27c1.6125,2.4146,3.2208,8.5321,1.7708,11.913,3.2208-1.9317,7.8917-6.9221,9.3375-10.303,6.6,0.96584,9.175,9.1758,2.9,12.717,3.8625,0,10.463,0,14.163-4.3462-4.5042-4.9904-18.508-12.718-28.171-9.9808z"/>
<path d="m542.11,145.18c-1.0417-0.94916-2.8-1.8517-5.9542-2.4996-9.7458-1.9988-4.7125-10.784,3.5833-10.706,17.704-19.317,27.646-4.4262,49.217-10.543,7.55-2.1404,12.733-1.5079,16.846,0.27167,9.6583-6.4392,20.988-4.64,29.2,2.9262,0.9125-1.4517,2.1375-2.5592,3.8583-3.0371,7.5625-2.1004,13.679,4.3479,15.771,12.719,5.8958-1.0921,12.629,1.8262,17.058,5.8504,6.1333-3.15,10.358-3.29,11.913-0.0512,5.475-2.5758,12.567-4.1908,16.108,4.5021,3.5417,8.6929-8.3708,6.1171-10.304,24.469-1.1917,11.321-13.842,15.776-23.825,9.015-15.967-10.817-31.55-12.557-39.279,3.8633-7.725,16.42-13.779,25.96-32.517,20.605-6.7583-1.9321-15.454,0.64375-20.925,8.0488-5.475,7.405-13.846,0.48291-23.825,1.2879,12.554-1.9317,7.7458-5.0896,18.675-5.7954,9.9792-0.64375,7.4042-9.9804,13.842-11.268-25.113,6.4392-24.146-2.8979-44.75,3.5412,9.0125-11.59,23.179-5.1513,30.263-11.912-18.675-0.32208-27.025-12.522-35.417-7.405-13.2,8.0488-7.4083,30.965-41.854,28.976-16.742-0.96583-27.367,1.2879-37.346,11.269,17.388-36.059,41.038-16.249,52.479-27.688,6.7625-6.7613,11.913-11.913,15.454-18.352,1.2458-2.2667,2.9333-3.5621,5.0417-4.0629-28.654-9.015-11.325-23.058,16.688-24.023z"/>
<path stroke-linecap="round" d="m683.59,140.11c0.4375,0.90542,0.6625,2.08,0.6625,3.5325,0,7.0829-10.625,7.405-11.267,17.869-0.3375,5.4733-0.96666,8.5317-4.6708,7.8879-3.7-0.64417-6.9208-6.4392-3.3792-13.2"/>
<path d="m547.42,134.63c-2.6667-1.8738-5.3333-2.635-7.725-2.6571"/>
<path d="m605.74,121.65c8.525,3.6908,12.683,12.546,25.067,12.98,11.921,0.41833,19.321,17.708,39.279,6.4388,0.54167-0.305,1.0708-0.58959,1.5833-0.85375"/>
<path d="m635,124.63c-1.7792,2.8292-2.1833,6.7783-1.6958,10.244"/>
<path d="m596.04,161.03c-15.129,0-18.996,7.7267-18.996,15.132,0,7.405,7.0833,17.064,19.642,17.064,12.554,0,19.317-7.7267,19.317-16.098s-7.7292-16.098-19.963-16.098z"/>
<path d="m598.77,192.9c-0.32084-4.1854-7.8875-3.5417-7.5667-6.7613,0.32084-3.2196,4.1875-4.5075,4.1875-9.0146,0-4.5075,6.7583-4.8296,9.0125-1.2879,2.2542,3.5412,9.0167,10.463,10.467,6.9221"/>
<path d="m604.41,175.84c-3.5417,3.5412-5.15,10.785-0.48334,16.42"/>
<path d="m609.24,181.31c-1.125,2.4146-1.4458,6.1171-0.15833,8.3708"/>
<path fill="none" d="m669.36,169.48c11.833,0.96583,13.846-12.074,4.9917-12.878"/>
<path fill="none" d="m654.8,134.31c-4.1042-5.2313-13.521-7.0021-13.683,4.1054"/>
<path d="m639.99,151.05c-4.025-9.9808-14.329-11.43-19.804-6.4392-4.5542,4.1533-4.6667,14.971,5.1542,17.225,3.3792-4.0242,9.9792-9.3367,14.65-10.785z"/>
<path d="m635.56,144.77c-5.7958-5.1517-14.329,4.5883-6.6,13.522"/>
<path d="m525.31,169.16c3.8792-0.92083,9.55,0.9775,18.246,5.0675,5.475,2.5758,21.896,8.0492,32.196,2.5758-10.625,3.8633-18.671-12.235-26.721-10.303-8.05,1.9317-22.779,4.9096-28.975-0.96625,15.129,0.96625,23.267-11.021,40.563-0.64375,4.8333,2.8975,10.95,4.8296,16.421,4.5075-14.163-17.064-32.838-6.1175-34.771-19.961,8.5333,9.1758,29.379-2.0929,40.004,15.132"/>
<path d="m545.33,152.01c-1.9917-2.4792-1.0917-4.9504-3.2292-6.9054"/>
</g>
<path fill="#000" stroke="none" d="m654.8,134.31c-3.5417-3.7829-11.267-0.805-9.0958,6.8421,1.6917-3.5413,5.3125-6.52,9.0958-6.8421z"/>
<path fill="#000" stroke="none" d="m632.91,154.93c2.4375-1.7696,4.9542-3.2233,7.075-3.8817-1.1583-2.8642-2.8292-5.0262-4.7583-6.5346-1.8417-1.2721-7.1333,5.8442-2.3167,10.416z"/>
<g fill="none" stroke-linecap="round">
<path d="m623.4,141.87c-5.7958-3.8633-11.108-3.5413-12.879-0.32167-4.1833-0.16125-7.6458,2.8975-7.8083,9.0146"/>
<path d="m611.65,153.14c-6.9208-4.7483-16.421-2.9775-15.775,7.6471"/>
<path d="m591.69,166.82c3.3792-2.7367,8.2083-4.6683,11.913,0.16125"/>
<path d="m643.37,156.36c-1.2875,1.7704-2.2542,4.5071-0.1625,8.6929-2.575-3.3808-9.0125-3.3808-15.938,5.6338"/>
<path d="m658.66,155.88c-8.3708,0.96583-8.2083,6.4388-1.45,8.8538"/>
<path d="m599.1,135.43c-7.0833-1.4488-12.233,2.7367-2.4125,6.2783"/>
<path d="m612.62,130.6c-9.9834-2.4146-14.008,0.16084-9.5,2.4146"/>
<path d="m583.8,170.69c-0.32083,3.5417,1.6083,8.21,7.4042,2.8979"/>
<path d="m585.74,181.31c0,0.96583-0.1625,2.0925-0.80833,2.8975"/>
<path d="m562.55,134.14c-6.1167-1.7708-7.2417-7.405-0.15834-6.9221"/>
<path d="m560.46,147.18c-6.7625-2.2538-6.7625-8.8538-1.1292-8.21"/>
<path d="m573.02,143.8c-7.8875-1.9321-8.2083-7.4054-2.25-6.6004"/>
<path d="m573.98,127.06c-4.1833-0.32166-10.625,4.3467,0.1625,7.0833"/>
<path d="m585.74,136.4c-9.8208-1.4488-9.6583,2.5758-3.8667,5.1517"/>
<path d="m593.14,127.06c-7.5667-1.4488-10.142,3.0588-4.9917,4.9904"/>
<path d="m569.32,154.91c-1.8542-1.5288-3.3792-8.8542,5.4708-6.68"/>
<path d="m587.67,152.66c-5.9542-1.61-11.588,4.1854-6.1167,7.5658"/>
<path d="m595.55,145.74c-6.275-1.1271-11.588,0.64375-8.2083,2.8975"/>
</g>
<path fill="#fff" d="m654.46,134.31c-3.5375,0.65541-6.7083,2.7342-8.7625,6.8396"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 47 KiB

+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="1100" height="800">
<rect width="1100" height="800" fill="#ef2b2d"/>
<rect width="200" height="800" x="300" fill="#fff"/>
<rect width="1100" height="200" y="300" fill="#fff"/>
<rect width="100" height="800" x="350" fill="#002868"/>
<rect width="1100" height="100" y="350" fill="#002868"/>
</svg>

After

Width:  |  Height:  |  Size: 517 B

+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="800" viewBox="0 0 36 24">
<rect width="36" height="24" fill="#75aadb"/>
<rect y="9" width="36" height="6" fill="#fff"/>
<rect y="10" width="36" height="4"/>
</svg>

After

Width:  |  Height:  |  Size: 264 B

+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="900" height="450" viewBox="0 0 1098 549">
<title>Flag of Belarus</title>
<rect fill="#C8313E" width="1098" height="549"/>
<rect y="366" fill="#4AA657" width="1098" height="183"/>
<rect fill="#FFF" width="122" height="549"/>
<g id="h">
<g id="q" fill="#C8313E" fill-rule="evenodd" transform="scale(5.304347826,9)">
<path d="M4,0h3v1h1v1h1v1h1v1h1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h1v-1h1v-1h1v-1h1zM5,2h1v1h1v1h1v1h-1v1h-1v1h-1v-1h-1v-1h-1v-1h1v-1h1zM5,4h1v1h-1zM0,1h1v1h-1zM0,7h1v1h-1zM11,0h0.6v2h-.6zM11,7h.6v2h-.6zM2,9h1v1h1v1h1v1h-1v1h-1v1h-1v-1h-1v-1h-1v-1h1v-1h1zM2,11h1v1h-1zM8,9h1v1h1v1h1v1h-1v1h-1v1h-1v-1h-1v-1h-1v-1h1v-1h1zM8,11h1v1h-1zM0,15h1v1h-1zM11,14h.6v2h-.6z"/>
<path d="M0,18h1v-1h1v-1h1v-1h1v-1h1v-1h1v1h1v1h1v1h1v1h1v1h1v1h.6v4h-.6v1h-1v1h-1v1h-1v1h-1v1h-1v2.6h-2v-0.6h-1v-1h-1v-1h-1v-1h-1 v-3h1v1h1v1h1v1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h-1v-1h-1v-1h-3v1h2v1h-1v1h-1v1h-1v-1h-1v-1h-1v-1h-1zM0,22h1v1h-1zM11,25h.6v1h-.6zM9,27h1v1h1v1h.6v1.6h-.6v-.6h-1v-1h-1zM7,30h1v.6h-1z"/>
</g>
<use xlink:href="#q" transform="translate(122,0) scale(-1,1)"/>
</g>
<use xlink:href="#h" transform="translate(0,549) scale(1,-1)"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+414
View File
@@ -0,0 +1,414 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="750" height="500">
<defs>
<radialGradient id="white_skin">
<stop stop-color="#ffef5d" offset="0"/>
<stop stop-color="#ea5700" offset="1"/>
</radialGradient>
<radialGradient id="black_skin">
<stop stop-color="#952d1a" offset="0"/>
<stop stop-color="#570a00" offset="1"/>
</radialGradient>
</defs>
<rect width="750" height="500" fill="#ce1126"/>
<rect width="750" height="428.57" y="35.714" fill="#003f87"/>
<circle cx="375" cy="250" r="196.429" fill="#fff"/>
<g id="leaves">
<circle cx="375" cy="249" r="162.812" fill="none" stroke="#552300" stroke-width="4.103"/>
<g fill="#007f00">
<path d="m356.19,76.241c14.725-15.798,28.039,2.4507,27.684,11.002-0.3554,8.551-15.207,27.416-28.646,12.234,13.922,3.5647,18.083-12.003,25.125-12.157-7.0412,0.1553-9.9194-15.259-24.163-11.078z"/>
<path d="m202.92,200.12c-7.7422-20.102,14.644-23.856,22.208-19.751,7.5668,4.1055,18.021,25.681-1.648,30.908,9.3905-10.806-2.8239-21.409,0.15681-27.741-2.9807,6.3319-18.179,2.0599-20.717,16.585z"/>
<path d="m533.28,180.24c20.168,7.9048,7.8468,26.827-0.31445,29.594-8.1602,2.7672-31.256-4.1438-21.861-22.074,1.6914,14.171,17.821,12.387,20.515,18.846-2.696-6.4591,10.741-14.701,1.6598-26.366z"/>
<path d="m269.58,393.14c-21.576-2.1447-14.921-23.685-7.8322-28.556,7.091-4.8715,31.211-4.4746,27.099,15.318-5.5216-13.174-20.548-7.0918-24.915-12.576,4.3657,5.484-6.2951,17.05,5.6483,25.814z"/>
<path d="m487.64,377.55c0.30792,21.517-22.013,17.408-27.698,10.973-5.6837-6.4355-8.0314-30.262,12.251-28.463-12.559,6.9449-4.7606,21.069-9.7539,25.998,4.9946-4.9288,17.788,4.2661,25.201-8.5071z"/>
<path d="m218.64,159.24c-1.9676-21.431,20.606-19.029,26.768-13.044,6.1629,5.985,10.342,29.564-10.021,29.31,11.99-7.8783,3.1238-21.369,7.7226-26.663-4.5986,5.2951-18.063-2.9011-24.47,10.398z"/>
<path d="m241.76,360.29c-21.382-3.5869-13.276-24.631-5.8711-29.018,7.4053-4.3845,31.444-2.3722,25.994,17.1-4.6126-13.517-20.019-8.4531-24.003-14.218,3.9841,5.7662-7.4394,16.593,3.8795,26.135z"/>
<path d="m410.72,77.127c19.418-9.5784,25.333,12.174,21.94,20.043-3.3906,7.8684-24.026,20.269-31.157,1.3374,11.738,8.2404,21.201-4.8453,27.839-2.5074-6.6376-2.3379-3.812-17.762-18.622-18.873z"/>
<path d="m452.04,404.49c-9.6263,19.283-27.594,5.5118-29.689-2.7897-2.0948-8.3027,6.78-30.564,23.996-19.769-14.369,0.4845-13.93,16.586-20.64,18.708,6.7098-2.1223,13.861,11.854,26.333,3.8502z"/>
<path d="m546.33,218.38c16.316,14.177-1.7046,27.883-10.325,27.764-8.6232-0.11792-28.03-14.337-13.104-28.086-3.2108,13.909,12.583,17.614,12.931,24.595-0.34923-6.9808,15.097-10.257,10.498-24.273z"/>
<path d="m272.4,105.04c4.8689-20.971,25.559-11.699,29.535-4.1028,3.9742,7.5954,0.52937,31.289-18.735,24.743,13.866-3.7717,9.6858-19.334,15.718-22.939-6.033,3.6047-16.249-8.3527-26.517,2.2992z"/>
<path d="m208.27,284.73c-19-10.373-4.3648-27.596,4.0818-29.318,8.4457-1.7219,30.477,8.033,18.871,24.64,0.12873-14.266-16.099-14.523-17.948-21.267,1.8494,6.7447-12.528,13.235-5.0055,25.945z"/>
<path d="m482.8,118.48c21.462-3.0857,20.24,19.412,14.544,25.837-5.6962,6.4248-29.2,11.816-30.023-8.3775,8.5614,11.464,21.665,1.9624,27.238,6.2392-5.5702-4.2766,1.9632-18.055-11.759-23.698z"/>
<path d="m360.73,425.12c-19.798,8.7796-24.808-13.195-21.094-20.92,3.7135-7.7222,24.846-19.272,31.186-0.066-11.388-8.7111-21.384,3.9768-27.919,1.3715,6.5354,2.6044,3.0754,17.899,17.827,19.614z"/>
<path d="m538.37,305.08c8.9398,19.606-13.18,24.682-20.979,21.034-7.7997-3.6483-19.538-24.565-0.21646-30.949-8.7227,11.342,4.1096,21.201,1.5145,27.699,2.5954-6.4987,18.024-3.1351,19.681-17.783z"/>
<path d="m199.66,241.93c-12.438-17.629,8.355-26.675,16.7-24.519,8.3453,2.155,23.778,20.558,5.978,30.377,6.4598-12.748-7.988-20.083-6.6474-26.945-1.3413,6.8604-17.129,6.3866-16.031,21.087z"/>
<path d="m316.63,412.08c-20.35,7.4333-23.854-14.831-19.622-22.286,4.2319-7.4571,26.1-17.562,31.12,2.0239-10.77-9.455-21.604,2.5349-27.949-0.50364,6.3434,3.0365,1.8485,18.064,16.451,20.765z"/>
<path d="m310.76,84.939c12.058-17.887,28.08-1.9258,29.076,6.5749,0.99594,8.5009-10.703,29.437-26.369,16.525,14.312,1.3628,15.973-14.659,22.903-15.902-6.9308,1.2424-12.2-13.535-25.61-7.1978z"/>
<path d="m519.27,347.62c1.3017,21.482-21.187,18.39-27.16,12.218-5.9754-6.171-9.4198-29.868,10.927-28.989-12.229,7.5055-3.7863,21.262-8.5468,26.412,4.7613-5.1492,17.965,3.4549,24.78-9.641z"/>
<path d="m513.74,145.08c21.257,4.2586,12.48,25.038,4.9383,29.187-7.5416,4.1491-31.503,1.3792-25.433-17.913,4.1754,13.655,19.738,9.0811,23.535,14.969-3.7956-5.8864,7.969-16.347-3.0401-26.243z"/>
<path d="m244.54,129.94c0.20546-21.52,22.423-16.885,27.95-10.317,5.5281,6.5692,7.3058,30.445-12.929,28.166,12.723-6.6462,5.2638-20.95,10.374-25.761-5.1098,4.811-17.679-4.6825-25.395,7.9121z"/>
<path d="m217.66,323.91c-19.346-9.7227-5.311-27.431,3.0719-29.438,8.3832-2.0056,30.735,6.9965,19.708,23.987-0.36375-14.264-16.59-13.969-18.669-20.648,2.0802,6.6789-12.066,13.651-4.1108,26.099z"/>
<path d="m450,94.806c20.287-7.5997,23.976,14.632,19.809,22.124-4.1688,7.4921-25.952,17.778-31.136-1.7668,10.848,9.3657,21.584-2.7129,27.952,0.27353-6.3698-2.9872-2.0005-18.051-16.625-20.631z"/>
<path d="m406.94,422.71c-15.777,14.795-27.803-4.2965-26.862-12.805,0.94167-8.5102,17.054-26.357,29.418-10.32-13.645-4.4746-18.865,10.787-25.902,10.475,7.037,0.30977,8.8493,15.882,23.345,12.65z"/>
<path d="m545.18,258.13c14.802,15.728-4.5106,27.572-13.077,26.598-8.567-0.97341-26.442-17.053-10.202-29.248-4.5982,13.52,10.741,18.778,10.382,25.758,0.3591-6.981,16.059-8.7056,12.897-23.108z"/>
</g>
<g fill="#005800">
<path d="M355.23,99.477c13.92,3.563,17.41-11.815,24.45-11.969-4.11,4.909-14.83,17.422-24.45,11.969z"/>
<path d="m356.19,76.241c14.725-15.798,28.039,2.4507,27.684,11.002-11.95-20.833-15.69-17.62-27.68-11.002z"/>
<path d="m223.48,211.27c9.3905-10.806-2.9519-20.727,0.0279-27.06,2.6138,5.8324,9.1602,20.92-0.0279,27.06z"/>
<path d="m202.92,200.12c-7.7422-20.102,14.644-23.856,22.208-19.751-24.115,1.3999-22.87,6.1503-22.208,19.751z"/>
<path d="m511.11,187.76c1.6914,14.171,17.4,11.833,20.094,18.291-6.0994-2.0263-21.734-7.4196-20.094-18.291z"/>
<path d="m533.28,180.24c20.168,7.9048,7.8468,26.827-0.31445,29.594,15.24-18.601,10.869-20.896,0.31445-29.594z"/>
<path d="m288.85,379.91c-5.5212-13.175-19.992-6.6743-24.358-12.158,6.424,0.29832,22.948,1.2555,24.358,12.158z"/>
<path d="m269.58,393.14c-21.576-2.1447-14.921-23.685-7.8322-28.556-9.5509,22.019-4.7128,23.044,7.8322,28.556z"/>
<path d="m472.19,360.06c-12.559,6.9449-4.4041,20.473-9.3974,25.402-0.43343-6.3686-1.3565-22.769,9.3974-25.402z"/>
<path d="m487.64,377.55c0.30792,21.517-22.013,17.408-27.698,10.973,23.133,6.9103,23.61,2.0234,27.698-10.973z"/>
<path d="m235.39,175.5c11.99-7.8777,2.8118-20.747,7.412-26.041,0.92366,6.3177,3.1083,22.6-7.412,26.041z"/>
<path d="m218.64,159.24c-1.9676-21.431,20.606-19.029,26.768-13.044-23.597-5.1329-23.694-0.2253-26.768,13.044z"/>
<path d="m261.88,348.37c-4.6118-13.515-19.492-7.9979-23.476-13.762,6.3881,0.72693,22.81,2.7896,23.476,13.762z"/>
<path d="m241.76,360.29c-21.382-3.5869-13.276-24.631-5.8711-29.018-11.026,21.332-6.2714,22.678,5.8711,29.018z"/>
<path d="m401.51,98.508c11.738,8.2404,20.506-4.906,27.143-2.5684-5.5987,3.14-20.103,11.055-27.143,2.5684z"/>
<path d="m410.72,77.127c19.418-9.5784,25.333,12.174,21.94,20.043-3.7188-23.688-8.364-22.003-21.94-20.043z"/>
<path d="m446.35,381.93c-14.369,0.4845-13.339,16.217-20.048,18.338,2.544-5.8613,9.2688-20.871,20.048-18.338z"/>
<path d="m452.04,404.49c-9.6263,19.283-27.594,5.5118-29.689-2.7897,17.401,16.631,20.072,12.501,29.689,2.7897z"/>
<path d="m522.9,218.06c-3.2108,13.909,12.375,16.952,12.723,23.933-5.0562-3.9438-17.952-14.243-12.723-23.933z"/>
<path d="m546.33,218.38c16.316,14.177-1.7046,27.883-10.325,27.764,20.656-12.427,17.317-16.049,10.325-27.764z"/>
<path d="m283.2,125.68c13.866-3.7717,9.1965-18.839,15.23-22.445-1.1105,6.2874-4.1537,22.434-15.23,22.445z"/>
<path d="m272.4,105.04c4.8689-20.971,25.559-11.699,29.535-4.1028-20.806-12.184-22.441-7.5529-29.535,4.1028z"/>
<path d="m231.22,280.05c0.12854-14.267-15.753-13.92-17.6-20.664,5.7918,2.7734,20.614,10.085,17.6,20.664z"/>
<path d="m208.27,284.73c-19-10.373-4.3648-27.596,4.0818-29.318-17.488,16.54-13.445,19.366-4.0818,29.318z"/>
<path d="m467.32,135.94c8.5614,11.464,21.025,1.689,26.596,5.9648-6.3073,1.2503-22.577,4.2785-26.596-5.9648z"/>
<path d="m482.8,118.48c21.462-3.0857,20.24,19.412,14.544,25.837,3.9152-23.657-1.0279-23.493-14.544-25.837z"/>
<path d="m370.82,404.14c-11.388-8.7111-20.692,4.0668-27.226,1.4586,5.7249-2.9075,20.544-10.226,27.226-1.4586z"/>
<path d="m360.73,425.12c-19.798,8.7796-24.808-13.195-21.094-20.92,2.7366,23.82,7.4485,22.324,21.094,20.92z"/>
<path d="m517.17,295.17c-8.7224,11.344,4.1973,20.516,1.6022,27.014-2.959-5.6678-10.404-20.339-1.6022-27.014z"/>
<path d="m538.37,305.08c8.9398,19.606-13.18,24.682-20.979,21.034,23.99-2.8304,22.459-7.4984,20.979-21.034z"/>
<path d="m222.34,247.79c6.4598-12.748-7.9446-19.392-6.6042-26.253,3.9612,5.0267,14.011,18.08,6.6042,26.253z"/>
<path d="m199.66,241.93c-12.438-17.629,8.355-26.675,16.7-24.519-23.048,7.1806-20.675,11.487-16.7,24.519z"/>
<path d="m328.12,391.82c-10.77-9.455-20.921,2.6694-27.263-0.36673,5.9091-2.5197,21.192-8.8282,27.263,0.36673z"/>
<path d="m316.63,412.08c-20.35,7.4333-23.854-14.831-19.622-22.286,1.1087,23.948,5.9109,22.773,19.622,22.286z"/>
<path d="m313.47,108.04c14.312,1.3629,15.338-14.369,22.268-15.613-3.2857,5.4866-11.91,19.508-22.268,15.613z"/>
<path d="m310.76,84.939c12.058-17.887,28.08-1.9258,29.076,6.5749-15.089-18.723-18.276-14.97-29.076-6.5749z"/>
<path d="m503.03,330.85c-12.229,7.5055-3.4571,20.65-8.2188,25.801-0.72619-6.3423-2.4047-22.684,8.2188-25.801z"/>
<path d="m519.27,347.62c1.3017,21.482-21.187,18.39-27.16,12.218,23.427,5.8525,23.677,0.95221,27.16-12.218z"/>
<path d="m493.24,156.35c4.1763,13.654,19.227,8.6096,23.023,14.497-6.3616-0.92834-22.709-3.5075-23.023-14.497z"/>
<path d="m513.74,145.08c21.257,4.2586,12.48,25.038,4.9383,29.187,11.708-20.971,6.9971-22.467-4.9383-29.187z"/>
<path d="m259.57,147.78c12.723-6.6462,4.8939-20.363,10.002-25.173,0.28139,6.3765,0.81212,22.795-10.002,25.173z"/>
<path d="m244.54,129.94c0.20546-21.52,22.423-16.885,27.95-10.317-22.959-7.4535-23.552-2.5797-27.95,10.317z"/>
<path d="m240.44,318.46c-0.36376-14.264-16.222-13.379-18.303-20.056,5.8837,2.5758,20.949,9.3825,18.303,20.056z"/>
<path d="m217.66,323.91c-19.346-9.7227-5.311-27.431,3.0719-29.438-16.91,17.121-12.771,19.808-3.0719,29.438z"/>
<path d="m438.67,115.16c10.848,9.3657,20.896-2.8423,27.266,0.14355-5.8878,2.5682-21.119,9.002-27.266-0.14355z"/>
<path d="m450,94.806c20.287-7.5997,23.976,14.632,19.809,22.124-1.3118-23.94-6.1016-22.724-19.809-22.124z"/>
<path d="m409.5,399.59c-13.645-4.4746-18.182,10.643-25.216,10.331,4.4355-4.6275,15.994-16.407,25.216-10.331z"/>
<path d="m406.94,422.71c-15.777,14.795-27.803-4.2965-26.862-12.805,10.497,21.576,14.446,18.617,26.862,12.805z"/>
<path d="m521.9,255.48c-4.5972,13.52,10.602,18.098,10.242,25.078-4.6329-4.4262-16.424-15.956-10.242-25.078z"/>
<path d="m545.18,258.13c14.802,15.728-4.5106,27.572-13.077,26.598,21.809-10.312,18.852-14.247,13.077-26.598z"/>
</g>
</g>
<g id="coa">
<g id="tree" stroke-width="0.5087">
<g fill="#730000" stroke="#000">
<path d="m405.26,125.34s0.61-1.426,1.73-0.61c1.018,0.812,1.321,4.375,1.321,4.375l-1.628,0.812c0.001,0.001,0.917-1.319-1.423-4.577z"/>
<path d="m396.01,157.29s0.813-1.118-0.305-3.563l1.628-0.508s0.609,1.932-0.204,4.072l-1.119-0.001"/>
<path d="m424.19,151.69-3.865,2.342,1.934,0.916,4.679-2.748-2.748-0.51"/>
<path d="m372.4,166.85c-1.019,0.815-1.12,2.24-1.73,3.052-0.506,0.814-2.034,1.932-2.135,3.154-0.203,1.22-0.304,2.034,0.204,3.664,0.607,1.626,3.152,8.851,2.135,14.347-1.12,5.493-0.71,7.833-0.303,8.649,0.404,0.814,1.627,3.051,2.339,3.051,1.628-0.203,0.916-0.711,1.525-1.729,1.526-2.646,0-23.098-0.712-28.796-0.507-4.375-2.545-8.345-2.745-8.75-0.203-0.511-0.609-1.832-0.916-2.647-1.525-3.664-3.357-6.815-3.357-14.451,0,0-4.986,1.122-9.257-8.547-2.238-4.883-5.495-4.375-9.359-6.001l1.729-1.122s3.256,1.629,4.884,1.629,1.12-3.256,1.12-3.256l1.628-1.63v7.126c0,3.256,4.476,7.732,7.121,9.055,1.628,0.812,3.765-2.545,3.257-5.799-0.509-3.256,0-7.631,0-7.631l2.238,1.321s-0.814,1.424-0.61,2.238c0.303,0.816,1.422-0.813,2.236-1.629,0,0,0.203,0.205,1.018,0.205,0,0-1.628,2.745-2.44,4.172-0.812,1.324-0.812,6.514-0.812,8.447,0,1.934,0.712,6.409,0.712,7.833,0,1.021,1.931,5.19,3.46,7.736,0.507,1.016,1.728,3.661,1.728,3.661,1.221,1.933,1.321,3.256,2.035,4.886,0.406,0.812,1.12,3.153,1.628,7.225,0.204,1.016,0.406,4.883,0.714,7.425,0.304,2.442,2.34,0.511,4.779-1.219,2.442-1.832,2.442-6.207,2.442-6.207s1.934-1.628,1.628-0.712c-0.204,1.018,1.019,2.035,1.019,2.035-1.525,3.458-0.609,3.052,0.916,2.95,1.525-0.206,6.814-4.172,6.814-4.172,0.713-0.205,3.867-0.205,3.358,0-0.61,0.306-1.425,1.832-1.425,1.832l3.46-0.408c-1.221,0.916-5.801,3.561-6.815,4.172-1.12,0.714-6.611,3.361-8.952,4.274-2.34,1.016-6.919,3.256-7.122,5.596-0.103,2.342,0.304,8.649,0,10.683-0.204,2.035-1.019,11.093-1.019,11.093h-10.886s2.137-7.937-0.103-10.073c-2.136-2.238-7.122-8.752-10.377-10.992-3.257-2.135,2.135-0.505,2.135-0.505v-2.24l4.984,6.006s8.647-7.632,0-18.011c-2.746-3.256-5.494-8.241-7.629-8.752-2.238-0.61-3.358-1.119-7.123,0-3.866,1.118-13.124,1.118-16.99-4.988l3.257-0.508,2.744-1.119s-1.118,3.867,6.613,3.867c7.631,0,8.749,0,8.139-7.123l2.238-1.119,1.629,1.63s-1.12,3.866-0.509,5.493c0.509,1.627,3.257,2.748,5.393,4.375,0.916,0.713,1.628,0.815,2.238,0.815,0.915-0.102,1.118-0.102,2.339-1.324,1.832-2.035,1.424-1.933,3.256-3.559,0,0,0.916-1.426,1.12-1.63l1.12,2.952h-0.006z"/>
<path d="m374.03,161.46c0.405-0.404,1.221-1.934,1.933-3.256,1.221-2.035,2.646-3.256,4.272-5.801,1.525-2.34,2.137-5.798,1.525-8.239l1.424,0.814,0.104,3.866s1.934-1.63,2.748-2.035l0.812,0.405s-6.104,6.31-11.802,16.485l-1.018-2.237,0.002-0.002z"/>
<path d="m320.52,140.3c0.814,1.421,1.629,4.172,4.07,6.307l1.628-0.508s-3.764-4.375-3.764-6.307l-1.934,0.508"/>
<path d="m330.08,137.85s0.508,5.19-0.812,7.123l1.627-0.811s1.119-3.561,0.813-5.496l-1.628-0.812v-0.004z"/>
<path d="m383.7,121.47s-0.307,7.325,1.119,11.803l1.932-0.608s-0.304-1.327,1.322-1.937c1.629-0.508,5.494-2.135,7.426-3.765l-0.608-1.626s-2.95,2.34-4.375,2.949c-1.322,0.51-2.136,1.119-3.256,0.816-1.12-0.306-2.44-2.138-1.628-6.311l-1.932-1.321"/>
<path d="m405.26,155.66s-0.507,5.189-0.202,7.429l1.729,0.408s-0.404-6.207,0.712-6.716l-2.239-1.121"/>
<path d="m413,159.53s-1.933,3.358-4.17,3.664l3.561-0.714s1.019-0.508,2.544-2.135l-1.935-0.815"/>
</g>
<g fill="#289400" stroke="#030">
<path d="m381.87,144.16,1.321,0.811,1.424,0.206s1.525,1.424,3.256,2.745c1.321,1.122,1.321-0.202,1.321-0.202l0.812,3.256h1.12s-0.306,2.136-0.306,3.256l1.934-1.629,2.238,1.934s1.628-1.424,2.441-1.424c0.812,0,1.118-0.812,1.118-0.812h0.104c-5.393-2.546-7.731-5.19-6.104-7.938,2.646-4.578,7.02-1.629,8.443-1.016l19.737,10.581s1.322-0.814,0.406-1.63c-1.019-0.811-1.425-2.848-1.12-3.661,0.306-0.814,2.544,2.542,3.662,2.847,1.12,0.306,3.661,0.714,3.661,0.714l-0.102-1.018s3.256,2.237,3.256,3.358c0,0,2.341-1.221,1.525-1.934-0.813-0.71,3.562,1.731,3.866,3.055l0.915-1.021c-0.103,0,0.306-3.256,1.424-4.782,1.019-1.524,2.137-1.933,2.137-1.933s1.019-1.731,2.034-1.731c0,0-1.019-0.71-1.425-1.524-0.508-0.816-1.729-1.222-1.729-1.222s1.525-1.118,1.934-1.628c0.406-0.608,0.814-0.714,0.814-0.714s-2.342-1.932-3.97-2.235c0,0-0.102-2.648-2.136-2.85h0.916s-1.526-2.849-2.951-2.95c0,0,0.916-1.017,1.73-1.119,0,0-1.73-2.238-4.068-1.424l1.525-0.608s-1.119-1.22-4.576-0.61c0,0,0.303-1.424-1.221-2.545,0,0-1.322,0.1-1.322,1.118,0,0-1.221-1.118-2.746-1.118-1.526,0,0.508,1.629,0.508,1.629s-2.034-1.324-3.256-0.916c0,0,0.508-2.34-0.814-3.563,0,0-1.523,0.815-1.933,1.832l-0.406-1.017s-2.036,2.442-2.441,1.73c-0.305-0.406-0.609-2.135-0.609-2.135l-1.219,1.832,0.202-2.546s-1.424,0.815-2.543,3.458c0,0-1.425,1.324-1.425,2.542,0,0-1.119-1.32-2.137,0-0.916,1.424,0,1.122,0,1.122s-0.407,0.505-1.424,0.71l0.204,0.812s-1.321-0.71-2.339-0.404l0.507,1.219s-2.645,0.205-2.745-1.93c0,0-2.238-1.121-2.544,0.101l-1.628,1.018s-0.509-1.018-1.425-1.22c-1.019-0.306-0.204,1.32-0.204,1.32s-0.304-1.219-1.525-1.832c-1.219-0.505-0.203,1.122-0.203,1.122s-1.628-1.324-0.812-2.34c0,0-1.526,1.424-0.814,2.748l-1.018,0.711s-0.509-0.508-0.408-0.916c0.104-0.408-1.729,1.219-1.729,1.219s-1.119-2.643,0-2.643c0.102,0-1.933-0.102-2.237,2.24,0,0-1.322,0.101-2.544,0.505-1.322,0.408,0.916,1.324,0.916,1.324s-1.934-0.408-3.053,0.204l0.713,0.916s-0.713-0.713-2.442-0.104c-1.832,0.508,0.406,0.814,0.406,0.814s-1.832-0.406-2.747,0c-0.916,0.408,0.305,1.119,0.305,1.119s-3.357-1.017-3.866-0.71c-0.507,0.304,1.12,1.934,1.12,1.934s-2.035,0.508-2.44,2.035l1.831,0.71s-0.812,0.406-1.222,1.222c-0.403,0.814,1.222,0.405,1.222,0.405s-2.237,1.63-2.237,2.849c0,0,1.627,0.508,2.848-0.711s0.406-0.814,0.406-0.814l0.102,0.814s2.341-1.016,2.341-1.626c0-0.508-0.406,0.812-0.406,0.812l2.341-1.22,1.524,1.018v-0.002h0.001z"/>
<path d="m379.93,112.42-0.509-2.238l5.188,0.608,0.915-2.135s2.441,1.118,3.256,1.929c0,0,4.781-1.219,6.207-0.71l-0.61,2.24s4.373,0.303,5.799,0.812c1.322,0.508-0.609,1.63-0.609,1.63s4.984,0.608,7.122,1.932c2.238,1.321,2.238,2.442,1.12,2.745l2.744,4.375s-4.373,0.508-5.187,1.626c-0.814,1.119-1.628-1.118-1.628-1.118l-0.814,3.052s-2.746-1.426-3.865-2.442c0,0-1.321,1.629-0.508,2.442l-4.986-3.256s-2.137-0.304-2.137,1.63c0,0-2.439-2.748-3.051-3.563l-2.748,0.815s-0.812-1.118-1.83-1.426c-1.12-0.201-0.306,1.426-0.306,1.426l-1.628-1.934-1.627-1.929s-1.425,1.929-2.544,1.929c-1.02,0-1.02-1.321-0.814-2.237,0.305-0.814-3.256-1.016-3.561,0,0,0-1.019-4.07,2.746-5.188,3.866-1.018,3.866-1.018,3.866-1.018l-0.001,0.003z"/>
<path d="m360.2,126.36-1.729,1.629-1.019-0.508-2.034,2.237-0.407-1.223-1.119,1.832-1.729-0.609-0.814,1.322-1.525-0.306s-1.322,1.222-2.137,1.526c-0.813,0.206,0-1.829,0-1.829s-1.221,2.034-2.137,2.034c-0.812,0-0.507-0.916-0.507-0.916s-0.508,1.319-1.525,1.525c-0.916,0.102-0.51-1.017-0.51-1.017l-1.629,1.219v-1.017l-0.712-0.304s0.406-1.832,1.12-2.238c0.712-0.408-0.712-1.626-0.712-1.626l0.712-0.815s-2.036-0.508-2.036-0.101c0,0,1.019-2.745,2.441-3.258l0.103-3.051s1.425-1.219,2.747-1.324c1.423-0.203-0.406-2.34-0.406-2.34l3.255-1.929,0.406-2.34,4.984,0.403,1.018-2.135,3.969,1.016,3.356-1.73,2.441,2.849,3.662,0.307s-0.102,2.542-0.102,3.256c0,0,4.373,1.321,4.883,1.73,0,0-0.814,2.645-0.814,3.153,0,0,3.054-0.814,3.97-0.61,0,0,0.306,2.85,0.405,3.561,0,0,5.188,1.63,5.494,2.546,0,0-1.12,0.71-1.729,1.626,0,0,0.608,3.156,0.608,4.172l-0.406,0.61s-1.526-1.424-2.747-1.627l-1.019,2.237-1.83-1.22-1.119,0.102s-0.916-1.119-1.629-1.119l-0.103-1.018-1.424,0.916s-2.237-1.12-2.237-1.832c0-0.609,0.102-1.63,0.102-1.63l-2.34,1.63s-0.508-1.219-0.405-1.73c0.103-0.508-0.915,1.222-0.915,1.222s-1.222-2.138-1.12-2.546l-0.306,1.732s-2.441-0.812-2.745-2.442v-0.002z"/>
<path d="m327.64,136.33s4.274,2.14,4.274,3.156c0,0,1.12-2.24,0.508-3.054l1.629,1.122s0.506-2.034-0.103-2.647c-0.509-0.508,3.66-2.235,4.576,0.51,0,0,2.545-2.645-2.339-4.885,0,0-0.405-1.626,2.544-1.219,0,0-0.203-1.018-0.916-1.424h2.849s-1.729-1.426-4.273-1.832c-2.44-0.408-0.916-0.711-1.018-1.224-0.204-0.508,0-2.34,0-2.34s-1.424-0.508-2.544,0.102l0.406-0.51s-2.646-0.71-3.661-0.101c0,0-1.526-0.61-1.322-2.24,0,0-1.526-0.1-2.236,1.526,0,0-1.425,1.629-3.357,1.629-0.406,0-1.832-0.815-1.832-0.815l-1.222,2.85-1.932-0.102,0.609,1.118s-2.95-0.811-3.866,0c0,0,1.12,1.732,0.813,2.951,0,0-2.341,0.408-2.849,0.815-0.61,0.403,0.813,0.71,0.813,0.71s-2.645,0.814-3.257,1.63l1.02,0.811-1.222,1.631,1.019,0.201s-1.729,0.51-2.644,0.815c-0.916,0.303,1.627,0.508,1.627,0.508l-1.219,1.118,1.933,0.303s-1.525,4.072-1.628,6.006c0,0,2.341-2.85,2.949-3.052l-1.83,3.052s3.46-1.118,3.766-1.631c0.304-0.608,0.609-1.117,0.609-1.117l0.103,1.73s1.322-1.832,1.525-2.545c0.103-0.71,2.136,0.713,2.136,0.713v-1.02s1.832,0.609,2.441,0.714c0.712,0.101,0.813-0.306,0.813-0.306l1.729-0.203-0.306,1.421s1.22-0.812,1.525-1.627c0.204-0.815,0.813,0,0.813,0l0.812-3.256h1.729l0.006,0.008z"/>
<path d="m313.7,150.78,1.628,3.358c-1.322,0.1-3.256,1.626-3.256,1.626,0.304,5.597-1.118,5.291-1.118,5.291,0.403,1.018-0.259,2.905-0.259,2.905l8.092-4.837,0.102-0.508,9.564-4.48,0.303,0.508,2.748-1.524,1.933,5.085-1.933,1.119c0.103,1.73,2.137,4.784,2.137,4.784l2.544-0.608,2.747-1.021s0.103,1.526,0.103,1.021c0-0.411,2.949-1.424,2.949-1.424l1.322,1.322c1.02-0.101,2.848-2.546,2.848-2.546l2.137,0.816s0.712-1.22,0.712-2.136c0-0.814,2.645-0.814,2.645-0.814l1.832,1.321,2.34-1.931s0.712,1.424,1.628,1.626c1.019,0.102,3.561,2.034,3.561,1.63,0-0.406,1.12-2.646,1.12-2.646l4.271,1.73c-0.608-1.933-2.032-4.273-2.032-4.273s2.032-1.626,1.627-2.034-1.627,0-1.627,0l1.219-2.442h-1.627l0.507-0.608-2.645-1.118,1.423-2.85c-0.61-0.714-7.629-2.138-7.629-2.138l1.628-1.526s-0.814-1.219-1.628-1.219-5.087,0.102-5.291-0.303c-0.103-0.408-1.832-1.937-1.832-1.937l-2.646,1.937-1.322-0.408-2.34,0.916s0,1.321-0.307,0.405c-0.303-0.816-2.44-2.951-2.44-2.951-0.406,0.71-3.153,3.967-3.153,3.967s-0.406,1.732-1.322,0.508c-1.019-1.219-3.154-2.542-3.46-1.524-0.305,1.121-2.236,2.135-2.646,1.832-0.405-0.308-2.645-0.102-2.849,0.508-0.102,0.71-2.544,2.542-2.544,2.542-1.526-0.71-3.969-0.302-3.969-0.302s-0.712,1.118-0.812,2.034l-4.984,1.319h0.004v-0.002z"/>
<path d="m359.69,191.99v-2.138l2.44,1.629,1.425-1.629,1.832,1.83,1.119-1.83v2.952l2.747-2.44,1.626,0.71v-2.34s1.935-3.258,1.12-3.866l1.628-0.508s-2.748-2.748-3.562-3.258c-0.812-0.608-1.932-0.608-1.932-0.608s-2.137-2.14-3.561-2.748c-1.322-0.508-2.138,0.608-2.138,0.608s-0.813-1.626-2.237-1.933c-1.32-0.303-1.32,1.119-1.32,1.119s-1.02-1.018-2.341-1.526c-1.322-0.608-0.407,1.22-0.407,1.22l-4.681-1.422,0.609,1.422-4.373-1.115,0.506,1.627-3.051-0.512-0.203,1.326-4.375,0.812,0.814,1.424-2.747-1.119v1.934l-3.052,1.118,1.119,1.02s-4.068,1.933-4.884,2.543c-0.812,0.508,1.629,1.626,1.629,1.626l-4.375-0.61,1.629,1.426-3.866,3.562,2.746,1.934-1.628,2.44,4.069,0.812,1.628,2.748,3.357-0.61v3.051l4.884-3.865s3.562,3.154,3.866,2.238c0.203-0.814,0.203-3.562,0.203-3.562h1.729v-2.745l1.322,1.118,2.238-3.258,2.949,4.072,2.237-5.188,3.256,0.508,0.006,0.001z"/>
<path d="m379.63,179.68-0.508-4.68-1.423,1.424,0.607-4.375-2.235-0.408,0.812-4.272-1.627-0.816,0.404-2.034,1.629-1.219,2.95-2.85,6.814,0.105,0.813-2.24l4.885,0.815c0.812,0.916,3.355-1.832,3.355-1.832h1.019l1.12,2.134s3.561-0.508,5.188,0.61l-1.934,2.646,3.561,0.304,2.44,0.512,2.544-0.816,3.257-0.206,0.813,1.324h3.053l-1.019,1.219,3.968,1.832-0.812,0.815s2.237,0.814,3.865,0.814h0.813s0.813,1.931-0.307,2.745c0,0,1.12,2.748,3.562,3.258,2.441,0.508,2.441,0.508,2.746,1.117,0.307,0.51,0,3.258-2.746,3.258v2.748s-2.137,1.933-2.441,2.745l-1.629-1.119s-1.422,1.63-1.422,2.748c0,0-3.562-4.682-4.885-4.887-1.424-0.303-1.12,2.647-1.12,2.647l-3.864-3.256-0.509,2.237-3.256-2.745-1.934,1.319-3.46-3.559-3.357,0.408,1.321-1.731h-4.069l-0.812-3.559-0.61,2.949-2.44-1.626-3.154,3.458s-0.406-0.409-0.916-2.036c-0.507-1.628-1.933,1.932-1.933,1.932l-1.12-2.542-1.322,2.542s-1.12-1.932-2.238-2.542c-1.018-0.508-2.135,3.051-2.439,4.681l0.002,0.004z"/>
<path d="m380.24,190.36,0.203-1.626,5.798-2.24,4.885-1.832,2.439-1.118,1.12,1.932,1.424-2.745,2.238,2.847,1.221-1.526,1.932,1.424h1.628l0.305,2.14s4.07,0.303,4.374-0.508c0.305-0.815,0.812,2.745,0.812,2.745l3.865,0.508,0.814,4.375s1.931,4.072,1.322,5.699c-0.51,1.73-2.138-2.136-2.138-2.136s-0.304,3.052-0.609,3.866c-0.203,0.812-5.188-0.814-5.188-0.814l-2.136,4.07s-2.237-3.256-3.255-3.256c-1.12,0-1.12,3.256-1.12,3.256s-3.256-3.867-4.681-5.496c-1.322-1.626-1.628,1.629-1.628,1.629s-2.136-3.562-2.136-4.578c0-1.119-1.934-2.24-1.934-2.24s-3.358,3.867-5.801,4.886c0,0,0.306-2.442-0.507-3.256-0.813-0.815-3.257,1.626-3.257,1.626s-1.729-3.764,0-7.631l0.01-0.001z"/>
</g>
<g fill="none" stroke="#004b00">
<path d="m407.1,129.71,0.509,2.035s1.83-0.408,3.053-0.305c0,0-0.305,1.627-0.712,2.34,0,0,2.441-0.406,3.561,0.304l-0.509,1.219,2.849,1.222-2.645,2.136s4.271,1.524,5.087,2.748c0,0-2.746,1.932-3.154,1.832-0.406-0.206-0.102,0.811,0.61,1.727l-2.341-0.101s0.916,2.138,0.813,2.95c-0.102,0.814-3.866,0.609-3.866,0.609"/>
<path d="m425,142.94s0.712-4.07-0.404-5.088c0,0,2.644,2.24,4.373,2.34,1.832,0.105-0.103-3.357-0.103-3.357s2.544,1.322,3.765,1.627c1.221,0.205-0.916-2.543-0.916-2.543s0.712-1.324,2.746-0.102"/>
<path d="m387.16,119.64s0.1-0.916-0.308-1.424c-2.44-3.358,2.545,2.545,3.561,2.748"/>
<path d="m395.09,120.96s1.628,1.219,2.442,1.219c0.813,0-0.508-3.256-0.916-3.661-0.406-0.408,2.95,1.321,4.172,1.526,1.221,0.303,1.423-2.035,1.423-2.035s3.765,0.609,4.579,1.119"/>
<path d="m380.64,118.42s-0.305-2.136-0.405-3.052"/>
<path d="m355.01,128.6c-0.204-0.408,1.02-2.24,0.509-3.054,0,0,0.712,0.612,1.424,0.714,0.61,0.101,0.404-2.342,0.404-2.342l0.814,0.304s2.137-1.018,1.729-1.832c-0.408-0.812,1.424,1.219,1.424,1.219s1.222-1.219,1.222-1.727c0-0.513,1.422,1.219,1.422,1.219s1.525-0.306,1.525-1.219c0-0.916,1.934,0.303,1.934,0.303s0.812-1.118,0.712-1.832" stroke-width="0.5087"/>
<path d="m347.58,130.53s0.914-2.135-0.103-3.559"/>
<path d="m322.86,137.24c0.103-1.016,0.609-3.764,0.103-4.172-0.508-0.403,1.019,0.408,2.238,0.713"/>
<path d="m334.86,133.38c-1.221-1.223-1.934-1.832-3.864-1.832"/>
<path d="m314.21,140.19c0.306-0.71,0.813-2.441,0.508-3.458"/>
<path d="m340.76,190.66,1.322-2.748,1.628,3.866,1.118-2.442,0.406,0.815,2.441-2.645,2.646,3.968"/>
<path d="m392.75,174.28,1.729-3.458,2.342,1.222,1.12-3.358,2.439,1.526,1.424-3.153,2.747,0.711,0.202-2.238s1.933,1.118,2.442,1.932c0.608,0.816,0-2.745,0-2.745l2.237,1.016s1.628-1.629-0.609-2.545"/>
<path d="m399.57,169.91,2.441,3.562,2.033-2.34,1.832,3.967,2.34-1.424,3.356,1.933,1.525-1.219,3.662,2.645,1.526-3.153,3.256,1.017,2.135-3.661"/>
<path d="m335.78,161.67s1.425-2.4453,0.91601-3.5637c-0.61133-1.1188,2.9492,1.934,2.9492,1.934s0.81249-2.443,0.30469-3.5605c-0.61055-1.1188,4.0703,3.2558,4.0703,3.2558s0.81446-3.764,0-4.5801c-0.81445-0.81406,4.4766,1.1215,4.4766,1.1215s2.1367-0.60897,1.3222-1.7305c-0.81445-1.1184,3.5586,1.6269,3.5586,1.6269s1.0184-2.7445,0-3.7656c-1.1184-1.1172,3.2566,1.3238,3.2566,1.3238l-1.6277-2.9508,3.5605,0.20273-0.30469-3.2562"/>
<path d="m389.8,194.73,2.3398-1.1187,2.0351,2.0348,2.2383-3.5605,2.7461,2.6445,0.40625-2.6445,2.9492,1.223,0.61133-1.6312,3.2551,1.7324,0.3039-2.443,1.6277,0.50977,0.30664-1.6293"/>
</g>
</g>
<g id="shield">
<path fill="#9dd7ff" d="m336.59,310.53c-2.646-4.477-4.681-9.055-6.207-13.531l44.052-38.77,44.055,38.666c-1.526,4.475-3.562,9.26-6.409,13.84l-0.352,0.563c-0.812-0.303-3.312-1.276-3.312-1.276s-1.425,1.324-2.541,1.424c-1.526,0.205-2.849-1.32-2.849-1.32s-1.934,1.627-3.866,1.32c-1.934-0.201-2.748-1.424-2.748-1.424s-2.034,1.629-3.459,1.324c-1.322-0.309-2.238-1.225-2.238-1.225s-1.22,1.529-2.95,1.225c-1.627-0.309-3.153-1.225-3.153-1.225s-2.541,1.117-4.171,1.322c-1.626,0.308-3.052-1.424-3.052-1.424s-2.136,1.424-2.949,1.424c-0.814,0-3.866-1.424-3.866-1.424s-3.154,1.018-4.272,1.018c-1.019,0-4.171-1.321-4.171-1.321s-2.95,0.812-4.271,0.812c-1.426,0-3.459-0.812-3.459-0.812s-2.438,1.119-3.764,0.812c-1.424-0.303-2.544-0.812-2.544-0.812s-2.645,1.119-4.375,0.812c-1.628-0.303-3.561-1.42-3.561-1.42s-0.305,0.812-3.458,1.42h-0.104"/>
<path fill="#fff" stroke="#000" stroke-width="0.7123" d="m374.44,213.66v44.566l-44.053,38.974c-4.272-12.414-4.577-23.504-4.577-28.285v-55.254h48.63"/>
<path fill="#ffd83c" stroke="#000" stroke-width="0.7123" d="m374.44,213.66v44.566l43.951,38.974c4.271-12.414,4.577-23.504,4.577-28.285v-55.254h-48.528"/>
<g id="boat" stroke="#000" stroke-width="0.5087">
<path fill="#730000" d="m346.02,301.27c3.312,1.795,2.19,1.229,9.055,3.66,5.597,1.937,12.106,2.849,21.567,2.849,8.278,0,12.938-0.656,15.56-1.38,2.719-0.78,3.363-1.877,3.363-1.877l-6.814,6.92s-27.394,1.479-32.354-1.729c-1.931-1.019-6.104-4.375-10.376-8.444v0.001z"/>
<g fill="none">
<path d="m386.21,288.35s8.75,4.984,0,14.549"/>
<path d="m346.84,301.78,12.615-12.01-1.424,16.078"/>
<path d="m364.64,307.27v-26.86"/>
<path d="m386.21,307.27v-28.489"/>
<path d="m375.32,307.78v-30.625"/>
</g>
<g fill="#ff0018">
<path d="m364.64,281.84-5.698,1.832,5.698,0.61v-2.442"/>
<path d="m375.32,277.66-6.001,2.24,6.001,0.203v-2.443"/>
<path d="m386.21,279.29-6.002,2.24,6.002,0.303v-2.546,0.003z"/>
<path d="m389.77,292.22c-0.305-1.222,3.562-1.118,3.562-1.118s1.12,4.068,0,6.611l-3.255-0.609s0.305-2.746-0.307-4.884z"/>
</g>
<g fill="#fff">
<path d="m348.77,300.15,0,0,10.683-10.379-0.509,6.207s-5.493,3.559-5.493,6.104l-4.681-1.932"/>
<path d="m354.46,302.29s1.12-3.256,4.171-4.883l-0.305,6.512-3.864-1.629h-0.002z"/>
<path d="m369.83,284.28s4.373-0.61,7.63,0c0,0-0.509,4.375,0,5.188,0,0-6.003-1.425-8.443,0.812-0.001,0-0.815-4.069,0.813-6z"/>
<path d="m360.57,285.4s4.375-0.61,7.629,0c0,0-0.812,4.886-0.305,5.699,0,0-4.885-2.748-7.324-0.512,0,0-1.629-3.355,0-5.187z"/>
<path d="m360.26,291.09s4.374-0.508,7.631,0c0,0-0.509,4.375,0,5.191,0,0-5.698-1.324-8.141,0.812,0.001,0.001-1.119-4.069,0.51-6.003z"/>
<path d="m369.01,290.28s6.308-0.811,9.562-0.303c0,0-1.322,3.561,0.307,6.002,0,0-6.817-1.832-9.361,0.303-0.001,0-2.135-4.069-0.508-6.002z"/>
<path d="m359.76,297.1l8.442,0.609s-0.812,6.207-0.305,7.021c0,0-6.815-1.629-8.141,0.608,0,0-2.238-5.696,0-8.241h0.003v0.003z"/>
<path d="m369.32,297.1s7.322-0.51,10.682,0c0,0-1.936,4.683,0.204,8.75,0,0-9.565-2.744-10.889-0.51,0,0-2.235-5.697,0-8.24h0.003z"/>
<path d="m380.51,284.28s4.373-0.61,7.63,0c0,0-0.507,4.375,0,5.188,0,0-6.002-1.425-8.442,0.812-0.002,0-0.816-4.069,0.812-6z"/>
<path d="m380.51,290.28s4.373-0.508,7.63,0c0,0-0.507,4.375,0,5.189,0,0-6.002-1.322-8.442,0.815-0.002,0.001-0.816-4.071,0.812-6.004z"/>
<path d="m381.02,296.59s4.373-0.607,7.73,0c0,0-1.119,6.817-0.609,7.631,0,0-4.982-2.34-7.324-0.303,0,0-1.423-5.392,0.203-7.328z"/>
<path d="m390.07,297.1s1.422,5.187,3.254,5.799l-2.44,2.951s-2.95-2.137-3.256-4.576c0,0,1.932-2.241,2.442-4.174z"/>
</g>
</g>
<g id="waves" stroke="#000" stroke-width="0.6104">
<path fill="#006ac8" stroke="none" d="m411.88,311.14c-7.019,11.703-18.516,22.689-37.438,29.506-19.229-6.916-30.928-18.414-37.847-30.016l0.103-0.102c3.153-0.613,3.459-1.424,3.459-1.424s1.933,1.119,3.561,1.424c1.729,0.303,4.374-0.814,4.374-0.814s1.119,0.51,2.543,0.814c1.322,0.303,3.765-0.814,3.765-0.814s2.034,0.814,3.458,0.814c1.322,0,4.273-0.814,4.273-0.814s3.153,1.32,4.17,1.32c1.12,0,4.272-1.018,4.272-1.018s3.053,1.426,3.866,1.426c0.812,0,2.95-1.426,2.95-1.426s1.423,1.729,3.051,1.426c1.628-0.203,4.171-1.321,4.171-1.321s1.525,0.916,3.154,1.22c1.729,0.307,2.95-1.22,2.95-1.22s0.916,0.916,2.238,1.22c1.424,0.307,3.458-1.322,3.458-1.322s0.813,1.222,2.748,1.424c1.933,0.306,3.866-1.32,3.866-1.32s1.32,1.525,2.848,1.32c1.12-0.102,2.542-1.424,2.542-1.424s2.544,0.812,3.459,1.121"/>
<path fill="none" stroke-width="0.5087" d="m410.15,313.79c-1.525,0.104-1.729-0.916-1.729-0.916s-2.032,1.731-3.967,1.425c-2.034-0.303-2.95-1.627-2.95-1.627s-2.137,1.73-3.562,1.424c-1.423-0.203-2.439-1.222-2.439-1.222s-1.322,1.528-3.053,1.222c-1.729-0.203-3.257-1.222-3.257-1.222s-2.746,1.122-4.477,1.425c-1.729,0.307-3.153-1.627-3.153-1.627s-3.968,1.324-4.781,1.324c-0.916,0-3.766-1.324-3.766-1.324s-1.932,1.223-3.051,1.223c-1.22,0-4.476-1.426-4.476-1.426s-3.054,0.816-4.478,0.816c-1.425,0-3.561-0.816-3.561-0.816s-2.645,1.119-4.069,0.816c-1.424-0.307-2.544-0.816-2.544-0.816s-2.849,1.119-4.578,0.816c-1.729-0.307-3.765-1.424-3.765-1.424s-0.304,0.709-3.661,1.424h-0.103"/>
<path fill="#5ac800" d="m346.97,317.94s-0.28444,0.66512-2.9375,1.25c-0.0568-0.004-0.71875,0.15625-0.71875,0.15625,0.24453-0.0444,0.44305-0.0788,0.65625-0.125-0.0936,0.0356-0.303,0.11225-0.75,0.25,3,4.334,7.4939,8.268,12.177,11.423,4.6833,3.1547,10.065,6.9209,19.229,9.6085,9.6351-3.7615,12.206-5.1929,18.503-9.4102,6.297-4.5987,9.5783-7.4642,13.09-12.184-2.75,1.562-2.3552,1.58-3.7812,1.375-1.424-0.303-2.4688-1.3438-2.4688-1.3438s-1.3002,1.5488-3.0312,1.3438c-1.729-0.303-3.25-1.3438-3.25-1.3438s-2.26,1.5375-4.5,1.4375c-1.73-0.104-3.1562-1.625-3.1562-1.625s-3.9692,1.3125-4.7812,1.3125c-0.916,0-3.75-1.3125-3.75-1.3125s-1.9445,1.2188-3.0625,1.2188c-1.22,0-4.4688-1.4375-4.4688-1.4375s-3.0448,0.8125-4.4688,0.8125c-1.425,0-3.5625-0.8125-3.5625-0.8125s-2.5375,1.1175-4.0625,0.8125c-1.425-0.303-2.5625-0.8125-2.5625-0.8125s-2.8345,1.1175-4.5625,0.8125c-1.73-0.303-3.7812-1.4062-3.7812-1.4062z"/>
<path fill="#ffd800" d="m374.63,340.51c9.953-4.143,11.751-5.27,17.771-8.951-1.05,0.029-4.104-0.957-2.999-1.272,0,0-1.224,1.103-2.444,1.103-1.12,0-4.375-1.42-4.375-1.42s-3.051,0.811-4.476,0.811-3.561-0.811-3.561-0.811-2.646,1.116-4.07,0.811c-1.425-0.303-2.544-0.811-2.544-0.811s-2.949,1.116-4.577,0.811c-1.729-0.303-3.765-1.424-3.765-1.424s-2.504,1.328-4.076,1.481c4.809,3.522,9.872,6.961,19.116,9.672z"/>
</g>
<g id="weapons" stroke="#000" stroke-width="0.5087">
<path fill="#b34b00" stroke-width="0.509" d="m367.88,259.34c1.977-1.61,3.112-3.159,2.452-4.362-0.743-1.033-1.905,0.646-3.214,0.252,0,0-1.976-1.222-2.515-2.098-1.153-1.281-2.636-2.434-3.49-3.535-0.905-1.021-4.31-5.522-9.492-10.704-1.49-0.972-1.149-4.65-2.217-5.792-0.091-0.796-10.358-10.96-14.022-14.637-1.481-1.09-2.262-1.797-4.865,0.563-2.055,1.854-2.794,3.767-0.098,6.077l13.356,12.144c1.951,1.896,4.676,2.241,5.819,3.223l13.576,13.883c1.709,1.477,2.529,2.524,1.563,3.787-1.073,2.077,0.075,2.357,0.319,2.42,0.156,0.086,1.115,0.084,1.755-0.41l1.073-0.811z"/>
<path fill="none" stroke-width="0.5" d="m334.02,222.92,13.958,13.792"/>
<path fill="#fff" stroke-width="0.5713" d="m352.92,229.22c0.216-0.415,0.688-1.473,1.187-2.627,0.196-0.456,3.951-6.444,5.823-6.62,0,0,11.677,8.495,11.686,8.607,0.039,0.458-5.065,8.093-5.509,7.513-0.002-0.001-13.68-5.743-13.187-6.873z"/>
<path fill="#ccb8c8" stroke="none" d="m360.36,231.22c-1.599-1.242-4.242-2.453-6.375-3.875l-0.958,2c0.771,0.863,10.487,5.381,12.083,6.25,0,0-1.851-2.122-4.75-4.375z"/>
<path fill="none" stroke-width="0.4" d="m353.98,227.09c1.25,0.875,3.625,2.375,5.125,3.25,2.875,2,4.695,4.203,6.75,5.375"/>
<path fill="#782121" d="m330.32,263.48,26.587-32.904c0.498-0.456,2.963-0.481,3.297,2.068l-25.179,34.315c0.001,0-2.868-0.284-4.705-3.479z"/>
<path fill="#730000" d="m419.44,263.84c-0.916,0.715-2.473,0.9-2.473,0.9-1.729-2.035-3.156-4.172-5.597-6.816l-26.555-32.663,2.747-2.645,23.907,27.981c0.712,0.711,4.886,5.088,8.854,10.274,0.002,0.002,0.348,2.032-0.883,2.969z"/>
<path fill="#fff" d="m393.87,229.43-4.274-5.088s-3.255,0.406-3.864,2.138c0,0-2.341,3.867-8.547,4.274,0,0,1.729,7.223,8.953,11.089,0,0,2.646-7.429,5.188-8.752-0.001,0.001,2.644-1.934,2.544-3.661z"/>
<path fill="#730000" d="m383.19,252.02c-0.609-0.205-1.221,0-2.137,0.509-0.812,0.51-1.83,0.304-1.729-0.714,0.102-0.916,0-0.812,1.119-1.524,1.629-0.916,3.765-1.019,5.087-0.51l-2.34,2.239"/>
<path fill="#730000" d="m412.18,223.12c-0.204-0.71-0.405-1.421,0.305-2.337,0.713-0.814,0.713-2.24-1.019-1.528-1.729,0.714-2.339,2.646-0.914,5.597l1.626-1.732h0.002z"/>
<path fill="#fff" d="m382.58,252.63,30.114-29.915,7.425,7.937s-1.524-0.612-2.136-0.206c-0.508,0.408,0.61,1.934,0.61,1.934s-1.424-0.508-2.034-0.102c-0.712,0.405,0,2.136,0,2.136s-1.221-0.916-1.832-0.51c-0.508,0.408,0,2.339,0,2.339s-1.628-0.507-2.033-0.102c-0.408,0.408,0,2.138,0,2.138s-1.629-0.814-2.442,0c-0.812,0.812,0.406,1.934,0.406,1.934s-2.034-0.815-2.848,0.405c-0.813,1.222,0.102,2.34,0.102,2.34s-1.627-0.812-2.033-0.408c-0.407,0.408,0,2.34,0,2.34s-1.424-0.814-2.34,0.206c-0.916,1.119,0.102,2.035,0.102,2.035s-1.321-0.816-2.036-0.411c-0.712,0.411,0.204,2.34,0.204,2.34s-1.321-0.916-2.237,0c-0.916,1.021,0,2.035,0,2.035s-1.12-1.018-2.238,0c-1.019,1.121,0,2.239,0,2.239s-1.626-0.813-2.236,0c-0.712,0.812,0.202,1.935,0.202,1.935s-1.219-0.713-2.033-0.309c-0.812,0.408,0,2.24,0,2.24s-1.22-1.324-1.729-0.609c-0.61,0.711,0.102,2.441,0.102,2.441s-1.12-1.324-1.729-0.609c-0.713,0.609,0.405,2.137,0.405,2.137s-2.034-0.916-1.525-0.916z"/><!--c0.102,0-6.207-7.022-6.207-7.022-->
<g fill="#7e4b7e" stroke="none">
<path d="m410.96,225.16-2.34,2.34,0.508,8.039s0.509-2.34,1.221-0.714c0,0,0.204-1.932,0.712-1.626-0.409-0.206-0.102-8.039-0.101-8.039"/>
<path d="m406.59,229.53-1.729,1.626,0.609,8.039s0.51-3.051,1.22-0.609c0,0-0.102-2.034-0.102-2.748,0.002,0.509,0.002-6.308,0.002-6.308"/>
<path d="m388.38,247.55-1.628,1.727,0.408,4.886s0.508-3.153,1.22-0.714c0,0-0.204-2.031-0.204-2.746,0,0.509,0.204-3.155,0.204-3.155"/>
</g>
<g fill="none" stroke="#7e4b7e" stroke-width="0.9156">
<path d="m386.34,227.4c1.12,1.119,4.274,5.187,4.274,5.187"/>
<path d="m387.77,229.64c-0.202,0.612-0.607,2.34-1.523,3.256"/>
<path d="m388.27,230.04c-0.102,0.406-0.102,1.73-1.523,3.054"/>
<path d="m388.78,230.66c-0.204,0.71-0.305,1.22-0.812,1.731"/>
<path d="m389.09,231.27c0,0.508-0.303,0.61-0.405,0.916"/>
<path d="m385.33,229.33c-0.406,0.405-3.358,2.338-4.985,2.95"/>
<path d="m384.51,230.45c-0.406,0.408-2.238,1.832-3.256,2.24"/>
<path d="m384.21,231.67c-0.609,0.41-1.628,1.424-2.441,1.73"/>
<path d="m383.6,232.89c-0.406,0.508-1.018,0.916-1.525,1.222"/>
<path d="m365.94,234.01c0.332-0.613,0.911-1.816,1.667-2.917,0.959-1.397,1.372-1.633,1.875-2.125" stroke-linecap="square"/>
</g>
</g>
</g>
<g id="supporters">
<path fill="#289400" stroke="#060" stroke-width="0.5087" d="m267.72,316.03c1.526,0.711,0-4.987,0.507-7.123,0.61-2.238,4.984,5.494,7.123,6.514,2.238,1.118,15.87-5.395,15.87-5.395l3.256-6.104,1.73,4.985s3.763-4.375,4.883-6.002c1.119-1.627,0,3.257-1.12,4.884-1.12,1.629,3.256,2.239,2.746,5.495-0.508,3.257,4.375-2.239,4.375-2.239l12.615,1.119s2.135-7.632,5.493-12.007l1.018,4.887,5.188-5.29c5.799,15.263,18.009,31.849,43.035,40.903,23.501-8.547,35.608-23.709,41.913-38.159l7.021,7.228s5.494-1.631,6.511-2.238c1.118-0.51,12.92,4.172,12.92,4.172s2.136,0.814,3.256,1.63c1.118,0.812,0.304-3.563,0.304-3.563s6.003,1.118,5.493,4.375c0,0,1.322-3.051,2.442-3.56s3.763,2.748,4.375,3.866c0.508,1.02,13.43,2.646,15.26,3.765,0,0,1.425,1.63,1.425,2.748,0,0,2.748-0.306,4.885-0.306,0,0-1.628,0.811-1.628,2.543,0,1.629-0.814,2.953-2.442,3.764-1.628,0.816,0,1.424,2.137,1.63,2.238,0.304,0,3.052-4.375,4.683,0,0-1.018,2.439,0.814,3.252,0,0-3.766,0.308-4.375-0.812,0,0-1.32,2.543-1.32,3.867,0,0-4.069-1.324-5.188-1.933,0,0-1.629,1.625-0.51,2.439,0,0-7.425-0.811-8.851-3.559,0,0-2.646,0.813-2.137,1.729,0,0-5.188-3.56-6.815-3.56l-1.119,1.828s-3.561-2.135-4.681-2.135c-1.02,0-0.204,1.627-0.204,1.627l-4.983-3.053-1.933,3.053s-4.07-1.935-5.188-2.746c-1.019-0.813-1.32,1.627-2.136,1.931,0,0-1.628-2.235-3.866-1.931,0,0-0.813,2.746-0.508,3.561,0,0-6.308-1.322-7.426-1.63-1.12-0.304-0.508,1.323,0,2.444,0,0-4.681-1.323-5.698-2.139l-0.305,2.139s-3.864-0.307-4.679-1.121l-2.442,3.356h-3.561l-0.812,2.95s-6.815-1.93-7.427-0.811c-0.508,1.117,0.306,2.744,0.306,2.744l-6.002-0.812-0.507,2.441s-6.919-2.138-8.547-1.121c0,0-2.137,2.24-3.562,2.748-1.319,0.61,0-0.814,0-0.814l-2.135-2.949s-2.441,1.322-3.866,0.814c-1.321-0.613-5.697,2.135-7.123,1.32,0,0,0-1.935-1.117-2.442-1.019-0.509-2.95-0.509-3.766,0.815,0,0-0.812-1.121-2.237-3.257-1.322-2.239-3.257,0.203-3.257,0.203l-0.305-2.646-3.765-0.307c-2.238-0.305-2.746-2.24-2.746-2.24s-5.799,0.611-6.613,0.308l1.423-1.324s-7.935,1.632-9.562,1.021c-1.73-0.508,1.832-2.748,1.832-2.748s-7.327-1.828-8.751-2.135c-1.321-0.305-9.258,1.318-10.378,1.318-1.119,0-1.628-1.832-1.628-1.832s-1.935,1.631-3.562,2.141c0,0-1.322-3.256-0.507-3.563,0,0-5.188,1.424-5.494,2.748,0,0-1.322-2.136-1.12-3.052,0,0-2.441,3.867-3.561,4.679-1.12,0.815-0.204-1.933-0.204-1.933s-3.05,3.865-4.17,4.172v-2.748s-8.751,4.681-11.191,4.072c0,0,0-1.936,0.813-2.442l-5.494-0.306c-1.32-0.203-2.949-0.812-4.373-1.119-1.322-0.205,1.933-1.627,4.171-1.018,0,0-6.104-2.238-7.937-1.121,0,0-0.814-2.236,2.44-3.052,0,0-4.172-4.069-6.614-3.765,0,0,2.748-1.627,4.986-0.815,0,0-2.544-6.917-4.172-7.731,0,0,5.8-1.018,7.427-0.201l0.002-0.002z"/>
<g id="axe">
<path fill="#730000" stroke="#000" stroke-width="0.5087" d="m259.27,196.67,74.064-38.361c0.355-1.982-0.771-3.54-1.932-5.088-21.18,10.387-40.456,22.992-63.992,30.628-1.322,0.51-13.022,5.393-19.025,12.619-1.903,1.908-2.043,4.724-2.043,4.724s0.146,3.231,0.825,4.104c0,0,0.176,0.887,1.282,1.596-0.012,0,0.684,0.341,1.166,0.169,0.538,0.101,1.413,0.094,2.635-2.045,1.222-2.037,5.189-6.716,7.02-8.346z"/>
<path d="m318.89,158.72,9.562-4.58s3.257,2.442,2.951,5.19c0,0,0.712,6.307,8.547,10.682,0,0-6.615,8.241-18.211,8.955,0,0,1.33-10.876-1.11-14.032,0,0-0.406,0.389-0.23-0.15,0.347-1.058-0.235-4.688-1.72-5.487-0.181-0.099,0.118-0.396,0.211-0.578z" stroke="#000" stroke-width="0.50870001" fill="#FFF"/>
<g fill="none" stroke="#7e4b7e" stroke-width="0.8139">
<path d="m330.08,160.04c-2.034,0.814-8.647,4.272-8.647,4.272"/>
<path d="m326.93,162.07c-0.103,1.017-0.713,3.459,0,5.189"/>
<path d="m326.01,162.38c0,0.508-0.813,2.34,0.103,4.783"/>
<path d="m325,162.89c-0.204,1.021-0.406,1.63,0,2.751"/>
<path d="m324.18,163.5c-0.203,0.609,0,0.916,0,1.321"/>
<path d="m330.18,163.19c0.304,0.812,3.052,5.086,4.68,6.816"/>
<path d="m330.59,165.12c0.307,0.814,1.832,3.765,2.951,4.886"/>
<path d="m330.39,166.85c0.406,1.018,1.221,2.85,2.034,3.866"/>
<path d="m330.39,168.89c0.204,0.815,0.61,1.832,1.221,2.546"/>
</g>
</g>
<g id="paddle" stroke="#000" stroke-width="0.5087">
<path fill="#b34b00" d="m398.22,154.46,27.207,13.322c5.451,2.65,7.411,0.202,10.487,1.539l53.694,27.351c4.606,2.012,7.185,2.656,6.523,5.039-0.112,3.786,1.79,3.843,2.31,3.883,0.376,0.101,2.191-0.165,2.949-1.172,0.568-0.656,0.589-0.724,0.589-0.724,0.608-0.608,0.498-0.663,0.687-0.934,2.258-3.249,3.509-6.065,1.146-7.905-2.702-1.266-3.013,1.607-5.858,1.304,0,0-5.087-1.933-6.919-3.256-3.374-1.837-8.084-4.015-9.155-5.211-3.428-0.642-29.233-15.157-43.852-22.442-1.568-1.313-2.422-6.166-5.503-7.79-0.904-1.312-20.694-10.347-31.043-15.52-3.814-1.425-5.949-2.401-8.697,2.28-2.398,4.59-1.815,7.094,5.435,10.236z"/>
<path fill="none" d="m400.52,148.76,30.458,15.208"/>
</g>
<g id="white_man" fill="#ffa54b" stroke="#000" stroke-width="0.5087">
<path fill="url(#white_skin)" d="m309.73,165.12c-0.203,0.61-0.712,0.203-0.712,0.408-0.405,2.135-0.305,3.253-0.813,4.475-0.712,1.424-3.256,2.748-3.154,2.645-2.034,0.609-4.475,3.054-8.442,0.814-0.204-0.101-0.406-0.306-0.61-0.508,0,0,1.117,4.169-2.95,6.204-1.424,0.713-15.77,8.244-15.77,8.244s-1.526,2.748-0.509,6.512c0.103,0.61,0.305,1.118-0.305,1.526-0.916,0.71-2.646,2.748-3.662,6.004,0,0-3.053-1.324-3.053-3.256,0-1.934,1.221-2.951,1.526-4.378,0.304-1.321,1.117-4.679,0.712-5.698-0.406-1.119-2.238-1.526-2.95-1.933-0.61-0.408-1.425,0.406-1.322,1.322,0.103,1.018,0.813,0.812,1.628,1.018,0,0-0.916,1.932-0.813,3.356l-9.258,4.783s1.22,1.626,1.627,2.34c0.405,0.712,1.321,10.175,4.069,14.653,2.747,4.477,3.663,3.256,4.273,3.866,0.508,0.508,1.321,1.321,2.034,1.934,0.712,0.508,3.865,0.811,4.477-0.916,0.712-1.631,1.22-2.647,3.154-4.174,1.933-1.524,5.899-5.391,5.899-7.123,0,0,2.34,6.716,2.034,12.313,0,0,8.546,1.731,16.177,1.932,7.632,0.105,11.497-1.524,11.497-1.524s1.018-6.409,0.608-7.631c0,0,1.221,4.172,2.137,5.596,1.019,1.727,2.136,5.288,4.374,5.493,2.137,0.101,3.969-2.135,4.171-3.051v-6.716h8.647c0-0.101,3.866,1.424,5.086,1.22,1.221-0.102,1.933-1.22,0.813-1.628l-0.405-0.303c1.117,0,2.543,0.71,2.543,0.71h4.271c0.103-0.101,0-0.408-0.103-0.508-0.305-1.222-2.544-2.24-4.17-2.95-1.629-0.609-3.459-1.324-4.681-1.424-1.932-0.206-3.256-0.101-6.206,0.408-0.813,0.101-3.865,0.405-5.799,1.321-0.509,0.306-1.019,0.406-0.813-0.916,0.306-1.426,0.204-7.835-1.32-10.583-1.12-1.932-1.018-3.562-0.814-5.188,0.104-1.63,0.204-7.225,0-8.854-0.306-1.627-2.544-3.867-6.611-4.375-3.866-0.511-7.123-3.664-7.325-6.207-0.305-2.542,0.408-7.223,0.814-9.257"/>
<g fill="none">
<path fill="url(#white_skin)" d="m292.44,153.63c-0.712,3.253-0.712,6.104-0.609,9.257,0.102,2.135,1.118,4.577,2.034,6.715,0.609,1.426,1.425,3.052,2.746,3.867,3.562,2.34,6.919-0.203,8.852-1.017,0.916-0.308,2.341-1.626,2.747-2.442,0.508-1.219,0.303-2.135,0.812-4.475-0.103,0.1,0.813-0.408,0.712-0.408,0.916-1.526,0.712-2.034,1.221-3.054,0.509-1.018-0.609-2.136-1.832-1.931,0.609-1.933,1.019-4.072,0.405-5.904-0.202-0.608,0.51-2.235-0.608-1.832-4.579,1.832-9.97,1.426-14.854,1.426-0.406,0-0.712-0.815-1.321-0.71-0.103,0-0.204,0.303-0.307,0.505"/>
<path fill="#000" d="m292.03,155.35c-0.508-0.406-0.61-1.319,0-3.256,0.712-1.929,0-2.034,1.119-3.153,1.12-1.12,0.814-1.629,1.526-1.932,0.712-0.206,2.849-0.206,3.562-0.508,0.609-0.308,1.525-0.714,2.947-0.916,1.526-0.308,4.579-0.206,6.003,0.608,1.526,0.812,2.544,2.85,3.46,3.561,1.02,0.71,1.63,3.661,1.426,7.938-0.307,4.272-1.12,3.458-1.12,3.458s-1.222-2.034-2.238-0.308c0,0,0-1.626,0.204-2.848,0.102-1.219-0.61-3.458,0.102-4.985,0,0-5.8,1.832-8.751,1.729-3.051-0.202-7.322-0.916-7.526-1.626l-0.714,2.238"/>
<path fill="#fff" stroke="#fff" d="m294.98,151.8c-0.305-0.61-1.832-2.85-0.609-3.561,1.12-0.612,0.406,2.745,1.935,3.458,0,0-0.509,1.526-1.321,0.102l-0.005,0.001z"/>
<path d="m298.34,160.14c-0.508,1.732-0.712,2.138-0.916,3.156"/>
<path d="m308.01,164.92c0.204,0.61,0.404,0.303,0.914,0.405"/>
<path d="m309.33,161.36c0.509-0.609,1.221-0.303,0.813,1.223"/>
<path d="m292.44,157.7c0.916,0.303,1.832,0.608,2.748,1.02,1.526,0.61,0.61,2.845,0.204,4.271-0.204,0.714-1.019,1.933-0.609,2.546,0.508,0.811,1.119,0.303,2.035,0.403,0-0.303,0.609-0.508,0.813-0.508,0.712-0.1,1.12,0.508,1.627,0.308,0.61-0.308,0.51-1.224,0.306-1.731"/>
<path d="m299.46,159.53c0.102-0.403,1.018-0.811,1.526-0.915,2.136-0.405,3.661-0.712,5.393,0.511"/>
<path d="m300.68,170.21c-1.729,0.408-3.561,0.71-5.188-0.206"/>
<path d="m295.49,169.2c0.813-0.408,1.12-0.816,2.137-0.308,0-0.101,1.12-0.405,1.12-0.405,0.812,0,1.322,0.304,2.136,0.812"/>
<path d="m295.39,169.6c0.916-0.306,3.358-0.306,5.394,0.102"/>
<path fill="#fff" stroke-width="0.3052" d="m292.34,160.14c0.713-0.1,1.526-0.916,3.154,0.306,1.12,0.712-1.832,1.426-1.322,1.324-1.32,0.202-1.729-0.508-1.828-1.122,0-0.202-0.204-0.508,0-0.508h-0.004z"/>
<path fill="#fff" stroke-width="0.3052" d="m300.68,160.95c0.712-1.426,1.832-1.119,2.849-0.816,1.019,0.306,0.713,0.105,1.629,0.613-1.12,0.203-0.814,0.303-1.629,0.71-0.916,0.408-1.729,0.61-2.341,0.206-0.204-0.206-0.712-0.508-0.712-0.916-0.001,0.101,0.102,0.203,0.204,0.203z"/>
<path fill="#000" stroke-width="0.3052" d="m293.76,161.36c0.406,0,0.712-0.406,0.712-0.814,0-0.508-0.306-0.916-0.712-0.916-0.507,0-0.812,0.408-0.812,0.916,0,0.408,0.303,0.814,0.812,0.814z"/>
<path fill="#000" stroke-width="0.3052" d="m302.41,161.56c0.405,0,0.712-0.403,0.712-0.916,0-0.508-0.407-0.811-0.813-0.811-0.405,0-0.712,0.303-0.712,0.811-0.001,0.514,0.407,0.916,0.813,0.916z"/>
</g>
<g id="body" stroke="#000" stroke-width="0.5087">
<g fill="none">
<path d="m345.85,213.66c-0.608-0.714-1.018-1.02-1.83-1.324-0.609-0.303-1.424-0.71-2.036-1.016-0.712-0.408-1.729-0.508-2.34-0.916"/>
<path d="m340.05,213.05c-0.306-0.203-0.508-0.304-0.812-0.51-0.306-0.101-0.712-0.101-1.02-0.203-0.102,0-0.102-0.204-0.203-0.204-0.915-0.102-1.831-0.51-2.44-1.321"/>
<path d="m272.8,201.45c0.914,0.71,3.152,2.24,3.356,5.19,0.204,1.525,1.019,3.051,1.019,3.051"/>
<path d="m264.05,201.86c0.51,1.727,0.61,7.425,6.003,13.43"/>
<path d="m265.07,193.92c-0.408,1.119-0.916,2.137,0.202,2.951"/>
<path d="m279.72,207.56c1.12-2.545,4.578-2.342,4.578-4.782"/>
<path d="m284.81,207.25c-0.306-2.849-0.916-4.475-0.405-8.647,0.203-1.223,0.405-5.9,0-8.141,0,0,1.629,7.833-3.662,9.363"/>
<path d="m315.13,212.34c0-3.97,0.916-6.209,0.916-6.209,1.221-5.593-1.119-7.731-0.203-9.155,0.812-1.221,2.035-3.766,0.407-8.854,0,0,2.847,10.484-4.478,10.484-7.425,0-7.121-2.748-7.121-2.748"/>
<path d="m284.4,190.46c0,2.135,0,8.447,9.055,8.447,2.746,0,5.698-1.933,7.324-3.256"/>
<path d="m303.02,192.9c-0.306-1.934-0.306-4.375-0.306-6.92"/>
<path d="m289.08,182.53c2.441-0.308,4.376-0.61,8.955-0.61"/>
<path d="m298.34,175.6c0.509,2.24-0.304,5.8,3.866,6.309"/>
<path d="m306.58,174.79c-0.61,1.629-0.61,3.256-0.814,4.375"/>
<path d="m305.97,181.92c1.73,0,4.985-1.121,9.054-0.306"/>
<path d="m316.45,204.4c0.813,1.63,1.018,3.765,3.561,6.207"/>
<path d="m288.27,199.21c0.204,1.324-1.729,5.698-0.306,9.262,1.322,3.559,1.12,7.631-1.12,11.089"/>
<path d="m293.46,200.54c-0.813,1.626-2.238,3.256-2.544,4.68"/>
<path d="m297.52,203.59c0,1.018-2.744,8.749-4.68,10.886,0,0,3.561,1.424,3.051,6.614"/>
<path d="m303.22,200.03c0,1.324-0.204,1.63,0.916,2.44"/>
<path d="m306.58,202.47c1.32,1.628,5.492,6.514,4.576,9.259"/>
<path d="m303.83,205.22c0.306,1.018,0.306,6.309-0.61,8.955"/>
<path d="m301.09,213.97c-1.12,0-2.746,0.814-3.052,2.747"/>
<path d="m306.78,213.66c1.118-0.306,3.355,1.626,3.355,7.123"/>
<path d="m325.81,210.51c-2.136,0.61-3.052,1.732-2.44,1.119-1.12,0.916-2.138,1.526-2.138,1.526"/>
</g>
<path fill="#000" stroke-width="0.3052" d="m289.79,197.99c0.608,0,1.118-0.408,1.118-0.916,0-0.411-0.507-0.816-1.118-0.816-0.509,0-1.02,0.405-1.02,0.816,0,0.505,0.508,0.916,1.02,0.916z"/>
<path fill="#000" stroke-width="0.3052" d="m312.89,198.3c0.51,0,1.02-0.405,1.02-0.916,0-0.505-0.508-0.811-1.02-0.811-0.607,0-1.118,0.306-1.118,0.811-0.001,0.511,0.51,0.916,1.118,0.916z"/>
<path fill="#fff" d="m280.54,239.81c1.22-7.937,4.985-14.551,5.086-15.162,0,0,3.865,0.816,10.58,1.424,6.612,0.71,8.444,0.408,11.496,0.202,2.949-0.303,6.815-0.811,6.815-0.811s1.221,2.44,1.322,4.883c0.305,5.188,2.236,27.677,2.439,33.679,0,0,0.814,3.562,0.814,12.312,0,9.567,2.645,28.999,2.645,39.381l-2.645,0.51s-14.446,1.119-14.446-0.814c0-2.135-0.813-27.066,1.322-42.126,0,0-0.508-2.95-1.322-5.496-0.813-2.442-4.375-10.073-4.375-11.698,0,0-5.695,16.072-6.001,18.824-0.304,2.543-1.12,38.357-1.628,41.312,0,0-8.241,6.308-9.36,6.92-1.118,0.509-9.054-3.36-9.258-4.375-0.306-1.118,0.814-13.229,4.578-33.176,1.425-7.123,0.61-8.44,0.61-10.375,0-1.934,0.103-27.474,1.322-35.412l0.006-0.002z"/>
<g fill="none">
<path d="m294.27,274.92c-0.609,2.24-1.628,4.375-3.559,5.803"/>
<path d="m287.96,227.09c-0.304,1.322-2.238,7.325-7.122,10.887"/>
<path d="m295.08,228.21c-1.12,3.562-5.493,22.693-6.309,45.383"/>
<path d="m288.47,280.72c-0.204,2.135-1.322,18.012-1.628,20.756"/>
<path d="m286.03,304.53c-0.509,1.117-2.746,10.375-2.746,18.619"/>
<path d="m315.53,287.23c-0.204,1.933-1.019,15.668,3.561,27.98"/>
<path d="m300.58,229.23c-0.305,2.237-0.813,16.688-0.813,17.806,0,1.117,1.628,2.747,2.441,3.054,0,0-1.628,0.509-1.933,6.003"/>
<path d="m296.2,243.17c-0.308,1.727-1.934,8.547-3.054,11.295"/>
<path d="m306.27,229.03s4.884,1.018,5.188,0c0,0,1.628,29.512,3.866,45.891"/>
<path d="m304.14,232.79c0,1.934-0.609,16.485-0.609,16.485"/>
<path d="m305.97,251.41s1.931,2.745,1.425,4.066"/>
<path d="m289.59,227.4c1.629,0.508,3.053,0.812,3.053,0.812"/>
<path d="m297.83,229.84c-0.307,0.814-0.61,4.58-0.61,4.58"/>
<path d="m305.97,273.29c0.61,0.814,1.425,1.936,0.814,4.377"/>
</g>
<path fill="#9b5f00" d="m284.91,224.45s0-3.256,1.22-4.886c0,0,3.457,0.714,8.342,1.222,4.984,0.508,8.951,0.916,12.615,0.508,3.663-0.406,7.428-1.322,7.428-1.322s1.017,4.784,0.506,5.496c0,0-3.968,0.814-8.341,1.016-4.477,0.303-11.902-0.408-14.445-0.812-3.359-0.408-6.31-1.02-7.325-1.222z"/>
<path fill="#fff" d="m288.06,224.85,0.608-4.883,1.019,0.1-0.203,5.088-1.424-0.305"/>
<path fill="#fff" d="m310.14,220.78,0.103,5.496,1.221-0.206-0.102-5.597-1.222,0.307"/>
<path fill="#fff" d="m294.47,220.78-0.406,5.291h0.713l0.712-5.291h-1.019"/>
<g>
<path d="m276.77,320.81c-0.305,1.322-0.812,3.154-1.018,5.496,0,0.508-0.507,3.256,1.018,3.356,1.12,0.103,1.425-2.849,1.425-2.849s-1.019,3.256,0.305,3.664c1.832,0.403,2.034-3.562,2.034-3.562-0.204,1.119-1.425,3.969,0.306,4.271,1.831,0.307,2.339-3.867,2.339-3.867s-1.525,4.174,0.305,4.275c1.729,0.1,1.729-4.072,1.729-4.072s-0.916,4.988,1.526,4.58c1.321-0.203,1.628-1.934,1.933-2.951,0.406-1.524,1.322-3.457,0.204-6.612-0.812-2.341-0.507-2.951-0.507-2.951s-2.85,2.138-5.087,3.562c-1.019,0.609-6.514-2.34-6.514-2.34z"/>
<path d="m306.48,316.43c-0.508-0.307-0.406,1.832-0.609,2.846-0.103,1.021,0.204,3.257,3.663,3.055,3.355-0.307,6.715-1.018,8.851-0.509,2.137,0.61,5.289,0.711,7.021,0.711,1.729,0,2.849-0.202,3.661-0.509,0.713-0.303,2.238,0.408,2.95,0.408,0.713,0,1.831-1.119,1.73-1.832-0.103-1.324-1.322-1.324-3.054-1.424-1.628-0.203-3.865-0.511-4.983-0.916-1.12-0.408-3.154-1.527-5.698-2.035,0,0-4.883,0.205-5.898,0.205-1.019,0-7.022,0.303-7.634,0z"/>
</g>
</g>
<g fill="none">
<path fill="#ffb366" d="m255.71,189.85c-0.507,0.306-1.12-2.035,0.406-2.951,0,0,0.406-1.931,2.035-2.136,0,0,1.321-1.832,3.257-1.626,0,0,2.235-1.525,3.051-1.324,0.812,0.102,2.849,2.136,2.95,2.85,0.204,0.711,0,1.933-0.511,2.442-0.609,0.608-1.018-0.102-1.119-0.916,0,0,0.407,1.524-0.813,2.135-1.219,0.714-1.119,0.206-1.219-0.61,0,0-0.308,1.63-1.12,1.832-0.814,0.305-1.322-0.408-1.935-0.408,0,0,1.019,0.816,0.307,1.426-0.713,0.508-1.526,0.303-2.036-0.102-0.509-0.508-1.12-1.832-3.257-0.61l0.004-0.002z"/>
<path d="m265.68,186.09c-0.51-1.629-2.137-3.054-4.069-2.848"/>
<path d="m263.85,187.61c-0.306-0.408-0.408-0.816-0.712-1.22-0.916-1.528-2.849-1.424-4.477-1.832"/>
<path d="m261.1,189.14c-0.609-0.406-0.813-1.222-1.425-1.524-1.018-0.408-2.034-0.916-3.255-0.714"/>
</g>
</g>
<g id="black_man" stroke="#000" stroke-width="0.5087">
<path fill="url(#black_skin)" d="m439.14,165.12c0.712-0.306,0.51,0.61,0.61,0.916,0.306,1.321,0.306,2.748,0.813,3.967,0.608,1.119,0.812,1.526,1.83,2.035,1.627,0.916,6.407,3.562,9.767,1.424,0.204-0.101,0.508-0.306,0.712-0.508,0,0-1.221,4.172,2.95,6.207,1.321,0.71,15.668,8.241,15.668,8.241s1.525,2.748,0.609,6.512c-0.204,0.61-0.405,1.118,0.204,1.526,1.019,0.71,2.644,2.748,3.766,6.004,0,0,2.947-1.324,2.947-3.256,0-1.934-1.219-2.951-1.525-4.375-0.202-1.324-1.017-4.682-0.608-5.698,0.405-1.118,2.135-1.526,2.847-1.936,0.714-0.408,1.526,0.406,1.322,1.322-0.102,1.018-0.812,0.816-1.628,1.018,0,0,1.02,1.932,0.814,3.356l9.358,4.783s-1.221,1.629-1.628,2.34c-0.509,0.715-1.425,10.175-4.171,14.653-2.748,4.477-3.663,3.256-4.171,3.866-0.61,0.508-1.424,1.324-2.137,1.934-0.608,0.508-3.764,0.814-4.476-0.916-0.712-1.628-1.221-2.647-3.153-4.174-1.934-1.524-5.9-5.391-5.9-7.123,0,0-2.341,6.719-2.035,12.313,0,0-8.443,1.731-16.176,1.936-7.631,0.102-11.497-1.528-11.497-1.528s-1.018-6.409-0.61-7.631c0,0-1.22,4.172-2.033,5.596-1.118,1.727-2.236,5.291-4.375,5.493-2.236,0.104-3.968-2.135-4.271-3.051v-6.716h-8.646c0-0.101-3.766,1.424-5.087,1.223-1.221-0.105-1.832-1.223-0.813-1.631l0.407-0.303c-1.119,0-2.544,0.71-2.544,0.71h-4.272c0-0.101,0.103-0.408,0.103-0.508,0.307-1.219,2.545-2.24,4.272-2.95,1.628-0.609,3.356-1.324,4.578-1.424,1.933-0.203,3.256-0.101,6.206,0.408,0.812,0.101,3.967,0.408,5.798,1.322,0.508,0.304,1.118,0.405,0.813-0.915-0.305-1.426-1.221-5.598,0.307-8.346,1.018-1.933,0.916-3.559,0.813-5.189-0.204-1.729-1.118-5.598-1.118-7.325,0-5.699,4.375-8.039,8.24-9.262,4.272-1.319,7.121-2.748,6.92-5.288-0.104-2.646,0.608-7.021,0.202-9.058"/>
<g fill="none">
<path fill="url(#black_skin)" d="m456.34,153.63c0.916,3.356,1.12,4.169,1.12,5.291,0,1.219-0.509,1.424-0.104,2.748,0.713,2.441-0.712,5.088-2.441,7.937-0.813,1.32-1.424,3.052-2.746,3.866-3.356,2.135-7.427-0.408-9.563-1.327-1.117-0.505-1.729-1.319-2.033-2.135-0.407-1.219-0.509-2.34-0.813-3.967,0-0.306,0.103-1.219-0.609-0.916-1.22-1.424-1.018-2.034-1.524-3.051-0.509-1.021,0.916-2.139,2.034-1.934-0.61-1.933-0.916-4.072-0.306-5.904,0.204-0.608-0.508-2.235,0.51-1.832,4.577,1.832,9.969,1.426,14.854,1.426,0.404,0,0.71-0.812,1.32-0.71,0.098-0.001,0.2,0.305,0.301,0.508"/>
<path fill="#000" d="m456.75,155.35c0.508-0.406,0.204-2.34-0.306-4.375-0.203-1.017-1.018-1.424-2.136-2.542-1.12-1.122-1.525-1.122-2.236-1.424-0.609-0.206-2.034-0.206-2.746-0.508-0.61-0.308-2.238-0.105-3.766,0.101-2.036,0.304-3.153,0.202-4.679,1.018-1.526,0.814-2.746,1.73-3.256,3.256-0.406,1.118-1.12,2.542-0.814,6.817,0.204,4.272,1.019,3.458,1.019,3.458s1.12-1.628,1.832-0.61c0,0-0.103-2.24-0.305-3.561-0.103-1.222,0-2.748,0.509-4.58,0,0,4.679,1.732,9.054,1.732,3.053,0,7.021-0.306,7.123-1.017l0.71,2.235h-0.003z"/>
<path d="m450.44,160.14c0.61,1.732,0.104,1.222,0.408,2.34"/>
<path d="m440.57,164.51c0,0.812-0.61,0.61-1.019,0.61"/>
<path d="m456.85,158.82c-0.916-0.713-2.645-0.204-3.46,0.102-1.525,0.71-0.712,2.24-0.204,3.664,0.204,0.71,1.02,1.727,0.511,2.441-0.407,0.812-0.713,0.408-1.629,0.51,0.104-0.308-0.812,0-1.117,0-0.61-0.102-0.916,0.403-1.426,0.202-0.608-0.304-0.508-1.22-0.306-1.729"/>
<path d="m449.32,159.53c0-0.403-1.321-0.811-2.745-0.915-2.238-0.102-2.442,0.104-4.172,1.322"/>
<path d="m453.9,168.89c-0.405-0.608-1.018-0.916-2.137-0.405,0-0.204-1.524-0.406-1.524-0.406-0.812,0-1.321,0.303-2.136,0.71"/>
<path d="m453.69,169.4c-0.916-0.609-3.256-0.201-5.596-0.201"/>
<path d="m448.3,170.01c1.73,0.512,3.46,0.816,5.188,0"/>
<path fill="#fff" stroke-width="0.3052" d="m456.44,160.14c-0.712-0.1-1.018-0.916-3.153,0.306-1.119,0.61,1.832,1.426,1.425,1.324,1.22,0.202,1.628-0.508,1.729-1.122-0.001-0.203,0.203-0.508-0.001-0.508z"/>
<path fill="#fff" stroke-width="0.3052" d="m448.1,160.95c0-0.816-1.829-1.119-2.847-0.816-1.019,0.306-0.61,0.105-1.526,0.613,1.02,0.203,0.712,0.303,1.526,0.71,0.914,0.408,1.12,0.814,2.339,0.206,0.306-0.105,0.712-0.508,0.813-0.916-0.101,0.101-0.202,0.203-0.305,0.203z"/>
<path fill="#000" stroke-width="0.3052" d="m455.12,161.36c-0.508,0-0.813-0.406-0.813-0.814,0-0.508,0.307-0.916,0.813-0.916,0.405,0,0.712,0.408,0.712,0.916,0,0.408-0.307,0.814-0.712,0.814z"/>
<path fill="#000" stroke-width="0.3052" d="m446.37,161.56c-0.406,0-0.712-0.403-0.712-0.916,0-0.508,0.403-0.811,0.812-0.811s0.712,0.303,0.712,0.811c0,0.514-0.303,0.916-0.812,0.916z"/>
</g>
<use xlink:href="#body" fill="#730000" transform="matrix(-1,0,0,1,748.81578,0)"/>
<g fill="none">
<path fill="#730000" d="m491.64,193.51c0.508,0.206,1.934-2.033,0.508-3.051,0,0-0.508-1.932-2.136-2.034,0,0-1.322-1.933-3.257-1.63,0,0-2.136-1.524-2.948-1.421-0.916,0.202-2.951,2.237-3.053,2.95-0.102,0.609,0,1.832,0.508,2.441,0.61,0.51,1.02-0.104,1.119-1.02,0,0-0.405,1.529,0.813,2.24,1.221,0.71,1.119,0.1,1.221-0.71,0,0,0.306,1.626,1.12,1.932,0.812,0.303,1.321-0.408,1.934-0.408,0,0-1.018,0.815-0.305,1.324,0.713,0.61,1.525,0.303,2.035-0.104,0.61-0.404,0.306-1.727,2.441-0.509z"/>
<path d="m482.49,189.75c0.506-1.73,2.235-3.153,4.067-2.849"/>
<path d="m484.42,191.28c0.203-0.411,0.305-0.816,0.61-1.224,0.915-1.524,2.948-1.524,4.576-1.832"/>
<path d="m487.06,192.7c0.61-0.408,0.814-1.118,1.426-1.421,1.018-0.512,2.136-0.916,3.256-0.714"/>
<path fill="#730000" stroke="none" d="m482.31,186.77c-0.896,0.716-1.837,1.798-1.906,2.281-0.103,0.61-0.008,1.827,0.5,2.438,0.551,0.461,0.949-0.017,1.095-0.781-0.059,0.463-0.071,1.465,0.844,2,1.22,0.71,1.118,0.095,1.219-0.719,0,0,0.312,1.635,1.125,1.938,0.813,0.306,1.325-0.406,1.938-0.406,0,0-1.026,0.804-0.312,1.312,0.712,0.61,1.522,0.309,2.031-0.094,0.61-0.408,0.3-1.722,2.438-0.5,0.267,0.106,0.804-0.452,1.031-1.156l-7.688-5.531-2.315-0.782z"/>
<path d="m480.68,188.19c-1.502,2.582,0.5,4.132,1.164,2.619-0.193,2.386,1.606,2.292,2.285,1.538,0.658,2.512,1.83,1.395,2.909,1.164-1.223,2.29,1.479,1.609,2.12,1.081,0.924-1.362,1.356-0.277,2.036-0.416l1.164-1.247"/>
<path d="m484.38,187.23c-1.686,0.896-2.512,2.137-2.535,3.699"/>
<path d="m486.71,188.73c-1.687,0.896-2.512,2.137-2.535,3.699"/>
<path d="m489.58,190.68c-1.687,0.897-1.765,1.722-2.493,2.826"/>
</g>
</g>
<g fill="#5ac800">
<path d="m290.1,323.66-0.204-4.68,1.934,1.629,0.508-3.562c0.813-0.206,2.137,1.426,2.137,1.426l-0.204-3.564,2.95,3.257s-0.203-2.748,0.812-4.377c0,0,2.237,1.935,2.237,4.172,0,1.938,1.934-2.748,1.934-2.748,0.509,1.63,1.628,5.19,1.628,5.19l1.321-1.934,1.12,4.07,2.442-3.562,1.931,4.174,4.375-0.307,0.509,2.439,1.933-2.135,2.544,1.627s2.137-0.609,3.256-0.609,2.442,1.426,2.442,1.426,0.813-1.426,1.628-1.938c0.812-0.506,1.935,0.816,2.236,1.63l1.629-2.95s2.137,2.137,2.441,2.95c0,0,0.304-2.44,0.813-3.257,0.51-0.813,1.321,0.307,1.933,1.324l1.322-4.375s1.425,0.303,2.441,1.934c1.117,1.626,1.117-2.441,1.117-2.441s2.441,3.256,3.052,5.493c0,0-16.846,5.784-28.726,4.203-13.983-1.862-25.501-4.507-25.501-4.507"/>
<path d="m405.57,323.15s0.813-2.239,1.935-3.36c0,0,2.136,2.546,2.136,3.36,0,0,0.608-0.305,1.729-1.121l1.628,1.627,1.935-1.32,1.832,1.626,3.356-1.424,1.322,1.424,5.188-0.606,1.933,0.812,1.832-2.341,1.73,1.832,2.746-2.748s1.322,1.118,1.628,1.935c0,0,2.238-1.117,2.747-1.935,0,0,2.136-0.813,2.44,0.509,0,0,1.322-1.018,1.222-2.135-0.102-1.118,1.525-0.307,2.034,1.117,0,0,0.609-2.235,2.236-2.44,0,0,1.118,1.319,0.813,3.767,0,0,2.441-1.938,3.561-2.141,0,0,0.508,2.748-0.305,5.193,0,0,2.543-4.174,3.053-2.748,0.204,0.812,0.814,3.561,0.204,5.492l2.238-1.424,0.812,2.748,2.44-0.509s-14.442,2.212-28.05,0.914c-13.607-1.298-26.376-6.104-26.375-6.104"/>
<path d="m395.51,333.25c0.661-0.408-4.546,10.708-17.17,11.299-17.563,0.823-32.577-7.94-32.577-7.94s1.832-3.051,2.949-3.867c0,0,2.441,1.936,3.256,4.375,0,0,0.306-1.627,1.12-3.051,0,0,3.052,1.422,3.561,3.358,0,0,1.12-1.935,1.934-2.442,0.812-0.612,1.628,2.135,1.628,3.766,0,0,1.932-2.038,3.052-2.139,0,0,2.137,1.017,2.747,4.58,0,0,2.035-1.933,2.746-1.631,0,0,2.442,1.631,1.83,3.867-0.304,1.223,2.442-1.421,5.801-2.236l2.949,2.236s2.746-3.66,3.561-4.885c0,0,2.238,0.816,2.238,2.141,0,0,1.019-3.869,1.832-4.275,0.812-0.508,1.931,1.22,1.931,2.342,0,0,0.307-2.952,1.935-3.562,0,0,1.628,1.118,1.628,2.24-0.003-0.002,1.726-3.36,3.049-4.176z"/>
</g>
<g stroke-width="0.5087" stroke="#060" fill="none">
<path d="m290.1,323.66-0.204-4.68,1.934,1.629,0.508-3.562c0.813-0.203,2.137,1.426,2.137,1.426l-0.204-3.561,2.95,3.256s-0.203-2.748,0.812-4.375c0,0,2.237,1.934,2.237,4.172,0,1.936,1.934-2.748,1.934-2.748,0.509,1.631,1.628,5.191,1.628,5.191l1.321-1.936,1.119,4.069,2.441-3.56,1.933,4.172,4.375-0.307,0.509,2.443,1.933-2.137,2.544,1.629s2.135-0.609,3.255-0.609,2.442,1.422,2.442,1.422,0.812-1.422,1.628-1.931c0.812-0.509,1.933,0.812,2.235,1.626l1.629-2.949s2.137,2.137,2.441,2.949c0,0,0.305-2.439,0.814-3.256,0.51-0.812,1.321,0.307,1.933,1.324l1.322-4.375s1.424,0.303,2.44,1.933c1.12,1.626,1.12-2.444,1.12-2.444s2.44,3.258,3.054,5.495"/>
<path d="m405.57,323.15s0.812-2.235,1.933-3.356c0,0,2.136,2.545,2.136,3.356,0,0,0.61-0.305,1.73-1.117l1.628,1.626,1.933-1.32,1.832,1.627,3.358-1.424,1.319,1.424,5.188-0.608,1.935,0.812,1.83-2.337,1.73,1.828,2.746-2.744s1.322,1.115,1.628,1.932c0,0,2.238-1.119,2.747-1.932,0,0,2.135-0.814,2.439,0.505,0,0,1.322-1.017,1.221-2.135-0.103-1.118,1.525-0.304,2.034,1.122,0,0,0.609-2.24,2.238-2.445,0,0,1.118,1.323,0.812,3.766,0,0,2.441-1.932,3.561-2.137,0,0,0.509,2.745-0.304,5.189,0,0,2.544-4.172,3.052-2.747,0.204,0.812,0.814,3.562,0.204,5.493l2.238-1.424,0.813,2.748,2.44-0.51"/>
<path d="m345.68,336.63s1.832-3.051,2.949-3.866c0,0,2.442,1.934,3.256,4.375,0,0,0.308-1.627,1.12-3.051,0,0,3.053,1.42,3.561,3.357,0,0,1.12-1.934,1.934-2.441,0.813-0.613,1.628,2.135,1.628,3.764,0,0,1.933-2.037,3.053-2.138,0,0,2.136,1.017,2.746,4.58,0,0,2.036-1.933,2.746-1.63,0,0,2.442,1.63,1.831,3.867-0.305,1.221,2.442-1.422,5.8-2.237l2.949,2.237s2.746-3.662,3.561-4.885c0,0,2.238,0.814,2.238,2.139,0,0,1.019-3.869,1.832-4.273,0.812-0.508,1.931,1.219,1.931,2.34,0,0,0.307-2.951,1.936-3.562,0,0,1.628,1.118,1.628,2.239,0,0,1.729-3.356,3.052-4.174"/>
</g>
</g>
<g id="motto">
<g fill="#fff">
<path d="m374.44,376.98c22.892,0.205,36.424-8.141,43.851-13.127,17.396-11.699,21.059-12.107,23.908-11.906,3.257,0.309,8.035,1.427,8.24,4.277,0.306,4.375-6.815,6.307-10.886,6.307-4.17,0-15.058-2.748-15.058-2.748l-2.85,1.936c1.934,0.916,24.215,8.342,28.488,1.323,4.372-7.122,8.749-18.622,8.749-18.622s-4.883-8.751-15.771-8.751c-10.987,0-21.671,6.922-28.791,12.106-7.123,5.19-16.074,12.312-39.883,12.312-23.807,0-32.86-7.122-39.981-12.312-7.121-5.188-17.805-12.106-28.689-12.106-10.987,0-15.872,8.751-15.872,8.751s4.374,11.5,8.749,18.622c4.272,7.019,26.555-0.407,28.485-1.323l-2.746-1.936s-10.987,2.748-15.058,2.748c-4.171,0-11.293-1.932-10.987-6.307,0.204-2.85,4.984-3.97,8.241-4.277,2.848-0.201,6.511,0.207,23.907,11.906,7.431,4.986,20.962,13.025,43.954,13.127"/>
<path d="m337.61,350.01s0-1.938-0.308-4.783c-0.406-3.664-2.542-4.58-4.271-4.071-1.118,0.403-3.356,3.155-3.356,3.155v0.103c-1.018-0.715-2.034-1.323-3.154-1.935,0.814-0.916,5.494-3.764,6.613-3.764,1.019,0,15.058,5.697,19.532,9.562,1.12,1.021,1.935,7.328,1.322,9.361-7.528-1.933-12.411-4.781-16.381-7.529v-0.102"/>
<path d="m330.89,364.26s-3.053,3.051-3.153,8.648c-0.104,6.613,4.68,6.92,7.833,6.816,3.765-0.104,6.815-2.238,6.715-9.259,0,0-6.207-2.647-11.396-6.207"/>
<path d="m411.17,350.01s0.103-1.938,0.408-4.783c0.403-3.664,2.44-4.58,4.17-4.071,1.119,0.403,3.356,3.155,3.356,3.155v0.103c1.017-0.715,2.032-1.323,3.152-1.935-0.812-0.916-5.491-3.764-6.51-3.764-1.118,0-15.157,5.697-19.634,9.562-1.02,1.021-1.832,7.328-1.322,9.361,7.631-1.933,12.411-4.781,16.38-7.529v-0.102"/>
<path d="m417.88,364.26s3.053,3.051,3.154,8.648c0.204,6.613-4.682,6.92-7.833,6.816-3.766-0.104-6.715-2.238-6.715-9.259,0,0,6.207-2.647,11.396-6.207"/>
</g>
<g fill="#69f">
<path d="m324.28,359.78s-10.887,2.748-14.956,2.748c-4.17,0-11.293-1.93-10.987-6.308,0.204-2.85,4.985-3.967,8.241-4.272,2.441-0.207,5.595,0.101,17.702,7.832"/>
<path d="m424.5,359.78s10.885,2.748,15.058,2.748c4.07,0,11.191-1.93,10.885-6.308-0.202-2.85-4.983-3.967-8.239-4.272-2.444-0.207-5.598,0.101-17.704,7.832"/>
<path d="m337.61,350.11c-1.119-0.814-2.238-1.631-3.258-2.441-1.525-1.121-3.052-2.139-4.681-3.256,0,0,2.238-2.85,3.357-3.156,1.729-0.609,3.865,0.303,4.271,3.967,0.306,2.85,0.306,4.887,0.306,4.887"/>
<path d="m330.18,378.81c1.936,1.121,4.07,1.02,5.394,0.916,3.765-0.102,6.816-2.238,6.715-9.258,0,0,4.678,2.34,12.309,4.172,0,0,1.222,1.525,1.424,4.576,0.308,2.547-1.424,5.291-3.457,5.09,0,0-10.683-1.934-17.192-3.051-3.766-0.711-5.189-2.443-5.189-2.443"/>
<path d="m411.17,350.11c1.118-0.814,2.238-1.631,3.355-2.441,1.426-1.121,2.95-2.139,4.579-3.256,0,0-2.237-2.85-3.356-3.156-1.729-0.609-3.765,0.303-4.17,3.967-0.307,2.847-0.408,4.886-0.408,4.886"/>
<path d="m418.59,378.81c-1.933,1.121-4.07,1.02-5.393,0.916-3.765-0.102-6.715-2.238-6.715-9.258,0,0-4.681,2.34-12.209,4.172,0,0-1.322,1.525-1.526,4.576-0.204,2.547,1.526,5.291,3.459,5.09,0,0,10.783-1.934,17.193-3.051,3.765-0.711,5.188-2.443,5.188-2.443"/>
</g>
<g fill="none" stroke="#000" stroke-width="0.7122">
<path d="m374.44,376.98c22.893,0.203,36.424-8.143,43.851-13.127,17.396-11.701,21.059-12.106,23.907-11.904,3.257,0.305,8.039,1.425,8.24,4.273,0.307,4.375-6.815,6.307-10.887,6.307-4.17,0-15.057-2.743-15.057-2.743l-2.848,1.934c1.934,0.916,24.212,8.343,28.485,1.32,4.375-7.122,8.748-18.619,8.748-18.619s-4.883-8.754-15.77-8.754c-10.986,0-21.669,6.922-28.792,12.11-7.121,5.189-16.072,12.312-39.881,12.312-23.807,0-32.859-7.123-39.981-12.312-7.121-5.188-17.806-12.11-28.69-12.11-10.986,0-15.87,8.754-15.87,8.754s4.373,11.497,8.749,18.619c4.273,7.021,26.555-0.404,28.486-1.32l-2.745-1.934s-10.989,2.743-15.056,2.743c-4.173,0-11.294-1.928-10.989-6.307,0.204-2.85,4.984-3.967,8.241-4.273,2.847-0.202,6.509,0.205,23.907,11.904,7.429,4.988,20.96,13.027,43.952,13.127z"/>
<path d="m324.28,359.78s-10.888,2.748-14.954,2.748c-4.172,0-11.293-1.933-10.989-6.308,0.204-2.85,4.985-3.97,8.241-4.272,2.439-0.207,5.595,0.101,17.702,7.832z"/>
<path d="m424.49,359.78s10.887,2.748,15.058,2.748c4.069,0,11.191-1.933,10.886-6.308-0.204-2.85-4.983-3.97-8.238-4.272-2.442-0.207-5.598,0.102-17.702,7.832h-0.004z"/>
<path d="m337.61,350.11c-1.12-0.814-2.238-1.631-3.258-2.441-1.523-1.121-3.051-2.139-4.679-3.256,0,0,2.238-2.85,3.356-3.156,1.729-0.609,3.865,0.303,4.271,3.971,0.31,2.843,0.31,4.882,0.31,4.882z"/>
<path d="m337.61,350.01s0-1.936-0.308-4.783c-0.404-3.664-2.542-4.58-4.271-4.071-1.12,0.407-3.358,3.155-3.358,3.155v0.103c-1.018-0.712-2.036-1.323-3.154-1.935,0.814-0.916,5.494-3.764,6.614-3.764,1.02,0,15.057,5.697,19.533,9.565,1.12,1.019,1.933,7.325,1.322,9.362-7.529-1.937-12.413-4.785-16.383-7.53"/>
<path d="m330.89,364.26s-3.051,3.051-3.152,8.648c-0.103,6.609,4.679,6.918,7.833,6.816,3.765-0.104,6.814-2.238,6.717-9.263,0,0-6.207-2.646-11.396-6.207l-0.002,0.006z"/>
<path d="m333.44,365.78s-2.439,2.543-2.847,6.715c-0.204,3.257,1.932,5.086,4.679,4.883,3.866-0.201,5.394-5.492,3.562-8.443l-5.394-3.155"/>
<path d="m330.18,378.81c1.934,1.119,4.068,1.018,5.392,0.916,3.765-0.104,6.814-2.24,6.717-9.26,0,0,4.679,2.34,12.31,4.172,0,0,1.222,1.525,1.423,4.58,0.307,2.543-1.423,5.291-3.456,5.086,0,0-10.685-1.934-17.194-3.051-3.768-0.715-5.192-2.443-5.192-2.443z"/>
<path d="m411.17,350.11c1.12-0.814,2.238-1.631,3.357-2.441,1.425-1.121,2.95-2.139,4.578-3.256,0,0-2.237-2.85-3.357-3.156-1.729-0.609-3.765,0.303-4.17,3.971-0.306,2.846-0.406,4.883-0.406,4.883h-0.002v-0.001z"/>
<path d="m411.17,350.01s0.103-1.936,0.408-4.783c0.405-3.664,2.44-4.58,4.17-4.071,1.12,0.407,3.356,3.155,3.356,3.155v0.103c1.019-0.712,2.035-1.323,3.154-1.935-0.814-0.916-5.493-3.764-6.512-3.764-1.119,0-15.157,5.697-19.634,9.565-1.02,1.019-1.832,7.325-1.322,9.362,7.631-1.937,12.411-4.785,16.38-7.53"/>
<path d="m417.88,364.26s3.053,3.051,3.154,8.648c0.204,6.609-4.682,6.918-7.835,6.816-3.764-0.104-6.713-2.238-6.713-9.263,0,0,6.205-2.646,11.394-6.207v0.006z"/>
<path d="m415.34,365.78s2.442,2.543,2.849,6.715c0.307,3.257-1.935,5.086-4.681,4.883-3.865-0.201-5.289-5.492-3.561-8.443l5.393-3.155"/>
<path d="m418.59,378.81c-1.933,1.119-4.07,1.018-5.393,0.916-3.764-0.104-6.713-2.24-6.713-9.26,0,0-4.682,2.34-12.208,4.172,0,0-1.322,1.525-1.526,4.58-0.203,2.543,1.526,5.291,3.459,5.086,0,0,10.785-1.934,17.192-3.051,3.766-0.715,5.189-2.443,5.189-2.443z"/>
</g>
<g fill="none" stroke="#fff" stroke-width="0.7123">
<path d="m353.79,376.47s3.357,2.445-0.712,5.496"/>
<path d="m343.72,374.84,10.275,4.478"/>
<path d="m345.44,377.18,7.526,3.254"/>
<path d="m348.09,375.25,5.697,2.547"/>
<path d="m395.09,376.47s-3.46,2.445,0.61,5.496"/>
<path d="m405.06,374.84-10.276,4.478"/>
<path d="m403.43,377.18-7.527,3.254"/>
<path d="m400.69,375.25-5.596,2.547"/>
</g>
<g fill="#000" stroke="#000" stroke-width="0.7">
<path d="m313.56,345.17c0.146,0.236,0.239,0.48301,0.285,0.736,0.039,0.25801,0.029,0.54701-0.03,0.865-0.145,0.756-0.55,1.322-1.206,1.712-0.66,0.38801-1.417,0.495-2.254,0.33501-0.389-0.072-0.771-0.20601-1.132-0.40201-0.362-0.18999-0.675-0.395-0.924-0.619-0.112,0.13201-0.23,0.259-0.348,0.392-0.163-0.03-0.326-0.062-0.488-0.093,0.157-0.985,0.312-1.971,0.475-2.954,0.161,0.03,0.327,0.062,0.495,0.096,0.031,0.382,0.093,0.728,0.174,1.048,0.076,0.32101,0.208,0.623,0.384,0.924,0.167,0.276,0.378,0.516,0.639,0.709,0.255,0.194,0.572,0.33,0.946,0.399,0.282,0.056,0.534,0.065,0.763,0.031,0.221-0.034,0.415-0.101,0.565-0.211,0.153-0.109,0.284-0.248,0.384-0.416,0.096-0.164,0.165-0.36,0.211-0.601,0.064-0.344,0.023-0.68-0.112-1.014-0.135-0.336-0.393-0.613-0.748-0.839-0.241-0.153-0.528-0.331-0.846-0.524-0.319-0.195-0.593-0.361-0.821-0.527-0.445-0.311-0.777-0.661-0.976-1.073-0.204-0.403-0.257-0.88799-0.148-1.457,0.062-0.325,0.188-0.612,0.377-0.871,0.188-0.26199,0.428-0.46899,0.719-0.646,0.277-0.172,0.588-0.27499,0.935-0.338,0.345-0.054,0.694-0.049,1.043,0.018,0.398,0.074,0.751,0.205,1.043,0.386,0.29,0.183,0.557,0.372,0.785,0.587,0.109-0.119,0.221-0.24,0.329-0.361,0.165,0.031,0.325,0.062,0.491,0.095-0.165,0.95-0.328,1.903-0.493,2.854-0.165-0.033-0.33-0.063-0.498-0.096-0.026-0.343-0.067-0.674-0.119-0.994-0.06-0.318-0.158-0.617-0.288-0.893-0.13-0.271-0.312-0.497-0.536-0.684-0.222-0.189-0.523-0.314-0.894-0.386-0.385-0.073-0.741-0.017-1.062,0.183-0.318,0.199-0.515,0.465-0.582,0.82-0.069,0.368-0.038,0.692,0.092,0.971,0.126,0.281,0.344,0.526,0.649,0.748,0.271,0.201,0.545,0.373,0.814,0.533,0.267,0.159,0.52,0.319,0.769,0.489,0.224,0.149,0.444,0.312,0.644,0.492,0.194,0.175,0.364,0.369,0.494,0.576"/>
<path d="m326.04,346.92c-0.105-0.053-0.268-0.11199-0.484-0.182-0.217-0.07-0.406-0.10399-0.579-0.088-0.17,0.014-0.348,0.139-0.537,0.369-0.191,0.232-0.392,0.53699-0.596,0.91-0.611,1.107-1.224,2.215-1.834,3.324-0.234,0.422-0.526,0.74-0.878,0.955-0.351,0.21699-0.729,0.34-1.129,0.38099-0.396,0.041-0.772,0.008-1.14-0.078-0.368-0.098-0.695-0.22299-0.985-0.38299-0.463-0.256-0.849-0.541-1.146-0.863-0.297-0.328-0.52-0.656-0.647-0.998-0.131-0.342-0.186-0.678-0.161-1.012,0.021-0.332,0.113-0.639,0.271-0.924,0.831-1.508,1.663-3.015,2.494-4.521,0.067-0.125,0.103-0.246,0.113-0.354,0.002-0.102-0.045-0.229-0.129-0.371-0.066-0.102-0.156-0.207-0.28-0.317-0.129-0.104-0.229-0.188-0.32-0.246,0.069-0.127,0.141-0.256,0.21-0.382,1.078,0.595,2.151,1.188,3.228,1.779-0.069,0.127-0.142,0.257-0.211,0.382-0.105-0.054-0.24-0.103-0.409-0.161-0.171-0.062-0.302-0.098-0.388-0.109-0.147-0.023-0.271,0-0.365,0.082-0.1,0.079-0.181,0.172-0.245,0.291-0.777,1.408-1.556,2.816-2.332,4.225-0.112,0.205-0.208,0.433-0.281,0.68-0.083,0.249-0.107,0.51-0.081,0.777,0.029,0.279,0.139,0.539,0.313,0.799,0.176,0.26,0.478,0.508,0.902,0.742,0.396,0.22,0.771,0.345,1.111,0.371,0.337,0.021,0.642-0.021,0.912-0.14,0.252-0.112,0.475-0.256,0.649-0.435,0.178-0.178,0.327-0.375,0.445-0.588,0.578-1.049,1.153-2.092,1.73-3.137,0.221-0.4,0.374-0.742,0.453-1.029,0.083-0.286,0.086-0.491,0.019-0.637-0.072-0.162-0.213-0.328-0.401-0.496-0.195-0.172-0.349-0.299-0.462-0.367,0.07-0.127,0.142-0.256,0.211-0.381,1.056,0.582,2.111,1.164,3.169,1.748-0.069,0.13-0.139,0.257-0.21,0.384"/>
<path d="m330.53,354.69c0.135,0.278,0.214,0.58299,0.219,0.90599,0.006,0.326-0.087,0.662-0.287,1.01-0.201,0.35-0.452,0.611-0.76,0.783-0.304,0.174-0.629,0.264-0.975,0.289-0.337,0.031-0.677-0.006-1.029-0.094-0.356-0.094-0.696-0.23-1.021-0.41601-1.211-0.697-2.423-1.396-3.631-2.092,0.073-0.12699,0.146-0.254,0.219-0.379,0.09,0.045,0.222,0.1,0.404,0.17001,0.181,0.073,0.314,0.11299,0.402,0.125,0.142,0.018,0.257-0.011,0.356-0.066,0.093-0.055,0.176-0.146,0.253-0.279,1.044-1.812,2.088-3.627,3.132-5.439,0.069-0.12301,0.11-0.239,0.125-0.354,0.009-0.11501-0.031-0.236-0.119-0.367-0.077-0.115-0.174-0.227-0.292-0.332-0.12-0.104-0.216-0.188-0.305-0.246,0.071-0.125,0.146-0.252,0.218-0.377,1.178,0.67799,2.358,1.357,3.54,2.039,0.274,0.15801,0.521,0.33401,0.743,0.53101,0.216,0.199,0.401,0.43,0.551,0.693,0.14,0.24799,0.223,0.52099,0.231,0.80999,0.009,0.29201-0.065,0.59501-0.241,0.899-0.152,0.264-0.339,0.471-0.556,0.621-0.215,0.15601-0.457,0.254-0.721,0.303-0.251,0.051-0.505,0.055-0.773,0.029-0.273-0.02-0.548-0.08-0.828-0.172-0.01,0.017-0.02,0.032-0.028,0.049,0.207,0.156,0.422,0.348,0.647,0.586,0.224,0.245,0.403,0.499,0.526,0.77zm-0.652-1.894c0.226-0.078,0.412-0.188,0.568-0.34001,0.152-0.15199,0.305-0.34899,0.45-0.601,0.237-0.41499,0.309-0.808,0.217-1.18-0.09-0.375-0.39-0.69901-0.886-0.985-0.114-0.064-0.261-0.14801-0.437-0.24401-0.181-0.099-0.329-0.178-0.442-0.236-0.562,0.973-1.119,1.941-1.679,2.912,0.227,0.131,0.451,0.26,0.681,0.392,0.298,0.172,0.571,0.28,0.824,0.327,0.256,0.044,0.489,0.035,0.704-0.045zm-0.637,2.847c0.257-0.445,0.312-0.898,0.179-1.363-0.136-0.467-0.491-0.857-1.061-1.186-0.23-0.13301-0.427-0.245-0.584-0.33001-0.16-0.086-0.281-0.148-0.363-0.19099-0.514,0.894-1.023,1.779-1.536,2.668-0.128,0.223-0.136,0.446-0.019,0.664,0.117,0.21899,0.34,0.422,0.671,0.611,0.533,0.309,1.035,0.39599,1.498,0.25,0.464-0.15201,0.866-0.51701,1.215-1.123z"/>
<path d="m348.94,360.14c-0.111-0.041-0.275-0.086-0.499-0.13199-0.222-0.048-0.416-0.062-0.585-0.03-0.167,0.031-0.331,0.174-0.498,0.422-0.167,0.25-0.334,0.574-0.502,0.965-0.498,1.164-0.996,2.326-1.494,3.49-0.19,0.443-0.45,0.789-0.777,1.039-0.327,0.248-0.692,0.408-1.086,0.49-0.392,0.08-0.769,0.084-1.142,0.033-0.376-0.059-0.716-0.151-1.02-0.281-0.485-0.207-0.897-0.454-1.226-0.746-0.328-0.297-0.581-0.6-0.744-0.928-0.163-0.326-0.252-0.654-0.26-0.99-0.013-0.333,0.046-0.648,0.174-0.948,0.678-1.581,1.355-3.163,2.033-4.745,0.056-0.13,0.079-0.254,0.08-0.361-0.009-0.102-0.066-0.225-0.165-0.356-0.076-0.094-0.176-0.188-0.313-0.289-0.137-0.09-0.244-0.165-0.341-0.213,0.058-0.133,0.114-0.269,0.171-0.399,1.129,0.483,2.259,0.967,3.389,1.451-0.058,0.133-0.114,0.268-0.173,0.399-0.109-0.042-0.249-0.078-0.423-0.12-0.176-0.044-0.31-0.064-0.396-0.07-0.15-0.01-0.27,0.026-0.356,0.117-0.09,0.09-0.161,0.189-0.215,0.314-0.633,1.479-1.267,2.957-1.898,4.437-0.093,0.214-0.165,0.449-0.216,0.701-0.057,0.258-0.055,0.521-0.001,0.784,0.058,0.273,0.191,0.521,0.392,0.763,0.201,0.24,0.524,0.458,0.971,0.647,0.418,0.181,0.804,0.267,1.146,0.259,0.335-0.013,0.636-0.082,0.891-0.229,0.239-0.139,0.449-0.301,0.606-0.496,0.157-0.192,0.288-0.404,0.385-0.629,0.471-1.1,0.939-2.195,1.409-3.293,0.181-0.42,0.299-0.775,0.351-1.068,0.051-0.295,0.036-0.498-0.046-0.635-0.091-0.156-0.244-0.307-0.449-0.455-0.215-0.152-0.377-0.264-0.495-0.319,0.057-0.134,0.114-0.269,0.171-0.399,1.107,0.475,2.218,0.949,3.325,1.424-0.06,0.129-0.118,0.263-0.174,0.396"/>
<path d="m358.51,371.38c-1.251-0.361-2.504-0.725-3.755-1.086,0.041-0.14101,0.082-0.28101,0.122-0.42001,0.139,0.033,0.315,0.07,0.537,0.109,0.217,0.034,0.376,0.045,0.469,0.028,0.146-0.045,0.262-0.099,0.349-0.18299,0.08-0.078,0.147-0.188,0.189-0.33601,0.588-2.033,1.176-4.065,1.765-6.102-0.033-0.01-0.062-0.018-0.092-0.025-1.642,2.113-3.323,4.195-4.968,6.31-0.098-0.028-0.195-0.058-0.298-0.086-0.2-2.699-0.453-5.396-0.653-8.093-0.024-0.008-0.053-0.017-0.077-0.022-0.482,1.668-0.966,3.336-1.447,5.008-0.141,0.482-0.215,0.854-0.225,1.132-0.015,0.27101,0.032,0.477,0.124,0.625,0.063,0.11,0.225,0.23701,0.479,0.395,0.253,0.156,0.422,0.244,0.504,0.273-0.04,0.139-0.081,0.278-0.122,0.42001-1.142-0.33001-2.286-0.66001-3.432-0.99,0.041-0.14301,0.082-0.283,0.122-0.42201,0.185,0.033,0.385,0.062,0.595,0.074,0.209,0.017,0.378-0.002,0.514-0.062,0.169-0.073,0.312-0.207,0.436-0.42599,0.116-0.21301,0.252-0.58601,0.406-1.121,0.413-1.43,0.827-2.863,1.24-4.293,0.072-0.24801,0.101-0.457,0.087-0.63301-0.014-0.18099-0.062-0.32399-0.146-0.461-0.096-0.145-0.226-0.26299-0.388-0.36699-0.165-0.10801-0.337-0.188-0.51-0.24401,0.04-0.139,0.081-0.279,0.121-0.418,0.966,0.279,1.929,0.557,2.894,0.836,0.19,2.336,0.432,4.669,0.62,7.007,1.188-1.563,2.41-3.103,3.6-4.667,0.133-0.173,0.261-0.35401,0.374-0.55501,0.112-0.19099,0.182-0.324,0.208-0.39699,0.923,0.26699,1.85,0.534,2.771,0.802-0.04,0.139-0.081,0.279-0.121,0.418-0.114-0.027-0.258-0.047-0.439-0.068s-0.322-0.029-0.409-0.023c-0.15,0.01-0.264,0.061-0.344,0.159-0.078,0.101-0.138,0.20799-0.175,0.33899-0.583,2.018-1.166,4.032-1.748,6.049-0.039,0.135-0.049,0.26-0.03,0.368,0.021,0.109,0.089,0.21601,0.203,0.328,0.062,0.062,0.179,0.133,0.354,0.218,0.176,0.09,0.312,0.147,0.42,0.186-0.042,0.134-0.083,0.275-0.124,0.416"/>
<path d="m367.6,368.62c0.23,0.205,0.423,0.455,0.553,0.75201,0.129,0.29899,0.179,0.64499,0.128,1.041-0.05,0.4-0.187,0.73801-0.397,1.018-0.216,0.275-0.479,0.484-0.786,0.645-0.302,0.158-0.632,0.256-0.988,0.312-0.364,0.051-0.729,0.057-1.102,0.01-1.386-0.174-2.771-0.349-4.156-0.522,0.018-0.146,0.035-0.291,0.054-0.435,0.101,0.007,0.243,0.007,0.439,0,0.193-0.002,0.336-0.017,0.422-0.041,0.136-0.039,0.233-0.106,0.301-0.198,0.063-0.086,0.107-0.201,0.127-0.355,0.262-2.075,0.521-4.15,0.783-6.227,0.019-0.14199,0.005-0.26699-0.021-0.375-0.037-0.10899-0.12-0.20499-0.252-0.293-0.118-0.076-0.248-0.14199-0.396-0.19099-0.153-0.051-0.272-0.092-0.376-0.10901,0.018-0.14499,0.035-0.289,0.054-0.43399,1.35,0.16999,2.701,0.341,4.054,0.51099,0.312,0.04,0.606,0.106,0.893,0.20401,0.275,0.1,0.533,0.23799,0.772,0.42599,0.223,0.173,0.409,0.39301,0.529,0.65601,0.121,0.266,0.164,0.572,0.12,0.922-0.038,0.303-0.129,0.56599-0.267,0.788-0.141,0.228-0.324,0.411-0.548,0.56-0.211,0.143-0.448,0.244-0.701,0.326-0.263,0.088-0.538,0.137-0.83,0.162-0.003,0.018-0.006,0.037-0.009,0.055,0.25,0.064,0.521,0.157,0.823,0.289,0.296,0.136,0.56,0.302,0.777,0.503zm-1.334-1.494c0.177-0.158,0.31-0.334,0.396-0.533,0.081-0.198,0.144-0.438,0.18-0.729,0.061-0.475-0.025-0.861-0.256-1.172-0.229-0.311-0.627-0.492-1.198-0.564-0.128-0.016-0.298-0.037-0.493-0.058-0.207-0.021-0.372-0.036-0.507-0.048-0.14,1.113-0.278,2.225-0.419,3.336,0.262,0.032,0.521,0.064,0.78,0.098,0.339,0.043,0.637,0.037,0.891-0.018,0.248-0.056,0.457-0.158,0.626-0.312zm0.514,2.873c0.063-0.513-0.06-0.951-0.36-1.328-0.308-0.377-0.786-0.6-1.437-0.682-0.267-0.033-0.487-0.061-0.668-0.078-0.183-0.019-0.317-0.029-0.412-0.037-0.129,1.021-0.256,2.037-0.384,3.056-0.032,0.254,0.05,0.46399,0.241,0.62,0.192,0.15599,0.479,0.25699,0.855,0.30399,0.613,0.078,1.106-0.035,1.476-0.351,0.372-0.321,0.602-0.814,0.689-1.504z"/>
<path d="m378.69,372.75h-2.387c-0.519-0.82499-1.005-1.518-1.423-2.119-0.427-0.598-0.896-1.199-1.392-1.838h-0.905v2.769c0,0.142,0.026,0.271,0.068,0.374,0.045,0.111,0.145,0.195,0.295,0.25401,0.073,0.029,0.205,0.053,0.392,0.08,0.188,0.023,0.346,0.037,0.475,0.043v0.438h-3.74v-0.438c0.098-0.006,0.242-0.023,0.437-0.043,0.188-0.021,0.318-0.051,0.393-0.08,0.124-0.057,0.219-0.12901,0.272-0.23401,0.06-0.10399,0.082-0.23199,0.082-0.394v-6.313c0-0.139-0.019-0.27-0.061-0.38299-0.045-0.10801-0.14-0.19401-0.295-0.25-0.104-0.037-0.236-0.076-0.405-0.104-0.168-0.028-0.305-0.052-0.423-0.056v-0.437h4.085c0.373,0,0.723,0.034,1.055,0.11,0.329,0.082,0.623,0.199,0.89,0.371,0.255,0.166,0.466,0.371,0.617,0.639,0.152,0.264,0.231,0.584,0.231,0.959,0,0.34-0.053,0.633-0.155,0.893-0.104,0.26-0.26,0.47899-0.463,0.67-0.184,0.183-0.413,0.324-0.673,0.457-0.261,0.129-0.55,0.238-0.865,0.332,0.43,0.574,0.803,1.047,1.091,1.438,0.282,0.39,0.647,0.85801,1.059,1.421,0.182,0.249,0.353,0.42599,0.5,0.54199,0.145,0.121,0.295,0.21401,0.437,0.29101,0.105,0.058,0.244,0.093,0.405,0.12099,0.163,0.03,0.3,0.045,0.405,0.051-0.002,0.143-0.002,0.289-0.002,0.436zm-3.28-6.506c0-0.528-0.16-0.942-0.46-1.26-0.303-0.311-0.742-0.463-1.303-0.463h-1.062v3.742h0.818c0.573,0,1.058-0.173,1.434-0.542,0.375-0.36799,0.573-0.85399,0.573-1.477z"/>
<path d="m388.88,372.1c-1.223,0.094-2.443,0.18599-3.669,0.279-0.012-0.14601-0.022-0.293-0.033-0.438,0.323-0.043,0.588-0.104,0.802-0.18401,0.205-0.08,0.307-0.15999,0.3-0.251-0.003-0.037-0.015-0.079-0.023-0.13499-0.013-0.057-0.024-0.096-0.048-0.13901-0.288-0.63299-0.592-1.261-0.882-1.895-1.034,0.078-2.063,0.156-3.098,0.234-0.095,0.297-0.172,0.549-0.223,0.771-0.057,0.22199-0.111,0.421-0.153,0.604-0.041,0.182-0.07,0.323-0.08,0.438-0.01,0.11299-0.018,0.203-0.011,0.271,0.012,0.16399,0.151,0.276,0.42,0.35099,0.269,0.073,0.565,0.099,0.897,0.093,0.011,0.145,0.022,0.29,0.033,0.438-1.106,0.084-2.216,0.168-3.323,0.252-0.011-0.146-0.021-0.293-0.033-0.438,0.107-0.014,0.239-0.047,0.398-0.102,0.159-0.053,0.287-0.111,0.387-0.187,0.159-0.125,0.276-0.248,0.359-0.381,0.085-0.124,0.159-0.293,0.229-0.517,0.351-1.127,0.767-2.387,1.188-3.793,0.421-1.403,0.824-2.651,1.153-3.746,0.165-0.012,0.33-0.024,0.498-0.036,1.152,2.437,2.354,4.848,3.511,7.282,0.073,0.156,0.156,0.277,0.24,0.373,0.089,0.094,0.202,0.181,0.352,0.261,0.099,0.052,0.226,0.09,0.384,0.114,0.158,0.031,0.285,0.041,0.392,0.037,0.012,0.151,0.023,0.298,0.033,0.444zm-3.818-3.292c-0.523-1.091-1.07-2.175-1.596-3.271-0.344,1.162-0.715,2.314-1.062,3.473,0.887-0.068,1.77-0.134,2.658-0.202z"/>
<path d="m401.43,361.92c-0.147,0.039-0.301,0.08-0.446,0.121-0.172-0.293-0.439-0.573-0.801-0.862-0.361-0.285-0.674-0.41-0.928-0.382-0.131,0.021-0.281,0.045-0.45,0.084-0.175,0.043-0.368,0.09-0.588,0.148-0.478,0.12901-0.953,0.26-1.432,0.389,0.307,1.129,0.612,2.259,0.918,3.384,0.324-0.089,0.654-0.179,0.979-0.26701,0.295-0.08,0.525-0.17,0.671-0.28099,0.141-0.10401,0.263-0.23701,0.341-0.39301,0.056-0.11299,0.096-0.27,0.111-0.47299,0.017-0.198,0.01-0.40601-0.027-0.62301,0.152-0.042,0.305-0.083,0.451-0.12299,0.301,1.109,0.601,2.213,0.898,3.316-0.146,0.039-0.299,0.08-0.45,0.12301-0.058-0.16801-0.157-0.35701-0.283-0.56201-0.136-0.2-0.256-0.34-0.363-0.416-0.157-0.118-0.338-0.18-0.529-0.185-0.202-0.006-0.428,0.033-0.687,0.104-0.325,0.089-0.655,0.179-0.979,0.267,0.264,0.969,0.524,1.934,0.787,2.902,0.035,0.129,0.094,0.241,0.178,0.329,0.077,0.089,0.189,0.142,0.341,0.173,0.068,0.016,0.21,0.01,0.418-0.009,0.209-0.012,0.37-0.039,0.474-0.062,0.037,0.14,0.077,0.283,0.114,0.423-1.233,0.334-2.467,0.67-3.701,1.004-0.037-0.14-0.077-0.283-0.114-0.423,0.12-0.038,0.278-0.098,0.472-0.172,0.191-0.075,0.319-0.127,0.373-0.174,0.106-0.084,0.178-0.188,0.201-0.299,0.023-0.117,0.021-0.244-0.018-0.389-0.55-2.025-1.1-4.053-1.649-6.08-0.034-0.129-0.098-0.238-0.16-0.333-0.072-0.085-0.189-0.138-0.346-0.167-0.121-0.021-0.278-0.023-0.468-0.018-0.201,0.006-0.354,0.024-0.462,0.049-0.037-0.141-0.076-0.283-0.114-0.42399,2.233-0.60501,4.469-1.211,6.696-1.815,0.189,0.706,0.382,1.413,0.572,2.116"/>
<path d="m411.29,361.17c0.324,0.80601,0.641,1.615,0.964,2.42-2.08,1.005-4.154,2.006-6.229,3.008-0.063-0.13099-0.128-0.26599-0.191-0.39499,0.088-0.049,0.209-0.125,0.375-0.229,0.156-0.099,0.265-0.181,0.315-0.241,0.091-0.104,0.144-0.212,0.148-0.333,0.004-0.114-0.027-0.241-0.099-0.386-0.906-1.877-1.812-3.754-2.719-5.631-0.062-0.129-0.138-0.225-0.223-0.303-0.089-0.074-0.212-0.11-0.372-0.104-0.104-0.01-0.247,0.006-0.425,0.039-0.178,0.031-0.316,0.068-0.419,0.111-0.062-0.12901-0.128-0.265-0.189-0.395,1.123-0.542,2.24-1.082,3.362-1.624,0.063,0.12999,0.128,0.26499,0.19,0.396-0.106,0.057-0.231,0.137-0.377,0.248-0.154,0.115-0.264,0.20299-0.32,0.268-0.112,0.107-0.16,0.225-0.15,0.352-0.001,0.13099,0.034,0.25599,0.094,0.37699,0.851,1.76,1.7,3.521,2.551,5.283,0.116,0.24,0.217,0.424,0.31,0.54501,0.093,0.127,0.199,0.207,0.324,0.23399,0.113,0.029,0.263,0.01,0.444-0.061,0.182-0.059,0.424-0.162,0.73-0.312,0.139-0.065,0.277-0.14201,0.428-0.21901,0.148-0.077,0.281-0.16599,0.404-0.24799,0.121-0.089,0.224-0.181,0.318-0.272,0.09-0.092,0.149-0.174,0.172-0.262,0.067-0.246,0.132-0.585,0.166-1.035,0.031-0.44099,0.046-0.78699,0.019-1.041,0.134-0.061,0.267-0.126,0.399-0.19001"/>
<path d="m415.95,352.52c0.537,0.154,1.054,0.40801,1.527,0.78501,0.479,0.38799,0.896,0.867,1.247,1.461,0.354,0.598,0.571,1.195,0.67,1.795,0.098,0.6,0.062,1.173-0.07,1.723-0.129,0.537-0.369,1.021-0.697,1.469-0.328,0.447-0.742,0.812-1.245,1.107-0.529,0.312-1.073,0.51-1.642,0.572s-1.112,0.029-1.639-0.137c-0.526-0.155-1.026-0.412-1.498-0.799-0.473-0.386-0.874-0.849-1.203-1.404-0.361-0.612-0.582-1.215-0.678-1.811-0.093-0.591-0.062-1.16,0.062-1.714,0.132-0.543,0.378-1.034,0.711-1.485,0.332-0.451,0.742-0.812,1.231-1.101,0.508-0.301,1.042-0.491,1.593-0.562,0.561-0.075,1.103-0.047,1.631,0.101zm2.347,5.807c0.003-0.44201-0.051-0.895-0.206-1.354-0.148-0.459-0.37-0.937-0.666-1.438-0.306-0.516-0.635-0.959-0.989-1.334-0.354-0.369-0.729-0.643-1.104-0.832-0.374-0.188-0.764-0.269-1.158-0.265-0.391,0.001-0.787,0.124-1.169,0.349-0.426,0.252-0.737,0.562-0.918,0.939-0.182,0.375-0.282,0.781-0.277,1.213,0.008,0.418,0.084,0.857,0.245,1.326,0.16,0.471,0.374,0.934,0.646,1.395,0.299,0.506,0.621,0.937,0.949,1.295,0.332,0.355,0.701,0.629,1.083,0.832,0.382,0.201,0.763,0.287,1.163,0.293,0.396,0,0.801-0.113,1.209-0.354,0.38-0.225,0.679-0.525,0.879-0.88,0.198-0.36,0.31-0.757,0.313-1.185z"/>
<path d="m429.27,352.37c-0.647,0.45899-1.301,0.922-1.948,1.381-0.896-0.37301-1.697-0.65601-2.383-0.904-0.696-0.246-1.43-0.46001-2.195-0.69501-0.249,0.17601-0.494,0.35-0.743,0.525,0.532,0.749,1.066,1.504,1.602,2.259,0.081,0.11301,0.181,0.19901,0.271,0.265,0.104,0.064,0.231,0.071,0.386,0.035,0.079-0.017,0.198-0.074,0.368-0.16201,0.17-0.088,0.301-0.168,0.411-0.24,0.083,0.11901,0.17,0.24,0.253,0.35701-1.017,0.723-2.034,1.442-3.051,2.163-0.084-0.116-0.17-0.239-0.254-0.356,0.079-0.062,0.186-0.157,0.332-0.287,0.138-0.125,0.229-0.223,0.274-0.295,0.067-0.112,0.103-0.229,0.083-0.346-0.012-0.117-0.063-0.236-0.156-0.367-1.219-1.717-2.437-3.437-3.652-5.152-0.081-0.113-0.172-0.206-0.271-0.273-0.099-0.066-0.226-0.082-0.381-0.037-0.111,0.033-0.24,0.078-0.393,0.146-0.16,0.074-0.281,0.141-0.378,0.203-0.084-0.11701-0.17-0.24-0.254-0.35701,1.11-0.78699,2.219-1.572,3.33-2.361,0.305-0.21499,0.613-0.389,0.924-0.51699,0.315-0.126,0.629-0.20401,0.941-0.216,0.308-0.016,0.596,0.037,0.87,0.16199,0.283,0.12701,0.529,0.346,0.745,0.65,0.198,0.278,0.329,0.547,0.389,0.81901,0.068,0.27099,0.071,0.538,0.016,0.81299-0.045,0.25401-0.149,0.498-0.287,0.76-0.14,0.257-0.307,0.513-0.516,0.771,0.686,0.221,1.262,0.389,1.724,0.54101,0.453,0.15599,1.025,0.326,1.685,0.547,0.291,0.10299,0.535,0.14599,0.724,0.15599,0.185,0.014,0.364,0.004,0.522-0.018,0.12-0.014,0.25-0.066,0.401-0.135,0.151-0.067,0.271-0.139,0.358-0.19401,0.083,0.11901,0.17,0.24001,0.253,0.35901zm-6.435-3.41c-0.306-0.432-0.68-0.678-1.105-0.76199-0.43-0.076-0.874,0.049-1.333,0.375-0.288,0.20299-0.575,0.40699-0.867,0.61399,0.723,1.021,1.442,2.035,2.166,3.056,0.224-0.158,0.446-0.315,0.67-0.475,0.468-0.331,0.761-0.755,0.852-1.271,0.094-0.52-0.024-1.032-0.383-1.537z"/>
<path d="m436.56,346.87c0.243,0.822,0.487,1.648,0.735,2.469-2.299,0.85299-4.593,1.703-6.891,2.556-0.051-0.135-0.103-0.274-0.152-0.41,0.116-0.049,0.27-0.122,0.449-0.224,0.185-0.098,0.305-0.164,0.354-0.217,0.101-0.105,0.162-0.21499,0.178-0.321,0.015-0.113-0.002-0.233-0.057-0.379-0.729-1.964-1.454-3.923-2.184-5.888-0.047-0.125-0.114-0.23-0.189-0.315-0.08-0.079-0.201-0.119-0.359-0.136-0.122-0.012-0.279,0-0.467,0.025-0.199,0.021-0.345,0.053-0.455,0.088-0.051-0.135-0.104-0.274-0.152-0.41,2.142-0.795,4.281-1.588,6.422-2.383,0.243,0.656,0.488,1.318,0.731,1.975-0.147,0.056-0.296,0.109-0.438,0.164-0.184-0.27-0.475-0.51-0.849-0.745-0.387-0.239-0.698-0.322-0.945-0.267-0.124,0.029-0.272,0.067-0.441,0.125-0.175,0.06-0.364,0.123-0.581,0.203-0.435,0.161-0.868,0.322-1.302,0.483,0.4,1.082,0.805,2.169,1.205,3.251,0.312-0.115,0.621-0.23,0.938-0.348,0.296-0.109,0.509-0.217,0.63-0.33,0.112-0.104,0.204-0.234,0.258-0.408,0.048-0.145,0.062-0.319,0.056-0.533-0.011-0.208-0.033-0.393-0.077-0.57,0.144-0.053,0.291-0.106,0.438-0.162,0.397,1.071,0.793,2.14,1.19,3.211-0.147,0.056-0.296,0.109-0.438,0.162-0.089-0.178-0.202-0.363-0.343-0.545-0.144-0.175-0.269-0.3-0.383-0.365-0.179-0.104-0.347-0.149-0.518-0.139-0.177,0.008-0.386,0.062-0.638,0.156-0.314,0.117-0.627,0.232-0.938,0.348,0.305,0.822,0.606,1.639,0.912,2.461,0.092,0.244,0.182,0.428,0.271,0.562,0.088,0.133,0.194,0.207,0.321,0.245,0.126,0.039,0.286,0.029,0.466-0.014,0.184-0.051,0.439-0.129,0.761-0.248,0.129-0.049,0.296-0.109,0.509-0.188,0.212-0.078,0.389-0.147,0.523-0.224,0.14-0.073,0.289-0.157,0.432-0.256,0.142-0.104,0.236-0.195,0.271-0.289,0.112-0.252,0.201-0.604,0.255-1.051s0.086-0.768,0.07-0.961c0.141-0.054,0.278-0.105,0.422-0.158"/>
<path d="m443.96,340.81c0.438,0.35299,0.814,0.78699,1.099,1.321,0.289,0.543,0.484,1.147,0.574,1.832,0.092,0.688,0.06,1.324-0.087,1.914-0.145,0.58999-0.399,1.104-0.737,1.559-0.324,0.44101-0.739,0.793-1.217,1.076-0.479,0.28301-1.001,0.45501-1.575,0.53101-0.615,0.082-1.192,0.049-1.734-0.11701-0.547-0.164-1.04-0.40599-1.459-0.76599-0.418-0.351-0.782-0.78101-1.061-1.32-0.289-0.539-0.479-1.123-0.562-1.764-0.093-0.70499-0.061-1.347,0.085-1.932,0.146-0.57999,0.402-1.094,0.734-1.553,0.334-0.448,0.749-0.80499,1.23-1.09,0.482-0.28501,1.007-0.45501,1.569-0.53,0.579-0.076,1.146-0.043,1.686,0.106,0.54,0.15199,1.028,0.391,1.455,0.733zm-0.113,6.262c0.18-0.405,0.303-0.843,0.345-1.327,0.038-0.47899,0.021-1.006-0.056-1.584-0.078-0.59401-0.208-1.131-0.389-1.613-0.18-0.47899-0.413-0.879-0.683-1.198-0.276-0.31899-0.599-0.548-0.963-0.697-0.364-0.15099-0.773-0.19399-1.212-0.13699-0.495,0.065-0.903,0.22799-1.218,0.50599-0.313,0.272-0.566,0.606-0.731,1.008-0.15,0.386-0.258,0.82-0.288,1.313-0.041,0.496-0.026,1.007,0.043,1.537,0.077,0.582,0.204,1.104,0.371,1.562,0.161,0.458,0.398,0.853,0.672,1.188,0.267,0.338,0.583,0.563,0.95,0.727,0.365,0.156,0.786,0.209,1.255,0.146,0.438-0.058,0.826-0.217,1.148-0.463,0.324-0.254,0.584-0.574,0.756-0.968z"/>
</g>
</g>
<path d="m422.97,213.66v55.25c0,10.988-1.525,54.744-48.53,71.738-47.104-16.994-48.63-60.746-48.63-71.738v-55.25h97.16" stroke="#000" stroke-width="1.01740003" fill="none"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 88 KiB

+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="1000" height="500"><rect width="1000" height="500" fill="#f00"/><rect width="500" height="500" fill="#fff" x="250"/><path fill="#ff0000" d="m 499.99228,46.875 -34.11312,63.62529 c -3.87086,6.91501 -10.80627,6.27363 -17.74169,2.41138 l -24.69699,-12.78858 18.40705,97.72711 c 3.87086,17.85419 -8.54859,17.85419 -14.67765,10.13435 l -43.10105,-48.25099 -6.99738,24.503 c -0.80692,3.21777 -4.35481,6.59744 -9.67748,5.79261 l -54.50177,-11.45912 14.31524,52.04475 c 3.06451,11.58054 5.4549,16.37528 -3.09375,19.42959 l -19.42619,9.13025 93.82127,76.20838 c 3.7135,2.88151 5.58971,8.067 4.26768,12.7621 l -8.21136,26.94707 c 32.30405,-3.72371 61.24898,-9.32594 93.56939,-12.77619 2.85323,-0.30459 7.62988,4.40408 7.61029,7.71058 l -4.28024,98.72342 15.70639,0 -2.47237,-98.5117 c -0.0197,-3.3065 4.31372,-8.22689 7.16695,-7.9223 32.32041,3.45026 61.26538,9.05248 93.56942,12.77619 l -8.21134,-26.94707 c -1.32203,-4.6951 0.55417,-9.88059 4.26767,-12.7621 l 93.82125,-76.20838 -19.42617,-9.13025 c -8.54867,-3.05431 -6.15828,-7.84905 -3.09377,-19.42959 l 14.31527,-52.04475 -54.5018,11.45912 c -5.32267,0.80483 -8.87056,-2.57484 -9.6775,-5.79261 l -6.99737,-24.503 -43.10103,48.25099 c -6.12908,7.71984 -18.54854,7.71984 -14.67768,-10.13435 l 18.40702,-97.72711 -24.69694,12.78858 c -6.93559,3.86225 -13.87083,4.50363 -17.7417,-2.41138"/></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600" height="300" viewBox="0 0 10080 5040">
<defs>
<path id="Star7" d="M0,-360 69.421398,-144.155019 281.459334,-224.456329 155.988466,-35.603349 350.974048,80.107536 125.093037,99.758368 156.198146,324.348792 0,160 -156.198146,324.348792 -125.093037,99.758368 -350.974048,80.107536 -155.988466,-35.603349 -281.459334,-224.456329 -69.421398,-144.155019z"/>
<path id="Star5" d="M0,-210 54.859957,-75.508253 199.721868,-64.893569 88.765275,28.841586 123.434903,169.893569 0,93.333333 -123.434903,169.893569 -88.765275,28.841586 -199.721868,-64.893569 -54.859957,-75.508253z"/>
</defs>
<rect width="10080" height="5040" fill="#008000"/>
<circle cx="5040" cy="2520" r="1050" fill="#ffe000"/>
<circle cx="5367.4" cy="2520" r="864" fill="#008000"/>
<circle cx="1730" cy="1470" r="1100" fill="#ffe000"/>
<path fill="#802000" stroke="#7b3100" stroke-width="23.333" d="m1654.1,2299.4,274.67,0s12.398-25.178-2.7658-37.767-74.229-15.36-58.271-59.892c32.807-91.555,37.385-63.326,57.985-280.77s30.518-558.49,30.518-558.49h-39.674s7.6296,106.05-15.259,244.15-29.755,150.3-54.933,256.35-28.992,115.21-51.881,177.01-25.178,64.852-61.037,122.07c-35.859,57.222-22.889,35.859-42.726,70.192-9.9186,17.166-22.126,12.589-28.802,25.082-6.6759,12.494-7.8204,42.058-7.8204,42.058z"/>
<path fill="#008000" d="m1863.7,668.6c2.2817,42.661-2.0069,99.138-19.688,145.1-17.928,51.216-37.423,102.27-36.458,155.31-28.502,9.6945-57.877-61.678-85.312-19.688,20.624,58.016,68.239,103.95,100.86,156.22,5.5021,16.205,52.438,58.518,25.281,68.358-68.547-23.46-85.162-110.31-127.68-163.05-49.38-88.757-141.44-151.49-244-155.82-38.524,1.0094-163.78-9.548-131.19,56.419,47.997,32.632,107.14,53.91,154.53,90.537,35.31,3.3032,99.31,62.248,95.579,84.52-62.102-25.153-91.169-55.299-158.08-81.758-90.658-35.014-216.06-13.954-266.25,76.021-9.3572,23.433-23.172,91.731,6.2547,98.238,34.384-53.685,83.569-113.7,156.45-97.6,57.244,4.4692-63.877,106.64-17.544,86.084,14.681-6.5147,48.583-28.769,72.102-31.093,23.518-2.324,36.653,15.282,54.497,17.718,35.688,4.8718,45.515,19.833,42.207,28.537-3.9027,10.269-15.241,1.5013-51.52,13.004-18.14,5.7513-27.615,21.692-48.774,28.989-21.158,7.2976-65.173,7.8148-81.621,1.3436-57.547-24.996-151.89-20.645-169.83,51.468-0.016,31.711-28.236-3.5038-41.278,10.196-9.7795,34.603-12.309,70.132-63.633,66.99-31.155,32.684-63.06,66.527-102.62,89.781,23.215,53.284,115.2-53.516,110.9-8.4838-40.21,54.832,20.689,66.37,47.348,24.166,45.088-47.64,100.93-105.63,168.21-57.618,32.044,30.169,50.664-15.951,73.857-13.481,14.612,37.475,32.998,1.8444,49.583-8.75,27.15-3.3824,19.511,33.91,51.771,10.938,64.293-42.551,143.39-6.796,206.2-48.197,66.852-30.458,9.3858,24.532-9.0659,46.028-29.373,56.97-3.8997,131.76-67.613,167.14-25.593,67.895,30.237,157.4-26.707,207.63-8.2836,31.496,73.234,27.889,96.113,40.832,40.09,1.5876-1.7229-91.758,38.054-104.27,53.344,33.019,50.846-59.049,39.831-87.447,5.1712-64.552,8.8142-135.13,40.892-193.6,34.102-71.662,65.666,29.186,27.491,57.558-21.685,65.896-53.25,148.36-3.9423,209.64,14.211,3.1803,25.879,37.625,44.279,48.212s43.531-2.6843,48.118-34.022c23.601-94.369,11.712-195.85,45.415-287.63,23.788-28.43,56.603-4.584,71.355,21.559,47.23,54.833,80.43,123.38,137.61,168.56,52.063,24.362,98.106,61.211,122.1,114.81-0.3209,41.353,117.45,47.692,82.258,1.7272-33.768-44.747-11.488-89.504,22.715-119.26,18.318,4.5181,12.904-28.289-1.4583-15.312-22.995-5.4244-24.466-47.512,7.4967-27.507,53.836,17.379-4.197-38.962-23.655-40.69-45.52-28.215-97.819-60.676-120.2-109.72,59.256,0.6043,120.77,32.564,181.32,12.74,48.538-24.937,97.769,2.0801,114.72,44.864,37.52-5.9873,21.524-43.614,0-56.146,27.443-11.325,46.422-34.805,13.147-55.515-17.574-22.934,23.566-62.052-27.001-60.422,1.6515-38.627-13.556-73.973-55.66-87.318-42.178-35.717-165.95,52.62-162.36-27.89-12.471-43.818,50.278-5.8539,67.812-27.708,18.118-46.194-86.337-41.686-51.87-77.5,22.511-14.494,128.15-35.314,45.306-50.82-41.347,11.364-76.832,2.9489-109.37-17.513-29.657,49.603-114.34-26.938-99.252,61.251-11.585,33.23-87.278,119.57-107.76,53.423,17.422-51.845,107.1-68.797,79.291-138.7-4.2682-43.636-40.446,7.5887-57.49,4.335-8.6308-27.162,26.103-59.178,50.312-65.625,48.038,36.948,49.493-46.614,95.178-39.816,33.355-7.4109-10.771-21.718-20.074-27.996,9.1407-24.416,60.346-36.892,10.136-58.094-44.302-32.872-77.138,32.72-113.68,36.218-35.072-39.595,31.842-58.628,50.312-79.479,0.9929-15.543-39.017-4.6894-26.979-18.229,10.456-18.69,81.301-20.081,48.125-48.125-49.965-17.153-114.44-12.876-162.38,9.3461-30.203,9.7774-39.089,78.069-65.122,75.237-12.24-30.398,3.9853-90.372-37.917-99.167zm236.25,667.19c38.072-6.447,0.8081,57.818-17.5,56.875,1.6178-23.092-55.065-20.869-19.897-40.988,11.405-7.3645,24.112-12.982,37.397-15.887z"/>
<g fill="#ffe000">
<use xlink:href="#Star7" x="7560" y="4200"/>
<use xlink:href="#Star7" x="6300" y="2205"/>
<use xlink:href="#Star7" x="7560" y="840"/>
<use xlink:href="#Star7" x="8680" y="1869"/>
<use xlink:href="#Star5" x="8064" y="2730"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="800" height="600">
<rect width="800" height="600" x="0" y ="0" style="fill:#007fff" />
<path d="m 36,120 84,0 26,-84 26,84 84,0 -68,52 26,84 -68,-52 -68,52 26,-84 -68,-52 z M 750,0 0,450 0,600 0,600 50,600 800,150 800,0 750,0" style="fill:#f7d618" />
<path d="M 800,0 0,480 0,600 0,600 0,600 800,120 800,0" style="fill:#ce1021" />
</svg>

After

Width:  |  Height:  |  Size: 537 B

+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="450" height="300" viewBox="0 0 1200 800"><title>Flag of the Central African Republic</title>
<rect height="200" width="1200" y="0" x="0" fill="#003082"/>
<rect height="200" width="1200" y="200" x="0" fill="#FFF"/>
<rect height="200" width="1200" y="400" x="0" fill="#289728"/>
<rect height="200" width="1200" y="600" x="0" fill="#FFCE00"/>
<rect height="800" width="200" y="0" x="500" fill="#D21034"/>
<polygon fill="#FFCE00" points="0,-1,0.22451,-0.30902,0.95106,-0.30902,0.36327,0.11803,0.58779,0.80902,0,0.38197,-0.58779,0.80902,-0.36327,0.11803,-0.95106,-0.30902,-0.22451,-0.30902" transform="translate(200,108.59425) scale(90)"/>
</svg>

After

Width:  |  Height:  |  Size: 689 B

+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg"
width="600"
height="400"
viewBox="0 0 3 2">
<rect id="green_area" width="3" height="2" fill="#009543"/>
<path id="yellow_area" d="M 0 2 L 2 0 h 1 v 2 z" fill="#FBDE4A"/>
<path id="red_area" d="M 3 0 v 2 h -2 z" fill="#DC241F"/>
</svg>

After

Width:  |  Height:  |  Size: 416 B

+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="0 0 32 32"><rect fill="#f00" height="32" width="32"/><rect fill="#fff" height="6" width="20" x="6" y="13"/><rect fill="#fff" height="20" width="6" x="13" y="6"/></svg>

After

Width:  |  Height:  |  Size: 282 B

+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="450" height="300" id="Flag_of_Cote_dIvoire">
<rect width="450" height="300" fill="#ffffff"/>
<rect width="150" height="300" fill="#f77f00"/>
<rect width="150" height="300" x="300" fill="#009e60"/>
</svg>

After

Width:  |  Height:  |  Size: 422 B

+34
View File
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600" height="300">
<clipPath id="cp">
<path d="M0,0V75H350V150H300zM300,0H150V200H0V150z"/>
</clipPath>
<rect width="600" height="300" fill="#00247d"/>
<path d="M0,0L300,150M300,0L0,150" stroke="#fff" stroke-width="30"/>
<path d="M0,0L300,150M300,0L0,150" stroke="#cf142b" stroke-width="20" clip-path="url(#cp)"/>
<path d="M150,0V200M0,75H350" stroke="#fff" stroke-width="50"/>
<path d="M150,0V200M0,75H350" stroke="#cf142b" stroke-width="30"/>
<path d="M300,0V150H0V300H600V0z" fill="#00247d"/>
<g transform="translate(450,150)">
<g id="s1" transform="translate(0,-102)" fill="#fff">
<g id="c">
<path id="t" d="M0,-22.5V0H12" transform="rotate(18,0,-22.5)"/>
<use xlink:href="#t" transform="scale(-1,1)"/>
</g>
<use xlink:href="#c" transform="rotate(72)"/>
<use xlink:href="#c" transform="rotate(144)"/>
<use xlink:href="#c" transform="rotate(216)"/>
<use xlink:href="#c" transform="rotate(288)"/>
</g>
<g id="s7">
<use xlink:href="#s1" transform="rotate(24)"/>
<use xlink:href="#s1" transform="rotate(48)"/>
<use xlink:href="#s1" transform="rotate(72)"/>
<use xlink:href="#s1" transform="rotate(96)"/>
<use xlink:href="#s1" transform="rotate(120)"/>
<use xlink:href="#s1" transform="rotate(144)"/>
<use xlink:href="#s1" transform="rotate(168)"/>
</g>
<use xlink:href="#s7" transform="rotate(168)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1500" height="1000" viewBox="-4 -4 24 16">
<path d="M20,12H-4V-4H20z" fill="#d52b1e"/>
<path d="M4,4H20V-4H-4z" fill="#fff"/>
<path d="M4,4H-4V-4H4z" fill="#0039a6"/>
<g id="f">
<g id="t">
<path d="M0,-2V0H1z" fill="#fff" transform="rotate(18,0,-2)" id="o"/>
<use xlink:href="#o" transform="scale(-1,1)"/>
</g>
<use xlink:href="#t" transform="rotate(72)"/>
</g>
<use xlink:href="#t" transform="rotate(-72)"/>
<use xlink:href="#f" transform="rotate(144)"/>
</svg>

After

Width:  |  Height:  |  Size: 596 B

+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600" height="400" viewBox="0 0 90 60">
<rect width="30" height="60" fill="#007a5e"/>
<rect x="30" width="30" height="60" fill="#ce1126"/>
<rect x="60" width="30" height="60" fill="#fcd116"/>
<g transform="translate(45,30)" fill="#fcd116">
<g id="c">
<path id="t" d="M 0,-8 v 8 h 4 z" transform="rotate(18 0,-8)"/>
<use xlink:href="#t" transform="scale(-1,1)"/>
</g>
<use xlink:href="#c" transform="rotate(72)"/>
<use xlink:href="#c" transform="rotate(144)"/>
<use xlink:href="#c" transform="rotate(216)"/>
<use xlink:href="#c" transform="rotate(288)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 731 B

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="900" height="600" viewBox="0 0 30 20">
<defs>
<path id="s" d="M0,-1 0.587785,0.809017 -0.951057,-0.309017H0.951057L-0.587785,0.809017z" fill="#ffde00"/>
</defs>
<rect width="30" height="20" fill="#de2910"/>
<use xlink:href="#s" transform="translate(5,5) scale(3)"/>
<use xlink:href="#s" transform="translate(10,2) rotate(23.036243)"/>
<use xlink:href="#s" transform="translate(12,4) rotate(45.869898)"/>
<use xlink:href="#s" transform="translate(12,7) rotate(69.945396)"/>
<use xlink:href="#s" transform="translate(10,9) rotate(20.659808)"/>
</svg>

After

Width:  |  Height:  |  Size: 678 B

Loaded 100 of 879 files, more files were not shown because too many files have changed in this diff. Show more