Replacing/relinking the HEIC decoder

The decoder is a separate unmodified classic-script browser file, requested
by integration/public/heic/decoder-worker.js using importScripts at:
  /vendor/libheif-js/libheif-bundle.js
It is not cryptographically locked by the browser UI. The library interface
must expose libheif(), HeifDecoder, the image accessors and pixel display
methods used by that supplied worker source. policy.js is independent input
validation/color handling; heic-controller.ts owns the worker lifecycle.
The controller and React component are included to make the boundary explicit.

To run your modified compatible library with the application:
1. Save/mirror the site's static HTML and referenced assets to a local directory,
   preserving URLs, including /heic/, /vendor/, bundled /_astro/ assets and fonts.
   You may also use the site's complete static build directory when available.
   The minified application JS is the application's object-code form; it does
   not have to be recompiled to replace the separate library file.
2. Build a compatible libheif-bundle.js from the supplied source instructions.
3. Replace only vendor/libheif-js/libheif-bundle.js in that local directory.
   Retain licenses/notices. No changes to a hosted production site are needed.
4. Serve the local directory over HTTP (not file://), for example:
     python3 -m http.server 8080 --bind 127.0.0.1
   Open http://127.0.0.1:8080/heic-to-jpg/?qa=1. A local hostname disables
   telemetry and feedback does not fall back to a hosted production service.
5. Use a permitted static SDR HEIC to verify preview and download. Changes to
   unsupported-format policy or UI require separately adapting their source;
   merely replacing an interface-compatible decoder needs no application build.

Permission is granted to copy the delivered application object code as needed
to recombine/relink it with a modified version of the LGPL library and run that
modified combination. Modification of the library and reverse engineering of
the application for debugging such modifications are not prohibited. The HEIC
integration source files carry the additional MIT permission in LICENSE.txt.
This statement does not change the licenses of third-party components or
claim that unrelated site source is LGPL. No signing key/account is required.

The developer's public-release integrity gate applies to their release process,
not to a recipient's ability to run a locally modified library. Such a local
modified copy is not an endorsed official release of Image Tools.
