From 49ce1e54375e3739d9a4d4127960872409d14a0a Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 07:42:01 +0100 Subject: [PATCH 01/10] Associate a UI with the view of an embedded frontend by a launch secret (#453) Each launch creates a random secret that the adapter gives to its own view at the start of the application's top-level documents (WKUserScript, WebView2 document-created script, WebKitUserScript, CEF extra info read by the renderer). WebFront.js presents it once in the handshake; the server compares it in constant time. UI::isEmbeddedView() and UI::isLocalClient() expose the result; the system browser gets no secret and is local only with the explicit trustLoopbackClients option. --- cmake/Frontends.cmake | 2 +- docs/CHANGELOG.md | 11 + docs/FRONTENDS.md | 34 +- .../ADR-003-protocole-binaire-et-bornes.md | 10 + ...DR-008-contenu-de-confiance-et-origines.md | 7 + docs/adr/README.md | 4 +- include/webfront/ViewAssociation.hpp | 55 + include/webfront/WebFront.hpp | 62 +- include/webfront/frontend/CEF.hpp | 74 +- include/webfront/frontend/Frontend.hpp | 19 +- include/webfront/frontend/WKWebView.hpp | 14 + include/webfront/frontend/WebKitGTK.hpp | 31 + include/webfront/frontend/WebView2.hpp | 25 + include/webfront/system/WebFrontJsData.hpp | 1233 +++++++++-------- include/webfront/weblink/WebLink.hpp | 4 +- js/core/WebFront.js | 17 +- test/cmake/CheckFrontendGenerators.cmake | 4 +- test/cmake/CheckFrontendSelection.cmake | 4 +- test/cmake/frontends/CMakeLists.txt | 4 +- test/driver/TestFrontend.hpp | 9 +- test/unit/CMakeLists.txt | 4 +- test/unit/FrontendContractTests.cpp | 37 + test/unit/InjectableNetworking.hpp | 12 + test/unit/MessagesTests.cpp | 12 + test/unit/ViewAssociationTests.cpp | 160 +++ test/web/FrontendLifecycle.cpp | 31 + test/web/view-association.html | 27 + 27 files changed, 1273 insertions(+), 633 deletions(-) create mode 100644 include/webfront/ViewAssociation.hpp create mode 100644 test/unit/ViewAssociationTests.cpp create mode 100644 test/web/view-association.html diff --git a/cmake/Frontends.cmake b/cmake/Frontends.cmake index 36070f2b..3534f752 100644 --- a/cmake/Frontends.cmake +++ b/cmake/Frontends.cmake @@ -435,7 +435,7 @@ function(webfront_add_browser_tests target frontend assets_directory lifecycle_t if(WEBFRONT_FRONTEND_${frontend}_XVFB_LINUX AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(lifecycle_command "${XVFB_RUN_EXECUTABLE}" -a ${lifecycle_command}) endif() - foreach(mode no-bridge early-close rejected-ready navigation-failure path-encoding content-policy navigation-allow-list) + foreach(mode no-bridge early-close rejected-ready navigation-failure path-encoding content-policy navigation-allow-list view-association) set(lifecycle_name "${frontend}Lifecycle-${mode}") add_test(NAME ${lifecycle_name} COMMAND ${lifecycle_command} ${mode}) list(APPEND shared_tests "${lifecycle_name}") diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f0680827..af761ae2 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,17 @@ ## Unreleased +- Embedded frontends: a connection proves it comes from the view (#453, ADR-020 rule 3). Each launch creates a random + 256-bit secret that the adapter gives to its own view at the start of every top-level document of the application's + origin (WKWebView `WKUserScript`, WebView2 `AddScriptToExecuteOnDocumentCreated`, WebKitGTK `WebKitUserScript`, CEF + extra browser information read by the renderer); `WebFront.js` reads it once, removes it and presents it in the handshake + (ADR-003, ADR-008). `UI::isEmbeddedView()` is true only for that connection and `UI::isLocalClient()` is the only + criterion of a local client: it is never deduced from the address. The system browser receives no secret and is never + local, unless the application sets `WebFrontConfig::trustLoopbackClients` (off by default, unsafe on a shared machine + or behind a proxy or tunnel). A frontend receives the proof through an optional + `open(address, port, file, policy, window, ViewLaunch)` overload. The association does not protect against a script + admitted into the view. WebView2, WebKitGTK and CEF code is covered by their own CI jobs; WKWebView is also tested here. + - HTTP server: dynamic routes (#454, ADR-020 prerequisite). `addRoute(prefix, handler)` on the application answers `GET` and `HEAD` under an absolute prefix with a reply produced at run time (`http::RouteReply`: status, headers, exact or unknown length, and a body read chunk by chunk). The handler and the reads run on a worker thread of the server, one chunk of diff --git a/docs/FRONTENDS.md b/docs/FRONTENDS.md index 7885fb43..d192c9d5 100644 --- a/docs/FRONTENDS.md +++ b/docs/FRONTENDS.md @@ -13,6 +13,7 @@ A frontend is a type with: | `static void initialize()` | Called once successfully per frontend type, before the first `BasicWF` listener is created. A thrown exception aborts construction; the next construction retries. | | `static void open(std::string_view port, std::string_view file)` | Called by `show()` / `openAndRun()` on the calling thread, while the HTTP server runs on its own thread. | | `static void open(address, port, page, const ContentPolicy&)` (optional) | Preferred overload receiving the per-application [content policy](CONTENT_POLICY.md). | +| `static void open(address, port, page, const ContentPolicy&, const WindowOptions&, const ViewLaunch&)` (optional) | Richest overload: also receives the [view association](#view-association) proof of this launch. | | `static constexpr Action action` | What `BasicWF` does once `open()` returns. | - **Blocking.** With `Action::closeServerAfterOpen` (embedded windows), `open()` blocks until the window is closed, releases its session resources, and returns; `BasicWF` then stops the server and joins its thread, so `show()` returns after a clean shutdown. With `Action::keepServerRunning` (the system browser), the server keeps running after `open()` returns, until `stop()` or application destruction. The action determines server lifetime, not whether opening returns immediately: the built-in system-browser adapter waits for Enter in the console after launching the page and cannot observe when the external browser closes. @@ -22,6 +23,34 @@ A frontend is a type with: - **URL.** Built-in frontends also provide `open(address, port, file)`, which `BasicWF` prefers when available. Build the URL with `frontend::detail::applicationUrl(address, port, file)` in `frontend/Url.hpp`: it uses the configured address and preserves URI query/fragment syntax and existing percent escapes. Spaces and UTF-8 bytes are encoded. For literal filename delimiters use `%23`, `%3F` and `%25`. The two-argument overload uses `127.0.0.1`; wildcard binds open their matching loopback address. - **Selection.** `webfront::WebFront` always uses the system browser. An application opts into another frontend with `webfront::WebFrontWithFrontend<...>`; enabling an embedded engine at configuration time never changes the default. +## View association + +`UI::isEmbeddedView()` tells whether a connection comes from the view of an embedded frontend of this application, and +`UI::isLocalClient()` is the only criterion of a "local client" for system services (ADR-020, rule 3). A loopback address +proves nothing: a remote browser behind a local proxy or an SSH tunnel, or another user of the machine, arrives from it too. + +Each launch creates a random 256-bit secret. A frontend that implements the `open(..., const ViewLaunch&)` overload gives it +to its own view, in the process, at the start of every top-level document whose origin is the application's +(`ViewLaunch::origin`). The page receives it as the window property `__webfrontView`; `WebFront.js` reads it once, removes it and +presents it in the WebSocket handshake. The server compares it in constant time. It is never served over HTTP and never put +on a command line or in a URL. + +| Engine | Injection at the start of the document | +| --- | --- | +| WKWebView | `WKUserScript`, `WKUserScriptInjectionTimeAtDocumentStart`, main frame only | +| WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`) | +| WebKitGTK | `WebKitUserScript` at document start, top frame, allow list of the application's origin | +| CEF | extra browser information given to `CefBrowserView::CreateBrowserView`, read by the renderer process's `OnBrowserCreated` and defined on the window in `OnContextCreated` (the render process app is the one given to `CefExecuteProcess`) | + +- The system browser receives no secret (a command line or a history could disclose it, and a remote browser would present + it first): its connections are never local, whatever their address. An application that accepts that risk sets + `WebFrontConfig::trustLoopbackClients`, which reads the peer address and is unsafe on a shared machine or behind a proxy or tunnel. +- `NativeOrBrowserFrontend` passes the proof to the native window only. +- The association does not protect against a script admitted into the view (ADR-008): it shares the authority of the bridge + and could read the property before `WebFront.js`. An adapter that cannot inject a script simply does not implement the overload. +- A custom frontend that wants services restricted to its own view implements the overload and applies + `webfront::detail::viewSecretScript(secret, origin)` (or the engine's equivalent) at the start of the document. + ## Window title and size `WebFrontConfig::window` (`webfront::WindowOptions`: `title`, `width`, `height`) sets the initial window of the @@ -135,7 +164,7 @@ engines show it only after a user gesture on the page); its wiring is implemente 1. Implement the type in `include/webfront/frontend/` following the contract above and include it from `Frontend.hpp`. Keep platform headers behind the option's macro. 2. Add its support module and one `webfront_register_frontend(...)` entry in `cmake/Frontends.cmake`, using the fields below. -3. Extend `FrontendSelection` coverage and run the shared Jasmine and lifecycle suites. Enabling the engine on a `TEST_PLATFORMS` platform automatically registers the seven shared lifecycle cases; `WEBFRONT_TEST_FRONTEND` selects its C++ type in both runners. +3. Extend `FrontendSelection` coverage and run the shared Jasmine and lifecycle suites. Enabling the engine on a `TEST_PLATFORMS` platform automatically registers the eight shared lifecycle cases; `WEBFRONT_TEST_FRONTEND` selects its C++ type in both runners. | Field | Meaning | | --- | --- | @@ -157,7 +186,7 @@ Registry order determines the initial cache default: the first enabled embedded ## Lifecycle tests -`test/web/FrontendLifecycle.cpp` runs the same seven cases under the selected embedded engine: +`test/web/FrontendLifecycle.cpp` runs the same eight cases under the selected embedded engine: - `no-bridge`: close a page that never connects to the bridge and return from `show()`. - `early-close`: close immediately from the page's first script, before any bridge connection. @@ -166,6 +195,7 @@ Registry order determines the initial cache default: the first enabled embedded - `path-encoding`: load `encoded path #.html` and verify that its query and fragment survived. - `content-policy`: block a popup and a foreign-origin top-level navigation while keeping the original page alive. - `navigation-allow-list`: permit the same top-level destination through the explicit navigation allow-list. +- `view-association`: the page of the view connects with the secret of the launch and `UI::isEmbeddedView()` is true; a second connection of that page, from the same loopback address and without the secret, is not associated. Each runs in a separate process as `Lifecycle-`, with the registry's timeout, the `web-integration` label and the same port lock as Jasmine. Linux CEF and WebKitGTK cases use Xvfb. On Linux CEF, run diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index 6bb82e34..8728997c 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -19,6 +19,7 @@ | 1.12 | 2026-10-27 | Acceptée | Ambroise Leclerc | Identifiant de lot non nul, plafond d’opérations, codec canonique et nettoyage limité aux sous-arbres concernés (#380). | — | | 1.13 | 2026-10-27 | Acceptée | Ambroise Leclerc | Rejet de PROPERTY value sur output pour préserver les identifiants de ses enfants (#380). | — | | 1.14 | 2026-10-27 | Proposée | Ambroise Leclerc | Notifications de document et lectures groupées par les appels existants (#381). | [PR #394](https://github.com/ambroise-leclerc/WebFront/pull/394) | +| 1.15 | 2026-11-04 | Proposée | Ambroise Leclerc | La poignée de main peut porter, après ses deux octets, le secret de lancement d'une vue intégrée (#453, ADR-020). | À renseigner après intégration. | ## État et chronologie @@ -65,6 +66,15 @@ La politique borne chaque message à 64 MiB par défaut ; que tout dépassement refusé dès l’en-tête, fragments compris. Les trames de contrôle ont leur propre plafond de 125 octets. +## Poignée de main (`handshake`, code 0) + +Le message compte deux octets : le code 0 et l'indicateur d'endianness de la page. Il peut être suivi du **secret de +lancement** d'une vue intégrée (ADR-020, règle 3) : 64 octets ASCII, les caractères hexadécimaux minuscules lus tels +quels. Sans secret, le message est celui des versions antérieures ; le serveur l'accepte (le pont reste réglé par +l'`Origin`, ADR-008) et la connexion n'est simplement pas associée à une vue. Le serveur compare le secret en temps +constant à celui de son lancement ; toute autre longueur ou valeur est ignorée sans fermer la connexion. `WebFront.js` ne +transmet que 64 caractères hexadécimaux et retire la propriété qui le porte après l'avoir lue. + ## Commande DOM (`domBatch`, code 5, version 1) Cette section remplace le transport `wfDom.apply` des prototypes de l'[ADR-018](ADR-018-acces-au-dom.md) ; diff --git a/docs/adr/ADR-008-contenu-de-confiance-et-origines.md b/docs/adr/ADR-008-contenu-de-confiance-et-origines.md index 7f03d965..27b035f5 100644 --- a/docs/adr/ADR-008-contenu-de-confiance-et-origines.md +++ b/docs/adr/ADR-008-contenu-de-confiance-et-origines.md @@ -5,6 +5,7 @@ | Version | Date | État | Auteur | Évolution | Révision Git | | --- | --- | --- | --- | --- | --- | | 1.0 | 2026-10-18 | Acceptée | Ambroise Leclerc | Décision initiale : politique commune des origines du pont, de la navigation et des fenêtres surgissantes. | [d59db71](https://github.com/ambroise-leclerc/WebFront/commit/d59db712f1d390abe1457a5046b904bd330b85cc) | +| 1.1 | 2026-11-04 | Proposée | Ambroise Leclerc | Le contrôle d'origine reste seul juge de l'accès au pont ; un secret de lancement, présenté à la poignée de main, distingue la vue d'un frontend intégré sans l'autoriser davantage (#453, ADR-020). | À renseigner après intégration. | ## État et chronologie @@ -36,6 +37,12 @@ par défaut. Le navigateur système contrôle sa propre navigation ; le serveur le contrôle du bridge. Les capacités des moteurs diffèrent, notamment les popups WKWebView. WebFront cible du contenu de confiance, sans TLS ni authentification intégrés. +Que le secret de lancement d'une vue intégrée (#453) ne s'ajoute pas au contrôle d'origine : il ne donne aucun accès +au pont, que le contrôle d'`Origin` règle seul. Il ne sert qu'à savoir si la connexion vient de la vue de +l'application (`UI::isEmbeddedView()`), critère de « client local » des services (ADR-020, règle 3). Il ne protège pas +d'un script admis dans la vue, qui partage l'autorité du pont et pourrait le lire avant `WebFront.js` ; le navigateur +système n'en reçoit aucun. + ## Options écartées et motifs - Accepter toute origine par défaut : remplacé par le contrôle d’origine commun. diff --git a/docs/adr/README.md b/docs/adr/README.md index 576846f0..3d40d78e 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -43,12 +43,12 @@ verification evidence remain in [PROJECT_STATUS](../PROJECT_STATUS.md). | --- | --- | --- | --- | --- | | [ADR-001](ADR-001-coeur-cpp23-header-only.md) | A header-only C++23 core embedded in the application | Accepted | 2020-04-19 | 1.5 — 2026-10-13 | | [ADR-002](ADR-002-systemes-de-fichiers-composables.md) | An abstract, composable filesystem as the foundation for portability | Accepted | 2023-03-16 | 2.5 — 2026-11-03 | -| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted through 1.13; 1.14 proposed | 2022-02-06 | 1.14 — 2026-10-27 | +| [ADR-003](ADR-003-protocole-binaire-et-bornes.md) | A shared, typed and bounded binary protocol | Accepted through 1.13; 1.14 and 1.15 proposed | 2022-02-06 | 1.15 — 2026-11-04 | | [ADR-004](ADR-004-appels-asynchrones-et-erreurs.md) | Asynchronous calls with deliberately asymmetric contracts | Accepted | 2022-02-06 | 2.4 — 2026-10-18 | | [ADR-005](ADR-005-evolution-reseau-asio-stdnet.md) | From standalone ASIO to stdnet: anticipating standard networking without blocking progress | Accepted through 3.1; 3.2 proposed | 2022-01-21 | 3.2 — 2026-10-26 | | [ADR-006](ADR-006-taches-structurees-et-arret.md) | Owning, cancelling and joining every task | Accepted | 2026-10-13 | 2.1 — 2026-10-25 | | [ADR-007](ADR-007-frontends-explicites.md) | Explicit frontend selection and a shared lifecycle contract | Accepted | 2026-05-31 | 1.10 — 2026-10-20 | -| [ADR-008](ADR-008-contenu-de-confiance-et-origines.md) | Restricting bridge origins without promising a sandbox | Accepted | 2026-10-18 | 1.0 — 2026-10-18 | +| [ADR-008](ADR-008-contenu-de-confiance-et-origines.md) | Restricting bridge origins without promising a sandbox | Accepted through 1.0; 1.1 proposed | 2026-10-18 | 1.1 — 2026-11-04 | | [ADR-009](ADR-009-modules-et-assets-reproductibles.md) | Serving modules locally and regenerating assets reproducibly | Accepted | 2023-03-16 | 2.5 — 2026-10-25 | | [ADR-010](ADR-010-composants-et-outils-optionnels.md) | Extending WebFront through optional components and development tools | Accepted | 2026-10-14 | 1.7 — 2026-10-23 | | [ADR-011](ADR-011-diagnostics-optionnels.md) | Confining mddlog behind an optional diagnostics façade | Accepted | 2026-10-01 | 1.2 — 2026-10-02 | diff --git a/include/webfront/ViewAssociation.hpp b/include/webfront/ViewAssociation.hpp new file mode 100644 index 00000000..67652418 --- /dev/null +++ b/include/webfront/ViewAssociation.hpp @@ -0,0 +1,55 @@ +/// @brief Proof that a connection comes from the view of an embedded frontend of this application (ADR-020, rule 3). +/// +/// An address proves nothing: a remote browser behind a local proxy or an SSH tunnel, or another user of the machine, +/// also arrives from the loopback. The adapter of an embedded frontend therefore hands a per-launch secret to its own +/// view, in the process, and WebFront.js presents it in the WebSocket handshake. The secret is random, compared in +/// constant time, never served over HTTP and never given to the system browser (a command line or a history could +/// disclose it, and a remote browser would present it first). It does not protect against a script admitted into the +/// view (ADR-008): such a script shares the authority of the bridge and could read the secret before WebFront.js. +#pragma once + +#include "automation/Credentials.hpp" + +#include +#include + +namespace webfront { + +/// What an embedded frontend needs to prove its view: the secret to hand to the view, and the origin that may receive it. +struct ViewLaunch { + /// Empty when the launch has no secret to give (a test double, an adapter that cannot inject one). + std::string secret; + /// The application's origin ("http://127.0.0.1:9002"): the adapter exposes the secret to documents of this origin only. + std::string origin; +}; + +namespace detail { + +/// The name of the property the adapter defines on the window of the view, and WebFront.js reads then removes. +inline constexpr std::string_view viewSecretProperty = "__webfrontView"; + +/// A fresh random secret: 64 hexadecimal characters (256 bits), valid for one application only. +inline std::string newViewSecret() { + return automation::channel::nonce(); +} + +/// True when `presented` is the secret of this launch; the comparison takes the same time wherever they differ. +[[nodiscard]] inline bool viewSecretMatches(std::string_view launchSecret, std::string_view presented) noexcept { + return !launchSecret.empty() && automation::channel::sameToken(launchSecret, presented); +} + +/// The JavaScript that gives `secret` to the document when, and only when, it is a top-level document of origin `origin`. Both are +/// restricted to characters that need no escaping in a string literal. +[[nodiscard]] inline std::string viewSecretScript(std::string_view secret, std::string_view origin) { + std::string script = "if (window === window.top && location.origin === '"; + script += origin; + script += "') Object.defineProperty(window, '"; + script += viewSecretProperty; + script += "', {value: '"; + script += secret; + script += "', configurable: true});"; + return script; +} + +} // namespace detail +} // namespace webfront diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index 376dd2aa..a1f1c30d 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -16,6 +16,7 @@ #include "system/WindowsCompat.hpp" #include "Task.hpp" #include "UISubscribers.hpp" +#include "ViewAssociation.hpp" #include "weblink/DomBatch.hpp" #include "weblink/Messages.hpp" #include "weblink/WebLink.hpp" @@ -46,6 +47,9 @@ namespace testing { /// Test-only access to the connection identifiers of an application; not part of the API. template struct ConnectionIds; +/// Test-only access to the launch secret of an application; not part of the API. +template +struct LaunchSecret; } // namespace testing using NetProvider = networking::TCPStdnet; @@ -149,6 +153,20 @@ class BasicUI { return webFront->resumeAfter(duration); } + /// True when this connection proved, with the secret of this launch, that it comes from the view of an embedded + /// frontend of this application (CEF, WebView2, WKWebView, WebKitGTK). The system browser never is: no secret is + /// given to it, whatever its address. False once the connection is gone. + [[nodiscard]] bool isEmbeddedView() const { + return webFront->isEmbeddedView(webLinkId, generation); + } + + /// The only criterion of a "local client" for system services (ADR-020, rule 3): an embedded view, or a + /// loopback peer when the application set WebFrontConfig::trustLoopbackClients. The address is otherwise never + /// consulted. False once the connection is gone. + [[nodiscard]] bool isLocalClient() const { + return webFront->isLocalClient(webLinkId, generation); + } + /// Lazy typed call; co_await propagates the receiver's stop token. Cancellation /// stops waiting locally; a JavaScript function already dispatched keeps running. template @@ -346,6 +364,10 @@ struct WebFrontConfig { ContentPolicy contentPolicy{}; /// Initial window of the embedded frontends; the title defaults to the executable's name. WindowOptions window{}; + /// Treats a connection whose peer address is the loopback as a local client (UI::isLocalClient) although it is + /// not the view of an embedded frontend. This reintroduces a decision by address: it is unsafe on a shared machine + /// and behind a local proxy or an SSH tunnel, which also arrive from the loopback. Off by default (ADR-020). + bool trustLoopbackClients = false; }; template >(std::move(socket), id, [this](WebLinkEvent event) { onEvent(event); }, httpServer.taskScope(), false); { std::scoped_lock lock{linksMutex}; - webLinks.emplace(id, Connection{.link = link, .generation = generation, .thread = std::this_thread::get_id(), .closed = false, .stage = Connection::Stage::handshaking, .deferred = {}}); + webLinks.emplace(id, Connection{.link = link, .generation = generation, .thread = std::this_thread::get_id(), .closed = false, .stage = Connection::Stage::handshaking, .deferred = {}, .viewAssociated = false, .loopbackPeer = loopbackPeer}); } link->start(); // registered first: every event it dispatches finds it }); @@ -490,6 +521,8 @@ class BasicWF { friend class Broadcast; template friend struct testing::ConnectionIds; // lets a test start the identifiers near their wrap + template + friend struct testing::LaunchSecret; // lets a test present the secret an embedded view would /// Sends `call` to each browser not reported closed whose onUIStarted handlers have returned: at once, on the /// calling thread and outside every lock. For a browser whose handlers are running, `call` is kept, within its @@ -535,6 +568,19 @@ class BasicWF { return {found->second.link, found->second.generation}; } + [[nodiscard]] bool isEmbeddedView(WebLinkId id, WebLinkGeneration generation) const { + std::scoped_lock lock{linksMutex}; + const auto found = webLinks.find(id); + return found != webLinks.end() && found->second.generation == generation && !found->second.closed && found->second.viewAssociated; + } + + [[nodiscard]] bool isLocalClient(WebLinkId id, WebLinkGeneration generation) const { + std::scoped_lock lock{linksMutex}; + const auto found = webLinks.find(id); + return found != webLinks.end() && found->second.generation == generation && !found->second.closed + && (found->second.viewAssociated || (trustLoopbackClients && found->second.loopbackPeer)); + } + /// The UI of the connection that now owns `id` (generation 0, reaching nothing, when none does). UI uiOf(WebLinkId id) { return UI{*this, id, generationOf(id)}; @@ -674,7 +720,9 @@ class BasicWF { #pragma warning(disable : 4702) #endif WindowAction openWindow(std::string_view htmlFilename) { - if constexpr (requires { Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions); }) + if constexpr (requires(const ViewLaunch& launch) { Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions, launch); }) + Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions, ViewLaunch{viewSecret, detail::applicationOrigin(httpAddress, httpPort)}); + else if constexpr (requires { Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions); }) Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions); else if constexpr (requires { Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy); }) Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy); @@ -773,6 +821,8 @@ class BasicWF { std::filesystem::path httpDocRoot; ContentPolicy contentPolicy; WindowOptions windowOptions; + const std::string viewSecret = detail::newViewSecret(); // this launch's proof of an embedded view + const bool trustLoopbackClients; mutable std::mutex linksMutex; // guards webLinks, read from any thread struct Connection { std::shared_ptr> link; @@ -782,6 +832,8 @@ class BasicWF { enum class Stage { handshaking, starting, started }; Stage stage = Stage::handshaking; // starting while its onUIStarted handlers run std::vector> deferred; // sendToStartedLinks() calls while starting + bool viewAssociated = false; // presented the launch secret of an embedded view + bool loopbackPeer = false; // peer address was the loopback (read only with trustLoopbackClients) }; std::map webLinks; WebLinkId idsCounter{0}; @@ -894,8 +946,10 @@ class BasicWF { case WebLinkEvent::Code::linked: { { std::scoped_lock lock{linksMutex}; - if (auto found = webLinks.find(event.webLinkId); found != webLinks.end()) - found->second.stage = Connection::Stage::starting; + if (auto found = webLinks.find(event.webLinkId); found != webLinks.end()) { + found->second.stage = Connection::Stage::starting; + found->second.viewAssociated = detail::viewSecretMatches(viewSecret, event.text); + } } // Even when a handler throws: the browser must not keep collecting deferred sends. struct Started { diff --git a/include/webfront/frontend/CEF.hpp b/include/webfront/frontend/CEF.hpp index 445818bc..a10b03e1 100644 --- a/include/webfront/frontend/CEF.hpp +++ b/include/webfront/frontend/CEF.hpp @@ -2,6 +2,7 @@ #include "../ContentPolicy.hpp" #include "../system/WindowsCompat.hpp" +#include "../ViewAssociation.hpp" #include "../tooling/Logger.hpp" #include "CEFPaths.hpp" #include "Capture.hpp" @@ -252,6 +253,58 @@ inline CefMainArgs makeMainArgs( } // Initialize CEF and handle subprocesses +/// The renderer's half of the view association (ADR-020): the browser process hands the launch secret to its own browser +/// as extra information, never on a command line, and the renderer defines it on the window of the top-level documents of +/// the application's origin, before any script of the page runs. WebFront.js reads then removes it. +class ViewSecretRenderApp : public CefApp, public CefRenderProcessHandler { +public: + static constexpr const char* secretKey = "webfrontViewSecret"; + static constexpr const char* originKey = "webfrontViewOrigin"; + + CefRefPtr GetRenderProcessHandler() override { + return this; + } + void OnBrowserCreated(CefRefPtr browser, CefRefPtr extraInfo) override { + if (!browser || !extraInfo || !extraInfo->HasKey(secretKey) || !extraInfo->HasKey(originKey)) + return; + std::scoped_lock lock{mutex}; + launches[browser->GetIdentifier()] = ViewLaunch{extraInfo->GetString(secretKey).ToString(), extraInfo->GetString(originKey).ToString()}; + } + void OnBrowserDestroyed(CefRefPtr browser) override { + std::scoped_lock lock{mutex}; + launches.erase(browser->GetIdentifier()); + } + void OnContextCreated(CefRefPtr browser, CefRefPtr frame, CefRefPtr context) override { + if (!frame->IsMain()) + return; + ViewLaunch launch; + { + std::scoped_lock lock{mutex}; + const auto found = launches.find(browser->GetIdentifier()); + if (found == launches.end()) + return; + launch = found->second; + } + const auto url = frame->GetURL().ToString(); + if (url != launch.origin && !url.starts_with(launch.origin + "/")) + return; + context->GetGlobal()->SetValue(CefString(std::string(webfront::detail::viewSecretProperty)), CefV8Value::CreateString(launch.secret), + V8_PROPERTY_ATTRIBUTE_DONTENUM); + } + +private: + std::mutex mutex; + std::map launches; + #ifdef __clang__ + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wextra-semi" + #endif + IMPLEMENT_REFCOUNTING(ViewSecretRenderApp); + #ifdef __clang__ + #pragma clang diagnostic pop + #endif +}; + // Throws: CEFInitializationError on initialization failure // Throws: CEFSubprocessExit if this is a subprocess (caller should exit with the provided code) // Returns: void on successful main process initialization @@ -279,7 +332,7 @@ inline void initialize() { argv_ptrs.data() #endif ); - CefRefPtr app; + CefRefPtr app(new ViewSecretRenderApp); int exit_code = CefExecuteProcess(main_args, app, nullptr); if (exit_code >= 0) { throw CEFSubprocessExit(exit_code); @@ -827,7 +880,7 @@ namespace detail { inline void openWindow(std::string url, webfront::detail::BoundContentPolicy contentPolicy, CefRefPtr client = nullptr, const std::filesystem::path& profile = {}, - WindowOptions windowSettings = {}, bool preserveSignalHandlers = false) { + WindowOptions windowSettings = {}, bool preserveSignalHandlers = false, const ViewLaunch& launch = {}) { setKeychainEnvironment(); // Build platform-appropriate CefMainArgs auto [argc, argv_vec] = getCommandLineArgs(); @@ -889,7 +942,13 @@ inline void openWindow(std::string url, webfront::detail::BoundContentPolicy con CefBrowserSettings browser_settings; // Create a browser view using the modern Views API - this creates a chromeless browser - CefRefPtr browser_view = CefBrowserView::CreateBrowserView(client, url, browser_settings, nullptr, nullptr, nullptr); + CefRefPtr extraInfo; + if (!launch.secret.empty()) { + extraInfo = CefDictionaryValue::Create(); + extraInfo->SetString(ViewSecretRenderApp::secretKey, launch.secret); + extraInfo->SetString(ViewSecretRenderApp::originKey, launch.origin); + } + CefRefPtr browser_view = CefBrowserView::CreateBrowserView(client, url, browser_settings, extraInfo, nullptr, nullptr); // Create a window delegate for controlling the window appearance CefRefPtr window_delegate(new SimpleCEFWindowDelegate(frontend::detail::resolveWindow(std::move(windowSettings)))); @@ -910,12 +969,14 @@ inline void openWindow(std::string url, webfront::detail::BoundContentPolicy con } // namespace detail inline void open(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy = {}, - const WindowOptions& window = {}) { + const WindowOptions& window = {}, const ViewLaunch& launch = {}) { detail::openWindow(frontend::detail::applicationUrl(address, port, file), webfront::detail::BoundContentPolicy{webfront::detail::applicationOrigin(address, port), policy}, nullptr, {}, - window); + window, + false, + launch); } } // namespace webfront::cef @@ -933,7 +994,8 @@ inline void initialize() { "WEBFRONT_EMBED_CEF=OFF. Reconfigure with -DWEBFRONT_EMBED_CEF=ON to use the embedded CEF frontend."); } -inline void open(std::string_view /*address*/, std::string_view /*port*/, std::string_view /*file*/, const ContentPolicy& = {}, const WindowOptions& = {}) { +inline void open(std::string_view /*address*/, std::string_view /*port*/, std::string_view /*file*/, const ContentPolicy& = {}, const WindowOptions& = {}, + const ViewLaunch& = {}) { throw std::runtime_error("webfront::frontend::CEFFrontend requires CEF support, but this build was configured with " "WEBFRONT_EMBED_CEF=OFF. Reconfigure with -DWEBFRONT_EMBED_CEF=ON to use the embedded CEF frontend."); } diff --git a/include/webfront/frontend/Frontend.hpp b/include/webfront/frontend/Frontend.hpp index 7ea6fab2..2333df9c 100644 --- a/include/webfront/frontend/Frontend.hpp +++ b/include/webfront/frontend/Frontend.hpp @@ -1,6 +1,7 @@ #pragma once #include "../ContentPolicy.hpp" +#include "../ViewAssociation.hpp" #include "Action.hpp" #include "Window.hpp" #include "CEF.hpp" @@ -99,6 +100,10 @@ struct CEFFrontend { static void open(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window) { cef::open(address, port, file, policy, window); } + static void open(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window, + const ViewLaunch& launch) { + cef::open(address, port, file, policy, window, launch); + } }; namespace detail { @@ -121,8 +126,11 @@ struct PlatformNativeFrontend { // Calls the richest open() the frontend offers, as BasicWF does. template -void openWith(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window) { - if constexpr (requires { Frontend::open(address, port, file, policy, window); }) +void openWith(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window, + const ViewLaunch& launch = {}) { + if constexpr (requires { Frontend::open(address, port, file, policy, window, launch); }) + Frontend::open(address, port, file, policy, window, launch); + else if constexpr (requires { Frontend::open(address, port, file, policy, window); }) Frontend::open(address, port, file, policy, window); else if constexpr (requires { Frontend::open(address, port, file, policy); }) Frontend::open(address, port, file, policy); @@ -195,8 +203,13 @@ struct NativeOrBrowserFrontendFor { open(address, port, file, policy, WindowOptions{}); } static void open(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window) { + open(address, port, file, policy, window, ViewLaunch{}); + } + /// The launch proof goes to the native window only: the system browser is never given a secret (ADR-020). + static void open(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window, + const ViewLaunch& launch) { if (usesNativeWindow()) - detail::openWith(address, port, file, policy, window); + detail::openWith(address, port, file, policy, window, launch); else detail::openWith(address, port, file, policy, window); } diff --git a/include/webfront/frontend/WKWebView.hpp b/include/webfront/frontend/WKWebView.hpp index ca5a786c..94c93c07 100644 --- a/include/webfront/frontend/WKWebView.hpp +++ b/include/webfront/frontend/WKWebView.hpp @@ -4,6 +4,7 @@ #include "Action.hpp" #include "Capture.hpp" #include "Downloads.hpp" +#include "../ViewAssociation.hpp" #include "ScriptDialogs.hpp" #include "Url.hpp" #include "Window.hpp" @@ -41,6 +42,9 @@ struct WKWebViewOptions { * `beforeunload` is not handled by WKWebView: the public WKUIDelegate has no method for it, and it does not reach the confirm * method. A page that relies on it can lose unsaved changes on navigation or close; WebFront does not confirm it. */ ScriptDialogHandler answerScriptDialog{}; + /** @brief Per-launch proof of this view (ADR-020): given to documents of the application's origin only, at the start of + * the document, for WebFront.js to present in its handshake. Set by WebFront; empty gives the view no association. */ + ViewLaunch launch{}; }; } // namespace webfront::frontend @@ -476,6 +480,12 @@ struct Session { throw std::runtime_error("WKWebView: hidden sessions require macOS 14 or later (inactiveSchedulingPolicy)"); send(preferences, "setInactiveSchedulingPolicy:", 2L); // WKInactiveSchedulingPolicyNone } + if (!options.launch.secret.empty()) { + // At the start of every document, in the main frame only: the script itself checks the origin. + Object source(text(::webfront::detail::viewSecretScript(options.launch.secret, options.launch.origin))); + Object script(send(send(type("WKUserScript"), "alloc"), "initWithSource:injectionTime:forMainFrameOnly:", source.get(), 0L, static_cast(true))); + send(send(configuration.get(), "userContentController"), "addUserScript:", script.get()); + } // Deliver script-created popup attempts to the delegates, which always cancel unmanaged views. send(send(configuration.get(), "preferences"), "setJavaScriptCanOpenWindowsAutomatically:", static_cast(true)); const auto windowOptions = frontend::detail::resolveWindow(options.window); @@ -1095,6 +1105,10 @@ struct WKWebViewFrontend { static void open(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window) { open(address, port, file, WKWebViewOptions{.contentPolicy = policy, .window = window}); } + static void open(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window, + const ViewLaunch& launch) { + open(address, port, file, WKWebViewOptions{.contentPolicy = policy, .window = window, .launch = launch}); + } }; } // namespace webfront::frontend diff --git a/include/webfront/frontend/WebKitGTK.hpp b/include/webfront/frontend/WebKitGTK.hpp index 5f7ebb3f..cc8297db 100644 --- a/include/webfront/frontend/WebKitGTK.hpp +++ b/include/webfront/frontend/WebKitGTK.hpp @@ -9,6 +9,7 @@ #include "ScriptDialogs.hpp" #include "Url.hpp" #include "Window.hpp" +#include "../ViewAssociation.hpp" #include "WebKitGTKPolicy.hpp" #include @@ -130,6 +131,11 @@ class Api { void (*dialogConfirm)(Object, int) = symbol("webkit_script_dialog_confirm_set_confirmed"); const char* (*dialogDefault)(Object) = symbol("webkit_script_dialog_prompt_get_default_text"); void (*dialogPromptText)(Object, const char*) = symbol("webkit_script_dialog_prompt_set_text"); + // User scripts: WebKitUserContentInjectedFrames TOP_FRAME = 1 and WebKitUserScriptInjectionTime START = 0. + Object (*contentManager)(Object) = symbol("webkit_web_view_get_user_content_manager"); + Object (*scriptNew)(const char*, int, int, const char* const*, const char* const*) = symbol("webkit_user_script_new"); + void (*scriptAdd)(Object, Object) = symbol("webkit_user_content_manager_add_script"); + void (*scriptUnref)(Object) = symbol("webkit_user_script_unref"); }; inline Api& api() { @@ -291,6 +297,8 @@ struct Session : FailureState { webfront::detail::BoundContentPolicy policy; WindowOptions windowOptions; std::function navigationCancelled; + /// Per-launch proof of this view (ADR-020), given at the start of the top-level documents of the application's origin. + ViewLaunch launch; /// Download folder; empty selects the user's XDG download folder, else the home folder. std::filesystem::path downloadDirectory; /// Test injection: answers without a dialog (an empty list cancels). Unset shows the system dialog. @@ -404,6 +412,7 @@ struct Session : FailureState { a.windowSize(window, windowOptions.width, windowOptions.height); a.windowChild(window, view); configureSettings(); + installViewAssociation(); registerHandlers(); downloadStartedHandler = a.connect(network, "download-started", reinterpret_cast(onDownloadStarted), this, nullptr, 0); captureTarget->view = view; @@ -411,6 +420,17 @@ struct Session : FailureState { captureRegistration = CaptureRegistration{captureProvider(captureTarget)}; } + void installViewAssociation() { + if (launch.secret.empty()) + return; + const auto source = webfront::detail::viewSecretScript(launch.secret, launch.origin); + const auto pattern = launch.origin + "/*"; + const char* const allowList[] = {pattern.c_str(), nullptr}; + const auto script = a.scriptNew(source.c_str(), 1, 0, allowList, nullptr); + a.scriptAdd(a.contentManager(view), script); + a.scriptUnref(script); + } + void configureSettings() { a.objectSet(a.settings(view), "javascript-can-open-windows-automatically", @@ -684,11 +704,13 @@ struct OpenOptions { ContentPolicy contentPolicy{}; WindowOptions window{}; std::function configure{}; + ViewLaunch launch{}; }; inline void open(std::string_view address, std::string_view port, std::string_view file, const OpenOptions& options = {}) { initialize(); Session session(webfront::detail::BoundContentPolicy{webfront::detail::applicationOrigin(address, port), options.contentPolicy}, options.window); + session.launch = options.launch; session.create(); if (options.configure) options.configure(session); @@ -726,6 +748,15 @@ struct WebKitGTKFrontend { (void)page; (void)policy; initialize(); +#endif + } + static void open(std::string_view address, std::string_view port, std::string_view page, const ContentPolicy& policy, const WindowOptions& window, + const ViewLaunch& launch) { +#if defined(WEBFRONT_EMBED_WEBKITGTK) && defined(__linux__) + detail::webkitgtk::open(address, port, page, {.contentPolicy = policy, .window = window, .launch = launch}); +#else + (void)launch; + open(address, port, page, policy, window); #endif } }; diff --git a/include/webfront/frontend/WebView2.hpp b/include/webfront/frontend/WebView2.hpp index 23f28d14..38d65475 100644 --- a/include/webfront/frontend/WebView2.hpp +++ b/include/webfront/frontend/WebView2.hpp @@ -5,6 +5,7 @@ #include "Action.hpp" #include "Capture.hpp" #include "DefaultBrowser.hpp" +#include "../ViewAssociation.hpp" #include "ScriptDialogs.hpp" #include "Url.hpp" #include "Window.hpp" @@ -27,6 +28,8 @@ struct WebView2Options { WindowOptions window{}; /** @brief Keep the native window hidden while retaining the real controller and message loop. */ bool visible{true}; + /** @brief Per-launch proof of this view (ADR-020), given to top-level documents of the application's origin at their creation. */ + ViewLaunch launch{}; }; } // namespace webfront::frontend @@ -264,6 +267,7 @@ class Session : public std::enable_shared_from_this { std::exception_ptr failure; std::wstring url; webfront::detail::BoundContentPolicy contentPolicy; + ViewLaunch viewLaunch; // Internal adapter observer, used by lifecycle probes after a successful native cancellation. std::function navigationCancelled; // Internal adapter observer: the browser exists and nothing is loaded yet (the transport benchmark of ADR-017 registers @@ -722,6 +726,10 @@ class Session : public std::enable_shared_from_this { Microsoft::WRL::ComPtr settings; check(view->get_Settings(&settings), "getting browser settings"); configureContentSettings(settings.Get(), contentPolicy.options()); + if (!viewLaunch.secret.empty()) { + const auto script = utf16(webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin)); + check(view->AddScriptToExecuteOnDocumentCreated(script.c_str(), nullptr), "installing the view association script"); + } check(view->add_NavigationStarting( Microsoft::WRL::Callback([weak](ICoreWebView2*, ICoreWebView2NavigationStartingEventArgs* args) -> HRESULT { @@ -821,6 +829,7 @@ inline void open(std::string_view address, "https://developer.microsoft.com/microsoft-edge/webview2/"); auto session = std::make_shared(options.startupTimeout); session->contentPolicy = std::move(contentPolicy); + session->viewLaunch = options.launch; session->url = applicationUrl(address, port, file); if (prepare) prepare(*session); @@ -869,6 +878,14 @@ struct WebView2Frontend { options.window = window; open(address, port, file, options); } + static void open(std::string_view address, std::string_view port, std::string_view file, const ContentPolicy& policy, const WindowOptions& window, + const ViewLaunch& launch) { + WebView2Options options; + options.contentPolicy = policy; + options.window = window; + options.launch = launch; + open(address, port, file, options); + } }; /** @brief Configured WebView2 frontend. OptionsProvider::get() returns per-opening WebView2Options. */ @@ -892,6 +909,14 @@ struct WebView2FrontendWithOptions : WebView2Frontend { options.window = window; WebView2Frontend::open(address, port, page, options); } + static void open(std::string_view address, std::string_view port, std::string_view page, const ContentPolicy& policy, const WindowOptions& window, + const ViewLaunch& launch) { + auto options = OptionsProvider::get(); + options.contentPolicy = policy; + options.window = window; + options.launch = launch; + WebView2Frontend::open(address, port, page, options); + } }; } // namespace webfront::frontend diff --git a/include/webfront/system/WebFrontJsData.hpp b/include/webfront/system/WebFrontJsData.hpp index 4c2edb44..e608eedf 100644 --- a/include/webfront/system/WebFrontJsData.hpp +++ b/include/webfront/system/WebFrontJsData.hpp @@ -9,8 +9,8 @@ namespace webfront::fs::generated { struct WebFrontJsData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{26156}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{27150}; + static constexpr std::array data{ 0x2f2f2f2040627269, 0x65662042726f7773, 0x65722d7369646520, 0x57656246726f6e74, 0x206272696467652e, 0x0a0a2866756e6374, 0x696f6e2028676c6f, 0x62616c29207b0a20, 0x2020202275736520, 0x737472696374223b, 0x0a0a20202020636f, 0x6e737420436f6d6d, 0x616e64203d204f62, 0x6a6563742e667265, 0x657a65287b0a2020, @@ -60,611 +60,636 @@ struct WebFrontJsData { 0x207365747465723a, 0x2022736574466c6f, 0x61743634227d5d2c, 0x0a202020205d293b, 0x0a0a20202020636f, 0x6e73742061727261, 0x79436f646573203d, 0x206e6577204d6170, 0x2841727261792e66, 0x726f6d2861727261, 0x7954797065732c20, 0x285b636f6e737472, 0x7563746f722c2073, 0x7065635d29203d3e, 0x205b737065632e63, - 0x6f64652c207b2e2e, 0x2e737065632c2063, 0x6f6e737472756374, 0x6f727d5d29293b0a, 0x0a2020202066756e, - 0x6374696f6e206e61, 0x7469766549734c69, 0x74746c65456e6469, 0x616e2829207b0a20, 0x2020202020202063, - 0x6f6e737420776f72, 0x64203d206e657720, 0x55696e7433324172, 0x726179285b307831, 0x313030303066665d, - 0x293b0a2020202020, 0x2020207265747572, 0x6e206e6577205569, 0x6e74384172726179, 0x28776f72642e6275, - 0x66666572295b305d, 0x203d3d3d20307866, 0x663b0a202020207d, 0x0a0a202020202f2f, 0x2f20576972652074, - 0x797065202d3e2064, 0x65636f6465722c20, 0x736f206465636f64, 0x6556616c75652073, 0x746179732061206c, - 0x6f6f6b757020696e, 0x7374656164206f66, 0x206120636861696e, 0x206f6620636f6d70, 0x617269736f6e732e, - 0x0a202020202f2f2f, 0x2045766572792074, 0x7970656420617272, 0x617920636f646520, 0x736861726573206f, - 0x6e6520656e747279, 0x3b20746865206861, 0x6e646c6572207265, 0x6164732074686520, 0x7769647468206261, - 0x636b206f66662074, 0x686520636f64652e, 0x0a20202020636f6e, 0x73742076616c7565, 0x4465636f64657273, - 0x203d206e6577204d, 0x6170285b0a202020, 0x20202020205b5061, 0x72616d547970652e, 0x626f6f6c65616e54, - 0x7275652c20282920, 0x3d3e20287b76616c, 0x75653a2074727565, 0x2c2062797465733a, 0x20317d295d2c0a20, - 0x202020202020205b, 0x506172616d547970, 0x652e626f6f6c6561, 0x6e46616c73652c20, 0x2829203d3e20287b, - 0x76616c75653a2066, 0x616c73652c206279, 0x7465733a20317d29, 0x5d2c0a2020202020, 0x2020205b50617261, - 0x6d547970652e6e75, 0x6d6265722c202862, 0x72696467652c2074, 0x7970652c20766965, 0x772c206f66667365, - 0x7429203d3e206272, 0x696467652e646563, 0x6f64654e756d6265, 0x7228766965772c20, 0x6f6666736574295d, - 0x2c0a202020202020, 0x20205b506172616d, 0x547970652e736d61, 0x6c6c537472696e67, 0x2c20286272696467, - 0x652c20747970652c, 0x20766965772c206f, 0x666673657429203d, 0x3e20627269646765, 0x2e6465636f646553, - 0x7472696e67287479, 0x70652c2076696577, 0x2c206f6666736574, 0x295d2c0a20202020, 0x202020205b506172, - 0x616d547970652e73, 0x7472696e672c2028, 0x6272696467652c20, 0x747970652c207669, 0x65772c206f666673, - 0x657429203d3e2062, 0x72696467652e6465, 0x636f646553747269, 0x6e6728747970652c, 0x20766965772c206f, - 0x6666736574295d2c, 0x0a20202020202020, 0x205b506172616d54, 0x7970652e65786365, 0x7074696f6e2c2028, - 0x6272696467652c20, 0x747970652c207669, 0x65772c206f666673, 0x657429203d3e2062, 0x72696467652e6465, - 0x636f646553747269, 0x6e6728747970652c, 0x20766965772c206f, 0x6666736574295d2c, 0x0a20202020202020, - 0x205b506172616d54, 0x7970652e7475706c, 0x652c202862726964, 0x67652c2074797065, 0x2c20766965772c20, - 0x6f66667365742920, 0x3d3e206272696467, 0x652e6465636f6465, 0x5475706c65287669, 0x65772c206f666673, - 0x6574295d2c0a2020, 0x20205d293b0a0a20, 0x202020666f722028, 0x636f6e737420636f, 0x6465206f66205b50, - 0x6172616d54797065, 0x2e736d616c6c4172, 0x72617955382c202e, 0x2e2e617272617943, 0x6f6465732e6b6579, - 0x7328295d290a2020, 0x2020202020207661, 0x6c75654465636f64, 0x6572732e73657428, 0x636f64652c202862, - 0x72696467652c2074, 0x7970652c20766965, 0x772c206f66667365, 0x7429203d3e206272, 0x696467652e646563, - 0x6f64655479706564, 0x4172726179287479, 0x70652c2076696577, 0x2c206f6666736574, 0x29293b0a0a202020, - 0x2066756e6374696f, 0x6e20697354797065, 0x6441727261792876, 0x616c756529207b0a, 0x2020202020202020, - 0x72657475726e2041, 0x7272617942756666, 0x65722e6973566965, 0x772876616c756529, 0x2026262021287661, - 0x6c756520696e7374, 0x616e63656f662044, 0x6174615669657729, 0x3b0a202020207d0a, 0x0a202020202f2f2f, - 0x2053686f72742055, 0x696e743841727261, 0x79207061796c6f61, 0x6473207573652074, 0x686520636f6d7061, - 0x637420736d616c6c, 0x4172726179553820, 0x6865616465722e20, 0x53697a696e672061, 0x6e6420656e636f64, - 0x696e67206d757374, 0x206167726565206f, 0x6e0a202020202f2f, 0x2f20746869732c20, 0x736f20626f746820, - 0x676f207468726f75, 0x676820686572653a, 0x2061206469736167, 0x7265656d656e7420, 0x776f756c64206d69, - 0x732d73697a652074, 0x68652073656e6420, 0x6275666665722e0a, 0x2020202066756e63, 0x74696f6e20747970, - 0x6564417272617948, 0x656164657253697a, 0x652876616c756529, 0x207b0a2020202020, 0x2020207265747572, - 0x6e2076616c756520, 0x696e7374616e6365, 0x6f662055696e7438, 0x4172726179202626, 0x2076616c75652e6c, - 0x656e677468203c20, 0x323536203f203220, 0x3a20353b0a202020, 0x207d0a0a20202020, 0x66756e6374696f6e, - 0x2069734e6f6e4e65, 0x676174697665496e, 0x7465676572286361, 0x6e64696461746529, 0x207b0a2020202020, - 0x2020207265747572, 0x6e204e756d626572, 0x2e69735361666549, 0x6e74656765722863, 0x616e646964617465, - 0x292026262063616e, 0x646964617465203e, 0x3d20303b0a202020, 0x207d0a0a20202020, 0x66756e6374696f6e, - 0x2072657175697265, 0x4279746573287669, 0x65772c206f666673, 0x65742c20636f756e, 0x742c206465736372, - 0x697074696f6e2920, 0x7b0a202020202020, 0x2020636f6e737420, 0x77656c6c466f726d, 0x6564203d2069734e, - 0x6f6e4e6567617469, 0x7665496e74656765, 0x72286f6666736574, 0x292026262069734e, 0x6f6e4e6567617469, - 0x7665496e74656765, 0x7228636f756e7429, 0x3b0a202020202020, 0x2020696620282177, 0x656c6c466f726d65, - 0x64207c7c206f6666, 0x736574202b20636f, 0x756e74203e207669, 0x65772e627974654c, 0x656e677468290a20, - 0x2020202020202020, 0x2020207468726f77, 0x206e65772052616e, 0x67654572726f7228, 0x605472756e636174, - 0x656420247b646573, 0x6372697074696f6e, 0x7d60293b0a202020, 0x207d0a0a20202020, 0x636c617373205765, - 0x6246726f6e744272, 0x69646765207b0a20, 0x2020202020202063, 0x6f6e737472756374, 0x6f722875726c203d, - 0x206077733a2f2f24, 0x7b676c6f62616c2e, 0x6c6f636174696f6e, 0x2e686f73747d6029, 0x207b0a2020202020, - 0x2020202020202074, 0x6869732e73746174, 0x65203d2022756e69, 0x6e697469616c697a, 0x6564223b0a202020, - 0x2020202020202020, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e203d2066616c, 0x73653b0a20202020, - 0x2020202020202020, 0x746869732e6e6578, 0x7443616c6c496420, 0x3d20313b0a202020, 0x2020202020202020, - 0x20746869732e7065, 0x6e64696e6743616c, 0x6c73203d206e6577, 0x204d617028293b0a, 0x2020202020202020, - 0x2020202074686973, 0x2e72656164795365, 0x74746c6564203d20, 0x66616c73653b0a20, 0x2020202020202020, - 0x202020746869732e, 0x726561647950726f, 0x6d697365203d206e, 0x65772050726f6d69, 0x736528287265736f, - 0x6c76652c2072656a, 0x65637429203d3e20, 0x7b0a202020202020, 0x2020202020202020, 0x2020746869732e72, - 0x65736f6c76655265, 0x616479203d207265, 0x736f6c76653b0a20, 0x2020202020202020, 0x2020202020202074, - 0x6869732e72656a65, 0x6374526561647920, 0x3d2072656a656374, 0x3b0a202020202020, 0x2020202020207d29, - 0x3b0a202020202020, 0x2020202020202f2f, 0x20576974686f7574, 0x20746869732c2061, 0x2070616765207468, - 0x6174206e65766572, 0x20746f7563686573, 0x2077656246726f6e, 0x742e726561647920, 0x776f756c64207365, - 0x6520616e2022756e, 0x68616e646c65640a, 0x2020202020202020, 0x202020202f2f2070, 0x726f6d6973652072, - 0x656a656374696f6e, 0x22207761726e696e, 0x6720696620746865, 0x20696e697469616c, 0x20636f6e6e656374, - 0x696f6e206661696c, 0x732e204170706c69, 0x636174696f6e2063, 0x6f6465207374696c, 0x6c0a202020202020, - 0x2020202020202f2f, 0x2067657473206974, 0x73206f776e20696e, 0x646570656e64656e, 0x7420736574746c65, - 0x6d656e7420766961, 0x202e7468656e2829, 0x2f2e636174636828, 0x292f617761697420, 0x6f6e207468652073, - 0x616d652070726f6d, 0x6973653b0a202020, 0x2020202020202020, 0x202f2f2061747461, 0x6368696e67206120, - 0x68616e646c657220, 0x6865726520646f65, 0x736e277420636f6e, 0x73756d65206f7220, 0x6166666563742074, - 0x686f73652e0a2020, 0x2020202020202020, 0x2020746869732e72, 0x6561647950726f6d, 0x6973652e63617463, - 0x68282829203d3e20, 0x7b7d293b0a202020, 0x2020202020202020, 0x20746869732e736f, 0x636b6574203d206e, - 0x657720576562536f, 0x636b65742875726c, 0x2c20225765624672, 0x6f6e745f302e3122, 0x293b0a2020202020, - 0x2020202020202074, 0x6869732e736f636b, 0x65742e62696e6172, 0x7954797065203d20, 0x2261727261796275, - 0x66666572223b0a20, 0x2020202020202020, 0x202020746869732e, 0x736f636b65742e6f, 0x6e6f70656e203d20, - 0x2829203d3e207468, 0x69732e68616e6473, 0x68616b6528293b0a, 0x2020202020202020, 0x2020202074686973, - 0x2e736f636b65742e, 0x6f6e6d6573736167, 0x65203d206576656e, 0x74203d3e20746869, 0x732e6f6e4d657373, - 0x616765286576656e, 0x742e64617461293b, 0x0a20202020202020, 0x2020202020746869, 0x732e736f636b6574, - 0x2e6f6e636c6f7365, 0x203d206576656e74, 0x203d3e207b0a2020, 0x2020202020202020, 0x202020202020636f, - 0x6e73742064657461, 0x696c203d20657665, 0x6e742e776173436c, 0x65616e203f206063, 0x6f64653d247b6576, - 0x656e742e636f6465, 0x7d20726561736f6e, 0x3d247b6576656e74, 0x2e726561736f6e7d, 0x60203a2022636f6e, - 0x6e656374696f6e20, 0x6c6f7374223b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420657272, - 0x6f72203d206e6577, 0x204572726f722860, 0x57656246726f6e74, 0x20636f6e6e656374, 0x696f6e20636c6f73, - 0x65643a20247b6465, 0x7461696c7d60293b, 0x0a20202020202020, 0x2020202020202020, 0x20746869732e7365, - 0x74746c6552656164, 0x7952656a65637465, 0x64286572726f7229, 0x3b0a202020202020, 0x2020202020202020, - 0x2020666f72202863, 0x6f6e73742070656e, 0x64696e67206f6620, 0x746869732e70656e, 0x64696e6743616c6c, - 0x732e76616c756573, 0x2829290a20202020, 0x2020202020202020, 0x2020202020202020, 0x70656e64696e672e, - 0x72656a6563742865, 0x72726f72293b0a20, 0x2020202020202020, 0x2020202020202074, 0x6869732e70656e64, - 0x696e6743616c6c73, 0x2e636c6561722829, 0x3b0a202020202020, 0x2020202020202020, 0x2020746869732e73, - 0x74617465203d2022, 0x636c6f736564223b, 0x0a20202020202020, 0x2020202020202020, 0x20636f6e736f6c65, - 0x2e6c6f6728605b57, 0x656246726f6e7420, 0x636c6f73655d2024, 0x7b64657461696c7d, 0x60293b0a20202020, - 0x2020202020202020, 0x7d3b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, 0x65742e6f6e657272, - 0x6f72203d20282920, 0x3d3e207b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206572726f72, - 0x203d206e65772045, 0x72726f7228225765, 0x6246726f6e742063, 0x6f6e6e656374696f, 0x6e206661696c6564, - 0x22293b0a20202020, 0x2020202020202020, 0x2020202074686973, 0x2e736574746c6552, 0x6561647952656a65, - 0x6374656428657272, 0x6f72293b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x736f6c652e657272, - 0x6f7228225b576562, 0x46726f6e7420736f, 0x636b657420657272, 0x6f725d222c206572, 0x726f72293b0a2020, - 0x2020202020202020, 0x20207d3b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f205265736f, - 0x6c766573206f6e63, 0x6520746865205765, 0x62536f636b657420, 0x68616e647368616b, 0x652069732061636b, - 0x6e6f776c65646765, 0x642c2072656a6563, 0x7473206966207468, 0x6520696e69746961, 0x6c20636f6e6e6563, - 0x74696f6e0a202020, 0x20202020202f2f2f, 0x20636c6f73657320, 0x6f72206661696c73, 0x206265666f726520, - 0x746861742e20446f, 0x6573206e6f742072, 0x65666c656374206c, 0x6174657220646973, 0x636f6e6e65637473, - 0x3b20736565207065, 0x6e64696e6743616c, 0x6c732f7374617465, 0x2e0a202020202020, 0x2020676574207265, - 0x6164792829207b0a, 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, 0x726561647950726f, - 0x6d6973653b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x202f2f2f2052656a, 0x6563747320746865, - 0x20696e697469616c, 0x2d72656164696e65, 0x73732070726f6d69, 0x7365206174206d6f, 0x7374206f6e63652c, - 0x20616e64206f6e6c, 0x79207768696c6520, 0x7374696c6c207761, 0x6974696e67206f6e, 0x207468650a202020, - 0x20202020202f2f2f, 0x2068616e64736861, 0x6b652e2041206661, 0x696c656420636f6e, 0x6e656374696f6e20, - 0x7479706963616c6c, 0x7920666972657320, 0x626f746820606572, 0x726f726020616e64, 0x2060636c6f736560, - 0x2c20616e64206120, 0x6c617465720a2020, 0x2020202020202f2f, 0x2f20646973636f6e, 0x6e65637420286166, - 0x746572206c696e6b, 0x696e6729206d7573, 0x74206e6f74207265, 0x2d736574746c6520, 0x616e20616c726561, - 0x64792d7265736f6c, 0x7665642060726561, 0x6479603b20746869, 0x732067756172640a, 0x2020202020202020, - 0x2f2f2f206d616b65, 0x7320657665727920, 0x6f6e65206f662074, 0x686f736520636173, 0x6573206120686172, - 0x6d6c657373206e6f, 0x2d6f702061667465, 0x7220746865206669, 0x7273742073657474, 0x6c656d656e742e0a, - 0x2020202020202020, 0x736574746c655265, 0x61647952656a6563, 0x746564286572726f, 0x7229207b0a202020, - 0x2020202020202020, 0x2069662028746869, 0x732e726561647953, 0x6574746c6564207c, 0x7c20746869732e73, - 0x74617465203d3d3d, 0x20226c696e6b6564, 0x2229207265747572, 0x6e3b0a2020202020, 0x2020202020202074, - 0x6869732e72656164, 0x79536574746c6564, 0x203d20747275653b, 0x0a20202020202020, 0x2020202020746869, - 0x732e72656a656374, 0x5265616479286572, 0x726f72293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, - 0x2068616e64736861, 0x6b652829207b0a20, 0x2020202020202020, 0x202020746869732e, 0x7374617465203d20, - 0x2268616e64736861, 0x6b696e67223b0a20, 0x2020202020202020, 0x202020746869732e, 0x736f636b65742e73, - 0x656e64286e657720, 0x55696e7438417272, 0x6179285b436f6d6d, 0x616e642e68616e64, 0x7368616b652c206e, - 0x617469766549734c, 0x6974746c65456e64, 0x69616e2829203f20, 0x30203a20315d2929, 0x3b0a202020202020, - 0x20207d0a0a202020, 0x20202020206f6e4d, 0x6573736167652862, 0x756666657229207b, 0x0a20202020202020, - 0x2020202020636f6e, 0x7374207669657720, 0x3d206e6577204461, 0x7461566965772862, 0x7566666572293b0a, - 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, 0x28766965772c2030, 0x2c20312c20226d65, - 0x7373616765206865, 0x6164657222293b0a, 0x2020202020202020, 0x2020202073776974, 0x6368202876696577, - 0x2e67657455696e74, 0x3828302929207b0a, 0x2020202020202020, 0x2020202063617365, 0x20436f6d6d616e64, - 0x2e61636b3a0a2020, 0x2020202020202020, 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, - 0x20302c20322c2022, 0x61636b6e6f776c65, 0x6467656d656e7422, 0x293b0a2020202020, 0x2020202020202020, - 0x2020206966202874, 0x6869732e73746174, 0x65203d3d3d202268, 0x616e647368616b69, 0x6e672229207b0a20, - 0x2020202020202020, 0x2020202020202020, 0x202020746869732e, 0x6c6974746c65456e, 0x6469616e203d2076, - 0x6965772e67657455, 0x696e743828312920, 0x3d3d3d20303b0a20, 0x2020202020202020, 0x2020202020202020, - 0x202020746869732e, 0x7374617465203d20, 0x226c696e6b656422, 0x3b0a202020202020, 0x2020202020202020, - 0x2020202020207468, 0x69732e7265616479, 0x536574746c656420, 0x3d20747275653b0a, 0x2020202020202020, - 0x2020202020202020, 0x2020202074686973, 0x2e7265736f6c7665, 0x526561647928293b, 0x0a20202020202020, - 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, - 0x2020202020206361, 0x736520436f6d6d61, 0x6e642e7465787443, 0x6f6d6d616e643a0a, 0x2020202020202020, - 0x2020202020202020, 0x746869732e68616e, 0x646c655465787443, 0x6f6d6d616e642876, 0x696577293b0a2020, - 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, 0x2020202020202020, 0x206361736520436f, - 0x6d6d616e642e6361, 0x6c6c46756e637469, 0x6f6e3a0a20202020, 0x2020202020202020, 0x2020202074686973, - 0x2e63616c6c4a7346, 0x756e6374696f6e28, 0x76696577293b0a20, 0x2020202020202020, 0x2020202020202062, - 0x7265616b3b0a2020, 0x2020202020202020, 0x2020636173652043, 0x6f6d6d616e642e64, 0x6f6d42617463683a, - 0x0a20202020202020, 0x2020202020202020, 0x20747279207b0a20, 0x2020202020202020, 0x2020202020202020, - 0x2020206966202876, 0x6965772e62797465, 0x4c656e677468203e, 0x2031303234202a20, 0x3130323429207468, - 0x726f77206e657720, 0x52616e6765457272, 0x6f722822444f4d20, 0x6261746368206578, 0x6365656473203120, - 0x4d694222293b0a20, 0x2020202020202020, 0x2020202020202020, 0x2020206966202821, 0x746869732e646f6d, - 0x426174636848616e, 0x646c657229207468, 0x726f77206e657720, 0x4572726f72282244, 0x4f4d20696e746572, - 0x7072657465722069, 0x73206e6f7420696e, 0x7374616c6c656422, 0x293b0a2020202020, 0x2020202020202020, - 0x2020202020202074, 0x6869732e646f6d42, 0x6174636848616e64, 0x6c6572286e657720, 0x55696e7438417272, - 0x6179286275666665, 0x7229293b0a202020, 0x2020202020202020, 0x20202020207d2063, 0x6174636820286572, - 0x726f7229207b0a20, 0x2020202020202020, 0x2020202020202020, 0x202020636f6e7374, 0x206964203d207669, - 0x65772e627974654c, 0x656e677468203e3d, 0x2036203f20766965, 0x772e67657455696e, 0x74333228322c2074, - 0x72756529203a2030, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207468, 0x69732e6370704675, - 0x6e6374696f6e2822, 0x7766446f6d2e7265, 0x6a65637465642229, 0x2869642c20537472, 0x696e67286572726f, - 0x722e6d6573736167, 0x65207c7c20657272, 0x6f72292e736c6963, 0x6528302c20343039, 0x3629292e63617463, - 0x68282829203d3e20, 0x7b7d293b0a202020, 0x2020202020202020, 0x20202020207d0a20, 0x2020202020202020, - 0x2020202020202062, 0x7265616b3b0a2020, 0x2020202020202020, 0x2020636173652043, 0x6f6d6d616e642e66, - 0x756e6374696f6e52, 0x657475726e3a0a20, 0x2020202020202020, 0x2020202020202074, 0x6869732e68616e64, - 0x6c6546756e637469, 0x6f6e52657475726e, 0x2876696577293b0a, 0x2020202020202020, 0x2020202020202020, - 0x627265616b3b0a20, 0x2020202020202020, 0x2020206465666175, 0x6c743a0a20202020, 0x2020202020202020, - 0x202020207468726f, 0x77206e6577204572, 0x726f722860556e73, 0x7570706f72746564, 0x2057656246726f6e, - 0x7420636f6d6d616e, 0x6420247b76696577, 0x2e67657455696e74, 0x382830297d60293b, 0x0a20202020202020, - 0x20202020207d0a20, 0x202020202020207d, 0x0a0a202020202020, 0x202068616e646c65, 0x54657874436f6d6d, - 0x616e642876696577, 0x29207b0a20202020, 0x2020202020202020, 0x7265717569726542, 0x7974657328766965, - 0x772c20302c20342c, 0x2022746578742063, 0x6f6d6d616e642068, 0x656164657222293b, 0x0a20202020202020, - 0x2020202020636f6e, 0x7374206c656e6774, 0x68203d2076696577, 0x2e67657455696e74, 0x31362832293b0a20, - 0x2020202020202020, 0x2020207265717569, 0x7265427974657328, 0x766965772c20342c, 0x206c656e6774682c, - 0x2022746578742063, 0x6f6d6d616e642070, 0x61796c6f61642229, 0x3b0a202020202020, 0x202020202020636f, - 0x6e73742074657874, 0x203d206e65772054, 0x6578744465636f64, 0x657228227574662d, 0x3822292e6465636f, - 0x6465286e65772055, 0x696e743841727261, 0x7928766965772e62, 0x75666665722c2076, 0x6965772e62797465, - 0x4f6666736574202b, 0x20342c206c656e67, 0x746829293b0a2020, 0x2020202020202020, 0x2020737769746368, - 0x2028766965772e67, 0x657455696e743828, 0x312929207b0a2020, 0x2020202020202020, 0x2020636173652054, - 0x657874436f6d6d61, 0x6e642e6465627567, 0x4c6f673a0a202020, 0x2020202020202020, 0x2020202020636f6e, - 0x736f6c652e6c6f67, 0x2874657874293b0a, 0x2020202020202020, 0x2020202020202020, 0x627265616b3b0a20, - 0x2020202020202020, 0x2020206361736520, 0x54657874436f6d6d, 0x616e642e696e6a65, 0x6374536372697074, - 0x3a207b0a20202020, 0x2020202020202020, 0x20202020636f6e73, 0x7420736372697074, 0x203d20646f63756d, - 0x656e742e63726561, 0x7465456c656d656e, 0x7428227363726970, 0x7422293b0a202020, 0x2020202020202020, - 0x2020202020736372, 0x6970742e74657874, 0x203d20746578743b, 0x0a20202020202020, 0x2020202020202020, - 0x2028646f63756d65, 0x6e742e626f647920, 0x3f3f20646f63756d, 0x656e742e68656164, 0x203f3f20646f6375, - 0x6d656e742e646f63, 0x756d656e74456c65, 0x6d656e74292e6170, 0x70656e644368696c, 0x6428736372697074, - 0x293b0a2020202020, 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, 0x2020202020207d0a, - 0x2020202020202020, 0x2020202064656661, 0x756c743a0a202020, 0x2020202020202020, 0x2020202020746872, - 0x6f77206e65772045, 0x72726f722860556e, 0x737570706f727465, 0x642057656246726f, 0x6e74207465787420, - 0x636f6d6d616e6420, 0x247b766965772e67, 0x657455696e743828, 0x31297d60293b0a20, 0x2020202020202020, - 0x2020207d0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x63616c6c4a734675, 0x6e6374696f6e286d, - 0x6573736167652920, 0x7b0a202020202020, 0x2020202020207265, 0x7175697265427974, 0x6573286d65737361, - 0x67652c20302c2038, 0x2c202266756e6374, 0x696f6e2063616c6c, 0x2068656164657222, 0x293b0a2020202020, - 0x2020202020202063, 0x6f6e737420636f75, 0x6e74203d206d6573, 0x736167652e676574, 0x55696e7438283129, - 0x3b0a202020202020, 0x202020202020636f, 0x6e73742063616c6c, 0x4964203d206d6573, 0x736167652e676574, - 0x55696e7431362832, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, - 0x202069662028636f, 0x756e74203d3d3d20, 0x30290a2020202020, 0x2020202020202020, 0x2020207468726f77, - 0x206e657720457272, 0x6f72282246756e63, 0x74696f6e2063616c, 0x6c20686173206e6f, 0x2066756e6374696f, - 0x6e206e616d652229, 0x3b0a202020202020, 0x202020202020636f, 0x6e7374207061796c, 0x6f616453697a6520, + 0x6f64652c207b2e2e, 0x2e737065632c2063, 0x6f6e737472756374, 0x6f727d5d29293b0a, 0x0a202020202f2f2f, + 0x20546865206c6175, 0x6e63682073656372, 0x6574206f6620616e, 0x20656d6265646465, 0x6420766965772c20, + 0x6f6e63653a206465, 0x66696e6564206279, 0x2074686520616461, 0x7074657220626566, 0x6f726520616e7920, + 0x736372697074206f, 0x6620746865207061, 0x67652c207468656e, 0x2072656d6f766564, 0x2e0a202020202f2f, + 0x2f20416e79746869, 0x6e67207468617420, 0x6973206e6f742074, 0x6865206578706563, 0x7465642036342068, + 0x657861646563696d, 0x616c206368617261, 0x6374657273206973, 0x2069676e6f726564, 0x2c20736f20612073, + 0x6372697074206361, 0x6e6e6f7420696e6a, 0x656374206f746865, 0x722062797465732e, 0x0a2020202066756e, + 0x6374696f6e207461, 0x6b65566965775365, 0x637265742829207b, 0x0a20202020202020, 0x20636f6e73742064, + 0x657363726970746f, 0x72203d204f626a65, 0x63742e6765744f77, 0x6e50726f70657274, 0x7944657363726970, + 0x746f7228676c6f62, 0x616c2c20225f5f77, 0x656266726f6e7456, 0x69657722293b0a20, 0x2020202020202069, + 0x6620282164657363, 0x726970746f722920, 0x72657475726e2022, 0x223b0a2020202020, 0x20202064656c6574, + 0x6520676c6f62616c, 0x2e5f5f7765626672, 0x6f6e74566965773b, 0x0a20202020202020, 0x20636f6e73742076, + 0x616c7565203d2064, 0x657363726970746f, 0x722e76616c75653b, 0x0a20202020202020, 0x2072657475726e20, + 0x747970656f662076, 0x616c7565203d3d3d, 0x2022737472696e67, 0x22202626202f5e5b, 0x302d39612d665d7b, + 0x36347d242f2e7465, 0x73742876616c7565, 0x29203f2076616c75, 0x65203a2022223b0a, 0x202020207d0a0a20, + 0x20202066756e6374, 0x696f6e206e617469, 0x766549734c697474, 0x6c65456e6469616e, 0x2829207b0a202020, + 0x2020202020636f6e, 0x737420776f726420, 0x3d206e6577205569, 0x6e74333241727261, 0x79285b3078313130, + 0x30303066665d293b, 0x0a20202020202020, 0x2072657475726e20, 0x6e65772055696e74, 0x3841727261792877, + 0x6f72642e62756666, 0x6572295b305d203d, 0x3d3d20307866663b, 0x0a202020207d0a0a, 0x202020202f2f2f20, + 0x5769726520747970, 0x65202d3e20646563, 0x6f6465722c20736f, 0x206465636f646556, 0x616c756520737461, + 0x79732061206c6f6f, 0x6b757020696e7374, 0x656164206f662061, 0x20636861696e206f, 0x6620636f6d706172, + 0x69736f6e732e0a20, 0x2020202f2f2f2045, 0x7665727920747970, 0x6564206172726179, 0x20636f6465207368, + 0x61726573206f6e65, 0x20656e7472793b20, 0x7468652068616e64, 0x6c65722072656164, 0x7320746865207769, + 0x647468206261636b, 0x206f666620746865, 0x20636f64652e0a20, 0x202020636f6e7374, 0x2076616c75654465, + 0x636f64657273203d, 0x206e6577204d6170, 0x285b0a2020202020, 0x2020205b50617261, 0x6d547970652e626f, + 0x6f6c65616e547275, 0x652c202829203d3e, 0x20287b76616c7565, 0x3a20747275652c20, 0x62797465733a2031, + 0x7d295d2c0a202020, 0x20202020205b5061, 0x72616d547970652e, 0x626f6f6c65616e46, 0x616c73652c202829, + 0x203d3e20287b7661, 0x6c75653a2066616c, 0x73652c2062797465, 0x733a20317d295d2c, 0x0a20202020202020, + 0x205b506172616d54, 0x7970652e6e756d62, 0x65722c2028627269, 0x6467652c20747970, 0x652c20766965772c, + 0x206f666673657429, 0x203d3e2062726964, 0x67652e6465636f64, 0x654e756d62657228, 0x766965772c206f66, + 0x66736574295d2c0a, 0x2020202020202020, 0x5b506172616d5479, 0x70652e736d616c6c, 0x537472696e672c20, + 0x286272696467652c, 0x20747970652c2076, 0x6965772c206f6666, 0x73657429203d3e20, 0x6272696467652e64, + 0x65636f6465537472, 0x696e672874797065, 0x2c20766965772c20, 0x6f6666736574295d, 0x2c0a202020202020, + 0x20205b506172616d, 0x547970652e737472, 0x696e672c20286272, 0x696467652c207479, 0x70652c2076696577, + 0x2c206f6666736574, 0x29203d3e20627269, 0x6467652e6465636f, 0x6465537472696e67, 0x28747970652c2076, + 0x6965772c206f6666, 0x736574295d2c0a20, 0x202020202020205b, 0x506172616d547970, 0x652e657863657074, + 0x696f6e2c20286272, 0x696467652c207479, 0x70652c2076696577, 0x2c206f6666736574, 0x29203d3e20627269, + 0x6467652e6465636f, 0x6465537472696e67, 0x28747970652c2076, 0x6965772c206f6666, 0x736574295d2c0a20, + 0x202020202020205b, 0x506172616d547970, 0x652e7475706c652c, 0x2028627269646765, 0x2c20747970652c20, + 0x766965772c206f66, 0x6673657429203d3e, 0x206272696467652e, 0x6465636f64655475, 0x706c652876696577, + 0x2c206f6666736574, 0x295d2c0a20202020, 0x5d293b0a0a202020, 0x20666f722028636f, 0x6e737420636f6465, + 0x206f66205b506172, 0x616d547970652e73, 0x6d616c6c41727261, 0x7955382c202e2e2e, 0x6172726179436f64, + 0x65732e6b65797328, 0x295d290a20202020, 0x2020202076616c75, 0x654465636f646572, 0x732e73657428636f, + 0x64652c2028627269, 0x6467652c20747970, 0x652c20766965772c, 0x206f666673657429, 0x203d3e2062726964, + 0x67652e6465636f64, 0x6554797065644172, 0x7261792874797065, 0x2c20766965772c20, 0x6f66667365742929, + 0x3b0a0a2020202066, 0x756e6374696f6e20, 0x6973547970656441, 0x727261792876616c, 0x756529207b0a2020, + 0x2020202020207265, 0x7475726e20417272, 0x6179427566666572, 0x2e69735669657728, 0x76616c7565292026, + 0x2620212876616c75, 0x6520696e7374616e, 0x63656f6620446174, 0x6156696577293b0a, 0x202020207d0a0a20, + 0x2020202f2f2f2053, 0x686f72742055696e, 0x7438417272617920, 0x7061796c6f616473, 0x2075736520746865, + 0x20636f6d70616374, 0x20736d616c6c4172, 0x7261795538206865, 0x616465722e205369, 0x7a696e6720616e64, + 0x20656e636f64696e, 0x67206d7573742061, 0x67726565206f6e0a, 0x202020202f2f2f20, 0x746869732c20736f, + 0x20626f746820676f, 0x207468726f756768, 0x20686572653a2061, 0x2064697361677265, 0x656d656e7420776f, + 0x756c64206d69732d, 0x73697a6520746865, 0x2073656e64206275, 0x666665722e0a2020, 0x202066756e637469, + 0x6f6e207479706564, 0x4172726179486561, 0x64657253697a6528, 0x76616c756529207b, 0x0a20202020202020, + 0x2072657475726e20, 0x76616c756520696e, 0x7374616e63656f66, 0x2055696e74384172, 0x7261792026262076, + 0x616c75652e6c656e, 0x677468203c203235, 0x36203f2032203a20, 0x353b0a202020207d, 0x0a0a202020206675, + 0x6e6374696f6e2069, 0x734e6f6e4e656761, 0x74697665496e7465, 0x6765722863616e64, 0x696461746529207b, + 0x0a20202020202020, 0x2072657475726e20, 0x4e756d6265722e69, 0x7353616665496e74, 0x656765722863616e, + 0x6469646174652920, 0x26262063616e6469, 0x64617465203e3d20, 0x303b0a202020207d, 0x0a0a202020206675, + 0x6e6374696f6e2072, 0x6571756972654279, 0x7465732876696577, 0x2c206f6666736574, 0x2c20636f756e742c, + 0x2064657363726970, 0x74696f6e29207b0a, 0x2020202020202020, 0x636f6e7374207765, 0x6c6c466f726d6564, + 0x203d2069734e6f6e, 0x4e65676174697665, 0x496e746567657228, 0x6f66667365742920, 0x26262069734e6f6e, + 0x4e65676174697665, 0x496e746567657228, 0x636f756e74293b0a, 0x2020202020202020, 0x696620282177656c, + 0x6c466f726d656420, 0x7c7c206f66667365, 0x74202b20636f756e, 0x74203e2076696577, 0x2e627974654c656e, + 0x677468290a202020, 0x2020202020202020, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72286054, + 0x72756e6361746564, 0x20247b6465736372, 0x697074696f6e7d60, 0x293b0a202020207d, 0x0a0a20202020636c, + 0x6173732057656246, 0x726f6e7442726964, 0x6765207b0a202020, 0x2020202020636f6e, 0x7374727563746f72, + 0x2875726c203d2060, 0x77733a2f2f247b67, 0x6c6f62616c2e6c6f, 0x636174696f6e2e68, 0x6f73747d6029207b, + 0x0a20202020202020, 0x2020202020746869, 0x732e737461746520, 0x3d2022756e696e69, 0x7469616c697a6564, + 0x223b0a2020202020, 0x2020202020202074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x203d2066616c7365, + 0x3b0a202020202020, 0x2020202020207468, 0x69732e6e65787443, 0x616c6c4964203d20, 0x313b0a2020202020, + 0x2020202020202074, 0x6869732e70656e64, 0x696e6743616c6c73, 0x203d206e6577204d, 0x617028293b0a2020, + 0x2020202020202020, 0x2020746869732e72, 0x6561647953657474, 0x6c6564203d206661, 0x6c73653b0a202020, + 0x2020202020202020, 0x20746869732e7265, 0x61647950726f6d69, 0x7365203d206e6577, 0x2050726f6d697365, + 0x28287265736f6c76, 0x652c2072656a6563, 0x7429203d3e207b0a, 0x2020202020202020, 0x2020202020202020, + 0x746869732e726573, 0x6f6c766552656164, 0x79203d207265736f, 0x6c76653b0a202020, 0x2020202020202020, + 0x2020202020746869, 0x732e72656a656374, 0x5265616479203d20, 0x72656a6563743b0a, 0x2020202020202020, + 0x202020207d293b0a, 0x2020202020202020, 0x202020202f2f2057, 0x6974686f75742074, 0x6869732c20612070, + 0x6167652074686174, 0x206e657665722074, 0x6f75636865732077, 0x656246726f6e742e, 0x726561647920776f, + 0x756c642073656520, 0x616e2022756e6861, 0x6e646c65640a2020, 0x2020202020202020, 0x20202f2f2070726f, + 0x6d6973652072656a, 0x656374696f6e2220, 0x7761726e696e6720, 0x6966207468652069, 0x6e697469616c2063, + 0x6f6e6e656374696f, 0x6e206661696c732e, 0x204170706c696361, 0x74696f6e20636f64, 0x65207374696c6c0a, + 0x2020202020202020, 0x202020202f2f2067, 0x6574732069747320, 0x6f776e20696e6465, 0x70656e64656e7420, + 0x736574746c656d65, 0x6e7420766961202e, 0x7468656e28292f2e, 0x636174636828292f, 0x6177616974206f6e, + 0x207468652073616d, 0x652070726f6d6973, 0x653b0a2020202020, 0x202020202020202f, 0x2f20617474616368, + 0x696e672061206861, 0x6e646c6572206865, 0x726520646f65736e, 0x277420636f6e7375, 0x6d65206f72206166, + 0x666563742074686f, 0x73652e0a20202020, 0x2020202020202020, 0x746869732e726561, 0x647950726f6d6973, + 0x652e636174636828, 0x2829203d3e207b7d, 0x293b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, + 0x6574203d206e6577, 0x20576562536f636b, 0x65742875726c2c20, 0x2257656246726f6e, 0x745f302e3122293b, + 0x0a20202020202020, 0x2020202020746869, 0x732e736f636b6574, 0x2e62696e61727954, 0x797065203d202261, + 0x7272617962756666, 0x6572223b0a202020, 0x2020202020202020, 0x20746869732e736f, 0x636b65742e6f6e6f, + 0x70656e203d202829, 0x203d3e2074686973, 0x2e68616e64736861, 0x6b6528293b0a2020, 0x2020202020202020, + 0x2020746869732e73, 0x6f636b65742e6f6e, 0x6d65737361676520, 0x3d206576656e7420, 0x3d3e20746869732e, + 0x6f6e4d6573736167, 0x65286576656e742e, 0x64617461293b0a20, 0x2020202020202020, 0x202020746869732e, + 0x736f636b65742e6f, 0x6e636c6f7365203d, 0x206576656e74203d, 0x3e207b0a20202020, 0x2020202020202020, + 0x20202020636f6e73, 0x742064657461696c, 0x203d206576656e74, 0x2e776173436c6561, 0x6e203f2060636f64, + 0x653d247b6576656e, 0x742e636f64657d20, 0x726561736f6e3d24, 0x7b6576656e742e72, 0x6561736f6e7d6020, + 0x3a2022636f6e6e65, 0x6374696f6e206c6f, 0x7374223b0a202020, 0x2020202020202020, 0x2020202020636f6e, + 0x7374206572726f72, 0x203d206e65772045, 0x72726f7228605765, 0x6246726f6e742063, 0x6f6e6e656374696f, + 0x6e20636c6f736564, 0x3a20247b64657461, 0x696c7d60293b0a20, 0x2020202020202020, 0x2020202020202074, + 0x6869732e73657474, 0x6c65526561647952, 0x656a656374656428, 0x6572726f72293b0a, 0x2020202020202020, + 0x2020202020202020, 0x666f722028636f6e, 0x73742070656e6469, 0x6e67206f66207468, 0x69732e70656e6469, + 0x6e6743616c6c732e, 0x76616c7565732829, 0x290a202020202020, 0x2020202020202020, 0x2020202020207065, + 0x6e64696e672e7265, 0x6a65637428657272, 0x6f72293b0a202020, 0x2020202020202020, 0x2020202020746869, + 0x732e70656e64696e, 0x6743616c6c732e63, 0x6c65617228293b0a, 0x2020202020202020, 0x2020202020202020, + 0x746869732e737461, 0x7465203d2022636c, 0x6f736564223b0a20, 0x2020202020202020, 0x2020202020202063, + 0x6f6e736f6c652e6c, 0x6f6728605b576562, 0x46726f6e7420636c, 0x6f73655d20247b64, 0x657461696c7d6029, + 0x3b0a202020202020, 0x2020202020207d3b, 0x0a20202020202020, 0x2020202020746869, 0x732e736f636b6574, + 0x2e6f6e6572726f72, 0x203d202829203d3e, 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, + 0x206572726f72203d, 0x206e657720457272, 0x6f72282257656246, 0x726f6e7420636f6e, 0x6e656374696f6e20, + 0x6661696c65642229, 0x3b0a202020202020, 0x2020202020202020, 0x2020746869732e73, 0x6574746c65526561, + 0x647952656a656374, 0x6564286572726f72, 0x293b0a2020202020, 0x2020202020202020, 0x202020636f6e736f, + 0x6c652e6572726f72, 0x28225b5765624672, 0x6f6e7420736f636b, 0x6574206572726f72, 0x5d222c206572726f, + 0x72293b0a20202020, 0x2020202020202020, 0x7d3b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, + 0x2f205265736f6c76, 0x6573206f6e636520, 0x7468652057656253, 0x6f636b6574206861, 0x6e647368616b6520, + 0x69732061636b6e6f, 0x776c65646765642c, 0x2072656a65637473, 0x2069662074686520, 0x696e697469616c20, + 0x636f6e6e65637469, 0x6f6e0a2020202020, 0x2020202f2f2f2063, 0x6c6f736573206f72, 0x206661696c732062, + 0x65666f7265207468, 0x61742e20446f6573, 0x206e6f7420726566, 0x6c656374206c6174, 0x657220646973636f, + 0x6e6e656374733b20, 0x7365652070656e64, 0x696e6743616c6c73, 0x2f73746174652e0a, 0x2020202020202020, + 0x6765742072656164, 0x792829207b0a2020, 0x2020202020202020, 0x202072657475726e, 0x20746869732e7265, + 0x61647950726f6d69, 0x73653b0a20202020, 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f2052656a6563, + 0x7473207468652069, 0x6e697469616c2d72, 0x656164696e657373, 0x2070726f6d697365, 0x206174206d6f7374, + 0x206f6e63652c2061, 0x6e64206f6e6c7920, 0x7768696c65207374, 0x696c6c2077616974, 0x696e67206f6e2074, + 0x68650a2020202020, 0x2020202f2f2f2068, 0x616e647368616b65, 0x2e2041206661696c, 0x656420636f6e6e65, + 0x6374696f6e207479, 0x706963616c6c7920, 0x666972657320626f, 0x746820606572726f, 0x726020616e642060, + 0x636c6f7365602c20, 0x616e642061206c61, 0x7465720a20202020, 0x202020202f2f2f20, 0x646973636f6e6e65, + 0x6374202861667465, 0x72206c696e6b696e, 0x6729206d75737420, 0x6e6f742072652d73, 0x6574746c6520616e, + 0x20616c7265616479, 0x2d7265736f6c7665, 0x6420607265616479, 0x603b207468697320, 0x67756172640a2020, + 0x2020202020202f2f, 0x2f206d616b657320, 0x6576657279206f6e, 0x65206f662074686f, 0x7365206361736573, + 0x2061206861726d6c, 0x657373206e6f2d6f, 0x7020616674657220, 0x7468652066697273, 0x7420736574746c65, + 0x6d656e742e0a2020, 0x2020202020207365, 0x74746c6552656164, 0x7952656a65637465, 0x64286572726f7229, + 0x207b0a2020202020, 0x2020202020202069, 0x662028746869732e, 0x7265616479536574, 0x746c6564207c7c20, + 0x746869732e737461, 0x7465203d3d3d2022, 0x6c696e6b65642229, 0x2072657475726e3b, 0x0a20202020202020, + 0x2020202020746869, 0x732e726561647953, 0x6574746c6564203d, 0x20747275653b0a20, 0x2020202020202020, + 0x202020746869732e, 0x72656a6563745265, 0x616479286572726f, 0x72293b0a20202020, 0x202020207d0a0a20, + 0x2020202020202068, 0x616e647368616b65, 0x2829207b0a202020, 0x2020202020202020, 0x20746869732e7374, + 0x617465203d202268, 0x616e647368616b69, 0x6e67223b0a202020, 0x2020202020202020, 0x202f2f20416e2065, + 0x6d62656464656420, 0x66726f6e74656e64, 0x2067697665732069, 0x7473207669657720, 0x61207065722d6c61, + 0x756e636820736563, 0x7265742061742074, 0x6865207374617274, 0x206f662074686520, 0x646f63756d656e74, + 0x20284144522d3032, 0x30292e2049742069, 0x730a202020202020, 0x2020202020202f2f, 0x2070726573656e74, + 0x6564206f6e63652c, 0x20686572652c2061, 0x6e642072656d6f76, 0x656420736f207468, 0x6174207468652070, + 0x61676520646f6573, 0x206e6f74206b6565, 0x702072656164696e, 0x672069743b207468, 0x652073797374656d, + 0x2062726f77736572, 0x20686173206e6f6e, 0x652e0a2020202020, 0x2020202020202063, 0x6f6e737420736563, + 0x726574203d207461, 0x6b65566965775365, 0x6372657428293b0a, 0x2020202020202020, 0x20202020636f6e73, + 0x7420686561646572, 0x203d205b436f6d6d, 0x616e642e68616e64, 0x7368616b652c206e, 0x617469766549734c, + 0x6974746c65456e64, 0x69616e2829203f20, 0x30203a20315d3b0a, 0x2020202020202020, 0x20202020666f7220, + 0x286c657420696e64, 0x6578203d20303b20, 0x696e646578203c20, 0x7365637265742e6c, 0x656e6774683b202b, + 0x2b696e6465782920, 0x6865616465722e70, 0x7573682873656372, 0x65742e6368617243, 0x6f6465417428696e, + 0x6465782920262030, 0x783766293b0a2020, 0x2020202020202020, 0x2020746869732e73, 0x6f636b65742e7365, + 0x6e64286e65772055, 0x696e743841727261, 0x7928686561646572, 0x29293b0a20202020, 0x202020207d0a0a20, + 0x202020202020206f, 0x6e4d657373616765, 0x2862756666657229, 0x207b0a2020202020, 0x2020202020202063, + 0x6f6e737420766965, 0x77203d206e657720, 0x4461746156696577, 0x2862756666657229, 0x3b0a202020202020, + 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, 0x20302c20312c2022, 0x6d65737361676520, + 0x6865616465722229, 0x3b0a202020202020, 0x2020202020207377, 0x6974636820287669, 0x65772e6765745569, + 0x6e74382830292920, 0x7b0a202020202020, 0x2020202020206361, 0x736520436f6d6d61, 0x6e642e61636b3a0a, + 0x2020202020202020, 0x2020202020202020, 0x7265717569726542, 0x7974657328766965, 0x772c20302c20322c, + 0x202261636b6e6f77, 0x6c656467656d656e, 0x7422293b0a202020, 0x2020202020202020, 0x2020202020696620, + 0x28746869732e7374, 0x617465203d3d3d20, 0x2268616e64736861, 0x6b696e672229207b, 0x0a20202020202020, + 0x2020202020202020, 0x2020202020746869, 0x732e6c6974746c65, 0x456e6469616e203d, 0x20766965772e6765, + 0x7455696e74382831, 0x29203d3d3d20303b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746869, + 0x732e737461746520, 0x3d20226c696e6b65, 0x64223b0a20202020, 0x2020202020202020, 0x2020202020202020, + 0x746869732e726561, 0x6479536574746c65, 0x64203d2074727565, 0x3b0a202020202020, 0x2020202020202020, + 0x2020202020207468, 0x69732e7265736f6c, 0x7665526561647928, 0x293b0a2020202020, 0x2020202020202020, + 0x2020207d0a202020, 0x2020202020202020, 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, + 0x6361736520436f6d, 0x6d616e642e746578, 0x74436f6d6d616e64, 0x3a0a202020202020, 0x2020202020202020, + 0x2020746869732e68, 0x616e646c65546578, 0x74436f6d6d616e64, 0x2876696577293b0a, 0x2020202020202020, + 0x2020202020202020, 0x627265616b3b0a20, 0x2020202020202020, 0x2020206361736520, 0x436f6d6d616e642e, + 0x63616c6c46756e63, 0x74696f6e3a0a2020, 0x2020202020202020, 0x2020202020207468, 0x69732e63616c6c4a, + 0x7346756e6374696f, 0x6e2876696577293b, 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, + 0x2020202020202020, 0x2020202063617365, 0x20436f6d6d616e64, 0x2e646f6d42617463, 0x683a0a2020202020, + 0x2020202020202020, 0x202020747279207b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, + 0x28766965772e6279, 0x74654c656e677468, 0x203e203130323420, 0x2a20313032342920, 0x7468726f77206e65, + 0x772052616e676545, 0x72726f722822444f, 0x4d20626174636820, 0x6578636565647320, 0x31204d694222293b, + 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, 0x2821746869732e64, 0x6f6d426174636848, + 0x616e646c65722920, 0x7468726f77206e65, 0x77204572726f7228, 0x22444f4d20696e74, 0x6572707265746572, + 0x206973206e6f7420, 0x696e7374616c6c65, 0x6422293b0a202020, 0x2020202020202020, 0x2020202020202020, + 0x20746869732e646f, 0x6d42617463684861, 0x6e646c6572286e65, 0x772055696e743841, 0x7272617928627566, + 0x66657229293b0a20, 0x2020202020202020, 0x202020202020207d, 0x2063617463682028, 0x6572726f7229207b, + 0x0a20202020202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206964203d20, 0x766965772e627974, + 0x654c656e67746820, 0x3e3d2036203f2076, 0x6965772e67657455, 0x696e74333228322c, 0x207472756529203a, + 0x20303b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x746869732e637070, 0x46756e6374696f6e, + 0x28227766446f6d2e, 0x72656a6563746564, 0x22292869642c2053, 0x7472696e67286572, 0x726f722e6d657373, + 0x616765207c7c2065, 0x72726f72292e736c, 0x69636528302c2034, 0x30393629292e6361, 0x746368282829203d, + 0x3e207b7d293b0a20, 0x2020202020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020202020, + 0x20627265616b3b0a, 0x2020202020202020, 0x2020202063617365, 0x20436f6d6d616e64, 0x2e66756e6374696f, + 0x6e52657475726e3a, 0x0a20202020202020, 0x2020202020202020, 0x20746869732e6861, 0x6e646c6546756e63, + 0x74696f6e52657475, 0x726e287669657729, 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, + 0x0a20202020202020, 0x2020202020646566, 0x61756c743a0a2020, 0x2020202020202020, 0x2020202020207468, + 0x726f77206e657720, 0x4572726f72286055, 0x6e737570706f7274, 0x6564205765624672, 0x6f6e7420636f6d6d, + 0x616e6420247b7669, 0x65772e6765745569, 0x6e74382830297d60, 0x293b0a2020202020, 0x202020202020207d, + 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202068616e64, 0x6c6554657874436f, 0x6d6d616e64287669, + 0x657729207b0a2020, 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c20302c20, + 0x342c202274657874, 0x20636f6d6d616e64, 0x2068656164657222, 0x293b0a2020202020, 0x2020202020202063, + 0x6f6e7374206c656e, 0x677468203d207669, 0x65772e6765745569, 0x6e7431362832293b, 0x0a20202020202020, + 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x342c206c656e6774, 0x682c202274657874, + 0x20636f6d6d616e64, 0x207061796c6f6164, 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374207465, + 0x7874203d206e6577, 0x2054657874446563, 0x6f64657228227574, 0x662d3822292e6465, 0x636f6465286e6577, + 0x2055696e74384172, 0x7261792876696577, 0x2e6275666665722c, 0x20766965772e6279, 0x74654f6666736574, + 0x202b20342c206c65, 0x6e67746829293b0a, 0x2020202020202020, 0x2020202073776974, 0x6368202876696577, + 0x2e67657455696e74, 0x3828312929207b0a, 0x2020202020202020, 0x2020202063617365, 0x2054657874436f6d, + 0x6d616e642e646562, 0x75674c6f673a0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e736f6c652e6c, + 0x6f67287465787429, 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, + 0x2020202020636173, 0x652054657874436f, 0x6d6d616e642e696e, 0x6a65637453637269, 0x70743a207b0a2020, + 0x2020202020202020, 0x202020202020636f, 0x6e73742073637269, 0x7074203d20646f63, 0x756d656e742e6372, + 0x65617465456c656d, 0x656e742822736372, 0x69707422293b0a20, 0x2020202020202020, 0x2020202020202073, + 0x63726970742e7465, 0x7874203d20746578, 0x743b0a2020202020, 0x2020202020202020, 0x20202028646f6375, + 0x6d656e742e626f64, 0x79203f3f20646f63, 0x756d656e742e6865, 0x6164203f3f20646f, 0x63756d656e742e64, + 0x6f63756d656e7445, 0x6c656d656e74292e, 0x617070656e644368, 0x696c642873637269, 0x7074293b0a202020, + 0x2020202020202020, 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, 0x7d0a202020202020, + 0x2020202020206465, 0x6661756c743a0a20, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, + 0x204572726f722860, 0x556e737570706f72, 0x7465642057656246, 0x726f6e7420746578, 0x7420636f6d6d616e, + 0x6420247b76696577, 0x2e67657455696e74, 0x382831297d60293b, 0x0a20202020202020, 0x20202020207d0a20, + 0x202020202020207d, 0x0a0a202020202020, 0x202063616c6c4a73, 0x46756e6374696f6e, 0x286d657373616765, + 0x29207b0a20202020, 0x2020202020202020, 0x7265717569726542, 0x79746573286d6573, 0x736167652c20302c, + 0x20382c202266756e, 0x6374696f6e206361, 0x6c6c206865616465, 0x7222293b0a202020, 0x2020202020202020, + 0x20636f6e73742063, 0x6f756e74203d206d, 0x6573736167652e67, 0x657455696e743828, 0x31293b0a20202020, + 0x2020202020202020, 0x636f6e7374206361, 0x6c6c4964203d206d, 0x6573736167652e67, 0x657455696e743136, + 0x28322c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x2020202069662028, + 0x636f756e74203d3d, 0x3d2030290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, + 0x72726f7228224675, 0x6e6374696f6e2063, 0x616c6c2068617320, 0x6e6f2066756e6374, 0x696f6e206e616d65, + 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374207061, 0x796c6f616453697a, 0x65203d206d657373, + 0x6167652e67657455, 0x696e74333228342c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, + 0x2020202020202020, 0x2072657175697265, 0x4279746573286d65, 0x73736167652c2038, 0x2c207061796c6f61, + 0x6453697a652c2022, 0x66756e6374696f6e, 0x2063616c6c207061, 0x796c6f616422293b, 0x0a20202020202020, + 0x2020202020636f6e, 0x7374207061796c6f, 0x6164203d206e6577, 0x2044617461566965, 0x77286d6573736167, + 0x652e627566666572, 0x2c206d6573736167, 0x652e627974654f66, 0x66736574202b2038, 0x2c207061796c6f61, + 0x6453697a65293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74205b6e616d6573, 0x2c206e616d654279, + 0x7465735d203d2074, 0x6869732e6465636f, 0x6465506172616d65, 0x7465727328312c20, 0x7061796c6f616429, + 0x3b0a202020202020, 0x202020202020636f, 0x6e7374205b706172, 0x616d65746572732c, 0x20706172616d6574, + 0x657242797465735d, 0x203d20746869732e, 0x6465636f64655061, 0x72616d6574657273, 0x28636f756e74202d, + 0x20312c207061796c, 0x6f61642c206e616d, 0x654279746573293b, 0x0a20202020202020, 0x2020202020696620, + 0x286e616d65427974, 0x6573202b20706172, 0x616d657465724279, 0x74657320213d3d20, 0x7061796c6f616453, + 0x697a65290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, 0x72726f7228224675, + 0x6e6374696f6e2063, 0x616c6c20636f6e74, 0x61696e7320747261, 0x696c696e67207061, 0x796c6f6164206461, + 0x746122293b0a2020, 0x2020202020202020, 0x20206c6574206578, 0x65637574696f6e3b, 0x0a20202020202020, + 0x2020202020747279, 0x207b0a2020202020, 0x2020202020202020, 0x2020206578656375, 0x74696f6e203d2074, + 0x6869732e65786563, 0x75746546756e6374, 0x696f6e286e616d65, 0x735b305d2c207061, 0x72616d6574657273, + 0x293b0a2020202020, 0x202020202020207d, 0x2063617463682028, 0x6572726f7229207b, 0x0a20202020202020, + 0x2020202020202020, 0x20746869732e7265, 0x706f727443616c6c, 0x4661696c75726528, 0x63616c6c49642c20, + 0x6572726f72293b0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e3b0a, 0x2020202020202020, + 0x202020207d0a2020, 0x2020202020202020, 0x20202f2f2063616c, 0x6c49642030206d65, 0x616e732074686520, + 0x63616c6c65722069, 0x73206e6f74207761, 0x6974696e6720666f, 0x7220616e79746869, 0x6e672c20736f2074, + 0x6865726520697320, 0x6e6f7468696e6720, 0x746f2073656e6420, 0x6261636b2e0a2020, 0x2020202020202020, + 0x2020696620286361, 0x6c6c496420213d3d, 0x2030290a20202020, 0x2020202020202020, 0x2020202050726f6d, + 0x6973652e7265736f, 0x6c76652865786563, 0x7574696f6e292e74, 0x68656e280a202020, 0x2020202020202020, + 0x2020202020202020, 0x2076616c7565203d, 0x3e20746869732e72, 0x65706f727443616c, 0x6c53756363657373, + 0x2863616c6c49642c, 0x2076616c7565292c, 0x0a20202020202020, 0x2020202020202020, 0x2020202020657272, + 0x6f72203d3e207468, 0x69732e73656e6446, 0x756e6374696f6e45, 0x72726f722863616c, 0x6c49642c20657272, + 0x6f7229293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x207265706f727443, 0x616c6c4661696c75, + 0x72652863616c6c49, 0x642c206572726f72, 0x29207b0a20202020, 0x2020202020202020, 0x6966202863616c6c, + 0x4964203d3d3d2030, 0x290a202020202020, 0x2020202020202020, 0x2020636f6e736f6c, 0x652e6572726f7228, + 0x225b57656246726f, 0x6e74204a61766153, 0x6372697074206361, 0x6c6c5d222c206572, 0x726f72293b0a2020, + 0x2020202020202020, 0x2020656c73650a20, 0x2020202020202020, 0x2020202020202074, 0x6869732e73656e64, + 0x46756e6374696f6e, 0x4572726f72286361, 0x6c6c49642c206572, 0x726f72293b0a2020, 0x2020202020207d0a, + 0x0a20202020202020, 0x207265706f727443, 0x616c6c5375636365, 0x73732863616c6c49, 0x642c2076616c7565, + 0x29207b0a20202020, 0x2020202020202020, 0x747279207b0a2020, 0x2020202020202020, 0x2020202020207468, + 0x69732e73656e6446, 0x756e6374696f6e52, 0x657475726e286361, 0x6c6c49642c207661, 0x6c7565293b0a2020, + 0x2020202020202020, 0x20207d2063617463, 0x6820286572726f72, 0x29207b0a20202020, 0x2020202020202020, + 0x2020202074686973, 0x2e73656e6446756e, 0x6374696f6e457272, 0x6f722863616c6c49, 0x642c206572726f72, + 0x293b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202065786563, + 0x75746546756e6374, 0x696f6e286e616d65, 0x2c20617267732920, 0x7b0a202020202020, 0x202020202020636f, + 0x6e73742070617468, 0x203d206e616d652e, 0x73706c697428222e, 0x22293b0a20202020, 0x2020202020202020, + 0x636f6e7374206d65, 0x6d626572203d2070, 0x6174682e706f7028, 0x293b0a2020202020, 0x202020202020206c, + 0x657420636f6e7465, 0x7874203d20676c6f, 0x62616c3b0a202020, 0x2020202020202020, 0x20666f722028636f, + 0x6e737420636f6d70, 0x6f6e656e74206f66, 0x207061746829207b, 0x0a20202020202020, 0x2020202020202020, + 0x2069662028636f6e, 0x74657874203d3d20, 0x6e756c6c207c7c20, 0x2128636f6d706f6e, 0x656e7420696e2063, + 0x6f6e746578742929, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, + 0x72726f7228604a61, 0x7661536372697074, 0x206e616d65737061, 0x63652027247b636f, 0x6d706f6e656e747d, + 0x2720776173206e6f, 0x7420666f756e6420, 0x7768696c65207265, 0x736f6c76696e6720, 0x27247b6e616d657d, + 0x2760293b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x74657874203d2063, 0x6f6e746578745b63, + 0x6f6d706f6e656e74, 0x5d3b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020696620, + 0x28636f6e74657874, 0x203d3d206e756c6c, 0x207c7c2074797065, 0x6f6620636f6e7465, 0x78745b6d656d6265, + 0x725d20213d3d2022, 0x66756e6374696f6e, 0x22290a2020202020, 0x2020202020202020, 0x2020207468726f77, + 0x206e657720457272, 0x6f7228604a617661, 0x5363726970742066, 0x756e6374696f6e20, 0x27247b6e616d657d, + 0x2720776173206e6f, 0x7420666f756e6460, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e20636f, + 0x6e746578745b6d65, 0x6d6265725d282e2e, 0x2e61726773293b0a, 0x2020202020202020, 0x7d0a0a2020202020, + 0x20202068616e646c, 0x6546756e6374696f, 0x6e52657475726e28, 0x6d65737361676529, 0x207b0a2020202020, + 0x2020202020202072, 0x6571756972654279, 0x746573286d657373, 0x6167652c20302c20, 0x382c202266756e63, + 0x74696f6e20726574, 0x75726e2068656164, 0x657222293b0a2020, 0x2020202020202020, 0x2020636f6e737420, + 0x63616c6c4964203d, 0x206d657373616765, 0x2e67657455696e74, 0x313628322c207468, 0x69732e6c6974746c, + 0x65456e6469616e29, 0x3b0a202020202020, 0x202020202020636f, 0x6e73742070656e64, 0x696e67203d207468, + 0x69732e70656e6469, 0x6e6743616c6c732e, 0x6765742863616c6c, 0x4964293b0a202020, 0x2020202020202020, + 0x2069662028217065, 0x6e64696e67290a20, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, + 0x204572726f722860, 0x46756e6374696f6e, 0x2072657475726e20, 0x68617320756e6b6e, 0x6f776e2063616c6c, + 0x20696420247b6361, 0x6c6c49647d60293b, 0x0a20202020202020, 0x2020202020746869, 0x732e70656e64696e, + 0x6743616c6c732e64, 0x656c657465286361, 0x6c6c4964293b0a0a, 0x2020202020202020, 0x202020202f2f2041, + 0x206465636f646520, 0x6661696c75726520, 0x68617320746f2073, 0x6574746c65207468, 0x652070656e64696e, + 0x672063616c6c2072, 0x6174686572207468, 0x616e206573636170, 0x6520696e746f2074, 0x686520736f636b65, + 0x742068616e646c65, 0x722c0a2020202020, 0x202020202020202f, 0x2f206f7468657277, 0x6973652074686520, + 0x63616c6c65722773, 0x2070726f6d697365, 0x20776f756c642068, 0x616e6720666f7265, 0x7665722e0a202020, + 0x2020202020202020, 0x20747279207b0a20, 0x2020202020202020, 0x2020202020202074, 0x6869732e73657474, + 0x6c6552657475726e, 0x2870656e64696e67, 0x2c206d6573736167, 0x65293b0a20202020, 0x2020202020202020, + 0x7d20636174636820, 0x286572726f722920, 0x7b0a202020202020, 0x2020202020202020, 0x202070656e64696e, + 0x672e72656a656374, 0x286572726f72293b, 0x0a20202020202020, 0x20202020207d0a20, 0x202020202020207d, + 0x0a0a202020202020, 0x2020736574746c65, 0x52657475726e2870, 0x656e64696e672c20, 0x6d65737361676529, + 0x207b0a2020202020, 0x2020202020202063, 0x6f6e737420636f75, 0x6e74203d206d6573, 0x736167652e676574, + 0x55696e7438283129, 0x3b0a202020202020, 0x202020202020636f, 0x6e7374207061796c, 0x6f616453697a6520, 0x3d206d6573736167, 0x652e67657455696e, 0x74333228342c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x746573286d657373, 0x6167652c20382c20, - 0x7061796c6f616453, 0x697a652c20226675, 0x6e6374696f6e2063, 0x616c6c207061796c, 0x6f616422293b0a20, - 0x2020202020202020, 0x202020636f6e7374, 0x207061796c6f6164, 0x203d206e65772044, 0x6174615669657728, - 0x6d6573736167652e, 0x6275666665722c20, 0x6d6573736167652e, 0x627974654f666673, 0x6574202b20382c20, - 0x7061796c6f616453, 0x697a65293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x5b6e616d65732c20, - 0x6e616d6542797465, 0x735d203d20746869, 0x732e6465636f6465, 0x506172616d657465, 0x727328312c207061, - 0x796c6f6164293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74205b706172616d, 0x65746572732c2070, - 0x6172616d65746572, 0x42797465735d203d, 0x20746869732e6465, 0x636f646550617261, 0x6d65746572732863, - 0x6f756e74202d2031, 0x2c207061796c6f61, 0x642c206e616d6542, 0x79746573293b0a20, 0x2020202020202020, - 0x202020696620286e, 0x616d654279746573, 0x202b20706172616d, 0x6574657242797465, 0x7320213d3d207061, - 0x796c6f616453697a, 0x65290a2020202020, 0x2020202020202020, 0x2020207468726f77, 0x206e657720457272, - 0x6f72282246756e63, 0x74696f6e2063616c, 0x6c20636f6e746169, 0x6e7320747261696c, 0x696e67207061796c, - 0x6f61642064617461, 0x22293b0a20202020, 0x2020202020202020, 0x6c65742065786563, 0x7574696f6e3b0a20, - 0x2020202020202020, 0x202020747279207b, 0x0a20202020202020, 0x2020202020202020, 0x2065786563757469, - 0x6f6e203d20746869, 0x732e657865637574, 0x6546756e6374696f, 0x6e286e616d65735b, 0x305d2c2070617261, - 0x6d6574657273293b, 0x0a20202020202020, 0x20202020207d2063, 0x6174636820286572, 0x726f7229207b0a20, - 0x2020202020202020, 0x2020202020202074, 0x6869732e7265706f, 0x727443616c6c4661, 0x696c757265286361, - 0x6c6c49642c206572, 0x726f72293b0a2020, 0x2020202020202020, 0x2020202020207265, 0x7475726e3b0a2020, - 0x2020202020202020, 0x20207d0a20202020, 0x2020202020202020, 0x2f2f2063616c6c49, 0x642030206d65616e, - 0x7320746865206361, 0x6c6c657220697320, 0x6e6f742077616974, 0x696e6720666f7220, 0x616e797468696e67, - 0x2c20736f20746865, 0x7265206973206e6f, 0x7468696e6720746f, 0x2073656e64206261, 0x636b2e0a20202020, - 0x2020202020202020, 0x6966202863616c6c, 0x496420213d3d2030, 0x290a202020202020, 0x2020202020202020, - 0x202050726f6d6973, 0x652e7265736f6c76, 0x6528657865637574, 0x696f6e292e746865, 0x6e280a2020202020, - 0x2020202020202020, 0x2020202020202076, 0x616c7565203d3e20, 0x746869732e726570, 0x6f727443616c6c53, - 0x7563636573732863, 0x616c6c49642c2076, 0x616c7565292c0a20, 0x2020202020202020, 0x2020202020202020, - 0x2020206572726f72, 0x203d3e2074686973, 0x2e73656e6446756e, 0x6374696f6e457272, 0x6f722863616c6c49, - 0x642c206572726f72, 0x29293b0a20202020, 0x202020207d0a0a20, 0x2020202020202072, 0x65706f727443616c, - 0x6c4661696c757265, 0x2863616c6c49642c, 0x206572726f722920, 0x7b0a202020202020, 0x2020202020206966, - 0x202863616c6c4964, 0x203d3d3d2030290a, 0x2020202020202020, 0x2020202020202020, 0x636f6e736f6c652e, - 0x6572726f7228225b, 0x57656246726f6e74, 0x204a617661536372, 0x6970742063616c6c, 0x5d222c206572726f, - 0x72293b0a20202020, 0x2020202020202020, 0x656c73650a202020, 0x2020202020202020, 0x2020202020746869, - 0x732e73656e644675, 0x6e6374696f6e4572, 0x726f722863616c6c, 0x49642c206572726f, 0x72293b0a20202020, - 0x202020207d0a0a20, 0x2020202020202072, 0x65706f727443616c, 0x6c53756363657373, 0x2863616c6c49642c, - 0x2076616c75652920, 0x7b0a202020202020, 0x2020202020207472, 0x79207b0a20202020, 0x2020202020202020, - 0x2020202074686973, 0x2e73656e6446756e, 0x6374696f6e526574, 0x75726e2863616c6c, 0x49642c2076616c75, - 0x65293b0a20202020, 0x2020202020202020, 0x7d20636174636820, 0x286572726f722920, 0x7b0a202020202020, - 0x2020202020202020, 0x2020746869732e73, 0x656e6446756e6374, 0x696f6e4572726f72, 0x2863616c6c49642c, - 0x206572726f72293b, 0x0a20202020202020, 0x20202020207d0a20, 0x202020202020207d, 0x0a0a202020202020, - 0x2020657865637574, 0x6546756e6374696f, 0x6e286e616d652c20, 0x6172677329207b0a, 0x2020202020202020, - 0x20202020636f6e73, 0x742070617468203d, 0x206e616d652e7370, 0x6c697428222e2229, 0x3b0a202020202020, - 0x202020202020636f, 0x6e7374206d656d62, 0x6572203d20706174, 0x682e706f7028293b, 0x0a20202020202020, - 0x20202020206c6574, 0x20636f6e74657874, 0x203d20676c6f6261, 0x6c3b0a2020202020, 0x2020202020202066, - 0x6f722028636f6e73, 0x7420636f6d706f6e, 0x656e74206f662070, 0x61746829207b0a20, 0x2020202020202020, - 0x2020202020202069, 0x662028636f6e7465, 0x7874203d3d206e75, 0x6c6c207c7c202128, 0x636f6d706f6e656e, - 0x7420696e20636f6e, 0x7465787429290a20, 0x2020202020202020, 0x2020202020202020, 0x2020207468726f77, - 0x206e657720457272, 0x6f7228604a617661, 0x536372697074206e, 0x616d657370616365, 0x2027247b636f6d70, - 0x6f6e656e747d2720, 0x776173206e6f7420, 0x666f756e64207768, 0x696c65207265736f, 0x6c76696e67202724, - 0x7b6e616d657d2760, 0x293b0a2020202020, 0x2020202020202020, 0x202020636f6e7465, 0x7874203d20636f6e, - 0x746578745b636f6d, 0x706f6e656e745d3b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, - 0x2020206966202863, 0x6f6e74657874203d, 0x3d206e756c6c207c, 0x7c20747970656f66, 0x20636f6e74657874, - 0x5b6d656d6265725d, 0x20213d3d20226675, 0x6e6374696f6e2229, 0x0a20202020202020, 0x2020202020202020, - 0x207468726f77206e, 0x6577204572726f72, 0x28604a6176615363, 0x726970742066756e, 0x6374696f6e202724, - 0x7b6e616d657d2720, 0x776173206e6f7420, 0x666f756e6460293b, 0x0a20202020202020, 0x2020202020726574, - 0x75726e20636f6e74, 0x6578745b6d656d62, 0x65725d282e2e2e61, 0x726773293b0a2020, 0x2020202020207d0a, - 0x0a20202020202020, 0x2068616e646c6546, 0x756e6374696f6e52, 0x657475726e286d65, 0x737361676529207b, - 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x73286d6573736167, 0x652c20302c20382c, - 0x202266756e637469, 0x6f6e207265747572, 0x6e20686561646572, 0x22293b0a20202020, 0x2020202020202020, - 0x636f6e7374206361, 0x6c6c4964203d206d, 0x6573736167652e67, 0x657455696e743136, 0x28322c2074686973, - 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x742070656e64696e, - 0x67203d2074686973, 0x2e70656e64696e67, 0x43616c6c732e6765, 0x742863616c6c4964, 0x293b0a2020202020, - 0x2020202020202069, 0x6620282170656e64, 0x696e67290a202020, 0x2020202020202020, 0x2020202020746872, - 0x6f77206e65772045, 0x72726f7228604675, 0x6e6374696f6e2072, 0x657475726e206861, 0x7320756e6b6e6f77, - 0x6e2063616c6c2069, 0x6420247b63616c6c, 0x49647d60293b0a20, 0x2020202020202020, 0x202020746869732e, - 0x70656e64696e6743, 0x616c6c732e64656c, 0x6574652863616c6c, 0x4964293b0a0a2020, 0x2020202020202020, - 0x20202f2f20412064, 0x65636f6465206661, 0x696c757265206861, 0x7320746f20736574, 0x746c652074686520, - 0x70656e64696e6720, 0x63616c6c20726174, 0x686572207468616e, 0x2065736361706520, 0x696e746f20746865, - 0x20736f636b657420, 0x68616e646c65722c, 0x0a20202020202020, 0x20202020202f2f20, 0x6f74686572776973, - 0x6520746865206361, 0x6c6c657227732070, 0x726f6d6973652077, 0x6f756c642068616e, 0x6720666f72657665, - 0x722e0a2020202020, 0x2020202020202074, 0x7279207b0a202020, 0x2020202020202020, 0x2020202020746869, - 0x732e736574746c65, 0x52657475726e2870, 0x656e64696e672c20, 0x6d65737361676529, 0x3b0a202020202020, - 0x2020202020207d20, 0x6361746368202865, 0x72726f7229207b0a, 0x2020202020202020, 0x2020202020202020, - 0x70656e64696e672e, 0x72656a6563742865, 0x72726f72293b0a20, 0x2020202020202020, 0x2020207d0a202020, - 0x20202020207d0a0a, 0x2020202020202020, 0x736574746c655265, 0x7475726e2870656e, 0x64696e672c206d65, - 0x737361676529207b, 0x0a20202020202020, 0x2020202020636f6e, 0x737420636f756e74, 0x203d206d65737361, - 0x67652e6765745569, 0x6e74382831293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74207061796c6f61, - 0x6453697a65203d20, 0x6d6573736167652e, 0x67657455696e7433, 0x3228342c20746869, 0x732e6c6974746c65, - 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x73286d6573736167, - 0x652c20382c207061, 0x796c6f616453697a, 0x652c202266756e63, 0x74696f6e20726574, 0x75726e207061796c, - 0x6f616422293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x207061796c6f6164, 0x203d206e65772044, - 0x6174615669657728, 0x6d6573736167652e, 0x6275666665722c20, 0x6d6573736167652e, 0x627974654f666673, - 0x6574202b20382c20, 0x7061796c6f616453, 0x697a65293b0a0a20, 0x2020202020202020, 0x2020206966202874, - 0x6869732e63617272, 0x6965734578636570, 0x74696f6e28636f75, 0x6e742c207061796c, 0x6f616453697a652c, - 0x207061796c6f6164, 0x2929207b0a202020, 0x2020202020202020, 0x202020202070656e, 0x64696e672e72656a, - 0x656374286e657720, 0x4572726f72287468, 0x69732e73696e676c, 0x6556616c75652870, 0x61796c6f61642c20, - 0x7061796c6f616453, 0x697a652c20224578, 0x63657074696f6e22, 0x2929293b0a202020, 0x2020202020202020, - 0x2020202020726574, 0x75726e3b0a202020, 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202069, - 0x662028636f756e74, 0x203d3d3d20302920, 0x7b0a202020202020, 0x2020202020202020, 0x2020696620287061, - 0x796c6f616453697a, 0x6520213d3d203029, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746872, - 0x6f77206e65772045, 0x72726f722822566f, 0x6964207265747572, 0x6e20636f6e746169, 0x6e73207061796c6f, - 0x6164206461746122, 0x293b0a2020202020, 0x2020202020202020, 0x20202070656e6469, 0x6e672e7265736f6c, - 0x766528756e646566, 0x696e6564293b0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e3b0a20, - 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2069662028636f75, 0x6e7420213d3d2031, - 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e6577204572726f, 0x72282246756e6374, - 0x696f6e2072657475, 0x726e206d75737420, 0x636f6e7461696e20, 0x7a65726f206f7220, 0x6f6e652076616c75, - 0x6522293b0a202020, 0x2020202020202020, 0x2070656e64696e67, 0x2e7265736f6c7665, 0x28746869732e7369, - 0x6e676c6556616c75, 0x65287061796c6f61, 0x642c207061796c6f, 0x616453697a652c20, 0x2246756e6374696f, - 0x6e2229293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x2063617272696573, 0x457863657074696f, - 0x6e28636f756e742c, 0x207061796c6f6164, 0x53697a652c207061, 0x796c6f616429207b, 0x0a20202020202020, - 0x2020202020696620, 0x28636f756e742021, 0x3d3d2031207c7c20, 0x7061796c6f616453, 0x697a65203d3d3d20, - 0x3029207265747572, 0x6e2066616c73653b, 0x0a20202020202020, 0x2020202020726574, 0x75726e207061796c, - 0x6f61642e67657455, 0x696e743828302920, 0x3d3d3d2050617261, 0x6d547970652e6578, 0x63657074696f6e3b, - 0x0a20202020202020, 0x207d0a0a20202020, 0x202020202f2f2f20, 0x4465636f64657320, 0x65786163746c7920, - 0x6f6e652076616c75, 0x6520616e64207265, 0x6a6563747320616e, 0x7920627974657320, 0x6c656674206f7665, - 0x7220616674657220, 0x69742e0a20202020, 0x2020202073696e67, 0x6c6556616c756528, 0x7061796c6f61642c, - 0x207061796c6f6164, 0x53697a652c207768, 0x617429207b0a2020, 0x2020202020202020, 0x2020636f6e737420, - 0x5b76616c7565732c, 0x20636f6e73756d65, 0x645d203d20746869, 0x732e6465636f6465, 0x506172616d657465, - 0x727328312c207061, 0x796c6f6164293b0a, 0x2020202020202020, 0x2020202069662028, 0x636f6e73756d6564, - 0x20213d3d20706179, 0x6c6f616453697a65, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, - 0x6e6577204572726f, 0x722860247b776861, 0x747d207265747572, 0x6e20636f6e746169, 0x6e7320747261696c, - 0x696e67207061796c, 0x6f61642064617461, 0x60293b0a20202020, 0x2020202020202020, 0x72657475726e2076, - 0x616c7565735b305d, 0x3b0a202020202020, 0x20207d0a0a202020, 0x2020202020646563, 0x6f6465506172616d, - 0x657465727328636f, 0x756e742c20766965, 0x772c206f66667365, 0x74203d203029207b, 0x0a20202020202020, - 0x2020202020636f6e, 0x73742076616c7565, 0x73203d205b5d3b0a, 0x2020202020202020, 0x202020206c657420, - 0x637572736f72203d, 0x206f66667365743b, 0x0a20202020202020, 0x2020202020666f72, 0x20286c657420696e, - 0x646578203d20303b, 0x20696e646578203c, 0x20636f756e743b20, 0x2b2b696e64657829, 0x207b0a2020202020, - 0x2020202020202020, 0x2020207265717569, 0x7265427974657328, 0x766965772c206375, 0x72736f722c20312c, - 0x2022706172616d65, 0x7465722074797065, 0x22293b0a20202020, 0x2020202020202020, 0x20202020636f6e73, - 0x74207b76616c7565, 0x2c2062797465737d, 0x203d20746869732e, 0x6465636f64655661, 0x6c75652876696577, - 0x2e67657455696e74, 0x3828637572736f72, 0x292c20766965772c, 0x20637572736f7229, 0x3b0a202020202020, - 0x2020202020202020, 0x202076616c756573, 0x2e70757368287661, 0x6c7565293b0a2020, 0x2020202020202020, - 0x2020202020206375, 0x72736f72202b3d20, 0x62797465733b0a20, 0x2020202020202020, 0x2020207d0a202020, - 0x2020202020202020, 0x2072657475726e20, 0x5b76616c7565732c, 0x20637572736f7220, 0x2d206f6666736574, - 0x5d3b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f204465636f6465, 0x7320746865207369, - 0x6e676c652076616c, 0x7565207374617274, 0x696e672061742027, 0x6f6666736574272c, 0x2072657475726e69, - 0x6e6720697420616c, 0x6f6e677369646520, 0x7468652062797465, 0x20636f756e742069, 0x7420636f6e73756d, - 0x65642e0a20202020, 0x202020206465636f, 0x646556616c756528, 0x747970652c207669, 0x65772c206f666673, - 0x657429207b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x6465636f64657220, 0x3d2076616c756544, - 0x65636f646572732e, 0x6765742874797065, 0x293b0a2020202020, 0x2020202020202069, 0x662028216465636f, - 0x646572290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772054, 0x7970654572726f72, - 0x2860556e73757070, 0x6f72746564207061, 0x72616d6574657220, 0x7479706520247b74, 0x7970657d60293b0a, - 0x2020202020202020, 0x2020202072657475, 0x726e206465636f64, 0x657228746869732c, 0x20747970652c2076, - 0x6965772c206f6666, 0x736574293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x206465636f64654e, - 0x756d626572287669, 0x65772c206f666673, 0x657429207b0a2020, 0x2020202020202020, 0x2020726571756972, - 0x6542797465732876, 0x6965772c206f6666, 0x7365742c20392c20, 0x226e756d62657222, 0x293b0a2020202020, - 0x2020202020202072, 0x657475726e207b76, 0x616c75653a207669, 0x65772e676574466c, 0x6f61743634286f66, - 0x66736574202b2031, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e292c206279, 0x7465733a20397d3b, - 0x0a20202020202020, 0x207d0a0a20202020, 0x202020206465636f, 0x6465537472696e67, 0x28747970652c2076, - 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2073697a65427974, - 0x6573203d20747970, 0x65203d3d3d205061, 0x72616d547970652e, 0x736d616c6c537472, 0x696e67203f203120, - 0x3a20323b0a202020, 0x2020202020202020, 0x2072657175697265, 0x4279746573287669, 0x65772c206f666673, - 0x6574202b20312c20, 0x73697a6542797465, 0x732c202273747269, 0x6e67206c656e6774, 0x6822293b0a202020, - 0x2020202020202020, 0x20636f6e7374206c, 0x656e677468203d20, 0x73697a6542797465, 0x73203d3d3d203120, - 0x3f20766965772e67, 0x657455696e743828, 0x6f6666736574202b, 0x203129203a207669, 0x65772e6765745569, - 0x6e743136286f6666, 0x736574202b20312c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, - 0x2020202020202020, 0x20636f6e73742070, 0x61796c6f6164203d, 0x206f666673657420, 0x2b2031202b207369, - 0x7a6542797465733b, 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, - 0x7061796c6f61642c, 0x206c656e6774682c, 0x2022737472696e67, 0x207061796c6f6164, 0x22293b0a20202020, - 0x2020202020202020, 0x636f6e7374206279, 0x746573203d206e65, 0x772055696e743841, 0x7272617928766965, - 0x772e627566666572, 0x2c20766965772e62, 0x7974654f66667365, 0x74202b207061796c, 0x6f61642c206c656e, - 0x677468293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x207b76616c75653a, 0x206e657720546578, - 0x744465636f646572, 0x28227574662d3822, 0x292e6465636f6465, 0x286279746573292c, 0x2062797465733a20, - 0x31202b2073697a65, 0x4279746573202b20, 0x6c656e6774687d3b, 0x0a20202020202020, 0x207d0a0a20202020, - 0x202020206465636f, 0x64655475706c6528, 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, - 0x2020202072657175, 0x6972654279746573, 0x28766965772c206f, 0x66667365742c2032, 0x2c20227475706c65, - 0x2068656164657222, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e7374205b7475, 0x706c652c20636f6e, - 0x73756d65645d203d, 0x20746869732e6465, 0x636f646550617261, 0x6d65746572732876, 0x6965772e67657455, - 0x696e7438286f6666, 0x736574202b203129, 0x2c20766965772c20, 0x6f6666736574202b, 0x2032293b0a202020, - 0x2020202020202020, 0x2072657475726e20, 0x7b76616c75653a20, 0x7475706c652c2062, 0x797465733a203220, - 0x2b20636f6e73756d, 0x65647d3b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f205265736f, - 0x6c76657320746865, 0x20656c656d656e74, 0x207370656320616e, 0x64206c656e677468, 0x2070726566697820, - 0x666f722061207479, 0x7065642061727261, 0x792c2077686f7365, 0x2068656164657220, 0x6973203220627974, - 0x657320696e207468, 0x650a202020202020, 0x20202f2f2f20636f, 0x6d7061637420736d, 0x616c6c4172726179, - 0x553820666f726d20, 0x616e642035206279, 0x746573206f746865, 0x72776973652e0a20, 0x2020202020202072, - 0x6561645479706564, 0x4172726179486561, 0x6465722874797065, 0x2c20766965772c20, 0x6f66667365742920, - 0x7b0a202020202020, 0x202020202020636f, 0x6e737420736d616c, 0x6c203d2074797065, 0x203d3d3d20506172, - 0x616d547970652e73, 0x6d616c6c41727261, 0x7955383b0a202020, 0x2020202020202020, 0x20636f6e73742073, - 0x706563203d20736d, 0x616c6c203f207b2e, 0x2e2e617272617943, 0x6f6465732e676574, 0x28506172616d5479, - 0x70652e6172726179, 0x5538292c20636f6e, 0x7374727563746f72, 0x3a2055696e743841, 0x727261797d203a20, - 0x6172726179436f64, 0x65732e6765742874, 0x797065293b0a2020, 0x2020202020202020, 0x2020696620282173, - 0x706563290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772054, 0x7970654572726f72, - 0x2860556e73757070, 0x6f72746564207479, 0x7065642061727261, 0x7920636f64652024, 0x7b747970657d6029, - 0x3b0a202020202020, 0x202020202020636f, 0x6e73742068656164, 0x657253697a65203d, 0x20736d616c6c203f, - 0x2032203a20353b0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, 0x28766965772c206f, - 0x66667365742c2068, 0x656164657253697a, 0x652c202261727261, 0x7920686561646572, 0x22293b0a20202020, - 0x2020202020202020, 0x636f6e7374206c65, 0x6e677468203d2073, 0x6d616c6c203f2076, 0x6965772e67657455, - 0x696e7438286f6666, 0x736574202b203129, 0x203a20766965772e, 0x67657455696e7433, 0x32286f6666736574, - 0x202b20312c207468, 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, 0x2020202020207265, - 0x7475726e207b7370, 0x65632c2068656164, 0x657253697a652c20, 0x6c656e6774687d3b, 0x0a20202020202020, - 0x207d0a0a20202020, 0x202020206465636f, 0x6465547970656441, 0x7272617928747970, 0x652c20766965772c, - 0x206f666673657429, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e7374207b7370, 0x65632c2068656164, - 0x657253697a652c20, 0x6c656e6774687d20, 0x3d20746869732e72, 0x6561645479706564, 0x4172726179486561, - 0x6465722874797065, 0x2c20766965772c20, 0x6f6666736574293b, 0x0a20202020202020, 0x2020202020636f6e, - 0x737420627974654c, 0x656e677468203d20, 0x6c656e677468202a, 0x20737065632e6279, 0x7465733b0a202020, - 0x2020202020202020, 0x2069662028214e75, 0x6d6265722e697353, 0x616665496e746567, 0x657228627974654c, - 0x656e67746829290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x772052616e676545, - 0x72726f7228225479, 0x7065642061727261, 0x79206c656e677468, 0x20697320746f6f20, 0x6c6172676522293b, - 0x0a20202020202020, 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x6f6666736574202b, - 0x2068656164657253, 0x697a652c20627974, 0x654c656e6774682c, 0x2022617272617920, 0x7061796c6f616422, - 0x293b0a0a20202020, 0x2020202020202020, 0x636f6e7374207265, 0x73756c74203d206e, 0x657720737065632e, - 0x636f6e7374727563, 0x746f72286c656e67, 0x7468293b0a202020, 0x2020202020202020, 0x20636f6e73742070, - 0x61796c6f6164203d, 0x206f666673657420, 0x2b20686561646572, 0x53697a653b0a2020, 0x2020202020202020, - 0x2020666f7220286c, 0x657420696e646578, 0x203d20303b20696e, 0x646578203c206c65, 0x6e6774683b202b2b, - 0x696e646578290a20, 0x2020202020202020, 0x2020202020202072, 0x6573756c745b696e, 0x6465785d203d2076, - 0x6965775b73706563, 0x2e6765747465725d, 0x287061796c6f6164, 0x202b20696e646578, 0x202a20737065632e, - 0x62797465732c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, 0x2020202020202072, - 0x657475726e207b76, 0x616c75653a207265, 0x73756c742c206279, 0x7465733a20686561, 0x64657253697a6520, - 0x2b20627974654c65, 0x6e6774687d3b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x202063707046756e, - 0x6374696f6e286e61, 0x6d6529207b0a2020, 0x2020202020202020, 0x202072657475726e, 0x20282e2e2e617267, - 0x7329203d3e207468, 0x69732e63616c6c43, 0x707046756e637469, 0x6f6e286e616d652c, 0x2061726773293b0a, - 0x2020202020202020, 0x7d0a0a2020202020, 0x20202063616c6c43, 0x707046756e637469, 0x6f6e286e616d652c, - 0x206172677329207b, 0x0a20202020202020, 0x2020202020726574, 0x75726e206e657720, 0x50726f6d69736528, - 0x287265736f6c7665, 0x2c2072656a656374, 0x29203d3e207b0a20, 0x2020202020202020, 0x202020202020206c, - 0x65742063616c6c49, 0x64203d20303b0a20, 0x2020202020202020, 0x2020202020202074, 0x7279207b0a202020, - 0x2020202020202020, 0x2020202020202020, 0x2069662028746869, 0x732e737461746520, 0x213d3d20226c696e, - 0x6b656422290a2020, 0x2020202020202020, 0x2020202020202020, 0x2020202020207468, 0x726f77206e657720, - 0x4572726f72282257, 0x656246726f6e7420, 0x6272696467652069, 0x73206e6f7420636f, 0x6e6e656374656422, - 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202063, 0x6f6e73742076616c, 0x756573203d205b6e, - 0x616d652c202e2e2e, 0x617267735d3b0a20, 0x2020202020202020, 0x2020202020202020, 0x2020206966202876, - 0x616c7565732e6c65, 0x6e677468203e2032, 0x3535290a20202020, 0x2020202020202020, 0x2020202020202020, - 0x202020207468726f, 0x77206e6577205261, 0x6e67654572726f72, 0x2822412066756e63, 0x74696f6e2063616c, - 0x6c2063616e6e6f74, 0x20636f6e7461696e, 0x206d6f7265207468, 0x616e203235352074, 0x6f702d6c6576656c, - 0x2076616c75657322, 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420706179, - 0x6c6f616453697a65, 0x203d2076616c7565, 0x732e726564756365, 0x282873697a652c20, 0x76616c756529203d, - 0x3e2073697a65202b, 0x20746869732e7061, 0x72616d6574657253, 0x697a652876616c75, 0x65292c2030293b0a, - 0x2020202020202020, 0x2020202020202020, 0x20202020636f6e73, 0x7420627566666572, 0x203d206e65772041, - 0x7272617942756666, 0x65722838202b2070, 0x61796c6f61645369, 0x7a65293b0a202020, 0x2020202020202020, - 0x2020202020202020, 0x20636f6e73742076, 0x696577203d206e65, 0x7720446174615669, 0x6577286275666665, - 0x72293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x63616c6c4964203d, 0x20746869732e616c, - 0x6c6f636174654361, 0x6c6c496428293b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202076696577, - 0x2e73657455696e74, 0x3828302c20436f6d, 0x6d616e642e63616c, 0x6c46756e6374696f, 0x6e293b0a20202020, - 0x2020202020202020, 0x2020202020202020, 0x766965772e736574, 0x55696e743828312c, 0x2076616c7565732e, - 0x6c656e677468293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020766965, 0x772e73657455696e, - 0x74313628322c2063, 0x616c6c49642c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, - 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e74333228342c, 0x207061796c6f6164, - 0x53697a652c207468, 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, 0x2020202020202020, - 0x2020202020206c65, 0x7420637572736f72, 0x203d20383b0a2020, 0x2020202020202020, 0x2020202020202020, - 0x2020666f72202863, 0x6f6e73742076616c, 0x7565206f66207661, 0x6c756573290a2020, 0x2020202020202020, - 0x2020202020202020, 0x2020202020206375, 0x72736f72202b3d20, 0x746869732e656e63, 0x6f6465506172616d, - 0x657465722876616c, 0x75652c2076696577, 0x2c20637572736f72, 0x293b0a2020202020, 0x2020202020202020, - 0x2020202020202074, 0x6869732e70656e64, 0x696e6743616c6c73, 0x2e7365742863616c, 0x6c49642c207b7265, - 0x736f6c76652c2072, 0x656a6563747d293b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746869, - 0x732e736f636b6574, 0x2e73656e64286275, 0x66666572293b0a20, 0x2020202020202020, 0x202020202020207d, - 0x2063617463682028, 0x6572726f7229207b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, - 0x2863616c6c496420, 0x213d3d2030290a20, 0x2020202020202020, 0x2020202020202020, 0x2020202020202074, - 0x6869732e70656e64, 0x696e6743616c6c73, 0x2e64656c65746528, 0x63616c6c4964293b, 0x0a20202020202020, - 0x2020202020202020, 0x202020202072656a, 0x656374286572726f, 0x72293b0a20202020, 0x2020202020202020, - 0x202020207d0a2020, 0x2020202020202020, 0x20207d293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, - 0x20616c6c6f636174, 0x6543616c6c496428, 0x29207b0a20202020, 0x2020202020202020, 0x666f7220286c6574, - 0x20617474656d7074, 0x73203d20303b2061, 0x7474656d70747320, 0x3c20307866666666, 0x3b202b2b61747465, - 0x6d70747329207b0a, 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206361, 0x6e64696461746520, - 0x3d20746869732e6e, 0x65787443616c6c49, 0x643b0a2020202020, 0x2020202020202020, 0x202020746869732e, - 0x6e65787443616c6c, 0x4964203d20746869, 0x732e6e6578744361, 0x6c6c4964203d3d3d, 0x2030786666666620, - 0x3f2031203a207468, 0x69732e6e65787443, 0x616c6c4964202b20, 0x313b0a2020202020, 0x2020202020202020, - 0x2020206966202821, 0x746869732e70656e, 0x64696e6743616c6c, 0x732e686173286361, 0x6e64696461746529, - 0x290a202020202020, 0x2020202020202020, 0x2020202020207265, 0x7475726e2063616e, 0x6469646174653b0a, - 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x20207468726f7720, 0x6e6577204572726f, - 0x722822546f6f206d, 0x616e79206f757473, 0x74616e64696e6720, 0x57656246726f6e74, 0x2063616c6c732229, - 0x3b0a202020202020, 0x20207d0a0a202020, 0x202020202073656e, 0x6446756e6374696f, 0x6e52657475726e28, - 0x63616c6c49642c20, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742076616c7565, - 0x73203d2076616c75, 0x65203d3d3d20756e, 0x646566696e656420, 0x3f205b5d203a205b, 0x76616c75655d3b0a, - 0x2020202020202020, 0x20202020636f6e73, 0x74207061796c6f61, 0x6453697a65203d20, 0x76616c7565732e72, - 0x6564756365282873, 0x697a652c20697465, 0x6d29203d3e207369, 0x7a65202b20746869, 0x732e706172616d65, - 0x74657253697a6528, 0x6974656d292c2030, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420627566, - 0x666572203d206e65, 0x7720417272617942, 0x7566666572283820, 0x2b207061796c6f61, 0x6453697a65293b0a, - 0x2020202020202020, 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, 0x6156696577286275, - 0x66666572293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, 0x28302c20436f6d6d, - 0x616e642e66756e63, 0x74696f6e52657475, 0x726e293b0a202020, 0x2020202020202020, 0x20766965772e7365, - 0x7455696e74382831, 0x2c2076616c756573, 0x2e6c656e67746829, 0x3b0a202020202020, 0x2020202020207669, - 0x65772e7365745569, 0x6e74313628322c20, 0x63616c6c49642c20, 0x746869732e6c6974, 0x746c65456e646961, - 0x6e293b0a20202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7433322834, 0x2c207061796c6f61, - 0x6453697a652c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, 0x202020202020206c, - 0x657420637572736f, 0x72203d20383b0a20, 0x2020202020202020, 0x202020666f722028, 0x636f6e7374206974, - 0x656d206f66207661, 0x6c756573290a2020, 0x2020202020202020, 0x2020202020206375, 0x72736f72202b3d20, - 0x746869732e656e63, 0x6f6465506172616d, 0x6574657228697465, 0x6d2c20766965772c, 0x20637572736f7229, - 0x3b0a202020202020, 0x2020202020207468, 0x69732e736f636b65, 0x742e73656e642862, 0x7566666572293b0a, - 0x2020202020202020, 0x7d0a0a2020202020, 0x20202073656e6446, 0x756e6374696f6e45, 0x72726f722863616c, - 0x6c49642c20657272, 0x6f7229207b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x6d65737361676520, - 0x3d206572726f7220, 0x696e7374616e6365, 0x6f66204572726f72, 0x203f206572726f72, 0x2e6d657373616765, - 0x203a20537472696e, 0x67286572726f7229, 0x3b0a202020202020, 0x202020202020636f, 0x6e73742062797465, - 0x73203d206e657720, 0x54657874456e636f, 0x64657228292e656e, 0x636f6465286d6573, 0x73616765293b0a20, - 0x2020202020202020, 0x2020206966202862, 0x797465732e6c656e, 0x677468203e3d2036, 0x35353336290a2020, - 0x2020202020202020, 0x2020202020207265, 0x7475726e20746869, 0x732e73656e644675, 0x6e6374696f6e4572, - 0x726f722863616c6c, 0x49642c20224a6176, 0x6153637269707420, 0x657863657074696f, 0x6e206d6573736167, - 0x6520657863656564, 0x7320363535333520, 0x5554462d38206279, 0x74657322293b0a20, 0x2020202020202020, - 0x202020636f6e7374, 0x2062756666657220, 0x3d206e6577204172, 0x7261794275666665, 0x72283131202b2062, - 0x797465732e6c656e, 0x677468293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x76696577203d206e, - 0x6577204461746156, 0x6965772862756666, 0x6572293b0a202020, 0x2020202020202020, 0x20766965772e7365, - 0x7455696e74382830, 0x2c20436f6d6d616e, 0x642e66756e637469, 0x6f6e52657475726e, 0x293b0a2020202020, - 0x2020202020202076, 0x6965772e73657455, 0x696e743828312c20, 0x31293b0a20202020, 0x2020202020202020, - 0x766965772e736574, 0x55696e7431362832, 0x2c2063616c6c4964, 0x2c20746869732e6c, 0x6974746c65456e64, - 0x69616e293b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743332, 0x28342c2033202b20, - 0x62797465732e6c65, 0x6e6774682c207468, 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, - 0x2020202020207669, 0x65772e7365745569, 0x6e743828382c2050, 0x6172616d54797065, 0x2e65786365707469, - 0x6f6e293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74313628, 0x392c206279746573, - 0x2e6c656e6774682c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, - 0x206e65772055696e, 0x7438417272617928, 0x6275666665722c20, 0x3131292e73657428, 0x6279746573293b0a, - 0x2020202020202020, 0x2020202074686973, 0x2e736f636b65742e, 0x73656e6428627566, 0x666572293b0a2020, - 0x2020202020207d0a, 0x0a20202020202020, 0x20706172616d6574, 0x657253697a652876, 0x616c756529207b0a, - 0x2020202020202020, 0x2020202073776974, 0x6368202874797065, 0x6f662076616c7565, 0x29207b0a20202020, - 0x2020202020202020, 0x636173652022626f, 0x6f6c65616e223a0a, 0x2020202020202020, 0x2020202020202020, - 0x72657475726e2031, 0x3b0a202020202020, 0x2020202020206361, 0x736520226e756d62, 0x6572223a0a202020, - 0x2020202020202020, 0x2020202020726574, 0x75726e20393b0a20, 0x2020202020202020, 0x2020206361736520, - 0x22737472696e6722, 0x3a0a202020202020, 0x2020202020202020, 0x202072657475726e, 0x20746869732e7374, - 0x72696e6750617261, 0x6d6574657253697a, 0x652876616c756529, 0x3b0a202020202020, 0x2020202020206361, - 0x736520226f626a65, 0x6374223a0a202020, 0x2020202020202020, 0x2020202020726574, 0x75726e2074686973, - 0x2e6f626a65637450, 0x6172616d65746572, 0x53697a652876616c, 0x7565293b0a202020, 0x2020202020202020, - 0x207d0a2020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, - 0x70706f7274656420, 0x57656246726f6e74, 0x20706172616d6574, 0x6572207479706520, 0x27247b747970656f, - 0x662076616c75657d, 0x2760293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x737472696e675061, - 0x72616d6574657253, 0x697a652876616c75, 0x6529207b0a202020, 0x2020202020202020, 0x20636f6e7374206c, - 0x656e677468203d20, 0x6e65772054657874, 0x456e636f64657228, 0x292e656e636f6465, 0x2876616c7565292e, - 0x6c656e6774683b0a, 0x2020202020202020, 0x2020202069662028, 0x6c656e677468203e, 0x3d20363535333629, - 0x0a20202020202020, 0x2020202020202020, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72282257, - 0x656246726f6e7420, 0x737472696e677320, 0x63616e6e6f742065, 0x7863656564203635, 0x353335205554462d, - 0x3820627974657322, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e206c65, 0x6e677468202b2028, - 0x6c656e677468203c, 0x20323536203f2032, 0x203a2033293b0a20, 0x202020202020207d, 0x0a0a202020202020, - 0x20206f626a656374, 0x506172616d657465, 0x7253697a65287661, 0x6c756529207b0a20, 0x2020202020202020, - 0x2020206966202841, 0x727261792e697341, 0x727261792876616c, 0x756529290a202020, 0x2020202020202020, - 0x2020202020726574, 0x75726e2074686973, 0x2e7475706c655061, 0x72616d6574657253, 0x697a652876616c75, - 0x65293b0a20202020, 0x2020202020202020, 0x6966202869735479, 0x7065644172726179, 0x2876616c75652929, - 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e747970, 0x6564417272617950, - 0x6172616d65746572, 0x53697a652876616c, 0x7565293b0a202020, 0x2020202020202020, 0x207468726f77206e, - 0x6577205479706545, 0x72726f722860556e, 0x737570706f727465, 0x642057656246726f, 0x6e7420706172616d, - 0x6574657220747970, 0x652027247b747970, 0x656f662076616c75, 0x657d2760293b0a20, 0x202020202020207d, - 0x0a0a202020202020, 0x20207475706c6550, 0x6172616d65746572, 0x53697a652876616c, 0x756529207b0a2020, - 0x2020202020202020, 0x2020696620287661, 0x6c75652e6c656e67, 0x7468203e20323535, 0x290a202020202020, - 0x2020202020202020, 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722822, 0x57656246726f6e74, - 0x207475706c657320, 0x63616e6e6f742065, 0x7863656564203235, 0x3520656c656d656e, 0x747322293b0a2020, - 0x2020202020202020, 0x202072657475726e, 0x2032202b2076616c, 0x75652e7265647563, 0x65282873697a652c, - 0x20656c656d656e74, 0x29203d3e2073697a, 0x65202b2074686973, 0x2e706172616d6574, 0x657253697a652865, - 0x6c656d656e74292c, 0x2030293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x7479706564417272, - 0x6179506172616d65, 0x74657253697a6528, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020696620, - 0x2821617272617954, 0x797065732e686173, 0x2876616c75652e63, 0x6f6e737472756374, 0x6f7229290a202020, - 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772054, 0x7970654572726f72, 0x2860556e73757070, - 0x6f72746564207479, 0x7065642061727261, 0x7920247b76616c75, 0x652e636f6e737472, 0x7563746f722e6e61, - 0x6d657d60293b0a20, 0x2020202020202020, 0x2020206966202876, 0x616c75652e6c656e, 0x677468203e203078, - 0x6666666666666666, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772052616e67, - 0x654572726f722822, 0x5479706564206172, 0x726179732063616e, 0x6e6f742065786365, 0x6564203432393439, - 0x363732393520656c, 0x656d656e74732229, 0x3b0a202020202020, 0x2020202020207265, 0x7475726e20747970, - 0x6564417272617948, 0x656164657253697a, 0x652876616c756529, 0x202b2076616c7565, 0x2e627974654c656e, - 0x6774683b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x656e636f64655061, 0x72616d6574657228, - 0x76616c75652c2076, 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, 0x2020207377697463, - 0x682028747970656f, 0x662076616c756529, 0x207b0a2020202020, 0x2020202020202063, 0x6173652022626f6f, - 0x6c65616e223a0a20, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e7438286f6666, - 0x7365742c2076616c, 0x7565203f20506172, 0x616d547970652e62, 0x6f6f6c65616e5472, 0x7565203a20506172, - 0x616d547970652e62, 0x6f6f6c65616e4661, 0x6c7365293b0a2020, 0x2020202020202020, 0x2020202020207265, - 0x7475726e20313b0a, 0x2020202020202020, 0x2020202063617365, 0x20226e756d626572, 0x223a0a2020202020, - 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, 0x286f66667365742c, 0x20506172616d5479, - 0x70652e6e756d6265, 0x72293b0a20202020, 0x2020202020202020, 0x2020202076696577, 0x2e736574466c6f61, - 0x743634286f666673, 0x6574202b20312c20, 0x76616c75652c2074, 0x6869732e6c697474, 0x6c65456e6469616e, - 0x293b0a2020202020, 0x2020202020202020, 0x2020207265747572, 0x6e20393b0a202020, 0x2020202020202020, - 0x2063617365202273, 0x7472696e67223a0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, - 0x6869732e656e636f, 0x6465537472696e67, 0x2876616c75652c20, 0x766965772c206f66, 0x66736574293b0a20, - 0x2020202020202020, 0x2020206361736520, 0x226f626a65637422, 0x3a0a202020202020, 0x2020202020202020, - 0x202072657475726e, 0x20746869732e656e, 0x636f64654f626a65, 0x63742876616c7565, 0x2c20766965772c20, - 0x6f6666736574293b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020207468726f77, - 0x206e657720547970, 0x654572726f722860, 0x556e737570706f72, 0x7465642057656246, 0x726f6e7420706172, - 0x616d657465722074, 0x7970652027247b74, 0x7970656f66207661, 0x6c75657d2760293b, 0x0a20202020202020, - 0x207d0a0a20202020, 0x20202020656e636f, 0x6465537472696e67, 0x2876616c75652c20, 0x766965772c206f66, - 0x6673657429207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x7420627974657320, 0x3d206e6577205465, - 0x7874456e636f6465, 0x7228292e656e636f, 0x64652876616c7565, 0x293b0a2020202020, 0x2020202020202063, - 0x6f6e737420736d61, 0x6c6c203d20627974, 0x65732e6c656e6774, 0x68203c203235363b, 0x0a20202020202020, - 0x2020202020766965, 0x772e73657455696e, 0x7438286f66667365, 0x742c20736d616c6c, 0x203f20506172616d, - 0x547970652e736d61, 0x6c6c537472696e67, 0x203a20506172616d, 0x547970652e737472, 0x696e67293b0a2020, - 0x2020202020202020, 0x202069662028736d, 0x616c6c290a202020, 0x2020202020202020, 0x2020202020766965, - 0x772e73657455696e, 0x7438286f66667365, 0x74202b20312c2062, 0x797465732e6c656e, 0x677468293b0a2020, - 0x2020202020202020, 0x2020656c73650a20, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, - 0x696e743136286f66, 0x66736574202b2031, 0x2c2062797465732e, 0x6c656e6774682c20, 0x746869732e6c6974, - 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x636f6e7374206865, 0x6164657253697a65, - 0x203d20736d616c6c, 0x203f2032203a2033, 0x3b0a202020202020, 0x2020202020206e65, 0x772055696e743841, - 0x7272617928766965, 0x772e627566666572, 0x2c20766965772e62, 0x7974654f66667365, 0x74202b206f666673, - 0x6574202b20686561, 0x64657253697a652c, 0x2062797465732e6c, 0x656e677468292e73, 0x6574286279746573, - 0x293b0a2020202020, 0x2020202020202072, 0x657475726e206865, 0x6164657253697a65, 0x202b206279746573, - 0x2e6c656e6774683b, 0x0a20202020202020, 0x207d0a0a20202020, 0x20202020656e636f, 0x64654f626a656374, - 0x2876616c75652c20, 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, 0x2020202069662028, - 0x41727261792e6973, 0x4172726179287661, 0x6c756529290a2020, 0x2020202020202020, 0x2020202020207265, - 0x7475726e20746869, 0x732e656e636f6465, 0x5475706c65287661, 0x6c75652c20766965, 0x772c206f66667365, - 0x74293b0a20202020, 0x2020202020202020, 0x6966202869735479, 0x7065644172726179, 0x2876616c75652929, - 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e656e63, 0x6f64655479706564, - 0x4172726179287661, 0x6c75652c20766965, 0x772c206f66667365, 0x74293b0a20202020, 0x2020202020202020, - 0x7468726f77206e65, 0x7720547970654572, 0x726f722860556e73, 0x7570706f72746564, 0x2057656246726f6e, - 0x7420706172616d65, 0x7465722074797065, 0x2027247b74797065, 0x6f662076616c7565, 0x7d2760293b0a2020, - 0x2020202020207d0a, 0x0a20202020202020, 0x20656e636f646554, 0x75706c652876616c, 0x75652c2076696577, - 0x2c206f6666736574, 0x29207b0a20202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, - 0x667365742c205061, 0x72616d547970652e, 0x7475706c65293b0a, 0x2020202020202020, 0x2020202076696577, - 0x2e73657455696e74, 0x38286f6666736574, 0x202b20312c207661, 0x6c75652e6c656e67, 0x7468293b0a202020, - 0x2020202020202020, 0x206c657420777269, 0x7474656e203d2032, 0x3b0a202020202020, 0x202020202020666f, - 0x722028636f6e7374, 0x20656c656d656e74, 0x206f662076616c75, 0x65290a2020202020, 0x2020202020202020, - 0x2020207772697474, 0x656e202b3d207468, 0x69732e656e636f64, 0x65506172616d6574, 0x657228656c656d65, - 0x6e742c2076696577, 0x2c206f6666736574, 0x202b207772697474, 0x656e293b0a202020, 0x2020202020202020, - 0x2072657475726e20, 0x7772697474656e3b, 0x0a20202020202020, 0x207d0a0a20202020, 0x20202020656e636f, - 0x6465547970656441, 0x727261792876616c, 0x75652c2076696577, 0x2c206f6666736574, 0x29207b0a20202020, - 0x2020202020202020, 0x636f6e7374207370, 0x6563203d20617272, 0x617954797065732e, 0x6765742876616c75, - 0x652e636f6e737472, 0x7563746f72293b0a, 0x2020202020202020, 0x2020202069662028, 0x2173706563290a20, + 0x7061796c6f616453, 0x697a652c20226675, 0x6e6374696f6e2072, 0x657475726e207061, 0x796c6f616422293b, + 0x0a20202020202020, 0x2020202020636f6e, 0x7374207061796c6f, 0x6164203d206e6577, 0x2044617461566965, + 0x77286d6573736167, 0x652e627566666572, 0x2c206d6573736167, 0x652e627974654f66, 0x66736574202b2038, + 0x2c207061796c6f61, 0x6453697a65293b0a, 0x0a20202020202020, 0x2020202020696620, 0x28746869732e6361, + 0x7272696573457863, 0x657074696f6e2863, 0x6f756e742c207061, 0x796c6f616453697a, 0x652c207061796c6f, + 0x61642929207b0a20, 0x2020202020202020, 0x2020202020202070, 0x656e64696e672e72, 0x656a656374286e65, + 0x77204572726f7228, 0x746869732e73696e, 0x676c6556616c7565, 0x287061796c6f6164, 0x2c207061796c6f61, + 0x6453697a652c2022, 0x457863657074696f, 0x6e222929293b0a20, 0x2020202020202020, 0x2020202020202072, + 0x657475726e3b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2069662028636f75, + 0x6e74203d3d3d2030, 0x29207b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x7061796c6f616453, + 0x697a6520213d3d20, 0x30290a2020202020, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, + 0x204572726f722822, 0x566f696420726574, 0x75726e20636f6e74, 0x61696e7320706179, 0x6c6f616420646174, + 0x6122293b0a202020, 0x2020202020202020, 0x202020202070656e, 0x64696e672e726573, 0x6f6c766528756e64, + 0x6566696e6564293b, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e3b, 0x0a20202020202020, + 0x20202020207d0a20, 0x2020202020202020, 0x2020206966202863, 0x6f756e7420213d3d, 0x2031290a20202020, + 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f72282246756e, 0x6374696f6e207265, + 0x7475726e206d7573, 0x7420636f6e746169, 0x6e207a65726f206f, 0x72206f6e65207661, 0x6c756522293b0a20, + 0x2020202020202020, 0x20202070656e6469, 0x6e672e7265736f6c, 0x766528746869732e, 0x73696e676c655661, + 0x6c7565287061796c, 0x6f61642c20706179, 0x6c6f616453697a65, 0x2c202246756e6374, 0x696f6e2229293b0a, + 0x2020202020202020, 0x7d0a0a2020202020, 0x2020206361727269, 0x6573457863657074, 0x696f6e28636f756e, + 0x742c207061796c6f, 0x616453697a652c20, 0x7061796c6f616429, 0x207b0a2020202020, 0x2020202020202069, + 0x662028636f756e74, 0x20213d3d2031207c, 0x7c207061796c6f61, 0x6453697a65203d3d, 0x3d20302920726574, + 0x75726e2066616c73, 0x653b0a2020202020, 0x2020202020202072, 0x657475726e207061, 0x796c6f61642e6765, + 0x7455696e74382830, 0x29203d3d3d205061, 0x72616d547970652e, 0x657863657074696f, 0x6e3b0a2020202020, + 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f204465636f6465, 0x732065786163746c, 0x79206f6e65207661, + 0x6c756520616e6420, 0x72656a6563747320, 0x616e792062797465, 0x73206c656674206f, 0x7665722061667465, + 0x722069742e0a2020, 0x2020202020207369, 0x6e676c6556616c75, 0x65287061796c6f61, 0x642c207061796c6f, + 0x616453697a652c20, 0x7768617429207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74205b76616c7565, + 0x732c20636f6e7375, 0x6d65645d203d2074, 0x6869732e6465636f, 0x6465506172616d65, 0x7465727328312c20, + 0x7061796c6f616429, 0x3b0a202020202020, 0x2020202020206966, 0x2028636f6e73756d, 0x656420213d3d2070, + 0x61796c6f61645369, 0x7a65290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, + 0x726f722860247b77, 0x6861747d20726574, 0x75726e20636f6e74, 0x61696e7320747261, 0x696c696e67207061, + 0x796c6f6164206461, 0x746160293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x2076616c7565735b, + 0x305d3b0a20202020, 0x202020207d0a0a20, 0x2020202020202064, 0x65636f6465506172, 0x616d657465727328, + 0x636f756e742c2076, 0x6965772c206f6666, 0x736574203d203029, 0x207b0a2020202020, 0x2020202020202063, + 0x6f6e73742076616c, 0x756573203d205b5d, 0x3b0a202020202020, 0x2020202020206c65, 0x7420637572736f72, + 0x203d206f66667365, 0x743b0a2020202020, 0x2020202020202066, 0x6f7220286c657420, 0x696e646578203d20, + 0x303b20696e646578, 0x203c20636f756e74, 0x3b202b2b696e6465, 0x7829207b0a202020, 0x2020202020202020, + 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x637572736f722c20, 0x312c202270617261, + 0x6d65746572207479, 0x706522293b0a2020, 0x2020202020202020, 0x202020202020636f, 0x6e7374207b76616c, + 0x75652c2062797465, 0x737d203d20746869, 0x732e6465636f6465, 0x56616c7565287669, 0x65772e6765745569, + 0x6e74382863757273, 0x6f72292c20766965, 0x772c20637572736f, 0x72293b0a20202020, 0x2020202020202020, + 0x2020202076616c75, 0x65732e7075736828, 0x76616c7565293b0a, 0x2020202020202020, 0x2020202020202020, + 0x637572736f72202b, 0x3d2062797465733b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, + 0x2020207265747572, 0x6e205b76616c7565, 0x732c20637572736f, 0x72202d206f666673, 0x65745d3b0a202020, + 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f204465636f, 0x6465732074686520, 0x73696e676c652076, + 0x616c756520737461, 0x7274696e67206174, 0x20276f6666736574, 0x272c207265747572, 0x6e696e6720697420, + 0x616c6f6e67736964, 0x6520746865206279, 0x746520636f756e74, 0x20697420636f6e73, 0x756d65642e0a2020, + 0x2020202020206465, 0x636f646556616c75, 0x6528747970652c20, 0x766965772c206f66, 0x6673657429207b0a, + 0x2020202020202020, 0x20202020636f6e73, 0x74206465636f6465, 0x72203d2076616c75, 0x654465636f646572, + 0x732e676574287479, 0x7065293b0a202020, 0x2020202020202020, 0x2069662028216465, 0x636f646572290a20, + 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, + 0x70706f7274656420, 0x706172616d657465, 0x7220747970652024, 0x7b747970657d6029, 0x3b0a202020202020, + 0x2020202020207265, 0x7475726e20646563, 0x6f64657228746869, 0x732c20747970652c, 0x20766965772c206f, + 0x6666736574293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x2020206465636f64, 0x654e756d62657228, + 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, + 0x28766965772c206f, 0x66667365742c2039, 0x2c20226e756d6265, 0x7222293b0a202020, 0x2020202020202020, + 0x2072657475726e20, 0x7b76616c75653a20, 0x766965772e676574, 0x466c6f6174363428, 0x6f6666736574202b, + 0x20312c2074686973, 0x2e6c6974746c6545, 0x6e6469616e292c20, 0x62797465733a2039, 0x7d3b0a2020202020, + 0x2020207d0a0a2020, 0x2020202020206465, 0x636f646553747269, 0x6e6728747970652c, 0x20766965772c206f, + 0x666673657429207b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742073697a6542, 0x79746573203d2074, + 0x797065203d3d3d20, 0x506172616d547970, 0x652e736d616c6c53, 0x7472696e67203f20, 0x31203a20323b0a20, + 0x2020202020202020, 0x2020207265717569, 0x7265427974657328, 0x766965772c206f66, 0x66736574202b2031, + 0x2c2073697a654279, 0x7465732c20227374, 0x72696e67206c656e, 0x67746822293b0a20, 0x2020202020202020, + 0x202020636f6e7374, 0x206c656e67746820, 0x3d2073697a654279, 0x746573203d3d3d20, 0x31203f2076696577, + 0x2e67657455696e74, 0x38286f6666736574, 0x202b203129203a20, 0x766965772e676574, 0x55696e743136286f, + 0x6666736574202b20, 0x312c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, + 0x202020636f6e7374, 0x207061796c6f6164, 0x203d206f66667365, 0x74202b2031202b20, 0x73697a6542797465, + 0x733b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, 0x2c207061796c6f61, + 0x642c206c656e6774, 0x682c202273747269, 0x6e67207061796c6f, 0x616422293b0a2020, 0x2020202020202020, + 0x2020636f6e737420, 0x6279746573203d20, 0x6e65772055696e74, 0x3841727261792876, 0x6965772e62756666, + 0x65722c2076696577, 0x2e627974654f6666, 0x736574202b207061, 0x796c6f61642c206c, 0x656e677468293b0a, + 0x2020202020202020, 0x2020202072657475, 0x726e207b76616c75, 0x653a206e65772054, 0x6578744465636f64, + 0x657228227574662d, 0x3822292e6465636f, 0x6465286279746573, 0x292c206279746573, 0x3a2031202b207369, + 0x7a65427974657320, 0x2b206c656e677468, 0x7d3b0a2020202020, 0x2020207d0a0a2020, 0x2020202020206465, + 0x636f64655475706c, 0x6528766965772c20, 0x6f66667365742920, 0x7b0a202020202020, 0x2020202020207265, + 0x7175697265427974, 0x657328766965772c, 0x206f66667365742c, 0x20322c2022747570, 0x6c65206865616465, + 0x7222293b0a202020, 0x2020202020202020, 0x20636f6e7374205b, 0x7475706c652c2063, 0x6f6e73756d65645d, + 0x203d20746869732e, 0x6465636f64655061, 0x72616d6574657273, 0x28766965772e6765, 0x7455696e7438286f, + 0x6666736574202b20, 0x31292c2076696577, 0x2c206f6666736574, 0x202b2032293b0a20, 0x2020202020202020, + 0x2020207265747572, 0x6e207b76616c7565, 0x3a207475706c652c, 0x2062797465733a20, 0x32202b20636f6e73, + 0x756d65647d3b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x20202f2f2f205265, 0x736f6c7665732074, + 0x686520656c656d65, 0x6e74207370656320, 0x616e64206c656e67, 0x7468207072656669, 0x7820666f72206120, + 0x7479706564206172, 0x7261792c2077686f, 0x7365206865616465, 0x7220697320322062, 0x7974657320696e20, + 0x7468650a20202020, 0x202020202f2f2f20, 0x636f6d7061637420, 0x736d616c6c417272, 0x6179553820666f72, + 0x6d20616e64203520, 0x6279746573206f74, 0x686572776973652e, 0x0a20202020202020, 0x2072656164547970, + 0x6564417272617948, 0x6561646572287479, 0x70652c2076696577, 0x2c206f6666736574, 0x29207b0a20202020, + 0x2020202020202020, 0x636f6e737420736d, 0x616c6c203d207479, 0x7065203d3d3d2050, 0x6172616d54797065, + 0x2e736d616c6c4172, 0x72617955383b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2073706563203d20, + 0x736d616c6c203f20, 0x7b2e2e2e61727261, 0x79436f6465732e67, 0x657428506172616d, 0x547970652e617272, + 0x61795538292c2063, 0x6f6e737472756374, 0x6f723a2055696e74, 0x3841727261797d20, 0x3a20617272617943, + 0x6f6465732e676574, 0x2874797065293b0a, 0x2020202020202020, 0x2020202069662028, 0x2173706563290a20, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, - 0x70706f7274656420, 0x7479706564206172, 0x72617920247b7661, 0x6c75652e636f6e73, 0x74727563746f722e, - 0x6e616d657d60293b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206865616465, 0x7253697a65203d20, - 0x7479706564417272, 0x6179486561646572, 0x53697a652876616c, 0x7565293b0a202020, 0x2020202020202020, - 0x20766965772e7365, 0x7455696e7438286f, 0x66667365742c2068, 0x656164657253697a, 0x65203d3d3d203220, - 0x3f20506172616d54, 0x7970652e736d616c, 0x6c41727261795538, 0x203a20737065632e, 0x636f6465293b0a20, - 0x2020202020202020, 0x2020206966202868, 0x656164657253697a, 0x65203d3d3d203229, 0x0a20202020202020, - 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, 0x6666736574202b20, 0x312c2076616c7565, - 0x2e6c656e67746829, 0x3b0a202020202020, 0x202020202020656c, 0x73650a2020202020, 0x2020202020202020, - 0x202020766965772e, 0x73657455696e7433, 0x32286f6666736574, 0x202b20312c207661, 0x6c75652e6c656e67, - 0x74682c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x20202020666f7220, - 0x286c657420696e64, 0x6578203d20303b20, 0x696e646578203c20, 0x76616c75652e6c65, 0x6e6774683b202b2b, - 0x696e646578290a20, 0x2020202020202020, 0x2020202020202076, 0x6965775b73706563, 0x2e7365747465725d, - 0x286f666673657420, 0x2b20686561646572, 0x53697a65202b2069, 0x6e646578202a2073, 0x7065632e62797465, - 0x732c2076616c7565, 0x5b696e6465785d2c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, - 0x2020202020202020, 0x2072657475726e20, 0x6865616465725369, 0x7a65202b2076616c, 0x75652e627974654c, - 0x656e6774683b0a20, 0x202020202020207d, 0x0a202020207d0a0a, 0x202020202f2f2045, 0x78706f7365642028, - 0x6265796f6e642074, 0x6865206465666175, 0x6c74206077656246, 0x726f6e7460207369, 0x6e676c65746f6e29, - 0x20736f2074657374, 0x732063616e20636f, 0x6e73747275637420, 0x6164646974696f6e, 0x616c206272696467, - 0x65730a202020202f, 0x2f20706f696e7465, 0x6420617420612064, 0x6966666572656e74, 0x2055524c2c20652e, - 0x672e20746f206578, 0x6572636973652074, 0x686520696e697469, 0x616c2d636f6e6e65, 0x6374696f6e2d6661, - 0x696c757265207061, 0x74682e0a20202020, 0x676c6f62616c2e57, 0x656246726f6e7442, 0x7269646765203d20, - 0x57656246726f6e74, 0x4272696467653b0a, 0x20202020676c6f62, 0x616c2e7765624672, 0x6f6e74203d206e65, - 0x772057656246726f, 0x6e74427269646765, 0x28293b0a7d292867, 0x6c6f62616c546869, 0x73293b0a00000000 + 0x70706f7274656420, 0x7479706564206172, 0x72617920636f6465, 0x20247b747970657d, 0x60293b0a20202020, + 0x2020202020202020, 0x636f6e7374206865, 0x6164657253697a65, 0x203d20736d616c6c, 0x203f2032203a2035, + 0x3b0a202020202020, 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, 0x206f66667365742c, + 0x2068656164657253, 0x697a652c20226172, 0x7261792068656164, 0x657222293b0a2020, 0x2020202020202020, + 0x2020636f6e737420, 0x6c656e677468203d, 0x20736d616c6c203f, 0x20766965772e6765, 0x7455696e7438286f, + 0x6666736574202b20, 0x3129203a20766965, 0x772e67657455696e, 0x743332286f666673, 0x6574202b20312c20, + 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x72657475726e207b, + 0x737065632c206865, 0x6164657253697a65, 0x2c206c656e677468, 0x7d3b0a2020202020, 0x2020207d0a0a2020, + 0x2020202020206465, 0x636f646554797065, 0x6441727261792874, 0x7970652c20766965, 0x772c206f66667365, + 0x7429207b0a202020, 0x2020202020202020, 0x20636f6e7374207b, 0x737065632c206865, 0x6164657253697a65, + 0x2c206c656e677468, 0x7d203d2074686973, 0x2e72656164547970, 0x6564417272617948, 0x6561646572287479, + 0x70652c2076696577, 0x2c206f6666736574, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420627974, + 0x654c656e67746820, 0x3d206c656e677468, 0x202a20737065632e, 0x62797465733b0a20, 0x2020202020202020, + 0x2020206966202821, 0x4e756d6265722e69, 0x7353616665496e74, 0x6567657228627974, 0x654c656e67746829, + 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722822, + 0x5479706564206172, 0x726179206c656e67, 0x746820697320746f, 0x6f206c6172676522, 0x293b0a2020202020, + 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, 0x2c206f6666736574, 0x202b206865616465, + 0x7253697a652c2062, 0x7974654c656e6774, 0x682c202261727261, 0x79207061796c6f61, 0x6422293b0a0a2020, + 0x2020202020202020, 0x2020636f6e737420, 0x726573756c74203d, 0x206e657720737065, 0x632e636f6e737472, + 0x7563746f72286c65, 0x6e677468293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x207061796c6f6164, + 0x203d206f66667365, 0x74202b2068656164, 0x657253697a653b0a, 0x2020202020202020, 0x20202020666f7220, + 0x286c657420696e64, 0x6578203d20303b20, 0x696e646578203c20, 0x6c656e6774683b20, 0x2b2b696e64657829, + 0x0a20202020202020, 0x2020202020202020, 0x20726573756c745b, 0x696e6465785d203d, 0x20766965775b7370, + 0x65632e6765747465, 0x725d287061796c6f, 0x6164202b20696e64, 0x6578202a20737065, 0x632e62797465732c, + 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, 0x2072657475726e20, + 0x7b76616c75653a20, 0x726573756c742c20, 0x62797465733a2068, 0x656164657253697a, 0x65202b2062797465, + 0x4c656e6774687d3b, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202063707046, 0x756e6374696f6e28, + 0x6e616d6529207b0a, 0x2020202020202020, 0x2020202072657475, 0x726e20282e2e2e61, 0x72677329203d3e20, + 0x746869732e63616c, 0x6c43707046756e63, 0x74696f6e286e616d, 0x652c206172677329, 0x3b0a202020202020, + 0x20207d0a0a202020, 0x202020202063616c, 0x6c43707046756e63, 0x74696f6e286e616d, 0x652c206172677329, + 0x207b0a2020202020, 0x2020202020202072, 0x657475726e206e65, 0x772050726f6d6973, 0x6528287265736f6c, + 0x76652c2072656a65, 0x637429203d3e207b, 0x0a20202020202020, 0x2020202020202020, 0x206c65742063616c, + 0x6c4964203d20303b, 0x0a20202020202020, 0x2020202020202020, 0x20747279207b0a20, 0x2020202020202020, + 0x2020202020202020, 0x2020206966202874, 0x6869732e73746174, 0x6520213d3d20226c, 0x696e6b656422290a, + 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, + 0x2257656246726f6e, 0x7420627269646765, 0x206973206e6f7420, 0x636f6e6e65637465, 0x6422293b0a202020, + 0x2020202020202020, 0x2020202020202020, 0x20636f6e73742076, 0x616c756573203d20, 0x5b6e616d652c202e, + 0x2e2e617267735d3b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, 0x2876616c7565732e, + 0x6c656e677468203e, 0x20323535290a2020, 0x2020202020202020, 0x2020202020202020, 0x2020202020207468, + 0x726f77206e657720, 0x52616e6765457272, 0x6f72282241206675, 0x6e6374696f6e2063, 0x616c6c2063616e6e, + 0x6f7420636f6e7461, 0x696e206d6f726520, 0x7468616e20323535, 0x20746f702d6c6576, 0x656c2076616c7565, + 0x7322293b0a202020, 0x2020202020202020, 0x2020202020202020, 0x20636f6e73742070, 0x61796c6f61645369, + 0x7a65203d2076616c, 0x7565732e72656475, 0x6365282873697a65, 0x2c2076616c756529, 0x203d3e2073697a65, + 0x202b20746869732e, 0x706172616d657465, 0x7253697a65287661, 0x6c7565292c203029, 0x3b0a202020202020, + 0x2020202020202020, 0x202020202020636f, 0x6e73742062756666, 0x6572203d206e6577, 0x2041727261794275, + 0x666665722838202b, 0x207061796c6f6164, 0x53697a65293b0a20, 0x2020202020202020, 0x2020202020202020, + 0x202020636f6e7374, 0x2076696577203d20, 0x6e65772044617461, 0x5669657728627566, 0x666572293b0a2020, + 0x2020202020202020, 0x2020202020202020, 0x202063616c6c4964, 0x203d20746869732e, 0x616c6c6f63617465, + 0x43616c6c49642829, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207669, 0x65772e7365745569, + 0x6e743828302c2043, 0x6f6d6d616e642e63, 0x616c6c46756e6374, 0x696f6e293b0a2020, 0x2020202020202020, + 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x312c2076616c7565, 0x732e6c656e677468, + 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e74313628322c, + 0x2063616c6c49642c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, + 0x2020202020202020, 0x20766965772e7365, 0x7455696e74333228, 0x342c207061796c6f, 0x616453697a652c20, + 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x2020202020202020, + 0x6c65742063757273, 0x6f72203d20383b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020666f7220, + 0x28636f6e73742076, 0x616c7565206f6620, 0x76616c756573290a, 0x2020202020202020, 0x2020202020202020, + 0x2020202020202020, 0x637572736f72202b, 0x3d20746869732e65, 0x6e636f6465506172, 0x616d657465722876, + 0x616c75652c207669, 0x65772c2063757273, 0x6f72293b0a202020, 0x2020202020202020, 0x2020202020202020, + 0x20746869732e7065, 0x6e64696e6743616c, 0x6c732e7365742863, 0x616c6c49642c207b, 0x7265736f6c76652c, + 0x2072656a6563747d, 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202074, 0x6869732e736f636b, + 0x65742e73656e6428, 0x627566666572293b, 0x0a20202020202020, 0x2020202020202020, 0x207d206361746368, + 0x20286572726f7229, 0x207b0a2020202020, 0x2020202020202020, 0x2020202020202069, 0x66202863616c6c49, + 0x6420213d3d203029, 0x0a20202020202020, 0x2020202020202020, 0x2020202020202020, 0x20746869732e7065, + 0x6e64696e6743616c, 0x6c732e64656c6574, 0x652863616c6c4964, 0x293b0a2020202020, 0x2020202020202020, + 0x2020202020202072, 0x656a656374286572, 0x726f72293b0a2020, 0x2020202020202020, 0x2020202020207d0a, + 0x2020202020202020, 0x202020207d293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x202020616c6c6f63, + 0x61746543616c6c49, 0x642829207b0a2020, 0x2020202020202020, 0x2020666f7220286c, 0x657420617474656d, + 0x707473203d20303b, 0x20617474656d7074, 0x73203c2030786666, 0x66663b202b2b6174, 0x74656d7074732920, + 0x7b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x63616e6469646174, 0x65203d2074686973, + 0x2e6e65787443616c, 0x6c49643b0a202020, 0x2020202020202020, 0x2020202020746869, 0x732e6e6578744361, + 0x6c6c4964203d2074, 0x6869732e6e657874, 0x43616c6c4964203d, 0x3d3d203078666666, 0x66203f2031203a20, + 0x746869732e6e6578, 0x7443616c6c496420, 0x2b20313b0a202020, 0x2020202020202020, 0x2020202020696620, + 0x2821746869732e70, 0x656e64696e674361, 0x6c6c732e68617328, 0x63616e6469646174, 0x6529290a20202020, + 0x2020202020202020, 0x2020202020202020, 0x72657475726e2063, 0x616e646964617465, 0x3b0a202020202020, + 0x2020202020207d0a, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f722822546f6f, + 0x206d616e79206f75, 0x747374616e64696e, 0x672057656246726f, 0x6e742063616c6c73, 0x22293b0a20202020, + 0x202020207d0a0a20, 0x2020202020202073, 0x656e6446756e6374, 0x696f6e5265747572, 0x6e2863616c6c4964, + 0x2c2076616c756529, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e73742076616c, 0x756573203d207661, + 0x6c7565203d3d3d20, 0x756e646566696e65, 0x64203f205b5d203a, 0x205b76616c75655d, 0x3b0a202020202020, + 0x202020202020636f, 0x6e7374207061796c, 0x6f616453697a6520, 0x3d2076616c756573, 0x2e72656475636528, + 0x2873697a652c2069, 0x74656d29203d3e20, 0x73697a65202b2074, 0x6869732e70617261, 0x6d6574657253697a, + 0x65286974656d292c, 0x2030293b0a202020, 0x2020202020202020, 0x20636f6e73742062, 0x7566666572203d20, + 0x6e65772041727261, 0x7942756666657228, 0x38202b207061796c, 0x6f616453697a6529, 0x3b0a202020202020, + 0x202020202020636f, 0x6e73742076696577, 0x203d206e65772044, 0x6174615669657728, 0x627566666572293b, + 0x0a20202020202020, 0x2020202020766965, 0x772e73657455696e, 0x743828302c20436f, 0x6d6d616e642e6675, + 0x6e6374696f6e5265, 0x7475726e293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, + 0x28312c2076616c75, 0x65732e6c656e6774, 0x68293b0a20202020, 0x2020202020202020, 0x766965772e736574, + 0x55696e7431362832, 0x2c2063616c6c4964, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, + 0x2020202020202020, 0x2020766965772e73, 0x657455696e743332, 0x28342c207061796c, 0x6f616453697a652c, + 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, 0x206c657420637572, + 0x736f72203d20383b, 0x0a20202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6974656d206f6620, + 0x76616c756573290a, 0x2020202020202020, 0x2020202020202020, 0x637572736f72202b, 0x3d20746869732e65, + 0x6e636f6465506172, 0x616d657465722869, 0x74656d2c20766965, 0x772c20637572736f, 0x72293b0a20202020, + 0x2020202020202020, 0x746869732e736f63, 0x6b65742e73656e64, 0x2862756666657229, 0x3b0a202020202020, + 0x20207d0a0a202020, 0x202020202073656e, 0x6446756e6374696f, 0x6e4572726f722863, 0x616c6c49642c2065, + 0x72726f7229207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74206d6573736167, 0x65203d206572726f, + 0x7220696e7374616e, 0x63656f6620457272, 0x6f72203f20657272, 0x6f722e6d65737361, 0x6765203a20537472, + 0x696e67286572726f, 0x72293b0a20202020, 0x2020202020202020, 0x636f6e7374206279, 0x746573203d206e65, + 0x772054657874456e, 0x636f64657228292e, 0x656e636f6465286d, 0x657373616765293b, 0x0a20202020202020, + 0x2020202020696620, 0x2862797465732e6c, 0x656e677468203e3d, 0x203635353336290a, 0x2020202020202020, + 0x2020202020202020, 0x72657475726e2074, 0x6869732e73656e64, 0x46756e6374696f6e, 0x4572726f72286361, + 0x6c6c49642c20224a, 0x6176615363726970, 0x7420657863657074, 0x696f6e206d657373, 0x6167652065786365, + 0x6564732036353533, 0x35205554462d3820, 0x627974657322293b, 0x0a20202020202020, 0x2020202020636f6e, + 0x7374206275666665, 0x72203d206e657720, 0x4172726179427566, 0x666572283131202b, 0x2062797465732e6c, + 0x656e677468293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, + 0x6156696577286275, 0x66666572293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, + 0x28302c20436f6d6d, 0x616e642e66756e63, 0x74696f6e52657475, 0x726e293b0a202020, 0x2020202020202020, + 0x20766965772e7365, 0x7455696e74382831, 0x2c2031293b0a2020, 0x2020202020202020, 0x2020766965772e73, + 0x657455696e743136, 0x28322c2063616c6c, 0x49642c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, + 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x333228342c203320, 0x2b2062797465732e, + 0x6c656e6774682c20, 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, + 0x766965772e736574, 0x55696e743828382c, 0x20506172616d5479, 0x70652e6578636570, 0x74696f6e293b0a20, + 0x2020202020202020, 0x202020766965772e, 0x73657455696e7431, 0x3628392c20627974, 0x65732e6c656e6774, + 0x682c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, 0x2020206e65772055, + 0x696e743841727261, 0x7928627566666572, 0x2c203131292e7365, 0x7428627974657329, 0x3b0a202020202020, + 0x2020202020207468, 0x69732e736f636b65, 0x742e73656e642862, 0x7566666572293b0a, 0x2020202020202020, + 0x7d0a0a2020202020, 0x202020706172616d, 0x6574657253697a65, 0x2876616c75652920, 0x7b0a202020202020, + 0x2020202020207377, 0x6974636820287479, 0x70656f662076616c, 0x756529207b0a2020, 0x2020202020202020, + 0x2020636173652022, 0x626f6f6c65616e22, 0x3a0a202020202020, 0x2020202020202020, 0x202072657475726e, + 0x20313b0a20202020, 0x2020202020202020, 0x6361736520226e75, 0x6d626572223a0a20, 0x2020202020202020, + 0x2020202020202072, 0x657475726e20393b, 0x0a20202020202020, 0x2020202020636173, 0x652022737472696e, + 0x67223a0a20202020, 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, 0x737472696e675061, + 0x72616d6574657253, 0x697a652876616c75, 0x65293b0a20202020, 0x2020202020202020, 0x6361736520226f62, + 0x6a656374223a0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, 0x69732e6f626a6563, + 0x74506172616d6574, 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, 0x2020207d0a202020, + 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f722860556e, 0x737570706f727465, + 0x642057656246726f, 0x6e7420706172616d, 0x6574657220747970, 0x652027247b747970, 0x656f662076616c75, + 0x657d2760293b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x2020737472696e67, 0x506172616d657465, + 0x7253697a65287661, 0x6c756529207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x206c656e67746820, + 0x3d206e6577205465, 0x7874456e636f6465, 0x7228292e656e636f, 0x64652876616c7565, 0x292e6c656e677468, + 0x3b0a202020202020, 0x2020202020206966, 0x20286c656e677468, 0x203e3d2036353533, 0x36290a2020202020, + 0x2020202020202020, 0x2020207468726f77, 0x206e65772052616e, 0x67654572726f7228, 0x2257656246726f6e, + 0x7420737472696e67, 0x732063616e6e6f74, 0x2065786365656420, 0x3635353335205554, 0x462d382062797465, + 0x7322293b0a202020, 0x2020202020202020, 0x2072657475726e20, 0x6c656e677468202b, 0x20286c656e677468, + 0x203c20323536203f, 0x2032203a2033293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x202020206f626a65, + 0x6374506172616d65, 0x74657253697a6528, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020696620, + 0x2841727261792e69, 0x7341727261792876, 0x616c756529290a20, 0x2020202020202020, 0x2020202020202072, + 0x657475726e207468, 0x69732e7475706c65, 0x506172616d657465, 0x7253697a65287661, 0x6c7565293b0a2020, + 0x2020202020202020, 0x2020696620286973, 0x5479706564417272, 0x61792876616c7565, 0x29290a2020202020, + 0x2020202020202020, 0x2020207265747572, 0x6e20746869732e74, 0x7970656441727261, 0x79506172616d6574, + 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, + 0x654572726f722860, 0x556e737570706f72, 0x7465642057656246, 0x726f6e7420706172, 0x616d657465722074, + 0x7970652027247b74, 0x7970656f66207661, 0x6c75657d2760293b, 0x0a20202020202020, 0x207d0a0a20202020, + 0x202020207475706c, 0x65506172616d6574, 0x657253697a652876, 0x616c756529207b0a, 0x2020202020202020, + 0x2020202069662028, 0x76616c75652e6c65, 0x6e677468203e2032, 0x3535290a20202020, 0x2020202020202020, + 0x202020207468726f, 0x77206e6577205261, 0x6e67654572726f72, 0x282257656246726f, 0x6e74207475706c65, + 0x732063616e6e6f74, 0x2065786365656420, 0x32353520656c656d, 0x656e747322293b0a, 0x2020202020202020, + 0x2020202072657475, 0x726e2032202b2076, 0x616c75652e726564, 0x756365282873697a, 0x652c20656c656d65, + 0x6e7429203d3e2073, 0x697a65202b207468, 0x69732e706172616d, 0x6574657253697a65, 0x28656c656d656e74, + 0x292c2030293b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x2020747970656441, 0x7272617950617261, + 0x6d6574657253697a, 0x652876616c756529, 0x207b0a2020202020, 0x2020202020202069, 0x6620282161727261, + 0x7954797065732e68, 0x61732876616c7565, 0x2e636f6e73747275, 0x63746f7229290a20, 0x2020202020202020, + 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, 0x70706f7274656420, + 0x7479706564206172, 0x72617920247b7661, 0x6c75652e636f6e73, 0x74727563746f722e, 0x6e616d657d60293b, + 0x0a20202020202020, 0x2020202020696620, 0x2876616c75652e6c, 0x656e677468203e20, 0x3078666666666666, + 0x6666290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205261, 0x6e67654572726f72, + 0x2822547970656420, 0x6172726179732063, 0x616e6e6f74206578, 0x6365656420343239, 0x3439363732393520, + 0x656c656d656e7473, 0x22293b0a20202020, 0x2020202020202020, 0x72657475726e2074, 0x7970656441727261, + 0x7948656164657253, 0x697a652876616c75, 0x6529202b2076616c, 0x75652e627974654c, 0x656e6774683b0a20, + 0x202020202020207d, 0x0a0a202020202020, 0x2020656e636f6465, 0x506172616d657465, 0x722876616c75652c, + 0x20766965772c206f, 0x666673657429207b, 0x0a20202020202020, 0x2020202020737769, 0x7463682028747970, + 0x656f662076616c75, 0x6529207b0a202020, 0x2020202020202020, 0x2063617365202262, 0x6f6f6c65616e223a, + 0x0a20202020202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, 0x66667365742c2076, + 0x616c7565203f2050, 0x6172616d54797065, 0x2e626f6f6c65616e, 0x54727565203a2050, 0x6172616d54797065, + 0x2e626f6f6c65616e, 0x46616c7365293b0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2031, + 0x3b0a202020202020, 0x2020202020206361, 0x736520226e756d62, 0x6572223a0a202020, 0x2020202020202020, + 0x2020202020766965, 0x772e73657455696e, 0x7438286f66667365, 0x742c20506172616d, 0x547970652e6e756d, + 0x626572293b0a2020, 0x2020202020202020, 0x2020202020207669, 0x65772e736574466c, 0x6f61743634286f66, + 0x66736574202b2031, 0x2c2076616c75652c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, + 0x2020202020202020, 0x2020202020726574, 0x75726e20393b0a20, 0x2020202020202020, 0x2020206361736520, + 0x22737472696e6722, 0x3a0a202020202020, 0x2020202020202020, 0x202072657475726e, 0x20746869732e656e, + 0x636f646553747269, 0x6e672876616c7565, 0x2c20766965772c20, 0x6f6666736574293b, 0x0a20202020202020, + 0x2020202020636173, 0x6520226f626a6563, 0x74223a0a20202020, 0x2020202020202020, 0x2020202072657475, + 0x726e20746869732e, 0x656e636f64654f62, 0x6a6563742876616c, 0x75652c2076696577, 0x2c206f6666736574, + 0x293b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020746872, 0x6f77206e65772054, + 0x7970654572726f72, 0x2860556e73757070, 0x6f72746564205765, 0x6246726f6e742070, 0x6172616d65746572, + 0x2074797065202724, 0x7b747970656f6620, 0x76616c75657d2760, 0x293b0a2020202020, 0x2020207d0a0a2020, + 0x202020202020656e, 0x636f646553747269, 0x6e672876616c7565, 0x2c20766965772c20, 0x6f66667365742920, + 0x7b0a202020202020, 0x202020202020636f, 0x6e73742062797465, 0x73203d206e657720, 0x54657874456e636f, + 0x64657228292e656e, 0x636f64652876616c, 0x7565293b0a202020, 0x2020202020202020, 0x20636f6e73742073, + 0x6d616c6c203d2062, 0x797465732e6c656e, 0x677468203c203235, 0x363b0a2020202020, 0x2020202020202076, + 0x6965772e73657455, 0x696e7438286f6666, 0x7365742c20736d61, 0x6c6c203f20506172, 0x616d547970652e73, + 0x6d616c6c53747269, 0x6e67203a20506172, 0x616d547970652e73, 0x7472696e67293b0a, 0x2020202020202020, + 0x2020202069662028, 0x736d616c6c290a20, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, + 0x696e7438286f6666, 0x736574202b20312c, 0x2062797465732e6c, 0x656e677468293b0a, 0x2020202020202020, + 0x20202020656c7365, 0x0a20202020202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74313628, + 0x6f6666736574202b, 0x20312c2062797465, 0x732e6c656e677468, 0x2c20746869732e6c, 0x6974746c65456e64, + 0x69616e293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x6865616465725369, 0x7a65203d20736d61, + 0x6c6c203f2032203a, 0x20333b0a20202020, 0x2020202020202020, 0x6e65772055696e74, 0x3841727261792876, + 0x6965772e62756666, 0x65722c2076696577, 0x2e627974654f6666, 0x736574202b206f66, 0x66736574202b2068, + 0x656164657253697a, 0x652c206279746573, 0x2e6c656e67746829, 0x2e73657428627974, 0x6573293b0a202020, + 0x2020202020202020, 0x2072657475726e20, 0x6865616465725369, 0x7a65202b20627974, 0x65732e6c656e6774, + 0x683b0a2020202020, 0x2020207d0a0a2020, 0x202020202020656e, 0x636f64654f626a65, 0x63742876616c7565, + 0x2c20766965772c20, 0x6f66667365742920, 0x7b0a202020202020, 0x2020202020206966, 0x202841727261792e, + 0x6973417272617928, 0x76616c756529290a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, + 0x6869732e656e636f, 0x64655475706c6528, 0x76616c75652c2076, 0x6965772c206f6666, 0x736574293b0a2020, + 0x2020202020202020, 0x2020696620286973, 0x5479706564417272, 0x61792876616c7565, 0x29290a2020202020, + 0x2020202020202020, 0x2020207265747572, 0x6e20746869732e65, 0x6e636f6465547970, 0x6564417272617928, + 0x76616c75652c2076, 0x6965772c206f6666, 0x736574293b0a2020, 0x2020202020202020, 0x20207468726f7720, + 0x6e65772054797065, 0x4572726f72286055, 0x6e737570706f7274, 0x6564205765624672, 0x6f6e742070617261, + 0x6d65746572207479, 0x70652027247b7479, 0x70656f662076616c, 0x75657d2760293b0a, 0x2020202020202020, + 0x7d0a0a2020202020, 0x202020656e636f64, 0x655475706c652876, 0x616c75652c207669, 0x65772c206f666673, + 0x657429207b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x6f66667365742c20, + 0x506172616d547970, 0x652e7475706c6529, 0x3b0a202020202020, 0x2020202020207669, 0x65772e7365745569, + 0x6e7438286f666673, 0x6574202b20312c20, 0x76616c75652e6c65, 0x6e677468293b0a20, 0x2020202020202020, + 0x2020206c65742077, 0x72697474656e203d, 0x20323b0a20202020, 0x2020202020202020, 0x666f722028636f6e, + 0x737420656c656d65, 0x6e74206f66207661, 0x6c7565290a202020, 0x2020202020202020, 0x2020202020777269, + 0x7474656e202b3d20, 0x746869732e656e63, 0x6f6465506172616d, 0x6574657228656c65, 0x6d656e742c207669, + 0x65772c206f666673, 0x6574202b20777269, 0x7474656e293b0a20, 0x2020202020202020, 0x2020207265747572, + 0x6e20777269747465, 0x6e3b0a2020202020, 0x2020207d0a0a2020, 0x202020202020656e, 0x636f646554797065, + 0x6441727261792876, 0x616c75652c207669, 0x65772c206f666673, 0x657429207b0a2020, 0x2020202020202020, + 0x2020636f6e737420, 0x73706563203d2061, 0x7272617954797065, 0x732e676574287661, 0x6c75652e636f6e73, + 0x74727563746f7229, 0x3b0a202020202020, 0x2020202020206966, 0x2028217370656329, 0x0a20202020202020, + 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f722860556e, 0x737570706f727465, + 0x6420747970656420, 0x617272617920247b, 0x76616c75652e636f, 0x6e7374727563746f, 0x722e6e616d657d60, + 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420686561, 0x64657253697a6520, 0x3d20747970656441, + 0x7272617948656164, 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, 0x202020766965772e, + 0x73657455696e7438, 0x286f66667365742c, 0x2068656164657253, 0x697a65203d3d3d20, 0x32203f2050617261, + 0x6d547970652e736d, 0x616c6c4172726179, 0x5538203a20737065, 0x632e636f6465293b, 0x0a20202020202020, + 0x2020202020696620, 0x2868656164657253, 0x697a65203d3d3d20, 0x32290a2020202020, 0x2020202020202020, + 0x202020766965772e, 0x73657455696e7438, 0x286f666673657420, 0x2b20312c2076616c, 0x75652e6c656e6774, + 0x68293b0a20202020, 0x2020202020202020, 0x656c73650a202020, 0x2020202020202020, 0x2020202020766965, + 0x772e73657455696e, 0x743332286f666673, 0x6574202b20312c20, 0x76616c75652e6c65, 0x6e6774682c207468, + 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, 0x202020202020666f, 0x7220286c65742069, + 0x6e646578203d2030, 0x3b20696e64657820, 0x3c2076616c75652e, 0x6c656e6774683b20, 0x2b2b696e64657829, + 0x0a20202020202020, 0x2020202020202020, 0x20766965775b7370, 0x65632e7365747465, 0x725d286f66667365, + 0x74202b2068656164, 0x657253697a65202b, 0x20696e646578202a, 0x20737065632e6279, 0x7465732c2076616c, + 0x75655b696e646578, 0x5d2c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, + 0x2020207265747572, 0x6e20686561646572, 0x53697a65202b2076, 0x616c75652e627974, 0x654c656e6774683b, + 0x0a20202020202020, 0x207d0a202020207d, 0x0a0a202020202f2f, 0x204578706f736564, 0x20286265796f6e64, + 0x2074686520646566, 0x61756c7420607765, 0x6246726f6e746020, 0x73696e676c65746f, 0x6e2920736f207465, + 0x7374732063616e20, 0x636f6e7374727563, 0x7420616464697469, 0x6f6e616c20627269, 0x646765730a202020, + 0x202f2f20706f696e, 0x7465642061742061, 0x2064696666657265, 0x6e742055524c2c20, 0x652e672e20746f20, + 0x6578657263697365, 0x2074686520696e69, 0x7469616c2d636f6e, 0x6e656374696f6e2d, 0x6661696c75726520, + 0x706174682e0a2020, 0x2020676c6f62616c, 0x2e57656246726f6e, 0x7442726964676520, 0x3d2057656246726f, + 0x6e74427269646765, 0x3b0a20202020676c, 0x6f62616c2e776562, 0x46726f6e74203d20, 0x6e65772057656246, + 0x726f6e7442726964, 0x676528293b0a7d29, 0x28676c6f62616c54, 0x686973293b0a0000 }; }; diff --git a/include/webfront/weblink/WebLink.hpp b/include/webfront/weblink/WebLink.hpp index 03a5e076..e5729a58 100644 --- a/include/webfront/weblink/WebLink.hpp +++ b/include/webfront/weblink/WebLink.hpp @@ -277,7 +277,9 @@ class WebLink { const auto jsEndian = static_cast(command->getEndian()); sameEndian = (nativeIsLittle && jsEndian == msg::JSEndian::little) || (nativeIsBig && jsEndian == msg::JSEndian::big); - eventsHandler({WebLinkEvent::Code::linked, id}); + // Anything after the two header bytes is the secret of an embedded view (ADR-020); the application judges it. + const auto proof = data.size() > sizeof(msg::Handshake) ? data.subspan(sizeof(msg::Handshake)) : std::span{}; + eventsHandler({WebLinkEvent::Code::linked, id, std::string(reinterpret_cast(proof.data()), proof.size())}); } void handleCallFunction(std::span data) { diff --git a/js/core/WebFront.js b/js/core/WebFront.js index 58887388..b4dfdd98 100644 --- a/js/core/WebFront.js +++ b/js/core/WebFront.js @@ -51,6 +51,16 @@ const arrayCodes = new Map(Array.from(arrayTypes, ([constructor, spec]) => [spec.code, {...spec, constructor}])); + /// The launch secret of an embedded view, once: defined by the adapter before any script of the page, then removed. + /// Anything that is not the expected 64 hexadecimal characters is ignored, so a script cannot inject other bytes. + function takeViewSecret() { + const descriptor = Object.getOwnPropertyDescriptor(global, "__webfrontView"); + if (!descriptor) return ""; + delete global.__webfrontView; + const value = descriptor.value; + return typeof value === "string" && /^[0-9a-f]{64}$/.test(value) ? value : ""; + } + function nativeIsLittleEndian() { const word = new Uint32Array([0x110000ff]); return new Uint8Array(word.buffer)[0] === 0xff; @@ -146,7 +156,12 @@ handshake() { this.state = "handshaking"; - this.socket.send(new Uint8Array([Command.handshake, nativeIsLittleEndian() ? 0 : 1])); + // An embedded frontend gives its view a per-launch secret at the start of the document (ADR-020). It is + // presented once, here, and removed so that the page does not keep reading it; the system browser has none. + const secret = takeViewSecret(); + const header = [Command.handshake, nativeIsLittleEndian() ? 0 : 1]; + for (let index = 0; index < secret.length; ++index) header.push(secret.charCodeAt(index) & 0x7f); + this.socket.send(new Uint8Array(header)); } onMessage(buffer) { diff --git a/test/cmake/CheckFrontendGenerators.cmake b/test/cmake/CheckFrontendGenerators.cmake index 686f116f..ee38d591 100644 --- a/test/cmake/CheckFrontendGenerators.cmake +++ b/test/cmake/CheckFrontendGenerators.cmake @@ -20,7 +20,7 @@ foreach(generator Ninja "Ninja Multi-Config" Ninja) endif() webfront_read_frontend_tests("${directory}" tests) string(JSON count LENGTH "${tests}" tests) - if(NOT count EQUAL 9) - message(FATAL_ERROR "${generator}: expected Jasmine, seven shared lifecycle cases and the engine test, got ${count}") + if(NOT count EQUAL 10) + message(FATAL_ERROR "${generator}: expected Jasmine, eight shared lifecycle cases and the engine test, got ${count}") endif() endforeach() diff --git a/test/cmake/CheckFrontendSelection.cmake b/test/cmake/CheckFrontendSelection.cmake index f067d314..baa32d9d 100644 --- a/test/cmake/CheckFrontendSelection.cmake +++ b/test/cmake/CheckFrontendSelection.cmake @@ -434,9 +434,9 @@ foreach(case webkitgtk-linux cef-linux cef-macos cef-windows cef-disabled missin continue() endif() if(case STREQUAL "extension" OR case STREQUAL "webview2-windows") - set(expected_count 9) + set(expected_count 10) else() - set(expected_count 8) + set(expected_count 9) endif() if(NOT count EQUAL expected_count) list(APPEND failures "${case}: expected ${expected_count} tests, got ${count}") diff --git a/test/cmake/frontends/CMakeLists.txt b/test/cmake/frontends/CMakeLists.txt index 67b1275c..352c1669 100644 --- a/test/cmake/frontends/CMakeLists.txt +++ b/test/cmake/frontends/CMakeLists.txt @@ -67,7 +67,7 @@ elseif(CASE STREQUAL "webkitgtk-linux") include("${ROOT}/test/cmake/WebKitGTKTestEnvironment.cmake") function(webfront_add_webkitgtk_tests) list(LENGTH ARGN shared_count) - if(NOT shared_count EQUAL 8 OR NOT "WebFrontWebKitGTKIntegration" IN_LIST ARGN) + if(NOT shared_count EQUAL 9 OR NOT "WebFrontWebKitGTKIntegration" IN_LIST ARGN) message(FATAL_ERROR "WebKitGTK setup must receive every shared test, including Jasmine") endif() foreach(test IN LISTS ARGN) @@ -155,7 +155,7 @@ if(CASE STREQUAL "extension" AND NOT TEST EngineLifecycle) message(FATAL_ERROR "The new engine's lifecycle tests were not registered") endif() -foreach(mode no-bridge early-close rejected-ready navigation-failure path-encoding) +foreach(mode no-bridge early-close rejected-ready navigation-failure path-encoding view-association) set(lifecycle_name "${frontend}Lifecycle-${mode}") if(NOT TEST ${lifecycle_name}) message(FATAL_ERROR "Missing shared lifecycle case ${lifecycle_name}") diff --git a/test/driver/TestFrontend.hpp b/test/driver/TestFrontend.hpp index 37866390..27cdbd93 100644 --- a/test/driver/TestFrontend.hpp +++ b/test/driver/TestFrontend.hpp @@ -29,10 +29,16 @@ struct QuietFrontend : Frontend { open(address, port, page, policy, WindowOptions{}); } static void open(std::string_view address, std::string_view port, std::string_view page, const ContentPolicy& policy, const WindowOptions& window) { + open(address, port, page, policy, window, ViewLaunch{}); + } + // The launch proof reaches the engine as it does in an application: the suite runs the same association. + static void open(std::string_view address, std::string_view port, std::string_view page, const ContentPolicy& policy, const WindowOptions& window, + const ViewLaunch& launch) { if constexpr (std::is_same_v) { frontend::WKWebViewOptions options; options.contentPolicy = policy; options.window = window; + options.launch = launch; options.visible = diagnosticWindows(); Frontend::open(address, port, page, options); } else if constexpr (std::is_same_v) { @@ -40,10 +46,11 @@ struct QuietFrontend : Frontend { options.contentPolicy = policy; options.window = window; options.visible = diagnosticWindows(); + options.launch = launch; Frontend::open(address, port, page, options); } else { // Linux engines use one Xvfb display around a complete suite; their native windows stay real. - Frontend::open(address, port, page, policy, window); + Frontend::open(address, port, page, policy, window, launch); } } }; diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index f44151a6..c946a392 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -28,7 +28,7 @@ list(APPEND TESTS_LIST WebKitGTKPolicyTests.cpp ContentPolicyTests.cpp HTTPServe list(APPEND TESTS_LIST FormsTests.cpp ReactStoreTests.cpp DomDocumentTests.cpp DomBatchTests.cpp JSFunctionTests.cpp TypeErasedFunctionTests.cpp MessagesTests.cpp IndexFSTests.cpp) list(APPEND TESTS_LIST FileSystemTests.cpp NativeFSTests.cpp DownloadsTests.cpp) list(APPEND TESTS_LIST DefaultFSTests.cpp StdnetShutdownTests.cpp SafePathTests.cpp UISubscribersTests.cpp) -list(APPEND TESTS_LIST BroadcastTests.cpp WebFrontTests.cpp WebLinkTests.cpp CEFPathsTests.cpp CEFMacrosTests.cpp) +list(APPEND TESTS_LIST ViewAssociationTests.cpp BroadcastTests.cpp WebFrontTests.cpp WebLinkTests.cpp CEFPathsTests.cpp CEFMacrosTests.cpp) list(APPEND TESTS_LIST DeveloperTests.cpp WfDriverTests.cpp AutomationTests.cpp AutomationChannelTests.cpp AutomationStdioTests.cpp JasmineConsumerTests.cpp HostTests.cpp LifeTests.cpp StructuredShutdownTests.cpp JsFunctionSenderTests.cpp ApplicationTaskTests.cpp) list(APPEND TESTS_LIST FrontendUrlTests.cpp ApplicationUrlTests.cpp FrontendContractTests.cpp CommandsTests.cpp EmbeddedCoreAssetsTests.cpp) if(WEBFRONT_USE_MDDLOG) @@ -60,7 +60,7 @@ target_compile_definitions(tests PRIVATE WEBFRONT_HOST_PROBE="$, LaunchRecordingFrontend>; + LaunchApp first; + LaunchApp second; + WHEN("each application opens its window") { + LaunchRecordingFrontend::opens = 0; + first.openWindow("index.html"); + const auto firstLaunch = LaunchRecordingFrontend::received; + second.openWindow("index.html"); + const auto secondLaunch = LaunchRecordingFrontend::received; + THEN("the frontend gets a 64-character secret and the origin it must expose it to") { + REQUIRE(LaunchRecordingFrontend::opens == 2); + CHECK(firstLaunch.secret.size() == 64); + CHECK(firstLaunch.origin == "http://127.0.0.1:" + std::string(first.port())); + } + THEN("every application has its own secret") { + CHECK(firstLaunch.secret != secondLaunch.secret); + } + } + } +} diff --git a/test/unit/InjectableNetworking.hpp b/test/unit/InjectableNetworking.hpp index 72126b39..90461254 100644 --- a/test/unit/InjectableNetworking.hpp +++ b/test/unit/InjectableNetworking.hpp @@ -114,6 +114,18 @@ class InjectableSocket : public networking::SocketBaseMock { void close() {} void shutdown(shutdown_type) { ++shutdowns; } + /// The peer address of the next accepted connection, as the server reads it for trustLoopbackClients. + static inline std::atomic peerIsLoopback{false}; + struct PeerAddress { + bool loopback; + bool is_loopback() const { return loopback; } + }; + struct PeerEndpoint { + bool loopback; + PeerAddress address() const { return {loopback}; } + }; + PeerEndpoint remote_endpoint(std::error_code&) const { return {peerIsLoopback.load()}; } + /// The read the WebSocket is waiting for: the test completes it, or the task is stopped. static ManualSender read(networking::buffers::MutableBuffer buffer) { return ManualSender([buffer](ManualSender::Completion completion) { diff --git a/test/unit/MessagesTests.cpp b/test/unit/MessagesTests.cpp index cb14fd11..0ff7c8fb 100644 --- a/test/unit/MessagesTests.cpp +++ b/test/unit/MessagesTests.cpp @@ -25,6 +25,18 @@ SCENARIO("Handshake message") { REQUIRE(handshake->getEndian() == msg::JSEndian::little); } +SCENARIO("Handshake message with the proof of an embedded view") { + // ADR-003: bytes after the two header bytes are the launch secret of ADR-020; the header itself is unchanged. + const std::string proof(64, 'a'); + std::vector raw{std::byte{0x00}, std::byte{0x00}}; + for (const char c : proof) + raw.push_back(static_cast(c)); + auto handshake = msg::Handshake::castFromRawData(std::span(raw)); + REQUIRE(handshake->getEndian() == msg::JSEndian::little); + REQUIRE(handshake->getPayloadSize() == 0); + REQUIRE(raw.size() - sizeof(*handshake) == proof.size()); +} + SCENARIO("Ack message") { msg::Ack ack; diff --git a/test/unit/ViewAssociationTests.cpp b/test/unit/ViewAssociationTests.cpp new file mode 100644 index 00000000..7669ece0 --- /dev/null +++ b/test/unit/ViewAssociationTests.cpp @@ -0,0 +1,160 @@ +// SPDX-License-Identifier: Apache-2.0 OR CECILL-B +/// @brief A connection proves it comes from the view of an embedded frontend by the secret of the launch (#453, ADR-020). +#include "InjectableNetworking.hpp" +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +using namespace webfront; + +namespace webfront::testing { +template +struct LaunchSecret { + static const std::string& of(const Application& app) { return app.viewSecret; } +}; +} // namespace webfront::testing + +namespace { +const std::string upgradeRequest = "GET / HTTP/1.1\r\nHost: localhost\r\nUpgrade: websocket\r\nConnection: Upgrade\r\n" + "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n"; + +struct OneBrowserNet : testing::InjectableNetworking { + static inline bool accepted{}; + static auto Accept(Acceptor&) { + return networking::ex::then(networking::ex::just(), []() -> Socket { + if (std::exchange(accepted, true)) + throw std::system_error(std::make_error_code(std::errc::operation_canceled)); + return Socket{}; + }); + } +}; + +using Socket = testing::InjectableSocket; +using App = BasicWF; + +struct Verdict { + bool embedded = false; + bool local = false; +}; + +// Connects one browser whose handshake carries `proof` after its two header bytes, and reports what the UI says. +Verdict connect(App& app, const std::string& proof) { + Verdict verdict; + bool started = false; + app.onUIStarted([&](App::UI ui) { + verdict.embedded = ui.isEmbeddedView(); + verdict.local = ui.isLocalClient(); + started = true; + }); + Socket::receive(std::as_bytes(std::span(upgradeRequest))); + msg::Handshake handshake; + std::vector payload(handshake.header().begin(), handshake.header().end()); + for (const char c : proof) + payload.push_back(static_cast(c)); + Socket::receive(testing::clientFrame(payload)); + REQUIRE(started); + return verdict; +} + +void freshNetwork() { + Socket::reset(); + Socket::peerIsLoopback = false; + OneBrowserNet::accepted = false; +} +} // namespace + +SCENARIO("A connection is associated with the view of an embedded frontend only by the secret of the launch", "[view-association]") { + freshNetwork(); + App app{WebFrontConfig{.port = "0"}}; + const std::string secret = testing::LaunchSecret::of(app); + + GIVEN("the secret of the launch") { + THEN("it is 256 random bits in lowercase hexadecimal") { + REQUIRE(secret.size() == 64); + REQUIRE(std::ranges::all_of(secret, [](char c) { return std::isxdigit(static_cast(c)) && !std::isupper(static_cast(c)); })); + } + THEN("another application has another one") { + App other{WebFrontConfig{.port = "0"}}; + REQUIRE(testing::LaunchSecret::of(other) != secret); + } + } + WHEN("the handshake presents the secret") { + const auto verdict = connect(app, secret); + THEN("the connection is the embedded view and a local client") { + REQUIRE(verdict.embedded); + REQUIRE(verdict.local); + } + } + WHEN("the handshake presents a wrong secret of the right length") { + auto wrong = secret; + wrong.back() = wrong.back() == '0' ? '1' : '0'; + const auto verdict = connect(app, wrong); + THEN("the connection is neither") { + REQUIRE_FALSE(verdict.embedded); + REQUIRE_FALSE(verdict.local); + } + } + WHEN("the handshake presents a prefix of the secret or the secret with more bytes") { + THEN("neither is accepted") { + REQUIRE_FALSE(connect(app, secret.substr(0, 63)).embedded); + } + } + WHEN("the handshake presents no secret") { + const auto verdict = connect(app, {}); + THEN("the connection is neither, whatever its address") { + REQUIRE_FALSE(verdict.embedded); + REQUIRE_FALSE(verdict.local); + } + } + WHEN("the handshake carries the secret of an earlier launch") { + std::string earlier; + { + App previous{WebFrontConfig{.port = "0"}}; + earlier = testing::LaunchSecret::of(previous); + } + const auto verdict = connect(app, earlier); + THEN("it is rejected: the secret does not survive a restart") { + REQUIRE_FALSE(verdict.embedded); + } + } + WHEN("the handshake carries the secret padded with extra bytes") { + REQUIRE_FALSE(connect(app, secret + "00").embedded); + } +} + +SCENARIO("A loopback peer is a local client only when the application trusts loopback clients", "[view-association]") { + freshNetwork(); + Socket::peerIsLoopback = true; + + GIVEN("the default configuration") { + App app{WebFrontConfig{.port = "0"}}; + const auto verdict = connect(app, {}); + THEN("a loopback peer without the secret is not local") { + REQUIRE_FALSE(verdict.embedded); + REQUIRE_FALSE(verdict.local); + } + } + GIVEN("trustLoopbackClients") { + App app{WebFrontConfig{.port = "0", .trustLoopbackClients = true}}; + const auto verdict = connect(app, {}); + THEN("a loopback peer is local though it is not the embedded view") { + REQUIRE_FALSE(verdict.embedded); + REQUIRE(verdict.local); + } + } + GIVEN("trustLoopbackClients and a peer that is not the loopback") { + Socket::peerIsLoopback = false; + App app{WebFrontConfig{.port = "0", .trustLoopbackClients = true}}; + const auto verdict = connect(app, {}); + THEN("the connection is not local") { + REQUIRE_FALSE(verdict.local); + } + } +} diff --git a/test/web/FrontendLifecycle.cpp b/test/web/FrontendLifecycle.cpp index 2b65f1c1..628a846f 100644 --- a/test/web/FrontendLifecycle.cpp +++ b/test/web/FrontendLifecycle.cpp @@ -5,9 +5,12 @@ #include #include #include +#include #include +#include #include #include +#include #ifndef WEBFRONT_TEST_FRONTEND #error WEBFRONT_TEST_FRONTEND must select an embedded frontend @@ -31,6 +34,33 @@ int show(std::string_view page) { return 0; } +// The page of the view is associated with the view of the frontend; a second connection from the same page, without the +// secret, is not (ADR-020, rule 3). +int checkViewAssociation() { + App app(webfront::WebFrontConfig{.documentRoot = std::filesystem::current_path()}); + std::mutex mutex; + std::vector embedded; + std::vector local; + app.onUIStarted([&](App::UI ui) { + std::scoped_lock lock{mutex}; + embedded.push_back(ui.isEmbeddedView()); + local.push_back(ui.isLocalClient()); + }); + app.cppFunction("startedConnections", [&] { + std::scoped_lock lock{mutex}; + return static_cast(embedded.size()); + }); + app.show("view-association.html"); + std::scoped_lock lock{mutex}; + if (embedded.size() != 2) + throw std::runtime_error("Expected two bridge connections"); + if (!embedded[0] || !local[0]) + throw std::runtime_error("The page of the view is not associated with the view"); + if (embedded[1] || local[1]) + throw std::runtime_error("A connection without the secret was associated with the view"); + return 0; +} + int expectNavigationFailure() { try { webfront::testdriver::QuietFrontend::open("0", "index.html"); @@ -196,6 +226,7 @@ int run(std::string_view mode) { return show("encoded path %23.html?x=1#example"); }); cases.emplace("navigation-failure", expectNavigationFailure); + cases.emplace("view-association", checkViewAssociation); const auto selected = cases.find(mode); if (selected == cases.end()) throw std::runtime_error("Unknown lifecycle scenario"); diff --git a/test/web/view-association.html b/test/web/view-association.html new file mode 100644 index 00000000..4328591f --- /dev/null +++ b/test/web/view-association.html @@ -0,0 +1,27 @@ + + +View association + + From 0efc28203276e447a53d6cff83c957deefa00d11 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 07:55:47 +0100 Subject: [PATCH 02/10] Keep the launch secret out of diagnostics and wait for the WebView2 script registration (#453) The handshake message is logged by its two header bytes only, since log records reach connected browsers and the secret stays valid for the application's lifetime. WebView2 starts the first navigation from the completion handler of AddScriptToExecuteOnDocumentCreated and fails the opening when the registration fails. --- docs/FRONTENDS.md | 2 +- include/webfront/frontend/WebView2.hpp | 32 ++++++++++++++++++++++---- include/webfront/weblink/WebLink.hpp | 5 +++- test/unit/ViewAssociationTests.cpp | 23 ++++++++++++++++++ 4 files changed, 55 insertions(+), 7 deletions(-) diff --git a/docs/FRONTENDS.md b/docs/FRONTENDS.md index d192c9d5..2884b6a5 100644 --- a/docs/FRONTENDS.md +++ b/docs/FRONTENDS.md @@ -38,7 +38,7 @@ on a command line or in a URL. | Engine | Injection at the start of the document | | --- | --- | | WKWebView | `WKUserScript`, `WKUserScriptInjectionTimeAtDocumentStart`, main frame only | -| WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`) | +| WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`); the registration is asynchronous, so the first navigation starts from its completion handler and a failed registration fails the opening | | WebKitGTK | `WebKitUserScript` at document start, top frame, allow list of the application's origin | | CEF | extra browser information given to `CefBrowserView::CreateBrowserView`, read by the renderer process's `OnBrowserCreated` and defined on the window in `OnContextCreated` (the render process app is the one given to `CefExecuteProcess`) | diff --git a/include/webfront/frontend/WebView2.hpp b/include/webfront/frontend/WebView2.hpp index 38d65475..d353750c 100644 --- a/include/webfront/frontend/WebView2.hpp +++ b/include/webfront/frontend/WebView2.hpp @@ -726,10 +726,6 @@ class Session : public std::enable_shared_from_this { Microsoft::WRL::ComPtr settings; check(view->get_Settings(&settings), "getting browser settings"); configureContentSettings(settings.Get(), contentPolicy.options()); - if (!viewLaunch.secret.empty()) { - const auto script = utf16(webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin)); - check(view->AddScriptToExecuteOnDocumentCreated(script.c_str(), nullptr), "installing the view association script"); - } check(view->add_NavigationStarting( Microsoft::WRL::Callback([weak](ICoreWebView2*, ICoreWebView2NavigationStartingEventArgs* args) -> HRESULT { @@ -810,7 +806,33 @@ class Session : public std::enable_shared_from_this { captureRegistration = CaptureRegistration{captureProvider(captureQueue)}; if (viewReady) viewReady(); - check(view->Navigate(url.c_str()), "navigating to application"); + installViewAssociationThenNavigate(); + } + + // AddScriptToExecuteOnDocumentCreated completes asynchronously and only documents created after its completion run the + // script: the initial navigation waits for it, and a registration that fails fails the opening instead of leaving the + // view silently unassociated (ADR-020). + void installViewAssociationThenNavigate() { + if (viewLaunch.secret.empty()) { + check(view->Navigate(url.c_str()), "navigating to application"); + return; + } + auto weak = weak_from_this(); + const auto script = utf16(webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin)); + check(view->AddScriptToExecuteOnDocumentCreated( + script.c_str(), + Microsoft::WRL::Callback([weak](HRESULT result, LPCWSTR) -> HRESULT { + if (const auto self = weak.lock(); self && !self->closed) { + try { + check(result, "installing the view association script"); + check(self->view->Navigate(self->url.c_str()), "navigating to application"); + } catch (...) { + self->fail(); + } + } + return S_OK; + }).Get()), + "starting the view association script installation"); } }; diff --git a/include/webfront/weblink/WebLink.hpp b/include/webfront/weblink/WebLink.hpp index e5729a58..bacbc505 100644 --- a/include/webfront/weblink/WebLink.hpp +++ b/include/webfront/weblink/WebLink.hpp @@ -252,7 +252,10 @@ class WebLink { private: void onBinaryMessage(std::span data) { const log::ContextScope context(linkContext()); - log::infoHex("onMessage(binary) :", data); + // Log records reach connected browsers: a handshake carries the launch secret of an embedded view, so only its + // two header bytes are dumped. + const bool isHandshake = !data.empty() && static_cast(data[0]) == msg::Command::handshake; + log::infoHex("onMessage(binary) :", isHandshake ? data.first(std::min(data.size(), sizeof(msg::Handshake))) : data); if (data.empty()) { log::error("Received an empty WebFront message"); return; diff --git a/test/unit/ViewAssociationTests.cpp b/test/unit/ViewAssociationTests.cpp index 7669ece0..05a04dbf 100644 --- a/test/unit/ViewAssociationTests.cpp +++ b/test/unit/ViewAssociationTests.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -158,3 +159,25 @@ SCENARIO("A loopback peer is a local client only when the application trusts loo } } } + +SCENARIO("The handshake's secret never reaches the diagnostics", "[view-association]") { + freshNetwork(); + App app{WebFrontConfig{.port = "0"}}; + std::vector records; + log::setLogLevel(log::Debug); + const auto sink = log::addSinks([&records](std::string_view text) { records.emplace_back(text); }); + + WHEN("a handshake carrying a recognizable proof is received") { + connect(app, std::string(64, 'Q')); + log::removeSinks(sink); + THEN("the message is logged, but no record contains the proof in text or as a hexadecimal dump") { + REQUIRE(std::ranges::any_of(records, [](const std::string& record) { return record.contains("onMessage(binary)"); })); + for (const auto& record : records) { + REQUIRE_FALSE(record.contains("QQQQ")); + REQUIRE_FALSE(record.contains("51 51 51")); + REQUIRE_FALSE(record.contains("515151")); + } + } + } + log::removeSinks(sink); +} From 660830f3e91a4d442ca2421c8630b0e3a236da76 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 08:47:51 +0100 Subject: [PATCH 03/10] Answer the review of the view association: one handshake per connection, bounded proof, safe script and origin (#453) A repeated handshake no longer resets the stage or the association, and a proof is copied only at the size of a secret. The secret is compared over its whole length, the injected script is refused for an origin or a secret that needs escaping, the origin is written as location.origin writes it, CEF asks the page for its origin, WebFront.js keeps the secret for reconnections, a v4-mapped loopback peer is a loopback, and WebFront links bcrypt on Windows. --- CMakeLists.txt | 2 +- docs/CHANGELOG.md | 6 +- docs/FRONTENDS.md | 13 +- .../ADR-003-protocole-binaire-et-bornes.md | 4 +- ...DR-008-contenu-de-confiance-et-origines.md | 2 +- include/webfront/ViewAssociation.hpp | 34 +- include/webfront/WebFront.hpp | 22 +- include/webfront/frontend/CEF.hpp | 14 +- include/webfront/frontend/WebKitGTK.hpp | 4 +- include/webfront/frontend/WebView2.hpp | 5 +- include/webfront/system/WebFrontJsData.hpp | 1263 +++++++++-------- include/webfront/weblink/WebLink.hpp | 14 +- js/core/WebFront.js | 13 +- test/unit/ViewAssociationTests.cpp | 119 +- test/web/view-association.html | 1 + 15 files changed, 830 insertions(+), 686 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e6f3dda..11107a1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ add_library(WebFront INTERFACE) add_library(WebFront::WebFront ALIAS WebFront) target_link_libraries(WebFront INTERFACE Threads::Threads) if(WIN32) - target_link_libraries(WebFront INTERFACE shell32) + target_link_libraries(WebFront INTERFACE shell32 bcrypt) endif() # Static linkage for CEF compatibility (a global setting: only the top-level project may choose it) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index af761ae2..603194f7 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -5,12 +5,14 @@ - Embedded frontends: a connection proves it comes from the view (#453, ADR-020 rule 3). Each launch creates a random 256-bit secret that the adapter gives to its own view at the start of every top-level document of the application's origin (WKWebView `WKUserScript`, WebView2 `AddScriptToExecuteOnDocumentCreated`, WebKitGTK `WebKitUserScript`, CEF - extra browser information read by the renderer); `WebFront.js` reads it once, removes it and presents it in the handshake + extra browser information read by the renderer); `WebFront.js` takes it when it loads, removes it from the window and presents it in the handshake (ADR-003, ADR-008). `UI::isEmbeddedView()` is true only for that connection and `UI::isLocalClient()` is the only criterion of a local client: it is never deduced from the address. The system browser receives no secret and is never local, unless the application sets `WebFrontConfig::trustLoopbackClients` (off by default, unsafe on a shared machine or behind a proxy or tunnel). A frontend receives the proof through an optional - `open(address, port, file, policy, window, ViewLaunch)` overload. The association does not protect against a script + `open(address, port, file, policy, window, ViewLaunch)` overload. The handshake is accepted once per connection and a proof is copied only at the size of a secret; the + script handed to a view is refused (no association) for an origin or a secret that would need escaping; an IPv4 loopback + seen through a dual-stack socket counts as loopback. The association does not protect against a script admitted into the view. WebView2, WebKitGTK and CEF code is covered by their own CI jobs; WKWebView is also tested here. - HTTP server: dynamic routes (#454, ADR-020 prerequisite). `addRoute(prefix, handler)` on the application answers `GET` and diff --git a/docs/FRONTENDS.md b/docs/FRONTENDS.md index 2884b6a5..2db9f502 100644 --- a/docs/FRONTENDS.md +++ b/docs/FRONTENDS.md @@ -31,8 +31,10 @@ proves nothing: a remote browser behind a local proxy or an SSH tunnel, or anoth Each launch creates a random 256-bit secret. A frontend that implements the `open(..., const ViewLaunch&)` overload gives it to its own view, in the process, at the start of every top-level document whose origin is the application's -(`ViewLaunch::origin`). The page receives it as the window property `__webfrontView`; `WebFront.js` reads it once, removes it and -presents it in the WebSocket handshake. The server compares it in constant time. It is never served over HTTP and never put +(`ViewLaunch::origin`). The page receives it as the window property `__webfrontView`; `WebFront.js` takes it when it loads, removes +it from the window and presents it in the handshake of every connection of that page (a reconnection included). The server +accepts one handshake per connection and compares the secret in constant time; a proof of another size than 64 characters is +not even copied. It is never served over HTTP and never put on a command line or in a URL. | Engine | Injection at the start of the document | @@ -40,7 +42,7 @@ on a command line or in a URL. | WKWebView | `WKUserScript`, `WKUserScriptInjectionTimeAtDocumentStart`, main frame only | | WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`); the registration is asynchronous, so the first navigation starts from its completion handler and a failed registration fails the opening | | WebKitGTK | `WebKitUserScript` at document start, top frame, allow list of the application's origin | -| CEF | extra browser information given to `CefBrowserView::CreateBrowserView`, read by the renderer process's `OnBrowserCreated` and defined on the window in `OnContextCreated` (the render process app is the one given to `CefExecuteProcess`) | +| CEF | extra browser information given to `CefBrowserView::CreateBrowserView`, read by the renderer process's `OnBrowserCreated` and defined on the window by `OnContextCreated` through the same script as the other engines, evaluated in the new context so that the page itself answers for its origin (the render process app is the one given to `CefExecuteProcess`; a separate helper executable must give it its own `ViewSecretRenderApp`) | - The system browser receives no secret (a command line or a history could disclose it, and a remote browser would present it first): its connections are never local, whatever their address. An application that accepts that risk sets @@ -49,7 +51,10 @@ on a command line or in a URL. - The association does not protect against a script admitted into the view (ADR-008): it shares the authority of the bridge and could read the property before `WebFront.js`. An adapter that cannot inject a script simply does not implement the overload. - A custom frontend that wants services restricted to its own view implements the overload and applies - `webfront::detail::viewSecretScript(secret, origin)` (or the engine's equivalent) at the start of the document. + `webfront::detail::viewSecretScript(secret, origin)` (or the engine's equivalent) at the start of the document. The helper + returns an empty script, hence no association, unless the secret is lowercase hexadecimal and the origin a plain http origin; + give it `webfront::detail::browserOrigin(address, port)` (the origin as `location.origin` writes it: lowercase, without port 80), + which `ViewLaunch::origin` already is. ## Window title and size diff --git a/docs/adr/ADR-003-protocole-binaire-et-bornes.md b/docs/adr/ADR-003-protocole-binaire-et-bornes.md index 8728997c..5e71645c 100644 --- a/docs/adr/ADR-003-protocole-binaire-et-bornes.md +++ b/docs/adr/ADR-003-protocole-binaire-et-bornes.md @@ -73,7 +73,9 @@ lancement** d'une vue intégrée (ADR-020, règle 3) : 64 octets ASCII, les cara quels. Sans secret, le message est celui des versions antérieures ; le serveur l'accepte (le pont reste réglé par l'`Origin`, ADR-008) et la connexion n'est simplement pas associée à une vue. Le serveur compare le secret en temps constant à celui de son lancement ; toute autre longueur ou valeur est ignorée sans fermer la connexion. `WebFront.js` ne -transmet que 64 caractères hexadécimaux et retire la propriété qui le porte après l'avoir lue. +transmet que 64 caractères hexadécimaux ; il retire la propriété qui le porte de la fenêtre dès son chargement et le garde +pour les poignées de main de la page. Le serveur n'accepte qu'une poignée de main par connexion (la suivante est ignorée +et ne modifie pas l'association) et ne copie une preuve que si elle compte exactement 64 octets. ## Commande DOM (`domBatch`, code 5, version 1) diff --git a/docs/adr/ADR-008-contenu-de-confiance-et-origines.md b/docs/adr/ADR-008-contenu-de-confiance-et-origines.md index 27b035f5..faaec103 100644 --- a/docs/adr/ADR-008-contenu-de-confiance-et-origines.md +++ b/docs/adr/ADR-008-contenu-de-confiance-et-origines.md @@ -40,7 +40,7 @@ WebFront cible du contenu de confiance, sans TLS ni authentification intégrés. Que le secret de lancement d'une vue intégrée (#453) ne s'ajoute pas au contrôle d'origine : il ne donne aucun accès au pont, que le contrôle d'`Origin` règle seul. Il ne sert qu'à savoir si la connexion vient de la vue de l'application (`UI::isEmbeddedView()`), critère de « client local » des services (ADR-020, règle 3). Il ne protège pas -d'un script admis dans la vue, qui partage l'autorité du pont et pourrait le lire avant `WebFront.js` ; le navigateur +d'un script admis dans la vue, qui partage l'autorité du pont et pourrait le lire avant `WebFront.js`, ou le rejouer depuis une autre connexion tant que la page vit ; le navigateur système n'en reçoit aucun. ## Options écartées et motifs diff --git a/include/webfront/ViewAssociation.hpp b/include/webfront/ViewAssociation.hpp index 67652418..bd9ca239 100644 --- a/include/webfront/ViewAssociation.hpp +++ b/include/webfront/ViewAssociation.hpp @@ -8,8 +8,11 @@ /// view (ADR-008): such a script shares the authority of the bridge and could read the secret before WebFront.js. #pragma once +#include "ApplicationOrigin.hpp" #include "automation/Credentials.hpp" +#include +#include #include #include @@ -33,14 +36,37 @@ inline std::string newViewSecret() { return automation::channel::nonce(); } -/// True when `presented` is the secret of this launch; the comparison takes the same time wherever they differ. +/// True when `presented` is the secret of this launch. Every byte of the launch secret is compared whatever the presented +/// bytes are, and a difference of length is folded into the result, so the time depends only on the (public) secret length. [[nodiscard]] inline bool viewSecretMatches(std::string_view launchSecret, std::string_view presented) noexcept { - return !launchSecret.empty() && automation::channel::sameToken(launchSecret, presented); + if (launchSecret.empty()) + return false; + std::size_t mismatch = launchSecret.size() ^ presented.size(); + for (std::size_t index = 0; index < launchSecret.size(); ++index) { + const unsigned char given = index < presented.size() ? static_cast(presented[index]) : 0; + mismatch |= static_cast(static_cast(launchSecret[index]) ^ given); + } + return mismatch == 0; } -/// The JavaScript that gives `secret` to the document when, and only when, it is a top-level document of origin `origin`. Both are -/// restricted to characters that need no escaping in a string literal. +/// The origin as the browser writes `location.origin`: lowercase, without the default port 80. The comparison of the script +/// below is a string comparison, so an origin written otherwise would never match and the view would stay unassociated. +[[nodiscard]] inline std::string browserOrigin(std::string_view address, std::string_view port) { + auto origin = applicationOrigin(address, port); + std::ranges::transform(origin, origin.begin(), [](unsigned char c) { return static_cast(std::tolower(c)); }); + if (origin.ends_with(":80")) + origin.resize(origin.size() - 3); + return origin; +} + +/// The JavaScript that gives `secret` to the document when, and only when, it is a top-level document of origin `origin`. +/// Returns an empty script (no association) unless `secret` is lowercase hexadecimal and `origin` is made of the characters +/// of a plain http origin: nothing else can be written in a string literal without escaping, and nothing is escaped here. [[nodiscard]] inline std::string viewSecretScript(std::string_view secret, std::string_view origin) { + const auto isHex = [](char c) { return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'); }; + const auto isOrigin = [](char c) { return std::isalnum(static_cast(c)) || std::string_view{":/.[]-"}.contains(c); }; + if (secret.empty() || origin.empty() || !std::ranges::all_of(secret, isHex) || !std::ranges::all_of(origin, isOrigin)) + return {}; std::string script = "if (window === window.top && location.origin === '"; script += origin; script += "') Object.defineProperty(window, '"; diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index a1f1c30d..45e793cd 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -176,6 +176,21 @@ class BasicUI { }; namespace detail { + +/// True for the loopback address of either family, including an IPv4 loopback seen through a dual-stack socket (::ffff:127.0.0.1). +template +[[nodiscard]] bool isLoopbackAddress(const Address& address) { + if (address.is_loopback()) + return true; + if constexpr (requires { address.is_v6(); address.to_v6().is_v4_mapped(); address.to_v6().to_bytes(); }) { + if (address.is_v6()) { + const auto v6 = address.to_v6(); + return v6.is_v4_mapped() && v6.to_bytes()[12] == 127; + } + } + return false; +} + template inline int ensureFrontendInitialized() { static std::once_flag initialized; @@ -407,7 +422,7 @@ class BasicWF { if (trustLoopbackClients) { std::error_code error; const auto peer = socket.remote_endpoint(error); - loopbackPeer = !error && peer.address().is_loopback(); + loopbackPeer = !error && detail::isLoopbackAddress(peer.address()); } } auto link = std::make_shared>(std::move(socket), id, [this](WebLinkEvent event) { @@ -721,7 +736,7 @@ class BasicWF { #endif WindowAction openWindow(std::string_view htmlFilename) { if constexpr (requires(const ViewLaunch& launch) { Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions, launch); }) - Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions, ViewLaunch{viewSecret, detail::applicationOrigin(httpAddress, httpPort)}); + Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions, ViewLaunch{viewSecret, detail::browserOrigin(httpAddress, httpPort)}); else if constexpr (requires { Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions); }) Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy, windowOptions); else if constexpr (requires { Frontend::open(httpAddress, httpPort, htmlFilename, contentPolicy); }) @@ -948,7 +963,8 @@ class BasicWF { std::scoped_lock lock{linksMutex}; if (auto found = webLinks.find(event.webLinkId); found != webLinks.end()) { found->second.stage = Connection::Stage::starting; - found->second.viewAssociated = detail::viewSecretMatches(viewSecret, event.text); + // Raised once, never lowered: the secret is judged at the single handshake WebLink dispatches. + found->second.viewAssociated = found->second.viewAssociated || detail::viewSecretMatches(viewSecret, event.text); } } // Even when a handler throws: the browser must not keep collecting deferred sends. diff --git a/include/webfront/frontend/CEF.hpp b/include/webfront/frontend/CEF.hpp index a10b03e1..5a4f8354 100644 --- a/include/webfront/frontend/CEF.hpp +++ b/include/webfront/frontend/CEF.hpp @@ -285,11 +285,15 @@ class ViewSecretRenderApp : public CefApp, public CefRenderProcessHandler { return; launch = found->second; } - const auto url = frame->GetURL().ToString(); - if (url != launch.origin && !url.starts_with(launch.origin + "/")) + // frame->GetURL() can still be the previous or a blank URL when the context is created: the page itself is asked + // for its origin, by the script every other adapter runs, which only defines the secret for a top-level document of + // the application's origin. + const auto script = webfront::detail::viewSecretScript(launch.secret, launch.origin); + if (script.empty()) return; - context->GetGlobal()->SetValue(CefString(std::string(webfront::detail::viewSecretProperty)), CefV8Value::CreateString(launch.secret), - V8_PROPERTY_ATTRIBUTE_DONTENUM); + CefRefPtr result; + CefRefPtr exception; + context->Eval(script, CefString(), 0, result, exception); } private: @@ -332,6 +336,8 @@ inline void initialize() { argv_ptrs.data() #endif ); + // The renderer processes are this executable started again: this is the app that installs their render process handler + // (a separate helper executable must pass a ViewSecretRenderApp to its own CefExecuteProcess to associate its views). CefRefPtr app(new ViewSecretRenderApp); int exit_code = CefExecuteProcess(main_args, app, nullptr); if (exit_code >= 0) { diff --git a/include/webfront/frontend/WebKitGTK.hpp b/include/webfront/frontend/WebKitGTK.hpp index cc8297db..9a39aae6 100644 --- a/include/webfront/frontend/WebKitGTK.hpp +++ b/include/webfront/frontend/WebKitGTK.hpp @@ -421,9 +421,9 @@ struct Session : FailureState { } void installViewAssociation() { - if (launch.secret.empty()) + const auto source = webfront::detail::viewSecretScript(launch.secret, launch.origin); + if (source.empty()) return; - const auto source = webfront::detail::viewSecretScript(launch.secret, launch.origin); const auto pattern = launch.origin + "/*"; const char* const allowList[] = {pattern.c_str(), nullptr}; const auto script = a.scriptNew(source.c_str(), 1, 0, allowList, nullptr); diff --git a/include/webfront/frontend/WebView2.hpp b/include/webfront/frontend/WebView2.hpp index d353750c..fc4e4583 100644 --- a/include/webfront/frontend/WebView2.hpp +++ b/include/webfront/frontend/WebView2.hpp @@ -813,12 +813,13 @@ class Session : public std::enable_shared_from_this { // script: the initial navigation waits for it, and a registration that fails fails the opening instead of leaving the // view silently unassociated (ADR-020). void installViewAssociationThenNavigate() { - if (viewLaunch.secret.empty()) { + const auto source = webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin); + if (source.empty()) { check(view->Navigate(url.c_str()), "navigating to application"); return; } auto weak = weak_from_this(); - const auto script = utf16(webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin)); + const auto script = utf16(source); check(view->AddScriptToExecuteOnDocumentCreated( script.c_str(), Microsoft::WRL::Callback([weak](HRESULT result, LPCWSTR) -> HRESULT { diff --git a/include/webfront/system/WebFrontJsData.hpp b/include/webfront/system/WebFrontJsData.hpp index e608eedf..f1758af5 100644 --- a/include/webfront/system/WebFrontJsData.hpp +++ b/include/webfront/system/WebFrontJsData.hpp @@ -9,8 +9,8 @@ namespace webfront::fs::generated { struct WebFrontJsData { static constexpr std::string_view encoding{}; - static constexpr std::size_t dataSize{27150}; - static constexpr std::array data{ + static constexpr std::size_t dataSize{27327}; + static constexpr std::array data{ 0x2f2f2f2040627269, 0x65662042726f7773, 0x65722d7369646520, 0x57656246726f6e74, 0x206272696467652e, 0x0a0a2866756e6374, 0x696f6e2028676c6f, 0x62616c29207b0a20, 0x2020202275736520, 0x737472696374223b, 0x0a0a20202020636f, 0x6e737420436f6d6d, 0x616e64203d204f62, 0x6a6563742e667265, 0x657a65287b0a2020, @@ -61,635 +61,640 @@ struct WebFrontJsData { 0x6e73742061727261, 0x79436f646573203d, 0x206e6577204d6170, 0x2841727261792e66, 0x726f6d2861727261, 0x7954797065732c20, 0x285b636f6e737472, 0x7563746f722c2073, 0x7065635d29203d3e, 0x205b737065632e63, 0x6f64652c207b2e2e, 0x2e737065632c2063, 0x6f6e737472756374, 0x6f727d5d29293b0a, 0x0a202020202f2f2f, - 0x20546865206c6175, 0x6e63682073656372, 0x6574206f6620616e, 0x20656d6265646465, 0x6420766965772c20, - 0x6f6e63653a206465, 0x66696e6564206279, 0x2074686520616461, 0x7074657220626566, 0x6f726520616e7920, - 0x736372697074206f, 0x6620746865207061, 0x67652c207468656e, 0x2072656d6f766564, 0x2e0a202020202f2f, - 0x2f20416e79746869, 0x6e67207468617420, 0x6973206e6f742074, 0x6865206578706563, 0x7465642036342068, - 0x657861646563696d, 0x616c206368617261, 0x6374657273206973, 0x2069676e6f726564, 0x2c20736f20612073, - 0x6372697074206361, 0x6e6e6f7420696e6a, 0x656374206f746865, 0x722062797465732e, 0x0a2020202066756e, - 0x6374696f6e207461, 0x6b65566965775365, 0x637265742829207b, 0x0a20202020202020, 0x20636f6e73742064, - 0x657363726970746f, 0x72203d204f626a65, 0x63742e6765744f77, 0x6e50726f70657274, 0x7944657363726970, - 0x746f7228676c6f62, 0x616c2c20225f5f77, 0x656266726f6e7456, 0x69657722293b0a20, 0x2020202020202069, - 0x6620282164657363, 0x726970746f722920, 0x72657475726e2022, 0x223b0a2020202020, 0x20202064656c6574, - 0x6520676c6f62616c, 0x2e5f5f7765626672, 0x6f6e74566965773b, 0x0a20202020202020, 0x20636f6e73742076, - 0x616c7565203d2064, 0x657363726970746f, 0x722e76616c75653b, 0x0a20202020202020, 0x2072657475726e20, - 0x747970656f662076, 0x616c7565203d3d3d, 0x2022737472696e67, 0x22202626202f5e5b, 0x302d39612d665d7b, - 0x36347d242f2e7465, 0x73742876616c7565, 0x29203f2076616c75, 0x65203a2022223b0a, 0x202020207d0a0a20, - 0x20202066756e6374, 0x696f6e206e617469, 0x766549734c697474, 0x6c65456e6469616e, 0x2829207b0a202020, - 0x2020202020636f6e, 0x737420776f726420, 0x3d206e6577205569, 0x6e74333241727261, 0x79285b3078313130, - 0x30303066665d293b, 0x0a20202020202020, 0x2072657475726e20, 0x6e65772055696e74, 0x3841727261792877, - 0x6f72642e62756666, 0x6572295b305d203d, 0x3d3d20307866663b, 0x0a202020207d0a0a, 0x202020202f2f2f20, - 0x5769726520747970, 0x65202d3e20646563, 0x6f6465722c20736f, 0x206465636f646556, 0x616c756520737461, - 0x79732061206c6f6f, 0x6b757020696e7374, 0x656164206f662061, 0x20636861696e206f, 0x6620636f6d706172, - 0x69736f6e732e0a20, 0x2020202f2f2f2045, 0x7665727920747970, 0x6564206172726179, 0x20636f6465207368, - 0x61726573206f6e65, 0x20656e7472793b20, 0x7468652068616e64, 0x6c65722072656164, 0x7320746865207769, - 0x647468206261636b, 0x206f666620746865, 0x20636f64652e0a20, 0x202020636f6e7374, 0x2076616c75654465, - 0x636f64657273203d, 0x206e6577204d6170, 0x285b0a2020202020, 0x2020205b50617261, 0x6d547970652e626f, - 0x6f6c65616e547275, 0x652c202829203d3e, 0x20287b76616c7565, 0x3a20747275652c20, 0x62797465733a2031, - 0x7d295d2c0a202020, 0x20202020205b5061, 0x72616d547970652e, 0x626f6f6c65616e46, 0x616c73652c202829, - 0x203d3e20287b7661, 0x6c75653a2066616c, 0x73652c2062797465, 0x733a20317d295d2c, 0x0a20202020202020, - 0x205b506172616d54, 0x7970652e6e756d62, 0x65722c2028627269, 0x6467652c20747970, 0x652c20766965772c, - 0x206f666673657429, 0x203d3e2062726964, 0x67652e6465636f64, 0x654e756d62657228, 0x766965772c206f66, - 0x66736574295d2c0a, 0x2020202020202020, 0x5b506172616d5479, 0x70652e736d616c6c, 0x537472696e672c20, - 0x286272696467652c, 0x20747970652c2076, 0x6965772c206f6666, 0x73657429203d3e20, 0x6272696467652e64, - 0x65636f6465537472, 0x696e672874797065, 0x2c20766965772c20, 0x6f6666736574295d, 0x2c0a202020202020, - 0x20205b506172616d, 0x547970652e737472, 0x696e672c20286272, 0x696467652c207479, 0x70652c2076696577, - 0x2c206f6666736574, 0x29203d3e20627269, 0x6467652e6465636f, 0x6465537472696e67, 0x28747970652c2076, - 0x6965772c206f6666, 0x736574295d2c0a20, 0x202020202020205b, 0x506172616d547970, 0x652e657863657074, - 0x696f6e2c20286272, 0x696467652c207479, 0x70652c2076696577, 0x2c206f6666736574, 0x29203d3e20627269, - 0x6467652e6465636f, 0x6465537472696e67, 0x28747970652c2076, 0x6965772c206f6666, 0x736574295d2c0a20, - 0x202020202020205b, 0x506172616d547970, 0x652e7475706c652c, 0x2028627269646765, 0x2c20747970652c20, - 0x766965772c206f66, 0x6673657429203d3e, 0x206272696467652e, 0x6465636f64655475, 0x706c652876696577, - 0x2c206f6666736574, 0x295d2c0a20202020, 0x5d293b0a0a202020, 0x20666f722028636f, 0x6e737420636f6465, - 0x206f66205b506172, 0x616d547970652e73, 0x6d616c6c41727261, 0x7955382c202e2e2e, 0x6172726179436f64, - 0x65732e6b65797328, 0x295d290a20202020, 0x2020202076616c75, 0x654465636f646572, 0x732e73657428636f, - 0x64652c2028627269, 0x6467652c20747970, 0x652c20766965772c, 0x206f666673657429, 0x203d3e2062726964, - 0x67652e6465636f64, 0x6554797065644172, 0x7261792874797065, 0x2c20766965772c20, 0x6f66667365742929, - 0x3b0a0a2020202066, 0x756e6374696f6e20, 0x6973547970656441, 0x727261792876616c, 0x756529207b0a2020, - 0x2020202020207265, 0x7475726e20417272, 0x6179427566666572, 0x2e69735669657728, 0x76616c7565292026, - 0x2620212876616c75, 0x6520696e7374616e, 0x63656f6620446174, 0x6156696577293b0a, 0x202020207d0a0a20, - 0x2020202f2f2f2053, 0x686f72742055696e, 0x7438417272617920, 0x7061796c6f616473, 0x2075736520746865, - 0x20636f6d70616374, 0x20736d616c6c4172, 0x7261795538206865, 0x616465722e205369, 0x7a696e6720616e64, - 0x20656e636f64696e, 0x67206d7573742061, 0x67726565206f6e0a, 0x202020202f2f2f20, 0x746869732c20736f, - 0x20626f746820676f, 0x207468726f756768, 0x20686572653a2061, 0x2064697361677265, 0x656d656e7420776f, - 0x756c64206d69732d, 0x73697a6520746865, 0x2073656e64206275, 0x666665722e0a2020, 0x202066756e637469, - 0x6f6e207479706564, 0x4172726179486561, 0x64657253697a6528, 0x76616c756529207b, 0x0a20202020202020, - 0x2072657475726e20, 0x76616c756520696e, 0x7374616e63656f66, 0x2055696e74384172, 0x7261792026262076, - 0x616c75652e6c656e, 0x677468203c203235, 0x36203f2032203a20, 0x353b0a202020207d, 0x0a0a202020206675, - 0x6e6374696f6e2069, 0x734e6f6e4e656761, 0x74697665496e7465, 0x6765722863616e64, 0x696461746529207b, - 0x0a20202020202020, 0x2072657475726e20, 0x4e756d6265722e69, 0x7353616665496e74, 0x656765722863616e, - 0x6469646174652920, 0x26262063616e6469, 0x64617465203e3d20, 0x303b0a202020207d, 0x0a0a202020206675, - 0x6e6374696f6e2072, 0x6571756972654279, 0x7465732876696577, 0x2c206f6666736574, 0x2c20636f756e742c, - 0x2064657363726970, 0x74696f6e29207b0a, 0x2020202020202020, 0x636f6e7374207765, 0x6c6c466f726d6564, - 0x203d2069734e6f6e, 0x4e65676174697665, 0x496e746567657228, 0x6f66667365742920, 0x26262069734e6f6e, - 0x4e65676174697665, 0x496e746567657228, 0x636f756e74293b0a, 0x2020202020202020, 0x696620282177656c, - 0x6c466f726d656420, 0x7c7c206f66667365, 0x74202b20636f756e, 0x74203e2076696577, 0x2e627974654c656e, - 0x677468290a202020, 0x2020202020202020, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72286054, - 0x72756e6361746564, 0x20247b6465736372, 0x697074696f6e7d60, 0x293b0a202020207d, 0x0a0a20202020636c, - 0x6173732057656246, 0x726f6e7442726964, 0x6765207b0a202020, 0x2020202020636f6e, 0x7374727563746f72, - 0x2875726c203d2060, 0x77733a2f2f247b67, 0x6c6f62616c2e6c6f, 0x636174696f6e2e68, 0x6f73747d6029207b, - 0x0a20202020202020, 0x2020202020746869, 0x732e737461746520, 0x3d2022756e696e69, 0x7469616c697a6564, - 0x223b0a2020202020, 0x2020202020202074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x203d2066616c7365, - 0x3b0a202020202020, 0x2020202020207468, 0x69732e6e65787443, 0x616c6c4964203d20, 0x313b0a2020202020, - 0x2020202020202074, 0x6869732e70656e64, 0x696e6743616c6c73, 0x203d206e6577204d, 0x617028293b0a2020, - 0x2020202020202020, 0x2020746869732e72, 0x6561647953657474, 0x6c6564203d206661, 0x6c73653b0a202020, - 0x2020202020202020, 0x20746869732e7265, 0x61647950726f6d69, 0x7365203d206e6577, 0x2050726f6d697365, - 0x28287265736f6c76, 0x652c2072656a6563, 0x7429203d3e207b0a, 0x2020202020202020, 0x2020202020202020, - 0x746869732e726573, 0x6f6c766552656164, 0x79203d207265736f, 0x6c76653b0a202020, 0x2020202020202020, - 0x2020202020746869, 0x732e72656a656374, 0x5265616479203d20, 0x72656a6563743b0a, 0x2020202020202020, - 0x202020207d293b0a, 0x2020202020202020, 0x202020202f2f2057, 0x6974686f75742074, 0x6869732c20612070, - 0x6167652074686174, 0x206e657665722074, 0x6f75636865732077, 0x656246726f6e742e, 0x726561647920776f, - 0x756c642073656520, 0x616e2022756e6861, 0x6e646c65640a2020, 0x2020202020202020, 0x20202f2f2070726f, - 0x6d6973652072656a, 0x656374696f6e2220, 0x7761726e696e6720, 0x6966207468652069, 0x6e697469616c2063, - 0x6f6e6e656374696f, 0x6e206661696c732e, 0x204170706c696361, 0x74696f6e20636f64, 0x65207374696c6c0a, - 0x2020202020202020, 0x202020202f2f2067, 0x6574732069747320, 0x6f776e20696e6465, 0x70656e64656e7420, - 0x736574746c656d65, 0x6e7420766961202e, 0x7468656e28292f2e, 0x636174636828292f, 0x6177616974206f6e, - 0x207468652073616d, 0x652070726f6d6973, 0x653b0a2020202020, 0x202020202020202f, 0x2f20617474616368, - 0x696e672061206861, 0x6e646c6572206865, 0x726520646f65736e, 0x277420636f6e7375, 0x6d65206f72206166, - 0x666563742074686f, 0x73652e0a20202020, 0x2020202020202020, 0x746869732e726561, 0x647950726f6d6973, - 0x652e636174636828, 0x2829203d3e207b7d, 0x293b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, - 0x6574203d206e6577, 0x20576562536f636b, 0x65742875726c2c20, 0x2257656246726f6e, 0x745f302e3122293b, - 0x0a20202020202020, 0x2020202020746869, 0x732e736f636b6574, 0x2e62696e61727954, 0x797065203d202261, - 0x7272617962756666, 0x6572223b0a202020, 0x2020202020202020, 0x20746869732e736f, 0x636b65742e6f6e6f, - 0x70656e203d202829, 0x203d3e2074686973, 0x2e68616e64736861, 0x6b6528293b0a2020, 0x2020202020202020, - 0x2020746869732e73, 0x6f636b65742e6f6e, 0x6d65737361676520, 0x3d206576656e7420, 0x3d3e20746869732e, - 0x6f6e4d6573736167, 0x65286576656e742e, 0x64617461293b0a20, 0x2020202020202020, 0x202020746869732e, - 0x736f636b65742e6f, 0x6e636c6f7365203d, 0x206576656e74203d, 0x3e207b0a20202020, 0x2020202020202020, - 0x20202020636f6e73, 0x742064657461696c, 0x203d206576656e74, 0x2e776173436c6561, 0x6e203f2060636f64, - 0x653d247b6576656e, 0x742e636f64657d20, 0x726561736f6e3d24, 0x7b6576656e742e72, 0x6561736f6e7d6020, - 0x3a2022636f6e6e65, 0x6374696f6e206c6f, 0x7374223b0a202020, 0x2020202020202020, 0x2020202020636f6e, - 0x7374206572726f72, 0x203d206e65772045, 0x72726f7228605765, 0x6246726f6e742063, 0x6f6e6e656374696f, - 0x6e20636c6f736564, 0x3a20247b64657461, 0x696c7d60293b0a20, 0x2020202020202020, 0x2020202020202074, - 0x6869732e73657474, 0x6c65526561647952, 0x656a656374656428, 0x6572726f72293b0a, 0x2020202020202020, - 0x2020202020202020, 0x666f722028636f6e, 0x73742070656e6469, 0x6e67206f66207468, 0x69732e70656e6469, - 0x6e6743616c6c732e, 0x76616c7565732829, 0x290a202020202020, 0x2020202020202020, 0x2020202020207065, - 0x6e64696e672e7265, 0x6a65637428657272, 0x6f72293b0a202020, 0x2020202020202020, 0x2020202020746869, - 0x732e70656e64696e, 0x6743616c6c732e63, 0x6c65617228293b0a, 0x2020202020202020, 0x2020202020202020, - 0x746869732e737461, 0x7465203d2022636c, 0x6f736564223b0a20, 0x2020202020202020, 0x2020202020202063, - 0x6f6e736f6c652e6c, 0x6f6728605b576562, 0x46726f6e7420636c, 0x6f73655d20247b64, 0x657461696c7d6029, - 0x3b0a202020202020, 0x2020202020207d3b, 0x0a20202020202020, 0x2020202020746869, 0x732e736f636b6574, - 0x2e6f6e6572726f72, 0x203d202829203d3e, 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, - 0x206572726f72203d, 0x206e657720457272, 0x6f72282257656246, 0x726f6e7420636f6e, 0x6e656374696f6e20, - 0x6661696c65642229, 0x3b0a202020202020, 0x2020202020202020, 0x2020746869732e73, 0x6574746c65526561, - 0x647952656a656374, 0x6564286572726f72, 0x293b0a2020202020, 0x2020202020202020, 0x202020636f6e736f, - 0x6c652e6572726f72, 0x28225b5765624672, 0x6f6e7420736f636b, 0x6574206572726f72, 0x5d222c206572726f, - 0x72293b0a20202020, 0x2020202020202020, 0x7d3b0a2020202020, 0x2020207d0a0a2020, 0x2020202020202f2f, - 0x2f205265736f6c76, 0x6573206f6e636520, 0x7468652057656253, 0x6f636b6574206861, 0x6e647368616b6520, - 0x69732061636b6e6f, 0x776c65646765642c, 0x2072656a65637473, 0x2069662074686520, 0x696e697469616c20, - 0x636f6e6e65637469, 0x6f6e0a2020202020, 0x2020202f2f2f2063, 0x6c6f736573206f72, 0x206661696c732062, - 0x65666f7265207468, 0x61742e20446f6573, 0x206e6f7420726566, 0x6c656374206c6174, 0x657220646973636f, - 0x6e6e656374733b20, 0x7365652070656e64, 0x696e6743616c6c73, 0x2f73746174652e0a, 0x2020202020202020, - 0x6765742072656164, 0x792829207b0a2020, 0x2020202020202020, 0x202072657475726e, 0x20746869732e7265, - 0x61647950726f6d69, 0x73653b0a20202020, 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f2052656a6563, - 0x7473207468652069, 0x6e697469616c2d72, 0x656164696e657373, 0x2070726f6d697365, 0x206174206d6f7374, - 0x206f6e63652c2061, 0x6e64206f6e6c7920, 0x7768696c65207374, 0x696c6c2077616974, 0x696e67206f6e2074, - 0x68650a2020202020, 0x2020202f2f2f2068, 0x616e647368616b65, 0x2e2041206661696c, 0x656420636f6e6e65, - 0x6374696f6e207479, 0x706963616c6c7920, 0x666972657320626f, 0x746820606572726f, 0x726020616e642060, - 0x636c6f7365602c20, 0x616e642061206c61, 0x7465720a20202020, 0x202020202f2f2f20, 0x646973636f6e6e65, - 0x6374202861667465, 0x72206c696e6b696e, 0x6729206d75737420, 0x6e6f742072652d73, 0x6574746c6520616e, - 0x20616c7265616479, 0x2d7265736f6c7665, 0x6420607265616479, 0x603b207468697320, 0x67756172640a2020, - 0x2020202020202f2f, 0x2f206d616b657320, 0x6576657279206f6e, 0x65206f662074686f, 0x7365206361736573, - 0x2061206861726d6c, 0x657373206e6f2d6f, 0x7020616674657220, 0x7468652066697273, 0x7420736574746c65, - 0x6d656e742e0a2020, 0x2020202020207365, 0x74746c6552656164, 0x7952656a65637465, 0x64286572726f7229, - 0x207b0a2020202020, 0x2020202020202069, 0x662028746869732e, 0x7265616479536574, 0x746c6564207c7c20, - 0x746869732e737461, 0x7465203d3d3d2022, 0x6c696e6b65642229, 0x2072657475726e3b, 0x0a20202020202020, - 0x2020202020746869, 0x732e726561647953, 0x6574746c6564203d, 0x20747275653b0a20, 0x2020202020202020, - 0x202020746869732e, 0x72656a6563745265, 0x616479286572726f, 0x72293b0a20202020, 0x202020207d0a0a20, - 0x2020202020202068, 0x616e647368616b65, 0x2829207b0a202020, 0x2020202020202020, 0x20746869732e7374, - 0x617465203d202268, 0x616e647368616b69, 0x6e67223b0a202020, 0x2020202020202020, 0x202f2f20416e2065, - 0x6d62656464656420, 0x66726f6e74656e64, 0x2067697665732069, 0x7473207669657720, 0x61207065722d6c61, - 0x756e636820736563, 0x7265742061742074, 0x6865207374617274, 0x206f662074686520, 0x646f63756d656e74, - 0x20284144522d3032, 0x30292e2049742069, 0x730a202020202020, 0x2020202020202f2f, 0x2070726573656e74, - 0x6564206f6e63652c, 0x20686572652c2061, 0x6e642072656d6f76, 0x656420736f207468, 0x6174207468652070, - 0x61676520646f6573, 0x206e6f74206b6565, 0x702072656164696e, 0x672069743b207468, 0x652073797374656d, - 0x2062726f77736572, 0x20686173206e6f6e, 0x652e0a2020202020, 0x2020202020202063, 0x6f6e737420736563, - 0x726574203d207461, 0x6b65566965775365, 0x6372657428293b0a, 0x2020202020202020, 0x20202020636f6e73, - 0x7420686561646572, 0x203d205b436f6d6d, 0x616e642e68616e64, 0x7368616b652c206e, 0x617469766549734c, - 0x6974746c65456e64, 0x69616e2829203f20, 0x30203a20315d3b0a, 0x2020202020202020, 0x20202020666f7220, - 0x286c657420696e64, 0x6578203d20303b20, 0x696e646578203c20, 0x7365637265742e6c, 0x656e6774683b202b, - 0x2b696e6465782920, 0x6865616465722e70, 0x7573682873656372, 0x65742e6368617243, 0x6f6465417428696e, - 0x6465782920262030, 0x783766293b0a2020, 0x2020202020202020, 0x2020746869732e73, 0x6f636b65742e7365, - 0x6e64286e65772055, 0x696e743841727261, 0x7928686561646572, 0x29293b0a20202020, 0x202020207d0a0a20, - 0x202020202020206f, 0x6e4d657373616765, 0x2862756666657229, 0x207b0a2020202020, 0x2020202020202063, - 0x6f6e737420766965, 0x77203d206e657720, 0x4461746156696577, 0x2862756666657229, 0x3b0a202020202020, - 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, 0x20302c20312c2022, 0x6d65737361676520, - 0x6865616465722229, 0x3b0a202020202020, 0x2020202020207377, 0x6974636820287669, 0x65772e6765745569, - 0x6e74382830292920, 0x7b0a202020202020, 0x2020202020206361, 0x736520436f6d6d61, 0x6e642e61636b3a0a, - 0x2020202020202020, 0x2020202020202020, 0x7265717569726542, 0x7974657328766965, 0x772c20302c20322c, - 0x202261636b6e6f77, 0x6c656467656d656e, 0x7422293b0a202020, 0x2020202020202020, 0x2020202020696620, - 0x28746869732e7374, 0x617465203d3d3d20, 0x2268616e64736861, 0x6b696e672229207b, 0x0a20202020202020, - 0x2020202020202020, 0x2020202020746869, 0x732e6c6974746c65, 0x456e6469616e203d, 0x20766965772e6765, - 0x7455696e74382831, 0x29203d3d3d20303b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746869, - 0x732e737461746520, 0x3d20226c696e6b65, 0x64223b0a20202020, 0x2020202020202020, 0x2020202020202020, - 0x746869732e726561, 0x6479536574746c65, 0x64203d2074727565, 0x3b0a202020202020, 0x2020202020202020, - 0x2020202020207468, 0x69732e7265736f6c, 0x7665526561647928, 0x293b0a2020202020, 0x2020202020202020, - 0x2020207d0a202020, 0x2020202020202020, 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, - 0x6361736520436f6d, 0x6d616e642e746578, 0x74436f6d6d616e64, 0x3a0a202020202020, 0x2020202020202020, - 0x2020746869732e68, 0x616e646c65546578, 0x74436f6d6d616e64, 0x2876696577293b0a, 0x2020202020202020, - 0x2020202020202020, 0x627265616b3b0a20, 0x2020202020202020, 0x2020206361736520, 0x436f6d6d616e642e, - 0x63616c6c46756e63, 0x74696f6e3a0a2020, 0x2020202020202020, 0x2020202020207468, 0x69732e63616c6c4a, - 0x7346756e6374696f, 0x6e2876696577293b, 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, - 0x2020202020202020, 0x2020202063617365, 0x20436f6d6d616e64, 0x2e646f6d42617463, 0x683a0a2020202020, - 0x2020202020202020, 0x202020747279207b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, - 0x28766965772e6279, 0x74654c656e677468, 0x203e203130323420, 0x2a20313032342920, 0x7468726f77206e65, - 0x772052616e676545, 0x72726f722822444f, 0x4d20626174636820, 0x6578636565647320, 0x31204d694222293b, - 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, 0x2821746869732e64, 0x6f6d426174636848, - 0x616e646c65722920, 0x7468726f77206e65, 0x77204572726f7228, 0x22444f4d20696e74, 0x6572707265746572, - 0x206973206e6f7420, 0x696e7374616c6c65, 0x6422293b0a202020, 0x2020202020202020, 0x2020202020202020, - 0x20746869732e646f, 0x6d42617463684861, 0x6e646c6572286e65, 0x772055696e743841, 0x7272617928627566, - 0x66657229293b0a20, 0x2020202020202020, 0x202020202020207d, 0x2063617463682028, 0x6572726f7229207b, - 0x0a20202020202020, 0x2020202020202020, 0x2020202020636f6e, 0x7374206964203d20, 0x766965772e627974, - 0x654c656e67746820, 0x3e3d2036203f2076, 0x6965772e67657455, 0x696e74333228322c, 0x207472756529203a, - 0x20303b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x746869732e637070, 0x46756e6374696f6e, - 0x28227766446f6d2e, 0x72656a6563746564, 0x22292869642c2053, 0x7472696e67286572, 0x726f722e6d657373, - 0x616765207c7c2065, 0x72726f72292e736c, 0x69636528302c2034, 0x30393629292e6361, 0x746368282829203d, - 0x3e207b7d293b0a20, 0x2020202020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020202020, - 0x20627265616b3b0a, 0x2020202020202020, 0x2020202063617365, 0x20436f6d6d616e64, 0x2e66756e6374696f, - 0x6e52657475726e3a, 0x0a20202020202020, 0x2020202020202020, 0x20746869732e6861, 0x6e646c6546756e63, - 0x74696f6e52657475, 0x726e287669657729, 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, - 0x0a20202020202020, 0x2020202020646566, 0x61756c743a0a2020, 0x2020202020202020, 0x2020202020207468, - 0x726f77206e657720, 0x4572726f72286055, 0x6e737570706f7274, 0x6564205765624672, 0x6f6e7420636f6d6d, - 0x616e6420247b7669, 0x65772e6765745569, 0x6e74382830297d60, 0x293b0a2020202020, 0x202020202020207d, - 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202068616e64, 0x6c6554657874436f, 0x6d6d616e64287669, - 0x657729207b0a2020, 0x2020202020202020, 0x2020726571756972, 0x6542797465732876, 0x6965772c20302c20, - 0x342c202274657874, 0x20636f6d6d616e64, 0x2068656164657222, 0x293b0a2020202020, 0x2020202020202063, - 0x6f6e7374206c656e, 0x677468203d207669, 0x65772e6765745569, 0x6e7431362832293b, 0x0a20202020202020, - 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x342c206c656e6774, 0x682c202274657874, - 0x20636f6d6d616e64, 0x207061796c6f6164, 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374207465, - 0x7874203d206e6577, 0x2054657874446563, 0x6f64657228227574, 0x662d3822292e6465, 0x636f6465286e6577, - 0x2055696e74384172, 0x7261792876696577, 0x2e6275666665722c, 0x20766965772e6279, 0x74654f6666736574, - 0x202b20342c206c65, 0x6e67746829293b0a, 0x2020202020202020, 0x2020202073776974, 0x6368202876696577, - 0x2e67657455696e74, 0x3828312929207b0a, 0x2020202020202020, 0x2020202063617365, 0x2054657874436f6d, - 0x6d616e642e646562, 0x75674c6f673a0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e736f6c652e6c, - 0x6f67287465787429, 0x3b0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, - 0x2020202020636173, 0x652054657874436f, 0x6d6d616e642e696e, 0x6a65637453637269, 0x70743a207b0a2020, - 0x2020202020202020, 0x202020202020636f, 0x6e73742073637269, 0x7074203d20646f63, 0x756d656e742e6372, - 0x65617465456c656d, 0x656e742822736372, 0x69707422293b0a20, 0x2020202020202020, 0x2020202020202073, - 0x63726970742e7465, 0x7874203d20746578, 0x743b0a2020202020, 0x2020202020202020, 0x20202028646f6375, - 0x6d656e742e626f64, 0x79203f3f20646f63, 0x756d656e742e6865, 0x6164203f3f20646f, 0x63756d656e742e64, - 0x6f63756d656e7445, 0x6c656d656e74292e, 0x617070656e644368, 0x696c642873637269, 0x7074293b0a202020, - 0x2020202020202020, 0x2020202020627265, 0x616b3b0a20202020, 0x2020202020202020, 0x7d0a202020202020, - 0x2020202020206465, 0x6661756c743a0a20, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, - 0x204572726f722860, 0x556e737570706f72, 0x7465642057656246, 0x726f6e7420746578, 0x7420636f6d6d616e, - 0x6420247b76696577, 0x2e67657455696e74, 0x382831297d60293b, 0x0a20202020202020, 0x20202020207d0a20, - 0x202020202020207d, 0x0a0a202020202020, 0x202063616c6c4a73, 0x46756e6374696f6e, 0x286d657373616765, - 0x29207b0a20202020, 0x2020202020202020, 0x7265717569726542, 0x79746573286d6573, 0x736167652c20302c, - 0x20382c202266756e, 0x6374696f6e206361, 0x6c6c206865616465, 0x7222293b0a202020, 0x2020202020202020, - 0x20636f6e73742063, 0x6f756e74203d206d, 0x6573736167652e67, 0x657455696e743828, 0x31293b0a20202020, - 0x2020202020202020, 0x636f6e7374206361, 0x6c6c4964203d206d, 0x6573736167652e67, 0x657455696e743136, - 0x28322c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, 0x2020202020202020, 0x2020202069662028, - 0x636f756e74203d3d, 0x3d2030290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, - 0x72726f7228224675, 0x6e6374696f6e2063, 0x616c6c2068617320, 0x6e6f2066756e6374, 0x696f6e206e616d65, - 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374207061, 0x796c6f616453697a, 0x65203d206d657373, - 0x6167652e67657455, 0x696e74333228342c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, - 0x2020202020202020, 0x2072657175697265, 0x4279746573286d65, 0x73736167652c2038, 0x2c207061796c6f61, - 0x6453697a652c2022, 0x66756e6374696f6e, 0x2063616c6c207061, 0x796c6f616422293b, 0x0a20202020202020, - 0x2020202020636f6e, 0x7374207061796c6f, 0x6164203d206e6577, 0x2044617461566965, 0x77286d6573736167, - 0x652e627566666572, 0x2c206d6573736167, 0x652e627974654f66, 0x66736574202b2038, 0x2c207061796c6f61, - 0x6453697a65293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74205b6e616d6573, 0x2c206e616d654279, - 0x7465735d203d2074, 0x6869732e6465636f, 0x6465506172616d65, 0x7465727328312c20, 0x7061796c6f616429, - 0x3b0a202020202020, 0x202020202020636f, 0x6e7374205b706172, 0x616d65746572732c, 0x20706172616d6574, - 0x657242797465735d, 0x203d20746869732e, 0x6465636f64655061, 0x72616d6574657273, 0x28636f756e74202d, - 0x20312c207061796c, 0x6f61642c206e616d, 0x654279746573293b, 0x0a20202020202020, 0x2020202020696620, - 0x286e616d65427974, 0x6573202b20706172, 0x616d657465724279, 0x74657320213d3d20, 0x7061796c6f616453, - 0x697a65290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, 0x72726f7228224675, - 0x6e6374696f6e2063, 0x616c6c20636f6e74, 0x61696e7320747261, 0x696c696e67207061, 0x796c6f6164206461, - 0x746122293b0a2020, 0x2020202020202020, 0x20206c6574206578, 0x65637574696f6e3b, 0x0a20202020202020, - 0x2020202020747279, 0x207b0a2020202020, 0x2020202020202020, 0x2020206578656375, 0x74696f6e203d2074, - 0x6869732e65786563, 0x75746546756e6374, 0x696f6e286e616d65, 0x735b305d2c207061, 0x72616d6574657273, - 0x293b0a2020202020, 0x202020202020207d, 0x2063617463682028, 0x6572726f7229207b, 0x0a20202020202020, - 0x2020202020202020, 0x20746869732e7265, 0x706f727443616c6c, 0x4661696c75726528, 0x63616c6c49642c20, - 0x6572726f72293b0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e3b0a, 0x2020202020202020, - 0x202020207d0a2020, 0x2020202020202020, 0x20202f2f2063616c, 0x6c49642030206d65, 0x616e732074686520, - 0x63616c6c65722069, 0x73206e6f74207761, 0x6974696e6720666f, 0x7220616e79746869, 0x6e672c20736f2074, - 0x6865726520697320, 0x6e6f7468696e6720, 0x746f2073656e6420, 0x6261636b2e0a2020, 0x2020202020202020, - 0x2020696620286361, 0x6c6c496420213d3d, 0x2030290a20202020, 0x2020202020202020, 0x2020202050726f6d, - 0x6973652e7265736f, 0x6c76652865786563, 0x7574696f6e292e74, 0x68656e280a202020, 0x2020202020202020, - 0x2020202020202020, 0x2076616c7565203d, 0x3e20746869732e72, 0x65706f727443616c, 0x6c53756363657373, - 0x2863616c6c49642c, 0x2076616c7565292c, 0x0a20202020202020, 0x2020202020202020, 0x2020202020657272, - 0x6f72203d3e207468, 0x69732e73656e6446, 0x756e6374696f6e45, 0x72726f722863616c, 0x6c49642c20657272, - 0x6f7229293b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x207265706f727443, 0x616c6c4661696c75, - 0x72652863616c6c49, 0x642c206572726f72, 0x29207b0a20202020, 0x2020202020202020, 0x6966202863616c6c, - 0x4964203d3d3d2030, 0x290a202020202020, 0x2020202020202020, 0x2020636f6e736f6c, 0x652e6572726f7228, - 0x225b57656246726f, 0x6e74204a61766153, 0x6372697074206361, 0x6c6c5d222c206572, 0x726f72293b0a2020, - 0x2020202020202020, 0x2020656c73650a20, 0x2020202020202020, 0x2020202020202074, 0x6869732e73656e64, - 0x46756e6374696f6e, 0x4572726f72286361, 0x6c6c49642c206572, 0x726f72293b0a2020, 0x2020202020207d0a, - 0x0a20202020202020, 0x207265706f727443, 0x616c6c5375636365, 0x73732863616c6c49, 0x642c2076616c7565, - 0x29207b0a20202020, 0x2020202020202020, 0x747279207b0a2020, 0x2020202020202020, 0x2020202020207468, - 0x69732e73656e6446, 0x756e6374696f6e52, 0x657475726e286361, 0x6c6c49642c207661, 0x6c7565293b0a2020, - 0x2020202020202020, 0x20207d2063617463, 0x6820286572726f72, 0x29207b0a20202020, 0x2020202020202020, - 0x2020202074686973, 0x2e73656e6446756e, 0x6374696f6e457272, 0x6f722863616c6c49, 0x642c206572726f72, - 0x293b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202065786563, - 0x75746546756e6374, 0x696f6e286e616d65, 0x2c20617267732920, 0x7b0a202020202020, 0x202020202020636f, - 0x6e73742070617468, 0x203d206e616d652e, 0x73706c697428222e, 0x22293b0a20202020, 0x2020202020202020, - 0x636f6e7374206d65, 0x6d626572203d2070, 0x6174682e706f7028, 0x293b0a2020202020, 0x202020202020206c, - 0x657420636f6e7465, 0x7874203d20676c6f, 0x62616c3b0a202020, 0x2020202020202020, 0x20666f722028636f, - 0x6e737420636f6d70, 0x6f6e656e74206f66, 0x207061746829207b, 0x0a20202020202020, 0x2020202020202020, - 0x2069662028636f6e, 0x74657874203d3d20, 0x6e756c6c207c7c20, 0x2128636f6d706f6e, 0x656e7420696e2063, - 0x6f6e746578742929, 0x0a20202020202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, - 0x72726f7228604a61, 0x7661536372697074, 0x206e616d65737061, 0x63652027247b636f, 0x6d706f6e656e747d, - 0x2720776173206e6f, 0x7420666f756e6420, 0x7768696c65207265, 0x736f6c76696e6720, 0x27247b6e616d657d, - 0x2760293b0a202020, 0x2020202020202020, 0x2020202020636f6e, 0x74657874203d2063, 0x6f6e746578745b63, - 0x6f6d706f6e656e74, 0x5d3b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020696620, - 0x28636f6e74657874, 0x203d3d206e756c6c, 0x207c7c2074797065, 0x6f6620636f6e7465, 0x78745b6d656d6265, - 0x725d20213d3d2022, 0x66756e6374696f6e, 0x22290a2020202020, 0x2020202020202020, 0x2020207468726f77, - 0x206e657720457272, 0x6f7228604a617661, 0x5363726970742066, 0x756e6374696f6e20, 0x27247b6e616d657d, - 0x2720776173206e6f, 0x7420666f756e6460, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e20636f, - 0x6e746578745b6d65, 0x6d6265725d282e2e, 0x2e61726773293b0a, 0x2020202020202020, 0x7d0a0a2020202020, - 0x20202068616e646c, 0x6546756e6374696f, 0x6e52657475726e28, 0x6d65737361676529, 0x207b0a2020202020, - 0x2020202020202072, 0x6571756972654279, 0x746573286d657373, 0x6167652c20302c20, 0x382c202266756e63, - 0x74696f6e20726574, 0x75726e2068656164, 0x657222293b0a2020, 0x2020202020202020, 0x2020636f6e737420, - 0x63616c6c4964203d, 0x206d657373616765, 0x2e67657455696e74, 0x313628322c207468, 0x69732e6c6974746c, - 0x65456e6469616e29, 0x3b0a202020202020, 0x202020202020636f, 0x6e73742070656e64, 0x696e67203d207468, - 0x69732e70656e6469, 0x6e6743616c6c732e, 0x6765742863616c6c, 0x4964293b0a202020, 0x2020202020202020, - 0x2069662028217065, 0x6e64696e67290a20, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, - 0x204572726f722860, 0x46756e6374696f6e, 0x2072657475726e20, 0x68617320756e6b6e, 0x6f776e2063616c6c, - 0x20696420247b6361, 0x6c6c49647d60293b, 0x0a20202020202020, 0x2020202020746869, 0x732e70656e64696e, - 0x6743616c6c732e64, 0x656c657465286361, 0x6c6c4964293b0a0a, 0x2020202020202020, 0x202020202f2f2041, - 0x206465636f646520, 0x6661696c75726520, 0x68617320746f2073, 0x6574746c65207468, 0x652070656e64696e, - 0x672063616c6c2072, 0x6174686572207468, 0x616e206573636170, 0x6520696e746f2074, 0x686520736f636b65, - 0x742068616e646c65, 0x722c0a2020202020, 0x202020202020202f, 0x2f206f7468657277, 0x6973652074686520, - 0x63616c6c65722773, 0x2070726f6d697365, 0x20776f756c642068, 0x616e6720666f7265, 0x7665722e0a202020, - 0x2020202020202020, 0x20747279207b0a20, 0x2020202020202020, 0x2020202020202074, 0x6869732e73657474, - 0x6c6552657475726e, 0x2870656e64696e67, 0x2c206d6573736167, 0x65293b0a20202020, 0x2020202020202020, - 0x7d20636174636820, 0x286572726f722920, 0x7b0a202020202020, 0x2020202020202020, 0x202070656e64696e, - 0x672e72656a656374, 0x286572726f72293b, 0x0a20202020202020, 0x20202020207d0a20, 0x202020202020207d, - 0x0a0a202020202020, 0x2020736574746c65, 0x52657475726e2870, 0x656e64696e672c20, 0x6d65737361676529, - 0x207b0a2020202020, 0x2020202020202063, 0x6f6e737420636f75, 0x6e74203d206d6573, 0x736167652e676574, - 0x55696e7438283129, 0x3b0a202020202020, 0x202020202020636f, 0x6e7374207061796c, 0x6f616453697a6520, - 0x3d206d6573736167, 0x652e67657455696e, 0x74333228342c2074, 0x6869732e6c697474, 0x6c65456e6469616e, - 0x293b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x746573286d657373, 0x6167652c20382c20, - 0x7061796c6f616453, 0x697a652c20226675, 0x6e6374696f6e2072, 0x657475726e207061, 0x796c6f616422293b, - 0x0a20202020202020, 0x2020202020636f6e, 0x7374207061796c6f, 0x6164203d206e6577, 0x2044617461566965, - 0x77286d6573736167, 0x652e627566666572, 0x2c206d6573736167, 0x652e627974654f66, 0x66736574202b2038, - 0x2c207061796c6f61, 0x6453697a65293b0a, 0x0a20202020202020, 0x2020202020696620, 0x28746869732e6361, - 0x7272696573457863, 0x657074696f6e2863, 0x6f756e742c207061, 0x796c6f616453697a, 0x652c207061796c6f, - 0x61642929207b0a20, 0x2020202020202020, 0x2020202020202070, 0x656e64696e672e72, 0x656a656374286e65, - 0x77204572726f7228, 0x746869732e73696e, 0x676c6556616c7565, 0x287061796c6f6164, 0x2c207061796c6f61, - 0x6453697a652c2022, 0x457863657074696f, 0x6e222929293b0a20, 0x2020202020202020, 0x2020202020202072, - 0x657475726e3b0a20, 0x2020202020202020, 0x2020207d0a202020, 0x2020202020202020, 0x2069662028636f75, - 0x6e74203d3d3d2030, 0x29207b0a20202020, 0x2020202020202020, 0x2020202069662028, 0x7061796c6f616453, - 0x697a6520213d3d20, 0x30290a2020202020, 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, - 0x204572726f722822, 0x566f696420726574, 0x75726e20636f6e74, 0x61696e7320706179, 0x6c6f616420646174, - 0x6122293b0a202020, 0x2020202020202020, 0x202020202070656e, 0x64696e672e726573, 0x6f6c766528756e64, - 0x6566696e6564293b, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e3b, 0x0a20202020202020, - 0x20202020207d0a20, 0x2020202020202020, 0x2020206966202863, 0x6f756e7420213d3d, 0x2031290a20202020, - 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f72282246756e, 0x6374696f6e207265, - 0x7475726e206d7573, 0x7420636f6e746169, 0x6e207a65726f206f, 0x72206f6e65207661, 0x6c756522293b0a20, - 0x2020202020202020, 0x20202070656e6469, 0x6e672e7265736f6c, 0x766528746869732e, 0x73696e676c655661, - 0x6c7565287061796c, 0x6f61642c20706179, 0x6c6f616453697a65, 0x2c202246756e6374, 0x696f6e2229293b0a, - 0x2020202020202020, 0x7d0a0a2020202020, 0x2020206361727269, 0x6573457863657074, 0x696f6e28636f756e, - 0x742c207061796c6f, 0x616453697a652c20, 0x7061796c6f616429, 0x207b0a2020202020, 0x2020202020202069, - 0x662028636f756e74, 0x20213d3d2031207c, 0x7c207061796c6f61, 0x6453697a65203d3d, 0x3d20302920726574, - 0x75726e2066616c73, 0x653b0a2020202020, 0x2020202020202072, 0x657475726e207061, 0x796c6f61642e6765, - 0x7455696e74382830, 0x29203d3d3d205061, 0x72616d547970652e, 0x657863657074696f, 0x6e3b0a2020202020, - 0x2020207d0a0a2020, 0x2020202020202f2f, 0x2f204465636f6465, 0x732065786163746c, 0x79206f6e65207661, - 0x6c756520616e6420, 0x72656a6563747320, 0x616e792062797465, 0x73206c656674206f, 0x7665722061667465, - 0x722069742e0a2020, 0x2020202020207369, 0x6e676c6556616c75, 0x65287061796c6f61, 0x642c207061796c6f, - 0x616453697a652c20, 0x7768617429207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74205b76616c7565, - 0x732c20636f6e7375, 0x6d65645d203d2074, 0x6869732e6465636f, 0x6465506172616d65, 0x7465727328312c20, - 0x7061796c6f616429, 0x3b0a202020202020, 0x2020202020206966, 0x2028636f6e73756d, 0x656420213d3d2070, - 0x61796c6f61645369, 0x7a65290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, - 0x726f722860247b77, 0x6861747d20726574, 0x75726e20636f6e74, 0x61696e7320747261, 0x696c696e67207061, - 0x796c6f6164206461, 0x746160293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x2076616c7565735b, - 0x305d3b0a20202020, 0x202020207d0a0a20, 0x2020202020202064, 0x65636f6465506172, 0x616d657465727328, - 0x636f756e742c2076, 0x6965772c206f6666, 0x736574203d203029, 0x207b0a2020202020, 0x2020202020202063, - 0x6f6e73742076616c, 0x756573203d205b5d, 0x3b0a202020202020, 0x2020202020206c65, 0x7420637572736f72, - 0x203d206f66667365, 0x743b0a2020202020, 0x2020202020202066, 0x6f7220286c657420, 0x696e646578203d20, - 0x303b20696e646578, 0x203c20636f756e74, 0x3b202b2b696e6465, 0x7829207b0a202020, 0x2020202020202020, - 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x637572736f722c20, 0x312c202270617261, - 0x6d65746572207479, 0x706522293b0a2020, 0x2020202020202020, 0x202020202020636f, 0x6e7374207b76616c, - 0x75652c2062797465, 0x737d203d20746869, 0x732e6465636f6465, 0x56616c7565287669, 0x65772e6765745569, - 0x6e74382863757273, 0x6f72292c20766965, 0x772c20637572736f, 0x72293b0a20202020, 0x2020202020202020, - 0x2020202076616c75, 0x65732e7075736828, 0x76616c7565293b0a, 0x2020202020202020, 0x2020202020202020, - 0x637572736f72202b, 0x3d2062797465733b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, - 0x2020207265747572, 0x6e205b76616c7565, 0x732c20637572736f, 0x72202d206f666673, 0x65745d3b0a202020, - 0x20202020207d0a0a, 0x2020202020202020, 0x2f2f2f204465636f, 0x6465732074686520, 0x73696e676c652076, - 0x616c756520737461, 0x7274696e67206174, 0x20276f6666736574, 0x272c207265747572, 0x6e696e6720697420, - 0x616c6f6e67736964, 0x6520746865206279, 0x746520636f756e74, 0x20697420636f6e73, 0x756d65642e0a2020, - 0x2020202020206465, 0x636f646556616c75, 0x6528747970652c20, 0x766965772c206f66, 0x6673657429207b0a, - 0x2020202020202020, 0x20202020636f6e73, 0x74206465636f6465, 0x72203d2076616c75, 0x654465636f646572, - 0x732e676574287479, 0x7065293b0a202020, 0x2020202020202020, 0x2069662028216465, 0x636f646572290a20, - 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, - 0x70706f7274656420, 0x706172616d657465, 0x7220747970652024, 0x7b747970657d6029, 0x3b0a202020202020, - 0x2020202020207265, 0x7475726e20646563, 0x6f64657228746869, 0x732c20747970652c, 0x20766965772c206f, - 0x6666736574293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x2020206465636f64, 0x654e756d62657228, - 0x766965772c206f66, 0x6673657429207b0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, - 0x28766965772c206f, 0x66667365742c2039, 0x2c20226e756d6265, 0x7222293b0a202020, 0x2020202020202020, - 0x2072657475726e20, 0x7b76616c75653a20, 0x766965772e676574, 0x466c6f6174363428, 0x6f6666736574202b, - 0x20312c2074686973, 0x2e6c6974746c6545, 0x6e6469616e292c20, 0x62797465733a2039, 0x7d3b0a2020202020, - 0x2020207d0a0a2020, 0x2020202020206465, 0x636f646553747269, 0x6e6728747970652c, 0x20766965772c206f, - 0x666673657429207b, 0x0a20202020202020, 0x2020202020636f6e, 0x73742073697a6542, 0x79746573203d2074, - 0x797065203d3d3d20, 0x506172616d547970, 0x652e736d616c6c53, 0x7472696e67203f20, 0x31203a20323b0a20, - 0x2020202020202020, 0x2020207265717569, 0x7265427974657328, 0x766965772c206f66, 0x66736574202b2031, - 0x2c2073697a654279, 0x7465732c20227374, 0x72696e67206c656e, 0x67746822293b0a20, 0x2020202020202020, - 0x202020636f6e7374, 0x206c656e67746820, 0x3d2073697a654279, 0x746573203d3d3d20, 0x31203f2076696577, - 0x2e67657455696e74, 0x38286f6666736574, 0x202b203129203a20, 0x766965772e676574, 0x55696e743136286f, - 0x6666736574202b20, 0x312c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, - 0x202020636f6e7374, 0x207061796c6f6164, 0x203d206f66667365, 0x74202b2031202b20, 0x73697a6542797465, - 0x733b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, 0x2c207061796c6f61, - 0x642c206c656e6774, 0x682c202273747269, 0x6e67207061796c6f, 0x616422293b0a2020, 0x2020202020202020, - 0x2020636f6e737420, 0x6279746573203d20, 0x6e65772055696e74, 0x3841727261792876, 0x6965772e62756666, - 0x65722c2076696577, 0x2e627974654f6666, 0x736574202b207061, 0x796c6f61642c206c, 0x656e677468293b0a, - 0x2020202020202020, 0x2020202072657475, 0x726e207b76616c75, 0x653a206e65772054, 0x6578744465636f64, - 0x657228227574662d, 0x3822292e6465636f, 0x6465286279746573, 0x292c206279746573, 0x3a2031202b207369, - 0x7a65427974657320, 0x2b206c656e677468, 0x7d3b0a2020202020, 0x2020207d0a0a2020, 0x2020202020206465, - 0x636f64655475706c, 0x6528766965772c20, 0x6f66667365742920, 0x7b0a202020202020, 0x2020202020207265, - 0x7175697265427974, 0x657328766965772c, 0x206f66667365742c, 0x20322c2022747570, 0x6c65206865616465, - 0x7222293b0a202020, 0x2020202020202020, 0x20636f6e7374205b, 0x7475706c652c2063, 0x6f6e73756d65645d, - 0x203d20746869732e, 0x6465636f64655061, 0x72616d6574657273, 0x28766965772e6765, 0x7455696e7438286f, - 0x6666736574202b20, 0x31292c2076696577, 0x2c206f6666736574, 0x202b2032293b0a20, 0x2020202020202020, - 0x2020207265747572, 0x6e207b76616c7565, 0x3a207475706c652c, 0x2062797465733a20, 0x32202b20636f6e73, - 0x756d65647d3b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x20202f2f2f205265, 0x736f6c7665732074, - 0x686520656c656d65, 0x6e74207370656320, 0x616e64206c656e67, 0x7468207072656669, 0x7820666f72206120, - 0x7479706564206172, 0x7261792c2077686f, 0x7365206865616465, 0x7220697320322062, 0x7974657320696e20, - 0x7468650a20202020, 0x202020202f2f2f20, 0x636f6d7061637420, 0x736d616c6c417272, 0x6179553820666f72, - 0x6d20616e64203520, 0x6279746573206f74, 0x686572776973652e, 0x0a20202020202020, 0x2072656164547970, - 0x6564417272617948, 0x6561646572287479, 0x70652c2076696577, 0x2c206f6666736574, 0x29207b0a20202020, - 0x2020202020202020, 0x636f6e737420736d, 0x616c6c203d207479, 0x7065203d3d3d2050, 0x6172616d54797065, - 0x2e736d616c6c4172, 0x72617955383b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2073706563203d20, - 0x736d616c6c203f20, 0x7b2e2e2e61727261, 0x79436f6465732e67, 0x657428506172616d, 0x547970652e617272, - 0x61795538292c2063, 0x6f6e737472756374, 0x6f723a2055696e74, 0x3841727261797d20, 0x3a20617272617943, - 0x6f6465732e676574, 0x2874797065293b0a, 0x2020202020202020, 0x2020202069662028, 0x2173706563290a20, - 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, - 0x70706f7274656420, 0x7479706564206172, 0x72617920636f6465, 0x20247b747970657d, 0x60293b0a20202020, - 0x2020202020202020, 0x636f6e7374206865, 0x6164657253697a65, 0x203d20736d616c6c, 0x203f2032203a2035, - 0x3b0a202020202020, 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, 0x206f66667365742c, - 0x2068656164657253, 0x697a652c20226172, 0x7261792068656164, 0x657222293b0a2020, 0x2020202020202020, - 0x2020636f6e737420, 0x6c656e677468203d, 0x20736d616c6c203f, 0x20766965772e6765, 0x7455696e7438286f, - 0x6666736574202b20, 0x3129203a20766965, 0x772e67657455696e, 0x743332286f666673, 0x6574202b20312c20, - 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x72657475726e207b, - 0x737065632c206865, 0x6164657253697a65, 0x2c206c656e677468, 0x7d3b0a2020202020, 0x2020207d0a0a2020, - 0x2020202020206465, 0x636f646554797065, 0x6441727261792874, 0x7970652c20766965, 0x772c206f66667365, - 0x7429207b0a202020, 0x2020202020202020, 0x20636f6e7374207b, 0x737065632c206865, 0x6164657253697a65, - 0x2c206c656e677468, 0x7d203d2074686973, 0x2e72656164547970, 0x6564417272617948, 0x6561646572287479, - 0x70652c2076696577, 0x2c206f6666736574, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420627974, - 0x654c656e67746820, 0x3d206c656e677468, 0x202a20737065632e, 0x62797465733b0a20, 0x2020202020202020, - 0x2020206966202821, 0x4e756d6265722e69, 0x7353616665496e74, 0x6567657228627974, 0x654c656e67746829, - 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772052616e67, 0x654572726f722822, - 0x5479706564206172, 0x726179206c656e67, 0x746820697320746f, 0x6f206c6172676522, 0x293b0a2020202020, - 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, 0x2c206f6666736574, 0x202b206865616465, - 0x7253697a652c2062, 0x7974654c656e6774, 0x682c202261727261, 0x79207061796c6f61, 0x6422293b0a0a2020, - 0x2020202020202020, 0x2020636f6e737420, 0x726573756c74203d, 0x206e657720737065, 0x632e636f6e737472, - 0x7563746f72286c65, 0x6e677468293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x207061796c6f6164, - 0x203d206f66667365, 0x74202b2068656164, 0x657253697a653b0a, 0x2020202020202020, 0x20202020666f7220, - 0x286c657420696e64, 0x6578203d20303b20, 0x696e646578203c20, 0x6c656e6774683b20, 0x2b2b696e64657829, - 0x0a20202020202020, 0x2020202020202020, 0x20726573756c745b, 0x696e6465785d203d, 0x20766965775b7370, - 0x65632e6765747465, 0x725d287061796c6f, 0x6164202b20696e64, 0x6578202a20737065, 0x632e62797465732c, - 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, 0x2072657475726e20, - 0x7b76616c75653a20, 0x726573756c742c20, 0x62797465733a2068, 0x656164657253697a, 0x65202b2062797465, - 0x4c656e6774687d3b, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202063707046, 0x756e6374696f6e28, - 0x6e616d6529207b0a, 0x2020202020202020, 0x2020202072657475, 0x726e20282e2e2e61, 0x72677329203d3e20, - 0x746869732e63616c, 0x6c43707046756e63, 0x74696f6e286e616d, 0x652c206172677329, 0x3b0a202020202020, - 0x20207d0a0a202020, 0x202020202063616c, 0x6c43707046756e63, 0x74696f6e286e616d, 0x652c206172677329, - 0x207b0a2020202020, 0x2020202020202072, 0x657475726e206e65, 0x772050726f6d6973, 0x6528287265736f6c, - 0x76652c2072656a65, 0x637429203d3e207b, 0x0a20202020202020, 0x2020202020202020, 0x206c65742063616c, - 0x6c4964203d20303b, 0x0a20202020202020, 0x2020202020202020, 0x20747279207b0a20, 0x2020202020202020, - 0x2020202020202020, 0x2020206966202874, 0x6869732e73746174, 0x6520213d3d20226c, 0x696e6b656422290a, - 0x2020202020202020, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, - 0x2257656246726f6e, 0x7420627269646765, 0x206973206e6f7420, 0x636f6e6e65637465, 0x6422293b0a202020, - 0x2020202020202020, 0x2020202020202020, 0x20636f6e73742076, 0x616c756573203d20, 0x5b6e616d652c202e, - 0x2e2e617267735d3b, 0x0a20202020202020, 0x2020202020202020, 0x2020202020696620, 0x2876616c7565732e, - 0x6c656e677468203e, 0x20323535290a2020, 0x2020202020202020, 0x2020202020202020, 0x2020202020207468, - 0x726f77206e657720, 0x52616e6765457272, 0x6f72282241206675, 0x6e6374696f6e2063, 0x616c6c2063616e6e, - 0x6f7420636f6e7461, 0x696e206d6f726520, 0x7468616e20323535, 0x20746f702d6c6576, 0x656c2076616c7565, - 0x7322293b0a202020, 0x2020202020202020, 0x2020202020202020, 0x20636f6e73742070, 0x61796c6f61645369, - 0x7a65203d2076616c, 0x7565732e72656475, 0x6365282873697a65, 0x2c2076616c756529, 0x203d3e2073697a65, - 0x202b20746869732e, 0x706172616d657465, 0x7253697a65287661, 0x6c7565292c203029, 0x3b0a202020202020, - 0x2020202020202020, 0x202020202020636f, 0x6e73742062756666, 0x6572203d206e6577, 0x2041727261794275, - 0x666665722838202b, 0x207061796c6f6164, 0x53697a65293b0a20, 0x2020202020202020, 0x2020202020202020, - 0x202020636f6e7374, 0x2076696577203d20, 0x6e65772044617461, 0x5669657728627566, 0x666572293b0a2020, - 0x2020202020202020, 0x2020202020202020, 0x202063616c6c4964, 0x203d20746869732e, 0x616c6c6f63617465, - 0x43616c6c49642829, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020207669, 0x65772e7365745569, - 0x6e743828302c2043, 0x6f6d6d616e642e63, 0x616c6c46756e6374, 0x696f6e293b0a2020, 0x2020202020202020, - 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x312c2076616c7565, 0x732e6c656e677468, - 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, 0x696e74313628322c, - 0x2063616c6c49642c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, - 0x2020202020202020, 0x20766965772e7365, 0x7455696e74333228, 0x342c207061796c6f, 0x616453697a652c20, - 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x2020202020202020, - 0x6c65742063757273, 0x6f72203d20383b0a, 0x2020202020202020, 0x2020202020202020, 0x20202020666f7220, - 0x28636f6e73742076, 0x616c7565206f6620, 0x76616c756573290a, 0x2020202020202020, 0x2020202020202020, - 0x2020202020202020, 0x637572736f72202b, 0x3d20746869732e65, 0x6e636f6465506172, 0x616d657465722876, - 0x616c75652c207669, 0x65772c2063757273, 0x6f72293b0a202020, 0x2020202020202020, 0x2020202020202020, - 0x20746869732e7065, 0x6e64696e6743616c, 0x6c732e7365742863, 0x616c6c49642c207b, 0x7265736f6c76652c, - 0x2072656a6563747d, 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202074, 0x6869732e736f636b, - 0x65742e73656e6428, 0x627566666572293b, 0x0a20202020202020, 0x2020202020202020, 0x207d206361746368, - 0x20286572726f7229, 0x207b0a2020202020, 0x2020202020202020, 0x2020202020202069, 0x66202863616c6c49, - 0x6420213d3d203029, 0x0a20202020202020, 0x2020202020202020, 0x2020202020202020, 0x20746869732e7065, - 0x6e64696e6743616c, 0x6c732e64656c6574, 0x652863616c6c4964, 0x293b0a2020202020, 0x2020202020202020, - 0x2020202020202072, 0x656a656374286572, 0x726f72293b0a2020, 0x2020202020202020, 0x2020202020207d0a, - 0x2020202020202020, 0x202020207d293b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x202020616c6c6f63, - 0x61746543616c6c49, 0x642829207b0a2020, 0x2020202020202020, 0x2020666f7220286c, 0x657420617474656d, - 0x707473203d20303b, 0x20617474656d7074, 0x73203c2030786666, 0x66663b202b2b6174, 0x74656d7074732920, - 0x7b0a202020202020, 0x2020202020202020, 0x2020636f6e737420, 0x63616e6469646174, 0x65203d2074686973, - 0x2e6e65787443616c, 0x6c49643b0a202020, 0x2020202020202020, 0x2020202020746869, 0x732e6e6578744361, - 0x6c6c4964203d2074, 0x6869732e6e657874, 0x43616c6c4964203d, 0x3d3d203078666666, 0x66203f2031203a20, - 0x746869732e6e6578, 0x7443616c6c496420, 0x2b20313b0a202020, 0x2020202020202020, 0x2020202020696620, - 0x2821746869732e70, 0x656e64696e674361, 0x6c6c732e68617328, 0x63616e6469646174, 0x6529290a20202020, - 0x2020202020202020, 0x2020202020202020, 0x72657475726e2063, 0x616e646964617465, 0x3b0a202020202020, - 0x2020202020207d0a, 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f722822546f6f, - 0x206d616e79206f75, 0x747374616e64696e, 0x672057656246726f, 0x6e742063616c6c73, 0x22293b0a20202020, - 0x202020207d0a0a20, 0x2020202020202073, 0x656e6446756e6374, 0x696f6e5265747572, 0x6e2863616c6c4964, - 0x2c2076616c756529, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e73742076616c, 0x756573203d207661, - 0x6c7565203d3d3d20, 0x756e646566696e65, 0x64203f205b5d203a, 0x205b76616c75655d, 0x3b0a202020202020, - 0x202020202020636f, 0x6e7374207061796c, 0x6f616453697a6520, 0x3d2076616c756573, 0x2e72656475636528, - 0x2873697a652c2069, 0x74656d29203d3e20, 0x73697a65202b2074, 0x6869732e70617261, 0x6d6574657253697a, - 0x65286974656d292c, 0x2030293b0a202020, 0x2020202020202020, 0x20636f6e73742062, 0x7566666572203d20, - 0x6e65772041727261, 0x7942756666657228, 0x38202b207061796c, 0x6f616453697a6529, 0x3b0a202020202020, - 0x202020202020636f, 0x6e73742076696577, 0x203d206e65772044, 0x6174615669657728, 0x627566666572293b, - 0x0a20202020202020, 0x2020202020766965, 0x772e73657455696e, 0x743828302c20436f, 0x6d6d616e642e6675, - 0x6e6374696f6e5265, 0x7475726e293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, - 0x28312c2076616c75, 0x65732e6c656e6774, 0x68293b0a20202020, 0x2020202020202020, 0x766965772e736574, - 0x55696e7431362832, 0x2c2063616c6c4964, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, - 0x2020202020202020, 0x2020766965772e73, 0x657455696e743332, 0x28342c207061796c, 0x6f616453697a652c, - 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, 0x2020202020202020, 0x206c657420637572, - 0x736f72203d20383b, 0x0a20202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x6974656d206f6620, - 0x76616c756573290a, 0x2020202020202020, 0x2020202020202020, 0x637572736f72202b, 0x3d20746869732e65, - 0x6e636f6465506172, 0x616d657465722869, 0x74656d2c20766965, 0x772c20637572736f, 0x72293b0a20202020, + 0x20546865206c6175, 0x6e63682073656372, 0x6574206f6620616e, 0x20656d6265646465, 0x6420766965773a20, + 0x646566696e656420, 0x6279207468652061, 0x6461707465722062, 0x65666f726520616e, 0x7920736372697074, + 0x206f662074686520, 0x706167652c207461, 0x6b656e2068657265, 0x207768656e0a2020, 0x20202f2f2f205765, + 0x6246726f6e742e6a, 0x73206c6f61647320, 0x616e642072656d6f, 0x7665642066726f6d, 0x207468652077696e, + 0x646f772c20746865, 0x6e206b6570742066, 0x6f72206576657279, 0x2068616e64736861, 0x6b65206f66207468, + 0x6973207061676520, 0x2861207265636f6e, 0x6e656374696f6e20, 0x70726573656e7473, 0x0a202020202f2f2f, + 0x2069742061676169, 0x6e292e20416e7974, 0x68696e6720746861, 0x74206973206e6f74, 0x2074686520657870, + 0x6563746564203634, 0x2068657861646563, 0x696d616c20636861, 0x7261637465727320, 0x69732069676e6f72, + 0x65642c20736f2061, 0x2073637269707420, 0x63616e6e6f742069, 0x6e6a656374206f74, 0x6865722062797465, + 0x732e0a2020202066, 0x756e6374696f6e20, 0x74616b6556696577, 0x5365637265742829, 0x207b0a2020202020, + 0x202020636f6e7374, 0x2064657363726970, 0x746f72203d204f62, 0x6a6563742e676574, 0x4f776e50726f7065, + 0x7274794465736372, 0x6970746f7228676c, 0x6f62616c2c20225f, 0x5f77656266726f6e, 0x745669657722293b, + 0x0a20202020202020, 0x2069662028216465, 0x7363726970746f72, 0x292072657475726e, 0x2022223b0a202020, + 0x202020202064656c, 0x65746520676c6f62, 0x616c2e5f5f776562, 0x66726f6e74566965, 0x773b0a2020202020, + 0x202020636f6e7374, 0x2076616c7565203d, 0x2064657363726970, 0x746f722e76616c75, 0x653b0a2020202020, + 0x2020207265747572, 0x6e20747970656f66, 0x2076616c7565203d, 0x3d3d202273747269, 0x6e6722202626202f, + 0x5e5b302d39612d66, 0x5d7b36347d242f2e, 0x746573742876616c, 0x756529203f207661, 0x6c7565203a202222, + 0x3b0a202020207d0a, 0x0a20202020636f6e, 0x7374207669657753, 0x6563726574203d20, 0x74616b6556696577, + 0x5365637265742829, 0x3b0a0a2020202066, 0x756e6374696f6e20, 0x6e61746976654973, 0x4c6974746c65456e, + 0x6469616e2829207b, 0x0a20202020202020, 0x20636f6e73742077, 0x6f7264203d206e65, 0x772055696e743332, + 0x4172726179285b30, 0x7831313030303066, 0x665d293b0a202020, 0x2020202020726574, 0x75726e206e657720, + 0x55696e7438417272, 0x617928776f72642e, 0x627566666572295b, 0x305d203d3d3d2030, 0x7866663b0a202020, + 0x207d0a0a20202020, 0x2f2f2f2057697265, 0x2074797065202d3e, 0x206465636f646572, 0x2c20736f20646563, + 0x6f646556616c7565, 0x2073746179732061, 0x206c6f6f6b757020, 0x696e737465616420, 0x6f66206120636861, + 0x696e206f6620636f, 0x6d70617269736f6e, 0x732e0a202020202f, 0x2f2f204576657279, 0x2074797065642061, + 0x7272617920636f64, 0x6520736861726573, 0x206f6e6520656e74, 0x72793b2074686520, 0x68616e646c657220, + 0x7265616473207468, 0x6520776964746820, 0x6261636b206f6666, 0x2074686520636f64, 0x652e0a2020202063, + 0x6f6e73742076616c, 0x75654465636f6465, 0x7273203d206e6577, 0x204d6170285b0a20, 0x202020202020205b, + 0x506172616d547970, 0x652e626f6f6c6561, 0x6e547275652c2028, 0x29203d3e20287b76, 0x616c75653a207472, + 0x75652c2062797465, 0x733a20317d295d2c, 0x0a20202020202020, 0x205b506172616d54, 0x7970652e626f6f6c, + 0x65616e46616c7365, 0x2c202829203d3e20, 0x287b76616c75653a, 0x2066616c73652c20, 0x62797465733a2031, + 0x7d295d2c0a202020, 0x20202020205b5061, 0x72616d547970652e, 0x6e756d6265722c20, 0x286272696467652c, + 0x20747970652c2076, 0x6965772c206f6666, 0x73657429203d3e20, 0x6272696467652e64, 0x65636f64654e756d, + 0x6265722876696577, 0x2c206f6666736574, 0x295d2c0a20202020, 0x202020205b506172, 0x616d547970652e73, + 0x6d616c6c53747269, 0x6e672c2028627269, 0x6467652c20747970, 0x652c20766965772c, 0x206f666673657429, + 0x203d3e2062726964, 0x67652e6465636f64, 0x65537472696e6728, 0x747970652c207669, 0x65772c206f666673, + 0x6574295d2c0a2020, 0x2020202020205b50, 0x6172616d54797065, 0x2e737472696e672c, 0x2028627269646765, + 0x2c20747970652c20, 0x766965772c206f66, 0x6673657429203d3e, 0x206272696467652e, 0x6465636f64655374, + 0x72696e6728747970, 0x652c20766965772c, 0x206f666673657429, 0x5d2c0a2020202020, 0x2020205b50617261, + 0x6d547970652e6578, 0x63657074696f6e2c, 0x2028627269646765, 0x2c20747970652c20, 0x766965772c206f66, + 0x6673657429203d3e, 0x206272696467652e, 0x6465636f64655374, 0x72696e6728747970, 0x652c20766965772c, + 0x206f666673657429, 0x5d2c0a2020202020, 0x2020205b50617261, 0x6d547970652e7475, 0x706c652c20286272, + 0x696467652c207479, 0x70652c2076696577, 0x2c206f6666736574, 0x29203d3e20627269, 0x6467652e6465636f, + 0x64655475706c6528, 0x766965772c206f66, 0x66736574295d2c0a, 0x202020205d293b0a, 0x0a20202020666f72, + 0x2028636f6e737420, 0x636f6465206f6620, 0x5b506172616d5479, 0x70652e736d616c6c, 0x417272617955382c, + 0x202e2e2e61727261, 0x79436f6465732e6b, 0x65797328295d290a, 0x2020202020202020, 0x76616c7565446563, + 0x6f646572732e7365, 0x7428636f64652c20, 0x286272696467652c, 0x20747970652c2076, 0x6965772c206f6666, + 0x73657429203d3e20, 0x6272696467652e64, 0x65636f6465547970, 0x6564417272617928, 0x747970652c207669, + 0x65772c206f666673, 0x657429293b0a0a20, 0x20202066756e6374, 0x696f6e2069735479, 0x7065644172726179, + 0x2876616c75652920, 0x7b0a202020202020, 0x202072657475726e, 0x2041727261794275, 0x666665722e697356, + 0x6965772876616c75, 0x6529202626202128, 0x76616c756520696e, 0x7374616e63656f66, 0x2044617461566965, + 0x77293b0a20202020, 0x7d0a0a202020202f, 0x2f2f2053686f7274, 0x2055696e74384172, 0x726179207061796c, + 0x6f61647320757365, 0x2074686520636f6d, 0x7061637420736d61, 0x6c6c417272617955, 0x3820686561646572, + 0x2e2053697a696e67, 0x20616e6420656e63, 0x6f64696e67206d75, 0x7374206167726565, 0x206f6e0a20202020, + 0x2f2f2f2074686973, 0x2c20736f20626f74, 0x6820676f20746872, 0x6f75676820686572, 0x653a206120646973, + 0x61677265656d656e, 0x7420776f756c6420, 0x6d69732d73697a65, 0x207468652073656e, 0x6420627566666572, + 0x2e0a202020206675, 0x6e6374696f6e2074, 0x7970656441727261, 0x7948656164657253, 0x697a652876616c75, + 0x6529207b0a202020, 0x2020202020726574, 0x75726e2076616c75, 0x6520696e7374616e, 0x63656f662055696e, + 0x7438417272617920, 0x26262076616c7565, 0x2e6c656e67746820, 0x3c20323536203f20, 0x32203a20353b0a20, + 0x2020207d0a0a2020, 0x202066756e637469, 0x6f6e2069734e6f6e, 0x4e65676174697665, 0x496e746567657228, + 0x63616e6469646174, 0x6529207b0a202020, 0x2020202020726574, 0x75726e204e756d62, 0x65722e6973536166, + 0x65496e7465676572, 0x2863616e64696461, 0x7465292026262063, 0x616e646964617465, 0x203e3d20303b0a20, + 0x2020207d0a0a2020, 0x202066756e637469, 0x6f6e207265717569, 0x7265427974657328, 0x766965772c206f66, + 0x667365742c20636f, 0x756e742c20646573, 0x6372697074696f6e, 0x29207b0a20202020, 0x20202020636f6e73, + 0x742077656c6c466f, 0x726d6564203d2069, 0x734e6f6e4e656761, 0x74697665496e7465, 0x676572286f666673, + 0x6574292026262069, 0x734e6f6e4e656761, 0x74697665496e7465, 0x67657228636f756e, 0x74293b0a20202020, + 0x2020202069662028, 0x2177656c6c466f72, 0x6d6564207c7c206f, 0x6666736574202b20, 0x636f756e74203e20, + 0x766965772e627974, 0x654c656e67746829, 0x0a20202020202020, 0x2020202020746872, 0x6f77206e65772052, + 0x616e67654572726f, 0x7228605472756e63, 0x6174656420247b64, 0x6573637269707469, 0x6f6e7d60293b0a20, + 0x2020207d0a0a2020, 0x2020636c61737320, 0x57656246726f6e74, 0x427269646765207b, 0x0a20202020202020, + 0x20636f6e73747275, 0x63746f722875726c, 0x203d206077733a2f, 0x2f247b676c6f6261, 0x6c2e6c6f63617469, + 0x6f6e2e686f73747d, 0x6029207b0a202020, 0x2020202020202020, 0x20746869732e7374, 0x617465203d202275, + 0x6e696e697469616c, 0x697a6564223b0a20, 0x2020202020202020, 0x202020746869732e, 0x6c6974746c65456e, + 0x6469616e203d2066, 0x616c73653b0a2020, 0x2020202020202020, 0x2020746869732e6e, 0x65787443616c6c49, + 0x64203d20313b0a20, 0x2020202020202020, 0x202020746869732e, 0x70656e64696e6743, 0x616c6c73203d206e, + 0x6577204d61702829, 0x3b0a202020202020, 0x2020202020207468, 0x69732e7265616479, 0x536574746c656420, + 0x3d2066616c73653b, 0x0a20202020202020, 0x2020202020746869, 0x732e726561647950, 0x726f6d697365203d, + 0x206e65772050726f, 0x6d69736528287265, 0x736f6c76652c2072, 0x656a65637429203d, 0x3e207b0a20202020, + 0x2020202020202020, 0x2020202074686973, 0x2e7265736f6c7665, 0x5265616479203d20, 0x7265736f6c76653b, + 0x0a20202020202020, 0x2020202020202020, 0x20746869732e7265, 0x6a65637452656164, 0x79203d2072656a65, + 0x63743b0a20202020, 0x2020202020202020, 0x7d293b0a20202020, 0x2020202020202020, 0x2f2f20576974686f, + 0x757420746869732c, 0x2061207061676520, 0x74686174206e6576, 0x657220746f756368, 0x6573207765624672, + 0x6f6e742e72656164, 0x7920776f756c6420, 0x73656520616e2022, 0x756e68616e646c65, 0x640a202020202020, + 0x2020202020202f2f, 0x2070726f6d697365, 0x2072656a65637469, 0x6f6e22207761726e, 0x696e672069662074, + 0x686520696e697469, 0x616c20636f6e6e65, 0x6374696f6e206661, 0x696c732e20417070, 0x6c69636174696f6e, + 0x20636f6465207374, 0x696c6c0a20202020, 0x2020202020202020, 0x2f2f206765747320, 0x697473206f776e20, + 0x696e646570656e64, 0x656e742073657474, 0x6c656d656e742076, 0x6961202e7468656e, 0x28292f2e63617463, + 0x6828292f61776169, 0x74206f6e20746865, 0x2073616d65207072, 0x6f6d6973653b0a20, 0x2020202020202020, + 0x2020202f2f206174, 0x74616368696e6720, 0x612068616e646c65, 0x7220686572652064, 0x6f65736e27742063, + 0x6f6e73756d65206f, 0x7220616666656374, 0x2074686f73652e0a, 0x2020202020202020, 0x2020202074686973, + 0x2e72656164795072, 0x6f6d6973652e6361, 0x746368282829203d, 0x3e207b7d293b0a20, 0x2020202020202020, + 0x202020746869732e, 0x736f636b6574203d, 0x206e657720576562, 0x536f636b65742875, 0x726c2c2022576562, + 0x46726f6e745f302e, 0x3122293b0a202020, 0x2020202020202020, 0x20746869732e736f, 0x636b65742e62696e, + 0x6172795479706520, 0x3d20226172726179, 0x627566666572223b, 0x0a20202020202020, 0x2020202020746869, + 0x732e736f636b6574, 0x2e6f6e6f70656e20, 0x3d202829203d3e20, 0x746869732e68616e, 0x647368616b652829, + 0x3b0a202020202020, 0x2020202020207468, 0x69732e736f636b65, 0x742e6f6e6d657373, 0x616765203d206576, + 0x656e74203d3e2074, 0x6869732e6f6e4d65, 0x7373616765286576, 0x656e742e64617461, 0x293b0a2020202020, + 0x2020202020202074, 0x6869732e736f636b, 0x65742e6f6e636c6f, 0x7365203d20657665, 0x6e74203d3e207b0a, + 0x2020202020202020, 0x2020202020202020, 0x636f6e7374206465, 0x7461696c203d2065, 0x76656e742e776173, + 0x436c65616e203f20, 0x60636f64653d247b, 0x6576656e742e636f, 0x64657d2072656173, 0x6f6e3d247b657665, + 0x6e742e726561736f, 0x6e7d60203a202263, 0x6f6e6e656374696f, 0x6e206c6f7374223b, 0x0a20202020202020, + 0x2020202020202020, 0x20636f6e73742065, 0x72726f72203d206e, 0x6577204572726f72, 0x286057656246726f, + 0x6e7420636f6e6e65, 0x6374696f6e20636c, 0x6f7365643a20247b, 0x64657461696c7d60, 0x293b0a2020202020, + 0x2020202020202020, 0x202020746869732e, 0x736574746c655265, 0x61647952656a6563, 0x746564286572726f, + 0x72293b0a20202020, 0x2020202020202020, 0x20202020666f7220, 0x28636f6e73742070, 0x656e64696e67206f, + 0x6620746869732e70, 0x656e64696e674361, 0x6c6c732e76616c75, 0x65732829290a2020, 0x2020202020202020, + 0x2020202020202020, 0x202070656e64696e, 0x672e72656a656374, 0x286572726f72293b, 0x0a20202020202020, + 0x2020202020202020, 0x20746869732e7065, 0x6e64696e6743616c, 0x6c732e636c656172, 0x28293b0a20202020, + 0x2020202020202020, 0x2020202074686973, 0x2e7374617465203d, 0x2022636c6f736564, 0x223b0a2020202020, + 0x2020202020202020, 0x202020636f6e736f, 0x6c652e6c6f672860, 0x5b57656246726f6e, 0x7420636c6f73655d, + 0x20247b6465746169, 0x6c7d60293b0a2020, 0x2020202020202020, 0x20207d3b0a202020, 0x2020202020202020, + 0x20746869732e736f, 0x636b65742e6f6e65, 0x72726f72203d2028, 0x29203d3e207b0a20, 0x2020202020202020, + 0x2020202020202063, 0x6f6e737420657272, 0x6f72203d206e6577, 0x204572726f722822, 0x57656246726f6e74, + 0x20636f6e6e656374, 0x696f6e206661696c, 0x656422293b0a2020, 0x2020202020202020, 0x2020202020207468, + 0x69732e736574746c, 0x6552656164795265, 0x6a65637465642865, 0x72726f72293b0a20, 0x2020202020202020, + 0x2020202020202063, 0x6f6e736f6c652e65, 0x72726f7228225b57, 0x656246726f6e7420, 0x736f636b65742065, + 0x72726f725d222c20, 0x6572726f72293b0a, 0x2020202020202020, 0x202020207d3b0a20, 0x202020202020207d, + 0x0a0a202020202020, 0x20202f2f2f205265, 0x736f6c766573206f, 0x6e63652074686520, 0x576562536f636b65, + 0x742068616e647368, 0x616b652069732061, 0x636b6e6f776c6564, 0x6765642c2072656a, 0x6563747320696620, + 0x74686520696e6974, 0x69616c20636f6e6e, 0x656374696f6e0a20, 0x202020202020202f, 0x2f2f20636c6f7365, + 0x73206f7220666169, 0x6c73206265666f72, 0x6520746861742e20, 0x446f6573206e6f74, 0x207265666c656374, + 0x206c617465722064, 0x6973636f6e6e6563, 0x74733b2073656520, 0x70656e64696e6743, 0x616c6c732f737461, + 0x74652e0a20202020, 0x2020202067657420, 0x7265616479282920, 0x7b0a202020202020, 0x2020202020207265, + 0x7475726e20746869, 0x732e726561647950, 0x726f6d6973653b0a, 0x2020202020202020, 0x7d0a0a2020202020, + 0x2020202f2f2f2052, 0x656a656374732074, 0x686520696e697469, 0x616c2d7265616469, 0x6e6573732070726f, + 0x6d69736520617420, 0x6d6f7374206f6e63, 0x652c20616e64206f, 0x6e6c79207768696c, 0x65207374696c6c20, + 0x77616974696e6720, 0x6f6e207468650a20, 0x202020202020202f, 0x2f2f2068616e6473, 0x68616b652e204120, + 0x6661696c65642063, 0x6f6e6e656374696f, 0x6e20747970696361, 0x6c6c792066697265, 0x7320626f74682060, + 0x6572726f72602061, 0x6e642060636c6f73, 0x65602c20616e6420, 0x61206c617465720a, 0x2020202020202020, + 0x2f2f2f2064697363, 0x6f6e6e6563742028, 0x6166746572206c69, 0x6e6b696e6729206d, 0x757374206e6f7420, + 0x72652d736574746c, 0x6520616e20616c72, 0x656164792d726573, 0x6f6c766564206072, 0x65616479603b2074, + 0x6869732067756172, 0x640a202020202020, 0x20202f2f2f206d61, 0x6b65732065766572, 0x79206f6e65206f66, + 0x2074686f73652063, 0x6173657320612068, 0x61726d6c65737320, 0x6e6f2d6f70206166, 0x7465722074686520, + 0x6669727374207365, 0x74746c656d656e74, 0x2e0a202020202020, 0x2020736574746c65, 0x526561647952656a, + 0x6563746564286572, 0x726f7229207b0a20, 0x2020202020202020, 0x2020206966202874, 0x6869732e72656164, + 0x79536574746c6564, 0x207c7c2074686973, 0x2e7374617465203d, 0x3d3d20226c696e6b, 0x6564222920726574, + 0x75726e3b0a202020, 0x2020202020202020, 0x20746869732e7265, 0x616479536574746c, 0x6564203d20747275, + 0x653b0a2020202020, 0x2020202020202074, 0x6869732e72656a65, 0x6374526561647928, 0x6572726f72293b0a, + 0x2020202020202020, 0x7d0a0a2020202020, 0x20202068616e6473, 0x68616b652829207b, 0x0a20202020202020, + 0x2020202020746869, 0x732e737461746520, 0x3d202268616e6473, 0x68616b696e67223b, 0x0a20202020202020, + 0x20202020202f2f20, 0x416e20656d626564, 0x6465642066726f6e, 0x74656e6420676976, 0x6573206974732076, + 0x6965772061207065, 0x722d6c61756e6368, 0x2073656372657420, 0x6174207468652073, 0x74617274206f6620, + 0x74686520646f6375, 0x6d656e7420284144, 0x522d303230292e20, 0x4974207761732074, 0x616b656e0a202020, + 0x2020202020202020, 0x202f2f206f757420, 0x6f66207468652077, 0x696e646f77207768, 0x656e207468697320, + 0x736372697074206c, 0x6f616465642c2073, 0x6f20746865207061, 0x676520646f657320, 0x6e6f74206b656570, + 0x2072656164696e67, 0x2069743b20746865, 0x2073797374656d20, 0x62726f7773657220, 0x686173206e6f6e65, + 0x2e0a202020202020, 0x202020202020636f, 0x6e73742073656372, 0x6574203d20766965, 0x775365637265743b, + 0x0a20202020202020, 0x2020202020636f6e, 0x7374206865616465, 0x72203d205b436f6d, 0x6d616e642e68616e, + 0x647368616b652c20, 0x6e61746976654973, 0x4c6974746c65456e, 0x6469616e2829203f, 0x2030203a20315d3b, + 0x0a20202020202020, 0x2020202020666f72, 0x20286c657420696e, 0x646578203d20303b, 0x20696e646578203c, + 0x207365637265742e, 0x6c656e6774683b20, 0x2b2b696e64657829, 0x206865616465722e, 0x7075736828736563, + 0x7265742e63686172, 0x436f646541742869, 0x6e64657829202620, 0x30783766293b0a20, 0x2020202020202020, + 0x202020746869732e, 0x736f636b65742e73, 0x656e64286e657720, 0x55696e7438417272, 0x6179286865616465, + 0x7229293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x6f6e4d6573736167, 0x6528627566666572, + 0x29207b0a20202020, 0x2020202020202020, 0x636f6e7374207669, 0x6577203d206e6577, 0x2044617461566965, + 0x7728627566666572, 0x293b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, + 0x2c20302c20312c20, 0x226d657373616765, 0x2068656164657222, 0x293b0a2020202020, 0x2020202020202073, + 0x7769746368202876, 0x6965772e67657455, 0x696e743828302929, 0x207b0a2020202020, 0x2020202020202063, + 0x61736520436f6d6d, 0x616e642e61636b3a, 0x0a20202020202020, 0x2020202020202020, 0x2072657175697265, + 0x4279746573287669, 0x65772c20302c2032, 0x2c202261636b6e6f, 0x776c656467656d65, 0x6e7422293b0a2020, + 0x2020202020202020, 0x2020202020206966, 0x2028746869732e73, 0x74617465203d3d3d, 0x202268616e647368, + 0x616b696e67222920, 0x7b0a202020202020, 0x2020202020202020, 0x2020202020207468, 0x69732e6c6974746c, + 0x65456e6469616e20, 0x3d20766965772e67, 0x657455696e743828, 0x3129203d3d3d2030, 0x3b0a202020202020, + 0x2020202020202020, 0x2020202020207468, 0x69732e7374617465, 0x203d20226c696e6b, 0x6564223b0a202020, + 0x2020202020202020, 0x2020202020202020, 0x20746869732e7265, 0x616479536574746c, 0x6564203d20747275, + 0x653b0a2020202020, 0x2020202020202020, 0x2020202020202074, 0x6869732e7265736f, 0x6c76655265616479, + 0x28293b0a20202020, 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x2020202020206272, + 0x65616b3b0a202020, 0x2020202020202020, 0x206361736520436f, 0x6d6d616e642e7465, 0x7874436f6d6d616e, + 0x643a0a2020202020, 0x2020202020202020, 0x202020746869732e, 0x68616e646c655465, 0x7874436f6d6d616e, + 0x642876696577293b, 0x0a20202020202020, 0x2020202020202020, 0x20627265616b3b0a, 0x2020202020202020, + 0x2020202063617365, 0x20436f6d6d616e64, 0x2e63616c6c46756e, 0x6374696f6e3a0a20, 0x2020202020202020, + 0x2020202020202074, 0x6869732e63616c6c, 0x4a7346756e637469, 0x6f6e287669657729, 0x3b0a202020202020, + 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x2020202020636173, 0x6520436f6d6d616e, + 0x642e646f6d426174, 0x63683a0a20202020, 0x2020202020202020, 0x2020202074727920, 0x7b0a202020202020, + 0x2020202020202020, 0x2020202020206966, 0x2028766965772e62, 0x7974654c656e6774, 0x68203e2031303234, + 0x202a203130323429, 0x207468726f77206e, 0x65772052616e6765, 0x4572726f72282244, 0x4f4d206261746368, + 0x2065786365656473, 0x2031204d69422229, 0x3b0a202020202020, 0x2020202020202020, 0x2020202020206966, + 0x202821746869732e, 0x646f6d4261746368, 0x48616e646c657229, 0x207468726f77206e, 0x6577204572726f72, + 0x2822444f4d20696e, 0x7465727072657465, 0x72206973206e6f74, 0x20696e7374616c6c, 0x656422293b0a2020, + 0x2020202020202020, 0x2020202020202020, 0x2020746869732e64, 0x6f6d426174636848, 0x616e646c6572286e, + 0x65772055696e7438, 0x4172726179286275, 0x6666657229293b0a, 0x2020202020202020, 0x2020202020202020, + 0x7d20636174636820, 0x286572726f722920, 0x7b0a202020202020, 0x2020202020202020, 0x202020202020636f, + 0x6e7374206964203d, 0x20766965772e6279, 0x74654c656e677468, 0x203e3d2036203f20, 0x766965772e676574, + 0x55696e7433322832, 0x2c20747275652920, 0x3a20303b0a202020, 0x2020202020202020, 0x2020202020202020, + 0x20746869732e6370, 0x7046756e6374696f, 0x6e28227766446f6d, 0x2e72656a65637465, 0x6422292869642c20, + 0x537472696e672865, 0x72726f722e6d6573, 0x73616765207c7c20, 0x6572726f72292e73, 0x6c69636528302c20, + 0x3430393629292e63, 0x6174636828282920, 0x3d3e207b7d293b0a, 0x2020202020202020, 0x2020202020202020, + 0x7d0a202020202020, 0x2020202020202020, 0x2020627265616b3b, 0x0a20202020202020, 0x2020202020636173, + 0x6520436f6d6d616e, 0x642e66756e637469, 0x6f6e52657475726e, 0x3a0a202020202020, 0x2020202020202020, + 0x2020746869732e68, 0x616e646c6546756e, 0x6374696f6e526574, 0x75726e2876696577, 0x293b0a2020202020, + 0x2020202020202020, 0x202020627265616b, 0x3b0a202020202020, 0x2020202020206465, 0x6661756c743a0a20, + 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x204572726f722860, 0x556e737570706f72, + 0x7465642057656246, 0x726f6e7420636f6d, 0x6d616e6420247b76, 0x6965772e67657455, 0x696e74382830297d, + 0x60293b0a20202020, 0x2020202020202020, 0x7d0a202020202020, 0x20207d0a0a202020, 0x202020202068616e, + 0x646c655465787443, 0x6f6d6d616e642876, 0x69657729207b0a20, 0x2020202020202020, 0x2020207265717569, + 0x7265427974657328, 0x766965772c20302c, 0x20342c2022746578, 0x7420636f6d6d616e, 0x6420686561646572, + 0x22293b0a20202020, 0x2020202020202020, 0x636f6e7374206c65, 0x6e677468203d2076, 0x6965772e67657455, + 0x696e743136283229, 0x3b0a202020202020, 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, + 0x20342c206c656e67, 0x74682c2022746578, 0x7420636f6d6d616e, 0x64207061796c6f61, 0x6422293b0a202020, + 0x2020202020202020, 0x20636f6e73742074, 0x657874203d206e65, 0x7720546578744465, 0x636f646572282275, + 0x74662d3822292e64, 0x65636f6465286e65, 0x772055696e743841, 0x7272617928766965, 0x772e627566666572, + 0x2c20766965772e62, 0x7974654f66667365, 0x74202b20342c206c, 0x656e67746829293b, 0x0a20202020202020, + 0x2020202020737769, 0x7463682028766965, 0x772e67657455696e, 0x743828312929207b, 0x0a20202020202020, + 0x2020202020636173, 0x652054657874436f, 0x6d6d616e642e6465, 0x6275674c6f673a0a, 0x2020202020202020, + 0x2020202020202020, 0x636f6e736f6c652e, 0x6c6f672874657874, 0x293b0a2020202020, 0x2020202020202020, + 0x202020627265616b, 0x3b0a202020202020, 0x2020202020206361, 0x7365205465787443, 0x6f6d6d616e642e69, + 0x6e6a656374536372, 0x6970743a207b0a20, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420736372, + 0x697074203d20646f, 0x63756d656e742e63, 0x7265617465456c65, 0x6d656e7428227363, 0x7269707422293b0a, + 0x2020202020202020, 0x2020202020202020, 0x7363726970742e74, 0x657874203d207465, 0x78743b0a20202020, + 0x2020202020202020, 0x2020202028646f63, 0x756d656e742e626f, 0x6479203f3f20646f, 0x63756d656e742e68, + 0x656164203f3f2064, 0x6f63756d656e742e, 0x646f63756d656e74, 0x456c656d656e7429, 0x2e617070656e6443, + 0x68696c6428736372, 0x697074293b0a2020, 0x2020202020202020, 0x2020202020206272, 0x65616b3b0a202020, + 0x2020202020202020, 0x207d0a2020202020, 0x2020202020202064, 0x656661756c743a0a, 0x2020202020202020, + 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, 0x60556e737570706f, 0x7274656420576562, + 0x46726f6e74207465, 0x787420636f6d6d61, 0x6e6420247b766965, 0x772e67657455696e, 0x74382831297d6029, + 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x20202063616c6c4a, + 0x7346756e6374696f, 0x6e286d6573736167, 0x6529207b0a202020, 0x2020202020202020, 0x2072657175697265, + 0x4279746573286d65, 0x73736167652c2030, 0x2c20382c20226675, 0x6e6374696f6e2063, 0x616c6c2068656164, + 0x657222293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x636f756e74203d20, 0x6d6573736167652e, + 0x67657455696e7438, 0x2831293b0a202020, 0x2020202020202020, 0x20636f6e73742063, 0x616c6c4964203d20, + 0x6d6573736167652e, 0x67657455696e7431, 0x3628322c20746869, 0x732e6c6974746c65, 0x456e6469616e293b, + 0x0a20202020202020, 0x2020202020696620, 0x28636f756e74203d, 0x3d3d2030290a2020, 0x2020202020202020, + 0x2020202020207468, 0x726f77206e657720, 0x4572726f72282246, 0x756e6374696f6e20, 0x63616c6c20686173, + 0x206e6f2066756e63, 0x74696f6e206e616d, 0x6522293b0a202020, 0x2020202020202020, 0x20636f6e73742070, + 0x61796c6f61645369, 0x7a65203d206d6573, 0x736167652e676574, 0x55696e7433322834, 0x2c20746869732e6c, + 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x2020726571756972, 0x654279746573286d, + 0x6573736167652c20, 0x382c207061796c6f, 0x616453697a652c20, 0x2266756e6374696f, 0x6e2063616c6c2070, + 0x61796c6f61642229, 0x3b0a202020202020, 0x202020202020636f, 0x6e7374207061796c, 0x6f6164203d206e65, + 0x7720446174615669, 0x6577286d65737361, 0x67652e6275666665, 0x722c206d65737361, 0x67652e627974654f, + 0x6666736574202b20, 0x382c207061796c6f, 0x616453697a65293b, 0x0a20202020202020, 0x2020202020636f6e, + 0x7374205b6e616d65, 0x732c206e616d6542, 0x797465735d203d20, 0x746869732e646563, 0x6f6465506172616d, + 0x657465727328312c, 0x207061796c6f6164, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e7374205b7061, + 0x72616d6574657273, 0x2c20706172616d65, 0x7465724279746573, 0x5d203d2074686973, 0x2e6465636f646550, + 0x6172616d65746572, 0x7328636f756e7420, 0x2d20312c20706179, 0x6c6f61642c206e61, 0x6d65427974657329, + 0x3b0a202020202020, 0x2020202020206966, 0x20286e616d654279, 0x746573202b207061, 0x72616d6574657242, + 0x7974657320213d3d, 0x207061796c6f6164, 0x53697a65290a2020, 0x2020202020202020, 0x2020202020207468, + 0x726f77206e657720, 0x4572726f72282246, 0x756e6374696f6e20, 0x63616c6c20636f6e, 0x7461696e73207472, + 0x61696c696e672070, 0x61796c6f61642064, 0x61746122293b0a20, 0x2020202020202020, 0x2020206c65742065, + 0x7865637574696f6e, 0x3b0a202020202020, 0x2020202020207472, 0x79207b0a20202020, 0x2020202020202020, + 0x2020202065786563, 0x7574696f6e203d20, 0x746869732e657865, 0x6375746546756e63, 0x74696f6e286e616d, + 0x65735b305d2c2070, 0x6172616d65746572, 0x73293b0a20202020, 0x2020202020202020, 0x7d20636174636820, + 0x286572726f722920, 0x7b0a202020202020, 0x2020202020202020, 0x2020746869732e72, 0x65706f727443616c, + 0x6c4661696c757265, 0x2863616c6c49642c, 0x206572726f72293b, 0x0a20202020202020, 0x2020202020202020, + 0x2072657475726e3b, 0x0a20202020202020, 0x20202020207d0a20, 0x2020202020202020, 0x2020202f2f206361, + 0x6c6c49642030206d, 0x65616e7320746865, 0x2063616c6c657220, 0x6973206e6f742077, 0x616974696e672066, + 0x6f7220616e797468, 0x696e672c20736f20, 0x7468657265206973, 0x206e6f7468696e67, 0x20746f2073656e64, + 0x206261636b2e0a20, 0x2020202020202020, 0x2020206966202863, 0x616c6c496420213d, 0x3d2030290a202020, + 0x2020202020202020, 0x202020202050726f, 0x6d6973652e726573, 0x6f6c766528657865, 0x637574696f6e292e, + 0x7468656e280a2020, 0x2020202020202020, 0x2020202020202020, 0x202076616c756520, 0x3d3e20746869732e, + 0x7265706f72744361, 0x6c6c537563636573, 0x732863616c6c4964, 0x2c2076616c756529, 0x2c0a202020202020, + 0x2020202020202020, 0x2020202020206572, 0x726f72203d3e2074, 0x6869732e73656e64, 0x46756e6374696f6e, + 0x4572726f72286361, 0x6c6c49642c206572, 0x726f7229293b0a20, 0x202020202020207d, 0x0a0a202020202020, + 0x20207265706f7274, 0x43616c6c4661696c, 0x7572652863616c6c, 0x49642c206572726f, 0x7229207b0a202020, + 0x2020202020202020, 0x206966202863616c, 0x6c4964203d3d3d20, 0x30290a2020202020, 0x2020202020202020, + 0x202020636f6e736f, 0x6c652e6572726f72, 0x28225b5765624672, 0x6f6e74204a617661, 0x5363726970742063, + 0x616c6c5d222c2065, 0x72726f72293b0a20, 0x2020202020202020, 0x202020656c73650a, 0x2020202020202020, + 0x2020202020202020, 0x746869732e73656e, 0x6446756e6374696f, 0x6e4572726f722863, 0x616c6c49642c2065, + 0x72726f72293b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x20207265706f7274, 0x43616c6c53756363, + 0x6573732863616c6c, 0x49642c2076616c75, 0x6529207b0a202020, 0x2020202020202020, 0x20747279207b0a20, + 0x2020202020202020, 0x2020202020202074, 0x6869732e73656e64, 0x46756e6374696f6e, 0x52657475726e2863, + 0x616c6c49642c2076, 0x616c7565293b0a20, 0x2020202020202020, 0x2020207d20636174, 0x636820286572726f, + 0x7229207b0a202020, 0x2020202020202020, 0x2020202020746869, 0x732e73656e644675, 0x6e6374696f6e4572, + 0x726f722863616c6c, 0x49642c206572726f, 0x72293b0a20202020, 0x2020202020202020, 0x7d0a202020202020, + 0x20207d0a0a202020, 0x2020202020657865, 0x6375746546756e63, 0x74696f6e286e616d, 0x652c206172677329, + 0x207b0a2020202020, 0x2020202020202063, 0x6f6e737420706174, 0x68203d206e616d65, 0x2e73706c69742822, + 0x2e22293b0a202020, 0x2020202020202020, 0x20636f6e7374206d, 0x656d626572203d20, 0x706174682e706f70, + 0x28293b0a20202020, 0x2020202020202020, 0x6c657420636f6e74, 0x657874203d20676c, 0x6f62616c3b0a2020, + 0x2020202020202020, 0x2020666f72202863, 0x6f6e737420636f6d, 0x706f6e656e74206f, 0x6620706174682920, + 0x7b0a202020202020, 0x2020202020202020, 0x202069662028636f, 0x6e74657874203d3d, 0x206e756c6c207c7c, + 0x202128636f6d706f, 0x6e656e7420696e20, 0x636f6e7465787429, 0x290a202020202020, 0x2020202020202020, + 0x2020202020207468, 0x726f77206e657720, 0x4572726f7228604a, 0x6176615363726970, 0x74206e616d657370, + 0x6163652027247b63, 0x6f6d706f6e656e74, 0x7d2720776173206e, 0x6f7420666f756e64, 0x207768696c652072, + 0x65736f6c76696e67, 0x2027247b6e616d65, 0x7d2760293b0a2020, 0x2020202020202020, 0x202020202020636f, + 0x6e74657874203d20, 0x636f6e746578745b, 0x636f6d706f6e656e, 0x745d3b0a20202020, 0x2020202020202020, + 0x7d0a202020202020, 0x2020202020206966, 0x2028636f6e746578, 0x74203d3d206e756c, 0x6c207c7c20747970, + 0x656f6620636f6e74, 0x6578745b6d656d62, 0x65725d20213d3d20, 0x2266756e6374696f, 0x6e22290a20202020, + 0x2020202020202020, 0x202020207468726f, 0x77206e6577204572, 0x726f7228604a6176, 0x6153637269707420, + 0x66756e6374696f6e, 0x2027247b6e616d65, 0x7d2720776173206e, 0x6f7420666f756e64, 0x60293b0a20202020, + 0x2020202020202020, 0x72657475726e2063, 0x6f6e746578745b6d, 0x656d6265725d282e, 0x2e2e61726773293b, + 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202068616e64, 0x6c6546756e637469, 0x6f6e52657475726e, + 0x286d657373616765, 0x29207b0a20202020, 0x2020202020202020, 0x7265717569726542, 0x79746573286d6573, + 0x736167652c20302c, 0x20382c202266756e, 0x6374696f6e207265, 0x7475726e20686561, 0x64657222293b0a20, + 0x2020202020202020, 0x202020636f6e7374, 0x2063616c6c496420, 0x3d206d6573736167, 0x652e67657455696e, + 0x74313628322c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, 0x2020202020202063, + 0x6f6e73742070656e, 0x64696e67203d2074, 0x6869732e70656e64, 0x696e6743616c6c73, 0x2e6765742863616c, + 0x6c4964293b0a2020, 0x2020202020202020, 0x2020696620282170, 0x656e64696e67290a, 0x2020202020202020, + 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, 0x6046756e6374696f, 0x6e2072657475726e, + 0x2068617320756e6b, 0x6e6f776e2063616c, 0x6c20696420247b63, 0x616c6c49647d6029, 0x3b0a202020202020, + 0x2020202020207468, 0x69732e70656e6469, 0x6e6743616c6c732e, 0x64656c6574652863, 0x616c6c4964293b0a, + 0x0a20202020202020, 0x20202020202f2f20, 0x41206465636f6465, 0x206661696c757265, 0x2068617320746f20, + 0x736574746c652074, 0x68652070656e6469, 0x6e672063616c6c20, 0x7261746865722074, 0x68616e2065736361, + 0x706520696e746f20, 0x74686520736f636b, 0x65742068616e646c, 0x65722c0a20202020, 0x2020202020202020, + 0x2f2f206f74686572, 0x7769736520746865, 0x2063616c6c657227, 0x732070726f6d6973, 0x6520776f756c6420, + 0x68616e6720666f72, 0x657665722e0a2020, 0x2020202020202020, 0x2020747279207b0a, 0x2020202020202020, + 0x2020202020202020, 0x746869732e736574, 0x746c655265747572, 0x6e2870656e64696e, 0x672c206d65737361, + 0x6765293b0a202020, 0x2020202020202020, 0x207d206361746368, 0x20286572726f7229, 0x207b0a2020202020, + 0x2020202020202020, 0x20202070656e6469, 0x6e672e72656a6563, 0x74286572726f7229, 0x3b0a202020202020, + 0x2020202020207d0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x202020736574746c, 0x6552657475726e28, + 0x70656e64696e672c, 0x206d657373616765, 0x29207b0a20202020, 0x2020202020202020, 0x636f6e737420636f, + 0x756e74203d206d65, 0x73736167652e6765, 0x7455696e74382831, 0x293b0a2020202020, 0x2020202020202063, + 0x6f6e737420706179, 0x6c6f616453697a65, 0x203d206d65737361, 0x67652e6765745569, 0x6e74333228342c20, + 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, 0x7265717569726542, + 0x79746573286d6573, 0x736167652c20382c, 0x207061796c6f6164, 0x53697a652c202266, 0x756e6374696f6e20, + 0x72657475726e2070, 0x61796c6f61642229, 0x3b0a202020202020, 0x202020202020636f, 0x6e7374207061796c, + 0x6f6164203d206e65, 0x7720446174615669, 0x6577286d65737361, 0x67652e6275666665, 0x722c206d65737361, + 0x67652e627974654f, 0x6666736574202b20, 0x382c207061796c6f, 0x616453697a65293b, 0x0a0a202020202020, + 0x2020202020206966, 0x2028746869732e63, 0x6172726965734578, 0x63657074696f6e28, 0x636f756e742c2070, + 0x61796c6f61645369, 0x7a652c207061796c, 0x6f61642929207b0a, 0x2020202020202020, 0x2020202020202020, + 0x70656e64696e672e, 0x72656a656374286e, 0x6577204572726f72, 0x28746869732e7369, 0x6e676c6556616c75, + 0x65287061796c6f61, 0x642c207061796c6f, 0x616453697a652c20, 0x2245786365707469, 0x6f6e222929293b0a, + 0x2020202020202020, 0x2020202020202020, 0x72657475726e3b0a, 0x2020202020202020, 0x202020207d0a2020, + 0x2020202020202020, 0x202069662028636f, 0x756e74203d3d3d20, 0x3029207b0a202020, 0x2020202020202020, + 0x2020202020696620, 0x287061796c6f6164, 0x53697a6520213d3d, 0x2030290a20202020, 0x2020202020202020, + 0x2020202020202020, 0x7468726f77206e65, 0x77204572726f7228, 0x22566f6964207265, 0x7475726e20636f6e, + 0x7461696e73207061, 0x796c6f6164206461, 0x746122293b0a2020, 0x2020202020202020, 0x2020202020207065, + 0x6e64696e672e7265, 0x736f6c766528756e, 0x646566696e656429, 0x3b0a202020202020, 0x2020202020202020, + 0x202072657475726e, 0x3b0a202020202020, 0x2020202020207d0a, 0x2020202020202020, 0x2020202069662028, + 0x636f756e7420213d, 0x3d2031290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772045, + 0x72726f7228224675, 0x6e6374696f6e2072, 0x657475726e206d75, 0x737420636f6e7461, 0x696e207a65726f20, + 0x6f72206f6e652076, 0x616c756522293b0a, 0x2020202020202020, 0x2020202070656e64, 0x696e672e7265736f, + 0x6c76652874686973, 0x2e73696e676c6556, 0x616c756528706179, 0x6c6f61642c207061, 0x796c6f616453697a, + 0x652c202246756e63, 0x74696f6e2229293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202063617272, + 0x6965734578636570, 0x74696f6e28636f75, 0x6e742c207061796c, 0x6f616453697a652c, 0x207061796c6f6164, + 0x29207b0a20202020, 0x2020202020202020, 0x69662028636f756e, 0x7420213d3d203120, 0x7c7c207061796c6f, + 0x616453697a65203d, 0x3d3d203029207265, 0x7475726e2066616c, 0x73653b0a20202020, 0x2020202020202020, + 0x72657475726e2070, 0x61796c6f61642e67, 0x657455696e743828, 0x3029203d3d3d2050, 0x6172616d54797065, + 0x2e65786365707469, 0x6f6e3b0a20202020, 0x202020207d0a0a20, 0x202020202020202f, 0x2f2f204465636f64, + 0x6573206578616374, 0x6c79206f6e652076, 0x616c756520616e64, 0x2072656a65637473, 0x20616e7920627974, + 0x6573206c65667420, 0x6f76657220616674, 0x65722069742e0a20, 0x2020202020202073, 0x696e676c6556616c, + 0x7565287061796c6f, 0x61642c207061796c, 0x6f616453697a652c, 0x207768617429207b, 0x0a20202020202020, + 0x2020202020636f6e, 0x7374205b76616c75, 0x65732c20636f6e73, 0x756d65645d203d20, 0x746869732e646563, + 0x6f6465506172616d, 0x657465727328312c, 0x207061796c6f6164, 0x293b0a2020202020, 0x2020202020202069, + 0x662028636f6e7375, 0x6d656420213d3d20, 0x7061796c6f616453, 0x697a65290a202020, 0x2020202020202020, + 0x2020202020746872, 0x6f77206e65772045, 0x72726f722860247b, 0x776861747d207265, 0x7475726e20636f6e, + 0x7461696e73207472, 0x61696c696e672070, 0x61796c6f61642064, 0x61746160293b0a20, 0x2020202020202020, + 0x2020207265747572, 0x6e2076616c756573, 0x5b305d3b0a202020, 0x20202020207d0a0a, 0x2020202020202020, + 0x6465636f64655061, 0x72616d6574657273, 0x28636f756e742c20, 0x766965772c206f66, 0x66736574203d2030, + 0x29207b0a20202020, 0x2020202020202020, 0x636f6e7374207661, 0x6c756573203d205b, 0x5d3b0a2020202020, + 0x202020202020206c, 0x657420637572736f, 0x72203d206f666673, 0x65743b0a20202020, 0x2020202020202020, + 0x666f7220286c6574, 0x20696e646578203d, 0x20303b20696e6465, 0x78203c20636f756e, 0x743b202b2b696e64, + 0x657829207b0a2020, 0x2020202020202020, 0x2020202020207265, 0x7175697265427974, 0x657328766965772c, + 0x20637572736f722c, 0x20312c2022706172, 0x616d657465722074, 0x79706522293b0a20, 0x2020202020202020, + 0x2020202020202063, 0x6f6e7374207b7661, 0x6c75652c20627974, 0x65737d203d207468, 0x69732e6465636f64, + 0x6556616c75652876, 0x6965772e67657455, 0x696e743828637572, 0x736f72292c207669, 0x65772c2063757273, + 0x6f72293b0a202020, 0x2020202020202020, 0x202020202076616c, 0x7565732e70757368, 0x2876616c7565293b, + 0x0a20202020202020, 0x2020202020202020, 0x20637572736f7220, 0x2b3d206279746573, 0x3b0a202020202020, + 0x2020202020207d0a, 0x2020202020202020, 0x2020202072657475, 0x726e205b76616c75, 0x65732c2063757273, + 0x6f72202d206f6666, 0x7365745d3b0a2020, 0x2020202020207d0a, 0x0a20202020202020, 0x202f2f2f20446563, + 0x6f64657320746865, 0x2073696e676c6520, 0x76616c7565207374, 0x617274696e672061, 0x7420276f66667365, + 0x74272c2072657475, 0x726e696e67206974, 0x20616c6f6e677369, 0x6465207468652062, 0x79746520636f756e, + 0x7420697420636f6e, 0x73756d65642e0a20, 0x2020202020202064, 0x65636f646556616c, 0x756528747970652c, + 0x20766965772c206f, 0x666673657429207b, 0x0a20202020202020, 0x2020202020636f6e, 0x7374206465636f64, + 0x6572203d2076616c, 0x75654465636f6465, 0x72732e6765742874, 0x797065293b0a2020, 0x2020202020202020, + 0x2020696620282164, 0x65636f646572290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, + 0x7720547970654572, 0x726f722860556e73, 0x7570706f72746564, 0x20706172616d6574, 0x6572207479706520, + 0x247b747970657d60, 0x293b0a2020202020, 0x2020202020202072, 0x657475726e206465, 0x636f646572287468, + 0x69732c2074797065, 0x2c20766965772c20, 0x6f6666736574293b, 0x0a20202020202020, 0x207d0a0a20202020, + 0x202020206465636f, 0x64654e756d626572, 0x28766965772c206f, 0x666673657429207b, 0x0a20202020202020, + 0x2020202020726571, 0x7569726542797465, 0x7328766965772c20, 0x6f66667365742c20, 0x392c20226e756d62, + 0x657222293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x207b76616c75653a, 0x20766965772e6765, + 0x74466c6f61743634, 0x286f666673657420, 0x2b20312c20746869, 0x732e6c6974746c65, 0x456e6469616e292c, + 0x2062797465733a20, 0x397d3b0a20202020, 0x202020207d0a0a20, 0x2020202020202064, 0x65636f6465537472, + 0x696e672874797065, 0x2c20766965772c20, 0x6f66667365742920, 0x7b0a202020202020, 0x202020202020636f, + 0x6e73742073697a65, 0x4279746573203d20, 0x74797065203d3d3d, 0x20506172616d5479, 0x70652e736d616c6c, + 0x537472696e67203f, 0x2031203a20323b0a, 0x2020202020202020, 0x2020202072657175, 0x6972654279746573, + 0x28766965772c206f, 0x6666736574202b20, 0x312c2073697a6542, 0x797465732c202273, 0x7472696e67206c65, + 0x6e67746822293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74206c656e677468, 0x203d2073697a6542, + 0x79746573203d3d3d, 0x2031203f20766965, 0x772e67657455696e, 0x7438286f66667365, 0x74202b203129203a, + 0x20766965772e6765, 0x7455696e74313628, 0x6f6666736574202b, 0x20312c2074686973, 0x2e6c6974746c6545, + 0x6e6469616e293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74207061796c6f61, 0x64203d206f666673, + 0x6574202b2031202b, 0x2073697a65427974, 0x65733b0a20202020, 0x2020202020202020, 0x7265717569726542, + 0x7974657328766965, 0x772c207061796c6f, 0x61642c206c656e67, 0x74682c2022737472, 0x696e67207061796c, + 0x6f616422293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x206279746573203d, 0x206e65772055696e, + 0x7438417272617928, 0x766965772e627566, 0x6665722c20766965, 0x772e627974654f66, 0x66736574202b2070, + 0x61796c6f61642c20, 0x6c656e677468293b, 0x0a20202020202020, 0x2020202020726574, 0x75726e207b76616c, + 0x75653a206e657720, 0x546578744465636f, 0x6465722822757466, 0x2d3822292e646563, 0x6f64652862797465, + 0x73292c2062797465, 0x733a2031202b2073, 0x697a654279746573, 0x202b206c656e6774, 0x687d3b0a20202020, + 0x202020207d0a0a20, 0x2020202020202064, 0x65636f6465547570, 0x6c6528766965772c, 0x206f666673657429, + 0x207b0a2020202020, 0x2020202020202072, 0x6571756972654279, 0x7465732876696577, 0x2c206f6666736574, + 0x2c20322c20227475, 0x706c652068656164, 0x657222293b0a2020, 0x2020202020202020, 0x2020636f6e737420, + 0x5b7475706c652c20, 0x636f6e73756d6564, 0x5d203d2074686973, 0x2e6465636f646550, 0x6172616d65746572, + 0x7328766965772e67, 0x657455696e743828, 0x6f6666736574202b, 0x2031292c20766965, 0x772c206f66667365, + 0x74202b2032293b0a, 0x2020202020202020, 0x2020202072657475, 0x726e207b76616c75, 0x653a207475706c65, + 0x2c2062797465733a, 0x2032202b20636f6e, 0x73756d65647d3b0a, 0x2020202020202020, 0x7d0a0a2020202020, + 0x2020202f2f2f2052, 0x65736f6c76657320, 0x74686520656c656d, 0x656e742073706563, 0x20616e64206c656e, + 0x6774682070726566, 0x697820666f722061, 0x2074797065642061, 0x727261792c207768, 0x6f73652068656164, + 0x6572206973203220, 0x627974657320696e, 0x207468650a202020, 0x20202020202f2f2f, 0x20636f6d70616374, + 0x20736d616c6c4172, 0x726179553820666f, 0x726d20616e642035, 0x206279746573206f, 0x7468657277697365, + 0x2e0a202020202020, 0x2020726561645479, 0x7065644172726179, 0x4865616465722874, 0x7970652c20766965, + 0x772c206f66667365, 0x7429207b0a202020, 0x2020202020202020, 0x20636f6e73742073, 0x6d616c6c203d2074, + 0x797065203d3d3d20, 0x506172616d547970, 0x652e736d616c6c41, 0x7272617955383b0a, 0x2020202020202020, + 0x20202020636f6e73, 0x742073706563203d, 0x20736d616c6c203f, 0x207b2e2e2e617272, 0x6179436f6465732e, + 0x6765742850617261, 0x6d547970652e6172, 0x7261795538292c20, 0x636f6e7374727563, 0x746f723a2055696e, + 0x743841727261797d, 0x203a206172726179, 0x436f6465732e6765, 0x742874797065293b, 0x0a20202020202020, + 0x2020202020696620, 0x282173706563290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, + 0x7720547970654572, 0x726f722860556e73, 0x7570706f72746564, 0x2074797065642061, 0x7272617920636f64, + 0x6520247b74797065, 0x7d60293b0a202020, 0x2020202020202020, 0x20636f6e73742068, 0x656164657253697a, + 0x65203d20736d616c, 0x6c203f2032203a20, 0x353b0a2020202020, 0x2020202020202072, 0x6571756972654279, + 0x7465732876696577, 0x2c206f6666736574, 0x2c20686561646572, 0x53697a652c202261, 0x7272617920686561, + 0x64657222293b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x206c656e67746820, 0x3d20736d616c6c20, + 0x3f20766965772e67, 0x657455696e743828, 0x6f6666736574202b, 0x203129203a207669, 0x65772e6765745569, + 0x6e743332286f6666, 0x736574202b20312c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, + 0x2020202020202020, 0x2072657475726e20, 0x7b737065632c2068, 0x656164657253697a, 0x652c206c656e6774, + 0x687d3b0a20202020, 0x202020207d0a0a20, 0x2020202020202064, 0x65636f6465547970, 0x6564417272617928, + 0x747970652c207669, 0x65772c206f666673, 0x657429207b0a2020, 0x2020202020202020, 0x2020636f6e737420, + 0x7b737065632c2068, 0x656164657253697a, 0x652c206c656e6774, 0x687d203d20746869, 0x732e726561645479, + 0x7065644172726179, 0x4865616465722874, 0x7970652c20766965, 0x772c206f66667365, 0x74293b0a20202020, + 0x2020202020202020, 0x636f6e7374206279, 0x74654c656e677468, 0x203d206c656e6774, 0x68202a2073706563, + 0x2e62797465733b0a, 0x2020202020202020, 0x2020202069662028, 0x214e756d6265722e, 0x697353616665496e, + 0x7465676572286279, 0x74654c656e677468, 0x29290a2020202020, 0x2020202020202020, 0x2020207468726f77, + 0x206e65772052616e, 0x67654572726f7228, 0x2254797065642061, 0x72726179206c656e, 0x6774682069732074, + 0x6f6f206c61726765, 0x22293b0a20202020, 0x2020202020202020, 0x7265717569726542, 0x7974657328766965, + 0x772c206f66667365, 0x74202b2068656164, 0x657253697a652c20, 0x627974654c656e67, 0x74682c2022617272, + 0x6179207061796c6f, 0x616422293b0a0a20, 0x2020202020202020, 0x202020636f6e7374, 0x20726573756c7420, + 0x3d206e6577207370, 0x65632e636f6e7374, 0x727563746f72286c, 0x656e677468293b0a, 0x2020202020202020, + 0x20202020636f6e73, 0x74207061796c6f61, 0x64203d206f666673, 0x6574202b20686561, 0x64657253697a653b, + 0x0a20202020202020, 0x2020202020666f72, 0x20286c657420696e, 0x646578203d20303b, 0x20696e646578203c, + 0x206c656e6774683b, 0x202b2b696e646578, 0x290a202020202020, 0x2020202020202020, 0x2020726573756c74, + 0x5b696e6465785d20, 0x3d20766965775b73, 0x7065632e67657474, 0x65725d287061796c, 0x6f6164202b20696e, + 0x646578202a207370, 0x65632e6279746573, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, + 0x2020202020202020, 0x202072657475726e, 0x207b76616c75653a, 0x20726573756c742c, 0x2062797465733a20, + 0x6865616465725369, 0x7a65202b20627974, 0x654c656e6774687d, 0x3b0a202020202020, 0x20207d0a0a202020, + 0x2020202020637070, 0x46756e6374696f6e, 0x286e616d6529207b, 0x0a20202020202020, 0x2020202020726574, + 0x75726e20282e2e2e, 0x6172677329203d3e, 0x20746869732e6361, 0x6c6c43707046756e, 0x6374696f6e286e61, + 0x6d652c2061726773, 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020206361, 0x6c6c43707046756e, + 0x6374696f6e286e61, 0x6d652c2061726773, 0x29207b0a20202020, 0x2020202020202020, 0x72657475726e206e, + 0x65772050726f6d69, 0x736528287265736f, 0x6c76652c2072656a, 0x65637429203d3e20, 0x7b0a202020202020, + 0x2020202020202020, 0x20206c6574206361, 0x6c6c4964203d2030, 0x3b0a202020202020, 0x2020202020202020, + 0x2020747279207b0a, 0x2020202020202020, 0x2020202020202020, 0x2020202069662028, 0x746869732e737461, + 0x746520213d3d2022, 0x6c696e6b65642229, 0x0a20202020202020, 0x2020202020202020, 0x2020202020202020, + 0x207468726f77206e, 0x6577204572726f72, 0x282257656246726f, 0x6e74206272696467, 0x65206973206e6f74, + 0x20636f6e6e656374, 0x656422293b0a2020, 0x2020202020202020, 0x2020202020202020, 0x2020636f6e737420, + 0x76616c756573203d, 0x205b6e616d652c20, 0x2e2e2e617267735d, 0x3b0a202020202020, 0x2020202020202020, + 0x2020202020206966, 0x202876616c756573, 0x2e6c656e67746820, 0x3e20323535290a20, 0x2020202020202020, + 0x2020202020202020, 0x2020202020202074, 0x68726f77206e6577, 0x2052616e67654572, 0x726f722822412066, + 0x756e6374696f6e20, 0x63616c6c2063616e, 0x6e6f7420636f6e74, 0x61696e206d6f7265, 0x207468616e203235, + 0x3520746f702d6c65, 0x76656c2076616c75, 0x657322293b0a2020, 0x2020202020202020, 0x2020202020202020, + 0x2020636f6e737420, 0x7061796c6f616453, 0x697a65203d207661, 0x6c7565732e726564, 0x756365282873697a, + 0x652c2076616c7565, 0x29203d3e2073697a, 0x65202b2074686973, 0x2e706172616d6574, 0x657253697a652876, + 0x616c7565292c2030, 0x293b0a2020202020, 0x2020202020202020, 0x2020202020202063, 0x6f6e737420627566, + 0x666572203d206e65, 0x7720417272617942, 0x7566666572283820, 0x2b207061796c6f61, 0x6453697a65293b0a, + 0x2020202020202020, 0x2020202020202020, 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, + 0x6156696577286275, 0x66666572293b0a20, 0x2020202020202020, 0x2020202020202020, 0x20202063616c6c49, + 0x64203d2074686973, 0x2e616c6c6f636174, 0x6543616c6c496428, 0x293b0a2020202020, 0x2020202020202020, + 0x2020202020202076, 0x6965772e73657455, 0x696e743828302c20, 0x436f6d6d616e642e, 0x63616c6c46756e63, + 0x74696f6e293b0a20, 0x2020202020202020, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, + 0x28312c2076616c75, 0x65732e6c656e6774, 0x68293b0a20202020, 0x2020202020202020, 0x2020202020202020, + 0x766965772e736574, 0x55696e7431362832, 0x2c2063616c6c4964, 0x2c20746869732e6c, 0x6974746c65456e64, + 0x69616e293b0a2020, 0x2020202020202020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743332, + 0x28342c207061796c, 0x6f616453697a652c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, + 0x2020202020202020, 0x2020202020202020, 0x206c657420637572, 0x736f72203d20383b, 0x0a20202020202020, + 0x2020202020202020, 0x2020202020666f72, 0x2028636f6e737420, 0x76616c7565206f66, 0x2076616c75657329, + 0x0a20202020202020, 0x2020202020202020, 0x2020202020202020, 0x20637572736f7220, 0x2b3d20746869732e, + 0x656e636f64655061, 0x72616d6574657228, 0x76616c75652c2076, 0x6965772c20637572, 0x736f72293b0a2020, + 0x2020202020202020, 0x2020202020202020, 0x2020746869732e70, 0x656e64696e674361, 0x6c6c732e73657428, + 0x63616c6c49642c20, 0x7b7265736f6c7665, 0x2c2072656a656374, 0x7d293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x746869732e736f63, 0x6b65742e73656e64, 0x2862756666657229, 0x3b0a202020202020, - 0x20207d0a0a202020, 0x202020202073656e, 0x6446756e6374696f, 0x6e4572726f722863, 0x616c6c49642c2065, - 0x72726f7229207b0a, 0x2020202020202020, 0x20202020636f6e73, 0x74206d6573736167, 0x65203d206572726f, - 0x7220696e7374616e, 0x63656f6620457272, 0x6f72203f20657272, 0x6f722e6d65737361, 0x6765203a20537472, - 0x696e67286572726f, 0x72293b0a20202020, 0x2020202020202020, 0x636f6e7374206279, 0x746573203d206e65, - 0x772054657874456e, 0x636f64657228292e, 0x656e636f6465286d, 0x657373616765293b, 0x0a20202020202020, - 0x2020202020696620, 0x2862797465732e6c, 0x656e677468203e3d, 0x203635353336290a, 0x2020202020202020, - 0x2020202020202020, 0x72657475726e2074, 0x6869732e73656e64, 0x46756e6374696f6e, 0x4572726f72286361, - 0x6c6c49642c20224a, 0x6176615363726970, 0x7420657863657074, 0x696f6e206d657373, 0x6167652065786365, - 0x6564732036353533, 0x35205554462d3820, 0x627974657322293b, 0x0a20202020202020, 0x2020202020636f6e, - 0x7374206275666665, 0x72203d206e657720, 0x4172726179427566, 0x666572283131202b, 0x2062797465732e6c, - 0x656e677468293b0a, 0x2020202020202020, 0x20202020636f6e73, 0x742076696577203d, 0x206e657720446174, - 0x6156696577286275, 0x66666572293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7438, - 0x28302c20436f6d6d, 0x616e642e66756e63, 0x74696f6e52657475, 0x726e293b0a202020, 0x2020202020202020, - 0x20766965772e7365, 0x7455696e74382831, 0x2c2031293b0a2020, 0x2020202020202020, 0x2020766965772e73, - 0x657455696e743136, 0x28322c2063616c6c, 0x49642c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, - 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x333228342c203320, 0x2b2062797465732e, - 0x6c656e6774682c20, 0x746869732e6c6974, 0x746c65456e646961, 0x6e293b0a20202020, 0x2020202020202020, - 0x766965772e736574, 0x55696e743828382c, 0x20506172616d5479, 0x70652e6578636570, 0x74696f6e293b0a20, - 0x2020202020202020, 0x202020766965772e, 0x73657455696e7431, 0x3628392c20627974, 0x65732e6c656e6774, - 0x682c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, 0x2020206e65772055, - 0x696e743841727261, 0x7928627566666572, 0x2c203131292e7365, 0x7428627974657329, 0x3b0a202020202020, - 0x2020202020207468, 0x69732e736f636b65, 0x742e73656e642862, 0x7566666572293b0a, 0x2020202020202020, - 0x7d0a0a2020202020, 0x202020706172616d, 0x6574657253697a65, 0x2876616c75652920, 0x7b0a202020202020, + 0x2020202020202020, 0x20207d2063617463, 0x6820286572726f72, 0x29207b0a20202020, 0x2020202020202020, + 0x2020202020202020, 0x6966202863616c6c, 0x496420213d3d2030, 0x290a202020202020, 0x2020202020202020, + 0x2020202020202020, 0x2020746869732e70, 0x656e64696e674361, 0x6c6c732e64656c65, 0x74652863616c6c49, + 0x64293b0a20202020, 0x2020202020202020, 0x2020202020202020, 0x72656a6563742865, 0x72726f72293b0a20, + 0x2020202020202020, 0x202020202020207d, 0x0a20202020202020, 0x20202020207d293b, 0x0a20202020202020, + 0x207d0a0a20202020, 0x20202020616c6c6f, 0x6361746543616c6c, 0x49642829207b0a20, 0x2020202020202020, + 0x202020666f722028, 0x6c65742061747465, 0x6d707473203d2030, 0x3b20617474656d70, 0x7473203c20307866, + 0x6666663b202b2b61, 0x7474656d70747329, 0x207b0a2020202020, 0x2020202020202020, 0x202020636f6e7374, + 0x2063616e64696461, 0x7465203d20746869, 0x732e6e6578744361, 0x6c6c49643b0a2020, 0x2020202020202020, + 0x2020202020207468, 0x69732e6e65787443, 0x616c6c4964203d20, 0x746869732e6e6578, 0x7443616c6c496420, + 0x3d3d3d2030786666, 0x6666203f2031203a, 0x20746869732e6e65, 0x787443616c6c4964, 0x202b20313b0a2020, + 0x2020202020202020, 0x2020202020206966, 0x202821746869732e, 0x70656e64696e6743, 0x616c6c732e686173, + 0x2863616e64696461, 0x746529290a202020, 0x2020202020202020, 0x2020202020202020, 0x2072657475726e20, + 0x63616e6469646174, 0x653b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020746872, + 0x6f77206e65772045, 0x72726f722822546f, 0x6f206d616e79206f, 0x75747374616e6469, 0x6e67205765624672, + 0x6f6e742063616c6c, 0x7322293b0a202020, 0x20202020207d0a0a, 0x2020202020202020, 0x73656e6446756e63, + 0x74696f6e52657475, 0x726e2863616c6c49, 0x642c2076616c7565, 0x29207b0a20202020, 0x2020202020202020, + 0x636f6e7374207661, 0x6c756573203d2076, 0x616c7565203d3d3d, 0x20756e646566696e, 0x6564203f205b5d20, + 0x3a205b76616c7565, 0x5d3b0a2020202020, 0x2020202020202063, 0x6f6e737420706179, 0x6c6f616453697a65, + 0x203d2076616c7565, 0x732e726564756365, 0x282873697a652c20, 0x6974656d29203d3e, 0x2073697a65202b20, + 0x746869732e706172, 0x616d657465725369, 0x7a65286974656d29, 0x2c2030293b0a2020, 0x2020202020202020, + 0x2020636f6e737420, 0x627566666572203d, 0x206e657720417272, 0x6179427566666572, 0x2838202b20706179, + 0x6c6f616453697a65, 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420766965, 0x77203d206e657720, + 0x4461746156696577, 0x2862756666657229, 0x3b0a202020202020, 0x2020202020207669, 0x65772e7365745569, + 0x6e743828302c2043, 0x6f6d6d616e642e66, 0x756e6374696f6e52, 0x657475726e293b0a, 0x2020202020202020, + 0x2020202076696577, 0x2e73657455696e74, 0x3828312c2076616c, 0x7565732e6c656e67, 0x7468293b0a202020, + 0x2020202020202020, 0x20766965772e7365, 0x7455696e74313628, 0x322c2063616c6c49, 0x642c20746869732e, + 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, 0x202020766965772e, 0x73657455696e7433, + 0x3228342c20706179, 0x6c6f616453697a65, 0x2c20746869732e6c, 0x6974746c65456e64, 0x69616e293b0a2020, + 0x2020202020202020, 0x20206c6574206375, 0x72736f72203d2038, 0x3b0a202020202020, 0x202020202020666f, + 0x722028636f6e7374, 0x206974656d206f66, 0x2076616c75657329, 0x0a20202020202020, 0x2020202020202020, + 0x20637572736f7220, 0x2b3d20746869732e, 0x656e636f64655061, 0x72616d6574657228, 0x6974656d2c207669, + 0x65772c2063757273, 0x6f72293b0a202020, 0x2020202020202020, 0x20746869732e736f, 0x636b65742e73656e, + 0x6428627566666572, 0x293b0a2020202020, 0x2020207d0a0a2020, 0x2020202020207365, 0x6e6446756e637469, + 0x6f6e4572726f7228, 0x63616c6c49642c20, 0x6572726f7229207b, 0x0a20202020202020, 0x2020202020636f6e, + 0x7374206d65737361, 0x6765203d20657272, 0x6f7220696e737461, 0x6e63656f66204572, 0x726f72203f206572, + 0x726f722e6d657373, 0x616765203a205374, 0x72696e6728657272, 0x6f72293b0a202020, 0x2020202020202020, + 0x20636f6e73742062, 0x79746573203d206e, 0x6577205465787445, 0x6e636f6465722829, 0x2e656e636f646528, + 0x6d65737361676529, 0x3b0a202020202020, 0x2020202020206966, 0x202862797465732e, 0x6c656e677468203e, + 0x3d20363535333629, 0x0a20202020202020, 0x2020202020202020, 0x2072657475726e20, 0x746869732e73656e, + 0x6446756e6374696f, 0x6e4572726f722863, 0x616c6c49642c2022, 0x4a61766153637269, 0x7074206578636570, + 0x74696f6e206d6573, 0x7361676520657863, 0x6565647320363535, 0x3335205554462d38, 0x2062797465732229, + 0x3b0a202020202020, 0x202020202020636f, 0x6e73742062756666, 0x6572203d206e6577, 0x2041727261794275, + 0x6666657228313120, 0x2b2062797465732e, 0x6c656e677468293b, 0x0a20202020202020, 0x2020202020636f6e, + 0x7374207669657720, 0x3d206e6577204461, 0x7461566965772862, 0x7566666572293b0a, 0x2020202020202020, + 0x2020202076696577, 0x2e73657455696e74, 0x3828302c20436f6d, 0x6d616e642e66756e, 0x6374696f6e526574, + 0x75726e293b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x312c2031293b0a20, + 0x2020202020202020, 0x202020766965772e, 0x73657455696e7431, 0x3628322c2063616c, 0x6c49642c20746869, + 0x732e6c6974746c65, 0x456e6469616e293b, 0x0a20202020202020, 0x2020202020766965, 0x772e73657455696e, + 0x74333228342c2033, 0x202b206279746573, 0x2e6c656e6774682c, 0x20746869732e6c69, 0x74746c65456e6469, + 0x616e293b0a202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74382838, 0x2c20506172616d54, + 0x7970652e65786365, 0x7074696f6e293b0a, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, + 0x313628392c206279, 0x7465732e6c656e67, 0x74682c2074686973, 0x2e6c6974746c6545, 0x6e6469616e293b0a, + 0x2020202020202020, 0x202020206e657720, 0x55696e7438417272, 0x6179286275666665, 0x722c203131292e73, + 0x6574286279746573, 0x293b0a2020202020, 0x2020202020202074, 0x6869732e736f636b, 0x65742e73656e6428, + 0x627566666572293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x2020202070617261, 0x6d6574657253697a, + 0x652876616c756529, 0x207b0a2020202020, 0x2020202020202073, 0x7769746368202874, 0x7970656f66207661, + 0x6c756529207b0a20, 0x2020202020202020, 0x2020206361736520, 0x22626f6f6c65616e, 0x223a0a2020202020, + 0x2020202020202020, 0x2020207265747572, 0x6e20313b0a202020, 0x2020202020202020, 0x206361736520226e, + 0x756d626572223a0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2039, 0x3b0a202020202020, + 0x2020202020206361, 0x7365202273747269, 0x6e67223a0a202020, 0x2020202020202020, 0x2020202020726574, + 0x75726e2074686973, 0x2e737472696e6750, 0x6172616d65746572, 0x53697a652876616c, 0x7565293b0a202020, + 0x2020202020202020, 0x206361736520226f, 0x626a656374223a0a, 0x2020202020202020, 0x2020202020202020, + 0x72657475726e2074, 0x6869732e6f626a65, 0x6374506172616d65, 0x74657253697a6528, 0x76616c7565293b0a, + 0x2020202020202020, 0x202020207d0a2020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, + 0x4572726f72286055, 0x6e737570706f7274, 0x6564205765624672, 0x6f6e742070617261, 0x6d65746572207479, + 0x70652027247b7479, 0x70656f662076616c, 0x75657d2760293b0a, 0x2020202020202020, 0x7d0a0a2020202020, + 0x202020737472696e, 0x67506172616d6574, 0x657253697a652876, 0x616c756529207b0a, 0x2020202020202020, + 0x20202020636f6e73, 0x74206c656e677468, 0x203d206e65772054, 0x657874456e636f64, 0x657228292e656e63, + 0x6f64652876616c75, 0x65292e6c656e6774, 0x683b0a2020202020, 0x2020202020202069, 0x6620286c656e6774, + 0x68203e3d20363535, 0x3336290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205261, + 0x6e67654572726f72, 0x282257656246726f, 0x6e7420737472696e, 0x67732063616e6e6f, 0x7420657863656564, + 0x2036353533352055, 0x54462d3820627974, 0x657322293b0a2020, 0x2020202020202020, 0x202072657475726e, + 0x206c656e67746820, 0x2b20286c656e6774, 0x68203c2032353620, 0x3f2032203a203329, 0x3b0a202020202020, + 0x20207d0a0a202020, 0x20202020206f626a, 0x656374506172616d, 0x6574657253697a65, 0x2876616c75652920, + 0x7b0a202020202020, 0x2020202020206966, 0x202841727261792e, 0x6973417272617928, 0x76616c756529290a, + 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, 0x6869732e7475706c, 0x65506172616d6574, + 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, 0x2020206966202869, 0x7354797065644172, + 0x7261792876616c75, 0x6529290a20202020, 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, + 0x7479706564417272, 0x6179506172616d65, 0x74657253697a6528, 0x76616c7565293b0a, 0x2020202020202020, + 0x202020207468726f, 0x77206e6577205479, 0x70654572726f7228, 0x60556e737570706f, 0x7274656420576562, + 0x46726f6e74207061, 0x72616d6574657220, 0x747970652027247b, 0x747970656f662076, 0x616c75657d276029, + 0x3b0a202020202020, 0x20207d0a0a202020, 0x2020202020747570, 0x6c65506172616d65, 0x74657253697a6528, + 0x76616c756529207b, 0x0a20202020202020, 0x2020202020696620, 0x2876616c75652e6c, 0x656e677468203e20, + 0x323535290a202020, 0x2020202020202020, 0x2020202020746872, 0x6f77206e65772052, 0x616e67654572726f, + 0x7228225765624672, 0x6f6e74207475706c, 0x65732063616e6e6f, 0x7420657863656564, 0x2032353520656c65, + 0x6d656e747322293b, 0x0a20202020202020, 0x2020202020726574, 0x75726e2032202b20, 0x76616c75652e7265, + 0x6475636528287369, 0x7a652c20656c656d, 0x656e7429203d3e20, 0x73697a65202b2074, 0x6869732e70617261, + 0x6d6574657253697a, 0x6528656c656d656e, 0x74292c2030293b0a, 0x2020202020202020, 0x7d0a0a2020202020, + 0x2020207479706564, 0x4172726179506172, 0x616d657465725369, 0x7a652876616c7565, 0x29207b0a20202020, + 0x2020202020202020, 0x6966202821617272, 0x617954797065732e, 0x6861732876616c75, 0x652e636f6e737472, + 0x7563746f7229290a, 0x2020202020202020, 0x2020202020202020, 0x7468726f77206e65, 0x7720547970654572, + 0x726f722860556e73, 0x7570706f72746564, 0x2074797065642061, 0x7272617920247b76, 0x616c75652e636f6e, + 0x7374727563746f72, 0x2e6e616d657d6029, 0x3b0a202020202020, 0x2020202020206966, 0x202876616c75652e, + 0x6c656e677468203e, 0x2030786666666666, 0x666666290a202020, 0x2020202020202020, 0x2020202020746872, + 0x6f77206e65772052, 0x616e67654572726f, 0x7228225479706564, 0x2061727261797320, 0x63616e6e6f742065, + 0x7863656564203432, 0x3934393637323935, 0x20656c656d656e74, 0x7322293b0a202020, 0x2020202020202020, + 0x2072657475726e20, 0x7479706564417272, 0x6179486561646572, 0x53697a652876616c, 0x756529202b207661, + 0x6c75652e62797465, 0x4c656e6774683b0a, 0x2020202020202020, 0x7d0a0a2020202020, 0x202020656e636f64, + 0x65506172616d6574, 0x65722876616c7565, 0x2c20766965772c20, 0x6f66667365742920, 0x7b0a202020202020, 0x2020202020207377, 0x6974636820287479, 0x70656f662076616c, 0x756529207b0a2020, 0x2020202020202020, - 0x2020636173652022, 0x626f6f6c65616e22, 0x3a0a202020202020, 0x2020202020202020, 0x202072657475726e, - 0x20313b0a20202020, 0x2020202020202020, 0x6361736520226e75, 0x6d626572223a0a20, 0x2020202020202020, - 0x2020202020202072, 0x657475726e20393b, 0x0a20202020202020, 0x2020202020636173, 0x652022737472696e, - 0x67223a0a20202020, 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, 0x737472696e675061, - 0x72616d6574657253, 0x697a652876616c75, 0x65293b0a20202020, 0x2020202020202020, 0x6361736520226f62, - 0x6a656374223a0a20, 0x2020202020202020, 0x2020202020202072, 0x657475726e207468, 0x69732e6f626a6563, - 0x74506172616d6574, 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, 0x2020207d0a202020, - 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f722860556e, 0x737570706f727465, - 0x642057656246726f, 0x6e7420706172616d, 0x6574657220747970, 0x652027247b747970, 0x656f662076616c75, - 0x657d2760293b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x2020737472696e67, 0x506172616d657465, - 0x7253697a65287661, 0x6c756529207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x206c656e67746820, - 0x3d206e6577205465, 0x7874456e636f6465, 0x7228292e656e636f, 0x64652876616c7565, 0x292e6c656e677468, - 0x3b0a202020202020, 0x2020202020206966, 0x20286c656e677468, 0x203e3d2036353533, 0x36290a2020202020, - 0x2020202020202020, 0x2020207468726f77, 0x206e65772052616e, 0x67654572726f7228, 0x2257656246726f6e, - 0x7420737472696e67, 0x732063616e6e6f74, 0x2065786365656420, 0x3635353335205554, 0x462d382062797465, - 0x7322293b0a202020, 0x2020202020202020, 0x2072657475726e20, 0x6c656e677468202b, 0x20286c656e677468, - 0x203c20323536203f, 0x2032203a2033293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x202020206f626a65, - 0x6374506172616d65, 0x74657253697a6528, 0x76616c756529207b, 0x0a20202020202020, 0x2020202020696620, - 0x2841727261792e69, 0x7341727261792876, 0x616c756529290a20, 0x2020202020202020, 0x2020202020202072, - 0x657475726e207468, 0x69732e7475706c65, 0x506172616d657465, 0x7253697a65287661, 0x6c7565293b0a2020, - 0x2020202020202020, 0x2020696620286973, 0x5479706564417272, 0x61792876616c7565, 0x29290a2020202020, - 0x2020202020202020, 0x2020207265747572, 0x6e20746869732e74, 0x7970656441727261, 0x79506172616d6574, - 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, - 0x654572726f722860, 0x556e737570706f72, 0x7465642057656246, 0x726f6e7420706172, 0x616d657465722074, - 0x7970652027247b74, 0x7970656f66207661, 0x6c75657d2760293b, 0x0a20202020202020, 0x207d0a0a20202020, - 0x202020207475706c, 0x65506172616d6574, 0x657253697a652876, 0x616c756529207b0a, 0x2020202020202020, - 0x2020202069662028, 0x76616c75652e6c65, 0x6e677468203e2032, 0x3535290a20202020, 0x2020202020202020, - 0x202020207468726f, 0x77206e6577205261, 0x6e67654572726f72, 0x282257656246726f, 0x6e74207475706c65, - 0x732063616e6e6f74, 0x2065786365656420, 0x32353520656c656d, 0x656e747322293b0a, 0x2020202020202020, - 0x2020202072657475, 0x726e2032202b2076, 0x616c75652e726564, 0x756365282873697a, 0x652c20656c656d65, - 0x6e7429203d3e2073, 0x697a65202b207468, 0x69732e706172616d, 0x6574657253697a65, 0x28656c656d656e74, - 0x292c2030293b0a20, 0x202020202020207d, 0x0a0a202020202020, 0x2020747970656441, 0x7272617950617261, - 0x6d6574657253697a, 0x652876616c756529, 0x207b0a2020202020, 0x2020202020202069, 0x6620282161727261, - 0x7954797065732e68, 0x61732876616c7565, 0x2e636f6e73747275, 0x63746f7229290a20, 0x2020202020202020, - 0x2020202020202074, 0x68726f77206e6577, 0x2054797065457272, 0x6f722860556e7375, 0x70706f7274656420, - 0x7479706564206172, 0x72617920247b7661, 0x6c75652e636f6e73, 0x74727563746f722e, 0x6e616d657d60293b, - 0x0a20202020202020, 0x2020202020696620, 0x2876616c75652e6c, 0x656e677468203e20, 0x3078666666666666, - 0x6666290a20202020, 0x2020202020202020, 0x202020207468726f, 0x77206e6577205261, 0x6e67654572726f72, - 0x2822547970656420, 0x6172726179732063, 0x616e6e6f74206578, 0x6365656420343239, 0x3439363732393520, - 0x656c656d656e7473, 0x22293b0a20202020, 0x2020202020202020, 0x72657475726e2074, 0x7970656441727261, - 0x7948656164657253, 0x697a652876616c75, 0x6529202b2076616c, 0x75652e627974654c, 0x656e6774683b0a20, - 0x202020202020207d, 0x0a0a202020202020, 0x2020656e636f6465, 0x506172616d657465, 0x722876616c75652c, - 0x20766965772c206f, 0x666673657429207b, 0x0a20202020202020, 0x2020202020737769, 0x7463682028747970, - 0x656f662076616c75, 0x6529207b0a202020, 0x2020202020202020, 0x2063617365202262, 0x6f6f6c65616e223a, - 0x0a20202020202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e7438286f, 0x66667365742c2076, - 0x616c7565203f2050, 0x6172616d54797065, 0x2e626f6f6c65616e, 0x54727565203a2050, 0x6172616d54797065, - 0x2e626f6f6c65616e, 0x46616c7365293b0a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2031, - 0x3b0a202020202020, 0x2020202020206361, 0x736520226e756d62, 0x6572223a0a202020, 0x2020202020202020, - 0x2020202020766965, 0x772e73657455696e, 0x7438286f66667365, 0x742c20506172616d, 0x547970652e6e756d, - 0x626572293b0a2020, 0x2020202020202020, 0x2020202020207669, 0x65772e736574466c, 0x6f61743634286f66, - 0x66736574202b2031, 0x2c2076616c75652c, 0x20746869732e6c69, 0x74746c65456e6469, 0x616e293b0a202020, - 0x2020202020202020, 0x2020202020726574, 0x75726e20393b0a20, 0x2020202020202020, 0x2020206361736520, - 0x22737472696e6722, 0x3a0a202020202020, 0x2020202020202020, 0x202072657475726e, 0x20746869732e656e, - 0x636f646553747269, 0x6e672876616c7565, 0x2c20766965772c20, 0x6f6666736574293b, 0x0a20202020202020, - 0x2020202020636173, 0x6520226f626a6563, 0x74223a0a20202020, 0x2020202020202020, 0x2020202072657475, - 0x726e20746869732e, 0x656e636f64654f62, 0x6a6563742876616c, 0x75652c2076696577, 0x2c206f6666736574, - 0x293b0a2020202020, 0x202020202020207d, 0x0a20202020202020, 0x2020202020746872, 0x6f77206e65772054, - 0x7970654572726f72, 0x2860556e73757070, 0x6f72746564205765, 0x6246726f6e742070, 0x6172616d65746572, - 0x2074797065202724, 0x7b747970656f6620, 0x76616c75657d2760, 0x293b0a2020202020, 0x2020207d0a0a2020, - 0x202020202020656e, 0x636f646553747269, 0x6e672876616c7565, 0x2c20766965772c20, 0x6f66667365742920, - 0x7b0a202020202020, 0x202020202020636f, 0x6e73742062797465, 0x73203d206e657720, 0x54657874456e636f, - 0x64657228292e656e, 0x636f64652876616c, 0x7565293b0a202020, 0x2020202020202020, 0x20636f6e73742073, - 0x6d616c6c203d2062, 0x797465732e6c656e, 0x677468203c203235, 0x363b0a2020202020, 0x2020202020202076, - 0x6965772e73657455, 0x696e7438286f6666, 0x7365742c20736d61, 0x6c6c203f20506172, 0x616d547970652e73, - 0x6d616c6c53747269, 0x6e67203a20506172, 0x616d547970652e73, 0x7472696e67293b0a, 0x2020202020202020, - 0x2020202069662028, 0x736d616c6c290a20, 0x2020202020202020, 0x2020202020202076, 0x6965772e73657455, - 0x696e7438286f6666, 0x736574202b20312c, 0x2062797465732e6c, 0x656e677468293b0a, 0x2020202020202020, - 0x20202020656c7365, 0x0a20202020202020, 0x2020202020202020, 0x20766965772e7365, 0x7455696e74313628, - 0x6f6666736574202b, 0x20312c2062797465, 0x732e6c656e677468, 0x2c20746869732e6c, 0x6974746c65456e64, - 0x69616e293b0a2020, 0x2020202020202020, 0x2020636f6e737420, 0x6865616465725369, 0x7a65203d20736d61, - 0x6c6c203f2032203a, 0x20333b0a20202020, 0x2020202020202020, 0x6e65772055696e74, 0x3841727261792876, - 0x6965772e62756666, 0x65722c2076696577, 0x2e627974654f6666, 0x736574202b206f66, 0x66736574202b2068, - 0x656164657253697a, 0x652c206279746573, 0x2e6c656e67746829, 0x2e73657428627974, 0x6573293b0a202020, - 0x2020202020202020, 0x2072657475726e20, 0x6865616465725369, 0x7a65202b20627974, 0x65732e6c656e6774, - 0x683b0a2020202020, 0x2020207d0a0a2020, 0x202020202020656e, 0x636f64654f626a65, 0x63742876616c7565, - 0x2c20766965772c20, 0x6f66667365742920, 0x7b0a202020202020, 0x2020202020206966, 0x202841727261792e, - 0x6973417272617928, 0x76616c756529290a, 0x2020202020202020, 0x2020202020202020, 0x72657475726e2074, - 0x6869732e656e636f, 0x64655475706c6528, 0x76616c75652c2076, 0x6965772c206f6666, 0x736574293b0a2020, - 0x2020202020202020, 0x2020696620286973, 0x5479706564417272, 0x61792876616c7565, 0x29290a2020202020, - 0x2020202020202020, 0x2020207265747572, 0x6e20746869732e65, 0x6e636f6465547970, 0x6564417272617928, - 0x76616c75652c2076, 0x6965772c206f6666, 0x736574293b0a2020, 0x2020202020202020, 0x20207468726f7720, - 0x6e65772054797065, 0x4572726f72286055, 0x6e737570706f7274, 0x6564205765624672, 0x6f6e742070617261, - 0x6d65746572207479, 0x70652027247b7479, 0x70656f662076616c, 0x75657d2760293b0a, 0x2020202020202020, - 0x7d0a0a2020202020, 0x202020656e636f64, 0x655475706c652876, 0x616c75652c207669, 0x65772c206f666673, - 0x657429207b0a2020, 0x2020202020202020, 0x2020766965772e73, 0x657455696e743828, 0x6f66667365742c20, - 0x506172616d547970, 0x652e7475706c6529, 0x3b0a202020202020, 0x2020202020207669, 0x65772e7365745569, - 0x6e7438286f666673, 0x6574202b20312c20, 0x76616c75652e6c65, 0x6e677468293b0a20, 0x2020202020202020, - 0x2020206c65742077, 0x72697474656e203d, 0x20323b0a20202020, 0x2020202020202020, 0x666f722028636f6e, - 0x737420656c656d65, 0x6e74206f66207661, 0x6c7565290a202020, 0x2020202020202020, 0x2020202020777269, - 0x7474656e202b3d20, 0x746869732e656e63, 0x6f6465506172616d, 0x6574657228656c65, 0x6d656e742c207669, - 0x65772c206f666673, 0x6574202b20777269, 0x7474656e293b0a20, 0x2020202020202020, 0x2020207265747572, - 0x6e20777269747465, 0x6e3b0a2020202020, 0x2020207d0a0a2020, 0x202020202020656e, 0x636f646554797065, - 0x6441727261792876, 0x616c75652c207669, 0x65772c206f666673, 0x657429207b0a2020, 0x2020202020202020, - 0x2020636f6e737420, 0x73706563203d2061, 0x7272617954797065, 0x732e676574287661, 0x6c75652e636f6e73, - 0x74727563746f7229, 0x3b0a202020202020, 0x2020202020206966, 0x2028217370656329, 0x0a20202020202020, - 0x2020202020202020, 0x207468726f77206e, 0x6577205479706545, 0x72726f722860556e, 0x737570706f727465, - 0x6420747970656420, 0x617272617920247b, 0x76616c75652e636f, 0x6e7374727563746f, 0x722e6e616d657d60, - 0x293b0a2020202020, 0x2020202020202063, 0x6f6e737420686561, 0x64657253697a6520, 0x3d20747970656441, - 0x7272617948656164, 0x657253697a652876, 0x616c7565293b0a20, 0x2020202020202020, 0x202020766965772e, - 0x73657455696e7438, 0x286f66667365742c, 0x2068656164657253, 0x697a65203d3d3d20, 0x32203f2050617261, - 0x6d547970652e736d, 0x616c6c4172726179, 0x5538203a20737065, 0x632e636f6465293b, 0x0a20202020202020, - 0x2020202020696620, 0x2868656164657253, 0x697a65203d3d3d20, 0x32290a2020202020, 0x2020202020202020, - 0x202020766965772e, 0x73657455696e7438, 0x286f666673657420, 0x2b20312c2076616c, 0x75652e6c656e6774, - 0x68293b0a20202020, 0x2020202020202020, 0x656c73650a202020, 0x2020202020202020, 0x2020202020766965, - 0x772e73657455696e, 0x743332286f666673, 0x6574202b20312c20, 0x76616c75652e6c65, 0x6e6774682c207468, - 0x69732e6c6974746c, 0x65456e6469616e29, 0x3b0a202020202020, 0x202020202020666f, 0x7220286c65742069, - 0x6e646578203d2030, 0x3b20696e64657820, 0x3c2076616c75652e, 0x6c656e6774683b20, 0x2b2b696e64657829, - 0x0a20202020202020, 0x2020202020202020, 0x20766965775b7370, 0x65632e7365747465, 0x725d286f66667365, - 0x74202b2068656164, 0x657253697a65202b, 0x20696e646578202a, 0x20737065632e6279, 0x7465732c2076616c, - 0x75655b696e646578, 0x5d2c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, - 0x2020207265747572, 0x6e20686561646572, 0x53697a65202b2076, 0x616c75652e627974, 0x654c656e6774683b, - 0x0a20202020202020, 0x207d0a202020207d, 0x0a0a202020202f2f, 0x204578706f736564, 0x20286265796f6e64, - 0x2074686520646566, 0x61756c7420607765, 0x6246726f6e746020, 0x73696e676c65746f, 0x6e2920736f207465, - 0x7374732063616e20, 0x636f6e7374727563, 0x7420616464697469, 0x6f6e616c20627269, 0x646765730a202020, - 0x202f2f20706f696e, 0x7465642061742061, 0x2064696666657265, 0x6e742055524c2c20, 0x652e672e20746f20, - 0x6578657263697365, 0x2074686520696e69, 0x7469616c2d636f6e, 0x6e656374696f6e2d, 0x6661696c75726520, - 0x706174682e0a2020, 0x2020676c6f62616c, 0x2e57656246726f6e, 0x7442726964676520, 0x3d2057656246726f, - 0x6e74427269646765, 0x3b0a20202020676c, 0x6f62616c2e776562, 0x46726f6e74203d20, 0x6e65772057656246, - 0x726f6e7442726964, 0x676528293b0a7d29, 0x28676c6f62616c54, 0x686973293b0a0000 + 0x2020636173652022, 0x626f6f6c65616e22, 0x3a0a202020202020, 0x2020202020202020, 0x2020766965772e73, + 0x657455696e743828, 0x6f66667365742c20, 0x76616c7565203f20, 0x506172616d547970, 0x652e626f6f6c6561, + 0x6e54727565203a20, 0x506172616d547970, 0x652e626f6f6c6561, 0x6e46616c7365293b, 0x0a20202020202020, + 0x2020202020202020, 0x2072657475726e20, 0x313b0a2020202020, 0x2020202020202063, 0x61736520226e756d, + 0x626572223a0a2020, 0x2020202020202020, 0x2020202020207669, 0x65772e7365745569, 0x6e7438286f666673, + 0x65742c2050617261, 0x6d547970652e6e75, 0x6d626572293b0a20, 0x2020202020202020, 0x2020202020202076, + 0x6965772e73657446, 0x6c6f61743634286f, 0x6666736574202b20, 0x312c2076616c7565, 0x2c20746869732e6c, + 0x6974746c65456e64, 0x69616e293b0a2020, 0x2020202020202020, 0x2020202020207265, 0x7475726e20393b0a, + 0x2020202020202020, 0x2020202063617365, 0x2022737472696e67, 0x223a0a2020202020, 0x2020202020202020, + 0x2020207265747572, 0x6e20746869732e65, 0x6e636f6465537472, 0x696e672876616c75, 0x652c20766965772c, + 0x206f666673657429, 0x3b0a202020202020, 0x2020202020206361, 0x736520226f626a65, 0x6374223a0a202020, + 0x2020202020202020, 0x2020202020726574, 0x75726e2074686973, 0x2e656e636f64654f, 0x626a656374287661, + 0x6c75652c20766965, 0x772c206f66667365, 0x74293b0a20202020, 0x2020202020202020, 0x7d0a202020202020, + 0x2020202020207468, 0x726f77206e657720, 0x547970654572726f, 0x722860556e737570, 0x706f727465642057, + 0x656246726f6e7420, 0x706172616d657465, 0x7220747970652027, 0x247b747970656f66, 0x2076616c75657d27, + 0x60293b0a20202020, 0x202020207d0a0a20, 0x2020202020202065, 0x6e636f6465537472, 0x696e672876616c75, + 0x652c20766965772c, 0x206f666673657429, 0x207b0a2020202020, 0x2020202020202063, 0x6f6e737420627974, + 0x6573203d206e6577, 0x2054657874456e63, 0x6f64657228292e65, 0x6e636f6465287661, 0x6c7565293b0a2020, + 0x2020202020202020, 0x2020636f6e737420, 0x736d616c6c203d20, 0x62797465732e6c65, 0x6e677468203c2032, + 0x35363b0a20202020, 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, 0x667365742c20736d, + 0x616c6c203f205061, 0x72616d547970652e, 0x736d616c6c537472, 0x696e67203a205061, 0x72616d547970652e, + 0x737472696e67293b, 0x0a20202020202020, 0x2020202020696620, 0x28736d616c6c290a, 0x2020202020202020, + 0x2020202020202020, 0x766965772e736574, 0x55696e7438286f66, 0x66736574202b2031, 0x2c2062797465732e, + 0x6c656e677468293b, 0x0a20202020202020, 0x2020202020656c73, 0x650a202020202020, 0x2020202020202020, + 0x2020766965772e73, 0x657455696e743136, 0x286f666673657420, 0x2b20312c20627974, 0x65732e6c656e6774, + 0x682c20746869732e, 0x6c6974746c65456e, 0x6469616e293b0a20, 0x2020202020202020, 0x202020636f6e7374, + 0x2068656164657253, 0x697a65203d20736d, 0x616c6c203f203220, 0x3a20333b0a202020, 0x2020202020202020, + 0x206e65772055696e, 0x7438417272617928, 0x766965772e627566, 0x6665722c20766965, 0x772e627974654f66, + 0x66736574202b206f, 0x6666736574202b20, 0x6865616465725369, 0x7a652c2062797465, 0x732e6c656e677468, + 0x292e736574286279, 0x746573293b0a2020, 0x2020202020202020, 0x202072657475726e, 0x2068656164657253, + 0x697a65202b206279, 0x7465732e6c656e67, 0x74683b0a20202020, 0x202020207d0a0a20, 0x2020202020202065, + 0x6e636f64654f626a, 0x6563742876616c75, 0x652c20766965772c, 0x206f666673657429, 0x207b0a2020202020, + 0x2020202020202069, 0x6620284172726179, 0x2e69734172726179, 0x2876616c75652929, 0x0a20202020202020, + 0x2020202020202020, 0x2072657475726e20, 0x746869732e656e63, 0x6f64655475706c65, 0x2876616c75652c20, + 0x766965772c206f66, 0x66736574293b0a20, 0x2020202020202020, 0x2020206966202869, 0x7354797065644172, + 0x7261792876616c75, 0x6529290a20202020, 0x2020202020202020, 0x2020202072657475, 0x726e20746869732e, + 0x656e636f64655479, 0x7065644172726179, 0x2876616c75652c20, 0x766965772c206f66, 0x66736574293b0a20, + 0x2020202020202020, 0x2020207468726f77, 0x206e657720547970, 0x654572726f722860, 0x556e737570706f72, + 0x7465642057656246, 0x726f6e7420706172, 0x616d657465722074, 0x7970652027247b74, 0x7970656f66207661, + 0x6c75657d2760293b, 0x0a20202020202020, 0x207d0a0a20202020, 0x20202020656e636f, 0x64655475706c6528, + 0x76616c75652c2076, 0x6965772c206f6666, 0x73657429207b0a20, 0x2020202020202020, 0x202020766965772e, + 0x73657455696e7438, 0x286f66667365742c, 0x20506172616d5479, 0x70652e7475706c65, 0x293b0a2020202020, + 0x2020202020202076, 0x6965772e73657455, 0x696e7438286f6666, 0x736574202b20312c, 0x2076616c75652e6c, + 0x656e677468293b0a, 0x2020202020202020, 0x202020206c657420, 0x7772697474656e20, 0x3d20323b0a202020, + 0x2020202020202020, 0x20666f722028636f, 0x6e737420656c656d, 0x656e74206f662076, 0x616c7565290a2020, + 0x2020202020202020, 0x2020202020207772, 0x697474656e202b3d, 0x20746869732e656e, 0x636f646550617261, + 0x6d6574657228656c, 0x656d656e742c2076, 0x6965772c206f6666, 0x736574202b207772, 0x697474656e293b0a, + 0x2020202020202020, 0x2020202072657475, 0x726e207772697474, 0x656e3b0a20202020, 0x202020207d0a0a20, + 0x2020202020202065, 0x6e636f6465547970, 0x6564417272617928, 0x76616c75652c2076, 0x6965772c206f6666, + 0x73657429207b0a20, 0x2020202020202020, 0x202020636f6e7374, 0x2073706563203d20, 0x6172726179547970, + 0x65732e6765742876, 0x616c75652e636f6e, 0x7374727563746f72, 0x293b0a2020202020, 0x2020202020202069, + 0x6620282173706563, 0x290a202020202020, 0x2020202020202020, 0x20207468726f7720, 0x6e65772054797065, + 0x4572726f72286055, 0x6e737570706f7274, 0x6564207479706564, 0x2061727261792024, 0x7b76616c75652e63, + 0x6f6e737472756374, 0x6f722e6e616d657d, 0x60293b0a20202020, 0x2020202020202020, 0x636f6e7374206865, + 0x6164657253697a65, 0x203d207479706564, 0x4172726179486561, 0x64657253697a6528, 0x76616c7565293b0a, + 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x38286f6666736574, 0x2c20686561646572, + 0x53697a65203d3d3d, 0x2032203f20506172, 0x616d547970652e73, 0x6d616c6c41727261, 0x795538203a207370, + 0x65632e636f646529, 0x3b0a202020202020, 0x2020202020206966, 0x2028686561646572, 0x53697a65203d3d3d, + 0x2032290a20202020, 0x2020202020202020, 0x2020202076696577, 0x2e73657455696e74, 0x38286f6666736574, + 0x202b20312c207661, 0x6c75652e6c656e67, 0x7468293b0a202020, 0x2020202020202020, 0x20656c73650a2020, + 0x2020202020202020, 0x2020202020207669, 0x65772e7365745569, 0x6e743332286f6666, 0x736574202b20312c, + 0x2076616c75652e6c, 0x656e6774682c2074, 0x6869732e6c697474, 0x6c65456e6469616e, 0x293b0a2020202020, + 0x2020202020202066, 0x6f7220286c657420, 0x696e646578203d20, 0x303b20696e646578, 0x203c2076616c7565, + 0x2e6c656e6774683b, 0x202b2b696e646578, 0x290a202020202020, 0x2020202020202020, 0x2020766965775b73, + 0x7065632e73657474, 0x65725d286f666673, 0x6574202b20686561, 0x64657253697a6520, 0x2b20696e64657820, + 0x2a20737065632e62, 0x797465732c207661, 0x6c75655b696e6465, 0x785d2c2074686973, 0x2e6c6974746c6545, + 0x6e6469616e293b0a, 0x2020202020202020, 0x2020202072657475, 0x726e206865616465, 0x7253697a65202b20, + 0x76616c75652e6279, 0x74654c656e677468, 0x3b0a202020202020, 0x20207d0a20202020, 0x7d0a0a202020202f, + 0x2f204578706f7365, 0x6420286265796f6e, 0x6420746865206465, 0x6661756c74206077, 0x656246726f6e7460, + 0x2073696e676c6574, 0x6f6e2920736f2074, 0x657374732063616e, 0x20636f6e73747275, 0x6374206164646974, + 0x696f6e616c206272, 0x69646765730a2020, 0x20202f2f20706f69, 0x6e74656420617420, 0x6120646966666572, + 0x656e742055524c2c, 0x20652e672e20746f, 0x2065786572636973, 0x652074686520696e, 0x697469616c2d636f, + 0x6e6e656374696f6e, 0x2d6661696c757265, 0x20706174682e0a20, 0x202020676c6f6261, 0x6c2e57656246726f, + 0x6e74427269646765, 0x203d205765624672, 0x6f6e744272696467, 0x653b0a2020202067, 0x6c6f62616c2e7765, + 0x6246726f6e74203d, 0x206e657720576562, 0x46726f6e74427269, 0x64676528293b0a7d, 0x2928676c6f62616c, + 0x54686973293b0a00 }; }; diff --git a/include/webfront/weblink/WebLink.hpp b/include/webfront/weblink/WebLink.hpp index bacbc505..e2291be8 100644 --- a/include/webfront/weblink/WebLink.hpp +++ b/include/webfront/weblink/WebLink.hpp @@ -110,6 +110,9 @@ class HandlerGuard { std::size_t inFlight = 0; }; +/// The only size of handshake proof that is kept: the 64 hexadecimal characters of a launch secret (ADR-020). +inline constexpr std::size_t handshakeProofSize = 64; + template class WebLink { std::shared_ptr handlers{std::make_shared()}; @@ -117,6 +120,7 @@ class WebLink { WebLinkId id; DecimalId idText{id}; bool sameEndian; + bool handshaken{}; /// The handshake is accepted once std::mutex transportMutex; std::optional transport; /// Browser log transport, attached at handshake bool transportRetired{}; /// No transport may attach after disconnection @@ -270,6 +274,11 @@ class WebLink { } void handleHandshake(std::span data) { + // One handshake per connection: a repeated one must not reset the stage or the association the first established. + if (std::exchange(handshaken, true)) { + log::error("Ignoring a repeated handshake"); + return; + } auto command = msg::Handshake::castFromRawData(data); sendCommand(msg::Ack{}); attachTransport(); @@ -281,7 +290,10 @@ class WebLink { sameEndian = (nativeIsLittle && jsEndian == msg::JSEndian::little) || (nativeIsBig && jsEndian == msg::JSEndian::big); // Anything after the two header bytes is the secret of an embedded view (ADR-020); the application judges it. - const auto proof = data.size() > sizeof(msg::Handshake) ? data.subspan(sizeof(msg::Handshake)) : std::span{}; + // Only a proof of the exact size of a launch secret is copied: anything else cannot match and is not worth an allocation. + auto proof = data.size() > sizeof(msg::Handshake) ? data.subspan(sizeof(msg::Handshake)) : std::span{}; + if (proof.size() != handshakeProofSize) + proof = {}; eventsHandler({WebLinkEvent::Code::linked, id, std::string(reinterpret_cast(proof.data()), proof.size())}); } diff --git a/js/core/WebFront.js b/js/core/WebFront.js index b4dfdd98..79891b2b 100644 --- a/js/core/WebFront.js +++ b/js/core/WebFront.js @@ -51,8 +51,9 @@ const arrayCodes = new Map(Array.from(arrayTypes, ([constructor, spec]) => [spec.code, {...spec, constructor}])); - /// The launch secret of an embedded view, once: defined by the adapter before any script of the page, then removed. - /// Anything that is not the expected 64 hexadecimal characters is ignored, so a script cannot inject other bytes. + /// The launch secret of an embedded view: defined by the adapter before any script of the page, taken here when + /// WebFront.js loads and removed from the window, then kept for every handshake of this page (a reconnection presents + /// it again). Anything that is not the expected 64 hexadecimal characters is ignored, so a script cannot inject other bytes. function takeViewSecret() { const descriptor = Object.getOwnPropertyDescriptor(global, "__webfrontView"); if (!descriptor) return ""; @@ -61,6 +62,8 @@ return typeof value === "string" && /^[0-9a-f]{64}$/.test(value) ? value : ""; } + const viewSecret = takeViewSecret(); + function nativeIsLittleEndian() { const word = new Uint32Array([0x110000ff]); return new Uint8Array(word.buffer)[0] === 0xff; @@ -156,9 +159,9 @@ handshake() { this.state = "handshaking"; - // An embedded frontend gives its view a per-launch secret at the start of the document (ADR-020). It is - // presented once, here, and removed so that the page does not keep reading it; the system browser has none. - const secret = takeViewSecret(); + // An embedded frontend gives its view a per-launch secret at the start of the document (ADR-020). It was taken + // out of the window when this script loaded, so the page does not keep reading it; the system browser has none. + const secret = viewSecret; const header = [Command.handshake, nativeIsLittleEndian() ? 0 : 1]; for (let index = 0; index < secret.length; ++index) header.push(secret.charCodeAt(index) & 0x7f); this.socket.send(new Uint8Array(header)); diff --git a/test/unit/ViewAssociationTests.cpp b/test/unit/ViewAssociationTests.cpp index 05a04dbf..10848e9e 100644 --- a/test/unit/ViewAssociationTests.cpp +++ b/test/unit/ViewAssociationTests.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -23,10 +24,10 @@ struct LaunchSecret { } // namespace webfront::testing namespace { -const std::string upgradeRequest = "GET / HTTP/1.1\r\nHost: localhost\r\nUpgrade: websocket\r\nConnection: Upgrade\r\n" +const std::string viewUpgradeRequest = "GET / HTTP/1.1\r\nHost: localhost\r\nUpgrade: websocket\r\nConnection: Upgrade\r\n" "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n"; -struct OneBrowserNet : testing::InjectableNetworking { +struct ViewOneBrowserNet : testing::InjectableNetworking { static inline bool accepted{}; static auto Accept(Acceptor&) { return networking::ex::then(networking::ex::just(), []() -> Socket { @@ -37,44 +38,44 @@ struct OneBrowserNet : testing::InjectableNetworking { } }; -using Socket = testing::InjectableSocket; -using App = BasicWF; +using ViewSocket = testing::InjectableSocket; +using ViewApp = BasicWF; -struct Verdict { +struct ViewVerdict { bool embedded = false; bool local = false; }; // Connects one browser whose handshake carries `proof` after its two header bytes, and reports what the UI says. -Verdict connect(App& app, const std::string& proof) { - Verdict verdict; +ViewVerdict connect(ViewApp& app, const std::string& proof) { + ViewVerdict verdict; bool started = false; - app.onUIStarted([&](App::UI ui) { + app.onUIStarted([&](ViewApp::UI ui) { verdict.embedded = ui.isEmbeddedView(); verdict.local = ui.isLocalClient(); started = true; }); - Socket::receive(std::as_bytes(std::span(upgradeRequest))); + ViewSocket::receive(std::as_bytes(std::span(viewUpgradeRequest))); msg::Handshake handshake; std::vector payload(handshake.header().begin(), handshake.header().end()); for (const char c : proof) payload.push_back(static_cast(c)); - Socket::receive(testing::clientFrame(payload)); + ViewSocket::receive(testing::clientFrame(payload)); REQUIRE(started); return verdict; } void freshNetwork() { - Socket::reset(); - Socket::peerIsLoopback = false; - OneBrowserNet::accepted = false; + ViewSocket::reset(); + ViewSocket::peerIsLoopback = false; + ViewOneBrowserNet::accepted = false; } } // namespace SCENARIO("A connection is associated with the view of an embedded frontend only by the secret of the launch", "[view-association]") { freshNetwork(); - App app{WebFrontConfig{.port = "0"}}; - const std::string secret = testing::LaunchSecret::of(app); + ViewApp app{WebFrontConfig{.port = "0"}}; + const std::string secret = testing::LaunchSecret::of(app); GIVEN("the secret of the launch") { THEN("it is 256 random bits in lowercase hexadecimal") { @@ -82,8 +83,8 @@ SCENARIO("A connection is associated with the view of an embedded frontend only REQUIRE(std::ranges::all_of(secret, [](char c) { return std::isxdigit(static_cast(c)) && !std::isupper(static_cast(c)); })); } THEN("another application has another one") { - App other{WebFrontConfig{.port = "0"}}; - REQUIRE(testing::LaunchSecret::of(other) != secret); + ViewApp other{WebFrontConfig{.port = "0"}}; + REQUIRE(testing::LaunchSecret::of(other) != secret); } } WHEN("the handshake presents the secret") { @@ -102,8 +103,8 @@ SCENARIO("A connection is associated with the view of an embedded frontend only REQUIRE_FALSE(verdict.local); } } - WHEN("the handshake presents a prefix of the secret or the secret with more bytes") { - THEN("neither is accepted") { + WHEN("the handshake presents a prefix of the secret") { + THEN("it is not accepted") { REQUIRE_FALSE(connect(app, secret.substr(0, 63)).embedded); } } @@ -117,8 +118,8 @@ SCENARIO("A connection is associated with the view of an embedded frontend only WHEN("the handshake carries the secret of an earlier launch") { std::string earlier; { - App previous{WebFrontConfig{.port = "0"}}; - earlier = testing::LaunchSecret::of(previous); + ViewApp previous{WebFrontConfig{.port = "0"}}; + earlier = testing::LaunchSecret::of(previous); } const auto verdict = connect(app, earlier); THEN("it is rejected: the secret does not survive a restart") { @@ -128,14 +129,78 @@ SCENARIO("A connection is associated with the view of an embedded frontend only WHEN("the handshake carries the secret padded with extra bytes") { REQUIRE_FALSE(connect(app, secret + "00").embedded); } + WHEN("the handshake carries a proof longer than a secret") { + REQUIRE_FALSE(connect(app, std::string(100, 'a')).embedded); + } + WHEN("a second handshake without the secret follows the one that presented it") { + std::optional browser; + app.onUIStarted([&](ViewApp::UI ui) { browser = ui; }); + ViewSocket::receive(std::as_bytes(std::span(viewUpgradeRequest))); + msg::Handshake handshake; + std::vector payload(handshake.header().begin(), handshake.header().end()); + for (const char c : secret) + payload.push_back(static_cast(c)); + ViewSocket::receive(testing::clientFrame(payload)); + REQUIRE(browser); + REQUIRE(browser->isEmbeddedView()); + ViewSocket::receive(testing::clientFrame(std::vector(handshake.header().begin(), handshake.header().end()))); + THEN("the connection stays the embedded view") { + REQUIRE(browser->isEmbeddedView()); + REQUIRE(browser->isLocalClient()); + } + } +} + +SCENARIO("The script that hands the secret to a view refuses what it cannot write safely", "[view-association]") { + const std::string secret(64, 'a'); + GIVEN("a hexadecimal secret and a plain origin") { + const auto script = detail::viewSecretScript(secret, "http://127.0.0.1:9002"); + THEN("the script names the origin and the secret") { + REQUIRE(script.contains("location.origin === 'http://127.0.0.1:9002'")); + REQUIRE(script.contains(secret)); + } + } + GIVEN("an origin or a secret that would need escaping") { + THEN("there is no script, hence no association") { + REQUIRE(detail::viewSecretScript(secret, "http://x'; alert(1); '").empty()); + REQUIRE(detail::viewSecretScript(secret, "http://x\\").empty()); + REQUIRE(detail::viewSecretScript(secret, "http://x\n").empty()); + REQUIRE(detail::viewSecretScript("a'b", "http://127.0.0.1:9002").empty()); + REQUIRE(detail::viewSecretScript({}, "http://127.0.0.1:9002").empty()); + } + } +} + +SCENARIO("The origin given to a view is written as the browser writes location.origin", "[view-association]") { + THEN("the default port 80 is dropped and the host is lowercase") { + REQUIRE(detail::browserOrigin("127.0.0.1", "80") == "http://127.0.0.1"); + REQUIRE(detail::browserOrigin("LocalHost", "9002") == "http://localhost:9002"); + REQUIRE(detail::browserOrigin("127.0.0.1", "8080") == "http://127.0.0.1:8080"); + } +} + +SCENARIO("An IPv4 loopback seen through a dual-stack socket is a loopback peer", "[view-association]") { + THEN("the v4-mapped loopback is, another mapped address and a public one are not") { + REQUIRE(detail::isLoopbackAddress(stdnet::ip::address(stdnet::ip::address_v4::loopback()))); + REQUIRE(detail::isLoopbackAddress(stdnet::ip::address(stdnet::ip::address_v6::loopback()))); + const auto mapped = [](unsigned char first) { + stdnet::ip::address_v6::bytes_type bytes{}; + bytes[10] = bytes[11] = 0xFF; + bytes[12] = first; + bytes[15] = 1; + return stdnet::ip::address(stdnet::ip::address_v6(bytes)); + }; + REQUIRE(detail::isLoopbackAddress(mapped(127))); + REQUIRE_FALSE(detail::isLoopbackAddress(mapped(10))); + } } SCENARIO("A loopback peer is a local client only when the application trusts loopback clients", "[view-association]") { freshNetwork(); - Socket::peerIsLoopback = true; + ViewSocket::peerIsLoopback = true; GIVEN("the default configuration") { - App app{WebFrontConfig{.port = "0"}}; + ViewApp app{WebFrontConfig{.port = "0"}}; const auto verdict = connect(app, {}); THEN("a loopback peer without the secret is not local") { REQUIRE_FALSE(verdict.embedded); @@ -143,7 +208,7 @@ SCENARIO("A loopback peer is a local client only when the application trusts loo } } GIVEN("trustLoopbackClients") { - App app{WebFrontConfig{.port = "0", .trustLoopbackClients = true}}; + ViewApp app{WebFrontConfig{.port = "0", .trustLoopbackClients = true}}; const auto verdict = connect(app, {}); THEN("a loopback peer is local though it is not the embedded view") { REQUIRE_FALSE(verdict.embedded); @@ -151,8 +216,8 @@ SCENARIO("A loopback peer is a local client only when the application trusts loo } } GIVEN("trustLoopbackClients and a peer that is not the loopback") { - Socket::peerIsLoopback = false; - App app{WebFrontConfig{.port = "0", .trustLoopbackClients = true}}; + ViewSocket::peerIsLoopback = false; + ViewApp app{WebFrontConfig{.port = "0", .trustLoopbackClients = true}}; const auto verdict = connect(app, {}); THEN("the connection is not local") { REQUIRE_FALSE(verdict.local); @@ -162,7 +227,7 @@ SCENARIO("A loopback peer is a local client only when the application trusts loo SCENARIO("The handshake's secret never reaches the diagnostics", "[view-association]") { freshNetwork(); - App app{WebFrontConfig{.port = "0"}}; + ViewApp app{WebFrontConfig{.port = "0"}}; std::vector records; log::setLogLevel(log::Debug); const auto sink = log::addSinks([&records](std::string_view text) { records.emplace_back(text); }); diff --git a/test/web/view-association.html b/test/web/view-association.html index 4328591f..77084908 100644 --- a/test/web/view-association.html +++ b/test/web/view-association.html @@ -15,6 +15,7 @@ socket.onopen = () => socket.send(new Uint8Array([0, new Uint8Array(new Uint16Array([1]).buffer)[0] === 1 ? 0 : 1])); socket.onmessage = () => resolve(); socket.onerror = () => reject(new Error("the second connection failed")); + socket.onclose = () => reject(new Error("the second connection closed before answering")); }); for (let attempt = 0; attempt < 100; ++attempt) { if (await webFront.cppFunction("startedConnections")() >= 2) break; From 8f163e17a925c9f1bd4ad7524fb97a46e2bb7956 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 09:30:30 +0100 Subject: [PATCH 04/10] Give the WebKitGTK user script no URL allow list: its patterns carry no port and the script checks the origin itself (#453) --- docs/FRONTENDS.md | 2 +- include/webfront/frontend/WebKitGTK.hpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/FRONTENDS.md b/docs/FRONTENDS.md index 2db9f502..b0b80be1 100644 --- a/docs/FRONTENDS.md +++ b/docs/FRONTENDS.md @@ -41,7 +41,7 @@ on a command line or in a URL. | --- | --- | | WKWebView | `WKUserScript`, `WKUserScriptInjectionTimeAtDocumentStart`, main frame only | | WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`); the registration is asynchronous, so the first navigation starts from its completion handler and a failed registration fails the opening | -| WebKitGTK | `WebKitUserScript` at document start, top frame, allow list of the application's origin | +| WebKitGTK | `WebKitUserScript` at document start, top frame, no URL allow list (the script compares `location.origin`, port included) | | CEF | extra browser information given to `CefBrowserView::CreateBrowserView`, read by the renderer process's `OnBrowserCreated` and defined on the window by `OnContextCreated` through the same script as the other engines, evaluated in the new context so that the page itself answers for its origin (the render process app is the one given to `CefExecuteProcess`; a separate helper executable must give it its own `ViewSecretRenderApp`) | - The system browser receives no secret (a command line or a history could disclose it, and a remote browser would present diff --git a/include/webfront/frontend/WebKitGTK.hpp b/include/webfront/frontend/WebKitGTK.hpp index 9a39aae6..d1fcf814 100644 --- a/include/webfront/frontend/WebKitGTK.hpp +++ b/include/webfront/frontend/WebKitGTK.hpp @@ -424,9 +424,9 @@ struct Session : FailureState { const auto source = webfront::detail::viewSecretScript(launch.secret, launch.origin); if (source.empty()) return; - const auto pattern = launch.origin + "/*"; - const char* const allowList[] = {pattern.c_str(), nullptr}; - const auto script = a.scriptNew(source.c_str(), 1, 0, allowList, nullptr); + // No allow list: WebKit match patterns carry no port, so one built from the origin would match nothing. The script + // itself compares location.origin, port included, and only defines the secret for the application's origin. + const auto script = a.scriptNew(source.c_str(), 1, 0, nullptr, nullptr); a.scriptAdd(a.contentManager(view), script); a.scriptUnref(script); } From 80c2a855975abae53cc3c6395ff24d6aff99e7d9 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 10:01:51 +0100 Subject: [PATCH 05/10] Issue the first WebView2 navigation right after the script registration instead of waiting for its completion (#453) --- docs/FRONTENDS.md | 2 +- include/webfront/frontend/WebView2.hpp | 42 ++++++++++++-------------- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/docs/FRONTENDS.md b/docs/FRONTENDS.md index b0b80be1..116d797c 100644 --- a/docs/FRONTENDS.md +++ b/docs/FRONTENDS.md @@ -40,7 +40,7 @@ on a command line or in a URL. | Engine | Injection at the start of the document | | --- | --- | | WKWebView | `WKUserScript`, `WKUserScriptInjectionTimeAtDocumentStart`, main frame only | -| WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`); the registration is asynchronous, so the first navigation starts from its completion handler and a failed registration fails the opening | +| WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`); the first navigation is issued right after the registration, which WebView2 executes in order, and a registration that fails fails the opening | | WebKitGTK | `WebKitUserScript` at document start, top frame, no URL allow list (the script compares `location.origin`, port included) | | CEF | extra browser information given to `CefBrowserView::CreateBrowserView`, read by the renderer process's `OnBrowserCreated` and defined on the window by `OnContextCreated` through the same script as the other engines, evaluated in the new context so that the page itself answers for its origin (the render process app is the one given to `CefExecuteProcess`; a separate helper executable must give it its own `ViewSecretRenderApp`) | diff --git a/include/webfront/frontend/WebView2.hpp b/include/webfront/frontend/WebView2.hpp index fc4e4583..979c4e7e 100644 --- a/include/webfront/frontend/WebView2.hpp +++ b/include/webfront/frontend/WebView2.hpp @@ -809,31 +809,29 @@ class Session : public std::enable_shared_from_this { installViewAssociationThenNavigate(); } - // AddScriptToExecuteOnDocumentCreated completes asynchronously and only documents created after its completion run the - // script: the initial navigation waits for it, and a registration that fails fails the opening instead of leaving the - // view silently unassociated (ADR-020). + // The script is registered, then the first navigation is issued: WebView2 executes its commands in the order they are + // issued, so the document created by that navigation runs the script. The completion handler only reports a registration + // that failed, which fails the opening instead of leaving the view silently unassociated (ADR-020). void installViewAssociationThenNavigate() { const auto source = webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin); - if (source.empty()) { - check(view->Navigate(url.c_str()), "navigating to application"); - return; - } - auto weak = weak_from_this(); - const auto script = utf16(source); - check(view->AddScriptToExecuteOnDocumentCreated( - script.c_str(), - Microsoft::WRL::Callback([weak](HRESULT result, LPCWSTR) -> HRESULT { - if (const auto self = weak.lock(); self && !self->closed) { - try { - check(result, "installing the view association script"); - check(self->view->Navigate(self->url.c_str()), "navigating to application"); - } catch (...) { - self->fail(); + if (!source.empty()) { + auto weak = weak_from_this(); + const auto script = utf16(source); + check(view->AddScriptToExecuteOnDocumentCreated( + script.c_str(), + Microsoft::WRL::Callback([weak](HRESULT result, LPCWSTR) -> HRESULT { + if (const auto self = weak.lock(); self && !self->closed) { + try { + check(result, "installing the view association script"); + } catch (...) { + self->fail(); + } } - } - return S_OK; - }).Get()), - "starting the view association script installation"); + return S_OK; + }).Get()), + "starting the view association script installation"); + } + check(view->Navigate(url.c_str()), "navigating to application"); } }; From 10743eb10d58df8bece61144efda84e88ae303a1 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 10:33:48 +0100 Subject: [PATCH 06/10] Wait for WebView2 view script registration before navigating --- docs/FRONTENDS.md | 2 +- include/webfront/frontend/WebView2.hpp | 24 +++++---- test/unit/WebView2Tests.cpp | 67 ++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 11 deletions(-) diff --git a/docs/FRONTENDS.md b/docs/FRONTENDS.md index 116d797c..bbfeccb9 100644 --- a/docs/FRONTENDS.md +++ b/docs/FRONTENDS.md @@ -40,7 +40,7 @@ on a command line or in a URL. | Engine | Injection at the start of the document | | --- | --- | | WKWebView | `WKUserScript`, `WKUserScriptInjectionTimeAtDocumentStart`, main frame only | -| WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`); the first navigation is issued right after the registration, which WebView2 executes in order, and a registration that fails fails the opening | +| WebView2 | `AddScriptToExecuteOnDocumentCreated`, top-level documents of the origin (the script checks `window === window.top`); the first navigation waits for successful registration in its completion handler, with the startup watchdog active during that wait; registration failure fails the opening | | WebKitGTK | `WebKitUserScript` at document start, top frame, no URL allow list (the script compares `location.origin`, port included) | | CEF | extra browser information given to `CefBrowserView::CreateBrowserView`, read by the renderer process's `OnBrowserCreated` and defined on the window by `OnContextCreated` through the same script as the other engines, evaluated in the new context so that the page itself answers for its origin (the render process app is the one given to `CefExecuteProcess`; a separate helper executable must give it its own `ViewSecretRenderApp`) | diff --git a/include/webfront/frontend/WebView2.hpp b/include/webfront/frontend/WebView2.hpp index 979c4e7e..01e52832 100644 --- a/include/webfront/frontend/WebView2.hpp +++ b/include/webfront/frontend/WebView2.hpp @@ -800,29 +800,30 @@ class Session : public std::enable_shared_from_this { check(controller->put_IsVisible(TRUE), "showing controller"); if (GetFocus() == window) restoreFocus(); - // Runtime creation is complete. Slow page resources must not consume its watchdog budget. - stopStartupTimer(); captureQueue->open(window); captureRegistration = CaptureRegistration{captureProvider(captureQueue)}; if (viewReady) viewReady(); - installViewAssociationThenNavigate(); + installViewAssociationThenNavigate(view.Get()); } - // The script is registered, then the first navigation is issued: WebView2 executes its commands in the order they are - // issued, so the document created by that navigation runs the script. The completion handler only reports a registration - // that failed, which fails the opening instead of leaving the view silently unassociated (ADR-020). - void installViewAssociationThenNavigate() { +public: + // Keep the runtime watchdog active until registration completes. The browser is owned by this session; + // the callback checks its weak session before using it. The template permits delayed-registration test doubles. + template + void installViewAssociationThenNavigate(Browser* browser) { const auto source = webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin); if (!source.empty()) { auto weak = weak_from_this(); const auto script = utf16(source); - check(view->AddScriptToExecuteOnDocumentCreated( + check(browser->AddScriptToExecuteOnDocumentCreated( script.c_str(), - Microsoft::WRL::Callback([weak](HRESULT result, LPCWSTR) -> HRESULT { + Microsoft::WRL::Callback([weak, browser](HRESULT result, LPCWSTR) -> HRESULT { if (const auto self = weak.lock(); self && !self->closed) { try { check(result, "installing the view association script"); + self->stopStartupTimer(); + check(browser->Navigate(self->url.c_str()), "navigating to application"); } catch (...) { self->fail(); } @@ -830,8 +831,11 @@ class Session : public std::enable_shared_from_this { return S_OK; }).Get()), "starting the view association script installation"); + return; } - check(view->Navigate(url.c_str()), "navigating to application"); + // Slow page resources must not consume the runtime startup budget. + stopStartupTimer(); + check(browser->Navigate(url.c_str()), "navigating to application"); } }; diff --git a/test/unit/WebView2Tests.cpp b/test/unit/WebView2Tests.cpp index a0c7715a..9fc490f9 100644 --- a/test/unit/WebView2Tests.cpp +++ b/test/unit/WebView2Tests.cpp @@ -4,6 +4,73 @@ #include #include +namespace { +struct ViewRegistrationBrowser { + Microsoft::WRL::ComPtr completion; + unsigned navigations = 0; + HRESULT navigationResult = S_OK; + HRESULT AddScriptToExecuteOnDocumentCreated(LPCWSTR, ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler* handler) { + completion = handler; + return S_OK; + } + HRESULT Navigate(LPCWSTR) { + ++navigations; + return navigationResult; + } +}; +} + +SCENARIO("WebView2 waits for view association registration before navigation") { + using namespace webfront::frontend::detail::webview2; + Apartment apartment; + auto session = std::make_shared(std::chrono::milliseconds{25}); + session->createWindow(); + session->viewLaunch = {std::string(64, 'a'), "http://127.0.0.1:9002"}; + ViewRegistrationBrowser browser; + session->installViewAssociationThenNavigate(&browser); + REQUIRE(browser.completion); + REQUIRE(browser.navigations == 0); + REQUIRE(session->startupTimer != 0); + WHEN("registration completes successfully") { + REQUIRE(browser.completion->Invoke(S_OK, L"script") == S_OK); + REQUIRE(browser.navigations == 1); + REQUIRE(session->startupTimer == 0); + REQUIRE_FALSE(session->failure); + } + WHEN("registration fails") { + REQUIRE(browser.completion->Invoke(E_FAIL, nullptr) == S_OK); + REQUIRE(browser.navigations == 0); + REQUIRE(session->failure); + REQUIRE(session->startupTimer == 0); + } + WHEN("registration never completes") { + REQUIRE_THROWS_WITH(session->run(), Catch::Matchers::ContainsSubstring("25 milliseconds")); + REQUIRE(browser.navigations == 0); + } + WHEN("the window closes before registration completes") { + session->close(); + REQUIRE(browser.completion->Invoke(S_OK, L"script") == S_OK); + REQUIRE(browser.navigations == 0); + } + WHEN("navigation fails after successful registration") { + browser.navigationResult = E_FAIL; + REQUIRE(browser.completion->Invoke(S_OK, L"script") == S_OK); + REQUIRE(session->failure); + } +} + +SCENARIO("WebView2 navigates immediately without a view association script") { + using namespace webfront::frontend::detail::webview2; + Apartment apartment; + auto session = std::make_shared(); + session->createWindow(); + ViewRegistrationBrowser browser; + session->installViewAssociationThenNavigate(&browser); + REQUIRE_FALSE(browser.completion); + REQUIRE(browser.navigations == 1); + REQUIRE(session->startupTimer == 0); +} + SCENARIO("WebView2 encodes application paths") { using webfront::frontend::detail::webview2::applicationUrl; GIVEN("a UTF-8 filename containing percent-escaped URL delimiters") { From 41d99f1d1fb8a6f130fec7cdc10bd5d6b5242084 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 11:26:41 +0100 Subject: [PATCH 07/10] Make process deadline coverage tolerate delayed child startup --- test/unit/HostTests.cpp | 35 +++++++++++++++++++++++++++-------- test/web/host/HostProbe.cpp | 7 +++++-- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/test/unit/HostTests.cpp b/test/unit/HostTests.cpp index 77d02f7c..9d21efaa 100644 --- a/test/unit/HostTests.cpp +++ b/test/unit/HostTests.cpp @@ -431,16 +431,35 @@ SCENARIO("A program does not outlive an application killed without a destructor" #endif SCENARIO("A program that keeps its pipes full cannot hold off the deadline") { - auto spec = probeSpec({"flood"}); - spec.timeout = 300ms; + for (const auto delay : {0, 1000}) { + WHEN("the child delays its first write by " + std::to_string(delay) + " milliseconds") { + auto spec = probeSpec({"flood", std::to_string(delay)}); + spec.timeout = 300ms; + spec.maxOutputBytes = 1000; + const auto begin = std::chrono::steady_clock::now(); + const auto result = run(spec); + THEN("the timeout is honoured and any captured output stays bounded") { + REQUIRE(result.status == ProcessStatus::timeout); + REQUIRE(std::chrono::steady_clock::now() - begin < 5s); + // The deadline includes child startup: a busy runner may kill it before its first write. + REQUIRE(result.standardOutput.size() <= spec.maxOutputBytes); + REQUIRE(result.standardError.size() <= spec.maxOutputBytes); + } + } + } +} + +SCENARIO("A finite flood drains both pipes and truncates each captured stream") { + auto spec = probeSpec({"flood-finite"}); spec.maxOutputBytes = 1000; - const auto begin = std::chrono::steady_clock::now(); const auto result = run(spec); - THEN("the timeout is honoured and the output stays bounded") { - REQUIRE(result.status == ProcessStatus::timeout); - REQUIRE(std::chrono::steady_clock::now() - begin < 5s); - REQUIRE(result.standardOutput.size() == 1000); - REQUIRE(result.standardError.size() == 1000); + THEN("both streams reach the limit and the child completes without blocking") { + REQUIRE(result.status == ProcessStatus::exited); + REQUIRE(result.exitCode == 0); + REQUIRE(result.standardOutput == std::string(1000, 'f')); + REQUIRE(result.standardError == std::string(1000, 'f')); + REQUIRE(result.outputTruncated); + REQUIRE(result.errorTruncated); } } diff --git a/test/web/host/HostProbe.cpp b/test/web/host/HostProbe.cpp index 93234505..a21a581a 100644 --- a/test/web/host/HostProbe.cpp +++ b/test/web/host/HostProbe.cpp @@ -129,12 +129,15 @@ int main(int argc, char** argv) { std::cout.write(block.data(), static_cast(std::min(block.size(), total - written))); return 0; } - if (mode == "flood") { // Never stops writing to either stream. + if (mode == "flood" || mode == "flood-finite") { + if (argc > 2) + sleepFor(std::stoi(argv[2])); const std::string block(65536, 'f'); - for (;;) { + for (unsigned count = 0; mode == "flood" || count < 64; ++count) { std::cout.write(block.data(), static_cast(block.size())); std::cerr.write(block.data(), static_cast(block.size())); } + return 0; } if (mode == "hang") { for (;;) From 5087d385f62f6bf2f5a5af169ca9d9862a01a6c2 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 11:46:06 +0100 Subject: [PATCH 08/10] Isolate WebKitGTK pointer tests from parallel browser windows --- .github/workflows/BuildAndTest.yml | 8 ++++++++ test/cmake/CheckFrontendSelection.cmake | 5 ++++- test/cmake/WebKitGTKTestEnvironment.cmake | 6 ++++++ test/cmake/frontends/CMakeLists.txt | 21 +++++++++++++++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) diff --git a/.github/workflows/BuildAndTest.yml b/.github/workflows/BuildAndTest.yml index 73981f0b..d0b42ec4 100644 --- a/.github/workflows/BuildAndTest.yml +++ b/.github/workflows/BuildAndTest.yml @@ -196,6 +196,14 @@ jobs: -DREPEAT=${{ (github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.base_ref == 'master') || (github.event_name == 'workflow_dispatch' && inputs.repeat_desktop_tests)) && '3' || '1' }} -DLABEL_EXCLUDE=${{ (github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.base_ref == 'master') || (github.event_name == 'workflow_dispatch' && inputs.repeat_desktop_tests)) && 'none' || 'portability' }} -P test/cmake/RunTestSuite.cmake + - name: Repeat WebKitGTK pointer tests with suite display sharing enabled + if: runner.os == 'Linux' + env: ${{ matrix.test_env }} + # These tests must still get private displays when invoked from the shared-display suite runner. + run: >- + xvfb-run -a env WEBFRONT_TEST_SHARED_DISPLAY=1 + ctest --test-dir build --output-on-failure --no-tests=error + -R '^WebKitGTKAdapter-(choose-file|cancel-choose|close-with-dialog)$' --repeat until-fail:5 - name: Analyze CTest timings if: always() shell: bash diff --git a/test/cmake/CheckFrontendSelection.cmake b/test/cmake/CheckFrontendSelection.cmake index baa32d9d..f89e3dd5 100644 --- a/test/cmake/CheckFrontendSelection.cmake +++ b/test/cmake/CheckFrontendSelection.cmake @@ -399,7 +399,7 @@ run_case("Native on unsupported platform" FALSE "Native supports only Windows, D # Configure-only fixtures exercise CTest commands on every platform and adding an engine using # only a registration and support module. They need neither a compiler nor a browser SDK. -foreach(case webkitgtk-linux cef-linux cef-macos cef-windows cef-disabled missing-xvfb missing-xvfb-hook browser webview2-windows wkwebview-macos extension) +foreach(case webkitgtk-display webkitgtk-linux cef-linux cef-macos cef-windows cef-disabled missing-xvfb missing-xvfb-hook browser webview2-windows wkwebview-macos extension) # These directories belong only to this configure-only fixture. Drop their caches so a # changed generator or previous discovery result cannot influence the next invocation. file(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/frontend-tests/${case}") @@ -411,6 +411,9 @@ foreach(case webkitgtk-linux cef-linux cef-macos cef-windows cef-disabled missin if(NOT result EQUAL 0) list(APPEND failures "${case}: ${output}${error}") else() + if(case STREQUAL "webkitgtk-display") + continue() # The fixture verifies per-test display isolation without an installed browser SDK. + endif() if(case MATCHES "^cef-(macos|windows)$" AND NOT "${output}${error}" MATCHES "browser integration is not registered on") list(APPEND failures "${case}: missing warning about unvalidated browser tests") endif() diff --git a/test/cmake/WebKitGTKTestEnvironment.cmake b/test/cmake/WebKitGTKTestEnvironment.cmake index 96318616..86e0121c 100644 --- a/test/cmake/WebKitGTKTestEnvironment.cmake +++ b/test/cmake/WebKitGTKTestEnvironment.cmake @@ -6,4 +6,10 @@ function(webfront_configure_webkitgtk_test name) "XDG_DATA_HOME=${CMAKE_CURRENT_BINARY_DIR}/webkitgtk-data" "XDG_CACHE_HOME=${CMAKE_CURRENT_BINARY_DIR}/webkitgtk-cache" "GDK_BACKEND=x11" "GSK_RENDERER=cairo" "LIBGL_ALWAYS_SOFTWARE=1") + # XTest controls the display's global pointer. Parallel windows on the suite's shared display can cover the + # file input or steal a press/release; the port lock does not protect against tests using ephemeral ports. + # WithDisplay.sh then starts a private Xvfb even when RunTestSuite enabled display sharing for the suite. + if(name MATCHES "^WebKitGTKAdapter-(choose-file|cancel-choose|close-with-dialog)$") + set_property(TEST ${name} APPEND PROPERTY ENVIRONMENT "WEBFRONT_TEST_SHARED_DISPLAY=0") + endif() endfunction() diff --git a/test/cmake/frontends/CMakeLists.txt b/test/cmake/frontends/CMakeLists.txt index 352c1669..fabe42ec 100644 --- a/test/cmake/frontends/CMakeLists.txt +++ b/test/cmake/frontends/CMakeLists.txt @@ -1,6 +1,27 @@ cmake_minimum_required(VERSION 3.31) project(FrontendWiring NONE) enable_testing() +if(CASE STREQUAL "webkitgtk-display") + include("${ROOT}/test/cmake/WebKitGTKTestEnvironment.cmake") + foreach(mode choose-file cancel-choose close-with-dialog download script-dialogs) + set(name WebKitGTKAdapter-${mode}) + add_test(NAME ${name} COMMAND "${CMAKE_COMMAND}" -E true) + set_property(TEST ${name} PROPERTY ENVIRONMENT "KEEP_EXISTING=1") + webfront_configure_webkitgtk_test(${name}) + get_test_property(${name} ENVIRONMENT environment) + if(NOT "KEEP_EXISTING=1" IN_LIST environment OR NOT "GDK_BACKEND=x11" IN_LIST environment) + message(FATAL_ERROR "${name} lost its existing or engine environment") + endif() + if(mode MATCHES "^(choose-file|cancel-choose|close-with-dialog)$") + if(NOT "WEBFRONT_TEST_SHARED_DISPLAY=0" IN_LIST environment) + message(FATAL_ERROR "${name} must isolate its global XTest pointer from parallel windows") + endif() + elseif("WEBFRONT_TEST_SHARED_DISPLAY=0" IN_LIST environment) + message(FATAL_ERROR "${name} should retain the shared-display optimization") + endif() + endforeach() + return() +endif() if(CASE STREQUAL "webkitgtk-missing-sdk") # An existing executable with no pkg-config functionality makes this deterministic # even on hosts with the complete SDK installed, and never fetches a dependency. From 809f304717452a360059abbe64fed1b6079a3d38 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 12:49:28 +0100 Subject: [PATCH 09/10] Close the WebView2 window through a host message instead of the native close request (#490) Chromium can ignore window.close() issued by the first script of a top-level page, so WindowCloseRequested was sometimes never raised and the session stayed open (WebView2Lifecycle-early-close timed out intermittently). A script installed on every top-level document now posts a close message to the host. --- include/webfront/frontend/WebView2.hpp | 35 +++++++++++++++++++++----- test/unit/WebView2Tests.cpp | 12 +++++++-- test/web/WebView2Lifecycle.cpp | 12 ++++++--- 3 files changed, 48 insertions(+), 11 deletions(-) diff --git a/include/webfront/frontend/WebView2.hpp b/include/webfront/frontend/WebView2.hpp index 01e52832..880b07fa 100644 --- a/include/webfront/frontend/WebView2.hpp +++ b/include/webfront/frontend/WebView2.hpp @@ -709,6 +709,19 @@ class Session : public std::enable_shared_from_this { }).Get(), &token), "registering window close handler"); + check(view->add_WebMessageReceived( + Microsoft::WRL::Callback([weak](ICoreWebView2*, ICoreWebView2WebMessageReceivedEventArgs* args) -> HRESULT { + LPWSTR raw = nullptr; + if (SUCCEEDED(args->TryGetWebMessageAsString(&raw)) && raw) { + const std::unique_ptr message(raw, CoTaskMemFree); + if (std::wstring_view{message.get()} == windowCloseMessage()) + if (const auto self = weak.lock()) + self->requestWindowClose(); + } + return S_OK; + }).Get(), + &token), + "registering window close message handler"); check(view->add_NavigationCompleted( Microsoft::WRL::Callback([weak](ICoreWebView2*, ICoreWebView2NavigationCompletedEventArgs* args) -> HRESULT { @@ -810,10 +823,24 @@ class Session : public std::enable_shared_from_this { public: // Keep the runtime watchdog active until registration completes. The browser is owned by this session; // the callback checks its weak session before using it. The template permits delayed-registration test doubles. + static constexpr std::wstring_view windowCloseMessage() noexcept { + return L"webfront:close-window"; + } + + // Chromium silently ignores window.close() from a top-level page whose session history still holds the + // initial entry (a script running at document creation can race with its replacement), so a page's very + // first script could never close the window. The top-level window.close() asks the host directly instead. + static std::string windowCloseScript() { + return "(()=>{if(window.top!==window||!window.chrome||!window.chrome.webview)return;" + "const post=window.chrome.webview.postMessage.bind(window.chrome.webview);" + "Object.defineProperty(window,'close',{value:function close(){post('webfront:close-window');}," + "configurable:true,writable:true});})();"; + } + template void installViewAssociationThenNavigate(Browser* browser) { - const auto source = webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin); - if (!source.empty()) { + const auto source = windowCloseScript() + webfront::detail::viewSecretScript(viewLaunch.secret, viewLaunch.origin); + { auto weak = weak_from_this(); const auto script = utf16(source); check(browser->AddScriptToExecuteOnDocumentCreated( @@ -831,11 +858,7 @@ class Session : public std::enable_shared_from_this { return S_OK; }).Get()), "starting the view association script installation"); - return; } - // Slow page resources must not consume the runtime startup budget. - stopStartupTimer(); - check(browser->Navigate(url.c_str()), "navigating to application"); } }; diff --git a/test/unit/WebView2Tests.cpp b/test/unit/WebView2Tests.cpp index 9fc490f9..f787b9c5 100644 --- a/test/unit/WebView2Tests.cpp +++ b/test/unit/WebView2Tests.cpp @@ -59,16 +59,24 @@ SCENARIO("WebView2 waits for view association registration before navigation") { } } -SCENARIO("WebView2 navigates immediately without a view association script") { +SCENARIO("WebView2 installs the window close script even without a view association secret") { using namespace webfront::frontend::detail::webview2; Apartment apartment; auto session = std::make_shared(); session->createWindow(); ViewRegistrationBrowser browser; session->installViewAssociationThenNavigate(&browser); - REQUIRE_FALSE(browser.completion); + REQUIRE(browser.completion); + REQUIRE(browser.navigations == 0); + REQUIRE(browser.completion->Invoke(S_OK, L"script") == S_OK); REQUIRE(browser.navigations == 1); REQUIRE(session->startupTimer == 0); + THEN("the script asks the host to close instead of relying on Chromium's window.close() filter") { + const auto script = Session::windowCloseScript(); + REQUIRE_THAT(script, Catch::Matchers::ContainsSubstring("webfront:close-window")); + REQUIRE_THAT(script, Catch::Matchers::ContainsSubstring("window.top!==window")); + REQUIRE(Session::windowCloseMessage() == L"webfront:close-window"); + } } SCENARIO("WebView2 encodes application paths") { diff --git a/test/web/WebView2Lifecycle.cpp b/test/web/WebView2Lifecycle.cpp index c84c2865..db0b8be3 100644 --- a/test/web/WebView2Lifecycle.cpp +++ b/test/web/WebView2Lifecycle.cpp @@ -463,9 +463,15 @@ int runtimeReadyBeforePageLoad() { require(session->loadingInitialPage(), "The fixture must still be loading its first page"); require(!session->startupTimer, "Runtime watchdog still covers page loading"); EventRegistrationToken token{}; - check(session->view->add_WindowCloseRequested( - Microsoft::WRL::Callback([&](ICoreWebView2*, IUnknown*) -> HRESULT { - closeObserved = true; + // The session turns the page's window.close() into a host message (Chromium may ignore the native request). + check(session->view->add_WebMessageReceived( + Microsoft::WRL::Callback([&](ICoreWebView2*, ICoreWebView2WebMessageReceivedEventArgs* args) -> HRESULT { + LPWSTR raw = nullptr; + if (SUCCEEDED(args->TryGetWebMessageAsString(&raw)) && raw) { + const std::unique_ptr message(raw, CoTaskMemFree); + if (std::wstring_view{message.get()} == Session::windowCloseMessage()) + closeObserved = true; + } return S_OK; }).Get(), &token), From 7d806b4f4af2eb667c1e411ee5b365a2269c08d6 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Wed, 4 Nov 2026 14:30:19 +0100 Subject: [PATCH 10/10] Normalize embedded view origins with the browser URL parser (#453) --- docs/CHANGELOG.md | 5 +++-- docs/FRONTENDS.md | 5 +++-- include/webfront/ViewAssociation.hpp | 8 ++++---- test/unit/ViewAssociationTests.cpp | 2 +- test/web/FrontendLifecycle.cpp | 7 +++++++ test/web/view-association.html | 15 +++++++++++++++ 6 files changed, 33 insertions(+), 9 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 603194f7..3d237d5a 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -12,8 +12,9 @@ or behind a proxy or tunnel). A frontend receives the proof through an optional `open(address, port, file, policy, window, ViewLaunch)` overload. The handshake is accepted once per connection and a proof is copied only at the size of a secret; the script handed to a view is refused (no association) for an origin or a secret that would need escaping; an IPv4 loopback - seen through a dual-stack socket counts as loopback. The association does not protect against a script - admitted into the view. WebView2, WebKitGTK and CEF code is covered by their own CI jobs; WKWebView is also tested here. + seen through a dual-stack socket counts as loopback. The injection script normalizes its expected origin with the browser's + URL parser, so expanded IPv6 and IPv6 with embedded IPv4 notation match `location.origin`. The association does not protect + against a script admitted into the view. WebView2, WebKitGTK and CEF code is covered by their own CI jobs; WKWebView is also tested here. - HTTP server: dynamic routes (#454, ADR-020 prerequisite). `addRoute(prefix, handler)` on the application answers `GET` and `HEAD` under an absolute prefix with a reply produced at run time (`http::RouteReply`: status, headers, exact or unknown diff --git a/docs/FRONTENDS.md b/docs/FRONTENDS.md index bbfeccb9..5251339f 100644 --- a/docs/FRONTENDS.md +++ b/docs/FRONTENDS.md @@ -53,8 +53,9 @@ on a command line or in a URL. - A custom frontend that wants services restricted to its own view implements the overload and applies `webfront::detail::viewSecretScript(secret, origin)` (or the engine's equivalent) at the start of the document. The helper returns an empty script, hence no association, unless the secret is lowercase hexadecimal and the origin a plain http origin; - give it `webfront::detail::browserOrigin(address, port)` (the origin as `location.origin` writes it: lowercase, without port 80), - which `ViewLaunch::origin` already is. + give it `webfront::detail::browserOrigin(address, port)` (lowercase, without port 80), which `ViewLaunch::origin` already is. + The script uses the browser's `URL` parser to serialize that origin before comparing it with `location.origin`, including + IPv6 compression and embedded IPv4 notation (`::ffff:127.0.0.1` becomes `[::ffff:7f00:1]` as a URL host). ## Window title and size diff --git a/include/webfront/ViewAssociation.hpp b/include/webfront/ViewAssociation.hpp index bd9ca239..cdd4e8ae 100644 --- a/include/webfront/ViewAssociation.hpp +++ b/include/webfront/ViewAssociation.hpp @@ -49,8 +49,8 @@ inline std::string newViewSecret() { return mismatch == 0; } -/// The origin as the browser writes `location.origin`: lowercase, without the default port 80. The comparison of the script -/// below is a string comparison, so an origin written otherwise would never match and the view would stay unassociated. +/// The application origin prepared for injection: lowercase, without the default port 80. The script below lets the +/// browser's URL parser finish serialization, including compression of IPv6 and its embedded IPv4 notation. [[nodiscard]] inline std::string browserOrigin(std::string_view address, std::string_view port) { auto origin = applicationOrigin(address, port); std::ranges::transform(origin, origin.begin(), [](unsigned char c) { return static_cast(std::tolower(c)); }); @@ -67,9 +67,9 @@ inline std::string newViewSecret() { const auto isOrigin = [](char c) { return std::isalnum(static_cast(c)) || std::string_view{":/.[]-"}.contains(c); }; if (secret.empty() || origin.empty() || !std::ranges::all_of(secret, isHex) || !std::ranges::all_of(origin, isOrigin)) return {}; - std::string script = "if (window === window.top && location.origin === '"; + std::string script = "if (window === window.top && location.origin === new URL('"; script += origin; - script += "') Object.defineProperty(window, '"; + script += "').origin) Object.defineProperty(window, '"; script += viewSecretProperty; script += "', {value: '"; script += secret; diff --git a/test/unit/ViewAssociationTests.cpp b/test/unit/ViewAssociationTests.cpp index 10848e9e..14e36944 100644 --- a/test/unit/ViewAssociationTests.cpp +++ b/test/unit/ViewAssociationTests.cpp @@ -156,7 +156,7 @@ SCENARIO("The script that hands the secret to a view refuses what it cannot writ GIVEN("a hexadecimal secret and a plain origin") { const auto script = detail::viewSecretScript(secret, "http://127.0.0.1:9002"); THEN("the script names the origin and the secret") { - REQUIRE(script.contains("location.origin === 'http://127.0.0.1:9002'")); + REQUIRE(script.contains("location.origin === new URL('http://127.0.0.1:9002').origin")); REQUIRE(script.contains(secret)); } } diff --git a/test/web/FrontendLifecycle.cpp b/test/web/FrontendLifecycle.cpp index 628a846f..b4765ca9 100644 --- a/test/web/FrontendLifecycle.cpp +++ b/test/web/FrontendLifecycle.cpp @@ -41,6 +41,7 @@ int checkViewAssociation() { std::mutex mutex; std::vector embedded; std::vector local; + std::atomic originsChecked = false; app.onUIStarted([&](App::UI ui) { std::scoped_lock lock{mutex}; embedded.push_back(ui.isEmbeddedView()); @@ -50,7 +51,13 @@ int checkViewAssociation() { std::scoped_lock lock{mutex}; return static_cast(embedded.size()); }); + app.cppFunction("associationScript", [](std::string address) { + return webfront::detail::viewSecretScript(std::string(64, 'a'), webfront::detail::browserOrigin(address, "9002")); + }); + app.cppFunction("originsChecked", [&] { originsChecked = true; }); app.show("view-association.html"); + if (!originsChecked) + throw std::runtime_error("The view association script did not match the browser's serialized IPv6 origins"); std::scoped_lock lock{mutex}; if (embedded.size() != 2) throw std::runtime_error("Expected two bridge connections"); diff --git a/test/web/view-association.html b/test/web/view-association.html index 77084908..e6172385 100644 --- a/test/web/view-association.html +++ b/test/web/view-association.html @@ -9,6 +9,21 @@ try { await webFront.ready; if ("__webfrontView" in window) throw new Error("the launch secret is still readable by the page"); + // Run the C++-generated injection against origins serialized by the real engine. A synthetic window + // keeps the fixed test secret separate from the real view's launch secret and needs no IPv6 listener. + for (const address of ["0:0:0:0:0:0:0:1", "::ffff:127.0.0.1", "2001:0DB8:0:0:1:0:0:1"]) { + const script = await webFront.cppFunction("associationScript")(address); + const target = {}; + target.top = target; + const origin = new URL(`http://[${address}]:9002/`).origin; + new Function("window", "location", script)(target, {origin}); + if (target.__webfrontView !== "a".repeat(64)) throw new Error(`association failed for ${origin}`); + const foreign = {}; + foreign.top = foreign; + new Function("window", "location", script)(foreign, {origin: origin.replace(":9002", ":9003")}); + if ("__webfrontView" in foreign) throw new Error("a foreign origin received the secret"); + } + await webFront.cppFunction("originsChecked")(); await new Promise((resolve, reject) => { const socket = new WebSocket(`ws://${location.host}`, "WebFront_0.1"); socket.binaryType = "arraybuffer";