BSD 3-Clause License

Copyright (c) 2026, mzy <453778839@qq.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
   may be used to endorse or promote products derived from this software
   without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

================================================================================
Third-party material redistributed with this project
================================================================================

This project is an independent extension library. It is **not** part of Flask
and is **not** affiliated with, or endorsed by, the Pallets organisation.

1. Flask (https://flask.palletsprojects.com/) — BSD 3-Clause,
   Copyright 2010 Pallets.

   `desktop_flask` does not modify or redistribute Flask's source. It imports
   Flask at run time as an ordinary dependency. The design of the desktop
   integration is documented against Flask, and the acceptance example under
   `examples/tutorial/` is a copy of the official Flask tutorial application,
   which is redistributed here under the same BSD 3-Clause terms with its own
   `LICENSE.txt` preserved in that directory.

2. Microsoft.Web.WebView2 (NuGet package) — Copyright (c) Microsoft Corporation.

   The managed assemblies (`Microsoft.Web.WebView2.Core.dll`,
   `Microsoft.Web.WebView2.WinForms.dll`) and the native loaders
   (`runtimes/win-{x64,x86,arm64}/native/WebView2Loader.dll`) are redistributed
   verbatim under `src/desktop_flask/_vendor/webview2/`. Microsoft's own
   `LICENSE.txt` and `NOTICE.txt` are kept alongside them, and
   `manifest.json` records the exact package version and the SHA256 of every
   file.

See `NOTICE.md` for the complete attribution list, including dependencies that
are required at run time but are **not** redistributed in this package.
