Преглед изворни кода

Merge remote-tracking branch 'origin/main' into feature/plugui93

Ka1-S пре 1 месец
родитељ
комит
505d2cac3e
54 измењених фајлова са 9652 додато и 1315 уклоњено
  1. 8 2
      .github/workflows/release.yml
  2. 11 0
      CMakeLists.txt
  3. 1652 0
      asio/LynxAsio.cpp
  4. 5 0
      asio/Register LYNX ASIO.bat
  5. 4 0
      asio/Unregister LYNX ASIO.bat
  6. 6 0
      asio/lynx-asio.def
  7. 136 0
      docs/analise/REA_rodada86.md
  8. 181 0
      docs/analise/REA_rodada97.md
  9. 14 4
      docs/analise/UI_STUDY_round90.md
  10. 173 4
      resources/i18n/pt-BR.txt
  11. 13 0
      resources/installer/LYNX.nsi
  12. 1 1
      scripts/build-local.sh
  13. 17 0
      scripts/build-lynx-asio.sh
  14. 6 3
      scripts/build-windows-zig.sh
  15. 4 0
      scripts/make-installer.sh
  16. 102 9
      src/Main.cpp
  17. 88 0
      src/core/AudioCapture.h
  18. 1199 0
      src/core/AudioEdit.cpp
  19. 198 0
      src/core/AudioEdit.h
  20. 69 0
      src/core/EditorGestures.h
  21. 4 0
      src/core/Meters.h
  22. 26 0
      src/core/Preferences.cpp
  23. 22 0
      src/core/Preferences.h
  24. 10 0
      src/core/RackRenderer.cpp
  25. 20 2
      src/engine/AudioEngine.cpp
  26. 6 1
      src/engine/AudioEngine.h
  27. 411 0
      src/engine/DllAsioDevice.cpp
  28. 16 0
      src/engine/DllAsioDevice.h
  29. 15 3
      src/engine/PreviewPlayer.cpp
  30. 7 2
      src/engine/PreviewPlayer.h
  31. 7 0
      src/engine/SampleLibrary.cpp
  32. 2 0
      src/engine/SampleLibrary.h
  33. 2489 0
      src/ui/AudioEditor.cpp
  34. 36 0
      src/ui/AudioEditor.h
  35. 22 1
      src/ui/BrowserComponent.cpp
  36. 1 0
      src/ui/BrowserComponent.h
  37. 138 82
      src/ui/ChannelRackComponent.cpp
  38. 2 0
      src/ui/ChannelRackComponent.h
  39. 3 2
      src/ui/Dialogs.cpp
  40. 4 2
      src/ui/Dialogs.h
  41. 140 0
      src/ui/EditorTools.cpp
  42. 39 0
      src/ui/EditorTools.h
  43. 1593 1162
      src/ui/I18nData.h
  44. 10 0
      src/ui/MainComponent.cpp
  45. 1 0
      src/ui/MainComponent.h
  46. 4 0
      src/ui/MixerComponent.cpp
  47. 104 17
      src/ui/PianoRollComponent.cpp
  48. 10 4
      src/ui/PianoRollComponent.h
  49. 76 8
      src/ui/PlaylistComponent.cpp
  50. 7 2
      src/ui/PlaylistComponent.h
  51. 54 4
      src/ui/SettingsPages.cpp
  52. 431 0
      tests/AudioEditTests.inc
  53. 36 0
      tests/UiLook90Tests.inc
  54. 19 0
      tests/tests.cpp

+ 8 - 2
.github/workflows/release.yml

@@ -89,7 +89,9 @@ jobs:
         uses: actions/upload-artifact@v7
         with:
           name: LYNX-unsigned
-          path: build-win/LYNX.exe
+          path: |
+            build-win/LYNX.exe
+            build-win/lynx-asio.dll
           if-no-files-found: error
 
   # ---------------------------------------------------------------------------------------------
@@ -127,7 +129,9 @@ jobs:
         uses: actions/upload-artifact@v7
         with:
           name: LYNX-signed
-          path: signed/LYNX.exe
+          path: |
+            signed/LYNX.exe
+            signed/lynx-asio.dll
           if-no-files-found: error
 
   package:
@@ -175,6 +179,8 @@ jobs:
           $p = Start-Process bin\LYNX.exe -ArgumentList '--showcase', "$PWD\pkg\$name\Demo.lynx" -Wait -PassThru
           if (-not (Test-Path "pkg\$name\Demo.lynx")) { throw "showcase did not write Demo.lynx (exit $($p.ExitCode))" }
           Copy-Item bin\LYNX.exe, LICENSE, THIRD_PARTY.md, PRIVACY.md "pkg\$name\"
+          # LYNX ASIO driver and its registration helpers (REA round 97)
+          if (Test-Path bin\lynx-asio.dll) { Copy-Item bin\lynx-asio.dll, "asio\Register LYNX ASIO.bat", "asio\Unregister LYNX ASIO.bat" "pkg\$name\" }
           New-Item -ItemType Directory -Force dist | Out-Null
           Compress-Archive -Path "pkg\$name" -DestinationPath "dist\$name.zip"
           Copy-Item bin\LYNX.exe dist\

+ 11 - 0
CMakeLists.txt

@@ -114,6 +114,7 @@ target_sources(lynx_core PRIVATE
     src/core/NoteTools.cpp
     src/core/PianoRollTools.cpp
     src/core/EventEdit.cpp
+    src/core/AudioEdit.cpp
     src/core/MixerOps.cpp
     src/core/History.cpp
     src/core/SearchQuery.cpp)
@@ -201,6 +202,7 @@ if(LYNX_BUILD_APP)
         src/engine/PluginSandbox.cpp
         src/engine/Exporter.cpp
         src/engine/StreamPrefetcher.cpp
+        src/engine/DllAsioDevice.cpp
         src/engine/ClapFormat.cpp
         src/engine/Vst2Format.cpp
         src/engine/MidiFileIo.cpp
@@ -244,6 +246,7 @@ if(LYNX_BUILD_APP)
     target_sources(LYNX PRIVATE
         src/ui/NoteToolDialogs.cpp
         src/ui/EventEditor.cpp
+        src/ui/AudioEditor.cpp
         src/ui/ToolWindow.cpp
         src/ui/HistoryPanel.cpp
         src/ui/MissingFilesDialog.cpp
@@ -279,3 +282,11 @@ if(LYNX_BUILD_APP)
             juce::juce_recommended_lto_flags
             juce::juce_recommended_warning_flags)
 endif()
+
+# LYNX ASIO: universal ASIO driver on WASAPI (REA round 97), an in-process COM DLL registered with regsvr32
+if(WIN32)
+    add_library(lynx-asio SHARED asio/LynxAsio.cpp asio/lynx-asio.def)
+    target_include_directories(lynx-asio PRIVATE third_party/asiosdk/common)
+    target_compile_definitions(lynx-asio PRIVATE UNICODE _UNICODE)
+    target_link_libraries(lynx-asio PRIVATE ole32 uuid avrt user32 gdi32 advapi32)
+endif()

+ 1652 - 0
asio/LynxAsio.cpp

@@ -0,0 +1,1652 @@
+// LYNX ASIO — a universal ASIO driver on top of Windows Audio (WASAPI), REA round 97.
+//
+// An in-process COM server implementing Steinberg's IASIO interface. It works with any playback/recording device:
+//  * Shared mode: other programs keep their sound. The stream asks Windows for the shortest engine period the device
+//    supports (IAudioClient3), falling back to the classic period (10 ms on most devices). The ASIO block size is
+//    free: a small FIFO decouples the host's blocks from the device's periods.
+//  * Exclusive mode: LYNX ASIO alone on the device, event-driven at the ASIO block size (down to the device's
+//    minimum period, often 3 ms), in the best integer/float format the device accepts.
+// The host always sees 32-bit float channels. Settings live in %APPDATA%\LYNX\lynx-asio.ini (no registry use except
+// DllRegisterServer/DllUnregisterServer, which a user runs once through regsvr32 as administrator).
+//
+// Clean-room: written from Microsoft's WASAPI documentation and the ASIO SDK interface headers (GPLv3 option). FL Studio
+// ASIO was only observed for its general architecture (docs/analise/REA_rodada97.md); none of its code is used.
+//
+// Build: scripts/build-lynx-asio.sh (Zig/MinGW, x86_64-windows-gnu) -> lynx-asio.dll
+
+#include <windows.h>
+#include <objbase.h>
+#include <initguid.h>
+#include <mmdeviceapi.h>
+#include <audioclient.h>
+#include <functiondiscoverykeys_devpkey.h>
+#include <avrt.h>
+#include <ks.h>
+#include <ksmedia.h>
+
+#include <algorithm>
+#include <atomic>
+#include <cmath>
+#include <cstdarg>
+#include <cstdio>
+#include <cstring>
+#include <string>
+#include <vector>
+
+#include "asiosys.h"
+#include "asio.h"
+#include "iasiodrv.h"
+
+// {E987C593-898E-4557-BFE3-4288B0228718} — LYNX ASIO's own class id (hosts also use it as the interface id)
+DEFINE_GUID (CLSID_LynxAsio, 0xe987c593, 0x898e, 0x4557, 0xbf, 0xe3, 0x42, 0x88, 0xb0, 0x22, 0x87, 0x18);
+
+namespace
+{
+constexpr const char* driverName = "LYNX ASIO";
+constexpr const wchar_t* driverNameW = L"LYNX ASIO";
+constexpr long driverVersion = 1;
+
+HINSTANCE moduleHandle = nullptr;
+std::atomic<long> serverLocks { 0 }, liveObjects { 0 };
+
+//==============================================================================================================
+// Small helpers
+
+template <class T>
+void releaseCom (T*& p)
+{
+    if (p != nullptr)
+        p->Release();
+    p = nullptr;
+}
+
+double nowMs()
+{
+    static const double toMs = []
+    {
+        LARGE_INTEGER f;
+        QueryPerformanceFrequency (&f);
+        return 1000.0 / (double) f.QuadPart;
+    }();
+    LARGE_INTEGER c;
+    QueryPerformanceCounter (&c);
+    return (double) c.QuadPart * toMs;
+}
+
+bool portugueseUi() { return PRIMARYLANGID (GetUserDefaultUILanguage()) == LANG_PORTUGUESE; }
+
+// English text, or its pt-BR translation when Windows speaks Portuguese.
+const wchar_t* tr (const wchar_t* en, const wchar_t* pt) { return portugueseUi() ? pt : en; }
+
+std::string narrow (const std::wstring& w)
+{
+    if (w.empty())
+        return {};
+    const int n = WideCharToMultiByte (CP_ACP, 0, w.c_str(), (int) w.size(), nullptr, 0, nullptr, nullptr);
+    std::string s ((size_t) n, '\0');
+    WideCharToMultiByte (CP_ACP, 0, w.c_str(), (int) w.size(), s.data(), n, nullptr, nullptr);
+    return s;
+}
+
+// Runs `f` on a fresh thread inside the multithreaded COM apartment and waits for it: every WASAPI object of this
+// driver lives in the MTA, whatever apartment the host calls from.
+template <class F>
+void onMtaThread (F& f)
+{
+    HANDLE t = CreateThread (nullptr, 0, [] (LPVOID p) -> DWORD
+    {
+        const auto hr = CoInitializeEx (nullptr, COINIT_MULTITHREADED);
+        (*(F*) p)();
+        if (SUCCEEDED (hr))
+            CoUninitialize();
+        return 0;
+    }, &f, 0, nullptr);
+    if (t != nullptr)
+    {
+        WaitForSingleObject (t, INFINITE);
+        CloseHandle (t);
+    }
+}
+
+//==============================================================================================================
+// Settings (%APPDATA%\LYNX\lynx-asio.ini; LYNX_ASIO_INI overrides the path for tests)
+
+enum class Mode
+{
+    shared = 0,
+    exclusive = 1
+};
+
+struct Settings
+{
+    Mode mode = Mode::shared;
+    int bufferSize = 0;     // the preferred ASIO block in frames; 0 = automatic
+    int safety = 2;         // shared mode: 0 = one engine period queued, 1 = 1.5 periods, 2 = two periods
+    std::wstring output;    // endpoint id; empty = Windows' default device
+    std::wstring input;     // endpoint id; empty = default; "-" = no input
+
+    static std::wstring path()
+    {
+        wchar_t buf[MAX_PATH * 2] {};
+        if (GetEnvironmentVariableW (L"LYNX_ASIO_INI", buf, MAX_PATH * 2) > 0)
+            return buf;
+        if (GetEnvironmentVariableW (L"APPDATA", buf, MAX_PATH * 2) == 0)
+            return {};
+        std::wstring dir = std::wstring (buf) + L"\\LYNX";
+        CreateDirectoryW (dir.c_str(), nullptr);
+        return dir + L"\\lynx-asio.ini";
+    }
+
+    static Settings load()
+    {
+        Settings s;
+        const auto file = path();
+        if (file.empty())
+            return s;
+        const auto* f = file.c_str();
+        s.mode = GetPrivateProfileIntW (L"LYNX ASIO", L"mode", 0, f) == 1 ? Mode::exclusive : Mode::shared;
+        s.bufferSize = std::clamp ((int) GetPrivateProfileIntW (L"LYNX ASIO", L"bufferSize", 0, f), 0, 8192);
+        s.safety = std::clamp ((int) GetPrivateProfileIntW (L"LYNX ASIO", L"safety", 2, f), 0, 2);
+        wchar_t buf[512] {};
+        GetPrivateProfileStringW (L"LYNX ASIO", L"output", L"", buf, 512, f);
+        s.output = buf;
+        GetPrivateProfileStringW (L"LYNX ASIO", L"input", L"", buf, 512, f);
+        s.input = buf;
+        return s;
+    }
+
+    void save() const
+    {
+        const auto file = path();
+        if (file.empty())
+            return;
+        const auto* f = file.c_str();
+        WritePrivateProfileStringW (L"LYNX ASIO", L"mode", mode == Mode::exclusive ? L"1" : L"0", f);
+        WritePrivateProfileStringW (L"LYNX ASIO", L"bufferSize", std::to_wstring (bufferSize).c_str(), f);
+        WritePrivateProfileStringW (L"LYNX ASIO", L"safety", std::to_wstring (safety).c_str(), f);
+        WritePrivateProfileStringW (L"LYNX ASIO", L"output", output.c_str(), f);
+        WritePrivateProfileStringW (L"LYNX ASIO", L"input", input.c_str(), f);
+    }
+
+    bool operator== (const Settings& o) const
+    {
+        return mode == o.mode && bufferSize == o.bufferSize && safety == o.safety && output == o.output && input == o.input;
+    }
+};
+
+// Optional log (LYNX_ASIO_LOG = file path): what was opened and the stream statistics. Never on the audio path.
+void logLine (const char* fmt, ...)
+{
+    wchar_t path[MAX_PATH * 2] {};
+    if (GetEnvironmentVariableW (L"LYNX_ASIO_LOG", path, MAX_PATH * 2) == 0)
+        return;
+    char text[1024];
+    va_list args;
+    va_start (args, fmt);
+    vsnprintf (text, sizeof (text), fmt, args);
+    va_end (args);
+    if (FILE* f = _wfopen (path, L"a"))
+    {
+        fprintf (f, "%s\n", text);
+        fclose (f);
+    }
+}
+
+//==============================================================================================================
+// Endpoints and formats
+
+struct Endpoint
+{
+    std::wstring id, name;
+};
+
+std::vector<Endpoint> listEndpoints (EDataFlow flow)
+{
+    std::vector<Endpoint> result;
+    IMMDeviceEnumerator* en = nullptr;
+    if (FAILED (CoCreateInstance (__uuidof (MMDeviceEnumerator), nullptr, CLSCTX_ALL, __uuidof (IMMDeviceEnumerator), (void**) &en)))
+        return result;
+    IMMDeviceCollection* all = nullptr;
+    if (SUCCEEDED (en->EnumAudioEndpoints (flow, DEVICE_STATE_ACTIVE, &all)))
+    {
+        UINT n = 0;
+        all->GetCount (&n);
+        for (UINT i = 0; i < n; ++i)
+        {
+            IMMDevice* d = nullptr;
+            if (FAILED (all->Item (i, &d)))
+                continue;
+            Endpoint e;
+            LPWSTR id = nullptr;
+            if (SUCCEEDED (d->GetId (&id)))
+            {
+                e.id = id;
+                CoTaskMemFree (id);
+            }
+            IPropertyStore* props = nullptr;
+            if (SUCCEEDED (d->OpenPropertyStore (STGM_READ, &props)))
+            {
+                PROPVARIANT v;
+                PropVariantInit (&v);
+                if (SUCCEEDED (props->GetValue (PKEY_Device_FriendlyName, &v)) && v.vt == VT_LPWSTR)
+                    e.name = v.pwszVal;
+                PropVariantClear (&v);
+                props->Release();
+            }
+            result.push_back (e);
+            d->Release();
+        }
+        all->Release();
+    }
+    en->Release();
+    return result;
+}
+
+// The chosen endpoint (empty id = Windows' default device for that direction); nullptr when it is gone.
+IMMDevice* openEndpoint (EDataFlow flow, const std::wstring& id)
+{
+    IMMDeviceEnumerator* en = nullptr;
+    if (FAILED (CoCreateInstance (__uuidof (MMDeviceEnumerator), nullptr, CLSCTX_ALL, __uuidof (IMMDeviceEnumerator), (void**) &en)))
+        return nullptr;
+    IMMDevice* d = nullptr;
+    if (! id.empty())
+        en->GetDevice (id.c_str(), &d);
+    if (d == nullptr)
+        en->GetDefaultAudioEndpoint (flow, eConsole, &d);
+    en->Release();
+    return d;
+}
+
+std::wstring endpointName (IMMDevice* d)
+{
+    std::wstring name;
+    IPropertyStore* props = nullptr;
+    if (d != nullptr && SUCCEEDED (d->OpenPropertyStore (STGM_READ, &props)))
+    {
+        PROPVARIANT v;
+        PropVariantInit (&v);
+        if (SUCCEEDED (props->GetValue (PKEY_Device_FriendlyName, &v)) && v.vt == VT_LPWSTR)
+            name = v.pwszVal;
+        PropVariantClear (&v);
+        props->Release();
+    }
+    return name;
+}
+
+enum class SampleKind
+{
+    float32,
+    int32,
+    int24,
+    int16
+};
+
+struct StreamFormat
+{
+    WAVEFORMATEXTENSIBLE wf {};
+    SampleKind kind = SampleKind::float32;
+    int channels = 2;
+    int bytesPerFrame = 8;
+};
+
+StreamFormat makeFormat (int channels, int rate, SampleKind kind, DWORD channelMask)
+{
+    StreamFormat f;
+    f.kind = kind;
+    f.channels = channels;
+    const int container = kind == SampleKind::int16 ? 16 : kind == SampleKind::int24 ? 24 : 32;
+    const int valid = kind == SampleKind::int16 ? 16 : kind == SampleKind::int24 ? 24 : 32;
+    auto& w = f.wf;
+    w.Format.wFormatTag = WAVE_FORMAT_EXTENSIBLE;
+    w.Format.nChannels = (WORD) channels;
+    w.Format.nSamplesPerSec = (DWORD) rate;
+    w.Format.wBitsPerSample = (WORD) container;
+    w.Format.nBlockAlign = (WORD) (channels * container / 8);
+    w.Format.nAvgBytesPerSec = w.Format.nBlockAlign * (DWORD) rate;
+    w.Format.cbSize = sizeof (WAVEFORMATEXTENSIBLE) - sizeof (WAVEFORMATEX);
+    w.Samples.wValidBitsPerSample = (WORD) valid;
+    w.dwChannelMask = channelMask;
+    w.SubFormat = kind == SampleKind::float32 ? KSDATAFORMAT_SUBTYPE_IEEE_FLOAT : KSDATAFORMAT_SUBTYPE_PCM;
+    f.bytesPerFrame = w.Format.nBlockAlign;
+    return f;
+}
+
+DWORD maskOf (const WAVEFORMATEX* w)
+{
+    if (w->wFormatTag == WAVE_FORMAT_EXTENSIBLE)
+        return ((const WAVEFORMATEXTENSIBLE*) w)->dwChannelMask;
+    return w->nChannels == 1 ? SPEAKER_FRONT_CENTER : w->nChannels == 2 ? (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT) : 0;
+}
+
+const char* kindName (SampleKind k)
+{
+    switch (k)
+    {
+        case SampleKind::float32: return "float32";
+        case SampleKind::int32:   return "int32";
+        case SampleKind::int24:   return "int24";
+        case SampleKind::int16:   return "int16";
+    }
+    return "?";
+}
+
+// interleaved float frames -> device bytes
+void writeSamples (const float* src, BYTE* dst, int samples, SampleKind kind)
+{
+    switch (kind)
+    {
+        case SampleKind::float32:
+            std::memcpy (dst, src, (size_t) samples * 4);
+            break;
+        case SampleKind::int32:
+            for (int i = 0; i < samples; ++i)
+            {
+                const double v = std::clamp ((double) src[i], -1.0, 1.0) * 2147483647.0;
+                ((int32_t*) dst)[i] = (int32_t) std::lrint (v);
+            }
+            break;
+        case SampleKind::int24:
+            for (int i = 0; i < samples; ++i)
+            {
+                const auto v = (int32_t) std::lrint (std::clamp (src[i], -1.0f, 1.0f) * 8388607.0f);
+                dst[3 * i] = (BYTE) (v & 0xff);
+                dst[3 * i + 1] = (BYTE) ((v >> 8) & 0xff);
+                dst[3 * i + 2] = (BYTE) ((v >> 16) & 0xff);
+            }
+            break;
+        case SampleKind::int16:
+            for (int i = 0; i < samples; ++i)
+                ((int16_t*) dst)[i] = (int16_t) std::lrint (std::clamp (src[i], -1.0f, 1.0f) * 32767.0f);
+            break;
+    }
+}
+
+// device bytes -> interleaved float frames
+void readSamples (const BYTE* src, float* dst, int samples, SampleKind kind)
+{
+    switch (kind)
+    {
+        case SampleKind::float32:
+            std::memcpy (dst, src, (size_t) samples * 4);
+            break;
+        case SampleKind::int32:
+            for (int i = 0; i < samples; ++i)
+                dst[i] = (float) (((const int32_t*) src)[i] / 2147483648.0);
+            break;
+        case SampleKind::int24:
+            for (int i = 0; i < samples; ++i)
+            {
+                const int32_t v = (int32_t) ((uint32_t) src[3 * i] << 8 | (uint32_t) src[3 * i + 1] << 16 | (uint32_t) src[3 * i + 2] << 24) >> 8;
+                dst[i] = (float) v / 8388608.0f;
+            }
+            break;
+        case SampleKind::int16:
+            for (int i = 0; i < samples; ++i)
+                dst[i] = (float) ((const int16_t*) src)[i] / 32768.0f;
+            break;
+    }
+}
+
+REFERENCE_TIME framesToRefTime (int frames, double rate) { return (REFERENCE_TIME) std::llround (frames * 1.0e7 / rate); }
+int refTimeToFrames (REFERENCE_TIME t, double rate) { return (int) std::llround ((double) t * rate / 1.0e7); }
+
+const double standardRates[] = { 44100.0, 48000.0, 88200.0, 96000.0, 176400.0, 192000.0 };
+
+// What a device offers (probed in init and by the panel).
+struct DeviceInfo
+{
+    bool ok = false;
+    std::wstring name;
+    int channels = 2;
+    double mixRate = 48000.0;
+    DWORD channelMask = 0;
+    int sharedPeriod = 480;           // frames at mixRate: the shortest shared engine period
+    int classicPeriod = 480;          // frames: Windows' default device period
+    int exclusiveMinPeriod = 0;       // frames at mixRate (0 = exclusive mode unavailable)
+    std::vector<double> exclusiveRates;
+};
+
+// Exclusive-mode format for `rate`, best first; false when the device takes none.
+bool exclusiveFormat (IMMDevice* d, int channels, int rate, DWORD mask, StreamFormat& out)
+{
+    IAudioClient* c = nullptr;
+    if (FAILED (d->Activate (__uuidof (IAudioClient), CLSCTX_ALL, nullptr, (void**) &c)))
+        return false;
+    bool found = false;
+    for (auto kind : { SampleKind::float32, SampleKind::int32, SampleKind::int24, SampleKind::int16 })
+    {
+        auto f = makeFormat (channels, rate, kind, mask);
+        if (c->IsFormatSupported (AUDCLNT_SHAREMODE_EXCLUSIVE, &f.wf.Format, nullptr) == S_OK)
+        {
+            out = f;
+            found = true;
+            break;
+        }
+        if (kind == SampleKind::int32) // 24 valid bits in a 32-bit container
+        {
+            f.wf.Samples.wValidBitsPerSample = 24;
+            if (c->IsFormatSupported (AUDCLNT_SHAREMODE_EXCLUSIVE, &f.wf.Format, nullptr) == S_OK)
+            {
+                out = f;
+                found = true;
+                break;
+            }
+        }
+    }
+    c->Release();
+    return found;
+}
+
+DeviceInfo probeDevice (EDataFlow flow, const std::wstring& id)
+{
+    DeviceInfo info;
+    IMMDevice* d = openEndpoint (flow, id);
+    if (d == nullptr)
+        return info;
+    info.name = endpointName (d);
+    IAudioClient* c = nullptr;
+    if (SUCCEEDED (d->Activate (__uuidof (IAudioClient), CLSCTX_ALL, nullptr, (void**) &c)))
+    {
+        WAVEFORMATEX* mix = nullptr;
+        if (SUCCEEDED (c->GetMixFormat (&mix)))
+        {
+            info.ok = true;
+            info.channels = mix->nChannels;
+            info.mixRate = mix->nSamplesPerSec;
+            info.channelMask = maskOf (mix);
+            REFERENCE_TIME def = 0, mn = 0;
+            if (SUCCEEDED (c->GetDevicePeriod (&def, &mn)))
+            {
+                info.classicPeriod = info.sharedPeriod = refTimeToFrames (def, info.mixRate);
+                info.exclusiveMinPeriod = refTimeToFrames (mn, info.mixRate);
+            }
+            IAudioClient3* c3 = nullptr;
+            if (SUCCEEDED (c->QueryInterface (__uuidof (IAudioClient3), (void**) &c3)))
+            {
+                UINT32 dp = 0, fp = 0, lo = 0, hi = 0;
+                if (SUCCEEDED (c3->GetSharedModeEnginePeriod (mix, &dp, &fp, &lo, &hi)) && lo > 0)
+                    info.sharedPeriod = (int) lo;
+                c3->Release();
+            }
+            CoTaskMemFree (mix);
+        }
+        c->Release();
+    }
+    if (info.ok && flow == eRender)
+    {
+        StreamFormat f;
+        for (auto r : standardRates)
+            if (exclusiveFormat (d, info.channels, (int) r, info.channelMask, f))
+                info.exclusiveRates.push_back (r);
+        if (info.exclusiveRates.empty())
+            info.exclusiveMinPeriod = 0;
+    }
+    d->Release();
+    return info;
+}
+
+//==============================================================================================================
+// Interleaved float FIFO (used by the audio thread only)
+
+struct Fifo
+{
+    std::vector<float> data;
+    int channels = 0, capacity = 0, head = 0, count = 0;
+
+    void reset (int ch, int frames)
+    {
+        channels = ch;
+        capacity = std::max (1, frames);
+        data.assign ((size_t) (capacity * std::max (1, ch)), 0.0f);
+        head = count = 0;
+    }
+    int space() const { return capacity - count; }
+    void push (const float* src, int frames) // drops the oldest frames on overflow
+    {
+        for (int i = 0; i < frames; ++i)
+        {
+            if (count == capacity)
+            {
+                head = (head + 1) % capacity;
+                --count;
+            }
+            const int at = (head + count) % capacity;
+            std::memcpy (&data[(size_t) (at * channels)], src + (size_t) i * channels, sizeof (float) * (size_t) channels);
+            ++count;
+        }
+    }
+    void pushSilence (int frames)
+    {
+        std::vector<float> zero ((size_t) (frames * channels), 0.0f);
+        push (zero.data(), frames);
+    }
+    int pop (float* dst, int frames) // returns the frames really taken; the rest of dst is zeroed
+    {
+        const int n = std::min (frames, count);
+        for (int i = 0; i < n; ++i)
+        {
+            std::memcpy (dst + (size_t) i * channels, &data[(size_t) (head * channels)], sizeof (float) * (size_t) channels);
+            head = (head + 1) % capacity;
+        }
+        count -= n;
+        if (n < frames)
+            std::memset (dst + (size_t) n * channels, 0, sizeof (float) * (size_t) ((frames - n) * channels));
+        return n;
+    }
+    void drop (int frames)
+    {
+        const int n = std::min (frames, count);
+        head = (head + n) % capacity;
+        count -= n;
+    }
+};
+
+//==============================================================================================================
+
+class LynxAsio;
+INT_PTR showPanel (LynxAsio& driver, HWND owner);
+
+class LynxAsio final : public IASIO
+{
+public:
+    LynxAsio() { ++liveObjects; }
+    ~LynxAsio()
+    {
+        disposeBuffers();
+        --liveObjects;
+    }
+
+    // IUnknown --------------------------------------------------------------------------------------------------
+    HRESULT STDMETHODCALLTYPE QueryInterface (REFIID iid, void** out) override
+    {
+        if (out == nullptr)
+            return E_POINTER;
+        // ASIO hosts ask for the driver's own CLSID as the interface id
+        if (IsEqualIID (iid, IID_IUnknown) || IsEqualIID (iid, CLSID_LynxAsio))
+        {
+            *out = static_cast<IASIO*> (this);
+            AddRef();
+            return S_OK;
+        }
+        *out = nullptr;
+        return E_NOINTERFACE;
+    }
+    ULONG STDMETHODCALLTYPE AddRef() override { return (ULONG) ++refs; }
+    ULONG STDMETHODCALLTYPE Release() override
+    {
+        const auto n = --refs;
+        if (n == 0)
+            delete this;
+        return (ULONG) n;
+    }
+
+    // IASIO -----------------------------------------------------------------------------------------------------
+    ASIOBool init (void* sysHandle) override
+    {
+        owner = (HWND) sysHandle;
+        settings = Settings::load();
+        probe();
+        if (! render.ok)
+        {
+            setError ("No playback device is available.");
+            return ASIOFalse;
+        }
+        sampleRate = settings.mode == Mode::exclusive && ! render.exclusiveRates.empty()
+                         && std::find (render.exclusiveRates.begin(), render.exclusiveRates.end(), render.mixRate) == render.exclusiveRates.end()
+                         ? render.exclusiveRates.front() : render.mixRate;
+        initialised = true;
+        return ASIOTrue;
+    }
+
+    void getDriverName (char* name) override { std::strcpy (name, driverName); }
+    long getDriverVersion() override { return driverVersion; }
+    void getErrorMessage (char* text) override { std::strncpy (text, error, 123); text[123] = 0; }
+
+    ASIOError start() override
+    {
+        if (thread == nullptr)
+            return ASE_NotPresent;
+        if (running)
+            return ASE_OK;
+        return command (Command::start) ? (running = true, ASE_OK) : ASE_HWMalfunction;
+    }
+
+    ASIOError stop() override
+    {
+        if (thread == nullptr)
+            return ASE_NotPresent;
+        if (running)
+            command (Command::stop);
+        running = false;
+        return ASE_OK;
+    }
+
+    ASIOError getChannels (long* numIn, long* numOut) override
+    {
+        if (! initialised)
+            return ASE_NotPresent;
+        *numIn = inputCount();
+        *numOut = render.channels;
+        return ASE_OK;
+    }
+
+    ASIOError getLatencies (long* in, long* out) override
+    {
+        if (! initialised)
+            return ASE_NotPresent;
+        const int block = blockSize > 0 ? blockSize : preferredBlock();
+        // output: what is queued ahead of the device (the shared target or the exclusive period) plus the host block
+        // waiting in the FIFO; input: one capture period plus the block
+        const int queued = deviceQueue > 0 ? deviceQueue : (settings.mode == Mode::exclusive ? block : sharedTarget (render.sharedPeriod));
+        *out = queued + block;
+        *in = (capture.ok ? capture.classicPeriod + block : 0) + block;
+        return ASE_OK;
+    }
+
+    ASIOError getBufferSize (long* minSize, long* maxSize, long* preferred, long* granularity) override
+    {
+        if (! initialised)
+            return ASE_NotPresent;
+        *minSize = exclusiveActive() ? std::max (16, render.exclusiveMinPeriod) : 32;
+        *maxSize = 4096;
+        *preferred = preferredBlock();
+        *granularity = -1; // powers of two (and the preferred size)
+        return ASE_OK;
+    }
+
+    ASIOError canSampleRate (ASIOSampleRate rate) override
+    {
+        if (! initialised)
+            return ASE_NotPresent;
+        if (exclusiveActive())
+            return std::find (render.exclusiveRates.begin(), render.exclusiveRates.end(), rate) != render.exclusiveRates.end() ? ASE_OK : ASE_NoClock;
+        // shared: Windows converts to the mix rate when it differs
+        return std::find (std::begin (standardRates), std::end (standardRates), rate) != std::end (standardRates) ? ASE_OK : ASE_NoClock;
+    }
+
+    ASIOError getSampleRate (ASIOSampleRate* rate) override
+    {
+        if (! initialised)
+            return ASE_NotPresent;
+        *rate = sampleRate;
+        return ASE_OK;
+    }
+
+    ASIOError setSampleRate (ASIOSampleRate rate) override
+    {
+        if (canSampleRate (rate) != ASE_OK)
+            return ASE_NoClock;
+        if (rate != sampleRate)
+        {
+            sampleRate = rate;
+            if (callbacks != nullptr) // buffers exist: the host has to rebuild them at the new rate
+                callbacks->asioMessage (kAsioResetRequest, 0, nullptr, nullptr);
+        }
+        return ASE_OK;
+    }
+
+    ASIOError getClockSources (ASIOClockSource* clocks, long* count) override
+    {
+        if (clocks == nullptr || count == nullptr || *count < 1)
+            return ASE_InvalidParameter;
+        clocks[0].index = 0;
+        clocks[0].associatedChannel = -1;
+        clocks[0].associatedGroup = -1;
+        clocks[0].isCurrentSource = ASIOTrue;
+        std::strcpy (clocks[0].name, "Internal");
+        *count = 1;
+        return ASE_OK;
+    }
+
+    ASIOError setClockSource (long reference) override { return reference == 0 ? ASE_OK : ASE_InvalidParameter; }
+
+    ASIOError getSamplePosition (ASIOSamples* pos, ASIOTimeStamp* stamp) override
+    {
+        if (thread == nullptr)
+            return ASE_NotPresent;
+        const auto frames = (unsigned long long) lastPosition.load();
+        const auto ns = (unsigned long long) lastSystemNs.load();
+        pos->hi = (unsigned long) (frames >> 32);
+        pos->lo = (unsigned long) (frames & 0xffffffffu);
+        stamp->hi = (unsigned long) (ns >> 32);
+        stamp->lo = (unsigned long) (ns & 0xffffffffu);
+        return ASE_OK;
+    }
+
+    ASIOError getChannelInfo (ASIOChannelInfo* info) override
+    {
+        if (! initialised)
+            return ASE_NotPresent;
+        const long count = info->isInput ? inputCount() : render.channels;
+        if (info->channel < 0 || info->channel >= count)
+            return ASE_InvalidParameter;
+        info->isActive = ASIOFalse;
+        for (auto& c : channels)
+            if (c.isInput == (info->isInput != ASIOFalse) && c.index == info->channel)
+                info->isActive = ASIOTrue;
+        info->channelGroup = 0;
+        info->type = ASIOSTFloat32LSB;
+        const auto& dev = info->isInput ? capture : render;
+        auto label = narrow (dev.name);
+        if (label.size() > 20)
+            label.resize (20);
+        std::snprintf (info->name, sizeof (info->name), "%s %ld", label.empty() ? (info->isInput ? "In" : "Out") : label.c_str(), info->channel + 1);
+        return ASE_OK;
+    }
+
+    ASIOError createBuffers (ASIOBufferInfo* infos, long count, long size, ASIOCallbacks* cbs) override
+    {
+        if (! initialised)
+            return ASE_NotPresent;
+        if (thread != nullptr)
+            disposeBuffers();
+        if (infos == nullptr || cbs == nullptr || size < 16 || size > 8192)
+            return ASE_InvalidMode;
+        channels.clear();
+        for (long i = 0; i < count; ++i)
+        {
+            const bool isInput = infos[i].isInput != ASIOFalse;
+            if (infos[i].channelNum < 0 || infos[i].channelNum >= (isInput ? inputCount() : render.channels))
+                return ASE_InvalidParameter;
+            channels.push_back ({ isInput, infos[i].channelNum });
+        }
+        blockSize = (int) size;
+        memory.assign ((size_t) (count * 2 * size), 0.0f);
+        for (long i = 0; i < count; ++i)
+        {
+            channels[(size_t) i].buffers[0] = &memory[(size_t) (i * 2 * size)];
+            channels[(size_t) i].buffers[1] = &memory[(size_t) (i * 2 * size + size)];
+            infos[i].buffers[0] = channels[(size_t) i].buffers[0];
+            infos[i].buffers[1] = channels[(size_t) i].buffers[1];
+        }
+        callbacks = cbs;
+        useTimeInfo = callbacks->asioMessage (kAsioSelectorSupported, kAsioSupportsTimeInfo, nullptr, nullptr) == 1
+                      && callbacks->asioMessage (kAsioSupportsTimeInfo, 0, nullptr, nullptr) == 1;
+
+        // the audio thread opens the devices now (so getLatencies is exact) and waits for start()
+        wakeEvent = CreateEventW (nullptr, FALSE, FALSE, nullptr);
+        doneEvent = CreateEventW (nullptr, FALSE, FALSE, nullptr);
+        thread = CreateThread (nullptr, 0, [] (LPVOID self) -> DWORD { ((LynxAsio*) self)->audioThread(); return 0; }, this, 0, nullptr);
+        WaitForSingleObject (doneEvent, 10000);
+        if (! openOk)
+        {
+            disposeBuffers();
+            return ASE_HWMalfunction;
+        }
+        return ASE_OK;
+    }
+
+    ASIOError disposeBuffers() override
+    {
+        if (thread != nullptr)
+        {
+            stop();
+            command (Command::quit);
+            WaitForSingleObject (thread, 5000);
+            CloseHandle (thread);
+            thread = nullptr;
+        }
+        for (auto* h : { &wakeEvent, &doneEvent })
+            if (*h != nullptr)
+            {
+                CloseHandle (*h);
+                *h = nullptr;
+            }
+        callbacks = nullptr;
+        channels.clear();
+        memory.clear();
+        blockSize = 0;
+        deviceQueue = 0;
+        return ASE_OK;
+    }
+
+    ASIOError controlPanel() override
+    {
+        const auto before = settings;
+        showPanel (*this, owner);
+        if (! (settings == before))
+        {
+            settings.save();
+            probe();
+            if (callbacks != nullptr)
+                callbacks->asioMessage (kAsioResetRequest, 0, nullptr, nullptr);
+        }
+        return ASE_OK;
+    }
+
+    ASIOError future (long selector, void*) override
+    {
+        switch (selector)
+        {
+            case kAsioCanTimeInfo:
+                return ASE_SUCCESS;
+            default:
+                return ASE_NotPresent;
+        }
+    }
+
+    ASIOError outputReady() override { return ASE_NotPresent; }
+
+    // for the panel ----------------------------------------------------------------------------------------------
+    Settings settings;
+    DeviceInfo render, capture;
+
+    void probe()
+    {
+        auto work = [this]
+        {
+            render = probeDevice (eRender, settings.output);
+            capture = settings.input == L"-" ? DeviceInfo {} : probeDevice (eCapture, settings.input);
+        };
+        onMtaThread (work);
+    }
+
+    int preferredBlock() const
+    {
+        if (settings.bufferSize > 0)
+            return exclusiveActive() ? std::max (settings.bufferSize, render.exclusiveMinPeriod) : settings.bufferSize;
+        if (exclusiveActive())
+            return std::max (render.exclusiveMinPeriod, 128);
+        return std::max (32, render.sharedPeriod);
+    }
+
+    int sharedTarget (int period) const { return period + (settings.safety == 0 ? 0 : settings.safety == 1 ? period / 2 : period); }
+    bool exclusiveActive() const { return settings.mode == Mode::exclusive && render.exclusiveMinPeriod > 0; }
+
+private:
+    enum class Command
+    {
+        none,
+        start,
+        stop,
+        quit
+    };
+
+    struct Channel
+    {
+        bool isInput = false;
+        long index = 0;
+        float* buffers[2] { nullptr, nullptr };
+    };
+
+    long inputCount() const { return capture.ok ? capture.channels : 0; }
+
+    void setError (const char* text)
+    {
+        std::strncpy (error, text, sizeof (error) - 1);
+        logLine ("error: %s", text);
+    }
+
+    bool command (Command c)
+    {
+        pending = c;
+        commandOk = false;
+        SetEvent (wakeEvent);
+        return WaitForSingleObject (doneEvent, 5000) == WAIT_OBJECT_0 && commandOk;
+    }
+
+    // ---------------------------------------------------------------------------------------------------------
+    // Audio thread: opens the clients, then serves start/stop/quit and the device events.
+
+    IAudioClient* renderClient = nullptr;
+    IAudioRenderClient* renderService = nullptr;
+    IAudioClient* captureClient = nullptr;
+    IAudioCaptureClient* captureService = nullptr;
+    HANDLE renderEvent = nullptr;
+    StreamFormat renderFormat, captureFormat;
+    UINT32 renderFrames = 0;   // the render buffer
+    int devicePeriod = 0;      // frames between two device events
+    int capturePeriod = 480;   // frames between two capture packets
+    Fifo outFifo, inFifo;
+    std::vector<float> scratch, blockIn, blockOut;
+    int bufferIndex = 0;
+    long long position = 0;
+
+    // statistics (LYNX_ASIO_LOG)
+    long long events = 0, hostBlocks = 0, lateEvents = 0, inputShort = 0, inputShortBefore = 0, slowBursts = 0;
+    double startMs = 0.0, lastEventMs = 0.0, maxGapMs = 0.0, maxBurstMs = 0.0;
+
+    bool openRender (IMMDevice* d)
+    {
+        const bool exclusive = streamExclusive = exclusiveActive(); // fixed for this stream (the panel may change the settings)
+        devicePeriod = 0;
+        renderFrames = 0;
+        if (FAILED (d->Activate (__uuidof (IAudioClient), CLSCTX_ALL, nullptr, (void**) &renderClient)))
+            return setError ("Could not open the playback device."), false;
+
+        HRESULT hr = E_FAIL;
+        if (exclusive)
+        {
+            if (! exclusiveFormat (d, render.channels, (int) sampleRate, render.channelMask, renderFormat))
+                return setError ("The playback device takes no exclusive format at this sample rate."), false;
+            const int period = std::max (blockSize, render.exclusiveMinPeriod);
+            auto t = framesToRefTime (period, sampleRate);
+            hr = renderClient->Initialize (AUDCLNT_SHAREMODE_EXCLUSIVE, AUDCLNT_STREAMFLAGS_EVENTCALLBACK, t, t, &renderFormat.wf.Format, nullptr);
+            if (hr == AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED)
+            {
+                UINT32 aligned = 0;
+                renderClient->GetBufferSize (&aligned);
+                releaseCom (renderClient);
+                d->Activate (__uuidof (IAudioClient), CLSCTX_ALL, nullptr, (void**) &renderClient);
+                t = framesToRefTime ((int) aligned, sampleRate);
+                hr = renderClient->Initialize (AUDCLNT_SHAREMODE_EXCLUSIVE, AUDCLNT_STREAMFLAGS_EVENTCALLBACK, t, t, &renderFormat.wf.Format, nullptr);
+            }
+            if (hr == AUDCLNT_E_DEVICE_IN_USE)
+                return setError ("Another program is using the playback device in exclusive mode."), false;
+            if (FAILED (hr))
+                return setError ("The playback device refused exclusive mode."), false;
+            renderClient->GetBufferSize (&renderFrames);
+            devicePeriod = (int) renderFrames;
+        }
+        else
+        {
+            renderFormat = makeFormat (render.channels, (int) sampleRate, SampleKind::float32, render.channelMask);
+            const bool atMixRate = sampleRate == render.mixRate;
+            IAudioClient3* c3 = nullptr;
+            if (atMixRate && SUCCEEDED (renderClient->QueryInterface (__uuidof (IAudioClient3), (void**) &c3)))
+            {
+                UINT32 dp = 0, fp = 0, lo = 0, hi = 0;
+                if (SUCCEEDED (c3->GetSharedModeEnginePeriod (&renderFormat.wf.Format, &dp, &fp, &lo, &hi)) && lo > 0 && lo < dp)
+                {
+                    hr = c3->InitializeSharedAudioStream (AUDCLNT_STREAMFLAGS_EVENTCALLBACK, lo, &renderFormat.wf.Format, nullptr);
+                    if (SUCCEEDED (hr))
+                        devicePeriod = (int) lo;
+                }
+                c3->Release();
+            }
+            if (devicePeriod == 0) // the classic shared stream (also converts other rates to the mix rate)
+            {
+                DWORD flags = AUDCLNT_STREAMFLAGS_EVENTCALLBACK;
+                if (! atMixRate)
+                    flags |= AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM | AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY;
+                hr = renderClient->Initialize (AUDCLNT_SHAREMODE_SHARED, flags, 0, 0, &renderFormat.wf.Format, nullptr);
+                if (FAILED (hr))
+                    return setError ("The playback device refused the shared stream."), false;
+                REFERENCE_TIME def = 0, mn = 0;
+                renderClient->GetDevicePeriod (&def, &mn);
+                devicePeriod = refTimeToFrames (def, sampleRate);
+            }
+            renderClient->GetBufferSize (&renderFrames);
+        }
+        renderEvent = CreateEventW (nullptr, FALSE, FALSE, nullptr);
+        renderClient->SetEventHandle (renderEvent);
+        if (FAILED (renderClient->GetService (__uuidof (IAudioRenderClient), (void**) &renderService)))
+            return setError ("The playback device has no render service."), false;
+        deviceQueue = exclusive ? (int) renderFrames : std::min ((int) renderFrames, sharedTarget (devicePeriod));
+        logLine ("render: %s mode, %s %d ch @ %.0f Hz, period %d, buffer %u, queue %d, ASIO block %d",
+                 exclusive ? "exclusive" : "shared", kindName (renderFormat.kind), renderFormat.channels, sampleRate, devicePeriod,
+                 renderFrames, deviceQueue, blockSize);
+        return true;
+    }
+
+    void openCapture()
+    {
+        if (! capture.ok)
+            return;
+        IMMDevice* d = openEndpoint (eCapture, settings.input);
+        if (d == nullptr)
+            return;
+        if (SUCCEEDED (d->Activate (__uuidof (IAudioClient), CLSCTX_ALL, nullptr, (void**) &captureClient)))
+        {
+            captureFormat = makeFormat (capture.channels, (int) sampleRate, SampleKind::float32, capture.channelMask);
+            DWORD flags = 0;
+            if (sampleRate != capture.mixRate)
+                flags |= AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM | AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY;
+            // polled from the render events: a 200 ms buffer is only a safety net
+            if (FAILED (captureClient->Initialize (AUDCLNT_SHAREMODE_SHARED, flags, 2000000, 0, &captureFormat.wf.Format, nullptr))
+                || FAILED (captureClient->GetService (__uuidof (IAudioCaptureClient), (void**) &captureService)))
+            {
+                releaseCom (captureService);
+                releaseCom (captureClient);
+                logLine ("capture: could not open");
+            }
+            else
+            {
+                REFERENCE_TIME def = 0, mn = 0;
+                captureClient->GetDevicePeriod (&def, &mn);
+                capturePeriod = std::max (32, refTimeToFrames (def, sampleRate));
+                logLine ("capture: shared float32 %d ch @ %.0f Hz, period %d", capture.channels, sampleRate, capturePeriod);
+            }
+        }
+        d->Release();
+    }
+
+    void closeDevices()
+    {
+        if (renderClient != nullptr)
+            renderClient->Stop();
+        if (captureClient != nullptr)
+            captureClient->Stop();
+        releaseCom (renderService);
+        releaseCom (renderClient);
+        releaseCom (captureService);
+        releaseCom (captureClient);
+        if (renderEvent != nullptr)
+            CloseHandle (renderEvent);
+        renderEvent = nullptr;
+    }
+
+    // Moves every captured packet into the input FIFO.
+    void drainCapture()
+    {
+        if (captureService == nullptr)
+            return;
+        for (;;)
+        {
+            UINT32 packet = 0;
+            if (FAILED (captureService->GetNextPacketSize (&packet)) || packet == 0)
+                break;
+            BYTE* data = nullptr;
+            UINT32 frames = 0;
+            DWORD flags = 0;
+            if (FAILED (captureService->GetBuffer (&data, &frames, &flags, nullptr, nullptr)))
+                break;
+            scratch.resize ((size_t) (frames * (UINT32) captureFormat.channels));
+            if ((flags & AUDCLNT_BUFFERFLAGS_SILENT) != 0)
+                std::fill (scratch.begin(), scratch.end(), 0.0f);
+            else
+                readSamples (data, scratch.data(), (int) frames * captureFormat.channels, captureFormat.kind);
+            inFifo.push (scratch.data(), (int) frames);
+            captureService->ReleaseBuffer (frames);
+        }
+        // keep the input close: captured packets come once per capture period, so up to two periods and two blocks
+        const int keep = 2 * capturePeriod + 2 * blockSize;
+        if (inFifo.count > keep)
+            inFifo.drop (inFifo.count - keep);
+    }
+
+    // One host block: input FIFO -> ASIO input buffers, bufferSwitch, ASIO output buffers -> output FIFO.
+    void runHostBlock()
+    {
+        const int b = blockSize;
+        if (inFifo.channels > 0 && inFifo.pop (blockIn.data(), b) < b && captureService != nullptr)
+            ++inputShort;
+        for (auto& c : channels)
+            if (c.isInput)
+            {
+                float* dst = c.buffers[bufferIndex];
+                const int stride = inFifo.channels;
+                for (int i = 0; i < b; ++i)
+                    dst[i] = blockIn[(size_t) (i * stride + c.index)];
+            }
+
+        lastPosition = position;
+        lastSystemNs = (long long) (nowMs() * 1.0e6);
+        if (useTimeInfo)
+        {
+            ASIOTime t {};
+            t.timeInfo.speed = 1.0;
+            t.timeInfo.systemTime.hi = (unsigned long) ((unsigned long long) lastSystemNs.load() >> 32);
+            t.timeInfo.systemTime.lo = (unsigned long) ((unsigned long long) lastSystemNs.load() & 0xffffffffu);
+            t.timeInfo.samplePosition.hi = (unsigned long) ((unsigned long long) position >> 32);
+            t.timeInfo.samplePosition.lo = (unsigned long) ((unsigned long long) position & 0xffffffffu);
+            t.timeInfo.sampleRate = sampleRate;
+            t.timeInfo.flags = kSystemTimeValid | kSamplePositionValid | kSampleRateValid | kSpeedValid;
+            callbacks->bufferSwitchTimeInfo (&t, bufferIndex, ASIOTrue);
+        }
+        else
+            callbacks->bufferSwitch (bufferIndex, ASIOTrue);
+
+        const int stride = renderFormat.channels;
+        std::fill (blockOut.begin(), blockOut.end(), 0.0f);
+        for (auto& c : channels)
+            if (! c.isInput)
+            {
+                const float* src = c.buffers[bufferIndex];
+                for (int i = 0; i < b; ++i)
+                    blockOut[(size_t) (i * stride + c.index)] = src[i];
+            }
+        outFifo.push (blockOut.data(), b);
+        position += b;
+        bufferIndex ^= 1;
+        ++hostBlocks;
+    }
+
+    // Writes `frames` frames from the output FIFO (host blocks run until it holds enough) into the device.
+    void feedDevice (int frames)
+    {
+        if (frames <= 0)
+            return;
+        const double t0 = nowMs();
+        while (outFifo.count < frames)
+            runHostBlock();
+        const double used = nowMs() - t0;
+        maxBurstMs = std::max (maxBurstMs, used);
+        if (used > 1000.0 * devicePeriod / sampleRate)
+            ++slowBursts;
+        BYTE* data = nullptr;
+        if (FAILED (renderService->GetBuffer ((UINT32) frames, &data)))
+            return;
+        scratch.resize ((size_t) (frames * renderFormat.channels));
+        outFifo.pop (scratch.data(), frames);
+        writeSamples (scratch.data(), data, frames * renderFormat.channels, renderFormat.kind);
+        renderService->ReleaseBuffer ((UINT32) frames, 0);
+    }
+
+    void prime()
+    {
+        const int ch = renderFormat.channels;
+        outFifo.reset (ch, (int) renderFrames + 2 * blockSize + 64);
+        inFifo.reset (captureClient != nullptr ? captureFormat.channels : 0, 3 * capturePeriod + 4 * blockSize + 64);
+        if (captureClient != nullptr) // one capture period and a block of silence absorb the packets' timing
+            inFifo.pushSilence (capturePeriod + blockSize);
+        blockIn.assign ((size_t) (blockSize * std::max (1, inFifo.channels)), 0.0f);
+        blockOut.assign ((size_t) (blockSize * ch), 0.0f);
+        // the first buffer: silence, so the stream starts without a gap
+        BYTE* data = nullptr;
+        const int first = streamExclusive ? (int) renderFrames : deviceQueue;
+        if (SUCCEEDED (renderService->GetBuffer ((UINT32) first, &data)))
+            renderService->ReleaseBuffer ((UINT32) first, AUDCLNT_BUFFERFLAGS_SILENT);
+        bufferIndex = 0;
+        events = hostBlocks = lateEvents = inputShort = inputShortBefore = slowBursts = 0;
+        lastEventMs = maxGapMs = maxBurstMs = 0.0;
+        startMs = nowMs();
+    }
+
+    void onDeviceEvent()
+    {
+        const double now = nowMs();
+        if (lastEventMs > 0.0 && now - startMs > 200.0) // the device's first periods are irregular: not counted
+        {
+            const double gap = now - lastEventMs;
+            maxGapMs = std::max (maxGapMs, gap);
+            if (gap > 1.5 * 1000.0 * devicePeriod / sampleRate + 1.0)
+                ++lateEvents;
+        }
+        lastEventMs = now;
+        ++events;
+        if (now - startMs < 200.0)
+            inputShortBefore = inputShort;
+        drainCapture();
+        if (streamExclusive)
+            feedDevice ((int) renderFrames);
+        else
+        {
+            UINT32 padding = 0;
+            if (FAILED (renderClient->GetCurrentPadding (&padding)))
+            {
+                deviceLost = true;
+                return;
+            }
+            feedDevice (deviceQueue - (int) padding);
+        }
+    }
+
+    void audioThread()
+    {
+        const auto com = CoInitializeEx (nullptr, COINIT_MULTITHREADED);
+        DWORD taskIndex = 0;
+        HANDLE task = nullptr;
+
+        openOk = false;
+        if (IMMDevice* d = openEndpoint (eRender, settings.output))
+        {
+            openOk = openRender (d);
+            d->Release();
+        }
+        else
+            setError ("The playback device is not available.");
+        if (openOk)
+            openCapture();
+        SetEvent (doneEvent);
+
+        bool streaming = false;
+        for (;;)
+        {
+            HANDLE waits[2] = { wakeEvent, renderEvent };
+            const DWORD n = streaming ? 2 : 1;
+            const DWORD r = WaitForMultipleObjects (n, waits, FALSE, streaming ? 2000 : INFINITE);
+            if (r == WAIT_OBJECT_0)
+            {
+                const auto c = pending.exchange (Command::none);
+                if (c == Command::start && openOk && ! streaming)
+                {
+                    task = AvSetMmThreadCharacteristicsW (L"Pro Audio", &taskIndex);
+                    if (task != nullptr)
+                        AvSetMmThreadPriority (task, AVRT_PRIORITY_CRITICAL);
+                    prime();
+                    if (captureClient != nullptr)
+                        captureClient->Start();
+                    streaming = SUCCEEDED (renderClient->Start());
+                    commandOk = streaming;
+                }
+                else if (c == Command::stop || c == Command::quit)
+                {
+                    if (streaming)
+                    {
+                        renderClient->Stop();
+                        renderClient->Reset(); // a later start begins with an empty queue
+                        if (captureClient != nullptr)
+                        {
+                            captureClient->Stop();
+                            captureClient->Reset();
+                        }
+                        logLine ("stats: %lld device events, %lld host blocks, late events %lld (max gap %.2f ms), slow bursts %lld (max %.2f ms), "
+                                 "input short %lld (+%lld while starting)", events, hostBlocks, lateEvents, maxGapMs, slowBursts, maxBurstMs,
+                                 inputShort - inputShortBefore, inputShortBefore);
+                        if (task != nullptr)
+                            AvRevertMmThreadCharacteristics (task);
+                        task = nullptr;
+                    }
+                    streaming = false;
+                    commandOk = true;
+                    if (c == Command::quit)
+                    {
+                        closeDevices();
+                        SetEvent (doneEvent);
+                        break;
+                    }
+                }
+                else
+                    commandOk = c != Command::start || streaming;
+                SetEvent (doneEvent);
+            }
+            else if (r == WAIT_OBJECT_0 + 1)
+            {
+                onDeviceEvent();
+                if (deviceLost)
+                {
+                    deviceLost = false;
+                    if (callbacks != nullptr)
+                        callbacks->asioMessage (kAsioResetRequest, 0, nullptr, nullptr);
+                }
+            }
+            else if (r == WAIT_TIMEOUT && streaming)
+            {
+                ++lateEvents; // the device stopped calling (unplugged, sleep): ask the host to reopen
+                if (callbacks != nullptr)
+                    callbacks->asioMessage (kAsioResetRequest, 0, nullptr, nullptr);
+            }
+        }
+        if (SUCCEEDED (com))
+            CoUninitialize();
+    }
+
+    std::atomic<long> refs { 1 };
+    HWND owner = nullptr;
+    char error[128] = "";
+    bool initialised = false;
+    double sampleRate = 48000.0;
+    ASIOCallbacks* callbacks = nullptr;
+    bool useTimeInfo = false;
+    std::vector<Channel> channels;
+    std::vector<float> memory;
+    int blockSize = 0;
+    int deviceQueue = 0;
+    HANDLE thread = nullptr, wakeEvent = nullptr, doneEvent = nullptr;
+    std::atomic<Command> pending { Command::none };
+    std::atomic<bool> commandOk { false };
+    bool openOk = false, running = false, deviceLost = false, streamExclusive = false;
+    std::atomic<long long> lastPosition { 0 }, lastSystemNs { 0 };
+};
+
+//==============================================================================================================
+// Control panel: a small window built in code (mode, devices, buffer, safety margin)
+
+enum
+{
+    idMode = 101,
+    idOutput,
+    idInput,
+    idBuffer,
+    idSafety,
+    idInfo,
+    idOk,
+    idCancel
+};
+
+struct Panel
+{
+    LynxAsio& driver;
+    Settings edit;
+    std::vector<Endpoint> outputs, inputs;
+    HWND window = nullptr;
+    bool done = false, accepted = false;
+    HFONT font = nullptr;
+
+    HWND item (int id) const { return GetDlgItem (window, id); }
+
+    static void addString (HWND combo, const std::wstring& s) { SendMessageW (combo, CB_ADDSTRING, 0, (LPARAM) s.c_str()); }
+
+    void fillBuffers()
+    {
+        HWND b = item (idBuffer);
+        SendMessageW (b, CB_RESETCONTENT, 0, 0);
+        addString (b, tr (L"Automatic", L"Automático"));
+        const double rate = driver.render.mixRate > 0 ? driver.render.mixRate : 48000.0;
+        const bool exclusive = edit.mode == Mode::exclusive && driver.render.exclusiveMinPeriod > 0;
+        std::vector<int> sizes;
+        if (exclusive)
+            sizes.push_back (driver.render.exclusiveMinPeriod);
+        for (int s : { 32, 64, 96, 128, 192, 256, 384, 512, 768, 1024, 2048 })
+            if (! exclusive || s > driver.render.exclusiveMinPeriod)
+                sizes.push_back (s);
+        int selected = 0;
+        for (size_t i = 0; i < sizes.size(); ++i)
+        {
+            wchar_t text[64];
+            swprintf (text, 64, tr (L"%d samples (%.1f ms)", L"%d amostras (%.1f ms)"), sizes[i], 1000.0 * sizes[i] / rate);
+            addString (b, text);
+            SendMessageW (b, CB_SETITEMDATA, i + 1, (LPARAM) sizes[i]);
+            if (sizes[i] == edit.bufferSize)
+                selected = (int) i + 1;
+        }
+        SendMessageW (b, CB_SETCURSEL, (WPARAM) selected, 0);
+    }
+
+    void updateInfo()
+    {
+        const auto& r = driver.render;
+        const double rate = r.mixRate > 0 ? r.mixRate : 48000.0;
+        wchar_t text[600];
+        if (! r.ok)
+            swprintf (text, 600, L"%ls", tr (L"No playback device is available.", L"Nenhum dispositivo de reprodução disponível."));
+        else if (edit.mode == Mode::exclusive)
+        {
+            if (r.exclusiveMinPeriod > 0)
+                swprintf (text, 600, tr (L"Exclusive: LYNX ASIO uses \"%ls\" alone (other programs go silent). Shortest period on this device: %d samples (%.1f ms).",
+                                         L"Exclusivo: o LYNX ASIO usa \"%ls\" sozinho (os outros programas ficam mudos). Menor período neste dispositivo: %d amostras (%.1f ms)."),
+                          r.name.c_str(), r.exclusiveMinPeriod, 1000.0 * r.exclusiveMinPeriod / rate);
+            else
+                swprintf (text, 600, L"%ls", tr (L"This device does not accept exclusive mode; the shared mode will be used.",
+                                                 L"Este dispositivo não aceita o modo exclusivo; o modo compartilhado será usado."));
+        }
+        else
+            swprintf (text, 600, tr (L"Shared: other programs keep their sound. Windows mixes \"%ls\" every %d samples (%.1f ms)%ls; the latency cannot go below that.",
+                                     L"Compartilhado: os outros programas continuam com som. O Windows mistura \"%ls\" a cada %d amostras (%.1f ms)%ls; a latência não fica menor que isso."),
+                      r.name.c_str(), r.sharedPeriod, 1000.0 * r.sharedPeriod / rate,
+                      r.sharedPeriod < r.classicPeriod ? tr (L" (low-latency period)", L" (período de baixa latência)") : L"");
+        SetWindowTextW (item (idInfo), text);
+        EnableWindow (item (idSafety), edit.mode == Mode::shared);
+    }
+
+    void readControls()
+    {
+        edit.mode = SendMessageW (item (idMode), CB_GETCURSEL, 0, 0) == 1 ? Mode::exclusive : Mode::shared;
+        const auto o = (int) SendMessageW (item (idOutput), CB_GETCURSEL, 0, 0);
+        edit.output = o <= 0 || o > (int) outputs.size() ? std::wstring() : outputs[(size_t) o - 1].id;
+        const auto in = (int) SendMessageW (item (idInput), CB_GETCURSEL, 0, 0);
+        edit.input = in <= 0 ? std::wstring() : in == 1 ? std::wstring (L"-") : in - 2 < (int) inputs.size() ? inputs[(size_t) in - 2].id : std::wstring();
+        const auto b = (int) SendMessageW (item (idBuffer), CB_GETCURSEL, 0, 0);
+        edit.bufferSize = b <= 0 ? 0 : (int) SendMessageW (item (idBuffer), CB_GETITEMDATA, (WPARAM) b, 0);
+        edit.safety = std::clamp ((int) SendMessageW (item (idSafety), CB_GETCURSEL, 0, 0), 0, 2);
+    }
+
+    void create (HWND owner)
+    {
+        NONCLIENTMETRICSW m {};
+        m.cbSize = sizeof (m);
+        SystemParametersInfoW (SPI_GETNONCLIENTMETRICS, sizeof (m), &m, 0);
+        font = CreateFontIndirectW (&m.lfMessageFont);
+        HDC screen = GetDC (nullptr);
+        const int dpi = GetDeviceCaps (screen, LOGPIXELSY);
+        ReleaseDC (nullptr, screen);
+        auto px = [dpi] (int v) { return MulDiv (v, dpi > 0 ? dpi : 96, 96); };
+
+        RECT rc { 0, 0, px (460), px (330) };
+        AdjustWindowRectEx (&rc, WS_CAPTION | WS_SYSMENU, FALSE, WS_EX_DLGMODALFRAME);
+        window = CreateWindowExW (WS_EX_DLGMODALFRAME, L"LynxAsioPanel", L"LYNX ASIO", WS_CAPTION | WS_SYSMENU | WS_POPUP,
+                                  CW_USEDEFAULT, CW_USEDEFAULT, rc.right - rc.left, rc.bottom - rc.top, owner, nullptr, moduleHandle, this);
+        auto make = [&] (const wchar_t* cls, const wchar_t* text, DWORD style, int x, int y, int w, int h, int id)
+        {
+            HWND c = CreateWindowExW (0, cls, text, WS_CHILD | WS_VISIBLE | style, px (x), px (y), px (w), px (h), window, (HMENU) (INT_PTR) id, moduleHandle, nullptr);
+            SendMessageW (c, WM_SETFONT, (WPARAM) font, TRUE);
+            return c;
+        };
+        const DWORD combo = CBS_DROPDOWNLIST | WS_TABSTOP | WS_VSCROLL;
+        int y = 14;
+        auto row = [&] (const wchar_t* label, int id)
+        {
+            make (L"STATIC", label, SS_LEFT, 14, y + 3, 130, 20, 0);
+            make (L"COMBOBOX", L"", combo, 150, y, 296, 300, id);
+            y += 34;
+        };
+        row (tr (L"Mode", L"Modo"), idMode);
+        row (tr (L"Output", L"Saída"), idOutput);
+        row (tr (L"Input", L"Entrada"), idInput);
+        row (tr (L"Buffer size", L"Tamanho do buffer"), idBuffer);
+        row (tr (L"Safety margin", L"Margem de segurança"), idSafety);
+        make (L"STATIC", L"", SS_LEFT, 14, y + 4, 432, 80, idInfo);
+        make (L"BUTTON", L"OK", BS_DEFPUSHBUTTON | WS_TABSTOP, 270, 290, 84, 28, idOk);
+        make (L"BUTTON", tr (L"Cancel", L"Cancelar"), BS_PUSHBUTTON | WS_TABSTOP, 362, 290, 84, 28, idCancel);
+
+        addString (item (idMode), tr (L"Shared (other programs keep their sound)", L"Compartilhado (os outros programas continuam com som)"));
+        addString (item (idMode), tr (L"Exclusive (lowest latency, device used alone)", L"Exclusivo (menor latência, dispositivo só do LYNX ASIO)"));
+        SendMessageW (item (idMode), CB_SETCURSEL, edit.mode == Mode::exclusive ? 1 : 0, 0);
+
+        auto lists = [this]
+        {
+            outputs = listEndpoints (eRender);
+            inputs = listEndpoints (eCapture);
+        };
+        onMtaThread (lists);
+        addString (item (idOutput), tr (L"Windows default device", L"Dispositivo padrão do Windows"));
+        int sel = 0;
+        for (size_t i = 0; i < outputs.size(); ++i)
+        {
+            addString (item (idOutput), outputs[i].name);
+            if (outputs[i].id == edit.output)
+                sel = (int) i + 1;
+        }
+        SendMessageW (item (idOutput), CB_SETCURSEL, (WPARAM) sel, 0);
+        addString (item (idInput), tr (L"Windows default device", L"Dispositivo padrão do Windows"));
+        addString (item (idInput), tr (L"None", L"Nenhuma"));
+        sel = edit.input == L"-" ? 1 : 0;
+        for (size_t i = 0; i < inputs.size(); ++i)
+        {
+            addString (item (idInput), inputs[i].name);
+            if (inputs[i].id == edit.input)
+                sel = (int) i + 2;
+        }
+        SendMessageW (item (idInput), CB_SETCURSEL, (WPARAM) sel, 0);
+        addString (item (idSafety), tr (L"None (1 period queued)", L"Nenhuma (1 período na fila)"));
+        addString (item (idSafety), tr (L"Small (1.5 periods)", L"Pequena (1,5 período)"));
+        addString (item (idSafety), tr (L"Normal (2 periods)", L"Normal (2 períodos)"));
+        SendMessageW (item (idSafety), CB_SETCURSEL, (WPARAM) edit.safety, 0);
+        fillBuffers();
+        updateInfo();
+
+        RECT wr {}, or_ {};
+        GetWindowRect (window, &wr);
+        if (owner != nullptr && GetWindowRect (owner, &or_))
+            SetWindowPos (window, nullptr, (or_.left + or_.right - (wr.right - wr.left)) / 2, (or_.top + or_.bottom - (wr.bottom - wr.top)) / 2, 0, 0,
+                          SWP_NOSIZE | SWP_NOZORDER);
+        ShowWindow (window, SW_SHOW);
+    }
+
+    static LRESULT CALLBACK proc (HWND h, UINT msg, WPARAM wp, LPARAM lp)
+    {
+        if (msg == WM_NCCREATE)
+            SetWindowLongPtrW (h, GWLP_USERDATA, (LONG_PTR) ((CREATESTRUCTW*) lp)->lpCreateParams);
+        auto* p = (Panel*) GetWindowLongPtrW (h, GWLP_USERDATA);
+        if (p != nullptr)
+        {
+            switch (msg)
+            {
+                case WM_COMMAND:
+                {
+                    const int id = LOWORD (wp);
+                    if (id == idOk || id == IDOK)
+                    {
+                        p->readControls();
+                        p->accepted = true;
+                        p->done = true;
+                        return 0;
+                    }
+                    if (id == idCancel || id == IDCANCEL)
+                    {
+                        p->done = true;
+                        return 0;
+                    }
+                    if (HIWORD (wp) == CBN_SELCHANGE && (id == idMode || id == idOutput || id == idInput))
+                    {
+                        p->readControls();
+                        // re-probe the chosen device so the sizes and the explanation match it
+                        p->driver.settings.output = p->edit.output;
+                        p->driver.settings.input = p->edit.input;
+                        p->driver.probe();
+                        p->fillBuffers();
+                        p->updateInfo();
+                    }
+                    break;
+                }
+                case WM_CLOSE:
+                    p->done = true;
+                    return 0;
+                default:
+                    break;
+            }
+        }
+        return DefWindowProcW (h, msg, wp, lp);
+    }
+};
+
+INT_PTR showPanel (LynxAsio& driver, HWND owner)
+{
+    static bool registered = false;
+    if (! registered)
+    {
+        WNDCLASSW wc {};
+        wc.lpfnWndProc = Panel::proc;
+        wc.hInstance = moduleHandle;
+        wc.hCursor = LoadCursor (nullptr, IDC_ARROW);
+        wc.hbrBackground = (HBRUSH) (COLOR_BTNFACE + 1);
+        wc.lpszClassName = L"LynxAsioPanel";
+        registered = RegisterClassW (&wc) != 0;
+    }
+    const auto original = driver.settings;
+    Panel panel { driver, driver.settings, {}, {} };
+    panel.create (owner);
+    if (owner != nullptr)
+        EnableWindow (owner, FALSE);
+    MSG msg;
+    while (! panel.done && GetMessageW (&msg, nullptr, 0, 0) > 0)
+    {
+        if (! IsDialogMessageW (panel.window, &msg))
+        {
+            TranslateMessage (&msg);
+            DispatchMessageW (&msg);
+        }
+    }
+    if (owner != nullptr)
+    {
+        EnableWindow (owner, TRUE);
+        SetForegroundWindow (owner);
+    }
+    DestroyWindow (panel.window);
+    if (panel.font != nullptr)
+        DeleteObject (panel.font);
+    driver.settings = panel.accepted ? panel.edit : original;
+    if (! panel.accepted)
+        driver.probe();
+    return panel.accepted ? IDOK : IDCANCEL;
+}
+
+//==============================================================================================================
+// COM class factory and registration
+
+class Factory final : public IClassFactory
+{
+public:
+    HRESULT STDMETHODCALLTYPE QueryInterface (REFIID iid, void** out) override
+    {
+        if (IsEqualIID (iid, IID_IUnknown) || IsEqualIID (iid, IID_IClassFactory))
+        {
+            *out = static_cast<IClassFactory*> (this);
+            AddRef();
+            return S_OK;
+        }
+        *out = nullptr;
+        return E_NOINTERFACE;
+    }
+    ULONG STDMETHODCALLTYPE AddRef() override { return 2; }
+    ULONG STDMETHODCALLTYPE Release() override { return 1; }
+    HRESULT STDMETHODCALLTYPE CreateInstance (IUnknown* outer, REFIID iid, void** out) override
+    {
+        if (outer != nullptr)
+            return CLASS_E_NOAGGREGATION;
+        auto* d = new LynxAsio();
+        const auto hr = d->QueryInterface (iid, out);
+        d->Release();
+        return hr;
+    }
+    HRESULT STDMETHODCALLTYPE LockServer (BOOL lock) override
+    {
+        lock ? ++serverLocks : --serverLocks;
+        return S_OK;
+    }
+};
+
+Factory factory;
+
+std::wstring clsidString()
+{
+    LPOLESTR s = nullptr;
+    StringFromCLSID (CLSID_LynxAsio, &s);
+    std::wstring r = s != nullptr ? s : L"";
+    CoTaskMemFree (s);
+    return r;
+}
+
+LONG setValue (HKEY root, const std::wstring& key, const wchar_t* name, const std::wstring& value)
+{
+    HKEY k = nullptr;
+    auto r = RegCreateKeyExW (root, key.c_str(), 0, nullptr, 0, KEY_WRITE, nullptr, &k, nullptr);
+    if (r == ERROR_SUCCESS)
+    {
+        r = RegSetValueExW (k, name, 0, REG_SZ, (const BYTE*) value.c_str(), (DWORD) ((value.size() + 1) * sizeof (wchar_t)));
+        RegCloseKey (k);
+    }
+    return r;
+}
+} // namespace
+
+extern "C" BOOL WINAPI DllMain (HINSTANCE instance, DWORD reason, LPVOID)
+{
+    if (reason == DLL_PROCESS_ATTACH)
+    {
+        moduleHandle = instance;
+        DisableThreadLibraryCalls (instance);
+    }
+    return TRUE;
+}
+
+extern "C" HRESULT STDAPICALLTYPE DllGetClassObject (REFCLSID clsid, REFIID iid, void** out)
+{
+    if (! IsEqualCLSID (clsid, CLSID_LynxAsio))
+        return CLASS_E_CLASSNOTAVAILABLE;
+    return factory.QueryInterface (iid, out);
+}
+
+extern "C" HRESULT STDAPICALLTYPE DllCanUnloadNow()
+{
+    return serverLocks == 0 && liveObjects == 0 ? S_OK : S_FALSE;
+}
+
+// regsvr32 lynx-asio.dll (as administrator): the COM class and the entry in the ASIO driver list.
+extern "C" HRESULT STDAPICALLTYPE DllRegisterServer()
+{
+    wchar_t path[MAX_PATH * 2] {};
+    GetModuleFileNameW (moduleHandle, path, MAX_PATH * 2);
+    const auto clsid = clsidString();
+    const auto classKey = L"SOFTWARE\\Classes\\CLSID\\" + clsid;
+    LONG r = setValue (HKEY_LOCAL_MACHINE, classKey, nullptr, driverNameW);
+    if (r == ERROR_SUCCESS)
+        r = setValue (HKEY_LOCAL_MACHINE, classKey + L"\\InprocServer32", nullptr, path);
+    if (r == ERROR_SUCCESS)
+        r = setValue (HKEY_LOCAL_MACHINE, classKey + L"\\InprocServer32", L"ThreadingModel", L"Apartment");
+    const std::wstring asioKey = std::wstring (L"SOFTWARE\\ASIO\\") + driverNameW;
+    if (r == ERROR_SUCCESS)
+        r = setValue (HKEY_LOCAL_MACHINE, asioKey, L"CLSID", clsid);
+    if (r == ERROR_SUCCESS)
+        r = setValue (HKEY_LOCAL_MACHINE, asioKey, L"Description", driverNameW);
+    return r == ERROR_SUCCESS ? S_OK : (r == ERROR_ACCESS_DENIED ? E_ACCESSDENIED : E_FAIL);
+}
+
+extern "C" HRESULT STDAPICALLTYPE DllUnregisterServer()
+{
+    const auto clsid = clsidString();
+    RegDeleteTreeW (HKEY_LOCAL_MACHINE, (L"SOFTWARE\\Classes\\CLSID\\" + clsid).c_str());
+    const auto r = RegDeleteTreeW (HKEY_LOCAL_MACHINE, (std::wstring (L"SOFTWARE\\ASIO\\") + driverNameW).c_str());
+    return r == ERROR_SUCCESS || r == ERROR_FILE_NOT_FOUND ? S_OK : E_ACCESSDENIED;
+}

+ 5 - 0
asio/Register LYNX ASIO.bat

@@ -0,0 +1,5 @@
+@echo off
+rem Registers LYNX ASIO so that other programs (FL Studio, Reaper, Ableton...) list it as an ASIO driver.
+rem Needs administrator rights: Windows asks for them. LYNX itself does not need this step.
+net session >nul 2>&1 || (powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs" & exit /b)
+"%SystemRoot%\System32\regsvr32.exe" "%~dp0lynx-asio.dll"

+ 4 - 0
asio/Unregister LYNX ASIO.bat

@@ -0,0 +1,4 @@
+@echo off
+rem Removes LYNX ASIO from the ASIO driver list of other programs. Needs administrator rights.
+net session >nul 2>&1 || (powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs" & exit /b)
+"%SystemRoot%\System32\regsvr32.exe" /u "%~dp0lynx-asio.dll"

+ 6 - 0
asio/lynx-asio.def

@@ -0,0 +1,6 @@
+LIBRARY lynx-asio
+EXPORTS
+    DllGetClassObject PRIVATE
+    DllCanUnloadNow PRIVATE
+    DllRegisterServer PRIVATE
+    DllUnregisterServer PRIVATE

+ 136 - 0
docs/analise/REA_rodada86.md

@@ -0,0 +1,136 @@
+# REA round 86: Edison (FL's audio editor) feature set → LYNX audio editor
+
+Goal: give LYNX an audio editor window in the spirit of FL Studio's Edison: open it from an audio clip, a Sampler
+channel, a Browser file or a mixer slot; view, select, mark and edit audio; record into it; send the result back to
+the project. Clean-room: FL's form resources and strings were read only to learn *which* features and menus Edison
+has; the window, the drawing and every algorithm in LYNX are LYNX's own (dark theme, red accent, LYNX's clean clip
+waveform from `docs/analise/UI_STUDY_playlist_clips.md`). No Image-Line art, text blocks or code went into the repo.
+
+## Sources
+
+- [DATA] `Plugins/Fruity/Effects/Edison/Edison_x64.dll` (FL Studio 2026, 6 223 360 bytes). REA
+  `inspect_pe_resources`: 147 resources, 57 RT_RCDATA, of which 34 are Delphi forms (`TPF0`). The forms were read with
+  the round-81 binary-DFM reader (`tmp/r81/py/dfm.py`, component tree + Caption/Hint/Items only); output kept in
+  `tmp/r86/dfm_all.txt`.
+- [DATA] UTF-16/ANSI strings of the same DLL for the main window's button hints (the toolbar is built in code, not in a
+  form): `tmp/r86/hints.txt`.
+
+## 1. Edison's main window (what a user sees)
+
+The main editor form is `TMEnvEditor` (the shared FL envelope/waveform editor, 683×131 design size): a paint box (the
+wave view), a horizontal time scroller, a vertical level scroller and a global button strip. Edison adds a toolbar
+(code-built; hints [DATA]):
+
+| Group | Buttons (hint text, abridged) |
+|---|---|
+| Transport | Record (R), Play / pause (Space), Stop, Loop (L), Scrub, Mute input (I), "Slave playback to host" (H), "Scrolls to reach playback marker" (A) |
+| Recording | "When / what to record": start immediately, when input is detected, when the host is playing; "Append recording to existing project"; "Maximum recording time" |
+| Edit | Undo / undo history, Click-free (smooth) editing (C), Snap to grid, Step editing, Slide succeeding points/regions, Freeze editing / hide points |
+| View | Display waveform / spectrum (S), view noise threshold, view regions / markers / loop, zoom out full |
+| Quick tools | Fade in / declick in, Fade out / declick out, Normalize / normalize regions, Trim side noise / gate noise, Clean up (denoise), Time stretch / drum(loop) stretch, Tune loop / set loop, Add / remove marker / region, Medium auto-slicing |
+| Out | Drag / copy sample / selection, Send to playlist as audio clip / to channel, Save as / save as WavPack, Run script |
+| Info | Title, Tempo, Sample rate, Bit depth (press to convert), Channels (press to convert), Period snap |
+
+## 2. Edison's main menu (`WAVOptionsMenu` in the form) [DATA]
+
+- **File**: New, Load sample, Save sample as, Save as 24-bit WAV, Export regions (common / sampler use), Export display,
+  recent.
+- **Format**: Edit properties (sample properties form), precision 16-bit int / 32-bit float, Mono / Stereo.
+- **Edit**: Undo backwards, Undo, Undo history, Undo mix (envelope/spectral), enable undo for large samples, Cut, Copy,
+  Paste insert / replace / mix / mix (envelope) / mix (spectral) / stretch / replace (drum), Clear, Delete, Trim,
+  Delete part after loop, Insert silence, Click-free editing.
+- **Tools**: Envelope (an amp envelope drawn over the audio, mixed down later); Amp (Amp…, reverse polarity, normalize,
+  lossy normalize, fade in/out, declick in/out); Waveform (Center = DC removal); Time (reverse, time stretch / pitch
+  shift…, drum(loop) stretch, claw machine, scratch); Channels (swap, left→mono, right→mono, mono-if-mono); Synthesis
+  (generate noise); Scripting; Noise gating (acquire threshold, gate, trim side noise, trim & slice); Spectral
+  (convolution reverb, blur, equalize, denoise with noise profile, match spectrum, vocal denoise, deverb); Regions
+  (normalize / declick all regions, perfect regions, tune loop).
+- **Regions**: Add region, Add marker, Set loop, Set first downbeat, Delete, rename (all / quick / auto), assign
+  trigger notes, auto-slice (dull / medium / sharp, small/medium/large grid), detect beats, detect pitch regions,
+  zero-cross check, freeze all. Per-region menu: delete, clone, turn into marker, rename, loop type (normal / ping-pong),
+  purpose (basic, beat, downbeat, CD track, CD index, single cycle), trigger note, select, zoom on.
+- **View**: spectrum, dual view, display settings (fancy mode, colouring, channels mono/multi/left/right, spectrum
+  precision 64…8192 bands, natural scale/weighting, enhanced frequency/time, draft), regions, loop, time format
+  (samples / m:s:ms / bar:beat:tick / auto), scroller above, background gradient, invert grid.
+- **Snap**: grid, regions, samples, zero-crossing, pitch period. **Select**: deselect, before / after selection,
+  zoomed part, previous / next region. **Zoom**: in, out, out full, on selection, on left / right of selection.
+
+## 3. Tool forms [DATA]
+
+- `TMEAmpToolForm` "Amp": volume, left/right volume, panning (circular / triangular law), stereo separation; Reset,
+  Preview, Accept.
+- `TMEStretchToolForm` "Time stretcher / pitch shifter": method (Resample, élastique variants), pitch coarse/fine/mul,
+  time mul / absolute length (ms), insert-or-paste-over, formant preservation.
+- `TMEWAVPropForm` "Sample properties": title, file name, comments; format (16-bit int / 32-bit float), sample rate with
+  a resample box and a preset list (8000 … 192000), channels (stereo, mono merged / left / right); sampler middle note,
+  fine tune, key range; tempo, length in beats, tempo-sync.
+- Others (not reimplemented in this round): Blur, Claw, Decimate, Denoise, Drum stretch, Env filter, EQ, Harm, Loop
+  tuner, Reverb, Scale, Smooth, Vocal denoise, Deverb, MP3/OGG options, Settings ("Piano keyboard preview", "Slave
+  playback to host").
+
+## 4. What LYNX implements (round 86)
+
+Core (`src/core/AudioEdit.{h,cpp}`, JUCE-free, tests `tests/AudioEditTests.inc`): a `Document` (audio 1-2 channels,
+markers/regions, loop, title) and every edit as a function on a frame range, keeping markers, regions and the loop
+attached to the audio (deleting drops markers inside and clips regions; inserting/stretching shifts or scales them):
+
+| Edison | LYNX | Notes |
+|---|---|---|
+| Cut / Copy / Paste insert / replace / mix | `cut`, `copy`, `insert`, `pasteReplace`, `pasteMix` | pasted audio is converted to the document's channels and rate (`conform`) |
+| Clear / Delete / Trim / Insert silence / Delete part after loop | `clear`, `erase`, `trim`, `insertSilence`, `deleteAfterLoop` | |
+| Fade in / out (curve) | `fadeIn`, `fadeOut` with `Curve` linear / smooth (S) / slow start / fast start | LYNX's own curve set |
+| Declick in / out | `declickIn`, `declickOut` | 4 ms smooth fade |
+| Normalize | `normalize (targetDb)` | peak normalisation |
+| Amp | `amp (gain, pan)` | far side unity, near side linear (LYNX's own law) |
+| Reverse / Reverse polarity / Center | `reverse`, `invert`, `removeDc` | markers inside a reversed range are mirrored |
+| Time stretch / pitch shift (Resample method) | `changeSpeed` | windowed-sinc (Blackman, 16 zero crossings, band-limited when shortening) |
+| Time stretch / pitch shift (stretch methods) | `timeStretch`, `pitchShift` | LYNX's WSOLA (`core/TimeStretch`) — FL's élastique is not available; pitch = stretch + resample back |
+| Sample properties › sample rate + Resample | `resample (rate)` | same duration and pitch, markers scaled |
+| Channels: swap / left→mono / right→mono / mono | `swapChannels`, `toMono`, `toStereo` | |
+| Regions: add marker / region / set loop / delete | `addMarker`, `addRegion`, `setLoop`, `removeMarkers` | |
+| Snap to zero-crossing | `nearestZeroCrossing` | |
+| Auto-slice (dull / medium / sharp) | `detectOnsets (sensitivity)` | own energy-flux detector; grid slicing in the UI |
+| Undo / undo history | `History` (whole states, labels, memory bound) | |
+| Spectrum view | `spectrogram` | own radix-2 FFT, Hann window, 0 dBFS = full-scale sine |
+| Save (WAV) with regions/loop | `encodeWav` / `decodeWav` / `decodeWavMarkers` | 16/24-bit int, 32-bit float; `cue ` + `LIST/adtl` (`labl`, `ltxt`) + `smpl` |
+
+Recording (`src/core/AudioCapture.h`): a lock-free ring the audio thread fills from one source — the sound card
+input (`AudioEngine` device callback), the Master or a mixer insert (`RackRenderer`, after the fader; a silent insert
+pushes silence so the timing holds). `MeterBank::capture` holds it; nothing is pushed while no source is chosen.
+Start modes as Edison's: immediately, when the input is heard (−40 dBFS), when the song plays (stops with it).
+
+Window (`src/ui/AudioEditor.{h,cpp}`, a resizable tool window, one per source):
+
+- Toolbar: menu (File / Edit / Tools / Regions / View / Record), undo, redo, undo history, record + "what and when
+  to record", play/stop (Space; the selection, the loop or from the cursor), loop, waveform/spectrogram (S), snap to
+  zero crossings, zoom out full, save, Send (Playlist audio clip / new Sampler channel / replace the source channel's
+  sample).
+- Quick tools row: Cut, Copy, Paste, Delete, Trim, Silence, Fade in, Fade out + curve, Normalize, Amp…, Reverse,
+  Invert, Center, Stretch…, Resample…, Marker, Region, Set loop. Tool windows (Amp, Time stretch / pitch shift,
+  Resample, Insert silence, Normalize to) have Preview / Accept / Cancel like Edison's tool forms.
+- View: ruler (time format auto / m:s / samples / bar:beat:tick) with marker flags, region bands and the loop bar
+  (drag markers and loop ends), level scale (L/R, −6 dB guides), the waveform in the clean clip style (one filled
+  min/max shape in a light tint of the audio colour; exact samples when zoomed in, a line and dots past one sample
+  per pixel), or a spectrogram (log or linear frequency, 256…4096 bands, LYNX's own colour map: canvas → deep red
+  → accent red → amber → white); overview strip; info bar (rate, channels, length, selection, peak, status).
+- Mouse/keys: drag selects (Shift extends), double-click selects the region or the stretch between markers, Ctrl+wheel
+  zooms, wheel scrolls; Ctrl+Z/Y/X/C/V/A/S, Del, Esc, Home/End, R, L, S, M, F, +/−. Audio files can be dropped in.
+- The record button's question ("What would you like to record?", round 88) has a fourth choice, "Audio, into the
+  audio editor" (FL's "Audio, into the Edison audio editor/recorder"): an empty editor records the audio input from
+  the moment the song plays and stops with it; LYNX starts the song.
+- Opens from: Playlist audio clip menu ("Edit in the audio editor"), Channel Rack sampler menu ("Edit the sample in
+  the audio editor"), Browser file menu, mixer slot / add-slot menu ("Audio editor (record this insert)"), Edit menu
+  ("Audio editor…") and the record menu ("Record into the audio editor…").
+- Output: edited audio is written as a new WAV in `Music\LYNX\Edits` (a new name each time, so no cache shows stale
+  audio) before it goes to the project; Save as WAV writes where the user chooses (16/24/32f) and tells the sample
+  library to forget the old decode.
+
+Not done (Edison features left out): envelope (amp/scratch envelope tools), spectral tools (blur, EQ, convolution
+reverb, denoise, match spectrum, vocal denoise, deverb), noise gating, drum(loop) stretch, claw machine, loop tuner,
+beat/pitch detection, trigger-note assignment, scripting, dual view, drag-out of a selection, MP3/OGG export,
+"slave playback to host" (the editor plays through the preview output), unsaved-changes prompt on close.
+
+## Where I stopped / next steps
+
+- Windows build, snapshots and LOOK checked by the coordinator on landing; record-dialog target added.
+- Left: the Edison features listed under "Not done" above.

+ 181 - 0
docs/analise/REA_rodada97.md

@@ -0,0 +1,181 @@
+# Round 97: low latency on Windows — WASAPI modes in Settings and the "LYNX ASIO" driver
+
+Branch `feature/asio97`. English, clean-room (FL Studio ASIO's DLL was only inspected for *how* it drives WASAPI; no
+Image-Line code is in the repository).
+
+User report: on the user's PC (Ryzen 5 3600, "USB Audio CODEC" device) LYNX's "Windows Audio" device would not go
+below ~480 samples; 256 had one glitch on a real project; "Realtek ASIO" kills every host; "FL Studio ASIO" works.
+
+Evidence markers: **[MEASURED]** numbers from our tools on this machine, **[DECOMP]** Ghidra (REA MCP) on
+`ILWASAPI2ASIO_x64.dll` (FL Studio ASIO, `C:\Program Files\Image-Line\FL Studio ASIO`), **[CODE]** reading of
+LYNX / JUCE 8.0.4 sources, **[DOC]** Microsoft / Steinberg documentation, **[model]** our interpretation,
+**not confirmed** where unknown.
+
+Work dir: `~/.claude/jobs/f8789b49/tmp/r97/` (`probe/probe.cpp` WASAPI capability probe, `fl/` the DLL copy and
+Ghidra output, `rt/` the `--rtstress` reports).
+
+## 1. What this device can do (WASAPI probe)
+
+[MEASURED] `probe.exe` on the default render endpoint (USB Audio CODEC, Windows class driver):
+
+| Query | Result |
+|---|---|
+| Mix format | 48000 Hz, 2 ch, 32-bit float (extensible) |
+| `GetDevicePeriod` | default 10.000 ms, minimum 3.000 ms |
+| `IAudioClient3::GetSharedModeEnginePeriod` | default = fundamental = min = max = **480 frames** |
+| Exclusive formats | only **16-bit PCM** accepted (24-in-32, 24, 32 → `AUDCLNT_E_UNSUPPORTED_FORMAT`) |
+| Exclusive event init, 16-bit | 32/64/96/128 frames → `AUDCLNT_E_INVALID_DEVICE_PERIOD`; **144** (3 ms), 192, 256, 480 OK |
+
+[model] Consequences:
+
+* Classic shared mode mixes every program in 10 ms engine periods. A smaller client buffer cannot lower the latency
+  below that period; it only makes the callbacks bursty (JUCE still lists sizes down to the 3 ms device minimum, which
+  is why 256 "worked" but glitched).
+* The IAudioClient3 low-latency shared mode is real on drivers that report a smaller engine period, but this device's
+  class driver pins it to 480 frames, so "Windows Audio (Low Latency Mode)" gives nothing extra here.
+* Exclusive mode reaches the device minimum: **144 frames = 3 ms** at 48 kHz, 16-bit only.
+
+## 2. How FL Studio ASIO drives WASAPI [DECOMP]
+
+`ILWASAPI2ASIO_x64.dll` exports the standard in-proc COM entry points (`DllGetClassObject`, `DllCanUnloadNow`,
+`DllRegisterServer`, `DllUnregisterServer`); its PDB path names Steinberg's ASIO SDK sample (`asiosample.pdb`), RTTI
+names `ILWasapiToAsioDriver`, `IASIO`, `WASAPIWrapper`, `WASAPIWrapper::Client`. Settings live under
+`HKCU\Software\Image-Line\ASIO` (value `bufferSize`, plus endpoint ids).
+
+The audio thread (function at 0x180006690):
+
+1. `timeBeginPeriod(1)`, `CoInitialize`, then the capture and render endpoints: the ids chosen in the panel, or the
+   default endpoints (`GetDefaultAudioEndpoint(eCapture/eRender, eMultimedia)`).
+2. Both clients are opened in **shared mode, polling (no event flag), with a 1-second buffer**
+   (`Initialize(SHARED, 0, 10000000, 0, mixFormat)`); format = each endpoint's mix format.
+3. The thread joins MMCSS "Pro Audio" at `AVRT_PRIORITY_CRITICAL`.
+4. Loop: `Sleep(1)`; read the ASIO block size from the driver object; target fill =
+   **2 × max(ASIO block, device default period)** frames; drain the capture packets into a FIFO; while the render
+   queue (`GetCurrentPadding`) is below the target, run the host's `bufferSwitch` and push its output through a
+   fractional resampler into the render buffer.
+
+[model] So FL Studio ASIO accepts any ASIO block size because the host callbacks are decoupled from the device by a
+FIFO, but in shared mode its real output latency is still about two engine periods (≈ 20 ms here). It is stable
+because it never asks the shared engine for less than one period of queued audio. It has no exclusive mode
+(not confirmed: no `AUDCLNT_SHAREMODE_EXCLUSIVE` path was found in the audio thread).
+
+## 3. Part 1 — the WASAPI modes in Settings > Audio
+
+JUCE 8 already offers three WASAPI device types [CODE `juce_WASAPI_windows.cpp`]: "Windows Audio" (shared),
+"Windows Audio (Low Latency Mode)" (IAudioClient3 `InitializeSharedAudioStream` at the minimum engine period) and
+"Windows Audio (Exclusive Mode)" (event-driven exclusive; tries float 32, int 32, 24, 16 bit formats). LYNX now:
+
+* names them for what they are (pt-BR included): "Windows Audio (shared)", "(shared, low-latency period)",
+  "(exclusive, lowest latency)", "DirectSound (legacy)";
+* explains each under the driver box; for shared mode it prints the engine period of the open device;
+* hides, in classic shared mode, buffer sizes smaller than the engine period (they never lower the latency);
+* `--rtstress ... --type "<driver type>" --device "<output>" --buffer N` tries another driver for one run and then
+  restores the user's saved device.
+
+(measurements: section 5)
+
+## 4. Part 2 — LYNX ASIO (own universal ASIO driver)
+
+`asio/LynxAsio.cpp` (one file, ~1500 lines, built by `scripts/build-lynx-asio.sh` with Zig/MinGW into
+`lynx-asio.dll`; CMake target `lynx-asio` for MSVC). Written from Microsoft's WASAPI documentation and the ASIO SDK
+interface headers (GPLv3 option, like LYNX's ASIO host); only the general architecture of section 2 was taken
+from FL Studio ASIO, and two things are done differently on purpose: an event-driven stream instead of 1 ms
+polling, and an exclusive mode.
+
+* **COM server**: `DllGetClassObject` / `DllCanUnloadNow` / `DllRegisterServer` / `DllUnregisterServer`; own
+  CLSID `{E987C593-898E-4557-BFE3-4288B0228718}`; `QueryInterface` answers the CLSID itself, which is how ASIO
+  hosts ask for `IASIO`. Registration (administrator, `regsvr32`) writes `HKLM\SOFTWARE\Classes\CLSID\{…}`
+  (InprocServer32, ThreadingModel Apartment) and `HKLM\SOFTWARE\ASIO\LYNX ASIO` (CLSID, Description).
+* **Apartments**: every WASAPI object lives on the driver's own MTA threads (the audio thread, and short-lived
+  probe threads for `init` and the panel), whatever apartment the host calls from.
+* **Shared mode**: the render stream is event-driven; with the host's rate equal to the mix rate it first tries
+  `IAudioClient3::InitializeSharedAudioStream` at the minimum engine period (only when that is shorter than the
+  default), else the classic `Initialize(SHARED, EVENTCALLBACK)` (with Windows' sample-rate conversion when the
+  host asks for another rate). On each device event it tops the device queue up to a **target fill** of 1, 1.5 or 2
+  engine periods ("safety margin" in the panel; default 2 = FL Studio ASIO's choice) from a FIFO that the host's
+  `bufferSwitch` calls fill block by block — so any ASIO block size works (32…4096).
+* **Exclusive mode**: event-driven at the ASIO block (never below the device's minimum period; re-initialised with
+  the aligned size on `AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED`), format chosen in the order float32, int32, 24-in-32,
+  int24, int16. The device gets one whole buffer per event.
+* **Input**: a shared capture stream drained at every render event into an input FIFO primed with one capture
+  period plus one block of silence, trimmed when it grows past two periods plus two blocks (clock drift).
+* The host always sees `ASIOSTFloat32LSB`; `bufferSwitchTimeInfo` when the host supports time info; sample
+  position and system time for `getSamplePosition`; `kAsioResetRequest` when the device stops calling for 2 s, is
+  invalidated, or when the panel / sample rate changes.
+* **Thread**: MMCSS "Pro Audio" at `AVRT_PRIORITY_CRITICAL` while streaming.
+* **Panel** (`controlPanel`, a small Win32 window built in code, English or pt-BR from the Windows UI language):
+  mode (shared / exclusive), output and input device (Windows default, any endpoint, or no input), preferred
+  buffer size, safety margin, and an explanation with the device's real shared period and exclusive minimum.
+* **Settings**: `%APPDATA%\LYNX\lynx-asio.ini` (no registry); `LYNX_ASIO_INI` overrides the path and
+  `LYNX_ASIO_LOG` writes what was opened plus stream statistics (late device events, slow host bursts, input
+  underflows) — used for the measurements below.
+
+### Testing without registration
+
+* `tmp/r97/host/asiohost.cpp`: a 150-line ASIO host that `LoadLibrary`s a driver DLL, creates it through its
+  class factory and plays a quiet sine.
+* LYNX: hidden `--asiodll "<file.dll>[|{CLSID}]"` adds a device type "ASIO driver file"
+  (`src/engine/DllAsioDevice.cpp`, an `AudioIODevice` on top of any `IASIO*`); with `--rtstress` it is selected
+  automatically, so the real engine plays a real project through the driver:
+  `LYNX.exe --asiodll lynx-asio.dll --rtstress project.flp report.txt 15 --buffer 144`.
+
+### Shipping and registration (for other programs)
+
+`build-windows-zig.sh` builds `lynx-asio.dll` next to `LYNX.exe`; the installer, the portable zip and the release
+workflow carry it with `Register LYNX ASIO.bat` / `Unregister LYNX ASIO.bat` (they ask for administrator rights
+and run `regsvr32`). By hand, from an administrator prompt:
+
+    regsvr32 "%LOCALAPPDATA%\Programs\LYNX\lynx-asio.dll"        (install)
+    regsvr32 /u "%LOCALAPPDATA%\Programs\LYNX\lynx-asio.dll"     (remove)
+
+The uninstaller unregisters it first when `HKLM\SOFTWARE\ASIO\LYNX ASIO` exists (one UAC prompt).
+
+## 5. Measurements
+
+[MEASURED] User's PC, USB Audio CODEC, `--rtstress` of the girlfriend's project (`gf92\full.flp`), 15 s each
+(`tmp/r97/rt/rt.sh`, reports in `tmp/r97/rt/`). "Latency" = the output latency the device reports to LYNX.
+
+| Driver (LYNX device type) | Asked | Got | Output latency | Over deadline | Late calls | Result |
+|---|---|---|---|---|---|---|
+| Windows Audio (shared) | 480 | 480 @ 48 kHz | 480 (10.0 ms) | 0 | 0 | OK |
+| Windows Audio (Low Latency Mode) | 480 | 480 @ 48 kHz (engine period is fixed) | 480 (10.0 ms) | 0 | 0 | OK |
+| Windows Audio (Exclusive Mode) | 64 | open failed | — | — | — | below the 3 ms minimum (the UI never offers it) |
+| Windows Audio (Exclusive Mode) | 128 | JUCE fell back to 480 @ 44.1 kHz | 960 | 0 | 0 | OK |
+| **Windows Audio (Exclusive Mode)** | **144** | **144 @ 44.1 kHz (3.3 ms)** | **288 (6.5 ms)** | 0 | 0 | **OK** |
+| Windows Audio (Exclusive Mode) | 256 | 256 @ 44.1 kHz | 512 (11.6 ms) | 0 | 0 | OK |
+| LYNX ASIO exclusive (`--asiodll`) | 64 / 128 | 144 @ 48 kHz (device minimum) | 288 (6.0 ms) | 0 | 0 | OK |
+| **LYNX ASIO exclusive** | **144** | **144 @ 48 kHz (3.0 ms)** | **288 (6.0 ms)** | 0 | 0 | **OK** |
+| LYNX ASIO exclusive | 256 | 256 @ 48 kHz | 512 (10.7 ms) | 0 | 0 | OK |
+| LYNX ASIO shared, margin "none" | 128 | 128 | 608 (12.7 ms) | 0 | 1498 * | OK by the driver's own count |
+| LYNX ASIO shared, margin "normal" | 128 | 128 | 1088 (22.7 ms) | 0 | 1499 * | OK by the driver's own count |
+| FL Studio ASIO (test host, reference) | 128 / 256 | 44.1 kHz | 2520–2646 (57–60 ms) reported | — | — | — |
+
+\* In shared mode the device wakes the driver once per 10 ms engine period and the driver runs four 128-sample
+host blocks back to back; LYNX's "late device calls" heuristic (gap > 1.9 × block + 2 ms) counts every such burst.
+The driver's own statistics (`LYNX_ASIO_LOG`) for those runs: 3295 device events, **0 late events** (max gap
+11–14 ms), **0 slow bursts** (max 5.9 ms of host work per 10 ms period), 0 input underflows.
+
+LYNX ASIO exclusive, driver statistics over the whole run (including project loading): 2–4 late device events
+(max gap 7.3 ms) and one slow burst (4.9–7 ms) — all outside the 15 s measurement window, i.e. at the start of
+playback; none during the measured playback. [model] probably the first heavy block when the transport starts.
+
+Test host (`asiohost.exe`, sine): LYNX ASIO exclusive 144 → 1333 events in 4 s, 0 late (max gap 3.29 ms);
+shared 128 with margin "none" → 0 late (max gap 10.6 ms); stop/start cycles work (streams are reset on stop).
+
+[model] Conclusions for this PC: the shared modes cannot go below the 10 ms engine period (the class driver pins
+the IAudioClient3 period too); **exclusive mode — JUCE's or LYNX ASIO's — runs the real project at 3 ms buffers
+(≈ 6 ms output latency) without glitches**. LYNX ASIO's shared mode has a lower real latency than FL Studio ASIO
+here (12.7 ms with margin "none", 22.7 ms with "normal", vs. ~57 ms reported by FL Studio ASIO at 44.1 kHz).
+
+## Where I stopped / next steps
+
+* Done: Settings > Audio names/explains the WASAPI modes (pt-BR), hides useless shared sizes; `--rtstress --type
+  --device` restores the user's device; LYNX ASIO driver (shared + exclusive, panel, ini, log); `--asiodll` test
+  mode; installer / zip / release workflow carry the driver and the register/unregister helpers.
+* Not done / ideas:
+  - exclusive *capture* (input is always a shared stream, so input latency stays ≈ one capture period + block);
+  - LYNX could list `lynx-asio.dll` next to `LYNX.exe` without registration (the `--asiodll` device type already
+    works); kept hidden until the user has tried the driver in other hosts;
+  - the "late device calls" heuristic should know when a driver delivers blocks in bursts (shared-mode ASIO);
+  - a resampler inside LYNX ASIO (shared mode at other rates uses Windows' converter; exclusive offers only the
+    device's own rates); 32-bit build of the driver for 32-bit hosts.

+ 14 - 4
docs/analise/UI_STUDY_round90.md

@@ -35,7 +35,9 @@ dark, flat, red-accent look. No FL artwork, icons or code were copied. FL captur
 | 8 | Rack title | Channel filter group ("All") selector, swing knob, graph/keyboard view buttons | Pattern name and swing knob | open (filter groups need the FLP filter data) |
 | 9 | Mixer side panel | Always 10 numbered slots with mix knob and LED, built-in 3-band insert EQ, input and output selectors | Effect list (click to add) with the selected effect's controls below; mix knob per slot | open: insert EQ panel and output selector; input selector belongs to round 88 |
 | 10 | Mixer strip names | Vertical names, compact window (~480 px tall) | Horizontal truncated names, very tall faders when maximised | open (layout choice) |
-| 11 | Piano Roll | Overview strip with a note preview under the title; the view opens fitted to the pattern | No overview strip; opens at the default zoom | open |
+| 11 | Piano Roll | Overview strip with a note preview under the title; the view opens fitted to the pattern | No overview strip; opens at the default zoom | **Fixed** (batch 2): overview strip above the ruler (notes in the channel colour, visible window outlined: drag scrolls, edges zoom, click jumps, double-click shows everything) replaces the bottom scroll bar; opening fits the pattern (at least one bar) |
+| 13 | Channel Rack | Channel buttons stay in view while the steps scroll sideways | The whole rack scrolled (names left the view) | **Fixed** (batch 2) |
+| 12 | Playlist | The same overview strip above the ruler (clips in their colours, one row per track) is the horizontal scroller; no bottom scroll bar | Bottom scroll bar only | **Fixed** (batch 2): same strip as the Piano Roll |
 
 Not compared in depth: Browser (FL 2026 docks it left, LYNX too), plugin wrappers (LYNX draws its own editors).
 
@@ -55,6 +57,11 @@ Not compared in depth: Browser (FL 2026 docks it left, LYNX too), plugin wrapper
   (FL's default grey 0x485156 = no colour); .lynx `playlistTrackColours` list ([index, 0xRRGGBB]; older versions
   ignore it); undo history names the change "Playlist tracks".
 - **Mixer** (`ui/MixerComponent.cpp`): strips tinted with the insert colour (selected strips a little more).
+- **Overview strip** (batch 2; `ui/EditorTools.*` `OverviewBar`, gestures in `core/EditorGestures.h`
+  `overviewGrabAt` / `overviewDrag` / `overviewCentredOn`): one widget for the Piano Roll and the Playlist, placed
+  between the toolbar and the ruler (`overviewHeight` 16 px, `rulerTop`); the editors' horizontal scroll bars are
+  hidden (they still hold the range). Piano Roll: `scrollToNotes (fitPattern)` fits the pattern on open
+  (4..64 px per step). Test `uilook90_overview_strip_gestures`.
 - Tests: `uilook90_rack_note_preview_rule`, `uilook90_flp_track_colours` (Thief: DRUMS 0xFF770E0B, BASSES
   0xFF16296C, default tracks uncoloured); the selftest's project round trip checks a track colour.
 
@@ -64,6 +71,9 @@ Shots (outside the repo): FL `lynx-test/uilook90/flref/01..07-*.png`; LYNX befor
 
 ## Where I stopped / next steps
 
-- Done: items 1-5. Next candidates: 6 (track groups: decode the 0xEE group fields), 8 (rack filter groups),
-  9 (mixer side panel: insert EQ section, output selector), 11 (Piano Roll overview strip, open fitted to the
-  pattern), a fixed name column while the rack's steps scroll sideways (today the whole rack scrolls).
+- Batch 1 (items 1-5) landed in e0a8b3f. Batch 2 (items 11-12: overview strip on the Piano Roll and the Playlist,
+  Piano Roll fitted to the pattern on open, Channel Rack controls column that stays in view while the steps
+  scroll sideways = `ChannelRackComponent::stickyX`/`moved()`) built, tested and snapshot-checked
+  (`lynx-test/uilook90/after4`: `s-pianoroll`, `s-playlist`, `s-desktop-1920`, `s-desktop-rack-scrolled`).
+- Next candidates: 6 (track groups: decode the 0xEE group fields), 8 (rack filter groups), 9 (mixer side panel:
+  insert EQ section, output selector), 10 (mixer strip names/compact height).

+ 173 - 4
resources/i18n/pt-BR.txt

@@ -1505,6 +1505,16 @@ countries: br
 "Output device" = "Dispositivo de saída"
 "Input device" = "Dispositivo de entrada"
 "Buffer size" = "Tamanho do buffer"
+"Windows Audio (shared)" = "Windows Audio (compartilhado)"
+"Windows Audio (shared, low-latency period)" = "Windows Audio (compartilhado, período de baixa latência)"
+"Windows Audio (exclusive, lowest latency)" = "Windows Audio (exclusivo, menor latência)"
+"DirectSound (legacy)" = "DirectSound (antigo)"
+"Other programs keep their sound. Windows mixes every program in steps of {0} ms on this device, so the buffer cannot go below that. For lower latency choose the exclusive mode or an ASIO driver." = "Os outros programas continuam com som. O Windows mistura todos os programas em passos de {0} ms neste dispositivo, então o buffer não fica menor que isso. Para latência menor escolha o modo exclusivo ou um driver ASIO."
+"This device does not support a shorter period in shared mode (it stays at {0} ms). Use the exclusive mode or an ASIO driver for lower latency." = "Este dispositivo não aceita um período menor no modo compartilhado (fica em {0} ms). Use o modo exclusivo ou um driver ASIO para latência menor."
+"Shared like the normal mode, but asks Windows for a shorter mixing period. Only some drivers support it." = "Compartilhado como o modo normal, mas pede ao Windows um período de mixagem menor. Só alguns drivers aceitam."
+"LYNX uses the device alone: the lowest latency without ASIO, but other programs go silent while LYNX plays." = "O LYNX usa o dispositivo sozinho: a menor latência sem ASIO, mas os outros programas ficam mudos enquanto o LYNX toca."
+"Old Windows audio path with high latency. Use it only when the others fail." = "Caminho de áudio antigo do Windows, com latência alta. Use só quando os outros falharem."
+"Low-latency drivers. LYNX ASIO, FL Studio ASIO and ASIO4ALL work with any device; a manufacturer's ASIO driver works with its own device." = "Drivers de baixa latência. LYNX ASIO, FL Studio ASIO e ASIO4ALL funcionam com qualquer dispositivo; o driver ASIO de um fabricante funciona com o próprio dispositivo."
 "Smaller buffers answer faster when you play; larger ones give the CPU more room (fewer clicks)." = "Buffers menores respondem mais rápido quando você toca; maiores dão mais folga à CPU (menos estalos)."
 "With recording on, the sound card input becomes a Playlist clip (the Input device above)." = "Com a gravação ligada, a entrada da placa de som vira um clipe na Playlist (o dispositivo de entrada acima)."
 "{0} samples ({1} ms)" = "{0} amostras ({1} ms)"
@@ -1575,6 +1585,8 @@ countries: br
 "What would you like to record?" = "O que você quer gravar?"
 "Don't ask again (right-click the record button for the recording filter)" = "Não perguntar de novo (clique direito no botão de gravar para o filtro de gravação)"
 "Audio, into the Playlist as an audio clip" = "Áudio, na Playlist como clipe de áudio"
+"Audio, into the audio editor" = "Áudio, no editor de áudio"
+"Records the audio input into a new audio editor while the song plays" = "Grava a entrada de áudio em um novo editor de áudio enquanto a música toca"
 "Arms the selected mixer insert; choose its audio input (microphone) if it has none" = "Arma o insert selecionado do mixer; escolha a entrada de áudio (microfone) se ele não tiver"
 "Notes, into the current pattern" = "Notas, no pattern atual"
 "Notes played on a MIDI keyboard or the PC keyboard" = "Notas tocadas num teclado MIDI ou no teclado do PC"
@@ -1606,7 +1618,168 @@ countries: br
 "Input channels: none open. Choose an input device above to record a microphone or an instrument." = "Canais de entrada: nenhum aberto. Escolha um dispositivo de entrada acima para gravar um microfone ou um instrumento."
 "Input channels ({0}): {1}" = "Canais de entrada ({0}): {1}"
 "Piano Roll notes: [LMB] opens them in the Piano Roll" = "Notas do Piano Roll: [LMB] abre no Piano Roll"
+"Overview: [LMB] drag the window to scroll, drag its edges to zoom, click elsewhere to jump there  [2xLMB] show everything" = "Visão geral: [LMB] arraste a janela para rolar, arraste as bordas para dar zoom, clique fora para pular até lá  [2xLMB] mostra tudo"
 
+# audio editor (round 86)
+"Preview" = "Pré-ouvir"
+"Menu: file, edit, tools, regions, view" = "Menu: arquivo, editar, ferramentas, regiões, exibir"
+"What and when to record" = "O que e quando gravar"
+"Play / stop the selection" = "Tocar / parar a seleção"
+"Snap the selection to zero crossings" = "Ajustar a seleção aos cruzamentos de zero"
+"Zoom out full" = "Afastar tudo"
+"Save as WAV..." = "Salvar como WAV..."
+"Loop" = "Loop"
+"Loop the playback" = "Repetir a reprodução"
+"Spectrum" = "Espectro"
+"Show the waveform or the spectrogram" = "Mostrar a forma de onda ou o espectrograma"
+"Send" = "Enviar"
+"Send to the Playlist as an audio clip, to a new Sampler channel or back to the channel" = "Enviar para a Playlist como clipe de áudio, para um novo canal Sampler ou de volta ao canal"
+"Cut the selection (Ctrl+X)" = "Recortar a seleção (Ctrl+X)"
+"Copy the selection (Ctrl+C)" = "Copiar a seleção (Ctrl+C)"
+"Paste" = "Colar"
+"Paste at the cursor, or over the selection (Ctrl+V)" = "Colar no cursor, ou sobre a seleção (Ctrl+V)"
+"Delete the selection (Del)" = "Apagar a seleção (Del)"
+"Trim" = "Aparar"
+"Keep only the selection" = "Manter só a seleção"
+"Silence" = "Silêncio"
+"Silence the selection (Clear)" = "Silenciar a seleção (limpar)"
+"Fade in" = "Fade in"
+"Fade in over the selection (curve: the arrow next to Fade out)" = "Fade in na seleção (curva: a seta ao lado de Fade out)"
+"Fade out" = "Fade out"
+"Fade out over the selection" = "Fade out na seleção"
+"Fade curve" = "Curva do fade"
+"Normalize the selection (or everything) to 0 dB" = "Normalizar a seleção (ou tudo) para 0 dB"
+"Amp..." = "Amplitude..."
+"Volume and panning" = "Volume e panorâmica"
+"Reverse the selection (or everything)" = "Inverter no tempo a seleção (ou tudo)"
+"Reverse the polarity" = "Inverter a polaridade"
+"Reverse polarity" = "Inverter polaridade"
+"Remove the DC offset" = "Remover o deslocamento DC"
+"Remove DC offset" = "Remover deslocamento DC"
+"Stretch..." = "Esticar..."
+"Time stretch / pitch shift" = "Esticar no tempo / mudar o tom"
+"Resample..." = "Reamostrar..."
+"Change the sample rate" = "Mudar a taxa de amostragem"
+"Add a marker at the cursor (M)" = "Adicionar um marcador no cursor (M)"
+"Region" = "Região"
+"Make the selection a region" = "Transformar a seleção em região"
+"Set loop" = "Definir loop"
+"Make the selection the loop" = "Transformar a seleção no loop"
+"Empty" = "Vazio"
+"Move marker" = "Mover marcador"
+"Move loop" = "Mover loop"
+"Waiting for input..." = "Aguardando a entrada..."
+"Empty: press Record, drop an audio file here or open one from the menu" = "Vazio: aperte Gravar, solte um arquivo de áudio aqui ou abra um pelo menu"
+"Waiting..." = "Aguardando..."
+"Stereo" = "Estéreo"
+"Selection" = "Seleção"
+"Cursor" = "Cursor"
+"Select a part first (drag over the waveform)" = "Selecione um trecho antes (arraste sobre a forma de onda)"
+"Copied {0}" = "Copiado {0}"
+"Paste mix" = "Colar mixando"
+"Add marker" = "Adicionar marcador"
+"Add region" = "Adicionar região"
+"Amp" = "Amplitude"
+"Stretch (keep pitch and length apart)" = "Esticar (tom e duração independentes)"
+"Resample (pitch follows the speed)" = "Reamostrar (o tom acompanha a velocidade)"
+"Method" = "Método"
+"Resample" = "Reamostrar"
+"Insert silence" = "Inserir silêncio"
+"Auto-slice" = "Fatiar automaticamente"
+"{0} markers added" = "{0} marcadores adicionados"
+"Grid slice" = "Fatiar pela grade"
+"No audio device is open (Settings > Audio)" = "Nenhum dispositivo de áudio aberto (Configurações > Áudio)"
+"No active audio input (Settings > Audio)" = "Nenhuma entrada de áudio ativa (Configurações > Áudio)"
+"Recording starts when the song plays" = "A gravação começa quando a música tocar"
+"Recording starts when the input is heard" = "A gravação começa quando houver sinal na entrada"
+"Recording from {0}" = "Gravando de {0}"
+"Recorded {0}" = "Gravado {0}"
+"{0} frames lost" = "{0} amostras perdidas"
+"Nothing was recorded" = "Nada foi gravado"
+"the audio input" = "a entrada de áudio"
+"the Master" = "o Master"
+"insert {0}" = "insert {0}"
+"Could not write {0}" = "Não foi possível gravar {0}"
+"Save as WAV" = "Salvar como WAV"
+"Saved {0}" = "Salvo {0}"
+"Open audio file" = "Abrir arquivo de áudio"
+"No regions or markers to export" = "Não há regiões nem marcadores para exportar"
+"Export regions to a folder" = "Exportar as regiões para uma pasta"
+"{0} files written" = "{0} arquivos gravados"
+"Sent to the Playlist (track {0})" = "Enviado para a Playlist (trilha {0})"
+"Sent to a new Sampler channel" = "Enviado para um novo canal Sampler"
+"The channel now plays the edited audio" = "O canal agora toca o áudio editado"
+"Smooth (S-curve)" = "Suave (curva em S)"
+"Linear" = "Linear"
+"Slow start" = "Início lento"
+"Fast start" = "Início rápido"
+"Record from" = "Gravar de"
+"Master output" = "Saída Master"
+"Immediately" = "Imediatamente"
+"When the input is heard" = "Quando houver sinal na entrada"
+"When the song plays (stops with it)" = "Quando a música tocar (para junto)"
+"Send to the Playlist as an audio clip" = "Enviar para a Playlist como clipe de áudio"
+"Send to a new Sampler channel" = "Enviar para um novo canal Sampler"
+"Replace the sample of \"{0}\"" = "Substituir o sample de \"{0}\""
+"Zoom on" = "Aproximar"
+"Turn into marker" = "Transformar em marcador"
+"Delete marker" = "Apagar marcador"
+"Rename" = "Renomear"
+"Audio editor" = "Editor de áudio"
+"Paste insert" = "Colar inserindo"
+"Paste replace" = "Colar substituindo"
+"Clear (silence)" = "Limpar (silêncio)"
+"Trim (keep the selection)" = "Aparar (manter a seleção)"
+"Insert silence..." = "Inserir silêncio..."
+"Delete the part after the loop" = "Apagar a parte depois do loop"
+"Delete after loop" = "Apagar depois do loop"
+"Select all" = "Selecionar tudo"
+"Deselect" = "Desmarcar"
+"Zoom on the selection" = "Aproximar na seleção"
+"New (empty)" = "Novo (vazio)"
+"Open audio file..." = "Abrir arquivo de áudio..."
+"16-bit" = "16 bits"
+"24-bit" = "24 bits"
+"32-bit float" = "32 bits float"
+"Export regions as files..." = "Exportar as regiões como arquivos..."
+"Normalize to..." = "Normalizar para..."
+"Remove DC offset (center)" = "Remover deslocamento DC (centralizar)"
+"Declick in" = "Tirar clique do início"
+"Declick out" = "Tirar clique do fim"
+"Time stretch / pitch shift..." = "Esticar no tempo / mudar o tom..."
+"Channels" = "Canais"
+"Swap channels" = "Trocar os canais"
+"Convert to mono (mix)" = "Converter para mono (mixar)"
+"Convert to mono" = "Converter para mono"
+"Convert the left channel to mono" = "Converter o canal esquerdo para mono"
+"Convert the right channel to mono" = "Converter o canal direito para mono"
+"Convert to stereo" = "Converter para estéreo"
+"Delete markers in the selection" = "Apagar os marcadores da seleção"
+"Delete markers" = "Apagar marcadores"
+"Dull auto-slicing" = "Fatiamento automático suave"
+"Medium auto-slicing" = "Fatiamento automático médio"
+"Sharp auto-slicing" = "Fatiamento automático agressivo"
+"Every beat (project tempo)" = "A cada tempo (andamento do projeto)"
+"Every 1/2 beat" = "A cada 1/2 tempo"
+"Every 1/4 beat" = "A cada 1/4 de tempo"
+"Waveform" = "Forma de onda"
+"Spectrogram" = "Espectrograma"
+"{0} bands" = "{0} bandas"
+"Spectrum precision" = "Precisão do espectro"
+"Logarithmic frequency scale" = "Escala de frequência logarítmica"
+"Auto" = "Automático"
+"Minutes : seconds" = "Minutos : segundos"
+"Samples" = "Amostras"
+"Bar : beat : tick" = "Compasso : tempo : tick"
+"Time format" = "Formato do tempo"
+"Snap to zero crossings" = "Ajustar aos cruzamentos de zero"
+"Regions" = "Regiões"
+"Edit in the audio editor..." = "Editar no editor de áudio..."
+"Edit the sample in the audio editor..." = "Editar o sample no editor de áudio..."
+"Record into the audio editor..." = "Gravar no editor de áudio..."
+"Audio editor..." = "Editor de áudio..."
+"Audio editor (record this insert)..." = "Editor de áudio (gravar este insert)..."
+"Press Record to capture {0}" = "Aperte Gravar para capturar {0}"
 # Round 89: VST2 hosting, plugins that won't sound as in FL Studio
 "same VST2 ID" = "mesmo ID VST2"
 "the plugin could not start" = "o plugin não conseguiu iniciar"
@@ -1627,8 +1800,6 @@ countries: br
 "Muted" = "Mudo"
 "Gain" = "Ganho"
 "The audio channel's pitch: every clip of this file follows it" = "A afinação do canal de áudio: todos os clipes deste arquivo a seguem"
-"Fade in" = "Fade in"
-"Fade out" = "Fade out"
 "Stretch to" = "Esticar para"
 "0: the file plays at its own speed; otherwise the whole file lasts this many beats at the project tempo" = "0: o arquivo toca na própria velocidade; senão o arquivo inteiro dura esse número de tempos no BPM do projeto"
 "Keep the pitch" = "Manter a afinação"
@@ -1686,8 +1857,6 @@ countries: br
 "5 (default)" = "5 (padrão)"
 "8 (smallest)" = "8 (menor arquivo)"
 "FLAC is lossless at every level; higher levels make smaller files and take longer" = "O FLAC não perde qualidade em nenhum nível; níveis maiores fazem arquivos menores e demoram mais"
-"Channels" = "Canais"
-"Stereo" = "Estéreo"
 "Mono (both sides mixed)" = "Mono (os dois lados misturados)"
 "Mono (left only)" = "Mono (só o esquerdo)"
 "Mono (right only)" = "Mono (só o direito)"

+ 13 - 0
resources/installer/LYNX.nsi

@@ -94,6 +94,10 @@ Section "!$(SecApp)" SecMain
     File "${STAGE}\THIRD_PARTY.md"
     File /nonfatal "${STAGE}\PRIVACY.md"
     File /nonfatal "${STAGE}\Demo.lynx"
+    ; LYNX ASIO (REA round 97): LYNX loads it directly; the .bat files register it for other programs (administrator)
+    File /nonfatal "${STAGE}\lynx-asio.dll"
+    File /nonfatal "${STAGE}\Register LYNX ASIO.bat"
+    File /nonfatal "${STAGE}\Unregister LYNX ASIO.bat"
     WriteUninstaller "$INSTDIR\Uninstall.exe"
 
     CreateShortCut "$SMPROGRAMS\LYNX.lnk" "$INSTDIR\LYNX.exe" "" "$INSTDIR\LYNX.exe" 0
@@ -150,6 +154,15 @@ Section "Uninstall"
     Delete "$INSTDIR\THIRD_PARTY.md"
     Delete "$INSTDIR\PRIVACY.md"
     Delete "$INSTDIR\Demo.lynx"
+    ; LYNX ASIO registered for other programs: unregister it first (Windows asks for administrator rights)
+    ReadRegStr $0 HKLM "SOFTWARE\ASIO\LYNX ASIO" "CLSID"
+    ${If} $0 != ""
+    ${AndIf} ${FileExists} "$INSTDIR\lynx-asio.dll"
+        ExecShellWait "runas" "$WINDIR\Sysnative\regsvr32.exe" '/u /s "$INSTDIR\lynx-asio.dll"'
+    ${EndIf}
+    Delete "$INSTDIR\lynx-asio.dll"
+    Delete "$INSTDIR\Register LYNX ASIO.bat"
+    Delete "$INSTDIR\Unregister LYNX ASIO.bat"
     Delete "$INSTDIR\Uninstall.exe"
     RMDir "$INSTDIR"
     Delete "$SMPROGRAMS\LYNX.lnk"

+ 1 - 1
scripts/build-local.sh

@@ -19,7 +19,7 @@ mkdir -p build-local build-local/wavpack
 # workflow shell (key map, workspace layout, rack operations)
 CORE="$CORE src/core/KeyMap.cpp src/core/Workspace.cpp src/core/RackOps.cpp"
 # workflow P2 (note tools, mixer operations, history labels, browser search)
-CORE="$CORE src/core/NoteTools.cpp src/core/PianoRollTools.cpp src/core/EventEdit.cpp src/core/MixerOps.cpp src/core/History.cpp src/core/SearchQuery.cpp"
+CORE="$CORE src/core/NoteTools.cpp src/core/PianoRollTools.cpp src/core/EventEdit.cpp src/core/AudioEdit.cpp src/core/MixerOps.cpp src/core/History.cpp src/core/SearchQuery.cpp"
 # start-up sound (procedural)
 CORE="$CORE src/core/StartupSound.cpp"
 # FL's 3x Osc engine (REA round 47)

+ 17 - 0
scripts/build-lynx-asio.sh

@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# Cross build of the LYNX ASIO driver (lynx-asio.dll, Windows x64) with Zig (clang + MinGW-w64). REA round 97.
+#
+#   scripts/build-lynx-asio.sh            -> $OUT/lynx-asio.dll (OUT defaults to build-win)
+#
+# Install for other programs: copy the DLL somewhere permanent and run, as administrator,
+#   regsvr32 "C:\path\to\lynx-asio.dll"        (regsvr32 /u ... removes it)
+set -euo pipefail
+cd "$(dirname "$0")/.."
+ZIG="${ZIG:-$HOME/opt/zig-x86_64-linux-0.14.1/zig}"
+OUT="${OUT:-build-win}"
+mkdir -p "$OUT"
+"$ZIG" c++ -target x86_64-windows-gnu -std=c++20 -O2 -DNDEBUG=1 -fno-sanitize=undefined -Wall -Wextra \
+    -DUNICODE -D_UNICODE -Ithird_party/asiosdk/common \
+    -shared -o "$OUT/lynx-asio.dll" asio/LynxAsio.cpp asio/lynx-asio.def \
+    -lole32 -luuid -lavrt -luser32 -lgdi32 -ladvapi32 -static
+echo "built $OUT/lynx-asio.dll"

+ 6 - 3
scripts/build-windows-zig.sh

@@ -76,7 +76,7 @@ fi
 
 APP_SOURCES=(src/Main.cpp
              src/engine/AudioEngine.cpp src/engine/ChannelRackProcessor.cpp src/engine/Metronome.cpp
-             src/engine/SampleLibrary.cpp src/engine/WavPackFormat.cpp src/engine/ProjectFile.cpp src/engine/PluginHost.cpp src/engine/PluginSandbox.cpp src/engine/Exporter.cpp src/engine/StreamPrefetcher.cpp src/engine/ClapFormat.cpp src/engine/Vst2Format.cpp src/engine/MidiFileIo.cpp src/engine/PreviewPlayer.cpp
+             src/engine/SampleLibrary.cpp src/engine/WavPackFormat.cpp src/engine/ProjectFile.cpp src/engine/PluginHost.cpp src/engine/PluginSandbox.cpp src/engine/Exporter.cpp src/engine/StreamPrefetcher.cpp src/engine/DllAsioDevice.cpp src/engine/ClapFormat.cpp src/engine/Vst2Format.cpp src/engine/MidiFileIo.cpp src/engine/PreviewPlayer.cpp
              src/ui/MainComponent.cpp src/ui/ChannelRackComponent.cpp src/ui/PianoRollComponent.cpp src/ui/PlaylistComponent.cpp src/ui/MixerComponent.cpp src/ui/PluginWindow.cpp src/ui/WindowOwner.cpp src/ui/ParametricEqEditor.cpp src/ui/ExportDialog.cpp src/ui/AutomationUi.cpp src/ui/ChannelSettings.cpp src/ui/BrowserComponent.cpp src/ui/Theme.cpp src/ui/Icons.cpp src/ui/I18n.cpp src/ui/EditorTools.cpp
              src/core/Song.cpp src/core/Scheduler.cpp src/core/Instruments.cpp src/core/RackRenderer.cpp
              src/core/FlpImport.cpp src/core/Effects.cpp src/core/NoteEdit.cpp src/core/Recorder.cpp src/core/Pdc.cpp src/core/WorkerPool.cpp src/core/TimeStretch.cpp src/core/Arpeggiator.cpp src/core/SynthPresets.cpp src/core/Slicer.cpp src/core/Templates.cpp src/core/FlWrapper.cpp src/core/FlEffects.cpp src/core/Effector.cpp src/core/VintagePhaser.cpp src/core/Reeverb2.cpp src/core/LuxeVerb.cpp src/core/IldspMath.cpp src/core/ConvolverFx.cpp src/core/EquoFx.cpp src/core/PitchShifterFl.cpp src/core/SimSynth.cpp src/core/Wasp.cpp src/core/Granulizer.cpp src/core/Drumaxx.cpp src/core/FruityFilters.cpp src/core/NewtoneFx.cpp src/core/LovePhilter.cpp src/core/DistructorFx.cpp src/core/MultibandDelayFx.cpp src/core/FrequencySplitter.cpp src/core/Slayer.cpp src/core/FlangusFastDist.cpp src/core/FruityDelayBank.cpp src/core/FruityMultiband.cpp src/core/Vocodex.cpp src/core/FruityVocoder.cpp src/core/DelphiMath.cpp src/core/MaximusFx.cpp src/core/ParametricEqFl.cpp src/core/ParametricEqLinear.cpp src/core/FruityBasicFx.cpp src/core/TransistorBass.cpp src/core/GrossBeat.cpp src/core/StereoFx.cpp src/core/FruityDelay.cpp src/core/FruityShapers.cpp src/core/ChorusFx.cpp src/core/FruityDynamics.cpp src/core/FlSamplers.cpp src/core/FlSynths.cpp src/core/FlSytrus.cpp src/core/FlGenerators.cpp src/core/PhysicalModels.cpp src/core/DrumSynthLive.cpp src/core/SytrusEngine.cpp src/core/Harmless.cpp src/core/HarmlessFx.cpp src/core/Harmor.cpp src/core/Gms.cpp src/core/Morphine.cpp src/core/Ogun.cpp src/core/Toxic.cpp src/core/ToxicFx.cpp src/core/FruitKick.cpp src/core/BassDrum.cpp src/core/MiniSynth.cpp src/core/Dx10.cpp src/core/Kepler.cpp src/core/PoiZone.cpp src/core/FlPatcher.cpp src/core/Inflate.cpp src/core/WavPack.cpp src/flp/Flp.cpp
@@ -87,9 +87,9 @@ APP_SOURCES+=(src/core/KeyMap.cpp src/core/Workspace.cpp src/core/RackOps.cpp sr
 # Windows file association (.lynx) and its icon
 APP_SOURCES+=(src/platform/FileTypes.cpp)
 # workflow P2: core (note tools, mixer operations, history labels, browser search)
-APP_SOURCES+=(src/core/NoteTools.cpp src/core/PianoRollTools.cpp src/core/EventEdit.cpp src/core/MixerOps.cpp src/core/History.cpp src/core/SearchQuery.cpp)
+APP_SOURCES+=(src/core/NoteTools.cpp src/core/PianoRollTools.cpp src/core/EventEdit.cpp src/core/AudioEdit.cpp src/core/MixerOps.cpp src/core/History.cpp src/core/SearchQuery.cpp)
 # workflow P2: UI (note tool dialogs, tool windows, undo history, quick-add palette)
-APP_SOURCES+=(src/ui/NoteToolDialogs.cpp src/ui/EventEditor.cpp src/ui/ToolWindow.cpp src/ui/HistoryPanel.cpp src/ui/QuickAddPalette.cpp)
+APP_SOURCES+=(src/ui/NoteToolDialogs.cpp src/ui/EventEditor.cpp src/ui/AudioEditor.cpp src/ui/ToolWindow.cpp src/ui/HistoryPanel.cpp src/ui/QuickAddPalette.cpp)
 # start-up: splash screen and its procedurally synthesised sound
 APP_SOURCES+=(src/core/StartupSound.cpp src/ui/Splash.cpp)
 # main window chrome: hint bar and toolbar widgets
@@ -172,3 +172,6 @@ echo "Linking..."
     -ld2d1 -ldcomp -ldwrite -ldxgi -ld3d11 -ldxguid -lwsock32 -lopengl32 -lpropsys -lmfplat -lmfuuid -lksuser -lavrt
 
 ls -la "$OUT/LYNX.exe"
+
+# LYNX ASIO driver (REA round 97), shipped next to LYNX.exe
+OUT="$OUT" ZIG="$ZIG" scripts/build-lynx-asio.sh

+ 4 - 0
scripts/make-installer.sh

@@ -28,6 +28,10 @@ rm -rf "$DIST/stage"
 mkdir -p "$STAGE"
 cp "$EXE" "$STAGE/LYNX.exe"
 cp LICENSE THIRD_PARTY.md "$STAGE/"
+# LYNX ASIO driver (built next to LYNX.exe by build-windows-zig.sh) and its registration helpers
+if [[ -f "$(dirname "$EXE")/lynx-asio.dll" ]]; then
+    cp "$(dirname "$EXE")/lynx-asio.dll" "asio/Register LYNX ASIO.bat" "asio/Unregister LYNX ASIO.bat" "$STAGE/"
+fi
 [[ -f PRIVACY.md ]] && cp PRIVACY.md "$STAGE/"
 
 if [[ -n "$DEMO" ]]; then

+ 102 - 9
src/Main.cpp

@@ -9,6 +9,7 @@
 #include "core/SynthPresets.h"
 #include "core/FlWrapper.h"
 #include "engine/AudioEngine.h"
+#include "engine/DllAsioDevice.h"
 #include "engine/Exporter.h"
 #include "engine/MidiFileIo.h"
 #include "engine/PluginHost.h"
@@ -37,6 +38,7 @@
 #include "ui/ShortcutManager.h"
 #include "ui/NoteToolDialogs.h"
 #include "ui/EventEditor.h"
+#include "ui/AudioEditor.h"
 #include "core/EventEdit.h"
 #include "ui/ParametricEqEditor.h"
 #include "ui/PluginEditors.h"
@@ -105,13 +107,16 @@ public:
 
         if (args.contains ("--rtstress"))
         {
-            // LYNX.exe --rtstress project.(flp|lynx) report.txt [seconds] [--buffer N] [--no-window]: the real app (window, audio device)
-            // plays the project and reports the callbacks that missed their deadline (REA round 87)
+            // LYNX.exe --rtstress project.(flp|lynx) report.txt [seconds] [--buffer N] [--type "driver type"] [--device "output"]
+            // [--no-window]: the real app (window, audio device) plays the project and reports the callbacks that missed their
+            // deadline (REA round 87); --type/--device pick another driver for this run only (round 97)
             const auto i = args.indexOf ("--rtstress");
             const auto seconds = args[i + 3].getDoubleValue();
             const auto buffer = args.contains ("--buffer") ? args[args.indexOf ("--buffer") + 1].getIntValue() : 0;
             juce::LookAndFeel::setDefaultLookAndFeel (&lookAndFeel);
-            runRealtimeStress (juce::File (args[i + 1].unquoted()), juce::File (args[i + 2].unquoted()), seconds > 0.0 ? seconds : 30.0, buffer);
+            const auto option = [&args] (const char* name) { return args.contains (name) ? args[args.indexOf (name) + 1].unquoted() : juce::String(); };
+            runRealtimeStress (juce::File (args[i + 1].unquoted()), juce::File (args[i + 2].unquoted()), seconds > 0.0 ? seconds : 30.0, buffer,
+                               option ("--type"), option ("--device"));
             return;
         }
 
@@ -308,7 +313,9 @@ public:
                         step ("  in" + juce::String (c + 1) + "=" + names[c]);
                     inputs.setRange (0, juce::jmin (64, names.size()), true);
                 }
-                const auto error = device->open (inputs, outputs, rate, device->getDefaultBufferSize());
+                // --buffer N: ask for that block size (REA round 97 latency survey); default: the driver's default
+                const auto wantedBlock = args.contains ("--buffer") ? args[args.indexOf ("--buffer") + 1].getIntValue() : 0;
+                const auto error = device->open (inputs, outputs, rate, wantedBlock > 0 ? wantedBlock : device->getDefaultBufferSize());
                 if (error.isNotEmpty())
                     step ("error=" + error);
                 else
@@ -513,6 +520,7 @@ public:
     {
         engine = std::make_unique<lynx::AudioEngine>();
         crashEngine = engine.get();
+        addDriverFileDeviceType();
 
         if (startupOptions.sound)
             engine->previewSample (lynx::makeStartupSample());
@@ -1286,16 +1294,29 @@ private:
 
     // --rtstress: opens the project in the normal window with the saved audio device, plays it from the start for
     // `seconds` and writes the real-time statistics (deadline misses, late device calls, load histogram, heaviest units)
-    void runRealtimeStress (const juce::File& project, const juce::File& report, double seconds, int bufferSize)
+    void runRealtimeStress (const juce::File& project, const juce::File& report, double seconds, int bufferSize,
+                            const juce::String& deviceType, const juce::String& deviceName)
     {
         startupOptions = lynx::StartupOptions::load();
         engine = std::make_unique<lynx::AudioEngine>();
         crashEngine = engine.get();
-        if (bufferSize > 0)
+        // the user's saved device stays as it was: this run's choices are undone before quitting
+        savedDeviceState = engine->getDeviceManager().createStateXml();
+        auto& devices = engine->getDeviceManager();
+        const auto driverFile = addDriverFileDeviceType();
+        const auto type = deviceType.isEmpty() && driverFile ? juce::String (lynx::dllAsioTypeName) : deviceType;
+        if (type.isNotEmpty() && devices.getCurrentAudioDeviceType() != type)
+            devices.setCurrentAudioDeviceType (type, true);
+        if (bufferSize > 0 || deviceName.isNotEmpty())
         {
-            auto setup = engine->getDeviceManager().getAudioDeviceSetup();
-            setup.bufferSize = bufferSize;
-            engine->getDeviceManager().setAudioDeviceSetup (setup, true);
+            auto setup = devices.getAudioDeviceSetup();
+            if (bufferSize > 0)
+                setup.bufferSize = bufferSize;
+            if (deviceName.isNotEmpty())
+                setup.outputDeviceName = deviceName;
+            const auto error = devices.setAudioDeviceSetup (setup, true);
+            if (error.isNotEmpty())
+                report.replaceWithText ("device error: " + error + "\n");
         }
         createMainWindow();
         if (! juce::JUCEApplication::getCommandLineParameters().contains ("--no-window")) // --no-window: is it the UI?
@@ -1316,6 +1337,7 @@ private:
         if (! ok)
         {
             report.replaceWithText ("project: " + project.getFullPathName() + "\nresult=ERROR " + error + "\n");
+            restoreSavedDeviceState();
             setApplicationReturnValue (1);
             quit();
             return;
@@ -1352,6 +1374,7 @@ private:
                 text << "\n";
                 text << "result=" << (s.callbacks == 0 ? "ERROR no audio callbacks" : s.overBudget == 0 && s.lateCalls == 0 ? "OK" : "GLITCHES") << "\n";
                 report.replaceWithText (text);
+                restoreSavedDeviceState();
                 setApplicationReturnValue (s.callbacks == 0 ? 1 : 0);
                 quit();
             });
@@ -1716,6 +1739,14 @@ private:
                     offline.dispatchPendingMessages();
                     saveSnapshot (ui, prefix + "-desktop-" + juce::String (w) + ".png");
                     saveArea (ui, ui.getToolbarBoundsForSnapshot(), prefix + "-toolbar-" + juce::String (w) + ".png");
+
+                    if (w == 1920) // the rack scrolled to its last steps: the controls column stays in view (round 90)
+                    {
+                        ui.scrollRackForSnapshot (100000);
+                        offline.dispatchPendingMessages();
+                        saveSnapshot (ui, prefix + "-desktop-rack-scrolled.png");
+                        ui.scrollRackForSnapshot (0);
+                    }
                 }
                 // the toolbar with small and large icons, and a customized one (groups hidden and reordered)
                 ui.setSize (1600, 900);
@@ -2016,6 +2047,42 @@ private:
                 offline.editSong ([&] (lynx::Song& s) { s.patterns[(std::size_t) s.currentPattern].events = before; }, false);
             }
 
+            // round 86: the audio editor with a synthetic drum loop (markers, a region, a loop), waveform and spectrogram,
+            // and its menu items (-audioeditor-menu.txt)
+            {
+                namespace ae = lynx::audioedit;
+                ae::Document d;
+                d.title = "Drum loop";
+                d.audio.sampleRate = 44100.0;
+                const auto frames = (std::size_t) (44100 * 2);
+                d.audio.channels.assign (2, std::vector<float> (frames, 0.0f));
+                std::uint32_t seed = 7;
+                for (int hit = 0; hit < 8; ++hit)
+                {
+                    const auto at = (std::size_t) hit * frames / 8;
+                    const auto kick = hit % 2 == 0;
+                    double phase = 0.0;
+                    for (std::size_t i = 0; i < 12000 && at + i < frames; ++i)
+                    {
+                        seed = seed * 1664525u + 1013904223u;
+                        const auto noise = (float) (seed >> 8) / 16777216.0f - 0.5f;
+                        const auto t = (double) i / 44100.0;
+                        phase += 2.0 * 3.141592653589793 * (kick ? 45.0 + 160.0 * std::exp (-t * 30.0) : 190.0) / 44100.0;
+                        const auto body = (float) std::sin (phase) * (float) std::exp (-t * (kick ? 9.0 : 22.0));
+                        const auto v = kick ? 0.85f * body : 0.35f * body + 0.6f * noise * (float) std::exp (-t * 18.0);
+                        d.audio.channels[0][at + i] += v;
+                        d.audio.channels[1][at + i] += kick ? v : v * 0.8f + 0.1f * noise * (float) std::exp (-t * 30.0);
+                    }
+                }
+                ae::addMarker (d, (std::int64_t) frames / 8, "Snare");
+                ae::addRegion (d, { (std::int64_t) frames / 2, (std::int64_t) frames * 3 / 4 }, "Fill");
+                ae::setLoop (d, { 0, (std::int64_t) frames });
+                auto wave = lynx::makeAudioEditorForSnapshot (offline, d, false);
+                juce::File (prefix + "-audioeditor-menu.txt").replaceWithText (lynx::audioEditorMenuForSnapshot (*wave).joinIntoString ("\n") + "\n");
+                saveWindow (std::move (wave), "-audioeditor.png");
+                saveWindow (lynx::makeAudioEditorForSnapshot (offline, d, true), "-audioeditor-spectrum.png");
+            }
+
             // the Channel Rack with the step graph lane (velocity), and the Euclidean fill window
             ui.selectTabForSnapshot (0);
             ui.getRackForSnapshot().setGraphLevelForSnapshot (0);
@@ -2674,6 +2741,32 @@ private:
 
     lynx::theme::LookAndFeel lookAndFeel;
     std::unique_ptr<lynx::AudioEngine> engine;
+    std::unique_ptr<juce::XmlElement> savedDeviceState; // --rtstress: the user's device before this run's --type/--buffer
+
+    // Hidden test mode --asiodll "<driver.dll>[|{CLSID}]" (REA round 97): an ASIO driver loaded straight from its file,
+    // without registering it, listed as the driver type "ASIO driver file". True when one was added.
+    bool addDriverFileDeviceType()
+    {
+        const auto args = juce::JUCEApplication::getCommandLineParameterArray();
+        const auto i = args.indexOf ("--asiodll");
+        if (i < 0 || i + 1 >= args.size() || engine == nullptr)
+            return false;
+        auto& devices = engine->getDeviceManager();
+        devices.getAvailableDeviceTypes(); // creates the standard types first
+        for (auto* t : devices.getAvailableDeviceTypes())
+            if (t->getTypeName() == lynx::dllAsioTypeName)
+                return true;
+        auto type = lynx::makeDllAsioDeviceType (args[i + 1].unquoted());
+        if (type == nullptr)
+            return false;
+        devices.addAudioDeviceType (std::move (type));
+        return true;
+    }
+    void restoreSavedDeviceState()
+    {
+        if (engine != nullptr)
+            engine->restoreAudioDeviceState (savedDeviceState.get());
+    }
     std::unique_ptr<MainWindow> mainWindow;
     std::unique_ptr<lynx::SplashScreen> splash;
     lynx::StartupOptions startupOptions;

+ 88 - 0
src/core/AudioCapture.h

@@ -0,0 +1,88 @@
+#pragma once
+
+// Audio tap for the audio editor's recording (round 86): the audio thread pushes the frames of one chosen source
+// (the sound card input, the Master or a mixer insert) into a lock-free single-producer/single-consumer ring; the
+// UI pulls them on a timer. Nothing is pushed while no source is chosen, so it costs one atomic load per block.
+
+#include <algorithm>
+#include <array>
+#include <atomic>
+#include <cstdint>
+#include <vector>
+
+namespace lynx
+{
+class AudioCapture
+{
+public:
+    static constexpr int off = -1;
+    static constexpr int input = -2; // the sound card input; 0 = Master, n = mixer insert n
+
+    AudioCapture() : left (capacity), right (capacity) {}
+
+    // UI: what to capture (off stops). Choosing a source drops whatever was left in the ring.
+    void setSource (int newSource) noexcept
+    {
+        source.store (off, std::memory_order_release);
+        readIndex.store (writeIndex.load (std::memory_order_acquire), std::memory_order_release);
+        dropped.store (0, std::memory_order_relaxed);
+        source.store (newSource, std::memory_order_release);
+    }
+    int getSource() const noexcept { return source.load (std::memory_order_relaxed); }
+
+    // audio thread. `r` may equal `l` (mono).
+    void push (int from, const float* l, const float* r, int n) noexcept
+    {
+        if (source.load (std::memory_order_relaxed) != from || l == nullptr || n <= 0)
+            return;
+        if (r == nullptr)
+            r = l;
+        const auto w = writeIndex.load (std::memory_order_relaxed);
+        const auto rd = readIndex.load (std::memory_order_acquire);
+        const auto space = (std::int64_t) capacity - (std::int64_t) (w - rd);
+        const auto count = (int) std::min<std::int64_t> (n, space);
+        for (int i = 0; i < count; ++i)
+        {
+            left[(std::size_t) ((w + (std::uint64_t) i) & mask)] = l[i];
+            right[(std::size_t) ((w + (std::uint64_t) i) & mask)] = r[i];
+        }
+        writeIndex.store (w + (std::uint64_t) count, std::memory_order_release);
+        if (count < n)
+            dropped.fetch_add (n - count, std::memory_order_relaxed);
+    }
+
+    // audio thread: a silent block (the source was inactive), so the recording keeps its timing
+    void pushSilence (int from, int n) noexcept
+    {
+        static constexpr std::array<float, 256> zeros {};
+        for (int done = 0; done < n; done += (int) zeros.size())
+            push (from, zeros.data(), zeros.data(), std::min (n - done, (int) zeros.size()));
+    }
+
+    // UI: appends what arrived since the last call. Returns the number of frames appended.
+    int pull (std::vector<float>& l, std::vector<float>& r)
+    {
+        const auto w = writeIndex.load (std::memory_order_acquire);
+        const auto rd = readIndex.load (std::memory_order_relaxed);
+        const auto n = (int) (w - rd);
+        for (int i = 0; i < n; ++i)
+        {
+            l.push_back (left[(std::size_t) ((rd + (std::uint64_t) i) & mask)]);
+            r.push_back (right[(std::size_t) ((rd + (std::uint64_t) i) & mask)]);
+        }
+        readIndex.store (w, std::memory_order_release);
+        return n;
+    }
+
+    // frames lost because the UI did not pull in time (since the source was chosen)
+    int droppedFrames() const noexcept { return dropped.load (std::memory_order_relaxed); }
+
+    static constexpr std::size_t capacity = std::size_t (1) << 18; // ~5.5 s at 48 kHz
+private:
+    static constexpr std::uint64_t mask = capacity - 1;
+    std::vector<float> left, right;
+    std::atomic<int> source { off };
+    std::atomic<std::uint64_t> writeIndex { 0 }, readIndex { 0 };
+    std::atomic<int> dropped { 0 };
+};
+} // namespace lynx

+ 1199 - 0
src/core/AudioEdit.cpp

@@ -0,0 +1,1199 @@
+#include "core/AudioEdit.h"
+
+#include <algorithm>
+#include <cmath>
+#include <complex>
+#include <cstring>
+#include <numeric>
+
+#include "core/Instruments.h"
+#include "core/TimeStretch.h"
+
+namespace lynx::audioedit
+{
+namespace
+{
+constexpr double pi = 3.141592653589793;
+
+std::int64_t clampFrame (std::int64_t f, std::int64_t frames) noexcept
+{
+    return std::clamp<std::int64_t> (f, 0, frames);
+}
+
+// How a position moves when the range [a, b) is replaced by `newLength` frames: inside it scales, after it shifts.
+std::int64_t mapPosition (std::int64_t x, std::int64_t a, std::int64_t b, std::int64_t newLength) noexcept
+{
+    if (x <= a)
+        return x;
+    if (x >= b)
+        return x + newLength - (b - a);
+    if (b == a)
+        return x;
+    return a + (std::int64_t) std::llround ((double) (x - a) * (double) newLength / (double) (b - a));
+}
+
+// Markers/regions/loop follow a replacement of [a, b) by `newLength` frames. With `dropInside` (a deletion), markers
+// strictly inside the range are removed; regions are clipped and removed when nothing is left.
+void remapMarkers (Document& doc, std::int64_t a, std::int64_t b, std::int64_t newLength, bool dropInside)
+{
+    std::vector<Marker> kept;
+    kept.reserve (doc.markers.size());
+
+    for (auto m : doc.markers)
+    {
+        const auto wasRegion = m.isRegion();
+
+        if (! wasRegion)
+        {
+            if (dropInside && m.start > a && m.start < b)
+                continue;
+            m.start = m.end = mapPosition (m.start, a, b, newLength);
+        }
+        else
+        {
+            m.start = mapPosition (m.start, a, b, newLength);
+            m.end = mapPosition (m.end, a, b, newLength);
+            if (m.end <= m.start)
+                continue;
+        }
+
+        kept.push_back (std::move (m));
+    }
+
+    doc.markers = std::move (kept);
+
+    if (doc.hasLoop())
+    {
+        doc.loopStart = mapPosition (doc.loopStart, a, b, newLength);
+        doc.loopEnd = mapPosition (doc.loopEnd, a, b, newLength);
+        if (doc.loopEnd <= doc.loopStart)
+            doc.loopStart = doc.loopEnd = -1;
+    }
+}
+
+// Replaces [r.start, r.end) of every channel with `with` (already in the document's format).
+void replaceFrames (Document& doc, Range r, const Audio& with, bool dropMarkersInside)
+{
+    for (std::size_t c = 0; c < doc.audio.channels.size(); ++c)
+    {
+        auto& ch = doc.audio.channels[c];
+        const auto& src = with.channels.empty() ? std::vector<float> {} : with.channels[std::min (c, with.channels.size() - 1)];
+        ch.erase (ch.begin() + r.start, ch.begin() + r.end);
+        ch.insert (ch.begin() + r.start, src.begin(), src.end());
+    }
+
+    remapMarkers (doc, r.start, r.end, with.frames(), dropMarkersInside);
+}
+
+template <typename Fn>
+void forEachSample (Document& doc, Range r, Fn&& fn)
+{
+    r = orAll (doc, r);
+    for (std::size_t c = 0; c < doc.audio.channels.size(); ++c)
+        for (auto i = r.start; i < r.end; ++i)
+            fn ((int) c, i - r.start, doc.audio.channels[c][(std::size_t) i]);
+}
+
+double sinc (double x) noexcept
+{
+    if (std::abs (x) < 1.0e-9)
+        return 1.0;
+    return std::sin (pi * x) / (pi * x);
+}
+
+// Blackman window over [-1, 1]
+double blackman (double t) noexcept
+{
+    if (t <= -1.0 || t >= 1.0)
+        return 0.0;
+    const auto u = (t + 1.0) * 0.5; // 0..1
+    return 0.42 - 0.5 * std::cos (2.0 * pi * u) + 0.08 * std::cos (4.0 * pi * u);
+}
+
+void fft (std::vector<std::complex<double>>& a)
+{
+    const auto n = a.size();
+    for (std::size_t i = 1, j = 0; i < n; ++i)
+    {
+        auto bit = n >> 1;
+        for (; j & bit; bit >>= 1)
+            j ^= bit;
+        j ^= bit;
+        if (i < j)
+            std::swap (a[i], a[j]);
+    }
+
+    for (std::size_t len = 2; len <= n; len <<= 1)
+    {
+        const auto angle = -2.0 * pi / (double) len;
+        const std::complex<double> wl (std::cos (angle), std::sin (angle));
+        for (std::size_t i = 0; i < n; i += len)
+        {
+            std::complex<double> w (1.0, 0.0);
+            for (std::size_t k = 0; k < len / 2; ++k)
+            {
+                const auto u = a[i + k];
+                const auto v = a[i + k + len / 2] * w;
+                a[i + k] = u + v;
+                a[i + k + len / 2] = u - v;
+                w *= wl;
+            }
+        }
+    }
+}
+
+std::shared_ptr<SampleData> toSampleData (const Audio& a)
+{
+    auto s = std::make_shared<SampleData>();
+    s->sampleRate = a.sampleRate;
+    if (! a.channels.empty())
+        s->left = a.channels[0];
+    if (a.channels.size() > 1)
+        s->right = a.channels[1];
+    return s;
+}
+} // namespace
+
+Range clamp (const Document& doc, Range r) noexcept
+{
+    const auto n = doc.audio.frames();
+    r.start = clampFrame (r.start, n);
+    r.end = clampFrame (r.end, n);
+    if (r.end < r.start)
+        std::swap (r.start, r.end);
+    return r;
+}
+
+Range orAll (const Document& doc, Range r) noexcept
+{
+    r = clamp (doc, r);
+    return r.empty() ? Range { 0, doc.audio.frames() } : r;
+}
+
+Audio silence (int channels, double sampleRate, std::int64_t frames)
+{
+    Audio a;
+    a.sampleRate = sampleRate;
+    a.channels.assign ((std::size_t) std::max (1, channels), std::vector<float> ((std::size_t) std::max<std::int64_t> (0, frames), 0.0f));
+    return a;
+}
+
+Audio conform (const Audio& clip, int channels, double sampleRate)
+{
+    Audio out;
+    out.sampleRate = sampleRate;
+    channels = std::max (1, channels);
+
+    if (clip.channels.empty())
+    {
+        out.channels.assign ((std::size_t) channels, {});
+        return out;
+    }
+
+    // channels first
+    if (clip.numChannels() == channels)
+        out.channels = clip.channels;
+    else if (channels == 1)
+    {
+        std::vector<float> mono (clip.channels[0].size());
+        for (std::size_t i = 0; i < mono.size(); ++i)
+        {
+            float sum = 0.0f;
+            for (const auto& ch : clip.channels)
+                sum += ch[i];
+            mono[i] = sum / (float) clip.numChannels();
+        }
+        out.channels = { std::move (mono) };
+    }
+    else
+    {
+        for (int c = 0; c < channels; ++c)
+            out.channels.push_back (clip.channels[(std::size_t) std::min (c, clip.numChannels() - 1)]);
+    }
+
+    // then the rate
+    if (sampleRate > 0.0 && clip.sampleRate > 0.0 && std::abs (clip.sampleRate - sampleRate) > 1.0e-6)
+    {
+        const auto frames = (std::int64_t) std::llround ((double) clip.frames() * sampleRate / clip.sampleRate);
+        for (auto& ch : out.channels)
+            ch = resampleChannel (ch, frames);
+    }
+
+    return out;
+}
+
+Audio copy (const Audio& audio, Range r)
+{
+    Audio out;
+    out.sampleRate = audio.sampleRate;
+    const auto n = audio.frames();
+    r.start = clampFrame (r.start, n);
+    r.end = clampFrame (r.end, n);
+    for (const auto& ch : audio.channels)
+        out.channels.emplace_back (ch.begin() + r.start, ch.begin() + std::max (r.start, r.end));
+    return out;
+}
+
+void erase (Document& doc, Range r)
+{
+    r = clamp (doc, r);
+    if (r.empty())
+        return;
+    replaceFrames (doc, r, silence (doc.audio.numChannels(), doc.audio.sampleRate, 0), true);
+}
+
+Audio cut (Document& doc, Range r)
+{
+    auto clip = copy (doc.audio, clamp (doc, r));
+    erase (doc, r);
+    return clip;
+}
+
+void insert (Document& doc, std::int64_t at, const Audio& clip)
+{
+    if (clip.empty())
+        return;
+
+    if (doc.audio.channels.empty())
+    {
+        doc.audio = clip;
+        return;
+    }
+
+    const auto conformed = conform (clip, doc.audio.numChannels(), doc.audio.sampleRate);
+    at = clampFrame (at, doc.audio.frames());
+    replaceFrames (doc, { at, at }, conformed, false);
+}
+
+void pasteReplace (Document& doc, Range r, const Audio& clip)
+{
+    r = clamp (doc, r);
+    if (doc.audio.channels.empty())
+    {
+        doc.audio = clip;
+        return;
+    }
+    replaceFrames (doc, r, conform (clip, doc.audio.numChannels(), doc.audio.sampleRate), r.empty() ? false : true);
+}
+
+void pasteMix (Document& doc, std::int64_t at, const Audio& clip)
+{
+    if (clip.empty())
+        return;
+
+    if (doc.audio.channels.empty())
+    {
+        doc.audio = clip;
+        return;
+    }
+
+    const auto conformed = conform (clip, doc.audio.numChannels(), doc.audio.sampleRate);
+    at = clampFrame (at, doc.audio.frames());
+    const auto end = at + conformed.frames();
+
+    for (std::size_t c = 0; c < doc.audio.channels.size(); ++c)
+    {
+        auto& ch = doc.audio.channels[c];
+        if ((std::int64_t) ch.size() < end)
+            ch.resize ((std::size_t) end, 0.0f);
+        const auto& src = conformed.channels[c];
+        for (std::size_t i = 0; i < src.size(); ++i)
+            ch[(std::size_t) at + i] += src[i];
+    }
+}
+
+void trim (Document& doc, Range r)
+{
+    r = clamp (doc, r);
+    if (r.empty())
+        return;
+    erase (doc, { r.end, doc.audio.frames() });
+    erase (doc, { 0, r.start });
+}
+
+void clear (Document& doc, Range r)
+{
+    forEachSample (doc, r, [] (int, std::int64_t, float& s) { s = 0.0f; });
+}
+
+void insertSilence (Document& doc, std::int64_t at, std::int64_t frames)
+{
+    if (frames <= 0)
+        return;
+    insert (doc, at, silence (std::max (1, doc.audio.numChannels()), doc.audio.sampleRate, frames));
+}
+
+void deleteAfterLoop (Document& doc)
+{
+    if (doc.hasLoop())
+        erase (doc, { doc.loopEnd, doc.audio.frames() });
+}
+
+float curveGain (Curve c, float x) noexcept
+{
+    x = std::clamp (x, 0.0f, 1.0f);
+    switch (c)
+    {
+        case Curve::linear: return x;
+        case Curve::smooth: return 0.5f - 0.5f * std::cos ((float) pi * x);
+        case Curve::exponential: return x * x;
+        case Curve::logarithmic: return 1.0f - (1.0f - x) * (1.0f - x);
+    }
+    return x;
+}
+
+void fadeIn (Document& doc, Range r, Curve c)
+{
+    r = orAll (doc, r);
+    const auto n = r.length();
+    if (n <= 1)
+        return;
+    forEachSample (doc, r, [&] (int, std::int64_t i, float& s) { s *= curveGain (c, (float) ((double) i / (double) (n - 1))); });
+}
+
+void fadeOut (Document& doc, Range r, Curve c)
+{
+    r = orAll (doc, r);
+    const auto n = r.length();
+    if (n <= 1)
+        return;
+    forEachSample (doc, r, [&] (int, std::int64_t i, float& s) { s *= curveGain (c, 1.0f - (float) ((double) i / (double) (n - 1))); });
+}
+
+void declickIn (Document& doc, Range r)
+{
+    r = orAll (doc, r);
+    const auto n = std::min<std::int64_t> (r.length(), (std::int64_t) std::llround (declickSeconds * doc.audio.sampleRate));
+    fadeIn (doc, { r.start, r.start + n }, Curve::smooth);
+}
+
+void declickOut (Document& doc, Range r)
+{
+    r = orAll (doc, r);
+    const auto n = std::min<std::int64_t> (r.length(), (std::int64_t) std::llround (declickSeconds * doc.audio.sampleRate));
+    fadeOut (doc, { r.end - n, r.end }, Curve::smooth);
+}
+
+float peak (const Audio& audio, Range r) noexcept
+{
+    const auto n = audio.frames();
+    r.start = clampFrame (r.start, n);
+    r.end = clampFrame (r.end, n);
+    float p = 0.0f;
+    for (const auto& ch : audio.channels)
+        for (auto i = r.start; i < r.end; ++i)
+            p = std::max (p, std::abs (ch[(std::size_t) i]));
+    return p;
+}
+
+float rms (const Audio& audio, Range r) noexcept
+{
+    const auto n = audio.frames();
+    r.start = clampFrame (r.start, n);
+    r.end = clampFrame (r.end, n);
+    if (r.end <= r.start || audio.channels.empty())
+        return 0.0f;
+    double sum = 0.0;
+    for (const auto& ch : audio.channels)
+        for (auto i = r.start; i < r.end; ++i)
+            sum += (double) ch[(std::size_t) i] * ch[(std::size_t) i];
+    return (float) std::sqrt (sum / (double) ((r.end - r.start) * audio.numChannels()));
+}
+
+void amp (Document& doc, Range r, float gain, float pan)
+{
+    pan = std::clamp (pan, -1.0f, 1.0f);
+    const auto stereo = doc.audio.numChannels() == 2;
+    const float g[2] = { gain * (stereo ? std::min (1.0f, 1.0f - pan) : 1.0f), gain * (stereo ? std::min (1.0f, 1.0f + pan) : 1.0f) };
+    forEachSample (doc, r, [&] (int c, std::int64_t, float& s) { s *= g[std::min (c, 1)]; });
+}
+
+float normalize (Document& doc, Range r, float targetDb)
+{
+    r = orAll (doc, r);
+    const auto p = peak (doc.audio, r);
+    if (p <= 1.0e-9f)
+        return 1.0f;
+    const auto g = std::pow (10.0f, targetDb / 20.0f) / p;
+    amp (doc, r, g);
+    return g;
+}
+
+void reverse (Document& doc, Range r)
+{
+    r = orAll (doc, r);
+    for (auto& ch : doc.audio.channels)
+        std::reverse (ch.begin() + r.start, ch.begin() + r.end);
+
+    // markers inside the range are mirrored too
+    for (auto& m : doc.markers)
+    {
+        auto mirror = [&] (std::int64_t x) { return (x >= r.start && x <= r.end) ? r.start + r.end - x : x; };
+        if (m.start >= r.start && m.end <= r.end)
+        {
+            const auto s = mirror (m.end), e = mirror (m.start);
+            m.start = s;
+            m.end = e;
+        }
+    }
+    sortMarkers (doc);
+}
+
+void invert (Document& doc, Range r)
+{
+    forEachSample (doc, r, [] (int, std::int64_t, float& s) { s = -s; });
+}
+
+void removeDc (Document& doc, Range r)
+{
+    r = orAll (doc, r);
+    if (r.empty())
+        return;
+    for (auto& ch : doc.audio.channels)
+    {
+        double sum = 0.0;
+        for (auto i = r.start; i < r.end; ++i)
+            sum += ch[(std::size_t) i];
+        const auto mean = (float) (sum / (double) r.length());
+        for (auto i = r.start; i < r.end; ++i)
+            ch[(std::size_t) i] -= mean;
+    }
+}
+
+void toMono (Document& doc, MonoSource source)
+{
+    if (doc.audio.numChannels() < 2)
+        return;
+    auto& l = doc.audio.channels[0];
+    const auto& r = doc.audio.channels[1];
+    if (source == MonoSource::right)
+        l = r;
+    else if (source == MonoSource::merged)
+        for (std::size_t i = 0; i < l.size(); ++i)
+            l[i] = 0.5f * (l[i] + r[i]);
+    doc.audio.channels.resize (1);
+}
+
+void toStereo (Document& doc)
+{
+    if (doc.audio.numChannels() == 1)
+        doc.audio.channels.push_back (doc.audio.channels[0]);
+}
+
+void swapChannels (Document& doc)
+{
+    if (doc.audio.numChannels() == 2)
+        std::swap (doc.audio.channels[0], doc.audio.channels[1]);
+}
+
+std::vector<float> resampleChannel (const std::vector<float>& in, std::int64_t outFrames)
+{
+    std::vector<float> out ((std::size_t) std::max<std::int64_t> (0, outFrames), 0.0f);
+    const auto n = (std::int64_t) in.size();
+    if (n == 0 || outFrames <= 0)
+        return out;
+    if (outFrames == n)
+        return in;
+
+    const auto step = (double) n / (double) outFrames; // input frames per output frame
+    const auto cutoff = std::min (1.0, 1.0 / step);   // band limit when shortening
+    const auto halfWidth = 16.0 / cutoff;              // in input frames (16 zero crossings each side)
+
+    for (std::int64_t o = 0; o < outFrames; ++o)
+    {
+        const auto t = ((double) o + 0.5) * step - 0.5; // centres map to centres
+        const auto first = (std::int64_t) std::ceil (t - halfWidth);
+        const auto last = (std::int64_t) std::floor (t + halfWidth);
+        double sum = 0.0, weights = 0.0;
+        for (auto k = first; k <= last; ++k)
+        {
+            const auto x = t - (double) k;
+            const auto w = cutoff * sinc (cutoff * x) * blackman (x / halfWidth);
+            weights += w;
+            if (k >= 0 && k < n)
+                sum += w * in[(std::size_t) k];
+            else // edges: the nearest sample continues (no dip to zero)
+                sum += w * in[(std::size_t) std::clamp<std::int64_t> (k, 0, n - 1)];
+        }
+        out[(std::size_t) o] = (float) (weights != 0.0 ? sum / weights : 0.0);
+    }
+
+    return out;
+}
+
+void resample (Document& doc, double newRate)
+{
+    if (! (newRate > 0.0) || doc.audio.sampleRate <= 0.0 || std::abs (newRate - doc.audio.sampleRate) < 1.0e-6)
+        return;
+    const auto k = newRate / doc.audio.sampleRate;
+    const auto frames = (std::int64_t) std::llround ((double) doc.audio.frames() * k);
+    for (auto& ch : doc.audio.channels)
+        ch = resampleChannel (ch, frames);
+    doc.audio.sampleRate = newRate;
+
+    auto scale = [k] (std::int64_t x) { return (std::int64_t) std::llround ((double) x * k); };
+    for (auto& m : doc.markers)
+    {
+        m.start = scale (m.start);
+        m.end = scale (m.end);
+    }
+    if (doc.hasLoop())
+    {
+        doc.loopStart = scale (doc.loopStart);
+        doc.loopEnd = scale (doc.loopEnd);
+    }
+}
+
+void timeStretch (Document& doc, Range r, double ratio)
+{
+    r = orAll (doc, r);
+    if (r.length() < 4 || ! (ratio > 0.0) || std::abs (ratio - 1.0) < 1.0e-9)
+        return;
+
+    const auto part = copy (doc.audio, r);
+    const auto stretched = lynx::timeStretch (*toSampleData (part), ratio);
+    const auto frames = (std::int64_t) std::llround ((double) r.length() * ratio);
+
+    Audio with;
+    with.sampleRate = doc.audio.sampleRate;
+    with.channels.push_back (stretched->left);
+    if (doc.audio.numChannels() > 1)
+        with.channels.push_back (stretched->isStereo() ? stretched->right : stretched->left);
+    for (auto& ch : with.channels)
+        ch.resize ((std::size_t) frames, 0.0f);
+
+    replaceFrames (doc, r, with, false);
+}
+
+void changeSpeed (Document& doc, Range r, double ratio)
+{
+    r = orAll (doc, r);
+    if (r.empty() || ! (ratio > 0.0) || std::abs (ratio - 1.0) < 1.0e-9)
+        return;
+    auto part = copy (doc.audio, r);
+    const auto frames = std::max<std::int64_t> (1, (std::int64_t) std::llround ((double) r.length() * ratio));
+    for (auto& ch : part.channels)
+        ch = resampleChannel (ch, frames);
+    replaceFrames (doc, r, part, false);
+}
+
+void pitchShift (Document& doc, Range r, double semitones)
+{
+    r = orAll (doc, r);
+    if (r.length() < 4 || std::abs (semitones) < 1.0e-9)
+        return;
+    const auto factor = std::pow (2.0, semitones / 12.0);
+    const auto length = r.length();
+
+    // longer by the factor without changing pitch, then squeezed back to the original length
+    Document part;
+    part.audio = copy (doc.audio, r);
+    timeStretch (part, {}, factor);
+    for (auto& ch : part.audio.channels)
+        ch = resampleChannel (ch, length);
+    replaceFrames (doc, r, part.audio, false);
+}
+
+void sortMarkers (Document& doc)
+{
+    std::stable_sort (doc.markers.begin(), doc.markers.end(), [] (const Marker& a, const Marker& b) { return a.start < b.start; });
+}
+
+void addMarker (Document& doc, std::int64_t at, std::string name)
+{
+    at = clampFrame (at, doc.audio.frames());
+    doc.markers.push_back ({ at, at, std::move (name) });
+    sortMarkers (doc);
+}
+
+void addRegion (Document& doc, Range r, std::string name)
+{
+    r = clamp (doc, r);
+    if (r.empty())
+        return;
+    doc.markers.push_back ({ r.start, r.end, std::move (name) });
+    sortMarkers (doc);
+}
+
+int removeMarkers (Document& doc, Range r)
+{
+    const auto before = doc.markers.size();
+    std::erase_if (doc.markers, [&] (const Marker& m) {
+        if (r.empty())
+            return m.start == r.start;
+        if (m.isRegion())
+            return m.start < r.end && m.end > r.start;
+        return m.start >= r.start && m.start < r.end;
+    });
+    return (int) (before - doc.markers.size());
+}
+
+void setLoop (Document& doc, Range r)
+{
+    r = clamp (doc, r);
+    if (r.empty())
+        doc.loopStart = doc.loopEnd = -1;
+    else
+    {
+        doc.loopStart = r.start;
+        doc.loopEnd = r.end;
+    }
+}
+
+std::int64_t nearestZeroCrossing (const Audio& audio, std::int64_t frame, std::int64_t radius)
+{
+    const auto n = audio.frames();
+    if (n < 2 || audio.channels.empty())
+        return frame;
+    frame = clampFrame (frame, n);
+
+    auto value = [&] (std::int64_t i) {
+        float s = 0.0f;
+        for (const auto& ch : audio.channels)
+            s += ch[(std::size_t) i];
+        return s;
+    };
+    // a crossing "at i" = the sign changes between i - 1 and i (or the sample is exactly 0)
+    auto crossesAt = [&] (std::int64_t i) {
+        if (i <= 0 || i >= n)
+            return i == 0 || i == n;
+        const auto a = value (i - 1), b = value (i);
+        return b == 0.0f || (a < 0.0f) != (b < 0.0f);
+    };
+
+    for (std::int64_t d = 0; d <= radius; ++d)
+    {
+        if (frame - d >= 0 && crossesAt (frame - d))
+            return frame - d;
+        if (frame + d <= n && crossesAt (frame + d))
+            return frame + d;
+    }
+    return frame;
+}
+
+std::vector<std::int64_t> detectOnsets (const Audio& audio, float sensitivity)
+{
+    std::vector<std::int64_t> onsets;
+    const auto n = audio.frames();
+    if (n == 0 || audio.sampleRate <= 0.0)
+        return onsets;
+
+    // energy envelope in 5.8 ms hops (256 frames at 44.1 kHz); an onset = energy rising well above the recent
+    // average and above an absolute floor; at least 50 ms between onsets
+    const auto hop = std::max<std::int64_t> (16, (std::int64_t) std::llround (audio.sampleRate * 0.0058));
+    const auto hops = (std::size_t) ((n + hop - 1) / hop);
+    std::vector<double> energy (hops, 0.0);
+    for (std::size_t h = 0; h < hops; ++h)
+    {
+        const auto from = (std::int64_t) h * hop, to = std::min (n, from + hop);
+        double e = 0.0;
+        for (const auto& ch : audio.channels)
+            for (auto i = from; i < to; ++i)
+                e += (double) ch[(std::size_t) i] * ch[(std::size_t) i];
+        energy[h] = e / (double) ((to - from) * audio.numChannels());
+    }
+
+    sensitivity = std::clamp (sensitivity, 0.0f, 1.0f);
+    const auto ratio = 8.0 - 6.0 * sensitivity;                    // dull: x8 jump, sharp: x2
+    const auto floorDb = -30.0 - 20.0 * sensitivity;               // dull: -30 dB, sharp: -50 dB
+    const auto floor = std::pow (10.0, floorDb / 10.0);
+    const auto gap = (std::int64_t) std::llround (audio.sampleRate * 0.05 / (double) hop);
+    std::int64_t last = -gap - 1;
+
+    for (std::size_t h = 0; h < hops; ++h)
+    {
+        double recent = 0.0;
+        const auto back = std::min<std::size_t> (h, 8);
+        for (std::size_t k = 1; k <= back; ++k)
+            recent += energy[h - k];
+        recent = back > 0 ? recent / (double) back : 0.0;
+
+        if (energy[h] > floor && energy[h] > ratio * recent + 1.0e-12 && (std::int64_t) h - last > gap)
+        {
+            // the attack starts inside this hop: the first sample above a tenth of the hop's peak
+            const auto from = (std::int64_t) h * hop, to = std::min (n, from + hop);
+            float p = 0.0f;
+            for (const auto& ch : audio.channels)
+                for (auto i = from; i < to; ++i)
+                    p = std::max (p, std::abs (ch[(std::size_t) i]));
+            auto at = from;
+            for (auto i = from; i < to; ++i)
+            {
+                float v = 0.0f;
+                for (const auto& ch : audio.channels)
+                    v = std::max (v, std::abs (ch[(std::size_t) i]));
+                if (v >= 0.1f * p)
+                {
+                    at = i;
+                    break;
+                }
+            }
+            onsets.push_back (at);
+            last = (std::int64_t) h;
+        }
+    }
+    return onsets;
+}
+
+// --- history -----------------------------------------------------------------------------------------------------
+namespace
+{
+std::size_t documentBytes (const Document& d) noexcept
+{
+    return (std::size_t) d.audio.frames() * (std::size_t) std::max (1, d.audio.numChannels()) * sizeof (float) + d.markers.size() * sizeof (Marker);
+}
+} // namespace
+
+History::History (std::size_t maxBytesToKeep) : maxBytes (maxBytesToKeep) {}
+
+void History::reset (const Document& doc, std::string label)
+{
+    states.clear();
+    states.push_back ({ std::make_shared<const Document> (doc), std::move (label) });
+    position = 0;
+}
+
+void History::commit (const Document& doc, std::string label)
+{
+    if (states.empty())
+    {
+        reset (doc, std::move (label));
+        return;
+    }
+    states.resize ((std::size_t) position + 1); // redo steps are dropped
+    states.push_back ({ std::make_shared<const Document> (doc), std::move (label) });
+    position = (int) states.size() - 1;
+
+    while (states.size() > 2 && bytes() > maxBytes)
+    {
+        states.erase (states.begin());
+        --position;
+    }
+}
+
+const Document& History::undo()
+{
+    if (canUndo())
+        --position;
+    return current();
+}
+
+const Document& History::redo()
+{
+    if (canRedo())
+        ++position;
+    return current();
+}
+
+const Document& History::jumpTo (int index)
+{
+    position = std::clamp (index, 0, (int) states.size() - 1);
+    return current();
+}
+
+std::size_t History::bytes() const noexcept
+{
+    std::size_t total = 0;
+    for (const auto& s : states)
+        total += documentBytes (*s.doc);
+    return total;
+}
+
+// --- spectrogram ------------------------------------------------------------------------------------------------
+Spectrogram spectrogram (const Audio& audio, Range r, int columns, int fftSize)
+{
+    Spectrogram s;
+    s.sampleRate = audio.sampleRate;
+    if (columns <= 0 || fftSize < 16 || (fftSize & (fftSize - 1)) != 0 || audio.channels.empty())
+        return s;
+
+    const auto n = audio.frames();
+    r.start = clampFrame (r.start, n);
+    r.end = clampFrame (r.end, n);
+    s.columns = columns;
+    s.bins = fftSize / 2;
+    s.db.assign ((std::size_t) columns * (std::size_t) s.bins, -120.0f);
+    if (r.empty())
+        return s;
+
+    std::vector<double> window ((std::size_t) fftSize);
+    double windowSum = 0.0;
+    for (int i = 0; i < fftSize; ++i)
+    {
+        window[(std::size_t) i] = 0.5 - 0.5 * std::cos (2.0 * pi * (double) i / (double) fftSize);
+        windowSum += window[(std::size_t) i];
+    }
+
+    std::vector<std::complex<double>> buffer ((std::size_t) fftSize);
+    const auto scale = 2.0 / windowSum; // a full-scale sine reads 0 dB
+    const auto channels = (double) audio.numChannels();
+
+    for (int c = 0; c < columns; ++c)
+    {
+        const auto centre = (double) r.start + ((double) c + 0.5) * (double) r.length() / (double) columns;
+        const auto first = (std::int64_t) std::llround (centre) - fftSize / 2;
+        for (int i = 0; i < fftSize; ++i)
+        {
+            const auto k = first + i;
+            double v = 0.0;
+            if (k >= 0 && k < n)
+                for (const auto& ch : audio.channels)
+                    v += ch[(std::size_t) k];
+            buffer[(std::size_t) i] = { v / channels * window[(std::size_t) i], 0.0 };
+        }
+        fft (buffer);
+        for (int b = 0; b < s.bins; ++b)
+        {
+            const auto magnitude = std::abs (buffer[(std::size_t) b]) * scale;
+            s.db[(std::size_t) c * (std::size_t) s.bins + (std::size_t) b] = (float) std::max (-120.0, 20.0 * std::log10 (magnitude + 1.0e-12));
+        }
+    }
+    return s;
+}
+
+// --- WAV ---------------------------------------------------------------------------------------------------------
+namespace
+{
+void put16 (std::vector<std::uint8_t>& o, std::uint32_t v)
+{
+    o.push_back ((std::uint8_t) (v & 0xff));
+    o.push_back ((std::uint8_t) ((v >> 8) & 0xff));
+}
+
+void put32 (std::vector<std::uint8_t>& o, std::uint32_t v)
+{
+    put16 (o, v & 0xffff);
+    put16 (o, v >> 16);
+}
+
+void putTag (std::vector<std::uint8_t>& o, const char* tag)
+{
+    o.insert (o.end(), tag, tag + 4);
+}
+
+void set32 (std::vector<std::uint8_t>& o, std::size_t at, std::uint32_t v)
+{
+    for (int i = 0; i < 4; ++i)
+        o[at + (std::size_t) i] = (std::uint8_t) ((v >> (8 * i)) & 0xff);
+}
+
+std::uint32_t get16 (const std::uint8_t* p) noexcept
+{
+    return (std::uint32_t) p[0] | ((std::uint32_t) p[1] << 8);
+}
+
+std::uint32_t get32 (const std::uint8_t* p) noexcept
+{
+    return get16 (p) | (get16 (p + 2) << 16);
+}
+
+// begins a chunk; returns where its size goes
+std::size_t beginChunk (std::vector<std::uint8_t>& o, const char* tag)
+{
+    putTag (o, tag);
+    put32 (o, 0);
+    return o.size() - 4;
+}
+
+void endChunk (std::vector<std::uint8_t>& o, std::size_t sizeAt)
+{
+    set32 (o, sizeAt, (std::uint32_t) (o.size() - sizeAt - 4));
+    if (o.size() % 2 != 0)
+        o.push_back (0); // chunks are word aligned
+}
+
+bool parseMarkers (const std::uint8_t* data, std::size_t size, Document& out, std::size_t frames, bool& gotAny)
+{
+    struct Cue
+    {
+        std::uint32_t id = 0, position = 0, length = 0;
+        std::string name;
+    };
+    std::vector<Cue> cues;
+    gotAny = false;
+
+    auto findCue = [&] (std::uint32_t id) -> Cue* {
+        for (auto& c : cues)
+            if (c.id == id)
+                return &c;
+        return nullptr;
+    };
+
+    std::size_t p = 12;
+    // first pass: cue points; second: labels (they may come before the cue chunk)
+    for (int pass = 0; pass < 2; ++pass)
+    {
+        p = 12;
+        while (p + 8 <= size)
+        {
+            const auto* tag = data + p;
+            const auto len = (std::size_t) get32 (data + p + 4);
+            const auto body = p + 8;
+            if (body + len > size)
+                break;
+
+            if (pass == 0 && std::memcmp (tag, "cue ", 4) == 0 && len >= 4)
+            {
+                const auto count = get32 (data + body);
+                for (std::uint32_t i = 0; i < count && body + 4 + (i + 1) * 24 <= body + len; ++i)
+                {
+                    const auto* c = data + body + 4 + i * 24;
+                    cues.push_back ({ get32 (c), get32 (c + 20), 0, {} });
+                }
+            }
+            else if (pass == 0 && std::memcmp (tag, "smpl", 4) == 0 && len >= 36)
+            {
+                const auto loops = get32 (data + body + 28);
+                if (loops > 0 && len >= 36 + 24)
+                {
+                    const auto* l = data + body + 36;
+                    const auto start = (std::int64_t) get32 (l + 8), end = (std::int64_t) get32 (l + 12) + 1; // smpl end is inclusive
+                    if (end > start && (std::size_t) end <= frames)
+                    {
+                        out.loopStart = start;
+                        out.loopEnd = end;
+                        gotAny = true;
+                    }
+                }
+            }
+            else if (pass == 1 && std::memcmp (tag, "LIST", 4) == 0 && len >= 4 && std::memcmp (data + body, "adtl", 4) == 0)
+            {
+                auto q = body + 4;
+                while (q + 8 <= body + len)
+                {
+                    const auto sub = data + q;
+                    const auto subLen = (std::size_t) get32 (data + q + 4);
+                    const auto sb = q + 8;
+                    if (sb + subLen > body + len)
+                        break;
+                    if ((std::memcmp (sub, "labl", 4) == 0 || std::memcmp (sub, "note", 4) == 0) && subLen >= 4)
+                    {
+                        if (auto* c = findCue (get32 (data + sb)); c != nullptr && std::memcmp (sub, "labl", 4) == 0)
+                        {
+                            const auto* s = reinterpret_cast<const char*> (data + sb + 4);
+                            c->name.assign (s, strnlen (s, subLen - 4));
+                        }
+                    }
+                    else if (std::memcmp (sub, "ltxt", 4) == 0 && subLen >= 8)
+                    {
+                        if (auto* c = findCue (get32 (data + sb)))
+                            c->length = get32 (data + sb + 4);
+                    }
+                    q = sb + subLen + (subLen & 1);
+                }
+            }
+            p = body + len + (len & 1);
+        }
+    }
+
+    for (const auto& c : cues)
+    {
+        Marker m;
+        m.start = std::min<std::int64_t> (c.position, (std::int64_t) frames);
+        m.end = std::min<std::int64_t> (m.start + c.length, (std::int64_t) frames);
+        m.name = c.name;
+        out.markers.push_back (std::move (m));
+        gotAny = true;
+    }
+    sortMarkers (out);
+    return gotAny;
+}
+} // namespace
+
+std::vector<std::uint8_t> encodeWav (const Document& doc, WavFormat format)
+{
+    const auto channels = (std::uint32_t) std::max (1, doc.audio.numChannels());
+    const auto frames = (std::size_t) doc.audio.frames();
+    const auto bytesPerSample = format == WavFormat::int16 ? 2u : format == WavFormat::int24 ? 3u : 4u;
+    const auto rate = (std::uint32_t) std::llround (doc.audio.sampleRate);
+
+    std::vector<std::uint8_t> o;
+    o.reserve (frames * channels * bytesPerSample + 1024);
+    putTag (o, "RIFF");
+    put32 (o, 0);
+    putTag (o, "WAVE");
+
+    auto at = beginChunk (o, "fmt ");
+    put16 (o, format == WavFormat::float32 ? 3 : 1);
+    put16 (o, channels);
+    put32 (o, rate);
+    put32 (o, rate * channels * bytesPerSample);
+    put16 (o, channels * bytesPerSample);
+    put16 (o, bytesPerSample * 8);
+    endChunk (o, at);
+
+    at = beginChunk (o, "data");
+    for (std::size_t i = 0; i < frames; ++i)
+        for (std::uint32_t c = 0; c < channels; ++c)
+        {
+            const auto v = doc.audio.channels.empty() ? 0.0f : doc.audio.channels[std::min<std::size_t> (c, doc.audio.channels.size() - 1)][i];
+            if (format == WavFormat::float32)
+            {
+                std::uint32_t bits;
+                std::memcpy (&bits, &v, 4);
+                put32 (o, bits);
+            }
+            else
+            {
+                const auto maxValue = format == WavFormat::int16 ? 32767.0 : 8388607.0;
+                const auto s = (std::int32_t) std::llround (std::clamp ((double) v, -1.0, 1.0) * maxValue);
+                const auto u = (std::uint32_t) s;
+                o.push_back ((std::uint8_t) (u & 0xff));
+                o.push_back ((std::uint8_t) ((u >> 8) & 0xff));
+                if (format == WavFormat::int24)
+                    o.push_back ((std::uint8_t) ((u >> 16) & 0xff));
+            }
+        }
+    endChunk (o, at);
+
+    if (doc.hasLoop())
+    {
+        at = beginChunk (o, "smpl");
+        put32 (o, 0);                                                       // manufacturer
+        put32 (o, 0);                                                       // product
+        put32 (o, rate > 0 ? (std::uint32_t) (1000000000.0 / rate) : 0);   // sample period (ns)
+        put32 (o, 60);                                                      // unity note
+        put32 (o, 0);                                                       // pitch fraction
+        put32 (o, 0);                                                       // SMPTE format
+        put32 (o, 0);                                                       // SMPTE offset
+        put32 (o, 1);                                                       // loops
+        put32 (o, 0);                                                       // sampler data
+        put32 (o, 0);                                                       // loop id
+        put32 (o, 0);                                                       // forward
+        put32 (o, (std::uint32_t) doc.loopStart);
+        put32 (o, (std::uint32_t) (doc.loopEnd - 1));                       // inclusive
+        put32 (o, 0);                                                       // fraction
+        put32 (o, 0);                                                       // play count (infinite)
+        endChunk (o, at);
+    }
+
+    if (! doc.markers.empty())
+    {
+        at = beginChunk (o, "cue ");
+        put32 (o, (std::uint32_t) doc.markers.size());
+        for (std::size_t i = 0; i < doc.markers.size(); ++i)
+        {
+            put32 (o, (std::uint32_t) i + 1);
+            put32 (o, (std::uint32_t) doc.markers[i].start);
+            putTag (o, "data");
+            put32 (o, 0);
+            put32 (o, 0);
+            put32 (o, (std::uint32_t) doc.markers[i].start);
+        }
+        endChunk (o, at);
+
+        at = beginChunk (o, "LIST");
+        putTag (o, "adtl");
+        for (std::size_t i = 0; i < doc.markers.size(); ++i)
+        {
+            const auto& m = doc.markers[i];
+            if (! m.name.empty())
+            {
+                const auto sub = beginChunk (o, "labl");
+                put32 (o, (std::uint32_t) i + 1);
+                o.insert (o.end(), m.name.begin(), m.name.end());
+                o.push_back (0);
+                endChunk (o, sub);
+            }
+            if (m.isRegion())
+            {
+                const auto sub = beginChunk (o, "ltxt");
+                put32 (o, (std::uint32_t) i + 1);
+                put32 (o, (std::uint32_t) (m.end - m.start));
+                putTag (o, "rgn ");
+                put16 (o, 0);
+                put16 (o, 0);
+                put16 (o, 0);
+                put16 (o, 0);
+                endChunk (o, sub);
+            }
+        }
+        endChunk (o, at);
+    }
+
+    set32 (o, 4, (std::uint32_t) (o.size() - 8));
+    return o;
+}
+
+bool decodeWav (const std::uint8_t* data, std::size_t size, Document& out)
+{
+    if (size < 12 || std::memcmp (data, "RIFF", 4) != 0 || std::memcmp (data + 8, "WAVE", 4) != 0)
+        return false;
+
+    std::uint32_t format = 0, channels = 0, rate = 0, bits = 0;
+    const std::uint8_t* samples = nullptr;
+    std::size_t sampleBytes = 0;
+
+    for (std::size_t p = 12; p + 8 <= size;)
+    {
+        const auto len = (std::size_t) get32 (data + p + 4);
+        const auto body = p + 8;
+        const auto avail = std::min (len, size - body);
+        if (std::memcmp (data + p, "fmt ", 4) == 0 && avail >= 16)
+        {
+            format = get16 (data + body);
+            channels = get16 (data + body + 2);
+            rate = get32 (data + body + 4);
+            bits = get16 (data + body + 14);
+            if (format == 0xfffe && avail >= 26) // extensible: the sub-format's first word
+                format = get16 (data + body + 24);
+        }
+        else if (std::memcmp (data + p, "data", 4) == 0)
+        {
+            samples = data + body;
+            sampleBytes = avail;
+        }
+        p = body + len + (len & 1);
+    }
+
+    if (samples == nullptr || channels == 0 || channels > 8 || rate == 0)
+        return false;
+    if (! ((format == 1 && (bits == 8 || bits == 16 || bits == 24 || bits == 32)) || (format == 3 && (bits == 32 || bits == 64))))
+        return false;
+
+    const auto bytes = bits / 8;
+    const auto frames = sampleBytes / (bytes * channels);
+    out = {};
+    out.audio.sampleRate = rate;
+    out.audio.channels.assign (std::min<std::uint32_t> (channels, 2), std::vector<float> (frames));
+
+    for (std::size_t i = 0; i < frames; ++i)
+        for (std::uint32_t c = 0; c < std::min<std::uint32_t> (channels, 2); ++c)
+        {
+            const auto* s = samples + (i * channels + c) * bytes;
+            float v = 0.0f;
+            if (format == 3 && bits == 32)
+                std::memcpy (&v, s, 4);
+            else if (format == 3)
+            {
+                double d;
+                std::memcpy (&d, s, 8);
+                v = (float) d;
+            }
+            else if (bits == 8)
+                v = ((float) s[0] - 128.0f) / 128.0f;
+            else if (bits == 16)
+                v = (float) (std::int16_t) get16 (s) / 32768.0f;
+            else if (bits == 24)
+                v = (float) ((std::int32_t) ((std::uint32_t) s[0] << 8 | (std::uint32_t) s[1] << 16 | (std::uint32_t) s[2] << 24) >> 8) / 8388608.0f;
+            else
+                v = (float) ((double) (std::int32_t) get32 (s) / 2147483648.0);
+            out.audio.channels[c][i] = v;
+        }
+
+    bool any = false;
+    parseMarkers (data, size, out, frames, any);
+    return true;
+}
+
+bool decodeWavMarkers (const std::uint8_t* data, std::size_t size, Document& out)
+{
+    if (size < 12 || std::memcmp (data, "RIFF", 4) != 0 || std::memcmp (data + 8, "WAVE", 4) != 0)
+        return false;
+    out.markers.clear();
+    out.loopStart = out.loopEnd = -1;
+    bool any = false;
+    parseMarkers (data, size, out, (std::size_t) std::max<std::int64_t> (out.audio.frames(), 0), any);
+    return any;
+}
+} // namespace lynx::audioedit

+ 198 - 0
src/core/AudioEdit.h

@@ -0,0 +1,198 @@
+#pragma once
+
+// Audio editor core (round 86; the feature set follows FL's Edison, docs/analise/REA_rodada86.md, the code is LYNX's
+// own). A Document is audio + markers/regions + a loop; every edit works on a frame range and keeps the markers
+// and the loop in place relative to the audio. History keeps whole states (one per edit) for undo/redo and the
+// undo history list. Also: a spectrogram, zero-crossing snap, onset detection (auto-slice) and WAV encoding and
+// decoding with the markers (cue/labl/ltxt) and the loop (smpl). JUCE-free; tests in tests/AudioEditTests.inc.
+
+#include <cstdint>
+#include <memory>
+#include <string>
+#include <vector>
+
+namespace lynx::audioedit
+{
+struct Audio
+{
+    std::vector<std::vector<float>> channels; // 1 (mono) or 2 (stereo), all the same length
+    double sampleRate = 44100.0;
+
+    std::int64_t frames() const noexcept { return channels.empty() ? 0 : (std::int64_t) channels[0].size(); }
+    int numChannels() const noexcept { return (int) channels.size(); }
+    bool empty() const noexcept { return frames() == 0; }
+    double seconds() const noexcept { return sampleRate > 0.0 ? (double) frames() / sampleRate : 0.0; }
+};
+
+// A marker (end == start) or a region (end > start), in frames.
+struct Marker
+{
+    std::int64_t start = 0, end = 0;
+    std::string name;
+    bool isRegion() const noexcept { return end > start; }
+};
+
+struct Document
+{
+    Audio audio;
+    std::vector<Marker> markers; // sorted by start
+    std::int64_t loopStart = -1, loopEnd = -1; // frames [loopStart, loopEnd), -1 = no loop
+    std::string title;
+
+    bool hasLoop() const noexcept { return loopStart >= 0 && loopEnd > loopStart; }
+};
+
+// Frames [start, end).
+struct Range
+{
+    std::int64_t start = 0, end = 0;
+    std::int64_t length() const noexcept { return end > start ? end - start : 0; }
+    bool empty() const noexcept { return end <= start; }
+};
+
+// The range clamped to the audio (start <= end).
+Range clamp (const Document& doc, Range r) noexcept;
+// An empty range means the whole audio (what Edison's tools do without a selection). The level, polarity, fade,
+// reverse, clear and time tools below treat an empty range that way; erase/cut/trim do nothing with it.
+Range orAll (const Document& doc, Range r) noexcept;
+
+// Silent audio with the document's format.
+Audio silence (int channels, double sampleRate, std::int64_t frames);
+// `clip` in `channels` channels at `sampleRate` (mono↔stereo, resampling).
+Audio conform (const Audio& clip, int channels, double sampleRate);
+
+// --- clipboard edits ------------------------------------------------------------------------------------------
+Audio copy (const Audio& audio, Range r);
+void erase (Document& doc, Range r);                              // Delete: the rest closes the gap
+Audio cut (Document& doc, Range r);                               // copy + erase
+void insert (Document& doc, std::int64_t at, const Audio& clip);  // Paste insert (converted to the document's format)
+void pasteReplace (Document& doc, Range r, const Audio& clip);    // the range becomes the clip
+void pasteMix (Document& doc, std::int64_t at, const Audio& clip); // summed onto the audio (extends it if needed)
+void trim (Document& doc, Range r);                               // keeps only the range
+void clear (Document& doc, Range r);                              // silence in place (same length)
+void insertSilence (Document& doc, std::int64_t at, std::int64_t frames);
+void deleteAfterLoop (Document& doc);
+
+// --- level -------------------------------------------------------------------------------------------------------
+enum class Curve : std::uint8_t
+{
+    linear,
+    smooth,      // S-curve (half cosine)
+    exponential, // slow start (fast end) for fade ins: x^2-like in amplitude, natural for fades in dB
+    logarithmic  // fast start
+};
+// Gain of a fade in at position x (0..1). A fade out uses curveGain (c, 1 - x).
+float curveGain (Curve c, float x) noexcept;
+void fadeIn (Document& doc, Range r, Curve c = Curve::smooth);
+void fadeOut (Document& doc, Range r, Curve c = Curve::smooth);
+constexpr double declickSeconds = 0.004; // declick in/out: a smooth fade this long at the range's edge
+void declickIn (Document& doc, Range r);
+void declickOut (Document& doc, Range r);
+
+float peak (const Audio& audio, Range r) noexcept;
+float rms (const Audio& audio, Range r) noexcept;
+// Volume (linear) and pan (-1..1: the far side keeps unity, the near side is turned down linearly).
+void amp (Document& doc, Range r, float gain, float pan = 0.0f);
+// Scales the range so its peak is targetDb (dBFS). Returns the gain applied (1 when silent).
+float normalize (Document& doc, Range r, float targetDb = 0.0f);
+void reverse (Document& doc, Range r);
+void invert (Document& doc, Range r);   // reverse polarity
+void removeDc (Document& doc, Range r); // Edison's "Center": subtracts each channel's mean
+
+// --- channels ----------------------------------------------------------------------------------------------------
+enum class MonoSource : std::uint8_t
+{
+    merged,
+    left,
+    right
+};
+void toMono (Document& doc, MonoSource source = MonoSource::merged);
+void toStereo (Document& doc);
+void swapChannels (Document& doc);
+
+// --- time --------------------------------------------------------------------------------------------------------
+// Windowed-sinc resampling of one channel to `outFrames` frames (band-limited when shortening).
+std::vector<float> resampleChannel (const std::vector<float>& in, std::int64_t outFrames);
+// New sample rate, same pitch and duration (the number of frames changes; markers follow).
+void resample (Document& doc, double newRate);
+// Time stretch of the range without changing pitch (ratio = new length / old length; WSOLA, core/TimeStretch).
+void timeStretch (Document& doc, Range r, double ratio);
+// Pitch shift of the range (semitones) keeping its length.
+void pitchShift (Document& doc, Range r, double semitones);
+// Speed change (resample) of the range: pitch and length change together (ratio = new length / old length).
+void changeSpeed (Document& doc, Range r, double ratio);
+
+// --- markers, regions, loop ------------------------------------------------------------------------------------
+void addMarker (Document& doc, std::int64_t at, std::string name = {});
+void addRegion (Document& doc, Range r, std::string name = {});
+// Removes the markers at positions within the range and the regions that overlap it (an empty range: those at
+// exactly r.start). Returns how many were removed.
+int removeMarkers (Document& doc, Range r);
+void setLoop (Document& doc, Range r); // an empty range removes the loop
+void sortMarkers (Document& doc);
+
+// The zero crossing (sign change of the channels' sum) nearest to `frame` within `radius` frames (or `frame`).
+std::int64_t nearestZeroCrossing (const Audio& audio, std::int64_t frame, std::int64_t radius);
+// Onsets (attacks) for auto-slicing: sensitivity 0 (dull, only big hits) .. 1 (sharp, many). Frames, sorted.
+std::vector<std::int64_t> detectOnsets (const Audio& audio, float sensitivity = 0.5f);
+
+// --- history -----------------------------------------------------------------------------------------------------
+// A list of states, the first being the opened audio. Each edit commits the new state with a label; undo/redo
+// move through the list. Oldest states are dropped beyond `maxBytes` (at least the current one and one before it
+// are kept).
+class History
+{
+public:
+    explicit History (std::size_t maxBytes = std::size_t (768) << 20);
+
+    void reset (const Document& doc, std::string label);
+    void commit (const Document& doc, std::string label);
+
+    bool canUndo() const noexcept { return position > 0; }
+    bool canRedo() const noexcept { return position + 1 < (int) states.size(); }
+    const Document& undo();
+    const Document& redo();
+    const Document& jumpTo (int index);
+    const Document& current() const { return *states[(std::size_t) position].doc; }
+
+    int size() const noexcept { return (int) states.size(); }
+    int getPosition() const noexcept { return position; }
+    const std::string& label (int index) const { return states[(std::size_t) index].label; }
+    std::size_t bytes() const noexcept;
+
+private:
+    struct State
+    {
+        std::shared_ptr<const Document> doc;
+        std::string label;
+    };
+    std::vector<State> states;
+    int position = -1;
+    std::size_t maxBytes;
+};
+
+// --- spectrogram ------------------------------------------------------------------------------------------------
+struct Spectrogram
+{
+    int columns = 0, bins = 0; // bins = fftSize / 2
+    double sampleRate = 44100.0;
+    std::vector<float> db;     // [column * bins + bin], dBFS (floor -120)
+    float at (int column, int bin) const noexcept { return db[(std::size_t) column * (std::size_t) bins + (std::size_t) bin]; }
+};
+// `columns` analysis windows evenly over frames [r.start, r.end) (channels mixed), Hann window of fftSize (power of 2).
+Spectrogram spectrogram (const Audio& audio, Range r, int columns, int fftSize = 2048);
+
+// --- WAV ---------------------------------------------------------------------------------------------------------
+enum class WavFormat : std::uint8_t
+{
+    int16,
+    int24,
+    float32
+};
+// RIFF/WAVE with the audio, the markers and regions (cue + LIST/adtl labl, ltxt) and the loop (smpl).
+std::vector<std::uint8_t> encodeWav (const Document& doc, WavFormat format = WavFormat::int24);
+// PCM 8/16/24/32-bit int or 32/64-bit float, with the markers/regions/loop above. False if not a WAV it can read.
+bool decodeWav (const std::uint8_t* data, std::size_t size, Document& out);
+// Only the markers/regions/loop of a WAV (the audio is read elsewhere). False if none.
+bool decodeWavMarkers (const std::uint8_t* data, std::size_t size, Document& out);
+} // namespace lynx::audioedit

+ 69 - 0
src/core/EditorGestures.h

@@ -307,5 +307,74 @@ inline bool noteLabelFits (double widthPixels, int rowHeight)
 {
     return rowHeight >= 9 && widthPixels >= 3.0 * labelHeight (rowHeight);
 }
+
+// --- overview strip (round 90) ------------------------------------------------------------------
+// The strip above the Piano Roll's and the Playlist's ruler shows the whole content in miniature with
+// the visible window outlined (FL Studio's preview scroll bar, interpreted). Positions are in content
+// units (ticks); `width` is the strip's width in pixels.
+enum class OverviewGrab { none, move, left, right };
+
+struct OverviewWindow
+{
+    double start = 0.0, length = 1.0;
+};
+
+// What a press at `x` grabs: an edge of the window (zooms), the window (scrolls) or nothing (jumps).
+inline OverviewGrab overviewGrabAt (double x, double width, double total, OverviewWindow w, double edgePixels = 5.0)
+{
+    if (total <= 0.0 || width <= 0.0)
+        return OverviewGrab::none;
+
+    const auto x0 = w.start / total * width, x1 = (w.start + w.length) / total * width;
+    // a narrow window keeps a middle zone to move it
+    const auto edge = std::min (edgePixels, std::max (1.0, (x1 - x0) / 3.0));
+
+    if (std::abs (x - x0) <= edge)
+        return OverviewGrab::left;
+    if (std::abs (x - x1) <= edge)
+        return OverviewGrab::right;
+    if (x > x0 && x < x1)
+        return OverviewGrab::move;
+    return OverviewGrab::none;
+}
+
+// The window after dragging `grab` by `dx` pixels from `from`; `minLength` keeps the zoom in range.
+// A press outside the window (none) centres it on the press first, then drags like `move`.
+inline OverviewWindow overviewDrag (OverviewGrab grab, OverviewWindow from, double dx, double width, double total,
+                                    double minLength)
+{
+    if (width <= 0.0 || total <= 0.0)
+        return from;
+
+    const auto d = dx / width * total;
+    auto w = from;
+
+    switch (grab)
+    {
+        case OverviewGrab::none:
+        case OverviewGrab::move:
+            w.start = std::clamp (from.start + d, 0.0, std::max (0.0, total - from.length));
+            break;
+        case OverviewGrab::left:
+        {
+            const auto end = from.start + from.length;
+            w.start = std::clamp (from.start + d, 0.0, std::max (0.0, end - minLength));
+            w.length = end - w.start;
+            break;
+        }
+        case OverviewGrab::right:
+            w.length = std::clamp (from.length + d, minLength, std::max (minLength, total - from.start));
+            break;
+    }
+
+    return w;
+}
+
+// The window centred on content position `at` (a click outside the window jumps there).
+inline OverviewWindow overviewCentredOn (double at, OverviewWindow w, double total)
+{
+    w.start = std::clamp (at - w.length / 2.0, 0.0, std::max (0.0, total - w.length));
+    return w;
+}
 } // namespace gesture
 } // namespace lynx

+ 4 - 0
src/core/Meters.h

@@ -3,6 +3,7 @@
 #include <array>
 #include <atomic>
 
+#include "core/AudioCapture.h"
 #include "core/Song.h"
 
 namespace lynx
@@ -31,6 +32,9 @@ public:
         return peaks[(std::size_t) track * 2 + (std::size_t) channel].exchange (0.0f, std::memory_order_relaxed);
     }
 
+    // the audio editor's recording tap (round 86): input, Master (0) or a mixer insert
+    AudioCapture capture;
+
 private:
     static void raise (std::atomic<float>& slot, float value) noexcept
     {

+ 26 - 0
src/core/Preferences.cpp

@@ -132,6 +132,32 @@ double bufferLatencyMs (int bufferSamples, double sampleRate)
     return sampleRate > 0.0 ? 1000.0 * bufferSamples / sampleRate : 0.0;
 }
 
+DriverKind driverKind (const std::string& typeName)
+{
+    if (typeName == "Windows Audio")
+        return DriverKind::wasapiShared;
+    if (typeName == "Windows Audio (Low Latency Mode)")
+        return DriverKind::wasapiLowLatency;
+    if (typeName == "Windows Audio (Exclusive Mode)")
+        return DriverKind::wasapiExclusive;
+    if (typeName == "DirectSound")
+        return DriverKind::directSound;
+    if (typeName == "ASIO")
+        return DriverKind::asio;
+    return DriverKind::other;
+}
+
+std::vector<int> usableBufferSizes (DriverKind kind, const std::vector<int>& offered, int devicePeriod)
+{
+    if (kind != DriverKind::wasapiShared || devicePeriod <= 0)
+        return offered;
+    std::vector<int> kept;
+    for (const auto size : offered)
+        if (size >= devicePeriod)
+            kept.push_back (size);
+    return kept.empty() ? offered : kept;
+}
+
 int safeBufferSize (const std::vector<int>& available, int current, double sampleRate)
 {
     const int target = sampleRate > 50000.0 ? (sampleRate > 100000.0 ? 2048 : 1024) : 512;

+ 22 - 0
src/core/Preferences.h

@@ -45,6 +45,28 @@ double bufferLatencyMs (int bufferSamples, double sampleRate);
 // is already larger; the largest offered one if none reaches it. 0 when nothing is offered.
 int safeBufferSize (const std::vector<int>& available, int current, double sampleRate);
 
+// What kind of driver a JUCE device type name is (REA round 97). Windows offers three WASAPI modes:
+//  shared        - other programs keep their sound; Windows mixes every stream at its engine period (10 ms on most
+//                  devices), so a smaller buffer cannot lower the latency, it only adds bursts;
+//  lowLatency    - shared, but asks Windows for a shorter engine period (IAudioClient3); only drivers that support it
+//                  go below 10 ms (many USB class-driver devices stay at 480 samples);
+//  exclusive     - LYNX alone on the device (other programs go silent); the device's own minimum period (often 3 ms).
+enum class DriverKind
+{
+    wasapiShared,
+    wasapiLowLatency,
+    wasapiExclusive,
+    directSound,
+    asio,
+    other
+};
+DriverKind driverKind (const std::string& typeName);
+
+// The buffer sizes worth offering for a device of that kind. In classic shared mode the sizes below the engine period
+// `devicePeriod` (the device's default buffer) are dropped: Windows still mixes in whole periods, so they would not
+// lower the latency and only risk clicks. Other kinds (low-latency mode lists real engine periods): `offered` unchanged.
+std::vector<int> usableBufferSizes (DriverKind kind, const std::vector<int>& offered, int devicePeriod);
+
 // --- MIDI (MIDI page) -------------------------------------------------------------------------------------------
 // How a played note's velocity reaches the instrument.
 enum class VelocityCurve

+ 10 - 0
src/core/RackRenderer.cpp

@@ -1423,7 +1423,10 @@ void RackRenderer::processChunk (const RackState& state, bool playing, double st
     }
 
     if (meters != nullptr)
+    {
         meters->accumulate (0, peakOf (left, numSamples), peakOf (right, numSamples));
+        meters->capture.push (0, left, right, numSamples);
+    }
 }
 
 // Track stereo separation, phase and channel swap (before the fader, like FL).
@@ -1555,7 +1558,11 @@ void RackRenderer::processTrack (const RackState& state, int t, int n, MeterBank
     lastR = gr;
 
     if (silent && fromL == 0.0f && fromR == 0.0f)
+    {
+        if (meters != nullptr)
+            meters->capture.pushSilence (t, n);
         return; // stays inactive: nobody pulls anything from it
+    }
 
     runEffects (state, t, n);
 
@@ -1574,6 +1581,9 @@ void RackRenderer::processTrack (const RackState& state, int t, int n, MeterBank
     trackActive[(std::size_t) t] = 1;
 
     if (meters != nullptr)
+    {
         meters->accumulate (t, peakOf (l, n), peakOf (r, n));
+        meters->capture.push (t, l, r, n);
+    }
 }
 } // namespace lynx

+ 20 - 2
src/engine/AudioEngine.cpp

@@ -104,6 +104,15 @@ void AudioEngine::saveAudioDeviceState()
         xml->writeTo (audioDeviceFile());
 }
 
+void AudioEngine::restoreAudioDeviceState (const juce::XmlElement* state)
+{
+    deviceStateSaver = nullptr;
+    if (state != nullptr)
+        state->writeTo (audioDeviceFile());
+    else
+        audioDeviceFile().deleteFile();
+}
+
 AudioEngine::AudioEngine (bool openAudioDevice)
     : workers (std::make_unique<WorkerPool> (workerCount(), raiseAudioThreadPriority)),
       song (Song::makeDefault())
@@ -398,10 +407,15 @@ int AudioEngine::snapInputKey (int key) const noexcept
     return scale > 0 ? notetools::snapToScale (key, inputScaleRoot.load(), scale) : key;
 }
 
-void AudioEngine::previewSample (std::shared_ptr<const SampleData> sample)
+void AudioEngine::previewSample (std::shared_ptr<const SampleData> sample, bool loop, float gain)
 {
     if (preview != nullptr)
-        preview->play (std::move (sample));
+        preview->play (std::move (sample), loop, gain);
+}
+
+double AudioEngine::getPreviewPosition() const noexcept
+{
+    return preview != nullptr ? preview->getPlayPosition() : -1.0;
 }
 
 void AudioEngine::sendLiveNote (int channel, int key, float velocity, bool on, bool record)
@@ -1602,6 +1616,10 @@ void AudioEngine::audioDeviceIOCallbackWithContext (const float* const* inputCha
 
     // With the loop region on, the block is split at the loop end and the position jumps back to
     // its start (the nodes see a jump and release their notes, as in FL).
+    // the audio editor's input recording (nothing happens unless it chose the input)
+    meters.capture.push (AudioCapture::input, numInputChannels > 0 ? inputChannelData[0] : nullptr, numInputChannels > 1 ? inputChannelData[1] : nullptr,
+                         numSamples);
+
     std::array<const float*, 64> inputs {};
     std::array<float*, 64> outputs {};
     numInputChannels = juce::jmin (numInputChannels, (int) inputs.size());

+ 6 - 1
src/engine/AudioEngine.h

@@ -105,7 +105,9 @@ public:
     // Preview of an audio file (browser). An invalid/empty file stops the preview.
     void previewFile (const juce::File& file);
     // Plays a sound made in memory through the same preview output (the start-up sound). UI thread.
-    void previewSample (std::shared_ptr<const SampleData> sample);
+    void previewSample (std::shared_ptr<const SampleData> sample, bool loop = false, float gain = 0.8f);
+    // The frame of the previewed sample being played, -1 when the preview is silent.
+    double getPreviewPosition() const noexcept;
 
     // Note played live (PC keyboard, preview). UI thread.
     // `record` = goes into the recording if recording is on (Piano Roll preview doesn't).
@@ -294,6 +296,9 @@ public:
     };
     UiPulse takeUiPulse() noexcept { return std::exchange (uiPulse, {}); }
 
+    // Writes `state` (a createStateXml() taken earlier; nullptr = none was saved) back as the saved device and stops
+    // saving later changes: a test run (--rtstress --type ...) leaves the user's device as it found it.
+    void restoreAudioDeviceState (const juce::XmlElement* state);
     // Device, buffer, deadline and the callback statistics in a few lines (CPU meter hint, glitch log, --rtstress).
     juce::String describeRealtime (bool withUnits = true) const;
 

+ 411 - 0
src/engine/DllAsioDevice.cpp

@@ -0,0 +1,411 @@
+#include "engine/DllAsioDevice.h"
+#include <juce_gui_basics/juce_gui_basics.h>
+
+#if JUCE_WINDOWS
+ #ifndef NOMINMAX
+  #define NOMINMAX
+ #endif
+ #include <windows.h>
+ #include <objbase.h>
+ #include "asiosys.h"
+ #include "asio.h"
+ #include "iasiodrv.h"
+ #include <atomic>
+ #include <cmath>
+ #include <utility>
+ #include <vector>
+
+namespace lynx
+{
+namespace
+{
+// LYNX ASIO's class id (asio/LynxAsio.cpp)
+constexpr const wchar_t* lynxAsioClsid = L"{E987C593-898E-4557-BFE3-4288B0228718}";
+
+class DllAsioDevice;
+std::atomic<DllAsioDevice*> activeDevice { nullptr }; // ASIO callbacks carry no user pointer: one open device at a time
+
+class DllAsioDevice final : public juce::AudioIODevice
+{
+public:
+    DllAsioDevice (const juce::String& name, const juce::String& dllPath, const juce::String& clsidText)
+        : juce::AudioIODevice (name, dllAsioTypeName)
+    {
+        module = LoadLibraryW (dllPath.toWideCharPointer());
+        if (module == nullptr)
+        {
+            lastError = "could not load " + dllPath;
+            return;
+        }
+        using GetClassObject = HRESULT (WINAPI*) (REFCLSID, REFIID, void**);
+        auto get = (GetClassObject) (void*) GetProcAddress (module, "DllGetClassObject");
+        CLSID clsid {};
+        if (get == nullptr || FAILED (CLSIDFromString ((LPCOLESTR) (clsidText.isEmpty() ? juce::String (lynxAsioClsid) : clsidText).toWideCharPointer(), &clsid)))
+        {
+            lastError = "not an ASIO driver DLL";
+            return;
+        }
+        IClassFactory* factory = nullptr;
+        if (FAILED (get (clsid, IID_IClassFactory, (void**) &factory)))
+        {
+            lastError = "the DLL does not offer that class";
+            return;
+        }
+        void* object = nullptr;
+        const auto hr = factory->CreateInstance (nullptr, clsid, &object); // ASIO: the class id doubles as the interface id
+        factory->Release();
+        if (FAILED (hr) || object == nullptr)
+        {
+            lastError = "the driver could not be created";
+            return;
+        }
+        driver = (IASIO*) object;
+        if (driver->init (juce::TopLevelWindow::getNumTopLevelWindows() > 0 ? juce::TopLevelWindow::getTopLevelWindow (0)->getWindowHandle() : nullptr) == ASIOFalse)
+        {
+            char text[128] {};
+            driver->getErrorMessage (text);
+            lastError = "driver init failed: " + juce::String (text);
+            driver->Release();
+            driver = nullptr;
+            return;
+        }
+        readCapabilities();
+    }
+
+    ~DllAsioDevice() override
+    {
+        close();
+        if (driver != nullptr)
+            driver->Release();
+        if (module != nullptr)
+            FreeLibrary (module);
+    }
+
+    bool isValid() const { return driver != nullptr; }
+
+    juce::StringArray getOutputChannelNames() override { return outputNames; }
+    juce::StringArray getInputChannelNames() override { return inputNames; }
+    juce::Array<double> getAvailableSampleRates() override { return rates; }
+    juce::Array<int> getAvailableBufferSizes() override { return bufferSizes; }
+    int getDefaultBufferSize() override { return preferredSize; }
+
+    juce::String open (const juce::BigInteger& inputs, const juce::BigInteger& outputs, double rate, int bufferSize) override
+    {
+        close();
+        if (driver == nullptr)
+            return lastError;
+        lastError = {};
+        if (rate > 0 && driver->setSampleRate (rate) != ASE_OK)
+            lastError = "sample rate " + juce::String (rate) + " refused";
+        ASIOSampleRate actual = 0;
+        driver->getSampleRate (&actual);
+        currentRate = actual;
+        currentSize = bufferSize > 0 ? bufferSize : preferredSize;
+
+        activeIns = inputs;
+        activeIns.setRange (inputNames.size(), juce::jmax (0, activeIns.getHighestBit() + 1 - inputNames.size()), false);
+        activeOuts = outputs;
+        activeOuts.setRange (outputNames.size(), juce::jmax (0, activeOuts.getHighestBit() + 1 - outputNames.size()), false);
+        infos.clear();
+        for (int i = 0; i < inputNames.size(); ++i)
+            if (activeIns[i])
+                infos.push_back ({ ASIOTrue, i, { nullptr, nullptr } });
+        for (int i = 0; i < outputNames.size(); ++i)
+            if (activeOuts[i])
+                infos.push_back ({ ASIOFalse, i, { nullptr, nullptr } });
+        if (infos.empty())
+            return lastError = "no channels";
+
+        static ASIOCallbacks callbacks { bufferSwitch, sampleRateChanged, asioMessage, bufferSwitchTimeInfo };
+        activeDevice = this;
+        if (driver->createBuffers (infos.data(), (long) infos.size(), currentSize, &callbacks) != ASE_OK)
+        {
+            char text[128] {};
+            driver->getErrorMessage (text);
+            activeDevice = nullptr;
+            return lastError = "createBuffers failed: " + juce::String (text);
+        }
+        types.clear();
+        for (auto& info : infos)
+        {
+            ASIOChannelInfo ci {};
+            ci.channel = info.channelNum;
+            ci.isInput = info.isInput;
+            driver->getChannelInfo (&ci);
+            types.push_back (ci.type);
+        }
+        long inLatency = 0, outLatency = 0;
+        driver->getLatencies (&inLatency, &outLatency);
+        inputLatency = (int) inLatency;
+        outputLatency = (int) outLatency;
+        floatIns.setSize (juce::jmax (1, activeIns.countNumberOfSetBits()), currentSize);
+        floatOuts.setSize (juce::jmax (1, activeOuts.countNumberOfSetBits()), currentSize);
+        opened = true;
+        return {};
+    }
+
+    void close() override
+    {
+        stop();
+        if (opened)
+        {
+            driver->disposeBuffers();
+            opened = false;
+        }
+        if (activeDevice == this)
+            activeDevice = nullptr;
+    }
+
+    bool isOpen() override { return opened; }
+
+    void start (juce::AudioIODeviceCallback* cb) override
+    {
+        if (! opened || cb == nullptr)
+            return;
+        cb->audioDeviceAboutToStart (this);
+        {
+            const juce::ScopedLock sl (lock);
+            callback = cb;
+        }
+        playing = driver->start() == ASE_OK;
+        if (! playing)
+            lastError = "start failed";
+    }
+
+    void stop() override
+    {
+        if (playing)
+            driver->stop();
+        playing = false;
+        juce::AudioIODeviceCallback* old = nullptr;
+        {
+            const juce::ScopedLock sl (lock);
+            old = std::exchange (callback, nullptr);
+        }
+        if (old != nullptr)
+            old->audioDeviceStopped();
+    }
+
+    bool isPlaying() override { return playing; }
+    juce::String getLastError() override { return lastError; }
+    int getCurrentBufferSizeSamples() override { return currentSize; }
+    double getCurrentSampleRate() override { return currentRate; }
+    int getCurrentBitDepth() override { return 32; }
+    juce::BigInteger getActiveOutputChannels() const override { return activeOuts; }
+    juce::BigInteger getActiveInputChannels() const override { return activeIns; }
+    int getOutputLatencyInSamples() override { return outputLatency; }
+    int getInputLatencyInSamples() override { return inputLatency; }
+    bool hasControlPanel() const override { return true; }
+    bool showControlPanel() override
+    {
+        driver->controlPanel();
+        return false;
+    }
+
+private:
+    void readCapabilities()
+    {
+        long ins = 0, outs = 0;
+        driver->getChannels (&ins, &outs);
+        for (long i = 0; i < ins + outs; ++i)
+        {
+            ASIOChannelInfo ci {};
+            ci.isInput = i < ins ? ASIOTrue : ASIOFalse;
+            ci.channel = i < ins ? i : i - ins;
+            driver->getChannelInfo (&ci);
+            (i < ins ? inputNames : outputNames).add (juce::String (ci.name).trim());
+        }
+        for (double r : { 44100.0, 48000.0, 88200.0, 96000.0, 176400.0, 192000.0 })
+            if (driver->canSampleRate (r) == ASE_OK)
+                rates.add (r);
+        long mn = 0, mx = 0, pref = 0, gran = 0;
+        driver->getBufferSize (&mn, &mx, &pref, &gran);
+        preferredSize = (int) pref;
+        for (int s = 16; s <= juce::jmin (4096L, mx); s *= 2)
+            if (s >= mn)
+                bufferSizes.add (s);
+        if (gran > 0)
+            for (long s = mn; s <= juce::jmin (2048L, mx); s += juce::jmax (16L, gran))
+                bufferSizes.addIfNotAlreadyThere ((int) s);
+        bufferSizes.addIfNotAlreadyThere ((int) pref);
+        bufferSizes.addIfNotAlreadyThere ((int) mn);
+        bufferSizes.sort();
+    }
+
+    static float toFloat (const void* data, int i, ASIOSampleType type)
+    {
+        switch (type)
+        {
+            case ASIOSTFloat32LSB: return ((const float*) data)[i];
+            case ASIOSTInt32LSB:   return (float) (((const int*) data)[i] / 2147483648.0);
+            case ASIOSTInt16LSB:   return ((const short*) data)[i] / 32768.0f;
+            case ASIOSTInt24LSB:
+            {
+                auto* b = (const unsigned char*) data + 3 * i;
+                return (float) ((int) ((unsigned) b[0] << 8 | (unsigned) b[1] << 16 | (unsigned) b[2] << 24) >> 8) / 8388608.0f;
+            }
+            default: return 0.0f;
+        }
+    }
+
+    static void fromFloat (void* data, int i, float v, ASIOSampleType type)
+    {
+        v = juce::jlimit (-1.0f, 1.0f, v);
+        switch (type)
+        {
+            case ASIOSTFloat32LSB: ((float*) data)[i] = v; break;
+            case ASIOSTInt32LSB:   ((int*) data)[i] = (int) std::lrint (v * 2147483647.0); break;
+            case ASIOSTInt16LSB:   ((short*) data)[i] = (short) std::lrint (v * 32767.0f); break;
+            case ASIOSTInt24LSB:
+            {
+                const auto s = (int) std::lrint (v * 8388607.0f);
+                auto* b = (unsigned char*) data + 3 * i;
+                b[0] = (unsigned char) (s & 0xff);
+                b[1] = (unsigned char) ((s >> 8) & 0xff);
+                b[2] = (unsigned char) ((s >> 16) & 0xff);
+                break;
+            }
+            default: break;
+        }
+    }
+
+    void process (long index)
+    {
+        const juce::ScopedLock sl (lock);
+        const int n = currentSize;
+        int in = 0, out = 0;
+        for (size_t c = 0; c < infos.size(); ++c)
+            if (infos[c].isInput)
+            {
+                auto* dst = floatIns.getWritePointer (in++);
+                for (int i = 0; i < n; ++i)
+                    dst[i] = toFloat (infos[c].buffers[index], i, types[c]);
+            }
+        const int numIns = activeIns.countNumberOfSetBits(), numOuts = activeOuts.countNumberOfSetBits();
+        if (callback != nullptr)
+        {
+            const juce::AudioIODeviceCallbackContext context;
+            callback->audioDeviceIOCallbackWithContext (floatIns.getArrayOfReadPointers(), numIns, floatOuts.getArrayOfWritePointers(), numOuts, n, context);
+        }
+        else
+            floatOuts.clear();
+        for (size_t c = 0; c < infos.size(); ++c)
+            if (! infos[c].isInput)
+            {
+                const auto* src = floatOuts.getReadPointer (out++);
+                for (int i = 0; i < n; ++i)
+                    fromFloat (infos[c].buffers[index], i, src[i], types[c]);
+            }
+        driver->outputReady();
+    }
+
+    void requestReset()
+    {
+        juce::MessageManager::callAsync ([safe = juce::WeakReference<DllAsioDevice> (this)]
+        {
+            if (auto* d = safe.get(); d != nullptr && d->opened)
+            {
+                auto* cb = d->callback;
+                const auto ins = d->activeIns, outs = d->activeOuts;
+                const auto rate = d->currentRate;
+                const auto size = d->currentSize;
+                d->callback = nullptr;
+                d->stop();
+                d->open (ins, outs, rate, size);
+                if (cb != nullptr)
+                    d->start (cb);
+            }
+        });
+    }
+
+    static void bufferSwitch (long index, ASIOBool)
+    {
+        if (auto* d = activeDevice.load())
+            d->process (index);
+    }
+    static ASIOTime* bufferSwitchTimeInfo (ASIOTime*, long index, ASIOBool)
+    {
+        bufferSwitch (index, ASIOTrue);
+        return nullptr;
+    }
+    static void sampleRateChanged (ASIOSampleRate) {}
+    static long asioMessage (long selector, long value, void*, double*)
+    {
+        switch (selector)
+        {
+            case kAsioSelectorSupported:
+                return value == kAsioResetRequest || value == kAsioEngineVersion || value == kAsioResyncRequest || value == kAsioLatenciesChanged ? 1 : 0;
+            case kAsioEngineVersion:
+                return 2;
+            case kAsioResetRequest:
+                if (auto* d = activeDevice.load())
+                    d->requestReset();
+                return 1;
+            case kAsioResyncRequest:
+            case kAsioLatenciesChanged:
+                return 1;
+            default:
+                return 0;
+        }
+    }
+
+    HMODULE module = nullptr;
+    IASIO* driver = nullptr;
+    juce::String lastError;
+    juce::StringArray inputNames, outputNames;
+    juce::Array<double> rates;
+    juce::Array<int> bufferSizes;
+    int preferredSize = 512, currentSize = 512, inputLatency = 0, outputLatency = 0;
+    double currentRate = 48000.0;
+    juce::BigInteger activeIns, activeOuts;
+    std::vector<ASIOBufferInfo> infos;
+    std::vector<ASIOSampleType> types;
+    juce::AudioBuffer<float> floatIns, floatOuts;
+    juce::CriticalSection lock;
+    juce::AudioIODeviceCallback* callback = nullptr;
+    bool opened = false, playing = false;
+
+    JUCE_DECLARE_WEAK_REFERENCEABLE (DllAsioDevice)
+};
+
+class DllAsioDeviceType final : public juce::AudioIODeviceType
+{
+public:
+    explicit DllAsioDeviceType (const juce::String& s) : juce::AudioIODeviceType (dllAsioTypeName)
+    {
+        path = s.upToFirstOccurrenceOf ("|", false, false).unquoted();
+        clsid = s.fromFirstOccurrenceOf ("|", false, false).trim();
+        name = juce::File (path).getFileNameWithoutExtension();
+    }
+    void scanForDevices() override {}
+    juce::StringArray getDeviceNames (bool) const override { return { name }; }
+    int getDefaultDeviceIndex (bool) const override { return 0; }
+    int getIndexOfDevice (juce::AudioIODevice* d, bool) const override { return d != nullptr && d->getName() == name ? 0 : -1; }
+    bool hasSeparateInputsAndOutputs() const override { return false; }
+    juce::AudioIODevice* createDevice (const juce::String& out, const juce::String& in) override
+    {
+        if ((out.isNotEmpty() && out != name) || (in.isNotEmpty() && in != name))
+            return nullptr;
+        auto device = std::make_unique<DllAsioDevice> (name, path, clsid);
+        return device->isValid() ? device.release() : nullptr;
+    }
+
+private:
+    juce::String path, clsid, name;
+};
+} // namespace
+
+std::unique_ptr<juce::AudioIODeviceType> makeDllAsioDeviceType (const juce::String& spec)
+{
+    return std::make_unique<DllAsioDeviceType> (spec);
+}
+} // namespace lynx
+
+#else
+
+namespace lynx
+{
+std::unique_ptr<juce::AudioIODeviceType> makeDllAsioDeviceType (const juce::String&) { return nullptr; }
+} // namespace lynx
+
+#endif

+ 16 - 0
src/engine/DllAsioDevice.h

@@ -0,0 +1,16 @@
+#pragma once
+// An ASIO driver loaded straight from its DLL (no registry): LYNX's own lynx-asio.dll, or any ASIO driver DLL for a
+// comparison. Hidden test mode `--asiodll <path>[|{clsid}]` (REA round 97); the device type is named
+// "ASIO driver file".
+#include <juce_audio_devices/juce_audio_devices.h>
+#include <memory>
+
+namespace lynx
+{
+// The type name the device manager lists for it.
+inline constexpr const char* dllAsioTypeName = "ASIO driver file";
+
+// nullptr when not on Windows. `spec` = "C:\\path\\driver.dll" or "C:\\path\\driver.dll|{CLSID}"; without a CLSID
+// LYNX ASIO's own class id is used.
+std::unique_ptr<juce::AudioIODeviceType> makeDllAsioDeviceType (const juce::String& spec);
+} // namespace lynx

+ 15 - 3
src/engine/PreviewPlayer.cpp

@@ -7,13 +7,15 @@ PreviewPlayer::PreviewPlayer()
 {
 }
 
-void PreviewPlayer::play (std::shared_ptr<const SampleData> sample)
+void PreviewPlayer::play (std::shared_ptr<const SampleData> sample, bool loop, float newGain)
 {
     std::shared_ptr<const SampleData> old;
     {
         const juce::SpinLock::ScopedLockType sl (lock);
         old = std::move (retired); // whatever the audio thread released is freed here, on the UI thread
         pending = std::move (sample);
+        pendingLoop = loop;
+        pendingGain = newGain;
         hasPending = true;
     }
 }
@@ -30,12 +32,17 @@ void PreviewPlayer::processBlock (juce::AudioBuffer<float>& buffer, juce::MidiBu
             std::swap (current, pending); // the previous one goes to `pending` and then to `retired`
             retired = std::move (pending);
             hasPending = false;
+            looping = pendingLoop;
+            gain = pendingGain;
             position = 0.0;
         }
     }
 
     if (current == nullptr || current->frames() < 2 || buffer.getNumChannels() < 2)
+    {
+        playPosition.store (-1.0, std::memory_order_relaxed);
         return;
+    }
 
     const auto* l = current->leftData();
     const auto* r = current->rightData();
@@ -48,9 +55,14 @@ void PreviewPlayer::processBlock (juce::AudioBuffer<float>& buffer, juce::MidiBu
     {
         const auto index = (std::size_t) position;
         const auto frac = (float) (position - (double) index);
-        outL[i] = 0.8f * (l[index] + frac * (l[index + 1] - l[index]));
-        outR[i] = 0.8f * (r[index] + frac * (r[index + 1] - r[index]));
+        outL[i] = gain * (l[index] + frac * (l[index + 1] - l[index]));
+        outR[i] = gain * (r[index] + frac * (r[index + 1] - r[index]));
         position += rate;
+
+        if (looping && position >= last)
+            position -= last;
     }
+
+    playPosition.store (position < last ? position : -1.0, std::memory_order_relaxed);
 }
 } // namespace lynx

+ 7 - 2
src/engine/PreviewPlayer.h

@@ -12,8 +12,10 @@ class PreviewPlayer final : public juce::AudioProcessor
 public:
     PreviewPlayer();
 
-    // UI thread. nullptr to stop.
-    void play (std::shared_ptr<const SampleData> sample);
+    // UI thread. nullptr to stop. `loop`: plays it over and over (the audio editor's loop playback).
+    void play (std::shared_ptr<const SampleData> sample, bool loop = false, float gain = 0.8f);
+    // Any thread: the frame being played in the current sample, or -1 when nothing plays.
+    double getPlayPosition() const noexcept { return playPosition.load (std::memory_order_relaxed); }
 
     const juce::String getName() const override { return "Preview"; }
     void prepareToPlay (double sampleRate, int) override { deviceRate = sampleRate; }
@@ -37,6 +39,9 @@ private:
     juce::SpinLock lock;                       // the audio thread only tries (never waits)
     std::shared_ptr<const SampleData> pending; // swapped by the UI
     bool hasPending = false;
+    bool pendingLoop = false, looping = false;
+    float pendingGain = 0.8f, gain = 0.8f;
+    std::atomic<double> playPosition { -1.0 };
     std::shared_ptr<const SampleData> current;  // touched only by the audio thread
     std::shared_ptr<const SampleData> retired;  // released by the UI (audio never deallocates)
     double position = 0.0;

+ 7 - 0
src/engine/SampleLibrary.cpp

@@ -314,6 +314,13 @@ void prefetchSample (const SampleData& data, double fromSeconds, double toSecond
     juce::ignoreUnused (sink);
 }
 
+void SampleLibrary::forget (const juce::String& path)
+{
+    cache.erase (path);
+    for (auto it = stretchedCache.begin(); it != stretchedCache.end();)
+        it = it->first.startsWith (path + "|") ? stretchedCache.erase (it) : std::next (it);
+}
+
 std::shared_ptr<const SampleData> SampleLibrary::load (const juce::String& path)
 {
     if (auto cached = cache[path].lock())

+ 2 - 0
src/engine/SampleLibrary.h

@@ -17,6 +17,8 @@ public:
     SampleLibrary();
 
     std::shared_ptr<const SampleData> load (const juce::String& path);
+    // The file changed on disk (the audio editor saved over it): the next load() reads it again.
+    void forget (const juce::String& path);
 
     // The sample time-stretched without changing pitch (WSOLA), cached by (path, ratio).
     std::shared_ptr<const SampleData> loadStretched (const juce::String& path, double ratio);

+ 2489 - 0
src/ui/AudioEditor.cpp

@@ -0,0 +1,2489 @@
+#include "ui/AudioEditor.h"
+
+#include <algorithm>
+#include <cmath>
+#include <functional>
+
+#include "core/AudioCapture.h"
+#include "core/WaveAnalysis.h"
+#include "engine/Text.h"
+#include "ui/I18n.h"
+#include "ui/Icons.h"
+#include "ui/Theme.h"
+#include "ui/ToolWindow.h"
+
+namespace lynx
+{
+namespace
+{
+namespace ae = audioedit;
+
+// one clipboard for every editor window (copy in one, paste in another)
+ae::Audio& clipboard()
+{
+    static ae::Audio audio;
+    return audio;
+}
+
+// the clean clip look (docs/analise/UI_STUDY_playlist_clips.md): one light filled shape in a tint of the audio colour
+juce::Colour waveColour() { return theme::colour::audioClip.interpolatedWith (juce::Colours::white, 0.7f); }
+
+enum class TimeFormat
+{
+    automatic,
+    samples,
+    seconds,
+    bars
+};
+
+enum class RecordMode
+{
+    now,     // starts at once
+    onInput, // starts when the input goes above the threshold
+    onPlay   // starts with the song playback, stops with it
+};
+
+constexpr float inputThreshold = 0.01f; // -40 dBFS
+
+juce::String formatSeconds (double s)
+{
+    const auto negative = s < 0.0;
+    s = std::abs (s);
+    const auto minutes = (int) (s / 60.0);
+    const auto rest = s - minutes * 60.0;
+    return juce::String (negative ? "-" : "") + juce::String (minutes) + ":" + juce::String (rest, 3).paddedLeft ('0', 6);
+}
+
+// Spectrogram colours (LYNX's own map): the canvas, a deep red, the accent, amber, then white for the loudest.
+juce::Colour spectrumColour (float db)
+{
+    const auto t = juce::jlimit (0.0f, 1.0f, (db + 96.0f) / 96.0f);
+    static const juce::Colour stops[] = { theme::colour::bg0, juce::Colour (0xff3a1016), theme::colour::accent, theme::colour::warning,
+                                          juce::Colour (0xfffff4dc) };
+    static const float at[] = { 0.0f, 0.35f, 0.62f, 0.85f, 1.0f };
+    for (int i = 1; i < 5; ++i)
+        if (t <= at[i])
+            return stops[i - 1].interpolatedWith (stops[i], (t - at[i - 1]) / (at[i] - at[i - 1]));
+    return stops[4];
+}
+
+// --- a small parameter window for the tools (sliders + an optional choice; Preview / Accept / Cancel) ------------
+class ToolPanel final : public juce::Component
+{
+public:
+    struct Param
+    {
+        juce::String name;
+        double min = 0.0, max = 1.0, value = 0.0, step = 0.0;
+        juce::String suffix;
+    };
+    using Action = std::function<void (const std::vector<double>&, int)>;
+
+    ToolPanel (std::vector<Param> ps, juce::StringArray choices, const juce::String& choiceName, int choice, Action applyAction, Action previewAction)
+        : params (std::move (ps)), apply (std::move (applyAction)), preview (std::move (previewAction))
+    {
+        for (const auto& p : params)
+        {
+            auto* label = labels.add (new juce::Label ({}, p.name));
+            label->setFont (theme::font (theme::type::body));
+            label->setColour (juce::Label::textColourId, theme::colour::textSecondary);
+            addAndMakeVisible (label);
+
+            auto* s = sliders.add (new juce::Slider (juce::Slider::LinearHorizontal, juce::Slider::TextBoxRight));
+            s->setRange (p.min, p.max, p.step);
+            s->setValue (p.value, juce::dontSendNotification);
+            s->setDoubleClickReturnValue (true, p.value);
+            s->setTextValueSuffix (p.suffix);
+            s->setTextBoxStyle (juce::Slider::TextBoxRight, false, 84, 22);
+            addAndMakeVisible (s);
+        }
+
+        if (! choices.isEmpty())
+        {
+            choiceLabel.setText (choiceName, juce::dontSendNotification);
+            choiceLabel.setFont (theme::font (theme::type::body));
+            choiceLabel.setColour (juce::Label::textColourId, theme::colour::textSecondary);
+            addAndMakeVisible (choiceLabel);
+            choiceBox.addItemList (choices, 1);
+            choiceBox.setSelectedItemIndex (choice, juce::dontSendNotification);
+            addAndMakeVisible (choiceBox);
+        }
+
+        previewButton.setButtonText (tr ("Preview"));
+        acceptButton.setButtonText (tr ("Accept"));
+        cancelButton.setButtonText (tr ("Cancel"));
+        acceptButton.setColour (juce::TextButton::buttonColourId, theme::colour::accent);
+        previewButton.onClick = [this] {
+            if (preview)
+                preview (values(), choiceBox.getSelectedItemIndex());
+        };
+        acceptButton.onClick = [this] {
+            if (apply)
+                apply (values(), choiceBox.getSelectedItemIndex());
+            closeToolWindowOf (*this);
+        };
+        cancelButton.onClick = [this] { closeToolWindowOf (*this); };
+        previewButton.setVisible (preview != nullptr);
+        for (auto* b : { &previewButton, &acceptButton, &cancelButton })
+            addAndMakeVisible (*b);
+
+        setSize (420, 24 + (int) params.size() * 36 + (choices.isEmpty() ? 0 : 36) + 52);
+    }
+
+    void paint (juce::Graphics& g) override { g.fillAll (theme::colour::bg2); }
+
+    void resized() override
+    {
+        auto area = getLocalBounds().reduced (theme::space::lg);
+        if (choiceBox.getNumItems() > 0)
+        {
+            auto row = area.removeFromTop (28);
+            choiceLabel.setBounds (row.removeFromLeft (120));
+            choiceBox.setBounds (row);
+            area.removeFromTop (8);
+        }
+        for (int i = 0; i < sliders.size(); ++i)
+        {
+            auto row = area.removeFromTop (28);
+            labels[i]->setBounds (row.removeFromLeft (120));
+            sliders[i]->setBounds (row);
+            area.removeFromTop (8);
+        }
+        auto buttons = area.removeFromBottom (30);
+        cancelButton.setBounds (buttons.removeFromRight (90));
+        buttons.removeFromRight (8);
+        acceptButton.setBounds (buttons.removeFromRight (90));
+        buttons.removeFromRight (8);
+        previewButton.setBounds (buttons.removeFromRight (90));
+    }
+
+private:
+    std::vector<double> values() const
+    {
+        std::vector<double> v;
+        for (auto* s : sliders)
+            v.push_back (s->getValue());
+        return v;
+    }
+
+    std::vector<Param> params;
+    juce::OwnedArray<juce::Label> labels;
+    juce::OwnedArray<juce::Slider> sliders;
+    juce::Label choiceLabel;
+    juce::ComboBox choiceBox;
+    juce::TextButton previewButton, acceptButton, cancelButton;
+    Action apply, preview;
+};
+
+// --- the editor --------------------------------------------------------------------------------------------------
+struct Source
+{
+    enum class Kind
+    {
+        none,
+        file,
+        channel,
+        insert
+    };
+    Kind kind = Kind::none;
+    int index = -1; // channel or insert
+    juce::String path;
+};
+
+class AudioEditor final : public juce::Component,
+                          public juce::FileDragAndDropTarget,
+                          private juce::Timer
+{
+public:
+    AudioEditor (AudioEngine& e, Source s) : engine (e), source (std::move (s))
+    {
+        auto setupIcon = [this] (IconButton& b, const juce::String& tip) {
+            b.setFlat (true);
+            b.setTooltip (tip);
+            addAndMakeVisible (b);
+        };
+        setupIcon (menuButton, tr ("Menu: file, edit, tools, regions, view"));
+        setupIcon (undoButton, tr ("Undo") + " (Ctrl+Z)");
+        setupIcon (redoButton, tr ("Redo") + " (Ctrl+Y)");
+        setupIcon (historyButton, tr ("Undo history"));
+        setupIcon (recordButton, tr ("Record") + " (R)");
+        setupIcon (recordMenuButton, tr ("What and when to record"));
+        setupIcon (playButton, tr ("Play / stop the selection") + " (Space)");
+        setupIcon (stopButton, tr ("Stop"));
+        setupIcon (snapButton, tr ("Snap the selection to zero crossings"));
+        setupIcon (fitButton, tr ("Zoom out full"));
+        setupIcon (saveButton, tr ("Save as WAV..."));
+        recordButton.setOnColour (theme::colour::record);
+        recordButton.setClickingTogglesState (false);
+        snapButton.setClickingTogglesState (true);
+
+        menuButton.onClick = [this] { mainMenu().showMenuAsync (juce::PopupMenu::Options().withTargetComponent (&menuButton)); };
+        undoButton.onClick = [this] { undo(); };
+        redoButton.onClick = [this] { redo(); };
+        historyButton.onClick = [this] { historyMenu().showMenuAsync (juce::PopupMenu::Options().withTargetComponent (&historyButton)); };
+        recordButton.onClick = [this] { toggleRecording(); };
+        recordMenuButton.onClick = [this] { recordMenu().showMenuAsync (juce::PopupMenu::Options().withTargetComponent (&recordMenuButton)); };
+        playButton.onClick = [this] { playing ? stopPlayback() : startPlayback(); };
+        stopButton.onClick = [this] {
+            stopPlayback();
+            if (recState != RecState::idle)
+                stopRecording();
+        };
+        snapButton.onClick = [this] { snapZero = snapButton.getToggleState(); };
+        fitButton.onClick = [this] { zoomToFit(); };
+        saveButton.onClick = [this] { saveAs (bits); };
+
+        auto setupText = [this] (juce::TextButton& b, const juce::String& text, const juce::String& tip) {
+            b.setButtonText (text);
+            b.setTooltip (tip);
+            addAndMakeVisible (b);
+        };
+        setupText (loopButton, tr ("Loop"), tr ("Loop the playback") + " (L)");
+        loopButton.setClickingTogglesState (true);
+        loopButton.setColour (juce::TextButton::buttonOnColourId, theme::colour::accent);
+        loopButton.onClick = [this] {
+            loopPlay = loopButton.getToggleState();
+            if (playing)
+                startPlayback();
+        };
+        setupText (viewButton, tr ("Spectrum"), tr ("Show the waveform or the spectrogram") + " (S)");
+        viewButton.setClickingTogglesState (true);
+        viewButton.setColour (juce::TextButton::buttonOnColourId, theme::colour::accent);
+        viewButton.onClick = [this] {
+            spectrumView = viewButton.getToggleState();
+            repaint();
+        };
+        setupText (sendButton, tr ("Send"), tr ("Send to the Playlist as an audio clip, to a new Sampler channel or back to the channel"));
+        sendButton.setColour (juce::TextButton::buttonColourId, theme::colour::accentMuted);
+        sendButton.onClick = [this] { sendMenu().showMenuAsync (juce::PopupMenu::Options().withTargetComponent (&sendButton)); };
+
+        // quick tools (the second row)
+        struct Quick
+        {
+            const char* text;
+            const char* tip;
+            std::function<void()> action;
+        };
+        const Quick quick[] = {
+            { TR_NOOP ("Cut"), TR_NOOP ("Cut the selection (Ctrl+X)"), [this] { cutSelection(); } },
+            { TR_NOOP ("Copy"), TR_NOOP ("Copy the selection (Ctrl+C)"), [this] { copySelection(); } },
+            { TR_NOOP ("Paste"), TR_NOOP ("Paste at the cursor, or over the selection (Ctrl+V)"), [this] { paste (false); } },
+            { TR_NOOP ("Delete"), TR_NOOP ("Delete the selection (Del)"), [this] { deleteSelection(); } },
+            { TR_NOOP ("Trim"), TR_NOOP ("Keep only the selection"), [this] { trimSelection(); } },
+            { TR_NOOP ("Silence"), TR_NOOP ("Silence the selection (Clear)"), [this] { edit (tr ("Silence"), [] (ae::Document& d, ae::Range r) { ae::clear (d, r); }, true); } },
+            { TR_NOOP ("Fade in"), TR_NOOP ("Fade in over the selection (curve: the arrow next to Fade out)"), [this] { fade (true); } },
+            { TR_NOOP ("Fade out"), TR_NOOP ("Fade out over the selection"), [this] { fade (false); } },
+            { "~", TR_NOOP ("Fade curve"), [this] { curveMenu().showMenuAsync (juce::PopupMenu::Options().withTargetComponent (quickButtons[8])); } },
+            { TR_NOOP ("Normalize"), TR_NOOP ("Normalize the selection (or everything) to 0 dB"), [this] { edit (tr ("Normalize"), [] (ae::Document& d, ae::Range r) { ae::normalize (d, r); }); } },
+            { TR_NOOP ("Amp..."), TR_NOOP ("Volume and panning"), [this] { showAmp(); } },
+            { TR_NOOP ("Reverse"), TR_NOOP ("Reverse the selection (or everything)"), [this] { edit (tr ("Reverse"), [] (ae::Document& d, ae::Range r) { ae::reverse (d, r); }); } },
+            { TR_NOOP ("Invert"), TR_NOOP ("Reverse the polarity"), [this] { edit (tr ("Reverse polarity"), [] (ae::Document& d, ae::Range r) { ae::invert (d, r); }); } },
+            { TR_NOOP ("Center"), TR_NOOP ("Remove the DC offset"), [this] { edit (tr ("Remove DC offset"), [] (ae::Document& d, ae::Range r) { ae::removeDc (d, r); }); } },
+            { TR_NOOP ("Stretch..."), TR_NOOP ("Time stretch / pitch shift"), [this] { showStretch(); } },
+            { TR_NOOP ("Resample..."), TR_NOOP ("Change the sample rate"), [this] { showResample(); } },
+            { TR_NOOP ("Marker"), TR_NOOP ("Add a marker at the cursor (M)"), [this] { addMarkerAtCursor(); } },
+            { TR_NOOP ("Region"), TR_NOOP ("Make the selection a region"), [this] { addRegionFromSelection(); } },
+            { TR_NOOP ("Set loop"), TR_NOOP ("Make the selection the loop"), [this] { setLoopFromSelection(); } },
+        };
+        for (const auto& q : quick)
+        {
+            auto* b = quickButtons.add (new juce::TextButton (q.text[0] == '~' ? juce::String (juce::CharPointer_UTF8 ("\xe2\x96\xbe")) : tr (q.text)));
+            b->setTooltip (tr (q.tip));
+            b->onClick = q.action;
+            addAndMakeVisible (b);
+        }
+
+        setWantsKeyboardFocus (true);
+        setSize (1120, 600);
+        history.reset (doc, tr ("Empty").toStdString());
+        updateButtons();
+        startTimerHz (30);
+    }
+
+    ~AudioEditor() override
+    {
+        if (playing)
+            engine.previewSample (nullptr);
+        if (recState != RecState::idle)
+            engine.getMeters().capture.setSource (AudioCapture::off);
+    }
+
+    // --- opening ---------------------------------------------------------------------------------------------
+    bool loadFile (const juce::File& file)
+    {
+        auto data = engine.getSampleLibrary().load (file.getFullPathName());
+        if (data == nullptr)
+        {
+            setStatus (tr ("Could not read {0}", { file.getFileName() }), true);
+            return false;
+        }
+
+        ae::Document d;
+        d.audio.sampleRate = data->sampleRate;
+        d.audio.channels.emplace_back (data->leftData(), data->leftData() + data->frames());
+        if (data->isStereo())
+            d.audio.channels.emplace_back (data->rightData(), data->rightData() + data->frames());
+        if (data->loopStart >= 0 && data->loopEnd > data->loopStart)
+            ae::setLoop (d, { data->loopStart, data->loopEnd });
+
+        if (file.hasFileExtension ("wav"))
+        {
+            juce::MemoryBlock bytes;
+            if (file.loadFileAsData (bytes))
+            {
+                ae::Document marks = d;
+                if (ae::decodeWavMarkers (static_cast<const std::uint8_t*> (bytes.getData()), bytes.getSize(), marks))
+                {
+                    d.markers = marks.markers;
+                    if (marks.hasLoop())
+                        ae::setLoop (d, { marks.loopStart, marks.loopEnd });
+                }
+            }
+        }
+
+        d.title = file.getFileNameWithoutExtension().toStdString();
+        setDocument (std::move (d), tr ("Open"));
+        lastFile = file;
+        return true;
+    }
+
+    void setDocument (ae::Document d, const juce::String& label)
+    {
+        doc = std::move (d);
+        history.reset (doc, label.toStdString());
+        selection = {};
+        cursor = 0;
+        modified = false;
+        documentChanged();
+        zoomToFit();
+        updateTitle();
+    }
+
+    void selectForSnapshot (ae::Range r, bool spectrum)
+    {
+        selection = r;
+        cursor = r.start;
+        spectrumView = spectrum;
+        viewButton.setToggleState (spectrum, juce::dontSendNotification);
+        repaint();
+    }
+
+    juce::PopupMenu mainMenu();
+
+    // --- layout and painting ---------------------------------------------------------------------------------
+    void resized() override
+    {
+        auto area = getLocalBounds();
+        auto bar = area.removeFromTop (36).reduced (6, 4);
+        auto place = [&bar] (juce::Component& c, int w, int gap = 2) {
+            c.setBounds (bar.removeFromLeft (w));
+            bar.removeFromLeft (gap);
+        };
+        place (menuButton, 28, 8);
+        place (undoButton, 28);
+        place (redoButton, 28);
+        place (historyButton, 18, 12);
+        place (recordButton, 30);
+        place (recordMenuButton, 18, 6);
+        place (playButton, 30);
+        place (stopButton, 30, 6);
+        place (loopButton, 54, 12);
+        place (viewButton, 76, 6);
+        place (snapButton, 28);
+        place (fitButton, 28);
+        sendButton.setBounds (bar.removeFromRight (70));
+        bar.removeFromRight (6);
+        saveButton.setBounds (bar.removeFromRight (28));
+
+        auto tools = area.removeFromTop (30).reduced (6, 2);
+        const auto n = quickButtons.size();
+        const auto curveWidth = 18;
+        const auto each = (tools.getWidth() - curveWidth - (n - 2) * 2) / juce::jmax (1, n - 1);
+        for (int i = 0; i < n; ++i)
+        {
+            const auto w = i == 8 ? curveWidth : each;
+            quickButtons[i]->setBounds (tools.removeFromLeft (w));
+            tools.removeFromLeft (i == 7 ? 0 : 2);
+        }
+
+        infoArea = area.removeFromBottom (24);
+        overviewArea = area.removeFromBottom (18).reduced (6, 2);
+        area.removeFromBottom (2);
+        area = area.reduced (6, 0);
+        levelArea = area.removeFromLeft (34);
+        rulerArea = area.removeFromTop (24);
+        rulerArea.setX (area.getX());
+        waveArea = area;
+        clampView();
+    }
+
+    void paint (juce::Graphics& g) override
+    {
+        using namespace theme;
+        g.fillAll (colour::bg2);
+        g.setColour (colour::bg3);
+        g.fillRect (getLocalBounds().removeFromTop (36));
+        g.setColour (colour::border);
+        g.drawHorizontalLine (36, 0.0f, (float) getWidth());
+
+        paintRuler (g);
+        paintLevels (g);
+        if (spectrumView)
+            paintSpectrum (g);
+        else
+            paintWave (g);
+        paintOverlays (g);
+        paintOverview (g);
+        paintInfo (g);
+    }
+
+    // --- mouse ----------------------------------------------------------------------------------------------
+    void mouseDown (const juce::MouseEvent& e) override
+    {
+        grabKeyboardFocus();
+        drag = Drag::none;
+        if (doc.audio.empty())
+        {
+            if (e.mods.isPopupMenu())
+                mainMenu().showMenuAsync (juce::PopupMenu::Options().withMousePosition());
+            return;
+        }
+
+        const auto pos = e.getPosition();
+
+        if (overviewArea.contains (pos))
+        {
+            drag = Drag::overview;
+            centreViewOnOverview (e.x);
+            return;
+        }
+
+        if (rulerArea.contains (pos))
+        {
+            // the loop handles live in the ruler's bottom strip
+            if (doc.hasLoop() && pos.y >= rulerArea.getBottom() - 7)
+            {
+                if (std::abs (frameToX ((double) doc.loopStart) - (float) e.x) < 6.0f)
+                {
+                    beginPointDrag (Drag::loopStart);
+                    return;
+                }
+                if (std::abs (frameToX ((double) doc.loopEnd) - (float) e.x) < 6.0f)
+                {
+                    beginPointDrag (Drag::loopEnd);
+                    return;
+                }
+            }
+            if (const auto m = markerAt (e.x); m >= 0)
+            {
+                if (e.mods.isPopupMenu())
+                    markerMenu (m).showMenuAsync (juce::PopupMenu::Options().withMousePosition());
+                else
+                {
+                    dragMarkerIndex = m;
+                    beginPointDrag (Drag::marker);
+                }
+                return;
+            }
+        }
+
+        if (e.mods.isPopupMenu())
+        {
+            editMenu (true).showMenuAsync (juce::PopupMenu::Options().withMousePosition());
+            return;
+        }
+
+        if (waveArea.contains (pos) || rulerArea.contains (pos))
+        {
+            const auto f = snapFrame (xToFrame (e.x));
+            if (e.mods.isShiftDown() && ! selection.empty())
+                anchor = std::abs (f - selection.start) < std::abs (f - selection.end) ? selection.end : selection.start;
+            else if (e.mods.isShiftDown())
+                anchor = cursor;
+            else
+                anchor = f;
+            selection = { std::min (anchor, f), std::max (anchor, f) };
+            cursor = f;
+            drag = Drag::select;
+            if (playing && ! e.mods.isShiftDown())
+                startPlayback();
+            repaint();
+        }
+    }
+
+    void mouseDrag (const juce::MouseEvent& e) override
+    {
+        if (drag == Drag::overview)
+        {
+            centreViewOnOverview (e.x);
+            return;
+        }
+        if (drag == Drag::none)
+            return;
+
+        // auto-scroll past the edges
+        if (e.x < waveArea.getX())
+            viewStart -= (waveArea.getX() - e.x) * fpp * 0.25;
+        else if (e.x > waveArea.getRight())
+            viewStart += (e.x - waveArea.getRight()) * fpp * 0.25;
+        clampView();
+
+        const auto f = snapFrame (xToFrame (e.x));
+        if (drag == Drag::select)
+        {
+            selection = { std::min (anchor, f), std::max (anchor, f) };
+            cursor = f;
+        }
+        else if (drag == Drag::marker && juce::isPositiveAndBelow (dragMarkerIndex, (int) doc.markers.size()))
+        {
+            auto& m = doc.markers[(std::size_t) dragMarkerIndex];
+            const auto length = m.end - m.start;
+            m.start = juce::jlimit<std::int64_t> (0, doc.audio.frames() - length, f);
+            m.end = m.start + length;
+        }
+        else if (drag == Drag::loopStart)
+            doc.loopStart = juce::jlimit<std::int64_t> (0, doc.loopEnd - 1, f);
+        else if (drag == Drag::loopEnd)
+            doc.loopEnd = juce::jlimit<std::int64_t> (doc.loopStart + 1, doc.audio.frames(), f);
+        repaint();
+    }
+
+    void mouseUp (const juce::MouseEvent&) override
+    {
+        if (drag == Drag::marker || drag == Drag::loopStart || drag == Drag::loopEnd)
+        {
+            const auto& before = history.current();
+            const auto moved = before.loopStart != doc.loopStart || before.loopEnd != doc.loopEnd || before.markers.size() != doc.markers.size()
+                               || ! std::equal (before.markers.begin(), before.markers.end(), doc.markers.begin(),
+                                                [] (const ae::Marker& a, const ae::Marker& b) { return a.start == b.start && a.end == b.end; });
+            if (moved)
+            {
+                ae::sortMarkers (doc);
+                commit (drag == Drag::marker ? tr ("Move marker") : tr ("Move loop"));
+            }
+        }
+        drag = Drag::none;
+    }
+
+    void mouseDoubleClick (const juce::MouseEvent& e) override
+    {
+        if (doc.audio.empty() || ! waveArea.contains (e.getPosition()))
+            return;
+        // the region under the mouse, else the stretch between the markers around it, else everything
+        const auto f = xToFrame (e.x);
+        std::int64_t from = 0, to = doc.audio.frames();
+        for (const auto& m : doc.markers)
+            if (m.isRegion() && f >= m.start && f < m.end)
+            {
+                selection = { m.start, m.end };
+                repaint();
+                return;
+            }
+        for (const auto& m : doc.markers)
+        {
+            if (m.start <= f)
+                from = std::max (from, m.start);
+            if (m.start > f)
+                to = std::min (to, m.start);
+        }
+        selection = { from, to };
+        repaint();
+    }
+
+    void mouseWheelMove (const juce::MouseEvent& e, const juce::MouseWheelDetails& w) override
+    {
+        if (doc.audio.empty())
+            return;
+        const auto delta = std::abs (w.deltaY) > std::abs (w.deltaX) ? w.deltaY : w.deltaX;
+        if (e.mods.isCtrlDown() || e.mods.isCommandDown())
+            zoomAround ((float) e.x, delta > 0 ? 0.8 : 1.25);
+        else
+        {
+            viewStart -= delta * (double) waveArea.getWidth() * fpp * 0.5;
+            clampView();
+            repaint();
+        }
+    }
+
+    // --- keys -----------------------------------------------------------------------------------------------
+    bool keyPressed (const juce::KeyPress& k) override
+    {
+        const auto ctrl = k.getModifiers().isCtrlDown() || k.getModifiers().isCommandDown();
+        const auto shift = k.getModifiers().isShiftDown();
+        const auto c = juce::CharacterFunctions::toLowerCase (k.getTextCharacter());
+        const auto code = k.getKeyCode();
+
+        if (ctrl && (code == 'Z' || c == 'z'))
+            shift ? redo() : undo();
+        else if (ctrl && (code == 'Y' || c == 'y'))
+            redo();
+        else if (ctrl && (code == 'X' || c == 'x'))
+            cutSelection();
+        else if (ctrl && (code == 'C' || c == 'c'))
+            copySelection();
+        else if (ctrl && (code == 'V' || c == 'v'))
+            paste (false);
+        else if (ctrl && (code == 'A' || c == 'a'))
+        {
+            selection = { 0, doc.audio.frames() };
+            repaint();
+        }
+        else if (ctrl && (code == 'S' || c == 's'))
+            saveAs (bits);
+        else if (code == juce::KeyPress::spaceKey)
+            playing ? stopPlayback() : startPlayback();
+        else if (code == juce::KeyPress::deleteKey || code == juce::KeyPress::backspaceKey)
+            deleteSelection();
+        else if (code == juce::KeyPress::escapeKey)
+        {
+            if (recState != RecState::idle)
+                stopRecording();
+            selection = {};
+            repaint();
+        }
+        else if (code == juce::KeyPress::homeKey)
+            setCursor (0);
+        else if (code == juce::KeyPress::endKey)
+            setCursor (doc.audio.frames());
+        else if (! ctrl && c == 'r')
+            toggleRecording();
+        else if (! ctrl && c == 'l')
+            loopButton.triggerClick();
+        else if (! ctrl && c == 's')
+            viewButton.triggerClick();
+        else if (! ctrl && c == 'm')
+            addMarkerAtCursor();
+        else if (! ctrl && c == 'f')
+            zoomToFit();
+        else if (c == '+' || c == '=')
+            zoomAround ((float) waveArea.getCentreX(), 0.5);
+        else if (c == '-')
+            zoomAround ((float) waveArea.getCentreX(), 2.0);
+        else
+            return false;
+        return true;
+    }
+
+    // --- drag and drop of files -----------------------------------------------------------------------------
+    bool isInterestedInFileDrag (const juce::StringArray& files) override
+    {
+        return files.size() == 1 && juce::File (files[0]).hasFileExtension ("wav;aif;aiff;flac;ogg;mp3");
+    }
+
+    void filesDropped (const juce::StringArray& files, int, int) override
+    {
+        if (files.isEmpty())
+            return;
+        if (doc.audio.empty())
+        {
+            source = { Source::Kind::file, -1, files[0] };
+            loadFile (juce::File (files[0]));
+            return;
+        }
+        // into a document: pasted at the cursor
+        auto data = engine.getSampleLibrary().load (files[0]);
+        if (data == nullptr)
+            return;
+        ae::Audio clip;
+        clip.sampleRate = data->sampleRate;
+        clip.channels.emplace_back (data->leftData(), data->leftData() + data->frames());
+        if (data->isStereo())
+            clip.channels.emplace_back (data->rightData(), data->rightData() + data->frames());
+        const auto at = cursor;
+        ae::insert (doc, at, clip);
+        selection = { at, at + ae::conform (clip, doc.audio.numChannels(), doc.audio.sampleRate).frames() };
+        commit (tr ("Paste"));
+    }
+
+    // menus shared with the snapshot check
+    juce::PopupMenu editMenu (bool contextual);
+
+private:
+    enum class Drag
+    {
+        none,
+        select,
+        marker,
+        loopStart,
+        loopEnd,
+        overview
+    };
+    enum class RecState
+    {
+        idle,
+        waiting,
+        recording
+    };
+
+    // --- coordinates ----------------------------------------------------------------------------------------
+    float frameToX (double frame) const noexcept { return (float) waveArea.getX() + (float) ((frame - viewStart) / fpp); }
+    std::int64_t xToFrame (int x) const noexcept
+    {
+        return juce::jlimit<std::int64_t> (0, doc.audio.frames(), (std::int64_t) std::llround (viewStart + (double) (x - waveArea.getX()) * fpp));
+    }
+    double maxFpp() const noexcept { return juce::jmax (1.0, (double) doc.audio.frames() / juce::jmax (1, waveArea.getWidth())); }
+
+    void clampView()
+    {
+        fpp = juce::jlimit (1.0 / 32.0, maxFpp(), fpp);
+        const auto visible = (double) waveArea.getWidth() * fpp;
+        viewStart = juce::jlimit (0.0, juce::jmax (0.0, (double) doc.audio.frames() - visible), viewStart);
+    }
+
+    void zoomToFit()
+    {
+        fpp = maxFpp();
+        viewStart = 0.0;
+        clampView();
+        repaint();
+    }
+
+    void zoomAround (float x, double factor)
+    {
+        const auto frame = viewStart + (x - (float) waveArea.getX()) * fpp;
+        fpp *= factor;
+        clampView();
+        viewStart = frame - (x - (float) waveArea.getX()) * fpp;
+        clampView();
+        repaint();
+    }
+
+    void zoomTo (ae::Range r)
+    {
+        if (r.empty())
+            return;
+        fpp = (double) r.length() / juce::jmax (1, waveArea.getWidth());
+        clampView();
+        viewStart = (double) r.start;
+        clampView();
+        repaint();
+    }
+
+    void centreViewOnOverview (int x)
+    {
+        const auto frames = (double) doc.audio.frames();
+        const auto f = (double) (x - overviewArea.getX()) / juce::jmax (1, overviewArea.getWidth()) * frames;
+        viewStart = f - (double) waveArea.getWidth() * fpp * 0.5;
+        clampView();
+        repaint();
+    }
+
+    std::int64_t snapFrame (std::int64_t f) const
+    {
+        if (! snapZero)
+            return f;
+        return ae::nearestZeroCrossing (doc.audio, f, (std::int64_t) juce::jmax (8.0, fpp * 6.0));
+    }
+
+    int markerAt (int x) const
+    {
+        for (int i = (int) doc.markers.size() - 1; i >= 0; --i)
+            if (std::abs (frameToX ((double) doc.markers[(std::size_t) i].start) - (float) x) < 5.0f)
+                return i;
+        return -1;
+    }
+
+    // markers and loop ends move live; mouseUp commits the move against the history's current state
+    void beginPointDrag (Drag d) { drag = d; }
+
+    void setCursor (std::int64_t f)
+    {
+        cursor = juce::jlimit<std::int64_t> (0, doc.audio.frames(), f);
+        selection = {};
+        if (frameToX ((double) cursor) < (float) waveArea.getX() || frameToX ((double) cursor) > (float) waveArea.getRight())
+        {
+            viewStart = (double) cursor - (double) waveArea.getWidth() * fpp * 0.5;
+            clampView();
+        }
+        repaint();
+    }
+
+    // --- painting -------------------------------------------------------------------------------------------
+    // per pixel column x of a lane: the min/max of the samples it covers (exact when zoomed in, from the
+    // summary when zoomed out)
+    bool columnRange (int channel, double from, double to, float& lo, float& hi) const
+    {
+        const auto frames = doc.audio.frames();
+        if (to <= 0.0 || from >= (double) frames)
+            return false;
+        if (fpp > 256.0 && summary != nullptr)
+        {
+            const auto p = summary->query (from, to, doc.audio.numChannels() > 1 ? channel : -1);
+            if (! p.valid)
+                return false;
+            lo = p.lo;
+            hi = p.hi;
+            return true;
+        }
+        const auto& data = doc.audio.channels[(std::size_t) channel];
+        auto a = (std::int64_t) std::floor (from), b = (std::int64_t) std::ceil (to);
+        a = juce::jlimit<std::int64_t> (0, frames - 1, a);
+        b = juce::jlimit<std::int64_t> (a + 1, frames, b);
+        lo = hi = data[(std::size_t) a];
+        for (auto i = a + 1; i < b; ++i)
+        {
+            lo = std::min (lo, data[(std::size_t) i]);
+            hi = std::max (hi, data[(std::size_t) i]);
+        }
+        return true;
+    }
+
+    juce::Rectangle<float> laneBounds (int lane) const
+    {
+        const auto lanes = juce::jmax (1, doc.audio.numChannels());
+        const auto h = (float) waveArea.getHeight() / (float) lanes;
+        return { (float) waveArea.getX(), (float) waveArea.getY() + h * (float) lane, (float) waveArea.getWidth(), h };
+    }
+
+    void paintWave (juce::Graphics& g)
+    {
+        using namespace theme;
+        g.setColour (colour::bg0);
+        g.fillRect (waveArea);
+
+        if (doc.audio.empty())
+        {
+            g.setColour (colour::textSecondary);
+            g.setFont (font (type::body));
+            g.drawFittedText (recState != RecState::idle ? tr ("Waiting for input...")
+                                                         : tr ("Empty: press Record, drop an audio file here or open one from the menu"),
+                              waveArea.reduced (20), juce::Justification::centred, 2);
+            return;
+        }
+
+        juce::Graphics::ScopedSaveState save (g);
+        g.reduceClipRegion (waveArea);
+        paintSelectionAndRegions (g);
+
+        const auto lanes = doc.audio.numChannels();
+        for (int lane = 0; lane < lanes; ++lane)
+        {
+            const auto r = laneBounds (lane);
+            const auto centre = r.getCentreY();
+            const auto half = r.getHeight() * 0.5f - 2.0f;
+
+            // level guides: centre line and -6 dB
+            g.setColour (colour::gridBeat);
+            g.drawHorizontalLine ((int) (centre - half * 0.5f), r.getX(), r.getRight());
+            g.drawHorizontalLine ((int) (centre + half * 0.5f), r.getX(), r.getRight());
+            g.setColour (colour::gridBar);
+            g.drawHorizontalLine ((int) centre, r.getX(), r.getRight());
+            if (lane > 0)
+            {
+                g.setColour (colour::border);
+                g.drawHorizontalLine ((int) r.getY(), r.getX(), r.getRight());
+            }
+
+            const auto width = waveArea.getWidth();
+            if (fpp < 1.0)
+            {
+                // zoomed in past one sample per pixel: the samples joined by a line, dots when far apart
+                const auto& data = doc.audio.channels[(std::size_t) lane];
+                const auto first = juce::jmax<std::int64_t> (0, (std::int64_t) std::floor (viewStart) - 1);
+                const auto last = juce::jmin<std::int64_t> (doc.audio.frames() - 1, (std::int64_t) std::ceil (viewStart + width * fpp) + 1);
+                juce::Path line;
+                for (auto i = first; i <= last; ++i)
+                {
+                    const auto p = juce::Point<float> (frameToX ((double) i), centre - juce::jlimit (-1.0f, 1.0f, data[(std::size_t) i]) * half);
+                    i == first ? line.startNewSubPath (p) : line.lineTo (p);
+                }
+                g.setColour (waveColour());
+                g.strokePath (line, juce::PathStrokeType (1.5f, juce::PathStrokeType::curved, juce::PathStrokeType::rounded));
+                if (fpp < 1.0 / 6.0)
+                    for (auto i = first; i <= last; ++i)
+                        g.fillEllipse (juce::Rectangle<float> (4.0f, 4.0f).withCentre ({ frameToX ((double) i), centre - juce::jlimit (-1.0f, 1.0f, data[(std::size_t) i]) * half }));
+                continue;
+            }
+
+            // one filled shape: the top edge (maxima) left to right, the bottom edge (minima) back
+            std::vector<float> tops ((std::size_t) width), bottoms ((std::size_t) width);
+            std::vector<char> valid ((std::size_t) width);
+            for (int x = 0; x < width; ++x)
+            {
+                const auto from = viewStart + x * fpp;
+                float lo = 0.0f, hi = 0.0f;
+                valid[(std::size_t) x] = columnRange (lane, from, from + fpp, lo, hi) ? 1 : 0;
+                tops[(std::size_t) x] = centre - juce::jlimit (-1.0f, 1.0f, hi) * half;
+                bottoms[(std::size_t) x] = centre - juce::jlimit (-1.0f, 1.0f, lo) * half;
+                if (bottoms[(std::size_t) x] - tops[(std::size_t) x] < 1.0f) // silence still shows as a hairline
+                {
+                    const auto mid = (bottoms[(std::size_t) x] + tops[(std::size_t) x]) * 0.5f;
+                    tops[(std::size_t) x] = mid - 0.5f;
+                    bottoms[(std::size_t) x] = mid + 0.5f;
+                }
+            }
+            juce::Path wave;
+            for (int x = 0; x < width;)
+            {
+                while (x < width && ! valid[(std::size_t) x])
+                    ++x;
+                if (x >= width)
+                    break;
+                const auto start = x;
+                while (x < width && valid[(std::size_t) x])
+                    ++x;
+                const auto px = [this] (int i) { return (float) (waveArea.getX() + i); };
+                wave.startNewSubPath (px (start), tops[(std::size_t) start]);
+                for (int i = start + 1; i < x; ++i)
+                    wave.lineTo (px (i), tops[(std::size_t) i]);
+                wave.lineTo (px (x), tops[(std::size_t) (x - 1)]);
+                wave.lineTo (px (x), bottoms[(std::size_t) (x - 1)]);
+                for (int i = x - 1; i >= start; --i)
+                    wave.lineTo (px (i), bottoms[(std::size_t) i]);
+                wave.closeSubPath();
+            }
+            g.setColour (waveColour());
+            g.fillPath (wave);
+        }
+    }
+
+    void paintSelectionAndRegions (juce::Graphics& g)
+    {
+        using namespace theme;
+        for (const auto& m : doc.markers)
+            if (m.isRegion())
+            {
+                g.setColour (colour::warning.withAlpha (0.07f));
+                g.fillRect (juce::Rectangle<float>::leftTopRightBottom (frameToX ((double) m.start), (float) waveArea.getY(), frameToX ((double) m.end),
+                                                                        (float) waveArea.getBottom()));
+            }
+        if (! selection.empty())
+        {
+            g.setColour (colour::selectionFill);
+            g.fillRect (juce::Rectangle<float>::leftTopRightBottom (frameToX ((double) selection.start), (float) waveArea.getY(),
+                                                                    frameToX ((double) selection.end), (float) waveArea.getBottom()));
+        }
+    }
+
+    void paintSpectrum (juce::Graphics& g)
+    {
+        using namespace theme;
+        g.setColour (colour::bg0);
+        g.fillRect (waveArea);
+        if (doc.audio.empty())
+        {
+            paintWave (g);
+            return;
+        }
+
+        const auto columns = juce::jmax (1, waveArea.getWidth() / 2);
+        const auto height = juce::jmax (1, waveArea.getHeight());
+        const auto key = juce::String (docVersion) + "|" + juce::String (viewStart) + "|" + juce::String (fpp) + "|" + juce::String (columns) + "x"
+                         + juce::String (height) + "|" + juce::String (fftSize) + (logFrequency ? "l" : "n");
+        if (key != spectrumKey)
+        {
+            const auto from = (std::int64_t) viewStart;
+            const auto to = juce::jmin (doc.audio.frames(), (std::int64_t) std::ceil (viewStart + waveArea.getWidth() * fpp));
+            const auto spec = ae::spectrogram (doc.audio, { from, to }, columns, fftSize);
+            spectrumImage = juce::Image (juce::Image::RGB, columns, height, false);
+            const auto nyquist = doc.audio.sampleRate * 0.5;
+            const auto binHz = doc.audio.sampleRate / fftSize;
+            for (int y = 0; y < height; ++y)
+            {
+                const auto t = 1.0 - (double) y / juce::jmax (1, height - 1);
+                const auto hz = logFrequency ? 20.0 * std::pow (nyquist / 20.0, t) : t * nyquist;
+                const auto bin = juce::jlimit (0, spec.bins - 1, (int) std::lround (hz / binHz));
+                // the bins between this row and the next (log scale, high frequencies) are summarised by their max
+                const auto nextT = 1.0 - (double) (y + 1) / juce::jmax (1, height - 1);
+                const auto nextHz = logFrequency ? 20.0 * std::pow (nyquist / 20.0, nextT) : nextT * nyquist;
+                const auto binLow = juce::jlimit (0, spec.bins - 1, (int) std::lround (nextHz / binHz));
+                for (int c = 0; c < columns; ++c)
+                {
+                    auto db = spec.at (c, bin);
+                    for (int b = binLow; b < bin; ++b)
+                        db = std::max (db, spec.at (c, b));
+                    spectrumImage.setPixelAt (c, y, spectrumColour (db));
+                }
+            }
+            spectrumKey = key;
+        }
+        g.drawImage (spectrumImage, waveArea.toFloat());
+
+        juce::Graphics::ScopedSaveState save (g);
+        g.reduceClipRegion (waveArea);
+        if (! selection.empty())
+        {
+            g.setColour (juce::Colours::white.withAlpha (0.10f));
+            g.fillRect (juce::Rectangle<float>::leftTopRightBottom (frameToX ((double) selection.start), (float) waveArea.getY(),
+                                                                    frameToX ((double) selection.end), (float) waveArea.getBottom()));
+        }
+    }
+
+    void paintLevels (juce::Graphics& g)
+    {
+        using namespace theme;
+        g.setColour (colour::bg2);
+        g.fillRect (levelArea);
+        g.setFont (font (type::caption));
+        g.setColour (colour::textSecondary);
+        if (doc.audio.empty())
+            return;
+        if (spectrumView)
+        {
+            const auto nyquist = doc.audio.sampleRate * 0.5;
+            for (double hz : { 50.0, 100.0, 200.0, 500.0, 1000.0, 2000.0, 5000.0, 10000.0, 20000.0 })
+            {
+                if (hz >= nyquist)
+                    continue;
+                const auto t = logFrequency ? std::log (hz / 20.0) / std::log (nyquist / 20.0) : hz / nyquist;
+                const auto y = (float) waveArea.getBottom() - (float) t * (float) waveArea.getHeight();
+                g.drawText (hz >= 1000.0 ? juce::String (hz / 1000.0, 0) + "k" : juce::String ((int) hz), juce::Rectangle<float> (0.0f, y - 6.0f, 30.0f, 12.0f).withX ((float) levelArea.getX()),
+                            juce::Justification::centredRight);
+            }
+            return;
+        }
+        for (int lane = 0; lane < doc.audio.numChannels(); ++lane)
+        {
+            const auto r = laneBounds (lane);
+            const auto half = r.getHeight() * 0.5f - 2.0f;
+            auto label = [&] (float level, const juce::String& text) {
+                const auto y = r.getCentreY() - level * half;
+                g.drawText (text, juce::Rectangle<float> ((float) levelArea.getX(), y - 6.0f, 30.0f, 12.0f), juce::Justification::centredRight);
+            };
+            if (r.getHeight() > 70.0f)
+            {
+                label (0.5f, "-6");
+                label (-0.5f, "-6");
+            }
+            label (0.0f, doc.audio.numChannels() > 1 ? (lane == 0 ? "L" : "R") : "0");
+        }
+    }
+
+    void paintRuler (juce::Graphics& g)
+    {
+        using namespace theme;
+        g.setColour (colour::bg3);
+        g.fillRect (rulerArea);
+        if (doc.audio.empty())
+            return;
+
+        // a time step that leaves ~90 px between labels
+        const auto rate = doc.audio.sampleRate;
+        const auto secondsPerPixel = fpp / rate;
+        double step = 0.001;
+        for (double s : { 0.0001, 0.0002, 0.0005, 0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1.0, 2.0, 5.0, 10.0, 15.0, 30.0, 60.0, 120.0, 300.0, 600.0 })
+            if (s / secondsPerPixel >= 90.0)
+            {
+                step = s;
+                break;
+            }
+        const auto bars = timeFormat == TimeFormat::bars;
+        const auto beatSeconds = 60.0 / juce::jmax (1.0, engine.getSong().bpm);
+        if (bars)
+        {
+            step = beatSeconds;
+            while (step / secondsPerPixel < 90.0)
+                step *= 2.0;
+        }
+
+        g.setFont (font (type::caption));
+        const auto firstSecond = viewStart / rate;
+        const auto lastSecond = (viewStart + waveArea.getWidth() * fpp) / rate;
+        for (auto t = std::floor (firstSecond / step) * step; t <= lastSecond; t += step)
+        {
+            const auto x = frameToX (t * rate);
+            if (x < (float) rulerArea.getX())
+                continue;
+            g.setColour (colour::gridBar);
+            g.drawVerticalLine ((int) x, (float) rulerArea.getBottom() - 7.0f, (float) rulerArea.getBottom());
+            g.setColour (colour::textSecondary);
+            g.drawText (formatTime ((std::int64_t) std::llround (t * rate)), juce::Rectangle<float> (x + 3.0f, (float) rulerArea.getY(), 90.0f, 13.0f),
+                        juce::Justification::centredLeft);
+        }
+
+        // regions and markers: flags with their names; the loop: a bar along the bottom
+        for (const auto& m : doc.markers)
+        {
+            const auto x = frameToX ((double) m.start);
+            if (m.isRegion())
+            {
+                g.setColour (colour::warning.withAlpha (0.22f));
+                g.fillRect (juce::Rectangle<float>::leftTopRightBottom (x, (float) rulerArea.getY() + 12.0f, frameToX ((double) m.end), (float) rulerArea.getBottom() - 5.0f));
+            }
+            juce::Path flag;
+            flag.addTriangle (x, (float) rulerArea.getY() + 12.0f, x + 7.0f, (float) rulerArea.getY() + 15.5f, x, (float) rulerArea.getY() + 19.0f);
+            g.setColour (colour::warning);
+            g.fillPath (flag);
+            g.drawVerticalLine ((int) x, (float) rulerArea.getY() + 12.0f, (float) rulerArea.getBottom());
+            if (! m.name.empty())
+                g.drawText (juce::String::fromUTF8 (m.name.c_str()), juce::Rectangle<float> (x + 8.0f, (float) rulerArea.getY() + 12.0f, 120.0f, 8.0f),
+                            juce::Justification::centredLeft);
+        }
+        if (doc.hasLoop())
+        {
+            const auto a = frameToX ((double) doc.loopStart), b = frameToX ((double) doc.loopEnd);
+            g.setColour (colour::accent);
+            g.fillRect (juce::Rectangle<float>::leftTopRightBottom (a, (float) rulerArea.getBottom() - 4.0f, b, (float) rulerArea.getBottom()));
+            g.fillRect (juce::Rectangle<float> (a, (float) rulerArea.getBottom() - 8.0f, 2.0f, 8.0f));
+            g.fillRect (juce::Rectangle<float> (b - 2.0f, (float) rulerArea.getBottom() - 8.0f, 2.0f, 8.0f));
+        }
+    }
+
+    void paintOverlays (juce::Graphics& g)
+    {
+        using namespace theme;
+        if (doc.audio.empty())
+            return;
+        juce::Graphics::ScopedSaveState save (g);
+        g.reduceClipRegion (waveArea);
+
+        for (const auto& m : doc.markers)
+        {
+            g.setColour (colour::warning.withAlpha (0.55f));
+            g.drawVerticalLine ((int) frameToX ((double) m.start), (float) waveArea.getY(), (float) waveArea.getBottom());
+            if (m.isRegion())
+            {
+                g.setColour (colour::warning.withAlpha (0.3f));
+                g.drawVerticalLine ((int) frameToX ((double) m.end), (float) waveArea.getY(), (float) waveArea.getBottom());
+            }
+        }
+        if (doc.hasLoop())
+        {
+            g.setColour (colour::accent.withAlpha (0.6f));
+            const float dash[] = { 4.0f, 3.0f };
+            for (auto f : { doc.loopStart, doc.loopEnd })
+            {
+                const auto x = frameToX ((double) f);
+                g.drawDashedLine ({ x, (float) waveArea.getY(), x, (float) waveArea.getBottom() }, dash, 2);
+            }
+        }
+        if (! selection.empty())
+        {
+            g.setColour (colour::selection.withAlpha (0.8f));
+            g.drawVerticalLine ((int) frameToX ((double) selection.start), (float) waveArea.getY(), (float) waveArea.getBottom());
+            g.drawVerticalLine ((int) frameToX ((double) selection.end), (float) waveArea.getY(), (float) waveArea.getBottom());
+        }
+        else
+        {
+            g.setColour (colour::textPrimary.withAlpha (0.7f));
+            g.drawVerticalLine ((int) frameToX ((double) cursor), (float) waveArea.getY(), (float) waveArea.getBottom());
+        }
+        if (playing && playhead >= 0)
+        {
+            g.setColour (colour::playhead);
+            g.fillRect (juce::Rectangle<float> (frameToX ((double) playhead) - 0.5f, (float) waveArea.getY(), 2.0f, (float) waveArea.getHeight()));
+        }
+        if (recState != RecState::idle)
+        {
+            auto badge = juce::Rectangle<float> ((float) waveArea.getX() + 8.0f, (float) waveArea.getY() + 8.0f, recState == RecState::recording ? 70.0f : 150.0f, 20.0f);
+            g.setColour (colour::bg1.withAlpha (0.85f));
+            g.fillRoundedRectangle (badge, radius::md);
+            g.setColour (colour::record);
+            g.fillEllipse (badge.removeFromLeft (20.0f).reduced (5.0f));
+            g.setFont (font (type::small, true));
+            g.drawText (recState == RecState::recording ? juce::String ("REC") : tr ("Waiting..."), badge, juce::Justification::centredLeft);
+        }
+    }
+
+    void paintOverview (juce::Graphics& g)
+    {
+        using namespace theme;
+        g.setColour (colour::bg0);
+        g.fillRoundedRectangle (overviewArea.toFloat(), radius::sm);
+        if (doc.audio.empty() || summary == nullptr)
+            return;
+        const auto frames = (double) doc.audio.frames();
+        const auto perPixel = frames / juce::jmax (1, overviewArea.getWidth());
+        const auto centre = (float) overviewArea.getCentreY();
+        const auto half = overviewArea.getHeight() * 0.5f - 1.0f;
+        g.setColour (waveColour().withAlpha (0.55f));
+        for (int x = 0; x < overviewArea.getWidth(); ++x)
+        {
+            const auto p = summary->query (x * perPixel, (x + 1) * perPixel, -1);
+            if (! p.valid)
+                break;
+            const auto a = juce::jmin (1.0f, std::max (std::abs (p.lo), std::abs (p.hi)));
+            g.drawVerticalLine (overviewArea.getX() + x, centre - a * half, centre + a * half + 1.0f);
+        }
+        const auto x0 = (float) overviewArea.getX() + (float) (viewStart / frames) * overviewArea.getWidth();
+        const auto w = (float) ((double) waveArea.getWidth() * fpp / frames) * overviewArea.getWidth();
+        g.setColour (colour::accent.withAlpha (0.18f));
+        g.fillRect (juce::Rectangle<float> (x0, (float) overviewArea.getY(), juce::jmax (3.0f, w), (float) overviewArea.getHeight()));
+        g.setColour (colour::accent);
+        g.drawRect (juce::Rectangle<float> (x0, (float) overviewArea.getY(), juce::jmax (3.0f, w), (float) overviewArea.getHeight()), 1.0f);
+    }
+
+    void paintInfo (juce::Graphics& g)
+    {
+        using namespace theme;
+        g.setColour (colour::bg1);
+        g.fillRect (infoArea);
+        g.setColour (colour::border);
+        g.drawHorizontalLine (infoArea.getY(), 0.0f, (float) getWidth());
+
+        auto area = infoArea.reduced (10, 0);
+        g.setFont (font (type::small));
+        if (status.isNotEmpty())
+        {
+            g.setColour (statusIsError ? colour::meterClip : colour::textSecondary);
+            g.drawText (status, area.removeFromRight (juce::jmin (420, area.getWidth() / 2)), juce::Justification::centredRight);
+        }
+        if (doc.audio.empty())
+            return;
+
+        juce::StringArray parts;
+        parts.add (juce::String (juce::roundToInt (doc.audio.sampleRate)) + " Hz");
+        parts.add (doc.audio.numChannels() > 1 ? tr ("Stereo") : tr ("Mono"));
+        parts.add (tr ("Length") + " " + formatTime (doc.audio.frames()));
+        const auto r = ae::orAll (doc, selection);
+        if (! selection.empty())
+            parts.add (tr ("Selection") + " " + formatTime (selection.start) + " - " + formatTime (selection.end) + " (" + formatTime (selection.length()) + ")");
+        else
+            parts.add (tr ("Cursor") + " " + formatTime (cursor));
+        const auto p = ae::peak (doc.audio, r);
+        parts.add (tr ("Peak") + " " + (p > 0.0f ? juce::String (20.0f * std::log10 (p), 1) + " dB" : juce::String ("-inf dB")));
+        g.setColour (colour::textPrimary);
+        g.drawText (parts.joinIntoString ("   |   "), area, juce::Justification::centredLeft);
+    }
+
+    juce::String formatTime (std::int64_t frames) const
+    {
+        const auto rate = doc.audio.sampleRate;
+        switch (timeFormat)
+        {
+            case TimeFormat::samples: return juce::String (frames);
+            case TimeFormat::bars:
+            {
+                const auto beats = (double) frames / rate * engine.getSong().bpm / 60.0;
+                const auto perBar = juce::jmax (1, engine.getSong().beatsPerBar);
+                const auto bar = (int) (beats / perBar);
+                const auto beat = (int) beats - bar * perBar;
+                const auto tick = (int) ((beats - std::floor (beats)) * 96.0);
+                return juce::String (bar + 1) + ":" + juce::String (beat + 1) + ":" + juce::String (tick).paddedLeft ('0', 2);
+            }
+            case TimeFormat::automatic:
+                if (fpp < 1.0)
+                    return juce::String (frames);
+                [[fallthrough]];
+            case TimeFormat::seconds: return formatSeconds ((double) frames / rate);
+        }
+        return {};
+    }
+
+    // --- edits ----------------------------------------------------------------------------------------------
+    void commit (const juce::String& label)
+    {
+        history.commit (doc, label.toStdString());
+        modified = true;
+        documentChanged();
+    }
+
+    // runs `fn` on the selection (an empty selection: the whole audio, unless `needsSelection`)
+    void edit (const juce::String& label, const std::function<void (ae::Document&, ae::Range)>& fn, bool needsSelection = false)
+    {
+        if (doc.audio.empty() || recState != RecState::idle)
+            return;
+        if (needsSelection && selection.empty())
+        {
+            setStatus (tr ("Select a part first (drag over the waveform)"), false);
+            return;
+        }
+        stopPlayback();
+        const auto frames = doc.audio.frames();
+        fn (doc, selection);
+        // a length-changing edit of the selection keeps the edited part selected
+        if (! selection.empty())
+            selection.end = juce::jmax (selection.start, selection.end + (doc.audio.frames() - frames));
+        commit (label);
+    }
+
+    void documentChanged()
+    {
+        ++docVersion;
+        selection = ae::clamp (doc, selection);
+        cursor = juce::jlimit<std::int64_t> (0, doc.audio.frames(), cursor);
+        rebuildSummary();
+        clampView();
+        updateButtons();
+        updateTitle();
+        repaint();
+    }
+
+    void rebuildSummary()
+    {
+        if (doc.audio.empty())
+        {
+            summary.reset();
+            return;
+        }
+        const auto* l = doc.audio.channels[0].data();
+        const auto* r = doc.audio.numChannels() > 1 ? doc.audio.channels[1].data() : nullptr;
+        summary = std::make_shared<wave::Summary> (wave::analyse (l, r, (std::size_t) doc.audio.frames(), doc.audio.sampleRate));
+    }
+
+    void undo()
+    {
+        if (! history.canUndo() || recState != RecState::idle)
+            return;
+        stopPlayback();
+        doc = history.undo();
+        modified = true;
+        documentChanged();
+    }
+
+    void redo()
+    {
+        if (! history.canRedo() || recState != RecState::idle)
+            return;
+        stopPlayback();
+        doc = history.redo();
+        modified = true;
+        documentChanged();
+    }
+
+    void copySelection()
+    {
+        if (selection.empty())
+            return;
+        clipboard() = ae::copy (doc.audio, selection);
+        setStatus (tr ("Copied {0}", { formatTime (selection.length()) }), false);
+    }
+
+    void cutSelection()
+    {
+        if (selection.empty())
+            return;
+        clipboard() = ae::copy (doc.audio, selection);
+        const auto at = selection.start;
+        edit (tr ("Cut"), [] (ae::Document& d, ae::Range r) { ae::erase (d, r); }, true);
+        selection = {};
+        cursor = at;
+        repaint();
+    }
+
+    void trimSelection()
+    {
+        if (selection.empty())
+            return;
+        edit (tr ("Trim"), [] (ae::Document& d, ae::Range r) { ae::trim (d, r); }, true);
+        selection = {};
+        cursor = 0;
+        zoomToFit();
+    }
+
+    void deleteSelection()
+    {
+        if (selection.empty())
+            return;
+        const auto at = selection.start;
+        edit (tr ("Delete"), [] (ae::Document& d, ae::Range r) { ae::erase (d, r); }, true);
+        selection = {};
+        cursor = at;
+        repaint();
+    }
+
+    // insert at the cursor, replace the selection, or (mix) sum at the cursor / selection start
+    void paste (bool mix)
+    {
+        const auto& clip = clipboard();
+        if (clip.empty() || recState != RecState::idle)
+            return;
+        stopPlayback();
+        const auto wasEmpty = doc.audio.empty();
+        const auto at = selection.empty() ? cursor : selection.start;
+        const auto length = wasEmpty ? clip.frames() : ae::conform (clip, doc.audio.numChannels(), doc.audio.sampleRate).frames();
+        if (mix)
+            ae::pasteMix (doc, at, clip);
+        else if (! selection.empty())
+            ae::pasteReplace (doc, selection, clip);
+        else
+            ae::insert (doc, at, clip);
+        selection = { at, at + length };
+        commit (mix ? tr ("Paste mix") : tr ("Paste"));
+        if (wasEmpty)
+            zoomToFit();
+    }
+
+    void fade (bool in)
+    {
+        const auto curve = fadeCurve;
+        edit (in ? tr ("Fade in") : tr ("Fade out"), [in, curve] (ae::Document& d, ae::Range r) { in ? ae::fadeIn (d, r, curve) : ae::fadeOut (d, r, curve); });
+    }
+
+    void addMarkerAtCursor()
+    {
+        if (doc.audio.empty())
+            return;
+        ae::addMarker (doc, selection.empty() ? cursor : selection.start, {});
+        commit (tr ("Add marker"));
+    }
+
+    void addRegionFromSelection()
+    {
+        if (selection.empty())
+        {
+            setStatus (tr ("Select a part first (drag over the waveform)"), false);
+            return;
+        }
+        ae::addRegion (doc, selection, tr ("Region").toStdString() + " " + std::to_string (std::count_if (doc.markers.begin(), doc.markers.end(), [] (const ae::Marker& m) { return m.isRegion(); }) + 1));
+        commit (tr ("Add region"));
+    }
+
+    void setLoopFromSelection()
+    {
+        if (selection.empty())
+        {
+            setStatus (tr ("Select a part first (drag over the waveform)"), false);
+            return;
+        }
+        ae::setLoop (doc, selection);
+        commit (tr ("Set loop"));
+    }
+
+    // --- tool windows ---------------------------------------------------------------------------------------
+    // plays `fn` applied to a copy of the selection (Preview)
+    void previewProcessed (const std::function<void (ae::Document&)>& fn)
+    {
+        ae::Document part;
+        part.audio = ae::copy (doc.audio, ae::orAll (doc, selection));
+        fn (part);
+        playAudio (part.audio, 0, false);
+    }
+
+    void openTool (std::unique_ptr<ToolPanel> panel, const juce::String& title)
+    {
+        openToolWindow (std::move (panel), title, "audioeditor-tool");
+    }
+
+    void showAmp()
+    {
+        if (doc.audio.empty())
+            return;
+        juce::Component::SafePointer<AudioEditor> self (this);
+        auto run = [] (ae::Document& d, ae::Range r, const std::vector<double>& v) { ae::amp (d, r, juce::Decibels::decibelsToGain ((float) v[0], -100.0f), (float) v[1] / 100.0f); };
+        openTool (std::make_unique<ToolPanel> (std::vector<ToolPanel::Param> { { tr ("Volume"), -36.0, 24.0, 0.0, 0.1, " dB" }, { tr ("Pan"), -100.0, 100.0, 0.0, 1.0, "%" } },
+                                               juce::StringArray {}, juce::String {}, 0,
+                                               [self, run] (const std::vector<double>& v, int) {
+                                                   if (self != nullptr)
+                                                       self->edit (tr ("Amp"), [run, v] (ae::Document& d, ae::Range r) { run (d, r, v); });
+                                               },
+                                               [self, run] (const std::vector<double>& v, int) {
+                                                   if (self != nullptr)
+                                                       self->previewProcessed ([run, v] (ae::Document& d) { run (d, {}, v); });
+                                               }),
+                  tr ("Amp"));
+    }
+
+    void showStretch()
+    {
+        if (doc.audio.empty())
+            return;
+        juce::Component::SafePointer<AudioEditor> self (this);
+        // v: time (%), pitch (semitones), fine (cents); choice 0 = stretch (pitch kept), 1 = resample (speed)
+        auto run = [] (ae::Document& d, ae::Range r, const std::vector<double>& v, int method) {
+            const auto ratio = v[0] / 100.0;
+            const auto semitones = v[1] + v[2] / 100.0;
+            if (method == 1)
+                ae::changeSpeed (d, r, ratio * std::pow (2.0, -semitones / 12.0));
+            else
+            {
+                const auto start = ae::orAll (d, r).start;
+                const auto length = ae::orAll (d, r).length();
+                ae::timeStretch (d, r, ratio);
+                ae::pitchShift (d, { start, start + (std::int64_t) std::llround ((double) length * ratio) }, semitones);
+            }
+        };
+        openTool (std::make_unique<ToolPanel> (
+                      std::vector<ToolPanel::Param> { { tr ("Length"), 25.0, 400.0, 100.0, 0.1, "%" },
+                                                      { tr ("Pitch"), -24.0, 24.0, 0.0, 1.0, " st" },
+                                                      { tr ("Fine"), -100.0, 100.0, 0.0, 1.0, " ct" } },
+                      juce::StringArray { tr ("Stretch (keep pitch and length apart)"), tr ("Resample (pitch follows the speed)") }, tr ("Method"), 0,
+                      [self, run] (const std::vector<double>& v, int m) {
+                          if (self != nullptr)
+                              self->edit (tr ("Time stretch / pitch shift"), [run, v, m] (ae::Document& d, ae::Range r) { run (d, r, v, m); });
+                      },
+                      [self, run] (const std::vector<double>& v, int m) {
+                          if (self != nullptr)
+                              self->previewProcessed ([run, v, m] (ae::Document& d) { run (d, {}, v, m); });
+                      }),
+                  tr ("Time stretch / pitch shift"));
+    }
+
+    void showResample()
+    {
+        if (doc.audio.empty())
+            return;
+        static const int rates[] = { 8000, 11025, 16000, 22050, 32000, 44100, 48000, 88200, 96000, 192000 };
+        juce::StringArray names;
+        int current = 5;
+        for (int i = 0; i < 10; ++i)
+        {
+            names.add (juce::String (rates[i]) + " Hz");
+            if (std::abs (rates[i] - doc.audio.sampleRate) < 1.0)
+                current = i;
+        }
+        juce::Component::SafePointer<AudioEditor> self (this);
+        openTool (std::make_unique<ToolPanel> (std::vector<ToolPanel::Param> {}, names, tr ("Sample rate"), current,
+                                               [self] (const std::vector<double>&, int i) {
+                                                   if (self != nullptr && i >= 0)
+                                                   {
+                                                       self->selection = {};
+                                                       self->edit (tr ("Resample"), [i] (ae::Document& d, ae::Range) { ae::resample (d, rates[i]); });
+                                                       self->zoomToFit();
+                                                   }
+                                               },
+                                               nullptr),
+                  tr ("Resample"));
+    }
+
+    void showInsertSilence()
+    {
+        if (doc.audio.empty())
+            return;
+        juce::Component::SafePointer<AudioEditor> self (this);
+        openTool (std::make_unique<ToolPanel> (std::vector<ToolPanel::Param> { { tr ("Length"), 1.0, 10000.0, 500.0, 1.0, " ms" } }, juce::StringArray {},
+                                               juce::String {}, 0,
+                                               [self] (const std::vector<double>& v, int) {
+                                                   if (self == nullptr)
+                                                       return;
+                                                   const auto frames = (std::int64_t) std::llround (v[0] * 0.001 * self->doc.audio.sampleRate);
+                                                   const auto at = self->cursor;
+                                                   ae::insertSilence (self->doc, at, frames);
+                                                   self->selection = { at, at + frames };
+                                                   self->commit (tr ("Insert silence"));
+                                               },
+                                               nullptr),
+                  tr ("Insert silence"));
+    }
+
+    void showNormalizeTo()
+    {
+        if (doc.audio.empty())
+            return;
+        juce::Component::SafePointer<AudioEditor> self (this);
+        openTool (std::make_unique<ToolPanel> (std::vector<ToolPanel::Param> { { tr ("Peak"), -24.0, 0.0, -0.3, 0.1, " dB" } }, juce::StringArray {}, juce::String {}, 0,
+                                               [self] (const std::vector<double>& v, int) {
+                                                   if (self != nullptr)
+                                                       self->edit (tr ("Normalize"), [v] (ae::Document& d, ae::Range r) { ae::normalize (d, r, (float) v[0]); });
+                                               },
+                                               nullptr),
+                  tr ("Normalize"));
+    }
+
+    void autoSlice (float sensitivity)
+    {
+        if (doc.audio.empty())
+            return;
+        const auto r = ae::orAll (doc, selection);
+        auto part = ae::copy (doc.audio, r);
+        int added = 0;
+        for (auto f : ae::detectOnsets (part, sensitivity))
+            if (f > 0 || r.start > 0)
+            {
+                ae::addMarker (doc, r.start + f, {});
+                ++added;
+            }
+        if (added > 0)
+            commit (tr ("Auto-slice"));
+        setStatus (tr ("{0} markers added", { juce::String (added) }), false);
+    }
+
+    void gridSlice (double beats)
+    {
+        if (doc.audio.empty())
+            return;
+        const auto step = beats * 60.0 / juce::jmax (1.0, engine.getSong().bpm) * doc.audio.sampleRate;
+        const auto r = ae::orAll (doc, selection);
+        int added = 0;
+        for (auto f = (double) r.start + step; f < (double) r.end - 1.0; f += step, ++added)
+            ae::addMarker (doc, (std::int64_t) std::llround (f), {});
+        if (added > 0)
+            commit (tr ("Grid slice"));
+    }
+
+    // --- playback -------------------------------------------------------------------------------------------
+    void playAudio (const ae::Audio& audio, std::int64_t from, bool loop)
+    {
+        if (audio.empty())
+            return;
+        auto data = std::make_shared<SampleData>();
+        data->sampleRate = audio.sampleRate;
+        data->left = audio.channels[0];
+        if (audio.numChannels() > 1)
+            data->right = audio.channels[1];
+        engine.previewSample (data, loop, 1.0f);
+        playing = true;
+        playFrom = from;
+        playStartedMs = juce::Time::getMillisecondCounterHiRes();
+        playhead = from;
+        playButton.setIcon (Icon::pause);
+    }
+
+    void startPlayback()
+    {
+        if (doc.audio.empty() || recState != RecState::idle)
+            return;
+        auto r = selection;
+        if (r.empty() && loopPlay && doc.hasLoop())
+            r = { doc.loopStart, doc.loopEnd };
+        if (r.empty())
+            r = { cursor, doc.audio.frames() };
+        if (r.length() < 2)
+            r = { 0, doc.audio.frames() };
+        playAudio (ae::copy (doc.audio, r), r.start, loopPlay);
+    }
+
+    void stopPlayback()
+    {
+        if (! playing)
+            return;
+        engine.previewSample (nullptr);
+        playing = false;
+        playhead = -1;
+        playButton.setIcon (Icon::play);
+        repaint();
+    }
+
+    // --- recording ------------------------------------------------------------------------------------------
+    void toggleRecording()
+    {
+        if (recState == RecState::idle)
+            startRecording();
+        else
+            stopRecording();
+    }
+
+    void startRecording()
+    {
+        stopPlayback();
+        auto* device = engine.getDeviceManager().getCurrentAudioDevice();
+        if (device == nullptr)
+        {
+            setStatus (tr ("No audio device is open (Settings > Audio)"), true);
+            return;
+        }
+        if (recordSource == AudioCapture::input)
+        {
+            if (! engine.hasAudioInput())
+                if (const auto result = engine.openAudioInput(); result.issue != AudioEngine::InputIssue::none)
+                {
+                    setStatus (result.detail.isNotEmpty() ? result.detail : tr ("No active audio input (Settings > Audio)"), true);
+                    return;
+                }
+            device = engine.getDeviceManager().getCurrentAudioDevice();
+            if (device == nullptr || device->getActiveInputChannels().countNumberOfSetBits() == 0)
+            {
+                setStatus (tr ("No active audio input (Settings > Audio)"), true);
+                return;
+            }
+        }
+        recordRate = device->getCurrentSampleRate();
+        recordStereo = recordSource != AudioCapture::input || device->getActiveInputChannels().countNumberOfSetBits() > 1;
+        recL.clear();
+        recR.clear();
+        beforeRecording = doc;
+        recordAt = selection.empty() ? cursor : selection.start;
+        if (doc.audio.empty())
+            recordAt = 0;
+        engine.getMeters().capture.setSource (recordSource);
+        recState = recordMode == RecordMode::now ? RecState::recording : RecState::waiting;
+        recordButton.setToggleState (true, juce::dontSendNotification);
+        if (recordMode == RecordMode::onPlay && ! engine.getTransport().playing.load())
+            setStatus (tr ("Recording starts when the song plays"), false);
+        else if (recordMode == RecordMode::onInput)
+            setStatus (tr ("Recording starts when the input is heard"), false);
+        else
+            setStatus (tr ("Recording from {0}", { sourceName (recordSource) }), false);
+        repaint();
+    }
+
+    void drainRecording()
+    {
+        std::vector<float> l, r;
+        engine.getMeters().capture.pull (l, r);
+        if (l.empty())
+            return;
+        std::size_t from = 0;
+        if (recState == RecState::waiting)
+        {
+            if (recordMode == RecordMode::onPlay)
+            {
+                if (! engine.getTransport().playing.load())
+                    return;
+            }
+            else
+            {
+                while (from < l.size() && std::abs (l[from]) < inputThreshold && std::abs (r[from]) < inputThreshold)
+                    ++from;
+                if (from == l.size())
+                    return;
+            }
+            recState = RecState::recording;
+            setStatus (tr ("Recording from {0}", { sourceName (recordSource) }), false);
+        }
+        recL.insert (recL.end(), l.begin() + (std::ptrdiff_t) from, l.end());
+        recR.insert (recR.end(), r.begin() + (std::ptrdiff_t) from, r.end());
+        if (recordMode == RecordMode::onPlay && ! engine.getTransport().playing.load())
+            stopRecording();
+    }
+
+    ae::Audio recordedAudio() const
+    {
+        ae::Audio a;
+        a.sampleRate = recordRate;
+        a.channels.push_back (recL);
+        if (recordStereo)
+            a.channels.push_back (recR);
+        return a;
+    }
+
+    // the document = what it was, with the recording inserted at the cursor
+    void showRecording()
+    {
+        doc = beforeRecording;
+        const auto rec = recordedAudio();
+        if (doc.audio.empty())
+        {
+            doc.audio = rec;
+            doc.title = tr ("Recording").toStdString();
+        }
+        else
+            ae::insert (doc, recordAt, rec);
+        const auto length = doc.audio.frames() - beforeRecording.audio.frames();
+        selection = { recordAt, recordAt + length };
+        cursor = recordAt + length;
+        rebuildSummary();
+        ++docVersion;
+        // follow the end
+        const auto visible = (double) waveArea.getWidth() * fpp;
+        if (beforeRecording.audio.empty() || (double) cursor > viewStart + visible)
+        {
+            if (beforeRecording.audio.empty() && (double) cursor > visible)
+                fpp = juce::jmax (fpp, (double) cursor / juce::jmax (1, waveArea.getWidth()) * 1.25);
+            viewStart = juce::jmax (0.0, (double) cursor - visible * 0.8);
+        }
+        clampView();
+        repaint();
+    }
+
+    void stopRecording()
+    {
+        if (recState == RecState::idle)
+            return;
+        drainRecording();
+        engine.getMeters().capture.setSource (AudioCapture::off);
+        const auto got = ! recL.empty();
+        const auto dropped = engine.getMeters().capture.droppedFrames();
+        recState = RecState::idle;
+        recordButton.setToggleState (false, juce::dontSendNotification);
+        if (got)
+        {
+            showRecording();
+            commit (tr ("Record"));
+            setStatus (tr ("Recorded {0}", { formatTime ((std::int64_t) recL.size()) }) + (dropped > 0 ? "  (" + tr ("{0} frames lost", { juce::String (dropped) }) + ")" : ""), dropped > 0);
+        }
+        else
+        {
+            doc = beforeRecording;
+            documentChanged();
+            setStatus (tr ("Nothing was recorded"), false);
+        }
+        recL.clear();
+        recR.clear();
+    }
+
+    juce::String sourceName (int s) const
+    {
+        if (s == AudioCapture::input)
+            return tr ("the audio input");
+        if (s == 0)
+            return tr ("the Master");
+        const auto& mixer = engine.getSong().mixer;
+        if (juce::isPositiveAndBelow (s, (int) mixer.size()) && ! mixer[(std::size_t) s].name.empty())
+            return tr ("insert {0}", { juce::String (s) }) + " (" + juce::String::fromUTF8 (mixer[(std::size_t) s].name.c_str()) + ")";
+        return tr ("insert {0}", { juce::String (s) });
+    }
+
+public:
+    void recordInputWithSong()
+    {
+        recordSource = AudioCapture::input;
+        recordMode = RecordMode::onPlay;
+        startRecording();
+    }
+
+    void setRecordSource (int s)
+    {
+        recordSource = s;
+        setStatus (tr ("Press Record to capture {0}", { sourceName (s) }), false);
+    }
+
+private:
+    // --- output ---------------------------------------------------------------------------------------------
+    juce::String safeTitle() const
+    {
+        auto t = juce::File::createLegalFileName (juce::String::fromUTF8 (doc.title.c_str())).trim();
+        return t.isEmpty() ? juce::String ("Audio") : t;
+    }
+
+    // the edited audio as a new WAV in Music\LYNX\Edits (a new name each time: the Sampler and the waveform caches
+    // key on the path, so nothing stale is ever shown)
+    juce::File writeEditFile()
+    {
+        const auto folder = juce::File::getSpecialLocation (juce::File::userMusicDirectory).getChildFile ("LYNX/Edits");
+        folder.createDirectory();
+        const auto file = folder.getNonexistentChildFile (safeTitle() + " (edit)", ".wav");
+        if (! writeWav (file, bits))
+            return {};
+        return file;
+    }
+
+    bool writeWav (const juce::File& file, ae::WavFormat format)
+    {
+        const auto bytes = ae::encodeWav (doc, format);
+        if (! file.replaceWithData (bytes.data(), bytes.size()))
+        {
+            setStatus (tr ("Could not write {0}", { file.getFullPathName() }), true);
+            return false;
+        }
+        engine.getSampleLibrary().forget (file.getFullPathName());
+        return true;
+    }
+
+    void saveAs (ae::WavFormat format)
+    {
+        if (doc.audio.empty())
+            return;
+        auto start = lastFile.existsAsFile() ? lastFile.getSiblingFile (safeTitle() + ".wav")
+                                             : juce::File::getSpecialLocation (juce::File::userMusicDirectory).getChildFile (safeTitle() + ".wav");
+        chooser = std::make_unique<juce::FileChooser> (tr ("Save as WAV"), start, "*.wav");
+        juce::Component::SafePointer<AudioEditor> self (this);
+        chooser->launchAsync (juce::FileBrowserComponent::saveMode | juce::FileBrowserComponent::canSelectFiles | juce::FileBrowserComponent::warnAboutOverwriting,
+                              [self, format] (const juce::FileChooser& fc) {
+                                  if (self == nullptr || fc.getResult() == juce::File {})
+                                      return;
+                                  const auto file = fc.getResult().withFileExtension ("wav");
+                                  if (self->writeWav (file, format))
+                                  {
+                                      self->bits = format;
+                                      self->lastFile = file;
+                                      self->modified = false;
+                                      self->setStatus (tr ("Saved {0}", { file.getFileName() }), false);
+                                      self->updateTitle();
+                                  }
+                              });
+    }
+
+    void openFileDialog()
+    {
+        chooser = std::make_unique<juce::FileChooser> (tr ("Open audio file"), lastFile, engine.getSampleLibrary().wildcard());
+        juce::Component::SafePointer<AudioEditor> self (this);
+        chooser->launchAsync (juce::FileBrowserComponent::openMode | juce::FileBrowserComponent::canSelectFiles, [self] (const juce::FileChooser& fc) {
+            if (self == nullptr || ! fc.getResult().existsAsFile())
+                return;
+            self->stopPlayback();
+            self->source = { Source::Kind::file, -1, fc.getResult().getFullPathName() };
+            self->loadFile (fc.getResult());
+        });
+    }
+
+    // each region (or each stretch between markers when there are no regions) as its own WAV in a folder
+    void exportRegions()
+    {
+        std::vector<ae::Range> parts;
+        std::vector<std::string> names;
+        for (const auto& m : doc.markers)
+            if (m.isRegion())
+            {
+                parts.push_back ({ m.start, m.end });
+                names.push_back (m.name);
+            }
+        if (parts.empty())
+        {
+            std::int64_t from = 0;
+            for (const auto& m : doc.markers)
+                if (m.start > from)
+                {
+                    parts.push_back ({ from, m.start });
+                    names.push_back ({});
+                    from = m.start;
+                }
+            if (from > 0 && from < doc.audio.frames())
+            {
+                parts.push_back ({ from, doc.audio.frames() });
+                names.push_back ({});
+            }
+        }
+        if (parts.empty())
+        {
+            setStatus (tr ("No regions or markers to export"), true);
+            return;
+        }
+        chooser = std::make_unique<juce::FileChooser> (tr ("Export regions to a folder"), juce::File::getSpecialLocation (juce::File::userMusicDirectory));
+        juce::Component::SafePointer<AudioEditor> self (this);
+        chooser->launchAsync (juce::FileBrowserComponent::openMode | juce::FileBrowserComponent::canSelectDirectories,
+                              [self, parts, names] (const juce::FileChooser& fc) {
+                                  if (self == nullptr || ! fc.getResult().isDirectory())
+                                      return;
+                                  int written = 0;
+                                  for (std::size_t i = 0; i < parts.size(); ++i)
+                                  {
+                                      ae::Document part;
+                                      part.audio = ae::copy (self->doc.audio, parts[i]);
+                                      const auto name = names[i].empty() ? self->safeTitle() + " " + juce::String (i + 1).paddedLeft ('0', 2)
+                                                                         : juce::File::createLegalFileName (juce::String::fromUTF8 (names[i].c_str()));
+                                      const auto bytes = ae::encodeWav (part, self->bits);
+                                      written += fc.getResult().getNonexistentChildFile (name, ".wav").replaceWithData (bytes.data(), bytes.size()) ? 1 : 0;
+                                  }
+                                  self->setStatus (tr ("{0} files written", { juce::String (written) }), false);
+                              });
+    }
+
+    void sendToPlaylist()
+    {
+        if (doc.audio.empty())
+            return;
+        const auto file = writeEditFile();
+        if (file == juce::File {})
+            return;
+        const auto& song = engine.getSong();
+        const auto length = juce::jmax<std::int64_t> (ppq / 4, (std::int64_t) (doc.audio.seconds() * song.bpm / 60.0 * ppq));
+        const auto start = (std::int64_t) (engine.getTransport().positionTicks.load() / ppq) * ppq; // at the beat of the song position
+        // the first track with room for it
+        int track = 0;
+        for (;; ++track)
+        {
+            const auto busy = std::any_of (song.playlist.begin(), song.playlist.end(),
+                                           [&] (const Clip& c) { return c.track == track && c.start < start + length && c.end() > start; });
+            if (! busy)
+                break;
+        }
+        const auto path = file.getFullPathName().toStdString();
+        const auto name = safeTitle().toStdString();
+        engine.editSong ([=] (Song& s) {
+            ChannelDef c;
+            c.name = name;
+            c.instrument = InstrumentKind::audioClip;
+            c.samplePath = path;
+            c.mixerTrack = s.nextFreeInsert();
+            s.channels.push_back (c);
+            Clip clip;
+            clip.kind = ClipKind::audio;
+            clip.channel = (int) s.channels.size() - 1;
+            clip.track = track;
+            clip.start = start;
+            clip.length = length;
+            s.playlist.push_back (clip);
+            s.mode = PlayMode::song;
+        });
+        modified = false;
+        setStatus (tr ("Sent to the Playlist (track {0})", { juce::String (track + 1) }), false);
+        updateTitle();
+    }
+
+    void sendToNewSampler()
+    {
+        if (doc.audio.empty())
+            return;
+        const auto file = writeEditFile();
+        if (file == juce::File {})
+            return;
+        const auto path = file.getFullPathName().toStdString();
+        const auto name = safeTitle().toStdString();
+        int index = 0;
+        engine.editSong ([&] (Song& s) {
+            ChannelDef c;
+            c.name = name;
+            c.instrument = InstrumentKind::sampler;
+            c.samplePath = path;
+            c.mixerTrack = s.nextFreeInsert();
+            s.channels.push_back (c);
+            index = (int) s.channels.size() - 1;
+        });
+        engine.setSelectedChannel (index);
+        modified = false;
+        setStatus (tr ("Sent to a new Sampler channel"), false);
+        updateTitle();
+    }
+
+    bool sourceChannelValid() const
+    {
+        const auto& channels = engine.getSong().channels;
+        return source.kind == Source::Kind::channel && juce::isPositiveAndBelow (source.index, (int) channels.size())
+               && juce::String::fromUTF8 (channels[(std::size_t) source.index].samplePath.c_str()) == source.path;
+    }
+
+    void sendBackToChannel()
+    {
+        if (doc.audio.empty() || ! sourceChannelValid())
+            return;
+        const auto file = writeEditFile();
+        if (file == juce::File {})
+            return;
+        const auto path = file.getFullPathName().toStdString();
+        const auto ch = source.index;
+        engine.editSong ([=] (Song& s) { s.channels[(std::size_t) ch].samplePath = path; });
+        source.path = file.getFullPathName();
+        modified = false;
+        setStatus (tr ("The channel now plays the edited audio"), false);
+        updateTitle();
+    }
+
+    // --- menus ----------------------------------------------------------------------------------------------
+    juce::PopupMenu historyMenu()
+    {
+        juce::PopupMenu menu;
+        menu.addSectionHeader (tr ("Undo history"));
+        for (int i = history.size() - 1; i >= 0; --i)
+            menu.addItem (juce::String::fromUTF8 (history.label (i).c_str()), true, i == history.getPosition(), [this, i] {
+                if (recState != RecState::idle)
+                    return;
+                stopPlayback();
+                doc = history.jumpTo (i);
+                modified = true;
+                documentChanged();
+            });
+        return menu;
+    }
+
+    juce::PopupMenu curveMenu()
+    {
+        juce::PopupMenu menu;
+        const std::pair<ae::Curve, const char*> curves[] = { { ae::Curve::smooth, TR_NOOP ("Smooth (S-curve)") },
+                                                             { ae::Curve::linear, TR_NOOP ("Linear") },
+                                                             { ae::Curve::exponential, TR_NOOP ("Slow start") },
+                                                             { ae::Curve::logarithmic, TR_NOOP ("Fast start") } };
+        menu.addSectionHeader (tr ("Fade curve"));
+        for (const auto& [curve, name] : curves)
+            menu.addItem (tr (name), true, fadeCurve == curve, [this, c = curve] { fadeCurve = c; });
+        return menu;
+    }
+
+    juce::PopupMenu recordMenu()
+    {
+        juce::PopupMenu menu;
+        menu.addSectionHeader (tr ("Record from"));
+        menu.addItem (tr ("Audio input"), true, recordSource == AudioCapture::input, [this] { recordSource = AudioCapture::input; });
+        menu.addItem (tr ("Master output"), true, recordSource == 0, [this] { recordSource = 0; });
+        juce::PopupMenu inserts;
+        const auto& mixer = engine.getSong().mixer;
+        for (int t = 1; t < (int) mixer.size(); ++t)
+            inserts.addItem (sourceName (t), true, recordSource == t, [this, t] { recordSource = t; });
+        menu.addSubMenu (tr ("Mixer insert"), inserts, inserts.getNumItems() > 0, nullptr, recordSource > 0);
+        menu.addSectionHeader (tr ("Start"));
+        menu.addItem (tr ("Immediately"), true, recordMode == RecordMode::now, [this] { recordMode = RecordMode::now; });
+        menu.addItem (tr ("When the input is heard"), true, recordMode == RecordMode::onInput, [this] { recordMode = RecordMode::onInput; });
+        menu.addItem (tr ("When the song plays (stops with it)"), true, recordMode == RecordMode::onPlay, [this] { recordMode = RecordMode::onPlay; });
+        return menu;
+    }
+
+    juce::PopupMenu sendMenu()
+    {
+        juce::PopupMenu menu;
+        const auto has = ! doc.audio.empty();
+        menu.addItem (tr ("Send to the Playlist as an audio clip"), has, false, [this] { sendToPlaylist(); });
+        menu.addItem (tr ("Send to a new Sampler channel"), has, false, [this] { sendToNewSampler(); });
+        if (source.kind == Source::Kind::channel)
+        {
+            const auto& channels = engine.getSong().channels;
+            const auto name = juce::isPositiveAndBelow (source.index, (int) channels.size())
+                                  ? juce::String::fromUTF8 (channels[(std::size_t) source.index].name.c_str())
+                                  : juce::String();
+            menu.addItem (tr ("Replace the sample of \"{0}\"", { name }), has && sourceChannelValid(), false, [this] { sendBackToChannel(); });
+        }
+        return menu;
+    }
+
+    juce::PopupMenu markerMenu (int index)
+    {
+        juce::PopupMenu menu;
+        const auto m = doc.markers[(std::size_t) index];
+        menu.addSectionHeader (m.name.empty() ? (m.isRegion() ? tr ("Region") : tr ("Marker")) : juce::String::fromUTF8 (m.name.c_str()));
+        menu.addItem (tr ("Rename..."), [this, index] { renameMarker (index); });
+        if (m.isRegion())
+        {
+            menu.addItem (tr ("Select"), [this, m] {
+                selection = { m.start, m.end };
+                repaint();
+            });
+            menu.addItem (tr ("Zoom on"), [this, m] { zoomTo ({ m.start, m.end }); });
+            menu.addItem (tr ("Set loop"), [this, m] {
+                ae::setLoop (doc, { m.start, m.end });
+                commit (tr ("Set loop"));
+            });
+            menu.addItem (tr ("Turn into marker"), [this, index] {
+                doc.markers[(std::size_t) index].end = doc.markers[(std::size_t) index].start;
+                commit (tr ("Turn into marker"));
+            });
+        }
+        menu.addItem (tr ("Delete"), [this, index] {
+            doc.markers.erase (doc.markers.begin() + index);
+            commit (tr ("Delete marker"));
+        });
+        return menu;
+    }
+
+    void renameMarker (int index)
+    {
+        auto* box = new juce::AlertWindow (tr ("Rename"), {}, juce::MessageBoxIconType::NoIcon, this);
+        box->addTextEditor ("name", juce::String::fromUTF8 (doc.markers[(std::size_t) index].name.c_str()));
+        box->addButton (tr ("Accept"), 1, juce::KeyPress (juce::KeyPress::returnKey));
+        box->addButton (tr ("Cancel"), 0, juce::KeyPress (juce::KeyPress::escapeKey));
+        juce::Component::SafePointer<AudioEditor> self (this);
+        box->enterModalState (true, juce::ModalCallbackFunction::create ([self, box, index] (int result) {
+                                  if (self != nullptr && result == 1 && juce::isPositiveAndBelow (index, (int) self->doc.markers.size()))
+                                  {
+                                      self->doc.markers[(std::size_t) index].name = box->getTextEditorContents ("name").toStdString();
+                                      self->commit (tr ("Rename marker"));
+                                  }
+                              }),
+                              true);
+    }
+
+    void setStatus (const juce::String& text, bool error)
+    {
+        status = text;
+        statusIsError = error;
+        repaint (infoArea);
+    }
+
+    void updateButtons()
+    {
+        undoButton.setEnabled (history.canUndo());
+        redoButton.setEnabled (history.canRedo());
+        const auto has = ! doc.audio.empty();
+        for (auto* b : quickButtons)
+            b->setEnabled (has);
+        playButton.setEnabled (has);
+        saveButton.setEnabled (has);
+    }
+
+    void updateTitle()
+    {
+        if (auto* window = findParentComponentOfClass<juce::DocumentWindow>())
+            window->setName (tr ("Audio editor") + (doc.title.empty() ? juce::String() : " - " + juce::String::fromUTF8 (doc.title.c_str())) + (modified ? " *" : ""));
+    }
+
+    void parentHierarchyChanged() override { updateTitle(); }
+
+    void timerCallback() override
+    {
+        if (recState != RecState::idle)
+        {
+            drainRecording();
+            if (recState == RecState::recording && ++recordTicks % 6 == 0) // the view follows ~5 times a second
+                showRecording();
+            if (recState == RecState::idle)
+                return;
+            repaint();
+        }
+        if (playing)
+        {
+            const auto pos = engine.getPreviewPosition();
+            if (pos < 0.0)
+            {
+                if (juce::Time::getMillisecondCounterHiRes() - playStartedMs > 250.0)
+                    stopPlayback();
+                return;
+            }
+            const auto before = playhead;
+            playhead = playFrom + (std::int64_t) pos;
+            // page along with the playhead
+            if ((double) playhead > viewStart + (double) waveArea.getWidth() * fpp && fpp < maxFpp())
+            {
+                viewStart = (double) playhead;
+                clampView();
+                repaint();
+            }
+            else if (before != playhead)
+                repaint (waveArea.withTrimmedTop (-2));
+        }
+    }
+
+    AudioEngine& engine;
+    Source source;
+    ae::Document doc;
+    ae::History history;
+    std::shared_ptr<wave::Summary> summary;
+    int docVersion = 0;
+    bool modified = false;
+    juce::File lastFile;
+    ae::WavFormat bits = ae::WavFormat::int24;
+
+    ae::Range selection;
+    std::int64_t cursor = 0, anchor = 0;
+    double viewStart = 0.0, fpp = 1.0;
+    Drag drag = Drag::none;
+    int dragMarkerIndex = -1;
+
+    bool spectrumView = false, logFrequency = true;
+    int fftSize = 2048;
+    juce::Image spectrumImage;
+    juce::String spectrumKey;
+    TimeFormat timeFormat = TimeFormat::automatic;
+    bool snapZero = false;
+    ae::Curve fadeCurve = ae::Curve::smooth;
+
+    bool playing = false, loopPlay = false;
+    std::int64_t playFrom = 0, playhead = -1;
+    double playStartedMs = 0.0;
+
+    RecState recState = RecState::idle;
+    RecordMode recordMode = RecordMode::now;
+    int recordSource = AudioCapture::input;
+    std::vector<float> recL, recR;
+    ae::Document beforeRecording;
+    std::int64_t recordAt = 0;
+    double recordRate = 44100.0;
+    bool recordStereo = true;
+    int recordTicks = 0;
+
+    juce::String status;
+    bool statusIsError = false;
+    std::unique_ptr<juce::FileChooser> chooser;
+
+    juce::Rectangle<int> rulerArea, waveArea, levelArea, overviewArea, infoArea;
+    IconButton menuButton { "menu", Icon::panelMenu }, undoButton { "undo", Icon::undo }, redoButton { "redo", Icon::redo },
+        historyButton { "history", Icon::chevronDown }, recordButton { "record", Icon::record }, recordMenuButton { "recordMenu", Icon::chevronDown },
+        playButton { "play", Icon::play }, stopButton { "stop", Icon::stop }, snapButton { "snap", Icon::magnet }, fitButton { "fit", Icon::zoom },
+        saveButton { "save", Icon::save };
+    juce::TextButton loopButton, viewButton, sendButton;
+    juce::OwnedArray<juce::TextButton> quickButtons;
+
+};
+
+juce::PopupMenu AudioEditor::editMenu (bool contextual)
+{
+    juce::PopupMenu menu;
+    const auto has = ! doc.audio.empty();
+    const auto sel = ! selection.empty();
+    const auto clip = ! clipboard().empty();
+    if (! contextual)
+    {
+        menu.addItem (tr ("Undo") + "\tCtrl+Z", history.canUndo(), false, [this] { undo(); });
+        menu.addItem (tr ("Redo") + "\tCtrl+Y", history.canRedo(), false, [this] { redo(); });
+        menu.addSubMenu (tr ("Undo history"), historyMenu());
+        menu.addSeparator();
+    }
+    menu.addItem (tr ("Cut") + "\tCtrl+X", sel, false, [this] { cutSelection(); });
+    menu.addItem (tr ("Copy") + "\tCtrl+C", sel, false, [this] { copySelection(); });
+    menu.addItem (tr ("Paste insert") + "\tCtrl+V", clip && selection.empty(), false, [this] { paste (false); });
+    menu.addItem (tr ("Paste replace"), clip && sel, false, [this] { paste (false); });
+    menu.addItem (tr ("Paste mix"), clip && has, false, [this] { paste (true); });
+    menu.addSeparator();
+    menu.addItem (tr ("Delete") + "\tDel", sel, false, [this] { deleteSelection(); });
+    menu.addItem (tr ("Clear (silence)"), sel, false, [this] { edit (tr ("Silence"), [] (ae::Document& d, ae::Range r) { ae::clear (d, r); }, true); });
+    menu.addItem (tr ("Trim (keep the selection)"), sel, false, [this] { trimSelection(); });
+    menu.addItem (tr ("Insert silence..."), has, false, [this] { showInsertSilence(); });
+    menu.addItem (tr ("Delete the part after the loop"), has && doc.hasLoop(), false,
+                  [this] { edit (tr ("Delete after loop"), [] (ae::Document& d, ae::Range) { ae::deleteAfterLoop (d); }); });
+    menu.addSeparator();
+    menu.addItem (tr ("Select all") + "\tCtrl+A", has, false, [this] {
+        selection = { 0, doc.audio.frames() };
+        repaint();
+    });
+    menu.addItem (tr ("Deselect") + "\tEsc", sel, false, [this] {
+        selection = {};
+        repaint();
+    });
+    if (contextual)
+    {
+        menu.addSeparator();
+        menu.addItem (tr ("Add marker") + "\tM", has, false, [this] { addMarkerAtCursor(); });
+        menu.addItem (tr ("Add region"), sel, false, [this] { addRegionFromSelection(); });
+        menu.addItem (tr ("Set loop"), sel, false, [this] { setLoopFromSelection(); });
+        menu.addItem (tr ("Zoom on the selection"), sel, false, [this] { zoomTo (selection); });
+    }
+    return menu;
+}
+
+juce::PopupMenu AudioEditor::mainMenu()
+{
+    const auto has = ! doc.audio.empty();
+    juce::PopupMenu file;
+    file.addItem (tr ("New (empty)"), [this] {
+        stopPlayback();
+        source = {};
+        setDocument ({}, tr ("Empty"));
+    });
+    file.addItem (tr ("Open audio file..."), [this] { openFileDialog(); });
+    juce::PopupMenu save;
+    save.addItem (tr ("16-bit"), has, bits == ae::WavFormat::int16, [this] { saveAs (ae::WavFormat::int16); });
+    save.addItem (tr ("24-bit"), has, bits == ae::WavFormat::int24, [this] { saveAs (ae::WavFormat::int24); });
+    save.addItem (tr ("32-bit float"), has, bits == ae::WavFormat::float32, [this] { saveAs (ae::WavFormat::float32); });
+    file.addSubMenu (tr ("Save as WAV"), save, has);
+    file.addItem (tr ("Export regions as files..."), has && ! doc.markers.empty(), false, [this] { exportRegions(); });
+    file.addSeparator();
+    file.addItem (tr ("Send to the Playlist as an audio clip"), has, false, [this] { sendToPlaylist(); });
+    file.addItem (tr ("Send to a new Sampler channel"), has, false, [this] { sendToNewSampler(); });
+
+    juce::PopupMenu tools;
+    tools.addSectionHeader (tr ("Level"));
+    tools.addItem (tr ("Amp..."), has, false, [this] { showAmp(); });
+    tools.addItem (tr ("Normalize"), has, false, [this] { edit (tr ("Normalize"), [] (ae::Document& d, ae::Range r) { ae::normalize (d, r); }); });
+    tools.addItem (tr ("Normalize to..."), has, false, [this] { showNormalizeTo(); });
+    tools.addItem (tr ("Reverse polarity"), has, false, [this] { edit (tr ("Reverse polarity"), [] (ae::Document& d, ae::Range r) { ae::invert (d, r); }); });
+    tools.addItem (tr ("Remove DC offset (center)"), has, false, [this] { edit (tr ("Remove DC offset"), [] (ae::Document& d, ae::Range r) { ae::removeDc (d, r); }); });
+    tools.addItem (tr ("Fade in"), has, false, [this] { fade (true); });
+    tools.addItem (tr ("Fade out"), has, false, [this] { fade (false); });
+    tools.addSubMenu (tr ("Fade curve"), curveMenu());
+    tools.addItem (tr ("Declick in"), has, false, [this] { edit (tr ("Declick in"), [] (ae::Document& d, ae::Range r) { ae::declickIn (d, r); }); });
+    tools.addItem (tr ("Declick out"), has, false, [this] { edit (tr ("Declick out"), [] (ae::Document& d, ae::Range r) { ae::declickOut (d, r); }); });
+    tools.addSectionHeader (tr ("Time"));
+    tools.addItem (tr ("Reverse"), has, false, [this] { edit (tr ("Reverse"), [] (ae::Document& d, ae::Range r) { ae::reverse (d, r); }); });
+    tools.addItem (tr ("Time stretch / pitch shift..."), has, false, [this] { showStretch(); });
+    tools.addItem (tr ("Resample..."), has, false, [this] { showResample(); });
+    tools.addSectionHeader (tr ("Channels"));
+    const auto stereo = doc.audio.numChannels() > 1;
+    tools.addItem (tr ("Swap channels"), has && stereo, false, [this] { edit (tr ("Swap channels"), [] (ae::Document& d, ae::Range) { ae::swapChannels (d); }); });
+    tools.addItem (tr ("Convert to mono (mix)"), has && stereo, false, [this] { edit (tr ("Convert to mono"), [] (ae::Document& d, ae::Range) { ae::toMono (d, ae::MonoSource::merged); }); });
+    tools.addItem (tr ("Convert the left channel to mono"), has && stereo, false, [this] { edit (tr ("Convert to mono"), [] (ae::Document& d, ae::Range) { ae::toMono (d, ae::MonoSource::left); }); });
+    tools.addItem (tr ("Convert the right channel to mono"), has && stereo, false, [this] { edit (tr ("Convert to mono"), [] (ae::Document& d, ae::Range) { ae::toMono (d, ae::MonoSource::right); }); });
+    tools.addItem (tr ("Convert to stereo"), has && ! stereo, false, [this] { edit (tr ("Convert to stereo"), [] (ae::Document& d, ae::Range) { ae::toStereo (d); }); });
+
+    juce::PopupMenu regions;
+    regions.addItem (tr ("Add marker") + "\tM", has, false, [this] { addMarkerAtCursor(); });
+    regions.addItem (tr ("Add region"), has && ! selection.empty(), false, [this] { addRegionFromSelection(); });
+    regions.addItem (tr ("Set loop"), has && ! selection.empty(), false, [this] { setLoopFromSelection(); });
+    regions.addItem (tr ("Remove loop"), doc.hasLoop(), false, [this] {
+        ae::setLoop (doc, {});
+        commit (tr ("Remove loop"));
+    });
+    regions.addItem (tr ("Delete markers in the selection"), has && ! doc.markers.empty(), false, [this] {
+        if (ae::removeMarkers (doc, ae::orAll (doc, selection)) > 0)
+            commit (tr ("Delete markers"));
+    });
+    regions.addSeparator();
+    juce::PopupMenu slice;
+    slice.addItem (tr ("Dull auto-slicing"), has, false, [this] { autoSlice (0.2f); });
+    slice.addItem (tr ("Medium auto-slicing"), has, false, [this] { autoSlice (0.5f); });
+    slice.addItem (tr ("Sharp auto-slicing"), has, false, [this] { autoSlice (0.85f); });
+    slice.addSeparator();
+    slice.addItem (tr ("Every beat (project tempo)"), has, false, [this] { gridSlice (1.0); });
+    slice.addItem (tr ("Every 1/2 beat"), has, false, [this] { gridSlice (0.5); });
+    slice.addItem (tr ("Every 1/4 beat"), has, false, [this] { gridSlice (0.25); });
+    regions.addSubMenu (tr ("Auto-slice"), slice, has);
+
+    juce::PopupMenu view;
+    view.addItem (tr ("Waveform"), true, ! spectrumView, [this] { viewButton.setToggleState (false, juce::sendNotification); });
+    view.addItem (tr ("Spectrogram") + "\tS", true, spectrumView, [this] { viewButton.setToggleState (true, juce::sendNotification); });
+    juce::PopupMenu precision;
+    for (int size : { 512, 1024, 2048, 4096, 8192 })
+        precision.addItem (tr ("{0} bands", { juce::String (size / 2) }), true, fftSize == size, [this, size] {
+            fftSize = size;
+            repaint();
+        });
+    view.addSubMenu (tr ("Spectrum precision"), precision);
+    view.addItem (tr ("Logarithmic frequency scale"), true, logFrequency, [this] {
+        logFrequency = ! logFrequency;
+        repaint();
+    });
+    juce::PopupMenu time;
+    const std::pair<TimeFormat, const char*> formats[] = { { TimeFormat::automatic, TR_NOOP ("Auto") },
+                                                           { TimeFormat::seconds, TR_NOOP ("Minutes : seconds") },
+                                                           { TimeFormat::samples, TR_NOOP ("Samples") },
+                                                           { TimeFormat::bars, TR_NOOP ("Bar : beat : tick") } };
+    for (const auto& [f, name] : formats)
+        time.addItem (tr (name), true, timeFormat == f, [this, f = f] {
+            timeFormat = f;
+            repaint();
+        });
+    view.addSubMenu (tr ("Time format"), time);
+    view.addSeparator();
+    view.addItem (tr ("Zoom in") + "\t+", has, false, [this] { zoomAround ((float) waveArea.getCentreX(), 0.5); });
+    view.addItem (tr ("Zoom out") + "\t-", has, false, [this] { zoomAround ((float) waveArea.getCentreX(), 2.0); });
+    view.addItem (tr ("Zoom out full") + "\tF", has, false, [this] { zoomToFit(); });
+    view.addItem (tr ("Zoom on the selection"), has && ! selection.empty(), false, [this] { zoomTo (selection); });
+    view.addItem (tr ("Snap to zero crossings"), true, snapZero, [this] { snapButton.setToggleState (! snapZero, juce::sendNotification); });
+
+    juce::PopupMenu menu;
+    menu.addSubMenu (tr ("File"), file);
+    menu.addSubMenu (tr ("Edit"), editMenu (false));
+    menu.addSubMenu (tr ("Tools"), tools, has);
+    menu.addSubMenu (tr ("Regions"), regions, has);
+    menu.addSubMenu (tr ("View"), view);
+    menu.addSubMenu (tr ("Record"), recordMenu());
+    return menu;
+}
+
+juce::String windowKey (const Source& s)
+{
+    switch (s.kind)
+    {
+        case Source::Kind::file: return "audioeditor:" + s.path;
+        case Source::Kind::channel: return "audioeditor:channel:" + juce::String (s.index);
+        case Source::Kind::insert: return "audioeditor:insert:" + juce::String (s.index);
+        case Source::Kind::none: break;
+    }
+    return "audioeditor";
+}
+
+AudioEditor* openWindow (AudioEngine& engine, Source source)
+{
+    auto editor = std::make_unique<AudioEditor> (engine, source);
+    auto* raw = editor.get();
+    if (auto* window = openToolWindow (std::move (editor), tr ("Audio editor"), windowKey (source)))
+    {
+        window->setResizable (true, false);
+        window->setResizeLimits (720, 380, 4000, 3000);
+    }
+    return raw;
+}
+} // namespace
+
+void openAudioEditor (AudioEngine& engine)
+{
+    openWindow (engine, {});
+}
+
+void openAudioEditor (AudioEngine& engine, const juce::File& file)
+{
+    Source s { Source::Kind::file, -1, file.getFullPathName() };
+    openWindow (engine, s)->loadFile (file);
+}
+
+void openAudioEditorForChannel (AudioEngine& engine, int channel)
+{
+    const auto& song = engine.getSong();
+    if (! juce::isPositiveAndBelow (channel, (int) song.channels.size()))
+        return;
+    const auto& c = song.channels[(std::size_t) channel];
+    const auto path = juce::String::fromUTF8 (c.samplePath.c_str());
+    auto* editor = openWindow (engine, { Source::Kind::channel, channel, path });
+    if (path.isNotEmpty())
+        editor->loadFile (juce::File (path));
+}
+
+void openAudioEditorRecording (AudioEngine& engine)
+{
+    openWindow (engine, {})->recordInputWithSong();
+}
+
+void openAudioEditorForInsert (AudioEngine& engine, int insert)
+{
+    auto* editor = openWindow (engine, { Source::Kind::insert, insert, {} });
+    editor->setRecordSource (insert);
+}
+
+std::unique_ptr<juce::Component> makeAudioEditorForSnapshot (AudioEngine& engine, audioedit::Document doc, bool spectrum)
+{
+    auto editor = std::make_unique<AudioEditor> (engine, Source {});
+    const auto frames = doc.audio.frames();
+    editor->setDocument (std::move (doc), tr ("Open"));
+    editor->selectForSnapshot ({ frames / 4, frames / 2 }, spectrum);
+    return editor;
+}
+
+juce::StringArray audioEditorMenuForSnapshot (juce::Component& component)
+{
+    juce::StringArray lines;
+    auto* editor = dynamic_cast<AudioEditor*> (&component);
+    if (editor == nullptr)
+        return lines;
+    std::function<void (const juce::PopupMenu&, const juce::String&)> walk = [&] (const juce::PopupMenu& menu, const juce::String& prefix) {
+        for (juce::PopupMenu::MenuItemIterator it (menu); it.next();)
+        {
+            const auto& item = it.getItem();
+            if (item.isSeparator || item.text.isEmpty())
+                continue;
+            const auto text = prefix + item.text.upToFirstOccurrenceOf ("\t", false, false);
+            if (item.subMenu != nullptr)
+                walk (*item.subMenu, text + " > ");
+            else if (! item.isSectionHeader)
+                lines.add (text + (item.isEnabled ? "" : "  (disabled)"));
+        }
+    };
+    walk (editor->mainMenu(), {});
+    return lines;
+}
+} // namespace lynx

+ 36 - 0
src/ui/AudioEditor.h

@@ -0,0 +1,36 @@
+#pragma once
+
+// Audio editor window (round 86; the feature set follows FL Studio's Edison, docs/analise/REA_rodada86.md — the
+// window and the drawing are LYNX's own). Waveform or spectrogram of one piece of audio with zoom/scroll, a
+// selection, markers/regions and a loop; edits from core/AudioEdit (cut/copy/paste, delete, trim, silence, fades
+// with curves, normalize, amp, reverse, polarity, DC removal, time stretch / pitch shift, resample, channels);
+// an undo history; recording from the sound card input, the Master or a mixer insert; saving as WAV (markers and
+// loop kept) and sending the result to the Playlist as an audio clip, to a new Sampler channel or back to the
+// channel it came from.
+
+#include <memory>
+
+#include <juce_gui_basics/juce_gui_basics.h>
+
+#include "core/AudioEdit.h"
+#include "engine/AudioEngine.h"
+
+namespace lynx
+{
+// An empty editor (Tools menu): record into it or open a file.
+void openAudioEditor (AudioEngine& engine);
+// A file (the Browser).
+void openAudioEditor (AudioEngine& engine, const juce::File& file);
+// The sample of a channel (a Sampler channel or the channel of a Playlist audio clip); the edit can go back to it.
+void openAudioEditorForChannel (AudioEngine& engine, int channel);
+// The record button's "Audio, into the audio editor" choice: an empty editor recording the audio input while the
+// song plays (it starts with the playback and stops with it, like FL's Edison record target).
+void openAudioEditorRecording (AudioEngine& engine);
+// A mixer insert (0 = Master): opens with the recording source set to it, like an editor sitting in a mixer slot.
+void openAudioEditorForInsert (AudioEngine& engine, int insert);
+
+// --snapshot: the editor showing `doc` (selection = the second quarter), in the waveform or spectrogram view.
+std::unique_ptr<juce::Component> makeAudioEditorForSnapshot (AudioEngine& engine, audioedit::Document doc, bool spectrum);
+// --snapshot: the items of the editor's main menu, one per line ("Section > Item"), for the menu check.
+juce::StringArray audioEditorMenuForSnapshot (juce::Component& editor);
+} // namespace lynx

+ 22 - 1
src/ui/BrowserComponent.cpp

@@ -9,6 +9,7 @@
 #include "ui/Theme.h"
 #include "ui/ValueControl.h"
 #include "ui/WaveformView.h"
+#include "ui/AudioEditor.h"
 
 namespace lynx
 {
@@ -353,7 +354,10 @@ public:
         if (e.mods.isPopupMenu())
         {
             select (row, false);
-            browser.showFolderMenu (n.folder ? n.file : n.file.getParentDirectory());
+            if (n.folder)
+                browser.showFolderMenu (n.file);
+            else
+                browser.showFileMenu (n.file);
             return;
         }
 
@@ -949,6 +953,23 @@ void BrowserComponent::fileSelected (const juce::File& file, bool preview)
     results->repaint();
 }
 
+void BrowserComponent::showFileMenu (const juce::File& file)
+{
+    if (! isAudio (file))
+    {
+        showFolderMenu (file.getParentDirectory());
+        return;
+    }
+    juce::PopupMenu menu;
+    menu.addSectionHeader (file.getFileName());
+    menu.addItem (tr ("Edit in the audio editor..."), [this, file] { openAudioEditor (engine, file); });
+    menu.addItem (tr ("Show in the file manager"), [file] { file.revealToUser(); });
+    menu.addSeparator();
+    menu.addItem (tr ("Collapse all folders"), [this] { tree->collapseAll(); });
+    menu.addItem (tr ("Add folder..."), [this] { addUserFolder(); });
+    menu.showMenuAsync (juce::PopupMenu::Options().withMousePosition());
+}
+
 void BrowserComponent::showFolderMenu (const juce::File& folder)
 {
     juce::PopupMenu menu;

+ 1 - 0
src/ui/BrowserComponent.h

@@ -76,6 +76,7 @@ private:
     void openFile (const juce::File& file); // what a double-click does
     void fileSelected (const juce::File& file, bool preview);
     void showFolderMenu (const juce::File& folder);
+    void showFileMenu (const juce::File& file);
     FileTree& activeList() const;
     juce::File previewedFile; // the sample last sent to the preview player
     bool isPreviewPlaying() const;

+ 138 - 82
src/ui/ChannelRackComponent.cpp

@@ -14,6 +14,7 @@
 
 #include "ui/PluginWindow.h"
 #include "ui/Theme.h"
+#include "ui/AudioEditor.h"
 
 namespace lynx
 {
@@ -119,6 +120,18 @@ ChannelRackComponent::~ChannelRackComponent()
     engine.removeChangeListener (this);
 }
 
+void ChannelRackComponent::moved()
+{
+    // the viewport scrolled the rack sideways: the controls column follows the visible left edge
+    const auto x = juce::jmax (0, -getX());
+
+    if (x != stickyX)
+    {
+        stickyX = x;
+        repaint();
+    }
+}
+
 void ChannelRackComponent::visibilityChanged()
 {
     if (! isShowing())
@@ -193,6 +206,9 @@ ChannelRackComponent::Area ChannelRackComponent::areaAt (int x, int y, int& row)
     const auto channels = (int) engine.getSong().channels.size();
     row = rowAtY (y);
 
+    if (x < stickyX + gridLeft()) // the controls column (painted at the visible left edge)
+        x -= stickyX;
+
     if (row < 0 || row > channels)
         return Area::none;
 
@@ -258,7 +274,6 @@ void ChannelRackComponent::paint (juce::Graphics& g)
 
         const auto& channel = song.channels[(std::size_t) row];
         const auto selected = std::binary_search (selection.begin(), selection.end(), row);
-        const auto nameArea = juce::Rectangle<float> ((float) nameLeft(), (float) y + 3, (float) nameWidth, (float) rowHeight - 6);
 
         if (selected) // selected rows are subtly lifted
         {
@@ -266,68 +281,6 @@ void ChannelRackComponent::paint (juce::Graphics& g)
             g.fillRect (0, y + 1, getWidth(), rowHeight - 2);
         }
 
-        const auto hovered = [this, row] (Area a) { return hoverRow == row && hoverArea == a; };
-        const auto led = juce::Rectangle<float> (9.0f, (float) y + rowHeight / 2.0f - 4.5f, 9.0f, 9.0f);
-        g.setColour (theme::muteLed (channel.muted));
-        g.fillEllipse (led);
-
-        if (hovered (Area::mute)) // hover ring
-        {
-            g.setColour (textSecondary.withAlpha (0.8f));
-            g.drawEllipse (led.expanded (2.5f), 1.0f);
-        }
-
-        const auto touched = knobDrag != Area::none && knobRow == row;
-        theme::drawKnob (g, controlBounds (Area::pan, row).toFloat().reduced (1.0f, 2.0f), (channel.pan + 1.0f) / 2.0f, true,
-                         touched && knobDrag == Area::pan ? accent : info, hovered (Area::pan) || (touched && knobDrag == Area::pan));
-        theme::drawKnob (g, controlBounds (Area::volume, row).toFloat().reduced (1.0f, 2.0f), channel.volume, false,
-                         touched && knobDrag == Area::volume ? accent : knobArc, hovered (Area::volume) || (touched && knobDrag == Area::volume));
-
-        // small box with the mixer insert ("-" = straight to Master)
-        const auto routeArea = controlBounds (Area::route, row).toFloat();
-        g.setColour (hovered (Area::route) || (touched && knobDrag == Area::route) ? bg4 : bg0);
-        g.fillRoundedRectangle (routeArea, theme::radius::sm);
-
-        if (hovered (Area::route))
-        {
-            g.setColour (borderStrong);
-            g.drawRoundedRectangle (routeArea.reduced (0.5f), theme::radius::sm, 1.0f);
-        }
-
-        g.setColour (channel.mixerTrack > 0 ? textPrimary : textDisabled);
-        g.setFont (theme::font (theme::type::caption, true));
-        g.drawText (channel.mixerTrack > 0 ? juce::String (channel.mixerTrack) : juce::String ("-"), routeArea.toNearestInt(),
-                    juce::Justification::centred);
-        g.setFont (theme::font (theme::type::body));
-
-        // name button: tinted with the channel colour (from the .flp or user-picked), so channels are found by
-        // colour as in FL; kept dark and toned down (LYNX look), with the colour strip at its left
-        {
-            auto plate = row == primary ? bg6 : hovered (Area::name) ? bg5 : bg4;
-            if (channel.colour != 0)
-                plate = plate.interpolatedWith (theme::tame (juce::Colour (channel.colour)), row == primary ? 0.42f : 0.32f);
-            g.setColour (plate);
-            g.fillRoundedRectangle (nameArea, theme::radius::md);
-        }
-
-        if (row == primary)
-        {
-            g.setColour (accent);
-            g.drawRoundedRectangle (nameArea.reduced (0.5f), theme::radius::md, 1.0f);
-        }
-
-        g.setColour (channel.colour != 0 ? theme::tame (juce::Colour (channel.colour)) : bg6.brighter (0.2f));
-        g.fillRoundedRectangle (nameArea.withWidth (4.0f).reduced (0.0f, 3.0f).translated (3.0f, 0.0f), 1.5f);
-
-        g.setColour (channel.muted ? textDisabled : textPrimary);
-        g.drawText (juce::String::fromUTF8 (channel.name.c_str()), nameArea.withTrimmedLeft (14).withTrimmedRight (6).toNearestInt(),
-                    juce::Justification::centredLeft, true);
-
-        // selector: a slim pill, lit when the row is selected
-        const auto pill = juce::Rectangle<float> ((float) selectLeft() + 3.0f, (float) y + 7.0f, (float) selectWidth - 6.0f, (float) rowHeight - 14.0f);
-        g.setColour (selected ? (hovered (Area::select) ? accentHover : accent) : hovered (Area::select) ? textDisabled : ledOff);
-        g.fillRoundedRectangle (pill, 3.0f);
-
         if (channel.instrument == InstrumentKind::audioClip)
         {
             g.setColour (textDisabled);
@@ -368,21 +321,9 @@ void ChannelRackComponent::paint (juce::Graphics& g)
 
     paintLane (g);
     const auto addY = rowY ((int) song.channels.size());
-    {
-        const auto addArea = juce::Rectangle<float> ((float) nameLeft(), (float) addY + 3, (float) nameWidth, (float) rowHeight - 6);
-        const float dash[] = { 3.0f, 3.0f };
-        juce::Path outline, dashed;
-        outline.addRoundedRectangle (addArea.reduced (0.5f), theme::radius::md);
-        juce::PathStrokeType (1.0f).createDashedStroke (dashed, outline, dash, 2);
-        const auto addHovered = hoverArea == Area::addRow;
-        g.setColour (addHovered ? textSecondary : borderStrong);
-        g.fillPath (dashed);
-        g.setColour (addHovered ? textPrimary : textSecondary);
-        g.setFont (theme::font (theme::type::small));
-        g.drawText (tr ("+ add channel"), addArea.toNearestInt(), juce::Justification::centred);
-        g.setColour (textDisabled);
-        g.drawText (tr ("or drop an audio file here"), gridLeft() + 4, addY, 400, rowHeight, juce::Justification::centredLeft);
-    }
+    g.setColour (textDisabled);
+    g.setFont (theme::font (theme::type::small));
+    g.drawText (tr ("or drop an audio file here"), gridLeft() + 4, addY, 400, rowHeight, juce::Justification::centredLeft);
 
     if (playheadStep >= 0 && playheadStep < steps)
     {
@@ -390,6 +331,118 @@ void ChannelRackComponent::paint (juce::Graphics& g)
         g.fillRoundedRectangle (juce::Rectangle<float> ((float) (gridLeft() + playheadStep * stepWidth), 2.0f, (float) stepWidth - 2.0f,
                                                         (float) addY - 2.0f), theme::radius::sm);
     }
+
+    // the controls column stays put while the steps scroll sideways (FL's rack keeps the channel buttons in
+    // view): the viewport moves the whole rack, so the column is painted again at the visible left edge
+    {
+        juce::Graphics::ScopedSaveState state (g);
+        g.reduceClipRegion (stickyX, 0, gridLeft(), getHeight());
+        g.setOrigin (stickyX, 0);
+        g.setColour (bg2);
+        g.fillRect (0, 0, gridLeft(), getHeight());
+        const auto column = g.getClipBounds();
+
+        for (int row = 0; row < (int) song.channels.size(); ++row)
+        {
+            const auto y = rowY (row);
+
+            if (y > column.getBottom() || y + rowHeight < column.getY())
+                continue;
+
+            const auto& channel = song.channels[(std::size_t) row];
+            const auto selected = std::binary_search (selection.begin(), selection.end(), row);
+            const auto nameArea = juce::Rectangle<float> ((float) nameLeft(), (float) y + 3, (float) nameWidth, (float) rowHeight - 6);
+
+            if (selected) // selected rows are subtly lifted
+            {
+                g.setColour (bg3);
+                g.fillRect (0, y + 1, getWidth(), rowHeight - 2);
+            }
+
+            const auto hovered = [this, row] (Area a) { return hoverRow == row && hoverArea == a; };
+            const auto led = juce::Rectangle<float> (9.0f, (float) y + rowHeight / 2.0f - 4.5f, 9.0f, 9.0f);
+            g.setColour (theme::muteLed (channel.muted));
+            g.fillEllipse (led);
+
+            if (hovered (Area::mute)) // hover ring
+            {
+                g.setColour (textSecondary.withAlpha (0.8f));
+                g.drawEllipse (led.expanded (2.5f), 1.0f);
+            }
+
+            const auto touched = knobDrag != Area::none && knobRow == row;
+            theme::drawKnob (g, controlBounds (Area::pan, row).toFloat().reduced (1.0f, 2.0f), (channel.pan + 1.0f) / 2.0f, true,
+                             touched && knobDrag == Area::pan ? accent : info, hovered (Area::pan) || (touched && knobDrag == Area::pan));
+            theme::drawKnob (g, controlBounds (Area::volume, row).toFloat().reduced (1.0f, 2.0f), channel.volume, false,
+                             touched && knobDrag == Area::volume ? accent : knobArc, hovered (Area::volume) || (touched && knobDrag == Area::volume));
+
+            // small box with the mixer insert ("-" = straight to Master)
+            const auto routeArea = controlBounds (Area::route, row).toFloat();
+            g.setColour (hovered (Area::route) || (touched && knobDrag == Area::route) ? bg4 : bg0);
+            g.fillRoundedRectangle (routeArea, theme::radius::sm);
+
+            if (hovered (Area::route))
+            {
+                g.setColour (borderStrong);
+                g.drawRoundedRectangle (routeArea.reduced (0.5f), theme::radius::sm, 1.0f);
+            }
+
+            g.setColour (channel.mixerTrack > 0 ? textPrimary : textDisabled);
+            g.setFont (theme::font (theme::type::caption, true));
+            g.drawText (channel.mixerTrack > 0 ? juce::String (channel.mixerTrack) : juce::String ("-"), routeArea.toNearestInt(),
+                        juce::Justification::centred);
+            g.setFont (theme::font (theme::type::body));
+
+            // name button: tinted with the channel colour (from the .flp or user-picked), so channels are found by
+            // colour as in FL; kept dark and toned down (LYNX look), with the colour strip at its left
+            {
+                auto plate = row == primary ? bg6 : hovered (Area::name) ? bg5 : bg4;
+                if (channel.colour != 0)
+                    plate = plate.interpolatedWith (theme::tame (juce::Colour (channel.colour)), row == primary ? 0.42f : 0.32f);
+                g.setColour (plate);
+                g.fillRoundedRectangle (nameArea, theme::radius::md);
+            }
+
+            if (row == primary)
+            {
+                g.setColour (accent);
+                g.drawRoundedRectangle (nameArea.reduced (0.5f), theme::radius::md, 1.0f);
+            }
+
+            g.setColour (channel.colour != 0 ? theme::tame (juce::Colour (channel.colour)) : bg6.brighter (0.2f));
+            g.fillRoundedRectangle (nameArea.withWidth (4.0f).reduced (0.0f, 3.0f).translated (3.0f, 0.0f), 1.5f);
+
+            g.setColour (channel.muted ? textDisabled : textPrimary);
+            g.drawText (juce::String::fromUTF8 (channel.name.c_str()), nameArea.withTrimmedLeft (14).withTrimmedRight (6).toNearestInt(),
+                        juce::Justification::centredLeft, true);
+
+            // selector: a slim pill, lit when the row is selected
+            const auto pill = juce::Rectangle<float> ((float) selectLeft() + 3.0f, (float) y + 7.0f, (float) selectWidth - 6.0f, (float) rowHeight - 14.0f);
+            g.setColour (selected ? (hovered (Area::select) ? accentHover : accent) : hovered (Area::select) ? textDisabled : ledOff);
+            g.fillRoundedRectangle (pill, 3.0f);
+        }
+
+        paintLane (g);
+        {
+            const auto addArea = juce::Rectangle<float> ((float) nameLeft(), (float) addY + 3, (float) nameWidth, (float) rowHeight - 6);
+            const float dash[] = { 3.0f, 3.0f };
+            juce::Path outline, dashed;
+            outline.addRoundedRectangle (addArea.reduced (0.5f), theme::radius::md);
+            juce::PathStrokeType (1.0f).createDashedStroke (dashed, outline, dash, 2);
+            const auto addHovered = hoverArea == Area::addRow;
+            g.setColour (addHovered ? textSecondary : borderStrong);
+            g.fillPath (dashed);
+            g.setColour (addHovered ? textPrimary : textSecondary);
+            g.setFont (theme::font (theme::type::small));
+            g.drawText (tr ("+ add channel"), addArea.toNearestInt(), juce::Justification::centred);
+        }
+
+        if (stickyX > 0) // steps pass under the column: a hairline marks its edge
+        {
+            g.setColour (border);
+            g.fillRect (gridLeft() - 1, 0, 1, getHeight());
+        }
+    }
 }
 
 // The miniature of a channel's piano-roll notes across its step area (FL shows one once a channel has notes
@@ -520,10 +573,12 @@ void ChannelRackComponent::showTip (Area area, int row, bool transient)
     const auto text = spec.text (valueOf (area, row));
     ui::postHint (ui::valueHint (spec, valueOf (area, row), ui::valueGestures()));
 
+    const auto bounds = area == Area::lane ? controlBounds (area, row) : controlBounds (area, row).translated (stickyX, 0);
+
     if (transient)
-        ui::flashValueTip (*this, controlBounds (area, row), text);
+        ui::flashValueTip (*this, bounds, text);
     else
-        ui::showValueTip (*this, controlBounds (area, row), text);
+        ui::showValueTip (*this, bounds, text);
 }
 
 void ChannelRackComponent::setHover (Area area, int row, int step)
@@ -1165,7 +1220,7 @@ void ChannelRackComponent::mouseDown (const juce::MouseEvent& e)
 
         case Area::laneLevels:
             for (int l = 0; l < notetools::levelCount; ++l)
-                if (levelButtonBounds (l).contains (e.getPosition()))
+                if (levelButtonBounds (l).contains (e.getPosition().translated (-stickyX, 0)))
                 {
                     graphLevel = l;
                     repaint();
@@ -1533,7 +1588,7 @@ void ChannelRackComponent::applyPaint (const juce::MouseEvent& e)
     if (laneBounds().contains (e.getPosition()))
         return;
 
-    if (row < 0 || row >= (int) song.channels.size() || step < 0 || step >= numSteps() || e.x < gridLeft()
+    if (row < 0 || row >= (int) song.channels.size() || step < 0 || step >= numSteps() || e.x < stickyX + gridLeft()
         || song.channels[(std::size_t) row].instrument == InstrumentKind::audioClip
         || showsNotePreview (song.patterns[(std::size_t) song.currentPattern], row)) // drag-paint skips note rows
         return;
@@ -1590,6 +1645,7 @@ void ChannelRackComponent::showChannelMenu (int channel)
                       false, false, [] {});
         menu.addItem (tr ("Sampler settings (pitch, envelope, reverse)..."),
                       [this, channel] { openChannelSettings (engine, channel); });
+        menu.addItem (tr ("Edit the sample in the audio editor..."), ! c.samplePath.empty(), false, [this, channel] { openAudioEditorForChannel (engine, channel); });
 
         if (c.sampler.slices.empty())
             menu.addItem (tr ("Slice sample (slicer): one slice per key and a pattern with the loop"), [this, channel] { sliceChannel (channel); });

+ 2 - 0
src/ui/ChannelRackComponent.h

@@ -118,6 +118,8 @@ private:
     void timerCallback() override;
 
     Area areaAt (int x, int y, int& row) const;
+    void moved() override;
+    int stickyX = 0; // how far the viewport scrolled the rack sideways (the controls column stays in view)
     int numSteps() const;
     int nameLeft() const noexcept { return muteWidth + 2 * knobWidth + routeWidth + 2; }
     int selectLeft() const noexcept { return nameLeft() + nameWidth + 4; }

+ 3 - 2
src/ui/Dialogs.cpp

@@ -146,7 +146,7 @@ public:
         : juce::AlertWindow (tr ("Recording"), tr ("What would you like to record?"), juce::MessageBoxIconType::NoIcon)
     {
         int result = recordChoiceAudio;
-        for (auto* b : { &audio, &notes, &everything })
+        for (auto* b : { &audio, &notes, &everything, &editor })
         {
             b->onClick = [this, result] { exitModalState (result); };
             addCustomComponent (b);
@@ -164,7 +164,8 @@ private:
     RecordChoiceButton audio { tr ("Audio, into the Playlist as an audio clip"),
                                tr ("Arms the selected mixer insert; choose its audio input (microphone) if it has none") },
         notes { tr ("Notes, into the current pattern"), tr ("Notes played on a MIDI keyboard or the PC keyboard") },
-        everything { tr ("Everything"), tr ("Notes, and audio from the armed inserts") };
+        everything { tr ("Everything"), tr ("Notes, and audio from the armed inserts") },
+        editor { tr ("Audio, into the audio editor"), tr ("Records the audio input into a new audio editor while the song plays") };
     juce::ToggleButton dontAsk;
 };
 } // namespace

+ 4 - 2
src/ui/Dialogs.h

@@ -14,12 +14,14 @@ void showNameAndColourDialog (const juce::String& title, const juce::String& nam
                               std::function<void (const juce::String&, std::uint32_t)> onDone);
 
 // The record button's question (FL's "Recording - What would you like to record?", REA_rodada88): audio into
-// the Playlist, notes, or everything. `onChoice(choice, dontAskAgain)`: 1 = audio, 2 = notes, 3 = everything.
+// the Playlist, notes, everything, or audio into the audio editor. `onChoice(choice, dontAskAgain)`: 1 = audio,
+// 2 = notes, 3 = everything, 4 = audio editor.
 enum RecordChoice
 {
     recordChoiceAudio = 1,
     recordChoiceNotes = 2,
-    recordChoiceEverything = 3
+    recordChoiceEverything = 3,
+    recordChoiceAudioEditor = 4
 };
 void showRecordChoiceDialog (std::function<void (int, bool)> onChoice);
 std::unique_ptr<juce::AlertWindow> makeRecordChoiceDialog();

+ 140 - 0
src/ui/EditorTools.cpp

@@ -401,6 +401,146 @@ void GlobalGridBox::changeListenerCallback (juce::ChangeBroadcaster*)
     setSelectedId (EditorGlobals::get().getGridOption() + 1, juce::dontSendNotification);
 }
 
+// --- overview strip ------------------------------------------------------------------------
+
+OverviewBar::OverviewBar()
+{
+    setOpaque (true);
+    ui::setHint (*this, tr ("Overview: [LMB] drag the window to scroll, drag its edges to zoom, click elsewhere to jump there  "
+                            "[2xLMB] show everything"));
+}
+
+void OverviewBar::setRange (double newTotal, double newStart, double newLength)
+{
+    newTotal = juce::jmax (1.0, newTotal);
+
+    if (newTotal != total || newStart != start || newLength != length)
+    {
+        total = newTotal;
+        start = newStart;
+        length = newLength;
+        repaint();
+    }
+}
+
+juce::Rectangle<float> OverviewBar::windowArea() const
+{
+    const auto w = (double) getWidth();
+    const auto x0 = (float) (start / total * w), x1 = (float) ((start + length) / total * w);
+    return { x0, 0.0f, juce::jmax (3.0f, x1 - x0), (float) getHeight() - 1.0f };
+}
+
+gesture::OverviewGrab OverviewBar::grabAt (int x) const
+{
+    return gesture::overviewGrabAt (x, getWidth(), total, { start, length });
+}
+
+void OverviewBar::updateCursor (gesture::OverviewGrab g)
+{
+    using G = gesture::OverviewGrab;
+    setMouseCursor (g == G::left || g == G::right ? juce::MouseCursor::LeftRightResizeCursor
+                    : g == G::move               ? juce::MouseCursor::DraggingHandCursor
+                                                 : juce::MouseCursor::PointingHandCursor);
+
+    if (g != hoverGrab)
+    {
+        hoverGrab = g;
+        repaint();
+    }
+}
+
+void OverviewBar::paint (juce::Graphics& g)
+{
+    using namespace theme::colour;
+    const auto area = getLocalBounds().toFloat();
+    g.fillAll (bg0);
+
+    if (paintContent)
+    {
+        juce::Graphics::ScopedSaveState state (g);
+        g.reduceClipRegion (getLocalBounds().withTrimmedBottom (1));
+        paintContent (g, area.withTrimmedBottom (1.0f), total);
+    }
+
+    // outside the window: dimmed; the window: a light frame, its edges lit while hovered or dragged
+    const auto win = windowArea();
+    g.setColour (bg0.withAlpha (0.5f));
+    g.fillRect (area.withRight (win.getX()));
+    g.fillRect (area.withLeft (win.getRight()));
+    g.setColour (textPrimary.withAlpha (hoverGrab == gesture::OverviewGrab::move || dragging ? 0.08f : 0.04f));
+    g.fillRect (win);
+    g.setColour (textSecondary.withAlpha (0.55f));
+    g.drawRect (win, 1.0f);
+
+    const auto lit = dragging ? grab : hoverGrab;
+    g.setColour (accent);
+    if (lit == gesture::OverviewGrab::left)
+        g.fillRect (win.withWidth (2.0f));
+    if (lit == gesture::OverviewGrab::right)
+        g.fillRect (win.withLeft (win.getRight() - 2.0f));
+
+    g.setColour (border);
+    g.fillRect (area.withTop (area.getBottom() - 1.0f));
+}
+
+void OverviewBar::mouseMove (const juce::MouseEvent& e)
+{
+    updateCursor (grabAt (e.x));
+}
+
+void OverviewBar::mouseExit (const juce::MouseEvent&)
+{
+    if (! dragging && hoverGrab != gesture::OverviewGrab::none)
+    {
+        hoverGrab = gesture::OverviewGrab::none;
+        repaint();
+    }
+}
+
+void OverviewBar::mouseDown (const juce::MouseEvent& e)
+{
+    if (! e.mods.isLeftButtonDown())
+        return;
+
+    grab = grabAt (e.x);
+    grabFrom = { start, length };
+    dragging = true;
+
+    if (grab == gesture::OverviewGrab::none) // jump: centre the window on the click, then drag it
+    {
+        grabFrom = gesture::overviewCentredOn (e.x / juce::jmax (1.0, (double) getWidth()) * total, grabFrom, total);
+        if (onChange)
+            onChange (grabFrom.start, grabFrom.length);
+    }
+
+    repaint();
+}
+
+void OverviewBar::mouseDrag (const juce::MouseEvent& e)
+{
+    if (! dragging)
+        return;
+
+    const auto w = gesture::overviewDrag (grab, grabFrom, e.getDistanceFromDragStartX(), getWidth(), total, minLength);
+
+    if (onChange)
+        onChange (w.start, w.length);
+}
+
+void OverviewBar::mouseUp (const juce::MouseEvent& e)
+{
+    dragging = false;
+    grab = gesture::OverviewGrab::none;
+    updateCursor (grabAt (e.x));
+    repaint();
+}
+
+void OverviewBar::mouseDoubleClick (const juce::MouseEvent&)
+{
+    if (onShowAll)
+        onShowAll();
+}
+
 // --- Note inspector ------------------------------------------------------------------------
 
 namespace

+ 39 - 0
src/ui/EditorTools.h

@@ -171,6 +171,45 @@ private:
     void changeListenerCallback (juce::ChangeBroadcaster*) override;
 };
 
+// --- overview strip ------------------------------------------------------------------------
+// The strip above the Piano Roll's and the Playlist's ruler: the whole content in miniature (drawn by
+// `paintContent`) with the visible window outlined. Drag the window to scroll, drag one of its edges to
+// zoom, click elsewhere to jump there (and keep dragging), double-click to show everything.
+// Units are the editor's (ticks); the editor calls setRange whenever its view changes.
+class OverviewBar final : public juce::Component
+{
+public:
+    OverviewBar();
+
+    void setRange (double total, double start, double length);
+    double getTotal() const noexcept { return total; }
+
+    // draws the miniature into `area` (the whole strip), `total` units across
+    std::function<void (juce::Graphics&, juce::Rectangle<float> area, double total)> paintContent;
+    // the user moved (same length) or resized (zoom) the window
+    std::function<void (double start, double length)> onChange;
+    std::function<void()> onShowAll;
+    double minLength = 1.0; // the shortest window the editor can zoom to
+
+    void paint (juce::Graphics& g) override;
+    void mouseMove (const juce::MouseEvent& e) override;
+    void mouseExit (const juce::MouseEvent& e) override;
+    void mouseDown (const juce::MouseEvent& e) override;
+    void mouseDrag (const juce::MouseEvent& e) override;
+    void mouseUp (const juce::MouseEvent& e) override;
+    void mouseDoubleClick (const juce::MouseEvent& e) override;
+
+private:
+    juce::Rectangle<float> windowArea() const;
+    gesture::OverviewGrab grabAt (int x) const;
+    void updateCursor (gesture::OverviewGrab g);
+
+    double total = 1.0, start = 0.0, length = 1.0;
+    gesture::OverviewGrab grab = gesture::OverviewGrab::none, hoverGrab = gesture::OverviewGrab::none;
+    gesture::OverviewWindow grabFrom;
+    bool dragging = false;
+};
+
 // --- Note inspector ------------------------------------------------------------------------
 // Edits velocity, pan, release, fine pitch, mod X/Y, slide and porta of `indices` (notes of the current
 // pattern) as one undo step on Apply; Revert puts the controls back. Time and length are offered when a

+ 1593 - 1162
src/ui/I18nData.h

@@ -4261,1169 +4261,1600 @@ inline constexpr unsigned char ptBR[] = {
 100, 101, 32, 115, 97, 195, 173, 100, 97, 34, 10, 34, 73, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101,
 34, 32, 61, 32, 34, 68, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114,
 97, 100, 97, 34, 10, 34, 66, 117, 102, 102, 101, 114, 32, 115, 105, 122, 101, 34, 32, 61, 32, 34, 84, 97,
-109, 97, 110, 104, 111, 32, 100, 111, 32, 98, 117, 102, 102, 101, 114, 34, 10, 34, 83, 109, 97, 108, 108, 101,
-114, 32, 98, 117, 102, 102, 101, 114, 115, 32, 97, 110, 115, 119, 101, 114, 32, 102, 97, 115, 116, 101, 114, 32,
-119, 104, 101, 110, 32, 121, 111, 117, 32, 112, 108, 97, 121, 59, 32, 108, 97, 114, 103, 101, 114, 32, 111, 110,
-101, 115, 32, 103, 105, 118, 101, 32, 116, 104, 101, 32, 67, 80, 85, 32, 109, 111, 114, 101, 32, 114, 111, 111,
-109, 32, 40, 102, 101, 119, 101, 114, 32, 99, 108, 105, 99, 107, 115, 41, 46, 34, 32, 61, 32, 34, 66, 117,
-102, 102, 101, 114, 115, 32, 109, 101, 110, 111, 114, 101, 115, 32, 114, 101, 115, 112, 111, 110, 100, 101, 109, 32,
-109, 97, 105, 115, 32, 114, 195, 161, 112, 105, 100, 111, 32, 113, 117, 97, 110, 100, 111, 32, 118, 111, 99, 195,
-170, 32, 116, 111, 99, 97, 59, 32, 109, 97, 105, 111, 114, 101, 115, 32, 100, 195, 163, 111, 32, 109, 97, 105,
-115, 32, 102, 111, 108, 103, 97, 32, 195, 160, 32, 67, 80, 85, 32, 40, 109, 101, 110, 111, 115, 32, 101, 115,
-116, 97, 108, 111, 115, 41, 46, 34, 10, 34, 87, 105, 116, 104, 32, 114, 101, 99, 111, 114, 100, 105, 110, 103,
-32, 111, 110, 44, 32, 116, 104, 101, 32, 115, 111, 117, 110, 100, 32, 99, 97, 114, 100, 32, 105, 110, 112, 117,
-116, 32, 98, 101, 99, 111, 109, 101, 115, 32, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 99, 108, 105,
-112, 32, 40, 116, 104, 101, 32, 73, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 97, 98, 111, 118,
-101, 41, 46, 34, 32, 61, 32, 34, 67, 111, 109, 32, 97, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111,
-32, 108, 105, 103, 97, 100, 97, 44, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 97, 32, 112, 108,
-97, 99, 97, 32, 100, 101, 32, 115, 111, 109, 32, 118, 105, 114, 97, 32, 117, 109, 32, 99, 108, 105, 112, 101,
-32, 110, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 40, 111, 32, 100, 105, 115, 112, 111, 115, 105, 116,
-105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 97, 99, 105, 109, 97, 41, 46, 34, 10,
-34, 123, 48, 125, 32, 115, 97, 109, 112, 108, 101, 115, 32, 40, 123, 49, 125, 32, 109, 115, 41, 34, 32, 61,
-32, 34, 123, 48, 125, 32, 97, 109, 111, 115, 116, 114, 97, 115, 32, 40, 123, 49, 125, 32, 109, 115, 41, 34,
-10, 34, 78, 111, 32, 97, 117, 100, 105, 111, 32, 100, 101, 118, 105, 99, 101, 32, 105, 115, 32, 111, 112, 101,
-110, 58, 32, 99, 104, 111, 111, 115, 101, 32, 97, 110, 32, 111, 117, 116, 112, 117, 116, 32, 100, 101, 118, 105,
-99, 101, 46, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105,
-118, 111, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 97, 98, 101, 114, 116, 111, 58, 32, 101, 115, 99,
-111, 108, 104, 97, 32, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 115,
-97, 195, 173, 100, 97, 46, 34, 10, 34, 123, 48, 125, 32, 105, 115, 32, 114, 117, 110, 110, 105, 110, 103, 58,
-32, 123, 49, 125, 32, 72, 122, 44, 32, 111, 117, 116, 112, 117, 116, 32, 108, 97, 116, 101, 110, 99, 121, 32,
-123, 50, 125, 32, 109, 115, 34, 32, 61, 32, 34, 123, 48, 125, 32, 101, 115, 116, 195, 161, 32, 114, 111, 100,
-97, 110, 100, 111, 58, 32, 123, 49, 125, 32, 72, 122, 44, 32, 108, 97, 116, 195, 170, 110, 99, 105, 97, 32,
-100, 101, 32, 115, 97, 195, 173, 100, 97, 32, 123, 50, 125, 32, 109, 115, 34, 10, 34, 65, 117, 100, 105, 111,
-32, 67, 80, 85, 32, 108, 111, 97, 100, 58, 32, 123, 48, 125, 37, 34, 32, 61, 32, 34, 67, 97, 114, 103,
-97, 32, 100, 101, 32, 67, 80, 85, 32, 100, 111, 32, 195, 161, 117, 100, 105, 111, 58, 32, 123, 48, 125, 37,
-34, 10, 34, 123, 48, 125, 32, 100, 114, 111, 112, 111, 117, 116, 115, 32, 40, 98, 117, 102, 102, 101, 114, 32,
-117, 110, 100, 101, 114, 114, 117, 110, 115, 41, 32, 115, 111, 32, 102, 97, 114, 34, 32, 61, 32, 34, 123, 48,
-125, 32, 102, 97, 108, 104, 97, 115, 32, 40, 98, 117, 102, 102, 101, 114, 32, 101, 115, 118, 97, 122, 105, 97,
-100, 111, 41, 32, 97, 116, 195, 169, 32, 97, 103, 111, 114, 97, 34, 10, 34, 123, 48, 125, 32, 98, 108, 111,
-99, 107, 115, 32, 111, 118, 101, 114, 32, 116, 104, 101, 32, 100, 101, 97, 100, 108, 105, 110, 101, 32, 40, 109,
-97, 120, 32, 123, 49, 125, 37, 41, 34, 32, 61, 32, 34, 123, 48, 125, 32, 98, 108, 111, 99, 111, 115, 32,
-112, 97, 115, 115, 97, 114, 97, 109, 32, 100, 111, 32, 112, 114, 97, 122, 111, 32, 40, 109, 195, 161, 120, 46,
-32, 123, 49, 125, 37, 41, 34, 10, 34, 123, 48, 125, 32, 97, 117, 100, 105, 111, 32, 98, 108, 111, 99, 107,
-115, 32, 109, 105, 115, 115, 101, 100, 32, 116, 104, 101, 32, 100, 101, 97, 100, 108, 105, 110, 101, 32, 40, 99,
-114, 97, 99, 107, 108, 101, 115, 41, 44, 32, 116, 104, 101, 32, 100, 101, 118, 105, 99, 101, 32, 99, 97, 108,
-108, 101, 100, 32, 108, 97, 116, 101, 32, 123, 49, 125, 32, 116, 105, 109, 101, 115, 59, 32, 108, 111, 103, 58,
-32, 97, 117, 100, 105, 111, 45, 103, 108, 105, 116, 99, 104, 101, 115, 46, 108, 111, 103, 34, 32, 61, 32, 34,
-123, 48, 125, 32, 98, 108, 111, 99, 111, 115, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 112, 97, 115,
-115, 97, 114, 97, 109, 32, 100, 111, 32, 112, 114, 97, 122, 111, 32, 40, 101, 115, 116, 97, 108, 111, 115, 41,
-44, 32, 111, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 99, 104, 97, 109, 111, 117, 32, 97,
-116, 114, 97, 115, 97, 100, 111, 32, 123, 49, 125, 32, 118, 101, 122, 101, 115, 59, 32, 114, 101, 103, 105, 115,
-116, 114, 111, 58, 32, 97, 117, 100, 105, 111, 45, 103, 108, 105, 116, 99, 104, 101, 115, 46, 108, 111, 103, 34,
-10, 34, 72, 101, 97, 118, 105, 101, 115, 116, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 77, 97, 105, 115,
-32, 112, 101, 115, 97, 100, 111, 115, 58, 32, 123, 48, 125, 34, 10, 34, 112, 101, 97, 107, 32, 123, 48, 125,
-37, 34, 32, 61, 32, 34, 112, 105, 99, 111, 32, 123, 48, 125, 37, 34, 10, 34, 65, 117, 100, 105, 111, 32,
-100, 101, 118, 105, 99, 101, 34, 32, 61, 32, 34, 68, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100,
-101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 68, 114, 105, 118, 101, 114, 32, 115, 101, 116, 116, 105, 110,
-103, 115, 46, 46, 46, 34, 32, 61, 32, 34, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101,
-115, 32, 100, 111, 32, 100, 114, 105, 118, 101, 114, 46, 46, 46, 34, 10, 34, 80, 108, 97, 121, 32, 97, 32,
-116, 101, 115, 116, 32, 115, 111, 117, 110, 100, 34, 32, 61, 32, 34, 84, 111, 99, 97, 114, 32, 117, 109, 32,
-115, 111, 109, 32, 100, 101, 32, 116, 101, 115, 116, 101, 34, 10, 34, 65, 110, 121, 32, 77, 73, 68, 73, 32,
-99, 104, 97, 110, 110, 101, 108, 34, 32, 61, 32, 34, 81, 117, 97, 108, 113, 117, 101, 114, 32, 99, 97, 110,
-97, 108, 32, 77, 73, 68, 73, 34, 10, 34, 77, 73, 68, 73, 32, 99, 104, 97, 110, 110, 101, 108, 32, 123,
-48, 125, 34, 32, 61, 32, 34, 67, 97, 110, 97, 108, 32, 77, 73, 68, 73, 32, 123, 48, 125, 34, 10, 34,
-80, 108, 97, 121, 115, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 101, 100, 32, 99, 104, 97, 110, 110,
-101, 108, 115, 34, 32, 61, 32, 34, 84, 111, 99, 97, 32, 111, 115, 32, 99, 97, 110, 97, 105, 115, 32, 115,
-101, 108, 101, 99, 105, 111, 110, 97, 100, 111, 115, 34, 10, 34, 80, 108, 97, 121, 115, 32, 123, 48, 125, 34,
-32, 61, 32, 34, 84, 111, 99, 97, 32, 123, 48, 125, 34, 10, 34, 80, 108, 97, 121, 115, 32, 99, 104, 97,
-110, 110, 101, 108, 32, 123, 48, 125, 34, 32, 61, 32, 34, 84, 111, 99, 97, 32, 111, 32, 99, 97, 110, 97,
-108, 32, 123, 48, 125, 34, 10, 34, 69, 97, 99, 104, 32, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99,
-101, 32, 99, 97, 110, 32, 98, 101, 32, 116, 117, 114, 110, 101, 100, 32, 111, 102, 102, 44, 32, 108, 105, 115,
-116, 101, 110, 32, 116, 111, 32, 111, 110, 101, 32, 77, 73, 68, 73, 32, 99, 104, 97, 110, 110, 101, 108, 32,
-111, 110, 108, 121, 32, 97, 110, 100, 32, 112, 108, 97, 121, 32, 97, 32, 102, 105, 120, 101, 100, 32, 99, 104,
-97, 110, 110, 101, 108, 32, 111, 102, 32, 116, 104, 101, 32, 67, 104, 97, 110, 110, 101, 108, 32, 82, 97, 99,
-107, 32, 105, 110, 115, 116, 101, 97, 100, 32, 111, 102, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 101,
-100, 32, 111, 110, 101, 115, 46, 34, 32, 61, 32, 34, 67, 97, 100, 97, 32, 100, 105, 115, 112, 111, 115, 105,
-116, 105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 112, 111, 100, 101, 32, 115, 101, 114,
-32, 100, 101, 115, 108, 105, 103, 97, 100, 111, 44, 32, 111, 117, 118, 105, 114, 32, 115, 195, 179, 32, 117, 109,
-32, 99, 97, 110, 97, 108, 32, 77, 73, 68, 73, 32, 101, 32, 116, 111, 99, 97, 114, 32, 117, 109, 32, 99,
-97, 110, 97, 108, 32, 102, 105, 120, 111, 32, 100, 111, 32, 67, 104, 97, 110, 110, 101, 108, 32, 82, 97, 99,
-107, 32, 101, 109, 32, 118, 101, 122, 32, 100, 111, 115, 32, 115, 101, 108, 101, 99, 105, 111, 110, 97, 100, 111,
-115, 46, 34, 10, 34, 78, 111, 32, 77, 73, 68, 73, 32, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99,
-101, 115, 32, 102, 111, 117, 110, 100, 46, 32, 67, 111, 110, 110, 101, 99, 116, 32, 111, 110, 101, 32, 97, 110,
-100, 32, 114, 101, 102, 114, 101, 115, 104, 32, 116, 104, 101, 32, 108, 105, 115, 116, 46, 34, 32, 61, 32, 34,
-78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110,
-116, 114, 97, 100, 97, 32, 77, 73, 68, 73, 32, 101, 110, 99, 111, 110, 116, 114, 97, 100, 111, 46, 32, 67,
-111, 110, 101, 99, 116, 101, 32, 117, 109, 32, 101, 32, 97, 116, 117, 97, 108, 105, 122, 101, 32, 97, 32, 108,
-105, 115, 116, 97, 46, 34, 10, 34, 65, 115, 32, 112, 108, 97, 121, 101, 100, 34, 32, 61, 32, 34, 67, 111,
-109, 111, 32, 116, 111, 99, 97, 100, 111, 34, 10, 34, 83, 111, 102, 116, 32, 40, 108, 105, 103, 104, 116, 32,
-112, 108, 97, 121, 105, 110, 103, 32, 115, 111, 117, 110, 100, 115, 32, 108, 111, 117, 100, 101, 114, 41, 34, 32,
-61, 32, 34, 83, 117, 97, 118, 101, 32, 40, 116, 111, 99, 97, 114, 32, 108, 101, 118, 101, 32, 115, 111, 97,
-32, 109, 97, 105, 115, 32, 102, 111, 114, 116, 101, 41, 34, 10, 34, 72, 97, 114, 100, 32, 40, 110, 101, 101,
-100, 115, 32, 104, 97, 114, 100, 101, 114, 32, 112, 108, 97, 121, 105, 110, 103, 41, 34, 32, 61, 32, 34, 68,
-117, 114, 111, 32, 40, 112, 101, 100, 101, 32, 116, 111, 113, 117, 101, 32, 109, 97, 105, 115, 32, 102, 111, 114,
-116, 101, 41, 34, 10, 34, 70, 105, 120, 101, 100, 32, 40, 101, 118, 101, 114, 121, 32, 110, 111, 116, 101, 32,
-97, 116, 32, 102, 117, 108, 108, 32, 118, 101, 108, 111, 99, 105, 116, 121, 41, 34, 32, 61, 32, 34, 70, 105,
-120, 111, 32, 40, 116, 111, 100, 97, 32, 110, 111, 116, 97, 32, 99, 111, 109, 32, 118, 101, 108, 111, 99, 105,
-100, 97, 100, 101, 32, 109, 195, 161, 120, 105, 109, 97, 41, 34, 10, 34, 70, 111, 114, 32, 110, 111, 116, 101,
-115, 32, 102, 114, 111, 109, 32, 77, 73, 68, 73, 32, 100, 101, 118, 105, 99, 101, 115, 32, 40, 116, 104, 101,
-32, 116, 121, 112, 105, 110, 103, 32, 107, 101, 121, 98, 111, 97, 114, 100, 32, 97, 108, 119, 97, 121, 115, 32,
-112, 108, 97, 121, 115, 32, 97, 116, 32, 116, 104, 101, 32, 80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 39,
-115, 32, 118, 101, 108, 111, 99, 105, 116, 121, 41, 46, 34, 32, 61, 32, 34, 80, 97, 114, 97, 32, 110, 111,
-116, 97, 115, 32, 100, 101, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 115, 32, 77, 73, 68, 73,
-32, 40, 111, 32, 116, 101, 99, 108, 97, 100, 111, 32, 100, 111, 32, 99, 111, 109, 112, 117, 116, 97, 100, 111,
-114, 32, 115, 101, 109, 112, 114, 101, 32, 116, 111, 99, 97, 32, 99, 111, 109, 32, 97, 32, 118, 101, 108, 111,
-99, 105, 100, 97, 100, 101, 32, 100, 111, 32, 80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 41, 46, 34, 10,
-34, 67, 111, 110, 116, 114, 111, 108, 108, 101, 114, 32, 116, 121, 112, 101, 34, 32, 61, 32, 34, 84, 105, 112,
-111, 32, 100, 101, 32, 99, 111, 110, 116, 114, 111, 108, 97, 100, 111, 114, 34, 10, 34, 71, 101, 110, 101, 114,
-105, 99, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 58, 32, 108, 105, 110, 107, 32, 97, 32, 107, 110,
-111, 98, 32, 111, 114, 32, 102, 97, 100, 101, 114, 32, 119, 105, 116, 104, 32, 97, 32, 99, 111, 110, 116, 114,
-111, 108, 39, 115, 32, 114, 105, 103, 104, 116, 45, 99, 108, 105, 99, 107, 32, 109, 101, 110, 117, 32, 62, 32,
-76, 105, 110, 107, 32, 116, 111, 32, 77, 73, 68, 73, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 46,
-34, 32, 61, 32, 34, 67, 111, 110, 116, 114, 111, 108, 97, 100, 111, 114, 32, 103, 101, 110, 195, 169, 114, 105,
-99, 111, 58, 32, 108, 105, 103, 117, 101, 32, 117, 109, 32, 107, 110, 111, 98, 32, 111, 117, 32, 102, 97, 100,
-101, 114, 32, 112, 101, 108, 111, 32, 109, 101, 110, 117, 32, 100, 101, 32, 98, 111, 116, 195, 163, 111, 32, 100,
-105, 114, 101, 105, 116, 111, 32, 100, 101, 32, 117, 109, 32, 99, 111, 110, 116, 114, 111, 108, 101, 32, 62, 32,
-86, 105, 110, 99, 117, 108, 97, 114, 32, 97, 111, 32, 99, 111, 110, 116, 114, 111, 108, 97, 100, 111, 114, 32,
-77, 73, 68, 73, 46, 34, 10, 34, 80, 105, 99, 107, 117, 112, 32, 40, 116, 97, 107, 101, 111, 118, 101, 114,
-32, 109, 111, 100, 101, 41, 34, 32, 61, 32, 34, 67, 97, 112, 116, 117, 114, 97, 32, 40, 109, 111, 100, 111,
-32, 116, 97, 107, 101, 111, 118, 101, 114, 41, 34, 10, 34, 65, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101,
-114, 32, 109, 111, 118, 101, 115, 32, 97, 32, 112, 97, 114, 97, 109, 101, 116, 101, 114, 32, 111, 110, 108, 121,
-32, 97, 102, 116, 101, 114, 32, 114, 101, 97, 99, 104, 105, 110, 103, 32, 105, 116, 115, 32, 99, 117, 114, 114,
-101, 110, 116, 32, 118, 97, 108, 117, 101, 44, 32, 115, 111, 32, 110, 111, 116, 104, 105, 110, 103, 32, 106, 117,
-109, 112, 115, 46, 34, 32, 61, 32, 34, 85, 109, 32, 99, 111, 110, 116, 114, 111, 108, 97, 100, 111, 114, 32,
-115, 195, 179, 32, 109, 111, 118, 101, 32, 117, 109, 32, 112, 97, 114, 195, 162, 109, 101, 116, 114, 111, 32, 100,
-101, 112, 111, 105, 115, 32, 100, 101, 32, 97, 108, 99, 97, 110, 195, 167, 97, 114, 32, 111, 32, 118, 97, 108,
-111, 114, 32, 97, 116, 117, 97, 108, 32, 100, 101, 108, 101, 44, 32, 101, 110, 116, 195, 163, 111, 32, 110, 97,
-100, 97, 32, 112, 117, 108, 97, 46, 34, 10, 34, 76, 105, 110, 107, 115, 32, 105, 110, 32, 116, 104, 105, 115,
-32, 112, 114, 111, 106, 101, 99, 116, 34, 32, 61, 32, 34, 86, 195, 173, 110, 99, 117, 108, 111, 115, 32, 110,
-101, 115, 116, 101, 32, 112, 114, 111, 106, 101, 116, 111, 34, 10, 34, 99, 104, 46, 32, 123, 48, 125, 34, 32,
-61, 32, 34, 99, 97, 110, 46, 32, 123, 48, 125, 34, 10, 34, 73, 110, 112, 117, 116, 32, 100, 101, 118, 105,
-99, 101, 115, 34, 32, 61, 32, 34, 68, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 115, 32, 100, 101, 32,
-101, 110, 116, 114, 97, 100, 97, 34, 10, 34, 78, 111, 116, 101, 115, 34, 32, 61, 32, 34, 78, 111, 116, 97,
-115, 34, 10, 34, 67, 111, 110, 116, 114, 111, 108, 108, 101, 114, 115, 34, 32, 61, 32, 34, 67, 111, 110, 116,
-114, 111, 108, 97, 100, 111, 114, 101, 115, 34, 10, 34, 82, 101, 102, 114, 101, 115, 104, 32, 100, 101, 118, 105,
-99, 101, 32, 108, 105, 115, 116, 34, 32, 61, 32, 34, 65, 116, 117, 97, 108, 105, 122, 97, 114, 32, 108, 105,
-115, 116, 97, 32, 100, 101, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 115, 34, 10, 34, 82, 101,
-109, 111, 118, 101, 32, 108, 105, 110, 107, 34, 32, 61, 32, 34, 82, 101, 109, 111, 118, 101, 114, 32, 118, 195,
-173, 110, 99, 117, 108, 111, 34, 10, 34, 82, 101, 109, 111, 118, 101, 32, 97, 108, 108, 34, 32, 61, 32, 34,
-82, 101, 109, 111, 118, 101, 114, 32, 116, 111, 100, 111, 115, 34, 10, 34, 69, 118, 101, 114, 121, 119, 104, 101,
-114, 101, 34, 32, 61, 32, 34, 69, 109, 32, 116, 111, 100, 111, 32, 108, 117, 103, 97, 114, 34, 10, 34, 80,
-114, 101, 115, 115, 32, 116, 104, 101, 32, 110, 101, 119, 32, 107, 101, 121, 115, 32, 110, 111, 119, 32, 40, 69,
-115, 99, 32, 99, 97, 110, 99, 101, 108, 115, 41, 34, 32, 61, 32, 34, 80, 114, 101, 115, 115, 105, 111, 110,
-101, 32, 97, 115, 32, 110, 111, 118, 97, 115, 32, 116, 101, 99, 108, 97, 115, 32, 97, 103, 111, 114, 97, 32,
-40, 69, 115, 99, 32, 99, 97, 110, 99, 101, 108, 97, 41, 34, 10, 34, 83, 101, 97, 114, 99, 104, 32, 97,
-110, 32, 97, 99, 116, 105, 111, 110, 32, 111, 114, 32, 97, 32, 107, 101, 121, 32, 40, 101, 46, 103, 46, 32,
-92, 34, 67, 116, 114, 108, 43, 76, 92, 34, 41, 34, 32, 61, 32, 34, 66, 117, 115, 99, 97, 114, 32, 117,
-109, 97, 32, 97, 195, 167, 195, 163, 111, 32, 111, 117, 32, 116, 101, 99, 108, 97, 32, 40, 101, 120, 46, 58,
-32, 92, 34, 67, 116, 114, 108, 43, 76, 92, 34, 41, 34, 10, 34, 65, 108, 108, 32, 112, 108, 97, 99, 101,
-115, 34, 32, 61, 32, 34, 84, 111, 100, 111, 115, 32, 111, 115, 32, 108, 117, 103, 97, 114, 101, 115, 34, 10,
-34, 67, 104, 97, 110, 103, 101, 100, 32, 111, 110, 108, 121, 34, 32, 61, 32, 34, 83, 195, 179, 32, 97, 108,
-116, 101, 114, 97, 100, 111, 115, 34, 10, 34, 40, 110, 111, 32, 115, 104, 111, 114, 116, 99, 117, 116, 41, 34,
-32, 61, 32, 34, 40, 115, 101, 109, 32, 97, 116, 97, 108, 104, 111, 41, 34, 10, 34, 123, 48, 125, 32, 97,
-99, 116, 105, 111, 110, 115, 34, 32, 61, 32, 34, 123, 48, 125, 32, 97, 195, 167, 195, 181, 101, 115, 34, 10,
-34, 83, 101, 108, 101, 99, 116, 32, 97, 110, 32, 97, 99, 116, 105, 111, 110, 32, 116, 111, 32, 99, 104, 97,
-110, 103, 101, 32, 105, 116, 115, 32, 115, 104, 111, 114, 116, 99, 117, 116, 34, 32, 61, 32, 34, 83, 101, 108,
-101, 99, 105, 111, 110, 101, 32, 117, 109, 97, 32, 97, 195, 167, 195, 163, 111, 32, 112, 97, 114, 97, 32, 97,
-108, 116, 101, 114, 97, 114, 32, 111, 32, 97, 116, 97, 108, 104, 111, 34, 10, 34, 87, 111, 114, 107, 115, 58,
-32, 123, 48, 125, 34, 32, 61, 32, 34, 70, 117, 110, 99, 105, 111, 110, 97, 58, 32, 123, 48, 125, 34, 10,
-34, 119, 105, 110, 115, 32, 111, 118, 101, 114, 32, 97, 32, 115, 104, 111, 114, 116, 99, 117, 116, 32, 111, 102,
-32, 116, 104, 101, 32, 115, 97, 109, 101, 32, 107, 101, 121, 115, 32, 116, 104, 97, 116, 32, 119, 111, 114, 107,
-115, 32, 101, 118, 101, 114, 121, 119, 104, 101, 114, 101, 34, 32, 61, 32, 34, 118, 101, 110, 99, 101, 32, 117,
-109, 32, 97, 116, 97, 108, 104, 111, 32, 99, 111, 109, 32, 97, 115, 32, 109, 101, 115, 109, 97, 115, 32, 116,
-101, 99, 108, 97, 115, 32, 113, 117, 101, 32, 102, 117, 110, 99, 105, 111, 110, 97, 32, 101, 109, 32, 116, 111,
-100, 111, 32, 108, 117, 103, 97, 114, 34, 10, 34, 123, 48, 125, 32, 105, 115, 32, 117, 115, 101, 100, 32, 98,
-121, 32, 123, 49, 125, 32, 105, 110, 32, 116, 104, 101, 32, 115, 97, 109, 101, 32, 112, 108, 97, 99, 101, 46,
-32, 65, 115, 115, 105, 103, 110, 32, 109, 111, 118, 101, 115, 32, 105, 116, 32, 104, 101, 114, 101, 46, 34, 32,
-61, 32, 34, 123, 48, 125, 32, 195, 169, 32, 117, 115, 97, 100, 111, 32, 112, 111, 114, 32, 123, 49, 125, 32,
-110, 111, 32, 109, 101, 115, 109, 111, 32, 108, 117, 103, 97, 114, 46, 32, 65, 116, 114, 105, 98, 117, 105, 114,
-32, 109, 111, 118, 101, 32, 112, 97, 114, 97, 32, 99, 195, 161, 46, 34, 10, 34, 82, 101, 115, 101, 116, 32,
-97, 108, 108, 32, 115, 104, 111, 114, 116, 99, 117, 116, 115, 34, 32, 61, 32, 34, 82, 101, 115, 116, 97, 117,
-114, 97, 114, 32, 116, 111, 100, 111, 115, 32, 111, 115, 32, 97, 116, 97, 108, 104, 111, 115, 34, 10, 34, 69,
-118, 101, 114, 121, 32, 115, 104, 111, 114, 116, 99, 117, 116, 32, 103, 111, 101, 115, 32, 98, 97, 99, 107, 32,
-116, 111, 32, 76, 89, 78, 88, 39, 115, 32, 100, 101, 102, 97, 117, 108, 116, 32, 107, 101, 121, 115, 46, 34,
-32, 61, 32, 34, 84, 111, 100, 111, 115, 32, 111, 115, 32, 97, 116, 97, 108, 104, 111, 115, 32, 118, 111, 108,
-116, 97, 109, 32, 195, 160, 115, 32, 116, 101, 99, 108, 97, 115, 32, 112, 97, 100, 114, 195, 163, 111, 32, 100,
-111, 32, 76, 89, 78, 88, 46, 34, 10, 34, 82, 101, 115, 101, 116, 32, 97, 108, 108, 34, 32, 61, 32, 34,
-82, 101, 115, 116, 97, 117, 114, 97, 114, 32, 116, 117, 100, 111, 34, 10, 34, 65, 100, 100, 32, 115, 104, 111,
-114, 116, 99, 117, 116, 34, 32, 61, 32, 34, 65, 100, 105, 99, 105, 111, 110, 97, 114, 32, 97, 116, 97, 108,
-104, 111, 34, 10, 34, 67, 104, 97, 110, 103, 101, 34, 32, 61, 32, 34, 65, 108, 116, 101, 114, 97, 114, 34,
-10, 34, 82, 101, 115, 101, 116, 32, 97, 108, 108, 46, 46, 46, 34, 32, 61, 32, 34, 82, 101, 115, 116, 97,
-117, 114, 97, 114, 32, 116, 117, 100, 111, 46, 46, 46, 34, 10, 34, 79, 112, 101, 110, 32, 107, 101, 121, 115,
-46, 106, 115, 111, 110, 34, 32, 61, 32, 34, 65, 98, 114, 105, 114, 32, 107, 101, 121, 115, 46, 106, 115, 111,
-110, 34, 10, 34, 65, 115, 115, 105, 103, 110, 32, 97, 110, 121, 119, 97, 121, 34, 32, 61, 32, 34, 65, 116,
-114, 105, 98, 117, 105, 114, 32, 109, 101, 115, 109, 111, 32, 97, 115, 115, 105, 109, 34, 10, 34, 77, 97, 110,
-97, 103, 101, 32, 115, 104, 111, 114, 116, 99, 117, 116, 115, 34, 32, 61, 32, 34, 71, 101, 114, 101, 110, 99,
-105, 97, 114, 32, 97, 116, 97, 108, 104, 111, 115, 34, 10, 34, 40, 111, 112, 101, 110, 32, 97, 110, 32, 111,
-117, 116, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 102, 105, 114, 115, 116, 41, 34, 32, 61, 32, 34,
-40, 97, 98, 114, 97, 32, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32,
-115, 97, 195, 173, 100, 97, 32, 97, 110, 116, 101, 115, 41, 34, 10, 34, 40, 99, 104, 111, 111, 115, 101, 41,
-34, 32, 61, 32, 34, 40, 101, 115, 99, 111, 108, 104, 97, 41, 34, 10, 34, 82, 101, 99, 111, 114, 100, 105,
-110, 103, 32, 102, 105, 108, 116, 101, 114, 34, 32, 61, 32, 34, 70, 105, 108, 116, 114, 111, 32, 100, 101, 32,
-103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 34, 10, 34, 65, 117, 100, 105, 111, 32, 111, 102, 32, 116, 104,
-101, 32, 97, 114, 109, 101, 100, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115, 101, 114, 116, 115, 32, 40, 98,
-101, 99, 111, 109, 101, 115, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 99, 108, 105, 112, 115, 41, 34, 32,
-61, 32, 34, 195, 129, 117, 100, 105, 111, 32, 100, 111, 115, 32, 105, 110, 115, 101, 114, 116, 115, 32, 100, 111,
-32, 109, 105, 120, 101, 114, 32, 97, 114, 109, 97, 100, 111, 115, 32, 40, 118, 105, 114, 97, 32, 99, 108, 105,
-112, 101, 115, 32, 110, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 41, 34, 10, 34, 65, 115, 107, 32, 119,
-104, 97, 116, 32, 116, 111, 32, 114, 101, 99, 111, 114, 100, 32, 119, 104, 101, 110, 32, 114, 101, 99, 111, 114,
-100, 105, 110, 103, 32, 115, 116, 97, 114, 116, 115, 34, 32, 61, 32, 34, 80, 101, 114, 103, 117, 110, 116, 97,
-114, 32, 111, 32, 113, 117, 101, 32, 103, 114, 97, 118, 97, 114, 32, 97, 111, 32, 105, 110, 105, 99, 105, 97,
-114, 32, 97, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 34, 10, 34, 65, 114, 109, 32, 116, 104, 101,
-32, 115, 101, 108, 101, 99, 116, 101, 100, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115, 101, 114, 116, 32, 102,
-111, 114, 32, 97, 117, 100, 105, 111, 32, 40, 99, 104, 111, 111, 115, 101, 32, 105, 116, 115, 32, 105, 110, 112,
-117, 116, 41, 46, 46, 46, 34, 32, 61, 32, 34, 65, 114, 109, 97, 114, 32, 111, 32, 105, 110, 115, 101, 114,
-116, 32, 115, 101, 108, 101, 99, 105, 111, 110, 97, 100, 111, 32, 100, 111, 32, 109, 105, 120, 101, 114, 32, 112,
-97, 114, 97, 32, 195, 161, 117, 100, 105, 111, 32, 40, 101, 115, 99, 111, 108, 104, 101, 114, 32, 97, 32, 101,
-110, 116, 114, 97, 100, 97, 41, 46, 46, 46, 34, 10, 34, 65, 117, 100, 105, 111, 32, 115, 101, 116, 116, 105,
-110, 103, 115, 32, 40, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 41, 46, 46, 46, 34, 32, 61,
-32, 34, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115, 32, 100, 101, 32, 195, 161, 117,
-100, 105, 111, 32, 40, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114,
-97, 100, 97, 41, 46, 46, 46, 34, 10, 34, 67, 108, 105, 112, 32, 109, 101, 110, 117, 58, 32, 91, 76, 77,
-66, 93, 32, 111, 114, 32, 91, 82, 77, 66, 93, 32, 111, 112, 101, 110, 115, 32, 105, 116, 32, 40, 109, 97,
-107, 101, 32, 117, 110, 105, 113, 117, 101, 44, 32, 114, 101, 110, 97, 109, 101, 32, 97, 110, 100, 32, 99, 111,
-108, 111, 117, 114, 44, 32, 99, 104, 111, 112, 44, 32, 115, 101, 108, 101, 99, 116, 32, 115, 111, 117, 114, 99,
-101, 46, 46, 46, 41, 34, 32, 61, 32, 34, 77, 101, 110, 117, 32, 100, 111, 32, 99, 108, 105, 112, 101, 58,
-32, 91, 76, 77, 66, 93, 32, 111, 117, 32, 91, 82, 77, 66, 93, 32, 97, 98, 114, 101, 32, 40, 116, 111,
-114, 110, 97, 114, 32, 195, 186, 110, 105, 99, 111, 44, 32, 114, 101, 110, 111, 109, 101, 97, 114, 32, 101, 32,
-99, 111, 108, 111, 114, 105, 114, 44, 32, 112, 105, 99, 111, 116, 97, 114, 44, 32, 101, 115, 99, 111, 108, 104,
-101, 114, 32, 97, 32, 111, 114, 105, 103, 101, 109, 46, 46, 46, 41, 34, 10, 34, 84, 104, 101, 32, 105, 99,
-111, 110, 32, 97, 116, 32, 116, 104, 101, 32, 116, 111, 112, 32, 108, 101, 102, 116, 32, 111, 112, 101, 110, 115,
-32, 116, 104, 101, 32, 99, 108, 105, 112, 32, 109, 101, 110, 117, 32, 40, 109, 97, 107, 101, 32, 117, 110, 105,
-113, 117, 101, 44, 32, 114, 101, 110, 97, 109, 101, 46, 46, 46, 41, 34, 32, 61, 32, 34, 79, 32, 195, 173,
-99, 111, 110, 101, 32, 110, 111, 32, 99, 97, 110, 116, 111, 32, 115, 117, 112, 101, 114, 105, 111, 114, 32, 101,
-115, 113, 117, 101, 114, 100, 111, 32, 97, 98, 114, 101, 32, 111, 32, 109, 101, 110, 117, 32, 100, 111, 32, 99,
-108, 105, 112, 101, 32, 40, 116, 111, 114, 110, 97, 114, 32, 195, 186, 110, 105, 99, 111, 44, 32, 114, 101, 110,
-111, 109, 101, 97, 114, 46, 46, 46, 41, 34, 10, 34, 87, 104, 97, 116, 32, 119, 111, 117, 108, 100, 32, 121,
-111, 117, 32, 108, 105, 107, 101, 32, 116, 111, 32, 114, 101, 99, 111, 114, 100, 63, 34, 32, 61, 32, 34, 79,
-32, 113, 117, 101, 32, 118, 111, 99, 195, 170, 32, 113, 117, 101, 114, 32, 103, 114, 97, 118, 97, 114, 63, 34,
-10, 34, 68, 111, 110, 39, 116, 32, 97, 115, 107, 32, 97, 103, 97, 105, 110, 32, 40, 114, 105, 103, 104, 116,
-45, 99, 108, 105, 99, 107, 32, 116, 104, 101, 32, 114, 101, 99, 111, 114, 100, 32, 98, 117, 116, 116, 111, 110,
-32, 102, 111, 114, 32, 116, 104, 101, 32, 114, 101, 99, 111, 114, 100, 105, 110, 103, 32, 102, 105, 108, 116, 101,
-114, 41, 34, 32, 61, 32, 34, 78, 195, 163, 111, 32, 112, 101, 114, 103, 117, 110, 116, 97, 114, 32, 100, 101,
-32, 110, 111, 118, 111, 32, 40, 99, 108, 105, 113, 117, 101, 32, 100, 105, 114, 101, 105, 116, 111, 32, 110, 111,
-32, 98, 111, 116, 195, 163, 111, 32, 100, 101, 32, 103, 114, 97, 118, 97, 114, 32, 112, 97, 114, 97, 32, 111,
-32, 102, 105, 108, 116, 114, 111, 32, 100, 101, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 41, 34, 10,
-34, 65, 117, 100, 105, 111, 44, 32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 80, 108, 97, 121, 108, 105, 115,
-116, 32, 97, 115, 32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 99, 108, 105, 112, 34, 32, 61, 32, 34, 195,
-129, 117, 100, 105, 111, 44, 32, 110, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 99, 111, 109, 111, 32,
-99, 108, 105, 112, 101, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 65, 114, 109, 115, 32, 116,
+109, 97, 110, 104, 111, 32, 100, 111, 32, 98, 117, 102, 102, 101, 114, 34, 10, 34, 87, 105, 110, 100, 111, 119,
+115, 32, 65, 117, 100, 105, 111, 32, 40, 115, 104, 97, 114, 101, 100, 41, 34, 32, 61, 32, 34, 87, 105, 110,
+100, 111, 119, 115, 32, 65, 117, 100, 105, 111, 32, 40, 99, 111, 109, 112, 97, 114, 116, 105, 108, 104, 97, 100,
+111, 41, 34, 10, 34, 87, 105, 110, 100, 111, 119, 115, 32, 65, 117, 100, 105, 111, 32, 40, 115, 104, 97, 114,
+101, 100, 44, 32, 108, 111, 119, 45, 108, 97, 116, 101, 110, 99, 121, 32, 112, 101, 114, 105, 111, 100, 41, 34,
+32, 61, 32, 34, 87, 105, 110, 100, 111, 119, 115, 32, 65, 117, 100, 105, 111, 32, 40, 99, 111, 109, 112, 97,
+114, 116, 105, 108, 104, 97, 100, 111, 44, 32, 112, 101, 114, 195, 173, 111, 100, 111, 32, 100, 101, 32, 98, 97,
+105, 120, 97, 32, 108, 97, 116, 195, 170, 110, 99, 105, 97, 41, 34, 10, 34, 87, 105, 110, 100, 111, 119, 115,
+32, 65, 117, 100, 105, 111, 32, 40, 101, 120, 99, 108, 117, 115, 105, 118, 101, 44, 32, 108, 111, 119, 101, 115,
+116, 32, 108, 97, 116, 101, 110, 99, 121, 41, 34, 32, 61, 32, 34, 87, 105, 110, 100, 111, 119, 115, 32, 65,
+117, 100, 105, 111, 32, 40, 101, 120, 99, 108, 117, 115, 105, 118, 111, 44, 32, 109, 101, 110, 111, 114, 32, 108,
+97, 116, 195, 170, 110, 99, 105, 97, 41, 34, 10, 34, 68, 105, 114, 101, 99, 116, 83, 111, 117, 110, 100, 32,
+40, 108, 101, 103, 97, 99, 121, 41, 34, 32, 61, 32, 34, 68, 105, 114, 101, 99, 116, 83, 111, 117, 110, 100,
+32, 40, 97, 110, 116, 105, 103, 111, 41, 34, 10, 34, 79, 116, 104, 101, 114, 32, 112, 114, 111, 103, 114, 97,
+109, 115, 32, 107, 101, 101, 112, 32, 116, 104, 101, 105, 114, 32, 115, 111, 117, 110, 100, 46, 32, 87, 105, 110,
+100, 111, 119, 115, 32, 109, 105, 120, 101, 115, 32, 101, 118, 101, 114, 121, 32, 112, 114, 111, 103, 114, 97, 109,
+32, 105, 110, 32, 115, 116, 101, 112, 115, 32, 111, 102, 32, 123, 48, 125, 32, 109, 115, 32, 111, 110, 32, 116,
+104, 105, 115, 32, 100, 101, 118, 105, 99, 101, 44, 32, 115, 111, 32, 116, 104, 101, 32, 98, 117, 102, 102, 101,
+114, 32, 99, 97, 110, 110, 111, 116, 32, 103, 111, 32, 98, 101, 108, 111, 119, 32, 116, 104, 97, 116, 46, 32,
+70, 111, 114, 32, 108, 111, 119, 101, 114, 32, 108, 97, 116, 101, 110, 99, 121, 32, 99, 104, 111, 111, 115, 101,
+32, 116, 104, 101, 32, 101, 120, 99, 108, 117, 115, 105, 118, 101, 32, 109, 111, 100, 101, 32, 111, 114, 32, 97,
+110, 32, 65, 83, 73, 79, 32, 100, 114, 105, 118, 101, 114, 46, 34, 32, 61, 32, 34, 79, 115, 32, 111, 117,
+116, 114, 111, 115, 32, 112, 114, 111, 103, 114, 97, 109, 97, 115, 32, 99, 111, 110, 116, 105, 110, 117, 97, 109,
+32, 99, 111, 109, 32, 115, 111, 109, 46, 32, 79, 32, 87, 105, 110, 100, 111, 119, 115, 32, 109, 105, 115, 116,
+117, 114, 97, 32, 116, 111, 100, 111, 115, 32, 111, 115, 32, 112, 114, 111, 103, 114, 97, 109, 97, 115, 32, 101,
+109, 32, 112, 97, 115, 115, 111, 115, 32, 100, 101, 32, 123, 48, 125, 32, 109, 115, 32, 110, 101, 115, 116, 101,
+32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 44, 32, 101, 110, 116, 195, 163, 111, 32, 111, 32, 98,
+117, 102, 102, 101, 114, 32, 110, 195, 163, 111, 32, 102, 105, 99, 97, 32, 109, 101, 110, 111, 114, 32, 113, 117,
+101, 32, 105, 115, 115, 111, 46, 32, 80, 97, 114, 97, 32, 108, 97, 116, 195, 170, 110, 99, 105, 97, 32, 109,
+101, 110, 111, 114, 32, 101, 115, 99, 111, 108, 104, 97, 32, 111, 32, 109, 111, 100, 111, 32, 101, 120, 99, 108,
+117, 115, 105, 118, 111, 32, 111, 117, 32, 117, 109, 32, 100, 114, 105, 118, 101, 114, 32, 65, 83, 73, 79, 46,
+34, 10, 34, 84, 104, 105, 115, 32, 100, 101, 118, 105, 99, 101, 32, 100, 111, 101, 115, 32, 110, 111, 116, 32,
+115, 117, 112, 112, 111, 114, 116, 32, 97, 32, 115, 104, 111, 114, 116, 101, 114, 32, 112, 101, 114, 105, 111, 100,
+32, 105, 110, 32, 115, 104, 97, 114, 101, 100, 32, 109, 111, 100, 101, 32, 40, 105, 116, 32, 115, 116, 97, 121,
+115, 32, 97, 116, 32, 123, 48, 125, 32, 109, 115, 41, 46, 32, 85, 115, 101, 32, 116, 104, 101, 32, 101, 120,
+99, 108, 117, 115, 105, 118, 101, 32, 109, 111, 100, 101, 32, 111, 114, 32, 97, 110, 32, 65, 83, 73, 79, 32,
+100, 114, 105, 118, 101, 114, 32, 102, 111, 114, 32, 108, 111, 119, 101, 114, 32, 108, 97, 116, 101, 110, 99, 121,
+46, 34, 32, 61, 32, 34, 69, 115, 116, 101, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 110,
+195, 163, 111, 32, 97, 99, 101, 105, 116, 97, 32, 117, 109, 32, 112, 101, 114, 195, 173, 111, 100, 111, 32, 109,
+101, 110, 111, 114, 32, 110, 111, 32, 109, 111, 100, 111, 32, 99, 111, 109, 112, 97, 114, 116, 105, 108, 104, 97,
+100, 111, 32, 40, 102, 105, 99, 97, 32, 101, 109, 32, 123, 48, 125, 32, 109, 115, 41, 46, 32, 85, 115, 101,
+32, 111, 32, 109, 111, 100, 111, 32, 101, 120, 99, 108, 117, 115, 105, 118, 111, 32, 111, 117, 32, 117, 109, 32,
+100, 114, 105, 118, 101, 114, 32, 65, 83, 73, 79, 32, 112, 97, 114, 97, 32, 108, 97, 116, 195, 170, 110, 99,
+105, 97, 32, 109, 101, 110, 111, 114, 46, 34, 10, 34, 83, 104, 97, 114, 101, 100, 32, 108, 105, 107, 101, 32,
+116, 104, 101, 32, 110, 111, 114, 109, 97, 108, 32, 109, 111, 100, 101, 44, 32, 98, 117, 116, 32, 97, 115, 107,
+115, 32, 87, 105, 110, 100, 111, 119, 115, 32, 102, 111, 114, 32, 97, 32, 115, 104, 111, 114, 116, 101, 114, 32,
+109, 105, 120, 105, 110, 103, 32, 112, 101, 114, 105, 111, 100, 46, 32, 79, 110, 108, 121, 32, 115, 111, 109, 101,
+32, 100, 114, 105, 118, 101, 114, 115, 32, 115, 117, 112, 112, 111, 114, 116, 32, 105, 116, 46, 34, 32, 61, 32,
+34, 67, 111, 109, 112, 97, 114, 116, 105, 108, 104, 97, 100, 111, 32, 99, 111, 109, 111, 32, 111, 32, 109, 111,
+100, 111, 32, 110, 111, 114, 109, 97, 108, 44, 32, 109, 97, 115, 32, 112, 101, 100, 101, 32, 97, 111, 32, 87,
+105, 110, 100, 111, 119, 115, 32, 117, 109, 32, 112, 101, 114, 195, 173, 111, 100, 111, 32, 100, 101, 32, 109, 105,
+120, 97, 103, 101, 109, 32, 109, 101, 110, 111, 114, 46, 32, 83, 195, 179, 32, 97, 108, 103, 117, 110, 115, 32,
+100, 114, 105, 118, 101, 114, 115, 32, 97, 99, 101, 105, 116, 97, 109, 46, 34, 10, 34, 76, 89, 78, 88, 32,
+117, 115, 101, 115, 32, 116, 104, 101, 32, 100, 101, 118, 105, 99, 101, 32, 97, 108, 111, 110, 101, 58, 32, 116,
+104, 101, 32, 108, 111, 119, 101, 115, 116, 32, 108, 97, 116, 101, 110, 99, 121, 32, 119, 105, 116, 104, 111, 117,
+116, 32, 65, 83, 73, 79, 44, 32, 98, 117, 116, 32, 111, 116, 104, 101, 114, 32, 112, 114, 111, 103, 114, 97,
+109, 115, 32, 103, 111, 32, 115, 105, 108, 101, 110, 116, 32, 119, 104, 105, 108, 101, 32, 76, 89, 78, 88, 32,
+112, 108, 97, 121, 115, 46, 34, 32, 61, 32, 34, 79, 32, 76, 89, 78, 88, 32, 117, 115, 97, 32, 111, 32,
+100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 115, 111, 122, 105, 110, 104, 111, 58, 32, 97, 32, 109,
+101, 110, 111, 114, 32, 108, 97, 116, 195, 170, 110, 99, 105, 97, 32, 115, 101, 109, 32, 65, 83, 73, 79, 44,
+32, 109, 97, 115, 32, 111, 115, 32, 111, 117, 116, 114, 111, 115, 32, 112, 114, 111, 103, 114, 97, 109, 97, 115,
+32, 102, 105, 99, 97, 109, 32, 109, 117, 100, 111, 115, 32, 101, 110, 113, 117, 97, 110, 116, 111, 32, 111, 32,
+76, 89, 78, 88, 32, 116, 111, 99, 97, 46, 34, 10, 34, 79, 108, 100, 32, 87, 105, 110, 100, 111, 119, 115,
+32, 97, 117, 100, 105, 111, 32, 112, 97, 116, 104, 32, 119, 105, 116, 104, 32, 104, 105, 103, 104, 32, 108, 97,
+116, 101, 110, 99, 121, 46, 32, 85, 115, 101, 32, 105, 116, 32, 111, 110, 108, 121, 32, 119, 104, 101, 110, 32,
+116, 104, 101, 32, 111, 116, 104, 101, 114, 115, 32, 102, 97, 105, 108, 46, 34, 32, 61, 32, 34, 67, 97, 109,
+105, 110, 104, 111, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 97, 110, 116, 105, 103, 111, 32, 100, 111,
+32, 87, 105, 110, 100, 111, 119, 115, 44, 32, 99, 111, 109, 32, 108, 97, 116, 195, 170, 110, 99, 105, 97, 32,
+97, 108, 116, 97, 46, 32, 85, 115, 101, 32, 115, 195, 179, 32, 113, 117, 97, 110, 100, 111, 32, 111, 115, 32,
+111, 117, 116, 114, 111, 115, 32, 102, 97, 108, 104, 97, 114, 101, 109, 46, 34, 10, 34, 76, 111, 119, 45, 108,
+97, 116, 101, 110, 99, 121, 32, 100, 114, 105, 118, 101, 114, 115, 46, 32, 76, 89, 78, 88, 32, 65, 83, 73,
+79, 44, 32, 70, 76, 32, 83, 116, 117, 100, 105, 111, 32, 65, 83, 73, 79, 32, 97, 110, 100, 32, 65, 83,
+73, 79, 52, 65, 76, 76, 32, 119, 111, 114, 107, 32, 119, 105, 116, 104, 32, 97, 110, 121, 32, 100, 101, 118,
+105, 99, 101, 59, 32, 97, 32, 109, 97, 110, 117, 102, 97, 99, 116, 117, 114, 101, 114, 39, 115, 32, 65, 83,
+73, 79, 32, 100, 114, 105, 118, 101, 114, 32, 119, 111, 114, 107, 115, 32, 119, 105, 116, 104, 32, 105, 116, 115,
+32, 111, 119, 110, 32, 100, 101, 118, 105, 99, 101, 46, 34, 32, 61, 32, 34, 68, 114, 105, 118, 101, 114, 115,
+32, 100, 101, 32, 98, 97, 105, 120, 97, 32, 108, 97, 116, 195, 170, 110, 99, 105, 97, 46, 32, 76, 89, 78,
+88, 32, 65, 83, 73, 79, 44, 32, 70, 76, 32, 83, 116, 117, 100, 105, 111, 32, 65, 83, 73, 79, 32, 101,
+32, 65, 83, 73, 79, 52, 65, 76, 76, 32, 102, 117, 110, 99, 105, 111, 110, 97, 109, 32, 99, 111, 109, 32,
+113, 117, 97, 108, 113, 117, 101, 114, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 59, 32, 111, 32,
+100, 114, 105, 118, 101, 114, 32, 65, 83, 73, 79, 32, 100, 101, 32, 117, 109, 32, 102, 97, 98, 114, 105, 99,
+97, 110, 116, 101, 32, 102, 117, 110, 99, 105, 111, 110, 97, 32, 99, 111, 109, 32, 111, 32, 112, 114, 195, 179,
+112, 114, 105, 111, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 46, 34, 10, 34, 83, 109, 97, 108,
+108, 101, 114, 32, 98, 117, 102, 102, 101, 114, 115, 32, 97, 110, 115, 119, 101, 114, 32, 102, 97, 115, 116, 101,
+114, 32, 119, 104, 101, 110, 32, 121, 111, 117, 32, 112, 108, 97, 121, 59, 32, 108, 97, 114, 103, 101, 114, 32,
+111, 110, 101, 115, 32, 103, 105, 118, 101, 32, 116, 104, 101, 32, 67, 80, 85, 32, 109, 111, 114, 101, 32, 114,
+111, 111, 109, 32, 40, 102, 101, 119, 101, 114, 32, 99, 108, 105, 99, 107, 115, 41, 46, 34, 32, 61, 32, 34,
+66, 117, 102, 102, 101, 114, 115, 32, 109, 101, 110, 111, 114, 101, 115, 32, 114, 101, 115, 112, 111, 110, 100, 101,
+109, 32, 109, 97, 105, 115, 32, 114, 195, 161, 112, 105, 100, 111, 32, 113, 117, 97, 110, 100, 111, 32, 118, 111,
+99, 195, 170, 32, 116, 111, 99, 97, 59, 32, 109, 97, 105, 111, 114, 101, 115, 32, 100, 195, 163, 111, 32, 109,
+97, 105, 115, 32, 102, 111, 108, 103, 97, 32, 195, 160, 32, 67, 80, 85, 32, 40, 109, 101, 110, 111, 115, 32,
+101, 115, 116, 97, 108, 111, 115, 41, 46, 34, 10, 34, 87, 105, 116, 104, 32, 114, 101, 99, 111, 114, 100, 105,
+110, 103, 32, 111, 110, 44, 32, 116, 104, 101, 32, 115, 111, 117, 110, 100, 32, 99, 97, 114, 100, 32, 105, 110,
+112, 117, 116, 32, 98, 101, 99, 111, 109, 101, 115, 32, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 99,
+108, 105, 112, 32, 40, 116, 104, 101, 32, 73, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 97, 98,
+111, 118, 101, 41, 46, 34, 32, 61, 32, 34, 67, 111, 109, 32, 97, 32, 103, 114, 97, 118, 97, 195, 167, 195,
+163, 111, 32, 108, 105, 103, 97, 100, 97, 44, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 97, 32,
+112, 108, 97, 99, 97, 32, 100, 101, 32, 115, 111, 109, 32, 118, 105, 114, 97, 32, 117, 109, 32, 99, 108, 105,
+112, 101, 32, 110, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 40, 111, 32, 100, 105, 115, 112, 111, 115,
+105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 97, 99, 105, 109, 97, 41, 46,
+34, 10, 34, 123, 48, 125, 32, 115, 97, 109, 112, 108, 101, 115, 32, 40, 123, 49, 125, 32, 109, 115, 41, 34,
+32, 61, 32, 34, 123, 48, 125, 32, 97, 109, 111, 115, 116, 114, 97, 115, 32, 40, 123, 49, 125, 32, 109, 115,
+41, 34, 10, 34, 78, 111, 32, 97, 117, 100, 105, 111, 32, 100, 101, 118, 105, 99, 101, 32, 105, 115, 32, 111,
+112, 101, 110, 58, 32, 99, 104, 111, 111, 115, 101, 32, 97, 110, 32, 111, 117, 116, 112, 117, 116, 32, 100, 101,
+118, 105, 99, 101, 46, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105,
+116, 105, 118, 111, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 97, 98, 101, 114, 116, 111, 58, 32, 101,
+115, 99, 111, 108, 104, 97, 32, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101,
+32, 115, 97, 195, 173, 100, 97, 46, 34, 10, 34, 123, 48, 125, 32, 105, 115, 32, 114, 117, 110, 110, 105, 110,
+103, 58, 32, 123, 49, 125, 32, 72, 122, 44, 32, 111, 117, 116, 112, 117, 116, 32, 108, 97, 116, 101, 110, 99,
+121, 32, 123, 50, 125, 32, 109, 115, 34, 32, 61, 32, 34, 123, 48, 125, 32, 101, 115, 116, 195, 161, 32, 114,
+111, 100, 97, 110, 100, 111, 58, 32, 123, 49, 125, 32, 72, 122, 44, 32, 108, 97, 116, 195, 170, 110, 99, 105,
+97, 32, 100, 101, 32, 115, 97, 195, 173, 100, 97, 32, 123, 50, 125, 32, 109, 115, 34, 10, 34, 65, 117, 100,
+105, 111, 32, 67, 80, 85, 32, 108, 111, 97, 100, 58, 32, 123, 48, 125, 37, 34, 32, 61, 32, 34, 67, 97,
+114, 103, 97, 32, 100, 101, 32, 67, 80, 85, 32, 100, 111, 32, 195, 161, 117, 100, 105, 111, 58, 32, 123, 48,
+125, 37, 34, 10, 34, 123, 48, 125, 32, 100, 114, 111, 112, 111, 117, 116, 115, 32, 40, 98, 117, 102, 102, 101,
+114, 32, 117, 110, 100, 101, 114, 114, 117, 110, 115, 41, 32, 115, 111, 32, 102, 97, 114, 34, 32, 61, 32, 34,
+123, 48, 125, 32, 102, 97, 108, 104, 97, 115, 32, 40, 98, 117, 102, 102, 101, 114, 32, 101, 115, 118, 97, 122,
+105, 97, 100, 111, 41, 32, 97, 116, 195, 169, 32, 97, 103, 111, 114, 97, 34, 10, 34, 123, 48, 125, 32, 98,
+108, 111, 99, 107, 115, 32, 111, 118, 101, 114, 32, 116, 104, 101, 32, 100, 101, 97, 100, 108, 105, 110, 101, 32,
+40, 109, 97, 120, 32, 123, 49, 125, 37, 41, 34, 32, 61, 32, 34, 123, 48, 125, 32, 98, 108, 111, 99, 111,
+115, 32, 112, 97, 115, 115, 97, 114, 97, 109, 32, 100, 111, 32, 112, 114, 97, 122, 111, 32, 40, 109, 195, 161,
+120, 46, 32, 123, 49, 125, 37, 41, 34, 10, 34, 123, 48, 125, 32, 97, 117, 100, 105, 111, 32, 98, 108, 111,
+99, 107, 115, 32, 109, 105, 115, 115, 101, 100, 32, 116, 104, 101, 32, 100, 101, 97, 100, 108, 105, 110, 101, 32,
+40, 99, 114, 97, 99, 107, 108, 101, 115, 41, 44, 32, 116, 104, 101, 32, 100, 101, 118, 105, 99, 101, 32, 99,
+97, 108, 108, 101, 100, 32, 108, 97, 116, 101, 32, 123, 49, 125, 32, 116, 105, 109, 101, 115, 59, 32, 108, 111,
+103, 58, 32, 97, 117, 100, 105, 111, 45, 103, 108, 105, 116, 99, 104, 101, 115, 46, 108, 111, 103, 34, 32, 61,
+32, 34, 123, 48, 125, 32, 98, 108, 111, 99, 111, 115, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 112,
+97, 115, 115, 97, 114, 97, 109, 32, 100, 111, 32, 112, 114, 97, 122, 111, 32, 40, 101, 115, 116, 97, 108, 111,
+115, 41, 44, 32, 111, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 99, 104, 97, 109, 111, 117,
+32, 97, 116, 114, 97, 115, 97, 100, 111, 32, 123, 49, 125, 32, 118, 101, 122, 101, 115, 59, 32, 114, 101, 103,
+105, 115, 116, 114, 111, 58, 32, 97, 117, 100, 105, 111, 45, 103, 108, 105, 116, 99, 104, 101, 115, 46, 108, 111,
+103, 34, 10, 34, 72, 101, 97, 118, 105, 101, 115, 116, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 77, 97,
+105, 115, 32, 112, 101, 115, 97, 100, 111, 115, 58, 32, 123, 48, 125, 34, 10, 34, 112, 101, 97, 107, 32, 123,
+48, 125, 37, 34, 32, 61, 32, 34, 112, 105, 99, 111, 32, 123, 48, 125, 37, 34, 10, 34, 65, 117, 100, 105,
+111, 32, 100, 101, 118, 105, 99, 101, 34, 32, 61, 32, 34, 68, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111,
+32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 68, 114, 105, 118, 101, 114, 32, 115, 101, 116, 116,
+105, 110, 103, 115, 46, 46, 46, 34, 32, 61, 32, 34, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195,
+181, 101, 115, 32, 100, 111, 32, 100, 114, 105, 118, 101, 114, 46, 46, 46, 34, 10, 34, 80, 108, 97, 121, 32,
+97, 32, 116, 101, 115, 116, 32, 115, 111, 117, 110, 100, 34, 32, 61, 32, 34, 84, 111, 99, 97, 114, 32, 117,
+109, 32, 115, 111, 109, 32, 100, 101, 32, 116, 101, 115, 116, 101, 34, 10, 34, 65, 110, 121, 32, 77, 73, 68,
+73, 32, 99, 104, 97, 110, 110, 101, 108, 34, 32, 61, 32, 34, 81, 117, 97, 108, 113, 117, 101, 114, 32, 99,
+97, 110, 97, 108, 32, 77, 73, 68, 73, 34, 10, 34, 77, 73, 68, 73, 32, 99, 104, 97, 110, 110, 101, 108,
+32, 123, 48, 125, 34, 32, 61, 32, 34, 67, 97, 110, 97, 108, 32, 77, 73, 68, 73, 32, 123, 48, 125, 34,
+10, 34, 80, 108, 97, 121, 115, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 101, 100, 32, 99, 104, 97,
+110, 110, 101, 108, 115, 34, 32, 61, 32, 34, 84, 111, 99, 97, 32, 111, 115, 32, 99, 97, 110, 97, 105, 115,
+32, 115, 101, 108, 101, 99, 105, 111, 110, 97, 100, 111, 115, 34, 10, 34, 80, 108, 97, 121, 115, 32, 123, 48,
+125, 34, 32, 61, 32, 34, 84, 111, 99, 97, 32, 123, 48, 125, 34, 10, 34, 80, 108, 97, 121, 115, 32, 99,
+104, 97, 110, 110, 101, 108, 32, 123, 48, 125, 34, 32, 61, 32, 34, 84, 111, 99, 97, 32, 111, 32, 99, 97,
+110, 97, 108, 32, 123, 48, 125, 34, 10, 34, 69, 97, 99, 104, 32, 105, 110, 112, 117, 116, 32, 100, 101, 118,
+105, 99, 101, 32, 99, 97, 110, 32, 98, 101, 32, 116, 117, 114, 110, 101, 100, 32, 111, 102, 102, 44, 32, 108,
+105, 115, 116, 101, 110, 32, 116, 111, 32, 111, 110, 101, 32, 77, 73, 68, 73, 32, 99, 104, 97, 110, 110, 101,
+108, 32, 111, 110, 108, 121, 32, 97, 110, 100, 32, 112, 108, 97, 121, 32, 97, 32, 102, 105, 120, 101, 100, 32,
+99, 104, 97, 110, 110, 101, 108, 32, 111, 102, 32, 116, 104, 101, 32, 67, 104, 97, 110, 110, 101, 108, 32, 82,
+97, 99, 107, 32, 105, 110, 115, 116, 101, 97, 100, 32, 111, 102, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99,
+116, 101, 100, 32, 111, 110, 101, 115, 46, 34, 32, 61, 32, 34, 67, 97, 100, 97, 32, 100, 105, 115, 112, 111,
+115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 112, 111, 100, 101, 32, 115,
+101, 114, 32, 100, 101, 115, 108, 105, 103, 97, 100, 111, 44, 32, 111, 117, 118, 105, 114, 32, 115, 195, 179, 32,
+117, 109, 32, 99, 97, 110, 97, 108, 32, 77, 73, 68, 73, 32, 101, 32, 116, 111, 99, 97, 114, 32, 117, 109,
+32, 99, 97, 110, 97, 108, 32, 102, 105, 120, 111, 32, 100, 111, 32, 67, 104, 97, 110, 110, 101, 108, 32, 82,
+97, 99, 107, 32, 101, 109, 32, 118, 101, 122, 32, 100, 111, 115, 32, 115, 101, 108, 101, 99, 105, 111, 110, 97,
+100, 111, 115, 46, 34, 10, 34, 78, 111, 32, 77, 73, 68, 73, 32, 105, 110, 112, 117, 116, 32, 100, 101, 118,
+105, 99, 101, 115, 32, 102, 111, 117, 110, 100, 46, 32, 67, 111, 110, 110, 101, 99, 116, 32, 111, 110, 101, 32,
+97, 110, 100, 32, 114, 101, 102, 114, 101, 115, 104, 32, 116, 104, 101, 32, 108, 105, 115, 116, 46, 34, 32, 61,
+32, 34, 78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32,
+101, 110, 116, 114, 97, 100, 97, 32, 77, 73, 68, 73, 32, 101, 110, 99, 111, 110, 116, 114, 97, 100, 111, 46,
+32, 67, 111, 110, 101, 99, 116, 101, 32, 117, 109, 32, 101, 32, 97, 116, 117, 97, 108, 105, 122, 101, 32, 97,
+32, 108, 105, 115, 116, 97, 46, 34, 10, 34, 65, 115, 32, 112, 108, 97, 121, 101, 100, 34, 32, 61, 32, 34,
+67, 111, 109, 111, 32, 116, 111, 99, 97, 100, 111, 34, 10, 34, 83, 111, 102, 116, 32, 40, 108, 105, 103, 104,
+116, 32, 112, 108, 97, 121, 105, 110, 103, 32, 115, 111, 117, 110, 100, 115, 32, 108, 111, 117, 100, 101, 114, 41,
+34, 32, 61, 32, 34, 83, 117, 97, 118, 101, 32, 40, 116, 111, 99, 97, 114, 32, 108, 101, 118, 101, 32, 115,
+111, 97, 32, 109, 97, 105, 115, 32, 102, 111, 114, 116, 101, 41, 34, 10, 34, 72, 97, 114, 100, 32, 40, 110,
+101, 101, 100, 115, 32, 104, 97, 114, 100, 101, 114, 32, 112, 108, 97, 121, 105, 110, 103, 41, 34, 32, 61, 32,
+34, 68, 117, 114, 111, 32, 40, 112, 101, 100, 101, 32, 116, 111, 113, 117, 101, 32, 109, 97, 105, 115, 32, 102,
+111, 114, 116, 101, 41, 34, 10, 34, 70, 105, 120, 101, 100, 32, 40, 101, 118, 101, 114, 121, 32, 110, 111, 116,
+101, 32, 97, 116, 32, 102, 117, 108, 108, 32, 118, 101, 108, 111, 99, 105, 116, 121, 41, 34, 32, 61, 32, 34,
+70, 105, 120, 111, 32, 40, 116, 111, 100, 97, 32, 110, 111, 116, 97, 32, 99, 111, 109, 32, 118, 101, 108, 111,
+99, 105, 100, 97, 100, 101, 32, 109, 195, 161, 120, 105, 109, 97, 41, 34, 10, 34, 70, 111, 114, 32, 110, 111,
+116, 101, 115, 32, 102, 114, 111, 109, 32, 77, 73, 68, 73, 32, 100, 101, 118, 105, 99, 101, 115, 32, 40, 116,
+104, 101, 32, 116, 121, 112, 105, 110, 103, 32, 107, 101, 121, 98, 111, 97, 114, 100, 32, 97, 108, 119, 97, 121,
+115, 32, 112, 108, 97, 121, 115, 32, 97, 116, 32, 116, 104, 101, 32, 80, 105, 97, 110, 111, 32, 82, 111, 108,
+108, 39, 115, 32, 118, 101, 108, 111, 99, 105, 116, 121, 41, 46, 34, 32, 61, 32, 34, 80, 97, 114, 97, 32,
+110, 111, 116, 97, 115, 32, 100, 101, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 115, 32, 77, 73,
+68, 73, 32, 40, 111, 32, 116, 101, 99, 108, 97, 100, 111, 32, 100, 111, 32, 99, 111, 109, 112, 117, 116, 97,
+100, 111, 114, 32, 115, 101, 109, 112, 114, 101, 32, 116, 111, 99, 97, 32, 99, 111, 109, 32, 97, 32, 118, 101,
+108, 111, 99, 105, 100, 97, 100, 101, 32, 100, 111, 32, 80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 41, 46,
+34, 10, 34, 67, 111, 110, 116, 114, 111, 108, 108, 101, 114, 32, 116, 121, 112, 101, 34, 32, 61, 32, 34, 84,
+105, 112, 111, 32, 100, 101, 32, 99, 111, 110, 116, 114, 111, 108, 97, 100, 111, 114, 34, 10, 34, 71, 101, 110,
+101, 114, 105, 99, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 58, 32, 108, 105, 110, 107, 32, 97, 32,
+107, 110, 111, 98, 32, 111, 114, 32, 102, 97, 100, 101, 114, 32, 119, 105, 116, 104, 32, 97, 32, 99, 111, 110,
+116, 114, 111, 108, 39, 115, 32, 114, 105, 103, 104, 116, 45, 99, 108, 105, 99, 107, 32, 109, 101, 110, 117, 32,
+62, 32, 76, 105, 110, 107, 32, 116, 111, 32, 77, 73, 68, 73, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101,
+114, 46, 34, 32, 61, 32, 34, 67, 111, 110, 116, 114, 111, 108, 97, 100, 111, 114, 32, 103, 101, 110, 195, 169,
+114, 105, 99, 111, 58, 32, 108, 105, 103, 117, 101, 32, 117, 109, 32, 107, 110, 111, 98, 32, 111, 117, 32, 102,
+97, 100, 101, 114, 32, 112, 101, 108, 111, 32, 109, 101, 110, 117, 32, 100, 101, 32, 98, 111, 116, 195, 163, 111,
+32, 100, 105, 114, 101, 105, 116, 111, 32, 100, 101, 32, 117, 109, 32, 99, 111, 110, 116, 114, 111, 108, 101, 32,
+62, 32, 86, 105, 110, 99, 117, 108, 97, 114, 32, 97, 111, 32, 99, 111, 110, 116, 114, 111, 108, 97, 100, 111,
+114, 32, 77, 73, 68, 73, 46, 34, 10, 34, 80, 105, 99, 107, 117, 112, 32, 40, 116, 97, 107, 101, 111, 118,
+101, 114, 32, 109, 111, 100, 101, 41, 34, 32, 61, 32, 34, 67, 97, 112, 116, 117, 114, 97, 32, 40, 109, 111,
+100, 111, 32, 116, 97, 107, 101, 111, 118, 101, 114, 41, 34, 10, 34, 65, 32, 99, 111, 110, 116, 114, 111, 108,
+108, 101, 114, 32, 109, 111, 118, 101, 115, 32, 97, 32, 112, 97, 114, 97, 109, 101, 116, 101, 114, 32, 111, 110,
+108, 121, 32, 97, 102, 116, 101, 114, 32, 114, 101, 97, 99, 104, 105, 110, 103, 32, 105, 116, 115, 32, 99, 117,
+114, 114, 101, 110, 116, 32, 118, 97, 108, 117, 101, 44, 32, 115, 111, 32, 110, 111, 116, 104, 105, 110, 103, 32,
+106, 117, 109, 112, 115, 46, 34, 32, 61, 32, 34, 85, 109, 32, 99, 111, 110, 116, 114, 111, 108, 97, 100, 111,
+114, 32, 115, 195, 179, 32, 109, 111, 118, 101, 32, 117, 109, 32, 112, 97, 114, 195, 162, 109, 101, 116, 114, 111,
+32, 100, 101, 112, 111, 105, 115, 32, 100, 101, 32, 97, 108, 99, 97, 110, 195, 167, 97, 114, 32, 111, 32, 118,
+97, 108, 111, 114, 32, 97, 116, 117, 97, 108, 32, 100, 101, 108, 101, 44, 32, 101, 110, 116, 195, 163, 111, 32,
+110, 97, 100, 97, 32, 112, 117, 108, 97, 46, 34, 10, 34, 76, 105, 110, 107, 115, 32, 105, 110, 32, 116, 104,
+105, 115, 32, 112, 114, 111, 106, 101, 99, 116, 34, 32, 61, 32, 34, 86, 195, 173, 110, 99, 117, 108, 111, 115,
+32, 110, 101, 115, 116, 101, 32, 112, 114, 111, 106, 101, 116, 111, 34, 10, 34, 99, 104, 46, 32, 123, 48, 125,
+34, 32, 61, 32, 34, 99, 97, 110, 46, 32, 123, 48, 125, 34, 10, 34, 73, 110, 112, 117, 116, 32, 100, 101,
+118, 105, 99, 101, 115, 34, 32, 61, 32, 34, 68, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 115, 32, 100,
+101, 32, 101, 110, 116, 114, 97, 100, 97, 34, 10, 34, 78, 111, 116, 101, 115, 34, 32, 61, 32, 34, 78, 111,
+116, 97, 115, 34, 10, 34, 67, 111, 110, 116, 114, 111, 108, 108, 101, 114, 115, 34, 32, 61, 32, 34, 67, 111,
+110, 116, 114, 111, 108, 97, 100, 111, 114, 101, 115, 34, 10, 34, 82, 101, 102, 114, 101, 115, 104, 32, 100, 101,
+118, 105, 99, 101, 32, 108, 105, 115, 116, 34, 32, 61, 32, 34, 65, 116, 117, 97, 108, 105, 122, 97, 114, 32,
+108, 105, 115, 116, 97, 32, 100, 101, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 115, 34, 10, 34,
+82, 101, 109, 111, 118, 101, 32, 108, 105, 110, 107, 34, 32, 61, 32, 34, 82, 101, 109, 111, 118, 101, 114, 32,
+118, 195, 173, 110, 99, 117, 108, 111, 34, 10, 34, 82, 101, 109, 111, 118, 101, 32, 97, 108, 108, 34, 32, 61,
+32, 34, 82, 101, 109, 111, 118, 101, 114, 32, 116, 111, 100, 111, 115, 34, 10, 34, 69, 118, 101, 114, 121, 119,
+104, 101, 114, 101, 34, 32, 61, 32, 34, 69, 109, 32, 116, 111, 100, 111, 32, 108, 117, 103, 97, 114, 34, 10,
+34, 80, 114, 101, 115, 115, 32, 116, 104, 101, 32, 110, 101, 119, 32, 107, 101, 121, 115, 32, 110, 111, 119, 32,
+40, 69, 115, 99, 32, 99, 97, 110, 99, 101, 108, 115, 41, 34, 32, 61, 32, 34, 80, 114, 101, 115, 115, 105,
+111, 110, 101, 32, 97, 115, 32, 110, 111, 118, 97, 115, 32, 116, 101, 99, 108, 97, 115, 32, 97, 103, 111, 114,
+97, 32, 40, 69, 115, 99, 32, 99, 97, 110, 99, 101, 108, 97, 41, 34, 10, 34, 83, 101, 97, 114, 99, 104,
+32, 97, 110, 32, 97, 99, 116, 105, 111, 110, 32, 111, 114, 32, 97, 32, 107, 101, 121, 32, 40, 101, 46, 103,
+46, 32, 92, 34, 67, 116, 114, 108, 43, 76, 92, 34, 41, 34, 32, 61, 32, 34, 66, 117, 115, 99, 97, 114,
+32, 117, 109, 97, 32, 97, 195, 167, 195, 163, 111, 32, 111, 117, 32, 116, 101, 99, 108, 97, 32, 40, 101, 120,
+46, 58, 32, 92, 34, 67, 116, 114, 108, 43, 76, 92, 34, 41, 34, 10, 34, 65, 108, 108, 32, 112, 108, 97,
+99, 101, 115, 34, 32, 61, 32, 34, 84, 111, 100, 111, 115, 32, 111, 115, 32, 108, 117, 103, 97, 114, 101, 115,
+34, 10, 34, 67, 104, 97, 110, 103, 101, 100, 32, 111, 110, 108, 121, 34, 32, 61, 32, 34, 83, 195, 179, 32,
+97, 108, 116, 101, 114, 97, 100, 111, 115, 34, 10, 34, 40, 110, 111, 32, 115, 104, 111, 114, 116, 99, 117, 116,
+41, 34, 32, 61, 32, 34, 40, 115, 101, 109, 32, 97, 116, 97, 108, 104, 111, 41, 34, 10, 34, 123, 48, 125,
+32, 97, 99, 116, 105, 111, 110, 115, 34, 32, 61, 32, 34, 123, 48, 125, 32, 97, 195, 167, 195, 181, 101, 115,
+34, 10, 34, 83, 101, 108, 101, 99, 116, 32, 97, 110, 32, 97, 99, 116, 105, 111, 110, 32, 116, 111, 32, 99,
+104, 97, 110, 103, 101, 32, 105, 116, 115, 32, 115, 104, 111, 114, 116, 99, 117, 116, 34, 32, 61, 32, 34, 83,
+101, 108, 101, 99, 105, 111, 110, 101, 32, 117, 109, 97, 32, 97, 195, 167, 195, 163, 111, 32, 112, 97, 114, 97,
+32, 97, 108, 116, 101, 114, 97, 114, 32, 111, 32, 97, 116, 97, 108, 104, 111, 34, 10, 34, 87, 111, 114, 107,
+115, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 70, 117, 110, 99, 105, 111, 110, 97, 58, 32, 123, 48, 125,
+34, 10, 34, 119, 105, 110, 115, 32, 111, 118, 101, 114, 32, 97, 32, 115, 104, 111, 114, 116, 99, 117, 116, 32,
+111, 102, 32, 116, 104, 101, 32, 115, 97, 109, 101, 32, 107, 101, 121, 115, 32, 116, 104, 97, 116, 32, 119, 111,
+114, 107, 115, 32, 101, 118, 101, 114, 121, 119, 104, 101, 114, 101, 34, 32, 61, 32, 34, 118, 101, 110, 99, 101,
+32, 117, 109, 32, 97, 116, 97, 108, 104, 111, 32, 99, 111, 109, 32, 97, 115, 32, 109, 101, 115, 109, 97, 115,
+32, 116, 101, 99, 108, 97, 115, 32, 113, 117, 101, 32, 102, 117, 110, 99, 105, 111, 110, 97, 32, 101, 109, 32,
+116, 111, 100, 111, 32, 108, 117, 103, 97, 114, 34, 10, 34, 123, 48, 125, 32, 105, 115, 32, 117, 115, 101, 100,
+32, 98, 121, 32, 123, 49, 125, 32, 105, 110, 32, 116, 104, 101, 32, 115, 97, 109, 101, 32, 112, 108, 97, 99,
+101, 46, 32, 65, 115, 115, 105, 103, 110, 32, 109, 111, 118, 101, 115, 32, 105, 116, 32, 104, 101, 114, 101, 46,
+34, 32, 61, 32, 34, 123, 48, 125, 32, 195, 169, 32, 117, 115, 97, 100, 111, 32, 112, 111, 114, 32, 123, 49,
+125, 32, 110, 111, 32, 109, 101, 115, 109, 111, 32, 108, 117, 103, 97, 114, 46, 32, 65, 116, 114, 105, 98, 117,
+105, 114, 32, 109, 111, 118, 101, 32, 112, 97, 114, 97, 32, 99, 195, 161, 46, 34, 10, 34, 82, 101, 115, 101,
+116, 32, 97, 108, 108, 32, 115, 104, 111, 114, 116, 99, 117, 116, 115, 34, 32, 61, 32, 34, 82, 101, 115, 116,
+97, 117, 114, 97, 114, 32, 116, 111, 100, 111, 115, 32, 111, 115, 32, 97, 116, 97, 108, 104, 111, 115, 34, 10,
+34, 69, 118, 101, 114, 121, 32, 115, 104, 111, 114, 116, 99, 117, 116, 32, 103, 111, 101, 115, 32, 98, 97, 99,
+107, 32, 116, 111, 32, 76, 89, 78, 88, 39, 115, 32, 100, 101, 102, 97, 117, 108, 116, 32, 107, 101, 121, 115,
+46, 34, 32, 61, 32, 34, 84, 111, 100, 111, 115, 32, 111, 115, 32, 97, 116, 97, 108, 104, 111, 115, 32, 118,
+111, 108, 116, 97, 109, 32, 195, 160, 115, 32, 116, 101, 99, 108, 97, 115, 32, 112, 97, 100, 114, 195, 163, 111,
+32, 100, 111, 32, 76, 89, 78, 88, 46, 34, 10, 34, 82, 101, 115, 101, 116, 32, 97, 108, 108, 34, 32, 61,
+32, 34, 82, 101, 115, 116, 97, 117, 114, 97, 114, 32, 116, 117, 100, 111, 34, 10, 34, 65, 100, 100, 32, 115,
+104, 111, 114, 116, 99, 117, 116, 34, 32, 61, 32, 34, 65, 100, 105, 99, 105, 111, 110, 97, 114, 32, 97, 116,
+97, 108, 104, 111, 34, 10, 34, 67, 104, 97, 110, 103, 101, 34, 32, 61, 32, 34, 65, 108, 116, 101, 114, 97,
+114, 34, 10, 34, 82, 101, 115, 101, 116, 32, 97, 108, 108, 46, 46, 46, 34, 32, 61, 32, 34, 82, 101, 115,
+116, 97, 117, 114, 97, 114, 32, 116, 117, 100, 111, 46, 46, 46, 34, 10, 34, 79, 112, 101, 110, 32, 107, 101,
+121, 115, 46, 106, 115, 111, 110, 34, 32, 61, 32, 34, 65, 98, 114, 105, 114, 32, 107, 101, 121, 115, 46, 106,
+115, 111, 110, 34, 10, 34, 65, 115, 115, 105, 103, 110, 32, 97, 110, 121, 119, 97, 121, 34, 32, 61, 32, 34,
+65, 116, 114, 105, 98, 117, 105, 114, 32, 109, 101, 115, 109, 111, 32, 97, 115, 115, 105, 109, 34, 10, 34, 77,
+97, 110, 97, 103, 101, 32, 115, 104, 111, 114, 116, 99, 117, 116, 115, 34, 32, 61, 32, 34, 71, 101, 114, 101,
+110, 99, 105, 97, 114, 32, 97, 116, 97, 108, 104, 111, 115, 34, 10, 34, 40, 111, 112, 101, 110, 32, 97, 110,
+32, 111, 117, 116, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 102, 105, 114, 115, 116, 41, 34, 32, 61,
+32, 34, 40, 97, 98, 114, 97, 32, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100,
+101, 32, 115, 97, 195, 173, 100, 97, 32, 97, 110, 116, 101, 115, 41, 34, 10, 34, 40, 99, 104, 111, 111, 115,
+101, 41, 34, 32, 61, 32, 34, 40, 101, 115, 99, 111, 108, 104, 97, 41, 34, 10, 34, 82, 101, 99, 111, 114,
+100, 105, 110, 103, 32, 102, 105, 108, 116, 101, 114, 34, 32, 61, 32, 34, 70, 105, 108, 116, 114, 111, 32, 100,
+101, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 34, 10, 34, 65, 117, 100, 105, 111, 32, 111, 102, 32,
+116, 104, 101, 32, 97, 114, 109, 101, 100, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115, 101, 114, 116, 115, 32,
+40, 98, 101, 99, 111, 109, 101, 115, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 99, 108, 105, 112, 115, 41,
+34, 32, 61, 32, 34, 195, 129, 117, 100, 105, 111, 32, 100, 111, 115, 32, 105, 110, 115, 101, 114, 116, 115, 32,
+100, 111, 32, 109, 105, 120, 101, 114, 32, 97, 114, 109, 97, 100, 111, 115, 32, 40, 118, 105, 114, 97, 32, 99,
+108, 105, 112, 101, 115, 32, 110, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 41, 34, 10, 34, 65, 115, 107,
+32, 119, 104, 97, 116, 32, 116, 111, 32, 114, 101, 99, 111, 114, 100, 32, 119, 104, 101, 110, 32, 114, 101, 99,
+111, 114, 100, 105, 110, 103, 32, 115, 116, 97, 114, 116, 115, 34, 32, 61, 32, 34, 80, 101, 114, 103, 117, 110,
+116, 97, 114, 32, 111, 32, 113, 117, 101, 32, 103, 114, 97, 118, 97, 114, 32, 97, 111, 32, 105, 110, 105, 99,
+105, 97, 114, 32, 97, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 34, 10, 34, 65, 114, 109, 32, 116,
 104, 101, 32, 115, 101, 108, 101, 99, 116, 101, 100, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115, 101, 114, 116,
-59, 32, 99, 104, 111, 111, 115, 101, 32, 105, 116, 115, 32, 97, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116,
-32, 40, 109, 105, 99, 114, 111, 112, 104, 111, 110, 101, 41, 32, 105, 102, 32, 105, 116, 32, 104, 97, 115, 32,
-110, 111, 110, 101, 34, 32, 61, 32, 34, 65, 114, 109, 97, 32, 111, 32, 105, 110, 115, 101, 114, 116, 32, 115,
-101, 108, 101, 99, 105, 111, 110, 97, 100, 111, 32, 100, 111, 32, 109, 105, 120, 101, 114, 59, 32, 101, 115, 99,
-111, 108, 104, 97, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111,
-32, 40, 109, 105, 99, 114, 111, 102, 111, 110, 101, 41, 32, 115, 101, 32, 101, 108, 101, 32, 110, 195, 163, 111,
-32, 116, 105, 118, 101, 114, 34, 10, 34, 78, 111, 116, 101, 115, 44, 32, 105, 110, 116, 111, 32, 116, 104, 101,
-32, 99, 117, 114, 114, 101, 110, 116, 32, 112, 97, 116, 116, 101, 114, 110, 34, 32, 61, 32, 34, 78, 111, 116,
-97, 115, 44, 32, 110, 111, 32, 112, 97, 116, 116, 101, 114, 110, 32, 97, 116, 117, 97, 108, 34, 10, 34, 78,
-111, 116, 101, 115, 32, 112, 108, 97, 121, 101, 100, 32, 111, 110, 32, 97, 32, 77, 73, 68, 73, 32, 107, 101,
-121, 98, 111, 97, 114, 100, 32, 111, 114, 32, 116, 104, 101, 32, 80, 67, 32, 107, 101, 121, 98, 111, 97, 114,
-100, 34, 32, 61, 32, 34, 78, 111, 116, 97, 115, 32, 116, 111, 99, 97, 100, 97, 115, 32, 110, 117, 109, 32,
-116, 101, 99, 108, 97, 100, 111, 32, 77, 73, 68, 73, 32, 111, 117, 32, 110, 111, 32, 116, 101, 99, 108, 97,
-100, 111, 32, 100, 111, 32, 80, 67, 34, 10, 34, 69, 118, 101, 114, 121, 116, 104, 105, 110, 103, 34, 32, 61,
-32, 34, 84, 117, 100, 111, 34, 10, 34, 78, 111, 116, 101, 115, 44, 32, 97, 110, 100, 32, 97, 117, 100, 105,
-111, 32, 102, 114, 111, 109, 32, 116, 104, 101, 32, 97, 114, 109, 101, 100, 32, 105, 110, 115, 101, 114, 116, 115,
-34, 32, 61, 32, 34, 78, 111, 116, 97, 115, 44, 32, 101, 32, 111, 32, 195, 161, 117, 100, 105, 111, 32, 100,
-111, 115, 32, 105, 110, 115, 101, 114, 116, 115, 32, 97, 114, 109, 97, 100, 111, 115, 34, 10, 34, 82, 101, 99,
-111, 114, 100, 32, 97, 114, 109, 58, 32, 82, 101, 99, 32, 43, 32, 80, 108, 97, 121, 32, 114, 101, 99, 111,
-114, 100, 115, 32, 116, 104, 105, 115, 32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 97, 117, 100, 105, 111, 32,
-105, 110, 112, 117, 116, 32, 105, 110, 116, 111, 32, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 99, 108,
-105, 112, 32, 32, 91, 82, 77, 66, 93, 32, 105, 110, 112, 117, 116, 32, 97, 110, 100, 32, 109, 111, 110, 105,
-116, 111, 114, 105, 110, 103, 34, 32, 61, 32, 34, 65, 114, 109, 97, 114, 32, 103, 114, 97, 118, 97, 195, 167,
-195, 163, 111, 58, 32, 82, 101, 99, 32, 43, 32, 80, 108, 97, 121, 32, 103, 114, 97, 118, 97, 32, 97, 32,
-101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 100, 101, 115, 116, 101, 32,
-105, 110, 115, 101, 114, 116, 32, 110, 117, 109, 32, 99, 108, 105, 112, 101, 32, 100, 97, 32, 80, 108, 97, 121,
-108, 105, 115, 116, 32, 32, 91, 82, 77, 66, 93, 32, 101, 110, 116, 114, 97, 100, 97, 32, 101, 32, 109, 111,
-110, 105, 116, 111, 114, 97, 195, 167, 195, 163, 111, 34, 10, 34, 73, 110, 112, 117, 116, 32, 108, 101, 118, 101,
-108, 32, 111, 102, 32, 116, 104, 105, 115, 32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 97, 117, 100, 105, 111,
-32, 105, 110, 112, 117, 116, 32, 32, 91, 76, 77, 66, 93, 32, 99, 104, 111, 111, 115, 101, 32, 116, 104, 101,
-32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 78, 195, 173, 118, 101, 108, 32, 100, 97, 32, 101, 110, 116,
-114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 100, 101, 115, 116, 101, 32, 105, 110, 115,
-101, 114, 116, 32, 32, 91, 76, 77, 66, 93, 32, 101, 115, 99, 111, 108, 104, 101, 114, 32, 97, 32, 101, 110,
-116, 114, 97, 100, 97, 34, 10, 34, 65, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 58, 32, 123, 48, 125,
-46, 46, 46, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105,
-111, 58, 32, 123, 48, 125, 46, 46, 46, 34, 10, 34, 68, 105, 115, 97, 114, 109, 32, 114, 101, 99, 111, 114,
-100, 105, 110, 103, 34, 32, 61, 32, 34, 68, 101, 115, 97, 114, 109, 97, 114, 32, 103, 114, 97, 118, 97, 195,
-167, 195, 163, 111, 34, 10, 34, 65, 114, 109, 32, 114, 101, 99, 111, 114, 100, 105, 110, 103, 34, 32, 61, 32,
-34, 65, 114, 109, 97, 114, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 34, 10, 34, 78, 111, 32, 97,
-117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 83, 101, 109, 32, 101, 110, 116, 114, 97,
-100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 65, 117, 100, 105, 111, 32, 105, 110, 112,
-117, 116, 32, 115, 111, 117, 114, 99, 101, 58, 32, 116, 104, 101, 32, 109, 105, 99, 114, 111, 112, 104, 111, 110,
-101, 32, 111, 114, 32, 105, 110, 116, 101, 114, 102, 97, 99, 101, 32, 105, 110, 112, 117, 116, 32, 116, 104, 105,
-115, 32, 105, 110, 115, 101, 114, 116, 32, 112, 108, 97, 121, 115, 32, 97, 110, 100, 32, 114, 101, 99, 111, 114,
-100, 115, 32, 32, 91, 76, 77, 66, 93, 32, 99, 104, 111, 111, 115, 101, 34, 32, 61, 32, 34, 70, 111, 110,
-116, 101, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 58,
-32, 111, 32, 109, 105, 99, 114, 111, 102, 111, 110, 101, 32, 111, 117, 32, 97, 32, 101, 110, 116, 114, 97, 100,
-97, 32, 100, 97, 32, 105, 110, 116, 101, 114, 102, 97, 99, 101, 32, 113, 117, 101, 32, 101, 115, 116, 101, 32,
-105, 110, 115, 101, 114, 116, 32, 116, 111, 99, 97, 32, 101, 32, 103, 114, 97, 118, 97, 32, 32, 91, 76, 77,
-66, 93, 32, 101, 115, 99, 111, 108, 104, 101, 114, 34, 10, 34, 78, 111, 32, 97, 117, 100, 105, 111, 32, 100,
-101, 118, 105, 99, 101, 32, 105, 115, 32, 111, 112, 101, 110, 46, 32, 67, 104, 111, 111, 115, 101, 32, 111, 110,
-101, 32, 105, 110, 32, 83, 101, 116, 116, 105, 110, 103, 115, 32, 62, 32, 65, 117, 100, 105, 111, 46, 34, 32,
-61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101,
-32, 195, 161, 117, 100, 105, 111, 32, 101, 115, 116, 195, 161, 32, 97, 98, 101, 114, 116, 111, 46, 32, 69, 115,
-99, 111, 108, 104, 97, 32, 117, 109, 32, 101, 109, 32, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195,
-181, 101, 115, 32, 62, 32, 195, 129, 117, 100, 105, 111, 46, 34, 10, 34, 78, 111, 32, 97, 117, 100, 105, 111,
-32, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 119, 97, 115, 32, 102, 111, 117, 110, 100, 46,
-32, 67, 111, 110, 110, 101, 99, 116, 32, 97, 32, 109, 105, 99, 114, 111, 112, 104, 111, 110, 101, 32, 111, 114,
-32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 105, 110, 116, 101, 114, 102, 97, 99, 101, 44, 32, 116, 104, 101,
-110, 32, 99, 104, 111, 111, 115, 101, 32, 105, 116, 32, 97, 115, 32, 116, 104, 101, 32, 105, 110, 112, 117, 116,
-32, 100, 101, 118, 105, 99, 101, 32, 105, 110, 32, 83, 101, 116, 116, 105, 110, 103, 115, 32, 62, 32, 65, 117,
-100, 105, 111, 46, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116,
-105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111,
-32, 102, 111, 105, 32, 101, 110, 99, 111, 110, 116, 114, 97, 100, 111, 46, 32, 67, 111, 110, 101, 99, 116, 101,
-32, 117, 109, 32, 109, 105, 99, 114, 111, 102, 111, 110, 101, 32, 111, 117, 32, 117, 109, 97, 32, 105, 110, 116,
-101, 114, 102, 97, 99, 101, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 101, 32, 101, 115, 99, 111, 108,
-104, 97, 45, 111, 32, 99, 111, 109, 111, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101,
-32, 101, 110, 116, 114, 97, 100, 97, 32, 101, 109, 32, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195,
-181, 101, 115, 32, 62, 32, 195, 129, 117, 100, 105, 111, 46, 34, 10, 34, 78, 111, 32, 97, 117, 100, 105, 111,
-32, 105, 110, 112, 117, 116, 32, 105, 115, 32, 111, 112, 101, 110, 44, 32, 115, 111, 32, 110, 111, 116, 104, 105,
-110, 103, 32, 99, 97, 110, 32, 98, 101, 32, 114, 101, 99, 111, 114, 100, 101, 100, 46, 32, 67, 104, 111, 111,
-115, 101, 32, 97, 110, 32, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 105, 110, 32, 83, 101,
-116, 116, 105, 110, 103, 115, 32, 62, 32, 65, 117, 100, 105, 111, 46, 34, 32, 61, 32, 34, 78, 101, 110, 104,
-117, 109, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 101, 115,
-116, 195, 161, 32, 97, 98, 101, 114, 116, 97, 44, 32, 101, 110, 116, 195, 163, 111, 32, 110, 97, 100, 97, 32,
-112, 111, 100, 101, 32, 115, 101, 114, 32, 103, 114, 97, 118, 97, 100, 111, 46, 32, 69, 115, 99, 111, 108, 104,
-97, 32, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114,
-97, 100, 97, 32, 101, 109, 32, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115, 32, 62,
-32, 195, 129, 117, 100, 105, 111, 46, 34, 10, 34, 80, 108, 101, 97, 115, 101, 32, 115, 101, 108, 101, 99, 116,
-32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 32, 102, 105, 114, 115, 116, 58, 32, 116,
-104, 101, 32, 97, 114, 109, 101, 100, 32, 105, 110, 115, 101, 114, 116, 32, 104, 97, 115, 32, 110, 111, 110, 101,
-46, 32, 67, 108, 105, 99, 107, 32, 116, 104, 101, 32, 105, 110, 112, 117, 116, 32, 98, 111, 120, 32, 97, 98,
-111, 118, 101, 32, 116, 104, 101, 32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 101, 102, 102, 101, 99, 116, 32,
-115, 108, 111, 116, 115, 32, 105, 110, 32, 116, 104, 101, 32, 77, 105, 120, 101, 114, 32, 40, 111, 114, 32, 114,
-105, 103, 104, 116, 45, 99, 108, 105, 99, 107, 32, 105, 116, 115, 32, 97, 114, 109, 32, 98, 117, 116, 116, 111,
-110, 41, 46, 34, 32, 61, 32, 34, 69, 115, 99, 111, 108, 104, 97, 32, 117, 109, 97, 32, 101, 110, 116, 114,
-97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 112, 114, 105, 109, 101, 105, 114, 111, 58, 32,
-111, 32, 105, 110, 115, 101, 114, 116, 32, 97, 114, 109, 97, 100, 111, 32, 110, 195, 163, 111, 32, 116, 101, 109,
-32, 110, 101, 110, 104, 117, 109, 97, 46, 32, 67, 108, 105, 113, 117, 101, 32, 110, 97, 32, 99, 97, 105, 120,
-97, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 97, 99, 105, 109, 97, 32, 100, 111, 115, 32, 115,
-108, 111, 116, 115, 32, 100, 101, 32, 101, 102, 101, 105, 116, 111, 32, 100, 111, 32, 105, 110, 115, 101, 114, 116,
-32, 110, 111, 32, 77, 105, 120, 101, 114, 32, 40, 111, 117, 32, 99, 108, 105, 113, 117, 101, 32, 100, 105, 114,
-101, 105, 116, 111, 32, 110, 111, 32, 98, 111, 116, 195, 163, 111, 32, 100, 101, 32, 97, 114, 109, 97, 114, 41,
-46, 34, 10, 34, 73, 110, 115, 101, 114, 116, 32, 123, 48, 125, 32, 105, 115, 32, 97, 114, 109, 101, 100, 32,
-98, 117, 116, 32, 104, 97, 115, 32, 110, 111, 32, 97, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 44, 32,
-115, 111, 32, 105, 116, 32, 114, 101, 99, 111, 114, 100, 115, 32, 110, 111, 116, 104, 105, 110, 103, 46, 34, 32,
-61, 32, 34, 79, 32, 105, 110, 115, 101, 114, 116, 32, 123, 48, 125, 32, 101, 115, 116, 195, 161, 32, 97, 114,
-109, 97, 100, 111, 32, 109, 97, 115, 32, 110, 195, 163, 111, 32, 116, 101, 109, 32, 101, 110, 116, 114, 97, 100,
-97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 44, 32, 101, 110, 116, 195, 163, 111, 32, 110, 195, 163, 111,
-32, 103, 114, 97, 118, 97, 32, 110, 97, 100, 97, 46, 34, 10, 34, 84, 104, 101, 32, 97, 117, 100, 105, 111,
-32, 105, 110, 112, 117, 116, 32, 99, 111, 117, 108, 100, 32, 110, 111, 116, 32, 98, 101, 32, 117, 115, 101, 100,
-58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 78, 195, 163, 111, 32, 102, 111, 105, 32, 112, 111, 115, 115, 195,
-173, 118, 101, 108, 32, 117, 115, 97, 114, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195,
-161, 117, 100, 105, 111, 58, 32, 123, 48, 125, 34, 10, 34, 65, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116,
-32, 110, 101, 101, 100, 101, 100, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195,
-161, 117, 100, 105, 111, 32, 110, 101, 99, 101, 115, 115, 195, 161, 114, 105, 97, 34, 10, 34, 65, 117, 100, 105,
-111, 32, 105, 110, 112, 117, 116, 32, 115, 111, 117, 114, 99, 101, 34, 32, 61, 32, 34, 70, 111, 110, 116, 101,
-32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34,
-84, 104, 101, 32, 97, 117, 100, 105, 111, 32, 100, 101, 118, 105, 99, 101, 32, 104, 97, 115, 32, 110, 111, 32,
-111, 112, 101, 110, 32, 105, 110, 112, 117, 116, 32, 99, 104, 97, 110, 110, 101, 108, 115, 34, 32, 61, 32, 34,
-79, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32,
-110, 195, 163, 111, 32, 116, 101, 109, 32, 99, 97, 110, 97, 105, 115, 32, 100, 101, 32, 101, 110, 116, 114, 97,
-100, 97, 32, 97, 98, 101, 114, 116, 111, 115, 34, 10, 34, 40, 109, 111, 110, 111, 41, 34, 32, 61, 32, 34,
-40, 109, 111, 110, 111, 41, 34, 10, 34, 77, 111, 110, 105, 116, 111, 114, 32, 101, 120, 116, 101, 114, 110, 97,
-108, 32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 77, 111, 110, 105, 116, 111, 114, 97, 114, 32, 101, 110,
-116, 114, 97, 100, 97, 32, 101, 120, 116, 101, 114, 110, 97, 34, 10, 34, 87, 104, 101, 110, 32, 97, 114, 109,
-101, 100, 34, 32, 61, 32, 34, 81, 117, 97, 110, 100, 111, 32, 97, 114, 109, 97, 100, 111, 34, 10, 34, 65,
-117, 116, 111, 32, 40, 119, 104, 101, 110, 32, 97, 114, 109, 101, 100, 44, 32, 110, 111, 116, 32, 119, 104, 105,
-108, 101, 32, 112, 108, 97, 121, 105, 110, 103, 32, 98, 97, 99, 107, 41, 34, 32, 61, 32, 34, 65, 117, 116,
-111, 32, 40, 113, 117, 97, 110, 100, 111, 32, 97, 114, 109, 97, 100, 111, 44, 32, 110, 195, 163, 111, 32, 100,
-117, 114, 97, 110, 116, 101, 32, 97, 32, 114, 101, 112, 114, 111, 100, 117, 195, 167, 195, 163, 111, 41, 34, 10,
-34, 79, 110, 34, 32, 61, 32, 34, 76, 105, 103, 97, 100, 111, 34, 10, 34, 65, 117, 100, 105, 111, 32, 105,
-110, 112, 117, 116, 32, 110, 101, 101, 100, 101, 100, 58, 32, 99, 104, 111, 111, 115, 101, 32, 116, 104, 105, 115,
-32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 105, 110, 112, 117, 116, 44, 32, 116, 104, 101, 110, 32, 105, 116,
-32, 105, 115, 32, 97, 114, 109, 101, 100, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 32, 100, 101,
-32, 195, 161, 117, 100, 105, 111, 32, 110, 101, 99, 101, 115, 115, 195, 161, 114, 105, 97, 58, 32, 101, 115, 99,
-111, 108, 104, 97, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 115, 116, 101, 32, 105, 110, 115,
-101, 114, 116, 32, 101, 32, 101, 108, 101, 32, 115, 101, 114, 195, 161, 32, 97, 114, 109, 97, 100, 111, 34, 10,
-34, 67, 104, 111, 111, 115, 101, 32, 101, 97, 99, 104, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115, 101, 114,
-116, 39, 115, 32, 105, 110, 112, 117, 116, 32, 105, 110, 32, 116, 104, 101, 32, 77, 105, 120, 101, 114, 32, 40,
-116, 104, 101, 32, 105, 110, 112, 117, 116, 32, 98, 111, 120, 32, 97, 98, 111, 118, 101, 32, 105, 116, 115, 32,
-101, 102, 102, 101, 99, 116, 32, 115, 108, 111, 116, 115, 41, 44, 32, 97, 114, 109, 32, 105, 116, 44, 32, 116,
-104, 101, 110, 32, 82, 101, 99, 32, 43, 32, 80, 108, 97, 121, 46, 32, 84, 104, 105, 115, 32, 115, 119, 105,
-116, 99, 104, 32, 114, 101, 99, 111, 114, 100, 115, 32, 116, 104, 101, 32, 102, 105, 114, 115, 116, 32, 116, 119,
-111, 32, 105, 110, 112, 117, 116, 32, 99, 104, 97, 110, 110, 101, 108, 115, 32, 105, 110, 116, 111, 32, 97, 32,
-110, 101, 119, 32, 105, 110, 115, 101, 114, 116, 32, 119, 104, 101, 110, 32, 110, 111, 116, 104, 105, 110, 103, 32,
-105, 115, 32, 97, 114, 109, 101, 100, 46, 34, 32, 61, 32, 34, 69, 115, 99, 111, 108, 104, 97, 32, 97, 32,
-101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 99, 97, 100, 97, 32, 105, 110, 115, 101, 114, 116, 32, 110,
-111, 32, 77, 105, 120, 101, 114, 32, 40, 97, 32, 99, 97, 105, 120, 97, 32, 100, 101, 32, 101, 110, 116, 114,
-97, 100, 97, 32, 97, 99, 105, 109, 97, 32, 100, 111, 115, 32, 115, 108, 111, 116, 115, 32, 100, 101, 32, 101,
-102, 101, 105, 116, 111, 41, 44, 32, 97, 114, 109, 101, 45, 111, 32, 101, 32, 117, 115, 101, 32, 82, 101, 99,
-32, 43, 32, 80, 108, 97, 121, 46, 32, 69, 115, 116, 97, 32, 99, 104, 97, 118, 101, 32, 103, 114, 97, 118,
-97, 32, 111, 115, 32, 100, 111, 105, 115, 32, 112, 114, 105, 109, 101, 105, 114, 111, 115, 32, 99, 97, 110, 97,
-105, 115, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 110, 117, 109, 32, 105, 110, 115, 101, 114, 116,
-32, 110, 111, 118, 111, 32, 113, 117, 97, 110, 100, 111, 32, 110, 97, 100, 97, 32, 101, 115, 116, 195, 161, 32,
-97, 114, 109, 97, 100, 111, 46, 34, 10, 34, 73, 110, 112, 117, 116, 32, 99, 104, 97, 110, 110, 101, 108, 115,
-58, 32, 110, 111, 110, 101, 32, 111, 112, 101, 110, 46, 32, 67, 104, 111, 111, 115, 101, 32, 97, 110, 32, 105,
-110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 97, 98, 111, 118, 101, 32, 116, 111, 32, 114, 101, 99,
-111, 114, 100, 32, 97, 32, 109, 105, 99, 114, 111, 112, 104, 111, 110, 101, 32, 111, 114, 32, 97, 110, 32, 105,
-110, 115, 116, 114, 117, 109, 101, 110, 116, 46, 34, 32, 61, 32, 34, 67, 97, 110, 97, 105, 115, 32, 100, 101,
-32, 101, 110, 116, 114, 97, 100, 97, 58, 32, 110, 101, 110, 104, 117, 109, 32, 97, 98, 101, 114, 116, 111, 46,
-32, 69, 115, 99, 111, 108, 104, 97, 32, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32,
-100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 97, 99, 105, 109, 97, 32, 112, 97, 114, 97, 32, 103, 114,
-97, 118, 97, 114, 32, 117, 109, 32, 109, 105, 99, 114, 111, 102, 111, 110, 101, 32, 111, 117, 32, 117, 109, 32,
-105, 110, 115, 116, 114, 117, 109, 101, 110, 116, 111, 46, 34, 10, 34, 73, 110, 112, 117, 116, 32, 99, 104, 97,
-110, 110, 101, 108, 115, 32, 40, 123, 48, 125, 41, 58, 32, 123, 49, 125, 34, 32, 61, 32, 34, 67, 97, 110,
-97, 105, 115, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 40, 123, 48, 125, 41, 58, 32, 123, 49,
-125, 34, 10, 34, 80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 32, 110, 111, 116, 101, 115, 58, 32, 91, 76,
-77, 66, 93, 32, 111, 112, 101, 110, 115, 32, 116, 104, 101, 109, 32, 105, 110, 32, 116, 104, 101, 32, 80, 105,
-97, 110, 111, 32, 82, 111, 108, 108, 34, 32, 61, 32, 34, 78, 111, 116, 97, 115, 32, 100, 111, 32, 80, 105,
-97, 110, 111, 32, 82, 111, 108, 108, 58, 32, 91, 76, 77, 66, 93, 32, 97, 98, 114, 101, 32, 110, 111, 32,
-80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 34, 10, 10, 35, 32, 82, 111, 117, 110, 100, 32, 56, 57, 58,
-32, 86, 83, 84, 50, 32, 104, 111, 115, 116, 105, 110, 103, 44, 32, 112, 108, 117, 103, 105, 110, 115, 32, 116,
-104, 97, 116, 32, 119, 111, 110, 39, 116, 32, 115, 111, 117, 110, 100, 32, 97, 115, 32, 105, 110, 32, 70, 76,
-32, 83, 116, 117, 100, 105, 111, 10, 34, 115, 97, 109, 101, 32, 86, 83, 84, 50, 32, 73, 68, 34, 32, 61,
-32, 34, 109, 101, 115, 109, 111, 32, 73, 68, 32, 86, 83, 84, 50, 34, 10, 34, 116, 104, 101, 32, 112, 108,
-117, 103, 105, 110, 32, 99, 111, 117, 108, 100, 32, 110, 111, 116, 32, 115, 116, 97, 114, 116, 34, 32, 61, 32,
-34, 111, 32, 112, 108, 117, 103, 105, 110, 32, 110, 195, 163, 111, 32, 99, 111, 110, 115, 101, 103, 117, 105, 117,
-32, 105, 110, 105, 99, 105, 97, 114, 34, 10, 34, 73, 116, 115, 32, 100, 101, 102, 97, 117, 108, 116, 32, 115,
-101, 116, 116, 105, 110, 103, 115, 58, 32, 116, 104, 101, 32, 112, 114, 111, 106, 101, 99, 116, 32, 115, 97, 118,
-101, 100, 32, 116, 104, 101, 109, 32, 102, 111, 114, 32, 116, 104, 101, 32, 111, 116, 104, 101, 114, 32, 102, 111,
-114, 109, 97, 116, 32, 40, 86, 83, 84, 50, 47, 86, 83, 84, 51, 41, 34, 32, 61, 32, 34, 67, 111, 110,
-102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115, 32, 112, 97, 100, 114, 195, 163, 111, 58, 32, 111, 32,
-112, 114, 111, 106, 101, 116, 111, 32, 97, 115, 32, 115, 97, 108, 118, 111, 117, 32, 112, 97, 114, 97, 32, 111,
-32, 111, 117, 116, 114, 111, 32, 102, 111, 114, 109, 97, 116, 111, 32, 40, 86, 83, 84, 50, 47, 86, 83, 84,
-51, 41, 34, 10, 34, 83, 105, 108, 101, 110, 99, 101, 58, 32, 116, 104, 101, 32, 112, 108, 117, 103, 105, 110,
-32, 105, 115, 32, 105, 110, 115, 116, 97, 108, 108, 101, 100, 32, 98, 117, 116, 32, 100, 105, 100, 32, 110, 111,
-116, 32, 108, 111, 97, 100, 34, 32, 61, 32, 34, 83, 105, 108, 195, 170, 110, 99, 105, 111, 58, 32, 111, 32,
-112, 108, 117, 103, 105, 110, 32, 101, 115, 116, 195, 161, 32, 105, 110, 115, 116, 97, 108, 97, 100, 111, 32, 109,
-97, 115, 32, 110, 195, 163, 111, 32, 99, 97, 114, 114, 101, 103, 111, 117, 34, 10, 34, 80, 108, 117, 103, 105,
-110, 115, 32, 102, 111, 117, 110, 100, 32, 98, 117, 116, 32, 112, 108, 97, 121, 105, 110, 103, 32, 116, 104, 101,
-105, 114, 32, 100, 101, 102, 97, 117, 108, 116, 32, 115, 101, 116, 116, 105, 110, 103, 115, 32, 40, 116, 104, 101,
-32, 112, 114, 111, 106, 101, 99, 116, 32, 115, 97, 118, 101, 100, 32, 116, 104, 101, 109, 32, 102, 111, 114, 32,
-116, 104, 101, 32, 111, 116, 104, 101, 114, 32, 102, 111, 114, 109, 97, 116, 44, 32, 86, 83, 84, 50, 47, 86,
-83, 84, 51, 41, 58, 34, 32, 61, 32, 34, 80, 108, 117, 103, 105, 110, 115, 32, 101, 110, 99, 111, 110, 116,
-114, 97, 100, 111, 115, 32, 109, 97, 115, 32, 116, 111, 99, 97, 110, 100, 111, 32, 99, 111, 109, 32, 97, 115,
-32, 99, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115, 32, 112, 97, 100, 114, 195, 163, 111,
-32, 40, 111, 32, 112, 114, 111, 106, 101, 116, 111, 32, 97, 115, 32, 115, 97, 108, 118, 111, 117, 32, 112, 97,
-114, 97, 32, 111, 32, 111, 117, 116, 114, 111, 32, 102, 111, 114, 109, 97, 116, 111, 44, 32, 86, 83, 84, 50,
-47, 86, 83, 84, 51, 41, 58, 34, 10, 34, 80, 108, 117, 103, 105, 110, 115, 32, 105, 110, 115, 116, 97, 108,
-108, 101, 100, 32, 98, 117, 116, 32, 110, 111, 116, 32, 108, 111, 97, 100, 101, 100, 32, 40, 115, 105, 108, 101,
-110, 116, 41, 58, 34, 32, 61, 32, 34, 80, 108, 117, 103, 105, 110, 115, 32, 105, 110, 115, 116, 97, 108, 97,
-100, 111, 115, 32, 109, 97, 115, 32, 110, 195, 163, 111, 32, 99, 97, 114, 114, 101, 103, 97, 100, 111, 115, 32,
-40, 101, 109, 32, 115, 105, 108, 195, 170, 110, 99, 105, 111, 41, 58, 34, 10, 34, 123, 48, 125, 32, 112, 108,
-117, 103, 105, 110, 40, 115, 41, 32, 119, 105, 108, 108, 32, 110, 111, 116, 32, 115, 111, 117, 110, 100, 32, 97,
-115, 32, 105, 110, 32, 70, 76, 32, 83, 116, 117, 100, 105, 111, 32, 40, 110, 111, 116, 32, 105, 110, 115, 116,
-97, 108, 108, 101, 100, 44, 32, 110, 111, 116, 32, 108, 111, 97, 100, 101, 100, 44, 32, 111, 114, 32, 119, 105,
-116, 104, 111, 117, 116, 32, 116, 104, 101, 105, 114, 32, 115, 101, 116, 116, 105, 110, 103, 115, 41, 58, 32, 115,
-101, 101, 32, 119, 104, 97, 116, 32, 76, 89, 78, 88, 32, 100, 105, 100, 32, 119, 105, 116, 104, 32, 101, 97,
-99, 104, 46, 34, 32, 61, 32, 34, 123, 48, 125, 32, 112, 108, 117, 103, 105, 110, 40, 115, 41, 32, 110, 195,
-163, 111, 32, 118, 195, 163, 111, 32, 115, 111, 97, 114, 32, 99, 111, 109, 111, 32, 110, 111, 32, 70, 76, 32,
-83, 116, 117, 100, 105, 111, 32, 40, 110, 195, 163, 111, 32, 105, 110, 115, 116, 97, 108, 97, 100, 111, 115, 44,
-32, 110, 195, 163, 111, 32, 99, 97, 114, 114, 101, 103, 97, 100, 111, 115, 32, 111, 117, 32, 115, 101, 109, 32,
-97, 115, 32, 99, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115, 41, 58, 32, 118, 101, 106,
-97, 32, 111, 32, 113, 117, 101, 32, 111, 32, 76, 89, 78, 88, 32, 102, 101, 122, 32, 99, 111, 109, 32, 99,
-97, 100, 97, 32, 117, 109, 46, 34, 10, 35, 32, 45, 45, 45, 32, 82, 111, 117, 110, 100, 32, 56, 52, 58,
-32, 69, 120, 112, 111, 114, 116, 32, 111, 112, 116, 105, 111, 110, 115, 44, 32, 78, 101, 119, 32, 112, 114, 111,
-106, 101, 99, 116, 44, 32, 67, 108, 105, 112, 32, 112, 114, 111, 112, 101, 114, 116, 105, 101, 115, 44, 32, 65,
-114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 115, 44, 32, 80, 108, 117, 103, 105, 110, 32, 112, 101, 114, 102,
-111, 114, 109, 97, 110, 99, 101, 32, 109, 111, 110, 105, 116, 111, 114, 44, 32, 84, 111, 117, 99, 104, 32, 107,
-101, 121, 98, 111, 97, 114, 100, 10, 34, 83, 111, 117, 114, 99, 101, 34, 32, 61, 32, 34, 79, 114, 105, 103,
-101, 109, 34, 10, 34, 84, 105, 109, 101, 34, 32, 61, 32, 34, 84, 101, 109, 112, 111, 34, 10, 34, 65, 108,
-108, 32, 123, 48, 125, 32, 115, 101, 108, 101, 99, 116, 101, 100, 32, 99, 108, 105, 112, 115, 34, 32, 61, 32,
-34, 84, 111, 100, 111, 115, 32, 111, 115, 32, 123, 48, 125, 32, 99, 108, 105, 112, 101, 115, 32, 115, 101, 108,
-101, 99, 105, 111, 110, 97, 100, 111, 115, 34, 10, 34, 85, 115, 101, 115, 34, 32, 61, 32, 34, 85, 115, 97,
-34, 10, 34, 84, 114, 97, 99, 107, 34, 32, 61, 32, 34, 70, 97, 105, 120, 97, 34, 10, 34, 98, 97, 114,
-58, 98, 101, 97, 116, 58, 116, 105, 99, 107, 32, 40, 49, 58, 49, 58, 48, 48, 48, 32, 105, 115, 32, 116,
-104, 101, 32, 115, 116, 97, 114, 116, 32, 111, 102, 32, 116, 104, 101, 32, 115, 111, 110, 103, 41, 34, 32, 61,
-32, 34, 99, 111, 109, 112, 97, 115, 115, 111, 58, 116, 101, 109, 112, 111, 58, 116, 105, 99, 107, 32, 40, 49,
-58, 49, 58, 48, 48, 48, 32, 195, 169, 32, 111, 32, 105, 110, 195, 173, 99, 105, 111, 32, 100, 97, 32, 109,
-195, 186, 115, 105, 99, 97, 41, 34, 10, 34, 98, 97, 114, 115, 58, 98, 101, 97, 116, 115, 58, 116, 105, 99,
-107, 115, 34, 32, 61, 32, 34, 99, 111, 109, 112, 97, 115, 115, 111, 115, 58, 116, 101, 109, 112, 111, 115, 58,
-116, 105, 99, 107, 115, 34, 10, 34, 72, 111, 119, 32, 109, 117, 99, 104, 32, 111, 102, 32, 116, 104, 101, 32,
-115, 111, 117, 114, 99, 101, 39, 115, 32, 115, 116, 97, 114, 116, 32, 105, 115, 32, 115, 107, 105, 112, 112, 101,
-100, 32, 40, 98, 97, 114, 115, 58, 98, 101, 97, 116, 115, 58, 116, 105, 99, 107, 115, 41, 34, 32, 61, 32,
-34, 81, 117, 97, 110, 116, 111, 32, 100, 111, 32, 105, 110, 195, 173, 99, 105, 111, 32, 100, 97, 32, 111, 114,
-105, 103, 101, 109, 32, 195, 169, 32, 112, 117, 108, 97, 100, 111, 32, 40, 99, 111, 109, 112, 97, 115, 115, 111,
-115, 58, 116, 101, 109, 112, 111, 115, 58, 116, 105, 99, 107, 115, 41, 34, 10, 34, 77, 117, 116, 101, 100, 34,
-32, 61, 32, 34, 77, 117, 100, 111, 34, 10, 34, 71, 97, 105, 110, 34, 32, 61, 32, 34, 71, 97, 110, 104,
-111, 34, 10, 34, 84, 104, 101, 32, 97, 117, 100, 105, 111, 32, 99, 104, 97, 110, 110, 101, 108, 39, 115, 32,
-112, 105, 116, 99, 104, 58, 32, 101, 118, 101, 114, 121, 32, 99, 108, 105, 112, 32, 111, 102, 32, 116, 104, 105,
-115, 32, 102, 105, 108, 101, 32, 102, 111, 108, 108, 111, 119, 115, 32, 105, 116, 34, 32, 61, 32, 34, 65, 32,
-97, 102, 105, 110, 97, 195, 167, 195, 163, 111, 32, 100, 111, 32, 99, 97, 110, 97, 108, 32, 100, 101, 32, 195,
-161, 117, 100, 105, 111, 58, 32, 116, 111, 100, 111, 115, 32, 111, 115, 32, 99, 108, 105, 112, 101, 115, 32, 100,
-101, 115, 116, 101, 32, 97, 114, 113, 117, 105, 118, 111, 32, 97, 32, 115, 101, 103, 117, 101, 109, 34, 10, 34,
-70, 97, 100, 101, 32, 105, 110, 34, 32, 61, 32, 34, 70, 97, 100, 101, 32, 105, 110, 34, 10, 34, 70, 97,
-100, 101, 32, 111, 117, 116, 34, 32, 61, 32, 34, 70, 97, 100, 101, 32, 111, 117, 116, 34, 10, 34, 83, 116,
-114, 101, 116, 99, 104, 32, 116, 111, 34, 32, 61, 32, 34, 69, 115, 116, 105, 99, 97, 114, 32, 112, 97, 114,
-97, 34, 10, 34, 48, 58, 32, 116, 104, 101, 32, 102, 105, 108, 101, 32, 112, 108, 97, 121, 115, 32, 97, 116,
-32, 105, 116, 115, 32, 111, 119, 110, 32, 115, 112, 101, 101, 100, 59, 32, 111, 116, 104, 101, 114, 119, 105, 115,
-101, 32, 116, 104, 101, 32, 119, 104, 111, 108, 101, 32, 102, 105, 108, 101, 32, 108, 97, 115, 116, 115, 32, 116,
-104, 105, 115, 32, 109, 97, 110, 121, 32, 98, 101, 97, 116, 115, 32, 97, 116, 32, 116, 104, 101, 32, 112, 114,
-111, 106, 101, 99, 116, 32, 116, 101, 109, 112, 111, 34, 32, 61, 32, 34, 48, 58, 32, 111, 32, 97, 114, 113,
-117, 105, 118, 111, 32, 116, 111, 99, 97, 32, 110, 97, 32, 112, 114, 195, 179, 112, 114, 105, 97, 32, 118, 101,
-108, 111, 99, 105, 100, 97, 100, 101, 59, 32, 115, 101, 110, 195, 163, 111, 32, 111, 32, 97, 114, 113, 117, 105,
-118, 111, 32, 105, 110, 116, 101, 105, 114, 111, 32, 100, 117, 114, 97, 32, 101, 115, 115, 101, 32, 110, 195, 186,
-109, 101, 114, 111, 32, 100, 101, 32, 116, 101, 109, 112, 111, 115, 32, 110, 111, 32, 66, 80, 77, 32, 100, 111,
-32, 112, 114, 111, 106, 101, 116, 111, 34, 10, 34, 75, 101, 101, 112, 32, 116, 104, 101, 32, 112, 105, 116, 99,
-104, 34, 32, 61, 32, 34, 77, 97, 110, 116, 101, 114, 32, 97, 32, 97, 102, 105, 110, 97, 195, 167, 195, 163,
-111, 34, 10, 34, 68, 111, 110, 39, 116, 32, 99, 104, 97, 110, 103, 101, 34, 32, 61, 32, 34, 78, 195, 163,
-111, 32, 109, 117, 100, 97, 114, 34, 10, 34, 77, 117, 116, 101, 32, 97, 108, 108, 34, 32, 61, 32, 34, 83,
-105, 108, 101, 110, 99, 105, 97, 114, 32, 116, 111, 100, 111, 115, 34, 10, 34, 85, 110, 109, 117, 116, 101, 32,
-97, 108, 108, 34, 32, 61, 32, 34, 84, 105, 114, 97, 114, 32, 111, 32, 109, 117, 100, 111, 32, 100, 101, 32,
-116, 111, 100, 111, 115, 34, 10, 34, 70, 108, 105, 112, 32, 115, 116, 97, 116, 101, 34, 32, 61, 32, 34, 73,
-110, 118, 101, 114, 116, 101, 114, 32, 111, 32, 101, 115, 116, 97, 100, 111, 34, 10, 34, 83, 101, 116, 32, 116,
-111, 34, 32, 61, 32, 34, 68, 101, 102, 105, 110, 105, 114, 32, 101, 109, 34, 10, 34, 67, 104, 97, 110, 103,
-101, 32, 98, 121, 34, 32, 61, 32, 34, 77, 117, 100, 97, 114, 32, 101, 109, 34, 10, 34, 66, 97, 99, 107,
-32, 116, 111, 32, 104, 111, 119, 32, 116, 104, 101, 32, 99, 108, 105, 112, 32, 119, 97, 115, 32, 119, 104, 101,
-110, 32, 116, 104, 105, 115, 32, 119, 105, 110, 100, 111, 119, 32, 111, 112, 101, 110, 101, 100, 34, 32, 61, 32,
-34, 86, 111, 108, 116, 97, 32, 111, 32, 99, 108, 105, 112, 101, 32, 97, 32, 99, 111, 109, 111, 32, 101, 115,
-116, 97, 118, 97, 32, 113, 117, 97, 110, 100, 111, 32, 101, 115, 116, 97, 32, 106, 97, 110, 101, 108, 97, 32,
-97, 98, 114, 105, 117, 34, 10, 34, 67, 108, 105, 112, 32, 112, 114, 111, 112, 101, 114, 116, 105, 101, 115, 34,
-32, 61, 32, 34, 80, 114, 111, 112, 114, 105, 101, 100, 97, 100, 101, 115, 32, 100, 111, 32, 99, 108, 105, 112,
-101, 34, 10, 34, 77, 101, 114, 103, 101, 32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 99, 117, 114, 114, 101,
-110, 116, 32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 34, 32, 61, 32, 34, 77, 101, 115, 99, 108,
-97, 114, 32, 110, 111, 32, 97, 114, 114, 97, 110, 106, 111, 32, 97, 116, 117, 97, 108, 34, 10, 34, 77, 97,
-107, 101, 32, 105, 116, 32, 116, 104, 101, 32, 99, 117, 114, 114, 101, 110, 116, 32, 97, 114, 114, 97, 110, 103,
-101, 109, 101, 110, 116, 32, 40, 116, 104, 101, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 115, 104, 111, 119,
-115, 32, 105, 116, 41, 34, 32, 61, 32, 34, 84, 111, 114, 110, 97, 45, 111, 32, 111, 32, 97, 114, 114, 97,
-110, 106, 111, 32, 97, 116, 117, 97, 108, 32, 40, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 111, 32,
-109, 111, 115, 116, 114, 97, 41, 34, 10, 34, 65, 32, 110, 101, 119, 32, 101, 109, 112, 116, 121, 32, 97, 114,
-114, 97, 110, 103, 101, 109, 101, 110, 116, 34, 32, 61, 32, 34, 85, 109, 32, 110, 111, 118, 111, 32, 97, 114,
-114, 97, 110, 106, 111, 32, 118, 97, 122, 105, 111, 34, 10, 34, 65, 32, 99, 111, 112, 121, 32, 111, 102, 32,
-116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 101, 100, 32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116,
-44, 32, 114, 105, 103, 104, 116, 32, 97, 102, 116, 101, 114, 32, 105, 116, 34, 32, 61, 32, 34, 85, 109, 97,
-32, 99, 195, 179, 112, 105, 97, 32, 100, 111, 32, 97, 114, 114, 97, 110, 106, 111, 32, 115, 101, 108, 101, 99,
-105, 111, 110, 97, 100, 111, 44, 32, 108, 111, 103, 111, 32, 100, 101, 112, 111, 105, 115, 32, 100, 101, 108, 101,
-34, 10, 34, 83, 111, 117, 114, 99, 101, 32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 34, 32, 61,
-32, 34, 65, 114, 114, 97, 110, 106, 111, 32, 100, 101, 32, 111, 114, 105, 103, 101, 109, 34, 10, 34, 77, 111,
-100, 101, 34, 32, 61, 32, 34, 77, 111, 100, 111, 34, 10, 34, 73, 110, 115, 101, 114, 116, 32, 40, 109, 111,
-118, 101, 115, 32, 119, 104, 97, 116, 32, 102, 111, 108, 108, 111, 119, 115, 41, 34, 32, 61, 32, 34, 73, 110,
-115, 101, 114, 105, 114, 32, 40, 101, 109, 112, 117, 114, 114, 97, 32, 111, 32, 113, 117, 101, 32, 118, 101, 109,
-32, 100, 101, 112, 111, 105, 115, 41, 34, 10, 34, 77, 101, 114, 103, 101, 32, 40, 111, 118, 101, 114, 32, 119,
-104, 97, 116, 32, 105, 115, 32, 116, 104, 101, 114, 101, 41, 34, 32, 61, 32, 34, 77, 101, 115, 99, 108, 97,
-114, 32, 40, 112, 111, 114, 32, 99, 105, 109, 97, 32, 100, 111, 32, 113, 117, 101, 32, 106, 195, 161, 32, 101,
-120, 105, 115, 116, 101, 41, 34, 10, 34, 82, 101, 112, 108, 97, 99, 101, 32, 40, 99, 108, 101, 97, 114, 115,
-32, 116, 104, 97, 116, 32, 108, 101, 110, 103, 116, 104, 32, 102, 105, 114, 115, 116, 41, 34, 32, 61, 32, 34,
-83, 117, 98, 115, 116, 105, 116, 117, 105, 114, 32, 40, 108, 105, 109, 112, 97, 32, 101, 115, 115, 101, 32, 116,
-114, 101, 99, 104, 111, 32, 97, 110, 116, 101, 115, 41, 34, 10, 34, 80, 111, 115, 105, 116, 105, 111, 110, 34,
-32, 61, 32, 34, 80, 111, 115, 105, 195, 167, 195, 163, 111, 34, 10, 34, 80, 108, 97, 121, 98, 97, 99, 107,
-32, 112, 111, 115, 105, 116, 105, 111, 110, 34, 32, 61, 32, 34, 80, 111, 115, 105, 195, 167, 195, 163, 111, 32,
-100, 101, 32, 114, 101, 112, 114, 111, 100, 117, 195, 167, 195, 163, 111, 34, 10, 34, 123, 48, 125, 32, 99, 108,
-105, 112, 115, 44, 32, 123, 49, 125, 32, 98, 97, 114, 115, 34, 32, 61, 32, 34, 123, 48, 125, 32, 99, 108,
-105, 112, 101, 115, 44, 32, 123, 49, 125, 32, 99, 111, 109, 112, 97, 115, 115, 111, 115, 34, 10, 34, 77, 101,
-114, 103, 101, 32, 105, 110, 116, 111, 32, 92, 34, 123, 48, 125, 92, 34, 34, 32, 61, 32, 34, 77, 101, 115,
-99, 108, 97, 114, 32, 101, 109, 32, 92, 34, 123, 48, 125, 92, 34, 34, 10, 34, 83, 104, 111, 119, 34, 32,
-61, 32, 34, 77, 111, 115, 116, 114, 97, 114, 34, 10, 34, 68, 117, 112, 108, 105, 99, 97, 116, 101, 34, 32,
-61, 32, 34, 68, 117, 112, 108, 105, 99, 97, 114, 34, 10, 34, 77, 101, 114, 103, 101, 34, 32, 61, 32, 34,
-77, 101, 115, 99, 108, 97, 114, 34, 10, 34, 87, 104, 97, 116, 32, 116, 111, 32, 114, 101, 110, 100, 101, 114,
-34, 32, 61, 32, 34, 79, 32, 113, 117, 101, 32, 114, 101, 110, 100, 101, 114, 105, 122, 97, 114, 34, 10, 34,
-79, 117, 116, 112, 117, 116, 32, 102, 111, 114, 109, 97, 116, 34, 32, 61, 32, 34, 70, 111, 114, 109, 97, 116,
-111, 32, 100, 101, 32, 115, 97, 195, 173, 100, 97, 34, 10, 34, 83, 111, 110, 103, 32, 40, 80, 108, 97, 121,
-108, 105, 115, 116, 41, 34, 32, 61, 32, 34, 83, 111, 110, 103, 32, 40, 80, 108, 97, 121, 108, 105, 115, 116,
-41, 34, 10, 34, 80, 108, 97, 121, 108, 105, 115, 116, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 34, 32,
-61, 32, 34, 83, 101, 108, 101, 195, 167, 195, 163, 111, 32, 100, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116,
-34, 10, 34, 87, 104, 97, 116, 32, 105, 115, 32, 114, 101, 110, 100, 101, 114, 101, 100, 58, 32, 116, 104, 101,
-32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 44, 32, 116, 104, 101, 32, 99, 117, 114, 114, 101, 110,
-116, 32, 112, 97, 116, 116, 101, 114, 110, 44, 32, 111, 114, 32, 116, 104, 101, 32, 80, 108, 97, 121, 108, 105,
-115, 116, 39, 115, 32, 116, 105, 109, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 34, 32, 61, 32, 34,
-79, 32, 113, 117, 101, 32, 195, 169, 32, 114, 101, 110, 100, 101, 114, 105, 122, 97, 100, 111, 58, 32, 111, 32,
-97, 114, 114, 97, 110, 106, 111, 44, 32, 111, 32, 112, 97, 116, 116, 101, 114, 110, 32, 97, 116, 117, 97, 108,
-32, 111, 117, 32, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 100, 101, 32, 116, 101, 109, 112, 111,
-32, 100, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 34, 10, 34, 79, 110, 99, 101, 34, 32, 61, 32, 34,
-85, 109, 97, 32, 118, 101, 122, 34, 10, 34, 123, 48, 125, 32, 116, 105, 109, 101, 115, 34, 32, 61, 32, 34,
-123, 48, 125, 32, 118, 101, 122, 101, 115, 34, 10, 34, 72, 111, 119, 32, 109, 97, 110, 121, 32, 116, 105, 109,
-101, 115, 32, 116, 104, 101, 32, 114, 97, 110, 103, 101, 32, 112, 108, 97, 121, 115, 32, 105, 110, 32, 116, 104,
-101, 32, 102, 105, 108, 101, 34, 32, 61, 32, 34, 81, 117, 97, 110, 116, 97, 115, 32, 118, 101, 122, 101, 115,
-32, 111, 32, 116, 114, 101, 99, 104, 111, 32, 116, 111, 99, 97, 32, 110, 111, 32, 97, 114, 113, 117, 105, 118,
-111, 34, 10, 34, 67, 117, 116, 32, 114, 101, 109, 97, 105, 110, 100, 101, 114, 34, 32, 61, 32, 34, 67, 111,
-114, 116, 97, 114, 32, 111, 32, 114, 101, 115, 116, 97, 110, 116, 101, 34, 10, 34, 76, 101, 97, 118, 101, 32,
-114, 101, 109, 97, 105, 110, 100, 101, 114, 34, 32, 61, 32, 34, 68, 101, 105, 120, 97, 114, 32, 111, 32, 114,
-101, 115, 116, 97, 110, 116, 101, 34, 10, 34, 87, 114, 97, 112, 32, 114, 101, 109, 97, 105, 110, 100, 101, 114,
-34, 32, 61, 32, 34, 69, 110, 114, 111, 108, 97, 114, 32, 111, 32, 114, 101, 115, 116, 97, 110, 116, 101, 34,
-10, 34, 67, 117, 116, 58, 32, 115, 116, 111, 112, 32, 101, 120, 97, 99, 116, 108, 121, 32, 97, 116, 32, 116,
-104, 101, 32, 101, 110, 100, 32, 40, 108, 111, 111, 112, 115, 41, 46, 32, 76, 101, 97, 118, 101, 58, 32, 108,
-101, 116, 32, 114, 101, 118, 101, 114, 98, 115, 32, 97, 110, 100, 32, 114, 101, 108, 101, 97, 115, 101, 115, 32,
-114, 105, 110, 103, 32, 111, 117, 116, 32, 40, 115, 111, 110, 103, 115, 41, 46, 32, 87, 114, 97, 112, 58, 32,
-109, 105, 120, 32, 116, 104, 101, 32, 116, 97, 105, 108, 32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 115, 116,
-97, 114, 116, 32, 40, 115, 101, 97, 109, 108, 101, 115, 115, 32, 108, 111, 111, 112, 115, 41, 34, 32, 61, 32,
-34, 67, 111, 114, 116, 97, 114, 58, 32, 112, 97, 114, 97, 32, 101, 120, 97, 116, 97, 109, 101, 110, 116, 101,
-32, 110, 111, 32, 102, 105, 109, 32, 40, 108, 111, 111, 112, 115, 41, 46, 32, 68, 101, 105, 120, 97, 114, 58,
-32, 114, 101, 118, 101, 114, 98, 115, 32, 101, 32, 114, 101, 108, 101, 97, 115, 101, 115, 32, 115, 111, 97, 109,
-32, 97, 116, 195, 169, 32, 111, 32, 102, 105, 109, 32, 40, 109, 195, 186, 115, 105, 99, 97, 115, 41, 46, 32,
-69, 110, 114, 111, 108, 97, 114, 58, 32, 109, 105, 115, 116, 117, 114, 97, 32, 97, 32, 99, 97, 117, 100, 97,
-32, 110, 111, 32, 105, 110, 195, 173, 99, 105, 111, 32, 40, 108, 111, 111, 112, 115, 32, 115, 101, 109, 32, 101,
-109, 101, 110, 100, 97, 41, 34, 10, 34, 76, 111, 110, 103, 101, 115, 116, 32, 116, 97, 105, 108, 34, 32, 61,
-32, 34, 67, 97, 117, 100, 97, 32, 109, 195, 161, 120, 105, 109, 97, 34, 10, 34, 84, 104, 101, 32, 116, 97,
-105, 108, 32, 115, 116, 111, 112, 115, 32, 101, 97, 114, 108, 105, 101, 114, 32, 119, 104, 101, 110, 32, 116, 104,
-101, 32, 115, 111, 117, 110, 100, 32, 104, 97, 115, 32, 102, 97, 100, 101, 100, 32, 111, 117, 116, 34, 32, 61,
-32, 34, 65, 32, 99, 97, 117, 100, 97, 32, 112, 97, 114, 97, 32, 97, 110, 116, 101, 115, 32, 113, 117, 97,
-110, 100, 111, 32, 111, 32, 115, 111, 109, 32, 106, 195, 161, 32, 115, 117, 109, 105, 117, 34, 10, 34, 79, 110,
-101, 32, 102, 105, 108, 101, 32, 40, 116, 104, 101, 32, 109, 105, 120, 41, 34, 32, 61, 32, 34, 85, 109, 32,
-97, 114, 113, 117, 105, 118, 111, 32, 40, 97, 32, 109, 105, 120, 97, 103, 101, 109, 41, 34, 10, 34, 79, 110,
-101, 32, 112, 101, 114, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115, 101, 114, 116, 32, 40, 115, 116, 101, 109,
-115, 41, 34, 32, 61, 32, 34, 85, 109, 32, 112, 111, 114, 32, 105, 110, 115, 101, 114, 116, 32, 100, 111, 32,
-77, 105, 120, 101, 114, 32, 40, 115, 116, 101, 109, 115, 41, 34, 10, 34, 79, 110, 101, 32, 112, 101, 114, 32,
-99, 104, 97, 110, 110, 101, 108, 32, 40, 115, 116, 101, 109, 115, 41, 34, 32, 61, 32, 34, 85, 109, 32, 112,
-111, 114, 32, 99, 97, 110, 97, 108, 32, 40, 115, 116, 101, 109, 115, 41, 34, 10, 34, 83, 116, 101, 109, 115,
-58, 32, 97, 32, 102, 105, 108, 101, 32, 102, 111, 114, 32, 101, 97, 99, 104, 32, 109, 105, 120, 101, 114, 32,
-105, 110, 115, 101, 114, 116, 32, 116, 104, 97, 116, 32, 103, 101, 116, 115, 32, 115, 111, 117, 110, 100, 44, 32,
-111, 114, 32, 102, 111, 114, 32, 101, 97, 99, 104, 32, 99, 104, 97, 110, 110, 101, 108, 32, 116, 104, 97, 116,
-32, 112, 108, 97, 121, 115, 34, 32, 61, 32, 34, 83, 116, 101, 109, 115, 58, 32, 117, 109, 32, 97, 114, 113,
-117, 105, 118, 111, 32, 112, 97, 114, 97, 32, 99, 97, 100, 97, 32, 105, 110, 115, 101, 114, 116, 32, 100, 111,
-32, 77, 105, 120, 101, 114, 32, 113, 117, 101, 32, 114, 101, 99, 101, 98, 101, 32, 115, 111, 109, 44, 32, 111,
-117, 32, 112, 97, 114, 97, 32, 99, 97, 100, 97, 32, 99, 97, 110, 97, 108, 32, 113, 117, 101, 32, 116, 111,
-99, 97, 34, 10, 34, 65, 108, 115, 111, 32, 116, 104, 101, 32, 102, 117, 108, 108, 32, 109, 105, 120, 34, 32,
-61, 32, 34, 84, 97, 109, 98, 195, 169, 109, 32, 97, 32, 109, 105, 120, 97, 103, 101, 109, 32, 99, 111, 109,
-112, 108, 101, 116, 97, 34, 10, 34, 66, 105, 116, 32, 100, 101, 112, 116, 104, 34, 32, 61, 32, 34, 82, 101,
-115, 111, 108, 117, 195, 167, 195, 163, 111, 34, 10, 34, 49, 54, 32, 98, 105, 116, 115, 32, 40, 105, 110, 116,
-101, 103, 101, 114, 41, 34, 32, 61, 32, 34, 49, 54, 32, 98, 105, 116, 115, 32, 40, 105, 110, 116, 101, 105,
-114, 111, 41, 34, 10, 34, 50, 52, 32, 98, 105, 116, 115, 32, 40, 105, 110, 116, 101, 103, 101, 114, 41, 34,
-32, 61, 32, 34, 50, 52, 32, 98, 105, 116, 115, 32, 40, 105, 110, 116, 101, 105, 114, 111, 41, 34, 10, 34,
-51, 50, 32, 98, 105, 116, 115, 32, 40, 102, 108, 111, 97, 116, 41, 34, 32, 61, 32, 34, 51, 50, 32, 98,
-105, 116, 115, 32, 40, 102, 108, 111, 97, 116, 41, 34, 10, 34, 66, 105, 116, 114, 97, 116, 101, 34, 32, 61,
-32, 34, 84, 97, 120, 97, 32, 100, 101, 32, 98, 105, 116, 115, 34, 10, 34, 67, 111, 110, 115, 116, 97, 110,
-116, 32, 98, 105, 116, 114, 97, 116, 101, 32, 40, 104, 105, 103, 104, 101, 114, 58, 32, 98, 101, 116, 116, 101,
-114, 32, 115, 111, 117, 110, 100, 44, 32, 98, 105, 103, 103, 101, 114, 32, 102, 105, 108, 101, 41, 34, 32, 61,
-32, 34, 84, 97, 120, 97, 32, 100, 101, 32, 98, 105, 116, 115, 32, 99, 111, 110, 115, 116, 97, 110, 116, 101,
-32, 40, 109, 97, 105, 111, 114, 58, 32, 115, 111, 109, 32, 109, 101, 108, 104, 111, 114, 44, 32, 97, 114, 113,
-117, 105, 118, 111, 32, 109, 97, 105, 111, 114, 41, 34, 10, 34, 67, 111, 109, 112, 114, 101, 115, 115, 105, 111,
-110, 34, 32, 61, 32, 34, 67, 111, 109, 112, 114, 101, 115, 115, 195, 163, 111, 34, 10, 34, 48, 32, 40, 102,
-97, 115, 116, 101, 115, 116, 41, 34, 32, 61, 32, 34, 48, 32, 40, 109, 97, 105, 115, 32, 114, 195, 161, 112,
-105, 100, 97, 41, 34, 10, 34, 53, 32, 40, 100, 101, 102, 97, 117, 108, 116, 41, 34, 32, 61, 32, 34, 53,
-32, 40, 112, 97, 100, 114, 195, 163, 111, 41, 34, 10, 34, 56, 32, 40, 115, 109, 97, 108, 108, 101, 115, 116,
-41, 34, 32, 61, 32, 34, 56, 32, 40, 109, 101, 110, 111, 114, 32, 97, 114, 113, 117, 105, 118, 111, 41, 34,
-10, 34, 70, 76, 65, 67, 32, 105, 115, 32, 108, 111, 115, 115, 108, 101, 115, 115, 32, 97, 116, 32, 101, 118,
-101, 114, 121, 32, 108, 101, 118, 101, 108, 59, 32, 104, 105, 103, 104, 101, 114, 32, 108, 101, 118, 101, 108, 115,
-32, 109, 97, 107, 101, 32, 115, 109, 97, 108, 108, 101, 114, 32, 102, 105, 108, 101, 115, 32, 97, 110, 100, 32,
-116, 97, 107, 101, 32, 108, 111, 110, 103, 101, 114, 34, 32, 61, 32, 34, 79, 32, 70, 76, 65, 67, 32, 110,
-195, 163, 111, 32, 112, 101, 114, 100, 101, 32, 113, 117, 97, 108, 105, 100, 97, 100, 101, 32, 101, 109, 32, 110,
-101, 110, 104, 117, 109, 32, 110, 195, 173, 118, 101, 108, 59, 32, 110, 195, 173, 118, 101, 105, 115, 32, 109, 97,
-105, 111, 114, 101, 115, 32, 102, 97, 122, 101, 109, 32, 97, 114, 113, 117, 105, 118, 111, 115, 32, 109, 101, 110,
-111, 114, 101, 115, 32, 101, 32, 100, 101, 109, 111, 114, 97, 109, 32, 109, 97, 105, 115, 34, 10, 34, 67, 104,
-97, 110, 110, 101, 108, 115, 34, 32, 61, 32, 34, 67, 97, 110, 97, 105, 115, 34, 10, 34, 83, 116, 101, 114,
-101, 111, 34, 32, 61, 32, 34, 69, 115, 116, 195, 169, 114, 101, 111, 34, 10, 34, 77, 111, 110, 111, 32, 40,
-98, 111, 116, 104, 32, 115, 105, 100, 101, 115, 32, 109, 105, 120, 101, 100, 41, 34, 32, 61, 32, 34, 77, 111,
-110, 111, 32, 40, 111, 115, 32, 100, 111, 105, 115, 32, 108, 97, 100, 111, 115, 32, 109, 105, 115, 116, 117, 114,
-97, 100, 111, 115, 41, 34, 10, 34, 77, 111, 110, 111, 32, 40, 108, 101, 102, 116, 32, 111, 110, 108, 121, 41,
-34, 32, 61, 32, 34, 77, 111, 110, 111, 32, 40, 115, 195, 179, 32, 111, 32, 101, 115, 113, 117, 101, 114, 100,
-111, 41, 34, 10, 34, 77, 111, 110, 111, 32, 40, 114, 105, 103, 104, 116, 32, 111, 110, 108, 121, 41, 34, 32,
-61, 32, 34, 77, 111, 110, 111, 32, 40, 115, 195, 179, 32, 111, 32, 100, 105, 114, 101, 105, 116, 111, 41, 34,
-10, 34, 68, 105, 116, 104, 101, 114, 34, 32, 61, 32, 34, 68, 105, 116, 104, 101, 114, 34, 10, 34, 84, 80,
-68, 70, 34, 32, 61, 32, 34, 84, 80, 68, 70, 34, 10, 34, 84, 80, 68, 70, 32, 43, 32, 110, 111, 105,
-115, 101, 32, 115, 104, 97, 112, 105, 110, 103, 34, 32, 61, 32, 34, 84, 80, 68, 70, 32, 43, 32, 110, 111,
-105, 115, 101, 32, 115, 104, 97, 112, 105, 110, 103, 34, 10, 34, 72, 105, 100, 101, 115, 32, 116, 104, 101, 32,
-114, 111, 117, 110, 100, 105, 110, 103, 32, 110, 111, 105, 115, 101, 32, 111, 102, 32, 49, 54, 32, 97, 110, 100,
-32, 50, 52, 32, 98, 105, 116, 32, 102, 105, 108, 101, 115, 32, 40, 110, 111, 105, 115, 101, 32, 115, 104, 97,
-112, 105, 110, 103, 32, 109, 111, 118, 101, 115, 32, 105, 116, 32, 119, 104, 101, 114, 101, 32, 116, 104, 101, 32,
-101, 97, 114, 32, 105, 115, 32, 108, 101, 97, 115, 116, 32, 115, 101, 110, 115, 105, 116, 105, 118, 101, 41, 34,
-32, 61, 32, 34, 68, 105, 115, 102, 97, 114, 195, 167, 97, 32, 111, 32, 114, 117, 195, 173, 100, 111, 32, 100,
-101, 32, 97, 114, 114, 101, 100, 111, 110, 100, 97, 109, 101, 110, 116, 111, 32, 100, 101, 32, 97, 114, 113, 117,
-105, 118, 111, 115, 32, 100, 101, 32, 49, 54, 32, 101, 32, 50, 52, 32, 98, 105, 116, 115, 32, 40, 111, 32,
-110, 111, 105, 115, 101, 32, 115, 104, 97, 112, 105, 110, 103, 32, 111, 32, 108, 101, 118, 97, 32, 112, 97, 114,
-97, 32, 111, 110, 100, 101, 32, 111, 32, 111, 117, 118, 105, 100, 111, 32, 195, 169, 32, 109, 101, 110, 111, 115,
-32, 115, 101, 110, 115, 195, 173, 118, 101, 108, 41, 34, 10, 34, 78, 111, 114, 109, 97, 108, 105, 122, 101, 32,
-40, 112, 101, 97, 107, 32, 116, 111, 32, 48, 32, 100, 66, 41, 34, 32, 61, 32, 34, 78, 111, 114, 109, 97,
-108, 105, 122, 97, 114, 32, 40, 112, 105, 99, 111, 32, 101, 109, 32, 48, 32, 100, 66, 41, 34, 10, 34, 77,
-97, 115, 116, 101, 114, 32, 101, 102, 102, 101, 99, 116, 115, 34, 32, 61, 32, 34, 69, 102, 101, 105, 116, 111,
-115, 32, 100, 111, 32, 77, 97, 115, 116, 101, 114, 34, 10, 34, 84, 114, 105, 109, 32, 116, 104, 101, 32, 100,
-101, 108, 97, 121, 32, 99, 111, 109, 112, 101, 110, 115, 97, 116, 105, 111, 110, 39, 115, 32, 115, 105, 108, 101,
-110, 99, 101, 34, 32, 61, 32, 34, 67, 111, 114, 116, 97, 114, 32, 111, 32, 115, 105, 108, 195, 170, 110, 99,
-105, 111, 32, 100, 97, 32, 99, 111, 109, 112, 101, 110, 115, 97, 195, 167, 195, 163, 111, 32, 100, 101, 32, 97,
-116, 114, 97, 115, 111, 34, 10, 34, 82, 97, 105, 115, 101, 115, 32, 111, 114, 32, 108, 111, 119, 101, 114, 115,
-32, 116, 104, 101, 32, 119, 104, 111, 108, 101, 32, 102, 105, 108, 101, 32, 115, 111, 32, 105, 116, 115, 32, 108,
-111, 117, 100, 101, 115, 116, 32, 112, 101, 97, 107, 32, 114, 101, 97, 99, 104, 101, 115, 32, 102, 117, 108, 108,
-32, 115, 99, 97, 108, 101, 34, 32, 61, 32, 34, 83, 111, 98, 101, 32, 111, 117, 32, 100, 101, 115, 99, 101,
-32, 111, 32, 97, 114, 113, 117, 105, 118, 111, 32, 105, 110, 116, 101, 105, 114, 111, 32, 112, 97, 114, 97, 32,
-111, 32, 112, 105, 99, 111, 32, 109, 97, 105, 115, 32, 97, 108, 116, 111, 32, 99, 104, 101, 103, 97, 114, 32,
-97, 111, 32, 109, 195, 161, 120, 105, 109, 111, 34, 10, 34, 79, 102, 102, 58, 32, 116, 104, 101, 32, 77, 97,
-115, 116, 101, 114, 32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 101, 102, 102, 101, 99, 116, 115, 32, 97, 114,
-101, 32, 98, 121, 112, 97, 115, 115, 101, 100, 32, 102, 111, 114, 32, 116, 104, 101, 32, 101, 120, 112, 111, 114,
-116, 34, 32, 61, 32, 34, 68, 101, 115, 108, 105, 103, 97, 100, 111, 58, 32, 111, 115, 32, 101, 102, 101, 105,
-116, 111, 115, 32, 100, 111, 32, 105, 110, 115, 101, 114, 116, 32, 77, 97, 115, 116, 101, 114, 32, 102, 105, 99,
-97, 109, 32, 100, 101, 32, 102, 111, 114, 97, 32, 100, 97, 32, 101, 120, 112, 111, 114, 116, 97, 195, 167, 195,
-163, 111, 34, 10, 34, 82, 101, 109, 111, 118, 101, 115, 32, 116, 104, 101, 32, 115, 105, 108, 101, 110, 99, 101,
-32, 112, 108, 117, 103, 105, 110, 32, 108, 97, 116, 101, 110, 99, 121, 32, 99, 111, 109, 112, 101, 110, 115, 97,
-116, 105, 111, 110, 32, 97, 100, 100, 115, 32, 97, 116, 32, 116, 104, 101, 32, 115, 116, 97, 114, 116, 34, 32,
-61, 32, 34, 82, 101, 109, 111, 118, 101, 32, 111, 32, 115, 105, 108, 195, 170, 110, 99, 105, 111, 32, 113, 117,
-101, 32, 97, 32, 99, 111, 109, 112, 101, 110, 115, 97, 195, 167, 195, 163, 111, 32, 100, 101, 32, 108, 97, 116,
-195, 170, 110, 99, 105, 97, 32, 100, 111, 115, 32, 112, 108, 117, 103, 105, 110, 115, 32, 99, 111, 108, 111, 99,
-97, 32, 110, 111, 32, 105, 110, 195, 173, 99, 105, 111, 34, 10, 34, 84, 111, 116, 97, 108, 32, 116, 105, 109,
-101, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 68, 117, 114, 97, 195, 167, 195, 163, 111, 32, 116, 111, 116,
-97, 108, 58, 32, 123, 48, 125, 34, 10, 34, 40, 43, 32, 116, 97, 105, 108, 32, 117, 112, 32, 116, 111, 32,
-123, 48, 125, 32, 115, 41, 34, 32, 61, 32, 34, 40, 43, 32, 99, 97, 117, 100, 97, 32, 100, 101, 32, 97,
-116, 195, 169, 32, 123, 48, 125, 32, 115, 41, 34, 10, 34, 77, 80, 51, 32, 97, 116, 32, 123, 48, 125, 32,
-72, 122, 34, 32, 61, 32, 34, 77, 80, 51, 32, 101, 109, 32, 123, 48, 125, 32, 72, 122, 34, 10, 34, 123,
-48, 125, 32, 102, 105, 108, 101, 40, 115, 41, 34, 32, 61, 32, 34, 123, 48, 125, 32, 97, 114, 113, 117, 105,
-118, 111, 40, 115, 41, 34, 10, 34, 84, 104, 101, 32, 77, 97, 115, 116, 101, 114, 32, 105, 110, 115, 101, 114,
-116, 32, 105, 115, 32, 109, 117, 116, 101, 100, 58, 32, 116, 104, 101, 32, 102, 105, 108, 101, 32, 119, 105, 108,
-108, 32, 98, 101, 32, 115, 105, 108, 101, 110, 116, 34, 32, 61, 32, 34, 79, 32, 105, 110, 115, 101, 114, 116,
-32, 77, 97, 115, 116, 101, 114, 32, 101, 115, 116, 195, 161, 32, 109, 117, 100, 111, 58, 32, 111, 32, 97, 114,
-113, 117, 105, 118, 111, 32, 118, 97, 105, 32, 115, 97, 105, 114, 32, 101, 109, 32, 115, 105, 108, 195, 170, 110,
-99, 105, 111, 34, 10, 34, 84, 104, 101, 114, 101, 32, 105, 115, 32, 110, 111, 32, 80, 108, 97, 121, 108, 105,
-115, 116, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 58, 32, 116, 104, 101, 32, 119, 104, 111, 108, 101, 32,
-115, 111, 110, 103, 32, 105, 115, 32, 114, 101, 110, 100, 101, 114, 101, 100, 34, 32, 61, 32, 34, 78, 195, 163,
-111, 32, 104, 195, 161, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 110, 97, 32, 80, 108, 97, 121, 108,
-105, 115, 116, 58, 32, 97, 32, 109, 195, 186, 115, 105, 99, 97, 32, 105, 110, 116, 101, 105, 114, 97, 32, 195,
-169, 32, 114, 101, 110, 100, 101, 114, 105, 122, 97, 100, 97, 34, 10, 34, 83, 97, 118, 101, 32, 97, 115, 32,
-116, 101, 109, 112, 108, 97, 116, 101, 34, 32, 61, 32, 34, 83, 97, 108, 118, 97, 114, 32, 99, 111, 109, 111,
-32, 109, 111, 100, 101, 108, 111, 34, 10, 34, 84, 104, 101, 32, 116, 101, 109, 112, 108, 97, 116, 101, 32, 97,
-112, 112, 101, 97, 114, 115, 32, 105, 110, 32, 70, 105, 108, 101, 32, 226, 128, 186, 32, 78, 101, 119, 32, 112,
-114, 111, 106, 101, 99, 116, 46, 46, 46, 32, 40, 115, 97, 118, 101, 100, 32, 105, 110, 32, 123, 48, 125, 41,
-34, 32, 61, 32, 34, 79, 32, 109, 111, 100, 101, 108, 111, 32, 97, 112, 97, 114, 101, 99, 101, 32, 101, 109,
-32, 65, 114, 113, 117, 105, 118, 111, 32, 226, 128, 186, 32, 78, 111, 118, 111, 32, 112, 114, 111, 106, 101, 116,
-111, 46, 46, 46, 32, 40, 115, 97, 108, 118, 111, 32, 101, 109, 32, 123, 48, 125, 41, 34, 10, 34, 77, 121,
-32, 116, 101, 109, 112, 108, 97, 116, 101, 34, 32, 61, 32, 34, 77, 101, 117, 32, 109, 111, 100, 101, 108, 111,
-34, 10, 34, 78, 101, 119, 32, 112, 114, 111, 106, 101, 99, 116, 46, 46, 46, 34, 32, 61, 32, 34, 78, 111,
-118, 111, 32, 112, 114, 111, 106, 101, 116, 111, 46, 46, 46, 34, 10, 34, 83, 97, 118, 101, 32, 97, 115, 32,
-116, 101, 109, 112, 108, 97, 116, 101, 46, 46, 46, 34, 32, 61, 32, 34, 83, 97, 108, 118, 97, 114, 32, 99,
-111, 109, 111, 32, 109, 111, 100, 101, 108, 111, 46, 46, 46, 34, 10, 34, 84, 111, 117, 99, 104, 32, 107, 101,
-121, 98, 111, 97, 114, 100, 34, 32, 61, 32, 34, 84, 101, 99, 108, 97, 100, 111, 32, 110, 97, 32, 116, 101,
-108, 97, 34, 10, 34, 80, 108, 117, 103, 105, 110, 32, 112, 101, 114, 102, 111, 114, 109, 97, 110, 99, 101, 32,
-109, 111, 110, 105, 116, 111, 114, 46, 46, 46, 34, 32, 61, 32, 34, 77, 111, 110, 105, 116, 111, 114, 32, 100,
-101, 32, 100, 101, 115, 101, 109, 112, 101, 110, 104, 111, 32, 100, 111, 115, 32, 112, 108, 117, 103, 105, 110, 115,
-46, 46, 46, 34, 10, 34, 68, 114, 117, 109, 115, 32, 97, 110, 100, 32, 97, 32, 115, 121, 110, 116, 104, 32,
-111, 110, 32, 116, 104, 101, 32, 102, 105, 114, 115, 116, 32, 105, 110, 115, 101, 114, 116, 115, 44, 32, 97, 32,
-108, 105, 109, 105, 116, 101, 114, 32, 111, 110, 32, 77, 97, 115, 116, 101, 114, 34, 32, 61, 32, 34, 66, 97,
-116, 101, 114, 105, 97, 32, 101, 32, 117, 109, 32, 115, 121, 110, 116, 104, 32, 110, 111, 115, 32, 112, 114, 105,
-109, 101, 105, 114, 111, 115, 32, 105, 110, 115, 101, 114, 116, 115, 44, 32, 117, 109, 32, 108, 105, 109, 105, 116,
-97, 100, 111, 114, 32, 110, 111, 32, 77, 97, 115, 116, 101, 114, 34, 10, 34, 78, 111, 116, 104, 105, 110, 103,
-32, 105, 110, 32, 116, 104, 101, 32, 112, 97, 116, 116, 101, 114, 110, 115, 34, 32, 61, 32, 34, 78, 97, 100,
-97, 32, 110, 111, 115, 32, 112, 97, 116, 116, 101, 114, 110, 115, 34, 10, 34, 65, 32, 102, 111, 117, 114, 45,
-111, 110, 45, 116, 104, 101, 45, 102, 108, 111, 111, 114, 32, 98, 101, 97, 116, 32, 116, 111, 32, 115, 116, 97,
-114, 116, 32, 102, 114, 111, 109, 34, 32, 61, 32, 34, 85, 109, 97, 32, 98, 97, 116, 105, 100, 97, 32, 102,
-111, 117, 114, 45, 111, 110, 45, 116, 104, 101, 45, 102, 108, 111, 111, 114, 32, 112, 97, 114, 97, 32, 99, 111,
-109, 101, 195, 167, 97, 114, 34, 10, 34, 49, 52, 48, 32, 66, 80, 77, 44, 32, 102, 97, 115, 116, 32, 104,
-97, 116, 115, 32, 97, 110, 100, 32, 97, 110, 32, 56, 48, 56, 32, 119, 105, 116, 104, 32, 103, 108, 105, 100,
-101, 34, 32, 61, 32, 34, 49, 52, 48, 32, 66, 80, 77, 44, 32, 104, 97, 116, 115, 32, 114, 195, 161, 112,
-105, 100, 111, 115, 32, 101, 32, 117, 109, 32, 56, 48, 56, 32, 99, 111, 109, 32, 103, 108, 105, 100, 101, 34,
-10, 34, 49, 50, 52, 32, 66, 80, 77, 32, 104, 111, 117, 115, 101, 32, 103, 114, 111, 111, 118, 101, 32, 119,
-105, 116, 104, 32, 98, 97, 115, 115, 34, 32, 61, 32, 34, 71, 114, 111, 111, 118, 101, 32, 100, 101, 32, 104,
-111, 117, 115, 101, 32, 97, 32, 49, 50, 52, 32, 66, 80, 77, 32, 99, 111, 109, 32, 98, 97, 105, 120, 111,
-34, 10, 34, 89, 111, 117, 114, 32, 116, 101, 109, 112, 108, 97, 116, 101, 34, 32, 61, 32, 34, 83, 101, 117,
-32, 109, 111, 100, 101, 108, 111, 34, 10, 34, 78, 97, 109, 101, 32, 97, 110, 100, 32, 108, 111, 99, 97, 116,
-105, 111, 110, 34, 32, 61, 32, 34, 78, 111, 109, 101, 32, 101, 32, 108, 111, 99, 97, 108, 34, 10, 34, 73,
-110, 102, 111, 114, 109, 97, 116, 105, 111, 110, 34, 32, 61, 32, 34, 73, 110, 102, 111, 114, 109, 97, 195, 167,
-195, 181, 101, 115, 34, 10, 34, 84, 101, 109, 112, 108, 97, 116, 101, 115, 32, 97, 114, 101, 32, 46, 108, 121,
-110, 120, 32, 112, 114, 111, 106, 101, 99, 116, 115, 32, 105, 110, 32, 116, 104, 105, 115, 32, 102, 111, 108, 100,
-101, 114, 32, 40, 70, 105, 108, 101, 32, 226, 128, 186, 32, 83, 97, 118, 101, 32, 97, 115, 32, 116, 101, 109,
-112, 108, 97, 116, 101, 46, 46, 46, 32, 112, 117, 116, 115, 32, 111, 110, 101, 32, 116, 104, 101, 114, 101, 41,
-34, 32, 61, 32, 34, 77, 111, 100, 101, 108, 111, 115, 32, 115, 195, 163, 111, 32, 112, 114, 111, 106, 101, 116,
-111, 115, 32, 46, 108, 121, 110, 120, 32, 110, 101, 115, 116, 97, 32, 112, 97, 115, 116, 97, 32, 40, 65, 114,
-113, 117, 105, 118, 111, 32, 226, 128, 186, 32, 83, 97, 108, 118, 97, 114, 32, 99, 111, 109, 111, 32, 109, 111,
-100, 101, 108, 111, 46, 46, 46, 32, 99, 111, 108, 111, 99, 97, 32, 117, 109, 32, 97, 113, 117, 105, 41, 34,
-10, 34, 70, 111, 108, 100, 101, 114, 34, 32, 61, 32, 34, 80, 97, 115, 116, 97, 34, 10, 34, 83, 97, 118,
-101, 32, 105, 116, 32, 116, 104, 101, 114, 101, 32, 110, 111, 119, 34, 32, 61, 32, 34, 83, 97, 108, 118, 97,
-114, 32, 108, 195, 161, 32, 97, 103, 111, 114, 97, 34, 10, 34, 79, 102, 102, 58, 32, 116, 104, 101, 32, 112,
-114, 111, 106, 101, 99, 116, 32, 111, 112, 101, 110, 115, 32, 117, 110, 115, 97, 118, 101, 100, 32, 97, 110, 100,
-32, 97, 115, 107, 115, 32, 119, 104, 101, 114, 101, 32, 116, 111, 32, 103, 111, 32, 119, 104, 101, 110, 32, 121,
-111, 117, 32, 102, 105, 114, 115, 116, 32, 115, 97, 118, 101, 34, 32, 61, 32, 34, 68, 101, 115, 108, 105, 103,
-97, 100, 111, 58, 32, 111, 32, 112, 114, 111, 106, 101, 116, 111, 32, 97, 98, 114, 101, 32, 115, 101, 109, 32,
-115, 97, 108, 118, 97, 114, 32, 101, 32, 112, 101, 114, 103, 117, 110, 116, 97, 32, 111, 32, 108, 111, 99, 97,
-108, 32, 110, 111, 32, 112, 114, 105, 109, 101, 105, 114, 111, 32, 115, 97, 108, 118, 97, 109, 101, 110, 116, 111,
-34, 10, 34, 67, 114, 101, 97, 116, 101, 32, 97, 32, 102, 111, 108, 100, 101, 114, 32, 102, 111, 114, 32, 116,
-104, 101, 32, 112, 114, 111, 106, 101, 99, 116, 34, 32, 61, 32, 34, 67, 114, 105, 97, 114, 32, 117, 109, 97,
-32, 112, 97, 115, 116, 97, 32, 112, 97, 114, 97, 32, 111, 32, 112, 114, 111, 106, 101, 116, 111, 34, 10, 34,
-115, 97, 109, 101, 32, 97, 115, 32, 116, 104, 101, 32, 110, 97, 109, 101, 34, 32, 61, 32, 34, 105, 103, 117,
-97, 108, 32, 97, 111, 32, 110, 111, 109, 101, 34, 10, 34, 68, 111, 110, 39, 116, 32, 115, 104, 111, 119, 32,
-116, 104, 105, 115, 32, 119, 105, 110, 100, 111, 119, 32, 102, 111, 114, 32, 70, 105, 108, 101, 32, 226, 128, 186,
-32, 78, 101, 119, 34, 32, 61, 32, 34, 78, 195, 163, 111, 32, 109, 111, 115, 116, 114, 97, 114, 32, 101, 115,
-116, 97, 32, 106, 97, 110, 101, 108, 97, 32, 101, 109, 32, 65, 114, 113, 117, 105, 118, 111, 32, 226, 128, 186,
-32, 78, 111, 118, 111, 34, 10, 34, 70, 105, 108, 101, 32, 226, 128, 186, 32, 78, 101, 119, 32, 116, 104, 101,
-110, 32, 115, 116, 97, 114, 116, 115, 32, 116, 104, 101, 32, 100, 101, 102, 97, 117, 108, 116, 32, 112, 114, 111,
-106, 101, 99, 116, 32, 97, 116, 32, 111, 110, 99, 101, 59, 32, 116, 104, 105, 115, 32, 119, 105, 110, 100, 111,
-119, 32, 115, 116, 97, 121, 115, 32, 105, 110, 32, 70, 105, 108, 101, 32, 226, 128, 186, 32, 78, 101, 119, 32,
-112, 114, 111, 106, 101, 99, 116, 46, 46, 46, 34, 32, 61, 32, 34, 65, 114, 113, 117, 105, 118, 111, 32, 226,
-128, 186, 32, 78, 111, 118, 111, 32, 112, 97, 115, 115, 97, 32, 97, 32, 97, 98, 114, 105, 114, 32, 111, 32,
-112, 114, 111, 106, 101, 116, 111, 32, 112, 97, 100, 114, 195, 163, 111, 32, 100, 105, 114, 101, 116, 111, 59, 32,
-101, 115, 116, 97, 32, 106, 97, 110, 101, 108, 97, 32, 99, 111, 110, 116, 105, 110, 117, 97, 32, 101, 109, 32,
-65, 114, 113, 117, 105, 118, 111, 32, 226, 128, 186, 32, 78, 111, 118, 111, 32, 112, 114, 111, 106, 101, 116, 111,
-46, 46, 46, 34, 10, 34, 78, 111, 116, 32, 115, 97, 118, 101, 100, 32, 117, 110, 116, 105, 108, 32, 121, 111,
-117, 32, 99, 104, 111, 111, 115, 101, 32, 70, 105, 108, 101, 32, 226, 128, 186, 32, 83, 97, 118, 101, 34, 32,
-61, 32, 34, 78, 195, 163, 111, 32, 195, 169, 32, 115, 97, 108, 118, 111, 32, 97, 116, 195, 169, 32, 118, 111,
-99, 195, 170, 32, 101, 115, 99, 111, 108, 104, 101, 114, 32, 65, 114, 113, 117, 105, 118, 111, 32, 226, 128, 186,
-32, 83, 97, 108, 118, 97, 114, 34, 10, 34, 70, 111, 108, 100, 101, 114, 32, 102, 111, 114, 32, 116, 104, 101,
-32, 112, 114, 111, 106, 101, 99, 116, 34, 32, 61, 32, 34, 80, 97, 115, 116, 97, 32, 100, 111, 32, 112, 114,
-111, 106, 101, 116, 111, 34, 10, 34, 123, 48, 125, 32, 97, 108, 114, 101, 97, 100, 121, 32, 101, 120, 105, 115,
-116, 115, 46, 32, 67, 104, 111, 111, 115, 101, 32, 97, 110, 111, 116, 104, 101, 114, 32, 110, 97, 109, 101, 32,
-111, 114, 32, 102, 111, 108, 100, 101, 114, 46, 34, 32, 61, 32, 34, 123, 48, 125, 32, 106, 195, 161, 32, 101,
-120, 105, 115, 116, 101, 46, 32, 69, 115, 99, 111, 108, 104, 97, 32, 111, 117, 116, 114, 111, 32, 110, 111, 109,
-101, 32, 111, 117, 32, 112, 97, 115, 116, 97, 46, 34, 10, 34, 79, 112, 101, 110, 32, 116, 104, 101, 32, 116,
-101, 109, 112, 108, 97, 116, 101, 115, 32, 102, 111, 108, 100, 101, 114, 34, 32, 61, 32, 34, 65, 98, 114, 105,
-114, 32, 97, 32, 112, 97, 115, 116, 97, 32, 100, 101, 32, 109, 111, 100, 101, 108, 111, 115, 34, 10, 34, 67,
-104, 111, 111, 115, 101, 46, 46, 46, 34, 32, 61, 32, 34, 69, 115, 99, 111, 108, 104, 101, 114, 46, 46, 46,
-34, 10, 34, 67, 114, 101, 97, 116, 101, 34, 32, 61, 32, 34, 67, 114, 105, 97, 114, 34, 10, 34, 99, 111,
-117, 108, 100, 32, 110, 111, 116, 32, 99, 114, 101, 97, 116, 101, 32, 123, 48, 125, 34, 32, 61, 32, 34, 110,
-195, 163, 111, 32, 102, 111, 105, 32, 112, 111, 115, 115, 195, 173, 118, 101, 108, 32, 99, 114, 105, 97, 114, 32,
-123, 48, 125, 34, 10, 34, 65, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 115, 32, 97, 110, 100, 32, 109,
-101, 114, 103, 105, 110, 103, 46, 46, 46, 34, 32, 61, 32, 34, 65, 114, 114, 97, 110, 106, 111, 115, 32, 101,
-32, 109, 101, 115, 99, 108, 97, 103, 101, 109, 46, 46, 46, 34, 10, 34, 80, 114, 111, 112, 101, 114, 116, 105,
-101, 115, 46, 46, 46, 34, 32, 61, 32, 34, 80, 114, 111, 112, 114, 105, 101, 100, 97, 100, 101, 115, 46, 46,
-46, 34, 10, 34, 87, 104, 101, 114, 101, 34, 32, 61, 32, 34, 79, 110, 100, 101, 34, 10, 34, 78, 111, 119,
-34, 32, 61, 32, 34, 65, 103, 111, 114, 97, 34, 10, 34, 65, 118, 101, 114, 97, 103, 101, 34, 32, 61, 32,
-34, 77, 195, 169, 100, 105, 97, 34, 10, 34, 78, 111, 116, 104, 105, 110, 103, 32, 116, 111, 32, 115, 104, 111,
-119, 34, 32, 61, 32, 34, 78, 97, 100, 97, 32, 112, 97, 114, 97, 32, 109, 111, 115, 116, 114, 97, 114, 34,
-10, 34, 70, 105, 110, 100, 34, 32, 61, 32, 34, 66, 117, 115, 99, 97, 114, 34, 10, 34, 112, 108, 117, 103,
-105, 110, 44, 32, 99, 104, 97, 110, 110, 101, 108, 32, 111, 114, 32, 105, 110, 115, 101, 114, 116, 34, 32, 61,
-32, 34, 112, 108, 117, 103, 105, 110, 44, 32, 99, 97, 110, 97, 108, 32, 111, 117, 32, 105, 110, 115, 101, 114,
-116, 34, 10, 34, 80, 108, 117, 103, 105, 110, 115, 32, 111, 110, 108, 121, 34, 32, 61, 32, 34, 83, 195, 179,
-32, 112, 108, 117, 103, 105, 110, 115, 34, 10, 34, 79, 110, 108, 121, 32, 116, 104, 105, 114, 100, 45, 112, 97,
-114, 116, 121, 32, 112, 108, 117, 103, 105, 110, 115, 32, 40, 86, 83, 84, 51, 32, 47, 32, 67, 76, 65, 80,
-41, 44, 32, 110, 111, 116, 32, 76, 89, 78, 88, 39, 115, 32, 111, 119, 110, 32, 105, 110, 115, 116, 114, 117,
-109, 101, 110, 116, 115, 32, 97, 110, 100, 32, 101, 102, 102, 101, 99, 116, 115, 34, 32, 61, 32, 34, 83, 195,
-179, 32, 112, 108, 117, 103, 105, 110, 115, 32, 100, 101, 32, 116, 101, 114, 99, 101, 105, 114, 111, 115, 32, 40,
-86, 83, 84, 51, 32, 47, 32, 67, 76, 65, 80, 41, 44, 32, 110, 195, 163, 111, 32, 111, 115, 32, 105, 110,
-115, 116, 114, 117, 109, 101, 110, 116, 111, 115, 32, 101, 32, 101, 102, 101, 105, 116, 111, 115, 32, 100, 111, 32,
-112, 114, 195, 179, 112, 114, 105, 111, 32, 76, 89, 78, 88, 34, 10, 34, 70, 114, 101, 101, 122, 101, 34, 32,
-61, 32, 34, 67, 111, 110, 103, 101, 108, 97, 114, 34, 10, 34, 83, 116, 111, 112, 115, 32, 117, 112, 100, 97,
-116, 105, 110, 103, 32, 116, 104, 101, 32, 110, 117, 109, 98, 101, 114, 115, 34, 32, 61, 32, 34, 80, 97, 114,
-97, 32, 100, 101, 32, 97, 116, 117, 97, 108, 105, 122, 97, 114, 32, 111, 115, 32, 110, 195, 186, 109, 101, 114,
-111, 115, 34, 10, 34, 82, 101, 115, 101, 116, 32, 111, 110, 32, 112, 108, 97, 121, 34, 32, 61, 32, 34, 90,
-101, 114, 97, 114, 32, 97, 111, 32, 116, 111, 99, 97, 114, 34, 10, 34, 65, 118, 101, 114, 97, 103, 101, 115,
-32, 97, 110, 100, 32, 112, 101, 97, 107, 115, 32, 115, 116, 97, 114, 116, 32, 97, 103, 97, 105, 110, 32, 101,
-97, 99, 104, 32, 116, 105, 109, 101, 32, 112, 108, 97, 121, 98, 97, 99, 107, 32, 115, 116, 97, 114, 116, 115,
-34, 32, 61, 32, 34, 77, 195, 169, 100, 105, 97, 115, 32, 101, 32, 112, 105, 99, 111, 115, 32, 114, 101, 99,
-111, 109, 101, 195, 167, 97, 109, 32, 99, 97, 100, 97, 32, 118, 101, 122, 32, 113, 117, 101, 32, 97, 32, 114,
-101, 112, 114, 111, 100, 117, 195, 167, 195, 163, 111, 32, 99, 111, 109, 101, 195, 167, 97, 34, 10, 34, 49, 48,
-48, 37, 32, 61, 32, 111, 110, 101, 32, 112, 114, 111, 99, 101, 115, 115, 111, 114, 32, 99, 111, 114, 101, 32,
-98, 117, 115, 121, 32, 102, 111, 114, 32, 116, 104, 101, 32, 119, 104, 111, 108, 101, 32, 116, 105, 109, 101, 32,
-116, 104, 101, 32, 97, 117, 100, 105, 111, 32, 108, 97, 115, 116, 115, 34, 32, 61, 32, 34, 49, 48, 48, 37,
-32, 61, 32, 117, 109, 32, 110, 195, 186, 99, 108, 101, 111, 32, 100, 111, 32, 112, 114, 111, 99, 101, 115, 115,
-97, 100, 111, 114, 32, 111, 99, 117, 112, 97, 100, 111, 32, 100, 117, 114, 97, 110, 116, 101, 32, 116, 111, 100,
-111, 32, 111, 32, 116, 101, 109, 112, 111, 32, 113, 117, 101, 32, 111, 32, 195, 161, 117, 100, 105, 111, 32, 100,
-117, 114, 97, 34, 10, 34, 67, 104, 97, 110, 110, 101, 108, 32, 123, 48, 125, 34, 32, 61, 32, 34, 67, 97,
-110, 97, 108, 32, 123, 48, 125, 34, 10, 34, 115, 108, 111, 116, 32, 123, 48, 125, 34, 32, 61, 32, 34, 115,
-108, 111, 116, 32, 123, 48, 125, 34, 10, 34, 87, 104, 111, 108, 101, 32, 114, 97, 99, 107, 58, 32, 123, 48,
-125, 32, 40, 112, 101, 97, 107, 32, 123, 49, 125, 41, 34, 32, 61, 32, 34, 82, 97, 99, 107, 32, 105, 110,
-116, 101, 105, 114, 111, 58, 32, 123, 48, 125, 32, 40, 112, 105, 99, 111, 32, 123, 49, 125, 41, 34, 10, 34,
+32, 102, 111, 114, 32, 97, 117, 100, 105, 111, 32, 40, 99, 104, 111, 111, 115, 101, 32, 105, 116, 115, 32, 105,
+110, 112, 117, 116, 41, 46, 46, 46, 34, 32, 61, 32, 34, 65, 114, 109, 97, 114, 32, 111, 32, 105, 110, 115,
+101, 114, 116, 32, 115, 101, 108, 101, 99, 105, 111, 110, 97, 100, 111, 32, 100, 111, 32, 109, 105, 120, 101, 114,
+32, 112, 97, 114, 97, 32, 195, 161, 117, 100, 105, 111, 32, 40, 101, 115, 99, 111, 108, 104, 101, 114, 32, 97,
+32, 101, 110, 116, 114, 97, 100, 97, 41, 46, 46, 46, 34, 10, 34, 65, 117, 100, 105, 111, 32, 115, 101, 116,
+116, 105, 110, 103, 115, 32, 40, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 41, 46, 46, 46, 34,
+32, 61, 32, 34, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115, 32, 100, 101, 32, 195,
+161, 117, 100, 105, 111, 32, 40, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110,
+116, 114, 97, 100, 97, 41, 46, 46, 46, 34, 10, 34, 67, 108, 105, 112, 32, 109, 101, 110, 117, 58, 32, 91,
+76, 77, 66, 93, 32, 111, 114, 32, 91, 82, 77, 66, 93, 32, 111, 112, 101, 110, 115, 32, 105, 116, 32, 40,
+109, 97, 107, 101, 32, 117, 110, 105, 113, 117, 101, 44, 32, 114, 101, 110, 97, 109, 101, 32, 97, 110, 100, 32,
+99, 111, 108, 111, 117, 114, 44, 32, 99, 104, 111, 112, 44, 32, 115, 101, 108, 101, 99, 116, 32, 115, 111, 117,
+114, 99, 101, 46, 46, 46, 41, 34, 32, 61, 32, 34, 77, 101, 110, 117, 32, 100, 111, 32, 99, 108, 105, 112,
+101, 58, 32, 91, 76, 77, 66, 93, 32, 111, 117, 32, 91, 82, 77, 66, 93, 32, 97, 98, 114, 101, 32, 40,
+116, 111, 114, 110, 97, 114, 32, 195, 186, 110, 105, 99, 111, 44, 32, 114, 101, 110, 111, 109, 101, 97, 114, 32,
+101, 32, 99, 111, 108, 111, 114, 105, 114, 44, 32, 112, 105, 99, 111, 116, 97, 114, 44, 32, 101, 115, 99, 111,
+108, 104, 101, 114, 32, 97, 32, 111, 114, 105, 103, 101, 109, 46, 46, 46, 41, 34, 10, 34, 84, 104, 101, 32,
+105, 99, 111, 110, 32, 97, 116, 32, 116, 104, 101, 32, 116, 111, 112, 32, 108, 101, 102, 116, 32, 111, 112, 101,
+110, 115, 32, 116, 104, 101, 32, 99, 108, 105, 112, 32, 109, 101, 110, 117, 32, 40, 109, 97, 107, 101, 32, 117,
+110, 105, 113, 117, 101, 44, 32, 114, 101, 110, 97, 109, 101, 46, 46, 46, 41, 34, 32, 61, 32, 34, 79, 32,
+195, 173, 99, 111, 110, 101, 32, 110, 111, 32, 99, 97, 110, 116, 111, 32, 115, 117, 112, 101, 114, 105, 111, 114,
+32, 101, 115, 113, 117, 101, 114, 100, 111, 32, 97, 98, 114, 101, 32, 111, 32, 109, 101, 110, 117, 32, 100, 111,
+32, 99, 108, 105, 112, 101, 32, 40, 116, 111, 114, 110, 97, 114, 32, 195, 186, 110, 105, 99, 111, 44, 32, 114,
+101, 110, 111, 109, 101, 97, 114, 46, 46, 46, 41, 34, 10, 34, 87, 104, 97, 116, 32, 119, 111, 117, 108, 100,
+32, 121, 111, 117, 32, 108, 105, 107, 101, 32, 116, 111, 32, 114, 101, 99, 111, 114, 100, 63, 34, 32, 61, 32,
+34, 79, 32, 113, 117, 101, 32, 118, 111, 99, 195, 170, 32, 113, 117, 101, 114, 32, 103, 114, 97, 118, 97, 114,
+63, 34, 10, 34, 68, 111, 110, 39, 116, 32, 97, 115, 107, 32, 97, 103, 97, 105, 110, 32, 40, 114, 105, 103,
+104, 116, 45, 99, 108, 105, 99, 107, 32, 116, 104, 101, 32, 114, 101, 99, 111, 114, 100, 32, 98, 117, 116, 116,
+111, 110, 32, 102, 111, 114, 32, 116, 104, 101, 32, 114, 101, 99, 111, 114, 100, 105, 110, 103, 32, 102, 105, 108,
+116, 101, 114, 41, 34, 32, 61, 32, 34, 78, 195, 163, 111, 32, 112, 101, 114, 103, 117, 110, 116, 97, 114, 32,
+100, 101, 32, 110, 111, 118, 111, 32, 40, 99, 108, 105, 113, 117, 101, 32, 100, 105, 114, 101, 105, 116, 111, 32,
+110, 111, 32, 98, 111, 116, 195, 163, 111, 32, 100, 101, 32, 103, 114, 97, 118, 97, 114, 32, 112, 97, 114, 97,
+32, 111, 32, 102, 105, 108, 116, 114, 111, 32, 100, 101, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 41,
+34, 10, 34, 65, 117, 100, 105, 111, 44, 32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 80, 108, 97, 121, 108,
+105, 115, 116, 32, 97, 115, 32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 99, 108, 105, 112, 34, 32, 61, 32,
+34, 195, 129, 117, 100, 105, 111, 44, 32, 110, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 99, 111, 109,
+111, 32, 99, 108, 105, 112, 101, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 65, 117, 100, 105,
+111, 44, 32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 97, 117, 100, 105, 111, 32, 101, 100, 105, 116, 111, 114,
+34, 32, 61, 32, 34, 195, 129, 117, 100, 105, 111, 44, 32, 110, 111, 32, 101, 100, 105, 116, 111, 114, 32, 100,
+101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 82, 101, 99, 111, 114, 100, 115, 32, 116, 104, 101, 32, 97,
+117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 32, 105, 110, 116, 111, 32, 97, 32, 110, 101, 119, 32, 97, 117,
+100, 105, 111, 32, 101, 100, 105, 116, 111, 114, 32, 119, 104, 105, 108, 101, 32, 116, 104, 101, 32, 115, 111, 110,
+103, 32, 112, 108, 97, 121, 115, 34, 32, 61, 32, 34, 71, 114, 97, 118, 97, 32, 97, 32, 101, 110, 116, 114,
+97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 101, 109, 32, 117, 109, 32, 110, 111, 118, 111,
+32, 101, 100, 105, 116, 111, 114, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 101, 110, 113, 117, 97, 110,
+116, 111, 32, 97, 32, 109, 195, 186, 115, 105, 99, 97, 32, 116, 111, 99, 97, 34, 10, 34, 65, 114, 109, 115,
+32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 101, 100, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115, 101,
+114, 116, 59, 32, 99, 104, 111, 111, 115, 101, 32, 105, 116, 115, 32, 97, 117, 100, 105, 111, 32, 105, 110, 112,
+117, 116, 32, 40, 109, 105, 99, 114, 111, 112, 104, 111, 110, 101, 41, 32, 105, 102, 32, 105, 116, 32, 104, 97,
+115, 32, 110, 111, 110, 101, 34, 32, 61, 32, 34, 65, 114, 109, 97, 32, 111, 32, 105, 110, 115, 101, 114, 116,
+32, 115, 101, 108, 101, 99, 105, 111, 110, 97, 100, 111, 32, 100, 111, 32, 109, 105, 120, 101, 114, 59, 32, 101,
+115, 99, 111, 108, 104, 97, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100,
+105, 111, 32, 40, 109, 105, 99, 114, 111, 102, 111, 110, 101, 41, 32, 115, 101, 32, 101, 108, 101, 32, 110, 195,
+163, 111, 32, 116, 105, 118, 101, 114, 34, 10, 34, 78, 111, 116, 101, 115, 44, 32, 105, 110, 116, 111, 32, 116,
+104, 101, 32, 99, 117, 114, 114, 101, 110, 116, 32, 112, 97, 116, 116, 101, 114, 110, 34, 32, 61, 32, 34, 78,
+111, 116, 97, 115, 44, 32, 110, 111, 32, 112, 97, 116, 116, 101, 114, 110, 32, 97, 116, 117, 97, 108, 34, 10,
+34, 78, 111, 116, 101, 115, 32, 112, 108, 97, 121, 101, 100, 32, 111, 110, 32, 97, 32, 77, 73, 68, 73, 32,
+107, 101, 121, 98, 111, 97, 114, 100, 32, 111, 114, 32, 116, 104, 101, 32, 80, 67, 32, 107, 101, 121, 98, 111,
+97, 114, 100, 34, 32, 61, 32, 34, 78, 111, 116, 97, 115, 32, 116, 111, 99, 97, 100, 97, 115, 32, 110, 117,
+109, 32, 116, 101, 99, 108, 97, 100, 111, 32, 77, 73, 68, 73, 32, 111, 117, 32, 110, 111, 32, 116, 101, 99,
+108, 97, 100, 111, 32, 100, 111, 32, 80, 67, 34, 10, 34, 69, 118, 101, 114, 121, 116, 104, 105, 110, 103, 34,
+32, 61, 32, 34, 84, 117, 100, 111, 34, 10, 34, 78, 111, 116, 101, 115, 44, 32, 97, 110, 100, 32, 97, 117,
+100, 105, 111, 32, 102, 114, 111, 109, 32, 116, 104, 101, 32, 97, 114, 109, 101, 100, 32, 105, 110, 115, 101, 114,
+116, 115, 34, 32, 61, 32, 34, 78, 111, 116, 97, 115, 44, 32, 101, 32, 111, 32, 195, 161, 117, 100, 105, 111,
+32, 100, 111, 115, 32, 105, 110, 115, 101, 114, 116, 115, 32, 97, 114, 109, 97, 100, 111, 115, 34, 10, 34, 82,
+101, 99, 111, 114, 100, 32, 97, 114, 109, 58, 32, 82, 101, 99, 32, 43, 32, 80, 108, 97, 121, 32, 114, 101,
+99, 111, 114, 100, 115, 32, 116, 104, 105, 115, 32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 97, 117, 100, 105,
+111, 32, 105, 110, 112, 117, 116, 32, 105, 110, 116, 111, 32, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32,
+99, 108, 105, 112, 32, 32, 91, 82, 77, 66, 93, 32, 105, 110, 112, 117, 116, 32, 97, 110, 100, 32, 109, 111,
+110, 105, 116, 111, 114, 105, 110, 103, 34, 32, 61, 32, 34, 65, 114, 109, 97, 114, 32, 103, 114, 97, 118, 97,
+195, 167, 195, 163, 111, 58, 32, 82, 101, 99, 32, 43, 32, 80, 108, 97, 121, 32, 103, 114, 97, 118, 97, 32,
+97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 100, 101, 115, 116,
+101, 32, 105, 110, 115, 101, 114, 116, 32, 110, 117, 109, 32, 99, 108, 105, 112, 101, 32, 100, 97, 32, 80, 108,
+97, 121, 108, 105, 115, 116, 32, 32, 91, 82, 77, 66, 93, 32, 101, 110, 116, 114, 97, 100, 97, 32, 101, 32,
+109, 111, 110, 105, 116, 111, 114, 97, 195, 167, 195, 163, 111, 34, 10, 34, 73, 110, 112, 117, 116, 32, 108, 101,
+118, 101, 108, 32, 111, 102, 32, 116, 104, 105, 115, 32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 97, 117, 100,
+105, 111, 32, 105, 110, 112, 117, 116, 32, 32, 91, 76, 77, 66, 93, 32, 99, 104, 111, 111, 115, 101, 32, 116,
+104, 101, 32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 78, 195, 173, 118, 101, 108, 32, 100, 97, 32, 101,
+110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 100, 101, 115, 116, 101, 32, 105,
+110, 115, 101, 114, 116, 32, 32, 91, 76, 77, 66, 93, 32, 101, 115, 99, 111, 108, 104, 101, 114, 32, 97, 32,
+101, 110, 116, 114, 97, 100, 97, 34, 10, 34, 65, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 58, 32, 123,
+48, 125, 46, 46, 46, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117,
+100, 105, 111, 58, 32, 123, 48, 125, 46, 46, 46, 34, 10, 34, 68, 105, 115, 97, 114, 109, 32, 114, 101, 99,
+111, 114, 100, 105, 110, 103, 34, 32, 61, 32, 34, 68, 101, 115, 97, 114, 109, 97, 114, 32, 103, 114, 97, 118,
+97, 195, 167, 195, 163, 111, 34, 10, 34, 65, 114, 109, 32, 114, 101, 99, 111, 114, 100, 105, 110, 103, 34, 32,
+61, 32, 34, 65, 114, 109, 97, 114, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 34, 10, 34, 78, 111,
+32, 97, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 83, 101, 109, 32, 101, 110, 116,
+114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 65, 117, 100, 105, 111, 32, 105,
+110, 112, 117, 116, 32, 115, 111, 117, 114, 99, 101, 58, 32, 116, 104, 101, 32, 109, 105, 99, 114, 111, 112, 104,
+111, 110, 101, 32, 111, 114, 32, 105, 110, 116, 101, 114, 102, 97, 99, 101, 32, 105, 110, 112, 117, 116, 32, 116,
+104, 105, 115, 32, 105, 110, 115, 101, 114, 116, 32, 112, 108, 97, 121, 115, 32, 97, 110, 100, 32, 114, 101, 99,
+111, 114, 100, 115, 32, 32, 91, 76, 77, 66, 93, 32, 99, 104, 111, 111, 115, 101, 34, 32, 61, 32, 34, 70,
+111, 110, 116, 101, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105,
+111, 58, 32, 111, 32, 109, 105, 99, 114, 111, 102, 111, 110, 101, 32, 111, 117, 32, 97, 32, 101, 110, 116, 114,
+97, 100, 97, 32, 100, 97, 32, 105, 110, 116, 101, 114, 102, 97, 99, 101, 32, 113, 117, 101, 32, 101, 115, 116,
+101, 32, 105, 110, 115, 101, 114, 116, 32, 116, 111, 99, 97, 32, 101, 32, 103, 114, 97, 118, 97, 32, 32, 91,
+76, 77, 66, 93, 32, 101, 115, 99, 111, 108, 104, 101, 114, 34, 10, 34, 78, 111, 32, 97, 117, 100, 105, 111,
+32, 100, 101, 118, 105, 99, 101, 32, 105, 115, 32, 111, 112, 101, 110, 46, 32, 67, 104, 111, 111, 115, 101, 32,
+111, 110, 101, 32, 105, 110, 32, 83, 101, 116, 116, 105, 110, 103, 115, 32, 62, 32, 65, 117, 100, 105, 111, 46,
+34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32,
+100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 101, 115, 116, 195, 161, 32, 97, 98, 101, 114, 116, 111, 46, 32,
+69, 115, 99, 111, 108, 104, 97, 32, 117, 109, 32, 101, 109, 32, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195,
+167, 195, 181, 101, 115, 32, 62, 32, 195, 129, 117, 100, 105, 111, 46, 34, 10, 34, 78, 111, 32, 97, 117, 100,
+105, 111, 32, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 119, 97, 115, 32, 102, 111, 117, 110,
+100, 46, 32, 67, 111, 110, 110, 101, 99, 116, 32, 97, 32, 109, 105, 99, 114, 111, 112, 104, 111, 110, 101, 32,
+111, 114, 32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 105, 110, 116, 101, 114, 102, 97, 99, 101, 44, 32, 116,
+104, 101, 110, 32, 99, 104, 111, 111, 115, 101, 32, 105, 116, 32, 97, 115, 32, 116, 104, 101, 32, 105, 110, 112,
+117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 105, 110, 32, 83, 101, 116, 116, 105, 110, 103, 115, 32, 62, 32,
+65, 117, 100, 105, 111, 46, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115,
+105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100,
+105, 111, 32, 102, 111, 105, 32, 101, 110, 99, 111, 110, 116, 114, 97, 100, 111, 46, 32, 67, 111, 110, 101, 99,
+116, 101, 32, 117, 109, 32, 109, 105, 99, 114, 111, 102, 111, 110, 101, 32, 111, 117, 32, 117, 109, 97, 32, 105,
+110, 116, 101, 114, 102, 97, 99, 101, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 101, 32, 101, 115, 99,
+111, 108, 104, 97, 45, 111, 32, 99, 111, 109, 111, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32,
+100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 101, 109, 32, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195,
+167, 195, 181, 101, 115, 32, 62, 32, 195, 129, 117, 100, 105, 111, 46, 34, 10, 34, 78, 111, 32, 97, 117, 100,
+105, 111, 32, 105, 110, 112, 117, 116, 32, 105, 115, 32, 111, 112, 101, 110, 44, 32, 115, 111, 32, 110, 111, 116,
+104, 105, 110, 103, 32, 99, 97, 110, 32, 98, 101, 32, 114, 101, 99, 111, 114, 100, 101, 100, 46, 32, 67, 104,
+111, 111, 115, 101, 32, 97, 110, 32, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 105, 110, 32,
+83, 101, 116, 116, 105, 110, 103, 115, 32, 62, 32, 65, 117, 100, 105, 111, 46, 34, 32, 61, 32, 34, 78, 101,
+110, 104, 117, 109, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32,
+101, 115, 116, 195, 161, 32, 97, 98, 101, 114, 116, 97, 44, 32, 101, 110, 116, 195, 163, 111, 32, 110, 97, 100,
+97, 32, 112, 111, 100, 101, 32, 115, 101, 114, 32, 103, 114, 97, 118, 97, 100, 111, 46, 32, 69, 115, 99, 111,
+108, 104, 97, 32, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 101, 110,
+116, 114, 97, 100, 97, 32, 101, 109, 32, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115,
+32, 62, 32, 195, 129, 117, 100, 105, 111, 46, 34, 10, 34, 80, 108, 101, 97, 115, 101, 32, 115, 101, 108, 101,
+99, 116, 32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 32, 102, 105, 114, 115, 116, 58,
+32, 116, 104, 101, 32, 97, 114, 109, 101, 100, 32, 105, 110, 115, 101, 114, 116, 32, 104, 97, 115, 32, 110, 111,
+110, 101, 46, 32, 67, 108, 105, 99, 107, 32, 116, 104, 101, 32, 105, 110, 112, 117, 116, 32, 98, 111, 120, 32,
+97, 98, 111, 118, 101, 32, 116, 104, 101, 32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 101, 102, 102, 101, 99,
+116, 32, 115, 108, 111, 116, 115, 32, 105, 110, 32, 116, 104, 101, 32, 77, 105, 120, 101, 114, 32, 40, 111, 114,
+32, 114, 105, 103, 104, 116, 45, 99, 108, 105, 99, 107, 32, 105, 116, 115, 32, 97, 114, 109, 32, 98, 117, 116,
+116, 111, 110, 41, 46, 34, 32, 61, 32, 34, 69, 115, 99, 111, 108, 104, 97, 32, 117, 109, 97, 32, 101, 110,
+116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 112, 114, 105, 109, 101, 105, 114, 111,
+58, 32, 111, 32, 105, 110, 115, 101, 114, 116, 32, 97, 114, 109, 97, 100, 111, 32, 110, 195, 163, 111, 32, 116,
+101, 109, 32, 110, 101, 110, 104, 117, 109, 97, 46, 32, 67, 108, 105, 113, 117, 101, 32, 110, 97, 32, 99, 97,
+105, 120, 97, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 97, 99, 105, 109, 97, 32, 100, 111, 115,
+32, 115, 108, 111, 116, 115, 32, 100, 101, 32, 101, 102, 101, 105, 116, 111, 32, 100, 111, 32, 105, 110, 115, 101,
+114, 116, 32, 110, 111, 32, 77, 105, 120, 101, 114, 32, 40, 111, 117, 32, 99, 108, 105, 113, 117, 101, 32, 100,
+105, 114, 101, 105, 116, 111, 32, 110, 111, 32, 98, 111, 116, 195, 163, 111, 32, 100, 101, 32, 97, 114, 109, 97,
+114, 41, 46, 34, 10, 34, 73, 110, 115, 101, 114, 116, 32, 123, 48, 125, 32, 105, 115, 32, 97, 114, 109, 101,
+100, 32, 98, 117, 116, 32, 104, 97, 115, 32, 110, 111, 32, 97, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116,
+44, 32, 115, 111, 32, 105, 116, 32, 114, 101, 99, 111, 114, 100, 115, 32, 110, 111, 116, 104, 105, 110, 103, 46,
+34, 32, 61, 32, 34, 79, 32, 105, 110, 115, 101, 114, 116, 32, 123, 48, 125, 32, 101, 115, 116, 195, 161, 32,
+97, 114, 109, 97, 100, 111, 32, 109, 97, 115, 32, 110, 195, 163, 111, 32, 116, 101, 109, 32, 101, 110, 116, 114,
+97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 44, 32, 101, 110, 116, 195, 163, 111, 32, 110, 195,
+163, 111, 32, 103, 114, 97, 118, 97, 32, 110, 97, 100, 97, 46, 34, 10, 34, 84, 104, 101, 32, 97, 117, 100,
+105, 111, 32, 105, 110, 112, 117, 116, 32, 99, 111, 117, 108, 100, 32, 110, 111, 116, 32, 98, 101, 32, 117, 115,
+101, 100, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 78, 195, 163, 111, 32, 102, 111, 105, 32, 112, 111, 115,
+115, 195, 173, 118, 101, 108, 32, 117, 115, 97, 114, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101,
+32, 195, 161, 117, 100, 105, 111, 58, 32, 123, 48, 125, 34, 10, 34, 65, 117, 100, 105, 111, 32, 105, 110, 112,
+117, 116, 32, 110, 101, 101, 100, 101, 100, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 32, 100, 101,
+32, 195, 161, 117, 100, 105, 111, 32, 110, 101, 99, 101, 115, 115, 195, 161, 114, 105, 97, 34, 10, 34, 65, 117,
+100, 105, 111, 32, 105, 110, 112, 117, 116, 32, 115, 111, 117, 114, 99, 101, 34, 32, 61, 32, 34, 70, 111, 110,
+116, 101, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34,
+10, 34, 84, 104, 101, 32, 97, 117, 100, 105, 111, 32, 100, 101, 118, 105, 99, 101, 32, 104, 97, 115, 32, 110,
+111, 32, 111, 112, 101, 110, 32, 105, 110, 112, 117, 116, 32, 99, 104, 97, 110, 110, 101, 108, 115, 34, 32, 61,
+32, 34, 79, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32, 100, 101, 32, 195, 161, 117, 100, 105,
+111, 32, 110, 195, 163, 111, 32, 116, 101, 109, 32, 99, 97, 110, 97, 105, 115, 32, 100, 101, 32, 101, 110, 116,
+114, 97, 100, 97, 32, 97, 98, 101, 114, 116, 111, 115, 34, 10, 34, 40, 109, 111, 110, 111, 41, 34, 32, 61,
+32, 34, 40, 109, 111, 110, 111, 41, 34, 10, 34, 77, 111, 110, 105, 116, 111, 114, 32, 101, 120, 116, 101, 114,
+110, 97, 108, 32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 77, 111, 110, 105, 116, 111, 114, 97, 114, 32,
+101, 110, 116, 114, 97, 100, 97, 32, 101, 120, 116, 101, 114, 110, 97, 34, 10, 34, 87, 104, 101, 110, 32, 97,
+114, 109, 101, 100, 34, 32, 61, 32, 34, 81, 117, 97, 110, 100, 111, 32, 97, 114, 109, 97, 100, 111, 34, 10,
+34, 65, 117, 116, 111, 32, 40, 119, 104, 101, 110, 32, 97, 114, 109, 101, 100, 44, 32, 110, 111, 116, 32, 119,
+104, 105, 108, 101, 32, 112, 108, 97, 121, 105, 110, 103, 32, 98, 97, 99, 107, 41, 34, 32, 61, 32, 34, 65,
+117, 116, 111, 32, 40, 113, 117, 97, 110, 100, 111, 32, 97, 114, 109, 97, 100, 111, 44, 32, 110, 195, 163, 111,
+32, 100, 117, 114, 97, 110, 116, 101, 32, 97, 32, 114, 101, 112, 114, 111, 100, 117, 195, 167, 195, 163, 111, 41,
+34, 10, 34, 79, 110, 34, 32, 61, 32, 34, 76, 105, 103, 97, 100, 111, 34, 10, 34, 65, 117, 100, 105, 111,
+32, 105, 110, 112, 117, 116, 32, 110, 101, 101, 100, 101, 100, 58, 32, 99, 104, 111, 111, 115, 101, 32, 116, 104,
+105, 115, 32, 105, 110, 115, 101, 114, 116, 39, 115, 32, 105, 110, 112, 117, 116, 44, 32, 116, 104, 101, 110, 32,
+105, 116, 32, 105, 115, 32, 97, 114, 109, 101, 100, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 32,
+100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 110, 101, 99, 101, 115, 115, 195, 161, 114, 105, 97, 58, 32, 101,
+115, 99, 111, 108, 104, 97, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 115, 116, 101, 32, 105,
+110, 115, 101, 114, 116, 32, 101, 32, 101, 108, 101, 32, 115, 101, 114, 195, 161, 32, 97, 114, 109, 97, 100, 111,
+34, 10, 34, 67, 104, 111, 111, 115, 101, 32, 101, 97, 99, 104, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115,
+101, 114, 116, 39, 115, 32, 105, 110, 112, 117, 116, 32, 105, 110, 32, 116, 104, 101, 32, 77, 105, 120, 101, 114,
+32, 40, 116, 104, 101, 32, 105, 110, 112, 117, 116, 32, 98, 111, 120, 32, 97, 98, 111, 118, 101, 32, 105, 116,
+115, 32, 101, 102, 102, 101, 99, 116, 32, 115, 108, 111, 116, 115, 41, 44, 32, 97, 114, 109, 32, 105, 116, 44,
+32, 116, 104, 101, 110, 32, 82, 101, 99, 32, 43, 32, 80, 108, 97, 121, 46, 32, 84, 104, 105, 115, 32, 115,
+119, 105, 116, 99, 104, 32, 114, 101, 99, 111, 114, 100, 115, 32, 116, 104, 101, 32, 102, 105, 114, 115, 116, 32,
+116, 119, 111, 32, 105, 110, 112, 117, 116, 32, 99, 104, 97, 110, 110, 101, 108, 115, 32, 105, 110, 116, 111, 32,
+97, 32, 110, 101, 119, 32, 105, 110, 115, 101, 114, 116, 32, 119, 104, 101, 110, 32, 110, 111, 116, 104, 105, 110,
+103, 32, 105, 115, 32, 97, 114, 109, 101, 100, 46, 34, 32, 61, 32, 34, 69, 115, 99, 111, 108, 104, 97, 32,
+97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 99, 97, 100, 97, 32, 105, 110, 115, 101, 114, 116,
+32, 110, 111, 32, 77, 105, 120, 101, 114, 32, 40, 97, 32, 99, 97, 105, 120, 97, 32, 100, 101, 32, 101, 110,
+116, 114, 97, 100, 97, 32, 97, 99, 105, 109, 97, 32, 100, 111, 115, 32, 115, 108, 111, 116, 115, 32, 100, 101,
+32, 101, 102, 101, 105, 116, 111, 41, 44, 32, 97, 114, 109, 101, 45, 111, 32, 101, 32, 117, 115, 101, 32, 82,
+101, 99, 32, 43, 32, 80, 108, 97, 121, 46, 32, 69, 115, 116, 97, 32, 99, 104, 97, 118, 101, 32, 103, 114,
+97, 118, 97, 32, 111, 115, 32, 100, 111, 105, 115, 32, 112, 114, 105, 109, 101, 105, 114, 111, 115, 32, 99, 97,
+110, 97, 105, 115, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 110, 117, 109, 32, 105, 110, 115, 101,
+114, 116, 32, 110, 111, 118, 111, 32, 113, 117, 97, 110, 100, 111, 32, 110, 97, 100, 97, 32, 101, 115, 116, 195,
+161, 32, 97, 114, 109, 97, 100, 111, 46, 34, 10, 34, 73, 110, 112, 117, 116, 32, 99, 104, 97, 110, 110, 101,
+108, 115, 58, 32, 110, 111, 110, 101, 32, 111, 112, 101, 110, 46, 32, 67, 104, 111, 111, 115, 101, 32, 97, 110,
+32, 105, 110, 112, 117, 116, 32, 100, 101, 118, 105, 99, 101, 32, 97, 98, 111, 118, 101, 32, 116, 111, 32, 114,
+101, 99, 111, 114, 100, 32, 97, 32, 109, 105, 99, 114, 111, 112, 104, 111, 110, 101, 32, 111, 114, 32, 97, 110,
+32, 105, 110, 115, 116, 114, 117, 109, 101, 110, 116, 46, 34, 32, 61, 32, 34, 67, 97, 110, 97, 105, 115, 32,
+100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 58, 32, 110, 101, 110, 104, 117, 109, 32, 97, 98, 101, 114, 116,
+111, 46, 32, 69, 115, 99, 111, 108, 104, 97, 32, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118,
+111, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 97, 99, 105, 109, 97, 32, 112, 97, 114, 97, 32,
+103, 114, 97, 118, 97, 114, 32, 117, 109, 32, 109, 105, 99, 114, 111, 102, 111, 110, 101, 32, 111, 117, 32, 117,
+109, 32, 105, 110, 115, 116, 114, 117, 109, 101, 110, 116, 111, 46, 34, 10, 34, 73, 110, 112, 117, 116, 32, 99,
+104, 97, 110, 110, 101, 108, 115, 32, 40, 123, 48, 125, 41, 58, 32, 123, 49, 125, 34, 32, 61, 32, 34, 67,
+97, 110, 97, 105, 115, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 32, 40, 123, 48, 125, 41, 58, 32,
+123, 49, 125, 34, 10, 34, 80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 32, 110, 111, 116, 101, 115, 58, 32,
+91, 76, 77, 66, 93, 32, 111, 112, 101, 110, 115, 32, 116, 104, 101, 109, 32, 105, 110, 32, 116, 104, 101, 32,
+80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 34, 32, 61, 32, 34, 78, 111, 116, 97, 115, 32, 100, 111, 32,
+80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 58, 32, 91, 76, 77, 66, 93, 32, 97, 98, 114, 101, 32, 110,
+111, 32, 80, 105, 97, 110, 111, 32, 82, 111, 108, 108, 34, 10, 34, 79, 118, 101, 114, 118, 105, 101, 119, 58,
+32, 91, 76, 77, 66, 93, 32, 100, 114, 97, 103, 32, 116, 104, 101, 32, 119, 105, 110, 100, 111, 119, 32, 116,
+111, 32, 115, 99, 114, 111, 108, 108, 44, 32, 100, 114, 97, 103, 32, 105, 116, 115, 32, 101, 100, 103, 101, 115,
+32, 116, 111, 32, 122, 111, 111, 109, 44, 32, 99, 108, 105, 99, 107, 32, 101, 108, 115, 101, 119, 104, 101, 114,
+101, 32, 116, 111, 32, 106, 117, 109, 112, 32, 116, 104, 101, 114, 101, 32, 32, 91, 50, 120, 76, 77, 66, 93,
+32, 115, 104, 111, 119, 32, 101, 118, 101, 114, 121, 116, 104, 105, 110, 103, 34, 32, 61, 32, 34, 86, 105, 115,
+195, 163, 111, 32, 103, 101, 114, 97, 108, 58, 32, 91, 76, 77, 66, 93, 32, 97, 114, 114, 97, 115, 116, 101,
+32, 97, 32, 106, 97, 110, 101, 108, 97, 32, 112, 97, 114, 97, 32, 114, 111, 108, 97, 114, 44, 32, 97, 114,
+114, 97, 115, 116, 101, 32, 97, 115, 32, 98, 111, 114, 100, 97, 115, 32, 112, 97, 114, 97, 32, 100, 97, 114,
+32, 122, 111, 111, 109, 44, 32, 99, 108, 105, 113, 117, 101, 32, 102, 111, 114, 97, 32, 112, 97, 114, 97, 32,
+112, 117, 108, 97, 114, 32, 97, 116, 195, 169, 32, 108, 195, 161, 32, 32, 91, 50, 120, 76, 77, 66, 93, 32,
+109, 111, 115, 116, 114, 97, 32, 116, 117, 100, 111, 34, 10, 10, 35, 32, 97, 117, 100, 105, 111, 32, 101, 100,
+105, 116, 111, 114, 32, 40, 114, 111, 117, 110, 100, 32, 56, 54, 41, 10, 34, 80, 114, 101, 118, 105, 101, 119,
+34, 32, 61, 32, 34, 80, 114, 195, 169, 45, 111, 117, 118, 105, 114, 34, 10, 34, 77, 101, 110, 117, 58, 32,
+102, 105, 108, 101, 44, 32, 101, 100, 105, 116, 44, 32, 116, 111, 111, 108, 115, 44, 32, 114, 101, 103, 105, 111,
+110, 115, 44, 32, 118, 105, 101, 119, 34, 32, 61, 32, 34, 77, 101, 110, 117, 58, 32, 97, 114, 113, 117, 105,
+118, 111, 44, 32, 101, 100, 105, 116, 97, 114, 44, 32, 102, 101, 114, 114, 97, 109, 101, 110, 116, 97, 115, 44,
+32, 114, 101, 103, 105, 195, 181, 101, 115, 44, 32, 101, 120, 105, 98, 105, 114, 34, 10, 34, 87, 104, 97, 116,
+32, 97, 110, 100, 32, 119, 104, 101, 110, 32, 116, 111, 32, 114, 101, 99, 111, 114, 100, 34, 32, 61, 32, 34,
+79, 32, 113, 117, 101, 32, 101, 32, 113, 117, 97, 110, 100, 111, 32, 103, 114, 97, 118, 97, 114, 34, 10, 34,
+80, 108, 97, 121, 32, 47, 32, 115, 116, 111, 112, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111,
+110, 34, 32, 61, 32, 34, 84, 111, 99, 97, 114, 32, 47, 32, 112, 97, 114, 97, 114, 32, 97, 32, 115, 101,
+108, 101, 195, 167, 195, 163, 111, 34, 10, 34, 83, 110, 97, 112, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99,
+116, 105, 111, 110, 32, 116, 111, 32, 122, 101, 114, 111, 32, 99, 114, 111, 115, 115, 105, 110, 103, 115, 34, 32,
+61, 32, 34, 65, 106, 117, 115, 116, 97, 114, 32, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 97,
+111, 115, 32, 99, 114, 117, 122, 97, 109, 101, 110, 116, 111, 115, 32, 100, 101, 32, 122, 101, 114, 111, 34, 10,
+34, 90, 111, 111, 109, 32, 111, 117, 116, 32, 102, 117, 108, 108, 34, 32, 61, 32, 34, 65, 102, 97, 115, 116,
+97, 114, 32, 116, 117, 100, 111, 34, 10, 34, 83, 97, 118, 101, 32, 97, 115, 32, 87, 65, 86, 46, 46, 46,
+34, 32, 61, 32, 34, 83, 97, 108, 118, 97, 114, 32, 99, 111, 109, 111, 32, 87, 65, 86, 46, 46, 46, 34,
+10, 34, 76, 111, 111, 112, 34, 32, 61, 32, 34, 76, 111, 111, 112, 34, 10, 34, 76, 111, 111, 112, 32, 116,
+104, 101, 32, 112, 108, 97, 121, 98, 97, 99, 107, 34, 32, 61, 32, 34, 82, 101, 112, 101, 116, 105, 114, 32,
+97, 32, 114, 101, 112, 114, 111, 100, 117, 195, 167, 195, 163, 111, 34, 10, 34, 83, 112, 101, 99, 116, 114, 117,
+109, 34, 32, 61, 32, 34, 69, 115, 112, 101, 99, 116, 114, 111, 34, 10, 34, 83, 104, 111, 119, 32, 116, 104,
+101, 32, 119, 97, 118, 101, 102, 111, 114, 109, 32, 111, 114, 32, 116, 104, 101, 32, 115, 112, 101, 99, 116, 114,
+111, 103, 114, 97, 109, 34, 32, 61, 32, 34, 77, 111, 115, 116, 114, 97, 114, 32, 97, 32, 102, 111, 114, 109,
+97, 32, 100, 101, 32, 111, 110, 100, 97, 32, 111, 117, 32, 111, 32, 101, 115, 112, 101, 99, 116, 114, 111, 103,
+114, 97, 109, 97, 34, 10, 34, 83, 101, 110, 100, 34, 32, 61, 32, 34, 69, 110, 118, 105, 97, 114, 34, 10,
+34, 83, 101, 110, 100, 32, 116, 111, 32, 116, 104, 101, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 97, 115,
+32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 99, 108, 105, 112, 44, 32, 116, 111, 32, 97, 32, 110, 101, 119,
+32, 83, 97, 109, 112, 108, 101, 114, 32, 99, 104, 97, 110, 110, 101, 108, 32, 111, 114, 32, 98, 97, 99, 107,
+32, 116, 111, 32, 116, 104, 101, 32, 99, 104, 97, 110, 110, 101, 108, 34, 32, 61, 32, 34, 69, 110, 118, 105,
+97, 114, 32, 112, 97, 114, 97, 32, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 99, 111, 109, 111, 32,
+99, 108, 105, 112, 101, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 44, 32, 112, 97, 114, 97, 32, 117, 109,
+32, 110, 111, 118, 111, 32, 99, 97, 110, 97, 108, 32, 83, 97, 109, 112, 108, 101, 114, 32, 111, 117, 32, 100,
+101, 32, 118, 111, 108, 116, 97, 32, 97, 111, 32, 99, 97, 110, 97, 108, 34, 10, 34, 67, 117, 116, 32, 116,
+104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 32, 40, 67, 116, 114, 108, 43, 88, 41, 34, 32, 61,
+32, 34, 82, 101, 99, 111, 114, 116, 97, 114, 32, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 40,
+67, 116, 114, 108, 43, 88, 41, 34, 10, 34, 67, 111, 112, 121, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99,
+116, 105, 111, 110, 32, 40, 67, 116, 114, 108, 43, 67, 41, 34, 32, 61, 32, 34, 67, 111, 112, 105, 97, 114,
+32, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 40, 67, 116, 114, 108, 43, 67, 41, 34, 10, 34,
+80, 97, 115, 116, 101, 34, 32, 61, 32, 34, 67, 111, 108, 97, 114, 34, 10, 34, 80, 97, 115, 116, 101, 32,
+97, 116, 32, 116, 104, 101, 32, 99, 117, 114, 115, 111, 114, 44, 32, 111, 114, 32, 111, 118, 101, 114, 32, 116,
+104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 32, 40, 67, 116, 114, 108, 43, 86, 41, 34, 32, 61,
+32, 34, 67, 111, 108, 97, 114, 32, 110, 111, 32, 99, 117, 114, 115, 111, 114, 44, 32, 111, 117, 32, 115, 111,
+98, 114, 101, 32, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 40, 67, 116, 114, 108, 43, 86, 41,
+34, 10, 34, 68, 101, 108, 101, 116, 101, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 32,
+40, 68, 101, 108, 41, 34, 32, 61, 32, 34, 65, 112, 97, 103, 97, 114, 32, 97, 32, 115, 101, 108, 101, 195,
+167, 195, 163, 111, 32, 40, 68, 101, 108, 41, 34, 10, 34, 84, 114, 105, 109, 34, 32, 61, 32, 34, 65, 112,
+97, 114, 97, 114, 34, 10, 34, 75, 101, 101, 112, 32, 111, 110, 108, 121, 32, 116, 104, 101, 32, 115, 101, 108,
+101, 99, 116, 105, 111, 110, 34, 32, 61, 32, 34, 77, 97, 110, 116, 101, 114, 32, 115, 195, 179, 32, 97, 32,
+115, 101, 108, 101, 195, 167, 195, 163, 111, 34, 10, 34, 83, 105, 108, 101, 110, 99, 101, 34, 32, 61, 32, 34,
+83, 105, 108, 195, 170, 110, 99, 105, 111, 34, 10, 34, 83, 105, 108, 101, 110, 99, 101, 32, 116, 104, 101, 32,
+115, 101, 108, 101, 99, 116, 105, 111, 110, 32, 40, 67, 108, 101, 97, 114, 41, 34, 32, 61, 32, 34, 83, 105,
+108, 101, 110, 99, 105, 97, 114, 32, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 40, 108, 105, 109,
+112, 97, 114, 41, 34, 10, 34, 70, 97, 100, 101, 32, 105, 110, 34, 32, 61, 32, 34, 70, 97, 100, 101, 32,
+105, 110, 34, 10, 34, 70, 97, 100, 101, 32, 105, 110, 32, 111, 118, 101, 114, 32, 116, 104, 101, 32, 115, 101,
+108, 101, 99, 116, 105, 111, 110, 32, 40, 99, 117, 114, 118, 101, 58, 32, 116, 104, 101, 32, 97, 114, 114, 111,
+119, 32, 110, 101, 120, 116, 32, 116, 111, 32, 70, 97, 100, 101, 32, 111, 117, 116, 41, 34, 32, 61, 32, 34,
+70, 97, 100, 101, 32, 105, 110, 32, 110, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 40, 99, 117,
+114, 118, 97, 58, 32, 97, 32, 115, 101, 116, 97, 32, 97, 111, 32, 108, 97, 100, 111, 32, 100, 101, 32, 70,
+97, 100, 101, 32, 111, 117, 116, 41, 34, 10, 34, 70, 97, 100, 101, 32, 111, 117, 116, 34, 32, 61, 32, 34,
+70, 97, 100, 101, 32, 111, 117, 116, 34, 10, 34, 70, 97, 100, 101, 32, 111, 117, 116, 32, 111, 118, 101, 114,
+32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 34, 32, 61, 32, 34, 70, 97, 100, 101, 32,
+111, 117, 116, 32, 110, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 34, 10, 34, 70, 97, 100, 101, 32,
+99, 117, 114, 118, 101, 34, 32, 61, 32, 34, 67, 117, 114, 118, 97, 32, 100, 111, 32, 102, 97, 100, 101, 34,
+10, 34, 78, 111, 114, 109, 97, 108, 105, 122, 101, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111,
+110, 32, 40, 111, 114, 32, 101, 118, 101, 114, 121, 116, 104, 105, 110, 103, 41, 32, 116, 111, 32, 48, 32, 100,
+66, 34, 32, 61, 32, 34, 78, 111, 114, 109, 97, 108, 105, 122, 97, 114, 32, 97, 32, 115, 101, 108, 101, 195,
+167, 195, 163, 111, 32, 40, 111, 117, 32, 116, 117, 100, 111, 41, 32, 112, 97, 114, 97, 32, 48, 32, 100, 66,
+34, 10, 34, 65, 109, 112, 46, 46, 46, 34, 32, 61, 32, 34, 65, 109, 112, 108, 105, 116, 117, 100, 101, 46,
+46, 46, 34, 10, 34, 86, 111, 108, 117, 109, 101, 32, 97, 110, 100, 32, 112, 97, 110, 110, 105, 110, 103, 34,
+32, 61, 32, 34, 86, 111, 108, 117, 109, 101, 32, 101, 32, 112, 97, 110, 111, 114, 195, 162, 109, 105, 99, 97,
+34, 10, 34, 82, 101, 118, 101, 114, 115, 101, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110,
+32, 40, 111, 114, 32, 101, 118, 101, 114, 121, 116, 104, 105, 110, 103, 41, 34, 32, 61, 32, 34, 73, 110, 118,
+101, 114, 116, 101, 114, 32, 110, 111, 32, 116, 101, 109, 112, 111, 32, 97, 32, 115, 101, 108, 101, 195, 167, 195,
+163, 111, 32, 40, 111, 117, 32, 116, 117, 100, 111, 41, 34, 10, 34, 82, 101, 118, 101, 114, 115, 101, 32, 116,
+104, 101, 32, 112, 111, 108, 97, 114, 105, 116, 121, 34, 32, 61, 32, 34, 73, 110, 118, 101, 114, 116, 101, 114,
+32, 97, 32, 112, 111, 108, 97, 114, 105, 100, 97, 100, 101, 34, 10, 34, 82, 101, 118, 101, 114, 115, 101, 32,
+112, 111, 108, 97, 114, 105, 116, 121, 34, 32, 61, 32, 34, 73, 110, 118, 101, 114, 116, 101, 114, 32, 112, 111,
+108, 97, 114, 105, 100, 97, 100, 101, 34, 10, 34, 82, 101, 109, 111, 118, 101, 32, 116, 104, 101, 32, 68, 67,
+32, 111, 102, 102, 115, 101, 116, 34, 32, 61, 32, 34, 82, 101, 109, 111, 118, 101, 114, 32, 111, 32, 100, 101,
+115, 108, 111, 99, 97, 109, 101, 110, 116, 111, 32, 68, 67, 34, 10, 34, 82, 101, 109, 111, 118, 101, 32, 68,
+67, 32, 111, 102, 102, 115, 101, 116, 34, 32, 61, 32, 34, 82, 101, 109, 111, 118, 101, 114, 32, 100, 101, 115,
+108, 111, 99, 97, 109, 101, 110, 116, 111, 32, 68, 67, 34, 10, 34, 83, 116, 114, 101, 116, 99, 104, 46, 46,
+46, 34, 32, 61, 32, 34, 69, 115, 116, 105, 99, 97, 114, 46, 46, 46, 34, 10, 34, 84, 105, 109, 101, 32,
+115, 116, 114, 101, 116, 99, 104, 32, 47, 32, 112, 105, 116, 99, 104, 32, 115, 104, 105, 102, 116, 34, 32, 61,
+32, 34, 69, 115, 116, 105, 99, 97, 114, 32, 110, 111, 32, 116, 101, 109, 112, 111, 32, 47, 32, 109, 117, 100,
+97, 114, 32, 111, 32, 116, 111, 109, 34, 10, 34, 82, 101, 115, 97, 109, 112, 108, 101, 46, 46, 46, 34, 32,
+61, 32, 34, 82, 101, 97, 109, 111, 115, 116, 114, 97, 114, 46, 46, 46, 34, 10, 34, 67, 104, 97, 110, 103,
+101, 32, 116, 104, 101, 32, 115, 97, 109, 112, 108, 101, 32, 114, 97, 116, 101, 34, 32, 61, 32, 34, 77, 117,
+100, 97, 114, 32, 97, 32, 116, 97, 120, 97, 32, 100, 101, 32, 97, 109, 111, 115, 116, 114, 97, 103, 101, 109,
+34, 10, 34, 65, 100, 100, 32, 97, 32, 109, 97, 114, 107, 101, 114, 32, 97, 116, 32, 116, 104, 101, 32, 99,
+117, 114, 115, 111, 114, 32, 40, 77, 41, 34, 32, 61, 32, 34, 65, 100, 105, 99, 105, 111, 110, 97, 114, 32,
+117, 109, 32, 109, 97, 114, 99, 97, 100, 111, 114, 32, 110, 111, 32, 99, 117, 114, 115, 111, 114, 32, 40, 77,
+41, 34, 10, 34, 82, 101, 103, 105, 111, 110, 34, 32, 61, 32, 34, 82, 101, 103, 105, 195, 163, 111, 34, 10,
+34, 77, 97, 107, 101, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 32, 97, 32, 114, 101,
+103, 105, 111, 110, 34, 32, 61, 32, 34, 84, 114, 97, 110, 115, 102, 111, 114, 109, 97, 114, 32, 97, 32, 115,
+101, 108, 101, 195, 167, 195, 163, 111, 32, 101, 109, 32, 114, 101, 103, 105, 195, 163, 111, 34, 10, 34, 83, 101,
+116, 32, 108, 111, 111, 112, 34, 32, 61, 32, 34, 68, 101, 102, 105, 110, 105, 114, 32, 108, 111, 111, 112, 34,
+10, 34, 77, 97, 107, 101, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 32, 116, 104, 101,
+32, 108, 111, 111, 112, 34, 32, 61, 32, 34, 84, 114, 97, 110, 115, 102, 111, 114, 109, 97, 114, 32, 97, 32,
+115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 110, 111, 32, 108, 111, 111, 112, 34, 10, 34, 69, 109, 112, 116,
+121, 34, 32, 61, 32, 34, 86, 97, 122, 105, 111, 34, 10, 34, 77, 111, 118, 101, 32, 109, 97, 114, 107, 101,
+114, 34, 32, 61, 32, 34, 77, 111, 118, 101, 114, 32, 109, 97, 114, 99, 97, 100, 111, 114, 34, 10, 34, 77,
+111, 118, 101, 32, 108, 111, 111, 112, 34, 32, 61, 32, 34, 77, 111, 118, 101, 114, 32, 108, 111, 111, 112, 34,
+10, 34, 87, 97, 105, 116, 105, 110, 103, 32, 102, 111, 114, 32, 105, 110, 112, 117, 116, 46, 46, 46, 34, 32,
+61, 32, 34, 65, 103, 117, 97, 114, 100, 97, 110, 100, 111, 32, 97, 32, 101, 110, 116, 114, 97, 100, 97, 46,
+46, 46, 34, 10, 34, 69, 109, 112, 116, 121, 58, 32, 112, 114, 101, 115, 115, 32, 82, 101, 99, 111, 114, 100,
+44, 32, 100, 114, 111, 112, 32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 102, 105, 108, 101, 32, 104, 101, 114,
+101, 32, 111, 114, 32, 111, 112, 101, 110, 32, 111, 110, 101, 32, 102, 114, 111, 109, 32, 116, 104, 101, 32, 109,
+101, 110, 117, 34, 32, 61, 32, 34, 86, 97, 122, 105, 111, 58, 32, 97, 112, 101, 114, 116, 101, 32, 71, 114,
+97, 118, 97, 114, 44, 32, 115, 111, 108, 116, 101, 32, 117, 109, 32, 97, 114, 113, 117, 105, 118, 111, 32, 100,
+101, 32, 195, 161, 117, 100, 105, 111, 32, 97, 113, 117, 105, 32, 111, 117, 32, 97, 98, 114, 97, 32, 117, 109,
+32, 112, 101, 108, 111, 32, 109, 101, 110, 117, 34, 10, 34, 87, 97, 105, 116, 105, 110, 103, 46, 46, 46, 34,
+32, 61, 32, 34, 65, 103, 117, 97, 114, 100, 97, 110, 100, 111, 46, 46, 46, 34, 10, 34, 83, 116, 101, 114,
+101, 111, 34, 32, 61, 32, 34, 69, 115, 116, 195, 169, 114, 101, 111, 34, 10, 34, 83, 101, 108, 101, 99, 116,
+105, 111, 110, 34, 32, 61, 32, 34, 83, 101, 108, 101, 195, 167, 195, 163, 111, 34, 10, 34, 67, 117, 114, 115,
+111, 114, 34, 32, 61, 32, 34, 67, 117, 114, 115, 111, 114, 34, 10, 34, 83, 101, 108, 101, 99, 116, 32, 97,
+32, 112, 97, 114, 116, 32, 102, 105, 114, 115, 116, 32, 40, 100, 114, 97, 103, 32, 111, 118, 101, 114, 32, 116,
+104, 101, 32, 119, 97, 118, 101, 102, 111, 114, 109, 41, 34, 32, 61, 32, 34, 83, 101, 108, 101, 99, 105, 111,
+110, 101, 32, 117, 109, 32, 116, 114, 101, 99, 104, 111, 32, 97, 110, 116, 101, 115, 32, 40, 97, 114, 114, 97,
+115, 116, 101, 32, 115, 111, 98, 114, 101, 32, 97, 32, 102, 111, 114, 109, 97, 32, 100, 101, 32, 111, 110, 100,
+97, 41, 34, 10, 34, 67, 111, 112, 105, 101, 100, 32, 123, 48, 125, 34, 32, 61, 32, 34, 67, 111, 112, 105,
+97, 100, 111, 32, 123, 48, 125, 34, 10, 34, 80, 97, 115, 116, 101, 32, 109, 105, 120, 34, 32, 61, 32, 34,
+67, 111, 108, 97, 114, 32, 109, 105, 120, 97, 110, 100, 111, 34, 10, 34, 65, 100, 100, 32, 109, 97, 114, 107,
+101, 114, 34, 32, 61, 32, 34, 65, 100, 105, 99, 105, 111, 110, 97, 114, 32, 109, 97, 114, 99, 97, 100, 111,
+114, 34, 10, 34, 65, 100, 100, 32, 114, 101, 103, 105, 111, 110, 34, 32, 61, 32, 34, 65, 100, 105, 99, 105,
+111, 110, 97, 114, 32, 114, 101, 103, 105, 195, 163, 111, 34, 10, 34, 65, 109, 112, 34, 32, 61, 32, 34, 65,
+109, 112, 108, 105, 116, 117, 100, 101, 34, 10, 34, 83, 116, 114, 101, 116, 99, 104, 32, 40, 107, 101, 101, 112,
+32, 112, 105, 116, 99, 104, 32, 97, 110, 100, 32, 108, 101, 110, 103, 116, 104, 32, 97, 112, 97, 114, 116, 41,
+34, 32, 61, 32, 34, 69, 115, 116, 105, 99, 97, 114, 32, 40, 116, 111, 109, 32, 101, 32, 100, 117, 114, 97,
+195, 167, 195, 163, 111, 32, 105, 110, 100, 101, 112, 101, 110, 100, 101, 110, 116, 101, 115, 41, 34, 10, 34, 82,
+101, 115, 97, 109, 112, 108, 101, 32, 40, 112, 105, 116, 99, 104, 32, 102, 111, 108, 108, 111, 119, 115, 32, 116,
+104, 101, 32, 115, 112, 101, 101, 100, 41, 34, 32, 61, 32, 34, 82, 101, 97, 109, 111, 115, 116, 114, 97, 114,
+32, 40, 111, 32, 116, 111, 109, 32, 97, 99, 111, 109, 112, 97, 110, 104, 97, 32, 97, 32, 118, 101, 108, 111,
+99, 105, 100, 97, 100, 101, 41, 34, 10, 34, 77, 101, 116, 104, 111, 100, 34, 32, 61, 32, 34, 77, 195, 169,
+116, 111, 100, 111, 34, 10, 34, 82, 101, 115, 97, 109, 112, 108, 101, 34, 32, 61, 32, 34, 82, 101, 97, 109,
+111, 115, 116, 114, 97, 114, 34, 10, 34, 73, 110, 115, 101, 114, 116, 32, 115, 105, 108, 101, 110, 99, 101, 34,
+32, 61, 32, 34, 73, 110, 115, 101, 114, 105, 114, 32, 115, 105, 108, 195, 170, 110, 99, 105, 111, 34, 10, 34,
+65, 117, 116, 111, 45, 115, 108, 105, 99, 101, 34, 32, 61, 32, 34, 70, 97, 116, 105, 97, 114, 32, 97, 117,
+116, 111, 109, 97, 116, 105, 99, 97, 109, 101, 110, 116, 101, 34, 10, 34, 123, 48, 125, 32, 109, 97, 114, 107,
+101, 114, 115, 32, 97, 100, 100, 101, 100, 34, 32, 61, 32, 34, 123, 48, 125, 32, 109, 97, 114, 99, 97, 100,
+111, 114, 101, 115, 32, 97, 100, 105, 99, 105, 111, 110, 97, 100, 111, 115, 34, 10, 34, 71, 114, 105, 100, 32,
+115, 108, 105, 99, 101, 34, 32, 61, 32, 34, 70, 97, 116, 105, 97, 114, 32, 112, 101, 108, 97, 32, 103, 114,
+97, 100, 101, 34, 10, 34, 78, 111, 32, 97, 117, 100, 105, 111, 32, 100, 101, 118, 105, 99, 101, 32, 105, 115,
+32, 111, 112, 101, 110, 32, 40, 83, 101, 116, 116, 105, 110, 103, 115, 32, 62, 32, 65, 117, 100, 105, 111, 41,
+34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 100, 105, 115, 112, 111, 115, 105, 116, 105, 118, 111, 32,
+100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 97, 98, 101, 114, 116, 111, 32, 40, 67, 111, 110, 102, 105, 103,
+117, 114, 97, 195, 167, 195, 181, 101, 115, 32, 62, 32, 195, 129, 117, 100, 105, 111, 41, 34, 10, 34, 78, 111,
+32, 97, 99, 116, 105, 118, 101, 32, 97, 117, 100, 105, 111, 32, 105, 110, 112, 117, 116, 32, 40, 83, 101, 116,
+116, 105, 110, 103, 115, 32, 62, 32, 65, 117, 100, 105, 111, 41, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117,
+109, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 32, 97, 116, 105,
+118, 97, 32, 40, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101, 115, 32, 62, 32, 195, 129,
+117, 100, 105, 111, 41, 34, 10, 34, 82, 101, 99, 111, 114, 100, 105, 110, 103, 32, 115, 116, 97, 114, 116, 115,
+32, 119, 104, 101, 110, 32, 116, 104, 101, 32, 115, 111, 110, 103, 32, 112, 108, 97, 121, 115, 34, 32, 61, 32,
+34, 65, 32, 103, 114, 97, 118, 97, 195, 167, 195, 163, 111, 32, 99, 111, 109, 101, 195, 167, 97, 32, 113, 117,
+97, 110, 100, 111, 32, 97, 32, 109, 195, 186, 115, 105, 99, 97, 32, 116, 111, 99, 97, 114, 34, 10, 34, 82,
+101, 99, 111, 114, 100, 105, 110, 103, 32, 115, 116, 97, 114, 116, 115, 32, 119, 104, 101, 110, 32, 116, 104, 101,
+32, 105, 110, 112, 117, 116, 32, 105, 115, 32, 104, 101, 97, 114, 100, 34, 32, 61, 32, 34, 65, 32, 103, 114,
+97, 118, 97, 195, 167, 195, 163, 111, 32, 99, 111, 109, 101, 195, 167, 97, 32, 113, 117, 97, 110, 100, 111, 32,
+104, 111, 117, 118, 101, 114, 32, 115, 105, 110, 97, 108, 32, 110, 97, 32, 101, 110, 116, 114, 97, 100, 97, 34,
+10, 34, 82, 101, 99, 111, 114, 100, 105, 110, 103, 32, 102, 114, 111, 109, 32, 123, 48, 125, 34, 32, 61, 32,
+34, 71, 114, 97, 118, 97, 110, 100, 111, 32, 100, 101, 32, 123, 48, 125, 34, 10, 34, 82, 101, 99, 111, 114,
+100, 101, 100, 32, 123, 48, 125, 34, 32, 61, 32, 34, 71, 114, 97, 118, 97, 100, 111, 32, 123, 48, 125, 34,
+10, 34, 123, 48, 125, 32, 102, 114, 97, 109, 101, 115, 32, 108, 111, 115, 116, 34, 32, 61, 32, 34, 123, 48,
+125, 32, 97, 109, 111, 115, 116, 114, 97, 115, 32, 112, 101, 114, 100, 105, 100, 97, 115, 34, 10, 34, 78, 111,
+116, 104, 105, 110, 103, 32, 119, 97, 115, 32, 114, 101, 99, 111, 114, 100, 101, 100, 34, 32, 61, 32, 34, 78,
+97, 100, 97, 32, 102, 111, 105, 32, 103, 114, 97, 118, 97, 100, 111, 34, 10, 34, 116, 104, 101, 32, 97, 117,
+100, 105, 111, 32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 97, 32, 101, 110, 116, 114, 97, 100, 97, 32,
+100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 116, 104, 101, 32, 77, 97, 115, 116, 101, 114, 34, 32,
+61, 32, 34, 111, 32, 77, 97, 115, 116, 101, 114, 34, 10, 34, 105, 110, 115, 101, 114, 116, 32, 123, 48, 125,
+34, 32, 61, 32, 34, 105, 110, 115, 101, 114, 116, 32, 123, 48, 125, 34, 10, 34, 67, 111, 117, 108, 100, 32,
+110, 111, 116, 32, 119, 114, 105, 116, 101, 32, 123, 48, 125, 34, 32, 61, 32, 34, 78, 195, 163, 111, 32, 102,
+111, 105, 32, 112, 111, 115, 115, 195, 173, 118, 101, 108, 32, 103, 114, 97, 118, 97, 114, 32, 123, 48, 125, 34,
+10, 34, 83, 97, 118, 101, 32, 97, 115, 32, 87, 65, 86, 34, 32, 61, 32, 34, 83, 97, 108, 118, 97, 114,
+32, 99, 111, 109, 111, 32, 87, 65, 86, 34, 10, 34, 83, 97, 118, 101, 100, 32, 123, 48, 125, 34, 32, 61,
+32, 34, 83, 97, 108, 118, 111, 32, 123, 48, 125, 34, 10, 34, 79, 112, 101, 110, 32, 97, 117, 100, 105, 111,
+32, 102, 105, 108, 101, 34, 32, 61, 32, 34, 65, 98, 114, 105, 114, 32, 97, 114, 113, 117, 105, 118, 111, 32,
+100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 78, 111, 32, 114, 101, 103, 105, 111, 110, 115, 32, 111,
+114, 32, 109, 97, 114, 107, 101, 114, 115, 32, 116, 111, 32, 101, 120, 112, 111, 114, 116, 34, 32, 61, 32, 34,
+78, 195, 163, 111, 32, 104, 195, 161, 32, 114, 101, 103, 105, 195, 181, 101, 115, 32, 110, 101, 109, 32, 109, 97,
+114, 99, 97, 100, 111, 114, 101, 115, 32, 112, 97, 114, 97, 32, 101, 120, 112, 111, 114, 116, 97, 114, 34, 10,
+34, 69, 120, 112, 111, 114, 116, 32, 114, 101, 103, 105, 111, 110, 115, 32, 116, 111, 32, 97, 32, 102, 111, 108,
+100, 101, 114, 34, 32, 61, 32, 34, 69, 120, 112, 111, 114, 116, 97, 114, 32, 97, 115, 32, 114, 101, 103, 105,
+195, 181, 101, 115, 32, 112, 97, 114, 97, 32, 117, 109, 97, 32, 112, 97, 115, 116, 97, 34, 10, 34, 123, 48,
+125, 32, 102, 105, 108, 101, 115, 32, 119, 114, 105, 116, 116, 101, 110, 34, 32, 61, 32, 34, 123, 48, 125, 32,
+97, 114, 113, 117, 105, 118, 111, 115, 32, 103, 114, 97, 118, 97, 100, 111, 115, 34, 10, 34, 83, 101, 110, 116,
+32, 116, 111, 32, 116, 104, 101, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 40, 116, 114, 97, 99, 107, 32,
+123, 48, 125, 41, 34, 32, 61, 32, 34, 69, 110, 118, 105, 97, 100, 111, 32, 112, 97, 114, 97, 32, 97, 32,
+80, 108, 97, 121, 108, 105, 115, 116, 32, 40, 116, 114, 105, 108, 104, 97, 32, 123, 48, 125, 41, 34, 10, 34,
+83, 101, 110, 116, 32, 116, 111, 32, 97, 32, 110, 101, 119, 32, 83, 97, 109, 112, 108, 101, 114, 32, 99, 104,
+97, 110, 110, 101, 108, 34, 32, 61, 32, 34, 69, 110, 118, 105, 97, 100, 111, 32, 112, 97, 114, 97, 32, 117,
+109, 32, 110, 111, 118, 111, 32, 99, 97, 110, 97, 108, 32, 83, 97, 109, 112, 108, 101, 114, 34, 10, 34, 84,
+104, 101, 32, 99, 104, 97, 110, 110, 101, 108, 32, 110, 111, 119, 32, 112, 108, 97, 121, 115, 32, 116, 104, 101,
+32, 101, 100, 105, 116, 101, 100, 32, 97, 117, 100, 105, 111, 34, 32, 61, 32, 34, 79, 32, 99, 97, 110, 97,
+108, 32, 97, 103, 111, 114, 97, 32, 116, 111, 99, 97, 32, 111, 32, 195, 161, 117, 100, 105, 111, 32, 101, 100,
+105, 116, 97, 100, 111, 34, 10, 34, 83, 109, 111, 111, 116, 104, 32, 40, 83, 45, 99, 117, 114, 118, 101, 41,
+34, 32, 61, 32, 34, 83, 117, 97, 118, 101, 32, 40, 99, 117, 114, 118, 97, 32, 101, 109, 32, 83, 41, 34,
+10, 34, 76, 105, 110, 101, 97, 114, 34, 32, 61, 32, 34, 76, 105, 110, 101, 97, 114, 34, 10, 34, 83, 108,
+111, 119, 32, 115, 116, 97, 114, 116, 34, 32, 61, 32, 34, 73, 110, 195, 173, 99, 105, 111, 32, 108, 101, 110,
+116, 111, 34, 10, 34, 70, 97, 115, 116, 32, 115, 116, 97, 114, 116, 34, 32, 61, 32, 34, 73, 110, 195, 173,
+99, 105, 111, 32, 114, 195, 161, 112, 105, 100, 111, 34, 10, 34, 82, 101, 99, 111, 114, 100, 32, 102, 114, 111,
+109, 34, 32, 61, 32, 34, 71, 114, 97, 118, 97, 114, 32, 100, 101, 34, 10, 34, 77, 97, 115, 116, 101, 114,
+32, 111, 117, 116, 112, 117, 116, 34, 32, 61, 32, 34, 83, 97, 195, 173, 100, 97, 32, 77, 97, 115, 116, 101,
+114, 34, 10, 34, 73, 109, 109, 101, 100, 105, 97, 116, 101, 108, 121, 34, 32, 61, 32, 34, 73, 109, 101, 100,
+105, 97, 116, 97, 109, 101, 110, 116, 101, 34, 10, 34, 87, 104, 101, 110, 32, 116, 104, 101, 32, 105, 110, 112,
+117, 116, 32, 105, 115, 32, 104, 101, 97, 114, 100, 34, 32, 61, 32, 34, 81, 117, 97, 110, 100, 111, 32, 104,
+111, 117, 118, 101, 114, 32, 115, 105, 110, 97, 108, 32, 110, 97, 32, 101, 110, 116, 114, 97, 100, 97, 34, 10,
+34, 87, 104, 101, 110, 32, 116, 104, 101, 32, 115, 111, 110, 103, 32, 112, 108, 97, 121, 115, 32, 40, 115, 116,
+111, 112, 115, 32, 119, 105, 116, 104, 32, 105, 116, 41, 34, 32, 61, 32, 34, 81, 117, 97, 110, 100, 111, 32,
+97, 32, 109, 195, 186, 115, 105, 99, 97, 32, 116, 111, 99, 97, 114, 32, 40, 112, 97, 114, 97, 32, 106, 117,
+110, 116, 111, 41, 34, 10, 34, 83, 101, 110, 100, 32, 116, 111, 32, 116, 104, 101, 32, 80, 108, 97, 121, 108,
+105, 115, 116, 32, 97, 115, 32, 97, 110, 32, 97, 117, 100, 105, 111, 32, 99, 108, 105, 112, 34, 32, 61, 32,
+34, 69, 110, 118, 105, 97, 114, 32, 112, 97, 114, 97, 32, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32,
+99, 111, 109, 111, 32, 99, 108, 105, 112, 101, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 83,
+101, 110, 100, 32, 116, 111, 32, 97, 32, 110, 101, 119, 32, 83, 97, 109, 112, 108, 101, 114, 32, 99, 104, 97,
+110, 110, 101, 108, 34, 32, 61, 32, 34, 69, 110, 118, 105, 97, 114, 32, 112, 97, 114, 97, 32, 117, 109, 32,
+110, 111, 118, 111, 32, 99, 97, 110, 97, 108, 32, 83, 97, 109, 112, 108, 101, 114, 34, 10, 34, 82, 101, 112,
+108, 97, 99, 101, 32, 116, 104, 101, 32, 115, 97, 109, 112, 108, 101, 32, 111, 102, 32, 92, 34, 123, 48, 125,
+92, 34, 34, 32, 61, 32, 34, 83, 117, 98, 115, 116, 105, 116, 117, 105, 114, 32, 111, 32, 115, 97, 109, 112,
+108, 101, 32, 100, 101, 32, 92, 34, 123, 48, 125, 92, 34, 34, 10, 34, 90, 111, 111, 109, 32, 111, 110, 34,
+32, 61, 32, 34, 65, 112, 114, 111, 120, 105, 109, 97, 114, 34, 10, 34, 84, 117, 114, 110, 32, 105, 110, 116,
+111, 32, 109, 97, 114, 107, 101, 114, 34, 32, 61, 32, 34, 84, 114, 97, 110, 115, 102, 111, 114, 109, 97, 114,
+32, 101, 109, 32, 109, 97, 114, 99, 97, 100, 111, 114, 34, 10, 34, 68, 101, 108, 101, 116, 101, 32, 109, 97,
+114, 107, 101, 114, 34, 32, 61, 32, 34, 65, 112, 97, 103, 97, 114, 32, 109, 97, 114, 99, 97, 100, 111, 114,
+34, 10, 34, 82, 101, 110, 97, 109, 101, 34, 32, 61, 32, 34, 82, 101, 110, 111, 109, 101, 97, 114, 34, 10,
+34, 65, 117, 100, 105, 111, 32, 101, 100, 105, 116, 111, 114, 34, 32, 61, 32, 34, 69, 100, 105, 116, 111, 114,
+32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 34, 10, 34, 80, 97, 115, 116, 101, 32, 105, 110, 115, 101, 114,
+116, 34, 32, 61, 32, 34, 67, 111, 108, 97, 114, 32, 105, 110, 115, 101, 114, 105, 110, 100, 111, 34, 10, 34,
+80, 97, 115, 116, 101, 32, 114, 101, 112, 108, 97, 99, 101, 34, 32, 61, 32, 34, 67, 111, 108, 97, 114, 32,
+115, 117, 98, 115, 116, 105, 116, 117, 105, 110, 100, 111, 34, 10, 34, 67, 108, 101, 97, 114, 32, 40, 115, 105,
+108, 101, 110, 99, 101, 41, 34, 32, 61, 32, 34, 76, 105, 109, 112, 97, 114, 32, 40, 115, 105, 108, 195, 170,
+110, 99, 105, 111, 41, 34, 10, 34, 84, 114, 105, 109, 32, 40, 107, 101, 101, 112, 32, 116, 104, 101, 32, 115,
+101, 108, 101, 99, 116, 105, 111, 110, 41, 34, 32, 61, 32, 34, 65, 112, 97, 114, 97, 114, 32, 40, 109, 97,
+110, 116, 101, 114, 32, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 41, 34, 10, 34, 73, 110, 115, 101,
+114, 116, 32, 115, 105, 108, 101, 110, 99, 101, 46, 46, 46, 34, 32, 61, 32, 34, 73, 110, 115, 101, 114, 105,
+114, 32, 115, 105, 108, 195, 170, 110, 99, 105, 111, 46, 46, 46, 34, 10, 34, 68, 101, 108, 101, 116, 101, 32,
+116, 104, 101, 32, 112, 97, 114, 116, 32, 97, 102, 116, 101, 114, 32, 116, 104, 101, 32, 108, 111, 111, 112, 34,
+32, 61, 32, 34, 65, 112, 97, 103, 97, 114, 32, 97, 32, 112, 97, 114, 116, 101, 32, 100, 101, 112, 111, 105,
+115, 32, 100, 111, 32, 108, 111, 111, 112, 34, 10, 34, 68, 101, 108, 101, 116, 101, 32, 97, 102, 116, 101, 114,
+32, 108, 111, 111, 112, 34, 32, 61, 32, 34, 65, 112, 97, 103, 97, 114, 32, 100, 101, 112, 111, 105, 115, 32,
+100, 111, 32, 108, 111, 111, 112, 34, 10, 34, 83, 101, 108, 101, 99, 116, 32, 97, 108, 108, 34, 32, 61, 32,
+34, 83, 101, 108, 101, 99, 105, 111, 110, 97, 114, 32, 116, 117, 100, 111, 34, 10, 34, 68, 101, 115, 101, 108,
+101, 99, 116, 34, 32, 61, 32, 34, 68, 101, 115, 109, 97, 114, 99, 97, 114, 34, 10, 34, 90, 111, 111, 109,
+32, 111, 110, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 34, 32, 61, 32, 34, 65, 112,
+114, 111, 120, 105, 109, 97, 114, 32, 110, 97, 32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 34, 10, 34, 78,
+101, 119, 32, 40, 101, 109, 112, 116, 121, 41, 34, 32, 61, 32, 34, 78, 111, 118, 111, 32, 40, 118, 97, 122,
+105, 111, 41, 34, 10, 34, 79, 112, 101, 110, 32, 97, 117, 100, 105, 111, 32, 102, 105, 108, 101, 46, 46, 46,
+34, 32, 61, 32, 34, 65, 98, 114, 105, 114, 32, 97, 114, 113, 117, 105, 118, 111, 32, 100, 101, 32, 195, 161,
+117, 100, 105, 111, 46, 46, 46, 34, 10, 34, 49, 54, 45, 98, 105, 116, 34, 32, 61, 32, 34, 49, 54, 32,
+98, 105, 116, 115, 34, 10, 34, 50, 52, 45, 98, 105, 116, 34, 32, 61, 32, 34, 50, 52, 32, 98, 105, 116,
+115, 34, 10, 34, 51, 50, 45, 98, 105, 116, 32, 102, 108, 111, 97, 116, 34, 32, 61, 32, 34, 51, 50, 32,
+98, 105, 116, 115, 32, 102, 108, 111, 97, 116, 34, 10, 34, 69, 120, 112, 111, 114, 116, 32, 114, 101, 103, 105,
+111, 110, 115, 32, 97, 115, 32, 102, 105, 108, 101, 115, 46, 46, 46, 34, 32, 61, 32, 34, 69, 120, 112, 111,
+114, 116, 97, 114, 32, 97, 115, 32, 114, 101, 103, 105, 195, 181, 101, 115, 32, 99, 111, 109, 111, 32, 97, 114,
+113, 117, 105, 118, 111, 115, 46, 46, 46, 34, 10, 34, 78, 111, 114, 109, 97, 108, 105, 122, 101, 32, 116, 111,
+46, 46, 46, 34, 32, 61, 32, 34, 78, 111, 114, 109, 97, 108, 105, 122, 97, 114, 32, 112, 97, 114, 97, 46,
+46, 46, 34, 10, 34, 82, 101, 109, 111, 118, 101, 32, 68, 67, 32, 111, 102, 102, 115, 101, 116, 32, 40, 99,
+101, 110, 116, 101, 114, 41, 34, 32, 61, 32, 34, 82, 101, 109, 111, 118, 101, 114, 32, 100, 101, 115, 108, 111,
+99, 97, 109, 101, 110, 116, 111, 32, 68, 67, 32, 40, 99, 101, 110, 116, 114, 97, 108, 105, 122, 97, 114, 41,
+34, 10, 34, 68, 101, 99, 108, 105, 99, 107, 32, 105, 110, 34, 32, 61, 32, 34, 84, 105, 114, 97, 114, 32,
+99, 108, 105, 113, 117, 101, 32, 100, 111, 32, 105, 110, 195, 173, 99, 105, 111, 34, 10, 34, 68, 101, 99, 108,
+105, 99, 107, 32, 111, 117, 116, 34, 32, 61, 32, 34, 84, 105, 114, 97, 114, 32, 99, 108, 105, 113, 117, 101,
+32, 100, 111, 32, 102, 105, 109, 34, 10, 34, 84, 105, 109, 101, 32, 115, 116, 114, 101, 116, 99, 104, 32, 47,
+32, 112, 105, 116, 99, 104, 32, 115, 104, 105, 102, 116, 46, 46, 46, 34, 32, 61, 32, 34, 69, 115, 116, 105,
+99, 97, 114, 32, 110, 111, 32, 116, 101, 109, 112, 111, 32, 47, 32, 109, 117, 100, 97, 114, 32, 111, 32, 116,
+111, 109, 46, 46, 46, 34, 10, 34, 67, 104, 97, 110, 110, 101, 108, 115, 34, 32, 61, 32, 34, 67, 97, 110,
+97, 105, 115, 34, 10, 34, 83, 119, 97, 112, 32, 99, 104, 97, 110, 110, 101, 108, 115, 34, 32, 61, 32, 34,
+84, 114, 111, 99, 97, 114, 32, 111, 115, 32, 99, 97, 110, 97, 105, 115, 34, 10, 34, 67, 111, 110, 118, 101,
+114, 116, 32, 116, 111, 32, 109, 111, 110, 111, 32, 40, 109, 105, 120, 41, 34, 32, 61, 32, 34, 67, 111, 110,
+118, 101, 114, 116, 101, 114, 32, 112, 97, 114, 97, 32, 109, 111, 110, 111, 32, 40, 109, 105, 120, 97, 114, 41,
+34, 10, 34, 67, 111, 110, 118, 101, 114, 116, 32, 116, 111, 32, 109, 111, 110, 111, 34, 32, 61, 32, 34, 67,
+111, 110, 118, 101, 114, 116, 101, 114, 32, 112, 97, 114, 97, 32, 109, 111, 110, 111, 34, 10, 34, 67, 111, 110,
+118, 101, 114, 116, 32, 116, 104, 101, 32, 108, 101, 102, 116, 32, 99, 104, 97, 110, 110, 101, 108, 32, 116, 111,
+32, 109, 111, 110, 111, 34, 32, 61, 32, 34, 67, 111, 110, 118, 101, 114, 116, 101, 114, 32, 111, 32, 99, 97,
+110, 97, 108, 32, 101, 115, 113, 117, 101, 114, 100, 111, 32, 112, 97, 114, 97, 32, 109, 111, 110, 111, 34, 10,
+34, 67, 111, 110, 118, 101, 114, 116, 32, 116, 104, 101, 32, 114, 105, 103, 104, 116, 32, 99, 104, 97, 110, 110,
+101, 108, 32, 116, 111, 32, 109, 111, 110, 111, 34, 32, 61, 32, 34, 67, 111, 110, 118, 101, 114, 116, 101, 114,
+32, 111, 32, 99, 97, 110, 97, 108, 32, 100, 105, 114, 101, 105, 116, 111, 32, 112, 97, 114, 97, 32, 109, 111,
+110, 111, 34, 10, 34, 67, 111, 110, 118, 101, 114, 116, 32, 116, 111, 32, 115, 116, 101, 114, 101, 111, 34, 32,
+61, 32, 34, 67, 111, 110, 118, 101, 114, 116, 101, 114, 32, 112, 97, 114, 97, 32, 101, 115, 116, 195, 169, 114,
+101, 111, 34, 10, 34, 68, 101, 108, 101, 116, 101, 32, 109, 97, 114, 107, 101, 114, 115, 32, 105, 110, 32, 116,
+104, 101, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 34, 32, 61, 32, 34, 65, 112, 97, 103, 97, 114, 32,
+111, 115, 32, 109, 97, 114, 99, 97, 100, 111, 114, 101, 115, 32, 100, 97, 32, 115, 101, 108, 101, 195, 167, 195,
+163, 111, 34, 10, 34, 68, 101, 108, 101, 116, 101, 32, 109, 97, 114, 107, 101, 114, 115, 34, 32, 61, 32, 34,
+65, 112, 97, 103, 97, 114, 32, 109, 97, 114, 99, 97, 100, 111, 114, 101, 115, 34, 10, 34, 68, 117, 108, 108,
+32, 97, 117, 116, 111, 45, 115, 108, 105, 99, 105, 110, 103, 34, 32, 61, 32, 34, 70, 97, 116, 105, 97, 109,
+101, 110, 116, 111, 32, 97, 117, 116, 111, 109, 195, 161, 116, 105, 99, 111, 32, 115, 117, 97, 118, 101, 34, 10,
+34, 77, 101, 100, 105, 117, 109, 32, 97, 117, 116, 111, 45, 115, 108, 105, 99, 105, 110, 103, 34, 32, 61, 32,
+34, 70, 97, 116, 105, 97, 109, 101, 110, 116, 111, 32, 97, 117, 116, 111, 109, 195, 161, 116, 105, 99, 111, 32,
+109, 195, 169, 100, 105, 111, 34, 10, 34, 83, 104, 97, 114, 112, 32, 97, 117, 116, 111, 45, 115, 108, 105, 99,
+105, 110, 103, 34, 32, 61, 32, 34, 70, 97, 116, 105, 97, 109, 101, 110, 116, 111, 32, 97, 117, 116, 111, 109,
+195, 161, 116, 105, 99, 111, 32, 97, 103, 114, 101, 115, 115, 105, 118, 111, 34, 10, 34, 69, 118, 101, 114, 121,
+32, 98, 101, 97, 116, 32, 40, 112, 114, 111, 106, 101, 99, 116, 32, 116, 101, 109, 112, 111, 41, 34, 32, 61,
+32, 34, 65, 32, 99, 97, 100, 97, 32, 116, 101, 109, 112, 111, 32, 40, 97, 110, 100, 97, 109, 101, 110, 116,
+111, 32, 100, 111, 32, 112, 114, 111, 106, 101, 116, 111, 41, 34, 10, 34, 69, 118, 101, 114, 121, 32, 49, 47,
+50, 32, 98, 101, 97, 116, 34, 32, 61, 32, 34, 65, 32, 99, 97, 100, 97, 32, 49, 47, 50, 32, 116, 101,
+109, 112, 111, 34, 10, 34, 69, 118, 101, 114, 121, 32, 49, 47, 52, 32, 98, 101, 97, 116, 34, 32, 61, 32,
+34, 65, 32, 99, 97, 100, 97, 32, 49, 47, 52, 32, 100, 101, 32, 116, 101, 109, 112, 111, 34, 10, 34, 87,
+97, 118, 101, 102, 111, 114, 109, 34, 32, 61, 32, 34, 70, 111, 114, 109, 97, 32, 100, 101, 32, 111, 110, 100,
+97, 34, 10, 34, 83, 112, 101, 99, 116, 114, 111, 103, 114, 97, 109, 34, 32, 61, 32, 34, 69, 115, 112, 101,
+99, 116, 114, 111, 103, 114, 97, 109, 97, 34, 10, 34, 123, 48, 125, 32, 98, 97, 110, 100, 115, 34, 32, 61,
+32, 34, 123, 48, 125, 32, 98, 97, 110, 100, 97, 115, 34, 10, 34, 83, 112, 101, 99, 116, 114, 117, 109, 32,
+112, 114, 101, 99, 105, 115, 105, 111, 110, 34, 32, 61, 32, 34, 80, 114, 101, 99, 105, 115, 195, 163, 111, 32,
+100, 111, 32, 101, 115, 112, 101, 99, 116, 114, 111, 34, 10, 34, 76, 111, 103, 97, 114, 105, 116, 104, 109, 105,
+99, 32, 102, 114, 101, 113, 117, 101, 110, 99, 121, 32, 115, 99, 97, 108, 101, 34, 32, 61, 32, 34, 69, 115,
+99, 97, 108, 97, 32, 100, 101, 32, 102, 114, 101, 113, 117, 195, 170, 110, 99, 105, 97, 32, 108, 111, 103, 97,
+114, 195, 173, 116, 109, 105, 99, 97, 34, 10, 34, 65, 117, 116, 111, 34, 32, 61, 32, 34, 65, 117, 116, 111,
+109, 195, 161, 116, 105, 99, 111, 34, 10, 34, 77, 105, 110, 117, 116, 101, 115, 32, 58, 32, 115, 101, 99, 111,
+110, 100, 115, 34, 32, 61, 32, 34, 77, 105, 110, 117, 116, 111, 115, 32, 58, 32, 115, 101, 103, 117, 110, 100,
+111, 115, 34, 10, 34, 83, 97, 109, 112, 108, 101, 115, 34, 32, 61, 32, 34, 65, 109, 111, 115, 116, 114, 97,
+115, 34, 10, 34, 66, 97, 114, 32, 58, 32, 98, 101, 97, 116, 32, 58, 32, 116, 105, 99, 107, 34, 32, 61,
+32, 34, 67, 111, 109, 112, 97, 115, 115, 111, 32, 58, 32, 116, 101, 109, 112, 111, 32, 58, 32, 116, 105, 99,
+107, 34, 10, 34, 84, 105, 109, 101, 32, 102, 111, 114, 109, 97, 116, 34, 32, 61, 32, 34, 70, 111, 114, 109,
+97, 116, 111, 32, 100, 111, 32, 116, 101, 109, 112, 111, 34, 10, 34, 83, 110, 97, 112, 32, 116, 111, 32, 122,
+101, 114, 111, 32, 99, 114, 111, 115, 115, 105, 110, 103, 115, 34, 32, 61, 32, 34, 65, 106, 117, 115, 116, 97,
+114, 32, 97, 111, 115, 32, 99, 114, 117, 122, 97, 109, 101, 110, 116, 111, 115, 32, 100, 101, 32, 122, 101, 114,
+111, 34, 10, 34, 82, 101, 103, 105, 111, 110, 115, 34, 32, 61, 32, 34, 82, 101, 103, 105, 195, 181, 101, 115,
+34, 10, 34, 69, 100, 105, 116, 32, 105, 110, 32, 116, 104, 101, 32, 97, 117, 100, 105, 111, 32, 101, 100, 105,
+116, 111, 114, 46, 46, 46, 34, 32, 61, 32, 34, 69, 100, 105, 116, 97, 114, 32, 110, 111, 32, 101, 100, 105,
+116, 111, 114, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 46, 46, 46, 34, 10, 34, 69, 100, 105, 116, 32,
+116, 104, 101, 32, 115, 97, 109, 112, 108, 101, 32, 105, 110, 32, 116, 104, 101, 32, 97, 117, 100, 105, 111, 32,
+101, 100, 105, 116, 111, 114, 46, 46, 46, 34, 32, 61, 32, 34, 69, 100, 105, 116, 97, 114, 32, 111, 32, 115,
+97, 109, 112, 108, 101, 32, 110, 111, 32, 101, 100, 105, 116, 111, 114, 32, 100, 101, 32, 195, 161, 117, 100, 105,
+111, 46, 46, 46, 34, 10, 34, 82, 101, 99, 111, 114, 100, 32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 97,
+117, 100, 105, 111, 32, 101, 100, 105, 116, 111, 114, 46, 46, 46, 34, 32, 61, 32, 34, 71, 114, 97, 118, 97,
+114, 32, 110, 111, 32, 101, 100, 105, 116, 111, 114, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 46, 46, 46,
+34, 10, 34, 65, 117, 100, 105, 111, 32, 101, 100, 105, 116, 111, 114, 46, 46, 46, 34, 32, 61, 32, 34, 69,
+100, 105, 116, 111, 114, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 46, 46, 46, 34, 10, 34, 65, 117, 100,
+105, 111, 32, 101, 100, 105, 116, 111, 114, 32, 40, 114, 101, 99, 111, 114, 100, 32, 116, 104, 105, 115, 32, 105,
+110, 115, 101, 114, 116, 41, 46, 46, 46, 34, 32, 61, 32, 34, 69, 100, 105, 116, 111, 114, 32, 100, 101, 32,
+195, 161, 117, 100, 105, 111, 32, 40, 103, 114, 97, 118, 97, 114, 32, 101, 115, 116, 101, 32, 105, 110, 115, 101,
+114, 116, 41, 46, 46, 46, 34, 10, 34, 80, 114, 101, 115, 115, 32, 82, 101, 99, 111, 114, 100, 32, 116, 111,
+32, 99, 97, 112, 116, 117, 114, 101, 32, 123, 48, 125, 34, 32, 61, 32, 34, 65, 112, 101, 114, 116, 101, 32,
+71, 114, 97, 118, 97, 114, 32, 112, 97, 114, 97, 32, 99, 97, 112, 116, 117, 114, 97, 114, 32, 123, 48, 125,
+34, 10, 35, 32, 82, 111, 117, 110, 100, 32, 56, 57, 58, 32, 86, 83, 84, 50, 32, 104, 111, 115, 116, 105,
+110, 103, 44, 32, 112, 108, 117, 103, 105, 110, 115, 32, 116, 104, 97, 116, 32, 119, 111, 110, 39, 116, 32, 115,
+111, 117, 110, 100, 32, 97, 115, 32, 105, 110, 32, 70, 76, 32, 83, 116, 117, 100, 105, 111, 10, 34, 115, 97,
+109, 101, 32, 86, 83, 84, 50, 32, 73, 68, 34, 32, 61, 32, 34, 109, 101, 115, 109, 111, 32, 73, 68, 32,
+86, 83, 84, 50, 34, 10, 34, 116, 104, 101, 32, 112, 108, 117, 103, 105, 110, 32, 99, 111, 117, 108, 100, 32,
+110, 111, 116, 32, 115, 116, 97, 114, 116, 34, 32, 61, 32, 34, 111, 32, 112, 108, 117, 103, 105, 110, 32, 110,
+195, 163, 111, 32, 99, 111, 110, 115, 101, 103, 117, 105, 117, 32, 105, 110, 105, 99, 105, 97, 114, 34, 10, 34,
+73, 116, 115, 32, 100, 101, 102, 97, 117, 108, 116, 32, 115, 101, 116, 116, 105, 110, 103, 115, 58, 32, 116, 104,
+101, 32, 112, 114, 111, 106, 101, 99, 116, 32, 115, 97, 118, 101, 100, 32, 116, 104, 101, 109, 32, 102, 111, 114,
+32, 116, 104, 101, 32, 111, 116, 104, 101, 114, 32, 102, 111, 114, 109, 97, 116, 32, 40, 86, 83, 84, 50, 47,
+86, 83, 84, 51, 41, 34, 32, 61, 32, 34, 67, 111, 110, 102, 105, 103, 117, 114, 97, 195, 167, 195, 181, 101,
+115, 32, 112, 97, 100, 114, 195, 163, 111, 58, 32, 111, 32, 112, 114, 111, 106, 101, 116, 111, 32, 97, 115, 32,
+115, 97, 108, 118, 111, 117, 32, 112, 97, 114, 97, 32, 111, 32, 111, 117, 116, 114, 111, 32, 102, 111, 114, 109,
+97, 116, 111, 32, 40, 86, 83, 84, 50, 47, 86, 83, 84, 51, 41, 34, 10, 34, 83, 105, 108, 101, 110, 99,
+101, 58, 32, 116, 104, 101, 32, 112, 108, 117, 103, 105, 110, 32, 105, 115, 32, 105, 110, 115, 116, 97, 108, 108,
+101, 100, 32, 98, 117, 116, 32, 100, 105, 100, 32, 110, 111, 116, 32, 108, 111, 97, 100, 34, 32, 61, 32, 34,
+83, 105, 108, 195, 170, 110, 99, 105, 111, 58, 32, 111, 32, 112, 108, 117, 103, 105, 110, 32, 101, 115, 116, 195,
+161, 32, 105, 110, 115, 116, 97, 108, 97, 100, 111, 32, 109, 97, 115, 32, 110, 195, 163, 111, 32, 99, 97, 114,
+114, 101, 103, 111, 117, 34, 10, 34, 80, 108, 117, 103, 105, 110, 115, 32, 102, 111, 117, 110, 100, 32, 98, 117,
+116, 32, 112, 108, 97, 121, 105, 110, 103, 32, 116, 104, 101, 105, 114, 32, 100, 101, 102, 97, 117, 108, 116, 32,
+115, 101, 116, 116, 105, 110, 103, 115, 32, 40, 116, 104, 101, 32, 112, 114, 111, 106, 101, 99, 116, 32, 115, 97,
+118, 101, 100, 32, 116, 104, 101, 109, 32, 102, 111, 114, 32, 116, 104, 101, 32, 111, 116, 104, 101, 114, 32, 102,
+111, 114, 109, 97, 116, 44, 32, 86, 83, 84, 50, 47, 86, 83, 84, 51, 41, 58, 34, 32, 61, 32, 34, 80,
+108, 117, 103, 105, 110, 115, 32, 101, 110, 99, 111, 110, 116, 114, 97, 100, 111, 115, 32, 109, 97, 115, 32, 116,
+111, 99, 97, 110, 100, 111, 32, 99, 111, 109, 32, 97, 115, 32, 99, 111, 110, 102, 105, 103, 117, 114, 97, 195,
+167, 195, 181, 101, 115, 32, 112, 97, 100, 114, 195, 163, 111, 32, 40, 111, 32, 112, 114, 111, 106, 101, 116, 111,
+32, 97, 115, 32, 115, 97, 108, 118, 111, 117, 32, 112, 97, 114, 97, 32, 111, 32, 111, 117, 116, 114, 111, 32,
+102, 111, 114, 109, 97, 116, 111, 44, 32, 86, 83, 84, 50, 47, 86, 83, 84, 51, 41, 58, 34, 10, 34, 80,
+108, 117, 103, 105, 110, 115, 32, 105, 110, 115, 116, 97, 108, 108, 101, 100, 32, 98, 117, 116, 32, 110, 111, 116,
+32, 108, 111, 97, 100, 101, 100, 32, 40, 115, 105, 108, 101, 110, 116, 41, 58, 34, 32, 61, 32, 34, 80, 108,
+117, 103, 105, 110, 115, 32, 105, 110, 115, 116, 97, 108, 97, 100, 111, 115, 32, 109, 97, 115, 32, 110, 195, 163,
+111, 32, 99, 97, 114, 114, 101, 103, 97, 100, 111, 115, 32, 40, 101, 109, 32, 115, 105, 108, 195, 170, 110, 99,
+105, 111, 41, 58, 34, 10, 34, 123, 48, 125, 32, 112, 108, 117, 103, 105, 110, 40, 115, 41, 32, 119, 105, 108,
+108, 32, 110, 111, 116, 32, 115, 111, 117, 110, 100, 32, 97, 115, 32, 105, 110, 32, 70, 76, 32, 83, 116, 117,
+100, 105, 111, 32, 40, 110, 111, 116, 32, 105, 110, 115, 116, 97, 108, 108, 101, 100, 44, 32, 110, 111, 116, 32,
+108, 111, 97, 100, 101, 100, 44, 32, 111, 114, 32, 119, 105, 116, 104, 111, 117, 116, 32, 116, 104, 101, 105, 114,
+32, 115, 101, 116, 116, 105, 110, 103, 115, 41, 58, 32, 115, 101, 101, 32, 119, 104, 97, 116, 32, 76, 89, 78,
+88, 32, 100, 105, 100, 32, 119, 105, 116, 104, 32, 101, 97, 99, 104, 46, 34, 32, 61, 32, 34, 123, 48, 125,
+32, 112, 108, 117, 103, 105, 110, 40, 115, 41, 32, 110, 195, 163, 111, 32, 118, 195, 163, 111, 32, 115, 111, 97,
+114, 32, 99, 111, 109, 111, 32, 110, 111, 32, 70, 76, 32, 83, 116, 117, 100, 105, 111, 32, 40, 110, 195, 163,
+111, 32, 105, 110, 115, 116, 97, 108, 97, 100, 111, 115, 44, 32, 110, 195, 163, 111, 32, 99, 97, 114, 114, 101,
+103, 97, 100, 111, 115, 32, 111, 117, 32, 115, 101, 109, 32, 97, 115, 32, 99, 111, 110, 102, 105, 103, 117, 114,
+97, 195, 167, 195, 181, 101, 115, 41, 58, 32, 118, 101, 106, 97, 32, 111, 32, 113, 117, 101, 32, 111, 32, 76,
+89, 78, 88, 32, 102, 101, 122, 32, 99, 111, 109, 32, 99, 97, 100, 97, 32, 117, 109, 46, 34, 10, 35, 32,
+45, 45, 45, 32, 82, 111, 117, 110, 100, 32, 56, 52, 58, 32, 69, 120, 112, 111, 114, 116, 32, 111, 112, 116,
+105, 111, 110, 115, 44, 32, 78, 101, 119, 32, 112, 114, 111, 106, 101, 99, 116, 44, 32, 67, 108, 105, 112, 32,
+112, 114, 111, 112, 101, 114, 116, 105, 101, 115, 44, 32, 65, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 115,
+44, 32, 80, 108, 117, 103, 105, 110, 32, 112, 101, 114, 102, 111, 114, 109, 97, 110, 99, 101, 32, 109, 111, 110,
+105, 116, 111, 114, 44, 32, 84, 111, 117, 99, 104, 32, 107, 101, 121, 98, 111, 97, 114, 100, 10, 34, 83, 111,
+117, 114, 99, 101, 34, 32, 61, 32, 34, 79, 114, 105, 103, 101, 109, 34, 10, 34, 84, 105, 109, 101, 34, 32,
+61, 32, 34, 84, 101, 109, 112, 111, 34, 10, 34, 65, 108, 108, 32, 123, 48, 125, 32, 115, 101, 108, 101, 99,
+116, 101, 100, 32, 99, 108, 105, 112, 115, 34, 32, 61, 32, 34, 84, 111, 100, 111, 115, 32, 111, 115, 32, 123,
+48, 125, 32, 99, 108, 105, 112, 101, 115, 32, 115, 101, 108, 101, 99, 105, 111, 110, 97, 100, 111, 115, 34, 10,
+34, 85, 115, 101, 115, 34, 32, 61, 32, 34, 85, 115, 97, 34, 10, 34, 84, 114, 97, 99, 107, 34, 32, 61,
+32, 34, 70, 97, 105, 120, 97, 34, 10, 34, 98, 97, 114, 58, 98, 101, 97, 116, 58, 116, 105, 99, 107, 32,
+40, 49, 58, 49, 58, 48, 48, 48, 32, 105, 115, 32, 116, 104, 101, 32, 115, 116, 97, 114, 116, 32, 111, 102,
+32, 116, 104, 101, 32, 115, 111, 110, 103, 41, 34, 32, 61, 32, 34, 99, 111, 109, 112, 97, 115, 115, 111, 58,
+116, 101, 109, 112, 111, 58, 116, 105, 99, 107, 32, 40, 49, 58, 49, 58, 48, 48, 48, 32, 195, 169, 32, 111,
+32, 105, 110, 195, 173, 99, 105, 111, 32, 100, 97, 32, 109, 195, 186, 115, 105, 99, 97, 41, 34, 10, 34, 98,
+97, 114, 115, 58, 98, 101, 97, 116, 115, 58, 116, 105, 99, 107, 115, 34, 32, 61, 32, 34, 99, 111, 109, 112,
+97, 115, 115, 111, 115, 58, 116, 101, 109, 112, 111, 115, 58, 116, 105, 99, 107, 115, 34, 10, 34, 72, 111, 119,
+32, 109, 117, 99, 104, 32, 111, 102, 32, 116, 104, 101, 32, 115, 111, 117, 114, 99, 101, 39, 115, 32, 115, 116,
+97, 114, 116, 32, 105, 115, 32, 115, 107, 105, 112, 112, 101, 100, 32, 40, 98, 97, 114, 115, 58, 98, 101, 97,
+116, 115, 58, 116, 105, 99, 107, 115, 41, 34, 32, 61, 32, 34, 81, 117, 97, 110, 116, 111, 32, 100, 111, 32,
+105, 110, 195, 173, 99, 105, 111, 32, 100, 97, 32, 111, 114, 105, 103, 101, 109, 32, 195, 169, 32, 112, 117, 108,
+97, 100, 111, 32, 40, 99, 111, 109, 112, 97, 115, 115, 111, 115, 58, 116, 101, 109, 112, 111, 115, 58, 116, 105,
+99, 107, 115, 41, 34, 10, 34, 77, 117, 116, 101, 100, 34, 32, 61, 32, 34, 77, 117, 100, 111, 34, 10, 34,
+71, 97, 105, 110, 34, 32, 61, 32, 34, 71, 97, 110, 104, 111, 34, 10, 34, 84, 104, 101, 32, 97, 117, 100,
+105, 111, 32, 99, 104, 97, 110, 110, 101, 108, 39, 115, 32, 112, 105, 116, 99, 104, 58, 32, 101, 118, 101, 114,
+121, 32, 99, 108, 105, 112, 32, 111, 102, 32, 116, 104, 105, 115, 32, 102, 105, 108, 101, 32, 102, 111, 108, 108,
+111, 119, 115, 32, 105, 116, 34, 32, 61, 32, 34, 65, 32, 97, 102, 105, 110, 97, 195, 167, 195, 163, 111, 32,
+100, 111, 32, 99, 97, 110, 97, 108, 32, 100, 101, 32, 195, 161, 117, 100, 105, 111, 58, 32, 116, 111, 100, 111,
+115, 32, 111, 115, 32, 99, 108, 105, 112, 101, 115, 32, 100, 101, 115, 116, 101, 32, 97, 114, 113, 117, 105, 118,
+111, 32, 97, 32, 115, 101, 103, 117, 101, 109, 34, 10, 34, 83, 116, 114, 101, 116, 99, 104, 32, 116, 111, 34,
+32, 61, 32, 34, 69, 115, 116, 105, 99, 97, 114, 32, 112, 97, 114, 97, 34, 10, 34, 48, 58, 32, 116, 104,
+101, 32, 102, 105, 108, 101, 32, 112, 108, 97, 121, 115, 32, 97, 116, 32, 105, 116, 115, 32, 111, 119, 110, 32,
+115, 112, 101, 101, 100, 59, 32, 111, 116, 104, 101, 114, 119, 105, 115, 101, 32, 116, 104, 101, 32, 119, 104, 111,
+108, 101, 32, 102, 105, 108, 101, 32, 108, 97, 115, 116, 115, 32, 116, 104, 105, 115, 32, 109, 97, 110, 121, 32,
+98, 101, 97, 116, 115, 32, 97, 116, 32, 116, 104, 101, 32, 112, 114, 111, 106, 101, 99, 116, 32, 116, 101, 109,
+112, 111, 34, 32, 61, 32, 34, 48, 58, 32, 111, 32, 97, 114, 113, 117, 105, 118, 111, 32, 116, 111, 99, 97,
+32, 110, 97, 32, 112, 114, 195, 179, 112, 114, 105, 97, 32, 118, 101, 108, 111, 99, 105, 100, 97, 100, 101, 59,
+32, 115, 101, 110, 195, 163, 111, 32, 111, 32, 97, 114, 113, 117, 105, 118, 111, 32, 105, 110, 116, 101, 105, 114,
+111, 32, 100, 117, 114, 97, 32, 101, 115, 115, 101, 32, 110, 195, 186, 109, 101, 114, 111, 32, 100, 101, 32, 116,
+101, 109, 112, 111, 115, 32, 110, 111, 32, 66, 80, 77, 32, 100, 111, 32, 112, 114, 111, 106, 101, 116, 111, 34,
+10, 34, 75, 101, 101, 112, 32, 116, 104, 101, 32, 112, 105, 116, 99, 104, 34, 32, 61, 32, 34, 77, 97, 110,
+116, 101, 114, 32, 97, 32, 97, 102, 105, 110, 97, 195, 167, 195, 163, 111, 34, 10, 34, 68, 111, 110, 39, 116,
+32, 99, 104, 97, 110, 103, 101, 34, 32, 61, 32, 34, 78, 195, 163, 111, 32, 109, 117, 100, 97, 114, 34, 10,
+34, 77, 117, 116, 101, 32, 97, 108, 108, 34, 32, 61, 32, 34, 83, 105, 108, 101, 110, 99, 105, 97, 114, 32,
+116, 111, 100, 111, 115, 34, 10, 34, 85, 110, 109, 117, 116, 101, 32, 97, 108, 108, 34, 32, 61, 32, 34, 84,
+105, 114, 97, 114, 32, 111, 32, 109, 117, 100, 111, 32, 100, 101, 32, 116, 111, 100, 111, 115, 34, 10, 34, 70,
+108, 105, 112, 32, 115, 116, 97, 116, 101, 34, 32, 61, 32, 34, 73, 110, 118, 101, 114, 116, 101, 114, 32, 111,
+32, 101, 115, 116, 97, 100, 111, 34, 10, 34, 83, 101, 116, 32, 116, 111, 34, 32, 61, 32, 34, 68, 101, 102,
+105, 110, 105, 114, 32, 101, 109, 34, 10, 34, 67, 104, 97, 110, 103, 101, 32, 98, 121, 34, 32, 61, 32, 34,
+77, 117, 100, 97, 114, 32, 101, 109, 34, 10, 34, 66, 97, 99, 107, 32, 116, 111, 32, 104, 111, 119, 32, 116,
+104, 101, 32, 99, 108, 105, 112, 32, 119, 97, 115, 32, 119, 104, 101, 110, 32, 116, 104, 105, 115, 32, 119, 105,
+110, 100, 111, 119, 32, 111, 112, 101, 110, 101, 100, 34, 32, 61, 32, 34, 86, 111, 108, 116, 97, 32, 111, 32,
+99, 108, 105, 112, 101, 32, 97, 32, 99, 111, 109, 111, 32, 101, 115, 116, 97, 118, 97, 32, 113, 117, 97, 110,
+100, 111, 32, 101, 115, 116, 97, 32, 106, 97, 110, 101, 108, 97, 32, 97, 98, 114, 105, 117, 34, 10, 34, 67,
+108, 105, 112, 32, 112, 114, 111, 112, 101, 114, 116, 105, 101, 115, 34, 32, 61, 32, 34, 80, 114, 111, 112, 114,
+105, 101, 100, 97, 100, 101, 115, 32, 100, 111, 32, 99, 108, 105, 112, 101, 34, 10, 34, 77, 101, 114, 103, 101,
+32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 99, 117, 114, 114, 101, 110, 116, 32, 97, 114, 114, 97, 110, 103,
+101, 109, 101, 110, 116, 34, 32, 61, 32, 34, 77, 101, 115, 99, 108, 97, 114, 32, 110, 111, 32, 97, 114, 114,
+97, 110, 106, 111, 32, 97, 116, 117, 97, 108, 34, 10, 34, 77, 97, 107, 101, 32, 105, 116, 32, 116, 104, 101,
+32, 99, 117, 114, 114, 101, 110, 116, 32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 32, 40, 116, 104,
+101, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 115, 104, 111, 119, 115, 32, 105, 116, 41, 34, 32, 61, 32,
+34, 84, 111, 114, 110, 97, 45, 111, 32, 111, 32, 97, 114, 114, 97, 110, 106, 111, 32, 97, 116, 117, 97, 108,
+32, 40, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 111, 32, 109, 111, 115, 116, 114, 97, 41, 34, 10,
+34, 65, 32, 110, 101, 119, 32, 101, 109, 112, 116, 121, 32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116,
+34, 32, 61, 32, 34, 85, 109, 32, 110, 111, 118, 111, 32, 97, 114, 114, 97, 110, 106, 111, 32, 118, 97, 122,
+105, 111, 34, 10, 34, 65, 32, 99, 111, 112, 121, 32, 111, 102, 32, 116, 104, 101, 32, 115, 101, 108, 101, 99,
+116, 101, 100, 32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 44, 32, 114, 105, 103, 104, 116, 32, 97,
+102, 116, 101, 114, 32, 105, 116, 34, 32, 61, 32, 34, 85, 109, 97, 32, 99, 195, 179, 112, 105, 97, 32, 100,
+111, 32, 97, 114, 114, 97, 110, 106, 111, 32, 115, 101, 108, 101, 99, 105, 111, 110, 97, 100, 111, 44, 32, 108,
+111, 103, 111, 32, 100, 101, 112, 111, 105, 115, 32, 100, 101, 108, 101, 34, 10, 34, 83, 111, 117, 114, 99, 101,
+32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 34, 32, 61, 32, 34, 65, 114, 114, 97, 110, 106, 111,
+32, 100, 101, 32, 111, 114, 105, 103, 101, 109, 34, 10, 34, 77, 111, 100, 101, 34, 32, 61, 32, 34, 77, 111,
+100, 111, 34, 10, 34, 73, 110, 115, 101, 114, 116, 32, 40, 109, 111, 118, 101, 115, 32, 119, 104, 97, 116, 32,
+102, 111, 108, 108, 111, 119, 115, 41, 34, 32, 61, 32, 34, 73, 110, 115, 101, 114, 105, 114, 32, 40, 101, 109,
+112, 117, 114, 114, 97, 32, 111, 32, 113, 117, 101, 32, 118, 101, 109, 32, 100, 101, 112, 111, 105, 115, 41, 34,
+10, 34, 77, 101, 114, 103, 101, 32, 40, 111, 118, 101, 114, 32, 119, 104, 97, 116, 32, 105, 115, 32, 116, 104,
+101, 114, 101, 41, 34, 32, 61, 32, 34, 77, 101, 115, 99, 108, 97, 114, 32, 40, 112, 111, 114, 32, 99, 105,
+109, 97, 32, 100, 111, 32, 113, 117, 101, 32, 106, 195, 161, 32, 101, 120, 105, 115, 116, 101, 41, 34, 10, 34,
+82, 101, 112, 108, 97, 99, 101, 32, 40, 99, 108, 101, 97, 114, 115, 32, 116, 104, 97, 116, 32, 108, 101, 110,
+103, 116, 104, 32, 102, 105, 114, 115, 116, 41, 34, 32, 61, 32, 34, 83, 117, 98, 115, 116, 105, 116, 117, 105,
+114, 32, 40, 108, 105, 109, 112, 97, 32, 101, 115, 115, 101, 32, 116, 114, 101, 99, 104, 111, 32, 97, 110, 116,
+101, 115, 41, 34, 10, 34, 80, 111, 115, 105, 116, 105, 111, 110, 34, 32, 61, 32, 34, 80, 111, 115, 105, 195,
+167, 195, 163, 111, 34, 10, 34, 80, 108, 97, 121, 98, 97, 99, 107, 32, 112, 111, 115, 105, 116, 105, 111, 110,
+34, 32, 61, 32, 34, 80, 111, 115, 105, 195, 167, 195, 163, 111, 32, 100, 101, 32, 114, 101, 112, 114, 111, 100,
+117, 195, 167, 195, 163, 111, 34, 10, 34, 123, 48, 125, 32, 99, 108, 105, 112, 115, 44, 32, 123, 49, 125, 32,
+98, 97, 114, 115, 34, 32, 61, 32, 34, 123, 48, 125, 32, 99, 108, 105, 112, 101, 115, 44, 32, 123, 49, 125,
+32, 99, 111, 109, 112, 97, 115, 115, 111, 115, 34, 10, 34, 77, 101, 114, 103, 101, 32, 105, 110, 116, 111, 32,
+92, 34, 123, 48, 125, 92, 34, 34, 32, 61, 32, 34, 77, 101, 115, 99, 108, 97, 114, 32, 101, 109, 32, 92,
+34, 123, 48, 125, 92, 34, 34, 10, 34, 83, 104, 111, 119, 34, 32, 61, 32, 34, 77, 111, 115, 116, 114, 97,
+114, 34, 10, 34, 68, 117, 112, 108, 105, 99, 97, 116, 101, 34, 32, 61, 32, 34, 68, 117, 112, 108, 105, 99,
+97, 114, 34, 10, 34, 77, 101, 114, 103, 101, 34, 32, 61, 32, 34, 77, 101, 115, 99, 108, 97, 114, 34, 10,
+34, 87, 104, 97, 116, 32, 116, 111, 32, 114, 101, 110, 100, 101, 114, 34, 32, 61, 32, 34, 79, 32, 113, 117,
+101, 32, 114, 101, 110, 100, 101, 114, 105, 122, 97, 114, 34, 10, 34, 79, 117, 116, 112, 117, 116, 32, 102, 111,
+114, 109, 97, 116, 34, 32, 61, 32, 34, 70, 111, 114, 109, 97, 116, 111, 32, 100, 101, 32, 115, 97, 195, 173,
+100, 97, 34, 10, 34, 83, 111, 110, 103, 32, 40, 80, 108, 97, 121, 108, 105, 115, 116, 41, 34, 32, 61, 32,
+34, 83, 111, 110, 103, 32, 40, 80, 108, 97, 121, 108, 105, 115, 116, 41, 34, 10, 34, 80, 108, 97, 121, 108,
+105, 115, 116, 32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 34, 32, 61, 32, 34, 83, 101, 108, 101, 195, 167,
+195, 163, 111, 32, 100, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 34, 10, 34, 87, 104, 97, 116, 32, 105,
+115, 32, 114, 101, 110, 100, 101, 114, 101, 100, 58, 32, 116, 104, 101, 32, 97, 114, 114, 97, 110, 103, 101, 109,
+101, 110, 116, 44, 32, 116, 104, 101, 32, 99, 117, 114, 114, 101, 110, 116, 32, 112, 97, 116, 116, 101, 114, 110,
+44, 32, 111, 114, 32, 116, 104, 101, 32, 80, 108, 97, 121, 108, 105, 115, 116, 39, 115, 32, 116, 105, 109, 101,
+32, 115, 101, 108, 101, 99, 116, 105, 111, 110, 34, 32, 61, 32, 34, 79, 32, 113, 117, 101, 32, 195, 169, 32,
+114, 101, 110, 100, 101, 114, 105, 122, 97, 100, 111, 58, 32, 111, 32, 97, 114, 114, 97, 110, 106, 111, 44, 32,
+111, 32, 112, 97, 116, 116, 101, 114, 110, 32, 97, 116, 117, 97, 108, 32, 111, 117, 32, 97, 32, 115, 101, 108,
+101, 195, 167, 195, 163, 111, 32, 100, 101, 32, 116, 101, 109, 112, 111, 32, 100, 97, 32, 80, 108, 97, 121, 108,
+105, 115, 116, 34, 10, 34, 79, 110, 99, 101, 34, 32, 61, 32, 34, 85, 109, 97, 32, 118, 101, 122, 34, 10,
+34, 123, 48, 125, 32, 116, 105, 109, 101, 115, 34, 32, 61, 32, 34, 123, 48, 125, 32, 118, 101, 122, 101, 115,
+34, 10, 34, 72, 111, 119, 32, 109, 97, 110, 121, 32, 116, 105, 109, 101, 115, 32, 116, 104, 101, 32, 114, 97,
+110, 103, 101, 32, 112, 108, 97, 121, 115, 32, 105, 110, 32, 116, 104, 101, 32, 102, 105, 108, 101, 34, 32, 61,
+32, 34, 81, 117, 97, 110, 116, 97, 115, 32, 118, 101, 122, 101, 115, 32, 111, 32, 116, 114, 101, 99, 104, 111,
+32, 116, 111, 99, 97, 32, 110, 111, 32, 97, 114, 113, 117, 105, 118, 111, 34, 10, 34, 67, 117, 116, 32, 114,
+101, 109, 97, 105, 110, 100, 101, 114, 34, 32, 61, 32, 34, 67, 111, 114, 116, 97, 114, 32, 111, 32, 114, 101,
+115, 116, 97, 110, 116, 101, 34, 10, 34, 76, 101, 97, 118, 101, 32, 114, 101, 109, 97, 105, 110, 100, 101, 114,
+34, 32, 61, 32, 34, 68, 101, 105, 120, 97, 114, 32, 111, 32, 114, 101, 115, 116, 97, 110, 116, 101, 34, 10,
+34, 87, 114, 97, 112, 32, 114, 101, 109, 97, 105, 110, 100, 101, 114, 34, 32, 61, 32, 34, 69, 110, 114, 111,
+108, 97, 114, 32, 111, 32, 114, 101, 115, 116, 97, 110, 116, 101, 34, 10, 34, 67, 117, 116, 58, 32, 115, 116,
+111, 112, 32, 101, 120, 97, 99, 116, 108, 121, 32, 97, 116, 32, 116, 104, 101, 32, 101, 110, 100, 32, 40, 108,
+111, 111, 112, 115, 41, 46, 32, 76, 101, 97, 118, 101, 58, 32, 108, 101, 116, 32, 114, 101, 118, 101, 114, 98,
+115, 32, 97, 110, 100, 32, 114, 101, 108, 101, 97, 115, 101, 115, 32, 114, 105, 110, 103, 32, 111, 117, 116, 32,
+40, 115, 111, 110, 103, 115, 41, 46, 32, 87, 114, 97, 112, 58, 32, 109, 105, 120, 32, 116, 104, 101, 32, 116,
+97, 105, 108, 32, 105, 110, 116, 111, 32, 116, 104, 101, 32, 115, 116, 97, 114, 116, 32, 40, 115, 101, 97, 109,
+108, 101, 115, 115, 32, 108, 111, 111, 112, 115, 41, 34, 32, 61, 32, 34, 67, 111, 114, 116, 97, 114, 58, 32,
+112, 97, 114, 97, 32, 101, 120, 97, 116, 97, 109, 101, 110, 116, 101, 32, 110, 111, 32, 102, 105, 109, 32, 40,
+108, 111, 111, 112, 115, 41, 46, 32, 68, 101, 105, 120, 97, 114, 58, 32, 114, 101, 118, 101, 114, 98, 115, 32,
+101, 32, 114, 101, 108, 101, 97, 115, 101, 115, 32, 115, 111, 97, 109, 32, 97, 116, 195, 169, 32, 111, 32, 102,
+105, 109, 32, 40, 109, 195, 186, 115, 105, 99, 97, 115, 41, 46, 32, 69, 110, 114, 111, 108, 97, 114, 58, 32,
+109, 105, 115, 116, 117, 114, 97, 32, 97, 32, 99, 97, 117, 100, 97, 32, 110, 111, 32, 105, 110, 195, 173, 99,
+105, 111, 32, 40, 108, 111, 111, 112, 115, 32, 115, 101, 109, 32, 101, 109, 101, 110, 100, 97, 41, 34, 10, 34,
+76, 111, 110, 103, 101, 115, 116, 32, 116, 97, 105, 108, 34, 32, 61, 32, 34, 67, 97, 117, 100, 97, 32, 109,
+195, 161, 120, 105, 109, 97, 34, 10, 34, 84, 104, 101, 32, 116, 97, 105, 108, 32, 115, 116, 111, 112, 115, 32,
+101, 97, 114, 108, 105, 101, 114, 32, 119, 104, 101, 110, 32, 116, 104, 101, 32, 115, 111, 117, 110, 100, 32, 104,
+97, 115, 32, 102, 97, 100, 101, 100, 32, 111, 117, 116, 34, 32, 61, 32, 34, 65, 32, 99, 97, 117, 100, 97,
+32, 112, 97, 114, 97, 32, 97, 110, 116, 101, 115, 32, 113, 117, 97, 110, 100, 111, 32, 111, 32, 115, 111, 109,
+32, 106, 195, 161, 32, 115, 117, 109, 105, 117, 34, 10, 34, 79, 110, 101, 32, 102, 105, 108, 101, 32, 40, 116,
+104, 101, 32, 109, 105, 120, 41, 34, 32, 61, 32, 34, 85, 109, 32, 97, 114, 113, 117, 105, 118, 111, 32, 40,
+97, 32, 109, 105, 120, 97, 103, 101, 109, 41, 34, 10, 34, 79, 110, 101, 32, 112, 101, 114, 32, 109, 105, 120,
+101, 114, 32, 105, 110, 115, 101, 114, 116, 32, 40, 115, 116, 101, 109, 115, 41, 34, 32, 61, 32, 34, 85, 109,
+32, 112, 111, 114, 32, 105, 110, 115, 101, 114, 116, 32, 100, 111, 32, 77, 105, 120, 101, 114, 32, 40, 115, 116,
+101, 109, 115, 41, 34, 10, 34, 79, 110, 101, 32, 112, 101, 114, 32, 99, 104, 97, 110, 110, 101, 108, 32, 40,
+115, 116, 101, 109, 115, 41, 34, 32, 61, 32, 34, 85, 109, 32, 112, 111, 114, 32, 99, 97, 110, 97, 108, 32,
+40, 115, 116, 101, 109, 115, 41, 34, 10, 34, 83, 116, 101, 109, 115, 58, 32, 97, 32, 102, 105, 108, 101, 32,
+102, 111, 114, 32, 101, 97, 99, 104, 32, 109, 105, 120, 101, 114, 32, 105, 110, 115, 101, 114, 116, 32, 116, 104,
+97, 116, 32, 103, 101, 116, 115, 32, 115, 111, 117, 110, 100, 44, 32, 111, 114, 32, 102, 111, 114, 32, 101, 97,
+99, 104, 32, 99, 104, 97, 110, 110, 101, 108, 32, 116, 104, 97, 116, 32, 112, 108, 97, 121, 115, 34, 32, 61,
+32, 34, 83, 116, 101, 109, 115, 58, 32, 117, 109, 32, 97, 114, 113, 117, 105, 118, 111, 32, 112, 97, 114, 97,
+32, 99, 97, 100, 97, 32, 105, 110, 115, 101, 114, 116, 32, 100, 111, 32, 77, 105, 120, 101, 114, 32, 113, 117,
+101, 32, 114, 101, 99, 101, 98, 101, 32, 115, 111, 109, 44, 32, 111, 117, 32, 112, 97, 114, 97, 32, 99, 97,
+100, 97, 32, 99, 97, 110, 97, 108, 32, 113, 117, 101, 32, 116, 111, 99, 97, 34, 10, 34, 65, 108, 115, 111,
+32, 116, 104, 101, 32, 102, 117, 108, 108, 32, 109, 105, 120, 34, 32, 61, 32, 34, 84, 97, 109, 98, 195, 169,
+109, 32, 97, 32, 109, 105, 120, 97, 103, 101, 109, 32, 99, 111, 109, 112, 108, 101, 116, 97, 34, 10, 34, 66,
+105, 116, 32, 100, 101, 112, 116, 104, 34, 32, 61, 32, 34, 82, 101, 115, 111, 108, 117, 195, 167, 195, 163, 111,
+34, 10, 34, 49, 54, 32, 98, 105, 116, 115, 32, 40, 105, 110, 116, 101, 103, 101, 114, 41, 34, 32, 61, 32,
+34, 49, 54, 32, 98, 105, 116, 115, 32, 40, 105, 110, 116, 101, 105, 114, 111, 41, 34, 10, 34, 50, 52, 32,
+98, 105, 116, 115, 32, 40, 105, 110, 116, 101, 103, 101, 114, 41, 34, 32, 61, 32, 34, 50, 52, 32, 98, 105,
+116, 115, 32, 40, 105, 110, 116, 101, 105, 114, 111, 41, 34, 10, 34, 51, 50, 32, 98, 105, 116, 115, 32, 40,
+102, 108, 111, 97, 116, 41, 34, 32, 61, 32, 34, 51, 50, 32, 98, 105, 116, 115, 32, 40, 102, 108, 111, 97,
+116, 41, 34, 10, 34, 66, 105, 116, 114, 97, 116, 101, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 100, 101,
+32, 98, 105, 116, 115, 34, 10, 34, 67, 111, 110, 115, 116, 97, 110, 116, 32, 98, 105, 116, 114, 97, 116, 101,
+32, 40, 104, 105, 103, 104, 101, 114, 58, 32, 98, 101, 116, 116, 101, 114, 32, 115, 111, 117, 110, 100, 44, 32,
+98, 105, 103, 103, 101, 114, 32, 102, 105, 108, 101, 41, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 100, 101,
+32, 98, 105, 116, 115, 32, 99, 111, 110, 115, 116, 97, 110, 116, 101, 32, 40, 109, 97, 105, 111, 114, 58, 32,
+115, 111, 109, 32, 109, 101, 108, 104, 111, 114, 44, 32, 97, 114, 113, 117, 105, 118, 111, 32, 109, 97, 105, 111,
+114, 41, 34, 10, 34, 67, 111, 109, 112, 114, 101, 115, 115, 105, 111, 110, 34, 32, 61, 32, 34, 67, 111, 109,
+112, 114, 101, 115, 115, 195, 163, 111, 34, 10, 34, 48, 32, 40, 102, 97, 115, 116, 101, 115, 116, 41, 34, 32,
+61, 32, 34, 48, 32, 40, 109, 97, 105, 115, 32, 114, 195, 161, 112, 105, 100, 97, 41, 34, 10, 34, 53, 32,
+40, 100, 101, 102, 97, 117, 108, 116, 41, 34, 32, 61, 32, 34, 53, 32, 40, 112, 97, 100, 114, 195, 163, 111,
+41, 34, 10, 34, 56, 32, 40, 115, 109, 97, 108, 108, 101, 115, 116, 41, 34, 32, 61, 32, 34, 56, 32, 40,
+109, 101, 110, 111, 114, 32, 97, 114, 113, 117, 105, 118, 111, 41, 34, 10, 34, 70, 76, 65, 67, 32, 105, 115,
+32, 108, 111, 115, 115, 108, 101, 115, 115, 32, 97, 116, 32, 101, 118, 101, 114, 121, 32, 108, 101, 118, 101, 108,
+59, 32, 104, 105, 103, 104, 101, 114, 32, 108, 101, 118, 101, 108, 115, 32, 109, 97, 107, 101, 32, 115, 109, 97,
+108, 108, 101, 114, 32, 102, 105, 108, 101, 115, 32, 97, 110, 100, 32, 116, 97, 107, 101, 32, 108, 111, 110, 103,
+101, 114, 34, 32, 61, 32, 34, 79, 32, 70, 76, 65, 67, 32, 110, 195, 163, 111, 32, 112, 101, 114, 100, 101,
+32, 113, 117, 97, 108, 105, 100, 97, 100, 101, 32, 101, 109, 32, 110, 101, 110, 104, 117, 109, 32, 110, 195, 173,
+118, 101, 108, 59, 32, 110, 195, 173, 118, 101, 105, 115, 32, 109, 97, 105, 111, 114, 101, 115, 32, 102, 97, 122,
+101, 109, 32, 97, 114, 113, 117, 105, 118, 111, 115, 32, 109, 101, 110, 111, 114, 101, 115, 32, 101, 32, 100, 101,
+109, 111, 114, 97, 109, 32, 109, 97, 105, 115, 34, 10, 34, 77, 111, 110, 111, 32, 40, 98, 111, 116, 104, 32,
+115, 105, 100, 101, 115, 32, 109, 105, 120, 101, 100, 41, 34, 32, 61, 32, 34, 77, 111, 110, 111, 32, 40, 111,
+115, 32, 100, 111, 105, 115, 32, 108, 97, 100, 111, 115, 32, 109, 105, 115, 116, 117, 114, 97, 100, 111, 115, 41,
+34, 10, 34, 77, 111, 110, 111, 32, 40, 108, 101, 102, 116, 32, 111, 110, 108, 121, 41, 34, 32, 61, 32, 34,
+77, 111, 110, 111, 32, 40, 115, 195, 179, 32, 111, 32, 101, 115, 113, 117, 101, 114, 100, 111, 41, 34, 10, 34,
+77, 111, 110, 111, 32, 40, 114, 105, 103, 104, 116, 32, 111, 110, 108, 121, 41, 34, 32, 61, 32, 34, 77, 111,
+110, 111, 32, 40, 115, 195, 179, 32, 111, 32, 100, 105, 114, 101, 105, 116, 111, 41, 34, 10, 34, 68, 105, 116,
+104, 101, 114, 34, 32, 61, 32, 34, 68, 105, 116, 104, 101, 114, 34, 10, 34, 84, 80, 68, 70, 34, 32, 61,
+32, 34, 84, 80, 68, 70, 34, 10, 34, 84, 80, 68, 70, 32, 43, 32, 110, 111, 105, 115, 101, 32, 115, 104,
+97, 112, 105, 110, 103, 34, 32, 61, 32, 34, 84, 80, 68, 70, 32, 43, 32, 110, 111, 105, 115, 101, 32, 115,
+104, 97, 112, 105, 110, 103, 34, 10, 34, 72, 105, 100, 101, 115, 32, 116, 104, 101, 32, 114, 111, 117, 110, 100,
+105, 110, 103, 32, 110, 111, 105, 115, 101, 32, 111, 102, 32, 49, 54, 32, 97, 110, 100, 32, 50, 52, 32, 98,
+105, 116, 32, 102, 105, 108, 101, 115, 32, 40, 110, 111, 105, 115, 101, 32, 115, 104, 97, 112, 105, 110, 103, 32,
+109, 111, 118, 101, 115, 32, 105, 116, 32, 119, 104, 101, 114, 101, 32, 116, 104, 101, 32, 101, 97, 114, 32, 105,
+115, 32, 108, 101, 97, 115, 116, 32, 115, 101, 110, 115, 105, 116, 105, 118, 101, 41, 34, 32, 61, 32, 34, 68,
+105, 115, 102, 97, 114, 195, 167, 97, 32, 111, 32, 114, 117, 195, 173, 100, 111, 32, 100, 101, 32, 97, 114, 114,
+101, 100, 111, 110, 100, 97, 109, 101, 110, 116, 111, 32, 100, 101, 32, 97, 114, 113, 117, 105, 118, 111, 115, 32,
+100, 101, 32, 49, 54, 32, 101, 32, 50, 52, 32, 98, 105, 116, 115, 32, 40, 111, 32, 110, 111, 105, 115, 101,
+32, 115, 104, 97, 112, 105, 110, 103, 32, 111, 32, 108, 101, 118, 97, 32, 112, 97, 114, 97, 32, 111, 110, 100,
+101, 32, 111, 32, 111, 117, 118, 105, 100, 111, 32, 195, 169, 32, 109, 101, 110, 111, 115, 32, 115, 101, 110, 115,
+195, 173, 118, 101, 108, 41, 34, 10, 34, 78, 111, 114, 109, 97, 108, 105, 122, 101, 32, 40, 112, 101, 97, 107,
+32, 116, 111, 32, 48, 32, 100, 66, 41, 34, 32, 61, 32, 34, 78, 111, 114, 109, 97, 108, 105, 122, 97, 114,
+32, 40, 112, 105, 99, 111, 32, 101, 109, 32, 48, 32, 100, 66, 41, 34, 10, 34, 77, 97, 115, 116, 101, 114,
+32, 101, 102, 102, 101, 99, 116, 115, 34, 32, 61, 32, 34, 69, 102, 101, 105, 116, 111, 115, 32, 100, 111, 32,
+77, 97, 115, 116, 101, 114, 34, 10, 34, 84, 114, 105, 109, 32, 116, 104, 101, 32, 100, 101, 108, 97, 121, 32,
+99, 111, 109, 112, 101, 110, 115, 97, 116, 105, 111, 110, 39, 115, 32, 115, 105, 108, 101, 110, 99, 101, 34, 32,
+61, 32, 34, 67, 111, 114, 116, 97, 114, 32, 111, 32, 115, 105, 108, 195, 170, 110, 99, 105, 111, 32, 100, 97,
+32, 99, 111, 109, 112, 101, 110, 115, 97, 195, 167, 195, 163, 111, 32, 100, 101, 32, 97, 116, 114, 97, 115, 111,
+34, 10, 34, 82, 97, 105, 115, 101, 115, 32, 111, 114, 32, 108, 111, 119, 101, 114, 115, 32, 116, 104, 101, 32,
+119, 104, 111, 108, 101, 32, 102, 105, 108, 101, 32, 115, 111, 32, 105, 116, 115, 32, 108, 111, 117, 100, 101, 115,
+116, 32, 112, 101, 97, 107, 32, 114, 101, 97, 99, 104, 101, 115, 32, 102, 117, 108, 108, 32, 115, 99, 97, 108,
+101, 34, 32, 61, 32, 34, 83, 111, 98, 101, 32, 111, 117, 32, 100, 101, 115, 99, 101, 32, 111, 32, 97, 114,
+113, 117, 105, 118, 111, 32, 105, 110, 116, 101, 105, 114, 111, 32, 112, 97, 114, 97, 32, 111, 32, 112, 105, 99,
+111, 32, 109, 97, 105, 115, 32, 97, 108, 116, 111, 32, 99, 104, 101, 103, 97, 114, 32, 97, 111, 32, 109, 195,
+161, 120, 105, 109, 111, 34, 10, 34, 79, 102, 102, 58, 32, 116, 104, 101, 32, 77, 97, 115, 116, 101, 114, 32,
+105, 110, 115, 101, 114, 116, 39, 115, 32, 101, 102, 102, 101, 99, 116, 115, 32, 97, 114, 101, 32, 98, 121, 112,
+97, 115, 115, 101, 100, 32, 102, 111, 114, 32, 116, 104, 101, 32, 101, 120, 112, 111, 114, 116, 34, 32, 61, 32,
+34, 68, 101, 115, 108, 105, 103, 97, 100, 111, 58, 32, 111, 115, 32, 101, 102, 101, 105, 116, 111, 115, 32, 100,
+111, 32, 105, 110, 115, 101, 114, 116, 32, 77, 97, 115, 116, 101, 114, 32, 102, 105, 99, 97, 109, 32, 100, 101,
+32, 102, 111, 114, 97, 32, 100, 97, 32, 101, 120, 112, 111, 114, 116, 97, 195, 167, 195, 163, 111, 34, 10, 34,
+82, 101, 109, 111, 118, 101, 115, 32, 116, 104, 101, 32, 115, 105, 108, 101, 110, 99, 101, 32, 112, 108, 117, 103,
+105, 110, 32, 108, 97, 116, 101, 110, 99, 121, 32, 99, 111, 109, 112, 101, 110, 115, 97, 116, 105, 111, 110, 32,
+97, 100, 100, 115, 32, 97, 116, 32, 116, 104, 101, 32, 115, 116, 97, 114, 116, 34, 32, 61, 32, 34, 82, 101,
+109, 111, 118, 101, 32, 111, 32, 115, 105, 108, 195, 170, 110, 99, 105, 111, 32, 113, 117, 101, 32, 97, 32, 99,
+111, 109, 112, 101, 110, 115, 97, 195, 167, 195, 163, 111, 32, 100, 101, 32, 108, 97, 116, 195, 170, 110, 99, 105,
+97, 32, 100, 111, 115, 32, 112, 108, 117, 103, 105, 110, 115, 32, 99, 111, 108, 111, 99, 97, 32, 110, 111, 32,
+105, 110, 195, 173, 99, 105, 111, 34, 10, 34, 84, 111, 116, 97, 108, 32, 116, 105, 109, 101, 58, 32, 123, 48,
+125, 34, 32, 61, 32, 34, 68, 117, 114, 97, 195, 167, 195, 163, 111, 32, 116, 111, 116, 97, 108, 58, 32, 123,
+48, 125, 34, 10, 34, 40, 43, 32, 116, 97, 105, 108, 32, 117, 112, 32, 116, 111, 32, 123, 48, 125, 32, 115,
+41, 34, 32, 61, 32, 34, 40, 43, 32, 99, 97, 117, 100, 97, 32, 100, 101, 32, 97, 116, 195, 169, 32, 123,
+48, 125, 32, 115, 41, 34, 10, 34, 77, 80, 51, 32, 97, 116, 32, 123, 48, 125, 32, 72, 122, 34, 32, 61,
+32, 34, 77, 80, 51, 32, 101, 109, 32, 123, 48, 125, 32, 72, 122, 34, 10, 34, 123, 48, 125, 32, 102, 105,
+108, 101, 40, 115, 41, 34, 32, 61, 32, 34, 123, 48, 125, 32, 97, 114, 113, 117, 105, 118, 111, 40, 115, 41,
+34, 10, 34, 84, 104, 101, 32, 77, 97, 115, 116, 101, 114, 32, 105, 110, 115, 101, 114, 116, 32, 105, 115, 32,
+109, 117, 116, 101, 100, 58, 32, 116, 104, 101, 32, 102, 105, 108, 101, 32, 119, 105, 108, 108, 32, 98, 101, 32,
+115, 105, 108, 101, 110, 116, 34, 32, 61, 32, 34, 79, 32, 105, 110, 115, 101, 114, 116, 32, 77, 97, 115, 116,
+101, 114, 32, 101, 115, 116, 195, 161, 32, 109, 117, 100, 111, 58, 32, 111, 32, 97, 114, 113, 117, 105, 118, 111,
+32, 118, 97, 105, 32, 115, 97, 105, 114, 32, 101, 109, 32, 115, 105, 108, 195, 170, 110, 99, 105, 111, 34, 10,
+34, 84, 104, 101, 114, 101, 32, 105, 115, 32, 110, 111, 32, 80, 108, 97, 121, 108, 105, 115, 116, 32, 115, 101,
+108, 101, 99, 116, 105, 111, 110, 58, 32, 116, 104, 101, 32, 119, 104, 111, 108, 101, 32, 115, 111, 110, 103, 32,
+105, 115, 32, 114, 101, 110, 100, 101, 114, 101, 100, 34, 32, 61, 32, 34, 78, 195, 163, 111, 32, 104, 195, 161,
+32, 115, 101, 108, 101, 195, 167, 195, 163, 111, 32, 110, 97, 32, 80, 108, 97, 121, 108, 105, 115, 116, 58, 32,
+97, 32, 109, 195, 186, 115, 105, 99, 97, 32, 105, 110, 116, 101, 105, 114, 97, 32, 195, 169, 32, 114, 101, 110,
+100, 101, 114, 105, 122, 97, 100, 97, 34, 10, 34, 83, 97, 118, 101, 32, 97, 115, 32, 116, 101, 109, 112, 108,
+97, 116, 101, 34, 32, 61, 32, 34, 83, 97, 108, 118, 97, 114, 32, 99, 111, 109, 111, 32, 109, 111, 100, 101,
+108, 111, 34, 10, 34, 84, 104, 101, 32, 116, 101, 109, 112, 108, 97, 116, 101, 32, 97, 112, 112, 101, 97, 114,
+115, 32, 105, 110, 32, 70, 105, 108, 101, 32, 226, 128, 186, 32, 78, 101, 119, 32, 112, 114, 111, 106, 101, 99,
+116, 46, 46, 46, 32, 40, 115, 97, 118, 101, 100, 32, 105, 110, 32, 123, 48, 125, 41, 34, 32, 61, 32, 34,
+79, 32, 109, 111, 100, 101, 108, 111, 32, 97, 112, 97, 114, 101, 99, 101, 32, 101, 109, 32, 65, 114, 113, 117,
+105, 118, 111, 32, 226, 128, 186, 32, 78, 111, 118, 111, 32, 112, 114, 111, 106, 101, 116, 111, 46, 46, 46, 32,
+40, 115, 97, 108, 118, 111, 32, 101, 109, 32, 123, 48, 125, 41, 34, 10, 34, 77, 121, 32, 116, 101, 109, 112,
+108, 97, 116, 101, 34, 32, 61, 32, 34, 77, 101, 117, 32, 109, 111, 100, 101, 108, 111, 34, 10, 34, 78, 101,
+119, 32, 112, 114, 111, 106, 101, 99, 116, 46, 46, 46, 34, 32, 61, 32, 34, 78, 111, 118, 111, 32, 112, 114,
+111, 106, 101, 116, 111, 46, 46, 46, 34, 10, 34, 83, 97, 118, 101, 32, 97, 115, 32, 116, 101, 109, 112, 108,
+97, 116, 101, 46, 46, 46, 34, 32, 61, 32, 34, 83, 97, 108, 118, 97, 114, 32, 99, 111, 109, 111, 32, 109,
+111, 100, 101, 108, 111, 46, 46, 46, 34, 10, 34, 84, 111, 117, 99, 104, 32, 107, 101, 121, 98, 111, 97, 114,
+100, 34, 32, 61, 32, 34, 84, 101, 99, 108, 97, 100, 111, 32, 110, 97, 32, 116, 101, 108, 97, 34, 10, 34,
 80, 108, 117, 103, 105, 110, 32, 112, 101, 114, 102, 111, 114, 109, 97, 110, 99, 101, 32, 109, 111, 110, 105, 116,
-111, 114, 34, 32, 61, 32, 34, 77, 111, 110, 105, 116, 111, 114, 32, 100, 101, 32, 100, 101, 115, 101, 109, 112,
-101, 110, 104, 111, 32, 100, 111, 115, 32, 112, 108, 117, 103, 105, 110, 115, 34, 10, 34, 79, 110, 101, 32, 111,
-99, 116, 97, 118, 101, 32, 100, 111, 119, 110, 34, 32, 61, 32, 34, 85, 109, 97, 32, 111, 105, 116, 97, 118,
-97, 32, 97, 98, 97, 105, 120, 111, 34, 10, 34, 79, 110, 101, 32, 111, 99, 116, 97, 118, 101, 32, 117, 112,
-34, 32, 61, 32, 34, 85, 109, 97, 32, 111, 105, 116, 97, 118, 97, 32, 97, 99, 105, 109, 97, 34, 10, 34,
-83, 109, 97, 108, 108, 32, 107, 101, 121, 115, 34, 32, 61, 32, 34, 84, 101, 99, 108, 97, 115, 32, 112, 101,
-113, 117, 101, 110, 97, 115, 34, 10, 34, 77, 101, 100, 105, 117, 109, 32, 107, 101, 121, 115, 34, 32, 61, 32,
-34, 84, 101, 99, 108, 97, 115, 32, 109, 195, 169, 100, 105, 97, 115, 34, 10, 34, 76, 97, 114, 103, 101, 32,
-107, 101, 121, 115, 34, 32, 61, 32, 34, 84, 101, 99, 108, 97, 115, 32, 103, 114, 97, 110, 100, 101, 115, 34,
-10, 34, 86, 101, 108, 111, 99, 105, 116, 121, 58, 32, 119, 104, 101, 114, 101, 32, 121, 111, 117, 32, 116, 111,
-117, 99, 104, 34, 32, 61, 32, 34, 86, 101, 108, 111, 99, 105, 116, 121, 58, 32, 111, 110, 100, 101, 32, 118,
-111, 99, 195, 170, 32, 116, 111, 99, 97, 34, 10, 34, 86, 101, 108, 111, 99, 105, 116, 121, 58, 32, 102, 105,
-120, 101, 100, 34, 32, 61, 32, 34, 86, 101, 108, 111, 99, 105, 116, 121, 58, 32, 102, 105, 120, 97, 34, 10,
-34, 87, 104, 101, 114, 101, 32, 121, 111, 117, 32, 116, 111, 117, 99, 104, 58, 32, 110, 101, 97, 114, 32, 116,
-104, 101, 32, 116, 111, 112, 32, 111, 102, 32, 97, 32, 107, 101, 121, 32, 112, 108, 97, 121, 115, 32, 115, 111,
-102, 116, 44, 32, 110, 101, 97, 114, 32, 116, 104, 101, 32, 98, 111, 116, 116, 111, 109, 32, 108, 111, 117, 100,
-34, 32, 61, 32, 34, 79, 110, 100, 101, 32, 118, 111, 99, 195, 170, 32, 116, 111, 99, 97, 58, 32, 112, 101,
-114, 116, 111, 32, 100, 111, 32, 116, 111, 112, 111, 32, 100, 97, 32, 116, 101, 99, 108, 97, 32, 116, 111, 99,
-97, 32, 102, 114, 97, 99, 111, 44, 32, 112, 101, 114, 116, 111, 32, 100, 97, 32, 98, 97, 115, 101, 32, 102,
-111, 114, 116, 101, 34, 10, 34, 78, 111, 116, 101, 32, 110, 97, 109, 101, 115, 34, 32, 61, 32, 34, 78, 111,
-109, 101, 115, 32, 100, 97, 115, 32, 110, 111, 116, 97, 115, 34, 10, 34, 80, 108, 97, 121, 115, 58, 32, 123,
-48, 125, 34, 32, 61, 32, 34, 84, 111, 99, 97, 58, 32, 123, 48, 125, 34, 10, 34, 83, 101, 108, 101, 99,
-116, 32, 97, 32, 99, 104, 97, 110, 110, 101, 108, 32, 105, 110, 32, 116, 104, 101, 32, 67, 104, 97, 110, 110,
-101, 108, 32, 82, 97, 99, 107, 34, 32, 61, 32, 34, 83, 101, 108, 101, 99, 105, 111, 110, 101, 32, 117, 109,
-32, 99, 97, 110, 97, 108, 32, 110, 111, 32, 67, 104, 97, 110, 110, 101, 108, 32, 82, 97, 99, 107, 34, 10,
-10, 35, 32, 45, 45, 45, 32, 78, 97, 116, 105, 118, 101, 32, 112, 108, 117, 103, 105, 110, 32, 119, 105, 110,
-100, 111, 119, 115, 32, 105, 110, 32, 70, 76, 39, 115, 32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116,
-32, 40, 114, 111, 117, 110, 100, 32, 57, 51, 41, 10, 34, 40, 110, 111, 32, 112, 114, 101, 115, 101, 116, 41,
-34, 32, 61, 32, 34, 40, 115, 101, 109, 32, 112, 114, 101, 115, 101, 116, 41, 34, 10, 34, 65, 109, 112, 32,
-49, 34, 32, 61, 32, 34, 65, 109, 112, 32, 49, 34, 10, 34, 65, 109, 112, 32, 50, 34, 32, 61, 32, 34,
-65, 109, 112, 32, 50, 34, 10, 34, 65, 116, 116, 34, 32, 61, 32, 34, 65, 116, 116, 34, 10, 34, 66, 87,
-34, 32, 61, 32, 34, 76, 97, 114, 103, 46, 34, 10, 34, 66, 97, 110, 100, 32, 112, 97, 115, 115, 34, 32,
-61, 32, 34, 80, 97, 115, 115, 97, 45, 98, 97, 110, 100, 97, 34, 10, 34, 66, 97, 115, 115, 34, 32, 61,
-32, 34, 71, 114, 97, 118, 101, 115, 34, 10, 34, 66, 105, 116, 115, 34, 32, 61, 32, 34, 66, 105, 116, 115,
-34, 10, 34, 66, 114, 105, 103, 104, 116, 110, 101, 115, 115, 34, 32, 61, 32, 34, 66, 114, 105, 108, 104, 111,
-34, 10, 34, 66, 121, 112, 97, 115, 115, 34, 32, 61, 32, 34, 66, 121, 112, 97, 115, 115, 34, 10, 34, 67,
-101, 105, 108, 34, 32, 61, 32, 34, 84, 101, 116, 111, 34, 10, 34, 67, 101, 110, 116, 101, 114, 34, 32, 61,
-32, 34, 67, 101, 110, 116, 114, 111, 34, 10, 34, 67, 104, 97, 114, 97, 99, 116, 101, 114, 34, 32, 61, 32,
-34, 67, 97, 114, 195, 161, 116, 101, 114, 34, 10, 34, 67, 111, 109, 112, 34, 32, 61, 32, 34, 67, 111, 109,
-112, 34, 10, 34, 67, 114, 111, 115, 115, 32, 99, 117, 116, 111, 102, 102, 34, 32, 61, 32, 34, 67, 111, 114,
-116, 101, 32, 99, 114, 117, 122, 97, 100, 111, 34, 10, 34, 67, 114, 111, 115, 115, 32, 116, 121, 112, 101, 34,
-32, 61, 32, 34, 84, 105, 112, 111, 32, 99, 114, 117, 122, 97, 100, 111, 34, 10, 34, 67, 114, 111, 115, 115,
-34, 32, 61, 32, 34, 67, 114, 117, 122, 97, 100, 111, 34, 10, 34, 67, 114, 111, 115, 115, 111, 118, 101, 114,
-115, 34, 32, 61, 32, 34, 67, 114, 111, 115, 115, 111, 118, 101, 114, 115, 34, 10, 34, 67, 117, 116, 111, 102,
-102, 32, 102, 114, 101, 113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 100, 101, 32, 99, 111, 114, 116,
-101, 34, 10, 34, 68, 97, 109, 112, 34, 32, 61, 32, 34, 65, 109, 111, 114, 116, 101, 99, 46, 34, 10, 34,
-68, 101, 99, 34, 32, 61, 32, 34, 68, 101, 99, 97, 105, 109, 46, 34, 10, 34, 68, 101, 108, 97, 121, 32,
-49, 34, 32, 61, 32, 34, 68, 101, 108, 97, 121, 32, 49, 34, 10, 34, 68, 101, 108, 97, 121, 32, 50, 34,
-32, 61, 32, 34, 68, 101, 108, 97, 121, 32, 50, 34, 10, 34, 68, 101, 108, 97, 121, 32, 109, 111, 100, 101,
-108, 34, 32, 61, 32, 34, 77, 111, 100, 101, 108, 111, 32, 100, 111, 32, 100, 101, 108, 97, 121, 34, 10, 34,
-68, 101, 108, 97, 121, 32, 116, 105, 109, 101, 34, 32, 61, 32, 34, 84, 101, 109, 112, 111, 32, 100, 111, 32,
-100, 101, 108, 97, 121, 34, 10, 34, 68, 101, 112, 116, 104, 34, 32, 61, 32, 34, 80, 114, 111, 102, 117, 110,
-100, 105, 100, 97, 100, 101, 34, 10, 34, 68, 105, 102, 102, 34, 32, 61, 32, 34, 68, 105, 102, 117, 115, 195,
-163, 111, 34, 10, 34, 68, 105, 102, 102, 117, 115, 105, 111, 110, 34, 32, 61, 32, 34, 68, 105, 102, 117, 115,
-195, 163, 111, 34, 10, 34, 68, 105, 114, 101, 99, 116, 32, 97, 109, 112, 34, 32, 61, 32, 34, 65, 109, 112,
-32, 100, 105, 114, 101, 116, 111, 34, 10, 34, 68, 114, 121, 34, 32, 61, 32, 34, 83, 101, 99, 111, 34, 10,
-34, 69, 82, 34, 32, 61, 32, 34, 82, 80, 34, 10, 34, 69, 100, 105, 116, 111, 114, 34, 32, 61, 32, 34,
-69, 100, 105, 116, 111, 114, 34, 10, 34, 69, 110, 118, 101, 108, 111, 112, 101, 34, 32, 61, 32, 34, 69, 110,
-118, 101, 108, 111, 112, 101, 34, 10, 34, 70, 97, 115, 116, 32, 100, 105, 115, 116, 34, 32, 61, 32, 34, 70,
-97, 115, 116, 32, 100, 105, 115, 116, 34, 10, 34, 70, 101, 101, 100, 34, 32, 61, 32, 34, 82, 101, 97, 108,
-105, 109, 46, 34, 10, 34, 70, 101, 101, 100, 98, 97, 99, 107, 32, 100, 105, 115, 116, 111, 114, 116, 105, 111,
-110, 34, 32, 61, 32, 34, 68, 105, 115, 116, 111, 114, 195, 167, 195, 163, 111, 32, 100, 97, 32, 114, 101, 97,
-108, 105, 109, 101, 110, 116, 97, 195, 167, 195, 163, 111, 34, 10, 34, 70, 101, 101, 100, 98, 97, 99, 107, 34,
-32, 61, 32, 34, 82, 101, 97, 108, 105, 109, 101, 110, 116, 97, 195, 167, 195, 163, 111, 34, 10, 34, 70, 101,
-101, 100, 98, 97, 99, 107, 124, 70, 101, 101, 100, 102, 111, 114, 119, 97, 114, 100, 34, 32, 61, 32, 34, 82,
-101, 97, 108, 105, 109, 101, 110, 116, 97, 195, 167, 195, 163, 111, 124, 65, 108, 105, 109, 101, 110, 116, 97, 195,
-167, 195, 163, 111, 32, 100, 105, 114, 101, 116, 97, 34, 10, 34, 70, 114, 101, 113, 34, 32, 61, 32, 34, 70,
-114, 101, 113, 46, 34, 10, 34, 72, 46, 99, 117, 116, 34, 32, 61, 32, 34, 67, 111, 114, 116, 101, 32, 65,
-46, 34, 10, 34, 72, 81, 34, 32, 61, 32, 34, 72, 81, 34, 10, 34, 72, 105, 103, 104, 32, 98, 97, 110,
-100, 34, 32, 61, 32, 34, 66, 97, 110, 100, 97, 32, 97, 108, 116, 97, 34, 10, 34, 72, 105, 103, 104, 32,
-109, 105, 100, 34, 32, 61, 32, 34, 77, 195, 169, 100, 105, 111, 45, 97, 103, 117, 100, 111, 34, 10, 34, 72,
-105, 103, 104, 32, 112, 97, 115, 115, 34, 32, 61, 32, 34, 80, 97, 115, 115, 97, 45, 97, 108, 116, 97, 115,
-34, 10, 34, 73, 110, 112, 117, 116, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 34, 10, 34, 73,
-110, 118, 32, 102, 101, 101, 100, 98, 97, 99, 107, 34, 32, 61, 32, 34, 73, 110, 118, 46, 32, 114, 101, 97,
-108, 105, 109, 46, 34, 10, 34, 73, 110, 118, 32, 119, 101, 116, 34, 32, 61, 32, 34, 73, 110, 118, 46, 32,
-109, 111, 108, 104, 97, 100, 111, 34, 10, 34, 73, 110, 118, 101, 114, 116, 34, 32, 61, 32, 34, 73, 110, 118,
-101, 114, 116, 101, 114, 34, 10, 34, 75, 101, 101, 112, 32, 112, 105, 116, 99, 104, 34, 32, 61, 32, 34, 77,
-97, 110, 116, 101, 114, 32, 116, 111, 109, 34, 10, 34, 75, 110, 101, 101, 34, 32, 61, 32, 34, 74, 111, 101,
-108, 104, 111, 34, 10, 34, 76, 46, 99, 117, 116, 34, 32, 61, 32, 34, 67, 111, 114, 116, 101, 32, 66, 46,
-34, 10, 34, 76, 70, 79, 32, 49, 32, 102, 114, 101, 113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32,
-76, 70, 79, 32, 49, 34, 10, 34, 76, 70, 79, 32, 49, 32, 119, 97, 118, 101, 34, 32, 61, 32, 34, 79,
-110, 100, 97, 32, 76, 70, 79, 32, 49, 34, 10, 34, 76, 70, 79, 32, 50, 32, 102, 114, 101, 113, 34, 32,
-61, 32, 34, 70, 114, 101, 113, 46, 32, 76, 70, 79, 32, 50, 34, 10, 34, 76, 70, 79, 32, 50, 32, 119,
-97, 118, 101, 34, 32, 61, 32, 34, 79, 110, 100, 97, 32, 76, 70, 79, 32, 50, 34, 10, 34, 76, 70, 79,
-32, 51, 32, 102, 114, 101, 113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 76, 70, 79, 32, 51, 34,
-10, 34, 76, 70, 79, 32, 51, 32, 119, 97, 118, 101, 34, 32, 61, 32, 34, 79, 110, 100, 97, 32, 76, 70,
-79, 32, 51, 34, 10, 34, 76, 80, 124, 72, 80, 124, 66, 80, 124, 79, 102, 102, 34, 32, 61, 32, 34, 80,
-66, 124, 80, 65, 124, 80, 70, 124, 68, 101, 115, 108, 46, 34, 10, 34, 76, 105, 109, 105, 116, 101, 114, 34,
-32, 61, 32, 34, 76, 105, 109, 105, 116, 97, 100, 111, 114, 34, 10, 34, 76, 105, 109, 105, 116, 124, 67, 111,
-109, 112, 34, 32, 61, 32, 34, 76, 105, 109, 105, 116, 46, 124, 67, 111, 109, 112, 46, 34, 10, 34, 76, 105,
-109, 105, 116, 124, 83, 97, 116, 34, 32, 61, 32, 34, 76, 105, 109, 105, 116, 97, 114, 124, 83, 97, 116, 117,
-114, 97, 114, 34, 10, 34, 76, 111, 117, 100, 110, 101, 115, 115, 34, 32, 61, 32, 34, 86, 111, 108, 117, 109,
-101, 34, 10, 34, 76, 111, 119, 32, 98, 97, 110, 100, 34, 32, 61, 32, 34, 66, 97, 110, 100, 97, 32, 98,
-97, 105, 120, 97, 34, 10, 34, 76, 111, 119, 32, 109, 105, 100, 34, 32, 61, 32, 34, 77, 195, 169, 100, 105,
-111, 45, 103, 114, 97, 118, 101, 34, 10, 34, 76, 111, 119, 32, 112, 97, 115, 115, 34, 32, 61, 32, 34, 80,
-97, 115, 115, 97, 45, 98, 97, 105, 120, 97, 115, 34, 10, 34, 77, 105, 100, 32, 98, 97, 110, 100, 34, 32,
-61, 32, 34, 66, 97, 110, 100, 97, 32, 109, 195, 169, 100, 105, 97, 34, 10, 34, 77, 105, 100, 124, 83, 105,
-100, 101, 34, 32, 61, 32, 34, 77, 105, 100, 124, 83, 105, 100, 101, 34, 10, 34, 77, 111, 100, 32, 97, 109,
-112, 34, 32, 61, 32, 34, 65, 109, 112, 32, 109, 111, 100, 46, 34, 10, 34, 77, 111, 100, 32, 102, 114, 101,
-113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 109, 111, 100, 46, 34, 10, 34, 77, 111, 100, 34, 32,
-61, 32, 34, 77, 111, 100, 46, 34, 10, 34, 77, 111, 100, 117, 108, 97, 116, 105, 111, 110, 34, 32, 61, 32,
-34, 77, 111, 100, 117, 108, 97, 195, 167, 195, 163, 111, 34, 10, 34, 77, 111, 110, 111, 124, 83, 116, 101, 114,
-101, 111, 124, 80, 105, 110, 103, 32, 112, 111, 110, 103, 124, 79, 102, 102, 34, 32, 61, 32, 34, 77, 111, 110,
-111, 124, 69, 115, 116, 195, 169, 114, 101, 111, 124, 80, 105, 110, 103, 117, 101, 45, 112, 111, 110, 103, 117, 101,
-124, 68, 101, 115, 108, 46, 34, 10, 34, 78, 101, 120, 116, 32, 112, 114, 101, 115, 101, 116, 34, 32, 61, 32,
-34, 80, 114, 195, 179, 120, 105, 109, 111, 32, 112, 114, 101, 115, 101, 116, 34, 10, 34, 78, 111, 32, 70, 76,
-32, 112, 114, 101, 115, 101, 116, 115, 32, 102, 111, 117, 110, 100, 32, 102, 111, 114, 32, 116, 104, 105, 115, 32,
-112, 108, 117, 103, 105, 110, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 112, 114, 101, 115, 101, 116,
-32, 100, 111, 32, 70, 76, 32, 101, 110, 99, 111, 110, 116, 114, 97, 100, 111, 32, 112, 97, 114, 97, 32, 101,
-115, 116, 101, 32, 112, 108, 117, 103, 105, 110, 34, 10, 34, 78, 111, 105, 115, 101, 32, 103, 97, 116, 101, 34,
-32, 61, 32, 34, 78, 111, 105, 115, 101, 32, 103, 97, 116, 101, 34, 10, 34, 78, 111, 110, 101, 124, 76, 101,
-102, 116, 124, 82, 105, 103, 104, 116, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 124, 69, 115, 113, 117,
-101, 114, 100, 111, 124, 68, 105, 114, 101, 105, 116, 111, 34, 10, 34, 78, 111, 114, 109, 97, 108, 124, 70, 114,
-101, 101, 122, 101, 124, 83, 117, 115, 116, 97, 105, 110, 34, 32, 61, 32, 34, 78, 111, 114, 109, 97, 108, 124,
-67, 111, 110, 103, 101, 108, 97, 114, 124, 83, 117, 115, 116, 101, 110, 116, 97, 114, 34, 10, 34, 79, 102, 102,
-124, 79, 110, 34, 32, 61, 32, 34, 68, 101, 115, 108, 46, 124, 76, 105, 103, 46, 34, 10, 34, 79, 102, 102,
-124, 80, 101, 97, 107, 124, 76, 111, 119, 32, 115, 104, 101, 108, 102, 124, 72, 105, 103, 104, 32, 115, 104, 101,
-108, 102, 124, 76, 111, 119, 32, 99, 117, 116, 124, 72, 105, 103, 104, 32, 99, 117, 116, 124, 66, 97, 110, 100,
-45, 112, 97, 115, 115, 124, 78, 111, 116, 99, 104, 34, 32, 61, 32, 34, 68, 101, 115, 108, 105, 103, 97, 100,
-97, 124, 80, 105, 99, 111, 124, 80, 114, 97, 116, 101, 108, 101, 105, 114, 97, 32, 103, 114, 97, 118, 101, 124,
-80, 114, 97, 116, 101, 108, 101, 105, 114, 97, 32, 97, 103, 117, 100, 97, 124, 67, 111, 114, 116, 101, 32, 100,
-101, 32, 103, 114, 97, 118, 101, 115, 124, 67, 111, 114, 116, 101, 32, 100, 101, 32, 97, 103, 117, 100, 111, 115,
-124, 80, 97, 115, 115, 97, 45, 98, 97, 110, 100, 97, 124, 78, 111, 116, 99, 104, 34, 10, 34, 79, 102, 102,
-124, 87, 101, 116, 124, 68, 101, 99, 97, 121, 34, 32, 61, 32, 34, 68, 101, 115, 108, 46, 124, 77, 111, 108,
-104, 97, 100, 111, 124, 68, 101, 99, 97, 105, 109, 101, 110, 116, 111, 34, 10, 34, 79, 112, 101, 110, 32, 116,
-104, 101, 32, 101, 102, 102, 101, 99, 116, 39, 115, 32, 119, 105, 110, 100, 111, 119, 32, 40, 105, 116, 115, 32,
-102, 117, 108, 108, 32, 99, 111, 110, 116, 114, 111, 108, 115, 44, 32, 97, 115, 32, 105, 110, 32, 70, 76, 41,
-59, 32, 100, 111, 117, 98, 108, 101, 45, 99, 108, 105, 99, 107, 105, 110, 103, 32, 116, 104, 101, 32, 115, 108,
-111, 116, 32, 100, 111, 101, 115, 32, 116, 104, 101, 32, 115, 97, 109, 101, 34, 32, 61, 32, 34, 65, 98, 114,
-101, 32, 97, 32, 106, 97, 110, 101, 108, 97, 32, 100, 111, 32, 101, 102, 101, 105, 116, 111, 32, 40, 116, 111,
-100, 111, 115, 32, 111, 115, 32, 99, 111, 110, 116, 114, 111, 108, 101, 115, 44, 32, 99, 111, 109, 111, 32, 110,
-111, 32, 70, 76, 41, 59, 32, 99, 108, 105, 99, 97, 114, 32, 100, 117, 97, 115, 32, 118, 101, 122, 101, 115,
-32, 110, 111, 32, 115, 108, 111, 116, 32, 102, 97, 122, 32, 111, 32, 109, 101, 115, 109, 111, 34, 10, 34, 79,
-112, 116, 105, 111, 110, 115, 58, 32, 112, 114, 101, 115, 101, 116, 115, 44, 32, 114, 101, 115, 101, 116, 44, 32,
-98, 121, 112, 97, 115, 115, 34, 32, 61, 32, 34, 79, 112, 195, 167, 195, 181, 101, 115, 58, 32, 112, 114, 101,
-115, 101, 116, 115, 44, 32, 114, 101, 115, 116, 97, 117, 114, 97, 114, 44, 32, 98, 121, 112, 97, 115, 115, 34,
-10, 34, 79, 117, 116, 112, 117, 116, 34, 32, 61, 32, 34, 83, 97, 195, 173, 100, 97, 34, 10, 34, 80, 46,
-32, 100, 101, 108, 97, 121, 34, 32, 61, 32, 34, 80, 114, 195, 169, 45, 100, 101, 108, 97, 121, 34, 10, 34,
-80, 97, 103, 101, 58, 32, 115, 119, 105, 116, 99, 104, 32, 116, 104, 101, 32, 99, 111, 110, 116, 114, 111, 108,
-115, 32, 115, 104, 111, 119, 110, 34, 32, 61, 32, 34, 80, 195, 161, 103, 105, 110, 97, 58, 32, 116, 114, 111,
-99, 97, 32, 111, 115, 32, 99, 111, 110, 116, 114, 111, 108, 101, 115, 32, 109, 111, 115, 116, 114, 97, 100, 111,
-115, 34, 10, 34, 80, 101, 97, 107, 32, 81, 34, 32, 61, 32, 34, 81, 32, 100, 111, 32, 112, 105, 99, 111,
-34, 10, 34, 80, 101, 97, 107, 32, 102, 114, 101, 113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 100,
-111, 32, 112, 105, 99, 111, 34, 10, 34, 80, 101, 97, 107, 32, 103, 97, 105, 110, 34, 32, 61, 32, 34, 71,
-97, 110, 104, 111, 32, 100, 111, 32, 112, 105, 99, 111, 34, 10, 34, 80, 104, 97, 115, 101, 32, 111, 102, 102,
-115, 101, 116, 34, 32, 61, 32, 34, 68, 101, 115, 118, 105, 111, 32, 100, 101, 32, 102, 97, 115, 101, 34, 10,
-34, 80, 105, 116, 99, 104, 32, 49, 34, 32, 61, 32, 34, 84, 111, 109, 32, 49, 34, 10, 34, 80, 105, 116,
-99, 104, 32, 50, 34, 32, 61, 32, 34, 84, 111, 109, 32, 50, 34, 10, 34, 80, 105, 116, 99, 104, 32, 115,
-104, 105, 102, 116, 34, 32, 61, 32, 34, 68, 101, 115, 118, 105, 111, 32, 100, 101, 32, 116, 111, 109, 34, 10,
-34, 80, 111, 115, 116, 34, 32, 61, 32, 34, 80, 195, 179, 115, 34, 10, 34, 80, 114, 101, 34, 32, 61, 32,
-34, 80, 114, 195, 169, 34, 10, 34, 80, 114, 101, 115, 101, 116, 58, 32, 99, 108, 105, 99, 107, 32, 102, 111,
-114, 32, 116, 104, 101, 32, 108, 105, 115, 116, 32, 111, 102, 32, 70, 76, 32, 112, 114, 101, 115, 101, 116, 115,
-32, 111, 102, 32, 116, 104, 105, 115, 32, 112, 108, 117, 103, 105, 110, 34, 32, 61, 32, 34, 80, 114, 101, 115,
-101, 116, 58, 32, 99, 108, 105, 113, 117, 101, 32, 112, 97, 114, 97, 32, 97, 32, 108, 105, 115, 116, 97, 32,
-100, 101, 32, 112, 114, 101, 115, 101, 116, 115, 32, 100, 111, 32, 70, 76, 32, 100, 101, 115, 116, 101, 32, 112,
-108, 117, 103, 105, 110, 34, 10, 34, 80, 114, 101, 115, 101, 116, 115, 34, 32, 61, 32, 34, 80, 114, 101, 115,
-101, 116, 115, 34, 10, 34, 80, 114, 101, 118, 105, 111, 117, 115, 32, 112, 114, 101, 115, 101, 116, 34, 32, 61,
-32, 34, 80, 114, 101, 115, 101, 116, 32, 97, 110, 116, 101, 114, 105, 111, 114, 34, 10, 34, 80, 114, 101, 124,
-80, 111, 115, 116, 34, 32, 61, 32, 34, 80, 114, 195, 169, 124, 80, 195, 179, 115, 34, 10, 34, 80, 114, 115,
-34, 32, 61, 32, 34, 80, 114, 101, 115, 46, 34, 10, 34, 82, 97, 116, 101, 34, 32, 61, 32, 34, 84, 97,
-120, 97, 34, 10, 34, 82, 97, 116, 105, 111, 34, 32, 61, 32, 34, 82, 97, 122, 195, 163, 111, 34, 10, 34,
-82, 101, 108, 34, 32, 61, 32, 34, 82, 101, 108, 34, 10, 34, 82, 101, 115, 34, 32, 61, 32, 34, 82, 101,
-115, 34, 10, 34, 82, 101, 115, 101, 116, 32, 116, 111, 32, 100, 101, 102, 97, 117, 108, 116, 115, 34, 32, 61,
-32, 34, 82, 101, 115, 116, 97, 117, 114, 97, 114, 32, 111, 32, 112, 97, 100, 114, 195, 163, 111, 34, 10, 34,
-82, 101, 118, 101, 114, 98, 32, 109, 105, 120, 34, 32, 61, 32, 34, 77, 105, 120, 32, 100, 111, 32, 114, 101,
-118, 101, 114, 98, 34, 10, 34, 82, 101, 118, 101, 114, 98, 34, 32, 61, 32, 34, 82, 101, 118, 101, 114, 98,
-34, 10, 34, 83, 97, 116, 34, 32, 61, 32, 34, 83, 97, 116, 34, 10, 34, 83, 101, 112, 34, 32, 61, 32,
-34, 83, 101, 112, 46, 34, 10, 34, 83, 105, 122, 101, 34, 32, 61, 32, 34, 84, 97, 109, 97, 110, 104, 111,
-34, 10, 34, 83, 109, 111, 111, 116, 104, 34, 32, 61, 32, 34, 83, 117, 97, 118, 105, 122, 97, 114, 34, 10,
-34, 83, 109, 111, 111, 116, 104, 105, 110, 103, 34, 32, 61, 32, 34, 83, 117, 97, 118, 105, 122, 97, 195, 167,
-195, 163, 111, 34, 10, 34, 83, 109, 112, 32, 114, 97, 116, 101, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32,
-97, 109, 111, 115, 116, 114, 46, 34, 10, 34, 83, 116, 101, 114, 101, 111, 32, 101, 110, 104, 97, 110, 99, 101,
-114, 34, 32, 61, 32, 34, 82, 101, 97, 108, 99, 101, 32, 101, 115, 116, 195, 169, 114, 101, 111, 34, 10, 34,
-83, 116, 101, 114, 101, 111, 32, 115, 101, 112, 34, 32, 61, 32, 34, 83, 101, 112, 97, 114, 97, 195, 167, 195,
-163, 111, 32, 101, 115, 116, 195, 169, 114, 101, 111, 34, 10, 34, 83, 117, 98, 34, 32, 61, 32, 34, 83, 117,
-98, 34, 10, 34, 83, 121, 109, 109, 101, 116, 114, 121, 34, 32, 61, 32, 34, 83, 105, 109, 101, 116, 114, 105,
-97, 34, 10, 34, 84, 101, 109, 112, 111, 32, 115, 121, 110, 99, 34, 32, 61, 32, 34, 83, 105, 110, 99, 46,
-32, 97, 111, 32, 116, 101, 109, 112, 111, 34, 10, 34, 84, 104, 101, 32, 101, 102, 102, 101, 99, 116, 32, 119,
-97, 115, 32, 114, 101, 109, 111, 118, 101, 100, 32, 102, 114, 111, 109, 32, 116, 104, 105, 115, 32, 115, 108, 111,
-116, 46, 34, 32, 61, 32, 34, 79, 32, 101, 102, 101, 105, 116, 111, 32, 102, 111, 105, 32, 114, 101, 109, 111,
-118, 105, 100, 111, 32, 100, 101, 115, 116, 101, 32, 115, 108, 111, 116, 46, 34, 10, 34, 84, 104, 114, 101, 115,
-34, 32, 61, 32, 34, 76, 105, 109, 105, 97, 114, 34, 10, 34, 84, 104, 114, 101, 115, 104, 34, 32, 61, 32,
-34, 76, 105, 109, 105, 97, 114, 34, 10, 34, 84, 104, 114, 101, 115, 104, 111, 108, 100, 34, 32, 61, 32, 34,
-76, 105, 109, 105, 97, 114, 34, 10, 34, 84, 111, 110, 101, 34, 32, 61, 32, 34, 84, 105, 109, 98, 114, 101,
-34, 10, 34, 84, 114, 101, 98, 108, 101, 34, 32, 61, 32, 34, 65, 103, 117, 100, 111, 115, 34, 10, 34, 86,
-111, 108, 34, 32, 61, 32, 34, 86, 111, 108, 34, 10, 34, 87, 101, 116, 32, 103, 97, 105, 110, 34, 32, 61,
-32, 34, 71, 97, 110, 104, 111, 32, 109, 111, 108, 104, 97, 100, 111, 34, 10, 34, 87, 101, 116, 32, 111, 110,
-108, 121, 34, 32, 61, 32, 34, 83, 195, 179, 32, 109, 111, 108, 104, 97, 100, 111, 34, 10, 34, 87, 101, 116,
-34, 32, 61, 32, 34, 77, 111, 108, 104, 97, 100, 111, 34, 10, 34, 87, 105, 100, 116, 104, 34, 32, 61, 32,
-34, 76, 97, 114, 103, 117, 114, 97, 34, 10, 34, 88, 32, 50, 34, 32, 61, 32, 34, 88, 32, 50, 34, 10,
-34, 84, 105, 109, 101, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 84, 101, 109, 112, 111, 58, 32, 123, 48,
-125, 34, 10, 34, 72, 111, 108, 100, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 72, 111, 108, 100, 58, 32,
-123, 48, 125, 34, 10, 34, 84, 114, 105, 103, 32, 115, 121, 110, 99, 58, 32, 123, 48, 125, 34, 32, 61, 32,
-34, 83, 105, 110, 99, 46, 32, 100, 111, 32, 100, 105, 115, 112, 97, 114, 111, 58, 32, 123, 48, 125, 34, 10,
-34, 80, 111, 115, 32, 115, 121, 110, 99, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 83, 105, 110, 99, 46,
-32, 100, 97, 32, 112, 111, 115, 105, 195, 167, 195, 163, 111, 58, 32, 123, 48, 125, 34, 10, 34, 84, 110, 115,
-34, 32, 61, 32, 34, 84, 101, 110, 115, 195, 163, 111, 34, 10, 34, 65, 77, 32, 111, 115, 99, 32, 51, 34,
-32, 61, 32, 34, 65, 77, 32, 111, 115, 99, 32, 51, 34, 10, 34, 65, 109, 116, 34, 32, 61, 32, 34, 81,
-116, 100, 46, 34, 10, 34, 66, 105, 112, 111, 108, 97, 114, 124, 85, 110, 105, 112, 111, 108, 97, 114, 34, 32,
-61, 32, 34, 66, 105, 112, 111, 108, 97, 114, 124, 85, 110, 105, 112, 111, 108, 97, 114, 34, 10, 34, 67, 111,
-97, 114, 115, 101, 34, 32, 61, 32, 34, 71, 114, 111, 115, 115, 111, 34, 10, 34, 68, 101, 108, 34, 32, 61,
-32, 34, 65, 116, 114, 97, 115, 111, 34, 10, 34, 68, 101, 116, 117, 110, 101, 34, 32, 61, 32, 34, 68, 101,
-115, 97, 102, 105, 110, 97, 114, 34, 10, 34, 68, 114, 105, 118, 101, 34, 32, 61, 32, 34, 68, 114, 105, 118,
-101, 34, 10, 34, 69, 110, 118, 105, 114, 111, 110, 109, 101, 110, 116, 34, 32, 61, 32, 34, 65, 109, 98, 105,
-101, 110, 116, 101, 34, 10, 34, 72, 97, 114, 100, 110, 101, 115, 115, 34, 32, 61, 32, 34, 68, 117, 114, 101,
-122, 97, 34, 10, 34, 72, 105, 103, 104, 32, 100, 97, 109, 112, 105, 110, 103, 34, 32, 61, 32, 34, 65, 109,
-111, 114, 116, 101, 99, 105, 109, 101, 110, 116, 111, 32, 97, 103, 117, 100, 111, 34, 10, 34, 72, 105, 103, 104,
-99, 117, 116, 34, 32, 61, 32, 34, 67, 111, 114, 116, 101, 32, 97, 103, 117, 100, 111, 34, 10, 34, 73, 110,
-47, 111, 117, 116, 32, 100, 105, 102, 102, 101, 114, 101, 110, 99, 101, 34, 32, 61, 32, 34, 68, 105, 102, 101,
-114, 101, 110, 195, 167, 97, 32, 101, 110, 116, 114, 97, 100, 97, 47, 115, 97, 195, 173, 100, 97, 34, 10, 34,
-76, 101, 102, 116, 34, 32, 61, 32, 34, 69, 115, 113, 117, 101, 114, 100, 111, 34, 10, 34, 76, 111, 119, 99,
-117, 116, 34, 32, 61, 32, 34, 67, 111, 114, 116, 101, 32, 103, 114, 97, 118, 101, 34, 10, 34, 77, 105, 115,
-99, 34, 32, 61, 32, 34, 68, 105, 118, 101, 114, 115, 111, 115, 34, 10, 34, 77, 105, 120, 101, 114, 32, 109,
-97, 116, 114, 105, 120, 34, 32, 61, 32, 34, 77, 97, 116, 114, 105, 122, 32, 100, 101, 32, 109, 105, 120, 97,
-103, 101, 109, 34, 10, 34, 77, 117, 102, 102, 108, 101, 34, 32, 61, 32, 34, 65, 98, 97, 102, 97, 114, 34,
-10, 34, 78, 111, 114, 109, 97, 108, 124, 73, 110, 118, 101, 114, 116, 124, 80, 46, 112, 111, 110, 103, 34, 32,
-61, 32, 34, 78, 111, 114, 109, 97, 108, 124, 73, 110, 118, 101, 114, 116, 101, 114, 124, 80, 105, 110, 103, 117,
-101, 45, 112, 46, 34, 10, 34, 79, 102, 102, 124, 80, 97, 110, 124, 86, 111, 108, 34, 32, 61, 32, 34, 68,
-101, 115, 108, 46, 124, 80, 97, 110, 124, 86, 111, 108, 34, 10, 34, 79, 102, 115, 34, 32, 61, 32, 34, 68,
-101, 115, 108, 46, 34, 10, 34, 79, 114, 100, 34, 32, 61, 32, 34, 79, 114, 100, 101, 109, 34, 10, 34, 79,
-118, 101, 114, 100, 114, 105, 118, 101, 34, 32, 61, 32, 34, 79, 118, 101, 114, 100, 114, 105, 118, 101, 34, 10,
-34, 79, 118, 101, 114, 115, 97, 109, 112, 108, 101, 34, 32, 61, 32, 34, 83, 111, 98, 114, 101, 97, 109, 111,
-115, 116, 114, 97, 103, 101, 109, 34, 10, 34, 80, 104, 97, 115, 101, 32, 111, 102, 115, 34, 32, 61, 32, 34,
-68, 101, 115, 118, 105, 111, 32, 100, 101, 32, 102, 97, 115, 101, 34, 10, 34, 80, 104, 97, 115, 101, 32, 114,
-97, 110, 100, 34, 32, 61, 32, 34, 70, 97, 115, 101, 32, 97, 108, 101, 97, 116, 195, 179, 114, 105, 97, 34,
-10, 34, 80, 111, 115, 116, 32, 102, 105, 108, 116, 101, 114, 34, 32, 61, 32, 34, 70, 105, 108, 116, 114, 111,
-32, 112, 195, 179, 115, 34, 10, 34, 80, 111, 115, 116, 32, 103, 97, 105, 110, 34, 32, 61, 32, 34, 71, 97,
-110, 104, 111, 32, 112, 195, 179, 115, 34, 10, 34, 80, 114, 101, 32, 97, 109, 112, 34, 32, 61, 32, 34, 80,
-114, 195, 169, 45, 97, 109, 112, 34, 10, 34, 80, 114, 101, 32, 98, 97, 110, 100, 34, 32, 61, 32, 34, 66,
-97, 110, 100, 97, 32, 112, 114, 195, 169, 34, 10, 34, 80, 114, 101, 100, 101, 108, 97, 121, 34, 32, 61, 32,
-34, 80, 114, 195, 169, 45, 100, 101, 108, 97, 121, 34, 10, 34, 81, 34, 32, 61, 32, 34, 81, 34, 10, 34,
-82, 105, 103, 104, 116, 34, 32, 61, 32, 34, 68, 105, 114, 101, 105, 116, 111, 34, 10, 34, 82, 111, 111, 109,
-32, 115, 105, 122, 101, 34, 32, 61, 32, 34, 84, 97, 109, 97, 110, 104, 111, 32, 100, 97, 32, 115, 97, 108,
-97, 34, 10, 34, 83, 101, 110, 115, 34, 32, 61, 32, 34, 83, 101, 110, 115, 46, 34, 10, 34, 83, 105, 110,
-101, 124, 84, 114, 105, 97, 110, 103, 108, 101, 124, 83, 113, 117, 97, 114, 101, 34, 32, 61, 32, 34, 83, 101,
-110, 111, 105, 100, 101, 124, 84, 114, 105, 195, 162, 110, 103, 117, 108, 111, 124, 81, 117, 97, 100, 114, 97, 100,
-97, 34, 10, 34, 83, 111, 102, 116, 32, 99, 108, 105, 112, 112, 101, 114, 34, 32, 61, 32, 34, 83, 111, 102,
-116, 32, 99, 108, 105, 112, 112, 101, 114, 34, 10, 34, 83, 112, 100, 34, 32, 61, 32, 34, 86, 101, 108, 111,
-99, 46, 34, 10, 34, 83, 112, 108, 105, 116, 32, 98, 97, 108, 97, 110, 99, 101, 34, 32, 61, 32, 34, 69,
-113, 117, 105, 108, 195, 173, 98, 114, 105, 111, 32, 100, 97, 32, 100, 105, 118, 105, 115, 195, 163, 111, 34, 10,
-34, 83, 112, 108, 105, 116, 32, 102, 114, 101, 113, 46, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 100,
-97, 32, 100, 105, 118, 105, 115, 195, 163, 111, 34, 10, 34, 83, 112, 114, 100, 34, 32, 61, 32, 34, 69, 115,
-112, 97, 108, 104, 46, 34, 10, 34, 84, 117, 110, 101, 34, 32, 61, 32, 34, 65, 102, 105, 110, 97, 195, 167,
-195, 163, 111, 34, 10, 34, 84, 117, 110, 105, 110, 103, 34, 32, 61, 32, 34, 65, 102, 105, 110, 97, 195, 167,
-195, 163, 111, 34, 10, 34, 86, 101, 108, 34, 32, 61, 32, 34, 86, 101, 108, 34, 10, 34, 83, 116, 97, 114,
-116, 32, 112, 104, 97, 115, 101, 34, 32, 61, 32, 34, 70, 97, 115, 101, 32, 105, 110, 105, 99, 105, 97, 108,
-34, 10, 34, 76, 47, 82, 32, 112, 104, 97, 115, 101, 34, 32, 61, 32, 34, 70, 97, 115, 101, 32, 69, 47,
-68, 34, 10, 34, 76, 101, 118, 101, 108, 115, 34, 32, 61, 32, 34, 78, 195, 173, 118, 101, 105, 115, 34, 10,
-34, 77, 111, 110, 111, 32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 32,
-109, 111, 110, 111, 34, 10, 34, 68, 101, 108, 97, 121, 115, 34, 32, 61, 32, 34, 68, 101, 108, 97, 121, 115,
-34, 10, 34, 73, 124, 73, 73, 124, 69, 100, 105, 116, 34, 32, 61, 32, 34, 73, 124, 73, 73, 124, 69, 100,
-105, 116, 97, 114, 34, 10, 34, 84, 114, 105, 97, 110, 103, 108, 101, 124, 83, 105, 110, 101, 34, 32, 61, 32,
-34, 84, 114, 105, 195, 162, 110, 103, 117, 108, 111, 124, 83, 101, 110, 111, 105, 100, 101, 34, 10, 34, 72, 46,
-112, 97, 115, 115, 34, 32, 61, 32, 34, 80, 97, 115, 115, 97, 45, 65, 46, 34, 10, 34, 77, 111, 118, 101,
-109, 101, 110, 116, 34, 32, 61, 32, 34, 77, 111, 118, 105, 109, 101, 110, 116, 111, 34, 10, 34, 77, 111, 118,
-101, 32, 114, 97, 116, 101, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 100, 111, 32, 109, 111, 118, 46, 34,
-10, 34, 77, 111, 100, 32, 114, 97, 116, 101, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 100, 97, 32, 109,
-111, 100, 46, 34, 10, 34, 76, 70, 79, 32, 112, 104, 97, 115, 101, 32, 100, 105, 102, 34, 32, 61, 32, 34,
-68, 105, 102, 46, 32, 100, 101, 32, 102, 97, 115, 101, 32, 76, 70, 79, 34, 10, 34, 68, 101, 108, 97, 121,
-32, 108, 105, 110, 101, 115, 34, 32, 61, 32, 34, 76, 105, 110, 104, 97, 115, 32, 100, 101, 32, 100, 101, 108,
-97, 121, 34, 10, 34, 73, 110, 118, 101, 114, 116, 32, 119, 101, 116, 34, 32, 61, 32, 34, 73, 110, 118, 101,
-114, 116, 101, 114, 32, 109, 111, 108, 104, 97, 100, 111, 34, 10, 34, 65, 109, 111, 117, 110, 116, 58, 32, 100,
-114, 97, 103, 32, 117, 112, 32, 111, 114, 32, 100, 111, 119, 110, 32, 40, 67, 116, 114, 108, 58, 32, 102, 105,
-110, 101, 41, 34, 32, 61, 32, 34, 81, 117, 97, 110, 116, 105, 100, 97, 100, 101, 58, 32, 97, 114, 114, 97,
-115, 116, 101, 32, 112, 97, 114, 97, 32, 99, 105, 109, 97, 32, 111, 117, 32, 112, 97, 114, 97, 32, 98, 97,
-105, 120, 111, 32, 40, 67, 116, 114, 108, 58, 32, 102, 105, 110, 111, 41, 34, 10, 34, 83, 111, 117, 110, 100,
-103, 111, 111, 100, 105, 122, 101, 114, 32, 112, 114, 101, 115, 101, 116, 32, 65, 32, 116, 111, 32, 68, 32, 40,
-114, 101, 97, 100, 32, 102, 114, 111, 109, 32, 121, 111, 117, 114, 32, 70, 76, 32, 105, 110, 115, 116, 97, 108,
-108, 97, 116, 105, 111, 110, 41, 34, 32, 61, 32, 34, 80, 114, 101, 115, 101, 116, 32, 65, 32, 97, 32, 68,
-32, 100, 111, 32, 83, 111, 117, 110, 100, 103, 111, 111, 100, 105, 122, 101, 114, 32, 40, 108, 105, 100, 111, 32,
-100, 97, 32, 115, 117, 97, 32, 105, 110, 115, 116, 97, 108, 97, 195, 167, 195, 163, 111, 32, 100, 111, 32, 70,
-76, 41, 34, 10, 34, 68, 114, 97, 103, 32, 116, 104, 101, 32, 112, 111, 105, 110, 116, 58, 32, 98, 111, 116,
-104, 32, 118, 97, 108, 117, 101, 115, 32, 97, 116, 32, 111, 110, 99, 101, 34, 32, 61, 32, 34, 65, 114, 114,
-97, 115, 116, 101, 32, 111, 32, 112, 111, 110, 116, 111, 58, 32, 111, 115, 32, 100, 111, 105, 115, 32, 118, 97,
-108, 111, 114, 101, 115, 32, 100, 101, 32, 117, 109, 97, 32, 118, 101, 122, 34, 10, 34, 66, 97, 108, 97, 110,
-99, 101, 34, 32, 61, 32, 34, 66, 97, 108, 97, 110, 195, 167, 111, 34, 10, 34, 68, 114, 97, 102, 116, 34,
-32, 61, 32, 34, 82, 97, 115, 99, 117, 110, 104, 111, 34, 10, 34, 69, 110, 34, 32, 61, 32, 34, 69, 110,
-34, 10, 34, 70, 105, 108, 116, 101, 114, 34, 32, 61, 32, 34, 70, 105, 108, 116, 114, 111, 34, 10, 34, 72,
-81, 32, 101, 110, 118, 101, 108, 111, 112, 101, 115, 34, 32, 61, 32, 34, 69, 110, 118, 101, 108, 111, 112, 101,
-115, 32, 72, 81, 34, 10, 34, 77, 97, 105, 110, 34, 32, 61, 32, 34, 80, 114, 105, 110, 99, 105, 112, 97,
-108, 34, 10, 34, 79, 112, 101, 114, 97, 116, 111, 114, 115, 44, 32, 102, 105, 108, 116, 101, 114, 115, 44, 32,
-101, 102, 102, 101, 99, 116, 115, 32, 97, 110, 100, 32, 116, 104, 101, 32, 109, 97, 116, 114, 105, 120, 34, 32,
-61, 32, 34, 79, 112, 101, 114, 97, 100, 111, 114, 101, 115, 44, 32, 102, 105, 108, 116, 114, 111, 115, 44, 32,
-101, 102, 101, 105, 116, 111, 115, 32, 101, 32, 97, 32, 109, 97, 116, 114, 105, 122, 34, 10, 34, 79, 118, 101,
-114, 115, 97, 109, 112, 108, 105, 110, 103, 34, 32, 61, 32, 34, 83, 111, 98, 114, 101, 97, 109, 111, 115, 116,
-114, 97, 103, 101, 109, 34, 10, 34, 80, 104, 34, 32, 61, 32, 34, 70, 97, 34, 10, 34, 80, 110, 34, 32,
-61, 32, 34, 80, 110, 34, 10, 34, 80, 116, 34, 32, 61, 32, 34, 84, 109, 34, 10, 34, 81, 117, 97, 108,
-105, 116, 121, 34, 32, 61, 32, 34, 81, 117, 97, 108, 105, 100, 97, 100, 101, 34, 10, 34, 82, 101, 110, 100,
-101, 114, 34, 32, 61, 32, 34, 82, 101, 110, 100, 101, 114, 34, 10, 34, 83, 98, 34, 32, 61, 32, 34, 83,
-98, 34, 10, 34, 85, 110, 105, 115, 111, 110, 34, 32, 61, 32, 34, 85, 110, 195, 173, 115, 115, 111, 110, 111,
-34, 10, 34, 86, 108, 34, 32, 61, 32, 34, 86, 108, 34, 10, 34, 107, 101, 101, 112, 32, 116, 104, 101, 32,
-115, 97, 118, 101, 100, 32, 112, 97, 116, 99, 104, 34, 32, 61, 32, 34, 109, 97, 110, 116, 195, 170, 109, 32,
-111, 32, 112, 97, 116, 99, 104, 32, 115, 97, 108, 118, 111, 34, 10, 34, 84, 105, 109, 98, 114, 101, 34, 32,
-61, 32, 34, 84, 105, 109, 98, 114, 101, 34, 10, 34, 66, 108, 117, 114, 34, 32, 61, 32, 34, 68, 101, 115,
-102, 111, 113, 117, 101, 34, 10, 34, 84, 114, 101, 109, 34, 32, 61, 32, 34, 84, 114, 101, 109, 34, 10, 34,
-80, 114, 105, 115, 109, 34, 32, 61, 32, 34, 80, 114, 105, 115, 109, 97, 34, 10, 34, 72, 97, 114, 109, 111,
-110, 105, 122, 101, 114, 34, 32, 61, 32, 34, 72, 97, 114, 109, 111, 110, 105, 122, 97, 100, 111, 114, 34, 10,
-34, 86, 105, 98, 114, 97, 116, 111, 34, 32, 61, 32, 34, 86, 105, 98, 114, 97, 116, 111, 34, 10, 34, 80,
-108, 117, 99, 107, 34, 32, 61, 32, 34, 80, 108, 117, 99, 107, 34, 10, 34, 80, 104, 97, 115, 101, 114, 34,
-32, 61, 32, 34, 80, 104, 97, 115, 101, 114, 34, 10, 34, 69, 81, 34, 32, 61, 32, 34, 69, 81, 34, 10,
-34, 70, 105, 108, 116, 101, 114, 32, 49, 34, 32, 61, 32, 34, 70, 105, 108, 116, 114, 111, 32, 49, 34, 10,
-34, 79, 114, 100, 101, 114, 34, 32, 61, 32, 34, 79, 114, 100, 101, 109, 34, 10, 34, 80, 97, 114, 116, 32,
-65, 32, 47, 32, 66, 34, 32, 61, 32, 34, 80, 97, 114, 116, 101, 32, 65, 32, 47, 32, 66, 34, 10, 34,
-84, 104, 101, 32, 111, 116, 104, 101, 114, 32, 72, 97, 114, 109, 111, 114, 32, 99, 111, 110, 116, 114, 111, 108,
-115, 32, 107, 101, 101, 112, 32, 116, 104, 101, 32, 115, 97, 118, 101, 100, 32, 112, 97, 116, 99, 104, 34, 32,
-61, 32, 34, 79, 115, 32, 111, 117, 116, 114, 111, 115, 32, 99, 111, 110, 116, 114, 111, 108, 101, 115, 32, 100,
-111, 32, 72, 97, 114, 109, 111, 114, 32, 109, 97, 110, 116, 195, 170, 109, 32, 111, 32, 112, 97, 116, 99, 104,
-32, 115, 97, 108, 118, 111, 34, 10, 34, 83, 113, 117, 97, 114, 105, 122, 101, 34, 32, 61, 32, 34, 81, 117,
-97, 100, 114, 97, 116, 105, 122, 97, 114, 34, 10, 34, 80, 117, 110, 99, 104, 101, 114, 34, 32, 61, 32, 34,
-80, 117, 110, 99, 104, 101, 114, 34, 10, 34, 80, 114, 101, 115, 101, 114, 118, 101, 34, 32, 61, 32, 34, 80,
-114, 101, 115, 101, 114, 118, 97, 114, 34, 10, 34, 73, 109, 112, 97, 99, 116, 34, 32, 61, 32, 34, 73, 109,
-112, 97, 99, 116, 111, 34, 10, 34, 82, 101, 108, 97, 116, 105, 111, 110, 34, 32, 61, 32, 34, 82, 101, 108,
-97, 195, 167, 195, 163, 111, 34, 10, 34, 70, 114, 101, 113, 46, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46,
-34, 10, 34, 82, 101, 115, 46, 34, 32, 61, 32, 34, 82, 101, 115, 46, 34, 10, 34, 80, 114, 101, 124, 80,
-111, 115, 34, 32, 61, 32, 34, 80, 114, 195, 169, 124, 80, 195, 179, 115, 34, 10, 34, 69, 110, 118, 34, 32,
-61, 32, 34, 69, 110, 118, 46, 34, 10, 34, 82, 101, 108, 32, 50, 34, 32, 61, 32, 34, 82, 101, 108, 46,
-32, 50, 34, 10, 34, 76, 77, 72, 32, 100, 101, 108, 34, 32, 61, 32, 34, 65, 116, 114, 97, 115, 111, 32,
-76, 77, 72, 34, 10, 34, 76, 77, 72, 32, 109, 105, 120, 34, 32, 61, 32, 34, 77, 105, 120, 32, 76, 77,
-72, 34, 10, 34, 79, 117, 116, 34, 32, 61, 32, 34, 83, 97, 195, 173, 100, 97, 34, 10, 34, 73, 110, 34,
-32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 34, 10, 34, 79, 110, 124, 67, 111, 109, 112, 32, 111, 102,
-102, 124, 77, 117, 116, 101, 100, 124, 79, 102, 102, 34, 32, 61, 32, 34, 76, 105, 103, 46, 124, 83, 101, 109,
-32, 99, 111, 109, 112, 46, 124, 77, 117, 100, 111, 124, 68, 101, 115, 108, 46, 34, 10, 34, 76, 111, 119, 124,
-77, 105, 100, 124, 72, 105, 103, 104, 124, 77, 97, 115, 116, 101, 114, 34, 32, 61, 32, 34, 71, 114, 97, 118,
-101, 115, 124, 77, 195, 169, 100, 105, 111, 115, 124, 65, 103, 117, 100, 111, 115, 124, 77, 97, 115, 116, 101, 114,
-34, 10, 34, 80, 101, 97, 107, 124, 82, 77, 83, 34, 32, 61, 32, 34, 80, 105, 99, 111, 124, 82, 77, 83,
-34, 10, 34, 65, 100, 118, 97, 110, 99, 101, 100, 34, 32, 61, 32, 34, 65, 118, 97, 110, 195, 167, 97, 100,
-111, 34, 10, 34, 77, 97, 105, 110, 124, 65, 100, 118, 97, 110, 99, 101, 100, 34, 32, 61, 32, 34, 80, 114,
-105, 110, 99, 105, 112, 97, 108, 124, 65, 118, 97, 110, 195, 167, 97, 100, 111, 34, 10, 34, 80, 104, 97, 115,
-105, 110, 103, 34, 32, 61, 32, 34, 80, 104, 97, 115, 105, 110, 103, 34, 10, 34, 77, 105, 110, 34, 32, 61,
-32, 34, 77, 195, 173, 110, 46, 34, 10, 34, 77, 97, 120, 34, 32, 61, 32, 34, 77, 195, 161, 120, 46, 34,
-10, 34, 77, 97, 110, 117, 97, 108, 34, 32, 61, 32, 34, 77, 97, 110, 117, 97, 108, 34, 10, 34, 84, 101,
-110, 115, 105, 111, 110, 34, 32, 61, 32, 34, 84, 101, 110, 115, 195, 163, 111, 34, 10, 34, 76, 80, 34, 32,
-61, 32, 34, 80, 66, 34, 10, 34, 72, 80, 34, 32, 61, 32, 34, 80, 65, 34, 10, 34, 77, 97, 110, 117,
-97, 108, 32, 102, 114, 101, 113, 46, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 109, 97, 110, 117, 97,
-108, 34, 10, 34, 82, 97, 116, 101, 32, 49, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 49, 34, 10, 34,
-82, 97, 116, 101, 32, 50, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 50, 34, 10, 34, 68, 101, 112, 116,
-104, 32, 115, 99, 97, 108, 101, 34, 32, 61, 32, 34, 69, 115, 99, 97, 108, 97, 32, 100, 101, 32, 112, 114,
-111, 102, 46, 34, 10, 34, 80, 117, 108, 108, 45, 100, 111, 119, 110, 34, 32, 61, 32, 34, 80, 117, 108, 108,
-45, 100, 111, 119, 110, 34, 10, 34, 67, 111, 108, 111, 117, 114, 32, 103, 97, 105, 110, 34, 32, 61, 32, 34,
-71, 97, 110, 104, 111, 32, 100, 101, 32, 99, 111, 114, 34, 10, 34, 67, 111, 108, 111, 117, 114, 32, 102, 114,
-101, 113, 46, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 100, 101, 32, 99, 111, 114, 34, 10, 34, 73,
-110, 112, 117, 116, 32, 72, 80, 34, 32, 61, 32, 34, 80, 65, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100,
-97, 34, 10, 34, 70, 101, 101, 100, 98, 97, 99, 107, 32, 72, 80, 34, 32, 61, 32, 34, 80, 65, 32, 100,
-111, 32, 102, 101, 101, 100, 98, 97, 99, 107, 34, 10, 34, 69, 110, 103, 105, 110, 101, 32, 86, 50, 34, 32,
-61, 32, 34, 77, 111, 116, 111, 114, 32, 86, 50, 34, 10, 34, 73, 110, 118, 101, 114, 116, 32, 102, 101, 101,
-100, 98, 97, 99, 107, 34, 32, 61, 32, 34, 73, 110, 118, 101, 114, 116, 101, 114, 32, 102, 101, 101, 100, 98,
-97, 99, 107, 34, 10,
+111, 114, 46, 46, 46, 34, 32, 61, 32, 34, 77, 111, 110, 105, 116, 111, 114, 32, 100, 101, 32, 100, 101, 115,
+101, 109, 112, 101, 110, 104, 111, 32, 100, 111, 115, 32, 112, 108, 117, 103, 105, 110, 115, 46, 46, 46, 34, 10,
+34, 68, 114, 117, 109, 115, 32, 97, 110, 100, 32, 97, 32, 115, 121, 110, 116, 104, 32, 111, 110, 32, 116, 104,
+101, 32, 102, 105, 114, 115, 116, 32, 105, 110, 115, 101, 114, 116, 115, 44, 32, 97, 32, 108, 105, 109, 105, 116,
+101, 114, 32, 111, 110, 32, 77, 97, 115, 116, 101, 114, 34, 32, 61, 32, 34, 66, 97, 116, 101, 114, 105, 97,
+32, 101, 32, 117, 109, 32, 115, 121, 110, 116, 104, 32, 110, 111, 115, 32, 112, 114, 105, 109, 101, 105, 114, 111,
+115, 32, 105, 110, 115, 101, 114, 116, 115, 44, 32, 117, 109, 32, 108, 105, 109, 105, 116, 97, 100, 111, 114, 32,
+110, 111, 32, 77, 97, 115, 116, 101, 114, 34, 10, 34, 78, 111, 116, 104, 105, 110, 103, 32, 105, 110, 32, 116,
+104, 101, 32, 112, 97, 116, 116, 101, 114, 110, 115, 34, 32, 61, 32, 34, 78, 97, 100, 97, 32, 110, 111, 115,
+32, 112, 97, 116, 116, 101, 114, 110, 115, 34, 10, 34, 65, 32, 102, 111, 117, 114, 45, 111, 110, 45, 116, 104,
+101, 45, 102, 108, 111, 111, 114, 32, 98, 101, 97, 116, 32, 116, 111, 32, 115, 116, 97, 114, 116, 32, 102, 114,
+111, 109, 34, 32, 61, 32, 34, 85, 109, 97, 32, 98, 97, 116, 105, 100, 97, 32, 102, 111, 117, 114, 45, 111,
+110, 45, 116, 104, 101, 45, 102, 108, 111, 111, 114, 32, 112, 97, 114, 97, 32, 99, 111, 109, 101, 195, 167, 97,
+114, 34, 10, 34, 49, 52, 48, 32, 66, 80, 77, 44, 32, 102, 97, 115, 116, 32, 104, 97, 116, 115, 32, 97,
+110, 100, 32, 97, 110, 32, 56, 48, 56, 32, 119, 105, 116, 104, 32, 103, 108, 105, 100, 101, 34, 32, 61, 32,
+34, 49, 52, 48, 32, 66, 80, 77, 44, 32, 104, 97, 116, 115, 32, 114, 195, 161, 112, 105, 100, 111, 115, 32,
+101, 32, 117, 109, 32, 56, 48, 56, 32, 99, 111, 109, 32, 103, 108, 105, 100, 101, 34, 10, 34, 49, 50, 52,
+32, 66, 80, 77, 32, 104, 111, 117, 115, 101, 32, 103, 114, 111, 111, 118, 101, 32, 119, 105, 116, 104, 32, 98,
+97, 115, 115, 34, 32, 61, 32, 34, 71, 114, 111, 111, 118, 101, 32, 100, 101, 32, 104, 111, 117, 115, 101, 32,
+97, 32, 49, 50, 52, 32, 66, 80, 77, 32, 99, 111, 109, 32, 98, 97, 105, 120, 111, 34, 10, 34, 89, 111,
+117, 114, 32, 116, 101, 109, 112, 108, 97, 116, 101, 34, 32, 61, 32, 34, 83, 101, 117, 32, 109, 111, 100, 101,
+108, 111, 34, 10, 34, 78, 97, 109, 101, 32, 97, 110, 100, 32, 108, 111, 99, 97, 116, 105, 111, 110, 34, 32,
+61, 32, 34, 78, 111, 109, 101, 32, 101, 32, 108, 111, 99, 97, 108, 34, 10, 34, 73, 110, 102, 111, 114, 109,
+97, 116, 105, 111, 110, 34, 32, 61, 32, 34, 73, 110, 102, 111, 114, 109, 97, 195, 167, 195, 181, 101, 115, 34,
+10, 34, 84, 101, 109, 112, 108, 97, 116, 101, 115, 32, 97, 114, 101, 32, 46, 108, 121, 110, 120, 32, 112, 114,
+111, 106, 101, 99, 116, 115, 32, 105, 110, 32, 116, 104, 105, 115, 32, 102, 111, 108, 100, 101, 114, 32, 40, 70,
+105, 108, 101, 32, 226, 128, 186, 32, 83, 97, 118, 101, 32, 97, 115, 32, 116, 101, 109, 112, 108, 97, 116, 101,
+46, 46, 46, 32, 112, 117, 116, 115, 32, 111, 110, 101, 32, 116, 104, 101, 114, 101, 41, 34, 32, 61, 32, 34,
+77, 111, 100, 101, 108, 111, 115, 32, 115, 195, 163, 111, 32, 112, 114, 111, 106, 101, 116, 111, 115, 32, 46, 108,
+121, 110, 120, 32, 110, 101, 115, 116, 97, 32, 112, 97, 115, 116, 97, 32, 40, 65, 114, 113, 117, 105, 118, 111,
+32, 226, 128, 186, 32, 83, 97, 108, 118, 97, 114, 32, 99, 111, 109, 111, 32, 109, 111, 100, 101, 108, 111, 46,
+46, 46, 32, 99, 111, 108, 111, 99, 97, 32, 117, 109, 32, 97, 113, 117, 105, 41, 34, 10, 34, 70, 111, 108,
+100, 101, 114, 34, 32, 61, 32, 34, 80, 97, 115, 116, 97, 34, 10, 34, 83, 97, 118, 101, 32, 105, 116, 32,
+116, 104, 101, 114, 101, 32, 110, 111, 119, 34, 32, 61, 32, 34, 83, 97, 108, 118, 97, 114, 32, 108, 195, 161,
+32, 97, 103, 111, 114, 97, 34, 10, 34, 79, 102, 102, 58, 32, 116, 104, 101, 32, 112, 114, 111, 106, 101, 99,
+116, 32, 111, 112, 101, 110, 115, 32, 117, 110, 115, 97, 118, 101, 100, 32, 97, 110, 100, 32, 97, 115, 107, 115,
+32, 119, 104, 101, 114, 101, 32, 116, 111, 32, 103, 111, 32, 119, 104, 101, 110, 32, 121, 111, 117, 32, 102, 105,
+114, 115, 116, 32, 115, 97, 118, 101, 34, 32, 61, 32, 34, 68, 101, 115, 108, 105, 103, 97, 100, 111, 58, 32,
+111, 32, 112, 114, 111, 106, 101, 116, 111, 32, 97, 98, 114, 101, 32, 115, 101, 109, 32, 115, 97, 108, 118, 97,
+114, 32, 101, 32, 112, 101, 114, 103, 117, 110, 116, 97, 32, 111, 32, 108, 111, 99, 97, 108, 32, 110, 111, 32,
+112, 114, 105, 109, 101, 105, 114, 111, 32, 115, 97, 108, 118, 97, 109, 101, 110, 116, 111, 34, 10, 34, 67, 114,
+101, 97, 116, 101, 32, 97, 32, 102, 111, 108, 100, 101, 114, 32, 102, 111, 114, 32, 116, 104, 101, 32, 112, 114,
+111, 106, 101, 99, 116, 34, 32, 61, 32, 34, 67, 114, 105, 97, 114, 32, 117, 109, 97, 32, 112, 97, 115, 116,
+97, 32, 112, 97, 114, 97, 32, 111, 32, 112, 114, 111, 106, 101, 116, 111, 34, 10, 34, 115, 97, 109, 101, 32,
+97, 115, 32, 116, 104, 101, 32, 110, 97, 109, 101, 34, 32, 61, 32, 34, 105, 103, 117, 97, 108, 32, 97, 111,
+32, 110, 111, 109, 101, 34, 10, 34, 68, 111, 110, 39, 116, 32, 115, 104, 111, 119, 32, 116, 104, 105, 115, 32,
+119, 105, 110, 100, 111, 119, 32, 102, 111, 114, 32, 70, 105, 108, 101, 32, 226, 128, 186, 32, 78, 101, 119, 34,
+32, 61, 32, 34, 78, 195, 163, 111, 32, 109, 111, 115, 116, 114, 97, 114, 32, 101, 115, 116, 97, 32, 106, 97,
+110, 101, 108, 97, 32, 101, 109, 32, 65, 114, 113, 117, 105, 118, 111, 32, 226, 128, 186, 32, 78, 111, 118, 111,
+34, 10, 34, 70, 105, 108, 101, 32, 226, 128, 186, 32, 78, 101, 119, 32, 116, 104, 101, 110, 32, 115, 116, 97,
+114, 116, 115, 32, 116, 104, 101, 32, 100, 101, 102, 97, 117, 108, 116, 32, 112, 114, 111, 106, 101, 99, 116, 32,
+97, 116, 32, 111, 110, 99, 101, 59, 32, 116, 104, 105, 115, 32, 119, 105, 110, 100, 111, 119, 32, 115, 116, 97,
+121, 115, 32, 105, 110, 32, 70, 105, 108, 101, 32, 226, 128, 186, 32, 78, 101, 119, 32, 112, 114, 111, 106, 101,
+99, 116, 46, 46, 46, 34, 32, 61, 32, 34, 65, 114, 113, 117, 105, 118, 111, 32, 226, 128, 186, 32, 78, 111,
+118, 111, 32, 112, 97, 115, 115, 97, 32, 97, 32, 97, 98, 114, 105, 114, 32, 111, 32, 112, 114, 111, 106, 101,
+116, 111, 32, 112, 97, 100, 114, 195, 163, 111, 32, 100, 105, 114, 101, 116, 111, 59, 32, 101, 115, 116, 97, 32,
+106, 97, 110, 101, 108, 97, 32, 99, 111, 110, 116, 105, 110, 117, 97, 32, 101, 109, 32, 65, 114, 113, 117, 105,
+118, 111, 32, 226, 128, 186, 32, 78, 111, 118, 111, 32, 112, 114, 111, 106, 101, 116, 111, 46, 46, 46, 34, 10,
+34, 78, 111, 116, 32, 115, 97, 118, 101, 100, 32, 117, 110, 116, 105, 108, 32, 121, 111, 117, 32, 99, 104, 111,
+111, 115, 101, 32, 70, 105, 108, 101, 32, 226, 128, 186, 32, 83, 97, 118, 101, 34, 32, 61, 32, 34, 78, 195,
+163, 111, 32, 195, 169, 32, 115, 97, 108, 118, 111, 32, 97, 116, 195, 169, 32, 118, 111, 99, 195, 170, 32, 101,
+115, 99, 111, 108, 104, 101, 114, 32, 65, 114, 113, 117, 105, 118, 111, 32, 226, 128, 186, 32, 83, 97, 108, 118,
+97, 114, 34, 10, 34, 70, 111, 108, 100, 101, 114, 32, 102, 111, 114, 32, 116, 104, 101, 32, 112, 114, 111, 106,
+101, 99, 116, 34, 32, 61, 32, 34, 80, 97, 115, 116, 97, 32, 100, 111, 32, 112, 114, 111, 106, 101, 116, 111,
+34, 10, 34, 123, 48, 125, 32, 97, 108, 114, 101, 97, 100, 121, 32, 101, 120, 105, 115, 116, 115, 46, 32, 67,
+104, 111, 111, 115, 101, 32, 97, 110, 111, 116, 104, 101, 114, 32, 110, 97, 109, 101, 32, 111, 114, 32, 102, 111,
+108, 100, 101, 114, 46, 34, 32, 61, 32, 34, 123, 48, 125, 32, 106, 195, 161, 32, 101, 120, 105, 115, 116, 101,
+46, 32, 69, 115, 99, 111, 108, 104, 97, 32, 111, 117, 116, 114, 111, 32, 110, 111, 109, 101, 32, 111, 117, 32,
+112, 97, 115, 116, 97, 46, 34, 10, 34, 79, 112, 101, 110, 32, 116, 104, 101, 32, 116, 101, 109, 112, 108, 97,
+116, 101, 115, 32, 102, 111, 108, 100, 101, 114, 34, 32, 61, 32, 34, 65, 98, 114, 105, 114, 32, 97, 32, 112,
+97, 115, 116, 97, 32, 100, 101, 32, 109, 111, 100, 101, 108, 111, 115, 34, 10, 34, 67, 104, 111, 111, 115, 101,
+46, 46, 46, 34, 32, 61, 32, 34, 69, 115, 99, 111, 108, 104, 101, 114, 46, 46, 46, 34, 10, 34, 67, 114,
+101, 97, 116, 101, 34, 32, 61, 32, 34, 67, 114, 105, 97, 114, 34, 10, 34, 99, 111, 117, 108, 100, 32, 110,
+111, 116, 32, 99, 114, 101, 97, 116, 101, 32, 123, 48, 125, 34, 32, 61, 32, 34, 110, 195, 163, 111, 32, 102,
+111, 105, 32, 112, 111, 115, 115, 195, 173, 118, 101, 108, 32, 99, 114, 105, 97, 114, 32, 123, 48, 125, 34, 10,
+34, 65, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 115, 32, 97, 110, 100, 32, 109, 101, 114, 103, 105, 110,
+103, 46, 46, 46, 34, 32, 61, 32, 34, 65, 114, 114, 97, 110, 106, 111, 115, 32, 101, 32, 109, 101, 115, 99,
+108, 97, 103, 101, 109, 46, 46, 46, 34, 10, 34, 80, 114, 111, 112, 101, 114, 116, 105, 101, 115, 46, 46, 46,
+34, 32, 61, 32, 34, 80, 114, 111, 112, 114, 105, 101, 100, 97, 100, 101, 115, 46, 46, 46, 34, 10, 34, 87,
+104, 101, 114, 101, 34, 32, 61, 32, 34, 79, 110, 100, 101, 34, 10, 34, 78, 111, 119, 34, 32, 61, 32, 34,
+65, 103, 111, 114, 97, 34, 10, 34, 65, 118, 101, 114, 97, 103, 101, 34, 32, 61, 32, 34, 77, 195, 169, 100,
+105, 97, 34, 10, 34, 78, 111, 116, 104, 105, 110, 103, 32, 116, 111, 32, 115, 104, 111, 119, 34, 32, 61, 32,
+34, 78, 97, 100, 97, 32, 112, 97, 114, 97, 32, 109, 111, 115, 116, 114, 97, 114, 34, 10, 34, 70, 105, 110,
+100, 34, 32, 61, 32, 34, 66, 117, 115, 99, 97, 114, 34, 10, 34, 112, 108, 117, 103, 105, 110, 44, 32, 99,
+104, 97, 110, 110, 101, 108, 32, 111, 114, 32, 105, 110, 115, 101, 114, 116, 34, 32, 61, 32, 34, 112, 108, 117,
+103, 105, 110, 44, 32, 99, 97, 110, 97, 108, 32, 111, 117, 32, 105, 110, 115, 101, 114, 116, 34, 10, 34, 80,
+108, 117, 103, 105, 110, 115, 32, 111, 110, 108, 121, 34, 32, 61, 32, 34, 83, 195, 179, 32, 112, 108, 117, 103,
+105, 110, 115, 34, 10, 34, 79, 110, 108, 121, 32, 116, 104, 105, 114, 100, 45, 112, 97, 114, 116, 121, 32, 112,
+108, 117, 103, 105, 110, 115, 32, 40, 86, 83, 84, 51, 32, 47, 32, 67, 76, 65, 80, 41, 44, 32, 110, 111,
+116, 32, 76, 89, 78, 88, 39, 115, 32, 111, 119, 110, 32, 105, 110, 115, 116, 114, 117, 109, 101, 110, 116, 115,
+32, 97, 110, 100, 32, 101, 102, 102, 101, 99, 116, 115, 34, 32, 61, 32, 34, 83, 195, 179, 32, 112, 108, 117,
+103, 105, 110, 115, 32, 100, 101, 32, 116, 101, 114, 99, 101, 105, 114, 111, 115, 32, 40, 86, 83, 84, 51, 32,
+47, 32, 67, 76, 65, 80, 41, 44, 32, 110, 195, 163, 111, 32, 111, 115, 32, 105, 110, 115, 116, 114, 117, 109,
+101, 110, 116, 111, 115, 32, 101, 32, 101, 102, 101, 105, 116, 111, 115, 32, 100, 111, 32, 112, 114, 195, 179, 112,
+114, 105, 111, 32, 76, 89, 78, 88, 34, 10, 34, 70, 114, 101, 101, 122, 101, 34, 32, 61, 32, 34, 67, 111,
+110, 103, 101, 108, 97, 114, 34, 10, 34, 83, 116, 111, 112, 115, 32, 117, 112, 100, 97, 116, 105, 110, 103, 32,
+116, 104, 101, 32, 110, 117, 109, 98, 101, 114, 115, 34, 32, 61, 32, 34, 80, 97, 114, 97, 32, 100, 101, 32,
+97, 116, 117, 97, 108, 105, 122, 97, 114, 32, 111, 115, 32, 110, 195, 186, 109, 101, 114, 111, 115, 34, 10, 34,
+82, 101, 115, 101, 116, 32, 111, 110, 32, 112, 108, 97, 121, 34, 32, 61, 32, 34, 90, 101, 114, 97, 114, 32,
+97, 111, 32, 116, 111, 99, 97, 114, 34, 10, 34, 65, 118, 101, 114, 97, 103, 101, 115, 32, 97, 110, 100, 32,
+112, 101, 97, 107, 115, 32, 115, 116, 97, 114, 116, 32, 97, 103, 97, 105, 110, 32, 101, 97, 99, 104, 32, 116,
+105, 109, 101, 32, 112, 108, 97, 121, 98, 97, 99, 107, 32, 115, 116, 97, 114, 116, 115, 34, 32, 61, 32, 34,
+77, 195, 169, 100, 105, 97, 115, 32, 101, 32, 112, 105, 99, 111, 115, 32, 114, 101, 99, 111, 109, 101, 195, 167,
+97, 109, 32, 99, 97, 100, 97, 32, 118, 101, 122, 32, 113, 117, 101, 32, 97, 32, 114, 101, 112, 114, 111, 100,
+117, 195, 167, 195, 163, 111, 32, 99, 111, 109, 101, 195, 167, 97, 34, 10, 34, 49, 48, 48, 37, 32, 61, 32,
+111, 110, 101, 32, 112, 114, 111, 99, 101, 115, 115, 111, 114, 32, 99, 111, 114, 101, 32, 98, 117, 115, 121, 32,
+102, 111, 114, 32, 116, 104, 101, 32, 119, 104, 111, 108, 101, 32, 116, 105, 109, 101, 32, 116, 104, 101, 32, 97,
+117, 100, 105, 111, 32, 108, 97, 115, 116, 115, 34, 32, 61, 32, 34, 49, 48, 48, 37, 32, 61, 32, 117, 109,
+32, 110, 195, 186, 99, 108, 101, 111, 32, 100, 111, 32, 112, 114, 111, 99, 101, 115, 115, 97, 100, 111, 114, 32,
+111, 99, 117, 112, 97, 100, 111, 32, 100, 117, 114, 97, 110, 116, 101, 32, 116, 111, 100, 111, 32, 111, 32, 116,
+101, 109, 112, 111, 32, 113, 117, 101, 32, 111, 32, 195, 161, 117, 100, 105, 111, 32, 100, 117, 114, 97, 34, 10,
+34, 67, 104, 97, 110, 110, 101, 108, 32, 123, 48, 125, 34, 32, 61, 32, 34, 67, 97, 110, 97, 108, 32, 123,
+48, 125, 34, 10, 34, 115, 108, 111, 116, 32, 123, 48, 125, 34, 32, 61, 32, 34, 115, 108, 111, 116, 32, 123,
+48, 125, 34, 10, 34, 87, 104, 111, 108, 101, 32, 114, 97, 99, 107, 58, 32, 123, 48, 125, 32, 40, 112, 101,
+97, 107, 32, 123, 49, 125, 41, 34, 32, 61, 32, 34, 82, 97, 99, 107, 32, 105, 110, 116, 101, 105, 114, 111,
+58, 32, 123, 48, 125, 32, 40, 112, 105, 99, 111, 32, 123, 49, 125, 41, 34, 10, 34, 80, 108, 117, 103, 105,
+110, 32, 112, 101, 114, 102, 111, 114, 109, 97, 110, 99, 101, 32, 109, 111, 110, 105, 116, 111, 114, 34, 32, 61,
+32, 34, 77, 111, 110, 105, 116, 111, 114, 32, 100, 101, 32, 100, 101, 115, 101, 109, 112, 101, 110, 104, 111, 32,
+100, 111, 115, 32, 112, 108, 117, 103, 105, 110, 115, 34, 10, 34, 79, 110, 101, 32, 111, 99, 116, 97, 118, 101,
+32, 100, 111, 119, 110, 34, 32, 61, 32, 34, 85, 109, 97, 32, 111, 105, 116, 97, 118, 97, 32, 97, 98, 97,
+105, 120, 111, 34, 10, 34, 79, 110, 101, 32, 111, 99, 116, 97, 118, 101, 32, 117, 112, 34, 32, 61, 32, 34,
+85, 109, 97, 32, 111, 105, 116, 97, 118, 97, 32, 97, 99, 105, 109, 97, 34, 10, 34, 83, 109, 97, 108, 108,
+32, 107, 101, 121, 115, 34, 32, 61, 32, 34, 84, 101, 99, 108, 97, 115, 32, 112, 101, 113, 117, 101, 110, 97,
+115, 34, 10, 34, 77, 101, 100, 105, 117, 109, 32, 107, 101, 121, 115, 34, 32, 61, 32, 34, 84, 101, 99, 108,
+97, 115, 32, 109, 195, 169, 100, 105, 97, 115, 34, 10, 34, 76, 97, 114, 103, 101, 32, 107, 101, 121, 115, 34,
+32, 61, 32, 34, 84, 101, 99, 108, 97, 115, 32, 103, 114, 97, 110, 100, 101, 115, 34, 10, 34, 86, 101, 108,
+111, 99, 105, 116, 121, 58, 32, 119, 104, 101, 114, 101, 32, 121, 111, 117, 32, 116, 111, 117, 99, 104, 34, 32,
+61, 32, 34, 86, 101, 108, 111, 99, 105, 116, 121, 58, 32, 111, 110, 100, 101, 32, 118, 111, 99, 195, 170, 32,
+116, 111, 99, 97, 34, 10, 34, 86, 101, 108, 111, 99, 105, 116, 121, 58, 32, 102, 105, 120, 101, 100, 34, 32,
+61, 32, 34, 86, 101, 108, 111, 99, 105, 116, 121, 58, 32, 102, 105, 120, 97, 34, 10, 34, 87, 104, 101, 114,
+101, 32, 121, 111, 117, 32, 116, 111, 117, 99, 104, 58, 32, 110, 101, 97, 114, 32, 116, 104, 101, 32, 116, 111,
+112, 32, 111, 102, 32, 97, 32, 107, 101, 121, 32, 112, 108, 97, 121, 115, 32, 115, 111, 102, 116, 44, 32, 110,
+101, 97, 114, 32, 116, 104, 101, 32, 98, 111, 116, 116, 111, 109, 32, 108, 111, 117, 100, 34, 32, 61, 32, 34,
+79, 110, 100, 101, 32, 118, 111, 99, 195, 170, 32, 116, 111, 99, 97, 58, 32, 112, 101, 114, 116, 111, 32, 100,
+111, 32, 116, 111, 112, 111, 32, 100, 97, 32, 116, 101, 99, 108, 97, 32, 116, 111, 99, 97, 32, 102, 114, 97,
+99, 111, 44, 32, 112, 101, 114, 116, 111, 32, 100, 97, 32, 98, 97, 115, 101, 32, 102, 111, 114, 116, 101, 34,
+10, 34, 78, 111, 116, 101, 32, 110, 97, 109, 101, 115, 34, 32, 61, 32, 34, 78, 111, 109, 101, 115, 32, 100,
+97, 115, 32, 110, 111, 116, 97, 115, 34, 10, 34, 80, 108, 97, 121, 115, 58, 32, 123, 48, 125, 34, 32, 61,
+32, 34, 84, 111, 99, 97, 58, 32, 123, 48, 125, 34, 10, 34, 83, 101, 108, 101, 99, 116, 32, 97, 32, 99,
+104, 97, 110, 110, 101, 108, 32, 105, 110, 32, 116, 104, 101, 32, 67, 104, 97, 110, 110, 101, 108, 32, 82, 97,
+99, 107, 34, 32, 61, 32, 34, 83, 101, 108, 101, 99, 105, 111, 110, 101, 32, 117, 109, 32, 99, 97, 110, 97,
+108, 32, 110, 111, 32, 67, 104, 97, 110, 110, 101, 108, 32, 82, 97, 99, 107, 34, 10, 10, 35, 32, 45, 45,
+45, 32, 78, 97, 116, 105, 118, 101, 32, 112, 108, 117, 103, 105, 110, 32, 119, 105, 110, 100, 111, 119, 115, 32,
+105, 110, 32, 70, 76, 39, 115, 32, 97, 114, 114, 97, 110, 103, 101, 109, 101, 110, 116, 32, 40, 114, 111, 117,
+110, 100, 32, 57, 51, 41, 10, 34, 40, 110, 111, 32, 112, 114, 101, 115, 101, 116, 41, 34, 32, 61, 32, 34,
+40, 115, 101, 109, 32, 112, 114, 101, 115, 101, 116, 41, 34, 10, 34, 65, 109, 112, 32, 49, 34, 32, 61, 32,
+34, 65, 109, 112, 32, 49, 34, 10, 34, 65, 109, 112, 32, 50, 34, 32, 61, 32, 34, 65, 109, 112, 32, 50,
+34, 10, 34, 65, 116, 116, 34, 32, 61, 32, 34, 65, 116, 116, 34, 10, 34, 66, 87, 34, 32, 61, 32, 34,
+76, 97, 114, 103, 46, 34, 10, 34, 66, 97, 110, 100, 32, 112, 97, 115, 115, 34, 32, 61, 32, 34, 80, 97,
+115, 115, 97, 45, 98, 97, 110, 100, 97, 34, 10, 34, 66, 97, 115, 115, 34, 32, 61, 32, 34, 71, 114, 97,
+118, 101, 115, 34, 10, 34, 66, 105, 116, 115, 34, 32, 61, 32, 34, 66, 105, 116, 115, 34, 10, 34, 66, 114,
+105, 103, 104, 116, 110, 101, 115, 115, 34, 32, 61, 32, 34, 66, 114, 105, 108, 104, 111, 34, 10, 34, 66, 121,
+112, 97, 115, 115, 34, 32, 61, 32, 34, 66, 121, 112, 97, 115, 115, 34, 10, 34, 67, 101, 105, 108, 34, 32,
+61, 32, 34, 84, 101, 116, 111, 34, 10, 34, 67, 101, 110, 116, 101, 114, 34, 32, 61, 32, 34, 67, 101, 110,
+116, 114, 111, 34, 10, 34, 67, 104, 97, 114, 97, 99, 116, 101, 114, 34, 32, 61, 32, 34, 67, 97, 114, 195,
+161, 116, 101, 114, 34, 10, 34, 67, 111, 109, 112, 34, 32, 61, 32, 34, 67, 111, 109, 112, 34, 10, 34, 67,
+114, 111, 115, 115, 32, 99, 117, 116, 111, 102, 102, 34, 32, 61, 32, 34, 67, 111, 114, 116, 101, 32, 99, 114,
+117, 122, 97, 100, 111, 34, 10, 34, 67, 114, 111, 115, 115, 32, 116, 121, 112, 101, 34, 32, 61, 32, 34, 84,
+105, 112, 111, 32, 99, 114, 117, 122, 97, 100, 111, 34, 10, 34, 67, 114, 111, 115, 115, 34, 32, 61, 32, 34,
+67, 114, 117, 122, 97, 100, 111, 34, 10, 34, 67, 114, 111, 115, 115, 111, 118, 101, 114, 115, 34, 32, 61, 32,
+34, 67, 114, 111, 115, 115, 111, 118, 101, 114, 115, 34, 10, 34, 67, 117, 116, 111, 102, 102, 32, 102, 114, 101,
+113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 100, 101, 32, 99, 111, 114, 116, 101, 34, 10, 34, 68,
+97, 109, 112, 34, 32, 61, 32, 34, 65, 109, 111, 114, 116, 101, 99, 46, 34, 10, 34, 68, 101, 99, 34, 32,
+61, 32, 34, 68, 101, 99, 97, 105, 109, 46, 34, 10, 34, 68, 101, 108, 97, 121, 32, 49, 34, 32, 61, 32,
+34, 68, 101, 108, 97, 121, 32, 49, 34, 10, 34, 68, 101, 108, 97, 121, 32, 50, 34, 32, 61, 32, 34, 68,
+101, 108, 97, 121, 32, 50, 34, 10, 34, 68, 101, 108, 97, 121, 32, 109, 111, 100, 101, 108, 34, 32, 61, 32,
+34, 77, 111, 100, 101, 108, 111, 32, 100, 111, 32, 100, 101, 108, 97, 121, 34, 10, 34, 68, 101, 108, 97, 121,
+32, 116, 105, 109, 101, 34, 32, 61, 32, 34, 84, 101, 109, 112, 111, 32, 100, 111, 32, 100, 101, 108, 97, 121,
+34, 10, 34, 68, 101, 112, 116, 104, 34, 32, 61, 32, 34, 80, 114, 111, 102, 117, 110, 100, 105, 100, 97, 100,
+101, 34, 10, 34, 68, 105, 102, 102, 34, 32, 61, 32, 34, 68, 105, 102, 117, 115, 195, 163, 111, 34, 10, 34,
+68, 105, 102, 102, 117, 115, 105, 111, 110, 34, 32, 61, 32, 34, 68, 105, 102, 117, 115, 195, 163, 111, 34, 10,
+34, 68, 105, 114, 101, 99, 116, 32, 97, 109, 112, 34, 32, 61, 32, 34, 65, 109, 112, 32, 100, 105, 114, 101,
+116, 111, 34, 10, 34, 68, 114, 121, 34, 32, 61, 32, 34, 83, 101, 99, 111, 34, 10, 34, 69, 82, 34, 32,
+61, 32, 34, 82, 80, 34, 10, 34, 69, 100, 105, 116, 111, 114, 34, 32, 61, 32, 34, 69, 100, 105, 116, 111,
+114, 34, 10, 34, 69, 110, 118, 101, 108, 111, 112, 101, 34, 32, 61, 32, 34, 69, 110, 118, 101, 108, 111, 112,
+101, 34, 10, 34, 70, 97, 115, 116, 32, 100, 105, 115, 116, 34, 32, 61, 32, 34, 70, 97, 115, 116, 32, 100,
+105, 115, 116, 34, 10, 34, 70, 101, 101, 100, 34, 32, 61, 32, 34, 82, 101, 97, 108, 105, 109, 46, 34, 10,
+34, 70, 101, 101, 100, 98, 97, 99, 107, 32, 100, 105, 115, 116, 111, 114, 116, 105, 111, 110, 34, 32, 61, 32,
+34, 68, 105, 115, 116, 111, 114, 195, 167, 195, 163, 111, 32, 100, 97, 32, 114, 101, 97, 108, 105, 109, 101, 110,
+116, 97, 195, 167, 195, 163, 111, 34, 10, 34, 70, 101, 101, 100, 98, 97, 99, 107, 34, 32, 61, 32, 34, 82,
+101, 97, 108, 105, 109, 101, 110, 116, 97, 195, 167, 195, 163, 111, 34, 10, 34, 70, 101, 101, 100, 98, 97, 99,
+107, 124, 70, 101, 101, 100, 102, 111, 114, 119, 97, 114, 100, 34, 32, 61, 32, 34, 82, 101, 97, 108, 105, 109,
+101, 110, 116, 97, 195, 167, 195, 163, 111, 124, 65, 108, 105, 109, 101, 110, 116, 97, 195, 167, 195, 163, 111, 32,
+100, 105, 114, 101, 116, 97, 34, 10, 34, 70, 114, 101, 113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 34,
+10, 34, 72, 46, 99, 117, 116, 34, 32, 61, 32, 34, 67, 111, 114, 116, 101, 32, 65, 46, 34, 10, 34, 72,
+81, 34, 32, 61, 32, 34, 72, 81, 34, 10, 34, 72, 105, 103, 104, 32, 98, 97, 110, 100, 34, 32, 61, 32,
+34, 66, 97, 110, 100, 97, 32, 97, 108, 116, 97, 34, 10, 34, 72, 105, 103, 104, 32, 109, 105, 100, 34, 32,
+61, 32, 34, 77, 195, 169, 100, 105, 111, 45, 97, 103, 117, 100, 111, 34, 10, 34, 72, 105, 103, 104, 32, 112,
+97, 115, 115, 34, 32, 61, 32, 34, 80, 97, 115, 115, 97, 45, 97, 108, 116, 97, 115, 34, 10, 34, 73, 110,
+112, 117, 116, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 34, 10, 34, 73, 110, 118, 32, 102, 101,
+101, 100, 98, 97, 99, 107, 34, 32, 61, 32, 34, 73, 110, 118, 46, 32, 114, 101, 97, 108, 105, 109, 46, 34,
+10, 34, 73, 110, 118, 32, 119, 101, 116, 34, 32, 61, 32, 34, 73, 110, 118, 46, 32, 109, 111, 108, 104, 97,
+100, 111, 34, 10, 34, 73, 110, 118, 101, 114, 116, 34, 32, 61, 32, 34, 73, 110, 118, 101, 114, 116, 101, 114,
+34, 10, 34, 75, 101, 101, 112, 32, 112, 105, 116, 99, 104, 34, 32, 61, 32, 34, 77, 97, 110, 116, 101, 114,
+32, 116, 111, 109, 34, 10, 34, 75, 110, 101, 101, 34, 32, 61, 32, 34, 74, 111, 101, 108, 104, 111, 34, 10,
+34, 76, 46, 99, 117, 116, 34, 32, 61, 32, 34, 67, 111, 114, 116, 101, 32, 66, 46, 34, 10, 34, 76, 70,
+79, 32, 49, 32, 102, 114, 101, 113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 76, 70, 79, 32, 49,
+34, 10, 34, 76, 70, 79, 32, 49, 32, 119, 97, 118, 101, 34, 32, 61, 32, 34, 79, 110, 100, 97, 32, 76,
+70, 79, 32, 49, 34, 10, 34, 76, 70, 79, 32, 50, 32, 102, 114, 101, 113, 34, 32, 61, 32, 34, 70, 114,
+101, 113, 46, 32, 76, 70, 79, 32, 50, 34, 10, 34, 76, 70, 79, 32, 50, 32, 119, 97, 118, 101, 34, 32,
+61, 32, 34, 79, 110, 100, 97, 32, 76, 70, 79, 32, 50, 34, 10, 34, 76, 70, 79, 32, 51, 32, 102, 114,
+101, 113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 76, 70, 79, 32, 51, 34, 10, 34, 76, 70, 79,
+32, 51, 32, 119, 97, 118, 101, 34, 32, 61, 32, 34, 79, 110, 100, 97, 32, 76, 70, 79, 32, 51, 34, 10,
+34, 76, 80, 124, 72, 80, 124, 66, 80, 124, 79, 102, 102, 34, 32, 61, 32, 34, 80, 66, 124, 80, 65, 124,
+80, 70, 124, 68, 101, 115, 108, 46, 34, 10, 34, 76, 105, 109, 105, 116, 101, 114, 34, 32, 61, 32, 34, 76,
+105, 109, 105, 116, 97, 100, 111, 114, 34, 10, 34, 76, 105, 109, 105, 116, 124, 67, 111, 109, 112, 34, 32, 61,
+32, 34, 76, 105, 109, 105, 116, 46, 124, 67, 111, 109, 112, 46, 34, 10, 34, 76, 105, 109, 105, 116, 124, 83,
+97, 116, 34, 32, 61, 32, 34, 76, 105, 109, 105, 116, 97, 114, 124, 83, 97, 116, 117, 114, 97, 114, 34, 10,
+34, 76, 111, 117, 100, 110, 101, 115, 115, 34, 32, 61, 32, 34, 86, 111, 108, 117, 109, 101, 34, 10, 34, 76,
+111, 119, 32, 98, 97, 110, 100, 34, 32, 61, 32, 34, 66, 97, 110, 100, 97, 32, 98, 97, 105, 120, 97, 34,
+10, 34, 76, 111, 119, 32, 109, 105, 100, 34, 32, 61, 32, 34, 77, 195, 169, 100, 105, 111, 45, 103, 114, 97,
+118, 101, 34, 10, 34, 76, 111, 119, 32, 112, 97, 115, 115, 34, 32, 61, 32, 34, 80, 97, 115, 115, 97, 45,
+98, 97, 105, 120, 97, 115, 34, 10, 34, 77, 105, 100, 32, 98, 97, 110, 100, 34, 32, 61, 32, 34, 66, 97,
+110, 100, 97, 32, 109, 195, 169, 100, 105, 97, 34, 10, 34, 77, 105, 100, 124, 83, 105, 100, 101, 34, 32, 61,
+32, 34, 77, 105, 100, 124, 83, 105, 100, 101, 34, 10, 34, 77, 111, 100, 32, 97, 109, 112, 34, 32, 61, 32,
+34, 65, 109, 112, 32, 109, 111, 100, 46, 34, 10, 34, 77, 111, 100, 32, 102, 114, 101, 113, 34, 32, 61, 32,
+34, 70, 114, 101, 113, 46, 32, 109, 111, 100, 46, 34, 10, 34, 77, 111, 100, 34, 32, 61, 32, 34, 77, 111,
+100, 46, 34, 10, 34, 77, 111, 100, 117, 108, 97, 116, 105, 111, 110, 34, 32, 61, 32, 34, 77, 111, 100, 117,
+108, 97, 195, 167, 195, 163, 111, 34, 10, 34, 77, 111, 110, 111, 124, 83, 116, 101, 114, 101, 111, 124, 80, 105,
+110, 103, 32, 112, 111, 110, 103, 124, 79, 102, 102, 34, 32, 61, 32, 34, 77, 111, 110, 111, 124, 69, 115, 116,
+195, 169, 114, 101, 111, 124, 80, 105, 110, 103, 117, 101, 45, 112, 111, 110, 103, 117, 101, 124, 68, 101, 115, 108,
+46, 34, 10, 34, 78, 101, 120, 116, 32, 112, 114, 101, 115, 101, 116, 34, 32, 61, 32, 34, 80, 114, 195, 179,
+120, 105, 109, 111, 32, 112, 114, 101, 115, 101, 116, 34, 10, 34, 78, 111, 32, 70, 76, 32, 112, 114, 101, 115,
+101, 116, 115, 32, 102, 111, 117, 110, 100, 32, 102, 111, 114, 32, 116, 104, 105, 115, 32, 112, 108, 117, 103, 105,
+110, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 32, 112, 114, 101, 115, 101, 116, 32, 100, 111, 32, 70,
+76, 32, 101, 110, 99, 111, 110, 116, 114, 97, 100, 111, 32, 112, 97, 114, 97, 32, 101, 115, 116, 101, 32, 112,
+108, 117, 103, 105, 110, 34, 10, 34, 78, 111, 105, 115, 101, 32, 103, 97, 116, 101, 34, 32, 61, 32, 34, 78,
+111, 105, 115, 101, 32, 103, 97, 116, 101, 34, 10, 34, 78, 111, 110, 101, 124, 76, 101, 102, 116, 124, 82, 105,
+103, 104, 116, 34, 32, 61, 32, 34, 78, 101, 110, 104, 117, 109, 124, 69, 115, 113, 117, 101, 114, 100, 111, 124,
+68, 105, 114, 101, 105, 116, 111, 34, 10, 34, 78, 111, 114, 109, 97, 108, 124, 70, 114, 101, 101, 122, 101, 124,
+83, 117, 115, 116, 97, 105, 110, 34, 32, 61, 32, 34, 78, 111, 114, 109, 97, 108, 124, 67, 111, 110, 103, 101,
+108, 97, 114, 124, 83, 117, 115, 116, 101, 110, 116, 97, 114, 34, 10, 34, 79, 102, 102, 124, 79, 110, 34, 32,
+61, 32, 34, 68, 101, 115, 108, 46, 124, 76, 105, 103, 46, 34, 10, 34, 79, 102, 102, 124, 80, 101, 97, 107,
+124, 76, 111, 119, 32, 115, 104, 101, 108, 102, 124, 72, 105, 103, 104, 32, 115, 104, 101, 108, 102, 124, 76, 111,
+119, 32, 99, 117, 116, 124, 72, 105, 103, 104, 32, 99, 117, 116, 124, 66, 97, 110, 100, 45, 112, 97, 115, 115,
+124, 78, 111, 116, 99, 104, 34, 32, 61, 32, 34, 68, 101, 115, 108, 105, 103, 97, 100, 97, 124, 80, 105, 99,
+111, 124, 80, 114, 97, 116, 101, 108, 101, 105, 114, 97, 32, 103, 114, 97, 118, 101, 124, 80, 114, 97, 116, 101,
+108, 101, 105, 114, 97, 32, 97, 103, 117, 100, 97, 124, 67, 111, 114, 116, 101, 32, 100, 101, 32, 103, 114, 97,
+118, 101, 115, 124, 67, 111, 114, 116, 101, 32, 100, 101, 32, 97, 103, 117, 100, 111, 115, 124, 80, 97, 115, 115,
+97, 45, 98, 97, 110, 100, 97, 124, 78, 111, 116, 99, 104, 34, 10, 34, 79, 102, 102, 124, 87, 101, 116, 124,
+68, 101, 99, 97, 121, 34, 32, 61, 32, 34, 68, 101, 115, 108, 46, 124, 77, 111, 108, 104, 97, 100, 111, 124,
+68, 101, 99, 97, 105, 109, 101, 110, 116, 111, 34, 10, 34, 79, 112, 101, 110, 32, 116, 104, 101, 32, 101, 102,
+102, 101, 99, 116, 39, 115, 32, 119, 105, 110, 100, 111, 119, 32, 40, 105, 116, 115, 32, 102, 117, 108, 108, 32,
+99, 111, 110, 116, 114, 111, 108, 115, 44, 32, 97, 115, 32, 105, 110, 32, 70, 76, 41, 59, 32, 100, 111, 117,
+98, 108, 101, 45, 99, 108, 105, 99, 107, 105, 110, 103, 32, 116, 104, 101, 32, 115, 108, 111, 116, 32, 100, 111,
+101, 115, 32, 116, 104, 101, 32, 115, 97, 109, 101, 34, 32, 61, 32, 34, 65, 98, 114, 101, 32, 97, 32, 106,
+97, 110, 101, 108, 97, 32, 100, 111, 32, 101, 102, 101, 105, 116, 111, 32, 40, 116, 111, 100, 111, 115, 32, 111,
+115, 32, 99, 111, 110, 116, 114, 111, 108, 101, 115, 44, 32, 99, 111, 109, 111, 32, 110, 111, 32, 70, 76, 41,
+59, 32, 99, 108, 105, 99, 97, 114, 32, 100, 117, 97, 115, 32, 118, 101, 122, 101, 115, 32, 110, 111, 32, 115,
+108, 111, 116, 32, 102, 97, 122, 32, 111, 32, 109, 101, 115, 109, 111, 34, 10, 34, 79, 112, 116, 105, 111, 110,
+115, 58, 32, 112, 114, 101, 115, 101, 116, 115, 44, 32, 114, 101, 115, 101, 116, 44, 32, 98, 121, 112, 97, 115,
+115, 34, 32, 61, 32, 34, 79, 112, 195, 167, 195, 181, 101, 115, 58, 32, 112, 114, 101, 115, 101, 116, 115, 44,
+32, 114, 101, 115, 116, 97, 117, 114, 97, 114, 44, 32, 98, 121, 112, 97, 115, 115, 34, 10, 34, 79, 117, 116,
+112, 117, 116, 34, 32, 61, 32, 34, 83, 97, 195, 173, 100, 97, 34, 10, 34, 80, 46, 32, 100, 101, 108, 97,
+121, 34, 32, 61, 32, 34, 80, 114, 195, 169, 45, 100, 101, 108, 97, 121, 34, 10, 34, 80, 97, 103, 101, 58,
+32, 115, 119, 105, 116, 99, 104, 32, 116, 104, 101, 32, 99, 111, 110, 116, 114, 111, 108, 115, 32, 115, 104, 111,
+119, 110, 34, 32, 61, 32, 34, 80, 195, 161, 103, 105, 110, 97, 58, 32, 116, 114, 111, 99, 97, 32, 111, 115,
+32, 99, 111, 110, 116, 114, 111, 108, 101, 115, 32, 109, 111, 115, 116, 114, 97, 100, 111, 115, 34, 10, 34, 80,
+101, 97, 107, 32, 81, 34, 32, 61, 32, 34, 81, 32, 100, 111, 32, 112, 105, 99, 111, 34, 10, 34, 80, 101,
+97, 107, 32, 102, 114, 101, 113, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 100, 111, 32, 112, 105, 99,
+111, 34, 10, 34, 80, 101, 97, 107, 32, 103, 97, 105, 110, 34, 32, 61, 32, 34, 71, 97, 110, 104, 111, 32,
+100, 111, 32, 112, 105, 99, 111, 34, 10, 34, 80, 104, 97, 115, 101, 32, 111, 102, 102, 115, 101, 116, 34, 32,
+61, 32, 34, 68, 101, 115, 118, 105, 111, 32, 100, 101, 32, 102, 97, 115, 101, 34, 10, 34, 80, 105, 116, 99,
+104, 32, 49, 34, 32, 61, 32, 34, 84, 111, 109, 32, 49, 34, 10, 34, 80, 105, 116, 99, 104, 32, 50, 34,
+32, 61, 32, 34, 84, 111, 109, 32, 50, 34, 10, 34, 80, 105, 116, 99, 104, 32, 115, 104, 105, 102, 116, 34,
+32, 61, 32, 34, 68, 101, 115, 118, 105, 111, 32, 100, 101, 32, 116, 111, 109, 34, 10, 34, 80, 111, 115, 116,
+34, 32, 61, 32, 34, 80, 195, 179, 115, 34, 10, 34, 80, 114, 101, 34, 32, 61, 32, 34, 80, 114, 195, 169,
+34, 10, 34, 80, 114, 101, 115, 101, 116, 58, 32, 99, 108, 105, 99, 107, 32, 102, 111, 114, 32, 116, 104, 101,
+32, 108, 105, 115, 116, 32, 111, 102, 32, 70, 76, 32, 112, 114, 101, 115, 101, 116, 115, 32, 111, 102, 32, 116,
+104, 105, 115, 32, 112, 108, 117, 103, 105, 110, 34, 32, 61, 32, 34, 80, 114, 101, 115, 101, 116, 58, 32, 99,
+108, 105, 113, 117, 101, 32, 112, 97, 114, 97, 32, 97, 32, 108, 105, 115, 116, 97, 32, 100, 101, 32, 112, 114,
+101, 115, 101, 116, 115, 32, 100, 111, 32, 70, 76, 32, 100, 101, 115, 116, 101, 32, 112, 108, 117, 103, 105, 110,
+34, 10, 34, 80, 114, 101, 115, 101, 116, 115, 34, 32, 61, 32, 34, 80, 114, 101, 115, 101, 116, 115, 34, 10,
+34, 80, 114, 101, 118, 105, 111, 117, 115, 32, 112, 114, 101, 115, 101, 116, 34, 32, 61, 32, 34, 80, 114, 101,
+115, 101, 116, 32, 97, 110, 116, 101, 114, 105, 111, 114, 34, 10, 34, 80, 114, 101, 124, 80, 111, 115, 116, 34,
+32, 61, 32, 34, 80, 114, 195, 169, 124, 80, 195, 179, 115, 34, 10, 34, 80, 114, 115, 34, 32, 61, 32, 34,
+80, 114, 101, 115, 46, 34, 10, 34, 82, 97, 116, 101, 34, 32, 61, 32, 34, 84, 97, 120, 97, 34, 10, 34,
+82, 97, 116, 105, 111, 34, 32, 61, 32, 34, 82, 97, 122, 195, 163, 111, 34, 10, 34, 82, 101, 108, 34, 32,
+61, 32, 34, 82, 101, 108, 34, 10, 34, 82, 101, 115, 34, 32, 61, 32, 34, 82, 101, 115, 34, 10, 34, 82,
+101, 115, 101, 116, 32, 116, 111, 32, 100, 101, 102, 97, 117, 108, 116, 115, 34, 32, 61, 32, 34, 82, 101, 115,
+116, 97, 117, 114, 97, 114, 32, 111, 32, 112, 97, 100, 114, 195, 163, 111, 34, 10, 34, 82, 101, 118, 101, 114,
+98, 32, 109, 105, 120, 34, 32, 61, 32, 34, 77, 105, 120, 32, 100, 111, 32, 114, 101, 118, 101, 114, 98, 34,
+10, 34, 82, 101, 118, 101, 114, 98, 34, 32, 61, 32, 34, 82, 101, 118, 101, 114, 98, 34, 10, 34, 83, 97,
+116, 34, 32, 61, 32, 34, 83, 97, 116, 34, 10, 34, 83, 101, 112, 34, 32, 61, 32, 34, 83, 101, 112, 46,
+34, 10, 34, 83, 105, 122, 101, 34, 32, 61, 32, 34, 84, 97, 109, 97, 110, 104, 111, 34, 10, 34, 83, 109,
+111, 111, 116, 104, 34, 32, 61, 32, 34, 83, 117, 97, 118, 105, 122, 97, 114, 34, 10, 34, 83, 109, 111, 111,
+116, 104, 105, 110, 103, 34, 32, 61, 32, 34, 83, 117, 97, 118, 105, 122, 97, 195, 167, 195, 163, 111, 34, 10,
+34, 83, 109, 112, 32, 114, 97, 116, 101, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 97, 109, 111, 115, 116,
+114, 46, 34, 10, 34, 83, 116, 101, 114, 101, 111, 32, 101, 110, 104, 97, 110, 99, 101, 114, 34, 32, 61, 32,
+34, 82, 101, 97, 108, 99, 101, 32, 101, 115, 116, 195, 169, 114, 101, 111, 34, 10, 34, 83, 116, 101, 114, 101,
+111, 32, 115, 101, 112, 34, 32, 61, 32, 34, 83, 101, 112, 97, 114, 97, 195, 167, 195, 163, 111, 32, 101, 115,
+116, 195, 169, 114, 101, 111, 34, 10, 34, 83, 117, 98, 34, 32, 61, 32, 34, 83, 117, 98, 34, 10, 34, 83,
+121, 109, 109, 101, 116, 114, 121, 34, 32, 61, 32, 34, 83, 105, 109, 101, 116, 114, 105, 97, 34, 10, 34, 84,
+101, 109, 112, 111, 32, 115, 121, 110, 99, 34, 32, 61, 32, 34, 83, 105, 110, 99, 46, 32, 97, 111, 32, 116,
+101, 109, 112, 111, 34, 10, 34, 84, 104, 101, 32, 101, 102, 102, 101, 99, 116, 32, 119, 97, 115, 32, 114, 101,
+109, 111, 118, 101, 100, 32, 102, 114, 111, 109, 32, 116, 104, 105, 115, 32, 115, 108, 111, 116, 46, 34, 32, 61,
+32, 34, 79, 32, 101, 102, 101, 105, 116, 111, 32, 102, 111, 105, 32, 114, 101, 109, 111, 118, 105, 100, 111, 32,
+100, 101, 115, 116, 101, 32, 115, 108, 111, 116, 46, 34, 10, 34, 84, 104, 114, 101, 115, 34, 32, 61, 32, 34,
+76, 105, 109, 105, 97, 114, 34, 10, 34, 84, 104, 114, 101, 115, 104, 34, 32, 61, 32, 34, 76, 105, 109, 105,
+97, 114, 34, 10, 34, 84, 104, 114, 101, 115, 104, 111, 108, 100, 34, 32, 61, 32, 34, 76, 105, 109, 105, 97,
+114, 34, 10, 34, 84, 111, 110, 101, 34, 32, 61, 32, 34, 84, 105, 109, 98, 114, 101, 34, 10, 34, 84, 114,
+101, 98, 108, 101, 34, 32, 61, 32, 34, 65, 103, 117, 100, 111, 115, 34, 10, 34, 86, 111, 108, 34, 32, 61,
+32, 34, 86, 111, 108, 34, 10, 34, 87, 101, 116, 32, 103, 97, 105, 110, 34, 32, 61, 32, 34, 71, 97, 110,
+104, 111, 32, 109, 111, 108, 104, 97, 100, 111, 34, 10, 34, 87, 101, 116, 32, 111, 110, 108, 121, 34, 32, 61,
+32, 34, 83, 195, 179, 32, 109, 111, 108, 104, 97, 100, 111, 34, 10, 34, 87, 101, 116, 34, 32, 61, 32, 34,
+77, 111, 108, 104, 97, 100, 111, 34, 10, 34, 87, 105, 100, 116, 104, 34, 32, 61, 32, 34, 76, 97, 114, 103,
+117, 114, 97, 34, 10, 34, 88, 32, 50, 34, 32, 61, 32, 34, 88, 32, 50, 34, 10, 34, 84, 105, 109, 101,
+58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 84, 101, 109, 112, 111, 58, 32, 123, 48, 125, 34, 10, 34, 72,
+111, 108, 100, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 72, 111, 108, 100, 58, 32, 123, 48, 125, 34, 10,
+34, 84, 114, 105, 103, 32, 115, 121, 110, 99, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 83, 105, 110, 99,
+46, 32, 100, 111, 32, 100, 105, 115, 112, 97, 114, 111, 58, 32, 123, 48, 125, 34, 10, 34, 80, 111, 115, 32,
+115, 121, 110, 99, 58, 32, 123, 48, 125, 34, 32, 61, 32, 34, 83, 105, 110, 99, 46, 32, 100, 97, 32, 112,
+111, 115, 105, 195, 167, 195, 163, 111, 58, 32, 123, 48, 125, 34, 10, 34, 84, 110, 115, 34, 32, 61, 32, 34,
+84, 101, 110, 115, 195, 163, 111, 34, 10, 34, 65, 77, 32, 111, 115, 99, 32, 51, 34, 32, 61, 32, 34, 65,
+77, 32, 111, 115, 99, 32, 51, 34, 10, 34, 65, 109, 116, 34, 32, 61, 32, 34, 81, 116, 100, 46, 34, 10,
+34, 66, 105, 112, 111, 108, 97, 114, 124, 85, 110, 105, 112, 111, 108, 97, 114, 34, 32, 61, 32, 34, 66, 105,
+112, 111, 108, 97, 114, 124, 85, 110, 105, 112, 111, 108, 97, 114, 34, 10, 34, 67, 111, 97, 114, 115, 101, 34,
+32, 61, 32, 34, 71, 114, 111, 115, 115, 111, 34, 10, 34, 68, 101, 108, 34, 32, 61, 32, 34, 65, 116, 114,
+97, 115, 111, 34, 10, 34, 68, 101, 116, 117, 110, 101, 34, 32, 61, 32, 34, 68, 101, 115, 97, 102, 105, 110,
+97, 114, 34, 10, 34, 68, 114, 105, 118, 101, 34, 32, 61, 32, 34, 68, 114, 105, 118, 101, 34, 10, 34, 69,
+110, 118, 105, 114, 111, 110, 109, 101, 110, 116, 34, 32, 61, 32, 34, 65, 109, 98, 105, 101, 110, 116, 101, 34,
+10, 34, 72, 97, 114, 100, 110, 101, 115, 115, 34, 32, 61, 32, 34, 68, 117, 114, 101, 122, 97, 34, 10, 34,
+72, 105, 103, 104, 32, 100, 97, 109, 112, 105, 110, 103, 34, 32, 61, 32, 34, 65, 109, 111, 114, 116, 101, 99,
+105, 109, 101, 110, 116, 111, 32, 97, 103, 117, 100, 111, 34, 10, 34, 72, 105, 103, 104, 99, 117, 116, 34, 32,
+61, 32, 34, 67, 111, 114, 116, 101, 32, 97, 103, 117, 100, 111, 34, 10, 34, 73, 110, 47, 111, 117, 116, 32,
+100, 105, 102, 102, 101, 114, 101, 110, 99, 101, 34, 32, 61, 32, 34, 68, 105, 102, 101, 114, 101, 110, 195, 167,
+97, 32, 101, 110, 116, 114, 97, 100, 97, 47, 115, 97, 195, 173, 100, 97, 34, 10, 34, 76, 101, 102, 116, 34,
+32, 61, 32, 34, 69, 115, 113, 117, 101, 114, 100, 111, 34, 10, 34, 76, 111, 119, 99, 117, 116, 34, 32, 61,
+32, 34, 67, 111, 114, 116, 101, 32, 103, 114, 97, 118, 101, 34, 10, 34, 77, 105, 115, 99, 34, 32, 61, 32,
+34, 68, 105, 118, 101, 114, 115, 111, 115, 34, 10, 34, 77, 105, 120, 101, 114, 32, 109, 97, 116, 114, 105, 120,
+34, 32, 61, 32, 34, 77, 97, 116, 114, 105, 122, 32, 100, 101, 32, 109, 105, 120, 97, 103, 101, 109, 34, 10,
+34, 77, 117, 102, 102, 108, 101, 34, 32, 61, 32, 34, 65, 98, 97, 102, 97, 114, 34, 10, 34, 78, 111, 114,
+109, 97, 108, 124, 73, 110, 118, 101, 114, 116, 124, 80, 46, 112, 111, 110, 103, 34, 32, 61, 32, 34, 78, 111,
+114, 109, 97, 108, 124, 73, 110, 118, 101, 114, 116, 101, 114, 124, 80, 105, 110, 103, 117, 101, 45, 112, 46, 34,
+10, 34, 79, 102, 102, 124, 80, 97, 110, 124, 86, 111, 108, 34, 32, 61, 32, 34, 68, 101, 115, 108, 46, 124,
+80, 97, 110, 124, 86, 111, 108, 34, 10, 34, 79, 102, 115, 34, 32, 61, 32, 34, 68, 101, 115, 108, 46, 34,
+10, 34, 79, 114, 100, 34, 32, 61, 32, 34, 79, 114, 100, 101, 109, 34, 10, 34, 79, 118, 101, 114, 100, 114,
+105, 118, 101, 34, 32, 61, 32, 34, 79, 118, 101, 114, 100, 114, 105, 118, 101, 34, 10, 34, 79, 118, 101, 114,
+115, 97, 109, 112, 108, 101, 34, 32, 61, 32, 34, 83, 111, 98, 114, 101, 97, 109, 111, 115, 116, 114, 97, 103,
+101, 109, 34, 10, 34, 80, 104, 97, 115, 101, 32, 111, 102, 115, 34, 32, 61, 32, 34, 68, 101, 115, 118, 105,
+111, 32, 100, 101, 32, 102, 97, 115, 101, 34, 10, 34, 80, 104, 97, 115, 101, 32, 114, 97, 110, 100, 34, 32,
+61, 32, 34, 70, 97, 115, 101, 32, 97, 108, 101, 97, 116, 195, 179, 114, 105, 97, 34, 10, 34, 80, 111, 115,
+116, 32, 102, 105, 108, 116, 101, 114, 34, 32, 61, 32, 34, 70, 105, 108, 116, 114, 111, 32, 112, 195, 179, 115,
+34, 10, 34, 80, 111, 115, 116, 32, 103, 97, 105, 110, 34, 32, 61, 32, 34, 71, 97, 110, 104, 111, 32, 112,
+195, 179, 115, 34, 10, 34, 80, 114, 101, 32, 97, 109, 112, 34, 32, 61, 32, 34, 80, 114, 195, 169, 45, 97,
+109, 112, 34, 10, 34, 80, 114, 101, 32, 98, 97, 110, 100, 34, 32, 61, 32, 34, 66, 97, 110, 100, 97, 32,
+112, 114, 195, 169, 34, 10, 34, 80, 114, 101, 100, 101, 108, 97, 121, 34, 32, 61, 32, 34, 80, 114, 195, 169,
+45, 100, 101, 108, 97, 121, 34, 10, 34, 81, 34, 32, 61, 32, 34, 81, 34, 10, 34, 82, 105, 103, 104, 116,
+34, 32, 61, 32, 34, 68, 105, 114, 101, 105, 116, 111, 34, 10, 34, 82, 111, 111, 109, 32, 115, 105, 122, 101,
+34, 32, 61, 32, 34, 84, 97, 109, 97, 110, 104, 111, 32, 100, 97, 32, 115, 97, 108, 97, 34, 10, 34, 83,
+101, 110, 115, 34, 32, 61, 32, 34, 83, 101, 110, 115, 46, 34, 10, 34, 83, 105, 110, 101, 124, 84, 114, 105,
+97, 110, 103, 108, 101, 124, 83, 113, 117, 97, 114, 101, 34, 32, 61, 32, 34, 83, 101, 110, 111, 105, 100, 101,
+124, 84, 114, 105, 195, 162, 110, 103, 117, 108, 111, 124, 81, 117, 97, 100, 114, 97, 100, 97, 34, 10, 34, 83,
+111, 102, 116, 32, 99, 108, 105, 112, 112, 101, 114, 34, 32, 61, 32, 34, 83, 111, 102, 116, 32, 99, 108, 105,
+112, 112, 101, 114, 34, 10, 34, 83, 112, 100, 34, 32, 61, 32, 34, 86, 101, 108, 111, 99, 46, 34, 10, 34,
+83, 112, 108, 105, 116, 32, 98, 97, 108, 97, 110, 99, 101, 34, 32, 61, 32, 34, 69, 113, 117, 105, 108, 195,
+173, 98, 114, 105, 111, 32, 100, 97, 32, 100, 105, 118, 105, 115, 195, 163, 111, 34, 10, 34, 83, 112, 108, 105,
+116, 32, 102, 114, 101, 113, 46, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 100, 97, 32, 100, 105, 118,
+105, 115, 195, 163, 111, 34, 10, 34, 83, 112, 114, 100, 34, 32, 61, 32, 34, 69, 115, 112, 97, 108, 104, 46,
+34, 10, 34, 84, 117, 110, 101, 34, 32, 61, 32, 34, 65, 102, 105, 110, 97, 195, 167, 195, 163, 111, 34, 10,
+34, 84, 117, 110, 105, 110, 103, 34, 32, 61, 32, 34, 65, 102, 105, 110, 97, 195, 167, 195, 163, 111, 34, 10,
+34, 86, 101, 108, 34, 32, 61, 32, 34, 86, 101, 108, 34, 10, 34, 83, 116, 97, 114, 116, 32, 112, 104, 97,
+115, 101, 34, 32, 61, 32, 34, 70, 97, 115, 101, 32, 105, 110, 105, 99, 105, 97, 108, 34, 10, 34, 76, 47,
+82, 32, 112, 104, 97, 115, 101, 34, 32, 61, 32, 34, 70, 97, 115, 101, 32, 69, 47, 68, 34, 10, 34, 76,
+101, 118, 101, 108, 115, 34, 32, 61, 32, 34, 78, 195, 173, 118, 101, 105, 115, 34, 10, 34, 77, 111, 110, 111,
+32, 105, 110, 112, 117, 116, 34, 32, 61, 32, 34, 69, 110, 116, 114, 97, 100, 97, 32, 109, 111, 110, 111, 34,
+10, 34, 68, 101, 108, 97, 121, 115, 34, 32, 61, 32, 34, 68, 101, 108, 97, 121, 115, 34, 10, 34, 73, 124,
+73, 73, 124, 69, 100, 105, 116, 34, 32, 61, 32, 34, 73, 124, 73, 73, 124, 69, 100, 105, 116, 97, 114, 34,
+10, 34, 84, 114, 105, 97, 110, 103, 108, 101, 124, 83, 105, 110, 101, 34, 32, 61, 32, 34, 84, 114, 105, 195,
+162, 110, 103, 117, 108, 111, 124, 83, 101, 110, 111, 105, 100, 101, 34, 10, 34, 72, 46, 112, 97, 115, 115, 34,
+32, 61, 32, 34, 80, 97, 115, 115, 97, 45, 65, 46, 34, 10, 34, 77, 111, 118, 101, 109, 101, 110, 116, 34,
+32, 61, 32, 34, 77, 111, 118, 105, 109, 101, 110, 116, 111, 34, 10, 34, 77, 111, 118, 101, 32, 114, 97, 116,
+101, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 100, 111, 32, 109, 111, 118, 46, 34, 10, 34, 77, 111, 100,
+32, 114, 97, 116, 101, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 100, 97, 32, 109, 111, 100, 46, 34, 10,
+34, 76, 70, 79, 32, 112, 104, 97, 115, 101, 32, 100, 105, 102, 34, 32, 61, 32, 34, 68, 105, 102, 46, 32,
+100, 101, 32, 102, 97, 115, 101, 32, 76, 70, 79, 34, 10, 34, 68, 101, 108, 97, 121, 32, 108, 105, 110, 101,
+115, 34, 32, 61, 32, 34, 76, 105, 110, 104, 97, 115, 32, 100, 101, 32, 100, 101, 108, 97, 121, 34, 10, 34,
+73, 110, 118, 101, 114, 116, 32, 119, 101, 116, 34, 32, 61, 32, 34, 73, 110, 118, 101, 114, 116, 101, 114, 32,
+109, 111, 108, 104, 97, 100, 111, 34, 10, 34, 65, 109, 111, 117, 110, 116, 58, 32, 100, 114, 97, 103, 32, 117,
+112, 32, 111, 114, 32, 100, 111, 119, 110, 32, 40, 67, 116, 114, 108, 58, 32, 102, 105, 110, 101, 41, 34, 32,
+61, 32, 34, 81, 117, 97, 110, 116, 105, 100, 97, 100, 101, 58, 32, 97, 114, 114, 97, 115, 116, 101, 32, 112,
+97, 114, 97, 32, 99, 105, 109, 97, 32, 111, 117, 32, 112, 97, 114, 97, 32, 98, 97, 105, 120, 111, 32, 40,
+67, 116, 114, 108, 58, 32, 102, 105, 110, 111, 41, 34, 10, 34, 83, 111, 117, 110, 100, 103, 111, 111, 100, 105,
+122, 101, 114, 32, 112, 114, 101, 115, 101, 116, 32, 65, 32, 116, 111, 32, 68, 32, 40, 114, 101, 97, 100, 32,
+102, 114, 111, 109, 32, 121, 111, 117, 114, 32, 70, 76, 32, 105, 110, 115, 116, 97, 108, 108, 97, 116, 105, 111,
+110, 41, 34, 32, 61, 32, 34, 80, 114, 101, 115, 101, 116, 32, 65, 32, 97, 32, 68, 32, 100, 111, 32, 83,
+111, 117, 110, 100, 103, 111, 111, 100, 105, 122, 101, 114, 32, 40, 108, 105, 100, 111, 32, 100, 97, 32, 115, 117,
+97, 32, 105, 110, 115, 116, 97, 108, 97, 195, 167, 195, 163, 111, 32, 100, 111, 32, 70, 76, 41, 34, 10, 34,
+68, 114, 97, 103, 32, 116, 104, 101, 32, 112, 111, 105, 110, 116, 58, 32, 98, 111, 116, 104, 32, 118, 97, 108,
+117, 101, 115, 32, 97, 116, 32, 111, 110, 99, 101, 34, 32, 61, 32, 34, 65, 114, 114, 97, 115, 116, 101, 32,
+111, 32, 112, 111, 110, 116, 111, 58, 32, 111, 115, 32, 100, 111, 105, 115, 32, 118, 97, 108, 111, 114, 101, 115,
+32, 100, 101, 32, 117, 109, 97, 32, 118, 101, 122, 34, 10, 34, 66, 97, 108, 97, 110, 99, 101, 34, 32, 61,
+32, 34, 66, 97, 108, 97, 110, 195, 167, 111, 34, 10, 34, 68, 114, 97, 102, 116, 34, 32, 61, 32, 34, 82,
+97, 115, 99, 117, 110, 104, 111, 34, 10, 34, 69, 110, 34, 32, 61, 32, 34, 69, 110, 34, 10, 34, 70, 105,
+108, 116, 101, 114, 34, 32, 61, 32, 34, 70, 105, 108, 116, 114, 111, 34, 10, 34, 72, 81, 32, 101, 110, 118,
+101, 108, 111, 112, 101, 115, 34, 32, 61, 32, 34, 69, 110, 118, 101, 108, 111, 112, 101, 115, 32, 72, 81, 34,
+10, 34, 77, 97, 105, 110, 34, 32, 61, 32, 34, 80, 114, 105, 110, 99, 105, 112, 97, 108, 34, 10, 34, 79,
+112, 101, 114, 97, 116, 111, 114, 115, 44, 32, 102, 105, 108, 116, 101, 114, 115, 44, 32, 101, 102, 102, 101, 99,
+116, 115, 32, 97, 110, 100, 32, 116, 104, 101, 32, 109, 97, 116, 114, 105, 120, 34, 32, 61, 32, 34, 79, 112,
+101, 114, 97, 100, 111, 114, 101, 115, 44, 32, 102, 105, 108, 116, 114, 111, 115, 44, 32, 101, 102, 101, 105, 116,
+111, 115, 32, 101, 32, 97, 32, 109, 97, 116, 114, 105, 122, 34, 10, 34, 79, 118, 101, 114, 115, 97, 109, 112,
+108, 105, 110, 103, 34, 32, 61, 32, 34, 83, 111, 98, 114, 101, 97, 109, 111, 115, 116, 114, 97, 103, 101, 109,
+34, 10, 34, 80, 104, 34, 32, 61, 32, 34, 70, 97, 34, 10, 34, 80, 110, 34, 32, 61, 32, 34, 80, 110,
+34, 10, 34, 80, 116, 34, 32, 61, 32, 34, 84, 109, 34, 10, 34, 81, 117, 97, 108, 105, 116, 121, 34, 32,
+61, 32, 34, 81, 117, 97, 108, 105, 100, 97, 100, 101, 34, 10, 34, 82, 101, 110, 100, 101, 114, 34, 32, 61,
+32, 34, 82, 101, 110, 100, 101, 114, 34, 10, 34, 83, 98, 34, 32, 61, 32, 34, 83, 98, 34, 10, 34, 85,
+110, 105, 115, 111, 110, 34, 32, 61, 32, 34, 85, 110, 195, 173, 115, 115, 111, 110, 111, 34, 10, 34, 86, 108,
+34, 32, 61, 32, 34, 86, 108, 34, 10, 34, 107, 101, 101, 112, 32, 116, 104, 101, 32, 115, 97, 118, 101, 100,
+32, 112, 97, 116, 99, 104, 34, 32, 61, 32, 34, 109, 97, 110, 116, 195, 170, 109, 32, 111, 32, 112, 97, 116,
+99, 104, 32, 115, 97, 108, 118, 111, 34, 10, 34, 84, 105, 109, 98, 114, 101, 34, 32, 61, 32, 34, 84, 105,
+109, 98, 114, 101, 34, 10, 34, 66, 108, 117, 114, 34, 32, 61, 32, 34, 68, 101, 115, 102, 111, 113, 117, 101,
+34, 10, 34, 84, 114, 101, 109, 34, 32, 61, 32, 34, 84, 114, 101, 109, 34, 10, 34, 80, 114, 105, 115, 109,
+34, 32, 61, 32, 34, 80, 114, 105, 115, 109, 97, 34, 10, 34, 72, 97, 114, 109, 111, 110, 105, 122, 101, 114,
+34, 32, 61, 32, 34, 72, 97, 114, 109, 111, 110, 105, 122, 97, 100, 111, 114, 34, 10, 34, 86, 105, 98, 114,
+97, 116, 111, 34, 32, 61, 32, 34, 86, 105, 98, 114, 97, 116, 111, 34, 10, 34, 80, 108, 117, 99, 107, 34,
+32, 61, 32, 34, 80, 108, 117, 99, 107, 34, 10, 34, 80, 104, 97, 115, 101, 114, 34, 32, 61, 32, 34, 80,
+104, 97, 115, 101, 114, 34, 10, 34, 69, 81, 34, 32, 61, 32, 34, 69, 81, 34, 10, 34, 70, 105, 108, 116,
+101, 114, 32, 49, 34, 32, 61, 32, 34, 70, 105, 108, 116, 114, 111, 32, 49, 34, 10, 34, 79, 114, 100, 101,
+114, 34, 32, 61, 32, 34, 79, 114, 100, 101, 109, 34, 10, 34, 80, 97, 114, 116, 32, 65, 32, 47, 32, 66,
+34, 32, 61, 32, 34, 80, 97, 114, 116, 101, 32, 65, 32, 47, 32, 66, 34, 10, 34, 84, 104, 101, 32, 111,
+116, 104, 101, 114, 32, 72, 97, 114, 109, 111, 114, 32, 99, 111, 110, 116, 114, 111, 108, 115, 32, 107, 101, 101,
+112, 32, 116, 104, 101, 32, 115, 97, 118, 101, 100, 32, 112, 97, 116, 99, 104, 34, 32, 61, 32, 34, 79, 115,
+32, 111, 117, 116, 114, 111, 115, 32, 99, 111, 110, 116, 114, 111, 108, 101, 115, 32, 100, 111, 32, 72, 97, 114,
+109, 111, 114, 32, 109, 97, 110, 116, 195, 170, 109, 32, 111, 32, 112, 97, 116, 99, 104, 32, 115, 97, 108, 118,
+111, 34, 10, 34, 83, 113, 117, 97, 114, 105, 122, 101, 34, 32, 61, 32, 34, 81, 117, 97, 100, 114, 97, 116,
+105, 122, 97, 114, 34, 10, 34, 80, 117, 110, 99, 104, 101, 114, 34, 32, 61, 32, 34, 80, 117, 110, 99, 104,
+101, 114, 34, 10, 34, 80, 114, 101, 115, 101, 114, 118, 101, 34, 32, 61, 32, 34, 80, 114, 101, 115, 101, 114,
+118, 97, 114, 34, 10, 34, 73, 109, 112, 97, 99, 116, 34, 32, 61, 32, 34, 73, 109, 112, 97, 99, 116, 111,
+34, 10, 34, 82, 101, 108, 97, 116, 105, 111, 110, 34, 32, 61, 32, 34, 82, 101, 108, 97, 195, 167, 195, 163,
+111, 34, 10, 34, 70, 114, 101, 113, 46, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 34, 10, 34, 82, 101,
+115, 46, 34, 32, 61, 32, 34, 82, 101, 115, 46, 34, 10, 34, 80, 114, 101, 124, 80, 111, 115, 34, 32, 61,
+32, 34, 80, 114, 195, 169, 124, 80, 195, 179, 115, 34, 10, 34, 69, 110, 118, 34, 32, 61, 32, 34, 69, 110,
+118, 46, 34, 10, 34, 82, 101, 108, 32, 50, 34, 32, 61, 32, 34, 82, 101, 108, 46, 32, 50, 34, 10, 34,
+76, 77, 72, 32, 100, 101, 108, 34, 32, 61, 32, 34, 65, 116, 114, 97, 115, 111, 32, 76, 77, 72, 34, 10,
+34, 76, 77, 72, 32, 109, 105, 120, 34, 32, 61, 32, 34, 77, 105, 120, 32, 76, 77, 72, 34, 10, 34, 79,
+117, 116, 34, 32, 61, 32, 34, 83, 97, 195, 173, 100, 97, 34, 10, 34, 73, 110, 34, 32, 61, 32, 34, 69,
+110, 116, 114, 97, 100, 97, 34, 10, 34, 79, 110, 124, 67, 111, 109, 112, 32, 111, 102, 102, 124, 77, 117, 116,
+101, 100, 124, 79, 102, 102, 34, 32, 61, 32, 34, 76, 105, 103, 46, 124, 83, 101, 109, 32, 99, 111, 109, 112,
+46, 124, 77, 117, 100, 111, 124, 68, 101, 115, 108, 46, 34, 10, 34, 76, 111, 119, 124, 77, 105, 100, 124, 72,
+105, 103, 104, 124, 77, 97, 115, 116, 101, 114, 34, 32, 61, 32, 34, 71, 114, 97, 118, 101, 115, 124, 77, 195,
+169, 100, 105, 111, 115, 124, 65, 103, 117, 100, 111, 115, 124, 77, 97, 115, 116, 101, 114, 34, 10, 34, 80, 101,
+97, 107, 124, 82, 77, 83, 34, 32, 61, 32, 34, 80, 105, 99, 111, 124, 82, 77, 83, 34, 10, 34, 65, 100,
+118, 97, 110, 99, 101, 100, 34, 32, 61, 32, 34, 65, 118, 97, 110, 195, 167, 97, 100, 111, 34, 10, 34, 77,
+97, 105, 110, 124, 65, 100, 118, 97, 110, 99, 101, 100, 34, 32, 61, 32, 34, 80, 114, 105, 110, 99, 105, 112,
+97, 108, 124, 65, 118, 97, 110, 195, 167, 97, 100, 111, 34, 10, 34, 80, 104, 97, 115, 105, 110, 103, 34, 32,
+61, 32, 34, 80, 104, 97, 115, 105, 110, 103, 34, 10, 34, 77, 105, 110, 34, 32, 61, 32, 34, 77, 195, 173,
+110, 46, 34, 10, 34, 77, 97, 120, 34, 32, 61, 32, 34, 77, 195, 161, 120, 46, 34, 10, 34, 77, 97, 110,
+117, 97, 108, 34, 32, 61, 32, 34, 77, 97, 110, 117, 97, 108, 34, 10, 34, 84, 101, 110, 115, 105, 111, 110,
+34, 32, 61, 32, 34, 84, 101, 110, 115, 195, 163, 111, 34, 10, 34, 76, 80, 34, 32, 61, 32, 34, 80, 66,
+34, 10, 34, 72, 80, 34, 32, 61, 32, 34, 80, 65, 34, 10, 34, 77, 97, 110, 117, 97, 108, 32, 102, 114,
+101, 113, 46, 34, 32, 61, 32, 34, 70, 114, 101, 113, 46, 32, 109, 97, 110, 117, 97, 108, 34, 10, 34, 82,
+97, 116, 101, 32, 49, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 49, 34, 10, 34, 82, 97, 116, 101, 32,
+50, 34, 32, 61, 32, 34, 84, 97, 120, 97, 32, 50, 34, 10, 34, 68, 101, 112, 116, 104, 32, 115, 99, 97,
+108, 101, 34, 32, 61, 32, 34, 69, 115, 99, 97, 108, 97, 32, 100, 101, 32, 112, 114, 111, 102, 46, 34, 10,
+34, 80, 117, 108, 108, 45, 100, 111, 119, 110, 34, 32, 61, 32, 34, 80, 117, 108, 108, 45, 100, 111, 119, 110,
+34, 10, 34, 67, 111, 108, 111, 117, 114, 32, 103, 97, 105, 110, 34, 32, 61, 32, 34, 71, 97, 110, 104, 111,
+32, 100, 101, 32, 99, 111, 114, 34, 10, 34, 67, 111, 108, 111, 117, 114, 32, 102, 114, 101, 113, 46, 34, 32,
+61, 32, 34, 70, 114, 101, 113, 46, 32, 100, 101, 32, 99, 111, 114, 34, 10, 34, 73, 110, 112, 117, 116, 32,
+72, 80, 34, 32, 61, 32, 34, 80, 65, 32, 100, 101, 32, 101, 110, 116, 114, 97, 100, 97, 34, 10, 34, 70,
+101, 101, 100, 98, 97, 99, 107, 32, 72, 80, 34, 32, 61, 32, 34, 80, 65, 32, 100, 111, 32, 102, 101, 101,
+100, 98, 97, 99, 107, 34, 10, 34, 69, 110, 103, 105, 110, 101, 32, 86, 50, 34, 32, 61, 32, 34, 77, 111,
+116, 111, 114, 32, 86, 50, 34, 10, 34, 73, 110, 118, 101, 114, 116, 32, 102, 101, 101, 100, 98, 97, 99, 107,
+34, 32, 61, 32, 34, 73, 110, 118, 101, 114, 116, 101, 114, 32, 102, 101, 101, 100, 98, 97, 99, 107, 34, 10,
 };
 } // namespace lynx::i18n::data

+ 10 - 0
src/ui/MainComponent.cpp

@@ -29,6 +29,7 @@
 #include "ui/ChannelSettings.h"
 #include "ui/Dialogs.h"
 #include "ui/EditorTools.h"
+#include "ui/AudioEditor.h"
 #include "ui/ExportDialog.h"
 #include "ui/ParametricEqEditor.h"
 #include "ui/PluginWindow.h"
@@ -1406,6 +1407,13 @@ void MainComponent::toggleRecording()
     showRecordChoiceDialog ([safe] (int choice, bool dontAsk) {
         if (safe == nullptr)
             return;
+        if (choice == recordChoiceAudioEditor)
+        {
+            openAudioEditorRecording (safe->engine);
+            if (! safe->engine.getTransport().playing.load())
+                safe->engine.play();
+            return;
+        }
         auto o = safe->engine.getRecordOptions();
         o.recordNotes = choice != recordChoiceAudio;
         o.recordAudio = choice != recordChoiceNotes;
@@ -1458,6 +1466,7 @@ void MainComponent::showRecordMenu()
                   [set] { set ([] (AudioEngine::RecordOptions& r) { r.recordAudio = ! r.recordAudio; }); });
     menu.addItem (tr ("Ask what to record when recording starts"), true, o.askWhatToRecord,
                   [set] { set ([] (AudioEngine::RecordOptions& r) { r.askWhatToRecord = ! r.askWhatToRecord; }); });
+    menu.addItem (tr ("Record into the audio editor..."), [this] { openAudioEditor (engine); });
     menu.addSeparator();
     menu.addItem (tr ("Arm the selected mixer insert for audio (choose its input)..."), [this] { armSelectedInsertForAudio(); });
     menu.addItem (tr ("Audio settings (input device)..."), [this] { openSettings ((int) SettingsPage::audio); });
@@ -2622,6 +2631,7 @@ juce::PopupMenu MainComponent::getMenuForIndex (int index, const juce::String&)
         menu.addItem (tr ("Undo") + shortcutText ("edit.undo"), engine.canUndo(), false, [this] { engine.undo(); });
         menu.addItem (tr ("Redo") + shortcutText ("edit.redo"), engine.canRedo(), false, [this] { engine.redo(); });
         menu.addItem (tr ("Undo history...") + shortcutText ("edit.history"), [this] { showHistory(); });
+        menu.addItem (tr ("Audio editor..."), [this] { openAudioEditor (engine); });
         menu.addSeparator();
         menu.addItem (tr ("Quick-add palette...") + shortcutText ("panel.quickAdd"), [this] { showQuickAdd(); });
         menu.addItem (tr ("Search the Browser") + shortcutText ("browser.search"), [this] {

+ 1 - 0
src/ui/MainComponent.h

@@ -85,6 +85,7 @@ public:
     std::unique_ptr<juce::AlertWindow> makeConfirmDiscardWindow();
     PianoRollComponent& getPianoRollForSnapshot() { return pianoRoll; }
     ChannelRackComponent& getRackForSnapshot() { return rack; }
+    void scrollRackForSnapshot (int x) { rackViewport.setViewPosition (x, rackViewport.getViewPositionY()); }
     BrowserComponent& getBrowserForSnapshot() { return browser; }
     MixerComponent& getMixerForSnapshot() { return mixer; }
     std::unique_ptr<juce::Component> makeQuickAddForSnapshot();

+ 4 - 0
src/ui/MixerComponent.cpp

@@ -18,6 +18,7 @@
 #include "ui/Icons.h"
 #include "ui/ValueControl.h"
 #include "ui/Theme.h"
+#include "ui/AudioEditor.h"
 
 namespace lynx
 {
@@ -2625,6 +2626,8 @@ void EffectsPanel::showAddMenu (int)
     });
     menu.addSeparator();
     menu.addSubMenu (tr ("Plugin (VST/VST3/CLAP)"), plugins);
+    menu.addSeparator();
+    menu.addItem (tr ("Audio editor (record this insert)..."), [this] { openAudioEditorForInsert (engine, track); });
 
     menu.showMenuAsync (juce::PopupMenu::Options().withTargetComponent (this).withMousePosition());
 }
@@ -2641,6 +2644,7 @@ void EffectsPanel::showSlotMenu (int slot)
     const auto count = (int) slots()->size();
     juce::PopupMenu menu;
     menu.addSubMenu (tr ("Replace with"), replace);
+    menu.addItem (tr ("Audio editor (record this insert)..."), [this] { openAudioEditorForInsert (engine, track); });
 
     // FL presets (Plugin presets\Effects\<plugin>) that map to this effect
     {

+ 104 - 17
src/ui/PianoRollComponent.cpp

@@ -77,6 +77,19 @@ PianoRollComponent::PianoRollComponent (AudioEngine& e)
         addAndMakeVisible (bar);
     }
 
+    // the overview strip is the horizontal scroller (FL's Piano Roll has its preview bar on top)
+    hBar.setVisible (false);
+    overview.paintContent = [this] (juce::Graphics& g, juce::Rectangle<float> area, double total) { paintOverview (g, area, total); };
+    overview.onChange = [this] (double start, double length) {
+        const auto width = (double) gridArea().getWidth();
+        pixelsPerTick = juce::jlimit (2.0 / ticksPerStep, 120.0 / ticksPerStep, width / juce::jmax (1.0, length));
+        scrollTicks = juce::jmax (0.0, start);
+        updateScrollBars();
+        repaint();
+    };
+    overview.onShowAll = [this] { zoomAll(); };
+    addAndMakeVisible (overview);
+
     grid::fillEditorBox (snapBox);
     snapBox.setTooltip (tr ("Piano Roll grid: follows the global grid in the toolbar, or its own; hold Alt while dragging to ignore it"));
     snapBox.setWantsKeyboardFocus (false);
@@ -204,7 +217,7 @@ PianoRollComponent::~PianoRollComponent()
 juce::Rectangle<int> PianoRollComponent::gridArea() const
 {
     return getLocalBounds().withTrimmedLeft (keyboardWidth).withTrimmedTop (headerHeight)
-        .withTrimmedRight (scrollBarSize).withTrimmedBottom (scrollBarSize + velocityHeight);
+        .withTrimmedRight (scrollBarSize).withTrimmedBottom (velocityHeight);
 }
 
 juce::Rectangle<int> PianoRollComponent::velocityArea() const
@@ -306,6 +319,8 @@ void PianoRollComponent::updateScrollBars()
     vBar.setCurrentRange (scrollY, grid.getHeight(), juce::dontSendNotification);
     scrollTicks = hBar.getCurrentRangeStart();
     scrollY = (int) vBar.getCurrentRangeStart();
+    overview.minLength = grid.getWidth() / (120.0 / ticksPerStep);
+    overview.setRange (total, scrollTicks, grid.getWidth() / pixelsPerTick);
 }
 
 void PianoRollComponent::setTitleBarInsets (int left, int right)
@@ -344,13 +359,12 @@ void PianoRollComponent::resized()
         scaleSnapButton.setVisible (false);
     place (moreButton, h);
     laneBox.setBounds (2, velocityArea().getY() + 4, keyboardWidth - 4, 20);
-    hBar.setBounds (keyboardWidth, getHeight() - scrollBarSize, getWidth() - keyboardWidth - scrollBarSize, scrollBarSize);
-    vBar.setBounds (getWidth() - scrollBarSize, headerHeight, scrollBarSize,
-                    getHeight() - headerHeight - scrollBarSize - velocityHeight);
+    overview.setBounds (keyboardWidth, toolbarHeight, getWidth() - keyboardWidth - scrollBarSize, overviewHeight);
+    vBar.setBounds (getWidth() - scrollBarSize, headerHeight, scrollBarSize, getHeight() - headerHeight - velocityHeight);
     updateScrollBars();
 }
 
-void PianoRollComponent::scrollToNotes()
+void PianoRollComponent::scrollToNotes (bool fitPattern)
 {
     const auto& song = engine.getSong();
     const auto channel = engine.getSelectedChannel();
@@ -367,6 +381,14 @@ void PianoRollComponent::scrollToNotes()
     const auto centreKey = high >= 0 ? (low + high) / 2 : 66;
     scrollY = (127 - centreKey) * rowHeight - gridArea().getHeight() / 2;
     scrollTicks = 0.0;
+
+    // FL opens the Piano Roll with the whole pattern across the view (at least one bar)
+    if (fitPattern && gridArea().getWidth() > 0)
+    {
+        const auto bar = (double) ppq * juce::jmax (1, song.beatsPerBar);
+        const auto length = juce::jmax (bar, (double) currentPattern (song).effectiveLength (song.beatsPerBar));
+        pixelsPerTick = juce::jlimit (4.0 / ticksPerStep, 64.0 / ticksPerStep, gridArea().getWidth() / length);
+    }
     updateScrollBars();
     repaint();
 }
@@ -529,6 +551,58 @@ void PianoRollComponent::drumPaintAt (juce::Point<int> p, bool snapOn)
 
 // --- painting ------------------------------------------------------------------
 
+void PianoRollComponent::paintOverview (juce::Graphics& g, juce::Rectangle<float> area, double total)
+{
+    // the channel's notes across the whole view length, pitch mapped onto the strip's height; the part past
+    // the pattern's end is darker; bar lines every bar (every 4 when they get dense)
+    using namespace theme::colour;
+    const auto& song = engine.getSong();
+    const auto& pattern = currentPattern (song);
+    const auto channel = engine.getSelectedChannel();
+    const auto scale = area.getWidth() / juce::jmax (1.0, total);
+    const auto bar = (double) ppq * juce::jmax (1, song.beatsPerBar);
+    const auto end = (float) (pattern.effectiveLength (song.beatsPerBar) * scale);
+
+    g.setColour (bg2);
+    g.fillRect (area.withWidth (juce::jmin (area.getWidth(), end)));
+
+    const auto every = bar * scale < 6.0 ? 4 : 1;
+    g.setColour (gridBar.withAlpha (0.6f));
+    for (int b = every; b * bar < total; b += every)
+        g.fillRect ((float) (area.getX() + b * bar * scale), area.getY(), 1.0f, area.getHeight());
+
+    int low = 128, high = -1;
+    for (const auto& n : pattern.notes)
+        if (n.channel == channel)
+        {
+            low = juce::jmin (low, n.key);
+            high = juce::jmax (high, n.key);
+        }
+
+    if (high < 0)
+        return;
+
+    const auto span = (float) juce::jmax (12, high - low + 1);
+    const auto mid = (low + high) / 2.0f;
+    const auto inner = area.reduced (0.0f, 2.0f);
+    auto colour = accent;
+    if (channel < (int) song.channels.size() && song.channels[(std::size_t) channel].colour != 0)
+        colour = theme::tame (juce::Colour (song.channels[(std::size_t) channel].colour));
+    colour = colour.interpolatedWith (textPrimary, 0.35f); // reads on the dark strip at any channel colour
+
+    for (const auto& n : pattern.notes)
+    {
+        if (n.channel != channel)
+            continue;
+
+        const auto y = inner.getCentreY() - ((float) n.key - mid) / span * inner.getHeight();
+        const auto x = area.getX() + (float) (n.start * scale);
+        g.setColour (n.muted ? colour.withAlpha (0.35f) : colour);
+        g.fillRect (x, juce::jlimit (inner.getY(), inner.getBottom() - 2.0f, y - 1.0f),
+                    juce::jmax (1.0f, (float) (n.length * scale) - 0.5f), 2.0f);
+    }
+}
+
 void PianoRollComponent::paint (juce::Graphics& g)
 {
     const auto& song = engine.getSong();
@@ -539,6 +613,19 @@ void PianoRollComponent::paint (juce::Graphics& g)
     const auto bar = (std::int64_t) ppq * song.beatsPerBar;
     const auto snapGrid = gridTicks();
 
+    // the overview follows the notes (edits, undo, another channel or pattern) and the view
+    {
+        auto signature = (std::size_t) song.currentPattern * 1000003u + (std::size_t) channel * 7919u + pattern.notes.size();
+        for (const auto& n : pattern.notes)
+            signature = signature * 31u + (std::size_t) (n.start * 131 + n.length * 7 + n.key + n.channel * 257 + (n.muted ? 1 : 0));
+        if (signature != overviewSignature)
+        {
+            overviewSignature = signature;
+            overview.repaint();
+        }
+        overview.setRange ((double) viewLengthTicks(), scrollTicks, grid.getWidth() / pixelsPerTick);
+    }
+
     using namespace theme::colour;
     g.fillAll (bg1);
     g.setColour (bg3);
@@ -777,7 +864,7 @@ void PianoRollComponent::paint (juce::Graphics& g)
 
     // --- time ruler --------------------------------------------------------
     {
-        const auto ruler = juce::Rectangle<int> (keyboardWidth, toolbarHeight, grid.getWidth(), timelineHeight);
+        const auto ruler = juce::Rectangle<int> (keyboardWidth, rulerTop, grid.getWidth(), timelineHeight);
         g.setColour (bg2);
         g.fillRect (ruler);
         g.setColour (border);
@@ -793,15 +880,15 @@ void PianoRollComponent::paint (juce::Graphics& g)
         {
             const auto x = (int) tickToX ((double) (b * bar));
             g.setColour (textSecondary);
-            g.drawVerticalLine (x, (float) toolbarHeight + 10.0f, (float) headerHeight);
-            g.drawText (juce::String (b + 1), x + 3, toolbarHeight + 2, 40, timelineHeight - 4, juce::Justification::centredLeft);
+            g.drawVerticalLine (x, (float) rulerTop + 10.0f, (float) headerHeight);
+            g.drawText (juce::String (b + 1), x + 3, rulerTop + 2, 40, timelineHeight - 4, juce::Justification::centredLeft);
         }
 
         if (playheadTick >= 0.0)
         {
             const auto x = (float) tickToX (playheadTick);
             juce::Path tri;
-            tri.addTriangle (x - 5, (float) toolbarHeight, x + 5, (float) toolbarHeight, x, (float) toolbarHeight + 8);
+            tri.addTriangle (x - 5, (float) rulerTop, x + 5, (float) rulerTop, x, (float) rulerTop + 8);
             g.setColour (playhead);
             g.fillPath (tri);
         }
@@ -871,7 +958,7 @@ void PianoRollComponent::paint (juce::Graphics& g)
     g.setColour (bg3);
     g.fillRect (0, 0, keyboardWidth, toolbarHeight);
     g.setColour (bg2);
-    g.fillRect (0, toolbarHeight, keyboardWidth, timelineHeight);
+    g.fillRect (0, toolbarHeight, keyboardWidth, headerHeight - toolbarHeight);
     g.setColour (border);
     g.fillRect (0, headerHeight - 1, keyboardWidth, 1);
     g.fillRect (keyboardWidth - 1, 0, 1, headerHeight);
@@ -880,11 +967,11 @@ void PianoRollComponent::paint (juce::Graphics& g)
     {
         const auto& ch = song.channels[(std::size_t) channel];
         g.setColour (ch.colour != 0 ? theme::tame (juce::Colour (ch.colour)) : accent);
-        g.fillRoundedRectangle (4.0f, (float) toolbarHeight + 5.0f, 3.0f, (float) timelineHeight - 10.0f, 1.0f);
+        g.fillRoundedRectangle (4.0f, (float) toolbarHeight + 6.0f, 3.0f, (float) (headerHeight - toolbarHeight) - 12.0f, 1.0f);
         g.setColour (textPrimary);
         g.setFont (theme::font (theme::type::caption, true));
-        g.drawFittedText (juce::String::fromUTF8 (ch.name.c_str()), 11, toolbarHeight, keyboardWidth - 14, timelineHeight,
-                          juce::Justification::centredLeft, 1, 0.8f);
+        g.drawFittedText (juce::String::fromUTF8 (ch.name.c_str()), 11, toolbarHeight, keyboardWidth - 14, headerHeight - toolbarHeight,
+                          juce::Justification::centredLeft, 2, 0.8f);
     }
 }
 
@@ -1126,7 +1213,7 @@ void PianoRollComponent::mouseDown (const juce::MouseEvent& e)
     }
 
     // ruler: Ctrl+drag selects the notes in a time range
-    if (e.y >= toolbarHeight && e.y < headerHeight && e.x >= keyboardWidth && e.mods.isCtrlDown() && e.mods.isLeftButtonDown())
+    if (e.y >= rulerTop && e.y < headerHeight && e.x >= keyboardWidth && e.mods.isCtrlDown() && e.mods.isLeftButtonDown())
     {
         drag = Drag::rulerSelect;
         selectionBefore = e.mods.isShiftDown() ? selection : std::vector<int> {};
@@ -1979,7 +2066,7 @@ void PianoRollComponent::updateCursor (juce::ModifierKeys mods)
         const auto tool = tools.getTool();
         cursor = gesture::cursorFor (gesture::leftAction (tool, targetAt (hover), m, false), tool);
     }
-    else if (p.y >= toolbarHeight && p.y < headerHeight && p.x >= keyboardWidth && mods.isCtrlDown())
+    else if (p.y >= rulerTop && p.y < headerHeight && p.x >= keyboardWidth && mods.isCtrlDown())
         cursor = gesture::Cursor::select;
 
     setMouseCursor (editorCursor (cursor));
@@ -2013,7 +2100,7 @@ ui::Hint PianoRollComponent::hintAt (juce::Point<int> p)
         return hint;
     }
 
-    if (p.y >= toolbarHeight && p.y < headerHeight && p.x >= keyboardWidth)
+    if (p.y >= rulerTop && p.y < headerHeight && p.x >= keyboardWidth)
     {
         hint.text = tr ("Ruler: [Ctrl][LMB] drag selects the notes in a time range  [Ctrl][Wheel] zoom  [Shift][Wheel] scroll");
         return hint;
@@ -2085,7 +2172,7 @@ ui::Hint PianoRollComponent::hoverForSnapshot()
 {
     rowHeight = 18;
     pixelsPerTick = 64.0 / ticksPerStep;
-    scrollToNotes();
+    scrollToNotes (false);
     const auto notes = channelNotes();
 
     if (notes.empty())

+ 10 - 4
src/ui/PianoRollComponent.h

@@ -66,8 +66,9 @@ public:
     void setScaleSnap (bool on);
     bool hasScale() const { return scaleIndex() > 0; } // a scale is chosen in the toolbar
 
-    // Centers the view on the channel's notes (called on open).
-    void scrollToNotes();
+    // Centers the view on the channel's notes and, with `fitPattern`, zooms to show the whole pattern
+    // (called on open).
+    void scrollToNotes (bool fitPattern = true);
 
     // For tests/snapshots: selects all of the channel's notes.
     void selectAll();
@@ -82,8 +83,10 @@ public:
 
     static constexpr int keyboardWidth = 72;
     static constexpr int toolbarHeight = 28;
+    static constexpr int overviewHeight = 16; // the overview strip under the toolbar (round 90)
     static constexpr int timelineHeight = 22;
-    static constexpr int headerHeight = toolbarHeight + timelineHeight;
+    static constexpr int rulerTop = toolbarHeight + overviewHeight;
+    static constexpr int headerHeight = rulerTop + timelineHeight;
     static constexpr int velocityHeight = 72;
     int rowHeight = 14; // vertical zoom (Ctrl+Alt+wheel): 6..32 px per key
     static constexpr int scrollBarSize = 12;
@@ -158,7 +161,10 @@ private:
     void nudge (std::int64_t ticks, int keys);
 
     AudioEngine& engine;
-    juce::ScrollBar hBar { false }, vBar { true };
+    juce::ScrollBar hBar { false }, vBar { true }; // hBar is hidden: the overview strip scrolls sideways
+    OverviewBar overview;
+    void paintOverview (juce::Graphics& g, juce::Rectangle<float> area, double total);
+    std::size_t overviewSignature = 0; // the notes drawn in the overview (repaints it when they change)
     ToolStrip tools { false };
     int titleInsetLeft = 0, titleInsetRight = 0; // the window's title and buttons share the toolbar row
     ChannelBox channelBox;

+ 76 - 8
src/ui/PlaylistComponent.cpp

@@ -16,6 +16,7 @@
 #include "ui/I18n.h"
 #include "ui/Theme.h"
 #include "ui/WaveformView.h"
+#include "ui/AudioEditor.h"
 
 namespace lynx
 {
@@ -136,6 +137,19 @@ PlaylistComponent::PlaylistComponent (AudioEngine& e)
         addAndMakeVisible (bar);
     }
 
+    // the overview strip is the horizontal scroller (FL's Playlist has its preview bar on top)
+    hBar.setVisible (false);
+    overview.paintContent = [this] (juce::Graphics& g, juce::Rectangle<float> area, double total) { paintOverview (g, area, total); };
+    overview.onChange = [this] (double start, double length) {
+        const auto width = (double) gridArea().getWidth();
+        pixelsPerTick = juce::jlimit (4.0 / (4 * ppq), 800.0 / (4 * ppq), width / juce::jmax (1.0, length));
+        scrollTicks = juce::jmax (0.0, start);
+        updateScrollBars();
+        repaint();
+    };
+    overview.onShowAll = [this] { zoomAll(); };
+    addAndMakeVisible (overview);
+
     grid::fillEditorBox (snapBox);
     snapBox.setTooltip (tr ("Playlist grid: follows the global grid in the toolbar, or its own; hold Alt while dragging to ignore it"));
     snapBox.setWantsKeyboardFocus (false);
@@ -281,7 +295,7 @@ juce::Colour PlaylistComponent::patternColour (const Song& song, int pattern)
 juce::Rectangle<int> PlaylistComponent::gridArea() const
 {
     return getLocalBounds().withTrimmedLeft (headerWidth).withTrimmedTop (headerHeight)
-        .withTrimmedRight (scrollBarSize).withTrimmedBottom (scrollBarSize);
+        .withTrimmedRight (scrollBarSize);
 }
 
 double PlaylistComponent::tickToX (double tick) const { return headerWidth + (tick - scrollTicks) * pixelsPerTick; }
@@ -435,6 +449,8 @@ void PlaylistComponent::updateScrollBars()
     vBar.setCurrentRange (scrollY, grid.getHeight(), juce::dontSendNotification);
     scrollTicks = hBar.getCurrentRangeStart();
     scrollY = (int) vBar.getCurrentRangeStart();
+    overview.minLength = grid.getWidth() / (800.0 / (4 * ppq));
+    overview.setRange (total, scrollTicks, grid.getWidth() / pixelsPerTick);
 }
 
 void PlaylistComponent::setTitleBarInsets (int left, int right)
@@ -453,8 +469,8 @@ void PlaylistComponent::resized()
     arrangementBox.setBounds (4 + titleInsetLeft, 3, juce::jmin (150, getWidth() / 5), h);
     tools.setBounds (arrangementBox.getRight() + 8, 3, tools.getIdealWidth (h), h);
     snapBox.setBounds (tools.getRight() + 8, 3, 128, h);
-    hBar.setBounds (headerWidth, getHeight() - scrollBarSize, getWidth() - headerWidth - scrollBarSize, scrollBarSize);
-    vBar.setBounds (getWidth() - scrollBarSize, headerHeight, scrollBarSize, getHeight() - headerHeight - scrollBarSize);
+    overview.setBounds (headerWidth, toolbarHeight, getWidth() - headerWidth - scrollBarSize, overviewHeight);
+    vBar.setBounds (getWidth() - scrollBarSize, headerHeight, scrollBarSize, getHeight() - headerHeight);
     updateScrollBars();
 
     if (fitSongPending)
@@ -492,6 +508,19 @@ void PlaylistComponent::paint (juce::Graphics& g)
     const auto bar = (std::int64_t) ppq * song.beatsPerBar;
     const auto tracks = numTracks();
 
+    // the overview follows the clips (edits, undo, arrangement switches) and the view
+    {
+        auto signature = song.playlist.size() * 1000003u + (std::size_t) song.currentArrangement;
+        for (const auto& c : song.playlist)
+            signature = signature * 31u + (std::size_t) (c.start * 131 + c.length * 7 + c.track * 257 + c.pattern + (c.muted ? 1 : 0));
+        if (signature != overviewSignature)
+        {
+            overviewSignature = signature;
+            overview.repaint();
+        }
+        updateScrollBars();
+    }
+
     using namespace theme;
     g.fillAll (colour::bg1);
 
@@ -704,7 +733,7 @@ void PlaylistComponent::paint (juce::Graphics& g)
     // --- ruler (drawn in its own coordinates, below the toolbar) -----------------
     {
         juce::Graphics::ScopedSaveState state (g);
-        g.setOrigin (0, toolbarHeight);
+        g.setOrigin (0, rulerTop);
         const auto ruler = juce::Rectangle<int> (headerWidth, 0, grid.getWidth(), timelineHeight);
         g.setColour (colour::bg2);
         g.fillRect (ruler);
@@ -825,13 +854,51 @@ void PlaylistComponent::paint (juce::Graphics& g)
     g.setColour (colour::bg3);
     g.fillRect (0, 0, getWidth(), toolbarHeight);
     g.setColour (colour::bg2);
-    g.fillRect (0, toolbarHeight, headerWidth, timelineHeight);
+    g.fillRect (0, toolbarHeight, headerWidth, headerHeight - toolbarHeight);
     g.setColour (colour::border);
     g.fillRect (0, toolbarHeight - 1, getWidth(), 1);
     g.fillRect (0, headerHeight - 1, headerWidth, 1);
     g.fillRect (headerWidth - 1, toolbarHeight, 1, getHeight() - toolbarHeight);
 }
 
+void PlaylistComponent::paintOverview (juce::Graphics& g, juce::Rectangle<float> area, double total)
+{
+    // every clip of the arrangement in miniature (its colour, its track's row), bar lines, the song's end
+    using namespace theme;
+    const auto& song = engine.getSong();
+    const auto scale = area.getWidth() / juce::jmax (1.0, total);
+    const auto bar = (double) ppq * juce::jmax (1, song.beatsPerBar);
+
+    g.setColour (colour::bg2);
+    g.fillRect (area.withWidth (juce::jmin (area.getWidth(), (float) (song.songLength() * scale))));
+
+    const auto every = bar * scale < 3.0 ? 16 : bar * scale < 6.0 ? 4 : 1;
+    g.setColour (colour::gridBar.withAlpha (0.5f));
+    for (int b = every; b * bar < total; b += every)
+        g.fillRect ((float) (area.getX() + b * bar * scale), area.getY(), 1.0f, area.getHeight());
+
+    int rows = 1;
+    for (const auto& c : song.playlist)
+        rows = juce::jmax (rows, c.track + 1);
+
+    const auto inner = area.reduced (0.0f, 1.0f);
+    const auto rowHeight = inner.getHeight() / (float) rows;
+
+    for (const auto& c : song.playlist)
+    {
+        auto base = colour::automation;
+        if (c.kind == ClipKind::pattern && c.pattern >= 0 && c.pattern < (int) song.patterns.size())
+            base = tame (patternColour (song, c.pattern));
+        else if (c.kind == ClipKind::audio && c.channel >= 0 && c.channel < (int) song.channels.size())
+            base = tame (audioClipColour (song.channels[(std::size_t) c.channel]));
+
+        const auto y = inner.getY() + rowHeight * (float) c.track;
+        g.setColour (c.muted ? base.withAlpha (0.35f) : base);
+        g.fillRect ((float) (area.getX() + c.start * scale), y, juce::jmax (1.0f, (float) (c.length * scale) - 0.5f),
+                    juce::jmax (1.0f, rowHeight - (rowHeight >= 3.0f ? 0.5f : 0.0f)));
+    }
+}
+
 void PlaylistComponent::paintOverChildren (juce::Graphics& g)
 {
     if (! ripple)
@@ -1238,7 +1305,7 @@ void PlaylistComponent::mouseDown (const juce::MouseEvent& e)
     }
 
     // ruler: click = position; Ctrl+drag = time selection (Ctrl+click or double click clears it)
-    if (e.y >= toolbarHeight && e.y < headerHeight && e.x >= headerWidth)
+    if (e.y >= rulerTop && e.y < headerHeight && e.x >= headerWidth)
     {
         if (e.mods.isPopupMenu())
         {
@@ -2499,6 +2566,7 @@ juce::PopupMenu PlaylistComponent::buildClipMenu (int index, int mouseX)
             if (onOpenInSampler)
                 onOpenInSampler (ch);
         });
+        menu.addItem (tr ("Edit in the audio editor..."), sample != nullptr, false, [this, ch = clip.channel] { openAudioEditorForChannel (engine, ch); });
         menu.addItem (tr ("Show the file in Explorer"), juce::File (path).existsAsFile(), false, [path] { juce::File (path).revealToUser(); });
     }
 
@@ -3080,7 +3148,7 @@ void PlaylistComponent::updateCursor (juce::ModifierKeys mods)
         const auto tool = tools.getTool();
         cursor = gesture::cursorFor (gesture::leftAction (tool, hover.target, m, true), tool);
     }
-    else if (p.y >= toolbarHeight && p.y < headerHeight && p.x >= headerWidth)
+    else if (p.y >= rulerTop && p.y < headerHeight && p.x >= headerWidth)
         cursor = mods.isCtrlDown() ? gesture::Cursor::select : gesture::Cursor::point;
 
     setMouseCursor (editorCursor (cursor));
@@ -3114,7 +3182,7 @@ ui::Hint PlaylistComponent::hintAt (juce::Point<int> p)
         return hint;
     }
 
-    if (p.y >= toolbarHeight && p.y < headerHeight && p.x >= headerWidth)
+    if (p.y >= rulerTop && p.y < headerHeight && p.x >= headerWidth)
     {
         hint.text = tr ("Ruler: [LMB] song position  [Ctrl][LMB] drag: time selection (loop)  [Shift][LMB] drag in it: move  [2xLMB] clear  [RMB] markers");
         hint.hasMenu = true;

+ 7 - 2
src/ui/PlaylistComponent.h

@@ -111,8 +111,10 @@ public:
 
     static constexpr int headerWidth = 96;
     static constexpr int toolbarHeight = 28;
+    static constexpr int overviewHeight = 16; // the overview strip under the toolbar (round 90)
     static constexpr int timelineHeight = 24;
-    static constexpr int headerHeight = toolbarHeight + timelineHeight;
+    static constexpr int rulerTop = toolbarHeight + overviewHeight;
+    static constexpr int headerHeight = rulerTop + timelineHeight;
     static constexpr int trackHeight = 38; // the default row height (each track can be resized: P18)
     static constexpr int scrollBarSize = 12;
 
@@ -191,7 +193,10 @@ private:
     void showTrackMenu (int track);
 
     AudioEngine& engine;
-    juce::ScrollBar hBar { false }, vBar { true };
+    juce::ScrollBar hBar { false }, vBar { true }; // hBar is hidden: the overview strip scrolls sideways
+    OverviewBar overview;
+    void paintOverview (juce::Graphics& g, juce::Rectangle<float> area, double total);
+    std::size_t overviewSignature = 0; // the clips drawn in the overview (repaints it when they change)
     juce::ComboBox arrangementBox;
     SnapBox snapBox { true }; // "Main" (the toolbar snap) or this editor's own grid
     ToolStrip tools { true };

+ 54 - 4
src/ui/SettingsPages.cpp

@@ -279,7 +279,7 @@ class AudioPage final : public ScrollingPage,
 public:
     AudioPage (AudioEngine& e) : engine (e), devices (e.getDeviceManager())
     {
-        for (auto* c : std::initializer_list<juce::Component*> { &deviceTitle, &statusTitle, &recordTitle, &driverLabel, &driverBox, &outputLabel,
+        for (auto* c : std::initializer_list<juce::Component*> { &deviceTitle, &statusTitle, &recordTitle, &driverLabel, &driverBox, &driverNote, &outputLabel,
                                                                  &outputBox, &inputLabel, &inputBox, &rateLabel, &rateBox, &bufferLabel, &bufferBox,
                                                                  &bufferNote, &panelButton, &testButton, &status, &load, &recordInput, &recordNote, &inputChannels })
             add (*c);
@@ -289,6 +289,7 @@ public:
         styleLabel (inputLabel, tr ("Input device"));
         styleLabel (rateLabel, tr ("Sample rate"));
         styleLabel (bufferLabel, tr ("Buffer size"));
+        styleNote (driverNote, {});
         styleNote (bufferNote, tr ("Smaller buffers answer faster when you play; larger ones give the CPU more room (fewer clicks)."));
         for (auto* l : { &status, &load })
         {
@@ -366,7 +367,8 @@ private:
     {
         Rows r (width);
         r.section (deviceTitle, true);
-        driverBox.setBounds (r.row (driverLabel, 260));
+        driverBox.setBounds (r.row (driverLabel, 320));
+        driverNote.setBounds (r.indented (46).translated (0, -6));
         outputBox.setBounds (r.row (outputLabel, 0));
         inputBox.setBounds (r.row (inputLabel, 0));
         rateBox.setBounds (r.row (rateLabel, 160));
@@ -409,7 +411,7 @@ private:
         auto& types = devices.getAvailableDeviceTypes();
         for (int i = 0; i < types.size(); ++i)
         {
-            driverBox.addItem (types[i]->getTypeName(), i + 1);
+            driverBox.addItem (driverDisplayName (types[i]->getTypeName()), i + 1);
             if (types[i] == type)
                 driverBox.setSelectedId (i + 1, juce::dontSendNotification);
         }
@@ -457,12 +459,17 @@ private:
                 rateBox.addItem (juce::String ((int) r) + " Hz", (int) r);
             rateBox.setSelectedId ((int) rate, juce::dontSendNotification);
 
+            const auto kind = prefs::driverKind (device->getTypeName().toStdString());
+            std::vector<int> offered;
             for (auto b : device->getAvailableBufferSizes())
+                offered.push_back (b);
+            for (auto b : prefs::usableBufferSizes (kind, offered, device->getDefaultBufferSize()))
                 bufferBox.addItem (tr ("{0} samples ({1} ms)", { juce::String (b), juce::String (prefs::bufferLatencyMs (b, rate), 1) }), b);
             bufferBox.setSelectedId (device->getCurrentBufferSizeSamples(), juce::dontSendNotification);
         }
         for (auto* b : { &outputBox, &inputBox, &rateBox, &bufferBox })
             b->setEnabled (b->getNumItems() > 0);
+        driverNote.setText (driverExplanation (type != nullptr ? type->getTypeName() : juce::String(), device), juce::dontSendNotification);
         panelButton.setEnabled (device != nullptr && device->hasControlPanel());
         testButton.setEnabled (device != nullptr);
         recordInput.setToggleState (engine.isAudioRecordingArmed(), juce::dontSendNotification);
@@ -508,12 +515,55 @@ private:
     void changeListenerCallback (juce::ChangeBroadcaster*) override { refresh(); }
     void timerCallback() override { updateStatus(); }
 
+    // The driver types with what they mean (JUCE's type names stay the identity in the saved setup).
+    static juce::String driverDisplayName (const juce::String& typeName)
+    {
+        switch (prefs::driverKind (typeName.toStdString()))
+        {
+            case prefs::DriverKind::wasapiShared:     return tr ("Windows Audio (shared)");
+            case prefs::DriverKind::wasapiLowLatency: return tr ("Windows Audio (shared, low-latency period)");
+            case prefs::DriverKind::wasapiExclusive:  return tr ("Windows Audio (exclusive, lowest latency)");
+            case prefs::DriverKind::directSound:      return tr ("DirectSound (legacy)");
+            case prefs::DriverKind::asio:             return "ASIO";
+            case prefs::DriverKind::other:            break;
+        }
+        return typeName;
+    }
+
+    // What the selected driver type does, and for shared mode the period this device mixes at (REA round 97).
+    static juce::String driverExplanation (const juce::String& typeName, juce::AudioIODevice* device)
+    {
+        const auto rate = device != nullptr && device->getCurrentSampleRate() > 0 ? device->getCurrentSampleRate() : 48000.0;
+        const auto period = device != nullptr ? device->getDefaultBufferSize() : 0;
+        switch (prefs::driverKind (typeName.toStdString()))
+        {
+            case prefs::DriverKind::wasapiShared:
+                return tr ("Other programs keep their sound. Windows mixes every program in steps of {0} ms on this device, so the buffer cannot go below that. "
+                           "For lower latency choose the exclusive mode or an ASIO driver.",
+                           { juce::String (prefs::bufferLatencyMs (period > 0 ? period : 480, rate), 1) });
+            case prefs::DriverKind::wasapiLowLatency:
+                return period > 0 && device != nullptr && device->getAvailableBufferSizes().size() <= 1
+                           ? tr ("This device does not support a shorter period in shared mode (it stays at {0} ms). Use the exclusive mode or an ASIO driver for lower latency.",
+                                 { juce::String (prefs::bufferLatencyMs (period, rate), 1) })
+                           : tr ("Shared like the normal mode, but asks Windows for a shorter mixing period. Only some drivers support it.");
+            case prefs::DriverKind::wasapiExclusive:
+                return tr ("LYNX uses the device alone: the lowest latency without ASIO, but other programs go silent while LYNX plays.");
+            case prefs::DriverKind::directSound:
+                return tr ("Old Windows audio path with high latency. Use it only when the others fail.");
+            case prefs::DriverKind::asio:
+                return tr ("Low-latency drivers. LYNX ASIO, FL Studio ASIO and ASIO4ALL work with any device; a manufacturer's ASIO driver works with its own device.");
+            case prefs::DriverKind::other:
+                break;
+        }
+        return {};
+    }
+
     AudioEngine& engine;
     juce::AudioDeviceManager& devices;
     bool updating = false;
     juce::String error;
     SectionTitle deviceTitle { tr ("Audio device") }, statusTitle { tr ("Status") }, recordTitle { tr ("Recording") };
-    juce::Label driverLabel, outputLabel, inputLabel, rateLabel, bufferLabel, bufferNote, status, load, recordNote, inputChannels;
+    juce::Label driverLabel, driverNote, outputLabel, inputLabel, rateLabel, bufferLabel, bufferNote, status, load, recordNote, inputChannels;
     juce::ComboBox driverBox, outputBox, inputBox, rateBox, bufferBox;
     juce::TextButton panelButton { tr ("Driver settings...") }, testButton { tr ("Play a test sound") };
     juce::ToggleButton recordInput;

+ 431 - 0
tests/AudioEditTests.inc

@@ -0,0 +1,431 @@
+// Audio editor core (round 86, core/AudioEdit.h): every edit operation, markers, history, spectrogram, WAV.
+// Included at the end of tests.cpp.
+
+#include "core/AudioEdit.h"
+
+namespace
+{
+namespace ae = lynx::audioedit;
+
+// stereo ramp: left[i] = i, right[i] = -i (exact values make positions easy to check)
+ae::Document rampDoc (std::int64_t frames, double rate = 1000.0)
+{
+    ae::Document d;
+    d.audio.sampleRate = rate;
+    d.audio.channels.assign (2, std::vector<float> ((std::size_t) frames));
+    for (std::int64_t i = 0; i < frames; ++i)
+    {
+        d.audio.channels[0][(std::size_t) i] = (float) i;
+        d.audio.channels[1][(std::size_t) i] = -(float) i;
+    }
+    return d;
+}
+
+ae::Document sineDoc (double freq, double seconds, double rate = 44100.0, float amplitude = 0.5f, int channels = 2)
+{
+    ae::Document d;
+    d.audio.sampleRate = rate;
+    const auto n = (std::size_t) std::llround (seconds * rate);
+    d.audio.channels.assign ((std::size_t) channels, std::vector<float> (n));
+    for (std::size_t i = 0; i < n; ++i)
+        for (auto& ch : d.audio.channels)
+            ch[i] = amplitude * (float) std::sin (2.0 * 3.141592653589793 * freq * (double) i / rate);
+    return d;
+}
+
+// dominant frequency by zero crossings of channel 0 over [from, to)
+double zeroCrossFreq (const ae::Audio& a, std::int64_t from, std::int64_t to)
+{
+    int crossings = 0;
+    const auto& x = a.channels[0];
+    for (auto i = from + 1; i < to; ++i)
+        if ((x[(std::size_t) i - 1] < 0.0f) != (x[(std::size_t) i] < 0.0f))
+            ++crossings;
+    return crossings * 0.5 / ((double) (to - from) / a.sampleRate);
+}
+} // namespace
+
+TEST (audioedit_copy_cut_erase_insert)
+{
+    auto d = rampDoc (100);
+    const auto c = ae::copy (d.audio, { 10, 20 });
+    CHECK (c.frames() == 10 && c.numChannels() == 2 && c.channels[0][0] == 10.0f && c.channels[1][9] == -19.0f);
+
+    auto cutDoc = d;
+    const auto clip = ae::cut (cutDoc, { 10, 20 });
+    CHECK (clip.frames() == 10 && clip.channels[0][3] == 13.0f);
+    CHECK (cutDoc.audio.frames() == 90 && cutDoc.audio.channels[0][10] == 20.0f && cutDoc.audio.channels[1][9] == -9.0f);
+
+    auto erased = d;
+    ae::erase (erased, { 0, 50 });
+    CHECK (erased.audio.frames() == 50 && erased.audio.channels[0][0] == 50.0f);
+    ae::erase (erased, { 40, 40 }); // empty: nothing
+    CHECK (erased.audio.frames() == 50);
+    ae::erase (erased, { 45, 999 }); // clamped
+    CHECK (erased.audio.frames() == 45);
+
+    // paste insert puts the clip back where it was
+    ae::insert (cutDoc, 10, clip);
+    CHECK (cutDoc.audio.frames() == 100);
+    bool same = true;
+    for (int i = 0; i < 100; ++i)
+        same = same && cutDoc.audio.channels[0][(std::size_t) i] == (float) i && cutDoc.audio.channels[1][(std::size_t) i] == -(float) i;
+    CHECK (same);
+
+    // into an empty document: the clip becomes the audio
+    ae::Document empty;
+    ae::insert (empty, 0, clip);
+    CHECK (empty.audio.frames() == 10 && empty.audio.sampleRate == 1000.0);
+}
+
+TEST (audioedit_paste_replace_mix_conform)
+{
+    auto d = rampDoc (100);
+    ae::Audio mono;
+    mono.sampleRate = 1000.0;
+    mono.channels = { std::vector<float> (5, 1.0f) };
+
+    auto r = d;
+    ae::pasteReplace (r, { 10, 30 }, mono); // 20 frames become 5, mono duplicated to both sides
+    CHECK (r.audio.frames() == 85 && r.audio.channels[0][10] == 1.0f && r.audio.channels[1][14] == 1.0f && r.audio.channels[0][15] == 30.0f);
+
+    auto m = d;
+    ae::pasteMix (m, 98, mono); // summed, extends past the end
+    CHECK (m.audio.frames() == 103 && m.audio.channels[0][98] == 99.0f && m.audio.channels[1][99] == -98.0f && m.audio.channels[0][102] == 1.0f);
+
+    // stereo → mono averages; another rate is resampled to the document's
+    ae::Audio stereo;
+    stereo.sampleRate = 2000.0;
+    stereo.channels = { std::vector<float> (200, 0.8f), std::vector<float> (200, 0.2f) };
+    const auto c = ae::conform (stereo, 1, 1000.0);
+    CHECK (c.numChannels() == 1 && c.frames() == 100 && c.sampleRate == 1000.0);
+    CHECK (std::abs (c.channels[0][50] - 0.5f) < 1.0e-4f && std::abs (c.channels[0][0] - 0.5f) < 1.0e-3f);
+}
+
+TEST (audioedit_trim_clear_silence_after_loop)
+{
+    auto d = rampDoc (100);
+    ae::trim (d, { 20, 30 });
+    CHECK (d.audio.frames() == 10 && d.audio.channels[0][0] == 20.0f && d.audio.channels[0][9] == 29.0f);
+
+    auto c = rampDoc (100);
+    ae::clear (c, { 10, 20 });
+    CHECK (c.audio.frames() == 100 && c.audio.channels[0][10] == 0.0f && c.audio.channels[1][19] == 0.0f && c.audio.channels[0][20] == 20.0f);
+
+    auto s = rampDoc (100);
+    ae::insertSilence (s, 50, 25);
+    CHECK (s.audio.frames() == 125 && s.audio.channels[0][50] == 0.0f && s.audio.channels[0][74] == 0.0f && s.audio.channels[0][75] == 50.0f);
+
+    auto l = rampDoc (100);
+    ae::setLoop (l, { 10, 60 });
+    ae::deleteAfterLoop (l);
+    CHECK (l.audio.frames() == 60 && l.loopStart == 10 && l.loopEnd == 60);
+}
+
+TEST (audioedit_fades_and_curves)
+{
+    for (auto c : { ae::Curve::linear, ae::Curve::smooth, ae::Curve::exponential, ae::Curve::logarithmic })
+    {
+        CHECK (ae::curveGain (c, 0.0f) == 0.0f);
+        CHECK (std::abs (ae::curveGain (c, 1.0f) - 1.0f) < 1.0e-6f);
+        // monotonic
+        float prev = -1.0f;
+        bool rising = true;
+        for (int i = 0; i <= 20; ++i)
+        {
+            const auto g = ae::curveGain (c, (float) i / 20.0f);
+            rising = rising && g >= prev;
+            prev = g;
+        }
+        CHECK (rising);
+    }
+    CHECK (ae::curveGain (ae::Curve::exponential, 0.5f) < 0.5f && ae::curveGain (ae::Curve::logarithmic, 0.5f) > 0.5f);
+    CHECK (std::abs (ae::curveGain (ae::Curve::smooth, 0.5f) - 0.5f) < 1.0e-6f);
+
+    ae::Document d;
+    d.audio.sampleRate = 1000.0;
+    d.audio.channels = { std::vector<float> (100, 1.0f) };
+    auto in = d;
+    ae::fadeIn (in, { 0, 11 }, ae::Curve::linear);
+    CHECK (in.audio.channels[0][0] == 0.0f && std::abs (in.audio.channels[0][5] - 0.5f) < 1.0e-6f && in.audio.channels[0][10] == 1.0f && in.audio.channels[0][50] == 1.0f);
+    auto out = d;
+    ae::fadeOut (out, { 89, 100 }, ae::Curve::smooth);
+    CHECK (out.audio.channels[0][88] == 1.0f && out.audio.channels[0][89] == 1.0f && out.audio.channels[0][99] == 0.0f);
+
+    // declick: a short (4 ms) fade at the edge of the range only
+    ae::Document k;
+    k.audio.sampleRate = 10000.0;
+    k.audio.channels = { std::vector<float> (1000, 1.0f) };
+    ae::declickIn (k, {});
+    ae::declickOut (k, {});
+    CHECK (k.audio.channels[0][0] == 0.0f && k.audio.channels[0][40] == 1.0f && k.audio.channels[0][999] == 0.0f && k.audio.channels[0][959] == 1.0f);
+}
+
+TEST (audioedit_gain_normalize_polarity_dc)
+{
+    auto d = sineDoc (100.0, 0.1, 8000.0, 0.25f);
+    const auto g = ae::normalize (d, {}, 0.0f);
+    CHECK (std::abs (g - 4.0f) < 0.01f);
+    CHECK (std::abs (ae::peak (d.audio, { 0, d.audio.frames() }) - 1.0f) < 1.0e-5f);
+    ae::normalize (d, {}, -6.0f);
+    CHECK (std::abs (ae::peak (d.audio, { 0, d.audio.frames() }) - 0.501187f) < 1.0e-4f);
+
+    // silence is left alone
+    auto s = ae::Document {};
+    s.audio = ae::silence (2, 44100.0, 100);
+    CHECK (ae::normalize (s, {}) == 1.0f);
+
+    // gain + pan: pan right turns the left side down, the right side stays
+    auto p = rampDoc (10);
+    ae::amp (p, {}, 0.5f, 0.5f);
+    CHECK (std::abs (p.audio.channels[0][4] - 4.0f * 0.25f) < 1.0e-6f && std::abs (p.audio.channels[1][4] + 4.0f * 0.5f) < 1.0e-6f);
+
+    auto inv = rampDoc (10);
+    ae::invert (inv, { 2, 4 });
+    CHECK (inv.audio.channels[0][2] == -2.0f && inv.audio.channels[1][3] == 3.0f && inv.audio.channels[0][4] == 4.0f);
+
+    // DC removal: a sine on a 0.3 offset ends up centred
+    auto dc = sineDoc (50.0, 0.2, 1000.0, 0.5f, 1);
+    for (auto& v : dc.audio.channels[0])
+        v += 0.3f;
+    ae::removeDc (dc, {});
+    double mean = 0.0;
+    for (auto v : dc.audio.channels[0])
+        mean += v;
+    CHECK (std::abs (mean / (double) dc.audio.frames()) < 1.0e-5);
+    CHECK (ae::rms (dc.audio, { 0, dc.audio.frames() }) > 0.34f && ae::rms (dc.audio, { 0, dc.audio.frames() }) < 0.36f);
+}
+
+TEST (audioedit_reverse_channels)
+{
+    auto d = rampDoc (10);
+    ae::addMarker (d, 2, "a");
+    ae::addRegion (d, { 1, 3 }, "r");
+    ae::reverse (d, { 0, 10 });
+    CHECK (d.audio.channels[0][0] == 9.0f && d.audio.channels[1][9] == 0.0f);
+    // markers inside are mirrored (region [1,3) → [7,9), marker 2 → 8)
+    CHECK (d.markers.size() == 2 && d.markers[0].start == 7 && d.markers[0].end == 9 && d.markers[1].start == 8 && d.markers[1].name == "a");
+
+    auto s = rampDoc (4);
+    ae::swapChannels (s);
+    CHECK (s.audio.channels[0][3] == -3.0f && s.audio.channels[1][3] == 3.0f);
+    auto m = rampDoc (4);
+    ae::toMono (m, ae::MonoSource::merged);
+    CHECK (m.audio.numChannels() == 1 && m.audio.channels[0][3] == 0.0f);
+    auto r = rampDoc (4);
+    ae::toMono (r, ae::MonoSource::right);
+    CHECK (r.audio.channels[0][2] == -2.0f);
+    ae::toStereo (r);
+    CHECK (r.audio.numChannels() == 2 && r.audio.channels[1][2] == -2.0f);
+}
+
+TEST (audioedit_resample_speed_stretch_pitch)
+{
+    // resampling keeps the pitch and the duration
+    auto d = sineDoc (440.0, 0.5, 44100.0);
+    ae::resample (d, 22050.0);
+    CHECK (d.audio.sampleRate == 22050.0 && d.audio.frames() == 11025);
+    CHECK (std::abs (zeroCrossFreq (d.audio, 1000, 10000) - 440.0) < 3.0);
+    CHECK (std::abs (ae::peak (d.audio, { 1000, 10000 }) - 0.5f) < 0.01f);
+
+    // a tone above the new Nyquist is filtered out instead of aliasing
+    auto hi = sineDoc (15000.0, 0.2, 44100.0);
+    ae::resample (hi, 22050.0);
+    CHECK (ae::rms (hi.audio, { 500, hi.audio.frames() - 500 }) < 0.01f);
+
+    // DC stays DC (also at the edges)
+    std::vector<float> dc (100, 0.7f);
+    const auto up = ae::resampleChannel (dc, 333);
+    bool flat = true;
+    for (auto v : up)
+        flat = flat && std::abs (v - 0.7f) < 1.0e-4f;
+    CHECK (up.size() == 333 && flat);
+
+    // speed change: half as long, one octave up
+    auto s = sineDoc (440.0, 0.5, 44100.0);
+    ae::changeSpeed (s, {}, 0.5);
+    CHECK (s.audio.frames() == 11025);
+    CHECK (std::abs (zeroCrossFreq (s.audio, 500, 10500) - 880.0) < 6.0);
+
+    // time stretch: twice as long, same pitch; markers after the range shift, inside scale
+    auto t = sineDoc (440.0, 0.5, 44100.0);
+    ae::addMarker (t, 11025, "mid");
+    ae::addMarker (t, 22000, "end");
+    ae::timeStretch (t, { 0, 11025 }, 2.0);
+    CHECK (t.audio.frames() == 22050 + 11025);
+    CHECK (std::abs (zeroCrossFreq (t.audio, 2000, 20000) - 440.0) < 6.0);
+    CHECK (t.markers.size() == 2 && t.markers[0].start == 22050 && t.markers[1].start == 22000 + 11025);
+
+    // pitch shift: same length, +12 semitones = double frequency
+    auto p = sineDoc (440.0, 0.5, 44100.0);
+    ae::pitchShift (p, {}, 12.0);
+    CHECK (p.audio.frames() == 22050);
+    CHECK (std::abs (zeroCrossFreq (p.audio, 3000, 19000) - 880.0) < 12.0);
+}
+
+TEST (audioedit_markers_follow_edits)
+{
+    auto d = rampDoc (100);
+    ae::addMarker (d, 10, "a");
+    ae::addMarker (d, 50, "b");
+    ae::addRegion (d, { 60, 80 }, "r");
+    ae::setLoop (d, { 40, 90 });
+    CHECK (d.markers.size() == 3 && d.markers[2].isRegion());
+
+    auto e = d;
+    ae::erase (e, { 45, 70 }); // marker 50 dropped, region clipped to [45, 55), loop [40, 65)
+    CHECK (e.markers.size() == 2 && e.markers[1].start == 45 && e.markers[1].end == 55 && e.loopStart == 40 && e.loopEnd == 65);
+
+    auto i = d;
+    ae::insertSilence (i, 20, 5);
+    CHECK (i.markers[0].start == 10 && i.markers[1].start == 55 && i.markers[2].start == 65 && i.loopEnd == 95);
+
+    auto t = d;
+    ae::trim (t, { 50, 100 }); // marker at 50 stays at the new start
+    CHECK (t.markers.size() == 2 && t.markers[0].start == 0 && t.markers[1].start == 10 && t.loopStart == 0 && t.loopEnd == 40);
+
+    // erasing the loop entirely removes it
+    auto l = d;
+    ae::erase (l, { 30, 95 });
+    CHECK (! l.hasLoop());
+
+    // removing: markers in a range, regions overlapping it
+    auto r = d;
+    CHECK (ae::removeMarkers (r, { 0, 61 }) == 3);
+    auto r2 = d;
+    CHECK (ae::removeMarkers (r2, { 50, 50 }) == 1 && r2.markers.size() == 2);
+
+    // resampling scales them
+    auto s = rampDoc (100, 1000.0);
+    ae::addMarker (s, 50);
+    ae::setLoop (s, { 10, 20 });
+    ae::resample (s, 2000.0);
+    CHECK (s.markers[0].start == 100 && s.loopStart == 20 && s.loopEnd == 40);
+
+    ae::setLoop (s, {});
+    CHECK (! s.hasLoop());
+}
+
+TEST (audioedit_zero_crossing_and_onsets)
+{
+    auto d = sineDoc (100.0, 0.1, 1000.0, 0.5f, 1); // crossings every 5 frames
+    const auto z = ae::nearestZeroCrossing (d.audio, 12, 10);
+    CHECK (z == 10 || z == 11);
+    CHECK (ae::nearestZeroCrossing (d.audio, 12, 0) == 12);
+
+    // clicks at known places on low noise
+    ae::Document c;
+    c.audio = ae::silence (1, 44100.0, 44100);
+    std::uint32_t seed = 1;
+    for (auto& v : c.audio.channels[0])
+    {
+        seed = seed * 1664525u + 1013904223u;
+        v = ((float) (seed >> 8) / 16777216.0f - 0.5f) * 0.001f;
+    }
+    for (std::int64_t at : { 4410, 15000, 30000 })
+        for (int i = 0; i < 2000; ++i)
+            c.audio.channels[0][(std::size_t) (at + i)] += 0.8f * std::exp (-(float) i / 300.0f) * (float) std::sin (0.3 * i);
+    const auto onsets = ae::detectOnsets (c.audio, 0.5f);
+    CHECK (onsets.size() == 3);
+    if (onsets.size() == 3)
+        CHECK (std::abs (onsets[0] - 4410) < 300 && std::abs (onsets[1] - 15000) < 300 && std::abs (onsets[2] - 30000) < 300);
+}
+
+TEST (audioedit_history_undo_redo)
+{
+    ae::History h (std::size_t (1) << 30);
+    auto d = rampDoc (100);
+    h.reset (d, "Open");
+    CHECK (! h.canUndo() && ! h.canRedo() && h.size() == 1);
+
+    ae::erase (d, { 0, 10 });
+    h.commit (d, "Delete");
+    ae::reverse (d, {});
+    h.commit (d, "Reverse");
+    CHECK (h.size() == 3 && h.getPosition() == 2 && h.label (1) == "Delete");
+
+    CHECK (h.undo().audio.frames() == 90 && h.current().audio.channels[0][0] == 10.0f);
+    CHECK (h.undo().audio.frames() == 100);
+    CHECK (! h.canUndo() && h.canRedo());
+    CHECK (h.redo().audio.frames() == 90);
+    CHECK (h.jumpTo (2).audio.channels[0][0] == 99.0f);
+
+    // a new edit after undo drops the redo steps
+    h.jumpTo (0);
+    auto e = h.current();
+    ae::clear (e, {});
+    h.commit (e, "Clear");
+    CHECK (h.size() == 2 && ! h.canRedo() && h.label (1) == "Clear");
+
+    // memory bound: oldest states go, the current and one before it stay
+    ae::History small (1000);
+    auto s = rampDoc (100); // 800 bytes per state
+    small.reset (s, "Open");
+    small.commit (s, "a");
+    small.commit (s, "b");
+    CHECK (small.size() == 2 && small.label (0) == "a" && small.canUndo());
+}
+
+TEST (audioedit_spectrogram)
+{
+    const auto d = sineDoc (1000.0, 0.5, 44100.0, 1.0f);
+    const auto s = ae::spectrogram (d.audio, { 0, d.audio.frames() }, 8, 2048);
+    CHECK (s.columns == 8 && s.bins == 1024);
+    // the strongest bin is at 1000 Hz and reads about 0 dB
+    int best = 0;
+    for (int b = 1; b < s.bins; ++b)
+        if (s.at (4, b) > s.at (4, best))
+            best = b;
+    const auto hz = best * 44100.0 / 2048.0;
+    CHECK (std::abs (hz - 1000.0) < 25.0);
+    CHECK (s.at (4, best) > -3.0f && s.at (4, best) < 0.5f);
+    CHECK (s.at (4, 600) < -60.0f);
+    CHECK (ae::spectrogram (d.audio, { 0, 100 }, 4, 1000).columns == 0); // not a power of two
+}
+
+TEST (audioedit_wav_roundtrip_with_markers)
+{
+    auto d = sineDoc (440.0, 0.05, 48000.0, 0.5f);
+    ae::addMarker (d, 100, "kick");
+    ae::addRegion (d, { 500, 900 }, "snare");
+    ae::addMarker (d, 1200); // unnamed
+    ae::setLoop (d, { 200, 2000 });
+
+    for (auto format : { ae::WavFormat::int16, ae::WavFormat::int24, ae::WavFormat::float32 })
+    {
+        const auto bytes = ae::encodeWav (d, format);
+        ae::Document back;
+        CHECK (ae::decodeWav (bytes.data(), bytes.size(), back));
+        CHECK (back.audio.sampleRate == 48000.0 && back.audio.numChannels() == 2 && back.audio.frames() == d.audio.frames());
+        const auto tolerance = format == ae::WavFormat::int16 ? 1.0e-4f : format == ae::WavFormat::int24 ? 1.0e-6f : 0.0f;
+        float err = 0.0f;
+        for (std::size_t i = 0; i < (std::size_t) d.audio.frames(); ++i)
+            err = std::max (err, std::abs (back.audio.channels[1][i] - d.audio.channels[1][i]));
+        CHECK (err <= tolerance);
+        CHECK (back.markers.size() == 3);
+        if (back.markers.size() == 3)
+        {
+            CHECK (back.markers[0].start == 100 && back.markers[0].name == "kick" && ! back.markers[0].isRegion());
+            CHECK (back.markers[1].start == 500 && back.markers[1].end == 900 && back.markers[1].name == "snare");
+            CHECK (back.markers[2].start == 1200 && back.markers[2].name.empty());
+        }
+        CHECK (back.loopStart == 200 && back.loopEnd == 2000);
+        // RIFF size is consistent
+        CHECK ((std::size_t) (bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24) == bytes.size() - 8);
+    }
+
+    // markers only (the audio comes from another decoder)
+    const auto bytes = ae::encodeWav (d, ae::WavFormat::int16);
+    ae::Document only;
+    only.audio = ae::silence (2, 48000.0, d.audio.frames());
+    CHECK (ae::decodeWavMarkers (bytes.data(), bytes.size(), only) && only.markers.size() == 3 && only.loopEnd == 2000);
+
+    // mono, no markers, and not-a-WAV
+    ae::Document mono;
+    mono.audio = ae::silence (1, 22050.0, 10);
+    const auto m = ae::encodeWav (mono);
+    ae::Document mb;
+    CHECK (ae::decodeWav (m.data(), m.size(), mb) && mb.audio.numChannels() == 1 && mb.markers.empty() && ! mb.hasLoop());
+    const std::uint8_t junk[16] = { 'R', 'I', 'F', 'X' };
+    CHECK (! ae::decodeWav (junk, sizeof (junk), mb));
+}

+ 36 - 0
tests/UiLook90Tests.inc

@@ -49,3 +49,39 @@ TEST (uilook90_flp_track_colours)
     }
     CHECK (song.playlistTracks.size() <= 40 || song.playlistTracks[40].colour == 0);
 }
+
+TEST (uilook90_overview_strip_gestures)
+{
+    using namespace lynx::gesture;
+    // 1000 px strip over 100 bars of 10 units; the window shows bars 20..40
+    const OverviewWindow w { 200.0, 200.0 };
+    CHECK (overviewGrabAt (200.0, 1000.0, 1000.0, w) == OverviewGrab::left);
+    CHECK (overviewGrabAt (404.0, 1000.0, 1000.0, w) == OverviewGrab::right);
+    CHECK (overviewGrabAt (300.0, 1000.0, 1000.0, w) == OverviewGrab::move);
+    CHECK (overviewGrabAt (700.0, 1000.0, 1000.0, w) == OverviewGrab::none);
+
+    // moving keeps the length and stays inside the content
+    auto m = overviewDrag (OverviewGrab::move, w, 100.0, 1000.0, 1000.0, 10.0);
+    CHECK (m.start == 300.0 && m.length == 200.0);
+    m = overviewDrag (OverviewGrab::move, w, 5000.0, 1000.0, 1000.0, 10.0);
+    CHECK (m.start == 800.0 && m.length == 200.0);
+    m = overviewDrag (OverviewGrab::move, w, -5000.0, 1000.0, 1000.0, 10.0);
+    CHECK (m.start == 0.0);
+
+    // the edges zoom: the other edge stays, the window never gets shorter than minLength
+    auto l = overviewDrag (OverviewGrab::left, w, -100.0, 1000.0, 1000.0, 10.0);
+    CHECK (l.start == 100.0 && l.length == 300.0);
+    l = overviewDrag (OverviewGrab::left, w, 1000.0, 1000.0, 1000.0, 10.0);
+    CHECK (l.start == 390.0 && l.length == 10.0);
+    auto r = overviewDrag (OverviewGrab::right, w, 100.0, 1000.0, 1000.0, 10.0);
+    CHECK (r.start == 200.0 && r.length == 300.0);
+    r = overviewDrag (OverviewGrab::right, w, 5000.0, 1000.0, 1000.0, 10.0);
+    CHECK (r.length == 800.0);
+
+    // a click outside the window centres it there
+    CHECK (overviewCentredOn (700.0, w, 1000.0).start == 600.0);
+    CHECK (overviewCentredOn (990.0, w, 1000.0).start == 800.0);
+
+    // a tiny window still has a middle to grab
+    CHECK (overviewGrabAt (201.5, 1000.0, 1000.0, { 200.0, 3.0 }) == OverviewGrab::move);
+}

+ 19 - 0
tests/tests.cpp

@@ -7622,6 +7622,24 @@ TEST (safe_default_buffer_size)
     CHECK (lynx::prefs::safeBufferSize ({}, 0, 44100.0) == 0);
 }
 
+TEST (driver_kind_and_shared_mode_buffer_sizes)
+{
+    // REA round 97: classic shared WASAPI mixes in whole engine periods, so sizes below it are not offered
+    using lynx::prefs::DriverKind;
+    CHECK (lynx::prefs::driverKind ("Windows Audio") == DriverKind::wasapiShared);
+    CHECK (lynx::prefs::driverKind ("Windows Audio (Exclusive Mode)") == DriverKind::wasapiExclusive);
+    CHECK (lynx::prefs::driverKind ("Windows Audio (Low Latency Mode)") == DriverKind::wasapiLowLatency);
+    CHECK (lynx::prefs::driverKind ("ASIO") == DriverKind::asio);
+    CHECK (lynx::prefs::driverKind ("DirectSound") == DriverKind::directSound);
+    CHECK (lynx::prefs::driverKind ("ALSA") == DriverKind::other);
+    const std::vector<int> offered { 144, 192, 256, 480, 512, 1024 };
+    CHECK ((lynx::prefs::usableBufferSizes (DriverKind::wasapiShared, offered, 480) == std::vector<int> { 480, 512, 1024 }));
+    CHECK (lynx::prefs::usableBufferSizes (DriverKind::wasapiExclusive, offered, 480) == offered);   // the device's real periods
+    CHECK (lynx::prefs::usableBufferSizes (DriverKind::wasapiLowLatency, offered, 480) == offered);  // engine periods
+    CHECK (lynx::prefs::usableBufferSizes (DriverKind::wasapiShared, { 64, 128 }, 480) == (std::vector<int> { 64, 128 })); // never empty
+    CHECK (lynx::prefs::usableBufferSizes (DriverKind::wasapiShared, offered, 0) == offered);
+}
+
 TEST (linear_phase_convolver_matches_direct_convolution)
 {
     // the block FFT convolver (cached twiddles, REA round 87) equals the direct convolution with its kernel
@@ -15102,6 +15120,7 @@ TEST (event_editor_playback)
     CHECK (loop[0] < 1.0e-4f && loop[1] > 0.01f && loop[2] < 1.0e-4f && loop[3] > 0.01f);
 }
 #include "PrefsTests.inc"
+#include "AudioEditTests.inc"
 #include "InputTests.inc"
 
 TEST (level_audit_demo_imports_round89)