diff --git a/extensions/sd-webui-infinite-image-browsing/.env.example b/extensions/sd-webui-infinite-image-browsing/.env.example deleted file mode 100644 index 8c71100f5c787c0009f9681eda616fa8d14db17d..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/.env.example +++ /dev/null @@ -1,49 +0,0 @@ -# This document is used for additional control over the security and privacy of IIB. By default, IIB is already sufficiently secure, and you do not need to take any additional actions. -# Copy this file and rename it to ".env" . Then, fill in the necessary values for your specific use case. -# Remember to never share your .env file with anyone else as it may contain sensitive information. - -# This attribute is used for authentication. If you input a key here, it will be validated for authentication purposes. -# It will be prompted to enter your key when you open the extension. If the authentication fails, all your requests will be rejected. -IIB_SECRET_KEY= - -# Configuring the server-side language for this extension, -# including the tab title and most of the server-side error messages returned. Options are 'zh', 'en', or 'auto'. -# If you want to configure the language for the front-end pages, please set it on the extension's global settings page. -IIB_SERVER_LANG=auto - -# This configuration parameter specifies the maximum number of database file backups for the IIB . -IIB_DB_FILE_BACKUP_MAX=8 - -# Set the cache directory for IIB, including image cache and video cover cache. -# The default is the system's temporary directory, but if you want to specify a custom directory, set it here. -# You can use --generate_video_cover and --generate_image_cache to pre-generate the cache. -# IIB_CACHE_DIR= - - -# ---------------------------- ACCESS_CONTROL ---------------------------- - -# Used to configure whether to enable access control to the file system. -# If enabled, only access to the provided pre-set folders (including those provided by sd-webui and manually \ -# added to Quick Move or specified via IIB_ACCESS_CONTROL_ALLOWED_PATHS) will be allowed. -# The available options are 'enable', 'disable', and 'auto'. -# The default value is 'auto', which will be determined based on the command-line parameters used to start sd-webui (such as --server-name, --share, --listen). -IIB_ACCESS_CONTROL=auto - -# This variable is used to define a list of allowed paths for the application to access when access control mode is enabled. -# It can be set to a comma-separated string of file paths or directory paths, representing the resources that are allowed to be accessed by the application. -# In addition, if sd_webui_config or sd_webui_dir has been configured, or if you're running this repository as an extension of sd-webui, -# you can use the following shortcuts (txt2img, img2img, extra, save) as values for the ALLOWED_PATHS variable. -# IIB_ACCESS_CONTROL_ALLOWED_PATHS=save,extra,/output ...etc - -# This variable is used to control fine-grained access control for different types of requests, but only if access control mode is enabled. -# It can be set to a string value that represents a specific permission or set of permissions, such as "read-only", "write-only", "read-write", or "no-access". -# This variable can be used to restrict access to certain API endpoints or data sources based on the permissions required by the user. -# IIB_ACCESS_CONTROL_PERMISSION=read-write - - - -# ---------------------------- PARSER_CONFIG ---------------------------- -# This attribute is used to control whether to enable SdWebUIStealthParser. -# Due to the high performance cost of parsing this type of file, it is disabled by default. -# Set to 'true' to enable it. -IIB_ENABLE_SD_WEBUI_STEALTH_PARSER=false diff --git a/extensions/sd-webui-infinite-image-browsing/.github/FUNDING.yml b/extensions/sd-webui-infinite-image-browsing/.github/FUNDING.yml deleted file mode 100644 index 4173aa12afce4920be16c9243d49aef687c10964..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/.github/FUNDING.yml +++ /dev/null @@ -1,4 +0,0 @@ -# These are supported funding model platforms - -ko_fi: zanllp -custom: https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.github/wechat_funding.jpg diff --git a/extensions/sd-webui-infinite-image-browsing/.github/wechat_funding.jpg b/extensions/sd-webui-infinite-image-browsing/.github/wechat_funding.jpg deleted file mode 100644 index 413b3c5e59fbc94292b8995f76e5885ac407ee96..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/.github/wechat_funding.jpg +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a621e380a2e937ff152f4bc37815cb13a6f51c9b88ece85d4c039c56ba5645e0 -size 60420 diff --git a/extensions/sd-webui-infinite-image-browsing/.github/workflows/tauri_app_build.yml b/extensions/sd-webui-infinite-image-browsing/.github/workflows/tauri_app_build.yml deleted file mode 100644 index 1d2d9346ecfa551ca58c9ac61078146f7e80ee8d..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/.github/workflows/tauri_app_build.yml +++ /dev/null @@ -1,231 +0,0 @@ -name: tauri_app_build - -on: - push: - branches: - - 'releases/**' - -jobs: - build: - strategy: - matrix: - os: [windows-latest,ubuntu-20.04] - - runs-on: ${{ matrix.os }} - - permissions: - contents: write - steps: - - name: Check-out repository - uses: actions/checkout@v3 - - - run: echo "VERSION=$(jq -r '.package.version' vue/src-tauri/tauri.conf.json)" >> "$GITHUB_ENV" - if: matrix.os == 'ubuntu-20.04' - - run: echo "VERSION=$(jq -r '.package.version' vue/src-tauri/tauri.conf.json)" >> $env:GITHUB_ENV - if: matrix.os == 'windows-latest' - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - cache: 'pip' - cache-dependency-path: | - **/requirements*.txt - - - name: Install Dependencies - run: | - - pip install -r requirements.txt - - - name: Build Executable - uses: Nuitka/Nuitka-Action@main - with: - nuitka-version: main - script-name: app.py - output-file: iib_api_server - output-dir: out - include-data-dir: | - vue/dist=vue/dist - - - run: cp out/iib_api_server out/iib_app_cli-${{ env.VERSION }}-${{ runner.os }} - if: matrix.os == 'ubuntu-20.04' - - run: cp out/iib_api_server.exe out/iib_app_cli-${{ env.VERSION }}-${{ runner.os }}.exe - if: matrix.os == 'windows-latest' - - - name: Upload Server Artifacts - uses: actions/upload-artifact@v3 - with: - name: iib_app_cli_${{ runner.os }} - path: | - out/iib_app_cli-${{ env.VERSION }}-${{ runner.os }} - out/iib_app_cli-${{ env.VERSION }}-${{ runner.os }}.exe - - - name: Upload Server Artifacts - uses: actions/upload-artifact@v3 - with: - name: iib_api_server-${{ env.VERSION }}-${{ runner.os }} - path: | - out/iib_api_server.exe - out/iib_api_server - - - run: mv out/iib_api_server.exe vue/src-tauri/iib_api_server-x86_64-pc-windows-msvc.exe - if: matrix.os == 'windows-latest' - - - run: mv out/iib_api_server vue/src-tauri/iib_api_server-x86_64-unknown-linux-gnu - if: matrix.os == 'ubuntu-20.04' - - - name: Install frontend dependencies - run: yarn install - working-directory: vue - - - name: Rust setup - uses: dtolnay/rust-toolchain@stable - - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - - name: Rust cache - uses: swatinem/rust-cache@v2 - with: - workspaces: './vue/src-tauri -> target' - - - name: Install dependencies (ubuntu only) - if: matrix.os == 'ubuntu-20.04' - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libayatana-appindicator3-dev librsvg2-dev patchelf - - - name: Build the app - run: | - yarn tauri-build - working-directory: vue - - - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: bundle-${{ env.VERSION }}-${{ runner.os }} - path: | - vue/src-tauri/target/release/bundle/nsis/Infinite Image Browsing_${{ env.VERSION }}_x64-setup.exe - vue/src-tauri/target/release/bundle/deb/infinite-image-browsing_${{ env.VERSION }}_amd64.deb - - - build-by-pyinstaller: - strategy: - matrix: - os: [windows-latest] - - runs-on: ${{ matrix.os }} - - permissions: - contents: write - steps: - - name: Check-out repository - uses: actions/checkout@v3 - - - run: echo "VERSION=$(jq -r '.package.version' vue/src-tauri/tauri.conf.json)" >> $env:GITHUB_ENV - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - cache: 'pip' - cache-dependency-path: | - **/requirements*.txt - - - name: Install Dependencies - run: | - pip install -r requirements.txt - - - uses: sayyid5416/pyinstaller@v1 - with: - spec: 'app.py' - upload_exe_with_name: 'My executable' - options: --onefile - - - run: mv dist/app.exe vue/src-tauri/iib_api_server-x86_64-pc-windows-msvc.exe - - - name: Install frontend dependencies - run: yarn install - working-directory: vue - - - name: Rust setup - uses: dtolnay/rust-toolchain@stable - - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - - name: Rust cache - uses: swatinem/rust-cache@v2 - with: - workspaces: './vue/src-tauri -> target' - - - name: Install dependencies (ubuntu only) - if: matrix.os == 'ubuntu-20.04' - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libayatana-appindicator3-dev librsvg2-dev patchelf - - - name: Build the app - run: | - yarn tauri-build - working-directory: vue - - - run: | - cd vue/src-tauri/target/release/bundle/nsis - mv "Infinite Image Browsing_${{ env.VERSION }}_x64-setup.exe" "Infinite Image Browsing_${{ env.VERSION }}_x64-setup-pyinstaller.exe" - - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: bundle-${{ env.VERSION }}-${{ runner.os }} - path: | - vue/src-tauri/target/release/bundle/nsis/Infinite Image Browsing_${{ env.VERSION }}_x64-setup-pyinstaller.exe - - release: - needs: [build-by-pyinstaller, build] - runs-on: ubuntu-latest - - permissions: - contents: write - steps: - - name: Check-out repository - uses: actions/checkout@v3 - - run: echo "VERSION=$(jq -r '.package.version' vue/src-tauri/tauri.conf.json)" >> "$GITHUB_ENV" - - - name: Delete drafts - uses: hugo19941994/delete-draft-releases@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - uses: actions/download-artifact@v3 - with: - name: bundle-${{ env.VERSION }}-Windows - path: artifacts - - - uses: actions/download-artifact@v3 - with: - name: bundle-${{ env.VERSION }}-Linux - path: artifacts - - - uses: actions/download-artifact@v3 - with: - name: iib_app_cli_Windows - path: artifacts - - - uses: actions/download-artifact@v3 - with: - name: iib_app_cli_Linux - path: artifacts - - - name: Release - uses: softprops/action-gh-release@v1 - with: - draft: true - tag_name: v${{ env.VERSION }} - files: artifacts/**/* - diff --git a/extensions/sd-webui-infinite-image-browsing/.gitignore b/extensions/sd-webui-infinite-image-browsing/.gitignore deleted file mode 100644 index 328362e49d1dad2608d479f73e88ebbd48fc61b5..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -*.log -__pycache__ -iib.db -tags-translate.csv -launch.sh -conf.json -iib.db-journal -.env -standalone.cmd -.vscode -build/**/* -dist/**/* -*.spec -out/**/* -venv/**/* -zip_temp/*.zip -iib_db_backup -db_migrate_temp.db -plugins/* -!plugins/.gitkeep -test_data/* -.DS_Store diff --git a/extensions/sd-webui-infinite-image-browsing/.vscode/settings.json b/extensions/sd-webui-infinite-image-browsing/.vscode/settings.json deleted file mode 100644 index 6ba1afd2f5a4843c84363308d83a515e8f3bb589..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "[python]": { - "editor.defaultFormatter": "ms-python.black-formatter" - }, - "python.formatting.provider": "none" -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/LICENSE b/extensions/sd-webui-infinite-image-browsing/LICENSE deleted file mode 100644 index 46d1025428452c2dfcfb56411d8a1bd4f5d026d2..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 zanllp - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/extensions/sd-webui-infinite-image-browsing/README-zh.md b/extensions/sd-webui-infinite-image-browsing/README-zh.md deleted file mode 100644 index 930e2fa4c5083449e7b0745a2bb44af2121ffd26..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/README-zh.md +++ /dev/null @@ -1,162 +0,0 @@ -> 🌐 在线体验: http://39.105.110.128:0721 , 这是我一个空闲的2c2g3m的云主机没有cdn -> -# Stable-Diffusion-WebUI无边图像浏览 - - -[查看近期更新](https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log) - -[安装/运行](#安装运行) - - -## 主要特性 - -### 🔥 极佳性能 -- 存在缓存的情况下后,图像可以在几毫秒内显示。 -- 默认使用缩略图显示图像,默认大小为512像素,您可以在全局设置页中调整缩略图分辨率。 -- 你还可以控制网格图像的宽度,允许以64px到1024px的宽度范围进行显示 -- 支持通过`--generate_video_cover`和`--generate_image_cache`来预先生成缩略图和视频封面,以提高性能。 -- 支持通过`IIB_CACHE_DIR`环境变量来指定缓存目录。 - -### 🔍 图像搜索和收藏 -- 将会把Prompt、Model、Lora等信息转成标签,将根据使用频率排序以供进行精确的搜索。 -- 支持标签自动完成、[翻译](https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/39)和自定义。 -- 可通过在右键菜单切换自定义标签来实现图像收藏。 -- 支持类似谷歌的高级搜索。 -- 同样支持模糊搜索,您可以使用文件名或生成信息的一部分进行搜索。 -- 支持添加自定义搜索路径,方便管理自己创建的文件夹集合。 - -### 🖼️ 查看图像/视频和“发送到” -- 支持查看图像生成信息。全屏预览下同样支持。 -- 支持将图像发送到其他选项卡和其他插件,例如 ControlNet, openOutpaint。 -- 支持全屏预览,并且支持在全屏预览下使用自定义快捷键进行操作 -- 支持在全屏预览模式下通过按下方向键或点击按钮移动到前一个或后一个图像。 -- 支持播放远程服务器上的视频文件 - -### 💻 多种使用方法 -- 您可以将其作为 SD-webui 的扩展安装。 -- 您可以使用 Python 独立运行它。 -- 还提供桌面应用程序版本。 -- 支持多种流行的AI软件 - -### 🚶‍♀️ Walk模式 -- 自动加载下一个文件夹 `(类似于 os.walk)`,可让您无需分页浏览所有图像。 -- 已测试可正常处理超过 27,000 个文件。 -- 当存在文件夹的情况下你可以通过右上角的walk按钮从其他模式切换到walk模式,它会将所有的文件夹打平,避免来回进出文件夹的繁琐操作。 - -### 🌳 基于文件树结构的预览和文件操作 -- 支持基于文件树结构的预览。 -- 支持自动刷新。 -- 支持基本文件操作以及多选删除/移动/复制,新建文件夹等。 -- 按住 Ctrl、Shift 或 Cmd 键可选择多个项目。 - - 支持多选的操作有:删除、移动、复制、打包下载、添加标签、移除标签,移动到其他文件夹,复制到其他文件夹,拖拽 - - 你可以通过右下角的保持多选按钮来保持多选的状态,对选中的文件集合可以很方便的进行多次操作 - -### 🆚 图像对比 (类似ImgSli) -- 提供两张图片的并排比较 -- 同时提供图像生成信息的比较 - -### 🌐 多语言支持 -- 目前支持简体中文/繁体中文/英文/德语。 -- 如果您希望添加新的语言,请参考 [i18n.ts](https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/vue/src/i18n/zh-hans.ts) 并提交相关的代码。 - - -### 🔐 隐私和安全 -- 支持自定义secret key来进行身份验证 -- 支持配置对文件系统的访问控制,默认将在服务允许公开访问时启用(仅限作为sd-webui的拓展时) -- 支持自定义访问控制允许的路径。 -- 支持控制访问权限。你可以让IIB以只读模式运行 -- [点击这里查看详情](.env.example) - -### ⌨️ 快捷键 -- 支持删除和添加/移除Tag,在全局设置页进行自定义触发按钮 - -### 📦 打包 / 批量下载 -- 允许你一次性打包下载多个图像 -- 数据来源可以是搜索结果/普通的图像网格查看页面/walk模式等。使用拖拽或者“发送到”都可将图片添加待处理列表 - - -如果您喜欢这个项目并且觉得它对您有帮助,请考虑给我点个⭐️。这将对我持续开发和维护这个项目非常重要。如果您有任何建议或者想法,请随时在issue中提出,我会尽快回复。再次感谢您的支持! - - -[在微信上赞助我](.github/wechat_funding.jpg) - -Buy Me a Coffee at ko-fi.com - - -[视频演示可以在Bilibili上观看](https://space.bilibili.com/27227392/channel/series) - -# 安装/运行 - -## 作为SD-webui的扩展程序: -1. 在SD-webui中打开`扩展`选项卡。 -2. 选择`从URL安装`选项。 -3. 输入 `https://github.com/zanllp/sd-webui-infinite-image-browsing`。 -4. 点击`安装`按钮。 -5. 等待安装完成,然后点击`应用并重启UI`。 - -## 作为使用Python运行的独立程序(不需要SD-webui): -请参考[Can the extension function without the web UI?](https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/47) - -如果需要查看ComfyUI/Fooocus/NovelAI生成的图片相关,请先参考 https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/202#issuecomment-1655764627 - -如果你需要dockerfile 参考 https://github.com/zanllp/sd-webui-infinite-image-browsing/discussions/366 - -## 作为桌面应用程序(不需要SD-webui和Python): -exe版本同样支持ComfyUI/Fooocus/NovelAI - -从仓库页面右侧的`releases`部分下载并安装程序。如果提示检测到病毒忽略即可这是误报。在windows下的编译有两个版本, pyinstaller版本拥有比较低的误报率。 - -如果你需要自行编译请参考 https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.github/workflows/tauri_app_build.yml -## 作为库使用 - -使用iframe接入IIB,将IIB作为你应用的文件浏览器使用。 参考 https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/vue/usage.md - -# 预览 - -image - -## 图像搜索 - -在第一次使用时,你需要点击等待索引的生成,我2万张图像的情况下大概需要15秒(配置是amd 5600x和pcie ssd)。后续使用他会检查文件夹是否发生变化,如果发生变化则需要重新生成索引,通常这个过程极快。 - -图像搜索支持翻译,具体看这个 https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/39 。 -image -image -## 图像比较 - -![ezgif com-video-to-gif](https://github.com/zanllp/sd-webui-infinite-image-browsing/assets/25872019/4023317b-0b2d-41a3-8155-c4862eb43846) - -## 全屏预览 (并排布局) -![11](https://github.com/zanllp/sd-webui-infinite-image-browsing/assets/25872019/ee941bfc-0c1b-4777-91df-115435cc8542) - -## 全屏预览 -image - -在全屏预览下同样可以查看图片信息和进行上下文菜单上的的操作,支持拖拽/调整/展开收起 - -https://user-images.githubusercontent.com/25872019/235327735-bfb50ea7-7682-4e50-b303-38159456e527.mp4 - - -如果你和我一样不需要查看生成信息,你可以选择直接缩小这个面板,所有上下文操作仍然可用 - -image - -### 右键菜单 -image - -也可以通过右上角的图标来触发 -image - -### Walk模式 - - -https://user-images.githubusercontent.com/25872019/230768207-daab786b-d4ab-489f-ba6a-e9656bd530b8.mp4 - - - - -### 深色模式 - -image - - diff --git a/extensions/sd-webui-infinite-image-browsing/README.md b/extensions/sd-webui-infinite-image-browsing/README.md deleted file mode 100644 index b154eaeeac2e3d70ca9cde44c49651253fa7d5e3..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/README.md +++ /dev/null @@ -1,178 +0,0 @@ -> 🌍 i18n Advisory: Some translations may be incomplete or inaccurate. Pull requests are welcome for improvements! - -> 🌐 Try our application online at: http://39.105.110.128:0721. This is my idle 2c2g3m cloud server without CDN. - -[中文文档](./README-zh.md) -[Change log](https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log) -[Installation / Running](#installation--running) - - -# Stable Diffusion webui Infinite Image Browsing - -### Software Support and Development Progress Overview -| Software | Support | Provided by | -| ---------------------- | ---------------- | ----------- | -| Stable Diffusion web UI| Supported | Built-in | -| Stable Diffusion web UI (Stealth)| Supported ([default: disabled](https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example#L49)) | Built-in | -| ComfyUI | Partially supported | Built-in | -| Fooocus | Supported | Built-in | -| NovelAI | Supported | Built-in | -| StableSwarmUI | Supported | Built-in | -| Invoke.AI | Supported | Built-in | -| Pixiv | Supported | [pixiv_iib_plugin](https://github.com/zanllp/pixiv_iib_plugin) | - -If you would like to support more software, please refer to: [parsers](https://github.com/zanllp/sd-webui-infinite-image-browsing/tree/main/scripts/iib/parsers) or [pixiv_iib_plugin](https://github.com/zanllp/pixiv_iib_plugin) - -## Key Features - -### 🔥 Excellent Performance -- Once caching is generated, images can be displayed in just a few milliseconds. -- Images are displayed with thumbnails by default, with a default size of 512 pixels. You can adjust the thumbnail resolution on the global settings page. -- You can also control the width of the grid images, allowing them to be displayed in widths ranging from 64px to 1024px. -- Supports pre-generating thumbnails and video covers to improve performance using `--generate_video_cover` and `--generate_image_cache`. -- Supports specifying the cache directory through the `IIB_CACHE_DIR` environment variable. - -### 🔍 Image Search & Favorite -- The prompt, model, Lora, and other information will be converted into tags and sorted by frequency of use for precise searching. -- Supports tag autocomplete, [auto-translation](https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/39), and customization. -- Image favorite can be achieved by toggling custom tags for images in the right-click menu. -- Support for advanced search similar to Google -- Also supports fuzzy search, you can search by a part of the filename or generated information. -- Support adding custom search paths for easy management of folders created by the user. - -### 🖼️ View Images/Videos & `Send To` -- Supports viewing image generation information. Also supported in full-screen preview mode. -- Supports sending images to other tabs and third-party extensions such as ControlNet , openOutpaint. -- Support full-screen preview and enable custom shortcut key operations while in full-screen preview mode. -- Support navigating to the previous or next image in full-screen preview mode by pressing arrow keys or clicking buttons. -- Support playing video files from a remote server. - -### 💻 Multiple Usage Methods -- You can install it as an extension on SD-webui. -- You can run it independently using Python. -- The desktop app version is also available. -- Supports multiple popular AI software. - - -### 🚶‍♀️ Walk Mode -- Automatically load the next folder `(similar to os.walk)`, allowing you to browse all images without paging. -- Tested to work properly with over 27,000 files. -- When there are folders, you can switch to walk mode from other modes by clicking the walk button in the upper right corner. It will flatten all the folders, avoiding the tedious operation of going in and out of folders. - -### 🌳 Preview based on File Tree Structure & File operations -- Supports file tree-based preview. -- Supports automatic refreshing. -- Supports basic file operations, such as multiple selection for deleting/moving/copying, and creating new folders. -- Hold down the Ctrl, Shift, or Cmd key to select multiple items. - - Supported multi-select operations include: delete, move, copy, pack download, add tags, remove tags, move to another folder, copy to another folder, drag and drop. - - You can keep the multi-select state by clicking the "Keep Multi-Select" button in the lower right corner, allowing you to perform multiple operations on the selected file collection conveniently. - -### 🆚 image comparison (similar to Imgsli) -- Provides a side-by-side comparison of two images. -- Provides a comparison of image generation information at the same time. - -### 🌐 Multilingual Support -- Currently supports Simplified Chinese/Traditional Chinese/English/German. -- If you would like to add a new language, please refer to [i18n.ts](https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/vue/src/i18n/zh-hans.ts) and submit the relevant code. - -### 🔐 Privacy and Security -- Supports custom secret key for authentication. -- Supports configuring access control for the file system, which will be enabled by default when the service allows public access (Only when used as an extension of sd-webui). -- Supports customizing the allowed paths for access control. -- Supports controlling access permissions. You can run IIB in read-only mode. -- [Click here to see details](.env.example) - - -### 📦 Packaging/Batch Download -- Allows you to download multiple images at once. -- The data source can be search results, a regular image grid view page, walk mode, etc. Images can be added to the processing list through drag-and-drop or "Send To". -### ⌨️ Keyboard Shortcuts -- Allows for deleting and adding/removing tags, with customizable trigger buttons in the global settings page. - - -If you like this project and find it helpful, please consider giving it a ⭐️. This would be very important for me to continue developing and maintaining this project. If you have any suggestions or ideas, please feel free to raise them in the issue section, and I will respond as soon as possible. Thank you again for your support! - - -Buy Me a Coffee at ko-fi.com - -[Sponsor me on WeChat](.github/wechat_funding.jpg) - -# Installation / Running -## As an extension for SD-webui: -1. Open the `Extensions` tab in SD-webui. -2. Select the `Install from URL` option. -3. Enter `https://github.com/zanllp/sd-webui-infinite-image-browsing`. -4. Click on the `Install` button. -5. Wait for the installation to complete and click on `Apply and restart UI`. - -## As a standalone program that runs using Python. (without SD-webui): - -Refer to [Can the extension function without the web UI?](https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/47) - -If you need to view images generated by ComfyUI/Fooocus/NovelAI, please refer to [https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/202](https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/202#issuecomment-1655764627). - -If you need a Dockerfile, you can refer to this link. https://github.com/zanllp/sd-webui-infinite-image-browsing/discussions/366 - -## As a desktop application (without SD-webui and Python): -The executable version also supports ComfyUI/Fooocus/NovelAI. - -Download and install the program from the `releases` section on the right-hand side of the repository page. -If the antivirus detects a virus, it can be ignored as a false positive. There are two versions of the compiled version for Windows, with the pyinstaller version having a lower false positive rate. - -If you need to compile it yourself, please refer to https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.github/workflows/tauri_app_build.yml. - -## As a Library Usage: - -Use iframe to access IIB and use it as a file browser for your application. Refer to https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/vue/usage.md - - -# Preview - -image - -## Image Search - -During the first use, you need to click and wait for the index generation. For my case with 20,000 images, it took about 45 seconds (with an AMD 5600X CPU and PCIe SSD). For subsequent uses, it will check whether there are changes in the folder, and if so, it needs to regenerate the index. Usually, this process is very fast. - -Image search supports translation, see https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/39 for more detail. Feel free to share files for other languages to facilitate everyone's use. -image -image - -## Full Screen Preview (Side-by-Side Layout) -![11](https://github.com/zanllp/sd-webui-infinite-image-browsing/assets/25872019/ee941bfc-0c1b-4777-91df-115435cc8542) - -## Full Screen Preview - -image - -In full-screen preview mode, you can also view image information and perform operations on the context menu. It supports dragging, resizing and expanding/collapsing . - -https://user-images.githubusercontent.com/25872019/235327735-bfb50ea7-7682-4e50-b303-38159456e527.mp4 - -If you, like me, don't need to view the generation information, you can choose to simply minimize this panel, and all contextual operations will still be available. - -image - -## Image comparison - -![ezgif com-video-to-gif](https://github.com/zanllp/sd-webui-infinite-image-browsing/assets/25872019/4023317b-0b2d-41a3-8155-c4862eb43846) -## Transfer files between different tab panes. -https://github.com/zanllp/sd-webui-infinite-image-browsing/assets/25872019/e631e3c3-1cbf-49bc-8577-f2963a6c9e4d -### Right-click menu -image - -You can also trigger it by hovering your mouse over the icon in the top right corner. - -image - -### Walk mode - - -https://user-images.githubusercontent.com/25872019/230768207-daab786b-d4ab-489f-ba6a-e9656bd530b8.mp4 - - - - -### Dark mode - -image diff --git a/extensions/sd-webui-infinite-image-browsing/app.py b/extensions/sd-webui-infinite-image-browsing/app.py deleted file mode 100644 index 8088ceb638fd015bb382fb39635b4a023281be49..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/app.py +++ /dev/null @@ -1,299 +0,0 @@ -import codecs -from typing import List -from fastapi import FastAPI, Response -from fastapi.responses import FileResponse -import uvicorn -import os -from scripts.iib.api import infinite_image_browsing_api, index_html_path, DEFAULT_BASE -from scripts.iib.tool import ( - get_sd_webui_conf, - get_valid_img_dirs, - sd_img_dirs, - normalize_paths, -) -from scripts.iib.db.datamodel import DataBase, Image, ExtraPath -from scripts.iib.db.update_image_data import update_image_data -import argparse -from typing import Optional, Coroutine -import json - -tag = "\033[31m[warn]\033[0m" - -default_port = 8000 -default_host = "127.0.0.1" - -def get_all_img_dirs(sd_webui_config: str, relative_to_config: bool): - dirs = get_valid_img_dirs( - get_sd_webui_conf( - sd_webui_config=sd_webui_config, - sd_webui_path_relative_to_config=relative_to_config, - ) - ) - dirs += list(map(lambda x: x.path, ExtraPath.get_extra_paths(DataBase.get_conn()))) - return dirs - - -def sd_webui_paths_check(sd_webui_config: str, relative_to_config: bool): - conf = {} - with codecs.open(sd_webui_config, "r", "utf-8") as f: - conf = json.loads(f.read()) - if relative_to_config: - for dir in sd_img_dirs: - if not os.path.isabs(conf[dir]): - conf[dir] = os.path.normpath( - os.path.join(sd_webui_config, "../", conf[dir]) - ) - paths = [conf.get(key) for key in sd_img_dirs] - paths_check(paths) - - -def paths_check(paths): - for path in paths: - if not path or len(path.strip()) == 0: - continue - if os.path.isabs(path): - abs_path = path - else: - abs_path = os.path.normpath(os.path.join(os.getcwd(), path)) - if not os.path.exists(abs_path): - print(f"{tag} The path '{abs_path}' will be ignored (value: {path}).") - - -def do_update_image_index(sd_webui_config: str, relative_to_config=False): - dirs = get_all_img_dirs(sd_webui_config, relative_to_config) - if not len(dirs): - return print(f"{tag} no valid image directories, skipped") - conn = DataBase.get_conn() - update_image_data(dirs) - if Image.count(conn=conn) == 0: - return print(f"{tag} it appears that there is some issue") - print("update image index completed. ✨") - - -class AppUtils: - def __init__( - self, - sd_webui_config: Optional[str] = None, - update_image_index: bool = False, - extra_paths: List[str] = [], - sd_webui_path_relative_to_config=False, - allow_cors=False, - enable_shutdown=False, - sd_webui_dir: Optional[str] = None, - base: Optional[str] = None, - export_fe_fn=False, - **args: dict, - ): - """ - Parameter definitions can be found by running the `python app.py -h `command or by examining the setup_parser() function. - """ - self.sd_webui_config = sd_webui_config - self.update_image_index = update_image_index - self.extra_paths = extra_paths - self.sd_webui_path_relative_to_config = sd_webui_path_relative_to_config - self.allow_cors = allow_cors - self.enable_shutdown = enable_shutdown - self.sd_webui_dir = sd_webui_dir - if base and not base.startswith("/"): - base = "/" + base - self.base = base - self.export_fe_fn = export_fe_fn - if sd_webui_dir: - DataBase.path = os.path.join( - sd_webui_dir, "extensions/sd-webui-infinite-image-browsing/iib.db" - ) - self.sd_webui_config = os.path.join(sd_webui_dir, "config.json") - self.sd_webui_path_relative_to_config = True - - def set_params(self, *args, **kwargs) -> None: - """改变参数,与__init__的行为一致""" - self.__init__(*args, **kwargs) - - @staticmethod - def async_run( - app: FastAPI, port: int = default_port, host=default_host - ) -> Coroutine: - """ - 用于从异步运行的 FastAPI,在 Jupyter Notebook 环境中非常有用 - """ - # 不建议改成 async def,并且用 await 替换 return, - # 因为这样会失去对 server.serve() 的控制。 - config = uvicorn.Config(app, host=host, port=port) - server = uvicorn.Server(config) - return server.serve() - - def wrap_app(self, app: FastAPI) -> None: - """ - 为传递的app挂载上infinite_image_browsing后端 - """ - sd_webui_config = self.sd_webui_config - update_image_index = self.update_image_index - extra_paths = self.extra_paths - - if sd_webui_config: - sd_webui_paths_check(sd_webui_config, self.sd_webui_path_relative_to_config) - if update_image_index: - do_update_image_index( - sd_webui_config, self.sd_webui_path_relative_to_config - ) - paths_check(extra_paths) - - infinite_image_browsing_api( - app, - sd_webui_config=sd_webui_config, - extra_paths_cli=normalize_paths(extra_paths, os.getcwd()), - sd_webui_path_relative_to_config=self.sd_webui_path_relative_to_config, - allow_cors=self.allow_cors, - enable_shutdown=self.enable_shutdown, - launch_mode="server", - base=self.base, - export_fe_fn=self.export_fe_fn, - ) - - def get_root_browser_app(self) -> FastAPI: - """ - 获取首页挂载在"/"上的infinite_image_browsing FastAPI实例 - """ - app = FastAPI() - - # 用于在首页显示 - @app.get("/") - def index(): - if isinstance(self.base, str): - with open(index_html_path, "r", encoding="utf-8") as file: - content = file.read().replace(DEFAULT_BASE, self.base) - return Response(content=content, media_type="text/html") - return FileResponse(index_html_path) - - self.wrap_app(app) - return app - - -def setup_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - description="A fast and powerful image/video browser with infinite scrolling and advanced search capabilities. It also supports parsing/viewing image information generated by multiple AI software." - ) - parser.add_argument( - "--host", type=str, default=default_host, help="The host to use" - ) - parser.add_argument( - "--port", type=int, help="The port to use", default=default_port - ) - parser.add_argument( - "--sd_webui_config", type=str, default=None, help="The path to the config file" - ) - parser.add_argument( - "--update_image_index", action="store_true", help="Update the image index" - ) - parser.add_argument( - "--generate_video_cover", - action="store_true", - help="Pre-generate video cover images to speed up browsing.", - ) - parser.add_argument( - "--generate_image_cache", - action="store_true", - help="Pre-generate image cache to speed up browsing. By default, only the extra paths added by the user are processed, not the paths in sd_webui_config. If you need to process paths in sd_webui_config, you must use the --sd_webui_config and --sd_webui_path_relative_to_config parameters.", - ) - parser.add_argument( - "--generate_image_cache_size", - type=str, - default="512x512", - help="The size of the image cache to generate. Default is 512x512", - ) - parser.add_argument( - "--gen_cache_verbose", - action="store_true", - help="Verbose mode for cache generation.", - ) - parser.add_argument( - "--extra_paths", - nargs="+", - help="Extra paths to use, these paths will be added to the homepage but the images in these paths will not be indexed. They are only used for browsing. If you need to index them, please add them via the '+ Add' button on the homepage.", - default=[], - ) - parser.add_argument( - "--sd_webui_path_relative_to_config", - action="store_true", - help="Use the file path of the sd_webui_config file as the base for all relative paths provided within the sd_webui_config file.", - ) - parser.add_argument( - "--allow_cors", - action="store_true", - help="Allow Cross-Origin Resource Sharing (CORS) for the API.", - ) - parser.add_argument( - "--enable_shutdown", - action="store_true", - help="Enable the shutdown endpoint.", - ) - parser.add_argument( - "--sd_webui_dir", - type=str, - default=None, - help="The path to the sd_webui folder. When specified, the sd_webui's configuration will be used and the extension must be installed within the sd_webui. Data will be shared between the two.", - ) - parser.add_argument( - "--export_fe_fn", - default=True, - action="store_true", - help="Export front-end functions to enable external access through iframe.", - ) - parser.add_argument("--base", type=str, help="The base URL for the IIB Api.") - return parser - - -def launch_app( - port: int = default_port, host: str = default_host, *args, **kwargs: dict -) -> None: - """ - Launches the application on the specified port. - - Args: - **kwargs (dict): Optional keyword arguments that can be used to configure the application. - These can be viewed by running 'python app.py -h' or by checking the setup_parser() function. - """ - app_utils = AppUtils(*args, **kwargs) - app = app_utils.get_root_browser_app() - uvicorn.run(app, host=host, port=port) - - -async def async_launch_app( - port: int = default_port, host: str = default_host, *args, **kwargs: dict -) -> None: - """ - Asynchronously launches the application on the specified port. - - Args: - **kwargs (dict): Optional keyword arguments that can be used to configure the application. - These can be viewed by running 'python app.py -h' or by checking the setup_parser() function. - """ - app_utils = AppUtils(*args, **kwargs) - app = app_utils.get_root_browser_app() - await app_utils.async_run(app, host=host, port=port) - - -if __name__ == "__main__": - parser = setup_parser() - args = parser.parse_args() - args_dict = vars(args) - - if args_dict.get("generate_video_cover"): - from scripts.iib.video_cover_gen import generate_video_covers - - conn = DataBase.get_conn() - generate_video_covers( - dirs = map(lambda x: x.path, ExtraPath.get_extra_paths(conn)), - verbose=args.gen_cache_verbose, - ) - exit(0) - if args_dict.get("generate_image_cache"): - from scripts.iib.img_cache_gen import generate_image_cache - generate_image_cache( - dirs = get_all_img_dirs(args.sd_webui_config, args.sd_webui_path_relative_to_config), - size = args.generate_image_cache_size, - verbose = args.gen_cache_verbose - ) - exit(0) - - launch_app(**vars(args)) \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/install.py b/extensions/sd-webui-infinite-image-browsing/install.py deleted file mode 100644 index a0acdf9723dfcbdf7a5ad4bf0bc7a39b11a14b4b..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/install.py +++ /dev/null @@ -1,28 +0,0 @@ -import launch -import os -import pkg_resources - -req_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), "requirements.txt") - -def dist2package(dist: str): - return ({ - "python-dotenv": "dotenv", - "Pillow": "PIL", - "pillow-avif-plugin": "pillow_avif" - }).get(dist, dist) - -# copy from controlnet, thanks -with open(req_file) as file: - for package in file: - try: - package = package.strip() - if '==' in package: - package_name, package_version = package.split('==') - installed_version = pkg_resources.get_distribution(package_name).version - if installed_version != package_version: - launch.run_pip(f"install {package}", f"sd-webui-infinite-image-browsing requirement: changing {package_name} version from {installed_version} to {package_version}") - elif not launch.is_installed(dist2package(package)): - launch.run_pip(f"install {package}", f"sd-webui-infinite-image-browsing requirement: {package}") - except Exception as e: - print(e) - print(f'Warning: Failed to install {package}, something may not work.') diff --git a/extensions/sd-webui-infinite-image-browsing/javascript/index.js b/extensions/sd-webui-infinite-image-browsing/javascript/index.js deleted file mode 100644 index 0b5f8b6fa19145ac99de506aaa460ecbe6d4e67a..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/javascript/index.js +++ /dev/null @@ -1,186 +0,0 @@ -/* eslint-disable no-undef */ -Promise.resolve().then(async () => { - /** - * This is a file generated using `yarn build`. - * If you want to make changes, please modify `index.tpl.js` and run the command to generate it again. - */ - const html = ` - - - - - - - - Infinite Image Browsing - - - - - -
- It seems to have failed to load. You can try refreshing the page.
If that doesn't work, click on
FAQ for help
- - - - -`.replace(/\/infinite_image_browsing/g, (window.location.pathname + '/infinite_image_browsing').replace(/\/\//g, '/')) - let containerSelector = '#infinite_image_browsing_container_wrapper' - let shouldMaximize = localStorage.getItem('iib://disable_maximize') !== 'true' - - try { - containerSelector = __iib_root_container__ - shouldMaximize = __iib_should_maximize__ - } catch (e) { /* empty */ } - - const delay = (timeout = 0) => new Promise((resolve) => setTimeout(resolve, timeout)) - const asyncCheck = async (getter, checkSize = 100, timeout = 1000) => { - let target = getter() - let num = 0 - while (checkSize * num < timeout && (target === undefined || target === null)) { - await delay(checkSize) - target = getter() - num++ - } - return target - } - - const getTabIdxById = (id) => { - const tabList = gradioApp().querySelectorAll('#tabs > .tabitem[id^=tab_]') - return Array.from(tabList).findIndex((v) => v.id.includes(id)) - } - - const switch2targetTab = (idx) => { - try { - gradioApp().querySelector('#tabs').querySelectorAll('button')[idx].click() - } catch (error) { - console.error(error) - } - } - - const isLobe = () => { - try { - return !!gradioApp().querySelector('[alt*="lobehub"]') - } catch (error) { - return false - } - } - - /** - * @type {HTMLDivElement} - */ - const wrap = await asyncCheck(() => gradioApp().querySelector(containerSelector), 500, Infinity) - wrap.childNodes.forEach((v) => wrap.removeChild(v)) - const iframe = document.createElement('iframe') - iframe.srcdoc = html - iframe.style = 'width: 100%;height:100vh' - wrap.appendChild(iframe) - - if (shouldMaximize) { - onUiTabChange(() => { - const el = get_uiCurrentTabContent() - if (el?.id.includes('infinite-image-browsing')) { - try { - const iibTop = gradioApp().querySelector('#iib_top') - if (!iibTop) { - throw new Error('element \'#iib_top\' is not found') - } - const topRect = iibTop.getBoundingClientRect() - wrap.style = ` - top:${Math.max(isLobe() ? 32 : 128, topRect.top) - 10}px; - position: fixed; - left: 10px; - right: 10px; - z-index: 100; - width: unset; - bottom: 10px;` - iframe.style = 'width: 100%;height:100%' - } catch (error) { - console.error('Error mounting IIB. Running fallback.', error) - wrap.style = '' - iframe.style = 'width: 100%;height:100vh' - } - } - }) - } - - const IIB_container_id = [Date.now(), Math.random()].join() - window.IIB_container_id = IIB_container_id - const imgTransferBus = new BroadcastChannel('iib-image-transfer-bus') - imgTransferBus.addEventListener('message', async (ev) => { - const data = ev.data - if ( - typeof data !== 'object' || - (typeof data.IIB_container_id === 'string' && data.IIB_container_id !== IIB_container_id) - ) { - return - } - console.log('iib-message:', data) - const appDoc = gradioApp() - switch (data.event) { - case 'click_hidden_button': { - const btn = gradioApp().querySelector(`#${data.btnEleId}`) - btn.click() - break - } - case 'send_to_control_net': { - data.type === 'img2img' ? window.switch_to_img2img() : window.switch_to_txt2img() - await delay(100) - const cn = appDoc.querySelector(`#${data.type}_controlnet`) - const wrap = cn.querySelector('.label-wrap') - if (!wrap.className.includes('open')) { - wrap.click() - await delay(100) - } - wrap.scrollIntoView() - wrap.dispatchEvent(await createPasteEvent(data.url)) - break - } - case 'send_to_outpaint': { - switch2targetTab(getTabIdxById('openOutpaint')) - await delay(100) - const iframe = appDoc.querySelector('#openoutpaint-iframe') - openoutpaint_send_image(await imgUrl2DataUrl(data.url)) - iframe.contentWindow.postMessage({ - key: appDoc.querySelector('#openoutpaint-key').value, - type: 'openoutpaint/set-prompt', - prompt: data.prompt, - negPrompt: data.negPrompt - }) - break - } - } - - function imgUrl2DataUrl(imgUrl) { - return new Promise((resolve, reject) => { - fetch(imgUrl) - .then((response) => response.blob()) - .then((blob) => { - const reader = new FileReader() - reader.readAsDataURL(blob) - reader.onloadend = function () { - const dataURL = reader.result - resolve(dataURL) - } - }) - .catch((error) => reject(error)) - }) - } - - async function createPasteEvent(imgUrl) { - const response = await fetch(imgUrl) - const imageBlob = await response.blob() - const imageFile = new File([imageBlob], 'image.jpg', { - type: imageBlob.type, - lastModified: Date.now() - }) - const dataTransfer = new DataTransfer() - dataTransfer.items.add(imageFile) - const pasteEvent = new ClipboardEvent('paste', { - clipboardData: dataTransfer, - bubbles: true - }) - return pasteEvent - } - }) -}) diff --git a/extensions/sd-webui-infinite-image-browsing/migrate.py b/extensions/sd-webui-infinite-image-browsing/migrate.py deleted file mode 100644 index 8bf092664d46023cc7ec0a039b6e34ba512d31a0..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/migrate.py +++ /dev/null @@ -1,84 +0,0 @@ -from contextlib import closing -import argparse -from scripts.iib.db.datamodel import DataBase -import os - -import shutil - - -def replace_path(old_base, new_base): - """ - Custom SQL function to replace part of a path. - - Args: - old_base (str): The base part of the path to be replaced. - new_base (str): The new base part of the path. - - Returns: - str: Updated path. - """ - - def replace_func(path): - if path.startswith(old_base): - return new_base + path[len(old_base) :] - else: - return path - - return replace_func - - -def update_paths(conn, table_name, old_base): - """ - Update paths in a specified SQLite table using a custom SQL function. - - Args: - db_path (str): Path to the SQLite database file. - table_name (str): Name of the table containing the paths. - - Returns: - None - """ - with closing(conn.cursor()) as cur: - # Use the custom function in an UPDATE statement - cur.execute( - f"UPDATE {table_name} SET path = replace_path(path) WHERE path LIKE ?", - (f"{old_base}%",), - ) - - # Commit the changes and close the connection - conn.commit() - - -def setup_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - description="Script to migrate paths in an IIB SQLite database from an old directory structure to a new one." - ) - parser.add_argument( - "--db_path", type=str, help="Path to the input IIB QLite database file to be migrated. Default value is 'iib.db'.", default="iib.db" - ) - parser.add_argument( - "--old_dir", type=str, help="Old base directory to be replaced in the paths.", required=True - ) - parser.add_argument( - "--new_dir", type=str, help="New base directory to replace the old base directory in the paths.", required=True - ) - return parser - - -if __name__ == "__main__": - parser = setup_parser() - args = parser.parse_args() - old_base = args.old_dir - new_base = args.new_dir - db_path = args.db_path - db_temp_path = "db_migrate_temp.db" - shutil.copy2(db_path, db_temp_path) - DataBase.path = os.path.normpath(os.path.join(os.getcwd(), db_temp_path)) - conn = DataBase.get_conn() - conn.create_function("replace_path", 1, replace_path(old_base, new_base)) - update_paths(conn, "image", old_base) - update_paths(conn, "extra_path", old_base) - update_paths(conn, "folders", old_base) - shutil.copy(db_temp_path, "iib.db") - # os.remove(db_temp_path) - print("Database migration completed successfully.") diff --git a/extensions/sd-webui-infinite-image-browsing/plugins/.gitkeep b/extensions/sd-webui-infinite-image-browsing/plugins/.gitkeep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/extensions/sd-webui-infinite-image-browsing/requirements.txt b/extensions/sd-webui-infinite-image-browsing/requirements.txt deleted file mode 100644 index ab7e64fa30ec44a209e81431a2be61a89de1fbc8..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -fastapi -uvicorn -piexif -python-dotenv -Pillow -pillow-avif-plugin -imageio -av -lxml \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/api.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/api.py deleted file mode 100644 index 575185e446031bfa1668e2f212b7875932e7433c..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/api.py +++ /dev/null @@ -1,1223 +0,0 @@ -import base64 -from datetime import datetime, timedelta -import io -import os -from pathlib import Path -import shutil -import sqlite3 - - -from scripts.iib.dir_cover_cache import get_top_4_media_info -from scripts.iib.tool import ( - get_created_date_by_stat, - get_video_type, - human_readable_size, - is_valid_media_path, - is_media_file, - get_cache_dir, - get_formatted_date, - is_win, - cwd, - locale, - enable_access_control, - get_windows_drives, - get_sd_webui_conf, - get_valid_img_dirs, - open_folder, - get_img_geninfo_txt_path, - unique_by, - create_zip_file, - normalize_paths, - to_abs_path, - is_secret_key_required, - open_file_with_default_app, - is_exe_ver, - backup_db_file, - get_current_commit_hash, - get_current_tag, - get_file_info_by_path, - get_data_file_path -) -from fastapi import FastAPI, HTTPException, Header, Response -from fastapi.staticfiles import StaticFiles -import asyncio -from typing import List, Optional -from pydantic import BaseModel -from fastapi.responses import FileResponse, JSONResponse, StreamingResponse -from PIL import Image -from fastapi import Depends, FastAPI, HTTPException, Request -from fastapi.middleware.cors import CORSMiddleware -import hashlib -from scripts.iib.db.datamodel import ( - DataBase, - ExtraPathType, - Image as DbImg, - Tag, - Folder, - ImageTag, - ExtraPath, - FileInfoDict, - Cursor, - GlobalSetting -) -from scripts.iib.db.update_image_data import update_image_data, rebuild_image_index, add_image_data_single -from scripts.iib.logger import logger -from scripts.iib.seq import seq -import urllib.parse -from scripts.iib.fastapi_video import range_requests_response, close_video_file_reader -from scripts.iib.parsers.index import parse_image_info -import scripts.iib.plugin - -try: - import pillow_avif -except Exception as e: - logger.error(e) - - -index_html_path = get_data_file_path("vue/dist/index.html") if is_exe_ver else os.path.join(cwd, "vue/dist/index.html") # 在app.py也被使用 - - -send_img_path = {"value": ""} -mem = {"secret_key_hash": None, "extra_paths": [], "all_scanned_paths": []} -secret_key = os.getenv("IIB_SECRET_KEY") -if secret_key: - print("Secret key loaded successfully. ") - -WRITEABLE_PERMISSIONS = ["read-write", "write-only"] - -is_api_writeable = not (os.getenv("IIB_ACCESS_CONTROL_PERMISSION")) or ( - os.getenv("IIB_ACCESS_CONTROL_PERMISSION") in WRITEABLE_PERMISSIONS -) -IIB_DEBUG=False - - -async def write_permission_required(): - if not is_api_writeable: - error_msg = ( - "User is not authorized to perform this action. Required permission: " - + ", ".join(WRITEABLE_PERMISSIONS) - ) - raise HTTPException(status_code=403, detail=error_msg) - - -async def verify_secret(request: Request): - if not secret_key: - if is_secret_key_required: - raise HTTPException(status_code=400, detail={"type": "secret_key_required"}) - return - token = request.cookies.get("IIB_S") - if not token: - raise HTTPException(status_code=401, detail="Unauthorized") - if not mem["secret_key_hash"]: - mem["secret_key_hash"] = hashlib.sha256( - (secret_key + "_ciallo").encode("utf-8") - ).hexdigest() - if mem["secret_key_hash"] != token: - raise HTTPException(status_code=401, detail="Unauthorized") - -DEFAULT_BASE = "/infinite_image_browsing" -def infinite_image_browsing_api(app: FastAPI, **kwargs): - backup_db_file(DataBase.get_db_file_path()) - api_base = kwargs.get("base") if isinstance(kwargs.get("base"), str) else DEFAULT_BASE - fe_public_path = kwargs.get("fe_public_path") if isinstance(kwargs.get("fe_public_path"), str) else api_base - cache_base_dir = get_cache_dir() - - # print(f"IIB api_base:{api_base} fe_public_path:{fe_public_path}") - if IIB_DEBUG or is_exe_ver: - @app.exception_handler(Exception) - async def exception_handler(request: Request, exc: Exception): - error_msg = f"An exception occurred while processing {request.method} {request.url}: {exc}" - logger.error(error_msg) - - return JSONResponse( - status_code=500, content={"message": "Internal Server Error"} - ) - @app.middleware("http") - async def log_requests(request: Request, call_next): - path = request.url.path - if ( - path.find("infinite_image_browsing/image-thumbnail") == -1 - and path.find("infinite_image_browsing/file") == -1 - and path.find("infinite_image_browsing/fe-static") == -1 - ): - logger.info(f"Received request: {request.method} {request.url}") - if request.query_params: - logger.debug(f"Query Params: {request.query_params}") - if request.path_params: - logger.debug(f"Path Params: {request.path_params}") - - try: - return await call_next(request) - except HTTPException as http_exc: - logger.warning( - f"HTTPException occurred while processing {request.method} {request.url}: {http_exc}" - ) - raise http_exc - except Exception as exc: - logger.error( - f"An exception occurred while processing {request.method} {request.url}: {exc}" - ) - - - if kwargs.get("allow_cors"): - app.add_middleware( - CORSMiddleware, - allow_origin_regex="^[\w./:-]+$", - allow_methods=["*"], - allow_headers=["*"], - allow_credentials=True, - ) - - def get_img_search_dirs(): - try: - return get_valid_img_dirs(get_sd_webui_conf(**kwargs)) - except Exception as e: - print(e) - return [] - - def update_all_scanned_paths(): - allowed_paths = os.getenv("IIB_ACCESS_CONTROL_ALLOWED_PATHS") - if allowed_paths: - sd_webui_conf = get_sd_webui_conf(**kwargs) - path_config_key_map = { - "save": "outdir_save", - "extra": "outdir_extras_samples", - "txt2img": "outdir_txt2img_samples", - "img2img": "outdir_img2img_samples", - } - - def path_map(path: str): - path = path.strip() - if path in path_config_key_map: - return sd_webui_conf.get(path_config_key_map.get(path)) - return path - - paths = normalize_paths( - seq(allowed_paths.split(",")) - .map(path_map) - .filter(lambda x: x) - .to_list(), - os.getcwd() - ) - else: - paths = ( - get_img_search_dirs() - + mem["extra_paths"] - + kwargs.get("extra_paths_cli", []) - ) - mem["all_scanned_paths"] = unique_by(paths) - - update_all_scanned_paths() - - def update_extra_paths(conn: sqlite3.Connection): - r = ExtraPath.get_extra_paths(conn) - mem["extra_paths"] = [x.path for x in r] - update_all_scanned_paths() - - def safe_commonpath(seq): - try: - return os.path.commonpath(seq) - except Exception as e: - # logger.error(e) - return "" - - def is_path_under_parents(path, parent_paths: List[str] = []): - """ - Check if the given path is under one of the specified parent paths. - :param path: The path to check. - :param parent_paths: By default, all scanned paths are included in the list of parent paths - :return: True if the path is under one of the parent paths, False otherwise. - """ - try: - if not parent_paths: - parent_paths = mem["all_scanned_paths"] - path = to_abs_path(path) - for parent_path in parent_paths: - if safe_commonpath([path, parent_path]) == parent_path: - return True - except Exception as e: - logger.error(e) - return False - - def is_path_trusted(path: str): - if not enable_access_control: - return True - try: - parent_paths = mem["all_scanned_paths"] - path = to_abs_path(path) - for parent_path in parent_paths: - if len(path) <= len(parent_path): - if parent_path.startswith(path): - return True - else: - if path.startswith(parent_path): - return True - except: - pass - return False - - def check_path_trust(path: str): - if not is_path_trusted(path): - raise HTTPException(status_code=403) - - def filter_allowed_files(files: List[FileInfoDict]): - return [x for x in files if is_path_trusted(x["fullpath"])] - - - - class PathsReq(BaseModel): - paths: List[str] - - @app.get(f"{api_base}/hello") - async def greeting(): - return "hello" - - @app.get(f"{api_base}/global_setting", dependencies=[Depends(verify_secret)]) - async def global_setting(): - all_custom_tags = [] - - extra_paths = [] - app_fe_setting = {} - try: - conn = DataBase.get_conn() - all_custom_tags = Tag.get_all_custom_tag(conn) - extra_paths = ExtraPath.get_extra_paths(conn) + [ - ExtraPath(path, ExtraPathType.cli_only.value) - for path in kwargs.get("extra_paths_cli", []) - ] - update_extra_paths(conn) - app_fe_setting = GlobalSetting.get_all_settings(conn) - except Exception as e: - print(e) - return { - "global_setting": get_sd_webui_conf(**kwargs), - "cwd": cwd, - "is_win": is_win, - "home": os.environ.get("USERPROFILE") if is_win else os.environ.get("HOME"), - "sd_cwd": os.getcwd(), - "all_custom_tags": all_custom_tags, - "extra_paths": extra_paths, - "enable_access_control": enable_access_control, - "launch_mode": kwargs.get("launch_mode", "sd"), - "export_fe_fn": bool(kwargs.get("export_fe_fn")), - "app_fe_setting": app_fe_setting, - "is_readonly": not is_api_writeable, - } - - - class AppFeSettingReq(BaseModel): - name: str - value: str - - @app.post(f"{api_base}/app_fe_setting", dependencies=[Depends(verify_secret), Depends(write_permission_required)]) - async def app_fe_setting(req: AppFeSettingReq): - conn = DataBase.get_conn() - GlobalSetting.save_setting(conn, req.name, req.value) - - class AppFeSettingDelReq(BaseModel): - name: str - - @app.delete(f"{api_base}/app_fe_setting", dependencies=[Depends(verify_secret), Depends(write_permission_required)]) - async def remove_app_fe_setting(req: AppFeSettingDelReq): - conn = DataBase.get_conn() - GlobalSetting.remove_setting(conn, req.name) - - @app.get(f"{api_base}/version", dependencies=[Depends(verify_secret)]) - async def get_version(): - return { - "hash": get_current_commit_hash(), - "tag": get_current_tag(), - } - - class DeleteFilesReq(BaseModel): - file_paths: List[str] - - @app.post( - api_base + "/delete_files", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def delete_files(req: DeleteFilesReq): - conn = DataBase.get_conn() - for path in req.file_paths: - check_path_trust(path) - try: - if os.path.isdir(path): - if len(os.listdir(path)): - error_msg = ( - "When a folder is not empty, it is not allowed to be deleted." - if locale == "en" - else "文件夹不为空时不允许删除。" - ) - raise HTTPException(400, detail=error_msg) - shutil.rmtree(path) - else: - close_video_file_reader(path) - os.remove(path) - txt_path = get_img_geninfo_txt_path(path) - if txt_path: - os.remove(txt_path) - img = DbImg.get(conn, os.path.normpath(path)) - if img: - logger.info("delete file: %s", path) - ImageTag.remove(conn, img.id) - DbImg.remove(conn, img.id) - except OSError as e: - # 处理删除失败的情况 - logger.error("delete failed") - error_msg = ( - f"Error deleting file {path}: {e}" - if locale == "en" - else f"删除文件 {path} 时出错:{e}" - ) - raise HTTPException(400, detail=error_msg) - - class CreateFoldersReq(BaseModel): - dest_folder: str - - @app.post( - api_base + "/mkdirs", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def create_folders(req: CreateFoldersReq): - if enable_access_control: - if not is_path_under_parents(req.dest_folder): - raise HTTPException(status_code=403) - os.makedirs(req.dest_folder, exist_ok=True) - - class MoveFilesReq(BaseModel): - file_paths: List[str] - dest: str - create_dest_folder: Optional[bool] = False - - @app.post( - api_base + "/copy_files", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def copy_files(req: MoveFilesReq): - for path in req.file_paths: - check_path_trust(path) - try: - shutil.copy(path, req.dest) - txt_path = get_img_geninfo_txt_path(path) - if txt_path: - shutil.copy(txt_path, req.dest) - except OSError as e: - error_msg = ( - f"Error copying file {path} to {req.dest}: {e}" - if locale == "en" - else f"复制文件 {path} 到 {req.dest} 时出错:{e}" - ) - raise HTTPException(400, detail=error_msg) - - @app.post( - api_base + "/move_files", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def move_files(req: MoveFilesReq): - if req.create_dest_folder: - os.makedirs(req.dest, exist_ok=True) - elif not os.path.isdir(req.dest): - error_msg = ( - f"Destination folder {req.dest} does not exist." - if locale == "en" - else f"目标文件夹 {req.dest} 不存在。" - ) - raise HTTPException(400, detail=error_msg) - - conn = DataBase.get_conn() - - def move_file_with_geninfo(path: str, dest: str): - path = os.path.normpath(path) - txt_path = get_img_geninfo_txt_path(path) - if txt_path: - shutil.move(txt_path, dest) - img = DbImg.get(conn, path) - new_path = os.path.normpath(os.path.join(dest, os.path.basename(path))) - if img: - logger.info(f"update file path: {path} -> {new_path} in db") - img.update_path(conn, new_path, force=True) - - for path in req.file_paths: - check_path_trust(path) - path = os.path.normpath(path) - base_dir = os.path.dirname(path) - try: - files = list(os.walk(path)) - is_dir = os.path.isdir(path) - shutil.move(path, req.dest) - if is_dir: - for root, _, files in files: - relative_path = root[len(base_dir) + 1 :] - dest = os.path.join(req.dest, relative_path) - for file in files: - is_valid = is_media_file(file) - if is_valid: - move_file_with_geninfo(os.path.join(root, file), dest) - else: - move_file_with_geninfo(path, req.dest) - - conn.commit() - except OSError as e: - - conn.rollback() - error_msg = ( - f"Error moving file {path} to {req.dest}: {e}" - if locale == "en" - else f"移动文件 {path} 到 {req.dest} 时出错:{e}" - ) - raise HTTPException(400, detail=error_msg) - - @app.get(api_base + "/files", dependencies=[Depends(verify_secret)]) - async def get_target_folder_files(folder_path: str): - files: List[FileInfoDict] = [] - try: - if is_win and folder_path == "/": - for item in get_windows_drives(): - files.append( - {"type": "dir", "size": "-", "name": item, "fullpath": item} - ) - else: - if not os.path.exists(folder_path): - return {"files": []} - folder_path = to_abs_path(folder_path) - check_path_trust(folder_path) - folder_listing: List[os.DirEntry] = os.scandir(folder_path) - is_under_scanned_path = is_path_under_parents(folder_path) - for item in folder_listing: - if not os.path.exists(item.path): - continue - fullpath = os.path.normpath(item.path) - name = os.path.basename(item.path) - stat = item.stat() - date = get_formatted_date(stat.st_mtime) - created_time = get_created_date_by_stat(stat) - if item.is_file(): - bytes = stat.st_size - size = human_readable_size(bytes) - files.append( - { - "type": "file", - "date": date, - "size": size, - "name": name, - "bytes": bytes, - "created_time": created_time, - "fullpath": fullpath, - "is_under_scanned_path": is_under_scanned_path, - } - ) - elif item.is_dir(): - files.append( - { - "type": "dir", - "date": date, - "created_time": created_time, - "size": "-", - "name": name, - "is_under_scanned_path": is_under_scanned_path, - "fullpath": fullpath, - } - ) - except Exception as e: - # logger.error(e) - raise HTTPException(status_code=400, detail=str(e)) - - return {"files": filter_allowed_files(files)} - - - @app.post(api_base + "/batch_get_files_info", dependencies=[Depends(verify_secret)]) - async def batch_get_files_info(req: PathsReq): - res = {} - for path in req.paths: - check_path_trust(path) - res[path] = get_file_info_by_path(path) - return res - - @app.get(api_base + "/image-thumbnail", dependencies=[Depends(verify_secret)]) - async def thumbnail(path: str, t: str, size: str = "256x256"): - check_path_trust(path) - if not cache_base_dir: - return - # 生成缓存文件的路径 - hash_dir = hashlib.md5((path + t).encode("utf-8")).hexdigest() - hash = hash_dir + size - cache_dir = os.path.join(cache_base_dir, "iib_cache", hash_dir) - cache_path = os.path.join(cache_dir, f"{size}.webp") - - # 如果缓存文件存在,则直接返回该文件 - if os.path.exists(cache_path): - return FileResponse( - cache_path, - media_type="image/webp", - headers={"Cache-Control": "max-age=31536000", "ETag": hash}, - ) - - - # 如果小于64KB,直接返回原图 - if os.path.getsize(path) < 64 * 1024: - return FileResponse( - path, - media_type="image/" + path.split(".")[-1], - headers={"Cache-Control": "max-age=31536000", "ETag": hash}, - ) - - - # 如果缓存文件不存在,则生成缩略图并保存 - with Image.open(path) as img: - w, h = size.split("x") - img.thumbnail((int(w), int(h))) - os.makedirs(cache_dir, exist_ok=True) - img.save(cache_path, "webp") - - # 返回缓存文件 - return FileResponse( - cache_path, - media_type="image/webp", - headers={"Cache-Control": "max-age=31536000", "ETag": hash}, - ) - - @app.get(api_base + "/file", dependencies=[Depends(verify_secret)]) - async def get_file(path: str, t: str, disposition: Optional[str] = None): - filename = path - import mimetypes - - check_path_trust(path) - if not os.path.exists(filename): - raise HTTPException(status_code=404) - if not os.path.isfile(filename): - raise HTTPException(status_code=400, detail=f"{filename} is not a file") - # 根据文件后缀名获取媒体类型 - media_type, _ = mimetypes.guess_type(filename) - headers = {} - if disposition: - encoded_filename = urllib.parse.quote(disposition.encode('utf-8')) - headers['Content-Disposition'] = f"attachment; filename*=UTF-8''{encoded_filename}" - - if is_path_under_parents(filename) and is_valid_media_path( - filename - ): # 认为永远不变,不要协商缓存了试试 - headers[ - "Cache-Control" - ] = "public, max-age=31536000" # 针对同样名字文件但实际上不同内容的文件要求必须传入创建时间来避免浏览器缓存 - headers["Expires"] = (datetime.now() + timedelta(days=365)).strftime( - "%a, %d %b %Y %H:%M:%S GMT" - ) - - return FileResponse( - filename, - media_type=media_type, - headers=headers, - ) - - @app.get(api_base + "/stream_video", dependencies=[Depends(verify_secret)]) - async def stream_video(path: str, request: Request): - check_path_trust(path) - import mimetypes - media_type, _ = mimetypes.guess_type(path) - return range_requests_response( - request, file_path=path, content_type=media_type - ) - - @app.get(api_base + "/video_cover", dependencies=[Depends(verify_secret)]) - async def video_cover(path: str, mt: str): - check_path_trust(path) - if not cache_base_dir: - return - - if not os.path.exists(path): - raise HTTPException(status_code=404) - if not os.path.isfile(path) and get_video_type(path): - raise HTTPException(status_code=400, detail=f"{path} is not a video file") - # 生成缓存文件的路径 - hash_dir = hashlib.md5((path + mt).encode("utf-8")).hexdigest() - hash = hash_dir - cache_dir = os.path.join(cache_base_dir, "iib_cache", "video_cover", hash_dir) - cache_path = os.path.join(cache_dir, "cover.webp") - # 如果缓存文件存在,则直接返回该文件 - if os.path.exists(cache_path): - return FileResponse( - cache_path, - media_type="image/webp", - headers={ - "Cache-Control": "no-store", - }, - ) - # 如果缓存文件不存在,则生成缩略图并保存 - - import imageio.v3 as iio - frame = iio.imread( - path, - index=16, - plugin="pyav", - ) - - os.makedirs(cache_dir, exist_ok=True) - iio.imwrite(cache_path,frame, extension=".webp") - - # 返回缓存文件 - return FileResponse( - cache_path, - media_type="image/webp", - headers={ - "Cache-Control": "no-store", - }, - ) - - class SetTargetFrameAsCoverReq(BaseModel): - base64_img: str - path: str - updated_time: str - - def save_base64_image(base64_str, file_path): - if base64_str.startswith('data:image'): - base64_str = base64_str.split(',')[1] - image_data = base64.b64decode(base64_str) - with open(file_path, 'wb') as file: - file.write(image_data) - - @app.post(api_base+ "/set_target_frame_as_video_cover", dependencies=[Depends(verify_secret), Depends(write_permission_required)]) - async def set_target_frame_as_video_cover(req: SetTargetFrameAsCoverReq): - hash_dir = hashlib.md5((req.path + req.updated_time).encode("utf-8")).hexdigest() - hash = hash_dir - cache_dir = os.path.join(cache_base_dir, "iib_cache", "video_cover", hash_dir) - cache_path = os.path.join(cache_dir, "cover.webp") - - os.makedirs(cache_dir, exist_ok=True) - - save_base64_image(req.base64_img, cache_path) - return FileResponse( - cache_path, - media_type="image/webp", - headers={"ETag": hash}, - ) - - @app.post(api_base + "/send_img_path", dependencies=[Depends(verify_secret)]) - async def api_set_send_img_path(path: str): - send_img_path["value"] = path - - # 等待图片信息生成完成 - @app.get(api_base + "/gen_info_completed", dependencies=[Depends(verify_secret)]) - async def api_set_send_img_path(): - for _ in range(30): # timeout 3s - if send_img_path["value"] == "": # 等待setup里面生成完成 - return True - v = send_img_path["value"] - # is_dev and logger.info("gen_info_completed %s %s", _, v) - await asyncio.sleep(0.1) - return send_img_path["value"] == "" - - @app.get(api_base + "/image_geninfo", dependencies=[Depends(verify_secret)]) - async def image_geninfo(path: str): - return parse_image_info(path).raw_info - - class GeninfoBatchReq(BaseModel): - paths: List[str] - - @app.post(api_base + "/image_geninfo_batch", dependencies=[Depends(verify_secret)]) - async def image_geninfo_batch(req: GeninfoBatchReq): - res = {} - conn = DataBase.get_conn() - for path in req.paths: - try: - img = DbImg.get(conn, path) - if img: - res[path] = img.exif - else: - res[path] = parse_image_info(path).raw_info - except Exception as e: - logger.error(e, stack_info=True) - return res - - - class CheckPathExistsReq(BaseModel): - paths: List[str] - - @app.post(api_base + "/check_path_exists", dependencies=[Depends(verify_secret)]) - async def check_path_exists(req: CheckPathExistsReq): - update_all_scanned_paths() - res = {} - for path in req.paths: - res[path] = os.path.exists(path) and is_path_trusted(path) - return res - - @app.get(api_base) - def index_bd(): - if fe_public_path: - with open(index_html_path, "r", encoding="utf-8") as file: - content = file.read().replace(DEFAULT_BASE, fe_public_path) - return Response(content=content, media_type="text/html") - return FileResponse(index_html_path) - - static_dir = get_data_file_path("vue/dist") if is_exe_ver else f"{cwd}/vue/dist" - @app.get(api_base + "/fe-static/{file_path:path}") - async def serve_static_file(file_path: str): - file_full_path = f"{static_dir}/{file_path}" - if file_path.endswith(".js"): - with open(file_full_path, "r", encoding="utf-8") as file: - content = file.read().replace(DEFAULT_BASE, fe_public_path) - return Response(content=content, media_type="text/javascript") - else: - return FileResponse(file_full_path) - - class OpenFolderReq(BaseModel): - path: str - - @app.post( - api_base + "/open_folder", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - def open_folder_using_explore(req: OpenFolderReq): - if not is_path_trusted(req.path): - raise HTTPException(status_code=403) - open_folder(*os.path.split(req.path)) - - @app.post(api_base + "/shutdown") - async def shutdown_app(): - # This API endpoint is mainly used as a sidecar in Tauri applications to shut down the application - if not kwargs.get("enable_shutdown"): - raise HTTPException(status_code=403, detail="Shutdown is disabled.") - os.kill(os.getpid(), 9) - return {"message": "Application is shutting down."} - - - class PackReq(BaseModel): - paths: List[str] - compress: bool - pack_only: bool - - - @app.post( - api_base + "/zip", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - def zip_files(req: PackReq): - for path in req.paths: - check_path_trust(path) - if not os.path.isfile(path): - raise HTTPException(400, "The corresponding path must be a file.") - now = datetime.now() - timestamp = now.strftime("%Y-%m-%d-%H-%M-%S") - zip_temp_dir = os.path.join(cwd, "zip_temp") - os.makedirs(zip_temp_dir, exist_ok=True) - file_path = os.path.join(zip_temp_dir, f"iib_batch_download_{timestamp}.zip") - create_zip_file(req.paths, file_path, req.compress) - if not req.pack_only: - return FileResponse(file_path, media_type="application/zip") - - @app.post( - api_base + "/open_with_default_app", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - def open_target_file_withDefault_app(req: OpenFolderReq): - check_path_trust(req.path) - open_file_with_default_app(req.path) - - - @app.post( - api_base + "/batch_top_4_media_info", - dependencies=[Depends(verify_secret)], - ) - def batch_get_top_4_media_cover_info(req: PathsReq): - for path in req.paths: - check_path_trust(path) - res = {} - for path in req.paths: - res[path] = get_top_4_media_info(path) - return res - - db_api_base = api_base + "/db" - - @app.get(db_api_base + "/basic_info", dependencies=[Depends(verify_secret)]) - async def get_db_basic_info(): - conn = DataBase.get_conn() - img_count = DbImg.count(conn) - tags = Tag.get_all(conn) - expired_dirs = Folder.get_expired_dirs(conn) - return { - "img_count": img_count, - "tags": tags, - "expired": len(expired_dirs) != 0, - "expired_dirs": expired_dirs, - } - - - - - @app.get(db_api_base + "/random_images", dependencies=[Depends(verify_secret)]) - async def random_image(): - conn = DataBase.get_conn() - imgs = DbImg.get_random_images(conn, 128) - return filter_allowed_files([x.to_file_info() for x in imgs]) - - @app.get(db_api_base + "/expired_dirs", dependencies=[Depends(verify_secret)]) - async def get_db_expired(): - conn = DataBase.get_conn() - expired_dirs = Folder.get_expired_dirs(conn) - return { - "expired": len(expired_dirs) != 0, - "expired_dirs": expired_dirs, - } - - @app.post( - db_api_base + "/update_image_data", - dependencies=[Depends(verify_secret)], - ) - async def update_image_db_data(): - try: - DataBase._initing = True - conn = DataBase.get_conn() - img_count = DbImg.count(conn) - update_extra_paths(conn) - dirs = ( - get_img_search_dirs() - if img_count == 0 - else Folder.get_expired_dirs(conn) - ) + mem["extra_paths"] - - update_image_data(dirs) - finally: - DataBase._initing = False - - class SearchBySubstrReq(BaseModel): - surstr: str - cursor: str - regexp: str - folder_paths: List[str] = None - size: Optional[int] = 200 - path_only: Optional[bool] = False - - @app.post(db_api_base + "/search_by_substr", dependencies=[Depends(verify_secret)]) - async def search_by_substr(req: SearchBySubstrReq): - if IIB_DEBUG: - logger.info(req) - conn = DataBase.get_conn() - folder_paths=normalize_paths(req.folder_paths, os.getcwd()) - if(not folder_paths and req.folder_paths): - return { "files": [], "cursor": Cursor(has_next=False) } - imgs, next_cursor = DbImg.find_by_substring( - conn=conn, - substring=req.surstr, - cursor=req.cursor, - limit=req.size, - regexp=req.regexp, - folder_paths=folder_paths, - path_only=req.path_only - ) - return { - "files": filter_allowed_files([x.to_file_info() for x in imgs]), - "cursor": next_cursor - } - - class MatchImagesByTagsReq(BaseModel): - and_tags: List[int] - or_tags: List[int] - not_tags: List[int] - cursor: str - folder_paths: List[str] = None - size: Optional[int] = 200 - - @app.post(db_api_base + "/match_images_by_tags", dependencies=[Depends(verify_secret)]) - async def match_image_by_tags(req: MatchImagesByTagsReq): - if IIB_DEBUG: - logger.info(req) - conn = DataBase.get_conn() - folder_paths=normalize_paths(req.folder_paths, os.getcwd()) - if(not folder_paths and req.folder_paths): - return { "files": [], "cursor": Cursor(has_next=False) } - imgs, next_cursor = ImageTag.get_images_by_tags( - conn=conn, - tag_dict={"and": req.and_tags, "or": req.or_tags, "not": req.not_tags}, - cursor=req.cursor, - folder_paths=folder_paths, - limit=req.size - ) - return { - "files": filter_allowed_files([x.to_file_info() for x in imgs]), - "cursor": next_cursor - } - - @app.get(db_api_base + "/img_selected_custom_tag", dependencies=[Depends(verify_secret)]) - async def get_img_selected_custom_tag(path: str): - path = os.path.normpath(path) - if not is_valid_media_path(path): - return [] - conn = DataBase.get_conn() - update_extra_paths(conn) - if not is_path_under_parents(path): - return [] - img = DbImg.get(conn, path) - if not img: - if DbImg.count(conn) == 0: - return [] - update_image_data([os.path.dirname(path)]) - img = DbImg.get(conn, path) - assert img - # tags = Tag.get_all_custom_tag() - return ImageTag.get_tags_for_image(conn, img.id, type="custom") - - @app.post(db_api_base + "/get_image_tags", dependencies=[Depends(verify_secret)]) - async def get_img_tags(req: PathsReq): - conn = DataBase.get_conn() - return ImageTag.batch_get_tags_by_path(conn, req.paths) - - - # update tag - class UpdateTagReq(BaseModel): - id: int - color: str - - @app.post( - db_api_base + "/update_tag", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def update_tag(req: UpdateTagReq): - conn = DataBase.get_conn() - tag = Tag.get(conn, req.id) - if tag: - tag.color = req.color - tag.save(conn) - conn.commit() - - - class ToggleCustomTagToImgReq(BaseModel): - img_path: str - tag_id: int - - @app.post( - db_api_base + "/toggle_custom_tag_to_img", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def toggle_custom_tag_to_img(req: ToggleCustomTagToImgReq): - conn = DataBase.get_conn() - path = os.path.normpath(req.img_path) - update_extra_paths(conn) - if not is_path_under_parents(path): - raise HTTPException( - 400, - '当前文件不在搜索路径内,你可以将它添加到扫描路径再尝试。在右上角的"更多"里面' - if locale == "zh" - else 'The current file is not within the scan path. You can add it to the scan path and try again. In the top right corner, click on "More".', - ) - img = DbImg.get(conn, path) - if not img: - if DbImg.count(conn): - # update_image_data([os.path.dirname(path)]) - add_image_data_single(path) - img = DbImg.get(conn, path) - else: - raise HTTPException( - 400, - "你需要先通过图像搜索页生成索引" - if locale == "zh" - else "You need to generate an index through the image search page first.", - ) - tags = ImageTag.get_tags_for_image( - conn=conn, image_id=img.id, type="custom", tag_id=req.tag_id - ) - is_remove = len(tags) - if is_remove: - ImageTag.remove(conn, img.id, tags[0].id) - else: - ImageTag(img.id, req.tag_id).save(conn) - conn.commit() - return {"is_remove": is_remove} - - class BatchUpdateImageReq(BaseModel): - img_paths: List[str] - action: str - tag_id: int - - @app.post( - db_api_base + "/batch_update_image_tag", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def batch_update_image_tag(req: BatchUpdateImageReq): - assert req.action in ["add", "remove"] - conn = DataBase.get_conn() - paths: List[str] = seq(req.img_paths).map(os.path.normpath).to_list() - update_extra_paths(conn) - for path in paths: - if not is_path_under_parents(path): - raise HTTPException( - 400, - '当前文件不在搜索路径内,你可以将它添加到扫描路径再尝试。在右上角的"更多"里面' - if locale == "zh" - else 'The current file is not within the scan path. You can add it to the scan path and try again. In the top right corner, click on "More".', - ) - img = DbImg.get(conn, path) - if not img: - if DbImg.count(conn): - add_image_data_single(path) - img = DbImg.get(conn, path) - else: - raise HTTPException( - 400, - "你需要先通过图像搜索页生成索引" - if locale == "zh" - else "You need to generate an index through the image search page first.", - ) - try: - for path in paths: - img = DbImg.get(conn, path) - if req.action == "add": - ImageTag(img.id, req.tag_id).save_or_ignore(conn) - else: - ImageTag.remove(conn, img.id, req.tag_id) - finally: - conn.commit() - - class AddCustomTagReq(BaseModel): - tag_name: str - - @app.post( - db_api_base + "/add_custom_tag", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def add_custom_tag(req: AddCustomTagReq): - conn = DataBase.get_conn() - tag = Tag.get_or_create(conn, name=req.tag_name, type="custom") - conn.commit() - return tag - - class RenameFileReq(BaseModel): - path: str - name: str - - @app.post( - db_api_base + "/rename", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def rename_file(req: RenameFileReq): - conn = DataBase.get_conn() - try: - # Normalize the paths - - path = os.path.normpath(req.path) - new_path = os.path.join(os.path.dirname(path), req.name) - - # Check if the file exists - if not os.path.exists(path): - raise HTTPException(status_code=404, detail="File not found") - - # Check if a file with the new name already exists - if os.path.exists(new_path): - raise HTTPException(status_code=400, detail="A file with the new name already exists") - close_video_file_reader(path) - img = DbImg.get(conn, path) - if img: - img.update_path(conn, new_path) - conn.commit() - - # Perform the file rename operation - os.rename(path, new_path) - - - return {"detail": "File renamed successfully", "new_path": new_path} - - except PermissionError: - raise HTTPException(status_code=403, detail="Permission denied") - except Exception as e: - raise HTTPException(status_code=500, detail=str(e)) - - class RemoveCustomTagReq(BaseModel): - tag_id: int - - @app.post( - db_api_base + "/remove_custom_tag", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def remove_custom_tag(req: RemoveCustomTagReq): - conn = DataBase.get_conn() - ImageTag.remove(conn, tag_id=req.tag_id) - Tag.remove(conn, req.tag_id) - - class RemoveCustomTagFromReq(BaseModel): - img_id: int - tag_id: str - - @app.post( - db_api_base + "/remove_custom_tag_from_img", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def remove_custom_tag_from_img(req: RemoveCustomTagFromReq): - conn = DataBase.get_conn() - ImageTag.remove(conn, image_id=req.img_id, tag_id=req.tag_id) - - - - - class ExtraPathModel(BaseModel): - path: str - types: List[str] - - @app.post( - f"{db_api_base}/extra_paths", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def create_extra_path(extra_path: ExtraPathModel): - if enable_access_control: - if not is_path_under_parents(extra_path.path): - raise HTTPException(status_code=403) - conn = DataBase.get_conn() - path = ExtraPath.get_target_path(conn, extra_path.path) - if path: - for t in extra_path.types: - path.types.append(t) - path.types = unique_by(path.types) - else: - path = ExtraPath(extra_path.path, extra_path.types) - try: - path.save(conn) - finally: - conn.commit() - - class ExtraPathAliasModel(BaseModel): - path: str - alias: str - - - @app.post( - f"{db_api_base}/alias_extra_path", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def alias_extra_path(req: ExtraPathAliasModel): - conn = DataBase.get_conn() - path = ExtraPath.get_target_path(conn, req.path) - if not path: - raise HTTPException(400) - path.alias = req.alias - try: - path.save(conn) - finally: - conn.commit() - return path - - - @app.get( - f"{db_api_base}/extra_paths", - dependencies=[Depends(verify_secret)], - ) - async def read_extra_paths(): - conn = DataBase.get_conn() - return ExtraPath.get_extra_paths(conn) - - - - @app.delete( - f"{db_api_base}/extra_paths", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def delete_extra_path(extra_path: ExtraPathModel): - path = to_abs_path(extra_path.path) - conn = DataBase.get_conn() - ExtraPath.remove(conn, path, extra_path.types, img_search_dirs=get_img_search_dirs()) - - - @app.post( - f"{db_api_base}/rebuild_index", - dependencies=[Depends(verify_secret), Depends(write_permission_required)], - ) - async def rebuild_index(): - update_extra_paths(conn = DataBase.get_conn()) - rebuild_image_index(search_dirs = get_img_search_dirs() + mem["extra_paths"]) - diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/db/datamodel.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/db/datamodel.py deleted file mode 100644 index ea3ed753de22869f680046aefcaaed3f747c518d..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/db/datamodel.py +++ /dev/null @@ -1,890 +0,0 @@ -from datetime import datetime -import json -import random -from sqlite3 import Connection, connect -from enum import Enum -import sqlite3 -from typing import Dict, List, Optional, TypedDict, Union -from scripts.iib.tool import ( - cwd, - get_modified_date, - human_readable_size, - tags_translate, - is_dev, - find, - unique_by, -) -from contextlib import closing -import os -import threading -import re - - -class FileInfoDict(TypedDict): - type: str - date: float - size: int - name: str - bytes: bytes - created_time: float - fullpath: str - - -class Cursor: - def __init__(self, has_next=True, next=""): - self.has_next = has_next - self.next = next - - -class DataBase: - local = threading.local() - - _initing = False - - num = 0 - - path = os.getenv("IIB_DB_PATH", "iib.db") - - @classmethod - def get_conn(clz) -> Connection: - # for : sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread - if hasattr(clz.local, "conn"): - return clz.local.conn - else: - conn = clz.init() - clz.local.conn = conn - - return conn - - @classmethod - def get_db_file_path(clz): - return clz.path if os.path.isabs(clz.path) else os.path.join(cwd, clz.path) - - @classmethod - def init(clz): - # 创建连接并打开数据库 - conn = connect(clz.get_db_file_path()) - - def regexp(expr, item): - if not isinstance(item, str): - return False - reg = re.compile(expr, flags=re.IGNORECASE | re.MULTILINE | re.DOTALL) - return reg.search(item) is not None - - conn.create_function("regexp", 2, regexp) - try: - Folder.create_table(conn) - ImageTag.create_table(conn) - Tag.create_table(conn) - Image.create_table(conn) - ExtraPath.create_table(conn) - DirCoverCache.create_table(conn) - GlobalSetting.create_table(conn) - finally: - conn.commit() - clz.num += 1 - if is_dev: - print(f"当前连接数{clz.num}") - return conn - - -class Image: - def __init__(self, path, exif=None, size=0, date="", id=None): - self.path = path - self.exif = exif - self.id = id - self.size = size - self.date = date - - def to_file_info(self) -> FileInfoDict: - return { - "type": "file", - "id": self.id, - "date": self.date, - "created_date": self.date, - "size": human_readable_size(self.size), - "is_under_scanned_path": True, - "bytes": self.size, - "name": os.path.basename(self.path), - "fullpath": self.path, - } - - def save(self, conn): - with closing(conn.cursor()) as cur: - cur.execute( - "INSERT OR REPLACE INTO image (path, exif, size, date) VALUES (?, ?, ?, ?)", - (self.path, self.exif, self.size, self.date), - ) - self.id = cur.lastrowid - - def update_path(self, conn: Connection, new_path: str, force=False): - self.path = os.path.normpath(new_path) - with closing(conn.cursor()) as cur: - if force: # force update path - cur.execute("DELETE FROM image WHERE path = ?", (self.path,)) - cur.execute("UPDATE image SET path = ? WHERE id = ?", (self.path, self.id)) - - @classmethod - def get(cls, conn: Connection, id_or_path): - with closing(conn.cursor()) as cur: - cur.execute( - "SELECT * FROM image WHERE id = ? OR path = ?", (id_or_path, id_or_path) - ) - row = cur.fetchone() - if row is None: - return None - else: - return cls.from_row(row) - - @classmethod - def get_by_ids(cls, conn: Connection, ids: List[int]) -> List["Image"]: - if not ids: - return [] - - query = """ - SELECT * FROM image - WHERE id IN ({}) - """.format( - ",".join("?" * len(ids)) - ) - - with closing(conn.cursor()) as cur: - cur.execute(query, ids) - rows = cur.fetchall() - - images = [] - for row in rows: - images.append(cls.from_row(row)) - return images - - @classmethod - def create_table(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute( - """CREATE TABLE IF NOT EXISTS image ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - path TEXT UNIQUE, - exif TEXT, - size INTEGER, - date TEXT - )""" - ) - cur.execute("CREATE INDEX IF NOT EXISTS image_idx_path ON image(path)") - - @classmethod - def count(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute("SELECT COUNT(*) FROM image") - count = cur.fetchone()[0] - return count - - @classmethod - def from_row(cls, row: tuple): - image = cls(path=row[1], exif=row[2], size=row[3], date=row[4]) - image.id = row[0] - return image - - @classmethod - def remove(cls, conn: Connection, image_id: int) -> None: - with closing(conn.cursor()) as cur: - cur.execute("DELETE FROM image WHERE id = ?", (image_id,)) - conn.commit() - - @classmethod - def safe_batch_remove(cls, conn: Connection, image_ids: List[int]) -> None: - if not (image_ids): - return - with closing(conn.cursor()) as cur: - try: - placeholders = ",".join("?" * len(image_ids)) - cur.execute( - f"DELETE FROM image_tag WHERE image_id IN ({placeholders})", - image_ids, - ) - cur.execute( - f"DELETE FROM image WHERE id IN ({placeholders})", image_ids - ) - except BaseException as e: - print(e) - finally: - conn.commit() - - @classmethod - def find_by_substring( - cls, conn: Connection, substring: str, limit: int = 500, cursor="", regexp="", path_only=False, - folder_paths: List[str] = [] - ) -> tuple[List["Image"], Cursor]: - api_cur = Cursor() - with closing(conn.cursor()) as cur: - params = [] - where_clauses = [] - if regexp: - if path_only: - where_clauses.append("(path REGEXP ?)") - params.append(regexp) - else: - where_clauses.append("((exif REGEXP ?) OR (path REGEXP ?))") - params.extend((regexp, regexp)) - else: - if path_only: - where_clauses.append("(path LIKE ?)") - params.append(f"%{substring}%") - else: - where_clauses.append("(path LIKE ? OR exif LIKE ?)") - params.extend((f"%{substring}%", f"%{substring}%")) - if cursor: - where_clauses.append("(date < ?)") - params.append(cursor) - if folder_paths: - folder_clauses = [] - for folder_path in folder_paths: - folder_clauses.append("(image.path LIKE ?)") - params.append(os.path.join(folder_path, "%")) - where_clauses.append("(" + " OR ".join(folder_clauses) + ")") - sql = "SELECT * FROM image" - if where_clauses: - sql += " WHERE " - sql += " AND ".join(where_clauses) - sql += " ORDER BY date DESC LIMIT ? " - params.append(limit) - cur.execute(sql, params) - rows = cur.fetchall() - - api_cur.has_next = len(rows) >= limit - images = [] - deleted_ids = [] - for row in rows: - img = cls.from_row(row) - if os.path.exists(img.path): - images.append(img) - else: - deleted_ids.append(img.id) - cls.safe_batch_remove(conn, deleted_ids) - if images: - api_cur.next = str(images[-1].date) - return images, api_cur - - @classmethod - def get_random_images(cls, conn: Connection, size: int) -> List["Image"]: - with closing(conn.cursor()) as cur: - cur.execute("SELECT COUNT(*) FROM image") - total_count = cur.fetchone()[0] - - if total_count == 0 or size <= 0: - return [] - - step = max(1, total_count // size) - - start_indices = [random.randint(i * step, min((i + 1) * step - 1, total_count - 1)) for i in range(size)] - - placeholders = ",".join("?" * len(start_indices)) - cur.execute(f"SELECT * FROM image WHERE id IN ({placeholders})", start_indices) - rows = cur.fetchall() - - images = [cls.from_row(row) for row in rows if os.path.exists(row[1])] - return images - - -class Tag: - def __init__(self, name: str, score: int, type: str, count=0, color = ""): - self.name = name - self.score = score - self.type = type - self.count = count - self.id = None - self.color = color - self.display_name = tags_translate.get(name) - - def save(self, conn): - with closing(conn.cursor()) as cur: - cur.execute( - "INSERT OR REPLACE INTO tag (id, name, score, type, count, color) VALUES (?, ?, ?, ?, ?, ?)", - (self.id, self.name, self.score, self.type, self.count, self.color), - ) - self.id = cur.lastrowid - - @classmethod - def remove(cls, conn, tag_id): - with closing(conn.cursor()) as cur: - cur.execute("DELETE FROM tag WHERE id = ?", (tag_id,)) - conn.commit() - - @classmethod - def get(cls, conn: Connection, id): - with closing(conn.cursor()) as cur: - cur.execute("SELECT * FROM tag WHERE id = ?", (id,)) - row = cur.fetchone() - if row is None: - return None - else: - return cls.from_row(row) - - @classmethod - def get_all_custom_tag(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute("SELECT * FROM tag where type = 'custom'") - rows = cur.fetchall() - tags: list[Tag] = [] - for row in rows: - tags.append(cls.from_row(row)) - return tags - - @classmethod - def get_all(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute("SELECT * FROM tag") - rows = cur.fetchall() - tags: list[Tag] = [] - for row in rows: - tags.append(cls.from_row(row)) - return tags - - @classmethod - def get_or_create(cls, conn: Connection, name: str, type: str): - assert name and type - with closing(conn.cursor()) as cur: - cur.execute( - "SELECT tag.* FROM tag WHERE name = ? and type = ?", (name, type) - ) - row = cur.fetchone() - if row is None: - tag = cls(name=name, score=0, type=type) - tag.save(conn) - return tag - else: - return cls.from_row(row) - - @classmethod - def from_row(cls, row: tuple): - tag = cls(name=row[1], score=row[2], type=row[3], count=row[4], color=row[5]) - tag.id = row[0] - return tag - - @classmethod - def create_table(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute( - """CREATE TABLE IF NOT EXISTS tag ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - name TEXT, - score INTEGER, - type TEXT, - count INTEGER, - UNIQUE(name, type) ON CONFLICT REPLACE - ); - """ - ) - cur.execute("CREATE INDEX IF NOT EXISTS tag_idx_name ON tag(name)") - cur.execute( - """INSERT OR IGNORE INTO tag(name, score, type, count) - VALUES ("like", 0, "custom", 0); - """ - ) - try: - cur.execute( - """ALTER TABLE tag - ADD COLUMN color TEXT DEFAULT ''""" - ) - except sqlite3.OperationalError as e: - pass - - -class ImageTag: - def __init__(self, image_id: int, tag_id: int): - assert tag_id and image_id - self.image_id = image_id - self.tag_id = tag_id - - def save(self, conn): - with closing(conn.cursor()) as cur: - cur.execute( - "INSERT INTO image_tag (image_id, tag_id, created_at) VALUES (?, ?, CURRENT_TIMESTAMP)", - (self.image_id, self.tag_id), - ) - - def save_or_ignore(self, conn): - with closing(conn.cursor()) as cur: - cur.execute( - "INSERT OR IGNORE INTO image_tag (image_id, tag_id, created_at) VALUES (?, ?, CURRENT_TIMESTAMP)", - (self.image_id, self.tag_id), - ) - - @classmethod - def get_tags_for_image( - cls, - conn: Connection, - image_id: int, - tag_id: Optional[int] = None, - type: Optional[str] = None, - ): - with closing(conn.cursor()) as cur: - query = "SELECT tag.* FROM tag INNER JOIN image_tag ON tag.id = image_tag.tag_id WHERE image_tag.image_id = ?" - params = [image_id] - if tag_id: - query += " AND image_tag.tag_id = ?" - params.append(tag_id) - if type: - query += " AND tag.type = ?" - params.append(type) - cur.execute(query, tuple(params)) - rows = cur.fetchall() - return [Tag.from_row(x) for x in rows] - - @classmethod - def get_images_for_tag(cls, conn: Connection, tag_id): - with closing(conn.cursor()) as cur: - cur.execute( - "SELECT image.* FROM image INNER JOIN image_tag ON image.id = image_tag.image_id WHERE image_tag.tag_id = ?", - (tag_id,), - ) - rows = cur.fetchall() - images = [] - for row in rows: - images.append(Image.from_row(row)) - return images - - @classmethod - def create_table(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute( - """CREATE TABLE IF NOT EXISTS image_tag ( - image_id INTEGER, - tag_id INTEGER, - FOREIGN KEY (image_id) REFERENCES image(id), - FOREIGN KEY (tag_id) REFERENCES tag(id), - PRIMARY KEY (image_id, tag_id) - )""" - ) - try: - cur.execute( - """ALTER TABLE image_tag - ADD COLUMN created_at TIMESTAMP""" - ) - - cur.execute( - """UPDATE image_tag - SET created_at = CURRENT_TIMESTAMP - WHERE created_at IS NULL""" - ) - except sqlite3.OperationalError as e: - pass - - @classmethod - def get_images_by_tags( - cls, - conn: Connection, - tag_dict: Dict[str, List[int]], - limit: int = 500, - cursor="", - folder_paths: List[str] = None, - ) -> tuple[List[Image], Cursor]: - query = """ - SELECT image.id, image.path, image.size,image.date - FROM image - INNER JOIN image_tag ON image.id = image_tag.image_id - """ - - where_clauses = [] - params = [] - - for operator, tag_ids in tag_dict.items(): - if operator == "and" and tag_dict["and"]: - where_clauses.append( - "tag_id IN ({})".format(",".join("?" * len(tag_ids))) - ) - params.extend(tag_ids) - elif operator == "not" and tag_dict["not"]: - where_clauses.append( - """(image_id NOT IN ( - SELECT image_id - FROM image_tag - WHERE tag_id IN ({}) -))""".format( - ",".join("?" * len(tag_ids)) - ) - ) - params.extend(tag_ids) - elif operator == "or" and tag_dict["or"]: - where_clauses.append( - """(image_id IN ( - SELECT image_id - FROM image_tag - WHERE tag_id IN ({}) - GROUP BY image_id - HAVING COUNT(DISTINCT tag_id) >= 1 -) -)""".format( - ",".join("?" * len(tag_ids)) - ) - ) - params.extend(tag_ids) - - if folder_paths: - folder_clauses = [] - for folder_path in folder_paths: - folder_clauses.append("(image.path LIKE ?)") - params.append(os.path.join(folder_path, "%")) - print(folder_path) - where_clauses.append("(" + " OR ".join(folder_clauses) + ")") - - if cursor: - where_clauses.append("(image.date < ?)") - params.append(cursor) - if where_clauses: - query += " WHERE " + " AND ".join(where_clauses) - query += " GROUP BY image.id" - if "and" in tag_dict and tag_dict['and']: - query += " HAVING COUNT(DISTINCT tag_id) = ?" - params.append(len(tag_dict["and"])) - - query += " ORDER BY date DESC LIMIT ?" - params.append(limit) - api_cur = Cursor() - with closing(conn.cursor()) as cur: - cur.execute(query, params) - rows = cur.fetchall() - images = [] - deleted_ids = [] - for row in rows: - img = Image(id=row[0], path=row[1], size=row[2], date=row[3]) - if os.path.exists(img.path): - images.append(img) - else: - deleted_ids.append(img.id) - Image.safe_batch_remove(conn, deleted_ids) - api_cur.has_next = len(rows) >= limit - if images: - api_cur.next = str(images[-1].date) - return images, api_cur - - @classmethod - def batch_get_tags_by_path( - cls, conn: Connection, paths: List[str], type="custom" - ) -> Dict[str, List[Tag]]: - if not paths: - return {} - tag_dict = {} - with closing(conn.cursor()) as cur: - placeholders = ",".join("?" * len(paths)) - query = f""" - SELECT image.path, tag.* FROM image_tag - INNER JOIN image ON image_tag.image_id = image.id - INNER JOIN tag ON image_tag.tag_id = tag.id - WHERE tag.type = '{type}' AND image.path IN ({placeholders}) - """ - cur.execute(query, paths) - rows = cur.fetchall() - for row in rows: - path = row[0] - tag = Tag.from_row(row[1:]) - if path in tag_dict: - tag_dict[path].append(tag) - else: - tag_dict[path] = [tag] - return tag_dict - - @classmethod - def remove( - cls, - conn: Connection, - image_id: Optional[int] = None, - tag_id: Optional[int] = None, - ) -> None: - assert image_id or tag_id - with closing(conn.cursor()) as cur: - if tag_id and image_id: - cur.execute( - "DELETE FROM image_tag WHERE image_id = ? and tag_id = ?", - (image_id, tag_id), - ) - elif tag_id: - cur.execute("DELETE FROM image_tag WHERE tag_id = ?", (tag_id,)) - else: - cur.execute("DELETE FROM image_tag WHERE image_id = ?", (image_id,)) - conn.commit() - - -class Folder: - def __init__(self, id: int, path: str, modified_date: str): - self.id = id - self.path = path - self.modified_date = modified_date - - @classmethod - def create_table(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute( - """CREATE TABLE IF NOT EXISTS folders - (id INTEGER PRIMARY KEY AUTOINCREMENT, - path TEXT, - modified_date TEXT)""" - ) - cur.execute("CREATE INDEX IF NOT EXISTS folders_idx_path ON folders(path)") - - @classmethod - def check_need_update(cls, conn: Connection, folder_path: str): - folder_path = os.path.normpath(folder_path) - with closing(conn.cursor()) as cur: - if not os.path.exists(folder_path): - return False - cur.execute("SELECT * FROM folders WHERE path=?", (folder_path,)) - folder_record = cur.fetchone() # 如果这个文件夹没有记录,或者修改时间与数据库不同,则需要修改 - return not folder_record or ( - folder_record[2] != get_modified_date(folder_path) - ) - - @classmethod - def update_modified_date_or_create(cls, conn: Connection, folder_path: str): - folder_path = os.path.normpath(folder_path) - with closing(conn.cursor()) as cur: - cur.execute("SELECT * FROM folders WHERE path = ?", (folder_path,)) - row = cur.fetchone() - if row: - cur.execute( - "UPDATE folders SET modified_date = ? WHERE path = ?", - (get_modified_date(folder_path), folder_path), - ) - else: - cur.execute( - "INSERT INTO folders (path, modified_date) VALUES (?, ?)", - (folder_path, get_modified_date(folder_path)), - ) - - @classmethod - def get_expired_dirs(cls, conn: Connection): - dirs: List[str] = [] - with closing(conn.cursor()) as cur: - cur.execute("SELECT * FROM folders") - result_set = cur.fetchall() - extra_paths = ExtraPath.get_extra_paths(conn) - for ep in extra_paths: - if not find(result_set, lambda x: x[1] == ep.path): - dirs.append(ep.path) - for row in result_set: - folder_path = row[1] - if ( - os.path.exists(folder_path) - and get_modified_date(folder_path) != row[2] - ): - dirs.append(folder_path) - return unique_by(dirs, os.path.normpath) - - @classmethod - def remove_folder(cls, conn: Connection, folder_path: str): - folder_path = os.path.normpath(folder_path) - with closing(conn.cursor()) as cur: - cur.execute("DELETE FROM folders WHERE path = ?", (folder_path,)) - - @classmethod - def remove_all(cls, conn: Connection): - with closing(conn.cursor()) as cur: - cur.execute("DELETE FROM folders") - conn.commit() - - -class ExtraPathType(Enum): - scanned = "scanned" - scanned_fixed = "scanned-fixed" - walk = "walk" - cli_only = "cli_access_only" - - -class ExtraPath: - def __init__(self, path: str, types: Union[str, List[str]], alias = ''): - self.path = os.path.normpath(path) - self.types = types.split('+') if isinstance(types, str) else types - self.alias = alias - - def save(self, conn): - type_str = '+'.join(self.types) - for type in self.types: - assert type in [ExtraPathType.walk.value, ExtraPathType.scanned.value, ExtraPathType.scanned_fixed.value] - with closing(conn.cursor()) as cur: - cur.execute( - "INSERT INTO extra_path (path, type, alias) VALUES (?, ?, ?) " - "ON CONFLICT (path) DO UPDATE SET type = excluded.type, alias = excluded.alias", - (self.path, type_str, self.alias), - ) - - @classmethod - def get_target_path(cls, conn, path) -> Optional['ExtraPath']: - path = os.path.normpath(path) - query = f"SELECT * FROM extra_path where path = ?" - params = (path,) - with closing(conn.cursor()) as cur: - cur.execute(query, params) - rows = cur.fetchall() - paths: List[ExtraPath] = [] - for row in rows: - path = row[0] - if os.path.exists(path): - paths.append(ExtraPath(*row)) - else: - sql = "DELETE FROM extra_path WHERE path = ?" - cur.execute(sql, (path,)) - conn.commit() - return paths[0] if paths else None - - @classmethod - def get_extra_paths(cls, conn) -> List["ExtraPath"]: - query = "SELECT * FROM extra_path" - with closing(conn.cursor()) as cur: - cur.execute(query) - rows = cur.fetchall() - paths: List[ExtraPath] = [] - for row in rows: - path = row[0] - if os.path.exists(path): - paths.append(ExtraPath(*row)) - else: - cls.remove(conn, path) - return paths - - @classmethod - def remove( - cls, - conn, - path: str, - types: List[str] = None, - img_search_dirs: Optional[List[str]] = [], - ): - with closing(conn.cursor()) as cur: - path = os.path.normpath(path) - - target = cls.get_target_path(conn, path) - if not target: - return - new_types = [] - for type in target.types: - if type not in types: - new_types.append(type) - if new_types: - target.types = new_types - target.save(conn) - else: - sql = "DELETE FROM extra_path WHERE path = ?" - cur.execute(sql, (path,)) - - if path not in img_search_dirs: - Folder.remove_folder(conn, path) - conn.commit() - - @classmethod - def create_table(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute( - """CREATE TABLE IF NOT EXISTS extra_path ( - path TEXT PRIMARY KEY, - type TEXT NOT NULL, - alias TEXT DEFAULT '' - )""" - ) - try: - cur.execute( - """ALTER TABLE extra_path - ADD COLUMN alias TEXT DEFAULT ''""" - ) - except sqlite3.OperationalError: - pass - -class DirCoverCache: - @classmethod - def create_table(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute(""" - CREATE TABLE IF NOT EXISTS dir_cover_cache ( - folder_path TEXT PRIMARY KEY, - modified_time TEXT, - media_files TEXT - ) - """) - - @classmethod - def is_cache_expired(cls, conn, folder_path): - with closing(conn.cursor()) as cur: - cur.execute("SELECT modified_time FROM dir_cover_cache WHERE folder_path = ?", (folder_path,)) - result = cur.fetchone() - - if not result: - return True - - cached_time = datetime.fromisoformat(result[0]) - folder_modified_time = os.path.getmtime(folder_path) - return datetime.fromtimestamp(folder_modified_time) > cached_time - - @classmethod - def cache_media_files(cls, conn, folder_path, media_files): - media_files_json = json.dumps(media_files) - with closing(conn.cursor()) as cur: - cur.execute(""" - INSERT INTO dir_cover_cache (folder_path, modified_time, media_files) - VALUES (?, ?, ?) - ON CONFLICT(folder_path) DO UPDATE SET modified_time = excluded.modified_time, media_files = excluded.media_files - """, (folder_path, datetime.now().isoformat(), media_files_json)) - conn.commit() - - @classmethod - def get_cached_media_files(cls, conn, folder_path): - with closing(conn.cursor()) as cur: - cur.execute("SELECT media_files FROM dir_cover_cache WHERE folder_path = ?", (folder_path,)) - result = cur.fetchone() - - if result: - media_files_json = result[0] - return json.loads(media_files_json) - else: - return [] - - -class GlobalSetting: - @classmethod - def create_table(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute( - """CREATE TABLE IF NOT EXISTS global_setting ( - setting_json TEXT, - name TEXT PRIMARY KEY, - created_time TEXT, - modified_time TEXT - )""" - ) - - @classmethod - def get_setting(cls, conn, name): - with closing(conn.cursor()) as cur: - cur.execute("SELECT setting_json FROM global_setting WHERE name = ?", (name,)) - result = cur.fetchone() - if result: - return json.loads(result[0]) - else: - return None - - @classmethod - def save_setting(cls, conn, name: str, setting: str): - json.loads(setting) # check if it is valid json - with closing(conn.cursor()) as cur: - cur.execute( - """INSERT INTO global_setting (setting_json, name, created_time, modified_time) - VALUES (?, ?, ?, ?) - ON CONFLICT(name) DO UPDATE SET setting_json = excluded.setting_json, modified_time = excluded.modified_time - """, - (setting, name, datetime.now().isoformat(), datetime.now().isoformat()), - ) - conn.commit() - - - @classmethod - def remove_setting(cls, conn, name: str): - with closing(conn.cursor()) as cur: - cur.execute("DELETE FROM global_setting WHERE name = ?", (name,)) - conn.commit() - - @classmethod - def get_all_settings(cls, conn): - with closing(conn.cursor()) as cur: - cur.execute("SELECT * FROM global_setting") - rows = cur.fetchall() - settings = {} - for row in rows: - settings[row[1]] = json.loads(row[0]) - return settings diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/db/update_image_data.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/db/update_image_data.py deleted file mode 100644 index c9b5a88d0cc16c21442c0b4d5dbf807d3abd5d50..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/db/update_image_data.py +++ /dev/null @@ -1,199 +0,0 @@ -from contextlib import closing -from typing import Dict, List -from scripts.iib.db.datamodel import Image as DbImg, Tag, ImageTag, DataBase, Folder -import os -from scripts.iib.tool import ( - is_valid_media_path, - get_modified_date, - get_video_type, - is_dev, - get_modified_date, - is_image_file, - case_insensitive_get -) -from scripts.iib.parsers.model import ImageGenerationInfo, ImageGenerationParams -from scripts.iib.logger import logger -from scripts.iib.parsers.index import parse_image_info -from scripts.iib.plugin import plugin_inst_map - -# 定义一个函数来获取图片文件的EXIF数据 -def get_exif_data(file_path): - if get_video_type(file_path): - return ImageGenerationInfo() - try: - return parse_image_info(file_path) - except Exception as e: - if is_dev: - logger.error("get_exif_data %s", e) - return ImageGenerationInfo() - - -def update_image_data(search_dirs: List[str], is_rebuild = False): - conn = DataBase.get_conn() - tag_incr_count_rec: Dict[int, int] = {} - - if is_rebuild: - Folder.remove_all(conn) - - def safe_save_img_tag(img_tag: ImageTag): - tag_incr_count_rec[img_tag.tag_id] = ( - tag_incr_count_rec.get(img_tag.tag_id, 0) + 1 - ) - img_tag.save_or_ignore(conn) # 原先用来处理一些意外,但是写的正确完全没问题,去掉了try catch - - # 递归处理每个文件夹 - def process_folder(folder_path: str): - if not Folder.check_need_update(conn, folder_path): - return - print(f"Processing folder: {folder_path}") - for filename in os.listdir(folder_path): - file_path = os.path.normpath(os.path.join(folder_path, filename)) - try: - - if os.path.isdir(file_path): - process_folder(file_path) - elif is_valid_media_path(file_path): - build_single_img_idx(conn, file_path, is_rebuild, safe_save_img_tag) - # neg暂时跳过感觉个没人会搜索这个 - except Exception as e: - logger.error("Tag generation failed. Skipping this file. file:%s error: %s", file_path, e) - # 提交对数据库的更改 - Folder.update_modified_date_or_create(conn, folder_path) - conn.commit() - - for dir in search_dirs: - process_folder(dir) - conn.commit() - for tag_id in tag_incr_count_rec: - tag = Tag.get(conn, tag_id) - tag.count += tag_incr_count_rec[tag_id] - tag.save(conn) - conn.commit() - -def add_image_data_single(file_path): - conn = DataBase.get_conn() - tag_incr_count_rec: Dict[int, int] = {} - - def safe_save_img_tag(img_tag: ImageTag): - tag_incr_count_rec[img_tag.tag_id] = ( - tag_incr_count_rec.get(img_tag.tag_id, 0) + 1 - ) - img_tag.save_or_ignore(conn) - - file_path = os.path.normpath(file_path) - try: - if not is_valid_media_path(file_path): - return - build_single_img_idx(conn, file_path, False, safe_save_img_tag) - # neg暂时跳过感觉个没人会搜索这个 - except Exception as e: - logger.error("Tag generation failed. Skipping this file. file:%s error: %s", file_path, e) - conn.commit() - - for tag_id in tag_incr_count_rec: - tag = Tag.get(conn, tag_id) - tag.count += tag_incr_count_rec[tag_id] - tag.save(conn) - conn.commit() - -def rebuild_image_index(search_dirs: List[str]): - conn = DataBase.get_conn() - with closing(conn.cursor()) as cur: - cur.execute( - """DELETE FROM image_tag - WHERE image_tag.tag_id IN ( - SELECT tag.id FROM tag WHERE tag.type <> 'custom' - ) - """ - ) - cur.execute("""DELETE FROM tag WHERE tag.type <> 'custom'""") - conn.commit() - update_image_data(search_dirs=search_dirs, is_rebuild=True) - - -def get_extra_meta_keys_from_plugins(source_identifier: str): - try: - plugin = plugin_inst_map.get(source_identifier) - if plugin: - return plugin.extra_convert_to_tag_meta_keys - except Exception as e: - logger.error("get_extra_meta_keys_from_plugins %s", e) - return [] - -def build_single_img_idx(conn, file_path, is_rebuild, safe_save_img_tag): - img = DbImg.get(conn, file_path) - parsed_params = None - if is_rebuild: - info = get_exif_data(file_path) - parsed_params = info.params - if not img: - img = DbImg( - file_path, - info.raw_info, - os.path.getsize(file_path), - get_modified_date(file_path), - ) - img.save(conn) - else: - if img: # 已存在的跳过 - if img.date == get_modified_date(img.path): - return - else: - DbImg.safe_batch_remove(conn=conn, image_ids=[img.id]) - info = get_exif_data(file_path) - parsed_params = info.params - img = DbImg( - file_path, - info.raw_info, - os.path.getsize(file_path), - get_modified_date(file_path), - ) - img.save(conn) - - if not parsed_params: - return - meta = parsed_params.meta - lora = parsed_params.extra.get("lora", []) - lyco = parsed_params.extra.get("lyco", []) - pos = parsed_params.pos_prompt - size_tag = Tag.get_or_create( - conn, - str(meta.get("Size-1", 0)) + " * " + str(meta.get("Size-2", 0)), - type="size", - ) - safe_save_img_tag(ImageTag(img.id, size_tag.id)) - media_type_tag = Tag.get_or_create(conn, "Image" if is_image_file(file_path) else "Video", 'Media Type') - safe_save_img_tag(ImageTag(img.id, media_type_tag.id)) - keys = [ - "Model", - "Sampler", - "Source Identifier", - "Postprocess upscale by", - "Postprocess upscaler", - "Size", - "Refiner", - "Hires upscaler" - ] - keys += get_extra_meta_keys_from_plugins(meta.get("Source Identifier", "")) - for k in keys: - v = case_insensitive_get(meta, k) - if not v: - continue - - tag = Tag.get_or_create(conn, str(v), k) - safe_save_img_tag(ImageTag(img.id, tag.id)) - if "Hires upscaler" == k: - tag = Tag.get_or_create(conn, 'Hires All', k) - safe_save_img_tag(ImageTag(img.id, tag.id)) - elif "Refiner" == k: - tag = Tag.get_or_create(conn, 'Refiner All', k) - safe_save_img_tag(ImageTag(img.id, tag.id)) - for i in lora: - tag = Tag.get_or_create(conn, i["name"], "lora") - safe_save_img_tag(ImageTag(img.id, tag.id)) - for i in lyco: - tag = Tag.get_or_create(conn, i["name"], "lyco") - safe_save_img_tag(ImageTag(img.id, tag.id)) - for k in pos: - tag = Tag.get_or_create(conn, k, "pos") - safe_save_img_tag(ImageTag(img.id, tag.id)) \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/dir_cover_cache.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/dir_cover_cache.py deleted file mode 100644 index 7b850d3af75b370f58e2787e1eb29eafaa6e1be9..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/dir_cover_cache.py +++ /dev/null @@ -1,53 +0,0 @@ -import os -from scripts.iib.db.datamodel import DirCoverCache, DataBase -from scripts.iib.tool import get_created_date_by_stat, get_formatted_date, is_valid_media_path, get_video_type, birthtime_sort_key_fn - -def get_top_4_media_info(folder_path): - """ - 获取给定文件夹路径下的前4个媒体文件的完整路径。 - - 参数: - folder_path (str): 文件夹的路径。 - - 返回值: - list: 包含前4个媒体文件完整路径的列表。 - """ - conn = DataBase.get_conn() - if DirCoverCache.is_cache_expired(conn, folder_path): - media_files = get_media_files_from_folder(folder_path) - DirCoverCache.cache_media_files(conn, folder_path, media_files) - else: - media_files = DirCoverCache.get_cached_media_files(conn, folder_path) - - return media_files[:4] - -def get_media_files_from_folder(folder_path): - """ - 从文件夹中获取媒体文件的完整路径。 - - 参数: - folder_path (str): 文件夹的路径。 - - 返回值: - list: 包含媒体文件完整路径的列表。 - """ - media_files = [] - with os.scandir(folder_path) as entries: - for entry in sorted(entries, key=birthtime_sort_key_fn, reverse=True): - if entry.is_file() and is_valid_media_path(entry.path): - name = os.path.basename(entry.path) - stat = entry.stat() - date = get_formatted_date(stat.st_mtime) - created_time = get_created_date_by_stat(stat) - media_files.append({ - "fullpath": entry.path, - "media_type": "video" if get_video_type(entry.path) else "image", - "type": "file", - "date": date, - "created_time": created_time, - "name": name, - }) - if len(media_files) > 3: - return media_files - - return media_files diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/fastapi_video.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/fastapi_video.py deleted file mode 100644 index bd2ade1ca72869d74582e118af40b7502f685680..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/fastapi_video.py +++ /dev/null @@ -1,86 +0,0 @@ -import os -from typing import BinaryIO - -from fastapi import FastAPI, HTTPException, Request, status -from fastapi.responses import StreamingResponse -from scripts.iib.tool import get_video_type - -video_file_handler = {} - -def close_video_file_reader(path): - if not get_video_type(path): - return - try: - video_file_handler[path].close() - except Exception as e: - print(f"close file error: {e}") - - -def send_bytes_range_requests( - file_path, start: int, end: int, chunk_size: int = 10_000 -): - """Send a file in chunks using Range Requests specification RFC7233 - - `start` and `end` parameters are inclusive due to specification - """ - with open(file_path, mode="rb") as f: - video_file_handler[file_path] = f - f.seek(start) - while (pos := f.tell()) <= end: - read_size = min(chunk_size, end + 1 - pos) - yield f.read(read_size) - - -def _get_range_header(range_header: str, file_size: int) -> tuple[int, int]: - def _invalid_range(): - return HTTPException( - status.HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE, - detail=f"Invalid request range (Range:{range_header!r})", - ) - - try: - h = range_header.replace("bytes=", "").split("-") - start = int(h[0]) if h[0] != "" else 0 - end = int(h[1]) if h[1] != "" else file_size - 1 - except ValueError: - raise _invalid_range() - - if start > end or start < 0 or end > file_size - 1: - raise _invalid_range() - return start, end - - -def range_requests_response( - request: Request, file_path: str, content_type: str -): - """Returns StreamingResponse using Range Requests of a given file""" - - file_size = os.stat(file_path).st_size - range_header = request.headers.get("range") - - headers = { - "content-type": content_type, - "accept-ranges": "bytes", - "content-encoding": "identity", - "content-length": str(file_size), - "access-control-expose-headers": ( - "content-type, accept-ranges, content-length, " - "content-range, content-encoding" - ), - } - start = 0 - end = file_size - 1 - status_code = status.HTTP_200_OK - - if range_header is not None: - start, end = _get_range_header(range_header, file_size) - size = end - start + 1 - headers["content-length"] = str(size) - headers["content-range"] = f"bytes {start}-{end}/{file_size}" - status_code = status.HTTP_206_PARTIAL_CONTENT - - return StreamingResponse( - send_bytes_range_requests(file_path, start, end), - headers=headers, - status_code=status_code, - ) diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/img_cache_gen.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/img_cache_gen.py deleted file mode 100644 index be8d5e6821e94f7de49dcc5b37e8d3701eed0bd2..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/img_cache_gen.py +++ /dev/null @@ -1,58 +0,0 @@ -import hashlib -import os -from typing import List -from scripts.iib.tool import get_formatted_date, get_cache_dir, is_image_file -from concurrent.futures import ThreadPoolExecutor -import time -from PIL import Image - -def generate_image_cache(dirs, size:str, verbose=False): - start_time = time.time() - cache_base_dir = get_cache_dir() - - def process_image(item): - if item.is_dir(): - verbose and print(f"Processing directory: {item.path}") - for sub_item in os.scandir(item.path): - process_image(sub_item) - return - if not os.path.exists(item.path) or not is_image_file(item.path): - return - - try: - path = os.path.normpath(item.path) - stat = item.stat() - t = get_formatted_date(stat.st_mtime) - hash_dir = hashlib.md5((path + t).encode("utf-8")).hexdigest() - cache_dir = os.path.join(cache_base_dir, "iib_cache", hash_dir) - cache_path = os.path.join(cache_dir, f"{size}.webp") - - if os.path.exists(cache_path): - verbose and print(f"Image cache already exists: {path}") - return - - if os.path.getsize(path) < 64 * 1024: - verbose and print(f"Image size less than 64KB: {path}", "skip") - return - - with Image.open(path) as img: - w, h = size.split("x") - img.thumbnail((int(w), int(h))) - os.makedirs(cache_dir, exist_ok=True) - img.save(cache_path, "webp") - - verbose and print(f"Image cache generated: {path}") - except Exception as e: - print(f"Error generating image cache: {path}") - print(e) - - with ThreadPoolExecutor() as executor: - for dir_path in dirs: - folder_listing: List[os.DirEntry] = os.scandir(dir_path) - for item in folder_listing: - executor.submit(process_image, item) - - print("Image cache generation completed. ✨") - end_time = time.time() - execution_time = end_time - start_time - print(f"Execution time: {execution_time} seconds") \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/logger.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/logger.py deleted file mode 100644 index 3d795279695ff805e6076982e02794c5c6912581..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/logger.py +++ /dev/null @@ -1,20 +0,0 @@ - -from scripts.iib.tool import is_dev,cwd - -import logging -logger = logging.getLogger(__name__) -logger.setLevel(logging.DEBUG) - -console_handler = logging.StreamHandler() -console_handler.setLevel(logging.INFO) - -file_handler = logging.FileHandler(f"{cwd}/log.log") -file_handler.setLevel(logging.DEBUG) - -formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") -console_handler.setFormatter(formatter) -file_handler.setFormatter(formatter) - -logger.addHandler(file_handler) -if is_dev: - logger.addHandler(console_handler) diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/comfyui.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/comfyui.py deleted file mode 100644 index 9a4d2063abee587bf935aadf4eb856a043a5260e..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/comfyui.py +++ /dev/null @@ -1,51 +0,0 @@ -from PIL import Image - -from scripts.iib.tool import ( - comfyui_exif_data_to_str, - is_img_created_by_comfyui, - is_img_created_by_comfyui_with_webui_gen_info, - get_comfyui_exif_data, - parse_generation_parameters, - read_sd_webui_gen_info_from_image, -) -from scripts.iib.parsers.model import ImageGenerationInfo, ImageGenerationParams -from scripts.iib.logger import logger - - -class ComfyUIParser: - def __init__(self): - pass - - @classmethod - def parse(clz, img, file_path): - info = "" - params = None - if not clz.test(img, file_path): - raise Exception("The input image does not match the current parser.") - try: - if is_img_created_by_comfyui_with_webui_gen_info(img): - info = read_sd_webui_gen_info_from_image(img, file_path) - info += ", Source Identifier: ComfyUI" - params = parse_generation_parameters(info) - else: - params = get_comfyui_exif_data(img) - info = comfyui_exif_data_to_str(params) - except Exception as e: - logger.error('parse comfyui image failed. prompt:') - logger.error(img.info.get('prompt')) - return ImageGenerationInfo() - return ImageGenerationInfo( - info, - ImageGenerationParams( - meta=params["meta"], pos_prompt=params["pos_prompt"], extra=params - ), - ) - - @classmethod - def test(clz, img: Image, file_path: str) -> bool: - try: - return is_img_created_by_comfyui( - img - ) or is_img_created_by_comfyui_with_webui_gen_info(img) - except Exception: - return False diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/fooocus.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/fooocus.py deleted file mode 100644 index 7c1df198e5ba93365935d8da12cff27353314f9e..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/fooocus.py +++ /dev/null @@ -1,77 +0,0 @@ -import os -import re -from PIL import Image - -from scripts.iib.parsers.model import ImageGenerationInfo, ImageGenerationParams -from scripts.iib.tool import omit, parse_generation_parameters, unique_by - - -def remove_extra_spaces(text): - return re.sub(r"\s+", " ", text) - - -def get_log_file(file_path: str): - dir = os.path.dirname(file_path) - with open(os.path.join(dir, "log.html")) as f: - return f.read() - -lora_re = re.compile("LoRA \d+", re.IGNORECASE) - -class FooocusParser: - def __init__(self): - pass - - @classmethod - def parse(clz, img: Image, file_path): - if not clz.test(img, file_path): - raise Exception("The input image does not match the current parser.") - from lxml import etree - - log = get_log_file(file_path) - root = etree.HTML(log) - id = str(os.path.basename(file_path)).replace(".", "_") - metadata = root.xpath(f'//div[@id="{id}"]/descendant::table[@class="metadata"]') - tr_elements = metadata[0].xpath(".//tr") - lora_list = [] - # As a workaround to bypass parsing errors in the parser. - # https://github.com/jiw0220/stable-diffusion-image-metadata/blob/00b8d42d4d1a536862bba0b07c332bdebb2a0ce5/src/index.ts#L130 - metadata_list_str = "Steps: Unknown , Source Identifier: Fooocus ," - params = {"meta": {"Source Identifier": "Fooocus"}} - for tr in tr_elements: - label = tr.xpath('.//td[@class="label" or @class="key"]/text()') - value = tr.xpath('.//td[@class="value"]/text()') - if label: - k = label[0] - v = value[0] if value else "None" - if k == "Fooocus V2 Expansion": - continue - if k == "Prompt" or k == "Negative Prompt": - params[k] = remove_extra_spaces(v.replace("\n", "").strip()) - else: - v = v.replace(",", ",") - params["meta"][k] = v - metadata_list_str += f" {k}: {v}," - if lora_re.search(k): - lora_list.append({ "name": v.strip(), "value": 1 }) - params["meta"]["Model"] = params["meta"]["Base Model"] - params["meta"]["Size"] = str(params["meta"]["Resolution"]).replace("(", "").replace(")", "").replace(",", " * ") - metadata_list_str = metadata_list_str.strip() - info = f"""{params['Prompt']}\nNegative prompt: {params['Negative Prompt']}\n{metadata_list_str}""".strip() - return ImageGenerationInfo( - info, - ImageGenerationParams( - meta=params["meta"], - pos_prompt=parse_generation_parameters(info)["pos_prompt"], - extra={ - "lora": unique_by(lora_list, lambda x: x["name"].lower()) - } - ), - ) - - @classmethod - def test(clz, img: Image, file_path: str): - filename = os.path.basename(file_path) - try: - return get_log_file(file_path).find(filename) != -1 - except Exception as e: - return False diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/index.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/index.py deleted file mode 100644 index 86f2e6110b3c3586133f418bf1f8cc05991ea66d..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/index.py +++ /dev/null @@ -1,40 +0,0 @@ -import os -from scripts.iib.parsers.comfyui import ComfyUIParser -from scripts.iib.parsers.sd_webui import SdWebUIParser -from scripts.iib.parsers.fooocus import FooocusParser -from scripts.iib.parsers.novelai import NovelAIParser -from scripts.iib.parsers.model import ImageGenerationInfo -from scripts.iib.parsers.stable_swarm_ui import StableSwarmUIParser -from scripts.iib.parsers.invoke_ai import InvokeAIParser -from scripts.iib.parsers.sd_webui_stealth import SdWebUIStealthParser -from scripts.iib.logger import logger -from PIL import Image -from scripts.iib.plugin import plugin_insts -import traceback - - -def parse_image_info(image_path: str) -> ImageGenerationInfo: - enable_stealth_parser = os.getenv('IIB_ENABLE_SD_WEBUI_STEALTH_PARSER', 'false').lower() == 'true' - parsers = plugin_insts + [ - ComfyUIParser, - FooocusParser, - NovelAIParser, - InvokeAIParser, - StableSwarmUIParser, - ] - - if enable_stealth_parser: - parsers.append(SdWebUIStealthParser) - - parsers.append(SdWebUIParser) - with Image.open(image_path) as img: - for parser in parsers: - if parser.test(img, image_path): - try: - return parser.parse(img, image_path) - except Exception as e: - logger.error(e, stack_info=True) - print(e) - print(traceback.format_exc()) - return ImageGenerationInfo() - raise Exception("matched parser is not found") diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/invoke_ai.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/invoke_ai.py deleted file mode 100644 index 0765ca0da9f3d15aad567913fe68c236d96bf3fe..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/invoke_ai.py +++ /dev/null @@ -1,64 +0,0 @@ -from PIL import Image -import json - -from scripts.iib.parsers.model import ImageGenerationInfo, ImageGenerationParams -from scripts.iib.tool import omit, parse_generation_parameters, unique_by - -class InvokeAIParser: - def __init__(self): - pass - - @classmethod - def parse(clz, img: Image, file_path): - if not clz.test(img, file_path): - raise Exception("The input image does not match the current parser.") - raw_infos = json.loads(img.info["invokeai_graph"]) - core_metadata = {} - for key in raw_infos['nodes']: - if key.startswith("core_metadata"): - core_metadata = raw_infos['nodes'][key] - break - - positive_prompt = core_metadata.get("positive_prompt", "None") - negative_prompt = core_metadata.get("negative_prompt", "None") - steps = core_metadata.get("steps", 'Unknown') - cfg_scale = core_metadata.get("cfg_scale", 'Unknown') - model_name = core_metadata.get("model", {}).get("name", "Unknown") - model_hash = core_metadata.get("model", {}).get("hash", "Unknown") - - meta_kv = [ - f"Steps: {steps}", - "Source Identifier: InvokeAI", - f"CFG scale: {cfg_scale}", - f"Model: {model_name}", - f"Model hash: {model_hash}", - ] - - for key in core_metadata: - if key not in ["positive_prompt", "negative_prompt", "steps", "cfg_scale", "model"]: - val = core_metadata[key] - if bool(val): - meta_kv.append(f"{key}: {val}") - - meta = ", ".join(meta_kv) - meta_obj = {} - for kv in meta_kv: - k, v = kv.split(": ", 1) - meta_obj[k] = v - info = f"{positive_prompt}\nNegative prompt: {negative_prompt}\n{meta}" - - return ImageGenerationInfo( - info, - ImageGenerationParams( - meta=meta_obj, - pos_prompt=parse_generation_parameters(info)["pos_prompt"], - # extra=params - ), - ) - - @classmethod - def test(clz, img: Image, file_path: str): - try: - return 'invokeai_graph' in img.info - except Exception as e: - return False diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/model.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/model.py deleted file mode 100644 index 282048d8e4df6a38fb6b20b3ab235656a876229c..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/model.py +++ /dev/null @@ -1,18 +0,0 @@ -from scripts.iib.tool import omit - - -class ImageGenerationParams: - def __init__(self, meta: dict = {}, pos_prompt: list = [], extra: dict = {}) -> None: - self.meta = meta - self.pos_prompt = pos_prompt - self.extra = omit(extra, ["meta", "pos_prompt"]) - - -class ImageGenerationInfo: - def __init__( - self, - raw_info: str = "", - params: ImageGenerationParams = ImageGenerationParams(), - ): - self.raw_info = raw_info - self.params = params diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/novelai.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/novelai.py deleted file mode 100644 index 680e1cd03417f5e2e55d110533ec620e0cd8bb0b..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/novelai.py +++ /dev/null @@ -1,44 +0,0 @@ -import json -from PIL import Image - -from scripts.iib.tool import ( - parse_generation_parameters, - replace_punctuation -) -from scripts.iib.parsers.model import ImageGenerationInfo, ImageGenerationParams - - -class NovelAIParser: - def __init__(self): - pass - - @classmethod - def parse(clz, img, file_path): - info = "" - params = None - if not clz.test(img, file_path): - raise Exception("The input image does not match the current parser.") - data = json.loads(img.info.get('Comment')) - meta_kv = [f"""Steps: {data["steps"]}, Source Identifier: NovelAI"""] - for key, value in data.items(): - if key not in ["prompt"]: - value = replace_punctuation(str(value)) - meta_kv.append(f"{key}: {value}") - meta = ', '.join(meta_kv) - info = data["prompt"] + '\n' + meta - - params = parse_generation_parameters(info) - - return ImageGenerationInfo( - info, - ImageGenerationParams( - meta=params["meta"], pos_prompt=params["pos_prompt"] - ), - ) - - @classmethod - def test(clz, img: Image, file_path: str) -> bool: - try: - return img.info.get('Software') == 'NovelAI' and isinstance(img.info.get('Comment'), str) - except Exception: - return False diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/sd_webui.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/sd_webui.py deleted file mode 100644 index 88c11a51a3dc0509da33a572ffd427c4e271cd0c..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/sd_webui.py +++ /dev/null @@ -1,35 +0,0 @@ -from PIL import Image - -from scripts.iib.tool import ( - parse_generation_parameters, - read_sd_webui_gen_info_from_image, -) -from scripts.iib.parsers.model import ImageGenerationInfo, ImageGenerationParams - - -class SdWebUIParser: - def __init__(self): - pass - - @classmethod - def parse(clz, img: Image, file_path): - if not clz.test(img, file_path): - raise Exception("The input image does not match the current parser.") - info = read_sd_webui_gen_info_from_image(img, file_path) - if not info: - return ImageGenerationInfo() - info += ", Source Identifier: Stable Diffusion web UI" - params = parse_generation_parameters(info) - return ImageGenerationInfo( - info, - ImageGenerationParams( - meta=params["meta"], pos_prompt=params["pos_prompt"], extra=params - ), - ) - - @classmethod - def test(clz, img: Image, file_path: str): - try: - return True - except Exception as e: - return False diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/sd_webui_stealth.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/sd_webui_stealth.py deleted file mode 100644 index 668b716d5527ce97e25912ed9c611fce57c90c91..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/sd_webui_stealth.py +++ /dev/null @@ -1,157 +0,0 @@ -from PIL import Image -import gzip -from scripts.iib.tool import ( - parse_generation_parameters, - read_sd_webui_gen_info_from_image, -) -from scripts.iib.parsers.model import ImageGenerationInfo, ImageGenerationParams -# https://github.com/neggles/sd-webui-stealth-pnginfo/blob/main/scripts/stealth_pnginfo.py -def read_info_from_image_stealth(image, fast_check=False): - width, height = image.size - pixels = image.load() - - has_alpha = True if image.mode == 'RGBA' else False - mode = None - compressed = False - binary_data = '' - buffer_a = '' - buffer_rgb = '' - index_a = 0 - index_rgb = 0 - sig_confirmed = False - confirming_signature = True - reading_param_len = False - reading_param = False - read_end = False - cyc_count = 0 - for x in range(width): - for y in range(height): - if has_alpha: - r, g, b, a = pixels[x, y] - buffer_a += str(a & 1) - index_a += 1 - else: - r, g, b = pixels[x, y] - buffer_rgb += str(r & 1) - buffer_rgb += str(g & 1) - buffer_rgb += str(b & 1) - index_rgb += 3 - cyc_count += 1 - if fast_check and cyc_count> 256: - return False - if confirming_signature: - if index_a == len('stealth_pnginfo') * 8: - decoded_sig = bytearray(int(buffer_a[i:i + 8], 2) for i in - range(0, len(buffer_a), 8)).decode('utf-8', errors='ignore') - if decoded_sig in {'stealth_pnginfo', 'stealth_pngcomp'}: - confirming_signature = False - sig_confirmed = True - if fast_check: - return True - reading_param_len = True - mode = 'alpha' - if decoded_sig == 'stealth_pngcomp': - compressed = True - buffer_a = '' - index_a = 0 - else: - read_end = True - if fast_check: - return False - break - elif index_rgb == len('stealth_pnginfo') * 8: - decoded_sig = bytearray(int(buffer_rgb[i:i + 8], 2) for i in - range(0, len(buffer_rgb), 8)).decode('utf-8', errors='ignore') - if decoded_sig in {'stealth_rgbinfo', 'stealth_rgbcomp'}: - confirming_signature = False - sig_confirmed = True - if fast_check: - return True - reading_param_len = True - mode = 'rgb' - if decoded_sig == 'stealth_rgbcomp': - compressed = True - buffer_rgb = '' - index_rgb = 0 - elif reading_param_len: - if mode == 'alpha': - if index_a == 32: - param_len = int(buffer_a, 2) - reading_param_len = False - reading_param = True - buffer_a = '' - index_a = 0 - else: - if index_rgb == 33: - pop = buffer_rgb[-1] - buffer_rgb = buffer_rgb[:-1] - param_len = int(buffer_rgb, 2) - reading_param_len = False - reading_param = True - buffer_rgb = pop - index_rgb = 1 - elif reading_param: - if mode == 'alpha': - if index_a == param_len: - binary_data = buffer_a - read_end = True - break - else: - if index_rgb >= param_len: - diff = param_len - index_rgb - if diff < 0: - buffer_rgb = buffer_rgb[:diff] - binary_data = buffer_rgb - read_end = True - break - else: - # impossible - read_end = True - if fast_check: - return False - break - if read_end: - break - if sig_confirmed and binary_data != '': - if fast_check: - return True - # Convert binary string to UTF-8 encoded text - byte_data = bytearray(int(binary_data[i:i + 8], 2) for i in range(0, len(binary_data), 8)) - try: - if compressed: - decoded_data = gzip.decompress(bytes(byte_data)).decode('utf-8') - else: - decoded_data = byte_data.decode('utf-8', errors='ignore') - geninfo = decoded_data - except: - pass - return geninfo - - - -class SdWebUIStealthParser: - def __init__(self): - pass - - @classmethod - def parse(clz, img: Image, file_path): - if not clz.test(img, file_path): - raise Exception("The input image does not match the current parser.") - info = read_info_from_image_stealth(img) - if not info: - return ImageGenerationInfo() - info += ", Source Identifier: Stable Diffusion web UI(Stealth)" - params = parse_generation_parameters(info) - return ImageGenerationInfo( - info, - ImageGenerationParams( - meta=params["meta"], pos_prompt=params["pos_prompt"], extra=params - ), - ) - - @classmethod - def test(clz, img: Image, file_path: str): - try: - return bool(read_info_from_image_stealth(img, fast_check=True)) - except Exception as e: - return False diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/stable_swarm_ui.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/stable_swarm_ui.py deleted file mode 100644 index 8e41e043371f20b9c8844f3c9f143d0944c25a43..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/parsers/stable_swarm_ui.py +++ /dev/null @@ -1,61 +0,0 @@ -from PIL import Image - -import piexif -import piexif.helper -from scripts.iib.tool import parse_generation_parameters, replace_punctuation -from scripts.iib.parsers.model import ImageGenerationInfo, ImageGenerationParams -from PIL.ExifTags import TAGS -import json - - -class StableSwarmUIParser: - def __init__(self): - pass - - @classmethod - def get_exif_data(clz, image: Image) -> str: - items = image.info or {} - - if "exif" in items: - exif = piexif.load(items["exif"]) - exif_bytes = ( - (exif or {}).get("Exif", {}).get(piexif.ExifIFD.UserComment, b"") - ) - - unicode_start = exif_bytes.find(b"UNICODE") - if unicode_start == -1: - raise ValueError("'UNICODE' markup isn't found") - - unicode_data = exif_bytes[unicode_start + len("UNICODE") + 1 :] - geninfo = unicode_data.decode("utf-16") - return geninfo - - @classmethod - def parse(clz, img: Image, file_path): - if not clz.test(img, file_path): - raise Exception("The input image does not match the current parser.") - exif_data = json.loads(clz.get_exif_data(img))["sui_image_params"] - prompt = exif_data.pop("prompt") - negativeprompt = exif_data.pop("negativeprompt") - steps = exif_data.pop("steps") - meta_kv = [f"Steps: {steps}", "Source Identifier: StableSwarmUI"] - for key, value in exif_data.items(): - value = replace_punctuation(str(value)) - meta_kv.append(f"{key}: {value}") - meta = ", ".join(meta_kv) - info = "\n".join([prompt, f"Negative prompt: {negativeprompt}", meta]) - params = parse_generation_parameters(info) - return ImageGenerationInfo( - info, - ImageGenerationParams( - meta=params["meta"], pos_prompt=params["pos_prompt"], extra=params - ), - ) - - @classmethod - def test(clz, img: Image, file_path: str): - try: - exif = clz.get_exif_data(img) - return exif.find("sui_image_params") != -1 - except Exception as e: - return False diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/plugin.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/plugin.py deleted file mode 100644 index fbcb7ce4e1c3168835777cfaf46dc6e4c9188532..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/plugin.py +++ /dev/null @@ -1,36 +0,0 @@ -import os -import importlib.util -import sys -from scripts.iib.tool import cwd - -def load_plugins(plugin_dir): - if not os.path.exists(plugin_dir): - return [] - plugins = [] - for filename in os.listdir(plugin_dir): - main_module_path = os.path.join(plugin_dir, filename, 'main.py') - if not os.path.exists(main_module_path): - continue - spec = importlib.util.spec_from_file_location('main', main_module_path) - module = importlib.util.module_from_spec(spec) - spec.loader.exec_module(module) - plugins.append(module) - return plugins - -plugin_insts = [] -plugin_inst_map = {} -# 使用插件 -try: - plugin_dir = os.path.normpath(os.path.join(cwd, 'plugins')) - plugins = load_plugins(plugin_dir) - sys.path.append(plugin_dir) - for plugin in plugins: - try: - res = plugin.Main() - plugin_insts.append(res) - plugin_inst_map[res.source_identifier] = res - print(f'IIB loaded plugin: {res.name}') - except Exception as e: - print(f'Error running plugin {plugin.__class__.__name__}: {e}') -except Exception as e: - print(f'Error loading plugins: {e}') \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/seq.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/seq.py deleted file mode 100644 index a7c609c81c87b1bfa1f374ffb56aa49052cdb813..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/seq.py +++ /dev/null @@ -1,21 +0,0 @@ -class Seq: - def __init__(self, iterable): - self.iterable = iterable - - def map(self, func): - return Seq(func(item) for item in self.iterable) - - def filter(self, predicate): - return Seq(item for item in self.iterable if predicate(item)) - - def to_list(self): - return list(self.iterable) - - def __iter__(self): - return iter(self.iterable) - - def __repr__(self): - return f"Seq({repr(self.iterable)})" - -def seq(iterable): - return Seq(iterable) \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/tool.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/tool.py deleted file mode 100644 index 1779b56523486c4a7d793155066fc163f47b7b94..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/tool.py +++ /dev/null @@ -1,746 +0,0 @@ -import ctypes -from datetime import datetime -import os -import platform -import re -import tempfile -import subprocess -from typing import Dict, List -import sys -import piexif -import piexif.helper -import json -import zipfile -from PIL import Image -import shutil - - -sd_img_dirs = [ - "outdir_txt2img_samples", - "outdir_img2img_samples", - "outdir_save", - "outdir_extras_samples", - "outdir_grids", - "outdir_img2img_grids", - "outdir_samples", - "outdir_txt2img_grids", -] - - -is_dev = os.getenv("APP_ENV") == "dev" -is_nuitka = "__compiled__" in globals() -is_pyinstaller_bundle = bool(getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS')) -is_exe_ver = is_nuitka or is_pyinstaller_bundle - -cwd = os.getcwd() if is_exe_ver else os.path.normpath(os.path.join(__file__, "../../../")) -is_win = platform.system().lower().find("windows") != -1 - - - - -try: - from dotenv import load_dotenv - - load_dotenv(os.path.join(cwd, ".env")) -except Exception as e: - print(e) - - - -def backup_db_file(db_file_path): - - if not os.path.exists(db_file_path): - return - max_backup_count = int(os.environ.get('IIB_DB_FILE_BACKUP_MAX', '8')) - if max_backup_count < 1: - return - backup_folder = os.path.join(cwd,'iib_db_backup') - current_time = datetime.now() - timestamp = current_time.strftime('%Y-%m-%d %H-%M-%S') - backup_filename = f"iib.db_{timestamp}" - os.makedirs(backup_folder, exist_ok=True) - backup_filepath = os.path.join(backup_folder, backup_filename) - shutil.copy2(db_file_path, backup_filepath) - backup_files = os.listdir(backup_folder) - pattern = r"iib\.db_(\d{4}-\d{2}-\d{2} \d{2}-\d{2}-\d{2})" - backup_files_with_time = [(f, re.search(pattern, f).group(1)) for f in backup_files if re.search(pattern, f)] - sorted_backup_files = sorted(backup_files_with_time, key=lambda x: datetime.strptime(x[1], '%Y-%m-%d %H-%M-%S')) - - if len(sorted_backup_files) > max_backup_count: - files_to_remove_count = len(sorted_backup_files) - max_backup_count - for i in range(files_to_remove_count): - file_to_remove = os.path.join(backup_folder, sorted_backup_files[i][0]) - os.remove(file_to_remove) - - print(f"\033[92mIIB Database file has been successfully backed up to the backup folder.\033[0m") - -def get_sd_webui_conf(**kwargs): - try: - from modules.shared import opts - - return opts.data - except: - pass - try: - sd_conf_path = kwargs.get("sd_webui_config") - with codecs.open(sd_conf_path, "r", "utf-8") as f: - obj = json.loads(f.read()) - if kwargs.get("sd_webui_path_relative_to_config"): - for dir in sd_img_dirs: - if obj[dir] and not os.path.isabs(obj[dir]): - obj[dir] = os.path.normpath( - os.path.join(sd_conf_path, "../", obj[dir]) - ) - return obj - except: - pass - return {} - -def normalize_paths(paths: List[str], base = cwd): - """ - Normalize a list of paths, ensuring that each path is an absolute path with no redundant components. - - Args: - paths (List[str]): A list of paths to be normalized. - - Returns: - List[str]: A list of normalized paths. - """ - res: List[str] = [] - for path in paths: - # Skip empty or blank paths - if not path or len(path.strip()) == 0: - continue - # If the path is already an absolute path, use it as is - if os.path.isabs(path): - abs_path = path - # Otherwise, make the path absolute by joining it with the current working directory - else: - abs_path = os.path.join(base, path) - # If the absolute path exists, add it to the result after normalizing it - if os.path.exists(abs_path): - res.append(os.path.normpath(abs_path)) - return res - -def to_abs_path(path): - if not os.path.isabs(path): - path = os.path.join(os.getcwd(), path) - return os.path.normpath(path) - - -def get_valid_img_dirs( - conf, - keys=sd_img_dirs, -): - # 获取配置项 - paths = [conf.get(key) for key in keys] - - # 判断路径是否有效并转为绝对路径 - abs_paths = [] - for path in paths: - if not path or len(path.strip()) == 0: - continue - if os.path.isabs(path): # 已经是绝对路径 - abs_path = path - else: # 转为绝对路径 - abs_path = os.path.join(os.getcwd(), path) - if os.path.exists(abs_path): # 判断路径是否存在 - abs_paths.append(os.path.normpath(abs_path)) - - return abs_paths - - -def human_readable_size(size_bytes): - """ - Converts bytes to a human-readable format. - """ - # define the size units - units = ("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB") - # calculate the logarithm of the input value with base 1024 - size = int(size_bytes) - if size == 0: - return "0B" - i = 0 - while size >= 1024 and i < len(units) - 1: - size /= 1024 - i += 1 - # round the result to two decimal points and return as a string - return "{:.2f} {}".format(size, units[i]) - - -def get_windows_drives(): - drives = [] - bitmask = ctypes.windll.kernel32.GetLogicalDrives() - for letter in range(65, 91): - if bitmask & 1: - drive_name = chr(letter) + ":/" - drives.append(drive_name) - bitmask >>= 1 - return drives - - -pattern = re.compile(r"(\d+\.?\d*)([KMGT]?B)", re.IGNORECASE) - - -def convert_to_bytes(file_size_str): - match = re.match(pattern, file_size_str) - if match: - size_str, unit_str = match.groups() - size = float(size_str) - unit = unit_str.upper() - if unit == "KB": - size *= 1024 - elif unit == "MB": - size *= 1024**2 - elif unit == "GB": - size *= 1024**3 - elif unit == "TB": - size *= 1024**4 - return int(size) - else: - raise ValueError(f"Invalid file size string '{file_size_str}'") - -def get_video_type(file_path): - video_extensions = ['.mp4', '.m4v', '.avi', '.mkv', '.mov', '.wmv', '.flv', '.ts'] - file_extension = file_path[file_path.rfind('.'):].lower() - - if file_extension in video_extensions: - return file_extension[1:] - else: - return None - -def is_image_file(filename: str) -> bool: - if not isinstance(filename, str): - return False - - extensions = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp', '.avif', '.jpe'] - extension = filename.split('.')[-1].lower() - return f".{extension}" in extensions - -def is_video_file(filename: str) -> bool: - return isinstance(get_video_type(filename), str) - -def is_valid_media_path(path): - """ - 判断给定的路径是否是图像文件 - """ - abs_path = os.path.abspath(path) # 转为绝对路径 - if not os.path.exists(abs_path): # 判断路径是否存在 - return False - if not os.path.isfile(abs_path): # 判断是否是文件 - return False - return is_image_file(abs_path) or is_video_file(abs_path) - -def is_media_file(file_path): - return is_image_file(file_path) or is_video_file(file_path) - -def create_zip_file(file_paths: List[str], zip_file_name: str, compress = False): - """ - 将文件打包成一个压缩包 - - Args: - file_paths: 文件路径的列表 - zip_file_name: 压缩包的文件名 - - Returns: - 无返回值 - """ - with zipfile.ZipFile(zip_file_name, 'w', zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED) as zip_file: - for file_path in file_paths: - if os.path.isfile(file_path): - zip_file.write(file_path, os.path.basename(file_path)) - elif os.path.isdir(file_path): - for root, _, files in os.walk(file_path): - for file in files: - full_path = os.path.join(root, file) - zip_file.write(full_path, os.path.relpath(full_path, file_path)) - -def get_temp_path(): - """获取跨平台的临时文件目录路径""" - temp_path = None - try: - # 尝试获取系统环境变量中的临时文件目录路径 - temp_path = ( - os.environ.get("TMPDIR") or os.environ.get("TMP") or os.environ.get("TEMP") - ) - except Exception as e: - print("获取系统环境变量临时文件目录路径失败,错误信息:", e) - - # 如果系统环境变量中没有设置临时文件目录路径,则使用 Python 的 tempfile 模块创建临时文件目录 - if not temp_path: - try: - temp_path = tempfile.gettempdir() - except Exception as e: - print("使用 Python 的 tempfile 模块创建临时文件目录失败,错误信息:", e) - - # 确保临时文件目录存在 - if not os.path.exists(temp_path): - try: - os.makedirs(temp_path) - except Exception as e: - print("创建临时文件目录失败,错误信息:", e) - - return temp_path - - -_temp_path = get_temp_path() - - -def get_cache_dir(): - return os.getenv("IIB_CACHE_DIR") or _temp_path - -def get_secret_key_required(): - try: - from modules.shared import cmd_opts - return bool(cmd_opts.gradio_auth) - except: - return False - -is_secret_key_required = get_secret_key_required() - -def get_enable_access_control(): - ctrl = os.getenv("IIB_ACCESS_CONTROL") - if ctrl == "enable": - return True - if ctrl == "disable": - return False - try: - from modules.shared import cmd_opts - - return ( - cmd_opts.share or cmd_opts.ngrok or cmd_opts.listen or cmd_opts.server_name - ) - except: - pass - return False - - -enable_access_control = get_enable_access_control() - - -def get_locale(): - import locale - - env_lang = os.getenv("IIB_SERVER_LANG") - if env_lang in ["zh", "en"]: - return env_lang - lang, _ = locale.getdefaultlocale() - return "zh" if lang and lang.startswith("zh") else "en" - - -locale = get_locale() - - -def get_formatted_date(timestamp: float) -> str: - return datetime.fromtimestamp(timestamp).strftime("%Y-%m-%d %H:%M:%S") - - -def get_modified_date(folder_path: str): - return get_formatted_date(os.path.getmtime(folder_path)) - - -def get_created_date(folder_path: str): - return get_formatted_date(os.path.getctime(folder_path)) - -is_st_birthtime_available = True - -def get_created_date_by_stat(stat: os.stat_result): - global is_st_birthtime_available - try: - if is_st_birthtime_available: - return get_formatted_date(stat.st_birthtime) - else: - return get_formatted_date(stat.st_ctime) - except Exception as e: - is_st_birthtime_available = False - return get_formatted_date(stat.st_ctime) - -def birthtime_sort_key_fn(x): - stat = x.stat() - global is_st_birthtime_available - try: - if is_st_birthtime_available and hasattr(stat, "st_birthtime"): - return stat.st_birthtime - else: - return stat.st_ctime - except: - is_st_birthtime_available = False - return stat.st_ctime - -def unique_by(seq, key_func=lambda x: x): - seen = set() - return [x for x in seq if not (key := key_func(x)) in seen and not seen.add(key)] - - -def find(lst, comparator): - return next((item for item in lst if comparator(item)), None) - - -def findIndex(lst, comparator): - return next((i for i, item in enumerate(lst) if comparator(item)), -1) - -def unquote(text): - if len(text) == 0 or text[0] != '"' or text[-1] != '"': - return text - - try: - return json.loads(text) - except Exception: - return text - -def get_img_geninfo_txt_path(path: str): - txt_path = re.sub(r"\.\w+$", ".txt", path) - if os.path.exists(txt_path): - return txt_path - -def is_img_created_by_comfyui(img: Image): - prompt = img.info.get('prompt') - return prompt and (img.info.get('workflow') or ("class_type" in prompt)) # ermanitu - -def is_img_created_by_comfyui_with_webui_gen_info(img: Image): - return is_img_created_by_comfyui(img) and img.info.get('parameters') - -def get_comfyui_exif_data(img: Image): - prompt = img.info.get('prompt') - if not prompt: - return {} - meta_key = '3' - data: Dict[str, any] = json.loads(prompt) - for i in data.keys(): - try: - if data[i]["class_type"].startswith("KSampler"): - meta_key = i - break - except: - pass - meta = {} - KSampler_entry = data[meta_key]["inputs"] - #print(KSampler_entry) # for testing - - # As a workaround to bypass parsing errors in the parser. - # https://github.com/jiw0220/stable-diffusion-image-metadata/blob/00b8d42d4d1a536862bba0b07c332bdebb2a0ce5/src/index.ts#L130 - meta["Steps"] = KSampler_entry.get("steps", "Unknown") - meta["Sampler"] = KSampler_entry["sampler_name"] - meta["Model"] = data[KSampler_entry["model"][0]]["inputs"].get("ckpt_name") - meta["Source Identifier"] = "ComfyUI" - def get_text_from_clip(idx: str) : - inputs = data[idx]["inputs"] - text = inputs["text"] if "text" in inputs else inputs["t5xxl"] - if isinstance(text, list): # type:CLIPTextEncode (NSP) mode:Wildcards - text = data[text[0]]["inputs"]["text"] - return text.strip() - - in_node = data[str(KSampler_entry["positive"][0])] - if in_node["class_type"] != "FluxGuidance": - pos_prompt = get_text_from_clip(KSampler_entry["positive"][0]) - else: - pos_prompt = get_text_from_clip(in_node["inputs"]["conditioning"][0]) - - neg_prompt = get_text_from_clip(KSampler_entry["negative"][0]) - pos_prompt_arr = unique_by(parse_prompt(pos_prompt)["pos_prompt"]) - return { - "meta": meta, - "pos_prompt": pos_prompt_arr, - "pos_prompt_raw": pos_prompt, - "neg_prompt_raw" : neg_prompt - } - -def comfyui_exif_data_to_str(data): - res = data["pos_prompt_raw"] + "\nNegative prompt: " + data["neg_prompt_raw"] + "\n" - meta_arr = [] - for k,v in data["meta"].items(): - meta_arr.append(f'{k}: {v}') - return res + ", ".join(meta_arr) - -def read_sd_webui_gen_info_from_image(image: Image, path="") -> str: - """ - Reads metadata from an image file. - - Args: - image (PIL.Image.Image): The image object to read metadata from. - path (str): Optional. The path to the image file. Used to look for a .txt file with additional metadata. - - Returns: - str: The metadata as a string. - """ - items = image.info or {} - geninfo = items.pop("parameters", None) - if "exif" in items: - exif = piexif.load(items["exif"]) - exif_comment = (exif or {}).get("Exif", {}).get(piexif.ExifIFD.UserComment, b"") - - try: - exif_comment = piexif.helper.UserComment.load(exif_comment) - except ValueError: - exif_comment = exif_comment.decode("utf8", errors="ignore") - - if exif_comment: - items["exif comment"] = exif_comment - geninfo = exif_comment - - if not geninfo and path: - try: - txt_path = get_img_geninfo_txt_path(path) - if txt_path: - with open(txt_path) as f: - geninfo = f.read() - except Exception as e: - pass - - return geninfo - - -re_param_code = r'\s*([\w ]+):\s*("(?:\\"[^,]|\\"|\\|[^\"])+"|[^,]*)(?:,|$)' -re_param = re.compile(re_param_code) -re_imagesize = re.compile(r"^(\d+)x(\d+)$") -re_lora_prompt = re.compile("", re.IGNORECASE) -re_lora_extract = re.compile(r"([\w_\s.]+)(?:\d+)?") -re_lyco_prompt = re.compile("", re.IGNORECASE) -re_parens = re.compile(r"[\\/\[\](){}]+") -re_lora_white_symbol= re.compile(r">\s+") - - -def lora_extract(lora: str): - """ - 提取yoshino yoshino(2a79aa5adc4a) - """ - res = re_lora_extract.match(lora) - return res.group(1) if res else lora - - -def parse_prompt(x: str): - x = re.sub(r'\sBREAK\s', ' , BREAK , ', x) - x = re.sub(re_lora_white_symbol, "> , ", x) - x = x.replace(",", ",").replace("-", " ").replace("_", " ") - x = re.sub(re_parens, "", x) - tag_list = [x.strip() for x in x.split(",")] - res = [] - lora_list = [] - lyco_list = [] - for tag in tag_list: - if len(tag) == 0: - continue - idx_colon = tag.find(":") - if idx_colon != -1: - if re.search(re_lora_prompt, tag): - lora_res = re.search(re_lora_prompt, tag) - lora_list.append( - {"name": lora_res.group(1), "value": float(lora_res.group(2))} - ) - elif re.search(re_lyco_prompt, tag): - lyco_res = re.search(re_lyco_prompt, tag) - lyco_list.append( - {"name": lyco_res.group(1), "value": float(lyco_res.group(2))} - ) - else: - tag = tag[0:idx_colon] - if len(tag): - res.append(tag.lower()) - else: - res.append(tag.lower()) - return {"pos_prompt": res, "lora": lora_list, "lyco": lyco_list} - - -def parse_generation_parameters(x: str): - res = {} - prompt = "" - negative_prompt = "" - done_with_prompt = False - if not x: - return {"meta": {}, "pos_prompt": [], "lora": [], "lyco": []} - - *lines, lastline = x.strip().split("\n") - if len(re_param.findall(lastline)) < 3: - lines.append(lastline) - lastline = "" - if len(lines) == 1 and lines[0].startswith("Postprocess"): # 把上面改成<2应该也可以,当时不敢动 - lastline = lines[ - 0 - ] # 把Postprocess upscale by: 4, Postprocess upscaler: R-ESRGAN 4x+ Anime6B 推到res解析 - lines = [] - for i, line in enumerate(lines): - line = line.strip() - if line.startswith("Negative prompt:"): - done_with_prompt = True - line = line[16:].strip() - - if done_with_prompt: - negative_prompt += ("" if negative_prompt == "" else "\n") + line - else: - prompt += ("" if prompt == "" else "\n") + line - - for k, v in re_param.findall(lastline): - try: - if len(v) == 0: - res[k] = v - continue - if v[0] == '"' and v[-1] == '"': - v = unquote(v) - - m = re_imagesize.match(v) - if m is not None: - res[f"{k}-1"] = m.group(1) - res[f"{k}-2"] = m.group(2) - else: - res[k] = v - except Exception: - print(f"Error parsing \"{k}: {v}\"") - - prompt_parse_res = parse_prompt(prompt) - lora = prompt_parse_res["lora"] - for k in res: - k_s = str(k) - if k_s.startswith("AddNet Module") and str(res[k]).lower() == "lora": - model = res[k_s.replace("Module", "Model")] - value = res.get(k_s.replace("Module", "Weight A"), "1") - lora.append({"name": lora_extract(model), "value": float(value)}) - return { - "meta": res, - "pos_prompt": unique_by(prompt_parse_res["pos_prompt"]), - "lora": unique_by(lora, lambda x: x["name"].lower()), - "lyco": unique_by(prompt_parse_res["lyco"], lambda x: x["name"].lower()), - } - - -tags_translate: Dict[str, str] = {} -try: - import codecs - - with codecs.open(os.path.join(cwd, "tags-translate.csv"), "r", "utf-8") as tag: - tags_translate_str = tag.read() - for line in tags_translate_str.splitlines(): - en, mapping = line.split(",") - tags_translate[en.strip()] = mapping.strip() -except Exception as e: - pass - - -def open_folder(folder_path, file_path=None): - folder = os.path.realpath(folder_path) - if file_path: - file = os.path.join(folder, file_path) - if os.name == "nt": - subprocess.run(["explorer", "/select,", file]) - elif sys.platform == "darwin": - subprocess.run(["open", "-R", file]) - elif os.name == "posix": - subprocess.run(["xdg-open", file]) - else: - if os.name == "nt": - subprocess.run(["explorer", folder]) - elif sys.platform == "darwin": - subprocess.run(["open", folder]) - elif os.name == "posix": - subprocess.run(["xdg-open", folder]) - - -def open_file_with_default_app(file_path): - system = platform.system() - if system == 'Darwin': # macOS - subprocess.call(['open', file_path]) - elif system == 'Windows': # Windows - subprocess.call(file_path, shell=True) - elif system == 'Linux': # Linux - subprocess.call(['xdg-open', file_path]) - else: - raise OSError(f'Unsupported operating system: {system}') - -def omit(d, keys): - return {k: v for k, v in d.items() if k not in keys} - - -def get_current_commit_hash(): - try: - result = subprocess.run(['git', 'rev-parse', 'HEAD'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, cwd=cwd) - if result.returncode == 0: - return result.stdout.strip() - else: - return None - except Exception: - return None - -def get_current_tag(): - try: - result = subprocess.run(['git', 'describe', '--tags', '--abbrev=0'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, cwd=cwd) - if result.returncode == 0: - return result.stdout.strip() - else: - return None - except Exception: - return None - - -def replace_punctuation(input_string): - return input_string.replace(',', ' ').replace('\n', ' ') - - -def case_insensitive_get(d, key, default=None): - for k, v in d.items(): - if k.lower() == key.lower(): - return v - return default - -def build_sd_webui_style_img_gen_info(prompt, negative_prompt = 'None', meta = {}): - res = f"{prompt}\nNegative prompt: {negative_prompt}\n" - for k, v in meta.items(): - res += f"{k}: {v}, " - return res - -def map_dict_keys(value_dict, map_dict=None): - if map_dict is None: - return value_dict - else: - return {map_dict.get(key, key): value for key, value in value_dict.items()} - - -def get_file_info_by_path(fullpath: str, is_under_scanned_path = True): - stat = os.stat(fullpath) - date = get_formatted_date(stat.st_mtime) - name = os.path.basename(fullpath) - created_time = get_created_date_by_stat(stat) - if os.path.isfile(fullpath): - bytes = stat.st_size - size = human_readable_size(bytes) - return { - "type": "file", - "date": date, - "size": size, - "name": name, - "bytes": bytes, - "created_time": created_time, - "fullpath": fullpath, - "is_under_scanned_path": is_under_scanned_path, - } - - elif os.path.isdir(fullpath): - return { - "type": "dir", - "date": date, - "created_time": created_time, - "size": "-", - "name": name, - "is_under_scanned_path": is_under_scanned_path, - "fullpath": fullpath, - } - return {} - - -def get_frame_at_second(video_path, second): - import av - with av.open(video_path) as container: - time_base = container.streams.video[0].time_base - frame_container_pts = round( second / time_base) - - container.seek(frame_container_pts, backward=True, stream=container.streams.video[0]) - frame = next(container.decode(video=0)) - return frame - -def get_data_file_path(filename): - if hasattr(sys, '_MEIPASS'): - # Running in a PyInstaller bundle - base_path = os.path.join(sys._MEIPASS) - else: - # Running in a normal Python environment - base_path = os.path.join(os.path.dirname(__file__)) - - return os.path.normpath(os.path.join(base_path, "../../", filename)) \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib/video_cover_gen.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib/video_cover_gen.py deleted file mode 100644 index bc2fd8e8cd72cf0da18030d4497caee5ef8d5597..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib/video_cover_gen.py +++ /dev/null @@ -1,59 +0,0 @@ -import hashlib -import os -from typing import List -from scripts.iib.tool import get_formatted_date, get_cache_dir, is_video_file -from concurrent.futures import ThreadPoolExecutor -import time - - -def generate_video_covers(dirs,verbose=False): - start_time = time.time() - import imageio.v3 as iio - - cache_base_dir = get_cache_dir() - - def process_video(item): - if item.is_dir(): - verbose and print(f"Processing directory: {item.path}") - for sub_item in os.scandir(item.path): - process_video(sub_item) - return - if not os.path.exists(item.path) or not is_video_file(item.path): - return - - try: - path = os.path.normpath(item.path) - stat = item.stat() - t = get_formatted_date(stat.st_mtime) - hash_dir = hashlib.md5((path + t).encode("utf-8")).hexdigest() - cache_dir = os.path.join(cache_base_dir, "iib_cache", "video_cover", hash_dir) - cache_path = os.path.join(cache_dir, "cover.webp") - - # 如果缓存文件存在,则直接返回该文件 - if os.path.exists(cache_path): - print(f"Video cover already exists: {path}") - return - - frame = iio.imread( - path, - index=16, - plugin="pyav", - ) - - os.makedirs(cache_dir, exist_ok=True) - iio.imwrite(cache_path, frame, extension=".webp") - verbose and print(f"Video cover generated: {path}") - except Exception as e: - print(f"Error generating video cover: {path}") - print(e) - - with ThreadPoolExecutor() as executor: - for dir_path in dirs: - folder_listing: List[os.DirEntry] = os.scandir(dir_path) - for item in folder_listing: - executor.submit(process_video, item) - - print("Video covers generated successfully.") - end_time = time.time() - execution_time = end_time - start_time - print(f"Execution time: {execution_time} seconds") \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/scripts/iib_setup.py b/extensions/sd-webui-infinite-image-browsing/scripts/iib_setup.py deleted file mode 100644 index 930aaef034f7540be26d4c7e66fd30bbffa9c77e..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/scripts/iib_setup.py +++ /dev/null @@ -1,86 +0,0 @@ -from scripts.iib.api import infinite_image_browsing_api, send_img_path -from modules import script_callbacks, generation_parameters_copypaste as send -from scripts.iib.tool import locale -from scripts.iib.tool import read_sd_webui_gen_info_from_image -from PIL import Image -from scripts.iib.logger import logger - -from fastapi import FastAPI -import gradio as gr -from modules.shared import cmd_opts - -""" -api函数声明和启动分离方便另外一边被外部调用 -""" - - -def on_ui_tabs(): - - with gr.Blocks(analytics_enabled=False) as view: - with gr.Row(): - with gr.Column(): - gr.HTML("", elem_id="iib_top") - gr.HTML("error", elem_id="infinite_image_browsing_container_wrapper") - # 以下是使用2个组件模拟粘贴过程 - img = gr.Image( - type="pil", - elem_id="iib_hidden_img", - ) - - def on_img_change(): - send_img_path["value"] = "" # 真正收到图片改变才允许放行 - - img.change(on_img_change) - - img_update_trigger = gr.Button( - "button", elem_id="iib_hidden_img_update_trigger" - ) - - # 修改文本和图像,等待修改完成后前端触发粘贴按钮 - # 有时在触发后收不到回调,可能是在解析params。txt时除了问题删除掉就行了 - def img_update_func(): - try: - path = send_img_path.get("value") - # logger.info("img_update_func %s", path) - img = Image.open(path) - info = read_sd_webui_gen_info_from_image(img, path) - return img, info - except Exception as e: - logger.error("img_update_func err %s",e) - - img_file_info = gr.Textbox(elem_id="iib_hidden_img_file_info") - img_update_trigger.click(img_update_func, outputs=[img, img_file_info]) - for tab in ["txt2img", "img2img", "inpaint", "extras"]: - btn = gr.Button(f"Send to {tab}", elem_id=f"iib_hidden_tab_{tab}") - # 注册粘贴 - send.register_paste_params_button( - send.ParamBinding( - paste_button=btn, - tabname=tab, - source_image_component=img, - source_text_component=img_file_info, - ) - ) - - return ( - ( - view, - "无边图像浏览" if locale == "zh" else "Infinite image browsing", - "infinite-image-browsing", - ), - ) - -def on_app_started(_: gr.Blocks, app: FastAPI) -> None: - # 第一个参数是SD-WebUI传进来的gr.Blocks,但是不需要使用 - DEFAULT_BASE = "/infinite_image_browsing" - fe_public_path = None - subpath = vars(cmd_opts).get("subpath") - - if subpath: - base = "/" + subpath + "/" + DEFAULT_BASE - fe_public_path = base.replace('//', '/') - infinite_image_browsing_api(app, fe_public_path = fe_public_path) - - -script_callbacks.on_ui_tabs(on_ui_tabs) -script_callbacks.on_app_started(on_app_started) diff --git a/extensions/sd-webui-infinite-image-browsing/style.css b/extensions/sd-webui-infinite-image-browsing/style.css deleted file mode 100644 index 3a937d686bd254d8c2ae8733515db7dfe1f8b008..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/style.css +++ /dev/null @@ -1,3 +0,0 @@ -[id^="iib_hidden_"] { - display: none !important; -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/.eslintrc.cjs b/extensions/sd-webui-infinite-image-browsing/vue/.eslintrc.cjs deleted file mode 100644 index 89d44a57eeb9a34541cea9f4f469657222c64ed1..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/.eslintrc.cjs +++ /dev/null @@ -1,31 +0,0 @@ -/* eslint-disable no-undef */ - -// require('@rushstack/eslint-patch/modern-module-resolution') - -module.exports = { - ignorePatterns: [ - 'dist/', - // 其他忽略规则 - ], - root: true, - extends: [ - 'plugin:vue/vue3-essential', - 'eslint:recommended', - '@vue/eslint-config-typescript', - ], - parserOptions: { - ecmaVersion: 'latest' - }, - rules: { - 'vue/multi-word-component-names': ['error', { ignores: ['index', 'index.vue'] }], - 'no-console': 'off', - 'quote-props': ['error', 'as-needed'], - quotes: ['error', 'single'], - 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/no-explicit-any': 'off', - indent: 'off', - '@typescript-eslint/indent': ['error', 2] - } -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/.gitignore b/extensions/sd-webui-infinite-image-browsing/vue/.gitignore deleted file mode 100644 index 234f2f1beb6f684af9f47861d3a04652e31f23e4..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -*.local - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/extensions/sd-webui-infinite-image-browsing/vue/.prettierrc.json b/extensions/sd-webui-infinite-image-browsing/vue/.prettierrc.json deleted file mode 100644 index 66e23359c3dabfe3929b4e2fa049c41037afb15f..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/.prettierrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/prettierrc", - "semi": false, - "tabWidth": 2, - "singleQuote": true, - "printWidth": 100, - "trailingComma": "none" -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/.vscode/extensions.json b/extensions/sd-webui-infinite-image-browsing/vue/.vscode/extensions.json deleted file mode 100644 index c0a6e5a48110e472b09d68afa2a030af6ab3208b..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/README.md b/extensions/sd-webui-infinite-image-browsing/vue/README.md deleted file mode 100644 index 4b8e0d35c8d9f86718ce422ed43a8729586ead2b..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/README.md +++ /dev/null @@ -1,47 +0,0 @@ -# vue - -This template should help get you started developing with Vue 3 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). - -## Type Support for `.vue` Imports in TS - -TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. - -If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps: - -1. Disable the built-in TypeScript Extension - 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette - 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)` -2. Reload the VSCode window by running `Developer: Reload Window` from the command palette. - -## Customize configuration - -See [Vite Configuration Reference](https://vitejs.dev/config/). - -## Project Setup - -```sh -yarn -``` - -### Compile and Hot-Reload for Development - -```sh -yarn dev -``` - - -### Compile and Minify for Production, Deliver to Production Mode Resources - -```sh -yarn build -``` - -### Lint with [ESLint](https://eslint.org/) - -```sh -yarn lint -``` diff --git a/extensions/sd-webui-infinite-image-browsing/vue/build.ts b/extensions/sd-webui-infinite-image-browsing/vue/build.ts deleted file mode 100644 index 7854c3acff230297b3eba6d1eb86957badd4b883..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/build.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { execSync } from 'child_process' -import { readFile, rm, writeFile } from 'fs/promises' -import { exit } from 'process' - -const main = async () => { - try { - console.log(execSync('vue-tsc && vite build').toString('utf8')) - } catch (error: any) { - if (error.stdout && error.stderr) { - console.log(error.stdout.toString('utf8')) - console.error(error.stderr.toString('utf8')) - exit(2) - } else { - throw error - } - } - try { - await rm('../javascript/index.js') - // eslint-disable-next-line no-empty - } catch (error) { - - } - const html = (await readFile('dist/index.html')).toString() - const js = (await readFile('index.tpl.js')).toString().replace('__built_html__', html) - await writeFile('../javascript/index.js', js) -} -main() diff --git a/extensions/sd-webui-infinite-image-browsing/vue/components.d.ts b/extensions/sd-webui-infinite-image-browsing/vue/components.d.ts deleted file mode 100644 index dbf049d408e5a0d58f5d4846315dd5dbf81e441d..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/components.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* eslint-disable */ -/* prettier-ignore */ -// @ts-nocheck -// Generated by unplugin-vue-components -// Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' - -export {} - -declare module '@vue/runtime-core' { - export interface GlobalComponents { - AAlert: typeof import('ant-design-vue/es')['Alert'] - ABadge: typeof import('ant-design-vue/es')['Badge'] - ABreadcrumb: typeof import('ant-design-vue/es')['Breadcrumb'] - ABreadcrumbItem: typeof import('ant-design-vue/es')['BreadcrumbItem'] - AButton: typeof import('ant-design-vue/es')['Button'] - ACheckbox: typeof import('ant-design-vue/es')['Checkbox'] - ACol: typeof import('ant-design-vue/es')['Col'] - ACollapse: typeof import('ant-design-vue/es')['Collapse'] - ACollapsePanel: typeof import('ant-design-vue/es')['CollapsePanel'] - ADrawer: typeof import('ant-design-vue/es')['Drawer'] - ADropdown: typeof import('ant-design-vue/es')['Dropdown'] - AForm: typeof import('ant-design-vue/es')['Form'] - AFormItem: typeof import('ant-design-vue/es')['FormItem'] - AImage: typeof import('ant-design-vue/es')['Image'] - AInput: typeof import('ant-design-vue/es')['Input'] - AInputGroup: typeof import('ant-design-vue/es')['InputGroup'] - AInputNumber: typeof import('ant-design-vue/es')['InputNumber'] - AMenu: typeof import('ant-design-vue/es')['Menu'] - AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider'] - AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] - AModal: typeof import('ant-design-vue/es')['Modal'] - ARadioButton: typeof import('ant-design-vue/es')['RadioButton'] - ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] - ARow: typeof import('ant-design-vue/es')['Row'] - ASelect: typeof import('ant-design-vue/es')['Select'] - ASkeleton: typeof import('ant-design-vue/es')['Skeleton'] - ASlider: typeof import('ant-design-vue/es')['Slider'] - ASpin: typeof import('ant-design-vue/es')['Spin'] - ASubMenu: typeof import('ant-design-vue/es')['SubMenu'] - ASwitch: typeof import('ant-design-vue/es')['Switch'] - ATabPane: typeof import('ant-design-vue/es')['TabPane'] - ATabs: typeof import('ant-design-vue/es')['Tabs'] - ATag: typeof import('ant-design-vue/es')['Tag'] - ATextarea: typeof import('ant-design-vue/es')['Textarea'] - ATooltip: typeof import('ant-design-vue/es')['Tooltip'] - BaseFileListInfo: typeof import('./src/components/BaseFileListInfo.vue')['default'] - ChangeIndicator: typeof import('./src/components/ChangeIndicator.vue')['default'] - ContextMenu: typeof import('./src/components/ContextMenu.vue')['default'] - FileItem: typeof import('./src/components/FileItem.vue')['default'] - HistoryRecord: typeof import('./src/components/HistoryRecord.vue')['default'] - MultiSelectKeep: typeof import('./src/components/MultiSelectKeep.vue')['default'] - NumInput: typeof import('./src/components/numInput.vue')['default'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] - } -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/Checkbox-5fa7cbf6.js b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/Checkbox-5fa7cbf6.js deleted file mode 100644 index a8a352ed260cfed00fce25692d2094c2e0ecfb39..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/Checkbox-5fa7cbf6.js +++ /dev/null @@ -1 +0,0 @@ -import{d as E,bx as $,r as f,m as M,_ as T,a as c,al as W,h as m,c as v,P as z}from"./index-5b5fdd56.js";var G=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],H={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:z.any,required:Boolean};const L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(H,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,x=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();M(function(){return a.checked},function(){o.value=a.checked}),x({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),g=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,_=T(a,G),q=t.class,D=t.onFocus,j=t.onBlur,w=t.onKeydown,A=t.onKeypress,F=t.onKeyup,y=c(c({},_),t),O=Object.keys(y).reduce(function(k,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(k[u]=y[u]),k},{}),R=W(e,q,(n={},m(n,"".concat(e,"-checked"),o.value),m(n,"".concat(e,"-disabled"),b),n)),V=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},O),{},{onChange:g,onClick:C,onFocus:D,onBlur:j,onKeydown:w,onKeypress:A,onKeyup:F,required:N});return v("span",{class:R},[v("input",c({ref:i},V),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V}; diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/FileItem-b2542180.js b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/FileItem-b2542180.js deleted file mode 100644 index 9135125e444389c56f0356ee303500b8c0f6f0ac..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/FileItem-b2542180.js +++ /dev/null @@ -1,3 +0,0 @@ -var vt=Object.defineProperty;var mt=(i,t,e)=>t in i?vt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var ee=(i,t,e)=>(mt(i,typeof t!="symbol"?t+"":t,e),e);import{d as X,u as Ye,E as V,al as qe,h as K,c as A,ao as yt,d1 as bt,r as j,bc as At,X as H,c$ as St,P as $e,c5 as kt,A as W,d2 as ce,L as ge,ak as ke,bf as It,cQ as _t,bW as Ct,d3 as wt,cB as Et,d4 as Tt,d5 as Ge,bw as Pt,d6 as ae,d7 as Ot,aF as Nt,d8 as Dt,B as $t,d9 as zt,n as pe,m as se,aP as Mt,q as Ze,$ as Ie,c3 as Xe,aH as Qt,da as et,db as Bt,N as Ft,v as Rt,aN as tt,aO as nt,ax as it,S as a,a0 as R,dc as Lt,dd as jt,de as Ht,b$ as Vt,df as xt,ar as Ut,T as h,aE as te,Y as S,a1 as k,a6 as J,c0 as ze,c1 as Jt,dg as Wt,a5 as rt,ae as Y,V as I,W as y,a2 as Q,aj as st,cW as Kt,cV as Yt,M as ot,U as u,Z as lt,cS as qt,dh as Me,ad as Gt,di as Zt,cT as Xt,cm as en,dj as tn,dk as de,dl as nn}from"./index-5b5fdd56.js";import{h as Qe,g as rn,i as sn}from"./functionalCallableComp-51195a3e.js";import{i as on}from"./_isIterateeCall-c830f443.js";import{D as G,a as ve}from"./index-b6f2a43c.js";/* empty css */var ln=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},an=X({compatConfig:{MODE:3},name:"ACheckableTag",props:ln(),setup:function(t,e){var n=e.slots,r=e.emit,o=Ye("tag",t),p=o.prefixCls,d=function(E){var w=t.checked;r("update:checked",!w),r("change",!w),r("click",E)},v=V(function(){var b;return qe(p.value,(b={},K(b,"".concat(p.value,"-checkable"),!0),K(b,"".concat(p.value,"-checkable-checked"),t.checked),b))});return function(){var b;return A("span",{class:v.value,onClick:d},[(b=n.default)===null||b===void 0?void 0:b.call(n)])}}});const me=an;var un=new RegExp("^(".concat(yt.join("|"),")(-inverse)?$")),cn=new RegExp("^(".concat(bt.join("|"),")$")),dn=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:$e.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:$e.any}},Z=X({compatConfig:{MODE:3},name:"ATag",props:dn(),slots:["closeIcon","icon"],setup:function(t,e){var n=e.slots,r=e.emit,o=e.attrs,p=Ye("tag",t),d=p.prefixCls,v=p.direction,b=j(!0);At(function(){t.visible!==void 0&&(b.value=t.visible)});var E=function(s){s.stopPropagation(),r("update:visible",!1),r("close",s),!s.defaultPrevented&&t.visible===void 0&&(b.value=!1)},w=V(function(){var l=t.color;return l?un.test(l)||cn.test(l):!1}),T=V(function(){var l;return qe(d.value,(l={},K(l,"".concat(d.value,"-").concat(t.color),w.value),K(l,"".concat(d.value,"-has-color"),t.color&&!w.value),K(l,"".concat(d.value,"-hidden"),!b.value),K(l,"".concat(d.value,"-rtl"),v.value==="rtl"),l))});return function(){var l,s,c,m=t.icon,D=m===void 0?(l=n.icon)===null||l===void 0?void 0:l.call(n):m,O=t.color,$=t.closeIcon,g=$===void 0?(s=n.closeIcon)===null||s===void 0?void 0:s.call(n):$,f=t.closable,C=f===void 0?!1:f,M=function(){return C?g?A("span",{class:"".concat(d.value,"-close-icon"),onClick:E},[g]):A(kt,{class:"".concat(d.value,"-close-icon"),onClick:E},null):null},F={backgroundColor:O&&!w.value?O:void 0},B=D||null,_=(c=n.default)===null||c===void 0?void 0:c.call(n),L=B?A(H,null,[B,A("span",null,[_])]):_,P="onClick"in o,z=A("span",{class:T.value,style:F},[L,M()]);return P?A(St,null,{default:function(){return[z]}}):z}}});Z.CheckableTag=me;Z.install=function(i){return i.component(Z.name,Z),i.component(me.name,me),i};const fn=Z;G.Button=ve;G.install=function(i){return i.component(G.name,G),i.component(ve.name,ve),i};var hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const gn=hn;function Be(i){for(var t=1;t{const r=Ct();ge(r),ne.has(r)||(ne.set(r,ke(i(r,n??(t==null?void 0:t())))),It(()=>{ne.delete(r)}));const o=ne.get(r);return ge(o),{state:o,toRefs(){return _t(o)}}}}}var $n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const zn=$n;function Le(i){for(var t=1;t{const i=j([]);return{selectdFiles:i,addFiles:e=>{i.value=Et([...i.value,...e])}}});class oe{constructor(t,e=Tt.CREATED_TIME_DESC){ee(this,"root");ee(this,"execQueue",[]);ee(this,"walkerInitPromsie");this.entryPath=t,this.sortMethod=e,this.root={children:[],info:{name:this.entryPath,size:"-",bytes:0,created_time:"",is_under_scanned_path:!0,date:"",type:"dir",fullpath:this.entryPath}},this.walkerInitPromsie=new Promise(n=>{Qe([this.entryPath]).then(async r=>{this.root.info=r[this.entryPath],await this.fetchChildren(this.root),n()})})}reset(){return this.root.children=[],this.fetchChildren(this.root)}get images(){const t=e=>e.children.map(n=>{if(n.info.type==="dir")return t(n);if(ae(n.info.name))return n.info}).filter(n=>n).flat(1);return t(this.root)}get isCompleted(){return this.execQueue.length===0}async fetchChildren(t){const{files:e}=await rn(t.info.fullpath);return t.children=Ge(e,this.sortMethod).map(n=>({info:n,children:[]})),this.execQueue.shift(),this.execQueue.unshift(...t.children.filter(n=>n.info.type==="dir").map(n=>({fn:()=>this.fetchChildren(n),...n}))),t}async next(){await this.walkerInitPromsie;const t=_n(this.execQueue);if(!t)return null;const e=await t.fn();return this.execQueue=this.execQueue.slice(),this.root={...this.root},e}async isExpired(){const t=[this.root.info],e=r=>{for(const o of r.children)o.info.type==="dir"&&(t.push(o.info),e(o))};e(this.root);const n=await Qe(t.map(r=>r.fullpath));for(const r of t)if(!Pt(r,n[r.fullpath]))return!0;return!1}async seamlessRefresh(t,e=j(!1)){const n=performance.now(),r=new oe(this.entryPath,this.sortMethod);for(await r.walkerInitPromsie;!r.isCompleted&&r.images.length
'};e.configure=function(s){var c,m;for(c in s)m=s[c],m!==void 0&&s.hasOwnProperty(c)&&(n[c]=m);return this},e.status=null,e.set=function(s){var c=e.isStarted();s=r(s,n.minimum,1),e.status=s===1?null:s;var m=e.render(!c),D=m.querySelector(n.barSelector),O=n.speed,$=n.easing;return m.offsetWidth,d(function(g){n.positionUsing===""&&(n.positionUsing=e.getPositioningCSS()),v(D,p(s,O,$)),s===1?(v(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){v(m,{transition:"all "+O+"ms linear",opacity:0}),setTimeout(function(){e.remove(),g()},O)},O)):setTimeout(g,O)}),this},e.isStarted=function(){return typeof e.status=="number"},e.start=function(){e.status||e.set(0);var s=function(){setTimeout(function(){e.status&&(e.trickle(),s())},n.trickleSpeed)};return n.trickle&&s(),this},e.done=function(s){return!s&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(s){var c=e.status;return c?c>1?void 0:(typeof s!="number"&&(c>=0&&c<.2?s=.1:c>=.2&&c<.5?s=.04:c>=.5&&c<.8?s=.02:c>=.8&&c<.99?s=.005:s=0),c=r(c+s,0,.994),e.set(c)):e.start()},e.trickle=function(){return e.inc()},function(){var s=0,c=0;e.promise=function(m){return!m||m.state()==="resolved"?this:(c===0&&e.start(),s++,c++,m.always(function(){c--,c===0?(s=0,e.done()):e.set((s-c)/s)}),this)}}(),e.getElement=function(){var s=e.getParent();if(s){var c=Array.prototype.slice.call(s.querySelectorAll(".nprogress")).filter(function(m){return m.parentElement===s});if(c.length>0)return c[0]}return null},e.getParent=function(){if(n.parent instanceof HTMLElement)return n.parent;if(typeof n.parent=="string")return document.querySelector(n.parent)},e.render=function(s){if(e.isRendered())return e.getElement();E(document.documentElement,"nprogress-busy");var c=document.createElement("div");c.id="nprogress",c.className="nprogress",c.innerHTML=n.template;var m=c.querySelector(n.barSelector),D=s?"-100":o(e.status||0),O=e.getParent(),$;return v(m,{transition:"all 0 linear",transform:"translate3d("+D+"%,0,0)"}),n.showSpinner||($=c.querySelector(n.spinnerSelector),$&&l($)),O!=document.body&&E(O,"nprogress-custom-parent"),O.appendChild(c),c},e.remove=function(){e.status=null,w(document.documentElement,"nprogress-busy"),w(e.getParent(),"nprogress-custom-parent");var s=e.getElement();s&&l(s)},e.isRendered=function(){return!!e.getElement()},e.getPositioningCSS=function(){var s=document.body.style,c="WebkitTransform"in s?"Webkit":"MozTransform"in s?"Moz":"msTransform"in s?"ms":"OTransform"in s?"O":"";return c+"Perspective"in s?"translate3d":c+"Transform"in s?"translate":"margin"};function r(s,c,m){return sm?m:s}function o(s){return(-1+s)*100}function p(s,c,m){var D;return n.positionUsing==="translate3d"?D={transform:"translate3d("+o(s)+"%,0,0)"}:n.positionUsing==="translate"?D={transform:"translate("+o(s)+"%,0)"}:D={"margin-left":o(s)+"%"},D.transition="all "+c+"ms "+m,D}var d=function(){var s=[];function c(){var m=s.shift();m&&m(c)}return function(m){s.push(m),s.length==1&&c()}}(),v=function(){var s=["Webkit","O","Moz","ms"],c={};function m(g){return g.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(f,C){return C.toUpperCase()})}function D(g){var f=document.body.style;if(g in f)return g;for(var C=s.length,M=g.charAt(0).toUpperCase()+g.slice(1),F;C--;)if(F=s[C]+M,F in f)return F;return g}function O(g){return g=m(g),c[g]||(c[g]=D(g))}function $(g,f,C){f=O(f),g.style[f]=C}return function(g,f){var C=arguments,M,F;if(C.length==2)for(M in f)F=f[M],F!==void 0&&f.hasOwnProperty(M)&&$(g,M,F);else $(g,C[1],C[2])}}();function b(s,c){var m=typeof s=="string"?s:T(s);return m.indexOf(" "+c+" ")>=0}function E(s,c){var m=T(s),D=m+c;b(m,c)||(s.className=D.substring(1))}function w(s,c){var m=T(s),D;b(s,c)&&(D=m.replace(" "+c+" "," "),s.className=D.substring(1,D.length-1))}function T(s){return(" "+(s&&s.className||"")+" ").replace(/\s+/gi," ")}function l(s){s&&s.parentNode&&s.parentNode.removeChild(s)}return e})})(ct);var Yn=ct.exports;const gs=Nt(Yn);function ps({fetchNext:i}={}){const{scroller:t,sortedFiles:e,sortMethod:n,currLocation:r,stackViewEl:o,canLoadNext:p,previewIdx:d,props:v,walker:b,getViewableAreaFiles:E}=le().toRefs(),{state:w}=le(),T=j(!1),l=j(q.defaultGridCellWidth),s=V(()=>l.value+16),c=44,{width:m}=Dt(o),D=V(()=>~~(m.value/s.value)),O=ke(new Map),$=V(()=>{const B=s.value;return{first:B+(l.value<=160?0:c),second:B}}),g=j(!1),f=async()=>{var B;if(!(g.value||v.value.mode!=="walk"||!p.value))try{g.value=!0,await((B=b.value)==null?void 0:B.next())}finally{g.value=!1}},C=async(B=!1)=>{const _=t.value,L=()=>B?d.value:(_==null?void 0:_.$_endIndex)??0,P=()=>{const z=e.value.length,x=50;return z?i?L()>z-x:L()>z-x&&p.value:!0};for(;P();){await Ze(30);const z=await(i??f)();if(typeof z=="boolean"&&!z)return}};w.useEventListen("loadNextDir",$t(async(B=!1)=>{await C(B),v.value.mode==="walk"&&M()})),w.useEventListen("viewableAreaFilesChange",()=>{const B=E.value(),_=B.filter(P=>P.is_under_scanned_path&&ae(P.name)).map(P=>P.fullpath);qn.fetchImageTags(_);const L=B.filter(P=>P.is_under_scanned_path&&P.type==="dir"&&!O.has(P.fullpath)).map(P=>P.fullpath);L.length&&zt(L).then(P=>{for(const z in P)if(Object.prototype.hasOwnProperty.call(P,z)){const x=P[z];O.set(z,x)}})}),w.useEventListen("refresh",async()=>{w.eventEmitter.emit("viewableAreaFilesChange")});const M=pe(()=>w.eventEmitter.emit("viewableAreaFilesChange"),300);se(r,M);const F=pe(async()=>{await C(),M()},150);return{gridItems:D,sortedFiles:e,sortMethodConv:Mt,moreActionsDropdownShow:T,gridSize:s,sortMethod:n,onScroll:F,loadNextDir:f,loadNextDirLoading:g,canLoadNext:p,itemSize:$,cellWidth:l,dirCoverCache:O}}const vs=new Map,q=Ie(),ms=Kn(),qn=Xe(),ys=Qt(),bs=new BroadcastChannel("iib-image-transfer-bus"),{eventEmitter:As,useEventListen:Ss}=et(),{useHookShareState:le}=Dn((i,{images:t})=>{const e=j({tabIdx:-1,paneIdx:-1}),n=V(()=>Ft(r.value)),r=j([]),o=V(()=>{var f;return r.value.map(C=>C.curr).slice((f=q.conf)!=null&&f.is_win&&e.value.mode!=="scanned-fixed"?1:0)}),p=V(()=>Rt(...o.value)),d=V(()=>{var f,C;return e.value.mode==="scanned-fixed"?((C=(f=r.value)==null?void 0:f[0])==null?void 0:C.curr)??"":e.value.mode==="walk"?e.value.path??"":r.value.length===1?"/":p.value}),v=j(q.defaultSortingMethod),b=j(e.value.mode=="walk"?new oe(e.value.path,v.value):void 0);se([()=>e.value.mode,()=>e.value.path,v],async([f,C,M])=>{var F;f==="walk"?(b.value=new oe(C,M),r.value=[{files:[],curr:C}],await Ze(),await((F=b.value)==null?void 0:F.reset()),$.eventEmitter.emit("loadNextDir")):b.value=void 0});const E=ke(new Set);se(n,()=>E.clear());const w=V(()=>{var F;if(t.value)return t.value;if(b.value)return b.value.images.filter(B=>!E.has(B.fullpath));if(!n.value)return[];const f=((F=n.value)==null?void 0:F.files)??[],C=v.value;return Ge((B=>q.onlyFoldersAndImages?B.filter(_=>_.type==="dir"||ae(_.name)):B)(f),C).filter(B=>!E.has(B.fullpath))}),T=j([]),l=j(-1),s=V(()=>b.value?!b.value.isCompleted:!1),c=j(!1),m=j(!1),D=j(),O=()=>{var f,C,M;return(M=(C=(f=q.tabList)==null?void 0:f[e.value.tabIdx])==null?void 0:C.panes)==null?void 0:M[e.value.paneIdx]},$=et();$.useEventListen("selectAll",()=>{console.log(`select all 0 -> ${w.value.length}`),T.value=On(0,w.value.length)});const g=()=>{const f=D.value;if(f){const C=Math.max(f.$_startIndex-10,0);return w.value.slice(C,f.$_endIndex+10)}return[]};return{previewing:m,spinning:c,canLoadNext:s,multiSelectedIdxs:T,previewIdx:l,basePath:o,currLocation:d,currPage:n,stack:r,sortMethod:v,sortedFiles:w,scroller:D,stackViewEl:j(),props:e,getPane:O,walker:b,deletedFiles:E,getViewableAreaFiles:g,...$}},()=>({images:j()}));function ks(){const{eventEmitter:i,multiSelectedIdxs:t,sortedFiles:e}=le().toRefs();return{onSelectAll:()=>i.value.emit("selectAll"),onReverseSelect:()=>{t.value=e.value.map((p,d)=>d).filter(p=>!t.value.includes(p))},onClearAllSelected:()=>{t.value=[]}}}const Is=()=>{const{stackViewEl:i}=le().toRefs(),t=j(-1);return Bt(i,e=>{var r;let n=e.target;for(;n.parentElement;)if(n=n.parentElement,n.tagName.toLowerCase()==="li"&&n.classList.contains("file-item-trigger")){const o=(r=n.dataset)==null?void 0:r.idx;o&&Number.isSafeInteger(+o)&&(t.value=+o);return}}),{showMenuIdx:t}};function Gn(){var i=window.navigator.userAgent,t=i.indexOf("MSIE ");if(t>0)return parseInt(i.substring(t+5,i.indexOf(".",t)),10);var e=i.indexOf("Trident/");if(e>0){var n=i.indexOf("rv:");return parseInt(i.substring(n+3,i.indexOf(".",n)),10)}var r=i.indexOf("Edge/");return r>0?parseInt(i.substring(r+5,i.indexOf(".",r)),10):-1}let ie;function ye(){ye.init||(ye.init=!0,ie=Gn()!==-1)}var ue={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ye(),it(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const i=document.createElement("object");this._resizeObject=i,i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex",-1),i.onload=this.addResizeHandlers,i.type="text/html",ie&&this.$el.appendChild(i),i.data="about:blank",ie||this.$el.appendChild(i)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!ie&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Zn=Lt();tt("data-v-b329ee4c");const Xn={class:"resize-observer",tabindex:"-1"};nt();const ei=Zn((i,t,e,n,r,o)=>(a(),R("div",Xn)));ue.render=ei;ue.__scopeId="data-v-b329ee4c";ue.__file="src/components/ResizeObserver.vue";function re(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(t){return typeof t}:re=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(i)}function ti(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(i,t){for(var e=0;ei.length)&&(t=i.length);for(var e=0,n=new Array(t);e2&&arguments[2]!==void 0?arguments[2]:{},n,r,o,p=function(v){for(var b=arguments.length,E=new Array(b>1?b-1:0),w=1;w1){var b=d.find(function(w){return w.isIntersecting});b&&(v=b)}if(r.callback){var E=v.isIntersecting&&v.intersectionRatio>=r.threshold;if(E===r.oldResult)return;r.oldResult=E,r.callback(E,v)}},this.options.intersection),it(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),i}();function ft(i,t,e){var n=t.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new ui(i,n,e);i._vue_visibilityState=r}}function ci(i,t,e){var n=t.value,r=t.oldValue;if(!dt(n,r)){var o=i._vue_visibilityState;if(!n){ht(i);return}o?o.createObserver(n,e):ft(i,{value:n},e)}}function ht(i){var t=i._vue_visibilityState;t&&(t.destroyObserver(),delete i._vue_visibilityState)}var di={beforeMount:ft,updated:ci,unmounted:ht},fi={itemsLimit:1e3},hi=/(auto|scroll)/;function gt(i,t){return i.parentNode===null?t:gt(i.parentNode,t.concat([i]))}var fe=function(t,e){return getComputedStyle(t,null).getPropertyValue(e)},gi=function(t){return fe(t,"overflow")+fe(t,"overflow-y")+fe(t,"overflow-x")},pi=function(t){return hi.test(gi(t))};function We(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var t=gt(i.parentNode,[]),e=0;e{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const i=this.$_lastUpdateScrollPosition;typeof i=="number"&&this.$nextTick(()=>{this.scrollToPosition(i)})},beforeUnmount(){this.removeListeners()},methods:{addView(i,t,e,n,r){const o=jt({id:bi++,index:t,used:!0,key:n,type:r}),p=Ht({item:e,position:0,nr:o});return i.push(p),p},unuseView(i,t=!1){const e=this.$_unusedViews,n=i.nr.type;let r=e.get(n);r||(r=[],e.set(n,r)),r.push(i),t||(i.nr.used=!1,i.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(i){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(i,t){this.ready&&(i||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(i,t=!1){const e=this.itemSize,n=this.gridItems||1,r=this.itemSecondarySize||e,o=this.$_computedMinItemSize,p=this.typeField,d=this.simpleArray?null:this.keyField,v=this.items,b=v.length,E=this.sizes,w=this.$_views,T=this.$_unusedViews,l=this.pool,s=this.itemIndexByKey;let c,m,D,O,$;if(!b)c=m=O=$=D=0;else if(this.$_prerender)c=O=0,m=$=Math.min(this.prerender,v.length),D=null;else{const _=this.getScroll();if(t){let z=_.start-this.$_lastUpdateScrollPosition;if(z<0&&(z=-z),e===null&&z_.start&&(Ne=U),U=~~((x+Ne)/2);while(U!==De);for(U<0&&(U=0),c=U,D=E[b-1].accumulator,m=U;mb&&(m=b)),O=c;Ob&&(m=b),O<0&&(O=0),$>b&&($=b),D=Math.ceil(b/n)*e}}m-c>fi.itemsLimit&&this.itemsLimitError(),this.totalSize=D;let g;const f=c<=this.$_endIndex&&m>=this.$_startIndex;if(f)for(let _=0,L=l.length;_=m)&&this.unuseView(g));const C=f?null:new Map;let M,F,B;for(let _=c;_=P.length)&&(g=this.addView(l,_,M,L,F),this.unuseView(g,!0),P=T.get(F)),g=P[B],C.set(F,B+1)),w.delete(g.nr.key),g.nr.used=!0,g.nr.index=_,g.nr.key=L,g.nr.type=F,w.set(L,g),z=!0;else if(!g.nr.used&&(g.nr.used=!0,g.nr.index=_,z=!0,P)){const x=P.indexOf(g);x!==-1&&P.splice(x,1)}g.item=M,z&&(_===v.length-1&&this.$emit("scroll-end"),_===0&&this.$emit("scroll-start")),e===null?(g.position=E[_-1].accumulator,g.offset=0):(g.position=Math.floor(_/n)*e,g.offset=_%n*r)}return this.$_startIndex=c,this.$_endIndex=m,this.emitUpdate&&this.$emit("update",c,m,O,$),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:f}},getListenerTarget(){let i=We(this.$el);return window.document&&(i===window.document.documentElement||i===window.document.body)&&(i=window),i},getScroll(){const{$el:i,direction:t}=this,e=t==="vertical";let n;if(this.pageMode){const r=i.getBoundingClientRect(),o=e?r.height:r.width;let p=-(e?r.top:r.left),d=e?window.innerHeight:window.innerWidth;p<0&&(d+=p,p=0),p+d>o&&(d=o-p),n={start:p,end:p+d}}else e?n={start:i.scrollTop,end:i.scrollTop+i.clientHeight}:n={start:i.scrollLeft,end:i.scrollLeft+i.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Se?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(i){let t;const e=this.gridItems||1;this.itemSize===null?t=i>0?this.sizes[i-1].accumulator:0:t=Math.floor(i/e)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(i){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,n,r;if(this.pageMode){const o=We(this.$el),p=o.tagName==="HTML"?0:o[t.scroll],d=o.getBoundingClientRect(),b=this.$el.getBoundingClientRect()[t.start]-d[t.start];e=o,n=t.scroll,r=i+p+b}else e=this.$el,n=t.scroll,r=i;e[n]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((i,t)=>i.nr.index-t.nr.index)}}};const Ai={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Si={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function ki(i,t,e,n,r,o){const p=Vt("ResizeObserver"),d=xt("observe-visibility");return Ut((a(),h("div",{class:Y(["vue-recycle-scroller",{ready:r.ready,"page-mode":e.pageMode,[`direction-${i.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...v)=>o.handleScroll&&o.handleScroll(...v))},[i.$slots.before?(a(),h("div",Ai,[te(i.$slots,"before")],512)):S("v-if",!0),(a(),R(ze(e.listTag),{ref:"wrapper",style:rt({[i.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Y(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:k(()=>[(a(!0),h(H,null,J(r.pool,v=>(a(),R(ze(e.itemTag),Jt({key:v.nr.id,style:r.ready?{transform:`translate${i.direction==="vertical"?"Y":"X"}(${v.position}px) translate${i.direction==="vertical"?"X":"Y"}(${v.offset}px)`,width:e.gridItems?`${i.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${i.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&r.hoverKey===v.nr.key}]]},Wt(e.skipHover?{}:{mouseenter:()=>{r.hoverKey=v.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:k(()=>[te(i.$slots,"default",{item:v.item,index:v.nr.index,active:v.nr.used})]),_:2},1040,["style","class"]))),128)),te(i.$slots,"empty")]),_:3},8,["style","class"])),i.$slots.after?(a(),h("div",Si,[te(i.$slots,"after")],512)):S("v-if",!0),A(p,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[d,o.handleVisibilityChange]])}pt.render=ki;pt.__file="src/components/RecycleScroller.vue";const Ke=X({__name:"ContextMenu",props:{file:{},idx:{},selectedTag:{},isSelectedMutilFiles:{type:Boolean}},emits:["contextMenuClick"],setup(i,{emit:t}){const e=i,n=Ie(),r=V(()=>{var o;return(((o=n.conf)==null?void 0:o.all_custom_tags)??[]).reduce((p,d)=>[...p,{...d,selected:!!e.selectedTag.find(v=>v.id===d.id)}],[])});return(o,p)=>{const d=st,v=Kt,b=Yt,E=ot;return a(),R(E,{onClick:p[0]||(p[0]=w=>t("contextMenuClick",w,o.file,o.idx))},{default:k(()=>{var w;return[A(d,{key:"deleteFiles"},{default:k(()=>[I(y(o.$t("deleteSelected")),1)]),_:1}),A(d,{key:"openWithDefaultApp"},{default:k(()=>[I(y(o.$t("openWithDefaultApp")),1)]),_:1}),A(d,{key:"saveSelectedAsJson"},{default:k(()=>[I(y(o.$t("saveSelectedAsJson")),1)]),_:1}),o.file.type==="dir"?(a(),h(H,{key:0},[A(d,{key:"openInNewTab"},{default:k(()=>[I(y(o.$t("openInNewTab")),1)]),_:1}),A(d,{key:"openOnTheRight"},{default:k(()=>[I(y(o.$t("openOnTheRight")),1)]),_:1}),A(d,{key:"openWithWalkMode"},{default:k(()=>[I(y(o.$t("openWithWalkMode")),1)]),_:1})],64)):S("",!0),o.file.type==="file"?(a(),h(H,{key:1},[Q(ae)(o.file.name)?(a(),h(H,{key:0},[A(d,{key:"viewGenInfo"},{default:k(()=>[I(y(o.$t("viewGenerationInfo")),1)]),_:1}),A(v),((w=Q(n).conf)==null?void 0:w.launch_mode)!=="server"?(a(),h(H,{key:0},[A(d,{key:"send2txt2img"},{default:k(()=>[I(y(o.$t("sendToTxt2img")),1)]),_:1}),A(d,{key:"send2img2img"},{default:k(()=>[I(y(o.$t("sendToImg2img")),1)]),_:1}),A(d,{key:"send2inpaint"},{default:k(()=>[I(y(o.$t("sendToInpaint")),1)]),_:1}),A(d,{key:"send2extras"},{default:k(()=>[I(y(o.$t("sendToExtraFeatures")),1)]),_:1}),A(b,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:k(()=>[A(d,{key:"send2controlnet-txt2img"},{default:k(()=>[I("ControlNet - "+y(o.$t("t2i")),1)]),_:1}),A(d,{key:"send2controlnet-img2img"},{default:k(()=>[I("ControlNet - "+y(o.$t("i2i")),1)]),_:1}),A(d,{key:"send2outpaint"},{default:k(()=>[I("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):S("",!0),A(d,{key:"send2BatchDownload"},{default:k(()=>[I(y(o.$t("sendToBatchDownload")),1)]),_:1}),A(b,{key:"copy2target",title:o.$t("copyTo")},{default:k(()=>[(a(!0),h(H,null,J(Q(n).quickMovePaths,T=>(a(),R(d,{key:`copy-to-${T.dir}`},{default:k(()=>[I(y(T.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),A(b,{key:"move2target",title:o.$t("moveTo")},{default:k(()=>[(a(!0),h(H,null,J(Q(n).quickMovePaths,T=>(a(),R(d,{key:`move-to-${T.dir}`},{default:k(()=>[I(y(T.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),A(v),o.isSelectedMutilFiles?(a(),h(H,{key:1},[A(b,{key:"batch-add-tag",title:o.$t("batchAddTag")},{default:k(()=>[A(d,{key:"add-custom-tag"},{default:k(()=>[I("+ "+y(o.$t("addNewCustomTag")),1)]),_:1}),(a(!0),h(H,null,J(r.value,T=>(a(),R(d,{key:`batch-add-tag-${T.id}`},{default:k(()=>[I(y(T.name),1)]),_:2},1024))),128))]),_:1},8,["title"]),A(b,{key:"batch-remove-tag",title:o.$t("batchRemoveTag")},{default:k(()=>[(a(!0),h(H,null,J(r.value,T=>(a(),R(d,{key:`batch-remove-tag-${T.id}`},{default:k(()=>[I(y(T.name),1)]),_:2},1024))),128))]),_:1},8,["title"])],64)):(a(),R(b,{key:"toggle-tag",title:o.$t("toggleTag")},{default:k(()=>[A(d,{key:"add-custom-tag"},{default:k(()=>[I("+ "+y(o.$t("addNewCustomTag")),1)]),_:1}),(a(!0),h(H,null,J(r.value,T=>(a(),R(d,{key:`toggle-tag-${T.id}`},{default:k(()=>[I(y(T.name)+" ",1),T.selected?(a(),R(Q(at),{key:0})):(a(),R(Q(ut),{key:1}))]),_:2},1024))),128))]),_:1},8,["title"])),A(v),A(d,{key:"openFileLocationInNewTab"},{default:k(()=>[I(y(o.$t("openFileLocationInNewTab")),1)]),_:1}),A(d,{key:"openWithLocalFileBrowser"},{default:k(()=>[I(y(o.$t("openWithLocalFileBrowser")),1)]),_:1})],64)):S("",!0),A(v),A(d,{key:"rename"},{default:k(()=>[I(y(o.$t("rename")),1)]),_:1}),A(d,{key:"previewInNewWindow"},{default:k(()=>[I(y(o.$t("previewInNewWindow")),1)]),_:1}),A(d,{key:"download"},{default:k(()=>[I(y(o.$t("download")),1)]),_:1}),A(d,{key:"copyPreviewUrl"},{default:k(()=>[I(y(o.$t("copySourceFilePreviewLink")),1)]),_:1}),A(d,{key:"copyFilePath"},{default:k(()=>[I(y(o.$t("copyFilePath")),1)]),_:1})],64)):S("",!0)]}),_:1})}}}),N=i=>(tt("data-v-78cd67a3"),i=i(),nt(),i),Ii={class:"changeIndicatorWrapper"},_i={key:0,class:"changeIndicatorsLeft changeIndicators"},Ci={key:0,class:"promptChangeIndicator changeIndicator"},wi={key:1,class:"negpromptChangeIndicator changeIndicator"},Ei={key:2,class:"seedChangeIndicator changeIndicator"},Ti={key:3,class:"stepsChangeIndicator changeIndicator"},Pi={key:4,class:"cfgChangeIndicator changeIndicator"},Oi={key:5,class:"sizeChangeIndicator changeIndicator"},Ni={key:6,class:"modelChangeIndicator changeIndicator"},Di={key:7,class:"samplerChangeIndicator changeIndicator"},$i={key:8,class:"otherChangeIndicator changeIndicator"},zi={class:"hoverOverlay"},Mi=N(()=>u("strong",null,"This file",-1)),Qi=N(()=>u("br",null,null,-1)),Bi=N(()=>u("br",null,null,-1)),Fi={key:0},Ri=N(()=>u("td",null,[u("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),Li={key:1},ji=N(()=>u("td",null,[u("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),Hi={key:2},Vi=N(()=>u("td",null,[u("span",{class:"seedChangeIndicator"},"Seed")],-1)),xi={key:3},Ui=N(()=>u("td",null,[u("span",{class:"stepsChangeIndicator"},"Steps")],-1)),Ji={key:4},Wi=N(()=>u("td",null,[u("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),Ki={key:5},Yi=N(()=>u("td",null,[u("span",{class:"sizeChangeIndicator"},"Size")],-1)),qi={key:6},Gi=N(()=>u("td",null,[u("span",{class:"modelChangeIndicator"},"Model")],-1)),Zi=N(()=>u("br",null,null,-1)),Xi={key:7},er=N(()=>u("td",null,[u("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),tr=N(()=>u("br",null,null,-1)),nr=N(()=>u("br",null,null,-1)),ir={key:0},rr=N(()=>u("span",{class:"otherChangeIndicator"},"Other",-1)),sr=N(()=>u("br",null,null,-1)),or=N(()=>u("br",null,null,-1)),lr={key:1,class:"changeIndicatorsRight changeIndicators"},ar={key:0,class:"promptChangeIndicator changeIndicator"},ur={key:1,class:"negpromptChangeIndicator changeIndicator"},cr={key:2,class:"seedChangeIndicator changeIndicator"},dr={key:3,class:"stepsChangeIndicator changeIndicator"},fr={key:4,class:"cfgChangeIndicator changeIndicator"},hr={key:5,class:"sizeChangeIndicator changeIndicator"},gr={key:6,class:"modelChangeIndicator changeIndicator"},pr={key:7,class:"samplerChangeIndicator changeIndicator"},vr={key:8,class:"otherChangeIndicator changeIndicator"},mr={class:"hoverOverlay"},yr=N(()=>u("strong",null,"This file",-1)),br=N(()=>u("br",null,null,-1)),Ar=N(()=>u("br",null,null,-1)),Sr={key:0},kr=N(()=>u("td",null,[u("span",{class:"promptChangeIndicator"},"+ Prompt")],-1)),Ir={key:1},_r=N(()=>u("td",null,[u("span",{class:"negpromptChangeIndicator"},"- Prompt")],-1)),Cr={key:2},wr=N(()=>u("td",null,[u("span",{class:"seedChangeIndicator"},"Seed")],-1)),Er={key:3},Tr=N(()=>u("td",null,[u("span",{class:"stepsChangeIndicator"},"Steps")],-1)),Pr={key:4},Or=N(()=>u("td",null,[u("span",{class:"cfgChangeIndicator"},"Cfg Scale")],-1)),Nr={key:5},Dr=N(()=>u("td",null,[u("span",{class:"sizeChangeIndicator"},"Size")],-1)),$r={key:6},zr=N(()=>u("td",null,[u("span",{class:"modelChangeIndicator"},"Model")],-1)),Mr=N(()=>u("br",null,null,-1)),Qr={key:7},Br=N(()=>u("td",null,[u("span",{class:"samplerChangeIndicator"},"Sampler")],-1)),Fr=N(()=>u("br",null,null,-1)),Rr=N(()=>u("br",null,null,-1)),Lr={key:0},jr=N(()=>u("span",{class:"otherChangeIndicator"},"Other",-1)),Hr=N(()=>u("br",null,null,-1)),Vr=N(()=>u("br",null,null,-1)),xr=X({__name:"ChangeIndicator",props:{genDiffToPrevious:{},genDiffToNext:{},genInfo:{}},setup(i){function t(n){const r=["prompt","negativePrompt","seed","steps","cfgScale","size","Model","others"],o=Object.keys(n).filter(p=>!r.includes(p));return Object.fromEntries(o.map(p=>[p,n[p]]))}function e(n){return Object.keys(t(n)).length>0}return(n,r)=>(a(),h("div",Ii,[n.genDiffToPrevious.empty?S("",!0):(a(),h("div",_i,["prompt"in n.genDiffToPrevious.diff?(a(),h("div",Ci,"P+")):S("",!0),"negativePrompt"in n.genDiffToPrevious.diff?(a(),h("div",wi,"P-")):S("",!0),"seed"in n.genDiffToPrevious.diff?(a(),h("div",Ei,"Se")):S("",!0),"steps"in n.genDiffToPrevious.diff?(a(),h("div",Ti,"St")):S("",!0),"cfgScale"in n.genDiffToPrevious.diff?(a(),h("div",Pi,"Cf")):S("",!0),"size"in n.genDiffToPrevious.diff?(a(),h("div",Oi,"Si")):S("",!0),"Model"in n.genDiffToPrevious.diff?(a(),h("div",Ni,"Mo")):S("",!0),"Sampler"in n.genDiffToPrevious.diff?(a(),h("div",Di,"Sa")):S("",!0),e(n.genDiffToPrevious.diff)?(a(),h("div",$i,"Ot")):S("",!0)])),u("div",zi,[u("small",null,[A(Q(je)),Mi,I(" vs "+y(n.genDiffToPrevious.otherFile)+" ",1),Qi,Bi,u("table",null,["prompt"in n.genDiffToPrevious.diff?(a(),h("tr",Fi,[Ri,u("td",null,y(n.genDiffToPrevious.diff.prompt)+" tokens changed",1)])):S("",!0),"negativePrompt"in n.genDiffToPrevious.diff?(a(),h("tr",Li,[ji,u("td",null,y(n.genDiffToPrevious.diff.negativePrompt)+" tokens changed",1)])):S("",!0),"seed"in n.genDiffToPrevious.diff?(a(),h("tr",Hi,[Vi,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.seed[0]),1),I(" vs "+y(n.genDiffToPrevious.diff.seed[1]),1)])])):S("",!0),"steps"in n.genDiffToPrevious.diff?(a(),h("tr",xi,[Ui,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.steps[0]),1),I(" vs "+y(n.genDiffToPrevious.diff.steps[1]),1)])])):S("",!0),"cfgScale"in n.genDiffToPrevious.diff?(a(),h("tr",Ji,[Wi,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.cfgScale[0]),1),I(" vs "+y(n.genDiffToPrevious.diff.cfgScale[1]),1)])])):S("",!0),"size"in n.genDiffToPrevious.diff?(a(),h("tr",Ki,[Yi,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.size[0]),1),I(" vs "+y(n.genDiffToPrevious.diff.size[1]),1)])])):S("",!0),"Model"in n.genDiffToPrevious.diff?(a(),h("tr",qi,[Gi,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.Model[0]),1),Zi,I(" vs "+y(n.genDiffToPrevious.diff.Model[1]),1)])])):S("",!0),"Sampler"in n.genDiffToPrevious.diff?(a(),h("tr",Xi,[er,u("td",null,[u("strong",null,y(n.genDiffToPrevious.diff.Sampler[0]),1),tr,I(" vs "+y(n.genDiffToPrevious.diff.Sampler[1]),1)])])):S("",!0)]),nr,e(n.genDiffToPrevious.diff)?(a(),h("div",ir,[rr,I(" props that changed:"),sr,or,u("ul",null,[(a(!0),h(H,null,J(t(n.genDiffToPrevious.diff),(o,p)=>(a(),h("li",null,y(p),1))),256))])])):S("",!0)])]),n.genDiffToNext.empty?S("",!0):(a(),h("div",lr,["prompt"in n.genDiffToNext.diff?(a(),h("div",ar,"P+")):S("",!0),"negativePrompt"in n.genDiffToNext.diff?(a(),h("div",ur,"P-")):S("",!0),"seed"in n.genDiffToNext.diff?(a(),h("div",cr,"Se")):S("",!0),"steps"in n.genDiffToNext.diff?(a(),h("div",dr,"St")):S("",!0),"cfgScale"in n.genDiffToNext.diff?(a(),h("div",fr,"Cf")):S("",!0),"size"in n.genDiffToNext.diff?(a(),h("div",hr,"Si")):S("",!0),"Model"in n.genDiffToNext.diff?(a(),h("div",gr,"Mo")):S("",!0),"Sampler"in n.genDiffToNext.diff?(a(),h("div",pr,"Sa")):S("",!0),e(n.genDiffToNext.diff)?(a(),h("div",vr,"Ot")):S("",!0)])),u("div",mr,[u("small",null,[A(Q(je)),yr,I(" vs "+y(n.genDiffToNext.otherFile)+" ",1),br,Ar,u("table",null,["prompt"in n.genDiffToNext.diff?(a(),h("tr",Sr,[kr,u("td",null,y(n.genDiffToNext.diff.prompt)+" tokens changed",1)])):S("",!0),"negativePrompt"in n.genDiffToNext.diff?(a(),h("tr",Ir,[_r,u("td",null,y(n.genDiffToNext.diff.negativePrompt)+" tokens changed",1)])):S("",!0),"seed"in n.genDiffToNext.diff?(a(),h("tr",Cr,[wr,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.seed[0]),1),I(" vs "+y(n.genDiffToNext.diff.seed[1]),1)])])):S("",!0),"steps"in n.genDiffToNext.diff?(a(),h("tr",Er,[Tr,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.steps[0]),1),I(" vs "+y(n.genDiffToNext.diff.steps[1]),1)])])):S("",!0),"cfgScale"in n.genDiffToNext.diff?(a(),h("tr",Pr,[Or,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.cfgScale[0]),1),I(" vs "+y(n.genDiffToNext.diff.cfgScale[1]),1)])])):S("",!0),"size"in n.genDiffToNext.diff?(a(),h("tr",Nr,[Dr,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.size[0]),1),I(" vs "+y(n.genDiffToNext.diff.size[1]),1)])])):S("",!0),"Model"in n.genDiffToNext.diff?(a(),h("tr",$r,[zr,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.Model[0]),1),Mr,I(" vs "+y(n.genDiffToNext.diff.Model[1]),1)])])):S("",!0),"Sampler"in n.genDiffToNext.diff?(a(),h("tr",Qr,[Br,u("td",null,[u("strong",null,y(n.genDiffToNext.diff.Sampler[0]),1),Fr,I(" vs "+y(n.genDiffToNext.diff.Sampler[1]),1)])])):S("",!0)]),Rr,e(n.genDiffToNext.diff)?(a(),h("div",Lr,[jr,I(" props that changed:"),Hr,Vr,u("ul",null,[(a(!0),h(H,null,J(t(n.genDiffToNext.diff),(o,p)=>(a(),h("li",null,y(p),1))),256))])])):S("",!0)])])]))}});const Ur=lt(xr,[["__scopeId","data-v-78cd67a3"]]),Jr=["data-idx"],Wr={key:1,class:"more"},Kr={class:"float-btn-wrap"},Yr={key:1,class:"tags-container"},qr=["url"],Gr={class:"play-icon"},Zr=["src"],Xr={key:0,class:"tags-container"},es={key:4,class:"preview-icon-wrap"},ts={key:1,class:"dir-cover-container"},ns=["src"],is={key:5,class:"profile"},rs=["title"],ss={class:"basic-info"},os={style:{"margin-right":"4px"}},he=160,ls=X({__name:"FileItem",props:{file:{},idx:{},selected:{type:Boolean,default:!1},showMenuIdx:{},cellWidth:{},fullScreenPreviewImageUrl:{},enableRightClickMenu:{type:Boolean,default:!0},enableCloseIcon:{type:Boolean,default:!1},isSelectedMutilFiles:{type:Boolean},genInfo:{},enableChangeIndicator:{type:Boolean},extraTags:{},coverFiles:{},getGenDiff:{},getGenDiffWatchDep:{}},emits:["update:showMenuIdx","fileItemClick","dragstart","dragend","previewVisibleChange","contextMenuClick","close-icon-click"],setup(i,{emit:t}){const e=i;qt(l=>({"02c5ba15":l.$props.cellWidth+"px"}));const n=Ie(),r=Xe(),o=j(),p=j(),d=pe(()=>{const{getGenDiff:l,file:s,idx:c}=e;l&&(p.value=l(s.gen_info_obj,c,1,s),o.value=l(s.gen_info_obj,c,-1,s))},200+100*Math.random());se(()=>{var l;return(l=e.getGenDiffWatchDep)==null?void 0:l.call(e,e.idx)},()=>{d()},{immediate:!0,deep:!0});const v=V(()=>r.tagMap.get(e.file.fullpath)??[]),b=V(()=>{const l=n.gridThumbnailResolution;return n.enableThumbnail?Me(e.file,[l,l].join("x")):Gt(e.file)}),E=V(()=>{var l;return(((l=n.conf)==null?void 0:l.all_custom_tags)??[]).reduce((s,c)=>[...s,{...c,selected:!!v.value.find(m=>m.id===c.id)}],[])}),w=V(()=>E.value.find(l=>l.type==="custom"&&l.name==="like")),T=()=>{ge(w.value),t("contextMenuClick",{key:`toggle-tag-${w.value.id}`},e.file,e.idx)};return(l,s)=>{const c=G,m=st,D=ot,O=nn,$=fn;return a(),R(c,{trigger:["contextmenu"],visible:Q(n).longPressOpenContextMenu?typeof l.idx=="number"&&l.showMenuIdx===l.idx:void 0,"onUpdate:visible":s[8]||(s[8]=g=>typeof l.idx=="number"&&t("update:showMenuIdx",g?l.idx:-1))},{overlay:k(()=>[l.enableRightClickMenu?(a(),R(Ke,{key:0,file:l.file,idx:l.idx,"selected-tag":v.value,onContextMenuClick:s[7]||(s[7]=(g,f,C)=>t("contextMenuClick",g,f,C)),"is-selected-mutil-files":l.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])):S("",!0)]),default:k(()=>{var g;return[(a(),h("li",{class:Y(["file file-item-trigger grid",{clickable:l.file.type==="dir",selected:l.selected}]),"data-idx":l.idx,key:l.file.name,draggable:"true",onDragstart:s[4]||(s[4]=f=>t("dragstart",f,l.idx)),onDragend:s[5]||(s[5]=f=>t("dragend",f,l.idx)),onClickCapture:s[6]||(s[6]=f=>t("fileItemClick",f,l.file,l.idx))},[u("div",null,[l.enableCloseIcon?(a(),h("div",{key:0,class:"close-icon",onClick:s[0]||(s[0]=f=>t("close-icon-click"))},[A(Q(Zt))])):S("",!0),l.enableRightClickMenu?(a(),h("div",Wr,[A(c,null,{overlay:k(()=>[A(Ke,{file:l.file,idx:l.idx,"selected-tag":v.value,onContextMenuClick:s[1]||(s[1]=(f,C,M)=>t("contextMenuClick",f,C,M)),"is-selected-mutil-files":l.isSelectedMutilFiles},null,8,["file","idx","selected-tag","is-selected-mutil-files"])]),default:k(()=>[u("div",Kr,[A(Q(Xt))])]),_:1}),l.file.type==="file"?(a(),R(c,{key:0},{overlay:k(()=>[E.value.length>1?(a(),R(D,{key:0,onClick:s[2]||(s[2]=f=>t("contextMenuClick",f,l.file,l.idx))},{default:k(()=>[(a(!0),h(H,null,J(E.value,f=>(a(),R(m,{key:`toggle-tag-${f.id}`},{default:k(()=>[I(y(f.name)+" ",1),f.selected?(a(),R(Q(at),{key:0})):(a(),R(Q(ut),{key:1}))]),_:2},1024))),128))]),_:1})):S("",!0)]),default:k(()=>{var f,C;return[u("div",{class:Y(["float-btn-wrap",{"like-selected":(f=w.value)==null?void 0:f.selected}]),onClick:T},[(C=w.value)!=null&&C.selected?(a(),R(Q(Rn),{key:0})):(a(),R(Q(Vn),{key:1}))],2)]}),_:1})):S("",!0)])):S("",!0),Q(en)(l.file.name)?(a(),h("div",{key:l.file.fullpath,class:Y(`idx-${l.idx} item-content`)},[l.enableChangeIndicator&&p.value&&o.value?(a(),R(Ur,{key:0,"gen-diff-to-next":p.value,"gen-diff-to-previous":o.value},null,8,["gen-diff-to-next","gen-diff-to-previous"])):S("",!0),A(O,{src:b.value,fallback:Q(Nn),preview:{src:l.fullScreenPreviewImageUrl,onVisibleChange:(f,C)=>t("previewVisibleChange",f,C)}},null,8,["src","fallback","preview"]),v.value&&l.cellWidth>he?(a(),h("div",Yr,[(a(!0),h(H,null,J(l.extraTags??v.value,f=>(a(),R($,{key:f.id,color:Q(r).getColor(f)},{default:k(()=>[I(y(f.name),1)]),_:2},1032,["color"]))),128))])):S("",!0)],2)):Q(tn)(l.file.name)?(a(),h("div",{key:3,class:Y(`idx-${l.idx} item-content video`),url:Q(de)(l.file),style:rt({"background-image":`url('${l.file.cover_url??Q(de)(l.file)}')`}),onClick:s[3]||(s[3]=f=>Q(sn)(l.file,C=>t("contextMenuClick",{key:`toggle-tag-${C}`},l.file,l.idx)))},[u("div",Gr,[u("img",{src:Q(Wn),style:{width:"40px",height:"40px"}},null,8,Zr)]),v.value&&l.cellWidth>he?(a(),h("div",Xr,[(a(!0),h(H,null,J(v.value,f=>(a(),R($,{key:f.id,color:Q(r).getColor(f)},{default:k(()=>[I(y(f.name),1)]),_:2},1032,["color"]))),128))])):S("",!0)],14,qr)):(a(),h("div",es,[l.file.type==="file"?(a(),R(Q(bn),{key:0,class:"icon center"})):(g=l.coverFiles)!=null&&g.length&&l.cellWidth>160?(a(),h("div",ts,[(a(!0),h(H,null,J(l.coverFiles,f=>(a(),h("img",{class:"dir-cover-item",src:f.media_type==="image"?Q(Me)(f):Q(de)(f),key:f.fullpath},null,8,ns))),128))])):(a(),R(Q(In),{key:2,class:"icon center"}))])),l.cellWidth>he?(a(),h("div",is,[u("div",{class:"name line-clamp-1",title:l.file.name},y(l.file.name),9,rs),u("div",ss,[u("div",os,y(l.file.type)+" "+y(l.file.size),1),u("div",null,y(l.file.date),1)])])):S("",!0)])],42,Jr))]}),_:1},8,["visible"])}}});const _s=lt(ls,[["__scopeId","data-v-1c38fa7e"]]);export{_s as F,gs as N,Ke as _,ps as a,Is as b,ks as c,pt as d,Ss as e,Kn as f,q as g,ys as h,As as i,ms as j,bs as k,On as r,vs as s,qn as t,le as u}; diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/FileItem-fb268ce8.css b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/FileItem-fb268ce8.css deleted file mode 100644 index e3a8ddec67fc94966829ffdda33db6d3a9629f73..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/FileItem-fb268ce8.css +++ /dev/null @@ -1 +0,0 @@ -.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.ant-tag{box-sizing:border-box;margin:0 8px 0 0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";display:inline-block;height:auto;padding:0 7px;font-size:12px;line-height:20px;white-space:nowrap;background:#fafafa;border:1px solid #d9d9d9;border-radius:2px;opacity:1;transition:all .3s}.ant-tag,.ant-tag a,.ant-tag a:hover{color:#000000d9}.ant-tag>a:first-child:last-child{display:inline-block;margin:0 -8px;padding:0 8px}.ant-tag-close-icon{margin-left:3px;color:#00000073;font-size:10px;cursor:pointer;transition:all .3s}.ant-tag-close-icon:hover{color:#000000d9}.ant-tag-has-color{border-color:transparent}.ant-tag-has-color,.ant-tag-has-color a,.ant-tag-has-color a:hover,.ant-tag-has-color .anticon-close,.ant-tag-has-color .anticon-close:hover{color:#fff}.ant-tag-checkable{background-color:transparent;border-color:transparent;cursor:pointer}.ant-tag-checkable:not(.ant-tag-checkable-checked):hover{color:#d03f0a}.ant-tag-checkable:active,.ant-tag-checkable-checked{color:#fff}.ant-tag-checkable-checked{background-color:#d03f0a}.ant-tag-checkable:active{background-color:#ab2800}.ant-tag-hidden{display:none}.ant-tag-pink{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-pink-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-magenta{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.ant-tag-magenta-inverse{color:#fff;background:#eb2f96;border-color:#eb2f96}.ant-tag-red{color:#cf1322;background:#fff1f0;border-color:#ffa39e}.ant-tag-red-inverse{color:#fff;background:#f5222d;border-color:#f5222d}.ant-tag-volcano{color:#d4380d;background:#fff2e8;border-color:#ffbb96}.ant-tag-volcano-inverse{color:#fff;background:#fa541c;border-color:#fa541c}.ant-tag-orange{color:#d46b08;background:#fff7e6;border-color:#ffd591}.ant-tag-orange-inverse{color:#fff;background:#fa8c16;border-color:#fa8c16}.ant-tag-yellow{color:#d4b106;background:#feffe6;border-color:#fffb8f}.ant-tag-yellow-inverse{color:#fff;background:#fadb14;border-color:#fadb14}.ant-tag-gold{color:#d48806;background:#fffbe6;border-color:#ffe58f}.ant-tag-gold-inverse{color:#fff;background:#faad14;border-color:#faad14}.ant-tag-cyan{color:#08979c;background:#e6fffb;border-color:#87e8de}.ant-tag-cyan-inverse{color:#fff;background:#13c2c2;border-color:#13c2c2}.ant-tag-lime{color:#7cb305;background:#fcffe6;border-color:#eaff8f}.ant-tag-lime-inverse{color:#fff;background:#a0d911;border-color:#a0d911}.ant-tag-green{color:#389e0d;background:#f6ffed;border-color:#b7eb8f}.ant-tag-green-inverse{color:#fff;background:#52c41a;border-color:#52c41a}.ant-tag-blue{color:#096dd9;background:#e6f7ff;border-color:#91d5ff}.ant-tag-blue-inverse{color:#fff;background:#1890ff;border-color:#1890ff}.ant-tag-geekblue{color:#1d39c4;background:#f0f5ff;border-color:#adc6ff}.ant-tag-geekblue-inverse{color:#fff;background:#2f54eb;border-color:#2f54eb}.ant-tag-purple{color:#531dab;background:#f9f0ff;border-color:#d3adf7}.ant-tag-purple-inverse{color:#fff;background:#722ed1;border-color:#722ed1}.ant-tag-success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.ant-tag-processing{color:#d03f0a;background:#fff1e6;border-color:#f7ae83}.ant-tag-error{color:#ff4d4f;background:#fff2f0;border-color:#ffccc7}.ant-tag-warning{color:#faad14;background:#fffbe6;border-color:#ffe58f}.ant-tag>.anticon+span,.ant-tag>span+.anticon{margin-left:7px}.ant-tag.ant-tag-rtl{margin-right:0;margin-left:8px;direction:rtl;text-align:right}.ant-tag-rtl .ant-tag-close-icon{margin-right:3px;margin-left:0}.ant-tag-rtl.ant-tag>.anticon+span,.ant-tag-rtl.ant-tag>span+.anticon{margin-right:7px;margin-left:0}.changeIndicators[data-v-78cd67a3]{position:absolute;display:flex;flex-direction:column;height:100%;align-items:center;justify-content:center;opacity:.6}.changeIndicatorsRight[data-v-78cd67a3]{position:absolute;right:0}.changeIndicator[data-v-78cd67a3]{margin-left:-4px;width:16px;height:16px;border-radius:2px;border:1px solid rgba(255,255,255,.2);background-color:gray;line-height:16px;margin-bottom:2px;text-align:center;font-size:6pt;font-weight:600;color:#000;z-index:9999;pointer-events:auto;box-shadow:0 0 4px #00000080}.changeIndicatorsRight .changeIndicator[data-v-78cd67a3]{margin-right:-4px;border-top-right-radius:8px;border-bottom-right-radius:8px;text-align:left;padding-left:2px}.changeIndicatorsLeft .changeIndicator[data-v-78cd67a3]{border-top-left-radius:8px;border-bottom-left-radius:8px;text-align:right;padding-right:2px}.changeIndicatorWrapper[data-v-78cd67a3]{top:0;position:absolute;user-select:none;width:100%;height:100%;z-index:999999;pointer-events:none}.hoverOverlay[data-v-78cd67a3]{display:none;background-color:#000c;color:#fff;border:1px solid gray;padding:10px 20px;border-radius:5px;z-index:100;opacity:1;font-size:8pt;line-height:1.2;overflow:hidden}.hoverOverlay ul[data-v-78cd67a3]{list-style:none;padding:0}.hoverOverlay ul li[data-v-78cd67a3]{display:inline-block;padding-left:4px;padding-right:4px;border:1px solid gray;border-radius:2px;margin:1px;font-weight:200}.changeIndicators[data-v-78cd67a3]:hover{opacity:1}.changeIndicators:hover+div.hoverOverlay[data-v-78cd67a3]{display:block;position:absolute;top:0;left:0;width:100%;height:100%}table tr td:first-child span[data-v-78cd67a3]{padding:1px 3px;display:inline-block;width:100%}table tr td[data-v-78cd67a3]:first-child{padding-right:10px;vertical-align:top}.otherChangeIndicator[data-v-78cd67a3]{background-color:#8b5b8e;color:#efefef}.stepsChangeIndicator[data-v-78cd67a3]{background-color:#577ab8;color:#efefef}.seedChangeIndicator[data-v-78cd67a3]{background-color:#649da3;color:#121}.negpromptChangeIndicator[data-v-78cd67a3]{background-color:#d8a390;color:#2f2f2f}.modelChangeIndicator[data-v-78cd67a3]{background-color:#d68679;color:#efefef}.promptChangeIndicator[data-v-78cd67a3]{background-color:#8fba99;color:#121}.cfgChangeIndicator[data-v-78cd67a3]{background-color:#d4c98f;color:#121}.sizeChangeIndicator[data-v-78cd67a3]{background-color:#678a6c;color:#efefef}.center[data-v-1c38fa7e]{display:flex;justify-content:center;align-items:center}.item-content[data-v-1c38fa7e]{position:relative}.item-content.video[data-v-1c38fa7e]{background-color:var(--zp-border);border-radius:8px;overflow:hidden;width:var(--02c5ba15);height:var(--02c5ba15);background-size:cover;background-position:center;cursor:pointer}.item-content .play-icon[data-v-1c38fa7e]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;display:flex}.item-content .tags-container[data-v-1c38fa7e]{position:absolute;right:8px;bottom:8px;display:flex;width:calc(100% - 16px);flex-wrap:wrap-reverse;flex-direction:row-reverse}.item-content .tags-container>*[data-v-1c38fa7e]{margin:0 0 4px 4px;font-size:14px;line-height:1.6}.close-icon[data-v-1c38fa7e]{position:absolute;top:0;right:0;transform:translate(50%,-50%) scale(1.5);cursor:pointer;z-index:100;border-radius:100%;overflow:hidden;line-height:1;background-color:var(--zp-primary-background)}.file[data-v-1c38fa7e]{padding:8px 16px;margin:8px;display:flex;align-items:center;background:var(--zp-primary-background);border-radius:8px;box-shadow:0 0 4px var(--zp-secondary-variant-background);position:relative}.file:hover .more[data-v-1c38fa7e]{opacity:1}.file .more[data-v-1c38fa7e]{opacity:0;transition:all .3s ease;position:absolute;top:4px;right:4px;z-index:100;display:flex;align-items:center;justify-content:center;flex-direction:column;line-height:1em}.file .more .float-btn-wrap[data-v-1c38fa7e]{font-size:1.5em;cursor:pointer;font-size:500;padding:4px;border-radius:100vh;color:#fff;background:var(--zp-icon-bg);margin-bottom:4px}.file .more .float-btn-wrap.like-selected[data-v-1c38fa7e]{color:#df0505}.file.grid[data-v-1c38fa7e]{padding:0;display:inline-block;box-sizing:content-box;box-shadow:unset;background-color:var(--zp-secondary-background)}.file.grid[data-v-1c38fa7e] .icon{font-size:8em}.file.grid[data-v-1c38fa7e] .profile{padding:0 4px}.file.grid[data-v-1c38fa7e] .profile .name{font-weight:500;padding:0}.file.grid[data-v-1c38fa7e] .profile .basic-info{display:flex;justify-content:space-between;flex-direction:row;margin:0;font-size:.7em}.file.grid[data-v-1c38fa7e] .profile .basic-info *{white-space:nowrap;overflow:hidden}.file.grid[data-v-1c38fa7e] .ant-image,.file.grid[data-v-1c38fa7e] .preview-icon-wrap{border:1px solid var(--zp-secondary);background-color:var(--zp-secondary-variant-background);border-radius:8px;overflow:hidden}.file.grid[data-v-1c38fa7e] img:not(.dir-cover-item),.file.grid[data-v-1c38fa7e] .dir-cover-container,.file.grid[data-v-1c38fa7e] .preview-icon-wrap>[role=img]{height:var(--02c5ba15);width:var(--02c5ba15);object-fit:contain}.file.clickable[data-v-1c38fa7e]{cursor:pointer}.file.selected[data-v-1c38fa7e]{outline:#0084ff solid 2px}.file .name[data-v-1c38fa7e]{flex:1;padding:8px;word-break:break-all}.file .basic-info[data-v-1c38fa7e]{overflow:hidden;display:flex;flex-direction:column;align-items:flex-end}.file .dir-cover-container[data-v-1c38fa7e]{top:0;display:flex;flex-wrap:wrap;padding:4px}.file .dir-cover-container>img[data-v-1c38fa7e]{width:calc(50% - 8px);height:calc(50% - 8px);margin:4px;object-fit:cover;border-radius:8px;overflow:hidden} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/ImgSliPagePane-5f17c067.js b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/ImgSliPagePane-5f17c067.js deleted file mode 100644 index 1ff835529c05e4f19018babf004e57dcbfa46801..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/ImgSliPagePane-5f17c067.js +++ /dev/null @@ -1 +0,0 @@ -import{d as a,S as t,T as s,c as n,cx as _,Z as o}from"./index-5b5fdd56.js";const c={class:"img-sli-container"},i=a({__name:"ImgSliPagePane",props:{paneIdx:{},tabIdx:{},left:{},right:{}},setup(l){return(e,r)=>(t(),s("div",c,[n(_,{left:e.left,right:e.right},null,8,["left","right"])]))}});const d=o(i,[["__scopeId","data-v-ae3fb9a8"]]);export{d as default}; diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/ImgSliPagePane-868b21f8.css b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/ImgSliPagePane-868b21f8.css deleted file mode 100644 index 08ad926d24820371b914976269b54c4251251f7a..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/ImgSliPagePane-868b21f8.css +++ /dev/null @@ -1 +0,0 @@ -.img-sli-container[data-v-ae3fb9a8]{position:relative;overflow-y:auto;height:calc(100vh - 40px)} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MatchedImageGrid-08628c66.js b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MatchedImageGrid-08628c66.js deleted file mode 100644 index 15c85857e34b9904b63e8619e7b12542e35edec2..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MatchedImageGrid-08628c66.js +++ /dev/null @@ -1 +0,0 @@ -import{d as ce,m as F,ax as re,$ as pe,S as p,T as I,c as l,a2 as e,a1 as n,a4 as R,U as d,J as me,W as o,V as u,a0 as V,ad as ue,Y as _,ae as z,ag as ge,R as fe,ai as G,aN as ve,aO as he,bz as Ie,Z as _e}from"./index-5b5fdd56.js";import{S as ke}from"./index-b9a282d1.js";import{L as Ce,R as we,f as Se,_ as be}from"./MultiSelectKeep-72e9597f.js";import{c as xe,d as ye,F as Me}from"./FileItem-b2542180.js";import{c as Ae,u as Te}from"./hook-ba2adfba.js";import{a as $e}from"./functionalCallableComp-51195a3e.js";import"./shortcut-bdce38ed.js";import"./Checkbox-5fa7cbf6.js";/* empty css */import"./index-a0e30b33.js";import"./index-b6f2a43c.js";import"./_isIterateeCall-c830f443.js";import"./useGenInfoDiff-3e61c6d2.js";const De=c=>(ve("data-v-caebce58"),c=c(),he(),c),Fe={class:"hint"},Re={class:"action-bar"},Ve=De(()=>d("div",{style:{padding:"16px 0 512px"}},null,-1)),ze={key:1},Ge={class:"no-res-hint"},Be={class:"hint"},Ne={key:2,class:"preview-switch"},Ue=ce({__name:"MatchedImageGrid",props:{tabIdx:{},paneIdx:{},selectedTagIds:{},id:{}},setup(c){const g=c,f=Ae(t=>Ie(g.selectedTagIds,t)),{queue:B,images:i,onContextMenuClickU:k,stackViewEl:N,previewIdx:r,previewing:C,onPreviewVisibleChange:U,previewImgMove:w,canPreview:S,itemSize:b,gridItems:J,showGenInfo:m,imageGenInfo:x,q:E,multiSelectedIdxs:v,onFileItemClick:L,scroller:y,showMenuIdx:h,onFileDragStart:O,onFileDragEnd:P,cellWidth:W,onScroll:M,saveAllFileAsJson:q,props:K,saveLoadedFileAsJson:Q,changeIndchecked:Y,seedChangeChecked:Z,getGenDiff:j,getGenDiffWatchDep:H}=Te(f);F(()=>g.selectedTagIds,async()=>{var t;await f.reset(),await re(),(t=y.value)==null||t.scrollToItem(0),M()},{immediate:!0}),F(()=>g,async t=>{K.value=t},{deep:!0,immediate:!0});const X=pe(),{onClearAllSelected:ee,onSelectAll:te,onReverseSelect:se}=xe();return(t,s)=>{const le=be,ne=ge,ae=fe,A=G,ie=G,oe=ke;return p(),I("div",{class:"container",ref_key:"stackViewEl",ref:N},[l(le,{show:!!e(v).length||e(X).keepMultiSelect,onClearAllSelected:e(ee),onSelectAll:e(te),onReverseSelect:e(se)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),l(oe,{size:"large",spinning:!e(B).isIdle},{default:n(()=>{var T,$;return[l(ae,{visible:e(m),"onUpdate:visible":s[1]||(s[1]=a=>R(m)?m.value=a:null),width:"70vw","mask-closable":"",onOk:s[2]||(s[2]=a=>m.value=!1)},{cancelText:n(()=>[]),default:n(()=>[l(ne,{active:"",loading:!e(E).isIdle},{default:n(()=>[d("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:s[0]||(s[0]=a=>e(me)(e(x)))},[d("div",Fe,o(t.$t("doubleClickToCopy")),1),u(" "+o(e(x)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),d("div",Re,[l(A,{onClick:e(Q)},{default:n(()=>[u(o(t.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"]),l(A,{onClick:e(q)},{default:n(()=>[u(o(t.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])]),(T=e(i))!=null&&T.length?(p(),V(e(ye),{key:0,ref_key:"scroller",ref:y,class:"file-list",items:e(i),"item-size":e(b).first,"key-field":"fullpath","item-secondary-size":e(b).second,gridItems:e(J),onScroll:e(M)},{after:n(()=>[Ve]),default:n(({item:a,index:D})=>[l(Me,{idx:D,file:a,"cell-width":e(W),"show-menu-idx":e(h),"onUpdate:showMenuIdx":s[3]||(s[3]=de=>R(h)?h.value=de:null),onDragstart:e(O),onDragend:e(P),onFileItemClick:e(L),"full-screen-preview-image-url":e(i)[e(r)]?e(ue)(e(i)[e(r)]):"",selected:e(v).includes(D),onContextMenuClick:e(k),onPreviewVisibleChange:e(U),"is-selected-mutil-files":e(v).length>1,"enable-change-indicator":e(Y),"seed-change-checked":e(Z),"get-gen-diff":e(j),"get-gen-diff-watch-dep":e(H)},null,8,["idx","file","cell-width","show-menu-idx","onDragstart","onDragend","onFileItemClick","full-screen-preview-image-url","selected","onContextMenuClick","onPreviewVisibleChange","is-selected-mutil-files","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):e(f).load&&t.selectedTagIds.and_tags.length===1&&!(($=t.selectedTagIds.folder_paths_str)!=null&&$.trim())?(p(),I("div",ze,[d("div",Ge,[d("p",Be,o(t.$t("tagSearchNoResultsMessage")),1),l(ie,{onClick:s[4]||(s[4]=a=>e($e)()),type:"primary"},{default:n(()=>[u(o(t.$t("rebuildImageIndex")),1)]),_:1})])])):_("",!0),e(C)?(p(),I("div",Ne,[l(e(Ce),{onClick:s[5]||(s[5]=a=>e(w)("prev")),class:z({disable:!e(S)("prev")})},null,8,["class"]),l(e(we),{onClick:s[6]||(s[6]=a=>e(w)("next")),class:z({disable:!e(S)("next")})},null,8,["class"])])):_("",!0)]}),_:1},8,["spinning"]),e(C)&&e(i)&&e(i)[e(r)]?(p(),V(Se,{key:0,file:e(i)[e(r)],idx:e(r),onContextMenuClick:e(k)},null,8,["file","idx","onContextMenuClick"])):_("",!0)],512)}}});const Xe=_e(Ue,[["__scopeId","data-v-caebce58"]]);export{Xe as default}; diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MatchedImageGrid-fd659ec7.css b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MatchedImageGrid-fd659ec7.css deleted file mode 100644 index da864f85ba5a038ca5b43845627123364179dbe8..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MatchedImageGrid-fd659ec7.css +++ /dev/null @@ -1 +0,0 @@ -.container[data-v-caebce58]{background:var(--zp-secondary-background);position:relative}.container .action-bar[data-v-caebce58]{display:flex;align-items:center;user-select:none;gap:4px;padding:4px}.container .action-bar>*[data-v-caebce58]{flex-wrap:wrap}.container .file-list[data-v-caebce58]{list-style:none;padding:8px;overflow:auto;height:calc(var(--pane-max-height) - 40px);width:100%}.container .no-res-hint[data-v-caebce58]{height:var(--pane-max-height);display:flex;align-items:center;flex-direction:column;justify-content:center}.container .no-res-hint .hint[data-v-caebce58]{font-size:1.6em;margin-bottom:2em;text-align:center} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MultiSelectKeep-4111de9a.css b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MultiSelectKeep-4111de9a.css deleted file mode 100644 index 1a1a0564880bbf37ee9a602be6c8b4a82cfd9aca..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MultiSelectKeep-4111de9a.css +++ /dev/null @@ -1 +0,0 @@ -.full-screen-menu[data-v-9ad72ee9]{position:fixed;z-index:9999;background:var(--zp-primary-background);padding:8px 16px;box-shadow:0 0 4px var(--zp-secondary);border-radius:4px}.full-screen-menu .tags-container[data-v-9ad72ee9]{margin:4px 0}.full-screen-menu .tags-container .tag[data-v-9ad72ee9]{margin-right:4px;margin-bottom:4px;padding:2px 16px;border-radius:4px;display:inline-block;cursor:pointer;font-weight:700;transition:.5s all ease;border:2px solid var(--tag-color);color:var(--tag-color);background:var(--zp-primary-background);user-select:none}.full-screen-menu .tags-container .tag.selected[data-v-9ad72ee9]{background:var(--tag-color);color:#fff}.full-screen-menu .container[data-v-9ad72ee9]{height:100%;display:flex;overflow:hidden;flex-direction:column}.full-screen-menu .gen-info[data-v-9ad72ee9]{flex:1;word-break:break-all;white-space:pre-line;overflow:auto;z-index:1;padding-top:4px;position:relative}.full-screen-menu .gen-info code[data-v-9ad72ee9]{font-size:.9em;display:block;padding:4px;background:var(--zp-primary-background);border-radius:4px;margin-right:20px;white-space:pre-wrap;word-break:break-word;line-height:1.78em}.full-screen-menu .gen-info code[data-v-9ad72ee9] .short-tag{word-break:break-all;white-space:nowrap}.full-screen-menu .gen-info code[data-v-9ad72ee9] span.tag{background:var(--zp-secondary-variant-background);color:var(--zp-primary);padding:2px 4px;border-radius:6px;margin-right:6px;margin-top:4px;line-height:1.3em;display:inline-block}.full-screen-menu .gen-info code[data-v-9ad72ee9] .has-parentheses.tag{background:rgba(255,100,100,.14)}.full-screen-menu .gen-info code[data-v-9ad72ee9] span.tag:hover{background:rgba(120,0,0,.15)}.full-screen-menu .gen-info table[data-v-9ad72ee9]{font-size:1em;border-radius:4px;border-collapse:separate;margin-bottom:3em}.full-screen-menu .gen-info table tr td[data-v-9ad72ee9]:first-child{white-space:nowrap}.full-screen-menu .gen-info table td[data-v-9ad72ee9]{padding-right:14px;padding-left:4px;border-bottom:1px solid var(--zp-secondary);border-collapse:collapse}.full-screen-menu .gen-info .info-tags .info-tag[data-v-9ad72ee9]{display:inline-block;overflow:hidden;border-radius:4px;margin-right:8px;border:2px solid var(--zp-primary)}.full-screen-menu .gen-info .info-tags .name[data-v-9ad72ee9]{background-color:var(--zp-primary);color:var(--zp-primary-background);padding:4px;border-bottom-right-radius:4px}.full-screen-menu .gen-info .info-tags .value[data-v-9ad72ee9]{padding:4px}.full-screen-menu.unset-size[data-v-9ad72ee9]{width:unset!important;height:unset!important}.full-screen-menu .mouse-sensor[data-v-9ad72ee9]{position:absolute;bottom:0;right:0;transform:rotate(90deg);cursor:se-resize;z-index:1;background:var(--zp-primary-background);border-radius:2px}.full-screen-menu .mouse-sensor>*[data-v-9ad72ee9]{font-size:18px;padding:4px}.full-screen-menu .action-bar[data-v-9ad72ee9]{display:flex;align-items:center;user-select:none;gap:4px}.full-screen-menu .action-bar .icon[data-v-9ad72ee9]{font-size:1.5em;padding:2px 4px;border-radius:4px}.full-screen-menu .action-bar .icon[data-v-9ad72ee9]:hover{background:var(--zp-secondary-variant-background)}.full-screen-menu .action-bar>*[data-v-9ad72ee9]{flex-wrap:wrap}.full-screen-menu.lr[data-v-9ad72ee9]{top:var(--d25885fc)!important;right:0!important;bottom:0!important;left:100vw!important;height:unset!important;width:var(--3bd17575)!important;transition:left ease .3s}.full-screen-menu.lr.always-on[data-v-9ad72ee9],.full-screen-menu.lr.mouse-in[data-v-9ad72ee9]{left:var(--24523279)!important}.tag-alpha-item[data-v-9ad72ee9]{display:flex;margin-top:4px}.tag-alpha-item h4[data-v-9ad72ee9]{width:32px;flex-shrink:0}.sort-tag-switch[data-v-9ad72ee9]{display:inline-block;padding-right:16px;padding-left:8px;cursor:pointer;user-select:none}.sort-tag-switch span[data-v-9ad72ee9]{transition:all ease .3s;transform:scale(1.2)}.sort-tag-switch:hover span[data-v-9ad72ee9]{transform:scale(1.3)}.lr-layout-control[data-v-9ad72ee9]{display:flex;align-items:center;gap:16px;padding:4px 8px;flex-wrap:wrap;border-radius:2px;border-left:3px solid var(--zp-luminous);background-color:var(--zp-secondary-background)}.lr-layout-control .ctrl-item[data-v-9ad72ee9]{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}.select-actions[data-v-b04c3508]>:not(:last-child){margin-right:4px}.float-panel[data-v-b04c3508]{position:absolute;bottom:32px;right:32px;background:var(--zp-primary-background);border-radius:4px;z-index:1000;padding:8px;box-shadow:0 0 4px var(--zp-secondary)} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MultiSelectKeep-72e9597f.js b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MultiSelectKeep-72e9597f.js deleted file mode 100644 index 0dd1ab1bde98367b80b4472f861e280dd378cb38..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/MultiSelectKeep-72e9597f.js +++ /dev/null @@ -1,6 +0,0 @@ -import{bf as kt,c as s,A as ie,cm as ee,y as le,z as P,m as fe,x as De,cG as it,cz as At,c6 as Xe,R as ye,ai as he,cv as Dt,r as oe,N as je,cH as Ot,G as st,ad as pe,cI as jt,cJ as Wt,V as C,ac as qt,cK as We,O as we,K as Ut,cL as Nt,J as de,cM as Bt,cN as Ht,cl as Xt,cO as Jt,cP as Vt,q as ut,o as Lt,ax as Yt,$ as Je,I as be,ak as Gt,E as Q,cQ as Zt,n as Le,cR as Kt,Q as qe,d as xt,cS as Qt,c3 as Rt,co as rt,S as $,T as _,a2 as r,Y as H,U as k,a0 as ae,a1 as w,cT as ct,X as K,W as y,a6 as re,a5 as Ce,ae as Se,a4 as _e,cU as Fe,a3 as en,aj as tn,cV as nn,cW as an,M as ln,aL as on,cX as sn,cY as un,aN as rn,aO as cn,Z as zt}from"./index-5b5fdd56.js";import{u as xe,e as Ue,g as V,h as dt,i as ce,r as dn,t as Pe,j as gn,s as gt,k as ke,_ as pn}from"./FileItem-b2542180.js";import{M as Et,c as Mt,m as Ne,b as Be,d as hn,e as fn,f as vn}from"./functionalCallableComp-51195a3e.js";import{C as mn,g as $n,t as yn}from"./shortcut-bdce38ed.js";/* empty css */import{_ as bn}from"./index-a0e30b33.js";import{D as wn}from"./index-b6f2a43c.js";const ve=(...e)=>{document.addEventListener(...e),kt(()=>document.removeEventListener(...e))};var _n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};const kn=_n;function pt(e){for(var t=1;t{const e=Array.from(document.querySelectorAll(".ant-image-preview-wrap")).find(t=>t.style.display!=="none");e?(console.log("closeImageFullscreenPreview success"),Rn(e)):console.log("closeImageFullscreenPreview not found")};function Rn(e){if(!(e instanceof HTMLElement))throw new Error("The provided value is not an HTMLElement.");const t=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,target:e});e.dispatchEvent(t)}const ea=(e,t)=>{const n=t.querySelector(`.idx-${e} .ant-image-img`);n?n.click():console.log("openImageFullscreenPreview error: not found",e,t)};function rl(e){const{previewIdx:t,eventEmitter:n,canLoadNext:a,previewing:i,sortedFiles:u,scroller:b,props:O}=xe().toRefs(),{state:E}=xe();let T=null;const U=(L,g)=>{var h;i.value=L,T!=null&&!L&&g&&((h=b.value)==null||h.scrollToItem(T),T=null)},W=()=>{if(!I("next")){if(e!=null&&e.loadNext)return e.loadNext();O.value.mode==="walk"&&a.value&&(le.info(P("loadingNextFolder")),n.value.emit("loadNextDir",!0))}};ve("keydown",L=>{var g;if(i.value){let h=t.value;if(["ArrowDown","ArrowRight"].includes(L.key))for(h++;u.value[h]&&!ee(u.value[h].name);)h++;else if(["ArrowUp","ArrowLeft"].includes(L.key))for(h--;u.value[h]&&!ee(u.value[h].name);)h--;if(ee((g=u.value[h])==null?void 0:g.name)??""){t.value=h;const x=b.value;x&&!(h>=x.$_startIndex&&h<=x.$_endIndex)&&(T=h)}W()}});const S=L=>{var h;let g=t.value;if(L==="next")for(g++;u.value[g]&&!ee(u.value[g].name);)g++;else if(L==="prev")for(g--;u.value[g]&&!ee(u.value[g].name);)g--;if(ee((h=u.value[g])==null?void 0:h.name)??""){t.value=g;const x=b.value;x&&!(g>=x.$_startIndex&&g<=x.$_endIndex)&&(T=g)}W()},I=L=>{var h;let g=t.value;if(L==="next")for(g++;u.value[g]&&!ee(u.value[g].name);)g++;else if(L==="prev")for(g--;u.value[g]&&!ee(u.value[g].name);)g--;return ee((h=u.value[g])==null?void 0:h.name)};return Ue("removeFiles",async()=>{i.value&&!E.sortedFiles[t.value]&&ze()}),{previewIdx:t,onPreviewVisibleChange:U,previewing:i,previewImgMove:S,canPreview:I}}function Te(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Dt(e)}function cl(){const{currLocation:e,sortedFiles:t,currPage:n,multiSelectedIdxs:a,eventEmitter:i,walker:u}=xe().toRefs(),b=()=>{a.value=[]};return ve("click",()=>{V.keepMultiSelect||b()}),ve("blur",()=>{V.keepMultiSelect||b()}),fe(n,b),{onFileDragStart:(U,W)=>{const S=De(t.value[W]);dt.fileDragging=!0,console.log("onFileDragStart set drag file ",U,W,S);const I=[S];let L=S.type==="dir";if(a.value.includes(W)){const h=a.value.map(x=>t.value[x]);I.push(...h),L=h.some(x=>x.type==="dir")}const g={includeDir:L,loc:e.value||"search-result",path:it(I,"fullpath").map(h=>h.fullpath),nodes:it(I,"fullpath"),__id:"FileTransferData"};U.dataTransfer.setData("text/plain",JSON.stringify(g))},onDrop:async U=>{if(u.value)return;const W=At(U);if(!W)return;const S=e.value;if(W.loc===S)return;const I=Xe(),L=async()=>I.pushAction(async()=>{await Mt(W.path,S),i.value.emit("refresh"),ye.destroyAll()}),g=()=>I.pushAction(async()=>{await Ne(W.path,S),ce.emit("removeFiles",{paths:W.path,loc:W.loc}),i.value.emit("refresh"),ye.destroyAll()});ye.confirm({title:P("confirm")+"?",width:"60vw",content:()=>{let h,x,A;return s("div",null,[s("div",null,[`${P("moveSelectedFilesTo")} ${S}`,s("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[W.path.map(M=>s("li",null,[M.split(/[/\\]/).pop()]))])]),s(Et,null,null),s("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},class:"actions"},[s(he,{onClick:ye.destroyAll},Te(h=P("cancel"))?h:{default:()=>[h]}),s(he,{type:"primary",loading:!I.isIdle,onClick:L},Te(x=P("copy"))?x:{default:()=>[x]}),s(he,{type:"primary",loading:!I.isIdle,onClick:g},Te(A=P("move"))?A:{default:()=>[A]})])])},maskClosable:!0,wrapClassName:"hidden-antd-btns-modal"})},multiSelectedIdxs:a,onFileDragEnd:()=>{dt.fileDragging=!1}}}function dl({openNext:e}){const t=oe(!1),n=oe(""),{sortedFiles:a,previewIdx:i,multiSelectedIdxs:u,stack:b,currLocation:O,spinning:E,previewing:T,stackViewEl:U,eventEmitter:W,props:S,deletedFiles:I}=xe().toRefs(),L=st;Ue("removeFiles",({paths:M,loc:l})=>{L(l)!==L(O.value)||!je(b.value)||(M.forEach(p=>I.value.add(p)),M.filter(ee).forEach(p=>I.value.add(p.replace(/\.\w+$/,".txt"))))}),Ue("addFiles",({files:M,loc:l})=>{if(L(l)!==L(O.value))return;const m=je(b.value);m&&m.files.unshift(...M)});const g=Xe(),h=async(M,l,m)=>{i.value=m,V.fullscreenPreviewInitialUrl=pe(l);const p=u.value.indexOf(m);if(M.shiftKey){if(p!==-1)u.value.splice(p,1);else{u.value.push(m),u.value.sort((j,Y)=>j-Y);const B=u.value[0],X=u.value[u.value.length-1];u.value=dn(B,X+1)}M.stopPropagation()}else M.ctrlKey||M.metaKey?(p!==-1?u.value.splice(p,1):u.value.push(m),M.stopPropagation()):await e(l)},x=async(M,l,m)=>{var se,R,$e;const p=pe(l),B=O.value,X={IIB_container_id:parent.IIB_container_id},j=()=>{let d=[];return u.value.includes(m)?d=u.value.map(v=>a.value[v]):d.push(l),d},Y=async d=>{if(!E.value)try{E.value=!0,await Jt(l.fullpath),ke.postMessage({...X,event:"click_hidden_button",btnEleId:"iib_hidden_img_update_trigger"}),await Vt(),ke.postMessage({...X,event:"click_hidden_button",btnEleId:`iib_hidden_tab_${d}`})}catch(v){console.error(v),le.error("发送图像失败,请携带console的错误消息找开发者")}finally{E.value=!1}},G=`${M.key}`;if(G.startsWith("toggle-tag-")){const d=+G.split("toggle-tag-")[1],{is_remove:v}=await jt({tag_id:d,img_path:l.fullpath}),q=(R=(se=V.conf)==null?void 0:se.all_custom_tags.find(F=>F.id===d))==null?void 0:R.name;await Pe.refreshTags([l.fullpath]),le.success(P(v?"removedTagFromImage":"addedTagToImage",{tag:q}));return}else if(G==="add-custom-tag")Be();else if(G.startsWith("batch-add-tag-")||G.startsWith("batch-remove-tag-")){const d=+G.split("-tag-")[1],v=G.includes("add")?"add":"remove",q=j().map(F=>F.fullpath);await Wt({tag_id:d,img_paths:q,action:v}),await Pe.refreshTags(q),le.success(P(v==="add"?"addCompleted":"removeCompleted"));return}else if(G.startsWith("copy-to-")){const d=G.split("copy-to-")[1],v=j(),q=v.map(F=>F.fullpath);await Mt(q,d,!0),ce.emit("addFiles",{files:v,loc:d}),le.success(P("copySuccess"));return}else if(G.startsWith("move-to-")){const d=G.split("move-to-")[1],v=j(),q=v.map(F=>F.fullpath);await Ne(q,d,!0),ce.emit("removeFiles",{paths:q,loc:O.value}),ce.emit("addFiles",{files:v,loc:d}),le.success(P("moveSuccess"));return}switch(M.key){case"previewInNewWindow":return window.open(p);case"copyFilePath":return de(l.fullpath);case"saveSelectedAsJson":return Xt(j());case"openWithDefaultApp":return Ht(l.fullpath);case"download":{const d=j();Bt(d.map(v=>pe(v,!0)));break}case"copyPreviewUrl":return de(parent.document.location.origin+p);case"rename":{let d=await hn(l.fullpath);d=st(d);const v=Pe.tagMap;v.set(d,v.get(l.fullpath)??[]),v.delete(l.fullpath),l.fullpath=d,l.name=d.split(/[\\/]/).pop()??"";return}case"send2txt2img":return Y("txt2img");case"send2img2img":return Y("img2img");case"send2inpaint":return Y("inpaint");case"send2extras":return Y("extras");case"send2savedDir":{const d=V.quickMovePaths.find(F=>F.key==="outdir_save");if(!d)return le.error(P("unknownSavedDir"));const v=Nt(d.dir,($e=V.conf)==null?void 0:$e.sd_cwd),q=j();await Ne(q.map(F=>F.fullpath),v,!0),ce.emit("removeFiles",{paths:q.map(F=>F.fullpath),loc:O.value}),ce.emit("addFiles",{files:q,loc:v});break}case"send2controlnet-img2img":case"send2controlnet-txt2img":{const d=M.key.split("-")[1];ke.postMessage({...X,event:"send_to_control_net",type:d,url:pe(l)});break}case"send2outpaint":{n.value=await g.pushAction(()=>We(l.fullpath)).res;const[d,v]=(n.value||"").split(` -`);ke.postMessage({...X,event:"send_to_outpaint",url:pe(l),prompt:d,negPrompt:v.slice(17)});break}case"openWithWalkMode":{gt.set(B,b.value);const d=V.tabList[S.value.tabIdx],v={type:"local",key:we(),path:l.fullpath,name:P("local"),stackKey:B,mode:"walk"};d.panes.push(v),d.key=v.key;break}case"openFileLocationInNewTab":case"openInNewTab":{const d=V.tabList[S.value.tabIdx],v={type:"local",key:we(),path:M.key==="openInNewTab"?l.fullpath:Ut(l.fullpath),name:P("local"),mode:"scanned-fixed"};d.panes.push(v),d.key=v.key;break}case"openOnTheRight":{gt.set(B,b.value);let d=V.tabList[S.value.tabIdx+1];d||(d={panes:[],key:"",id:we()},V.tabList[S.value.tabIdx+1]=d);const v={type:"local",key:we(),path:l.fullpath,name:P("local"),stackKey:B};d.panes.push(v),d.key=v.key;break}case"send2BatchDownload":{gn.addFiles(j());break}case"viewGenInfo":{t.value=!0,n.value=await g.pushAction(()=>We(l.fullpath)).res;break}case"openWithLocalFileBrowser":{await qt(l.fullpath);break}case"deleteFiles":{const d=j(),v=async()=>{const q=d.map(F=>F.fullpath);if(await fn(q),le.success(P("deleteSuccess")),T.value){const F=pe(l)===V.fullscreenPreviewInitialUrl,ge=i.value===a.value.length-1;if((F||ge)&&(ze(),await ut(100),F&&a.value.length>1)){const Me=i.value;ut(0).then(()=>ea(Me,U.value))}}ce.emit("removeFiles",{paths:q,loc:O.value})};if(d.length===1&&V.ignoredConfirmActions.deleteOneOnly)return v();await new Promise(q=>{ye.confirm({title:P("confirmDelete"),maskClosable:!0,width:"60vw",content:()=>s("div",null,[s("ol",{style:{maxHeight:"50vh",overflow:"auto"}},[d.map(F=>s("li",null,[F.fullpath.split(/[/\\]/).pop()]))]),s(Et,null,null),s(mn,{checked:V.ignoredConfirmActions.deleteOneOnly,"onUpdate:checked":F=>V.ignoredConfirmActions.deleteOneOnly=F},{default:()=>[P("deleteOneOnlySkipConfirm"),C(" ("),P("resetOnGlobalSettingsPage"),C(")")]})]),async onOk(){await v(),q()}})});break}}return{}},{isOutside:A}=Ot(U);return ve("keydown",M=>{var m,p,B;const l=$n(M);if(T.value){l==="Esc"&&ze();const X=(m=Object.entries(V.shortcut).find(j=>j[1]===l&&j[1]))==null?void 0:m[0];if(X){M.stopPropagation(),M.preventDefault();const j=i.value,Y=a.value[j];switch(X){case"delete":return x({key:"deleteFiles"},Y,j);case"download":return x({key:"download"},Y,j);default:{const G=(p=/^toggle_tag_(.*)$/.exec(X))==null?void 0:p[1],se=(B=V.conf)==null?void 0:B.all_custom_tags.find(R=>R.name===G);if(se)return x({key:`toggle-tag-${se.id}`},Y,j);if(X.startsWith("copy_to_")){const R=X.split("copy_to_")[1];return x({key:`copy-to-${R}`},Y,j)}if(X.startsWith("move_to_")){const R=X.split("move_to_")[1];return x({key:`move-to-${R}`},Y,j)}}}}}else!A.value&&["Ctrl + KeyA","Cmd + KeyA"].includes(l)&&(M.preventDefault(),M.stopPropagation(),W.value.emit("selectAll"))}),{onFileItemClick:h,onContextMenuClick:x,showGenInfo:t,imageGenInfo:n,q:g}}function ta(e,t,n,a){let i=0,u=0,b=typeof(a==null?void 0:a.width)=="number"?a.width:0,O=typeof(a==null?void 0:a.height)=="number"?a.height:0,E=typeof(a==null?void 0:a.left)=="number"?a.left:0,T=typeof(a==null?void 0:a.top)=="number"?a.top:0,U=!1;const W=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!t.value)&&(i=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,u=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,b=e.value.offsetWidth,O=e.value.offsetHeight,t.value.offsetLeft,t.value.offsetTop,document.documentElement.addEventListener("mousemove",S),document.documentElement.addEventListener("touchmove",S),document.documentElement.addEventListener("mouseup",I),document.documentElement.addEventListener("touchend",I))},S=l=>{if(!e.value||!t.value)return;let m=b+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-i),p=O+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-u);e.value.offsetLeft+m>window.innerWidth&&(m=window.innerWidth-e.value.offsetLeft),e.value.offsetTop+p>window.innerHeight&&(p=window.innerHeight-e.value.offsetTop),e.value.style.width=`${m}px`,e.value.style.height=`${p}px`,a!=null&&a.onResize&&a.onResize(m,p)},I=()=>{document.documentElement.removeEventListener("mousemove",S),document.documentElement.removeEventListener("touchmove",S),document.documentElement.removeEventListener("mouseup",I),document.documentElement.removeEventListener("touchend",I)},L=l=>{l.stopPropagation(),l.preventDefault(),!(!e.value||!n.value)&&(U=!0,E=e.value.offsetLeft,T=e.value.offsetTop,i=l instanceof MouseEvent?l.clientX:l.touches[0].clientX,u=l instanceof MouseEvent?l.clientY:l.touches[0].clientY,document.documentElement.addEventListener("mousemove",g),document.documentElement.addEventListener("touchmove",g),document.documentElement.addEventListener("mouseup",h),document.documentElement.addEventListener("touchend",h))},g=l=>{if(!e.value||!n.value||!U)return;const m=E+((l instanceof MouseEvent?l.clientX:l.touches[0].clientX)-i),p=T+((l instanceof MouseEvent?l.clientY:l.touches[0].clientY)-u);m<0?e.value.style.left="0px":m+e.value.offsetWidth>window.innerWidth?e.value.style.left=`${window.innerWidth-e.value.offsetWidth}px`:e.value.style.left=`${m}px`,p<0?e.value.style.top="0px":p+e.value.offsetHeight>window.innerHeight?e.value.style.top=`${window.innerHeight-e.value.offsetHeight}px`:e.value.style.top=`${p}px`,a!=null&&a.onDrag&&a.onDrag(m,p)},h=()=>{U=!1,document.documentElement.removeEventListener("mousemove",g),document.documentElement.removeEventListener("touchmove",g),document.documentElement.removeEventListener("mouseup",h),document.documentElement.removeEventListener("touchend",h)},x=()=>{if(!e.value||!t.value)return;let l=e.value.offsetLeft,m=e.value.offsetTop,p=e.value.offsetWidth,B=e.value.offsetHeight;l+p>window.innerWidth&&(l=window.innerWidth-p,l<0&&(l=0,p=window.innerWidth)),m+B>window.innerHeight&&(m=window.innerHeight-B,m<0&&(m=0,B=window.innerHeight)),e.value.style.left=`${l}px`,e.value.style.top=`${m}px`,e.value.style.width=`${p}px`,e.value.style.height=`${B}px`},A=()=>{!e.value||!a||(typeof a.width=="number"&&(e.value.style.width=`${a.width}px`),typeof a.height=="number"&&(e.value.style.height=`${a.height}px`),typeof a.left=="number"&&(e.value.style.left=`${a.left}px`),typeof a.top=="number"&&(e.value.style.top=`${a.top}px`),x(),window.addEventListener("resize",x))},M=()=>{document.documentElement.removeEventListener("mousemove",S),document.documentElement.removeEventListener("touchmove",S),document.documentElement.removeEventListener("mouseup",I),document.documentElement.removeEventListener("touchend",I),document.documentElement.removeEventListener("mousemove",g),document.documentElement.removeEventListener("touchmove",g),document.documentElement.removeEventListener("mouseup",h),document.documentElement.removeEventListener("touchend",h),window.removeEventListener("resize",x)};return Lt(A),kt(M),fe(()=>a==null?void 0:a.disbaled,async l=>{await Yt(),l!==void 0&&(l?M():A())}),fe(()=>[e.value,t.value,n.value],([l,m,p])=>{l&&m&&(m.addEventListener("mousedown",W),m.addEventListener("touchstart",W)),l&&p&&(p.addEventListener("mousedown",L),p.addEventListener("touchstart",L))}),{handleResizeMouseDown:W,handleDragMouseDown:L}}let wt=null;const na=()=>{var E,T;const e=Je(),t=be(qe+"fullscreen_layout",{enable:!1,panelWidth:384,alwaysOn:!0}),n=Gt(wt??((T=(E=e.conf)==null?void 0:E.app_fe_setting)==null?void 0:T.fullscreen_layout)??De(t.value)),a="--iib-lr-layout-info-panel-width",i=Q(()=>n.alwaysOn&&n.enable?n.panelWidth:0);fe(n,U=>{t.value=De(U),_t(n,a,i),aa(n),wt=n},{deep:!0}),Lt(()=>_t(n,a,i));const{enable:u,panelWidth:b,alwaysOn:O}=Zt(n);return{state:n,isLeftRightLayout:u,panelwidtrhStyleVarName:a,lrLayoutInfoPanelWidth:b,lrMenuAlwaysOn:O}},aa=Le(e=>Kt("fullscreen_layout",e),300),_t=Le((e,t,n)=>{e.enable?(document.body.classList.add("fullscreen-lr-layout"),document.documentElement.style.setProperty(t,`${e.panelWidth}px`),document.documentElement.style.setProperty("--iib-lr-layout-container-offset",`${n.value}px`)):(document.documentElement.style.removeProperty(t),document.documentElement.style.removeProperty("--iib-lr-layout-container-offset"),document.body.classList.remove("fullscreen-lr-layout"))},300);/*! -author:kooboy_li@163.com -MIT licensed -*/let Ct=19968,la=(40896-Ct)/2,He="",Oe=",",oa=(()=>{let e=[];for(let t=33;t<127;t++)t!=34&&t!=92&&t!=45&&e.push(String.fromCharCode(t));return e.join(He)})(),tt={a:{yi:"!]#R$!$q(3(p)[*2*g+6+d.C.q0[0w1L2<717l8B8E9?:8;V;[;e;{<)<+.>4??@~A`BbC:CGC^CiDMDjDkF!H/H;JaL?M.M2MoNCN|OgO|P$P)PBPyQ~R%R.S.T;Tk^l$lt?uJv$vMyE|R}a-!}-#&-#8-#L-#b-$Q-%?-+q-,6-,8",yu:"#V$l%S&9&I('(7(=)))m*#*$*B+2+F+v,0,b,i.W0.1F232L2a3(384>6P8n;';i;y<1>(>)>]@iB&X&m&s'2'X'd'f(9(c(i(j)@)l+'+M.).+1y1{2=3K4c6&6'6)606<6B6`9`9{:a`?`AgCLCuD%D2F2GyH&H1I;K~LkLuM&MYO0O3O9P8PbPcQqR5S2SCU0U~V%XYY&Z}[G^P`7cUc}dEeNgOj$j)l?m:n4p,sOuRv.y'{/|i}1~P-$B-%Y-)|-)}-*K-+G-+H-,m-.@-.M-/|-0y-2D-2c-4W-4`-4h-7a-7p-9c-9i",shang:")Y6V9cJvR8UqXJXa])asbQc,s,uSvz-#+-.;",xia:"#Y#w&,&;'''I)1.u/j7=:[<'B[ByCtL'NmNyQOR([0`(cLh[iRkVt/t_u4uezFzM|W|{~d-&)-*4-.}-0a-5;-8S",han:"#,.m/h:l

MFrGXJqNrOUPCPqPrQ|]@`+`2h1lBlZnXp*r;rWrkz9{4{B}x-#c-#y-$;-$l-$y-%Q-%n-(i-(x-)i-/!-3*-5B-9V",wan:"#=$0&o.]0F4@5X5b6*628u9pk@,JhR`b$b`knmtujz'z0}<-#+-'I-*Q-16-7m",san:"3T3q3w3x7~uJuwzA-'n-([-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",pa:"-%/vLisihd.]oX|NC@r8608)P#!",se:"-%,-$,yogK_WY%X`W~J/J.Hl",nv:"vkc7OM@!",nuan:"vcPo;`:m2X2W",shuo:"v]a'WhT'S|OKGnCn>>470W+p",niu:"v?q=dKd0]S]![DN?@8@!4u/e/d.W",rao:"u2rA]PU?KkFJ",niang:"t|r&qb",shui:"t]iTZMYuA$A#@{=.=*",nve:"t)%S$%",nen:"sirarYc^",niao:"s!r+qsnwFq9x",kuan:"pBp#ooK)CoCfCd",cuan:"jPV'U*T~TwDtD7BU@o6E5K1S0<",te:"dsdr`R/F/9",zen:"d5VU",zei:"^H",den:"][]C",zhua:"],ZYV#ER0:09",shuan:"[&L^GL{let t=0,n=1;for(let a=e.length;a--;)t+=n*oa.indexOf(e.charAt(a)),n*=91;return t},St=(e,t)=>{let n,a,i,u,b;for(n in e)if(e.hasOwnProperty(n))for(a=e[n].match(ia),i=0;i(rn("data-v-9ad72ee9"),e=e(),cn(),e),ga={key:0},pa={class:"container"},ha={class:"action-bar"},fa=["title"],va=["title"],ma=["title"],$a=["src"],ya={key:0,class:"icon",style:{cursor:"pointer"}},ba={key:2,"flex-placeholder":""},wa={key:3,class:"action-bar"},_a={key:0,class:"gen-info"},ka={class:"info-tags"},Oa={class:"info-tag"},La={class:"name"},xa=["title"],za={class:"name"},Ea=["title","onDblclick"],Ma={key:0,class:"tags-container"},Ca={style:{display:"inline-block",width:"32px"}},Sa=["onClick"],Fa=["onClick"],Pa={class:"lr-layout-control"},Ta={class:"ctrl-item"},Ia={class:"ctrl-item"},Aa={class:"ctrl-item"},Da=me(()=>k("br",null,null,-1)),ja=me(()=>k("h3",null,"Prompt",-1)),Wa=["innerHTML"],qa=me(()=>k("br",null,null,-1)),Ua=me(()=>k("h3",null,"Negative Prompt",-1)),Na=["innerHTML"],Ba=me(()=>k("br",null,null,-1)),Ha=me(()=>k("h3",null,"Params",-1)),Xa={style:{"font-weight":"600","text-transform":"capitalize"}},Ja=["onDblclick"],Va=["onDblclick"],Ya=["title"],Ga=xt({__name:"fullScreenContextMenu",props:{file:{},idx:{}},emits:["contextMenuClick"],setup(e,{emit:t}){const n=e;Qt(o=>({d25885fc:r(m)?0:"46px","3bd17575":r(l)+"px",24523279:`calc(100vw - ${r(l)}px)`}));const a=Je(),i=Rt(),u=oe(),b=Q(()=>i.tagMap.get(n.file.fullpath)??[]),O=oe(""),E=Xe(),T=oe(""),U=Q(()=>T.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")),W=Q(()=>U.value.split(` -`)),S=Q(()=>rt(U.value)),I=Q(()=>{let o=rt(U.value);return delete o.prompt,delete o.negativePrompt,o});fe(()=>{var o;return(o=n==null?void 0:n.file)==null?void 0:o.fullpath},async o=>{o&&(E.tasks.forEach(c=>c.cancel()),E.pushAction(()=>We(o)).res.then(c=>{T.value=c}))},{immediate:!0});const L=be("iib@fullScreenContextMenu.prompt-tab","structedData"),g=oe(),h=oe(),x={left:100,top:100,width:512,height:384,expanded:!0},A=be("fullScreenContextMenu.vue-drag",x);A.value&&(A.value.left<0||A.value.top<0)&&(A.value={...x});const{isLeftRightLayout:M,lrLayoutInfoPanelWidth:l,lrMenuAlwaysOn:m}=na(),p=M;ta(u,g,h,{disbaled:p,...A.value,onDrag:Le(function(o,c){A.value={...A.value,left:o,top:c}},300),onResize:Le(function(o,c){A.value={...A.value,width:o,height:c}},300)});const B=oe(!1),{isOutside:X}=Ot(Q(()=>!p.value||m.value?null:B.value?u.value:je(document.querySelectorAll(".iib-tab-edge-trigger"))));fe(X,yn(o=>{B.value=!o},300));function j(o){return o.parentNode}function Y(o){if(!o)return"";const c=[],ne="BREAK",N=o.replace(/>\s/g,"> ,").replace(/\sBREAK\s/g,","+ne+",").split(/[\n,]+/).map(D=>D.trim()).filter(D=>D);let z=!1;for(let D=0;DBREAK
');continue}const Z=N[D];z||(z=Z.includes("("));const ue=["tag"];z&&ue.push("has-parentheses"),Z.length<32&&ue.push("short-tag"),c.push(`${Z}`),z&&(z=!Z.includes(")"))}return c.join(a.showCommaInInfoPanel?",":" ")}ve("load",o=>{const c=o.target;c.className==="ant-image-preview-img"&&(O.value=`${c.naturalWidth} x ${c.naturalHeight}`)},{capture:!0});const G=Q(()=>{const o=[{name:P("fileSize"),val:n.file.size}];return O.value&&o.push({name:P("resolution"),val:O.value}),o}),se=()=>{const o="Negative prompt:",c=T.value.includes(o)?T.value.split(o)[0]:W.value[0]??"";de(Fe(c.trim()))},R=()=>document.body.requestFullscreen(),$e=o=>{de(typeof o=="object"?JSON.stringify(o,null,4):o)},d=o=>{o.key.startsWith("Arrow")?(o.stopPropagation(),o.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",o))):o.key==="Escape"&&document.fullscreenElement&&document.exitFullscreen()};ve("dblclick",o=>{var c;((c=o.target)==null?void 0:c.className)==="ant-image-preview-img"&&ze()});const v=Q(()=>p.value||A.value.expanded),q=be(qe+"contextShowFullPath",!1),F=Q(()=>q.value?n.file.fullpath:n.file.name),ge=be(qe+"tagA2ZClassify",!1),Me=Q(()=>{var ne;const o=(ne=a.conf)==null?void 0:ne.all_custom_tags.map(N=>{var D,Z;return{char:((D=N.display_name)==null?void 0:D[0])||((Z=N.name)==null?void 0:Z[0]),...N}}).reduce((N,z)=>{var Z;let D="#";if(/[a-z]/i.test(z.char))D=z.char.toUpperCase();else if(/[\u4e00-\u9fa5]/.test(z.char))try{D=((Z=/^\[?(\w)/.exec(da(z.char)+""))==null?void 0:Z[1])??"#"}catch(ue){console.log("err",ue)}return D=D.toUpperCase(),N[D]||(N[D]=[]),N[D].push(z),N},{});return Object.entries(o??{}).sort((N,z)=>N[0].charCodeAt(0)-z[0].charCodeAt(0))});return(o,c)=>{var lt;const ne=wn,N=he,z=tn,D=nn,Z=an,ue=ln,Ft=he,nt=bn,Pt=vn,Tt=on,at=sn,It=un;return $(),_("div",{ref_key:"el",ref:u,class:Se(["full-screen-menu",{"unset-size":!r(A).expanded,lr:r(p),"always-on":r(m),"mouse-in":B.value}]),onWheelCapture:c[13]||(c[13]=en(()=>{},["stop"])),onKeydownCapture:d},[r(p)?($(),_("div",ga)):H("",!0),k("div",pa,[k("div",ha,[r(p)?H("",!0):($(),_("div",{key:0,ref_key:"dragHandle",ref:h,class:"icon",style:{cursor:"grab"},title:r(P)("dragToMovePanel")},[s(r(Pn))],8,fa)),r(p)?H("",!0):($(),_("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:c[0]||(c[0]=f=>r(A).expanded=!r(A).expanded),title:r(P)("clickToToggleMaximizeMinimize")},[v.value?($(),ae(r(Dn),{key:0})):($(),ae(r(Un),{key:1}))],8,va)),k("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:r(P)("fullscreenview"),onClick:R},[k("img",{src:r(Qn),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,$a)],8,ma),s(ne,{"get-popup-container":j},{overlay:w(()=>[s(pn,{file:o.file,idx:o.idx,"selected-tag":b.value,onContextMenuClick:c[1]||(c[1]=(f,J,te)=>t("contextMenuClick",f,J,te))},null,8,["file","idx","selected-tag"])]),default:w(()=>[r(A).expanded?H("",!0):($(),_("div",ya,[s(r(ct))]))]),_:1}),v.value?($(),_("div",ba)):H("",!0),v.value?($(),_("div",wa,[s(ne,{trigger:["hover"],"get-popup-container":j},{overlay:w(()=>[s(ue,{onClick:c[2]||(c[2]=f=>t("contextMenuClick",f,o.file,o.idx))},{default:w(()=>{var f;return[((f=r(a).conf)==null?void 0:f.launch_mode)!=="server"?($(),_(K,{key:0},[s(z,{key:"send2txt2img"},{default:w(()=>[C(y(o.$t("sendToTxt2img")),1)]),_:1}),s(z,{key:"send2img2img"},{default:w(()=>[C(y(o.$t("sendToImg2img")),1)]),_:1}),s(z,{key:"send2inpaint"},{default:w(()=>[C(y(o.$t("sendToInpaint")),1)]),_:1}),s(z,{key:"send2extras"},{default:w(()=>[C(y(o.$t("sendToExtraFeatures")),1)]),_:1}),s(D,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:w(()=>[s(z,{key:"send2controlnet-txt2img"},{default:w(()=>[C("ControlNet - "+y(o.$t("t2i")),1)]),_:1}),s(z,{key:"send2controlnet-img2img"},{default:w(()=>[C("ControlNet - "+y(o.$t("i2i")),1)]),_:1}),s(z,{key:"send2outpaint"},{default:w(()=>[C("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):H("",!0),s(z,{key:"send2BatchDownload"},{default:w(()=>[C(y(o.$t("sendToBatchDownload")),1)]),_:1}),s(D,{key:"copy2target",title:o.$t("copyTo")},{default:w(()=>[($(!0),_(K,null,re(r(a).quickMovePaths,J=>($(),ae(z,{key:`copy-to-${J.dir}`},{default:w(()=>[C(y(J.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),s(D,{key:"move2target",title:o.$t("moveTo")},{default:w(()=>[($(!0),_(K,null,re(r(a).quickMovePaths,J=>($(),ae(z,{key:`move-to-${J.dir}`},{default:w(()=>[C(y(J.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),s(Z),s(z,{key:"deleteFiles"},{default:w(()=>[C(y(o.$t("deleteSelected")),1)]),_:1}),s(z,{key:"previewInNewWindow"},{default:w(()=>[C(y(o.$t("previewInNewWindow")),1)]),_:1}),s(z,{key:"copyPreviewUrl"},{default:w(()=>[C(y(o.$t("copySourceFilePreviewLink")),1)]),_:1}),s(z,{key:"copyFilePath"},{default:w(()=>[C(y(o.$t("copyFilePath")),1)]),_:1})]}),_:1})]),default:w(()=>[s(N,null,{default:w(()=>[C(y(r(P)("openContextMenu")),1)]),_:1})]),_:1}),s(Ft,{onClick:c[3]||(c[3]=f=>t("contextMenuClick",{key:"download"},n.file,n.idx))},{default:w(()=>[C(y(o.$t("download")),1)]),_:1}),T.value?($(),ae(N,{key:0,onClick:c[4]||(c[4]=f=>r(de)(T.value))},{default:w(()=>[C(y(o.$t("copyPrompt")),1)]),_:1})):H("",!0),T.value?($(),ae(N,{key:1,onClick:se},{default:w(()=>[C(y(o.$t("copyPositivePrompt")),1)]),_:1})):H("",!0)])):H("",!0)]),v.value?($(),_("div",_a,[k("div",ka,[k("span",Oa,[k("span",La,y(o.$t("fileName")),1),k("span",{class:"value",title:F.value,onDblclick:c[5]||(c[5]=f=>r(de)(F.value))},y(F.value),41,xa),k("span",{style:{margin:"0 8px",cursor:"pointer"},title:"Click to expand full path",onClick:c[6]||(c[6]=f=>q.value=!r(q))},[s(r(ct))])]),($(!0),_(K,null,re(G.value,f=>($(),_("span",{class:"info-tag",key:f.name},[k("span",za,y(f.name),1),k("span",{class:"value",title:f.val,onDblclick:J=>r(de)(f.val)},y(f.val),41,Ea)]))),128))]),(lt=r(a).conf)!=null&<.all_custom_tags?($(),_("div",Ma,[k("div",{class:"sort-tag-switch",onClick:c[7]||(c[7]=f=>ge.value=!r(ge))},[r(ge)?($(),ae(r(Ln),{key:1})):($(),ae(r(Kn),{key:0}))]),k("div",{class:"tag",onClick:c[8]||(c[8]=(...f)=>r(Be)&&r(Be)(...f)),style:Ce({"--tag-color":"var(--zp-luminous)"})},"+ "+y(o.$t("add")),5),r(ge)?($(!0),_(K,{key:0},re(Me.value,([f,J])=>($(),_("div",{key:f,class:"tag-alpha-item"},[k("h4",Ca,y(f)+" : ",1),k("div",null,[($(!0),_(K,null,re(J,te=>($(),_("div",{class:Se(["tag",{selected:b.value.some(ot=>ot.id===te.id)}]),onClick:ot=>t("contextMenuClick",{key:`toggle-tag-${te.id}`},o.file,o.idx),key:te.id,style:Ce({"--tag-color":r(i).getColor(te)})},y(te.name),15,Sa))),128))])]))),128)):($(!0),_(K,{key:1},re(r(a).conf.all_custom_tags,f=>($(),_("div",{class:Se(["tag",{selected:b.value.some(J=>J.id===f.id)}]),onClick:J=>t("contextMenuClick",{key:`toggle-tag-${f.id}`},o.file,o.idx),key:f.id,style:Ce({"--tag-color":r(i).getColor(f)})},y(f.name),15,Fa))),128))])):H("",!0),k("div",Pa,[k("div",Ta,[C(y(o.$t("experimentalLRLayout"))+": ",1),s(nt,{checked:r(p),"onUpdate:checked":c[9]||(c[9]=f=>_e(p)?p.value=f:null),size:"small"},null,8,["checked"])]),r(p)?($(),_(K,{key:0},[k("div",Ia,[C(y(o.$t("width"))+": ",1),s(Pt,{value:r(l),"onUpdate:value":c[10]||(c[10]=f=>_e(l)?l.value=f:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),s(Tt,{title:o.$t("alwaysOnTooltipInfo")},{default:w(()=>[k("div",Aa,[C(y(o.$t("alwaysOn"))+": ",1),s(nt,{checked:r(m),"onUpdate:checked":c[11]||(c[11]=f=>_e(m)?m.value=f:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):H("",!0)]),s(It,{activeKey:r(L),"onUpdate:activeKey":c[12]||(c[12]=f=>_e(L)?L.value=f:null)},{default:w(()=>[s(at,{key:"structedData",tab:o.$t("structuredData")},{default:w(()=>[k("div",null,[S.value.prompt?($(),_(K,{key:0},[Da,ja,k("code",{innerHTML:Y(S.value.prompt??"")},null,8,Wa)],64)):H("",!0),S.value.negativePrompt?($(),_(K,{key:1},[qa,Ua,k("code",{innerHTML:Y(S.value.negativePrompt??"")},null,8,Na)],64)):H("",!0)]),Object.keys(I.value).length?($(),_(K,{key:0},[Ba,Ha,k("table",null,[($(!0),_(K,null,re(I.value,(f,J)=>($(),_("tr",{key:J,class:"gen-info-frag"},[k("td",Xa,y(J),1),typeof f=="object"?($(),_("td",{key:0,style:{cursor:"pointer"},onDblclick:te=>$e(f)},[k("code",null,y(f),1)],40,Ja)):($(),_("td",{key:1,style:{cursor:"pointer"},onDblclick:te=>$e(r(Fe)(f))},y(r(Fe)(f)),41,Va))]))),128))])],64)):H("",!0)]),_:1},8,["tab"]),s(at,{key:"sourceText",tab:o.$t("sourceText")},{default:w(()=>[k("code",null,y(T.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):H("",!0)]),r(A).expanded&&!r(p)?($(),_("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:g,title:r(P)("dragToResizePanel")},[s(r(Mn))],8,Ya)):H("",!0)],34)}}});const gl=zt(Ga,[["__scopeId","data-v-9ad72ee9"]]),Za={key:0,class:"float-panel"},Ka={key:0,class:"select-actions"},Qa={key:1},Ra=xt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const n=Je(),a=()=>{t("clearAllSelected"),n.keepMultiSelect=!1},i=()=>{n.keepMultiSelect=!0};return(u,b)=>{const O=he;return u.show?($(),_("div",Za,[r(n).keepMultiSelect?($(),_("div",Ka,[s(O,{size:"small",onClick:b[0]||(b[0]=E=>t("selectAll"))},{default:w(()=>[C(y(u.$t("select-all")),1)]),_:1}),s(O,{size:"small",onClick:b[1]||(b[1]=E=>t("reverseSelect"))},{default:w(()=>[C(y(u.$t("rerverse-select")),1)]),_:1}),s(O,{size:"small",onClick:b[2]||(b[2]=E=>t("clearAllSelected"))},{default:w(()=>[C(y(u.$t("clear-all-selected")),1)]),_:1}),s(O,{size:"small",onClick:a},{default:w(()=>[C(y(u.$t("exit")),1)]),_:1})])):($(),_("div",Qa,[s(O,{size:"small",type:"primary",onClick:i},{default:w(()=>[C(y(u.$t("keep-multi-selected")),1)]),_:1})]))])):H("",!0)}}});const pl=zt(Ra,[["__scopeId","data-v-b04c3508"]]);export{sl as L,ul as R,pl as _,cl as a,dl as b,rl as c,gl as f,ve as u}; diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-60fc08a8.js b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-60fc08a8.js deleted file mode 100644 index be5bd5e0e0f382452dd1a52f24eb2bfeb25c2661..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-60fc08a8.js +++ /dev/null @@ -1 +0,0 @@ -import{c as s,A as ze,d as Me,r as k,o as De,c7 as X,m as Fe,B as Ve,ax as Be,y as Ue,z as Ee,C as Y,c8 as He,$ as Pe,S as g,T as A,a1 as t,a2 as e,U as u,V as i,W as o,a0 as b,Y as h,a3 as V,cj as Te,ae as R,a4 as Z,J as Ge,ad as Ne,X as je,R as ee,ah as Je,ai as te,cc as Ke,ag as Le,aN as qe,aO as We,ck as Qe,ce as Xe,Z as Ye}from"./index-5b5fdd56.js";import{S as Ze}from"./index-b9a282d1.js";/* empty css */import"./index-2869601c.js";import{c as et,d as tt,F as st}from"./FileItem-b2542180.js";import{_ as at,L as lt,R as nt,f as ot}from"./MultiSelectKeep-72e9597f.js";import{c as it,u as rt}from"./hook-ba2adfba.js";import{f as O,H as se,_ as dt,a as ut}from"./searchHistory-6e606991.js";import"./functionalCallableComp-51195a3e.js";/* empty css */import"./_isIterateeCall-c830f443.js";import"./index-b6f2a43c.js";import"./shortcut-bdce38ed.js";import"./Checkbox-5fa7cbf6.js";import"./index-a0e30b33.js";import"./useGenInfoDiff-3e61c6d2.js";var ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const pt=ct;function ae(c){for(var p=1;p(qe("data-v-127e6fd2"),c=c(),We(),c),mt={style:{"padding-right":"16px"}},_t=U(()=>u("div",null,null,-1)),ht=["title"],yt=["src"],bt={class:"search-bar"},kt={class:"form-name"},wt={class:"search-bar last actions"},St={class:"hint"},Ct={key:0,style:{margin:"64px 16px 32px",padding:"8px",background:"var(--zp-secondary-variant-background)","border-radius":"16px"}},xt={style:{margin:"16px 32px 16px"}},It={style:{"padding-right":"16px"}},$t=U(()=>u("div",null,null,-1)),At=U(()=>u("div",{style:{padding:"16px 0 512px"}},null,-1)),Rt={key:2,class:"preview-switch"},Ot=Me({__name:"SubstrSearch",props:{tabIdx:{},paneIdx:{},searchScope:{}},setup(c){const p=c,d=k(!1),f=k(""),_=k(!1),w=k(p.searchScope??""),C=k(!1),E=k(0),z=it(l=>{const a={cursor:l,regexp:d.value?f.value:"",surstr:d.value?"":f.value,path_only:_.value,folder_paths:(w.value??"").split(/,|\n/).map(r=>r.trim()).filter(r=>r)};return Qe(a)}),{queue:S,images:m,onContextMenuClickU:H,stackViewEl:le,previewIdx:x,previewing:P,onPreviewVisibleChange:ne,previewImgMove:T,canPreview:G,itemSize:N,gridItems:oe,showGenInfo:I,imageGenInfo:j,q:ie,multiSelectedIdxs:M,onFileItemClick:re,scroller:J,showMenuIdx:D,onFileDragStart:de,onFileDragEnd:ue,cellWidth:ce,onScroll:K,saveAllFileAsJson:pe,saveLoadedFileAsJson:fe,props:ve,changeIndchecked:ge,seedChangeChecked:me,getGenDiff:_e,getGenDiffWatchDep:he}=rt(z),v=k();De(async()=>{v.value=await X(),v.value.img_count&&v.value.expired&&await L(),p.searchScope&&await $()}),Fe(()=>p,async l=>{ve.value=l},{deep:!0,immediate:!0});const L=Ve(()=>S.pushAction(async()=>(await Xe(),v.value=await X(),v.value)).res),q=l=>{f.value=l.substr,w.value=l.folder_paths_str,d.value=l.isRegex,C.value=!1,$()},$=async()=>{E.value++,O.value.add({substr:f.value,folder_paths_str:w.value,isRegex:d.value}),await z.reset({refetch:!0}),await Be(),K(),J.value.scrollToItem(0),m.value.length||Ue.info(Ee("fuzzy-search-noResults"))};Y("returnToIIB",async()=>{const l=await S.pushAction(He).res;v.value.expired=l.expired}),Y("searchIndexExpired",()=>v.value&&(v.value.expired=!0));const ye=()=>{d.value=!d.value},be=Pe(),{onClearAllSelected:ke,onSelectAll:we,onReverseSelect:Se}=et();return(l,a)=>{const r=dt,y=ut,Ce=ee,xe=Je,W=te,Ie=Ke,F=te,$e=Le,Ae=ee,Re=Ze;return g(),A(je,null,[s(Ce,{visible:C.value,"onUpdate:visible":a[0]||(a[0]=n=>C.value=n),width:"70vw","mask-closable":"",onOk:a[1]||(a[1]=n=>C.value=!1)},{default:t(()=>[s(se,{records:e(O),onReuseRecord:q},{default:t(({record:n})=>[u("div",mt,[s(y,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(g(),b(y,{key:0},{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(l.$t("searchScope"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):h("",!0),s(y,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),s(y,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(l.$t("time"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),_t])]),_:1},8,["records"])]),_:1},8,["visible"]),u("div",{class:"container",ref_key:"stackViewEl",ref:le},[s(at,{show:!!e(M).length||e(be).keepMultiSelect,onClearAllSelected:e(ke),onSelectAll:e(we),onReverseSelect:e(Se)},null,8,["show","onClearAllSelected","onSelectAll","onReverseSelect"]),v.value?(g(),A("div",{key:0,class:"search-bar",onKeydown:a[6]||(a[6]=V(()=>{},["stop"]))},[s(xe,{value:f.value,"onUpdate:value":a[2]||(a[2]=n=>f.value=n),placeholder:l.$t("fuzzy-search-placeholder")+" "+l.$t("regexSearchEnabledHint"),disabled:!e(S).isIdle,onKeydown:Te($,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),u("div",{class:R(["regex-icon",{selected:_.value}]),onKeydown:a[3]||(a[3]=V(()=>{},["stop"])),onClick:a[4]||(a[4]=n=>_.value=!_.value),title:l.$t("pathOnly")},[s(e(vt))],42,ht),u("div",{class:R(["regex-icon",{selected:d.value}]),onKeydown:a[5]||(a[5]=V(()=>{},["stop"])),onClick:ye,title:"Use Regular Expression"},[u("img",{src:e(gt)},null,8,yt)],34),v.value.expired||!v.value.img_count?(g(),b(W,{key:0,onClick:e(L),loading:!e(S).isIdle,type:"primary"},{default:t(()=>[i(o(v.value.img_count===0?l.$t("generateIndexHint"):l.$t("UpdateIndex")),1)]),_:1},8,["onClick","loading"])):(g(),b(W,{key:1,type:"primary",onClick:$,loading:!e(S).isIdle||e(z).loading,disabled:!f.value&&!w.value},{default:t(()=>[i(o(l.$t("search")),1)]),_:1},8,["loading","disabled"]))],32)):h("",!0),u("div",bt,[u("div",kt,o(l.$t("searchScope")),1),s(Ie,{"auto-size":{maxRows:8},value:w.value,"onUpdate:value":a[7]||(a[7]=n=>w.value=n),placeholder:l.$t("specifiedSearchFolder")},null,8,["value","placeholder"])]),u("div",wt,[e(m).length?(g(),b(F,{key:0,onClick:e(fe)},{default:t(()=>[i(o(l.$t("saveLoadedImageAsJson")),1)]),_:1},8,["onClick"])):h("",!0),e(m).length?(g(),b(F,{key:1,onClick:e(pe)},{default:t(()=>[i(o(l.$t("saveAllAsJson")),1)]),_:1},8,["onClick"])):h("",!0),s(F,{onClick:a[8]||(a[8]=n=>C.value=!0)},{default:t(()=>[i(o(l.$t("history")),1)]),_:1})]),s(Re,{size:"large",spinning:!e(S).isIdle},{default:t(()=>[s(Ae,{visible:e(I),"onUpdate:visible":a[10]||(a[10]=n=>Z(I)?I.value=n:null),width:"70vw","mask-closable":"",onOk:a[11]||(a[11]=n=>I.value=!1)},{cancelText:t(()=>[]),default:t(()=>[s($e,{active:"",loading:!e(ie).isIdle},{default:t(()=>[u("div",{style:{width:"100%","word-break":"break-all","white-space":"pre-line","max-height":"70vh",overflow:"auto"},onDblclick:a[9]||(a[9]=n=>e(Ge)(e(j)))},[u("div",St,o(l.$t("doubleClickToCopy")),1),i(" "+o(e(j)),1)],32)]),_:1},8,["loading"])]),_:1},8,["visible"]),E.value===0&&!e(m).length&&e(O).getRecords().length?(g(),A("div",Ct,[u("h2",xt,o(l.$t("restoreFromHistory")),1),s(se,{records:e(O),onReuseRecord:q},{default:t(({record:n})=>[u("div",It,[s(y,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(l.$t("historyRecordsSubstr"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.substr),1)]),_:2},1024)]),_:2},1024),n.folder_paths_str?(g(),b(y,{key:0},{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(l.$t("searchScope"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.folder_paths_str),1)]),_:2},1024)]),_:2},1024)):h("",!0),s(y,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(l.$t("historyRecordsisRegex"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.isRegex),1)]),_:2},1024)]),_:2},1024),s(y,null,{default:t(()=>[s(r,{span:4},{default:t(()=>[i(o(l.$t("time"))+":",1)]),_:1}),s(r,{span:20},{default:t(()=>[i(o(n.time),1)]),_:2},1024)]),_:2},1024),$t])]),_:1},8,["records"])])):h("",!0),e(m)?(g(),b(e(tt),{key:1,ref_key:"scroller",ref:J,class:"file-list",items:e(m),"item-size":e(N).first,"key-field":"fullpath","item-secondary-size":e(N).second,gridItems:e(oe),onScroll:e(K)},{after:t(()=>[At]),default:t(({item:n,index:Q})=>[s(st,{idx:Q,file:n,"show-menu-idx":e(D),"onUpdate:showMenuIdx":a[12]||(a[12]=Oe=>Z(D)?D.value=Oe:null),onFileItemClick:e(re),"full-screen-preview-image-url":e(m)[e(x)]?e(Ne)(e(m)[e(x)]):"","cell-width":e(ce),selected:e(M).includes(Q),onContextMenuClick:e(H),onDragstart:e(de),onDragend:e(ue),"enable-change-indicator":e(ge),"seed-change-checked":e(me),"get-gen-diff":e(_e),"get-gen-diff-watch-dep":e(he),"is-selected-mutil-files":e(M).length>1,onPreviewVisibleChange:e(ne)},null,8,["idx","file","show-menu-idx","onFileItemClick","full-screen-preview-image-url","cell-width","selected","onContextMenuClick","onDragstart","onDragend","enable-change-indicator","seed-change-checked","get-gen-diff","get-gen-diff-watch-dep","is-selected-mutil-files","onPreviewVisibleChange"])]),_:1},8,["items","item-size","item-secondary-size","gridItems","onScroll"])):h("",!0),e(P)?(g(),A("div",Rt,[s(e(lt),{onClick:a[13]||(a[13]=n=>e(T)("prev")),class:R({disable:!e(G)("prev")})},null,8,["class"]),s(e(nt),{onClick:a[14]||(a[14]=n=>e(T)("next")),class:R({disable:!e(G)("next")})},null,8,["class"])])):h("",!0)]),_:1},8,["spinning"]),e(P)&&e(m)&&e(m)[e(x)]?(g(),b(ot,{key:1,file:e(m)[e(x)],idx:e(x),onContextMenuClick:e(H)},null,8,["file","idx","onContextMenuClick"])):h("",!0)],512)],64)}}});const Lt=Ye(Ot,[["__scopeId","data-v-127e6fd2"]]);export{Lt as default}; diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-bd649892.css b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-bd649892.css deleted file mode 100644 index e4591d17ef55bd680ba8897af3d48a003598f35c..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-bd649892.css +++ /dev/null @@ -1 +0,0 @@ -[data-v-127e6fd2] .float-panel{position:fixed}.regex-icon[data-v-127e6fd2]{user-select:none;padding:4px;margin:0 4px;cursor:pointer;border:1px solid var(--zp-border);border-radius:4px}.regex-icon img[data-v-127e6fd2]{height:1.5em}.regex-icon[data-v-127e6fd2]:hover{background:var(--zp-border)}.regex-icon.selected[data-v-127e6fd2]{background:var(--primary-color-1);border:1px solid var(--primary-color)}.search-bar[data-v-127e6fd2]{padding:8px 8px 0;display:flex}.search-bar.last[data-v-127e6fd2]{padding-bottom:8px}.search-bar .form-name[data-v-127e6fd2]{flex-shrink:0;padding:4px 8px}.search-bar .actions>*[data-v-127e6fd2]{margin-right:4px}.container[data-v-127e6fd2]{background:var(--zp-secondary-background);position:relative}.container .file-list[data-v-127e6fd2]{list-style:none;padding:8px;height:100%;overflow:auto;height:var(--pane-max-height);width:100%} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/TagSearch-e73a1416.js b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/TagSearch-e73a1416.js deleted file mode 100644 index c79fc7e37e56ffbc2d529aed3f1a9471aa5d8cce..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/TagSearch-e73a1416.js +++ /dev/null @@ -1,15 +0,0 @@ -import{P as Je,aw as Xi,d as se,bx as Lo,b4 as Zi,r as W,bA as Ji,m as Qe,u as Do,E as Z,al as yn,h as he,c as P,a as Gt,bB as Qi,b as el,f as tl,bC as nl,an as ha,bD as rl,aX as al,i as ol,bc as il,bE as ll,ar as en,as as mn,aq as sl,A as ul,a_ as cl,aY as dl,bF as pr,aZ as fl,bG as pl,bH as No,bs as vl,bI as Vo,bJ as hl,bK as gl,bL as yl,bM as ml,bN as bl,bq as Cl,bO as ga,bP as Fo,bQ as _l,bR as xl,bS as wl,ak as Te,bT as jt,ax as Ko,bU as fe,bV as Sl,I as $r,at as Wo,bW as kl,bX as We,o as zo,S as A,T as L,U as S,ae as le,a5 as ce,X as $e,a6 as lt,Y as K,bY as Al,V as ae,W as z,av as Ol,bZ as $l,b_ as El,b$ as ne,a0 as G,a1 as q,c0 as ya,c1 as ma,aE as vr,c2 as Rl,aN as dt,aO as ft,c3 as Uo,a3 as bn,a2 as xe,c4 as Tl,c5 as Ml,Z as Go,$ as Pl,c6 as Il,n as jl,x as Hl,O as Bl,c7 as ba,q as Ll,C as Ca,B as Dl,c8 as Nl,aa as Un,aK as Vl,c9 as Fl,y as _a,z as Gn,R as xa,ca as Kl,cb as Wl,ai as wa,cc as zl,ah as Ul,cd as Gl,ce as ql}from"./index-5b5fdd56.js";import{S as Yl}from"./index-b9a282d1.js";/* empty css */import{b as Xl,i as Zl}from"./index-cd339d07.js";import{t as Sa,_ as Jl,a as Ql,H as es}from"./searchHistory-6e606991.js";import"./index-2869601c.js";import{i as ts}from"./_isIterateeCall-c830f443.js";var ns=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:Je.object,expandIconPosition:Je.oneOf(Xi("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},qo=function(){return{openAnimation:Je.object,prefixCls:String,header:Je.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:Je.any,panelKey:Je.oneOfType([Je.string,Je.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function ka(e){var t=e;if(!Array.isArray(t)){var n=el(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}const qt=se({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Lo(ns(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:Zi("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(t,n){var r=n.attrs,a=n.slots,o=n.emit,s=W(ka(Ji([t.activeKey,t.defaultActiveKey])));Qe(function(){return t.activeKey},function(){s.value=ka(t.activeKey)},{deep:!0});var i=Do("collapse",t),l=i.prefixCls,c=i.direction,u=Z(function(){var g=t.expandIconPosition;return g!==void 0?g:c.value==="rtl"?"right":"left"}),d=function(p){var C=t.expandIcon,_=C===void 0?a.expandIcon:C,w=_?_(p):P(rl,{rotate:p.isActive?90:void 0},null);return P("div",null,[al(Array.isArray(_)?w[0]:w)?ha(w,{class:"".concat(l.value,"-arrow")},!1):w])},v=function(p){t.activeKey===void 0&&(s.value=p);var C=t.accordion?p[0]:p;o("update:activeKey",C),o("change",C)},f=function(p){var C=s.value;if(t.accordion)C=C[0]===p?[]:[p];else{C=ol(C);var _=C.indexOf(p),w=_>-1;w?C.splice(_,1):C.push(p)}v(C)},m=function(p,C){var _,w,$;if(!nl(p)){var O=s.value,M=t.accordion,D=t.destroyInactivePanel,j=t.collapsible,F=t.openAnimation,b=String((_=p.key)!==null&&_!==void 0?_:C),R=p.props||{},T=R.header,H=T===void 0?(w=p.children)===null||w===void 0||($=w.header)===null||$===void 0?void 0:$.call(w):T,N=R.headerClass,U=R.collapsible,h=R.disabled,x=!1;M?x=O[0]===b:x=O.indexOf(b)>-1;var E=U??j;(h||h==="")&&(E="disabled");var V={key:b,panelKey:b,header:H,headerClass:N,isActive:x,prefixCls:l.value,destroyInactivePanel:D,openAnimation:F,accordion:M,onItemClick:E==="disabled"?null:f,expandIcon:d,collapsible:E};return ha(p,V)}},y=function(){var p;return tl((p=a.default)===null||p===void 0?void 0:p.call(a)).map(m)};return function(){var g,p=t.accordion,C=t.bordered,_=t.ghost,w=yn((g={},he(g,l.value,!0),he(g,"".concat(l.value,"-borderless"),!C),he(g,"".concat(l.value,"-icon-position-").concat(u.value),!0),he(g,"".concat(l.value,"-rtl"),c.value==="rtl"),he(g,"".concat(l.value,"-ghost"),!!_),he(g,r.class,!!r.class),g));return P("div",Gt(Gt({class:w},Qi(r)),{},{style:r.style,role:p?"tablist":null}),[y()])}}}),rs=se({compatConfig:{MODE:3},name:"PanelContent",props:qo(),setup:function(t,n){var r=n.slots,a=W(!1);return il(function(){(t.isActive||t.forceRender)&&(a.value=!0)}),function(){var o,s;if(!a.value)return null;var i=t.prefixCls,l=t.isActive,c=t.role;return P("div",{ref:W,class:yn("".concat(i,"-content"),(o={},he(o,"".concat(i,"-content-active"),l),he(o,"".concat(i,"-content-inactive"),!l),o)),role:c},[P("div",{class:"".concat(i,"-content-box")},[(s=r.default)===null||s===void 0?void 0:s.call(r)])])}}}),Cn=se({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Lo(qo(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(t,n){var r=n.slots,a=n.emit,o=n.attrs;ll(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var s=Do("collapse",t),i=s.prefixCls,l=function(){a("itemClick",t.panelKey)},c=function(d){(d.key==="Enter"||d.keyCode===13||d.which===13)&&l()};return function(){var u,d,v,f,m=t.header,y=m===void 0?(u=r.header)===null||u===void 0?void 0:u.call(r):m,g=t.headerClass,p=t.isActive,C=t.showArrow,_=t.destroyInactivePanel,w=t.accordion,$=t.forceRender,O=t.openAnimation,M=t.expandIcon,D=M===void 0?r.expandIcon:M,j=t.extra,F=j===void 0?(d=r.extra)===null||d===void 0?void 0:d.call(r):j,b=t.collapsible,R=b==="disabled",T=i.value,H=yn("".concat(T,"-header"),(v={},he(v,g,g),he(v,"".concat(T,"-header-collapsible-only"),b==="header"),v)),N=yn((f={},he(f,"".concat(T,"-item"),!0),he(f,"".concat(T,"-item-active"),p),he(f,"".concat(T,"-item-disabled"),R),he(f,"".concat(T,"-no-arrow"),!C),he(f,"".concat(o.class),!!o.class),f)),U=P("i",{class:"arrow"},null);C&&typeof D=="function"&&(U=D(t));var h=en(P(rs,{prefixCls:T,isActive:p,forceRender:$,role:w?"tabpanel":null},{default:r.default}),[[mn,p]]),x=Gt({appear:!1,css:!1},O);return P("div",Gt(Gt({},o),{},{class:N}),[P("div",{class:H,onClick:function(){return b!=="header"&&l()},role:w?"tab":"button",tabindex:R?-1:0,"aria-expanded":p,onKeypress:c},[C&&U,b==="header"?P("span",{onClick:l,class:"".concat(T,"-header-text")},[y]):y,F&&P("div",{class:"".concat(T,"-extra")},[F])]),P(sl,x,{default:function(){return[!_||p?h:null]}})])}}});qt.Panel=Cn;qt.install=function(e){return e.component(qt.name,qt),e.component(Cn.name,Cn),e};var as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const os=as;function Aa(e){for(var t=1;t1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,s&&ts(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r=0,o=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(js,arguments)},brighten:function(){return this._applyModification(Hs,arguments)},darken:function(){return this._applyModification(Bs,arguments)},desaturate:function(){return this._applyModification(Ms,arguments)},saturate:function(){return this._applyModification(Ps,arguments)},greyscale:function(){return this._applyModification(Is,arguments)},spin:function(){return this._applyModification(Ls,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(Vs,arguments)},complement:function(){return this._applyCombination(Ds,arguments)},monochromatic:function(){return this._applyCombination(Fs,arguments)},splitcomplement:function(){return this._applyCombination(Ns,arguments)},triad:function(){return this._applyCombination(Ta,[3])},tetrad:function(){return this._applyCombination(Ta,[4])}};k.fromRatio=function(e,t){if(_n(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=zt(e[r]));e=n}return k(e,t)};function Os(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=Gs(e)),_n(e)=="object"&&(Fe(e.r)&&Fe(e.g)&&Fe(e.b)?(t=$s(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fe(e.h)&&Fe(e.s)&&Fe(e.v)?(r=zt(e.s),a=zt(e.v),t=Rs(e.h,r,a),s=!0,i="hsv"):Fe(e.h)&&Fe(e.s)&&Fe(e.l)&&(r=zt(e.s),o=zt(e.l),t=Es(e.h,r,o),s=!0,i="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Zo(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function $s(e,t,n){return{r:X(e,255)*255,g:X(t,255)*255,b:X(n,255)*255}}function Oa(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=(r+a)/2;if(r==a)o=s=0;else{var l=r-a;switch(s=i>.5?l/(2-r-a):l/(r+a),r){case e:o=(t-n)/l+(t1&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=a=o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=s(l,i,e+1/3),a=s(l,i,e),o=s(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function $a(e,t,n){e=X(e,255),t=X(t,255),n=X(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,s,i=r,l=r-a;if(s=r===0?0:l/r,r==a)o=0;else{switch(r){case e:o=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(k(r));return o}function Fs(e,t){t=t||6;for(var n=k(e).toHsv(),r=n.h,a=n.s,o=n.v,s=[],i=1/t;t--;)s.push(k({h:r,s:a,v:o})),o=(o+i)%1;return s}k.mix=function(e,t,n){n=n===0?0:n||50;var r=k(e).toRgb(),a=k(t).toRgb(),o=n/100,s={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return k(s)};k.readability=function(e,t){var n=k(e),r=k(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};k.isReadable=function(e,t,n){var r=k.readability(e,t),a,o;switch(o=!1,a=qs(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};k.mostReadable=function(e,t,n){var r=null,a=0,o,s,i,l;n=n||{},s=n.includeFallbackColors,i=n.level,l=n.size;for(var c=0;ca&&(a=o,r=k(t[c]));return k.isReadable(e,r,{level:i,size:l})||!s?r:(n.includeFallbackColors=!1,k.mostReadable(e,["#fff","#000"],n))};var yr=k.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ks=k.hexNames=Ws(yr);function Ws(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Zo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function X(e,t){zs(e)&&(e="100%");var n=Us(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function jn(e){return Math.min(1,Math.max(0,e))}function _e(e){return parseInt(e,16)}function zs(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Us(e){return typeof e=="string"&&e.indexOf("%")!=-1}function He(e){return e.length==1?"0"+e:""+e}function zt(e){return e<=1&&(e=e*100+"%"),e}function Jo(e){return Math.round(parseFloat(e)*255).toString(16)}function Ma(e){return _e(e)/255}var je=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Fe(e){return!!je.CSS_UNIT.exec(e)}function Gs(e){e=e.replace(ks,"").replace(As,"").toLowerCase();var t=!1;if(yr[e])e=yr[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=je.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=je.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=je.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=je.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=je.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=je.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=je.hex8.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),a:Ma(n[4]),format:t?"name":"hex8"}:(n=je.hex6.exec(e))?{r:_e(n[1]),g:_e(n[2]),b:_e(n[3]),format:t?"name":"hex"}:(n=je.hex4.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),a:Ma(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=je.hex3.exec(e))?{r:_e(n[1]+""+n[1]),g:_e(n[2]+""+n[2]),b:_e(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function qs(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var pt=pt||{};pt.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),a=e.visit(t.style);return a&&(n+=" "+a),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,a=e.visit(n.length);return a&&(r+=" "+a),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(a,o){n+=e.visit(a),o0&&n("Invalid input not EOF"),h}function a(){return _(o)}function o(){return s("linear-gradient",e.linearGradient,l)||s("repeating-linear-gradient",e.repeatingLinearGradient,l)||s("radial-gradient",e.radialGradient,d)||s("repeating-radial-gradient",e.repeatingRadialGradient,d)}function s(h,x,E){return i(x,function(V){var ue=E();return ue&&(N(e.comma)||n("Missing comma before color stops")),{type:h,orientation:ue,colorStops:_(w)}})}function i(h,x){var E=N(h);if(E){N(e.startCall)||n("Missing (");var V=x(E);return N(e.endCall)||n("Missing )"),V}}function l(){return c()||u()}function c(){return H("directional",e.sideOrCorner,1)}function u(){return H("angular",e.angleValue,1)}function d(){var h,x=v(),E;return x&&(h=[],h.push(x),E=t,N(e.comma)&&(x=v(),x?h.push(x):t=E)),h}function v(){var h=f()||m();if(h)h.at=g();else{var x=y();if(x){h=x;var E=g();E&&(h.at=E)}else{var V=p();V&&(h={type:"default-radial",at:V})}}return h}function f(){var h=H("shape",/^(circle)/i,0);return h&&(h.style=T()||y()),h}function m(){var h=H("shape",/^(ellipse)/i,0);return h&&(h.style=b()||y()),h}function y(){return H("extent-keyword",e.extentKeywords,1)}function g(){if(H("position",/^at/,0)){var h=p();return h||n("Missing positioning value"),h}}function p(){var h=C();if(h.x||h.y)return{type:"position",value:h}}function C(){return{x:b(),y:b()}}function _(h){var x=h(),E=[];if(x)for(E.push(x);N(e.comma);)x=h(),x?E.push(x):n("One extra comma");return E}function w(){var h=$();return h||n("Expected color definition"),h.length=b(),h}function $(){return M()||j()||D()||O()}function O(){return H("literal",e.literalColor,0)}function M(){return H("hex",e.hexColor,1)}function D(){return i(e.rgbColor,function(){return{type:"rgb",value:_(F)}})}function j(){return i(e.rgbaColor,function(){return{type:"rgba",value:_(F)}})}function F(){return N(e.number)[1]}function b(){return H("%",e.percentageValue,1)||R()||T()}function R(){return H("position-keyword",e.positionKeywords,1)}function T(){return H("px",e.pixelValue,1)||H("em",e.emValue,1)}function H(h,x,E){var V=N(x);if(V)return{type:h,value:V[E]}}function N(h){var x,E;return E=/^[\n\r\t\s]+/.exec(t),E&&U(E[0].length),x=h.exec(t),x&&U(x[0].length),x}function U(h){t=t.substr(h)}return function(h){return t=h.toString(),r()}}();var Ys=pt.parse,Xs=pt.stringify,me="top",Me="bottom",Pe="right",be="left",Rr="auto",on=[me,Me,Pe,be],kt="start",tn="end",Zs="clippingParents",Qo="viewport",Vt="popper",Js="reference",Pa=on.reduce(function(e,t){return e.concat([t+"-"+kt,t+"-"+tn])},[]),ei=[].concat(on,[Rr]).reduce(function(e,t){return e.concat([t,t+"-"+kt,t+"-"+tn])},[]),Qs="beforeRead",eu="read",tu="afterRead",nu="beforeMain",ru="main",au="afterMain",ou="beforeWrite",iu="write",lu="afterWrite",su=[Qs,eu,tu,nu,ru,au,ou,iu,lu];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Se(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function st(e){var t=Se(e).Element;return e instanceof t||e instanceof Element}function Ee(e){var t=Se(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tr(e){if(typeof ShadowRoot>"u")return!1;var t=Se(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uu(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!Ee(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var i=a[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function cu(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ee(a)||!Ne(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const du={name:"applyStyles",enabled:!0,phase:"write",fn:uu,effect:cu,requires:["computeStyles"]};function Le(e){return e.split("-")[0]}var it=Math.max,xn=Math.min,At=Math.round;function mr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ti(){return!/^((?!chrome|android).)*safari/i.test(mr())}function Ot(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&Ee(e)&&(a=e.offsetWidth>0&&At(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&At(r.height)/e.offsetHeight||1);var s=st(e)?Se(e):window,i=s.visualViewport,l=!ti()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/a,u=(r.top+(l&&i?i.offsetTop:0))/o,d=r.width/a,v=r.height/o;return{width:d,height:v,top:u,right:c+d,bottom:u+v,left:c,x:c,y:u}}function Mr(e){var t=Ot(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ni(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ue(e){return Se(e).getComputedStyle(e)}function fu(e){return["table","td","th"].indexOf(Ne(e))>=0}function rt(e){return((st(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(Tr(e)?e.host:null)||rt(e)}function Ia(e){return!Ee(e)||Ue(e).position==="fixed"?null:e.offsetParent}function pu(e){var t=/firefox/i.test(mr()),n=/Trident/i.test(mr());if(n&&Ee(e)){var r=Ue(e);if(r.position==="fixed")return null}var a=Hn(e);for(Tr(a)&&(a=a.host);Ee(a)&&["html","body"].indexOf(Ne(a))<0;){var o=Ue(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function ln(e){for(var t=Se(e),n=Ia(e);n&&fu(n)&&Ue(n).position==="static";)n=Ia(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&Ue(n).position==="static")?t:n||pu(e)||t}function Pr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yt(e,t,n){return it(e,xn(t,n))}function vu(e,t,n){var r=Yt(e,t,n);return r>n?n:r}function ri(){return{top:0,right:0,bottom:0,left:0}}function ai(e){return Object.assign({},ri(),e)}function oi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var hu=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ai(typeof t!="number"?t:oi(t,on))};function gu(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Le(n.placement),l=Pr(i),c=[be,Pe].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!s)){var d=hu(a.padding,n),v=Mr(o),f=l==="y"?me:be,m=l==="y"?Me:Pe,y=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],p=ln(o),C=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,_=y/2-g/2,w=d[f],$=C-v[u]-d[m],O=C/2-v[u]/2+_,M=Yt(w,O,$),D=l;n.modifiersData[r]=(t={},t[D]=M,t.centerOffset=M-O,t)}}function yu(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ni(t.elements.popper,a)&&(t.elements.arrow=a))}const mu={name:"arrow",enabled:!0,phase:"main",fn:gu,effect:yu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(e){return e.split("-")[1]}var bu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cu(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:At(n*a)/a||0,y:At(r*a)/a||0}}function ja(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,v=s.x,f=v===void 0?0:v,m=s.y,y=m===void 0?0:m,g=typeof u=="function"?u({x:f,y}):{x:f,y};f=g.x,y=g.y;var p=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),_=be,w=me,$=window;if(c){var O=ln(n),M="clientHeight",D="clientWidth";if(O===Se(n)&&(O=rt(n),Ue(O).position!=="static"&&i==="absolute"&&(M="scrollHeight",D="scrollWidth")),O=O,a===me||(a===be||a===Pe)&&o===tn){w=Me;var j=d&&O===$&&$.visualViewport?$.visualViewport.height:O[M];y-=j-r.height,y*=l?1:-1}if(a===be||(a===me||a===Me)&&o===tn){_=Pe;var F=d&&O===$&&$.visualViewport?$.visualViewport.width:O[D];f-=F-r.width,f*=l?1:-1}}var b=Object.assign({position:i},c&&bu),R=u===!0?Cu({x:f,y},Se(n)):{x:f,y};if(f=R.x,y=R.y,l){var T;return Object.assign({},b,(T={},T[w]=C?"0":"",T[_]=p?"0":"",T.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",T))}return Object.assign({},b,(t={},t[w]=C?y+"px":"",t[_]=p?f+"px":"",t.transform="",t))}function _u(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:Le(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ja(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ja(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_u,data:{}};var dn={passive:!0};function wu(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,i=s===void 0?!0:s,l=Se(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,dn)}),i&&l.addEventListener("resize",n.update,dn),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,dn)}),i&&l.removeEventListener("resize",n.update,dn)}}const Su={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wu,data:{}};var ku={left:"right",right:"left",bottom:"top",top:"bottom"};function hn(e){return e.replace(/left|right|bottom|top/g,function(t){return ku[t]})}var Au={start:"end",end:"start"};function Ha(e){return e.replace(/start|end/g,function(t){return Au[t]})}function Ir(e){var t=Se(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jr(e){return Ot(rt(e)).left+Ir(e).scrollLeft}function Ou(e,t){var n=Se(e),r=rt(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=ti();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+jr(e),y:l}}function $u(e){var t,n=rt(e),r=Ir(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=it(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+jr(e),l=-r.scrollTop;return Ue(a||n).direction==="rtl"&&(i+=it(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:l}}function Hr(e){var t=Ue(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function ii(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Ee(e)&&Hr(e)?e:ii(Hn(e))}function Xt(e,t){var n;t===void 0&&(t=[]);var r=ii(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Se(r),s=a?[o].concat(o.visualViewport||[],Hr(r)?r:[]):r,i=t.concat(s);return a?i:i.concat(Xt(Hn(s)))}function br(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Eu(e,t){var n=Ot(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ba(e,t,n){return t===Qo?br(Ou(e,n)):st(t)?Eu(t,n):br($u(rt(e)))}function Ru(e){var t=Xt(Hn(e)),n=["absolute","fixed"].indexOf(Ue(e).position)>=0,r=n&&Ee(e)?ln(e):e;return st(r)?t.filter(function(a){return st(a)&&ni(a,r)&&Ne(a)!=="body"}):[]}function Tu(e,t,n,r){var a=t==="clippingParents"?Ru(e):[].concat(t),o=[].concat(a,[n]),s=o[0],i=o.reduce(function(l,c){var u=Ba(e,c,r);return l.top=it(u.top,l.top),l.right=xn(u.right,l.right),l.bottom=xn(u.bottom,l.bottom),l.left=it(u.left,l.left),l},Ba(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function li(e){var t=e.reference,n=e.element,r=e.placement,a=r?Le(r):null,o=r?$t(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case me:l={x:s,y:t.y-n.height};break;case Me:l={x:s,y:t.y+t.height};break;case Pe:l={x:t.x+t.width,y:i};break;case be:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?Pr(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case kt:l[c]=l[c]-(t[u]/2-n[u]/2);break;case tn:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function nn(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?Zs:i,c=n.rootBoundary,u=c===void 0?Qo:c,d=n.elementContext,v=d===void 0?Vt:d,f=n.altBoundary,m=f===void 0?!1:f,y=n.padding,g=y===void 0?0:y,p=ai(typeof g!="number"?g:oi(g,on)),C=v===Vt?Js:Vt,_=e.rects.popper,w=e.elements[m?C:v],$=Tu(st(w)?w:w.contextElement||rt(e.elements.popper),l,u,s),O=Ot(e.elements.reference),M=li({reference:O,element:_,strategy:"absolute",placement:a}),D=br(Object.assign({},_,M)),j=v===Vt?D:O,F={top:$.top-j.top+p.top,bottom:j.bottom-$.bottom+p.bottom,left:$.left-j.left+p.left,right:j.right-$.right+p.right},b=e.modifiersData.offset;if(v===Vt&&b){var R=b[a];Object.keys(F).forEach(function(T){var H=[Pe,Me].indexOf(T)>=0?1:-1,N=[me,Me].indexOf(T)>=0?"y":"x";F[T]+=R[N]*H})}return F}function Mu(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ei:l,u=$t(r),d=u?i?Pa:Pa.filter(function(m){return $t(m)===u}):on,v=d.filter(function(m){return c.indexOf(m)>=0});v.length===0&&(v=d);var f=v.reduce(function(m,y){return m[y]=nn(e,{placement:y,boundary:a,rootBoundary:o,padding:s})[Le(y)],m},{});return Object.keys(f).sort(function(m,y){return f[m]-f[y]})}function Pu(e){if(Le(e)===Rr)return[];var t=hn(e);return[Ha(e),t,Ha(t)]}function Iu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,v=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,y=n.allowedAutoPlacements,g=t.options.placement,p=Le(g),C=p===g,_=l||(C||!m?[hn(g)]:Pu(g)),w=[g].concat(_).reduce(function(Be,Ce){return Be.concat(Le(Ce)===Rr?Mu(t,{placement:Ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:y}):Ce)},[]),$=t.rects.reference,O=t.rects.popper,M=new Map,D=!0,j=w[0],F=0;F=0,N=H?"width":"height",U=nn(t,{placement:b,boundary:u,rootBoundary:d,altBoundary:v,padding:c}),h=H?T?Pe:be:T?Me:me;$[N]>O[N]&&(h=hn(h));var x=hn(h),E=[];if(o&&E.push(U[R]<=0),i&&E.push(U[h]<=0,U[x]<=0),E.every(function(Be){return Be})){j=b,D=!1;break}M.set(b,E)}if(D)for(var V=m?3:1,ue=function(Ce){var Ye=w.find(function(yt){var Ve=M.get(yt);if(Ve)return Ve.slice(0,Ce).every(function(Dt){return Dt})});if(Ye)return j=Ye,"break"},Ae=V;Ae>0;Ae--){var ye=ue(Ae);if(ye==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const ju={name:"flip",enabled:!0,phase:"main",fn:Iu,requiresIfExists:["offset"],data:{_skip:!1}};function La(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Da(e){return[me,Pe,Me,be].some(function(t){return e[t]>=0})}function Hu(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=nn(t,{elementContext:"reference"}),i=nn(t,{altBoundary:!0}),l=La(s,r),c=La(i,a,o),u=Da(l),d=Da(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Bu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hu};function Lu(e,t,n){var r=Le(e),a=[be,me].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[be,Pe].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function Du(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=ei.reduce(function(u,d){return u[d]=Lu(d,t.rects,o),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Nu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Du};function Vu(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fu={name:"popperOffsets",enabled:!0,phase:"read",fn:Vu,data:{}};function Ku(e){return e==="x"?"y":"x"}function Wu(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,v=n.tether,f=v===void 0?!0:v,m=n.tetherOffset,y=m===void 0?0:m,g=nn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),p=Le(t.placement),C=$t(t.placement),_=!C,w=Pr(p),$=Ku(w),O=t.modifiersData.popperOffsets,M=t.rects.reference,D=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(O){if(o){var T,H=w==="y"?me:be,N=w==="y"?Me:Pe,U=w==="y"?"height":"width",h=O[w],x=h+g[H],E=h-g[N],V=f?-D[U]/2:0,ue=C===kt?M[U]:D[U],Ae=C===kt?-D[U]:-M[U],ye=t.elements.arrow,Be=f&&ye?Mr(ye):{width:0,height:0},Ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ri(),Ye=Ce[H],yt=Ce[N],Ve=Yt(0,M[U],Be[U]),Dt=_?M[U]/2-V-Ve-Ye-F.mainAxis:ue-Ve-Ye-F.mainAxis,Kn=_?-M[U]/2+V+Ve+yt+F.mainAxis:Ae+Ve+yt+F.mainAxis,B=t.elements.arrow&&ln(t.elements.arrow),Nt=B?w==="y"?B.clientTop||0:B.clientLeft||0:0,ee=(T=b==null?void 0:b[w])!=null?T:0,Wn=h+Dt-ee-Nt,Xe=h+Kn-ee,la=Yt(f?xn(x,Wn):x,h,f?it(E,Xe):E);O[w]=la,R[w]=la-h}if(i){var sa,qi=w==="x"?me:be,Yi=w==="x"?Me:Pe,at=O[$],cn=$==="y"?"height":"width",ua=at+g[qi],ca=at-g[Yi],zn=[me,be].indexOf(p)!==-1,da=(sa=b==null?void 0:b[$])!=null?sa:0,fa=zn?ua:at-M[cn]-D[cn]-da+F.altAxis,pa=zn?at+M[cn]+D[cn]-da-F.altAxis:ca,va=f&&zn?vu(fa,at,pa):Yt(f?fa:ua,at,f?pa:ca);O[$]=va,R[$]=va-at}t.modifiersData[r]=R}}const zu={name:"preventOverflow",enabled:!0,phase:"main",fn:Wu,requiresIfExists:["offset"]};function Uu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gu(e){return e===Se(e)||!Ee(e)?Ir(e):Uu(e)}function qu(e){var t=e.getBoundingClientRect(),n=At(t.width)/e.offsetWidth||1,r=At(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Yu(e,t,n){n===void 0&&(n=!1);var r=Ee(t),a=Ee(t)&&qu(t),o=rt(t),s=Ot(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Hr(o))&&(i=Gu(t)),Ee(t)?(l=Ot(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=jr(o))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Xu(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function Zu(e){var t=Xu(e);return su.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Ju(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qu(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Na={placement:"bottom",modifiers:[],strategy:"absolute"};function Va(){for(var e=arguments.length,t=new Array(e),n=0;n - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */function Fa(e){return Object.prototype.toString.call(e)==="[object Object]"}function rc(e){var t,n;return Fa(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Fa(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}const ac={silent:!1,logLevel:"warn"},oc=["validator"],ui=Object.prototype,ci=ui.toString,ic=ui.hasOwnProperty,di=/^\s*function (\w+)/;function Ka(e){var t;const n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){const r=n.toString().match(di);return r?r[1]:""}return""}const ut=rc,lc=e=>e;let pe=lc;const Et=(e,t)=>ic.call(e,t),sc=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Rt=Array.isArray||function(e){return ci.call(e)==="[object Array]"},Tt=e=>ci.call(e)==="[object Function]",wn=e=>ut(e)&&Et(e,"_vueTypes_name"),fi=e=>ut(e)&&(Et(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>Et(e,t)));function Br(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function vt(e,t,n=!1){let r,a=!0,o="";r=ut(e)?e:{type:e};const s=wn(r)?r._vueTypes_name+" - ":"";if(fi(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return a;Rt(r.type)?(a=r.type.some(i=>vt(i,t,!0)===!0),o=r.type.map(i=>Ka(i)).join(" or ")):(o=Ka(r),a=o==="Array"?Rt(t):o==="Object"?ut(t):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(i){if(i==null)return"";const l=i.constructor.toString().match(di);return l?l[1]:""}(t)===o:t instanceof r.type)}if(!a){const i=`${s}value "${t}" should be of type "${o}"`;return n===!1?(pe(i),!1):i}if(Et(r,"validator")&&Tt(r.validator)){const i=pe,l=[];if(pe=c=>{l.push(c)},a=r.validator(t),pe=i,!a){const c=(l.length>1?"* ":"")+l.join(` -* `);return l.length=0,n===!1?(pe(c),a):c}}return a}function we(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(a){return a===void 0?(Et(this,"default")&&delete this.default,this):Tt(a)||vt(this,a,!0)===!0?(this.default=Rt(a)?()=>[...a]:ut(a)?()=>Object.assign({},a):a,this):(pe(`${this._vueTypes_name} - invalid default value: "${a}"`),this)}}}),{validator:r}=n;return Tt(r)&&(n.validator=Br(r,n)),n}function De(e,t){const n=we(e,t);return Object.defineProperty(n,"validate",{value(r){return Tt(this.validator)&&pe(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info: -${JSON.stringify(this)}`),this.validator=Br(r,this),this}})}function Wa(e,t,n){const r=function(l){const c={};return Object.getOwnPropertyNames(l).forEach(u=>{c[u]=Object.getOwnPropertyDescriptor(l,u)}),Object.defineProperties({},c)}(t);if(r._vueTypes_name=e,!ut(n))return r;const{validator:a}=n,o=si(n,oc);if(Tt(a)){let{validator:l}=r;l&&(l=(i=(s=l).__original)!==null&&i!==void 0?i:s),r.validator=Br(l?function(c){return l.call(this,c)&&a.call(this,c)}:a,r)}var s,i;return Object.assign(r,o)}function Bn(e){return e.replace(/^(?!\s*$)/gm," ")}const uc=()=>De("any",{}),cc=()=>De("function",{type:Function}),dc=()=>De("boolean",{type:Boolean}),fc=()=>De("string",{type:String}),pc=()=>De("number",{type:Number}),vc=()=>De("array",{type:Array}),hc=()=>De("object",{type:Object}),gc=()=>we("integer",{type:Number,validator:e=>sc(e)}),yc=()=>we("symbol",{validator:e=>typeof e=="symbol"});function mc(e,t="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return we(e.name||"<>",{type:null,validator(n){const r=e(n);return r||pe(`${this._vueTypes_name} - ${t}`),r}})}function bc(e){if(!Rt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,n=e.reduce((r,a)=>{if(a!=null){const o=a.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return we("oneOf",{type:n.length>0?n:void 0,validator(r){const a=e.indexOf(r)!==-1;return a||pe(t),a}})}function Cc(e){if(!Rt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=[];for(let a=0;an.indexOf(a)===o);const r=n.length>0?n:null;return we("oneOfType",t?{type:r,validator(a){const o=[],s=e.some(i=>{const l=vt(wn(i)&&i._vueTypes_name==="oneOf"?i.type||null:i,a,!0);return typeof l=="string"&&o.push(l),l===!0});return s||pe(`oneOfType - provided value does not match any of the ${o.length} passed-in validators: -${Bn(o.join(` -`))}`),s}}:{type:r})}function _c(e){return we("arrayOf",{type:Array,validator(t){let n="";const r=t.every(a=>(n=vt(e,a,!0),n===!0));return r||pe(`arrayOf - value validation error: -${Bn(n)}`),r}})}function xc(e){return we("instanceOf",{type:e})}function wc(e){return we("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(a=>(n=vt(e,t[a],!0),n===!0));return r||pe(`objectOf - value validation error: -${Bn(n)}`),r}})}function Sc(e){const t=Object.keys(e),n=t.filter(a=>{var o;return!((o=e[a])===null||o===void 0||!o.required)}),r=we("shape",{type:Object,validator(a){if(!ut(a))return!1;const o=Object.keys(a);if(n.length>0&&n.some(s=>o.indexOf(s)===-1)){const s=n.filter(i=>o.indexOf(i)===-1);return pe(s.length===1?`shape - required property "${s[0]}" is not defined.`:`shape - required properties "${s.join('", "')}" are not defined.`),!1}return o.every(s=>{if(t.indexOf(s)===-1)return this._vueTypes_isLoose===!0||(pe(`shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=vt(e[s],a[s],!0);return typeof i=="string"&&pe(`shape - "${s}" property validation error: - ${Bn(i)}`),i===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const kc=["name","validate","getter"],Ac=(()=>{var e;return(e=class{static get any(){return uc()}static get func(){return cc().def(this.defaults.func)}static get bool(){return dc().def(this.defaults.bool)}static get string(){return fc().def(this.defaults.string)}static get number(){return pc().def(this.defaults.number)}static get array(){return vc().def(this.defaults.array)}static get object(){return hc().def(this.defaults.object)}static get integer(){return gc().def(this.defaults.integer)}static get symbol(){return yc()}static get nullable(){return{type:null}}static extend(t){if(Rt(t))return t.forEach(l=>this.extend(l)),this;const{name:n,validate:r=!1,getter:a=!1}=t,o=si(t,kc);if(Et(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:s}=o;if(wn(s))return delete o.type,Object.defineProperty(this,n,a?{get:()=>Wa(n,s,o)}:{value(...l){const c=Wa(n,s,o);return c.validator&&(c.validator=c.validator.bind(c,...l)),c}});let i;return i=a?{get(){const l=Object.assign({},o);return r?De(n,l):we(n,l)},enumerable:!0}:{value(...l){const c=Object.assign({},o);let u;return u=r?De(n,c):we(n,c),c.validator&&(u.validator=c.validator.bind(u,...l)),u},enumerable:!0},Object.defineProperty(this,n,i)}}).defaults={},e.sensibleDefaults=void 0,e.config=ac,e.custom=mc,e.oneOf=bc,e.instanceOf=xc,e.oneOfType=Cc,e.arrayOf=_c,e.objectOf=wc,e.shape=Sc,e.utils={validate:(t,n)=>vt(n,t,!0)===!0,toType:(t,n,r=!1)=>r?De(t,n):we(t,n)},e})();function Oc(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends Ac{static get sensibleDefaults(){return Zt({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?Zt({},n!==!0?n:e):{}}}).defaults=Zt({},e),t}let I=class extends Oc(){};var za=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lr(e){var t={exports:{}};return e(t,t.exports),t.exports}var fn=function(e){return e&&e.Math==Math&&e},oe=fn(typeof globalThis=="object"&&globalThis)||fn(typeof window=="object"&&window)||fn(typeof self=="object"&&self)||fn(typeof za=="object"&&za)||function(){return this}()||Function("return this")(),Y=function(e){try{return!!e()}catch{return!0}},Oe=!Y(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ua={}.propertyIsEnumerable,Ga=Object.getOwnPropertyDescriptor,$c={f:Ga&&!Ua.call({1:2},1)?function(e){var t=Ga(this,e);return!!t&&t.enumerable}:Ua},Ln=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ec={}.toString,ze=function(e){return Ec.call(e).slice(8,-1)},Rc="".split,Dn=Y(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ze(e)=="String"?Rc.call(e,""):Object(e)}:Object,et=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Ht=function(e){return Dn(et(e))},ie=function(e){return typeof e=="object"?e!==null:typeof e=="function"},Dr=function(e,t){if(!ie(e))return e;var n,r;if(t&&typeof(n=e.toString)=="function"&&!ie(r=n.call(e))||typeof(n=e.valueOf)=="function"&&!ie(r=n.call(e))||!t&&typeof(n=e.toString)=="function"&&!ie(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Tc={}.hasOwnProperty,re=function(e,t){return Tc.call(e,t)},Cr=oe.document,Mc=ie(Cr)&&ie(Cr.createElement),pi=function(e){return Mc?Cr.createElement(e):{}},vi=!Oe&&!Y(function(){return Object.defineProperty(pi("div"),"a",{get:function(){return 7}}).a!=7}),qa=Object.getOwnPropertyDescriptor,Nr={f:Oe?qa:function(e,t){if(e=Ht(e),t=Dr(t,!0),vi)try{return qa(e,t)}catch{}if(re(e,t))return Ln(!$c.f.call(e,t),e[t])}},ge=function(e){if(!ie(e))throw TypeError(String(e)+" is not an object");return e},Ya=Object.defineProperty,Ge={f:Oe?Ya:function(e,t,n){if(ge(e),t=Dr(t,!0),ge(n),vi)try{return Ya(e,t,n)}catch{}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Re=Oe?function(e,t,n){return Ge.f(e,t,Ln(1,n))}:function(e,t,n){return e[t]=n,e},Vr=function(e,t){try{Re(oe,e,t)}catch{oe[e]=t}return t},ct=oe["__core-js_shared__"]||Vr("__core-js_shared__",{}),Pc=Function.toString;typeof ct.inspectSource!="function"&&(ct.inspectSource=function(e){return Pc.call(e)});var Sn,Jt,kn,hi=ct.inspectSource,Xa=oe.WeakMap,Ic=typeof Xa=="function"&&/native code/.test(hi(Xa)),gi=Lr(function(e){(e.exports=function(t,n){return ct[t]||(ct[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jc=0,Hc=Math.random(),Fr=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++jc+Hc).toString(36)},Za=gi("keys"),Kr=function(e){return Za[e]||(Za[e]=Fr(e))},Nn={},Bc=oe.WeakMap;if(Ic){var mt=ct.state||(ct.state=new Bc),Lc=mt.get,Dc=mt.has,Nc=mt.set;Sn=function(e,t){return t.facade=e,Nc.call(mt,e,t),t},Jt=function(e){return Lc.call(mt,e)||{}},kn=function(e){return Dc.call(mt,e)}}else{var Ft=Kr("state");Nn[Ft]=!0,Sn=function(e,t){return t.facade=e,Re(e,Ft,t),t},Jt=function(e){return re(e,Ft)?e[Ft]:{}},kn=function(e){return re(e,Ft)}}var tt={set:Sn,get:Jt,has:kn,enforce:function(e){return kn(e)?Jt(e):Sn(e,{})},getterFor:function(e){return function(t){var n;if(!ie(t)||(n=Jt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},nt=Lr(function(e){var t=tt.get,n=tt.enforce,r=String(String).split("String");(e.exports=function(a,o,s,i){var l,c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,d=!!i&&!!i.noTargetGet;typeof s=="function"&&(typeof o!="string"||re(s,"name")||Re(s,"name",o),(l=n(s)).source||(l.source=r.join(typeof o=="string"?o:""))),a!==oe?(c?!d&&a[o]&&(u=!0):delete a[o],u?a[o]=s:Re(a,o,s)):u?a[o]=s:Vr(o,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||hi(this)})}),qn=oe,Ja=function(e){return typeof e=="function"?e:void 0},Vn=function(e,t){return arguments.length<2?Ja(qn[e])||Ja(oe[e]):qn[e]&&qn[e][t]||oe[e]&&oe[e][t]},Vc=Math.ceil,Fc=Math.floor,Bt=function(e){return isNaN(e=+e)?0:(e>0?Fc:Vc)(e)},Kc=Math.min,ke=function(e){return e>0?Kc(Bt(e),9007199254740991):0},Wc=Math.max,zc=Math.min,An=function(e,t){var n=Bt(e);return n<0?Wc(n+t,0):zc(n,t)},Qa=function(e){return function(t,n,r){var a,o=Ht(t),s=ke(o.length),i=An(r,s);if(e&&n!=n){for(;s>i;)if((a=o[i++])!=a)return!0}else for(;s>i;i++)if((e||i in o)&&o[i]===n)return e||i||0;return!e&&-1}},yi={includes:Qa(!0),indexOf:Qa(!1)},Uc=yi.indexOf,mi=function(e,t){var n,r=Ht(e),a=0,o=[];for(n in r)!re(Nn,n)&&re(r,n)&&o.push(n);for(;t.length>a;)re(r,n=t[a++])&&(~Uc(o,n)||o.push(n));return o},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gc=On.concat("length","prototype"),qc={f:Object.getOwnPropertyNames||function(e){return mi(e,Gc)}},Yc={f:Object.getOwnPropertySymbols},Xc=Vn("Reflect","ownKeys")||function(e){var t=qc.f(ge(e)),n=Yc.f;return n?t.concat(n(e)):t},Zc=function(e,t){for(var n=Xc(t),r=Ge.f,a=Nr.f,o=0;o1?arguments[1]:void 0)}});(function(){function e(){ht(this,e)}return gt(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var sd=[].join,ud=Dn!=Object,cd=Wr("join",",");ve({target:"Array",proto:!0,forced:ud||!cd},{join:function(e){return sd.call(Ht(this),e===void 0?",":e)}});var bt,$n,qe=function(e){return Object(et(e))},Mt=Array.isArray||function(e){return ze(e)=="Array"},Ci=!!Object.getOwnPropertySymbols&&!Y(function(){return!String(Symbol())}),dd=Ci&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pn=gi("wks"),Qt=oe.Symbol,fd=dd?Qt:Qt&&Qt.withoutSetter||Fr,Q=function(e){return re(pn,e)||(Ci&&re(Qt,e)?pn[e]=Qt[e]:pn[e]=fd("Symbol."+e)),pn[e]},pd=Q("species"),Fn=function(e,t){var n;return Mt(e)&&(typeof(n=e.constructor)!="function"||n!==Array&&!Mt(n.prototype)?ie(n)&&(n=n[pd])===null&&(n=void 0):n=void 0),new(n===void 0?Array:n)(t===0?0:t)},Pt=function(e,t,n){var r=Dr(t);r in e?Ge.f(e,r,Ln(0,n)):e[r]=n},Xn=Vn("navigator","userAgent")||"",ro=oe.process,ao=ro&&ro.versions,oo=ao&&ao.v8;oo?$n=(bt=oo.split("."))[0]+bt[1]:Xn&&(!(bt=Xn.match(/Edge\/(\d+)/))||bt[1]>=74)&&(bt=Xn.match(/Chrome\/(\d+)/))&&($n=bt[1]);var En=$n&&+$n,vd=Q("species"),zr=function(e){return En>=51||!Y(function(){var t=[];return(t.constructor={})[vd]=function(){return{foo:1}},t[e](Boolean).foo!==1})},hd=zr("splice"),gd=Lt("splice",{ACCESSORS:!0,0:0,1:2}),yd=Math.max,md=Math.min;ve({target:"Array",proto:!0,forced:!hd||!gd},{splice:function(e,t){var n,r,a,o,s,i,l=qe(this),c=ke(l.length),u=An(e,c),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=c-u):(n=d-2,r=md(yd(Bt(t),0),c-u)),c+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(a=Fn(l,r),o=0;oc-r+n;o--)delete l[o-1]}else if(n>r)for(o=c-r;o>u;o--)i=o+n-1,(s=o+r-1)in l?l[i]=l[s]:delete l[i];for(o=0;o0&&(!o.multiline||o.multiline&&e[o.lastIndex-1]!==` -`)&&(l="(?: "+l+")",u=" "+u,c++),n=new RegExp("^(?:"+l+")",i)),er&&(n=new RegExp("^"+l+"$(?!\\s)",i)),Qn&&(t=o.lastIndex),r=Rn.call(s?n:o,u),s?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Qn&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),er&&r&&r.length>1&&xd.call(r[0],n,function(){for(a=1;a")!=="7"}),uo="a".replace(/./,"$0")==="$0",co=Q("replace"),fo=!!/./[co]&&/./[co]("a","$0")==="",Od=!Y(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Oi=function(e,t,n,r){var a=Q(e),o=!Y(function(){var d={};return d[a]=function(){return 7},""[e](d)!=7}),s=o&&!Y(function(){var d=!1,v=/a/;return e==="split"&&((v={}).constructor={},v.constructor[kd]=function(){return v},v.flags="",v[a]=/./[a]),v.exec=function(){return d=!0,null},v[a](""),!d});if(!o||!s||e==="replace"&&(!Ad||!uo||fo)||e==="split"&&!Od){var i=/./[a],l=n(a,""[e],function(d,v,f,m,y){return v.exec===rn?o&&!y?{done:!0,value:i.call(v,f,m)}:{done:!0,value:d.call(f,v,m)}:{done:!1}},{REPLACE_KEEPS_$0:uo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:fo}),c=l[0],u=l[1];nt(String.prototype,e,c),nt(RegExp.prototype,a,t==2?function(d,v){return u.call(d,this,v)}:function(d){return u.call(d,this)})}r&&Re(RegExp.prototype[a],"sham",!0)},$d=Q("match"),$i=function(e){var t;return ie(e)&&((t=e[$d])!==void 0?!!t:ze(e)=="RegExp")},Gr=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},Ed=Q("species"),po=function(e){return function(t,n){var r,a,o=String(et(t)),s=Bt(n),i=o.length;return s<0||s>=i?e?"":void 0:(r=o.charCodeAt(s))<55296||r>56319||s+1===i||(a=o.charCodeAt(s+1))<56320||a>57343?e?o.charAt(s):r:e?o.slice(s,s+2):a-56320+(r-55296<<10)+65536}},Ei={codeAt:po(!1),charAt:po(!0)},Rd=Ei.charAt,Ri=function(e,t,n){return t+(n?Rd(e,t).length:1)},xr=function(e,t){var n=e.exec;if(typeof n=="function"){var r=n.call(e,t);if(typeof r!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return r}if(ze(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return rn.call(e,t)},Td=[].push,Md=Math.min,Ct=!Y(function(){return!RegExp(4294967295,"y")});Oi("split",2,function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(a,o){var s=String(et(this)),i=o===void 0?4294967295:o>>>0;if(i===0)return[];if(a===void 0)return[s];if(!$i(a))return t.call(s,a,i);for(var l,c,u,d=[],v=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),f=0,m=new RegExp(a.source,v+"g");(l=rn.call(m,s))&&!((c=m.lastIndex)>f&&(d.push(s.slice(f,l.index)),l.length>1&&l.index=i));)m.lastIndex===l.index&&m.lastIndex++;return f===s.length?!u&&m.test("")||d.push(""):d.push(s.slice(f)),d.length>i?d.slice(0,i):d}:"0".split(void 0,0).length?function(a,o){return a===void 0&&o===0?[]:t.call(this,a,o)}:t,[function(a,o){var s=et(this),i=a==null?void 0:a[e];return i!==void 0?i.call(a,s,o):r.call(String(s),a,o)},function(a,o){var s=n(r,a,this,o,r!==t);if(s.done)return s.value;var i=ge(a),l=String(this),c=function(w,$){var O,M=ge(w).constructor;return M===void 0||(O=ge(M)[Ed])==null?$:Gr(O)}(i,RegExp),u=i.unicode,d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ct?"y":"g"),v=new c(Ct?i:"^(?:"+i.source+")",d),f=o===void 0?4294967295:o>>>0;if(f===0)return[];if(l.length===0)return xr(v,l)===null?[l]:[];for(var m=0,y=0,g=[];y1?arguments[1]:void 0,t.length)),r=String(e);return vo?vo.call(t,r,n):t.slice(n,n+r.length)===r}});var _t=function(e){return typeof e=="string"},xt=function(e){return e!==null&&Mi(e)==="object"},an=function(){function e(){ht(this,e)}return gt(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,n,r){var a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.addEventListener(n,r,a)}},{key:"removeEventListener",value:function(t,n,r){var a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.removeEventListener(n,r,a)}},{key:"triggerDragEvent",value:function(t,n){var r=!1,a=function(s){var i;(i=n.drag)===null||i===void 0||i.call(n,s)},o=function s(i){var l;e.removeEventListener(document,"mousemove",a),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,r=!1,(l=n.end)===null||l===void 0||l.call(n,i)};e.addEventListener(t,"mousedown",function(s){var i;r||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",a),e.addEventListener(document,"mouseup",o),r=!0,(i=n.start)===null||i===void 0||i.call(n,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&xt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,n){return!!(t&&xt(t)&&_t(n)&&t.nodeType===1)&&t.classList.contains(n.trim())}},{key:"addClass",value:function(t,n){if(t&&xt(t)&&_t(n)&&t.nodeType===1&&(n=n.trim(),!e.hasClass(t,n))){var r=t.className;t.className=r?r+" "+n:n}}},{key:"removeClass",value:function(t,n){if(t&&xt(t)&&_t(n)&&t.nodeType===1&&typeof t.className=="string"){n=n.trim();for(var r=t.className.trim().split(" "),a=r.length-1;a>=0;a--)r[a]=r[a].trim(),r[a]&&r[a]!==n||r.splice(a,1);t.className=r.join(" ")}}},{key:"toggleClass",value:function(t,n,r){t&&xt(t)&&_t(n)&&t.nodeType===1&&t.classList.toggle(n,r)}},{key:"replaceClass",value:function(t,n,r){t&&xt(t)&&_t(n)&&_t(r)&&t.nodeType===1&&(n=n.trim(),r=r.trim(),e.removeClass(t,n),e.addClass(t,r))}},{key:"getScrollTop",value:function(t){var n="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(n,0)}},{key:"setScrollTop",value:function(t,n){"scrollTop"in t?t.scrollTop=n:t.scrollTo(t.scrollX,n)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,n){if(e.isWindow(t))return 0;var r=n?e.getScrollTop(n):e.getRootScrollTop();return t.getBoundingClientRect().top+r}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var n=window.getComputedStyle(t),r=n.display==="none",a=t.offsetParent===null&&n.position!=="fixed";return r||a}},{key:"triggerEvent",value:function(t,n){if("createEvent"in document){var r=document.createEvent("HTMLEvents");r.initEvent(n,!1,!0),t.dispatchEvent(r)}}},{key:"calcAngle",value:function(t,n){var r=t.getBoundingClientRect(),a=r.left+r.width/2,o=r.top+r.height/2,s=Math.abs(a-n.clientX),i=Math.abs(o-n.clientY),l=i/Math.sqrt(Math.pow(s,2)+Math.pow(i,2)),c=Math.acos(l),u=Math.floor(180/(Math.PI/c));return n.clientX>a&&n.clientY>o&&(u=180-u),n.clientX==a&&n.clientY>o&&(u=180),n.clientX>a&&n.clientY==o&&(u=90),n.clientXo&&(u=180+u),n.clientX1?r-1:0),o=1;o]*>)/g,Zd=/\$([$&'`]|\d\d?)/g,Jd=function(e,t,n,r,a,o){var s=n+e.length,i=r.length,l=Zd;return a!==void 0&&(a=qe(a),l=Xd),Yd.call(o,l,function(c,u){var d;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":d=a[u.slice(1,-1)];break;default:var v=+u;if(v===0)return c;if(v>i){var f=qd(v/10);return f===0?c:f<=i?r[f-1]===void 0?u.charAt(1):r[f-1]+u.charAt(1):c}d=r[v-1]}return d===void 0?"":d})},Qd=Math.max,ef=Math.min;Oi("replace",2,function(e,t,n,r){var a=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,s=a?"$":"$0";return[function(i,l){var c=et(this),u=i==null?void 0:i[e];return u!==void 0?u.call(i,c,l):t.call(String(c),i,l)},function(i,l){if(!a&&o||typeof l=="string"&&l.indexOf(s)===-1){var c=n(t,i,this,l);if(c.done)return c.value}var u=ge(i),d=String(this),v=typeof l=="function";v||(l=String(l));var f=u.global;if(f){var m=u.unicode;u.lastIndex=0}for(var y=[];;){var g=xr(u,d);if(g===null||(y.push(g),!f))break;String(g[0])===""&&(u.lastIndex=Ri(d,ke(u.lastIndex),m))}for(var p,C="",_=0,w=0;w=_&&(C+=d.slice(_,O)+b,_=O+$.length)}return C+d.slice(_)}]});(function(){function e(){ht(this,e)}return gt(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(n,r){return r?r.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})();(function(){function e(){ht(this,e)}return gt(e,null,[{key:"_clone",value:function(){}}]),e})();var Pi=Q("isConcatSpreadable"),tf=En>=51||!Y(function(){var e=[];return e[Pi]=!1,e.concat()[0]!==e}),nf=zr("concat"),rf=function(e){if(!ie(e))return!1;var t=e[Pi];return t!==void 0?!!t:Mt(e)};ve({target:"Array",proto:!0,forced:!tf||!nf},{concat:function(e){var t,n,r,a,o,s=qe(this),i=Fn(s,0),l=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pt(i,l++,o)}return i.length=l,i}});var rr,un=function(e,t,n){if(Gr(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,a){return e.call(t,r,a)};case 3:return function(r,a,o){return e.call(t,r,a,o)}}return function(){return e.apply(t,arguments)}},ho=[].push,Ze=function(e){var t=e==1,n=e==2,r=e==3,a=e==4,o=e==6,s=e==7,i=e==5||o;return function(l,c,u,d){for(var v,f,m=qe(l),y=Dn(m),g=un(c,u,3),p=ke(y.length),C=0,_=d||Fn,w=t?_(l,p):n||s?_(l,0):void 0;p>C;C++)if((i||C in y)&&(f=g(v=y[C],C,m),e))if(t)w[C]=f;else if(f)switch(e){case 3:return!0;case 5:return v;case 6:return C;case 2:ho.call(w,v)}else switch(e){case 4:return!1;case 7:ho.call(w,v)}return o?-1:r||a?a:w}},Ii={forEach:Ze(0),map:Ze(1),filter:Ze(2),some:Ze(3),every:Ze(4),find:Ze(5),findIndex:Ze(6),filterOut:Ze(7)},af=Oe?Object.defineProperties:function(e,t){ge(e);for(var n,r=qr(t),a=r.length,o=0;a>o;)Ge.f(e,n=r[o++],t[n]);return e},of=Vn("document","documentElement"),ji=Kr("IE_PROTO"),ar=function(){},go=function(e){return" - - - - -

- - - - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/vite.svg b/extensions/sd-webui-infinite-image-browsing/vue/dist/vite.svg deleted file mode 100644 index e7b8dfb1b2a60bd50538bec9f876511b9cac21e3..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/dist/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/env.d.ts b/extensions/sd-webui-infinite-image-browsing/vue/env.d.ts deleted file mode 100644 index 2964e97b5847c9602be9a3d21835337aa9bddcff..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/env.d.ts +++ /dev/null @@ -1,8 +0,0 @@ - -/// -/// - - -interface Window { - IIB_container_id?: string -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/index.html b/extensions/sd-webui-infinite-image-browsing/vue/index.html deleted file mode 100644 index 01720af8827770e8218d141d3ac4dcda819146e7..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - Infinite Image Browsing - - - -
- It seems to have failed to load. You can try refreshing the page.
If that doesn't work, click on FAQ for help
- - - - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/index.tpl.js b/extensions/sd-webui-infinite-image-browsing/vue/index.tpl.js deleted file mode 100644 index ae548d75d94791fc0955f7465d304390a61896ba..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/index.tpl.js +++ /dev/null @@ -1,166 +0,0 @@ -/* eslint-disable no-undef */ -Promise.resolve().then(async () => { - /** - * This is a file generated using `yarn build`. - * If you want to make changes, please modify `index.tpl.js` and run the command to generate it again. - */ - const html = `__built_html__`.replace(/\/infinite_image_browsing/g, (window.location.pathname + '/infinite_image_browsing').replace(/\/\//g, '/')) - let containerSelector = '#infinite_image_browsing_container_wrapper' - let shouldMaximize = localStorage.getItem('iib://disable_maximize') !== 'true' - - try { - containerSelector = __iib_root_container__ - shouldMaximize = __iib_should_maximize__ - } catch (e) { /* empty */ } - - const delay = (timeout = 0) => new Promise((resolve) => setTimeout(resolve, timeout)) - const asyncCheck = async (getter, checkSize = 100, timeout = 1000) => { - let target = getter() - let num = 0 - while (checkSize * num < timeout && (target === undefined || target === null)) { - await delay(checkSize) - target = getter() - num++ - } - return target - } - - const getTabIdxById = (id) => { - const tabList = gradioApp().querySelectorAll('#tabs > .tabitem[id^=tab_]') - return Array.from(tabList).findIndex((v) => v.id.includes(id)) - } - - const switch2targetTab = (idx) => { - try { - gradioApp().querySelector('#tabs').querySelectorAll('button')[idx].click() - } catch (error) { - console.error(error) - } - } - - const isLobe = () => { - try { - return !!gradioApp().querySelector('[alt*="lobehub"]') - } catch (error) { - return false - } - } - - /** - * @type {HTMLDivElement} - */ - const wrap = await asyncCheck(() => gradioApp().querySelector(containerSelector), 500, Infinity) - wrap.childNodes.forEach((v) => wrap.removeChild(v)) - const iframe = document.createElement('iframe') - iframe.srcdoc = html - iframe.style = 'width: 100%;height:100vh' - wrap.appendChild(iframe) - - if (shouldMaximize) { - onUiTabChange(() => { - const el = get_uiCurrentTabContent() - if (el?.id.includes('infinite-image-browsing')) { - try { - const iibTop = gradioApp().querySelector('#iib_top') - if (!iibTop) { - throw new Error('element \'#iib_top\' is not found') - } - const topRect = iibTop.getBoundingClientRect() - wrap.style = ` - top:${Math.max(isLobe() ? 32 : 128, topRect.top) - 10}px; - position: fixed; - left: 10px; - right: 10px; - z-index: 100; - width: unset; - bottom: 10px;` - iframe.style = 'width: 100%;height:100%' - } catch (error) { - console.error('Error mounting IIB. Running fallback.', error) - wrap.style = '' - iframe.style = 'width: 100%;height:100vh' - } - } - }) - } - - const IIB_container_id = [Date.now(), Math.random()].join() - window.IIB_container_id = IIB_container_id - const imgTransferBus = new BroadcastChannel('iib-image-transfer-bus') - imgTransferBus.addEventListener('message', async (ev) => { - const data = ev.data - if ( - typeof data !== 'object' || - (typeof data.IIB_container_id === 'string' && data.IIB_container_id !== IIB_container_id) - ) { - return - } - console.log('iib-message:', data) - const appDoc = gradioApp() - switch (data.event) { - case 'click_hidden_button': { - const btn = gradioApp().querySelector(`#${data.btnEleId}`) - btn.click() - break - } - case 'send_to_control_net': { - data.type === 'img2img' ? window.switch_to_img2img() : window.switch_to_txt2img() - await delay(100) - const cn = appDoc.querySelector(`#${data.type}_controlnet`) - const wrap = cn.querySelector('.label-wrap') - if (!wrap.className.includes('open')) { - wrap.click() - await delay(100) - } - wrap.scrollIntoView() - wrap.dispatchEvent(await createPasteEvent(data.url)) - break - } - case 'send_to_outpaint': { - switch2targetTab(getTabIdxById('openOutpaint')) - await delay(100) - const iframe = appDoc.querySelector('#openoutpaint-iframe') - openoutpaint_send_image(await imgUrl2DataUrl(data.url)) - iframe.contentWindow.postMessage({ - key: appDoc.querySelector('#openoutpaint-key').value, - type: 'openoutpaint/set-prompt', - prompt: data.prompt, - negPrompt: data.negPrompt - }) - break - } - } - - function imgUrl2DataUrl(imgUrl) { - return new Promise((resolve, reject) => { - fetch(imgUrl) - .then((response) => response.blob()) - .then((blob) => { - const reader = new FileReader() - reader.readAsDataURL(blob) - reader.onloadend = function () { - const dataURL = reader.result - resolve(dataURL) - } - }) - .catch((error) => reject(error)) - }) - } - - async function createPasteEvent(imgUrl) { - const response = await fetch(imgUrl) - const imageBlob = await response.blob() - const imageFile = new File([imageBlob], 'image.jpg', { - type: imageBlob.type, - lastModified: Date.now() - }) - const dataTransfer = new DataTransfer() - dataTransfer.items.add(imageFile) - const pasteEvent = new ClipboardEvent('paste', { - clipboardData: dataTransfer, - bubbles: true - }) - return pasteEvent - } - }) -}) diff --git a/extensions/sd-webui-infinite-image-browsing/vue/package.json b/extensions/sd-webui-infinite-image-browsing/vue/package.json deleted file mode 100644 index 07a6e4dbd7edc26ffa935c673a1737e464ee642a..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "vue", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "preview": "vite preview", - "type-check": "vue-tsc --noEmit", - "build": "tsx build", - "tauri": "tauri dev", - "tauri-build": "tauri build", - "tauri-build-debug": "tauri build --debug" - }, - "dependencies": { - "@octokit/rest": "^20.1.1", - "@tauri-apps/api": "^1.4.0", - "@vueuse/core": "^10.1.2", - "@zanllp/vue-virtual-scroller": "^2.0.0-beta.7", - "ant-design-vue": "^3.2.20", - "axios": "^1.4.0", - "jian-pinyin": "^0.2.3", - "js-cookie": "^3.0.5", - "multi-nprogress": "^0.3.5", - "pinia": "^2.1.3", - "pinia-plugin-persistedstate": "^3.1.0", - "sjcl": "^1.0.8", - "splitpanes": "^3.1.5", - "vue": "^3.3.4", - "vue-diff": "^1.2.4", - "vue-i18n": "^9.3.0-beta.19", - "vue3-colorpicker": "^2.3.0", - "vue3-ts-util": "^1.0.4" - }, - "devDependencies": { - "@tauri-apps/cli": "^1.4.0", - "@types/js-cookie": "^3.0.3", - "@types/node": "^20.2.5", - "@types/nprogress": "^0.2.0", - "@types/sjcl": "^1.0.30", - "@vitejs/plugin-vue": "^4.2.3", - "@vitejs/plugin-vue-jsx": "^3.0.1", - "@vue/eslint-config-typescript": "^11.0.3", - "@vue/tsconfig": "^0.4.0", - "antd-vue-volar": "^1.0.1", - "eslint": "^8.41.0", - "eslint-plugin-vue": "^9.14.1", - "less": "^4.1.3", - "sass": "^1.62.1", - "tsx": "^3.12.7", - "typescript": "^5.0.2", - "unplugin-vue-components": "^0.25.0", - "vite": "^4.3.9", - "vue-router": "^4.2.2", - "vue-tsc": "^1.4.2" - } -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/public/vite.svg b/extensions/sd-webui-infinite-image-browsing/vue/public/vite.svg deleted file mode 100644 index e7b8dfb1b2a60bd50538bec9f876511b9cac21e3..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/.gitignore b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/.gitignore deleted file mode 100644 index af3522111c2a4220dab07d6c308f6125e074c73a..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -# Generated by Cargo -# will have compiled files and executables -/target/ -app.conf.json -iib_api_server-x86_64-pc-windows-msvc.exe -iib_api_server-x86_64-unknown-linux-gnu \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/.taurignore b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/.taurignore deleted file mode 100644 index b0bf3470f676c804a4d1fd1e8b23337cddfd363d..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/.taurignore +++ /dev/null @@ -1 +0,0 @@ -app.conf.json \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/Cargo.lock b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/Cargo.lock deleted file mode 100644 index 66a481eaa5c0093f006096efe72ccc268ddc38de..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/Cargo.lock +++ /dev/null @@ -1,4593 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "addr2line" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4fa78e18c64fce05e902adecd7a5eed15a5e0a3439f7b0e169f0252214865e3" -dependencies = [ - "gimli", -] - -[[package]] -name = "adler" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" - -[[package]] -name = "aho-corasick" -version = "0.7.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" -dependencies = [ - "memchr", -] - -[[package]] -name = "aho-corasick" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" -dependencies = [ - "memchr", -] - -[[package]] -name = "alloc-no-stdlib" -version = "2.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" - -[[package]] -name = "alloc-stdlib" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" -dependencies = [ - "alloc-no-stdlib", -] - -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - -[[package]] -name = "anyhow" -version = "1.0.71" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" - -[[package]] -name = "async-broadcast" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c48ccdbf6ca6b121e0f586cbc0e73ae440e56c67c30fa0873b4e110d9c26d2b" -dependencies = [ - "event-listener", - "futures-core", -] - -[[package]] -name = "async-channel" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf46fee83e5ccffc220104713af3292ff9bc7c64c7de289f66dae8e38d826833" -dependencies = [ - "concurrent-queue", - "event-listener", - "futures-core", -] - -[[package]] -name = "async-executor" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fa3dc5f2a8564f07759c008b9109dc0d39de92a88d5588b8a5036d286383afb" -dependencies = [ - "async-lock", - "async-task", - "concurrent-queue", - "fastrand", - "futures-lite", - "slab", -] - -[[package]] -name = "async-fs" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279cf904654eeebfa37ac9bb1598880884924aab82e290aa65c9e77a0e142e06" -dependencies = [ - "async-lock", - "autocfg", - "blocking", - "futures-lite", -] - -[[package]] -name = "async-io" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" -dependencies = [ - "async-lock", - "autocfg", - "cfg-if", - "concurrent-queue", - "futures-lite", - "log", - "parking", - "polling", - "rustix", - "slab", - "socket2", - "waker-fn", -] - -[[package]] -name = "async-lock" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa24f727524730b077666307f2734b4a1a1c57acb79193127dcc8914d5242dd7" -dependencies = [ - "event-listener", -] - -[[package]] -name = "async-process" -version = "1.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a9d28b1d97e08915212e2e45310d47854eafa69600756fc735fb788f75199c9" -dependencies = [ - "async-io", - "async-lock", - "autocfg", - "blocking", - "cfg-if", - "event-listener", - "futures-lite", - "rustix", - "signal-hook", - "windows-sys 0.48.0", -] - -[[package]] -name = "async-recursion" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e97ce7de6cf12de5d7226c73f5ba9811622f4db3a5b91b55c53e987e5f91cba" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "async-task" -version = "4.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecc7ab41815b3c653ccd2978ec3255c81349336702dfdf62ee6f7069b12a3aae" - -[[package]] -name = "async-trait" -version = "0.1.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b2d0f03b3640e3a630367e40c468cb7f309529c708ed1d88597047b0e7c6ef7" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "atk" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c3d816ce6f0e2909a96830d6911c2aff044370b1ef92d7f267b43bae5addedd" -dependencies = [ - "atk-sys", - "bitflags", - "glib", - "libc", -] - -[[package]] -name = "atk-sys" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58aeb089fb698e06db8089971c7ee317ab9644bade33383f63631437b03aafb6" -dependencies = [ - "glib-sys", - "gobject-sys", - "libc", - "system-deps 6.1.1", -] - -[[package]] -name = "atomic-waker" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1181e1e0d1fce796a03db1ae795d67167da795f9cf4a39c37589e85ef57f26d3" - -[[package]] -name = "autocfg" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" - -[[package]] -name = "backtrace" -version = "0.3.68" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4319208da049c43661739c5fade2ba182f09d1dc2299b32298d3a31692b17e12" -dependencies = [ - "addr2line", - "cc", - "cfg-if", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", -] - -[[package]] -name = "base64" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" - -[[package]] -name = "base64" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" - -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - -[[package]] -name = "block" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" - -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "blocking" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77231a1c8f801696fc0123ec6150ce92cffb8e164a02afb9c8ddee0e9b65ad65" -dependencies = [ - "async-channel", - "async-lock", - "async-task", - "atomic-waker", - "fastrand", - "futures-lite", - "log", -] - -[[package]] -name = "brotli" -version = "3.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1a0b1dbcc8ae29329621f8d4f0d835787c1c38bb1401979b49d13b0b305ff68" -dependencies = [ - "alloc-no-stdlib", - "alloc-stdlib", - "brotli-decompressor", -] - -[[package]] -name = "brotli-decompressor" -version = "2.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b6561fd3f895a11e8f72af2cb7d22e08366bebc2b6b57f7744c4bda27034744" -dependencies = [ - "alloc-no-stdlib", - "alloc-stdlib", -] - -[[package]] -name = "bstr" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a246e68bb43f6cd9db24bea052a53e40405417c5fb372e3d1a8a7f770a564ef5" -dependencies = [ - "memchr", - "serde", -] - -[[package]] -name = "bumpalo" -version = "3.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" - -[[package]] -name = "bytemuck" -version = "1.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17febce684fd15d89027105661fec94afb475cb995fbc59d2865198446ba2eea" - -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - -[[package]] -name = "bytes" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" -dependencies = [ - "serde", -] - -[[package]] -name = "cairo-rs" -version = "0.15.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c76ee391b03d35510d9fa917357c7f1855bd9a6659c95a1b392e33f49b3369bc" -dependencies = [ - "bitflags", - "cairo-sys-rs", - "glib", - "libc", - "thiserror", -] - -[[package]] -name = "cairo-sys-rs" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c55d429bef56ac9172d25fecb85dc8068307d17acd74b377866b7a1ef25d3c8" -dependencies = [ - "glib-sys", - "libc", - "system-deps 6.1.1", -] - -[[package]] -name = "cargo_toml" -version = "0.15.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "599aa35200ffff8f04c1925aa1acc92fa2e08874379ef42e210a80e527e60838" -dependencies = [ - "serde", - "toml 0.7.5", -] - -[[package]] -name = "cc" -version = "1.0.79" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" - -[[package]] -name = "cesu8" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" - -[[package]] -name = "cfb" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" -dependencies = [ - "byteorder", - "fnv", - "uuid", -] - -[[package]] -name = "cfg-expr" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3431df59f28accaf4cb4eed4a9acc66bea3f3c3753aa6cdc2f024174ef232af7" -dependencies = [ - "smallvec", -] - -[[package]] -name = "cfg-expr" -version = "0.15.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "215c0072ecc28f92eeb0eea38ba63ddfcb65c2828c46311d646f1a3ff5f9841c" -dependencies = [ - "smallvec", - "target-lexicon", -] - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "chrono" -version = "0.4.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" -dependencies = [ - "android-tzdata", - "iana-time-zone", - "js-sys", - "num-traits", - "serde", - "time 0.1.45", - "wasm-bindgen", - "winapi", -] - -[[package]] -name = "cocoa" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f425db7937052c684daec3bd6375c8abe2d146dca4b8b143d6db777c39138f3a" -dependencies = [ - "bitflags", - "block", - "cocoa-foundation", - "core-foundation", - "core-graphics", - "foreign-types", - "libc", - "objc", -] - -[[package]] -name = "cocoa-foundation" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "931d3837c286f56e3c58423ce4eba12d08db2374461a785c86f672b08b5650d6" -dependencies = [ - "bitflags", - "block", - "core-foundation", - "core-graphics-types", - "foreign-types", - "libc", - "objc", -] - -[[package]] -name = "color_quant" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" - -[[package]] -name = "combine" -version = "4.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4" -dependencies = [ - "bytes", - "memchr", -] - -[[package]] -name = "concurrent-queue" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62ec6771ecfa0762d24683ee5a32ad78487a3d3afdc0fb8cae19d2c5deb50b7c" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - -[[package]] -name = "core-foundation" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" -dependencies = [ - "core-foundation-sys", - "libc", -] - -[[package]] -name = "core-foundation-sys" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" - -[[package]] -name = "core-graphics" -version = "0.22.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2581bbab3b8ffc6fcbd550bf46c355135d16e9ff2a6ea032ad6b9bf1d7efe4fb" -dependencies = [ - "bitflags", - "core-foundation", - "core-graphics-types", - "foreign-types", - "libc", -] - -[[package]] -name = "core-graphics-types" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bb142d41022986c1d8ff29103a1411c8a3dfad3552f87a4f8dc50d61d4f4e33" -dependencies = [ - "bitflags", - "core-foundation", - "libc", -] - -[[package]] -name = "cpufeatures" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03e69e28e9f7f77debdedbaafa2866e1de9ba56df55a8bd7cfc724c25a09987c" -dependencies = [ - "libc", -] - -[[package]] -name = "crc32fast" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "crossbeam-channel" -version = "0.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" -dependencies = [ - "cfg-if", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "crypto-common" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" -dependencies = [ - "generic-array", - "typenum", -] - -[[package]] -name = "cssparser" -version = "0.27.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a" -dependencies = [ - "cssparser-macros", - "dtoa-short", - "itoa 0.4.8", - "matches", - "phf 0.8.0", - "proc-macro2", - "quote", - "smallvec", - "syn 1.0.109", -] - -[[package]] -name = "cssparser-macros" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" -dependencies = [ - "quote", - "syn 2.0.22", -] - -[[package]] -name = "ctor" -version = "0.1.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" -dependencies = [ - "quote", - "syn 1.0.109", -] - -[[package]] -name = "darling" -version = "0.20.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0558d22a7b463ed0241e993f76f09f30b126687447751a8638587b864e4b3944" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.20.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab8bfa2e259f8ee1ce5e97824a3c55ec4404a0d772ca7fa96bf19f0752a046eb" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn 2.0.22", -] - -[[package]] -name = "darling_macro" -version = "0.20.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29a358ff9f12ec09c3e61fef9b5a9902623a695a46a917b07f269bff1445611a" -dependencies = [ - "darling_core", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "derivative" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "derive_more" -version = "0.99.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" -dependencies = [ - "convert_case", - "proc-macro2", - "quote", - "rustc_version", - "syn 1.0.109", -] - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer", - "crypto-common", -] - -[[package]] -name = "dirs-next" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" -dependencies = [ - "cfg-if", - "dirs-sys-next", -] - -[[package]] -name = "dirs-sys-next" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" -dependencies = [ - "libc", - "redox_users", - "winapi", -] - -[[package]] -name = "dispatch" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" - -[[package]] -name = "dtoa" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65d09067bfacaa79114679b279d7f5885b53295b1e2cfb4e79c8e4bd3d633169" - -[[package]] -name = "dtoa-short" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbaceec3c6e4211c79e7b1800fb9680527106beb2f9c51904a3210c03a448c74" -dependencies = [ - "dtoa", -] - -[[package]] -name = "dunce" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" - -[[package]] -name = "embed-resource" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7f1e82a60222fc67bfd50d752a9c89da5cce4c39ed39decc84a443b07bbd69a" -dependencies = [ - "cc", - "rustc_version", - "toml 0.7.5", - "vswhom", - "winreg 0.11.0", -] - -[[package]] -name = "embed_plist" -version = "1.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" - -[[package]] -name = "encoding_rs" -version = "0.8.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071a31f4ee85403370b58aca746f01041ede6f0da2730960ad001edc2b71b394" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "enumflags2" -version = "0.7.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c041f5090df68b32bcd905365fd51769c8b9d553fe87fde0b683534f10c01bd2" -dependencies = [ - "enumflags2_derive", - "serde", -] - -[[package]] -name = "enumflags2_derive" -version = "0.7.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e9a1f9f7d83e59740248a6e14ecf93929ade55027844dfcea78beafccc15745" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "equivalent" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88bffebc5d80432c9b140ee17875ff173a8ab62faad5b257da912bd2f6c1c0a1" - -[[package]] -name = "errno" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" -dependencies = [ - "errno-dragonfly", - "libc", - "windows-sys 0.48.0", -] - -[[package]] -name = "errno-dragonfly" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" -dependencies = [ - "cc", - "libc", -] - -[[package]] -name = "event-listener" -version = "2.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" - -[[package]] -name = "fastrand" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" -dependencies = [ - "instant", -] - -[[package]] -name = "fdeflate" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d329bdeac514ee06249dabc27877490f17f5d371ec693360768b838e19f3ae10" -dependencies = [ - "simd-adler32", -] - -[[package]] -name = "field-offset" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" -dependencies = [ - "memoffset 0.9.0", - "rustc_version", -] - -[[package]] -name = "filetime" -version = "0.2.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cbc844cecaee9d4443931972e1289c8ff485cb4cc2767cb03ca139ed6885153" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.2.16", - "windows-sys 0.48.0", -] - -[[package]] -name = "flate2" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743" -dependencies = [ - "crc32fast", - "miniz_oxide", -] - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "foreign-types" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" -dependencies = [ - "foreign-types-shared", -] - -[[package]] -name = "foreign-types-shared" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" - -[[package]] -name = "form_urlencoded" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" -dependencies = [ - "percent-encoding", -] - -[[package]] -name = "futf" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843" -dependencies = [ - "mac", - "new_debug_unreachable", -] - -[[package]] -name = "futures-channel" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" -dependencies = [ - "futures-core", -] - -[[package]] -name = "futures-core" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" - -[[package]] -name = "futures-executor" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" - -[[package]] -name = "futures-lite" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" -dependencies = [ - "fastrand", - "futures-core", - "futures-io", - "memchr", - "parking", - "pin-project-lite", - "waker-fn", -] - -[[package]] -name = "futures-macro" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "futures-sink" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" - -[[package]] -name = "futures-task" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" - -[[package]] -name = "futures-util" -version = "0.3.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" -dependencies = [ - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project-lite", - "pin-utils", - "slab", -] - -[[package]] -name = "fxhash" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" -dependencies = [ - "byteorder", -] - -[[package]] -name = "gdk" -version = "0.15.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6e05c1f572ab0e1f15be94217f0dc29088c248b14f792a5ff0af0d84bcda9e8" -dependencies = [ - "bitflags", - "cairo-rs", - "gdk-pixbuf", - "gdk-sys", - "gio", - "glib", - "libc", - "pango", -] - -[[package]] -name = "gdk-pixbuf" -version = "0.15.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad38dd9cc8b099cceecdf41375bb6d481b1b5a7cd5cd603e10a69a9383f8619a" -dependencies = [ - "bitflags", - "gdk-pixbuf-sys", - "gio", - "glib", - "libc", -] - -[[package]] -name = "gdk-pixbuf-sys" -version = "0.15.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "140b2f5378256527150350a8346dbdb08fadc13453a7a2d73aecd5fab3c402a7" -dependencies = [ - "gio-sys", - "glib-sys", - "gobject-sys", - "libc", - "system-deps 6.1.1", -] - -[[package]] -name = "gdk-sys" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e7a08c1e8f06f4177fb7e51a777b8c1689f743a7bc11ea91d44d2226073a88" -dependencies = [ - "cairo-sys-rs", - "gdk-pixbuf-sys", - "gio-sys", - "glib-sys", - "gobject-sys", - "libc", - "pango-sys", - "pkg-config", - "system-deps 6.1.1", -] - -[[package]] -name = "gdkwayland-sys" -version = "0.15.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cca49a59ad8cfdf36ef7330fe7bdfbe1d34323220cc16a0de2679ee773aee2c2" -dependencies = [ - "gdk-sys", - "glib-sys", - "gobject-sys", - "libc", - "pkg-config", - "system-deps 6.1.1", -] - -[[package]] -name = "gdkx11-sys" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4b7f8c7a84b407aa9b143877e267e848ff34106578b64d1e0a24bf550716178" -dependencies = [ - "gdk-sys", - "glib-sys", - "libc", - "system-deps 6.1.1", - "x11", -] - -[[package]] -name = "generator" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cc16584ff22b460a382b7feec54b23d2908d858152e5739a120b949293bd74e" -dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows 0.48.0", -] - -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - -[[package]] -name = "getrandom" -version = "0.2.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.11.0+wasi-snapshot-preview1", -] - -[[package]] -name = "gimli" -version = "0.27.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" - -[[package]] -name = "gio" -version = "0.15.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68fdbc90312d462781a395f7a16d96a2b379bb6ef8cd6310a2df272771c4283b" -dependencies = [ - "bitflags", - "futures-channel", - "futures-core", - "futures-io", - "gio-sys", - "glib", - "libc", - "once_cell", - "thiserror", -] - -[[package]] -name = "gio-sys" -version = "0.15.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32157a475271e2c4a023382e9cab31c4584ee30a97da41d3c4e9fdd605abcf8d" -dependencies = [ - "glib-sys", - "gobject-sys", - "libc", - "system-deps 6.1.1", - "winapi", -] - -[[package]] -name = "glib" -version = "0.15.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edb0306fbad0ab5428b0ca674a23893db909a98582969c9b537be4ced78c505d" -dependencies = [ - "bitflags", - "futures-channel", - "futures-core", - "futures-executor", - "futures-task", - "glib-macros", - "glib-sys", - "gobject-sys", - "libc", - "once_cell", - "smallvec", - "thiserror", -] - -[[package]] -name = "glib-macros" -version = "0.15.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10c6ae9f6fa26f4fb2ac16b528d138d971ead56141de489f8111e259b9df3c4a" -dependencies = [ - "anyhow", - "heck 0.4.1", - "proc-macro-crate", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "glib-sys" -version = "0.15.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef4b192f8e65e9cf76cbf4ea71fa8e3be4a0e18ffe3d68b8da6836974cc5bad4" -dependencies = [ - "libc", - "system-deps 6.1.1", -] - -[[package]] -name = "glob" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" - -[[package]] -name = "globset" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" -dependencies = [ - "aho-corasick 0.7.20", - "bstr", - "fnv", - "log", - "regex", -] - -[[package]] -name = "gobject-sys" -version = "0.15.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d57ce44246becd17153bd035ab4d32cfee096a657fc01f2231c9278378d1e0a" -dependencies = [ - "glib-sys", - "libc", - "system-deps 6.1.1", -] - -[[package]] -name = "gtk" -version = "0.15.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92e3004a2d5d6d8b5057d2b57b3712c9529b62e82c77f25c1fecde1fd5c23bd0" -dependencies = [ - "atk", - "bitflags", - "cairo-rs", - "field-offset", - "futures-channel", - "gdk", - "gdk-pixbuf", - "gio", - "glib", - "gtk-sys", - "gtk3-macros", - "libc", - "once_cell", - "pango", - "pkg-config", -] - -[[package]] -name = "gtk-sys" -version = "0.15.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5bc2f0587cba247f60246a0ca11fe25fb733eabc3de12d1965fc07efab87c84" -dependencies = [ - "atk-sys", - "cairo-sys-rs", - "gdk-pixbuf-sys", - "gdk-sys", - "gio-sys", - "glib-sys", - "gobject-sys", - "libc", - "pango-sys", - "system-deps 6.1.1", -] - -[[package]] -name = "gtk3-macros" -version = "0.15.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "684c0456c086e8e7e9af73ec5b84e35938df394712054550e81558d21c44ab0d" -dependencies = [ - "anyhow", - "proc-macro-crate", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "h2" -version = "0.3.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97ec8491ebaf99c8eaa73058b045fe58073cd6be7f596ac993ced0b0a0c01049" -dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http", - "indexmap 1.9.3", - "slab", - "tokio", - "tokio-util", - "tracing", -] - -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - -[[package]] -name = "hashbrown" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" - -[[package]] -name = "heck" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] - -[[package]] -name = "heck" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" - -[[package]] -name = "hermit-abi" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "html5ever" -version = "0.25.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5c13fb08e5d4dfc151ee5e88bae63f7773d61852f3bdc73c9f4b9e1bde03148" -dependencies = [ - "log", - "mac", - "markup5ever", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "http" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" -dependencies = [ - "bytes", - "fnv", - "itoa 1.0.6", -] - -[[package]] -name = "http-body" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" -dependencies = [ - "bytes", - "http", - "pin-project-lite", -] - -[[package]] -name = "http-range" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21dec9db110f5f872ed9699c3ecf50cf16f423502706ba5c72462e28d3157573" - -[[package]] -name = "httparse" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" - -[[package]] -name = "httpdate" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" - -[[package]] -name = "hyper" -version = "0.14.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" -dependencies = [ - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "h2", - "http", - "http-body", - "httparse", - "httpdate", - "itoa 1.0.6", - "pin-project-lite", - "socket2", - "tokio", - "tower-service", - "tracing", - "want", -] - -[[package]] -name = "hyper-tls" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" -dependencies = [ - "bytes", - "hyper", - "native-tls", - "tokio", - "tokio-native-tls", -] - -[[package]] -name = "iana-time-zone" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows 0.48.0", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - -[[package]] -name = "ico" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3804960be0bb5e4edb1e1ad67afd321a9ecfd875c3e65c099468fd2717d7cae" -dependencies = [ - "byteorder", - "png", -] - -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - -[[package]] -name = "idna" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" -dependencies = [ - "unicode-bidi", - "unicode-normalization", -] - -[[package]] -name = "ignore" -version = "0.4.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbe7873dab538a9a44ad79ede1faf5f30d49f9a5c883ddbab48bce81b64b7492" -dependencies = [ - "globset", - "lazy_static", - "log", - "memchr", - "regex", - "same-file", - "thread_local", - "walkdir", - "winapi-util", -] - -[[package]] -name = "image" -version = "0.24.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "527909aa81e20ac3a44803521443a765550f09b5130c2c2fa1ea59c2f8f50a3a" -dependencies = [ - "bytemuck", - "byteorder", - "color_quant", - "num-rational", - "num-traits", -] - -[[package]] -name = "indexmap" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" -dependencies = [ - "autocfg", - "hashbrown 0.12.3", - "serde", -] - -[[package]] -name = "indexmap" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" -dependencies = [ - "equivalent", - "hashbrown 0.14.0", -] - -[[package]] -name = "infer" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a898e4b7951673fce96614ce5751d13c40fc5674bc2d759288e46c3ab62598b3" -dependencies = [ - "cfb", -] - -[[package]] -name = "infinite_image_browsing" -version = "0.0.1" -dependencies = [ - "chrono", - "reqwest", - "serde", - "serde_json", - "tauri", - "tauri-build", -] - -[[package]] -name = "instant" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "io-lifetimes" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" -dependencies = [ - "hermit-abi", - "libc", - "windows-sys 0.48.0", -] - -[[package]] -name = "ipnet" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28b29a3cd74f0f4598934efe3aeba42bae0eb4680554128851ebbecb02af14e6" - -[[package]] -name = "itoa" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" - -[[package]] -name = "itoa" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" - -[[package]] -name = "javascriptcore-rs" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf053e7843f2812ff03ef5afe34bb9c06ffee120385caad4f6b9967fcd37d41c" -dependencies = [ - "bitflags", - "glib", - "javascriptcore-rs-sys", -] - -[[package]] -name = "javascriptcore-rs-sys" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "905fbb87419c5cde6e3269537e4ea7d46431f3008c5d057e915ef3f115e7793c" -dependencies = [ - "glib-sys", - "gobject-sys", - "libc", - "system-deps 5.0.0", -] - -[[package]] -name = "jni" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "039022cdf4d7b1cf548d31f60ae783138e5fd42013f6271049d7df7afadef96c" -dependencies = [ - "cesu8", - "combine", - "jni-sys", - "log", - "thiserror", - "walkdir", -] - -[[package]] -name = "jni-sys" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" - -[[package]] -name = "js-sys" -version = "0.3.64" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" -dependencies = [ - "wasm-bindgen", -] - -[[package]] -name = "json-patch" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f54898088ccb91df1b492cc80029a6fdf1c48ca0db7c6822a8babad69c94658" -dependencies = [ - "serde", - "serde_json", - "thiserror", - "treediff", -] - -[[package]] -name = "kuchiki" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ea8e9c6e031377cff82ee3001dc8026cdf431ed4e2e6b51f98ab8c73484a358" -dependencies = [ - "cssparser", - "html5ever", - "matches", - "selectors", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - -[[package]] -name = "libc" -version = "0.2.147" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" - -[[package]] -name = "line-wrap" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30344350a2a51da54c1d53be93fade8a237e545dbcc4bdbe635413f2117cab9" -dependencies = [ - "safemem", -] - -[[package]] -name = "linux-raw-sys" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" - -[[package]] -name = "lock_api" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" -dependencies = [ - "autocfg", - "scopeguard", -] - -[[package]] -name = "log" -version = "0.4.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" - -[[package]] -name = "loom" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5" -dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "serde", - "serde_json", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "mac" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" - -[[package]] -name = "mac-notification-sys" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e72d50edb17756489e79d52eb146927bec8eba9dd48faadf9ef08bca3791ad5" -dependencies = [ - "cc", - "dirs-next", - "objc-foundation", - "objc_id", - "time 0.3.22", -] - -[[package]] -name = "malloc_buf" -version = "0.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" -dependencies = [ - "libc", -] - -[[package]] -name = "markup5ever" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a24f40fb03852d1cdd84330cddcaf98e9ec08a7b7768e952fad3b4cf048ec8fd" -dependencies = [ - "log", - "phf 0.8.0", - "phf_codegen", - "string_cache", - "string_cache_codegen", - "tendril", -] - -[[package]] -name = "matchers" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" -dependencies = [ - "regex-automata", -] - -[[package]] -name = "matches" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" - -[[package]] -name = "memchr" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" - -[[package]] -name = "memoffset" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" -dependencies = [ - "autocfg", -] - -[[package]] -name = "memoffset" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" -dependencies = [ - "autocfg", -] - -[[package]] -name = "mime" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" - -[[package]] -name = "miniz_oxide" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" -dependencies = [ - "adler", - "simd-adler32", -] - -[[package]] -name = "mio" -version = "0.8.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" -dependencies = [ - "libc", - "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.48.0", -] - -[[package]] -name = "native-tls" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" -dependencies = [ - "lazy_static", - "libc", - "log", - "openssl", - "openssl-probe", - "openssl-sys", - "schannel", - "security-framework", - "security-framework-sys", - "tempfile", -] - -[[package]] -name = "ndk" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2032c77e030ddee34a6787a64166008da93f6a352b629261d0fee232b8742dd4" -dependencies = [ - "bitflags", - "jni-sys", - "ndk-sys", - "num_enum", - "thiserror", -] - -[[package]] -name = "ndk-context" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" - -[[package]] -name = "ndk-sys" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e5a6ae77c8ee183dcbbba6150e2e6b9f3f4196a7666c02a715a95692ec1fa97" -dependencies = [ - "jni-sys", -] - -[[package]] -name = "new_debug_unreachable" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" - -[[package]] -name = "nix" -version = "0.26.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a" -dependencies = [ - "bitflags", - "cfg-if", - "libc", - "memoffset 0.7.1", - "static_assertions", -] - -[[package]] -name = "nodrop" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" - -[[package]] -name = "notify-rust" -version = "4.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bfa211d18e360f08e36c364308f394b5eb23a6629150690e109a916dc6f610e" -dependencies = [ - "log", - "mac-notification-sys", - "serde", - "tauri-winrt-notification", - "zbus", -] - -[[package]] -name = "nu-ansi-term" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" -dependencies = [ - "overload", - "winapi", -] - -[[package]] -name = "num-integer" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" -dependencies = [ - "autocfg", - "num-traits", -] - -[[package]] -name = "num-rational" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - -[[package]] -name = "num-traits" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" -dependencies = [ - "autocfg", -] - -[[package]] -name = "num_cpus" -version = "1.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" -dependencies = [ - "hermit-abi", - "libc", -] - -[[package]] -name = "num_enum" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9" -dependencies = [ - "num_enum_derive", -] - -[[package]] -name = "num_enum_derive" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "objc" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" -dependencies = [ - "malloc_buf", - "objc_exception", -] - -[[package]] -name = "objc-foundation" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9" -dependencies = [ - "block", - "objc", - "objc_id", -] - -[[package]] -name = "objc_exception" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" -dependencies = [ - "cc", -] - -[[package]] -name = "objc_id" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b" -dependencies = [ - "objc", -] - -[[package]] -name = "object" -version = "0.31.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bda667d9f2b5051b8833f59f3bf748b28ef54f850f4fcb389a252aa383866d1" -dependencies = [ - "memchr", -] - -[[package]] -name = "once_cell" -version = "1.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" - -[[package]] -name = "open" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2078c0039e6a54a0c42c28faa984e115fb4c2d5bf2208f77d1961002df8576f8" -dependencies = [ - "pathdiff", - "windows-sys 0.42.0", -] - -[[package]] -name = "openssl" -version = "0.10.55" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "345df152bc43501c5eb9e4654ff05f794effb78d4efe3d53abc158baddc0703d" -dependencies = [ - "bitflags", - "cfg-if", - "foreign-types", - "libc", - "once_cell", - "openssl-macros", - "openssl-sys", -] - -[[package]] -name = "openssl-macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "openssl-probe" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" - -[[package]] -name = "openssl-sys" -version = "0.9.90" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "374533b0e45f3a7ced10fcaeccca020e66656bc03dac384f852e4e5a7a8104a6" -dependencies = [ - "cc", - "libc", - "pkg-config", - "vcpkg", -] - -[[package]] -name = "ordered-stream" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" -dependencies = [ - "futures-core", - "pin-project-lite", -] - -[[package]] -name = "os_info" -version = "3.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "006e42d5b888366f1880eda20371fedde764ed2213dc8496f49622fa0c99cd5e" -dependencies = [ - "log", - "serde", - "winapi", -] - -[[package]] -name = "os_pipe" -version = "1.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ae859aa07428ca9a929b936690f8b12dc5f11dd8c6992a18ca93919f28bc177" -dependencies = [ - "libc", - "windows-sys 0.48.0", -] - -[[package]] -name = "overload" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" - -[[package]] -name = "pango" -version = "0.15.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22e4045548659aee5313bde6c582b0d83a627b7904dd20dc2d9ef0895d414e4f" -dependencies = [ - "bitflags", - "glib", - "libc", - "once_cell", - "pango-sys", -] - -[[package]] -name = "pango-sys" -version = "0.15.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2a00081cde4661982ed91d80ef437c20eacaf6aa1a5962c0279ae194662c3aa" -dependencies = [ - "glib-sys", - "gobject-sys", - "libc", - "system-deps 6.1.1", -] - -[[package]] -name = "parking" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14f2252c834a40ed9bb5422029649578e63aa341ac401f74e719dd1afda8394e" - -[[package]] -name = "parking_lot" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.3.5", - "smallvec", - "windows-targets 0.48.1", -] - -[[package]] -name = "pathdiff" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" - -[[package]] -name = "percent-encoding" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" - -[[package]] -name = "phf" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" -dependencies = [ - "phf_macros 0.8.0", - "phf_shared 0.8.0", - "proc-macro-hack", -] - -[[package]] -name = "phf" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" -dependencies = [ - "phf_macros 0.10.0", - "phf_shared 0.10.0", - "proc-macro-hack", -] - -[[package]] -name = "phf_codegen" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815" -dependencies = [ - "phf_generator 0.8.0", - "phf_shared 0.8.0", -] - -[[package]] -name = "phf_generator" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" -dependencies = [ - "phf_shared 0.8.0", - "rand 0.7.3", -] - -[[package]] -name = "phf_generator" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" -dependencies = [ - "phf_shared 0.10.0", - "rand 0.8.5", -] - -[[package]] -name = "phf_macros" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f6fde18ff429ffc8fe78e2bf7f8b7a5a5a6e2a8b58bc5a9ac69198bbda9189c" -dependencies = [ - "phf_generator 0.8.0", - "phf_shared 0.8.0", - "proc-macro-hack", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "phf_macros" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" -dependencies = [ - "phf_generator 0.10.0", - "phf_shared 0.10.0", - "proc-macro-hack", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "phf_shared" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" -dependencies = [ - "siphasher", -] - -[[package]] -name = "phf_shared" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" -dependencies = [ - "siphasher", -] - -[[package]] -name = "pin-project-lite" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" - -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - -[[package]] -name = "pkg-config" -version = "0.3.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" - -[[package]] -name = "plist" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bd9647b268a3d3e14ff09c23201133a62589c658db02bb7388c7246aafe0590" -dependencies = [ - "base64 0.21.2", - "indexmap 1.9.3", - "line-wrap", - "quick-xml 0.28.2", - "serde", - "time 0.3.22", -] - -[[package]] -name = "png" -version = "0.17.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59871cc5b6cce7eaccca5a802b4173377a1c2ba90654246789a8fa2334426d11" -dependencies = [ - "bitflags", - "crc32fast", - "fdeflate", - "flate2", - "miniz_oxide", -] - -[[package]] -name = "polling" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" -dependencies = [ - "autocfg", - "bitflags", - "cfg-if", - "concurrent-queue", - "libc", - "log", - "pin-project-lite", - "windows-sys 0.48.0", -] - -[[package]] -name = "ppv-lite86" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" - -[[package]] -name = "precomputed-hash" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" - -[[package]] -name = "proc-macro-crate" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" -dependencies = [ - "once_cell", - "toml_edit", -] - -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn 1.0.109", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - -[[package]] -name = "proc-macro-hack" -version = "0.5.20+deprecated" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" - -[[package]] -name = "proc-macro2" -version = "1.0.63" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b368fba921b0dce7e60f5e04ec15e565b3303972b42bcfde1d0713b881959eb" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "quick-xml" -version = "0.23.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11bafc859c6815fbaffbbbf4229ecb767ac913fecb27f9ad4343662e9ef099ea" -dependencies = [ - "memchr", -] - -[[package]] -name = "quick-xml" -version = "0.28.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ce5e73202a820a31f8a0ee32ada5e21029c81fd9e3ebf668a40832e4219d9d1" -dependencies = [ - "memchr", -] - -[[package]] -name = "quote" -version = "1.0.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "573015e8ab27661678357f27dc26460738fd2b6c86e46f386fde94cb5d913105" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", - "rand_pcg", -] - -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core 0.6.4", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", -] - -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom 0.2.10", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", -] - -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - -[[package]] -name = "raw-window-handle" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9" - -[[package]] -name = "redox_syscall" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" -dependencies = [ - "bitflags", -] - -[[package]] -name = "redox_syscall" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" -dependencies = [ - "bitflags", -] - -[[package]] -name = "redox_users" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" -dependencies = [ - "getrandom 0.2.10", - "redox_syscall 0.2.16", - "thiserror", -] - -[[package]] -name = "regex" -version = "1.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f" -dependencies = [ - "aho-corasick 1.0.2", - "memchr", - "regex-syntax 0.7.2", -] - -[[package]] -name = "regex-automata" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" -dependencies = [ - "regex-syntax 0.6.29", -] - -[[package]] -name = "regex-syntax" -version = "0.6.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" - -[[package]] -name = "regex-syntax" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" - -[[package]] -name = "reqwest" -version = "0.11.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55" -dependencies = [ - "base64 0.21.2", - "bytes", - "encoding_rs", - "futures-core", - "futures-util", - "h2", - "http", - "http-body", - "hyper", - "hyper-tls", - "ipnet", - "js-sys", - "log", - "mime", - "native-tls", - "once_cell", - "percent-encoding", - "pin-project-lite", - "serde", - "serde_json", - "serde_urlencoded", - "tokio", - "tokio-native-tls", - "tokio-util", - "tower-service", - "url", - "wasm-bindgen", - "wasm-bindgen-futures", - "wasm-streams", - "web-sys", - "winreg 0.10.1", -] - -[[package]] -name = "rfd" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0149778bd99b6959285b0933288206090c50e2327f47a9c463bfdbf45c8823ea" -dependencies = [ - "block", - "dispatch", - "glib-sys", - "gobject-sys", - "gtk-sys", - "js-sys", - "lazy_static", - "log", - "objc", - "objc-foundation", - "objc_id", - "raw-window-handle", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", - "windows 0.37.0", -] - -[[package]] -name = "rustc-demangle" -version = "0.1.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" - -[[package]] -name = "rustc_version" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver", -] - -[[package]] -name = "rustix" -version = "0.37.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25693a73057a1b4cb56179dd3c7ea21a7c6c5ee7d85781f5749b46f34b79c" -dependencies = [ - "bitflags", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys", - "windows-sys 0.48.0", -] - -[[package]] -name = "rustversion" -version = "1.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06" - -[[package]] -name = "ryu" -version = "1.0.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" - -[[package]] -name = "safemem" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" - -[[package]] -name = "same-file" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "schannel" -version = "0.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" -dependencies = [ - "windows-sys 0.48.0", -] - -[[package]] -name = "scoped-tls" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" - -[[package]] -name = "scopeguard" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" - -[[package]] -name = "security-framework" -version = "2.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" -dependencies = [ - "bitflags", - "core-foundation", - "core-foundation-sys", - "libc", - "security-framework-sys", -] - -[[package]] -name = "security-framework-sys" -version = "2.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f51d0c0d83bec45f16480d0ce0058397a69e48fcdc52d1dc8855fb68acbd31a7" -dependencies = [ - "core-foundation-sys", - "libc", -] - -[[package]] -name = "selectors" -version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe" -dependencies = [ - "bitflags", - "cssparser", - "derive_more", - "fxhash", - "log", - "matches", - "phf 0.8.0", - "phf_codegen", - "precomputed-hash", - "servo_arc", - "smallvec", - "thin-slice", -] - -[[package]] -name = "semver" -version = "1.0.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" -dependencies = [ - "serde", -] - -[[package]] -name = "serde" -version = "1.0.164" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.164" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "serde_json" -version = "1.0.99" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46266871c240a00b8f503b877622fe33430b3c7d963bdc0f2adc511e54a1eae3" -dependencies = [ - "itoa 1.0.6", - "ryu", - "serde", -] - -[[package]] -name = "serde_repr" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcec881020c684085e55a25f7fd888954d56609ef363479dc5a1305eb0d40cab" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "serde_spanned" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96426c9936fd7a0124915f9185ea1d20aa9445cc9821142f0a73bc9207a2e186" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_urlencoded" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" -dependencies = [ - "form_urlencoded", - "itoa 1.0.6", - "ryu", - "serde", -] - -[[package]] -name = "serde_with" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f02d8aa6e3c385bf084924f660ce2a3a6bd333ba55b35e8590b321f35d88513" -dependencies = [ - "base64 0.21.2", - "chrono", - "hex", - "indexmap 1.9.3", - "serde", - "serde_json", - "serde_with_macros", - "time 0.3.22", -] - -[[package]] -name = "serde_with_macros" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edc7d5d3932fb12ce722ee5e64dd38c504efba37567f0c402f6ca728c3b8b070" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "serialize-to-javascript" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9823f2d3b6a81d98228151fdeaf848206a7855a7a042bbf9bf870449a66cafb" -dependencies = [ - "serde", - "serde_json", - "serialize-to-javascript-impl", -] - -[[package]] -name = "serialize-to-javascript-impl" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74064874e9f6a15f04c1f3cb627902d0e6b410abbf36668afa873c61889f1763" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "servo_arc" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432" -dependencies = [ - "nodrop", - "stable_deref_trait", -] - -[[package]] -name = "sha1" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - -[[package]] -name = "sha2" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - -[[package]] -name = "sharded-slab" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31" -dependencies = [ - "lazy_static", -] - -[[package]] -name = "shared_child" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0d94659ad3c2137fef23ae75b03d5241d633f8acded53d672decfa0e6e0caef" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "signal-hook" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "732768f1176d21d09e076c23a93123d40bba92d50c4058da34d45c8de8e682b9" -dependencies = [ - "libc", - "signal-hook-registry", -] - -[[package]] -name = "signal-hook-registry" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" -dependencies = [ - "libc", -] - -[[package]] -name = "simd-adler32" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "238abfbb77c1915110ad968465608b68e869e0772622c9656714e73e5a1a522f" - -[[package]] -name = "siphasher" -version = "0.3.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" - -[[package]] -name = "slab" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" -dependencies = [ - "autocfg", -] - -[[package]] -name = "smallvec" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" - -[[package]] -name = "socket2" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "soup2" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b4d76501d8ba387cf0fefbe055c3e0a59891d09f0f995ae4e4b16f6b60f3c0" -dependencies = [ - "bitflags", - "gio", - "glib", - "libc", - "once_cell", - "soup2-sys", -] - -[[package]] -name = "soup2-sys" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "009ef427103fcb17f802871647a7fa6c60cbb654b4c4e4c0ac60a31c5f6dc9cf" -dependencies = [ - "bitflags", - "gio-sys", - "glib-sys", - "gobject-sys", - "libc", - "system-deps 5.0.0", -] - -[[package]] -name = "stable_deref_trait" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" - -[[package]] -name = "state" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbe866e1e51e8260c9eed836a042a5e7f6726bb2b411dffeaa712e19c388f23b" -dependencies = [ - "loom", -] - -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - -[[package]] -name = "string_cache" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" -dependencies = [ - "new_debug_unreachable", - "once_cell", - "parking_lot", - "phf_shared 0.10.0", - "precomputed-hash", - "serde", -] - -[[package]] -name = "string_cache_codegen" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" -dependencies = [ - "phf_generator 0.10.0", - "phf_shared 0.10.0", - "proc-macro2", - "quote", -] - -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" - -[[package]] -name = "syn" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "syn" -version = "2.0.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2efbeae7acf4eabd6bcdcbd11c92f45231ddda7539edc7806bd1a04a03b24616" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "sys-locale" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8a11bd9c338fdba09f7881ab41551932ad42e405f61d01e8406baea71c07aee" -dependencies = [ - "js-sys", - "libc", - "wasm-bindgen", - "web-sys", - "windows-sys 0.45.0", -] - -[[package]] -name = "system-deps" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18db855554db7bd0e73e06cf7ba3df39f97812cb11d3f75e71c39bf45171797e" -dependencies = [ - "cfg-expr 0.9.1", - "heck 0.3.3", - "pkg-config", - "toml 0.5.11", - "version-compare 0.0.11", -] - -[[package]] -name = "system-deps" -version = "6.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30c2de8a4d8f4b823d634affc9cd2a74ec98c53a756f317e529a48046cbf71f3" -dependencies = [ - "cfg-expr 0.15.3", - "heck 0.4.1", - "pkg-config", - "toml 0.7.5", - "version-compare 0.1.1", -] - -[[package]] -name = "tao" -version = "0.16.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6d198e01085564cea63e976ad1566c1ba2c2e4cc79578e35d9f05521505e31" -dependencies = [ - "bitflags", - "cairo-rs", - "cc", - "cocoa", - "core-foundation", - "core-graphics", - "crossbeam-channel", - "dispatch", - "gdk", - "gdk-pixbuf", - "gdk-sys", - "gdkwayland-sys", - "gdkx11-sys", - "gio", - "glib", - "glib-sys", - "gtk", - "image", - "instant", - "jni", - "lazy_static", - "libc", - "log", - "ndk", - "ndk-context", - "ndk-sys", - "objc", - "once_cell", - "parking_lot", - "png", - "raw-window-handle", - "scopeguard", - "serde", - "tao-macros", - "unicode-segmentation", - "uuid", - "windows 0.39.0", - "windows-implement", - "x11-dl", -] - -[[package]] -name = "tao-macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b27a4bcc5eb524658234589bdffc7e7bfb996dbae6ce9393bfd39cb4159b445" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "tar" -version = "0.4.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b55807c0344e1e6c04d7c965f5289c39a8d94ae23ed5c0b57aabac549f871c6" -dependencies = [ - "filetime", - "libc", - "xattr", -] - -[[package]] -name = "target-lexicon" -version = "0.12.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b1c7f239eb94671427157bd93b3694320f3668d4e1eff08c7285366fd777fac" - -[[package]] -name = "tauri" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fbe522898e35407a8e60dc3870f7579fea2fc262a6a6072eccdd37ae1e1d91e" -dependencies = [ - "anyhow", - "bytes", - "cocoa", - "dirs-next", - "embed_plist", - "encoding_rs", - "flate2", - "futures-util", - "glib", - "glob", - "gtk", - "heck 0.4.1", - "http", - "ignore", - "notify-rust", - "objc", - "once_cell", - "open", - "os_info", - "os_pipe", - "percent-encoding", - "rand 0.8.5", - "raw-window-handle", - "regex", - "reqwest", - "rfd", - "semver", - "serde", - "serde_json", - "serde_repr", - "serialize-to-javascript", - "shared_child", - "state", - "sys-locale", - "tar", - "tauri-macros", - "tauri-runtime", - "tauri-runtime-wry", - "tauri-utils", - "tempfile", - "thiserror", - "tokio", - "url", - "uuid", - "webkit2gtk", - "webview2-com", - "windows 0.39.0", -] - -[[package]] -name = "tauri-build" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d2edd6a259b5591c8efdeb9d5702cb53515b82a6affebd55c7fd6d3a27b7d1b" -dependencies = [ - "anyhow", - "cargo_toml", - "heck 0.4.1", - "json-patch", - "semver", - "serde", - "serde_json", - "tauri-utils", - "tauri-winres", -] - -[[package]] -name = "tauri-codegen" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54ad2d49fdeab4a08717f5b49a163bdc72efc3b1950b6758245fcde79b645e1a" -dependencies = [ - "base64 0.21.2", - "brotli", - "ico", - "json-patch", - "plist", - "png", - "proc-macro2", - "quote", - "regex", - "semver", - "serde", - "serde_json", - "sha2", - "tauri-utils", - "thiserror", - "time 0.3.22", - "uuid", - "walkdir", -] - -[[package]] -name = "tauri-macros" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eb12a2454e747896929338d93b0642144bb51e0dddbb36e579035731f0d76b7" -dependencies = [ - "heck 0.4.1", - "proc-macro2", - "quote", - "syn 1.0.109", - "tauri-codegen", - "tauri-utils", -] - -[[package]] -name = "tauri-runtime" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "108683199cb18f96d2d4134187bb789964143c845d2d154848dda209191fd769" -dependencies = [ - "gtk", - "http", - "http-range", - "rand 0.8.5", - "raw-window-handle", - "serde", - "serde_json", - "tauri-utils", - "thiserror", - "url", - "uuid", - "webview2-com", - "windows 0.39.0", -] - -[[package]] -name = "tauri-runtime-wry" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7aa256a1407a3a091b5d843eccc1a5042289baf0a43d1179d9f0fcfea37c1b" -dependencies = [ - "cocoa", - "gtk", - "percent-encoding", - "rand 0.8.5", - "raw-window-handle", - "tauri-runtime", - "tauri-utils", - "uuid", - "webkit2gtk", - "webview2-com", - "windows 0.39.0", - "wry", -] - -[[package]] -name = "tauri-utils" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03fc02bb6072bb397e1d473c6f76c953cda48b4a2d0cce605df284aa74a12e84" -dependencies = [ - "brotli", - "ctor", - "dunce", - "glob", - "heck 0.4.1", - "html5ever", - "infer", - "json-patch", - "kuchiki", - "memchr", - "phf 0.10.1", - "proc-macro2", - "quote", - "semver", - "serde", - "serde_json", - "serde_with", - "thiserror", - "url", - "walkdir", - "windows 0.39.0", -] - -[[package]] -name = "tauri-winres" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5993dc129e544393574288923d1ec447c857f3f644187f4fbf7d9a875fbfc4fb" -dependencies = [ - "embed-resource", - "toml 0.7.5", -] - -[[package]] -name = "tauri-winrt-notification" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f5bff1d532fead7c43324a0fa33643b8621a47ce2944a633be4cb6c0240898f" -dependencies = [ - "quick-xml 0.23.1", - "windows 0.39.0", -] - -[[package]] -name = "tempfile" -version = "3.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31c0432476357e58790aaa47a8efb0c5138f137343f3b5f23bd36a27e3b0a6d6" -dependencies = [ - "autocfg", - "cfg-if", - "fastrand", - "redox_syscall 0.3.5", - "rustix", - "windows-sys 0.48.0", -] - -[[package]] -name = "tendril" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0" -dependencies = [ - "futf", - "mac", - "utf-8", -] - -[[package]] -name = "thin-slice" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" - -[[package]] -name = "thiserror" -version = "1.0.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" -dependencies = [ - "thiserror-impl", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "thread_local" -version = "1.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" -dependencies = [ - "cfg-if", - "once_cell", -] - -[[package]] -name = "time" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", -] - -[[package]] -name = "time" -version = "0.3.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea9e1b3cf1243ae005d9e74085d4d542f3125458f3a81af210d901dcd7411efd" -dependencies = [ - "itoa 1.0.6", - "serde", - "time-core", - "time-macros", -] - -[[package]] -name = "time-core" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" - -[[package]] -name = "time-macros" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "372950940a5f07bf38dbe211d7283c9e6d7327df53794992d293e534c733d09b" -dependencies = [ - "time-core", -] - -[[package]] -name = "tinyvec" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" - -[[package]] -name = "tokio" -version = "1.29.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da" -dependencies = [ - "autocfg", - "backtrace", - "bytes", - "libc", - "mio", - "num_cpus", - "pin-project-lite", - "socket2", - "windows-sys 0.48.0", -] - -[[package]] -name = "tokio-native-tls" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" -dependencies = [ - "native-tls", - "tokio", -] - -[[package]] -name = "tokio-util" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" -dependencies = [ - "bytes", - "futures-core", - "futures-sink", - "pin-project-lite", - "tokio", - "tracing", -] - -[[package]] -name = "toml" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" -dependencies = [ - "serde", -] - -[[package]] -name = "toml" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ebafdf5ad1220cb59e7d17cf4d2c72015297b75b19a10472f99b89225089240" -dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit", -] - -[[package]] -name = "toml_datetime" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" -dependencies = [ - "serde", -] - -[[package]] -name = "toml_edit" -version = "0.19.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "266f016b7f039eec8a1a80dfe6156b633d208b9fccca5e4db1d6775b0c4e34a7" -dependencies = [ - "indexmap 2.0.0", - "serde", - "serde_spanned", - "toml_datetime", - "winnow", -] - -[[package]] -name = "tower-service" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" - -[[package]] -name = "tracing" -version = "0.1.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" -dependencies = [ - "cfg-if", - "pin-project-lite", - "tracing-attributes", - "tracing-core", -] - -[[package]] -name = "tracing-attributes" -version = "0.1.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", -] - -[[package]] -name = "tracing-core" -version = "0.1.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" -dependencies = [ - "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" -dependencies = [ - "lazy_static", - "log", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a651bc37f915e81f087d86e62a18eec5f79550c7faff886f7090b4ea757c77" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", -] - -[[package]] -name = "treediff" -version = "4.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52984d277bdf2a751072b5df30ec0377febdb02f7696d64c2d7d54630bac4303" -dependencies = [ - "serde_json", -] - -[[package]] -name = "try-lock" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" - -[[package]] -name = "typenum" -version = "1.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" - -[[package]] -name = "uds_windows" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce65604324d3cce9b966701489fbd0cf318cb1f7bd9dd07ac9a4ee6fb791930d" -dependencies = [ - "tempfile", - "winapi", -] - -[[package]] -name = "unicode-bidi" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" - -[[package]] -name = "unicode-ident" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" - -[[package]] -name = "unicode-normalization" -version = "0.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "unicode-segmentation" -version = "1.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" - -[[package]] -name = "url" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb" -dependencies = [ - "form_urlencoded", - "idna", - "percent-encoding", - "serde", -] - -[[package]] -name = "utf-8" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" - -[[package]] -name = "uuid" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d023da39d1fde5a8a3fe1f3e01ca9632ada0a63e9797de55a879d6e2236277be" -dependencies = [ - "getrandom 0.2.10", -] - -[[package]] -name = "valuable" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" - -[[package]] -name = "vcpkg" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" - -[[package]] -name = "version-compare" -version = "0.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c18c859eead79d8b95d09e4678566e8d70105c4e7b251f707a03df32442661b" - -[[package]] -name = "version-compare" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "579a42fc0b8e0c63b76519a339be31bed574929511fa53c1a3acae26eb258f29" - -[[package]] -name = "version_check" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" - -[[package]] -name = "vswhom" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" -dependencies = [ - "libc", - "vswhom-sys", -] - -[[package]] -name = "vswhom-sys" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3b17ae1f6c8a2b28506cd96d412eebf83b4a0ff2cbefeeb952f2f9dfa44ba18" -dependencies = [ - "cc", - "libc", -] - -[[package]] -name = "waker-fn" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" - -[[package]] -name = "walkdir" -version = "2.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698" -dependencies = [ - "same-file", - "winapi-util", -] - -[[package]] -name = "want" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" -dependencies = [ - "try-lock", -] - -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - -[[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" - -[[package]] -name = "wasm-bindgen" -version = "0.2.87" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" -dependencies = [ - "cfg-if", - "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.87" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" -dependencies = [ - "bumpalo", - "log", - "once_cell", - "proc-macro2", - "quote", - "syn 2.0.22", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-futures" -version = "0.4.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" -dependencies = [ - "cfg-if", - "js-sys", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.87" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.87" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.22", - "wasm-bindgen-backend", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.87" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" - -[[package]] -name = "wasm-streams" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bbae3363c08332cadccd13b67db371814cd214c2524020932f0804b8cf7c078" -dependencies = [ - "futures-util", - "js-sys", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - -[[package]] -name = "web-sys" -version = "0.3.64" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "webkit2gtk" -version = "0.18.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8f859735e4a452aeb28c6c56a852967a8a76c8eb1cc32dbf931ad28a13d6370" -dependencies = [ - "bitflags", - "cairo-rs", - "gdk", - "gdk-sys", - "gio", - "gio-sys", - "glib", - "glib-sys", - "gobject-sys", - "gtk", - "gtk-sys", - "javascriptcore-rs", - "libc", - "once_cell", - "soup2", - "webkit2gtk-sys", -] - -[[package]] -name = "webkit2gtk-sys" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d76ca6ecc47aeba01ec61e480139dda143796abcae6f83bcddf50d6b5b1dcf3" -dependencies = [ - "atk-sys", - "bitflags", - "cairo-sys-rs", - "gdk-pixbuf-sys", - "gdk-sys", - "gio-sys", - "glib-sys", - "gobject-sys", - "gtk-sys", - "javascriptcore-rs-sys", - "libc", - "pango-sys", - "pkg-config", - "soup2-sys", - "system-deps 6.1.1", -] - -[[package]] -name = "webview2-com" -version = "0.19.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4a769c9f1a64a8734bde70caafac2b96cada12cd4aefa49196b3a386b8b4178" -dependencies = [ - "webview2-com-macros", - "webview2-com-sys", - "windows 0.39.0", - "windows-implement", -] - -[[package]] -name = "webview2-com-macros" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaebe196c01691db62e9e4ca52c5ef1e4fd837dcae27dae3ada599b5a8fd05ac" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "webview2-com-sys" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aac48ef20ddf657755fdcda8dfed2a7b4fc7e4581acce6fe9b88c3d64f29dee7" -dependencies = [ - "regex", - "serde", - "serde_json", - "thiserror", - "windows 0.39.0", - "windows-bindgen", - "windows-metadata", -] - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-util" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" -dependencies = [ - "winapi", -] - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "windows" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57b543186b344cc61c85b5aab0d2e3adf4e0f99bc076eff9aa5927bcc0b8a647" -dependencies = [ - "windows_aarch64_msvc 0.37.0", - "windows_i686_gnu 0.37.0", - "windows_i686_msvc 0.37.0", - "windows_x86_64_gnu 0.37.0", - "windows_x86_64_msvc 0.37.0", -] - -[[package]] -name = "windows" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1c4bd0a50ac6020f65184721f758dba47bb9fbc2133df715ec74a237b26794a" -dependencies = [ - "windows-implement", - "windows_aarch64_msvc 0.39.0", - "windows_i686_gnu 0.39.0", - "windows_i686_msvc 0.39.0", - "windows_x86_64_gnu 0.39.0", - "windows_x86_64_msvc 0.39.0", -] - -[[package]] -name = "windows" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" -dependencies = [ - "windows-targets 0.48.1", -] - -[[package]] -name = "windows-bindgen" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68003dbd0e38abc0fb85b939240f4bce37c43a5981d3df37ccbaaa981b47cb41" -dependencies = [ - "windows-metadata", - "windows-tokens", -] - -[[package]] -name = "windows-implement" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" -dependencies = [ - "syn 1.0.109", - "windows-tokens", -] - -[[package]] -name = "windows-metadata" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ee5e275231f07c6e240d14f34e1b635bf1faa1c76c57cfd59a5cdb9848e4278" - -[[package]] -name = "windows-sys" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" -dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", -] - -[[package]] -name = "windows-sys" -version = "0.45.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" -dependencies = [ - "windows-targets 0.42.2", -] - -[[package]] -name = "windows-sys" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" -dependencies = [ - "windows-targets 0.48.1", -] - -[[package]] -name = "windows-targets" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" -dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", -] - -[[package]] -name = "windows-targets" -version = "0.48.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f" -dependencies = [ - "windows_aarch64_gnullvm 0.48.0", - "windows_aarch64_msvc 0.48.0", - "windows_i686_gnu 0.48.0", - "windows_i686_msvc 0.48.0", - "windows_x86_64_gnu 0.48.0", - "windows_x86_64_gnullvm 0.48.0", - "windows_x86_64_msvc 0.48.0", -] - -[[package]] -name = "windows-tokens" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2623277cb2d1c216ba3b578c0f3cf9cdebeddb6e66b1b218bb33596ea7769c3a" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec7711666096bd4096ffa835238905bb33fb87267910e154b18b44eaabb340f2" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" - -[[package]] -name = "windows_i686_gnu" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3925fd0b0b804730d44d4b6278c50f9699703ec49bcd628020f46f4ba07d9e1" - -[[package]] -name = "windows_i686_gnu" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763fc57100a5f7042e3057e7e8d9bdd7860d330070251a73d003563a3bb49e1b" - -[[package]] -name = "windows_i686_gnu" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" - -[[package]] -name = "windows_i686_gnu" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" - -[[package]] -name = "windows_i686_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce907ac74fe331b524c1298683efbf598bb031bc84d5e274db2083696d07c57c" - -[[package]] -name = "windows_i686_msvc" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bc7cbfe58828921e10a9f446fcaaf649204dcfe6c1ddd712c5eebae6bda1106" - -[[package]] -name = "windows_i686_msvc" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" - -[[package]] -name = "windows_i686_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2babfba0828f2e6b32457d5341427dcbb577ceef556273229959ac23a10af33d" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6868c165637d653ae1e8dc4d82c25d4f97dd6605eaa8d784b5c6e0ab2a252b65" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.37.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4dd6dc7df2d84cf7b33822ed5b86318fb1781948e9663bacd047fc9dd52259d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.39.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e4d40883ae9cae962787ca76ba76390ffa29214667a111db9e0a1ad8377e809" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" - -[[package]] -name = "winnow" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca0ace3845f0d96209f0375e6d367e3eb87eb65d27d445bdc9f1843a26f39448" -dependencies = [ - "memchr", -] - -[[package]] -name = "winreg" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" -dependencies = [ - "winapi", -] - -[[package]] -name = "winreg" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76a1a57ff50e9b408431e8f97d5456f2807f8eb2a2cd79b06068fc87f8ecf189" -dependencies = [ - "cfg-if", - "winapi", -] - -[[package]] -name = "wry" -version = "0.24.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33748f35413c8a98d45f7a08832d848c0c5915501803d1faade5a4ebcd258cea" -dependencies = [ - "base64 0.13.1", - "block", - "cocoa", - "core-graphics", - "crossbeam-channel", - "dunce", - "gdk", - "gio", - "glib", - "gtk", - "html5ever", - "http", - "kuchiki", - "libc", - "log", - "objc", - "objc_id", - "once_cell", - "serde", - "serde_json", - "sha2", - "soup2", - "tao", - "thiserror", - "url", - "webkit2gtk", - "webkit2gtk-sys", - "webview2-com", - "windows 0.39.0", - "windows-implement", -] - -[[package]] -name = "x11" -version = "2.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" -dependencies = [ - "libc", - "pkg-config", -] - -[[package]] -name = "x11-dl" -version = "2.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" -dependencies = [ - "libc", - "once_cell", - "pkg-config", -] - -[[package]] -name = "xattr" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d1526bbe5aaeb5eb06885f4d987bcdfa5e23187055de9b83fe00156a821fabc" -dependencies = [ - "libc", -] - -[[package]] -name = "xdg-home" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2769203cd13a0c6015d515be729c526d041e9cf2c0cc478d57faee85f40c6dcd" -dependencies = [ - "nix", - "winapi", -] - -[[package]] -name = "zbus" -version = "3.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31de390a2d872e4cd04edd71b425e29853f786dc99317ed72d73d6fcf5ebb948" -dependencies = [ - "async-broadcast", - "async-executor", - "async-fs", - "async-io", - "async-lock", - "async-process", - "async-recursion", - "async-task", - "async-trait", - "blocking", - "byteorder", - "derivative", - "enumflags2", - "event-listener", - "futures-core", - "futures-sink", - "futures-util", - "hex", - "nix", - "once_cell", - "ordered-stream", - "rand 0.8.5", - "serde", - "serde_repr", - "sha1", - "static_assertions", - "tracing", - "uds_windows", - "winapi", - "xdg-home", - "zbus_macros", - "zbus_names", - "zvariant", -] - -[[package]] -name = "zbus_macros" -version = "3.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d1794a946878c0e807f55a397187c11fc7a038ba5d868e7db4f3bd7760bc9d" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "regex", - "syn 1.0.109", - "zvariant_utils", -] - -[[package]] -name = "zbus_names" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb80bb776dbda6e23d705cf0123c3b95df99c4ebeaec6c2599d4a5419902b4a9" -dependencies = [ - "serde", - "static_assertions", - "zvariant", -] - -[[package]] -name = "zvariant" -version = "3.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44b291bee0d960c53170780af148dca5fa260a63cdd24f1962fa82e03e53338c" -dependencies = [ - "byteorder", - "enumflags2", - "libc", - "serde", - "static_assertions", - "zvariant_derive", -] - -[[package]] -name = "zvariant_derive" -version = "3.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "934d7a7dfc310d6ee06c87ffe88ef4eca7d3e37bb251dece2ef93da8f17d8ecd" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", - "zvariant_utils", -] - -[[package]] -name = "zvariant_utils" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7234f0d811589db492d16893e3f21e8e2fd282e6d01b0cddee310322062cc200" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/Cargo.toml b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/Cargo.toml deleted file mode 100644 index df7f5a45f01202acf8d6e1780adc6d0be9309ca9..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/Cargo.toml +++ /dev/null @@ -1,26 +0,0 @@ -[package] -name = "infinite_image_browsing" -version = "0.0.1" -description = "Infinite Image Browsing" -authors = ["zanllp"] -license = "mit" -repository = "" -edition = "2021" - - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[build-dependencies] -tauri-build = { version = "1.4", features = [] } - -[dependencies] -tauri = { version = "1.4", features = [ "api-all", "devtools", "process-command-api"] } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -reqwest = { version = "0.11", features = ["blocking", "json"] } -chrono = "0.4" - -[features] -# this feature is used for production builds or when `devPath` points to the filesystem -# DO NOT REMOVE!! -custom-protocol = ["tauri/custom-protocol"] diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/build.rs b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/build.rs deleted file mode 100644 index 795b9b7c83dbfc6bf454958eef78f93e211703d2..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/build.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - tauri_build::build() -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/128x128.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/128x128.png deleted file mode 100644 index 2010332c4dec263c60cc33afc2bf227a8853c326..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/128x128.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:797150c49593e9807474293e24c55d289190784c7668ff53b09f273644be926e -size 13531 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/128x128@2x.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/128x128@2x.png deleted file mode 100644 index c62620d35e8aa498b9677619af39e2798d7e555c..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/128x128@2x.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc221c1cff6c261f9661d3ebb5d4962ed31685d235637246a67ea96389cc45c4 -size 40794 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/32x32.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/32x32.png deleted file mode 100644 index 66044d3d510492e885e797da838fe48e30e9caec..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/32x32.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:276ac18a3ccca1de65c5b4e1fd801a441608e023b57135373d30a2bfbdcfbfa6 -size 1806 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square107x107Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square107x107Logo.png deleted file mode 100644 index 1cc8359aa636043413c5a6b77e73cb372abea882..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square107x107Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:409a2464b4fab69fda985dc1e1e5dd3de00437e87f55661c528e443f72e8d964 -size 10337 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square142x142Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square142x142Logo.png deleted file mode 100644 index a509c4d57dfe4b23c1b8efca7682f97b50c464ae..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square142x142Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2fcfd3287700365a70a89ab4b2d33faf69251c7306fb2bbb0c4c91e3a06da03e -size 15722 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square150x150Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square150x150Logo.png deleted file mode 100644 index a2a65df2135730c00eefc5abce685e99c1d7c0cb..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square150x150Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4056fedec29a0e01b383e45a1d0ef672e4b724ed4e12c31a4560d75ae3623a0 -size 17086 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square284x284Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square284x284Logo.png deleted file mode 100644 index ea6b2e0d675c926301abdd95f7c8b2658db497e7..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square284x284Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2f1eb3b04f579d2d9bb00b2d8089447fb463f314ff8a7ba3b04bb5ebc4e80aa7 -size 48613 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square30x30Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square30x30Logo.png deleted file mode 100644 index 82d23b09e625a18b310b8c50c83745be37de0f86..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square30x30Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:82fa6a681aca9caec3efad60ced31e7eb1ca47ee8d78d34a3b6ba58e1fd1d2a7 -size 1671 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square310x310Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square310x310Logo.png deleted file mode 100644 index afd8b9f2132784b1df682f59f1d19ea4e071ff59..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square310x310Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6e3dfcb725cf390c5bd17933f1b0c4bb321b0017211ff3e657eb1c925340ed67 -size 56231 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square44x44Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square44x44Logo.png deleted file mode 100644 index 0bd32250602e09f623a9f4ee57a99529f3f1acda..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square44x44Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2cde2cb32f72c85db007a57fc6d340f3391a0a9217276ff7f1c5c0152b857e84 -size 2867 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square71x71Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square71x71Logo.png deleted file mode 100644 index 0c4ff1bf59ee70a557024cf4f6cbc1094d9ce9a3..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square71x71Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97760f187eb6dfeaedb8507c195b530d4e308a0aefec69aa39f4ff159cfb1c9f -size 5648 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square89x89Logo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square89x89Logo.png deleted file mode 100644 index 85d55e5343e543f00725879dfac4990749ad27b4..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/Square89x89Logo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:251315140ac684fb3bd5d0a71db6e574771be62eee4c60c8ccc9d88157cc66c1 -size 7871 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/StoreLogo.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/StoreLogo.png deleted file mode 100644 index 47b0ecfd7106e6fcffe3309a4ed6246df6306434..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/StoreLogo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c9675f351a1c74eb1059361adda4fde1c6979fda9ad26b8fec4c0a92767d608 -size 3441 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.icns b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.icns deleted file mode 100644 index e17e355a7cd5e7d0d5c881e9d430e1836e079b51..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.icns +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b80c39897bb3251efb89e1e624805673624a49ea26773d549ae8dbc48ce3e1ea -size 795743 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.ico b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.ico deleted file mode 100644 index eaefe0037ea42a1228b094c72110751222aef1f0..0000000000000000000000000000000000000000 Binary files a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.ico and /dev/null differ diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.png b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.png deleted file mode 100644 index 3f42f9c7656b638e44d862f1fc26056a1e0e8623..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/icons/icon.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e9f241295a0b34b3aec695c5cd0402fe9c28caf445a79502f9d016382dd5344 -size 131752 diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/src/main.rs b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/src/main.rs deleted file mode 100644 index 35b66d983a478be016b7ef875dd66b7ad2f91c7c..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/src/main.rs +++ /dev/null @@ -1,116 +0,0 @@ -// Prevents additional console window on Windows in release, DO NOT REMOVE!! -#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] - -use serde::Deserialize; -use std::fs::File; -use std::fs::OpenOptions; -use std::io::prelude::*; -use std::io::Error; -use std::io::Write; -use tauri::api::process::Command; -use tauri::api::process::CommandEvent; -use tauri::WindowEvent; -use chrono::Local; -use chrono::format::{DelayedFormat, StrftimeItems}; - -// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command -#[tauri::command] -fn greet(name: &str) -> String { - format!("Hello, {}! You've been greeted from Rust!", name) -} -struct AppState { - port: u16, -} -#[derive(serde::Serialize)] -struct AppConf { - port: u16, -} -#[tauri::command] -fn get_tauri_conf(state: tauri::State<'_, AppState>) -> AppConf { - AppConf { port: state.port } -} - -#[derive(Deserialize, Default, Debug)] -struct Config { - sdwebui_dir: String, -} - -fn read_config_file(path: &str) -> Result { - let mut file = File::open(path)?; - let mut contents = String::new(); - file.read_to_string(&mut contents)?; - Ok(contents) -} - -fn shutdown_api_server(port: u16) { - let url = format!("http://127.0.0.1:{}/infinite_image_browsing/shutdown", port); - let res = reqwest::blocking::Client::new().post(url).send(); - if let Err(e) = res { - eprintln!("{}", e); - } -} - -#[tauri::command] -fn shutdown_api_server_command(state: tauri::State<'_, AppState>) { - shutdown_api_server(state.port); -} - -fn main() { - let listener = std::net::TcpListener::bind("localhost:0").expect("无法绑定到任何可用端口"); - let port = listener.local_addr().unwrap().port(); - drop(listener); - let port_str = port.to_string(); - let mut args = vec!["--port", &port_str, "--allow_cors", "--enable_shutdown"]; - let contents = read_config_file("app.conf.json").unwrap_or_default(); - let conf = serde_json::from_str::(&contents).unwrap_or_default(); - if !conf.sdwebui_dir.is_empty() { - args.push("--sd_webui_dir"); - args.push(&conf.sdwebui_dir); - } - let (mut rx, _child) = Command::new_sidecar("iib_api_server") - .expect("failed to create `iib_api_server` binary command") - .args(args) - .spawn() - .expect("Failed to spawn sidecar"); - let log_file = OpenOptions::new() - .create(true) - .write(true) - .append(true) - .open("iib_api_server.log") - .expect("Failed to open log file"); - tauri::async_runtime::spawn(async move { - // read events such as stdout - while let Some(event) = rx.recv().await { - match event { - CommandEvent::Stdout(line) => { - let timestamp: DelayedFormat> = - Local::now().format("[%Y-%m-%d %H:%M:%S]"); - let log_line = format!("INFO {} {}", timestamp, line); - println!("{}", log_line); - writeln!(&log_file, "{}", log_line).expect("Failed to write to log file"); - }, - CommandEvent::Stderr(line) => { - let timestamp: DelayedFormat> = - Local::now().format("[%Y-%m-%d %H:%M:%S]"); - let log_line = format!("ERR {} {}", timestamp, line); - println!("{}", log_line); - writeln!(&log_file, "{}", log_line).expect("Failed to write to log file"); - } - _ => (), - }; - } - }); - tauri::Builder::default() - .manage(AppState { port }) - .invoke_handler(tauri::generate_handler![ - greet, - get_tauri_conf, - shutdown_api_server_command - ]) - .on_window_event(move |event| match event.event() { - WindowEvent::CloseRequested { .. } => shutdown_api_server(port), - _ => (), - }) - .run(tauri::generate_context!()) - .expect("error while running tauri application"); -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/tauri.conf.json b/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/tauri.conf.json deleted file mode 100644 index 75ef15594a09151e1a35fdcb6a095fcfe3fdacbf..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src-tauri/tauri.conf.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "build": { - "beforeDevCommand": "yarn dev", - "beforeBuildCommand": "yarn build", - "devPath": "http://localhost:5173", - "distDir": "../dist", - "withGlobalTauri": false - }, - "package": { - "productName": "Infinite Image Browsing", - "version": "1.2.0" - }, - "tauri": { - "allowlist": { - "all": true, - "fs": { - "all": true, - "scope": [ - "**" - ] - }, - "shell": { - "all": true, - "open": true, - "sidecar": true, - "scope": [ - { - "name": "iib_api_server", - "sidecar": true - } - ] - } - }, - "bundle": { - "active": true, - "targets": "all", - "identifier": "com.zanllp.iib", - "icon": [ - "icons/32x32.png", - "icons/128x128.png", - "icons/128x128@2x.png", - "icons/icon.icns", - "icons/icon.ico" - ], - "externalBin": [ - "iib_api_server" - ] - }, - "security": { - "csp": null - }, - "windows": [ - { - "fullscreen": false, - "resizable": true, - "fileDropEnabled": false, - "title": "Infinite Image Browsing", - "width": 800, - "height": 600, - "maximized": true - } - ] - } -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/App.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/App.vue deleted file mode 100644 index d177e1babf837bd696e4e7be55b3babb80f03e13..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/App.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/api/db.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/api/db.ts deleted file mode 100644 index dad2d859501e724f2ba8abb1ebf3d7bb9811e93f..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/api/db.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { Dict } from '@/util' -import type { FileNodeInfo } from './files' -import { axiosInst } from './index' -import { PageCursor } from 'vue3-ts-util' - -export interface Tag { - name: string - id: number | string - display_name: string | null - type: string - color: string - count: number -} - -export type DataBaseBasicInfo = { - img_count: number - tags: Tag[] - expired: boolean - expired_dirs: string[] -} - -export const getDbBasicInfo = async () => { - const resp = await axiosInst.value.get('/db/basic_info') - return resp.data as DataBaseBasicInfo -} - -export const getExpiredDirs = async () => { - const resp = await axiosInst.value.get('/db/expired_dirs') - return resp.data as Pick -} - -export const updateImageData = async () => { - await axiosInst.value.post('/db/update_image_data', {}, { timeout: Infinity }) -} - -export const updateTag = async (tag: Tag) => { - await axiosInst.value.post('/db/update_tag', tag) -} - -export type TagId = number | string -export interface MatchImageByTagsReq { - folder_paths_str?: string - and_tags: TagId[] - or_tags: TagId[] - not_tags: TagId[] -} - -export const getImagesByTags = async (req: MatchImageByTagsReq, cursor: string) => { - const resp = await axiosInst.value.post('/db/match_images_by_tags', { - ...req, - folder_paths: (req.folder_paths_str ?? '').split(/,|\n/).map(v => v.trim()).filter(v => v), - cursor - }) - return resp.data as { - files: FileNodeInfo[], - cursor: PageCursor - } -} - -export const addCustomTag = async (req: { tag_name: string }) => { - const resp = await axiosInst.value.post('/db/add_custom_tag', req) - return resp.data as Tag -} - -export const toggleCustomTagToImg = async (req: { tag_id: TagId; img_path: string }) => { - const resp = await axiosInst.value.post('/db/toggle_custom_tag_to_img', req) - return resp.data as { is_remove: boolean } -} - -export const removeCustomTag = async (req: { tag_id: TagId }) => { - await axiosInst.value.post('/db/remove_custom_tag', req) -} - -export const removeCustomTagToImg = async (req: { tag_id: TagId; img_id: TagId }) => { - await axiosInst.value.post('/db/add_custom_tag_from_img', req) -} - -export const getImageSelectedCustomTag = async (path: string) => { - const resp = await axiosInst.value.get('/db/img_selected_custom_tag', { params: { path } }) - return resp.data as Tag[] -} - - -export const getRandomImages = async () => { - const resp = await axiosInst.value.get('/db/random_images') - return resp.data as FileNodeInfo[] -} - -export interface SearchBySubstrReq { - surstr: string; - cursor: string; - regexp: string; - path_only?: boolean; - folder_paths?: string[]; - size?: number; -} - - -export const getImagesBySubstr = async (req: SearchBySubstrReq) => { - const resp = await axiosInst.value.post('/db/search_by_substr', req) - return resp.data as { - files: FileNodeInfo[], - cursor: PageCursor - } -} - -const extraPaths = '/db/extra_paths' -export type ExtraPathType = 'scanned' | 'walk' | 'cli_access_only' | '' | 'scanned-fixed' - -export interface ExtraPathModel { - path: string - alias?: string - types: ExtraPathType[] -} - -export const getExtraPath = async () => { - const resp = await axiosInst.value.get(extraPaths) - return resp.data as ExtraPathModel[] -} - -export const addExtraPath = async (model: ExtraPathModel) => { - await axiosInst.value.post(extraPaths, model) -} -export const removeExtraPath = async (req: ExtraPathModel) => { - await axiosInst.value.delete(extraPaths, { data: req }) -} - -export interface ExtraPathAliasModel { - path: string - alias: string -} - -export const aliasExtraPath = async (model: ExtraPathAliasModel) => { - await axiosInst.value.post('/db/alias_extra_path', model) -} - -export const batchGetTagsByPath = async (paths: string[]) => { - const resp = await axiosInst.value.post('/db/get_image_tags', { paths }) - return resp.data as Dict -} - -export const rebuildImageIndex = () => axiosInst.value.post('/db/rebuild_index') - -export interface BatchUpdateTagParams { - img_paths: string[] - action: 'add' | 'remove' - tag_id: number -} - -export const batchUpdateImageTag = (data: BatchUpdateTagParams) => { - return axiosInst.value.post('/db/batch_update_image_tag', data) -} - -export interface RenameFileParams { - path: string - name: string -} - -export const renameFile = async (data: RenameFileParams) => { - const resp = await axiosInst.value.post('/db/rename', data) - return resp.data as Promise<{ new_path:string }> -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/api/files.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/api/files.ts deleted file mode 100644 index 917891bbbab279bc0a834a452216d2c9b8f3d149..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/api/files.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { Dict } from '@/util' -import { axiosInst } from '.' - -export interface FileNodeInfo { - size: string - type: 'file' | 'dir' - created_time: string - name: string - date: string - bytes: number - fullpath: string - is_under_scanned_path: boolean - gen_info_raw?: string - gen_info_obj?: object - cover_url?: string -} - -export interface GenDiffInfo { - empty: boolean - ownFile: string - otherFile: string - diff: any -} - -export const getTargetFolderFiles = async (folder_path: string) => { - const resp = await axiosInst.value.get('/files', { params: { folder_path } }) - return resp.data as { files: FileNodeInfo[] } -} - - -export const deleteFiles = async (file_paths: string[]) => { - const resp = await axiosInst.value.post('/delete_files', { file_paths }) - return resp.data as { files: FileNodeInfo[] } -} - -export const moveFiles = async ( - file_paths: string[], - dest: string, - create_dest_folder?: boolean -) => { - const resp = await axiosInst.value.post('/move_files', { file_paths, dest, create_dest_folder }) - return resp.data as { files: FileNodeInfo[] } -} - -export const copyFiles = async ( - file_paths: string[], - dest: string, - create_dest_folder?: boolean -) => { - const resp = await axiosInst.value.post('/copy_files', { file_paths, dest, create_dest_folder }) - return resp.data as { files: FileNodeInfo[] } -} - -export const mkdirs = async (dest_folder: string) => { - await axiosInst.value.post('/mkdirs', { dest_folder }) -} - - -export const batchGetFilesInfo = async (paths: string[]) => { - const resp = await axiosInst.value.post('/batch_get_files_info', { paths }) - return resp.data as Dict -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/api/index.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/api/index.ts deleted file mode 100644 index 8ad2c736d876ee52dbd2461e520372d90b4fd8b1..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/api/index.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { Input, Modal, message } from 'ant-design-vue' -import axios, { AxiosInstance, isAxiosError } from 'axios' -import type { GlobalSettingPart } from './type' -import { t } from '@/i18n' -import type { ExtraPathModel, Tag } from './db' -import cookie from 'js-cookie' -import { delay } from 'vue3-ts-util' -import { computed, h, ref } from 'vue' -import 'ant-design-vue/es/input/style/index.css' -import sjcl from 'sjcl' -import { tauriConf } from '@/util/tauriAppConf' -import { Dict, isSync } from '@/util' -import { FileNodeInfo } from './files' - -export const apiBase = computed(() => - tauriConf.value - ? `http://127.0.0.1:${tauriConf.value.port}/infinite_image_browsing` - : '/infinite_image_browsing' -) - -const sha256 = (data: string) => { - const hash = sjcl.hash.sha256.hash(data) - return sjcl.codec.hex.fromBits(hash) -} - -const addInterceptor = (axiosInst: AxiosInstance) => { - axiosInst.interceptors.response.use( - (resp) => resp, - async (err) => { - if (isAxiosError(err)) { - if (err.response?.status === 401) { - const key = await new Promise((resolve) => { - const key = ref('') - Modal.confirm({ - title: t('serverKeyRequired'), - content: () => { - return h(Input, { - value: key.value, - 'onUpdate:value': (v: string) => (key.value = v) - }) - }, - onOk() { - resolve(key.value) - } - }) - }) - if (!key) { - return - } - cookie.set('IIB_S', sha256(key + '_ciallo')) - await delay(100) - location.reload() - } - - switch (err.response?.data?.detail?.type) { - case 'secret_key_required': - Modal.error({ - width: '60vw', - title: t('secretKeyMustBeConfigured'), - content: () => h('p', { style: 'white-space: pre-line;' } , t('secretKeyRequiredWarnMsg')) - }) - throw new Error(t('secretKeyRequiredWarnMsg')) - } - let errmsg = err.response?.data?.detail - try { - if (!errmsg) { - errmsg = JSON.parse(await err.response?.data.text()).detail - } - } catch (e) { - console.error(err.response ,e) - } - errmsg ??= t('errorOccurred') - message.error(errmsg) - throw new Error(errmsg) - } - return err - } - ) -} - -export const axiosInst = computed(() => { - const axiosInst = axios.create({ - baseURL: apiBase.value - }) - addInterceptor(axiosInst) - return axiosInst -}) -export const greeting = async () => { - const resp = await axiosInst.value.get('hello') - return resp.data as string -} - -export interface GlobalConf { - all_custom_tags: Tag[] - global_setting: GlobalSettingPart - is_win: boolean - cwd: string - home: string - sd_cwd: string - extra_paths: ExtraPathModel[] - enable_access_control: boolean - launch_mode: 'server' | 'sd' - export_fe_fn: boolean - app_fe_setting: Record<'global'|'fullscreen_layout'| `workspace_snapshot_${string}`, any> - is_readonly: boolean -} - -export const getGlobalSetting = async () => { - const resp = await axiosInst.value.get('/global_setting') - const data = resp.data as GlobalConf - try { - if (!isSync()) { - data.app_fe_setting = {} as any - } - } catch (error) { - console.error(error) - } - return data -} - -export const getVersion = async () => { - const resp = await axiosInst.value.get('/version') - return resp.data as { hash?: string, tag?: string } -} - -export const checkPathExists = async (paths: string[]) => { - const resp = await axiosInst.value.post('/check_path_exists', { paths }) - return resp.data as Record -} - -export const setImgPath = async (path: string) => { - return axiosInst.value.post(`/send_img_path?path=${encodeURIComponent(path)}`) -} - -export const genInfoCompleted = async () => { - return (await axiosInst.value.get('/gen_info_completed', { timeout: 60_000 })).data as boolean -} - -export const getImageGenerationInfo = async (path: string) => { - return (await axiosInst.value.get(`/image_geninfo?path=${encodeURIComponent(path)}`)) - .data as string -} - -export const getImageGenerationInfoBatch = async (paths: string[]) => { - if (!paths.length) { - return {} - } - const resp = await axiosInst.value.post('/image_geninfo_batch', { paths }) - return resp.data -} - -export const openFolder = async (path: string) => { - await axiosInst.value.post('/open_folder', { path }) -} - -export const openWithDefaultApp = async (path: string) => { - await axiosInst.value.post('/open_with_default_app', { path }) -} - -export interface Top4MediaInfo extends FileNodeInfo { - media_type: 'video' | 'image' -} - -export const batchGetDirTop4MediaInfo = async (paths: string[]) => { - const resp = await axiosInst.value.post('/batch_top_4_media_info', { paths }) - return resp.data as Dict -} - -export const setAppFeSetting = async (name: keyof GlobalConf['app_fe_setting'], setting: Record) => { - if (!isSync()) return - await axiosInst.value.post('/app_fe_setting', { name, value: JSON.stringify(setting) }) -} - -export const removeAppFeSetting = async (name: keyof GlobalConf['app_fe_setting']) => { - if (!isSync()) return - await axiosInst.value.delete('/app_fe_setting', { data: { name } }) -} - -export const setTargetFrameAsCover = async (body: {path: string, base64_img: string, updated_time: string}) => { - await axiosInst.value.post('/set_target_frame_as_video_cover', body) -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/api/type.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/api/type.ts deleted file mode 100644 index 296dda8ec40b08de05948f0d6bd09cadda80359f..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/api/type.ts +++ /dev/null @@ -1,31 +0,0 @@ -export interface GlobalSettingPart { - outdir_samples: string - outdir_txt2img_samples: string - outdir_img2img_samples: string - outdir_extras_samples: string - outdir_grids: string - outdir_txt2img_grids: string - outdir_img2img_grids: string - outdir_save: string - dataset_filename_word_regex: string - dataset_filename_join_string: string - sd_model_checkpoint: string - sd_vae: string - img2img_background_color: string - deepbooru_filter_tags: string - sd_hypernetwork: string - font: string - quicksettings: string - ui_reorder: string - ui_extra_networks_tab_reorder: string - localization: string - show_progress_type: string - live_preview_content: string - ddim_discretize: string - sd_checkpoint_hash: string - sd_lora: string - control_net_model_config: string - control_net_model_adapter_config: string - control_net_models_path: string - additional_networks_extra_lora_path: string -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/components/BaseFileListInfo.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/components/BaseFileListInfo.vue deleted file mode 100644 index 8613e0468e85405bb53c7cfbd99aeb0de15b838e..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/components/BaseFileListInfo.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/components/ChangeIndicator.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/components/ChangeIndicator.vue deleted file mode 100644 index 82a3f345fc7f6c00017c6e220d3e39a7444d3675..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/components/ChangeIndicator.vue +++ /dev/null @@ -1,313 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/components/ContextMenu.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/components/ContextMenu.vue deleted file mode 100644 index 358698b9ac27773272861266ce408793130b1575..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/components/ContextMenu.vue +++ /dev/null @@ -1,97 +0,0 @@ - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/components/FileItem.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/components/FileItem.vue deleted file mode 100644 index 28f1f5be8bdf04aeefebd52c8d5f15e26979a075..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/components/FileItem.vue +++ /dev/null @@ -1,394 +0,0 @@ - - - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/components/HistoryRecord.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/components/HistoryRecord.vue deleted file mode 100644 index fa6612cd2725ee24014af8dc629443a9a56c860e..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/components/HistoryRecord.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/components/MultiSelectKeep.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/components/MultiSelectKeep.vue deleted file mode 100644 index 8e3913b8105fb1f411e9af469d34b6fd8e0252d3..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/components/MultiSelectKeep.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/components/functionalCallableComp.tsx b/extensions/sd-webui-infinite-image-browsing/vue/src/components/functionalCallableComp.tsx deleted file mode 100644 index 8072a2f8dcbe2a7836ddebb3fddd48bf80575ca4..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/components/functionalCallableComp.tsx +++ /dev/null @@ -1,185 +0,0 @@ -import { Button, Input, Modal, message } from 'ant-design-vue' -import { StyleValue, ref } from 'vue' -import * as Path from '@/util/path' -import { FileNodeInfo, mkdirs } from '@/api/files' -import { setTargetFrameAsCover } from '@/api' -import { t } from '@/i18n' -import { downloadFiles, globalEvents, toRawFileUrl, toStreamVideoUrl } from '@/util' -import { DownloadOutlined } from '@/icon' -import { isStandalone } from '@/util/env' -import { addCustomTag, getDbBasicInfo, rebuildImageIndex, renameFile } from '@/api/db' -import { useTagStore } from '@/store/useTagStore' -import { useGlobalStore } from '@/store/useGlobalStore' -import { base64ToFile, video2base64 } from '@/util/video' - -export const openCreateFlodersModal = (base: string) => { - const floderName = ref('') - return new Promise((resolve) => { - Modal.confirm({ - title: t('inputFolderName'), - content: () => , - async onOk() { - if (!floderName.value) { - return - } - const dest = Path.join(base, floderName.value) - await mkdirs(dest) - resolve() - } - }) - }) -} - -export const MultiSelectTips = () => ( -

- Tips: {t('multiSelectTips')} -

-) - -export const openVideoModal = (file: FileNodeInfo, onTagClick?: (id: string| number) => void) => { - const tagStore = useTagStore() - const global = useGlobalStore() - const isSelected = (id: string | number) => { - return !!tagStore.tagMap.get(file.fullpath)?.some(v => v.id === id) - } - const videoRef = ref(null) - const onSetCurrFrameAsVideoPoster = async () => { - if (!videoRef.value) { - return - } - const video = videoRef.value - video.pause() - const base64 = video2base64(video) - await setTargetFrameAsCover({ path: file.fullpath, base64_img: base64, updated_time: file.date } ) - file.cover_url = URL.createObjectURL(await base64ToFile(base64, 'cover')) - message.success(t('success') + '! ' + t('clearCacheIfNotTakeEffect')) - } - const tagBaseStyle: StyleValue = { - margin: '2px', - padding: '2px 16px', - 'border-radius': '4px', - display: 'inline-block', - cursor: 'pointer', - 'font-weight': 'bold', - transition: '.5s all ease', - 'user-select': 'none', - } - Modal.confirm({ - width: '80vw', - title: file.name, - icon: null, - content: () => ( -
- -
-
- { t('addNewCustomTag') } -
- {global.conf!.all_custom_tags.map((tag) => -
onTagClick?.(tag.id)} style={{ - background: isSelected(tag.id) ? tagStore.getColor(tag) : 'var(--zp-primary-background)', - color: !isSelected(tag.id) ? tagStore.getColor(tag) : 'white', - border: `2px solid ${tagStore.getColor(tag)}`, - ...tagBaseStyle - }}> - { tag.name } -
)} -
-
- - -
-
- ), - maskClosable: true, - wrapClassName: 'hidden-antd-btns-modal' - }) -} - -export const openRebuildImageIndexModal = () => { - Modal.confirm({ - title: t('confirmRebuildImageIndex'), - onOk: async () => { - await rebuildImageIndex() - globalEvents.emit('searchIndexExpired') - message.success(t('rebuildComplete')) - } - }) -} - - -export const openRenameFileModal = (path: string) => { - const name = ref(path.split(/[\\/]/).pop() ?? '') - return new Promise((resolve) => { - Modal.confirm({ - title: t('rename'), - content: () => , - async onOk() { - if (!name.value) { - return - } - const resp = await renameFile({ path, name: name.value }) - resolve(resp.new_path) - } - }) - }) -} - - -export const openAddNewTagModal = () => { - const name = ref('') - const global = useGlobalStore() - return new Promise((resolve) => { - Modal.confirm({ - title: t('addNewCustomTag'), - content: () => , - async onOk() { - if (!name.value) { - return - } - const info = await getDbBasicInfo() - const tag = await addCustomTag({ tag_name: name.value }) - if (tag.type !== 'custom') { - message.error(t('existInOtherType')) - throw new Error(t('existInOtherType')) - } - if (info.tags.find((v) => v.id === tag.id)) { - message.error(t('alreadyExists')) - throw new Error(t('alreadyExists')) - } else { - global.conf?.all_custom_tags.push(tag) - message.success(t('success')) - } - resolve(name.value) - } - }) - }) -} - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/components/numInput.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/components/numInput.vue deleted file mode 100644 index 8a95da86b00bce0b6f4e95130c63ef0007759207..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/components/numInput.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/defineExportFunc.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/defineExportFunc.ts deleted file mode 100644 index 8a100c698e3dee1eaea92c6941aec777f54780df..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/defineExportFunc.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { GridViewFile, TabPane, useGlobalStore } from './store/useGlobalStore' -import { useTagStore } from './store/useTagStore' -import { Dict, globalEvents, switch2IIB } from './util' -import { uniqueId } from 'lodash-es' - -export const exportFn = async (g: ReturnType) => { - if (!g.conf?.export_fe_fn) { - return - } - const tag = useTagStore() - const insertTabPane = ({ - tabIdx = 0, - paneIdx = 0, - pane - }: { - tabIdx?: number - paneIdx?: number - pane: TabPane - }) => { - const tab = g.tabList[tabIdx] - if (!pane.key) { - (pane as any).key = uniqueId() - } - tab.panes.splice(paneIdx, 0, pane) - tab.key = pane.key - return { - key: pane.key, - ref: getPageRef(pane.key) - } - } - - define({ - insertTabPane, - getTabList: () => g.tabList, - getPageRef, - switch2IIB, - openIIBInNewTab: () => window.parent.open('/infinite_image_browsing'), - setTagColor(name: string, color: string) { - tag.colorCache.set(name, color) - }, - setTags(path: string, tags: string[]) { - tag.set(path, tags) - }, - getTags(path: string) { - return tag.tagMap.get(path) - }, - createGridViewFile(path: string, tags?: string[]): GridViewFile { - return { - name: path.split(/[/\\]/).pop() ?? '', - size: '-', - bytes: 0, - type: 'file', - created_time: '', - date: '', - fullpath: path, - tags: tags?.map((v) => ({ name: v })), - is_under_scanned_path: true - } - } - }) - - function getPageRef(key: string) { - return new Proxy( - {}, - { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - get(_target, p, _receiver) { - if (p === 'close') { - const tabIdx = g.tabList.findIndex((v) => v.panes.some((v) => v.key === key)) - return () => globalEvents.emit('closeTabPane', tabIdx, key) - } - return g.pageFuncExportMap.get(key)?.[p as string] - } - } - ) - } - - function define(funcs: Dict<(...args: any[]) => any>) { - const w = window as any - for (const key in funcs) { - w[key] = (...args: any) => { - return funcs[key](...args) - } - } - } -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/de.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/de.ts deleted file mode 100644 index 87dd2226b737ed3481fb4c2c0f0b4a8130aefa40..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/de.ts +++ /dev/null @@ -1,129 +0,0 @@ -import type { IIBI18nMap } from '.' - -export const de: Partial = { - serverKeyRequired: - 'Für die weitere Nutzung ist die Eingabe eines Schlüssels erforderlich, der vom Server konfiguriert wurde.', - removeFromSearchScanPathAndQuickMove: 'Schnellzugriff entfernen', - addToSearchScanPathAndQuickMove: 'Schnellzugriff hinzufügen', - openWithLocalFileBrowser: 'Im lokalen Dateimanager öffnen', - 'fuzzy-search-noResults': 'Es wurde nichts gefunden', - 'fuzzy-search-placeholder': - 'Geben Sie einen Teil der Bildinformationen oder des Dateinamens ein, um passende Ergebnisse zu finden', - 'fuzzy-search': 'Schnellsuche', - autoUpdate: 'Erkannte Änderungen, automatische Aktualisierung wird ausgeführt', - faq: 'FAQ', - selectExactMatchTag: 'Wähle Tags für exakte Übereinstimmung aus', - selectAnyMatchTag: '(Optional) Wähle Tags für beliebige Übereinstimmung aus', - selectExcludeTag: '(Optional) Wähle Tags zum Ausschliessen aus', - exactMatch: 'Exakte Übereinstimmung', - anyMatch: 'Beliebige Übereinstimmung', - exclude: 'Ausschliessen', - 'auto.refreshed': 'Automatische Aktualisierung erfolgreich durchgeführt!', - copied: 'In die Zwischenablage kopiert!', - 'index.expired': 'Index abgelaufen, automatische Aktualisierung wird durchgeführt', - manualExitFullScreen: - 'Du hast das letzte Bild gelöscht und musst möglicherweise manuell den Vollbild-Vorschaumodus beenden', - 'walk-mode-move-message': - 'Im Walk-Modus ist das Verschieben des Verzeichnisses nur über \'Schnellzugriff\' gestattet', - refreshCompleted: 'Aktualisierung erfolgreich abgeschlossen', - addedTagToImage: 'Schlagwort wurde erfolgreich diesem Bild hinzugefügt', - removedTagFromImage: 'Schlagwort wurde von diesem Bild entfernt', - openContextMenu: 'Öffne das Kontextmenü', - copyPrompt: 'Kopiere Prompt-Konfiguration', - toggleTag: '(Favorite) Schlagwort hinzufügen/entfernen', - addCompleted: 'Hinzufügen abgeschlossen', - removeCompleted: 'Entfernen abgeschlossen', - existInOtherType: 'Bereits in anderem Typ vorhanden', - alreadyExists: 'Bereits vorhanden', - cancel: 'Abbrechen', - submit: 'Bestätigen', - add: 'Hinzufügen', - custom: 'Benutzerdefiniert', - needGenerateIdx: - 'Klicken Sie auf die Schaltfläche, um einen Index zur Bildersuche zu generieren. \n Dieser Vorgang kann einige Minuten in Anspruch nehmen.', - search: 'Suchen', - UpdateIndex: 'Index aktualisieren', - generateIndexHint: 'Index für die Bildersuche generieren', - Model: 'Modell', - Sampler: 'Sampler', - lora: 'LoRA', - size: 'Grösse', - pos: 'Positiver Prompt', - unknownSavedDir: - 'Das Speicherverzeichnis konnte nicht gefunden werden (Einstellung für das Speicherverzeichnis in der Konfiguration)', - errorOccurred: 'Ein Fehler ist aufgetreten', - useThumbnailPreview: 'Verwende Miniaturansichtsvorschau', - gridThumbnailWidth: 'Breite der Miniatur-Rasteransicht', - start: 'Start', - tip: 'Hinweis', - sortByDateAscending: 'Datum aufsteigend', - sortByDateDescending: 'Datum absteigend', - sortByCreatedDateAscending: 'Erstellungsdatum aufsteigend', - sortByCreatedDateDescending: 'Erstellungsdatum absteigend', - sortByNameAscending: 'Name aufsteigend', - sortByNameDescending: 'Name absteigend', - sortBySizeAscending: 'Grösse aufsteigend', - sortBySizeDescending: 'Grösse absteigend', - inputAddressAndPressEnter: 'Geben Sie die Adresse ein und drücken Sie Enter', - go: 'Los', - unknownError: 'Unbekannter Fehler aufgetreten', - loadingNextFolder: 'Lade Dateien aus dem nächsten Verzeichnis', - moveFailedCheckPath: 'Fehler beim Verschieben. Überprüfen Sie den eingegebenen Pfad.\n', - detailList: 'Detailübersicht', - previewGrid: 'Vorschau-Rasteransicht', - moveSelectedFilesTo: 'Ausgewählte Dateien verschieben nach', - confirm: 'Bestätigen', - download: 'Herunterladen', - local: 'Lokal', - sendImageFailed: - 'Fehler beim Senden des Bildes. Bitte kontaktieren Sie den Entwickler mit der Fehlermeldung aus der Konsole.', - confirmDelete: 'Sind Sie sicher, dass Sie dies löschen möchten?', - deleteSuccess: 'Erfolgreich gelöscht', - doubleClickToCopy: 'Doppelklick zum Kopieren', - root: 'Root', - drive: ' Laufwerk', - refresh: 'Aktualisieren', - quickMove: 'Schnellzugriff', - more: 'Mehr', - viewMode: 'Ansichtsmodus', - sortingMethod: 'Sortiermethode', - copyPath: 'Pfad kopieren', - deleteSelected: 'Löschen', - previewInNewWindow: 'In neuem Fenster öffnen', - copySourceFilePreviewLink: 'Kopiere Dateilink aus dem Verzeichnis', - viewGenerationInfo: 'Anzeige von Generierungsinformationen (Prompt, etc.)', - sendToTxt2img: 'Senden an Text-zu-Bild', - sendToImg2img: 'Senden an Bild-zu-Bild', - sendToInpaint: 'Senden an Inpaint', - sendToExtraFeatures: 'Senden an Extras', - sendToControlNet: 'Senden an ControlNet', - loadNextPage: 'Nächste Seite laden', - localFile: 'Lokale Datei', - globalSettings: 'Globale Einstellungen', - welcome: 'Willkommen', - openInNewWindow: 'In neuem Fenster öffnen', - restoreLastRecord: 'Letztes Verzeichnis wiederherstellen', - launch: 'Ausführen', - walkMode: 'Verwende den Walk-Modus, um Bilder zu durchsuchen', - recent: 'Kürzlich', - emptyStartPage: 'Leere Startseite', - t2i: 'Text-zu-Bild', - i2i: 'Bild-zu-Bild', - saveButtonSavesTo: 'Speichern', - extra: 'Extras', - gridImage: 'Rasterbild', - 'i2i-grid': 'Bild-zu-Bild Raster', - image: 'Bild', - 't2i-grid': 'Text-zu-Bild Raster', - workingFolder: 'Arbeitsordner', - lang: 'Sprache', - langChangeReload: 'Neuladen: Einige Änderungen erfordern ein Neuladen, um wirksam zu werden', - openOnTheRight: 'Rechts öffnen', - openInNewTab: 'In neuem Tab öffnen', - openWithWalkMode: 'Im Walk-Modus öffnen', - longPressOpenContextMenu: 'Langes Rechtsklicken zur Öffnung des Kontextmenüs unterstützen', - searchResults: 'Suchergebnisse', - imgSearch: 'Bildsuche', - send2savedDir: 'In den gespeicherten Ordner senden', - promptcompare: 'Prompts vergleichen', -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/en.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/en.ts deleted file mode 100644 index 4c27f1c7fc5146e607de83482cc81c4bc17eec51..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/en.ts +++ /dev/null @@ -1,322 +0,0 @@ -import type { IIBI18nMap } from '.' - -export const en: IIBI18nMap = { - tryMyLuck: 'Try My Luck', - randomImage: 'Random Image', - shuffle: 'Shuffle', - pathOnly: 'Path Only', - disableMaximize: 'Disable Maximize', - takeEffectAfterReloadPage: 'Take effect after reloading the page', - compressFile: 'Compress File', - packOnlyNotDownload: 'Pack Only, Not Download', - notAllowSingleCtrlOrShiftAsShortcut: '不允許使用單獨的 Ctrl 或者 Shift 作為快速鍵', - conflictWithOtherShortcuts: 'Conflict with other shortcuts', - pinnedSearchHistoryDesc: 'You can quickly restore to the previous search state by clicking the pinned search history.', - addNewCustomTag: 'Add New Custom Tag', - clearCacheIfNotTakeEffect: 'If the changes do not take effect, try clearing the page cache', - success: 'Success', - setCurrFrameAsVideoPoster: 'Set Current Frame as Video Cover', - sync: 'Sync', - syncDesc: 'When you need to achieve simple setting isolation between multiple devices or users, you can turn off this option. Most of the settings of IIB will only be saved to the current browser (isolation in the case of cross-domain), and will not be synchronized to the server.', - readonlyModeSettingPageDesc: 'You are currently in read-only mode. You can adjust the settings, but these changes will not be saved.', - syncHistoryToLocal: 'Sync History to Local', - showCommaInGenInfoPanel: 'Show Comma in Generation Info Panel', - walkModeAutoRefreshDisabled: 'Auto Refresh in Walk Mode Disabled', - disable: 'Disable', - autoRefresh: 'Auto Refresh', - autoRefreshNormalFixedMode: 'Enable Auto Refresh (Normal/Fixed Mode)', - autoRefreshWalkMode: 'Enable Auto Refresh (Walk Mode)', - autoRefreshWalkModePosLimit: 'Position Limit for Auto Refresh in Walk Mode', - pollInterval: 'Poll Interval', - pollRefresh: 'Polling refresh', - pollRefreshTip: 'By default, IIB will automatically refresh when you return to IIB from other tabs or when the visibility of IIB changes. This feature is designed to keep IIB refreshed even when you stay in IIB all the time, please use it with caution', - - stopPollRefresh: 'Stop Polling refresh', - restoreLastWorkspaceStateSuccess: 'Restore Last Workspace State Success', - restoreWorkspaceSnapshotSuccess: 'Restore Workspace Snapshot Success', - openOnAppStart: 'Open on app start', - confirmThisAction: 'Confirm this action?', - WorkspaceSnapshotDesc: `Using the Workspace Snapshot feature, you can save the current state of the workspace so that you can quickly restore to the current state the next time you open IIB. -You can specify which snapshot to restore to when starting IIB in the global settings page, or restore to the last workspace state before closing.`, - saveWorkspaceSnapshot: 'Save Workspace Snapshot', - WorkspaceSnapshot: 'Workspace Snapshot', - restoreLastWorkspaceState: 'Restore Last Workspace State', - restoreWorkspaceSnapshot: 'Restore Workspace Snapshot: {0}', - nameRequired: 'Name is required', - save: 'Save', - name: 'Name', - saveCompleted: 'Save completed', - openThisAppInNewWindow: 'Open IIB in a new window', - readonly: 'Read-only', - accessLimited: 'Access Limited', - selectFolder: 'Select Folder', - openFileLocationInNewTab: 'Open File Location in New Tab', - copyTo: 'Copy to', - moveTo: 'Move to', - moveSuccess: 'Move success', - copySuccess: 'Copy success', - copyFilePath: 'Copy file path', - - previewMaskBackgroundOpacity: 'Preview Mask Background Opacity', - experimentalLRLayout: 'Experimental Side-by-Side Layout', - width: 'Width', - alwaysOnTooltipInfo: 'If this is turned off, the info panel will be hidden until you move the mouse to the right side of the screen', - alwaysOn: 'Always On', - time: 'Time', - pin: 'Pin', - unpin: 'Unpin', - restore: 'Restore', - restoreFromHistory: 'Restore from History', - history: 'History', - historyRecordsSubstr: 'Input Value', - historyRecordsisRegex: 'Is Regex', - walkModeDoc: 'Browse all files in a specified folder without paging, using infinite scrolling to display them. DFS will be used to traverse all files. Note: Sorting is only performed within the same layer in this mode.', - normalModelDoc: 'Similar to the Windows file browser, with high flexibility. But exceptions may occur when accessing cloud storage or similar SMB.', - fixedModeDoc: 'Similar to Normal mode, but with faster initial page speed, better compatibility, and slightly less flexibility. If you encounter an exception in Normal mode, you can try this mode instead.', - type: 'Type', - filterByKeyword: 'Filter tags by keyword', - loadmore: 'Load more', - rename: 'Rename', - inputAlias: 'Input Alias', - addAliasCompleted: 'Add Alias Completed', - alias: 'Alias', - exit: 'Exit', - 'select-all': 'Select All', - 'rerverse-select': 'Reverse Select', - 'clear-all-selected': 'Clear All Selected', - 'keep-multi-selected': 'Keep Multi-selected', - 'Source Identifier': 'Source', - openWithDefaultApp: 'Open with default app', - saveSelectedAsJson: 'Save selected image info', - saveAllAsJson: 'Save all image info', - saveLoadedImageAsJson: 'Save loaded image info', - selectedItems: ' {0} selected', - items: '{0} items', - scrollDownToComparePrompt: 'Scroll down to compare prompts', - sourceText: 'Source Text', - structuredData: 'Structured Data', - searchScope: 'Search Scope', - specifiedSearchFolder: 'Specify the folders to search, separate multiple folders with commas or line breaks', - batchAddTag: 'Batch Add Tag', - batchRemoveTag: 'Batch Remove Tag', - imageCompareTips: - 'When dragging files, this panel will also appear, so you don\'t need to open the "Image Comparison" feature separately.', - dragToResizePanel: 'Drag to resize the panel', - clickToToggleMaximizeMinimize: 'Click to toggle maximize/minimize', - dragToMovePanel: 'Drag to move the panel', - privacyAndSecurity: 'Security & Privacy', - deleteOneOnlySkipConfirm: 'Do not confirm when deleting a single file', - resetOnGlobalSettingsPage: 'You can reset on the global settings page', - secretKeyMustBeConfigured: 'Secret Key must be configured', - secretKeyRequiredWarnMsg: `For security reasons, you must separately configure Secret Key for this extension, refer to the IIB_SECRET_KEY in the .env.example file under the root directory of this extension. - This error only appears when gradio-auth is configured.`, - remove: 'Remove', - batchDownload: 'Batch Download', - archive: 'Archive', - zipDownload: 'Download as ZIP', - batchDownloaDDragAndDropHint: - 'Use drag and drop or the \'Send to Batch Download\' option in the right-click menu to add images from other pages here. Multiple selections are supported.', - lyco: 'LyCORIS', - sendToThirdPartyExtension: 'Send to third-party extension', - createFolder: 'Create Folder', - inputFolderName: 'Input Folder Name', - desktop: 'Desktop', - move: 'Move', - majorUpdateCustomCellSizeTips: 'Major Update: You can now customize the size of the grid image. Adjust it in the global settings page or in the "More" menu in the upper right corner.', - ImageBrowsingSettings: 'Image Browsing Settings', - other: 'Other', - livePreview: 'Live Preview', - gridCellWidth: 'Grid Cell Width (px)', - showChangeIndicators: 'Show Change Indicators', - seedAsChange: 'Seed as Change', - defaultShowChangeIndicators: 'Default Show Change Indicators', - defaultSeedAsChange: 'Default Compare Seed as Change', - defaultGridCellWidth: 'Default Grid Cell Width (px)', - thumbnailResolution: 'Thumbnail Resolution (px)', - inputTargetFolderPath: 'Enter the absolute path of the target folder', - pathDoesNotExist: 'Path does not exist', - confirmToAddToExtraPath: - 'Are you sure you want to add? This may take a lot of time to index if the folder is large. ', - clientSpecificSettings: 'Client-specific settings', - initiateSoftwareStartupConfig: 'Initiate software startup configuration', - 'tauriLaunchConf.readSdWebuiConfigTitle': 'Read Stable Diffusion Webui Config', - 'tauriLaunchConf.readSdWebuiConfigDescription': - 'If you have installed sd-webui and this extension, it is recommended to use this option to directly read the configuration and share data.', - 'tauriLaunchConf.selectSdWebuiFolder': 'Click to select the SD-webui folder', - 'tauriLaunchConf.skipThisConfigTitle': 'Skip This Configuration', - 'tauriLaunchConf.skipThisConfigDescription': - 'All features will still be available and you can reset them in the settings page.', - 'tauriLaunchConf.skipButton': 'Skip', - 'tauriLaunchConfMessages.configNotFound': - 'Cannot find the corresponding configuration. Please check if the selected folder is correct.', - 'tauriLaunchConfMessages.folderNotFound': - 'Cannot find the corresponding folder. Please check if the selected folder is correct.', - 'tauriLaunchConfMessages.configCompletedMessage': - 'Configuration completed. The application will restart shortly.', - 'tauriLaunchConfMessages.firstTimeUserTitle': - 'It looks like this is your first time using the application. Some configuration is required.', - selectAll: 'Select All', - close: 'Close', - fileName: 'File Name', - resolution: 'Resolution', - fileSize: 'File Size', - fullscreenview: 'Fullscreen View', - promptcompare: 'Compare Prompts', - imgCompare: 'Image Comparison', - share: 'Share', - dragImageHere: 'Drag image here', - copyLocationUrlSuccessMsg: - 'Copy completed, you can directly open the current folder through the copied link', - multiSelectTips: - 'You can hold down the Shift, Ctrl, or Cmd key and then click on files to perform batch delete/move operations', - document: 'Document', - copy: 'Copy', - edit: 'Edit', - defaultSortingMethod: 'Default Sorting Method', - defaultViewMode: 'Default View Mode', - showPreviewImage: 'Show Preview Image', - dontShowAgain: 'Don\'t show again', - accessControlModeTips: - 'To ensure data security, you are currently running in access control mode, which only allows access to authorized folders. You can adjust the access permissions settings (IIB_ACCESS_CONTROL) by editing the .env file in the root directory of this extension. If the .env file does not exist, you can copy the .env.example file and rename it to .env.', - changlog: 'Change log', - clear: 'Clear', - toggleTagSelection: 'Toggle Selection of Tag "{tag}"', - fullscreenRestriction: - 'Due to technical limitations, the first image cannot be deleted when opening the Full-screen view.', - shortcutKey: 'Keyboard Shortcuts (Only Available in Full-screen view mode)', - shortcutKeyDescription: - 'Click on the input box and press the shortcut key you want to use, supporting combinations with Shift and Ctrl.', - serverKeyRequired: - 'The server has configured a key. You must provide the same key to continue using it.', - removeFromSearchScanPathAndQuickMove: 'Remove from Search Scan Path and Quick Move', - addToSearchScanPathAndQuickMove: 'Add to Search Scan Path', - openWithLocalFileBrowser: 'Open with Local File Browser', - 'fuzzy-search-noResults': 'Nothing was found', - 'fuzzy-search-placeholder': 'Enter a part of the image information or filename to search', - 'fuzzy-search': 'Fuzzy search', - autoUpdate: 'Detected changes, automatically updating', - faq: 'FAQ', - selectExactMatchTag: 'Select Exact Match Tags. You can search by entering partial characters', - selectAnyMatchTag: 'Optional, Select Any Match Tags. You can search by entering partial characters', - selectExcludeTag: 'Optional, Select Exclude Tags. You can search by entering partial characters', - exactMatch: 'Exact Match', - anyMatch: 'Match Any', - exclude: 'Exclude', - 'auto.refreshed': 'Auto refresh completed!', - copied: 'Copied!', - 'index.expired': 'Index expired, updating automatically', - manualExitFullScreen: - 'You have deleted the last image and may need to manually exit Full-screen view', - 'walk-mode-move-message': 'Moving position is only allowed using \'Quick Move\' in walk mode', - refreshCompleted: 'Refresh completed', - //! MissingTranslations - addedTagToImage: 'Tag "{tag}" has been added to this image', - removedTagFromImage: 'Tag "{tag}" has been removed from this image', - openContextMenu: 'Open context menu', - copyPrompt: 'Copy prompt', - copyPositivePrompt: 'Copy positive prompt', - toggleTag: 'Toggle Tag Selection (Favorite)', - addCompleted: 'Add completed', - removeCompleted: 'Remove Completed', - existInOtherType: 'Already exists in other type', - alreadyExists: 'Already exists', - cancel: 'Cancel', - submit: 'Submit', - add: 'Add', - custom: 'Custom', - needGenerateIdx: - 'You need to click the button to generate an index for searching images. \n This process may take a few minutes to complete.', - search: 'Search', - UpdateIndex: 'Update index', - generateIndexHint: 'Generate index for search image', - Model: 'Model', - Sampler: 'Sampler', - lora: 'LoRA', - size: 'Size', - pos: 'Positive Prompt', - unknownSavedDir: 'Cannot find the saved folder (outdir_save field in the config)', - errorOccurred: 'An error occurred', - useThumbnailPreview: 'Use thumbnail preview', - gridThumbnailWidth: 'Grid thumbnail width', - start: 'Start', - tip: 'Tip', - sortByDateAscending: 'Updated date ascending', - sortByDateDescending: 'UPdated date descending', - sortByCreatedDateAscending: 'Created date ascending', - sortByCreatedDateDescending: 'Created date descending', - sortByNameAscending: 'Name ascending', - sortByNameDescending: 'Name descending', - sortBySizeAscending: 'Size ascending', - sortBySizeDescending: 'Size descending', - inputAddressAndPressEnter: 'Input address and press Enter', - go: 'Go', - unknownError: 'Unknown error', - loadingNextFolder: 'Loading files from the next folder', - moveFailedCheckPath: 'Move failed. Check your path input.', - detailList: 'Detail list', - previewGrid: 'Preview grid', - moveSelectedFilesTo: 'Move / Copy selected files to', - confirm: 'Confirm', - download: 'Download', - local: 'Local', - sendImageFailed: - 'Failed to send image. Please contact the developer with the error message from the console.', - confirmDelete: 'Are you sure you want to delete?', - deleteSuccess: 'Deleted successfully', - doubleClickToCopy: 'Double-click to copy', - root: 'Root', - drive: ' drive', - refresh: 'Refresh', - quickMove: 'Quick move', - more: 'More', - viewMode: 'View mode', - sortingMethod: 'Sorting method', - copyPath: 'Copy path', - deleteSelected: 'Delete', - previewInNewWindow: 'Open in new window', - copySourceFilePreviewLink: 'Copy source file preview link', - viewGenerationInfo: 'View generation information (prompt, etc.)', - sendToTxt2img: 'Send to txt2img', - sendToImg2img: 'Send to img2img', - sendToInpaint: 'Send to Inpaint', - sendToBatchDownload: 'Send to BatchDownload', - sendToExtraFeatures: 'Send to Extra', - sendToControlNet: 'Send to ControlNet', - loadNextPage: 'Load next page', - localFile: 'Local file', - globalSettings: 'Global settings', - welcome: 'Welcome', - openInNewWindow: 'Open in new tab', - restoreLastRecord: 'Restore last record', - launch: 'Launch', - walkMode: 'Use Walk mode to browse images', - launchFromNormalAndFixed: 'Use Normal / Fixed mode to browse images', - recent: 'Recent', - emptyStartPage: 'Empty start page', - t2i: 'txt2img', - i2i: 'img2img', - saveButtonSavesTo: 'save', - extra: 'extras', - gridImage: 'Grid image', - 'i2i-grid': 'img2img grid', - image: 'Image', - 't2i-grid': 'txt2img grid', - workingFolder: 'working folder', - lang: 'Language', - langChangeReload: 'Reload: Some changes may require a reload to take effect', - openOnTheRight: 'Open to the Side', - openInNewTab: 'Open in a new tab', - openWithWalkMode: 'Open with Walk Mode', - longPressOpenContextMenu: 'Support long press to open right-click menu', - searchResults: 'Search Results', - imgSearch: 'Image Search', - onlyFoldersAndImages: 'Only show folders/images/videos', - send2savedDir: 'Send to saved folder', - regexSearchEnabledHint: - '(You can also enable regex search by clicking the regex icon on the right)', - rebuildImageIndex: 'Rebuild image index', - confirmRebuildImageIndex: 'Confirm rebuilding image index?', - rebuildComplete: 'Rebuild complete', - tagSearchNoResultsMessage: - 'It seems like no results were found. Try rebuilding the index to remove unused tags?' -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/index.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/index.ts deleted file mode 100644 index 2e8f3f9b94573ba2a40ba43891f058fe009ea50b..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/index.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { createI18n } from 'vue-i18n' -import { zhHans } from './zh-hans' -import { en } from './en' -import { de } from './de' -import { zhHant } from './zh-hant' - -declare module 'vue' { - export interface ComponentCustomProperties { - $t(key: keyof IIBI18nMap, ...args: []): string - } -} - -export const getPreferredLang = () => { - const lang = navigator.language.toLowerCase() - if (lang.startsWith('zh')) { - return /hk|tw|mo/.test(lang) ? 'zhHant' : 'zhHans' - } - switch (lang) { - case 'de': - case 'de-de': - return 'de' - default: - return 'en' - } -} - -export const i18n = createI18n({ - locale: getPreferredLang(), - fallbackLocale: 'en', - messages: { - zhHans, - zhHant, - zh: zhHans, - en, - de - }, - legacy: false -}) - -export const { t, locale } = i18n.global - -export type IIBI18nMap = typeof zhHans diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/zh-hans.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/zh-hans.ts deleted file mode 100644 index 74e82695b46d0dc48d9f56c890db65f50e78fe70..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/zh-hans.ts +++ /dev/null @@ -1,301 +0,0 @@ - -export const zhHans = { - tryMyLuck: '试试手气', - randomImage: '随机图像', - shuffle: '换一批', - pathOnly: '仅路径', - takeEffectAfterReloadPage: '更改将在重新加载页面后生效', - disableMaximize: '禁用最大化', - compressFile: '对文件压缩', - packOnlyNotDownload: '仅打包不下载', - notAllowSingleCtrlOrShiftAsShortcut: '不允许使用单独的 Ctrl 或者 Shift 作为快捷键', - conflictWithOtherShortcuts: '与其他快捷键冲突', - pinnedSearchHistoryDesc: '你可以通过点击置顶的搜索历史来快速还原到之前的搜索状态', - addNewCustomTag: '添加新的自定义标签', - clearCacheIfNotTakeEffect: '如果更改没有生效,请尝试清理页面缓存', - success: '成功', - setCurrFrameAsVideoPoster: '设置当前帧为视频封面', - sync: '同步', - syncDesc: '当你需要实现多设备或者多用户之间的简单设置隔离时你可以关闭这个选项, IIB的大部分设置将只会保存到当前浏览器上(跨域的情况下也是隔离),不会同步到服务器', - readonlyModeSettingPageDesc: '当前为只读模式,你可以调整调整设置,但这些更改不会被保存', - syncHistoryToLocal: '同步历史到本地', - showCommaInGenInfoPanel: '在生成信息面板中显示逗号', - walkModeAutoRefreshDisabled: 'Walk模式下自动刷新已停用', - disable: '停用', - autoRefresh: '自动刷新', - autoRefreshNormalFixedMode: '启用自动刷新 (Normal/Fixed模式)', - autoRefreshWalkMode: '启用自动刷新 (Walk模式)', - autoRefreshWalkModePosLimit: 'Walk模式下触发自动刷新的位置极限', - pollRefresh: '轮询刷新', - pollInterval: '轮询间隔', - stopPollRefresh: '停止轮询刷新', - pollRefreshTip: '默认情况下你从其他TAB返回IIB时或者IIB的可见性发生改变时IIB都会自动刷新。这个功能是为了让你一直呆在IIB内时他也能自动刷新,请慎重使用', - restoreLastWorkspaceStateSuccess: '成功恢复上次工作区状态', - restoreWorkspaceSnapshotSuccess: '成功恢复工作区快照', - openOnAppStart: '启动时打开', - confirmThisAction: '确认这个操作?', - saveWorkspaceSnapshot: '保存工作区快照', - WorkspaceSnapshot: '工作区快照', - restoreLastWorkspaceState: '恢复上次工作区状态', - restoreWorkspaceSnapshot: '恢复工作区快照: {0}', - WorkspaceSnapshotDesc: `使用工作区快照功能你可以保存当前工作区的状态,以便下次打开IIB时快速恢复到当前状态。 -你可以在全局设置页面中指定启动IIB时恢复到哪一个快照,或者恢复到最后关闭前的工作区状态。`, - nameRequired: '名称不能为空', - save: '保存', - name: '名称', - saveCompleted: '保存完成', - openThisAppInNewWindow: '在新窗口打开本应用', - readonly: '只读', - accessLimited: '访问受限', - selectFolder: '选择文件夹', - openFileLocationInNewTab: '在新标签页打开文件位置', - copyTo: '复制到', - moveTo: '移动到', - moveSuccess: '移动成功', - copySuccess: '复制成功', - copyFilePath: '复制文件路径', - previewMaskBackgroundOpacity: '预览遮罩背景透明度', - experimentalLRLayout: '实验性并列布局', - width: '宽度', - alwaysOnTooltipInfo: '若关闭此项,信息面板将收起,直至鼠标移动至屏幕右侧时才打开', - alwaysOn: '常驻', - time: '时间', - pin: '置顶', - unpin: '取消置顶', - restore: '还原', - restoreFromHistory: '从历史记录中恢复', - history: '历史记录', - historyRecordsSubstr: '输入值', - historyRecordsisRegex: '是否正则', - walkModeDoc: '无需翻页即可浏览指定文件夹下的所有文件,使用无限滚动的方式呈现。将会使用DFS的方式遍历所有文件. 注意:该模式下排序仅在同层之间进行', - normalModelDoc: '类似于windows的文件浏览器,拥有较高的灵活性. 但在访问云存储或者类似SMB这样的地方时可能会出现异常', - fixedModeDoc: '类似Normal模式,但页面初始速度更快,兼容性更好,灵活性稍差。在Normal模式下出现了异常的话都可以改用这个试试', - type: '类型', - filterByKeyword: '输入标签关键词过滤', - loadmore: '加载更多', - rename: '重命名', - inputAlias: '输入别名', - addAliasCompleted: '添加别名完成', - alias: '别名', - exit: '退出', - 'select-all': '全选', - 'rerverse-select': '反选', - 'clear-all-selected': '清除所有选择', - 'keep-multi-selected': '保留多选', - 'Source Identifier': '来源', - openWithDefaultApp: '使用默认应用打开', - saveSelectedAsJson: '保存选中图像信息', - saveAllAsJson: '保存所有图像信息', - saveLoadedImageAsJson: '保存已加载的图像信息', - items: '{0}个项目', - selectedItems: '已选择{0}个项目', - scrollDownToComparePrompt: '向下滚查看Prompt比较', - sourceText: '源文本', - structuredData: '结构化数据', - searchScope: '搜索范围', - specifiedSearchFolder: '指定搜索的文件夹,使用逗号或者换行分割多个', - batchAddTag: '批量添加Tag', - batchRemoveTag: '批量移除Tag', - errorOccurred: '发生了个错误', - useThumbnailPreview: '使用缩略图预览', - gridThumbnailWidth: '网格缩略图宽度', - start: '开始', - tip: '提示', - sortByDateAscending: '修改日期升序', - sortByDateDescending: '修改日期降序', - sortByCreatedDateAscending: '创建日期升序', - sortByCreatedDateDescending: '创建日期降序', - sortByNameAscending: '名称升序', - sortByNameDescending: '名称降序', - sortBySizeAscending: '大小升序', - sortBySizeDescending: '大小降序', - inputAddressAndPressEnter: '输入地址回车', - go: '前往', - unknownError: '未知错误', - loadingNextFolder: '即将加载下一个文件夹的文件', - moveFailedCheckPath: '移动失败,检查你的路径输入', - detailList: '详情列表', - previewGrid: '预览网格', - moveSelectedFilesTo: '下列文件 移动 / 复制 至', - confirm: '确定', - download: '下载', - local: '本地', - sendImageFailed: '发送图像失败,请携带console的错误消息找开发者', - confirmDelete: '确认删除?', - deleteSuccess: '删除成功', - doubleClickToCopy: '双击复制', - root: '根', - drive: '盘', - promptcompare: 'Compare Prompts', - refresh: '刷新', - quickMove: '快速移动', - more: '更多', - viewMode: '查看模式', - sortingMethod: '排序方法', - copyPath: '复制路径', - deleteSelected: '删除', - previewInNewWindow: '在新窗口预览', - copySourceFilePreviewLink: '复制源文件预览链接', - viewGenerationInfo: '查看生成信息(prompt等)', - sendToTxt2img: '发送到文生图', - sendToImg2img: '发送到图生图', - sendToInpaint: '发送到局部重绘', - sendToControlNet: '发送到ControlNet', - sendToBatchDownload: '发送到批量下载', - sendToExtraFeatures: '发送到附加功能', - loadNextPage: '加载下一页', - localFile: '本地文件', - globalSettings: '全局设置', - welcome: '欢迎', - openInNewWindow: '在新页面打开', - restoreLastRecord: '还原上次记录', - launch: '启动', - walkMode: '使用 Walk 模式浏览图片', - launchFromNormalAndFixed: '使用 Normal / Fixed 模式浏览图片', - recent: '最近', - emptyStartPage: '空启动页', - t2i: '文生图', - i2i: '图生图', - saveButtonSavesTo: '保存', - extra: '附加', - gridImage: '宫格图', - 'i2i-grid': '图生图宫格', - image: '图像', - 't2i-grid': '文生图宫格', - workingFolder: '工作文件夹', - lang: '语言', - langChangeReload: '重新加载: 一些变化可能需要在重新加载后生效', - openOnTheRight: '在右边打开', - openInNewTab: '在新标签打开', - openWithWalkMode: '使用 Walk 模式打开', - longPressOpenContextMenu: '支持使用长按打开右键菜单', - searchResults: '搜索结果', - imgSearch: '图像搜索', - onlyFoldersAndImages: '只显示文件夹/图像/视频', - send2savedDir: '发送到保存的文件夹', - unknownSavedDir: '找不到保存的文件夹(配置文件中的outdir_save字段)', - Model: '模型', - Sampler: '采样器', - lora: 'LoRA', - size: '尺寸', - pos: '正面提示', - generateIndexHint: '生成索引用于搜索图像', - UpdateIndex: '更新索引', - needGenerateIdx: '你需要先点击按钮生成索引用于搜索图像\n这个过程可能需要消耗几分钟', - search: '搜索', - custom: '自定义', - add: '新增', - cancel: '取消', - submit: '提交', - existInOtherType: '已存在于其他类型', - alreadyExists: '已存在', - toggleTag: '切换标签选中 (收藏)', - addCompleted: '添加完成', - removeCompleted: '删除完成', - addedTagToImage: '已添加标签 "{tag}" 到本图片', - removedTagFromImage: '已从本图片上移除 "{tag}" 标签', - openContextMenu: '打开上下文菜单', - copyPrompt: '复制提示', - copyPositivePrompt: '复制正向提示', - refreshCompleted: '刷新完成', - 'walk-mode-move-message': '在walk模式下仅允许使用“快速移动”移动位置', - manualExitFullScreen: '你删除了最后一张图片,也许需要你手动退出全屏查看', - copied: '已复制!', - 'index.expired': '索引过期,正在自动更新', - 'auto.refreshed': '自动刷新完成!', - exactMatch: '完全匹配', - anyMatch: '匹配任意', - exclude: '排除掉', - selectExactMatchTag: '选择完全匹配的 Tag。 您可以输入部分字符进行搜索', - selectAnyMatchTag: '可选,选择匹配其中一个或多个的 Tag。 您可以输入部分字符进行搜索', - selectExcludeTag: '可选,选择需要排除掉的 Tag。 您可以输入部分字符进行搜索', - faq: '常见问题', - autoUpdate: '检测到发生改变自动更新', - 'fuzzy-search': '模糊搜索', - 'fuzzy-search-placeholder': '输入图像信息或者文件名的一部分来进行搜索', - 'fuzzy-search-noResults': '什么都没找到', - openWithLocalFileBrowser: '使用本地文件浏览器打开', - addToSearchScanPathAndQuickMove: '添加到搜索扫描路径', - removeFromSearchScanPathAndQuickMove: '从搜索扫描路径和快速移动中移除', - serverKeyRequired: '服务器配置了密匙,你必须提供相同的密匙才能继续使用', - shortcutKey: '快捷键(仅允许在全屏查看下使用)', - shortcutKeyDescription: '点击输入框按下你想使用的按键,支持与Shift和Ctrl进行组合', - fullscreenRestriction: '受技术限制,当前拓展不允许删除打开全屏查看时的首张图片。', - clear: '清除', - toggleTagSelection: '切换 "{tag}" 标签选中', - changlog: '更新日志', - accessControlModeTips: - '为确保数据安全,您当前正以访问控制模式运行,仅能访问授权文件夹。您可以通过编辑本拓展根目录的下.env文件来调整访问权限设置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以将.env.example文件复制并重命名为.env', - dontShowAgain: '不再显示', - defaultSortingMethod: '默认排序方法', - defaultViewMode: '默认查看模式', - showPreviewImage: '显示预览图', - copy: '复制', - edit: '编辑', - document: '文档', - multiSelectTips: '您可以按住 Shift、Ctrl 或 Cmd 键,然后单击文件来进行多选删除/移动操作', - copyLocationUrlSuccessMsg: '复制完成,你可以通过复制的链接直接打开当前文件夹', - share: '分享', - dragImageHere: '拖拽图像到这里', - imgCompare: '图像对比', - close: '关闭', - fullscreenview: '全屏查看', - fileName: '文件名', - resolution: '分辨率', - fileSize: '文件大小', - selectAll: '全选', - 'tauriLaunchConf.readSdWebuiConfigTitle': '读取Stable Diffusion Webui的配置', - 'tauriLaunchConf.readSdWebuiConfigDescription': - '如果你已经安装sd-webui,且在sd-webui内安装了本拓展,推荐直接使用这个,将直接读取配置并且数据共享', - 'tauriLaunchConf.selectSdWebuiFolder': '点击选择SD-webui的文件夹', - 'tauriLaunchConf.skipThisConfigTitle': '跳过本次配置', - 'tauriLaunchConf.skipThisConfigDescription': '所有功能仍将可用,你可以在设置页重置', - 'tauriLaunchConf.skipButton': '跳过', - 'tauriLaunchConfMessages.configNotFound': '找不到对应配置,检查选择的文件夹是否正确', - 'tauriLaunchConfMessages.folderNotFound': '找不到对应文件夹,检查选择的文件夹是否正确', - 'tauriLaunchConfMessages.configCompletedMessage': '配置完成,即将重启', - 'tauriLaunchConfMessages.firstTimeUserTitle': '看起来你好像是第一次使用, 需要进行一些配置', - inputTargetFolderPath: '输入目标文件夹的绝对路径', - pathDoesNotExist: '路径不存在', - confirmToAddToExtraPath: '确定添加?如果文件夹过大将会消耗过多时间建立索引。', - clientSpecificSettings: '客户端特有的设置', - initiateSoftwareStartupConfig: '初始化软件启动配置', - gridCellWidth: '网格单元宽度 (px)', - showChangeIndicators: '显示变更指示器', - seedAsChange: '将Seed也进行比较', - defaultShowChangeIndicators: '默认显示变更指示器', - defaultSeedAsChange: '默认将Seed也进行比较', - defaultGridCellWidth: '默认网格单元宽度 (px)', - thumbnailResolution: '缩略图分辨率 (px)', - livePreview: '实时预览', - other: '其他', - ImageBrowsingSettings: '图像浏览设置', - majorUpdateCustomCellSizeTips: '重大更新:你可以自定义网格图像的大小了,在全局设置页或者右上角的“更多”里面进行调整', - desktop: '桌面', - move: '移动', - inputFolderName: '输入文件夹名', - createFolder: '创建文件夹', - sendToThirdPartyExtension: '发送到第三方拓展', - lyco: 'LyCORIS', - batchDownloaDDragAndDropHint: - '使用拖拽或者右键菜单中的“发送到批量下载”将其他页面的图片添加到这里,支持多选', - zipDownload: '打包成zip下载', - archive: '归档', - batchDownload: '批量下载', - remove: '移除', - secretKeyRequiredWarnMsg: `为了安全考虑,你必须为本拓展单独配置Secret Key,具体参考本拓展根目录下的.env.example文件内的IIB_SECRET_KEY。 - 这项警告只会在配置了gradio-auth时出现`, - secretKeyMustBeConfigured: '必须配置Secret Key', - deleteOneOnlySkipConfirm: '删除单个文件时不进行确认', - resetOnGlobalSettingsPage: '你可以在全局设置页重置', - privacyAndSecurity: '安全与隐私', - dragToResizePanel: '按住并拖动来调整面板的大小', - clickToToggleMaximizeMinimize: '单击切换最大化/最小化', - dragToMovePanel: '按住并拖动来移动面板', - imageCompareTips: '拖拽文件时也会出现这个面板,可以不需要打开 “图像对比” 功能', - regexSearchEnabledHint: '(你也可以通过点击右侧的正则式图标来启用正则式搜索)', - confirmRebuildImageIndex: '确认重建图像索引?', - rebuildComplete: '重新构建完成', - rebuildImageIndex: '重新构建图像索引', - tagSearchNoResultsMessage: '看起来没匹配到任何结果,尝试通过重新构建索引来去掉无用的tag?' -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/zh-hant.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/zh-hant.ts deleted file mode 100644 index 75f56d05130faf6cd6aa931bc53092551bc3c8fd..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/i18n/zh-hant.ts +++ /dev/null @@ -1,305 +0,0 @@ -import type { IIBI18nMap } from '.' - -export const zhHant: Partial = { - tryMyLuck: '隨便看看', - randomImage: '隨機圖片', - // 换一批 - shuffle: '換一批', - pathOnly: '僅路徑', - disableMaximize: '禁用最大化', - takeEffectAfterReloadPage: '需要重新載入頁面才能生效', - compressFile: '對文件壓縮', - packOnlyNotDownload: '僅打包不下載', - notAllowSingleCtrlOrShiftAsShortcut: '不允許使用單獨的 Ctrl 或者 Shift 作為快速鍵', - conflictWithOtherShortcuts: '與其他快速鍵衝突', - pinnedSearchHistoryDesc: '你可以通過點擊置頂的搜索歷史來快速還原到之前的搜索狀態。', - addNewCustomTag: '添加新的自定義標籤', - clearCacheIfNotTakeEffect: '如果更改沒有生效,請嘗試清理頁面緩存', - success: '成功', - setCurrFrameAsVideoPoster: '設置當前幀為視頻封面', - sync: '同步', - syncDesc: '當你需要實現多設備或者多用戶之間的簡單設置隔離時你可以關閉這個選項, IIB的大部分設置將只會保存到當前瀏覽器上(跨域的情況下也是隔離),不會同步到服務器', - readonlyModeSettingPageDesc: '當前為只讀模式,你可以調整調整設置,但這些更改不會被保存', - syncHistoryToLocal: '同步歷史到本地', - showCommaInGenInfoPanel: '在生成信息面板中顯示逗號', - walkModeAutoRefreshDisabled: 'Walk模式下自動刷新已停用', - disable: '停用', - autoRefresh: '自動刷新', - autoRefreshNormalFixedMode: '啟用自動刷新 (Normal/Fixed模式)', - autoRefreshWalkMode: '啟用自動刷新 (Walk模式)', - autoRefreshWalkModePosLimit: 'Walk模式下觸發自動刷新的位置極限', - pollInterval: '輪詢間隔', - pollRefresh: '輪詢刷新', - stopPollRefresh: '停止輪詢刷新', - pollRefreshTip: '默認情況下你從其他TAB返回IIB時或者IIB的可見性發生改變時IIB都會自動刷新。這個功能是為了讓你一直呆在IIB內時他也能自動刷新,請慎重使用', - restoreLastWorkspaceStateSuccess: '成功恢復上次工作區狀態', - restoreWorkspaceSnapshotSuccess: '成功恢復工作區快照', - openOnAppStart: '啟動時打開', - confirmThisAction: '確認這個操作?', - WorkspaceSnapshotDesc: `使用工作區快照功能你可以保存當前工作區的狀態,以便下次打開IIB時快速恢復到當前狀態。 -你可以在全局設置頁面中指定啟動IIB時恢復到哪一個快照,或者恢復到最後關閉前的工作區狀態。`, - WorkspaceSnapshot: '工作區快照', - restoreLastWorkspaceState: '恢復上次工作區狀態', - restoreWorkspaceSnapshot: '恢復工作區快照: {0}', - saveWorkspaceSnapshot: '保存工作區快照', - save: '保存', - name: '名稱', - nameRequired: '名稱不能為空', - saveCompleted: '保存完成', - openThisAppInNewWindow: '在新窗口打開本應用', - readonly: '只讀', - accessLimited: '訪問受限', - selectFolder: '選擇文件夾', - openFileLocationInNewTab: '在新標籤頁打開文件位置', - copyTo: '複製到', - moveTo: '移動到', - moveSuccess: '移動成功', - copySuccess: '複製成功', - copyFilePath: '複製文件路徑', - - previewMaskBackgroundOpacity: '預覽遮罩背景透明度', - experimentalLRLayout: '實驗性並列布局', - width: '寬度', - alwaysOnTooltipInfo: '若關閉此項,信息面板將收起,直至滑鼠移動至屏幕右側時才打開', - alwaysOn: '常駐', - time: '時間', - pin: '置頂', - unpin: '取消置頂', - restore: '還原', - restoreFromHistory: '從歷史記錄中恢復', - history: '歷史記錄', - historyRecordsSubstr: '輸入值', - historyRecordsisRegex: '是否正則', - walkModeDoc: '無需翻頁即可瀏覽指定資料夾下的所有檔案,使用無限捲動的方式呈現。將會使用 DFS 的方式遍歷所有檔案. 注意:該模式下排序僅在同層之間進行', - normalModelDoc: '類似於 Windows 的檔案瀏覽器,擁有較高的靈活性. 但在訪問雲端儲存或者類似 SMB 這樣的地方時可能會出現異常', - fixedModeDoc: '類似 Normal 模式,但頁面初始速度更快,相容性更好,靈活性稍差。在 Normal 模式下出現了異常的話都可以改用這個試試', - type: '類型', - filterByKeyword: '輸入標籤關鍵詞過濾', - loadmore: '載入更多', - rename: '重命名', - inputAlias: '輸入別名', - addAliasCompleted: '添加別名完成', - alias: '別名', - showChangeIndicators: '顯示變更指示器', - seedAsChange: '將Seed也進行比較', - defaultShowChangeIndicators: '預設顯示變更指示器', - defaultSeedAsChange: '預設將Seed也進行比較', - exit: '退出', - 'select-all': '全選', - 'rerverse-select': '反選', - 'clear-all-selected': '清除所有選擇', - 'keep-multi-selected': '保留多選', - 'Source Identifier': '來源', - openWithDefaultApp: '使用預設應用程式開啟', - saveSelectedAsJson: '儲存選取的圖像資訊', - saveAllAsJson: '儲存所有圖像資訊', - saveLoadedImageAsJson: '儲存已載入的圖像資訊', - scrollDownToComparePrompt: '向下滾查看Prompt比較', - sourceText: '源文本', - structuredData: '結構化數據', - searchScope: '搜尋範圍', - specifiedSearchFolder: '指定搜尋的資料夾,使用逗號或換行分割多個', - batchAddTag: '批量添加Tag', - batchRemoveTag: '批量移除Tag', - errorOccurred: '發生了個錯誤', - useThumbnailPreview: '使用縮圖預覽', - gridThumbnailWidth: '網格縮圖寬度', - start: '開始', - tip: '提示', - sortByDateAscending: '修改日期昇序', - sortByDateDescending: '修改日期降序', - sortByCreatedDateAscending: '創建日期昇序', - sortByCreatedDateDescending: '創建日期降序', - sortByNameAscending: '名稱昇序', - sortByNameDescending: '名稱降序', - sortBySizeAscending: '大小昇序', - sortBySizeDescending: '大小降序', - inputAddressAndPressEnter: '輸入地址回車', - go: '前往', - unknownError: '未知錯誤', - loadingNextFolder: '即將載入下一個文件夾的文件', - moveFailedCheckPath: '移動失敗,檢查你的路徑輸入', - detailList: '詳情列表', - previewGrid: '預覽網格', - moveSelectedFilesTo: '下列文件 移動 / 複製 至', - confirm: '確定', - download: '下載', - local: '本地', - sendImageFailed: '發送圖像失敗,請攜帶console的錯誤訊息找開發者', - confirmDelete: '確認刪除?', - deleteSuccess: '刪除成功', - doubleClickToCopy: '雙擊複製', - promptcompare: 'Compare Prompts', - root: '根', - drive: '磁碟', - refresh: '重新整理', - quickMove: '快速移動', - more: '更多', - viewMode: '檢視模式', - sortingMethod: '排序方法', - copyPath: '複製路徑', - deleteSelected: '刪除', - previewInNewWindow: '在新窗口預覽', - copySourceFilePreviewLink: '複製源文件預覽連結', - viewGenerationInfo: '檢視生成信息(提示等)', - sendToTxt2img: '發送到文生圖', - sendToImg2img: '發送到圖生圖', - sendToInpaint: '發送到局部重繪', - sendToControlNet: '發送到ControlNet', - sendToBatchDownload: '發送到批量下載', - sendToExtraFeatures: '發送到附加功能', - loadNextPage: '載入下一頁', - localFile: '本地檔案', - globalSettings: '全域設定', - welcome: '歡迎', - openInNewWindow: '在新頁面打開', - restoreLastRecord: '還原上次記錄', - launch: '啟動', - walkMode: '使用 Walk 模式瀏覽圖片', - - launchFromNormalAndFixed: '使用 Normal / Fixed 模式瀏覽圖片', - recent: '最近', - emptyStartPage: '空啟動頁', - t2i: '文生圖', - i2i: '圖生圖', - saveButtonSavesTo: '儲存', - extra: '附加', - gridImage: '網格式圖', - 'i2i-grid': '圖生圖網格', - image: '圖片', - 't2i-grid': '文生圖網格', - workingFolder: '工作文件夾', - lang: '語言', - langChangeReload: '重新載入: 一些變化可能需要在重新載入後生效', - openOnTheRight: '在右邊打開', - openInNewTab: '在新分頁打開', - openWithWalkMode: '使用 Walk 模式打開', - longPressOpenContextMenu: '支持使用長按打開右鍵功能表', - searchResults: '搜尋結果', - imgSearch: '圖片搜尋', - onlyFoldersAndImages: '只顯示文件夾/圖片/視頻', - send2savedDir: '發送到儲存的文件夾', - unknownSavedDir: '找不到儲存的文件夾(配置文件中的outdir_save欄位)', - Model: '模型', - Sampler: '採樣器', - lora: 'LoRA', - size: '尺寸', - pos: '正面提示', - generateIndexHint: '生成索引用於搜尋圖片', - UpdateIndex: '更新索引', - needGenerateIdx: '你需要先點擊按鈕生成索引用於搜尋圖片\n這個過程可能需要消耗幾分鐘', - search: '搜尋', - custom: '自定義', - add: '新增', - cancel: '取消', - submit: '提交', - existInOtherType: '已存在於其他類型', - alreadyExists: '已存在', - toggleTag: '切換標籤選中 (收藏)', - addCompleted: '新增完成', - removeCompleted: '移除完成', - addedTagToImage: '已添加標籤 "{tag}" 到本圖片', - removedTagFromImage: '已從本圖片上移除 "{tag}" 標籤', - openContextMenu: '打開上下文功能表', - copyPrompt: '複製提示', - copyPositivePrompt: '複製正向提示', - refreshCompleted: '重新整理完成', - 'walk-mode-move-message': '在walk模式下僅允許使用“快速移動”移動位置', - manualExitFullScreen: '你刪除了最後一張圖片,也許需要你手動退出全螢幕檢視', - copied: '已複製!', - 'index.expired': '索引過期,正在自動更新', - 'auto.refreshed': '自動重新整理完成!', - exactMatch: '完全匹配', - anyMatch: '匹配任意', - exclude: '排除掉', - selectExactMatchTag: '選擇完全匹配的 Tag。 您可以輸入部分字符進行搜索', - selectAnyMatchTag: '可選,選擇匹配其中一個或多個的 Tag。 您可以輸入部分字符進行搜索', - selectExcludeTag: '可選,選擇需要排除掉的 Tag。 您可以輸入部分字符進行搜索', - faq: '常見問題', - autoUpdate: '檢測到發生改變自動更新', - 'fuzzy-search': '模糊搜尋', - 'fuzzy-search-placeholder': '輸入圖片信息或者文件名的一部分來進行搜尋', - 'fuzzy-search-noResults': '什麼都沒找到', - openWithLocalFileBrowser: '使用本地檔案瀏覽器打開', - addToSearchScanPathAndQuickMove: '加入搜尋掃描路徑', - removeFromSearchScanPathAndQuickMove: '從搜尋掃描路徑和快速移動中移除', - serverKeyRequired: '伺服器配置了密鑰,你必须提供相同的密鑰才能繼續使用', - shortcutKey: '快速鍵(僅允許在全螢幕檢視下使用)', - shortcutKeyDescription: '點擊輸入框按下你想使用的按鍵,支持與Shift和Ctrl進行組合', - fullscreenRestriction: '受技術限制,目前拓展不允許刪除打開全螢幕檢視時的首張圖片。', - clear: '清除', - toggleTagSelection: '切換 "{tag}" 標籤選中', - changlog: '更新紀錄', - accessControlModeTips: - '為確保數據安全,您目前正以訪問控制模式運行,僅能訪問授權文件夾。您可以通過編輯本拓展根目錄的下.env文件來調整訪問權限設置 (IIB_ACCESS_CONTROL) .如果不存在.env文件, 你可以將.env.example文件複製並重命名為.env', - dontShowAgain: '不再顯示', - defaultSortingMethod: '默認排序方法', - defaultViewMode: '默認檢視模式', - showPreviewImage: '顯示預覽圖', - copy: '複製', - edit: '編輯', - document: '文件', - multiSelectTips: '您可以按住Shift、Ctrl或 Cmd鍵,然後單擊文件來進行多選刪除/移動操作', - copyLocationUrlSuccessMsg: '複製完成,你可以通過複製的url直接打開目前文件夾', - share: '分享', - dragImageHere: '拖拽圖片到這裡', - imgCompare: '圖片對比', - close: '關閉', - fullscreenview: '全屏查看', - fileName: '文件名稱', - resolution: '解析度', - fileSize: '文件大小', - selectAll: '全選', - 'tauriLaunchConf.readSdWebuiConfigTitle': '讀取Stable Diffusion Webui的配置', - 'tauriLaunchConf.readSdWebuiConfigDescription': - '如果你已經安裝sd-webui,且在sd-webui內安裝了本拓展,推薦直接使用這個,將直接讀取配置並且數據共享', - 'tauriLaunchConf.selectSdWebuiFolder': '點擊選擇SD-webui的文件夾', - 'tauriLaunchConf.skipThisConfigTitle': '跳過本次配置', - 'tauriLaunchConf.skipThisConfigDescription': '所有功能仍將可用,你可以在設置頁重置', - 'tauriLaunchConf.skipButton': '跳過', - 'tauriLaunchConfMessages.configNotFound': '找不到對應配置,檢查選擇的文件夾是否正確', - 'tauriLaunchConfMessages.folderNotFound': '找不到對應文件夾,檢查選擇的文件夾是否正確', - 'tauriLaunchConfMessages.configCompletedMessage': '配置完成,即將重啟', - 'tauriLaunchConfMessages.firstTimeUserTitle': '看起來你好像是第一次使用,需要進行一些配置', - inputTargetFolderPath: '輸入目標文件夾的絕對路徑', - pathDoesNotExist: '路徑不存在', - confirmToAddToExtraPath: '確定添加?如果文件夾過大將會消耗過多時間建立索引。', - clientSpecificSettings: '客戶端特有的設置', - initiateSoftwareStartupConfig: '初始化軟件啟動配置', - gridCellWidth: '網格單元寬度 (px)', - defaultGridCellWidth: '默認網格單元寬度 (px)', - thumbnailResolution: '縮圖解析度 (px)', - livePreview: '實時預覽', - other: '其他', - - ImageBrowsingSettings: '圖片瀏覽設置', - majorUpdateCustomCellSizeTips: - '重大更新:你可以自定義網格圖像的大小了,在全域設置頁或者右上角的“更多”裡面進行調整', - desktop: '桌面', - move: '移動', - inputFolderName: '輸入文件夾名稱', - createFolder: '新增文件夾', - sendToThirdPartyExtension: '發送到第三方拓展', - lyco: 'LyCORIS', - batchDownloaDDragAndDropHint: - '使用拖拽或者右鍵功能表中的“發送到批量下載”將其他頁面的圖片添加到這裡,支持多選', - zipDownload: '打包成zip下載', - archive: '歸檔', - batchDownload: '批量下載', - remove: '移除', - secretKeyRequiredWarnMsg: - '為了安全考慮,你必須為本拓展單獨配置Secret Key,具體參考本拓展根目錄下的.env.example文件內的IIB_SECRET_KEY。 這項警告只會在配置了gradio-auth時出現', - secretKeyMustBeConfigured: '必須配置Secret Key', - deleteOneOnlySkipConfirm: '刪除單個文件時不進行確認', - resetOnGlobalSettingsPage: '你可以在全域設置頁重置', - privacyAndSecurity: '安全與隱私', - dragToResizePanel: '按住並拖動來調整面板的大小', - clickToToggleMaximizeMinimize: '單擊切換最大化/最小化', - dragToMovePanel: '按住並拖動來移動面板', - imageCompareTips: '拖拽文件時也會出現這個面板,可以不需要打開 “圖片對比” 功能', - regexSearchEnabledHint: '(你也可以通過點擊右側的正則式圖標來啟用正則式搜索)', - confirmRebuildImageIndex: '確認重建圖像索引?', - rebuildImageIndex: '重新構建圖像索引', - rebuildComplete: '重新構建完成', - tagSearchNoResultsMessage: '看起來沒有匹配到任何結果,嘗試通過重新構建索引來去除無用的標籤?' -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/icon/fullscreen.svg b/extensions/sd-webui-infinite-image-browsing/vue/src/icon/fullscreen.svg deleted file mode 100644 index c8120a42ebc166048f6f57812ebd40e882dc5ae0..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/icon/fullscreen.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/icon/index.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/icon/index.ts deleted file mode 100644 index 1fc2a9c37a5b588515fe87d538e4c04f6275360e..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/icon/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from '@ant-design/icons-vue' -import regex from './regex.svg' -import play from './play.svg' -import fullscreen from './fullscreen.svg' - -export { - regex, - play, - fullscreen -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/icon/play.svg b/extensions/sd-webui-infinite-image-browsing/vue/src/icon/play.svg deleted file mode 100644 index fc435ac4fd852f46f5bca73e6748cebdafcbb0a1..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/icon/play.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/icon/regex.svg b/extensions/sd-webui-infinite-image-browsing/vue/src/icon/regex.svg deleted file mode 100644 index bbc569e3f3a19e78c7c6f60a90867cd755bcf4ba..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/icon/regex.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/index.scss b/extensions/sd-webui-infinite-image-browsing/vue/src/index.scss deleted file mode 100644 index 8cf80d72df27acc3b07830ce42af5c0e6086b5aa..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/index.scss +++ /dev/null @@ -1,253 +0,0 @@ -$primary-color: #d03f0a; -$danger-color: #fa114f; -$info-color: #17a2b8; -$success-color: #28a745; -:root { - // ganymede的 - --grey-13: #000000; - --grey-12: #141414; - --grey-11: #1f1f1f; - --grey-10: #262626; - --grey-9: #434343; - --grey-8: #595959; - --grey-7: #8c8c8c; - --grey-6: #bfbfbf; - --grey-5: #d9d9d9; - --grey-4: #f0f0f0; - --grey-3: #f5f5f5; - --grey-2: #fafafa; - --grey-1: #fff; - --primary-color: #{$primary-color}; - --danger-color: #{$danger-color}; - --info-color: #{$info-color}; - --success-color: #{$success-color}; - // css变量尝试了没办法直接for - --primary-color-1: #{$primary-color}11; - --primary-color-2: #{$primary-color}22; - --primary-color-3: #{$primary-color}33; - --primary-color-4: #{$primary-color}44; - --primary-color-5: #{$primary-color}55; - --primary-color-6: #{$primary-color}66; - --primary-color-7: #{$primary-color}77; - --primary-color-8: #{$primary-color}88; - --primary-color-9: #{$primary-color}99; - --primary-color-a: #{$primary-color}aa; - --primary-color-b: #{$primary-color}bb; - --primary-color-c: #{$primary-color}cc; - --primary-color-d: #{$primary-color}dd; - --primary-color-e: #{$primary-color}ee; - --primary-color-f: #{$primary-color}ff; - --light-border-color: var(--grey-5); - --main-text-color: var(--grey-11); - --main-bg-color: var(--grey-3); - --zp-black: #222222; - --zp-grey96: #2b2b2b; - --zp-grey90: #383838; - --zp-grey80: #4e4e4e; - --zp-grey70: #646464; - --zp-grey60: #7a7a7a; - --zp-grey50: #909090; - --zp-grey40: #a7a7a7; - --zp-grey30: #bdbdbd; - --zp-grey20: #d3d3d3; - --zp-grey10: #e9e9e9; - --zp-grey7: #f0f0f0; - --zp-grey4: #f6f6f6; - --zp-white: #ffffff; - --zp-primary: var(--zp-black); - --zp-secondary: var(--zp-grey50); - --zp-tertiary: var(--zp-grey30); - --zp-primary-background: var(--zp-white); - --zp-secondary-background: var(--zp-grey4); - --zp-tertiary-background: var(--zp-white); - --zp-secondary-variant-background: var(--zp-grey7); - --zp-luminous-blue:#0069ff; - --zp-luminous-blue-deep:#0069ff3d; - --zp-luminous-green:#29f56d; - --zp-luminous-green-deep:#28f5213d; - --zp-luminous: var(--zp-luminous-blue); - --zp-luminous-deep: var(--zp-luminous-blue-deep); - --zp-brand-primary: var(--primary-color); - // 边框颜色 - --zp-border: var(--zp-grey20); - --zp-icon-bg: #0004; - @media (prefers-color-scheme: dark) { - .body:not(.dark) { - --zp-primary: var(--zp-grey20); - --zp-secondary: var(--zp-grey60); - --zp-tertiary: var(--zp-grey70); - --zp-primary-background: var(--zp-black); - --zp-secondary-background: var(--zp-grey96); - --zp-secondary-variant-background: var(--zp-grey90); - --zp-tertiary-background: var(--zp-grey4); - --zp-border: var(--zp-grey96); - --zp-icon-bg: #fff4; - --zp-luminous: var(--zp-luminous-green); - --zp-luminous-deep: var(--zp-luminous-green-deep); - --zp-brand-primary: #1890ff; - } - } - body.dark { - --zp-primary: var(--zp-grey20); - --zp-secondary: var(--zp-grey60); - --zp-tertiary: var(--zp-grey70); - --zp-primary-background: var(--zp-black); - --zp-secondary-background: var(--zp-grey96); - --zp-secondary-variant-background: var(--zp-grey90); - --zp-tertiary-background: var(--zp-grey4); - --zp-border: var(--zp-grey96); - --zp-icon-bg: #fff4; - - --zp-luminous: var(--zp-luminous-green); - --zp-luminous-deep: var(--zp-luminous-green-deep); - - --zp-brand-primary: #1890ff; - } -} - -.flex-placeholder, -[flex-placeholder] { - flex: 1; -} - -html { - position: relative; - display: inline-block; - width: 100%; - --scroll-container-max-height: 100vh; -} - -body { - position: absolute; - width: 100%; - ::-webkit-scrollbar { - width: 10px; // 滚动条宽度 - background-color: var(--zp-secondary-variant-background); // 滚动条背景颜色 - } - - ::-webkit-scrollbar-thumb { - background-color: var(--zp-secondary); // 滚动条拖动块颜色 - border-radius: 5px; // 滚动条拖动块圆角 - } - - ::-webkit-scrollbar-thumb:hover { - background-color: #1453ad; // 滚动条拖动块悬停颜色 - } - - ::-webkit-scrollbar-track { - background-color: var(--zp-secondary-variant-background); // 滚动条轨道颜色 - } - - ::-webkit-scrollbar-track:hover { - background-color: var(--zp-secondary-background); // 滚动条轨道悬停颜色 - } - background: var(--zp-primary-background); - color: var(--zp-primary); - .ant-tabs > div.ant-tabs-nav { - margin: 0; - } - .ant-modal-wrap,.ant-message, .ant-tooltip { - z-index: 10000; - } - - .hidden-antd-btns-modal .ant-modal-confirm-btns { - display: none; - } -} - -@mixin line-clamp($n: 1) { - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: $n; - overflow: hidden; -} -.line-clamp-1 { - @include line-clamp(1); -} -.line-clamp-2 { - @include line-clamp(2); -} -.line-clamp-3 { - @include line-clamp(3); -} - -.actions { - & > * { - margin-right: 8px; - } -} - -.tips { - background: var(--zp-secondary-background); - padding: 8px; - border-left: 4px solid var(--primary-color); -} - -ul.ant-dropdown-menu { - max-height:80vh; - overflow: auto; -} - -.ant-tabs-tab-active { - &::after { - content: ''; - position: absolute; - left: 0; - right: 0; - bottom: 0; - height: 2px; - background: var(--zp-brand-primary); - } -} - -.fullscreen-lr-layout -.ant-image-preview-root { - .ant-image-preview-mask, .ant-image-preview-wrap { - right: var(--iib-lr-layout-container-offset); - } -} - - -.ant-image-preview-root { - .ant-image-preview-mask { - background-color: var(--iib-preview-mask-bg, rgba(0, 0, 0, 0.6)); - } -} - -.preview-switch { - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: var(--iib-lr-layout-container-offset, 0); - display: flex; - align-items: center; - justify-content: space-between; - z-index: 11111; - pointer-events: none; - - &>* { - color: white; - margin: 16px; - font-size: 4em; - pointer-events: all; - cursor: pointer; - - &.disable { - opacity: 0; - pointer-events: none; - cursor: none; - } - } -} - -.uni-desc { - border-left: 2px solid var(--primary-color); - background: var(--zp-primary-background); - padding: 8px; - white-space: pre-wrap; - color: var(--zp-secondary); - &.primary-bg { - background: var(--primary-color-1); - } -} diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/main.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/main.ts deleted file mode 100644 index aa1833a33b453dfc17adb6a6b782b9f9d0ed85f8..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/main.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { createApp } from 'vue' -import type {} from 'antd-vue-volar' -// @ts-ignore -import App from './App.vue' -import 'ant-design-vue/es/message/style' -import 'ant-design-vue/es/notification/style' -import 'ant-design-vue/es/modal/style' -import './index.scss' -import { createPinia } from 'pinia' -import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' -import { i18n } from './i18n' -import VueDiff from 'vue-diff' - -import 'vue-diff/dist/index.css'; - -const pinia = createPinia() -pinia.use(piniaPluginPersistedstate) -createApp(App) - .use(pinia) - .use(i18n) - .use(VueDiff, { - componentName: 'VueDiff', - }) - .mount('#zanllp_dev_gradio_fe') - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/DraggingPort.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/DraggingPort.vue deleted file mode 100644 index 2357f2794cbee743f3e4200b3fd6a4ab604d4d22..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/DraggingPort.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliComparePane.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliComparePane.vue deleted file mode 100644 index 3d5879f8ff50ef47ec89a1fd5799575a61339de4..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliComparePane.vue +++ /dev/null @@ -1,102 +0,0 @@ - - - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliDrawer.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliDrawer.vue deleted file mode 100644 index 8f2cd7f54657cfd608f1370897b91f63f9af4627..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliDrawer.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliPagePane.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliPagePane.vue deleted file mode 100644 index 2d8915f5a230b300f392747aa667ab23ca0017aa..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliPagePane.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliSide.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliSide.vue deleted file mode 100644 index e6a6d6a09facea23ca4e9cf2b901b56c3642c73e..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/ImgSliSide.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/PromptCompare.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/PromptCompare.vue deleted file mode 100644 index d2c73b77f45d5e4fe09f51c266079d7b721fede6..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/ImgSli/PromptCompare.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/SplitViewTab.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/SplitViewTab.vue deleted file mode 100644 index b161fd779b9d90afee5b22428a36336b577560a7..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/SplitViewTab.vue +++ /dev/null @@ -1,136 +0,0 @@ - - - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/actionContextMenu.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/actionContextMenu.vue deleted file mode 100644 index 9d7aea99b900a4ddddf983c3b76cc5785c98f928..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/actionContextMenu.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/edgeTrigger.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/edgeTrigger.vue deleted file mode 100644 index c6e60d91ed3a39032997c16878dfdb33ea4a79f2..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/edgeTrigger.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/emptyStartup.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/emptyStartup.vue deleted file mode 100644 index 996903a1f3c1f5b2942258e160acf33a83aee94a..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/emptyStartup.vue +++ /dev/null @@ -1,469 +0,0 @@ - - - - diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/extraPathControlFunc.ts b/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/extraPathControlFunc.ts deleted file mode 100644 index 5dd0cc0cbf413732b5c41da8a15255eadb361f1c..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/SplitViewTab/extraPathControlFunc.ts +++ /dev/null @@ -1,127 +0,0 @@ - -import { ExtraPathType, addExtraPath, aliasExtraPath, removeExtraPath } from '@/api/db' -import { globalEvents } from '@/util' -import { Input, Modal, RadioButton, RadioGroup, message, Button } from 'ant-design-vue' -import { open } from '@tauri-apps/api/dialog' -import { checkPathExists } from '@/api' -import { h, ref } from 'vue' -import { t } from '@/i18n' -import { useGlobalStore } from '@/store/useGlobalStore' -import { isTauri } from '@/util/env' - - - -export const addToExtraPath = async (initType: ExtraPathType, initPath?: string) => { - const g = useGlobalStore() - const path = ref(initPath ?? '') - - const type = ref(initType) - const openToSelectPath = async () => { - const ret = await open({ directory: true, defaultPath: initPath }) - if (typeof ret === 'string') { - path.value = ret - } else { - return - } - } - path.value = await new Promise((resolve) => { - Modal.confirm({ - title: t('inputTargetFolderPath'), - width: '800px', - content: () => { - return h('div', [ - g.conf?.enable_access_control ? h('a', { - style: { - 'word-break': 'break-all', - 'margin-bottom': '4px', - display: 'block' - }, - target: '_blank', - href: 'https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/518' - }, 'Please open this link first (Access Control mode only)') : '', - isTauri ? h(Button, { onClick: openToSelectPath, style: { margin: '4px 0' } } , t('selectFolder') ): '', - h(Input, { - value: path.value, - 'onUpdate:value': (v: string) => (path.value = v) - }), - h('div', [ - h('span', t('type')+': '), - h(RadioGroup, { - value: type.value, - 'onUpdate:value': (v: ExtraPathType) => (type.value = v), - buttonStyle: 'solid', - style: { margin: '16px 0 32px' } - }, [ - h(RadioButton, { value: 'walk' }, 'Walk'), - h(RadioButton, { value: 'scanned' }, 'Normal'), - h(RadioButton, { value: 'scanned-fixed' }, 'Fixed') - ]) - ]), - h('p', 'Walk: '+ t('walkModeDoc')), - h('p', 'Normal: '+ t('normalModelDoc')), - h('p', 'Fixed: '+ t('fixedModeDoc')) - ]) - }, - async onOk () { - if (!path.value) { - message.error(t('pathIsEmpty')) - throw new Error('pathIsEmpty') - } - const res = await checkPathExists([path.value]) - if (res[path.value]) { - resolve(path.value) - } else { - message.error(t('pathDoesNotExist')) - } - } - }) - }) - Modal.confirm({ - content: t('confirmToAddToExtraPath'), - async onOk () { - await addExtraPath({ types: [type.value], path: path.value }) - message.success(t('addCompleted')) - globalEvents.emit('searchIndexExpired') - globalEvents.emit('updateGlobalSetting') - } - }) -} - -export const onRemoveExtraPathClick = (path: string, type: ExtraPathType) => { - Modal.confirm({ - content: t('confirmDelete'), - closable: true, - async onOk () { - await removeExtraPath({ types: [type], path }) - message.success(t('removeCompleted')) - globalEvents.emit('searchIndexExpired') - globalEvents.emit('updateGlobalSetting') - } - }) -} - -export const onAliasExtraPathClick = (path: string) => { - const alias = ref('') - Modal.confirm({ - title: t('inputAlias'), - content: () => { - return h('div', [ - h('div', { - style: { - 'word-break': 'break-all', - 'margin-bottom': '4px' - } - }, 'Path: ' + path), - h(Input, { - value: alias.value, - 'onUpdate:value': (v: string) => (alias.value = v) - })] - ) - }, - async onOk () { - await aliasExtraPath({ alias: alias.value, path }) - message.success(t('addAliasCompleted')) - globalEvents.emit('updateGlobalSetting') - } - }) -} \ No newline at end of file diff --git a/extensions/sd-webui-infinite-image-browsing/vue/src/page/TagSearch/MatchedImageGrid.vue b/extensions/sd-webui-infinite-image-browsing/vue/src/page/TagSearch/MatchedImageGrid.vue deleted file mode 100644 index 1b4b8895d4d27854847b8079823629a77dd9a0ce..0000000000000000000000000000000000000000 --- a/extensions/sd-webui-infinite-image-browsing/vue/src/page/TagSearch/MatchedImageGrid.vue +++ /dev/null @@ -1,208 +0,0 @@ - -