From 1e6392dca35cfccda428054b2d3ec4e454288aa5 Mon Sep 17 00:00:00 2001 From: sothx <i@sothx.com> Date: Wed, 8 Jan 2025 02:30:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E4=BC=A0=E9=80=81?= =?UTF-8?q?=E9=97=A8=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/module.config.json | 4 +- docs/changelog.md | 10 +- docs/release/V8/changelog.md | 10 +- docs/release/V8/fold.json | 6 +- docs/release/V8/pad-ext.json | 6 +- docs/release/V8/pad-general-tiramisu.json | 6 +- .../V8/pad-general-upsideDownCake.json | 6 +- .../V8/pad-hyperos-based-on-tiramisu.json | 6 +- .../pad-hyperos1-based-on-upsideDownCake.json | 6 +- docs/release/V8/pad-magicWindow.json | 6 +- .../V8/pad-miui-based-on-tiramisu.json | 6 +- docs/release/V8/pad.json | 6 +- docs/release/V8/phone.json | 6 +- docs/release/V9/changelog.md | 10 +- docs/release/V9/fold.json | 6 +- docs/release/V9/pad-ext.json | 6 +- docs/release/V9/pad-general-tiramisu.json | 6 +- .../V9/pad-general-upsideDownCake.json | 6 +- .../V9/pad-hyperos-based-on-tiramisu.json | 6 +- .../pad-hyperos1-based-on-upsideDownCake.json | 6 +- docs/release/V9/pad-magicWindow.json | 6 +- .../V9/pad-miui-based-on-tiramisu.json | 6 +- docs/release/V9/pad.json | 6 +- docs/release/V9/phone.json | 6 +- ...Store-C2FGZ_d1.js => AppStore-BU3sN5yK.js} | 2 +- ...Z5m2bS.js => DotBlackListView-Drcw_pKr.js} | 2 +- ...qK3I8Ls.js => EmbeddedWebView-CMkPuHFE.js} | 2 +- ...er-CrLPfjMF.js => GameBooster-CffxOwov.js} | 2 +- ...VUS_Z7q.js => GameTurboConfig-DXP5o1B3.js} | 2 +- ...HD1Eoqi.js => HappyNewYearEgg-DMVRILz4.js} | 2 +- ...ogView-DRJfJdVP.js => LogView-BZmNKDND.js} | 2 +- ...View-DRVZ6Ed-.js => ToolsView-HnojCS-C.js} | 2 +- module_src/webroot/assets/index-B38pBnVb.js | 4202 +++++++++++++++++ module_src/webroot/assets/index-BmNUNV6O.js | 4202 ----------------- .../icons/miui_content_extension_app.webp | Bin 0 -> 14890 bytes module_src/webroot/index.html | 2 +- 36 files changed, 4285 insertions(+), 4291 deletions(-) rename module_src/webroot/assets/{AppStore-C2FGZ_d1.js => AppStore-BU3sN5yK.js} (99%) rename module_src/webroot/assets/{DotBlackListView-D4Z5m2bS.js => DotBlackListView-Drcw_pKr.js} (99%) rename module_src/webroot/assets/{EmbeddedWebView-DqK3I8Ls.js => EmbeddedWebView-CMkPuHFE.js} (93%) rename module_src/webroot/assets/{GameBooster-CrLPfjMF.js => GameBooster-CffxOwov.js} (99%) rename module_src/webroot/assets/{GameTurboConfig-DVUS_Z7q.js => GameTurboConfig-DXP5o1B3.js} (96%) rename module_src/webroot/assets/{HappyNewYearEgg-DHD1Eoqi.js => HappyNewYearEgg-DMVRILz4.js} (97%) rename module_src/webroot/assets/{LogView-DRJfJdVP.js => LogView-BZmNKDND.js} (99%) rename module_src/webroot/assets/{ToolsView-DRVZ6Ed-.js => ToolsView-HnojCS-C.js} (95%) create mode 100644 module_src/webroot/assets/index-B38pBnVb.js delete mode 100644 module_src/webroot/assets/index-BmNUNV6O.js create mode 100644 module_src/webroot/images/icons/miui_content_extension_app.webp diff --git a/config/module.config.json b/config/module.config.json index fc50036a..a02a4c77 100644 --- a/config/module.config.json +++ b/config/module.config.json @@ -1,8 +1,8 @@ { "id": "MIUI_MagicWindow+", "name": "HyperOS For Pad(Fold) 完美横屏应用计划", - "version": "2.06.06", - "versionCode": "206006", + "version": "2.06.07", + "versionCode": "206007", "author": "做梦书、柚稚的孩纸 等(原作者:御坂初琴)", "description": "适用于HyperOS For Pad/Fold,用于扩展信箱模式、平行视界和应用布局优化的支持范围并优化适配体验,支持[自定义规则]扩充或覆盖部分应用适配。当前刷入的是[小米(红米)平板通用版]。遇到问题先看[问题合集],反馈问题请提交[应用名]、[系统版本]、[模块版本]、[不适配的现象]。(反馈应用适配问题可前往酷安私信 @做梦书 或者GitHub:https://github.com/sothx/mipad-magic-window,如需卸载模块请移除模块后重启平板)", "updateJson": "https://hyper-magic-window-module-update.sothx.com/release/" diff --git a/docs/changelog.md b/docs/changelog.md index 1a9f653c..7fcd3efe 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,15 +6,13 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增 SimpleHook 的强制横屏 - [Web UI] -- 修复并完善部分描述文本 +- 移除 [侧边栏-传送门] + +- 新增 [模块设置-传送门] -- 新增折叠屏设备的算力共享入口,可以将算力共享给同设备的小米平板 +- 新增 [传送门-传送门异常修复],可以修复被错误添加到[游戏工具箱]内的传送门 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 diff --git a/docs/release/V8/changelog.md b/docs/release/V8/changelog.md index 1a9f653c..7fcd3efe 100644 --- a/docs/release/V8/changelog.md +++ b/docs/release/V8/changelog.md @@ -6,15 +6,13 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增 SimpleHook 的强制横屏 - [Web UI] -- 修复并完善部分描述文本 +- 移除 [侧边栏-传送门] + +- 新增 [模块设置-传送门] -- 新增折叠屏设备的算力共享入口,可以将算力共享给同设备的小米平板 +- 新增 [传送门-传送门异常修复],可以修复被错误添加到[游戏工具箱]内的传送门 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 diff --git a/docs/release/V8/fold.json b/docs/release/V8/fold.json index f52c4aba..091e2d12 100644 --- a/docs/release/V8/fold.json +++ b/docs/release/V8/fold.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/fold-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/fold-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-ext.json b/docs/release/V8/pad-ext.json index fd82586f..e6b0b0cd 100644 --- a/docs/release/V8/pad-ext.json +++ b/docs/release/V8/pad-ext.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-ext-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-ext-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-general-tiramisu.json b/docs/release/V8/pad-general-tiramisu.json index 3fe42237..a77144d4 100644 --- a/docs/release/V8/pad-general-tiramisu.json +++ b/docs/release/V8/pad-general-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-general-tiramisu-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-general-tiramisu-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-general-upsideDownCake.json b/docs/release/V8/pad-general-upsideDownCake.json index 6b9451c4..e293fcb1 100644 --- a/docs/release/V8/pad-general-upsideDownCake.json +++ b/docs/release/V8/pad-general-upsideDownCake.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-general-upsideDownCake-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-general-upsideDownCake-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-hyperos-based-on-tiramisu.json b/docs/release/V8/pad-hyperos-based-on-tiramisu.json index b90b9fe7..5b6a278c 100644 --- a/docs/release/V8/pad-hyperos-based-on-tiramisu.json +++ b/docs/release/V8/pad-hyperos-based-on-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-hyperos-based-on-tiramisu-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-hyperos-based-on-tiramisu-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-hyperos1-based-on-upsideDownCake.json b/docs/release/V8/pad-hyperos1-based-on-upsideDownCake.json index ea21947a..dbde6ed3 100644 --- a/docs/release/V8/pad-hyperos1-based-on-upsideDownCake.json +++ b/docs/release/V8/pad-hyperos1-based-on-upsideDownCake.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-hyperos1-based-on-upsideDownCake-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-hyperos1-based-on-upsideDownCake-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-magicWindow.json b/docs/release/V8/pad-magicWindow.json index d4dd4d9f..4aacbe9b 100644 --- a/docs/release/V8/pad-magicWindow.json +++ b/docs/release/V8/pad-magicWindow.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-magicWindow-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-magicWindow-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad-miui-based-on-tiramisu.json b/docs/release/V8/pad-miui-based-on-tiramisu.json index 66c067c9..076d7dcd 100644 --- a/docs/release/V8/pad-miui-based-on-tiramisu.json +++ b/docs/release/V8/pad-miui-based-on-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-miui-based-on-tiramisu-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-miui-based-on-tiramisu-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/pad.json b/docs/release/V8/pad.json index 2b895b78..d9ba6ed7 100644 --- a/docs/release/V8/pad.json +++ b/docs/release/V8/pad.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V8/phone.json b/docs/release/V8/phone.json index 3015c6bf..b4a37902 100644 --- a/docs/release/V8/phone.json +++ b/docs/release/V8/phone.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/phone-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/phone-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/changelog.md b/docs/release/V9/changelog.md index 1a9f653c..7fcd3efe 100644 --- a/docs/release/V9/changelog.md +++ b/docs/release/V9/changelog.md @@ -6,15 +6,13 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增 SimpleHook 的强制横屏 - [Web UI] -- 修复并完善部分描述文本 +- 移除 [侧边栏-传送门] + +- 新增 [模块设置-传送门] -- 新增折叠屏设备的算力共享入口,可以将算力共享给同设备的小米平板 +- 新增 [传送门-传送门异常修复],可以修复被错误添加到[游戏工具箱]内的传送门 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 diff --git a/docs/release/V9/fold.json b/docs/release/V9/fold.json index f52c4aba..091e2d12 100644 --- a/docs/release/V9/fold.json +++ b/docs/release/V9/fold.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/fold-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/fold-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-ext.json b/docs/release/V9/pad-ext.json index fd82586f..e6b0b0cd 100644 --- a/docs/release/V9/pad-ext.json +++ b/docs/release/V9/pad-ext.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-ext-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-ext-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-general-tiramisu.json b/docs/release/V9/pad-general-tiramisu.json index 3fe42237..a77144d4 100644 --- a/docs/release/V9/pad-general-tiramisu.json +++ b/docs/release/V9/pad-general-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-general-tiramisu-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-general-tiramisu-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-general-upsideDownCake.json b/docs/release/V9/pad-general-upsideDownCake.json index 6b9451c4..e293fcb1 100644 --- a/docs/release/V9/pad-general-upsideDownCake.json +++ b/docs/release/V9/pad-general-upsideDownCake.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-general-upsideDownCake-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-general-upsideDownCake-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-hyperos-based-on-tiramisu.json b/docs/release/V9/pad-hyperos-based-on-tiramisu.json index b90b9fe7..5b6a278c 100644 --- a/docs/release/V9/pad-hyperos-based-on-tiramisu.json +++ b/docs/release/V9/pad-hyperos-based-on-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-hyperos-based-on-tiramisu-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-hyperos-based-on-tiramisu-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-hyperos1-based-on-upsideDownCake.json b/docs/release/V9/pad-hyperos1-based-on-upsideDownCake.json index ea21947a..dbde6ed3 100644 --- a/docs/release/V9/pad-hyperos1-based-on-upsideDownCake.json +++ b/docs/release/V9/pad-hyperos1-based-on-upsideDownCake.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-hyperos1-based-on-upsideDownCake-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-hyperos1-based-on-upsideDownCake-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-magicWindow.json b/docs/release/V9/pad-magicWindow.json index d4dd4d9f..4aacbe9b 100644 --- a/docs/release/V9/pad-magicWindow.json +++ b/docs/release/V9/pad-magicWindow.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-magicWindow-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-magicWindow-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad-miui-based-on-tiramisu.json b/docs/release/V9/pad-miui-based-on-tiramisu.json index 66c067c9..076d7dcd 100644 --- a/docs/release/V9/pad-miui-based-on-tiramisu.json +++ b/docs/release/V9/pad-miui-based-on-tiramisu.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-miui-based-on-tiramisu-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-miui-based-on-tiramisu-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/pad.json b/docs/release/V9/pad.json index 2b895b78..d9ba6ed7 100644 --- a/docs/release/V9/pad.json +++ b/docs/release/V9/pad.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/pad-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/pad-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/docs/release/V9/phone.json b/docs/release/V9/phone.json index 3015c6bf..b4a37902 100644 --- a/docs/release/V9/phone.json +++ b/docs/release/V9/phone.json @@ -1,6 +1,6 @@ { - "version": "2.06.06", - "versionCode": 206006, - "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.06/phone-2.06.06.zip", + "version": "2.06.07", + "versionCode": 206007, + "zipUrl": "https://github.com/sothx/mipad-magic-window/releases/download/2.06.07/phone-2.06.07.zip", "changelog": "https://hyper-magic-window-module-update.sothx.com/release/V9/changelog.md" } \ No newline at end of file diff --git a/module_src/webroot/assets/AppStore-C2FGZ_d1.js b/module_src/webroot/assets/AppStore-BU3sN5yK.js similarity index 99% rename from module_src/webroot/assets/AppStore-C2FGZ_d1.js rename to module_src/webroot/assets/AppStore-BU3sN5yK.js index fbe9e0c6..970fe2b2 100644 --- a/module_src/webroot/assets/AppStore-C2FGZ_d1.js +++ b/module_src/webroot/assets/AppStore-BU3sN5yK.js @@ -1,4 +1,4 @@ -import{d as b,h as k,i as F,j as S,k as m,g as s,n as a,l as e,m as n,b as i,p as g,e as x,f as d,q as A,s as l,t as P,v as H,x as w}from"./index-BmNUNV6O.js";const f="/images/apps/mi_home.png",B="/images/apps/mi_note.png",D="/images/apps/mi_soundrecorder.webp",E="/images/apps/starNote.webp",O="/images/apps/mi_music.png",I="/images/apps/samsung_browser.png",M="/images/apps/bodian.webp",T="/images/apps/honor_music.png",V="/images/apps/habicat.webp",N="/images/apps/youshi.webp",X={class:"setting"},$={class:"mt-5"},z={class:"px-4 sm:px-0"},R={class:"mt-6 border-gray-100"},Y={class:"divide-gray-100 mb-5"},Z={class:"px-4 flex sm:grid sm:px-0"},Q={key:0,class:"px-4 flex sm:grid sm:px-0 mt-5"},K={key:1,class:"px-4 flex sm:grid sm:px-0 mt-5"},U={class:"px-4 flex sm:grid sm:px-0 mt-5"},W={class:"px-4 flex sm:grid sm:px-0 mt-5"},j={class:"px-4 flex sm:grid sm:px-0 mt-5"},q={key:2,class:"px-4 flex sm:grid sm:px-0 mt-5"},G={class:"px-4 flex sm:grid sm:px-0 mt-5"},L={key:3,class:"px-4 flex sm:grid sm:px-0 mt-5"},J={key:4,class:"px-4 flex sm:grid sm:px-0 mt-5"},_={key:5,class:"px-4 flex sm:grid sm:px-0 mt-5"},c={class:"px-4 flex sm:grid sm:px-0 mt-5"},h={class:"px-4 flex sm:grid sm:px-0 mt-5"},lt=b({__name:"AppStore",setup(tt){const r=k(),C=F(()=>({theme:r.isDarkMode?H:w})),{message:st,modal:v,notification:it}=S(["message","modal","notification"],{configProviderProps:C}),p=async(y,t,o)=>{v.create({title:`获取${y}`,type:"info",preset:"dialog",content:()=>n("div",null,[n("p",null,[l("确定要下载"),y,l("么?请注意核对部分应用的兼容性。"),o==="system"&&n("span",null,[l("(Tips: 系统应用无法通过小米自带的应用包管理器安装,请通过MT管理器安装!)")]),o==="revision"&&n("span",null,[l("(Tips: 修改版需搭配核心破解并通过MT管理器安装)")])]),n("p",null,[l("下载地址:")]),n("p",null,[t])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${t}`)},onNegativeClick:()=>{}})};return(y,t)=>{const o=x("n-button"),u=x("n-alert");return d(),m("div",X,[s("div",$,[s("div",z,[t[13]||(t[13]=s("h3",{class:a("text-base font-semibold leading-7")},[s("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r +import{d as b,h as k,i as F,j as S,k as m,g as s,n as a,l as e,m as n,b as i,p as g,e as x,f as d,q as A,s as l,t as P,v as H,x as w}from"./index-B38pBnVb.js";const f="/images/apps/mi_home.png",B="/images/apps/mi_note.png",D="/images/apps/mi_soundrecorder.webp",E="/images/apps/starNote.webp",O="/images/apps/mi_music.png",I="/images/apps/samsung_browser.png",M="/images/apps/bodian.webp",T="/images/apps/honor_music.png",V="/images/apps/habicat.webp",N="/images/apps/youshi.webp",X={class:"setting"},$={class:"mt-5"},z={class:"px-4 sm:px-0"},R={class:"mt-6 border-gray-100"},Y={class:"divide-gray-100 mb-5"},Z={class:"px-4 flex sm:grid sm:px-0"},Q={key:0,class:"px-4 flex sm:grid sm:px-0 mt-5"},K={key:1,class:"px-4 flex sm:grid sm:px-0 mt-5"},U={class:"px-4 flex sm:grid sm:px-0 mt-5"},W={class:"px-4 flex sm:grid sm:px-0 mt-5"},j={class:"px-4 flex sm:grid sm:px-0 mt-5"},q={key:2,class:"px-4 flex sm:grid sm:px-0 mt-5"},G={class:"px-4 flex sm:grid sm:px-0 mt-5"},L={key:3,class:"px-4 flex sm:grid sm:px-0 mt-5"},J={key:4,class:"px-4 flex sm:grid sm:px-0 mt-5"},_={key:5,class:"px-4 flex sm:grid sm:px-0 mt-5"},c={class:"px-4 flex sm:grid sm:px-0 mt-5"},h={class:"px-4 flex sm:grid sm:px-0 mt-5"},lt=b({__name:"AppStore",setup(tt){const r=k(),C=F(()=>({theme:r.isDarkMode?H:w})),{message:st,modal:v,notification:it}=S(["message","modal","notification"],{configProviderProps:C}),p=async(y,t,o)=>{v.create({title:`获取${y}`,type:"info",preset:"dialog",content:()=>n("div",null,[n("p",null,[l("确定要下载"),y,l("么?请注意核对部分应用的兼容性。"),o==="system"&&n("span",null,[l("(Tips: 系统应用无法通过小米自带的应用包管理器安装,请通过MT管理器安装!)")]),o==="revision"&&n("span",null,[l("(Tips: 修改版需搭配核心破解并通过MT管理器安装)")])]),n("p",null,[l("下载地址:")]),n("p",null,[t])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${t}`)},onNegativeClick:()=>{}})};return(y,t)=>{const o=x("n-button"),u=x("n-alert");return d(),m("div",X,[s("div",$,[s("div",z,[t[13]||(t[13]=s("h3",{class:a("text-base font-semibold leading-7")},[s("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r diff --git a/module_src/webroot/assets/DotBlackListView-D4Z5m2bS.js b/module_src/webroot/assets/DotBlackListView-Drcw_pKr.js similarity index 99% rename from module_src/webroot/assets/DotBlackListView-D4Z5m2bS.js rename to module_src/webroot/assets/DotBlackListView-Drcw_pKr.js index fd9e1b83..1f2c20a0 100644 --- a/module_src/webroot/assets/DotBlackListView-D4Z5m2bS.js +++ b/module_src/webroot/assets/DotBlackListView-Drcw_pKr.js @@ -1,4 +1,4 @@ -import{d as lu,J as nu,r as f,h as ou,K as su,y as ru,i as iu,j as Fu,e as d,f as S,k as q,L as du,M as pu,N as Cu,m as u,b as o,s as e,ag as Du,l as a,P as Bu,v as cu,x as Eu,Q as gu,ah as mu,U as fu,g as A,n as G,V as Au,u as ku,p as yu,W as k,X as m,Y as vu,Z as bu,ai as wu,aj as xu,ak as uu,al as Lu,c as eu,am as Mu,an as Tu,O as _u,a3 as Ru,a4 as $u,a5 as Iu,q as Nu,a6 as tu,a7 as Su,a8 as Pu,a9 as v,ao as W,ap as z,aq as hu,ar as J,as as Qu,at as Uu,au,av as N,aw as Wu,ax as zu,ay as Hu,A as Ou}from"./index-BmNUNV6O.js";const Vu=lu({__name:"DotBlackListAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(X,{expose:P,emit:Y}){const n=nu();f(null),f(null);const T=X,w=f(!1),_=ou();su(),ru();const Z=iu(()=>({theme:_.isDarkMode?cu:Eu})),{message:s,modal:h}=Fu(["message","modal"],{configProviderProps:Z});let l,C;const R=f({openDrawer:L=>new Promise((F,x)=>{if(T.type==="update"&&!L){x(new Error("更新模式下必须传入初始化参数")),s.error("初始化参数不能为空");return}l=F,C=x,y.value="",w.value=!0}),closeDrawer:()=>{w.value=!1,C("Drawer closed without submission")}}),y=f(""),$=f(""),Q=async()=>{if(!y.value){h.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?应用包名不能为空(敲")])});return}if(n.allPackageName.has(y.value)){h.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?这个应用包名已经存在列表中了(敲")])});return}p.value=!0;const L=()=>{p.value=!1,w.value=!1},F=()=>{p.value=!1},x={name:y.value,loadingCallback:F,closeCallback:L};h.create({title:"确认隐藏窗口控制器吗?",type:"warning",preset:"dialog",content:()=>u("p",null,[e("窗口控制器的隐藏受小米云控规则下发影响,如果隐藏窗口控制器失效,请重新操作")," ",u("span",{class:`font-bold ${_.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("热重载应用数据")])," ",e(",如后续需要恢复")," ",u("span",{class:`font-bold ${_.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("窗口控制器")])," ",e("的显示,则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定隐藏",negativeText:"我再想想",onPositiveClick:async()=>{l(x)},onNegativeClick(){F()},onMaskClick(){F()},onClose(){F()}})},p=f(!1);return P({openDrawer:R.value.openDrawer}),(L,F)=>{const x=d("n-input-group-label"),H=d("n-input"),O=d("n-input-group"),V=d("n-alert"),K=d("n-button"),j=d("n-drawer-content"),I=d("n-drawer");return S(),q(Bu,null,[du(L.$slots,"default",pu(Cu({openDrawer:R.value.openDrawer}))),u(I,{show:w.value,"onUpdate:show":F[3]||(F[3]=b=>w.value=b),width:a(_).windowWidth>=640?"450px":"100%",placement:"right"},{default:o(()=>[u(j,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:T.title,closable:""},{footer:o(()=>[u(K,{type:"info",loading:p.value,"onUpdate:loading":F[1]||(F[1]=b=>p.value=b),onClick:F[2]||(F[2]=()=>Q())},{default:o(()=>F[6]||(F[6]=[e(" 提交 ")])),_:1},8,["loading"])]),default:o(()=>[u(O,null,{default:o(()=>[u(x,{size:"large"},{default:o(()=>F[4]||(F[4]=[e("应用包名")])),_:1}),u(H,{size:"large",status:$.value,value:y.value,"onUpdate:value":F[0]||(F[0]=b=>y.value=b),"allow-input":b=>Du(b),readonly:T.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),u(V,{"show-icon":!1,bordered:!1,title:"隐藏窗口控制器",type:"info",class:"mt-5"},{default:o(()=>F[5]||(F[5]=[e(" 添加后,应用上方的窗口控制器将被隐藏 ")])),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}}),Ku={class:"autoui-view mb-10"},ju={class:"mt-3"},Ju={class:"mb-3 px-4 sm:px-0"},qu={key:0,class:"mb-3 flex flex-wrap"},Xu={class:"flex flex-wrap"},Yu={class:"flex flex-wrap"},Gu=lu({__name:"DotBlackListView",setup(X){const P=f(null),Y=b(),n=ou(),T=su(),w=gu(),_=iu(()=>({theme:n.isDarkMode?cu:Eu})),{message:Z,modal:s,notification:h}=Fu(["message","modal","notification"],{configProviderProps:_}),l=nu(),C=f(!1),R=f(!1);mu();const y=f(null);Au(),ru(),ku();const $=f("");function Q(r){return()=>J(m,null,{default:()=>J(r)})}const p=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}await n.getAndroidApplicationPackageNameList(),await l.initDefault()},L=async()=>{const[r,t]=await v(w.getList());r&&s.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>u("p",null,[e("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),t&&s.create({title:"获取成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},F=()=>{l.filterInstalledApps=!l.filterInstalledApps},x=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}R.value=!0,await p();const r=l.mergeDotBlackList.map(E=>E.name),[t,i]=await v(W({dotBlackList:r,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));t&&(s.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),R.value=!1),i&&(s.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,已经重新为你载入包括自定义规则在内的应用数据~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async E=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(E=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),R.value=!1)},H=async()=>{const[r,t]=await v(new Promise((i,E)=>{s.create({title:"想重启设备吗?",type:"info",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("是否立即重启设备,以使规则生效?")])]),positiveText:"确认重启",negativeText:"取消",onPositiveClick:()=>{i("positiveClick")},onNegativeClick:()=>{E("negativeClick")}})}));if(t){const[i]=await v(hu());if(i){s.create({title:"操作失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},O=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}$.value="";const[,r]=await v(new Promise((t,i)=>{s.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>J(tu,{type:"textarea",value:$.value,"onUpdate:value":E=>{$.value=E},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){t("positiveClick")}})}));if(r){C.value=!0;const t=$.value,i=Qu(t);if(!(i!=null&&i.length)){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,解析")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("口令发生错误,无法正常解析。")]),negativeText:"确定"}),C.value=!1;return}try{const E=Uu(i),D=au.inflate(E,{to:"string"}),c=JSON.parse(D);if(c.type!=="dot_black_list"){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,该")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("不适用于窗口控制器。")]),negativeText:"确定"}),C.value=!1;return}if(c.device==="pad"&&n.deviceCharacteristics!=="tablet"||c.device==="fold"&&n.deviceCharacteristics==="tablet"){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),C.value=!1;return}if(l.allPackageName.has(c.name)){s.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>u("p",null,[e("这个应用包名已经存在列表中了,导入分享规则失败了!(敲")])}),C.value=!1;return}l.customDotBlackList.push(c.name);const B=l.mergeDotBlackList.map(M=>M.name),[U,g]=await v(W({dotBlackList:B,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));U?(s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),C.value=!1):(await p(),T.updateMergeRuleList(),C.value=!1,s.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[N(c.name,n.installedAppNameList[c.name]||T.applicationName[c.name])])," ",e("的应用配置成功了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async M=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(M=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}))}catch(E){console.log(E,"error"),s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),C.value=!1}}},V=async(r,t,i,E)=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}if(r==="cleanCustomRule"){const D=s.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>u("p",null,[e("清除自定义规则后,将恢复")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[N(i.name,i.applicationName)])," ",e("的窗口控制器显示效果。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{D.loading=!0,l.customDotBlackList=l.customDotBlackList.filter(g=>g!==i.name),l.sourceDotBlackList=l.sourceDotBlackList.map(g=>(g.dataList=g.dataList.filter(M=>M!==i.name),g));const c=l.mergeDotBlackList.map(g=>g.name),[B,U]=await v(W({dotBlackList:c,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));B?(s.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,清除失败了QwQ,详细错误请查看错误日志~")])}),D.loading=!1):(D.loading=!1,s.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,清除自定义规则成功了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async g=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(g=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),D.loading=!1,await p())}})}if(r==="shareCustomRule"){const D={name:i.name,cmpt:1,rules:{name:i.name},type:"dot_black_list",device:n.deviceCharacteristics==="tablet"?"pad":"fold"},c=JSON.stringify(D),B=au.deflate(c,{level:9,memLevel:9,windowBits:15}),U=new Uint8Array(B),g=Hu(U),[M]=await v(navigator.clipboard.writeText(`我分享了一个[窗口控制器]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +import{d as lu,J as nu,r as f,h as ou,K as su,y as ru,i as iu,j as Fu,e as d,f as S,k as q,L as du,M as pu,N as Cu,m as u,b as o,s as e,ag as Du,l as a,P as Bu,v as cu,x as Eu,Q as gu,ah as mu,U as fu,g as A,n as G,V as Au,u as ku,p as yu,W as k,X as m,Y as vu,Z as bu,ai as wu,aj as xu,ak as uu,al as Lu,c as eu,am as Mu,an as Tu,O as _u,a3 as Ru,a4 as $u,a5 as Iu,q as Nu,a6 as tu,a7 as Su,a8 as Pu,a9 as v,ao as W,ap as z,aq as hu,ar as J,as as Qu,at as Uu,au,av as N,aw as Wu,ax as zu,ay as Hu,A as Ou}from"./index-B38pBnVb.js";const Vu=lu({__name:"DotBlackListAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(X,{expose:P,emit:Y}){const n=nu();f(null),f(null);const T=X,w=f(!1),_=ou();su(),ru();const Z=iu(()=>({theme:_.isDarkMode?cu:Eu})),{message:s,modal:h}=Fu(["message","modal"],{configProviderProps:Z});let l,C;const R=f({openDrawer:L=>new Promise((F,x)=>{if(T.type==="update"&&!L){x(new Error("更新模式下必须传入初始化参数")),s.error("初始化参数不能为空");return}l=F,C=x,y.value="",w.value=!0}),closeDrawer:()=>{w.value=!1,C("Drawer closed without submission")}}),y=f(""),$=f(""),Q=async()=>{if(!y.value){h.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?应用包名不能为空(敲")])});return}if(n.allPackageName.has(y.value)){h.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?这个应用包名已经存在列表中了(敲")])});return}p.value=!0;const L=()=>{p.value=!1,w.value=!1},F=()=>{p.value=!1},x={name:y.value,loadingCallback:F,closeCallback:L};h.create({title:"确认隐藏窗口控制器吗?",type:"warning",preset:"dialog",content:()=>u("p",null,[e("窗口控制器的隐藏受小米云控规则下发影响,如果隐藏窗口控制器失效,请重新操作")," ",u("span",{class:`font-bold ${_.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("热重载应用数据")])," ",e(",如后续需要恢复")," ",u("span",{class:`font-bold ${_.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("窗口控制器")])," ",e("的显示,则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定隐藏",negativeText:"我再想想",onPositiveClick:async()=>{l(x)},onNegativeClick(){F()},onMaskClick(){F()},onClose(){F()}})},p=f(!1);return P({openDrawer:R.value.openDrawer}),(L,F)=>{const x=d("n-input-group-label"),H=d("n-input"),O=d("n-input-group"),V=d("n-alert"),K=d("n-button"),j=d("n-drawer-content"),I=d("n-drawer");return S(),q(Bu,null,[du(L.$slots,"default",pu(Cu({openDrawer:R.value.openDrawer}))),u(I,{show:w.value,"onUpdate:show":F[3]||(F[3]=b=>w.value=b),width:a(_).windowWidth>=640?"450px":"100%",placement:"right"},{default:o(()=>[u(j,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:T.title,closable:""},{footer:o(()=>[u(K,{type:"info",loading:p.value,"onUpdate:loading":F[1]||(F[1]=b=>p.value=b),onClick:F[2]||(F[2]=()=>Q())},{default:o(()=>F[6]||(F[6]=[e(" 提交 ")])),_:1},8,["loading"])]),default:o(()=>[u(O,null,{default:o(()=>[u(x,{size:"large"},{default:o(()=>F[4]||(F[4]=[e("应用包名")])),_:1}),u(H,{size:"large",status:$.value,value:y.value,"onUpdate:value":F[0]||(F[0]=b=>y.value=b),"allow-input":b=>Du(b),readonly:T.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),u(V,{"show-icon":!1,bordered:!1,title:"隐藏窗口控制器",type:"info",class:"mt-5"},{default:o(()=>F[5]||(F[5]=[e(" 添加后,应用上方的窗口控制器将被隐藏 ")])),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}}),Ku={class:"autoui-view mb-10"},ju={class:"mt-3"},Ju={class:"mb-3 px-4 sm:px-0"},qu={key:0,class:"mb-3 flex flex-wrap"},Xu={class:"flex flex-wrap"},Yu={class:"flex flex-wrap"},Gu=lu({__name:"DotBlackListView",setup(X){const P=f(null),Y=b(),n=ou(),T=su(),w=gu(),_=iu(()=>({theme:n.isDarkMode?cu:Eu})),{message:Z,modal:s,notification:h}=Fu(["message","modal","notification"],{configProviderProps:_}),l=nu(),C=f(!1),R=f(!1);mu();const y=f(null);Au(),ru(),ku();const $=f("");function Q(r){return()=>J(m,null,{default:()=>J(r)})}const p=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}await n.getAndroidApplicationPackageNameList(),await l.initDefault()},L=async()=>{const[r,t]=await v(w.getList());r&&s.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>u("p",null,[e("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),t&&s.create({title:"获取成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},F=()=>{l.filterInstalledApps=!l.filterInstalledApps},x=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}R.value=!0,await p();const r=l.mergeDotBlackList.map(E=>E.name),[t,i]=await v(W({dotBlackList:r,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));t&&(s.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),R.value=!1),i&&(s.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,已经重新为你载入包括自定义规则在内的应用数据~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async E=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(E=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),R.value=!1)},H=async()=>{const[r,t]=await v(new Promise((i,E)=>{s.create({title:"想重启设备吗?",type:"info",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("是否立即重启设备,以使规则生效?")])]),positiveText:"确认重启",negativeText:"取消",onPositiveClick:()=>{i("positiveClick")},onNegativeClick:()=>{E("negativeClick")}})}));if(t){const[i]=await v(hu());if(i){s.create({title:"操作失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},O=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}$.value="";const[,r]=await v(new Promise((t,i)=>{s.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>J(tu,{type:"textarea",value:$.value,"onUpdate:value":E=>{$.value=E},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){t("positiveClick")}})}));if(r){C.value=!0;const t=$.value,i=Qu(t);if(!(i!=null&&i.length)){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,解析")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("口令发生错误,无法正常解析。")]),negativeText:"确定"}),C.value=!1;return}try{const E=Uu(i),D=au.inflate(E,{to:"string"}),c=JSON.parse(D);if(c.type!=="dot_black_list"){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,该")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("不适用于窗口控制器。")]),negativeText:"确定"}),C.value=!1;return}if(c.device==="pad"&&n.deviceCharacteristics!=="tablet"||c.device==="fold"&&n.deviceCharacteristics==="tablet"){s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),C.value=!1;return}if(l.allPackageName.has(c.name)){s.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>u("p",null,[e("这个应用包名已经存在列表中了,导入分享规则失败了!(敲")])}),C.value=!1;return}l.customDotBlackList.push(c.name);const B=l.mergeDotBlackList.map(M=>M.name),[U,g]=await v(W({dotBlackList:B,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));U?(s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),C.value=!1):(await p(),T.updateMergeRuleList(),C.value=!1,s.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[N(c.name,n.installedAppNameList[c.name]||T.applicationName[c.name])])," ",e("的应用配置成功了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async M=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(M=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}))}catch(E){console.log(E,"error"),s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),C.value=!1}}},V=async(r,t,i,E)=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}if(r==="cleanCustomRule"){const D=s.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>u("p",null,[e("清除自定义规则后,将恢复")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[N(i.name,i.applicationName)])," ",e("的窗口控制器显示效果。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{D.loading=!0,l.customDotBlackList=l.customDotBlackList.filter(g=>g!==i.name),l.sourceDotBlackList=l.sourceDotBlackList.map(g=>(g.dataList=g.dataList.filter(M=>M!==i.name),g));const c=l.mergeDotBlackList.map(g=>g.name),[B,U]=await v(W({dotBlackList:c,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));B?(s.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,清除失败了QwQ,详细错误请查看错误日志~")])}),D.loading=!1):(D.loading=!1,s.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,清除自定义规则成功了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async g=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(g=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),D.loading=!1,await p())}})}if(r==="shareCustomRule"){const D={name:i.name,cmpt:1,rules:{name:i.name},type:"dot_black_list",device:n.deviceCharacteristics==="tablet"?"pad":"fold"},c=JSON.stringify(D),B=au.deflate(c,{level:9,memLevel:9,windowBits:15}),U=new Uint8Array(B),g=Hu(U),[M]=await v(navigator.clipboard.writeText(`我分享了一个[窗口控制器]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: ${g}`));if(M){s.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("复制")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[N(i.name,i.applicationName)])," ",e("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("长度过大。")]),negativeText:"确定"});return}else s.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("好耶w,复制")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[N(i.name,i.applicationName)])," ",e("分享口令成功了~")]),u("p",null,[e("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("自定义规则")])," ",e("长度过大。")]),u("p",null,[e("分享口令导入入口位于")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("窗口控制器- 从分享口令导入")])," ",e("。")])]),positiveText:"确定"})}},K=(r,t)=>{s.create({title:"系统规则说明",type:"warning",preset:"dialog",content:()=>u("p",null,[e("系统已对")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[N(r.name,r.applicationName)])," ",e("配置了窗口控制器的隐藏,且不可被移除,仅有自定义规则可以被移除哦~")])})},j=async()=>{if(!l.systemDotBlackList.length||!l.hasHTMLViewerCloudData){s.create({title:"获取云控失败",type:"error",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("无法获取到HTML查看器的云控,请检查是否禁用云控或者清除HTML查看器的数据再重启平板尝试操作~")]),n.currentRootManager!=="Magisk"&&u("p",null,[e("部分"),n.currentRootManager,e("版本内置的Web UI存在异常,如仍然无法正常获取云控数据库,请单独安装模块网盘内提供的KsuWebUI。")])])});return}if(y.value){const[r,t]=await v(y.value.openDrawer());if(r)console.log("操作取消:",r);else{l.customDotBlackList.push(t.name);const i=l.mergeDotBlackList.map(c=>c.name),[E,D]=await v(W({dotBlackList:i,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));E?(s.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),t.loadingCallback&&t.loadingCallback()):(s.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("好耶w,已经成功配置")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[N(t.name,n.installedAppNameList[t.name]||l.applicationName[t.name])])," ",e("的窗口控制器隐藏效果了OwO~实际生效还需要重启")," ",u("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[e("系统界面")])," ",e("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){z().then(async c=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(c=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),await p(),t.loadingCallback&&t.loadingCallback(),t.closeCallback&&t.closeCallback())}}},I=fu({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:r=>{I.page=r},onUpdatePageSize:r=>{I.pageSize=r,I.page=1}});function b(){return[{title:"应用名称",minWidth:250,key:"name",render(r,t){return u("div",null,[r.applicationName&&u("p",null,[r.applicationName]),r.name&&u("p",null,[u("span",{class:{hidden:!r.applicationName}},[e("(")]),r.name,u("span",{class:{hidden:!r.applicationName}},[e(")")])])])}},{title:"规则状态",width:150,key:"isOptimizeWebView",render(r,t){return r.status?u(d("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[e("已生效")]}):u(d("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[e("未生效")]})}},{title:"规则来源",width:150,key:"ruleMode",render(r,t){const i={icon:r.ruleMode==="custom"?Wu:zu};if(r.ruleMode==="custom"){const E=[{label:"分享自定义规则",key:"shareCustomRule",icon:Q(uu)},{label:"清除自定义规则",key:"cleanCustomRule",icon:Q(Ou)}];return u(d("n-dropdown"),{onSelect:(D,c)=>V(D,c,r),size:"large",trigger:"click",options:E},{default:()=>[u(d("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[e("自定义规则")],...i})]})}return u(d("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>K(r)},{default:()=>[e("系统规则")],...i})}}]}return(r,t)=>{const i=d("n-alert"),E=d("n-input-group"),D=d("n-card"),c=d("n-data-table");return S(),q("main",Ku,[A("div",ju,[A("div",Ju,[t[10]||(t[10]=A("h3",{class:G("text-base font-semibold leading-7")},[A("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r diff --git a/module_src/webroot/assets/EmbeddedWebView-DqK3I8Ls.js b/module_src/webroot/assets/EmbeddedWebView-CMkPuHFE.js similarity index 93% rename from module_src/webroot/assets/EmbeddedWebView-DqK3I8Ls.js rename to module_src/webroot/assets/EmbeddedWebView-CMkPuHFE.js index b1a3cb5e..e5a15a09 100644 --- a/module_src/webroot/assets/EmbeddedWebView-DqK3I8Ls.js +++ b/module_src/webroot/assets/EmbeddedWebView-CMkPuHFE.js @@ -1 +1 @@ -import{d as f,r as a,o as _,w as m,a as v,c as w,b as p,u as h,e as b,f as g,g as l,_ as x}from"./index-BmNUNV6O.js";const y={class:"webview-container"},B=["src"],E=f({__name:"EmbeddedWebView",setup(R){const r=h(),s=a(r.query.url),e=a(null),d=()=>{console.log("网页加载完成"),u.value=!1,c()},c=()=>{var o;if(e.value){const n=e.value.contentDocument||((o=e.value.contentWindow)==null?void 0:o.document);if(n){const t=n.body.scrollHeight;e.value.style.height=`${t}px`}}},i=()=>{c()};_(()=>{window.addEventListener("resize",i)}),m(()=>r.query.url,o=>{s.value=o,e.value&&(e.value.src=s.value)});const u=a(!0);return v(()=>{window.removeEventListener("resize",i)}),(o,n)=>{const t=b("n-spin");return g(),w(t,{show:u.value},{default:p(()=>[l("div",y,[l("iframe",{ref_key:"iframeRef",ref:e,src:s.value,frameborder:"0",class:"webview",onLoad:d},null,40,B)])]),_:1},8,["show"])}}}),z=x(E,[["__scopeId","data-v-f817c96f"]]);export{z as default}; +import{d as f,r as a,o as _,w as m,a as v,c as w,b as p,u as h,e as b,f as g,g as l,_ as x}from"./index-B38pBnVb.js";const y={class:"webview-container"},B=["src"],E=f({__name:"EmbeddedWebView",setup(R){const r=h(),s=a(r.query.url),e=a(null),d=()=>{console.log("网页加载完成"),u.value=!1,c()},c=()=>{var o;if(e.value){const n=e.value.contentDocument||((o=e.value.contentWindow)==null?void 0:o.document);if(n){const t=n.body.scrollHeight;e.value.style.height=`${t}px`}}},i=()=>{c()};_(()=>{window.addEventListener("resize",i)}),m(()=>r.query.url,o=>{s.value=o,e.value&&(e.value.src=s.value)});const u=a(!0);return v(()=>{window.removeEventListener("resize",i)}),(o,n)=>{const t=b("n-spin");return g(),w(t,{show:u.value},{default:p(()=>[l("div",y,[l("iframe",{ref_key:"iframeRef",ref:e,src:s.value,frameborder:"0",class:"webview",onLoad:d},null,40,B)])]),_:1},8,["show"])}}}),z=x(E,[["__scopeId","data-v-f817c96f"]]);export{z as default}; diff --git a/module_src/webroot/assets/GameBooster-CrLPfjMF.js b/module_src/webroot/assets/GameBooster-CffxOwov.js similarity index 99% rename from module_src/webroot/assets/GameBooster-CrLPfjMF.js rename to module_src/webroot/assets/GameBooster-CffxOwov.js index 946d0f11..9593705d 100644 --- a/module_src/webroot/assets/GameBooster-CrLPfjMF.js +++ b/module_src/webroot/assets/GameBooster-CffxOwov.js @@ -1,4 +1,4 @@ -import{D as J,E as ce,F as ge,G as me,H as Fe,f as M,k as H,g as F,I as Ee,d as X,J as ve,r as C,h as ee,K as fe,y as ye,i as te,j as ue,e as c,L as Ce,M as Be,N as _e,m as t,b as a,s as l,l as u,O as Q,c as Y,p as P,P as oe,v as ae,x as ne,Q as Ae,R as be,S as De,T as ke,U as Te,n as Z,V as we,W as A,X as k,Y as Re,Z as Oe,$ as Ge,a0 as xe,a1 as q,a2 as Ie,a3 as Me,a4 as Se,a5 as Ne,q as Ve,a6 as ze,a7 as Le,a8 as Ue,a9 as W,aa as $e,ab as he,ac as We,ad as Ye}from"./index-BmNUNV6O.js";function Pe(g,s,p,r){return J(g,function(E,v,G){s(r,p(E),v,G)}),r}function He(g,s){return function(p,r){return Pe(p,g,s(r),{})}}var Ke=Object.prototype,je=Ke.toString,le=He(function(g,s,p){s!=null&&typeof s.toString!="function"&&(s=je.call(s)),g[s]=p},ce(ge));function z(g,s){var p={};return s=me(s),J(g,function(r,E,v){Fe(p,s(r,E,v),r)}),p}function Qe(g,s){return M(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"fill-rule":"evenodd",d:"M9.315 7.584C12.195 3.883 16.695 1.5 21.75 1.5a.75.75 0 0 1 .75.75c0 5.056-2.383 9.555-6.084 12.436A6.75 6.75 0 0 1 9.75 22.5a.75.75 0 0 1-.75-.75v-4.131A15.838 15.838 0 0 1 6.382 15H2.25a.75.75 0 0 1-.75-.75 6.75 6.75 0 0 1 7.815-6.666ZM15 6.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z","clip-rule":"evenodd"}),F("path",{d:"M5.26 17.242a.75.75 0 1 0-.897-1.203 5.243 5.243 0 0 0-2.05 5.022.75.75 0 0 0 .625.627 5.243 5.243 0 0 0 5.022-2.051.75.75 0 1 0-1.202-.897 3.744 3.744 0 0 1-3.008 1.51c0-1.23.592-2.323 1.51-3.008Z"})])}const Ze=le({RATIO_FULLSCREEN:"0.0",RATIO_16_TO_9:"1.7777778",RATIO_4_TO_3:"1.3333333",RATIO_21_TO_9:"2.3333333",RATIO_32_TO_9:"3.5555556"}),qe={RATIO_FULLSCREEN:{type:"info",name:"全屏",color:{}},RATIO_16_TO_9:{type:"error",name:"16:9",color:{}},RATIO_4_TO_3:{type:"success",name:"4:3",color:{}},RATIO_21_TO_9:{type:"warning",name:"21:9",color:{}},RATIO_32_TO_9:{type:"primary",name:"32:9",color:{color:"rgba(255, 105, 180, 0.1)",borderColor:"rgba(255, 105, 180, 0.3)",textColor:"#ff69b4"}}},re=g=>{console.log(g,"inputArr");const s=Ee(g);let p=Object.entries(Ze).map(([r,E])=>{const v=qe[E];return{label:v.name,value:r,type:v.type,color:v.color}});return s&&(p=[...p,...s]),p},Je=le({GRAVITY_CENTER:17,GRAVITY_TOP:48,GRAVITY_BOTTOM:80}),Xe={GRAVITY_CENTER:{color:"info",name:"居中显示"},GRAVITY_TOP:{color:"success",name:"居顶显示"},GRAVITY_BOTTOM:{color:"error",name:"居底显示"}},se=()=>Object.entries(Je).map(([g,s])=>{const p=Xe[s];return{label:p.name,value:g,color:p.color}}),et=X({__name:"GameBoosterAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(g,{expose:s,emit:p}){ve(),C(null),C(null);const r=g,E=C(!1),v=re([{label:"自定义",value:"custom",type:"primary",color:{color:"rgba(155, 89, 182, 0.1)",borderColor:"rgba(155, 89, 182, 0.3)",textColor:"#9b59b6"}}]),G=z(v,e=>e.value),f=se(),K=z(f,e=>e.value),d=ee();fe(),ye();const L=te(()=>({theme:d.isDarkMode?ae:ne})),{message:U,modal:b}=ue(["message","modal"],{configProviderProps:L});let V,S;const N=C({openDrawer:e=>new Promise((o,i)=>{if(r.type==="update"&&!e){i(new Error("更新模式下必须传入初始化参数")),U.error("初始化参数不能为空");return}r.type==="update"&&(x.value=(e==null?void 0:e.packageName)||"",T.value=(e==null?void 0:e.appName)||"",e!=null&&e.gameGravity&&(D.value=K[e.gameGravity]),e!=null&&e.gameRatio&&(G[e.gameRatio]?(y.value=G[e.gameRatio],_.value=e.gameRatio):(y.value=G.custom,_.value=e.gameRatio))),V=o,S=i,E.value=!0}),closeDrawer:()=>{E.value=!1,S("Drawer closed without submission")}}),T=C(""),x=C(""),D=C(f[0]),y=C(v[0]),_=C(""),$=(e,o)=>{if(o.value==="custom"&&!d.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO){b.create({title:"无使用权限",type:"warning",preset:"dialog",content:()=>t("div",null,[t("p",null,[l("自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封!")]),t("p",null,[l("如仍然坚持使用自定义游戏比例,请前往模块设置导入激活口令激活自定义游戏比例:")]),t("p",null,[l("eNqrVnJ39HWNd/L3Dw5xDYp3Dg0O8feND3IM8fRXsiopKk2tBQC2Pwrm")])])});return}y.value=o,o.value==="custom"?_.value="":_.value=o.value},I=(e,o)=>{D.value=o},h=async()=>{if(!_.value){b.create({title:"游戏显示比例不能为空",type:"error",preset:"dialog",content:()=>t("p",null,[l("噫?游戏显示比例不能为空(敲")])});return}n.value=!0;const e=()=>{n.value=!1,E.value=!1},o=()=>{n.value=!1},i={appName:T.value,packageName:x.value,gameGravity:D.value.value,gameRatio:_.value,loadingCallback:o,closeCallback:e};b.create({title:"确认调整游戏显示布局吗?",type:"warning",preset:"dialog",content:()=>t("p",null,[l("调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。确定要继续吗?")]),positiveText:"确定调整",negativeText:"我再想想",onPositiveClick:async()=>{V(i),o(),e()},onNegativeClick(){o()},onMaskClick(){o()},onClose(){o()}})},n=C(!1);return s({openDrawer:N.value.openDrawer}),(e,o)=>{const i=c("n-input-group-label"),w=c("n-input"),R=c("n-input-group"),O=c("n-button"),B=c("n-dropdown"),ie=c("n-alert"),j=c("n-card"),de=c("n-drawer-content"),pe=c("n-drawer");return M(),H(oe,null,[Ce(e.$slots,"default",Be(_e({openDrawer:N.value.openDrawer}))),t(pe,{show:E.value,"onUpdate:show":o[7]||(o[7]=m=>E.value=m),width:u(d).windowWidth>=640?"450px":"100%",placement:"right"},{default:a(()=>[t(de,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:r.title,closable:""},{footer:a(()=>[t(O,{type:"info",loading:n.value,"onUpdate:loading":o[5]||(o[5]=m=>n.value=m),onClick:o[6]||(o[6]=()=>h())},{default:a(()=>o[11]||(o[11]=[l(" 提交 ")])),_:1},8,["loading"])]),default:a(()=>[t(R,null,{default:a(()=>[t(i,{size:"large"},{default:a(()=>o[8]||(o[8]=[l("游戏名称")])),_:1}),t(w,{size:"large",value:T.value,"onUpdate:value":o[0]||(o[0]=m=>T.value=m),readonly:!0,placeholder:"请输入游戏名称"},null,8,["value"])]),_:1}),t(R,{class:"mt-5"},{default:a(()=>[t(i,{size:"large"},{default:a(()=>o[9]||(o[9]=[l("游戏包名")])),_:1}),t(w,{size:"large",value:x.value,"onUpdate:value":o[1]||(o[1]=m=>x.value=m),readonly:!0,placeholder:"请输入游戏包名"},null,8,["value"])]),_:1}),t(j,{bordered:!1,title:"游戏显示比例",size:"small"},{default:a(()=>[t(B,{value:y.value,"onUpdate:value":o[2]||(o[2]=m=>y.value=m),size:"large",trigger:"click",options:u(v),onSelect:$},{default:a(()=>{var m;return[t(O,{block:"",type:y.value.type,color:(m=y.value.color)==null?void 0:m.textColor,dashed:""},{default:a(()=>[l(Q(y.value.label),1)]),_:1},8,["type","color"])]}),_:1},8,["value","options"]),t(R,{class:"mt-5"},{default:a(()=>[t(w,{type:"number",ref:"currentCustomGameRatioRef",readonly:y.value.value!=="custom",value:_.value,"onUpdate:value":o[3]||(o[3]=m=>_.value=m),placeholder:"请输入游戏显示比例"},null,8,["readonly","value"])]),_:1}),y.value.value==="custom"?(M(),Y(ie,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:a(()=>o[10]||(o[10]=[F("p",null,"参考计算公式:21:9=21%9≈2.3333333",-1)])),_:1})):P("",!0)]),_:1}),t(j,{bordered:!1,title:"游戏显示位置",size:"small"},{default:a(()=>[t(B,{value:D.value,"onUpdate:value":o[4]||(o[4]=m=>D.value=m),size:"large",trigger:"click",options:u(f),onSelect:I},{default:a(()=>[t(O,{block:"",type:D.value.color,dashed:""},{default:a(()=>[l(Q(D.value.label),1)]),_:1},8,["type"])]),_:1},8,["value","options"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}}),tt={class:"autoui-view mb-10"},ut={class:"mt-3"},ot={class:"mb-3 px-4 sm:px-0"},at={class:"mb-3 flex flex-wrap"},nt={class:"flex flex-wrap"},lt={class:"flex flex-wrap"},st=X({__name:"GameBooster",setup(g){const s=C(null),p=h(),r=ee(),E=we();Ae();const v=te(()=>({theme:r.isDarkMode?ae:ne})),{message:G,modal:f,notification:K}=ue(["message","modal","notification"],{configProviderProps:v}),d=be(),L=De(),U=re(),b=z(U,n=>n.value),V=se(),S=z(V,n=>n.value),N=ke(),T=C(null),x=async()=>{if(!N.isSupportGameMode.value){f.create({title:"未开启游戏显示布局",type:"warning",preset:"dialog",content:()=>t("p",null,[l("未开启游戏显示布局,请先前往模块设置进行开启~")]),positiveText:"立即前往",negativeText:"取消",onPositiveClick(){E.push({name:"settings",hash:"#gameModeSettings"}).then(()=>{const o=new MutationObserver(()=>{const i=document.getElementById("gameModeSettings");i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})}});return}const[n,e]=await W($e());n&&f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,详细错误请查看日志~")])})},D=async()=>{f.create({title:"获取手机/平板管家",type:"info",preset:"dialog",content:()=>t("div",null,[t("p",null,[l("如果规则无法生效,还需要安装修改版的手机/平板管家才会生效,安装后如出现崩溃等异常,推荐清空管家数据并重启设备再尝试~")]),t("p",null,[l("(Tips:需搭配核心破解并通过MT管理器安装)")]),t("p",null,[l("下载地址:https://caiyun.139.com/m/i?135CeBMHACC6p")])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText("https://caiyun.139.com/m/i?135CeBMHACC6p")},onNegativeClick:()=>{}})},y=()=>{E.push({name:"settings",hash:"#displayModeSettings"}).then(()=>{const n=new MutationObserver(()=>{const e=document.getElementById("displayModeSettings");e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0})})},_=async(n,e)=>{if(!N.isSupportGameMode.value){f.create({title:"未开启游戏显示布局",type:"warning",preset:"dialog",content:()=>t("p",null,[l("未开启游戏显示布局,请先前往模块设置进行开启~")]),positiveText:"立即前往",negativeText:"取消",onPositiveClick(){E.push({name:"settings",hash:"#gameModeSettings"}).then(()=>{const o=new MutationObserver(()=>{const i=document.getElementById("gameModeSettings");i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})}});return}if(T.value){const[o,i]=await W(T.value.openDrawer({appName:n.app_name,packageName:n.package_name,gameRatio:n.game_ratio,gameGravity:n.game_gravity}));if(o)console.log("操作取消:",o);else if(i){d.loading=!0;const[w,R]=await W(he(i.packageName,i.gameRatio,i.gameGravity));w&&(f.create({title:"更新设置失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),d.loading=!1),R&&(d.loading=!1,f.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>t("p",null,[l("好耶w,已经成功配置")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[i.appName])," ",l("的游戏显示布局了OwO~实际生效还需要重启")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[i.appName])," ",l("和")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[l("平板/手机管家")])," ",l("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){We(n.package_name).then(async O=>{await d.initDefault(),f.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>t("p",null,[l("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(O=>{f.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}))}}},$=async()=>{await d.initDefault()},I=Te({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:n=>{I.page=n},onUpdatePageSize:n=>{I.pageSize=n,I.page=1}});function h(){return[{title:"游戏名称",minWidth:250,key:"name",render(n,e){return t("div",null,[n.app_name&&t("p",null,[n.app_name]),n.app_name&&t("p",null,[t("span",{class:{hidden:!n.app_name}},[l("(")]),n.package_name,t("span",{class:{hidden:!n.app_name}},[l(")")])])])}},{title:"游戏显示比例",minWidth:150,key:"game_ratio",render(n,e){return b[n.game_ratio]&&b[n.game_ratio].label?t(c("n-tag"),{dashed:!0,type:b[n.game_ratio].type,color:b[n.game_ratio].color},{default:()=>[b[n.game_ratio].label]}):t(c("n-tag"),{dashed:!0,color:{color:"rgba(155, 89, 182, 0.1)",borderColor:"rgba(155, 89, 182, 0.3)",textColor:"#9b59b6"}},{default:()=>[l("自定义")]})}},{title:"游戏显示位置",minWidth:150,key:"game_gravity",render(n,e){return t(c("n-tag"),{dashed:!0,type:S[n.game_gravity].color},{default:()=>[S[n.game_gravity].label]})}},{title:"操作",minWidth:100,key:"setting",render(n,e){const o={icon:Ye};return t(c("n-button"),{onClick:()=>_(n),size:"small",strong:!0,dashed:!0,type:"info"},{default:()=>[l("管理")],...o})}}]}return(n,e)=>{const o=c("n-alert"),i=c("n-dropdown"),w=c("n-input-group"),R=c("n-card"),O=c("n-data-table");return M(),H(oe,null,[F("main",tt,[F("div",ut,[F("div",ot,[e[10]||(e[10]=F("h3",{class:Z("text-base font-semibold leading-7")},[F("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r +import{D as J,E as ce,F as ge,G as me,H as Fe,f as M,k as H,g as F,I as Ee,d as X,J as ve,r as C,h as ee,K as fe,y as ye,i as te,j as ue,e as c,L as Ce,M as Be,N as _e,m as t,b as a,s as l,l as u,O as Q,c as Y,p as P,P as oe,v as ae,x as ne,Q as Ae,R as be,S as De,T as ke,U as Te,n as Z,V as we,W as A,X as k,Y as Re,Z as Oe,$ as Ge,a0 as xe,a1 as q,a2 as Ie,a3 as Me,a4 as Se,a5 as Ne,q as Ve,a6 as ze,a7 as Le,a8 as Ue,a9 as W,aa as $e,ab as he,ac as We,ad as Ye}from"./index-B38pBnVb.js";function Pe(g,s,p,r){return J(g,function(E,v,G){s(r,p(E),v,G)}),r}function He(g,s){return function(p,r){return Pe(p,g,s(r),{})}}var Ke=Object.prototype,je=Ke.toString,le=He(function(g,s,p){s!=null&&typeof s.toString!="function"&&(s=je.call(s)),g[s]=p},ce(ge));function z(g,s){var p={};return s=me(s),J(g,function(r,E,v){Fe(p,s(r,E,v),r)}),p}function Qe(g,s){return M(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[F("path",{"fill-rule":"evenodd",d:"M9.315 7.584C12.195 3.883 16.695 1.5 21.75 1.5a.75.75 0 0 1 .75.75c0 5.056-2.383 9.555-6.084 12.436A6.75 6.75 0 0 1 9.75 22.5a.75.75 0 0 1-.75-.75v-4.131A15.838 15.838 0 0 1 6.382 15H2.25a.75.75 0 0 1-.75-.75 6.75 6.75 0 0 1 7.815-6.666ZM15 6.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z","clip-rule":"evenodd"}),F("path",{d:"M5.26 17.242a.75.75 0 1 0-.897-1.203 5.243 5.243 0 0 0-2.05 5.022.75.75 0 0 0 .625.627 5.243 5.243 0 0 0 5.022-2.051.75.75 0 1 0-1.202-.897 3.744 3.744 0 0 1-3.008 1.51c0-1.23.592-2.323 1.51-3.008Z"})])}const Ze=le({RATIO_FULLSCREEN:"0.0",RATIO_16_TO_9:"1.7777778",RATIO_4_TO_3:"1.3333333",RATIO_21_TO_9:"2.3333333",RATIO_32_TO_9:"3.5555556"}),qe={RATIO_FULLSCREEN:{type:"info",name:"全屏",color:{}},RATIO_16_TO_9:{type:"error",name:"16:9",color:{}},RATIO_4_TO_3:{type:"success",name:"4:3",color:{}},RATIO_21_TO_9:{type:"warning",name:"21:9",color:{}},RATIO_32_TO_9:{type:"primary",name:"32:9",color:{color:"rgba(255, 105, 180, 0.1)",borderColor:"rgba(255, 105, 180, 0.3)",textColor:"#ff69b4"}}},re=g=>{console.log(g,"inputArr");const s=Ee(g);let p=Object.entries(Ze).map(([r,E])=>{const v=qe[E];return{label:v.name,value:r,type:v.type,color:v.color}});return s&&(p=[...p,...s]),p},Je=le({GRAVITY_CENTER:17,GRAVITY_TOP:48,GRAVITY_BOTTOM:80}),Xe={GRAVITY_CENTER:{color:"info",name:"居中显示"},GRAVITY_TOP:{color:"success",name:"居顶显示"},GRAVITY_BOTTOM:{color:"error",name:"居底显示"}},se=()=>Object.entries(Je).map(([g,s])=>{const p=Xe[s];return{label:p.name,value:g,color:p.color}}),et=X({__name:"GameBoosterAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(g,{expose:s,emit:p}){ve(),C(null),C(null);const r=g,E=C(!1),v=re([{label:"自定义",value:"custom",type:"primary",color:{color:"rgba(155, 89, 182, 0.1)",borderColor:"rgba(155, 89, 182, 0.3)",textColor:"#9b59b6"}}]),G=z(v,e=>e.value),f=se(),K=z(f,e=>e.value),d=ee();fe(),ye();const L=te(()=>({theme:d.isDarkMode?ae:ne})),{message:U,modal:b}=ue(["message","modal"],{configProviderProps:L});let V,S;const N=C({openDrawer:e=>new Promise((o,i)=>{if(r.type==="update"&&!e){i(new Error("更新模式下必须传入初始化参数")),U.error("初始化参数不能为空");return}r.type==="update"&&(x.value=(e==null?void 0:e.packageName)||"",T.value=(e==null?void 0:e.appName)||"",e!=null&&e.gameGravity&&(D.value=K[e.gameGravity]),e!=null&&e.gameRatio&&(G[e.gameRatio]?(y.value=G[e.gameRatio],_.value=e.gameRatio):(y.value=G.custom,_.value=e.gameRatio))),V=o,S=i,E.value=!0}),closeDrawer:()=>{E.value=!1,S("Drawer closed without submission")}}),T=C(""),x=C(""),D=C(f[0]),y=C(v[0]),_=C(""),$=(e,o)=>{if(o.value==="custom"&&!d.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO){b.create({title:"无使用权限",type:"warning",preset:"dialog",content:()=>t("div",null,[t("p",null,[l("自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封!")]),t("p",null,[l("如仍然坚持使用自定义游戏比例,请前往模块设置导入激活口令激活自定义游戏比例:")]),t("p",null,[l("eNqrVnJ39HWNd/L3Dw5xDYp3Dg0O8feND3IM8fRXsiopKk2tBQC2Pwrm")])])});return}y.value=o,o.value==="custom"?_.value="":_.value=o.value},I=(e,o)=>{D.value=o},h=async()=>{if(!_.value){b.create({title:"游戏显示比例不能为空",type:"error",preset:"dialog",content:()=>t("p",null,[l("噫?游戏显示比例不能为空(敲")])});return}n.value=!0;const e=()=>{n.value=!1,E.value=!1},o=()=>{n.value=!1},i={appName:T.value,packageName:x.value,gameGravity:D.value.value,gameRatio:_.value,loadingCallback:o,closeCallback:e};b.create({title:"确认调整游戏显示布局吗?",type:"warning",preset:"dialog",content:()=>t("p",null,[l("调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。确定要继续吗?")]),positiveText:"确定调整",negativeText:"我再想想",onPositiveClick:async()=>{V(i),o(),e()},onNegativeClick(){o()},onMaskClick(){o()},onClose(){o()}})},n=C(!1);return s({openDrawer:N.value.openDrawer}),(e,o)=>{const i=c("n-input-group-label"),w=c("n-input"),R=c("n-input-group"),O=c("n-button"),B=c("n-dropdown"),ie=c("n-alert"),j=c("n-card"),de=c("n-drawer-content"),pe=c("n-drawer");return M(),H(oe,null,[Ce(e.$slots,"default",Be(_e({openDrawer:N.value.openDrawer}))),t(pe,{show:E.value,"onUpdate:show":o[7]||(o[7]=m=>E.value=m),width:u(d).windowWidth>=640?"450px":"100%",placement:"right"},{default:a(()=>[t(de,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:r.title,closable:""},{footer:a(()=>[t(O,{type:"info",loading:n.value,"onUpdate:loading":o[5]||(o[5]=m=>n.value=m),onClick:o[6]||(o[6]=()=>h())},{default:a(()=>o[11]||(o[11]=[l(" 提交 ")])),_:1},8,["loading"])]),default:a(()=>[t(R,null,{default:a(()=>[t(i,{size:"large"},{default:a(()=>o[8]||(o[8]=[l("游戏名称")])),_:1}),t(w,{size:"large",value:T.value,"onUpdate:value":o[0]||(o[0]=m=>T.value=m),readonly:!0,placeholder:"请输入游戏名称"},null,8,["value"])]),_:1}),t(R,{class:"mt-5"},{default:a(()=>[t(i,{size:"large"},{default:a(()=>o[9]||(o[9]=[l("游戏包名")])),_:1}),t(w,{size:"large",value:x.value,"onUpdate:value":o[1]||(o[1]=m=>x.value=m),readonly:!0,placeholder:"请输入游戏包名"},null,8,["value"])]),_:1}),t(j,{bordered:!1,title:"游戏显示比例",size:"small"},{default:a(()=>[t(B,{value:y.value,"onUpdate:value":o[2]||(o[2]=m=>y.value=m),size:"large",trigger:"click",options:u(v),onSelect:$},{default:a(()=>{var m;return[t(O,{block:"",type:y.value.type,color:(m=y.value.color)==null?void 0:m.textColor,dashed:""},{default:a(()=>[l(Q(y.value.label),1)]),_:1},8,["type","color"])]}),_:1},8,["value","options"]),t(R,{class:"mt-5"},{default:a(()=>[t(w,{type:"number",ref:"currentCustomGameRatioRef",readonly:y.value.value!=="custom",value:_.value,"onUpdate:value":o[3]||(o[3]=m=>_.value=m),placeholder:"请输入游戏显示比例"},null,8,["readonly","value"])]),_:1}),y.value.value==="custom"?(M(),Y(ie,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:a(()=>o[10]||(o[10]=[F("p",null,"参考计算公式:21:9=21%9≈2.3333333",-1)])),_:1})):P("",!0)]),_:1}),t(j,{bordered:!1,title:"游戏显示位置",size:"small"},{default:a(()=>[t(B,{value:D.value,"onUpdate:value":o[4]||(o[4]=m=>D.value=m),size:"large",trigger:"click",options:u(f),onSelect:I},{default:a(()=>[t(O,{block:"",type:D.value.color,dashed:""},{default:a(()=>[l(Q(D.value.label),1)]),_:1},8,["type"])]),_:1},8,["value","options"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}}),tt={class:"autoui-view mb-10"},ut={class:"mt-3"},ot={class:"mb-3 px-4 sm:px-0"},at={class:"mb-3 flex flex-wrap"},nt={class:"flex flex-wrap"},lt={class:"flex flex-wrap"},st=X({__name:"GameBooster",setup(g){const s=C(null),p=h(),r=ee(),E=we();Ae();const v=te(()=>({theme:r.isDarkMode?ae:ne})),{message:G,modal:f,notification:K}=ue(["message","modal","notification"],{configProviderProps:v}),d=be(),L=De(),U=re(),b=z(U,n=>n.value),V=se(),S=z(V,n=>n.value),N=ke(),T=C(null),x=async()=>{if(!N.isSupportGameMode.value){f.create({title:"未开启游戏显示布局",type:"warning",preset:"dialog",content:()=>t("p",null,[l("未开启游戏显示布局,请先前往模块设置进行开启~")]),positiveText:"立即前往",negativeText:"取消",onPositiveClick(){E.push({name:"settings",hash:"#gameModeSettings"}).then(()=>{const o=new MutationObserver(()=>{const i=document.getElementById("gameModeSettings");i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})}});return}const[n,e]=await W($e());n&&f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,详细错误请查看日志~")])})},D=async()=>{f.create({title:"获取手机/平板管家",type:"info",preset:"dialog",content:()=>t("div",null,[t("p",null,[l("如果规则无法生效,还需要安装修改版的手机/平板管家才会生效,安装后如出现崩溃等异常,推荐清空管家数据并重启设备再尝试~")]),t("p",null,[l("(Tips:需搭配核心破解并通过MT管理器安装)")]),t("p",null,[l("下载地址:https://caiyun.139.com/m/i?135CeBMHACC6p")])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText("https://caiyun.139.com/m/i?135CeBMHACC6p")},onNegativeClick:()=>{}})},y=()=>{E.push({name:"settings",hash:"#displayModeSettings"}).then(()=>{const n=new MutationObserver(()=>{const e=document.getElementById("displayModeSettings");e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),n.disconnect())});n.observe(document.body,{childList:!0,subtree:!0})})},_=async(n,e)=>{if(!N.isSupportGameMode.value){f.create({title:"未开启游戏显示布局",type:"warning",preset:"dialog",content:()=>t("p",null,[l("未开启游戏显示布局,请先前往模块设置进行开启~")]),positiveText:"立即前往",negativeText:"取消",onPositiveClick(){E.push({name:"settings",hash:"#gameModeSettings"}).then(()=>{const o=new MutationObserver(()=>{const i=document.getElementById("gameModeSettings");i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})})}});return}if(T.value){const[o,i]=await W(T.value.openDrawer({appName:n.app_name,packageName:n.package_name,gameRatio:n.game_ratio,gameGravity:n.game_gravity}));if(o)console.log("操作取消:",o);else if(i){d.loading=!0;const[w,R]=await W(he(i.packageName,i.gameRatio,i.gameGravity));w&&(f.create({title:"更新设置失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),d.loading=!1),R&&(d.loading=!1,f.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>t("p",null,[l("好耶w,已经成功配置")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[i.appName])," ",l("的游戏显示布局了OwO~实际生效还需要重启")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[i.appName])," ",l("和")," ",t("span",{class:`font-bold ${r.isDarkMode?"text-teal-400":"text-gray-600"}`},[l("平板/手机管家")])," ",l("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){We(n.package_name).then(async O=>{await d.initDefault(),f.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>t("p",null,[l("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(O=>{f.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>t("p",null,[l("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}))}}},$=async()=>{await d.initDefault()},I=Te({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:n=>{I.page=n},onUpdatePageSize:n=>{I.pageSize=n,I.page=1}});function h(){return[{title:"游戏名称",minWidth:250,key:"name",render(n,e){return t("div",null,[n.app_name&&t("p",null,[n.app_name]),n.app_name&&t("p",null,[t("span",{class:{hidden:!n.app_name}},[l("(")]),n.package_name,t("span",{class:{hidden:!n.app_name}},[l(")")])])])}},{title:"游戏显示比例",minWidth:150,key:"game_ratio",render(n,e){return b[n.game_ratio]&&b[n.game_ratio].label?t(c("n-tag"),{dashed:!0,type:b[n.game_ratio].type,color:b[n.game_ratio].color},{default:()=>[b[n.game_ratio].label]}):t(c("n-tag"),{dashed:!0,color:{color:"rgba(155, 89, 182, 0.1)",borderColor:"rgba(155, 89, 182, 0.3)",textColor:"#9b59b6"}},{default:()=>[l("自定义")]})}},{title:"游戏显示位置",minWidth:150,key:"game_gravity",render(n,e){return t(c("n-tag"),{dashed:!0,type:S[n.game_gravity].color},{default:()=>[S[n.game_gravity].label]})}},{title:"操作",minWidth:100,key:"setting",render(n,e){const o={icon:Ye};return t(c("n-button"),{onClick:()=>_(n),size:"small",strong:!0,dashed:!0,type:"info"},{default:()=>[l("管理")],...o})}}]}return(n,e)=>{const o=c("n-alert"),i=c("n-dropdown"),w=c("n-input-group"),R=c("n-card"),O=c("n-data-table");return M(),H(oe,null,[F("main",tt,[F("div",ut,[F("div",ot,[e[10]||(e[10]=F("h3",{class:Z("text-base font-semibold leading-7")},[F("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r diff --git a/module_src/webroot/assets/GameTurboConfig-DVUS_Z7q.js b/module_src/webroot/assets/GameTurboConfig-DXP5o1B3.js similarity index 96% rename from module_src/webroot/assets/GameTurboConfig-DVUS_Z7q.js rename to module_src/webroot/assets/GameTurboConfig-DXP5o1B3.js index d1e18a7f..5b87c125 100644 --- a/module_src/webroot/assets/GameTurboConfig-DVUS_Z7q.js +++ b/module_src/webroot/assets/GameTurboConfig-DXP5o1B3.js @@ -1 +1 @@ -import{ae as _,af as f,d as x,y as v,h as b,i as h,j as y,o as k,k as w,g as t,n as m,l as u,m as a,b as r,e as g,f as C,s as d,v as M,x as P}from"./index-BmNUNV6O.js";async function D(n){return _(new Promise(async(o,i)=>{{const{errno:l,stdout:s,stderr:e}=await f(`/data/adb/modules/MIUI_MagicWindow+/common/utils/sq ${n}`);l?i(e):o(s)}}),`sq ${n}`)}const S={class:"game-turbo-config"},T={class:"mt-5"},$={class:"px-4 sm:px-0"},q={class:"flex"},I=x({__name:"GameTurboConfig",setup(n){v();const o=b(),i=h(()=>({theme:o.isDarkMode?M:P}));y(["message"],{configProviderProps:i});function l(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/'/g,"\\'")}return k(()=>{D(l('@teg_config | .rules | .rule_content | sort_by(.rule_version-) | where(.rule_module == "booster_config") | .[0]')).then(s=>{console.log(s,"res")},s=>{console.log(s,"err")})}),(s,e)=>{const c=g("n-button"),p=g("n-card");return C(),w("div",S,[t("div",T,[t("div",$,[t("h3",{class:m(`text-base font-semibold leading-7 ${u(o).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏云控配置 ",2),t("p",{class:m(`mt-1 max-w-2xl text-sm leading-6 ${u(o).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 在这里可以查看小米的部分云控节点配置 ",2)]),a(p,{bordered:!0,class:"mt-3",size:"small"},{default:r(()=>[t("div",q,[a(c,{class:"mr-3",type:"info"},{default:r(()=>e[0]||(e[0]=[d("测试按钮1")])),_:1}),a(c,{class:"mr-3",type:"error"},{default:r(()=>e[1]||(e[1]=[d("测试按钮2")])),_:1}),a(c,{class:"mr-3",type:"success"},{default:r(()=>e[2]||(e[2]=[d("测试按钮3")])),_:1})]),e[3]||(e[3]=t("div",null,null,-1))]),_:1})])])}}});export{I as default}; +import{ae as _,af as f,d as x,y as v,h as b,i as h,j as y,o as k,k as w,g as t,n as m,l as u,m as a,b as r,e as g,f as C,s as d,v as M,x as P}from"./index-B38pBnVb.js";async function D(n){return _(new Promise(async(o,i)=>{{const{errno:l,stdout:s,stderr:e}=await f(`/data/adb/modules/MIUI_MagicWindow+/common/utils/sq ${n}`);l?i(e):o(s)}}),`sq ${n}`)}const S={class:"game-turbo-config"},T={class:"mt-5"},$={class:"px-4 sm:px-0"},q={class:"flex"},I=x({__name:"GameTurboConfig",setup(n){v();const o=b(),i=h(()=>({theme:o.isDarkMode?M:P}));y(["message"],{configProviderProps:i});function l(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/'/g,"\\'")}return k(()=>{D(l('@teg_config | .rules | .rule_content | sort_by(.rule_version-) | where(.rule_module == "booster_config") | .[0]')).then(s=>{console.log(s,"res")},s=>{console.log(s,"err")})}),(s,e)=>{const c=g("n-button"),p=g("n-card");return C(),w("div",S,[t("div",T,[t("div",$,[t("h3",{class:m(`text-base font-semibold leading-7 ${u(o).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏云控配置 ",2),t("p",{class:m(`mt-1 max-w-2xl text-sm leading-6 ${u(o).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 在这里可以查看小米的部分云控节点配置 ",2)]),a(p,{bordered:!0,class:"mt-3",size:"small"},{default:r(()=>[t("div",q,[a(c,{class:"mr-3",type:"info"},{default:r(()=>e[0]||(e[0]=[d("测试按钮1")])),_:1}),a(c,{class:"mr-3",type:"error"},{default:r(()=>e[1]||(e[1]=[d("测试按钮2")])),_:1}),a(c,{class:"mr-3",type:"success"},{default:r(()=>e[2]||(e[2]=[d("测试按钮3")])),_:1})]),e[3]||(e[3]=t("div",null,null,-1))]),_:1})])])}}});export{I as default}; diff --git a/module_src/webroot/assets/HappyNewYearEgg-DHD1Eoqi.js b/module_src/webroot/assets/HappyNewYearEgg-DMVRILz4.js similarity index 97% rename from module_src/webroot/assets/HappyNewYearEgg-DHD1Eoqi.js rename to module_src/webroot/assets/HappyNewYearEgg-DMVRILz4.js index 1e5becaf..6c4a7838 100644 --- a/module_src/webroot/assets/HappyNewYearEgg-DHD1Eoqi.js +++ b/module_src/webroot/assets/HappyNewYearEgg-DMVRILz4.js @@ -1 +1 @@ -import{d as p,h as e,i as n,j as o,k as l,aH as c,f as d,v as m,x as r}from"./index-BmNUNV6O.js";const i="/images/happy_new_year_banner.jpg",f={class:"mt-5 bg-[#313569]"},E=p({__name:"HappyNewYearEgg",setup(x){const t=e(),a=n(()=>({theme:t.isDarkMode?m:r}));return o(["message","modal","notification"],{configProviderProps:a}),(b,s)=>(d(),l("div",f,s[0]||(s[0]=[c('<img src="'+i+'"><div class="min-h-[100vh] h-full text-white lg:text-lg md:text-md text-sm text-center mx-2 pb-20"><p class="mt-8">年从节换,新岁已至,转眼已经迎来了<span class="text-[#E9D1A1] font-bold">「2025」</span>年。</p><p class="mt-8"><span class="text-[#E9D1A1] font-bold">「2024年3月31日」</span>,我正式接手<span class="text-[#E9D1A1] font-bold">「完美横屏应用计划」</span></p><p class="mt-8">至今,新版<span class="text-[#E9D1A1] font-bold">「完美横屏应用计划」</span>共陪伴了大家<span class="text-[#E9D1A1] font-bold">「246」</span>天。</p><p class="mt-8">诞生了<span class="text-[#E9D1A1] font-bold">「2907」</span>个提交和<span class="text-[#E9D1A1] font-bold">「683」</span>个版本。</p><p class="mt-8">你们对<span class="text-[#E9D1A1] font-bold">「完美横屏应用计划」</span>的认可,也是我维护下去的动力!</p><p class="mt-8">不管何时何地,<span class="text-[#E9D1A1] font-bold">「遇见你们都是我最美好的事」</span>,感谢大家的一路相伴。</p><p class="mt-8">愿<span class="text-[#E9D1A1] font-bold">「新年胜旧年」</span>,多喜乐,长安宁。</p><p class="mt-8">年年皆胜意,岁岁皆欢愉,祝大家<span class="text-[#E9D1A1] font-bold">「新年快乐」</span>!</p><p class="mt-8">十分感谢所有给<span class="text-[#E9D1A1] font-bold">「完美横屏应用计划」</span>打赏给予认可的酷友。</p><p class="mt-8">最后感谢<span class="text-[#E9D1A1] font-bold">「柚稚的孩纸」</span>、<span class="text-[#E9D1A1] font-bold">「Kirara」</span>和<span class="text-[#E9D1A1] font-bold">「御坂初琴」</span>给我提供了不少的帮助!</p><p class="mt-20"><span class="text-[#E9D1A1] font-bold">「2025年1月1日」 By 做梦书 致辞</span></p></div>',2)])))}});export{E as default}; +import{d as p,h as e,i as n,j as o,k as l,aH as c,f as d,v as m,x as r}from"./index-B38pBnVb.js";const i="/images/happy_new_year_banner.jpg",f={class:"mt-5 bg-[#313569]"},E=p({__name:"HappyNewYearEgg",setup(x){const t=e(),a=n(()=>({theme:t.isDarkMode?m:r}));return o(["message","modal","notification"],{configProviderProps:a}),(b,s)=>(d(),l("div",f,s[0]||(s[0]=[c('<img src="'+i+'"><div class="min-h-[100vh] h-full text-white lg:text-lg md:text-md text-sm text-center mx-2 pb-20"><p class="mt-8">年从节换,新岁已至,转眼已经迎来了<span class="text-[#E9D1A1] font-bold">「2025」</span>年。</p><p class="mt-8"><span class="text-[#E9D1A1] font-bold">「2024年3月31日」</span>,我正式接手<span class="text-[#E9D1A1] font-bold">「完美横屏应用计划」</span></p><p class="mt-8">至今,新版<span class="text-[#E9D1A1] font-bold">「完美横屏应用计划」</span>共陪伴了大家<span class="text-[#E9D1A1] font-bold">「246」</span>天。</p><p class="mt-8">诞生了<span class="text-[#E9D1A1] font-bold">「2907」</span>个提交和<span class="text-[#E9D1A1] font-bold">「683」</span>个版本。</p><p class="mt-8">你们对<span class="text-[#E9D1A1] font-bold">「完美横屏应用计划」</span>的认可,也是我维护下去的动力!</p><p class="mt-8">不管何时何地,<span class="text-[#E9D1A1] font-bold">「遇见你们都是我最美好的事」</span>,感谢大家的一路相伴。</p><p class="mt-8">愿<span class="text-[#E9D1A1] font-bold">「新年胜旧年」</span>,多喜乐,长安宁。</p><p class="mt-8">年年皆胜意,岁岁皆欢愉,祝大家<span class="text-[#E9D1A1] font-bold">「新年快乐」</span>!</p><p class="mt-8">十分感谢所有给<span class="text-[#E9D1A1] font-bold">「完美横屏应用计划」</span>打赏给予认可的酷友。</p><p class="mt-8">最后感谢<span class="text-[#E9D1A1] font-bold">「柚稚的孩纸」</span>、<span class="text-[#E9D1A1] font-bold">「Kirara」</span>和<span class="text-[#E9D1A1] font-bold">「御坂初琴」</span>给我提供了不少的帮助!</p><p class="mt-20"><span class="text-[#E9D1A1] font-bold">「2025年1月1日」 By 做梦书 致辞</span></p></div>',2)])))}});export{E as default}; diff --git a/module_src/webroot/assets/LogView-DRJfJdVP.js b/module_src/webroot/assets/LogView-BZmNKDND.js similarity index 99% rename from module_src/webroot/assets/LogView-DRJfJdVP.js rename to module_src/webroot/assets/LogView-BZmNKDND.js index 772e2608..e24e3a8d 100644 --- a/module_src/webroot/assets/LogView-DRJfJdVP.js +++ b/module_src/webroot/assets/LogView-BZmNKDND.js @@ -1,2 +1,2 @@ -import{f as se,k as ie,g as A,d as ct,y as at,h as lt,i as ut,j as ft,r as gt,o as ht,z as dt,n as fe,l as m,m as N,b as C,e as ee,s as $,A as pt,v as bt,x as Et,B as _t,C as wt}from"./index-BmNUNV6O.js";function xt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Mt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function yt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})])}function Ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ie(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const s=e[t],u=typeof s;(u==="object"||u==="function")&&!Object.isFrozen(s)&&Ie(s)}),e}class Se{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Be(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function j(e,...t){const s=Object.create(null);for(const u in e)s[u]=e[u];return t.forEach(function(u){for(const b in u)s[b]=u[b]}),s}const Rt="</span>",ke=e=>!!e.scope,St=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const s=e.split(".");return[`${t}${s.shift()}`,...s.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class kt{constructor(t,s){this.buffer="",this.classPrefix=s.classPrefix,t.walk(this)}addText(t){this.buffer+=Be(t)}openNode(t){if(!ke(t))return;const s=St(t.scope,{prefix:this.classPrefix});this.span(s)}closeNode(t){ke(t)&&(this.buffer+=Rt)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Ne=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class he{constructor(){this.rootNode=Ne(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const s=Ne({scope:t});this.add(s),this.stack.push(s)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,s){return typeof s=="string"?t.addText(s):s.children&&(t.openNode(s),s.children.forEach(u=>this._walk(t,u)),t.closeNode(s)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(s=>typeof s=="string")?t.children=[t.children.join("")]:t.children.forEach(s=>{he._collapse(s)}))}}class Nt extends he{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,s){const u=t.root;s&&(u.scope=`language:${s}`),this.add(u)}toHTML(){return new kt(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function X(e){return e?typeof e=="string"?e:e.source:null}function Le(e){return F("(?=",e,")")}function vt(e){return F("(?:",e,")*")}function At(e){return F("(?:",e,")?")}function F(...e){return e.map(s=>X(s)).join("")}function Tt(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function de(...e){return"("+(Tt(e).capture?"":"?:")+e.map(u=>X(u)).join("|")+")"}function me(e){return new RegExp(e.toString()+"|").exec("").length-1}function Dt(e,t){const s=e&&e.exec(t);return s&&s.index===0}const Ct=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pe(e,{joinWith:t}){let s=0;return e.map(u=>{s+=1;const b=s;let _=X(u),o="";for(;_.length>0;){const r=Ct.exec(_);if(!r){o+=_;break}o+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?o+="\\"+String(Number(r[1])+b):(o+=r[0],r[0]==="("&&s++)}return o}).map(u=>`(${u})`).join(t)}const It=/\b\B/,je="[a-zA-Z]\\w*",be="[a-zA-Z_]\\w*",Pe="\\b\\d+(\\.\\d+)?",He="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$e="\\b(0b[01]+)",Bt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Lt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=F(t,/.*\b/,e.binary,/\b.*/)),j({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(s,u)=>{s.index!==0&&u.ignoreMatch()}},e)},V={begin:"\\\\[\\s\\S]",relevance:0},mt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[V]},jt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[V]},Pt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},re=function(e,t,s={}){const u=j({scope:"comment",begin:e,end:t,contains:[]},s);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=de("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:F(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Ht=re("//","$"),$t=re("/\\*","\\*/"),Ut=re("#","$"),Ft={scope:"number",begin:Pe,relevance:0},Gt={scope:"number",begin:He,relevance:0},Wt={scope:"number",begin:$e,relevance:0},zt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[V,{begin:/\[/,end:/\]/,relevance:0,contains:[V]}]},Kt={scope:"title",begin:je,relevance:0},Xt={scope:"title",begin:be,relevance:0},Vt={begin:"\\.\\s*"+be,relevance:0},Zt=function(e){return Object.assign(e,{"on:begin":(t,s)=>{s.data._beginMatch=t[1]},"on:end":(t,s)=>{s.data._beginMatch!==t[1]&&s.ignoreMatch()}})};var te=Object.freeze({__proto__:null,APOS_STRING_MODE:mt,BACKSLASH_ESCAPE:V,BINARY_NUMBER_MODE:Wt,BINARY_NUMBER_RE:$e,COMMENT:re,C_BLOCK_COMMENT_MODE:$t,C_LINE_COMMENT_MODE:Ht,C_NUMBER_MODE:Gt,C_NUMBER_RE:He,END_SAME_AS_BEGIN:Zt,HASH_COMMENT_MODE:Ut,IDENT_RE:je,MATCH_NOTHING_RE:It,METHOD_GUARD:Vt,NUMBER_MODE:Ft,NUMBER_RE:Pe,PHRASAL_WORDS_MODE:Pt,QUOTE_STRING_MODE:jt,REGEXP_MODE:zt,RE_STARTERS_RE:Bt,SHEBANG:Lt,TITLE_MODE:Kt,UNDERSCORE_IDENT_RE:be,UNDERSCORE_TITLE_MODE:Xt});function Yt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Jt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function qt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Yt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Qt(e,t){Array.isArray(e.illegal)&&(e.illegal=de(...e.illegal))}function en(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function tn(e,t){e.relevance===void 0&&(e.relevance=1)}const nn=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const s=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=s.keywords,e.begin=F(s.beforeMatch,Le(s.begin)),e.starts={relevance:0,contains:[Object.assign(s,{endsParent:!0})]},e.relevance=0,delete s.beforeMatch},sn=["of","and","for","in","not","or","if","then","parent","list","value"],rn="keyword";function Ue(e,t,s=rn){const u=Object.create(null);return typeof e=="string"?b(s,e.split(" ")):Array.isArray(e)?b(s,e):Object.keys(e).forEach(function(_){Object.assign(u,Ue(e[_],t,_))}),u;function b(_,o){t&&(o=o.map(r=>r.toLowerCase())),o.forEach(function(r){const l=r.split("|");u[l[0]]=[_,on(l[0],l[1])]})}}function on(e,t){return t?Number(t):cn(e)?0:1}function cn(e){return sn.includes(e.toLowerCase())}const ve={},U=e=>{console.error(e)},Ae=(e,...t)=>{console.log(`WARN: ${e}`,...t)},W=(e,t)=>{ve[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ve[`${e}/${t}`]=!0)},ne=new Error;function Fe(e,t,{key:s}){let u=0;const b=e[s],_={},o={};for(let r=1;r<=t.length;r++)o[r+u]=b[r],_[r+u]=!0,u+=me(t[r-1]);e[s]=o,e[s]._emit=_,e[s]._multi=!0}function an(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ne;if(typeof e.beginScope!="object"||e.beginScope===null)throw U("beginScope must be object"),ne;Fe(e,e.begin,{key:"beginScope"}),e.begin=pe(e.begin,{joinWith:""})}}function ln(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ne;if(typeof e.endScope!="object"||e.endScope===null)throw U("endScope must be object"),ne;Fe(e,e.end,{key:"endScope"}),e.end=pe(e.end,{joinWith:""})}}function un(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function fn(e){un(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),an(e),ln(e)}function gn(e){function t(o,r){return new RegExp(X(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class s{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=me(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(pe(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const M=l.findIndex((P,R)=>R>0&&P!==void 0),x=this.matchIndexes[M];return l.splice(0,M),Object.assign(l,x)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new s;return this.rules.slice(r).forEach(([M,x])=>l.addRule(M,x)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let M=l.exec(r);if(this.resumingScanAtSamePosition()&&!(M&&M.index===this.lastIndex)){const x=this.getMatcher(0);x.lastIndex=this.lastIndex+1,M=x.exec(r)}return M&&(this.regexIndex+=M.position+1,this.regexIndex===this.count&&this.considerAll()),M}}function b(o){const r=new u;return o.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&r.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&r.addRule(o.illegal,{type:"illegal"}),r}function _(o,r){const l=o;if(o.isCompiled)return l;[Jt,en,fn,nn].forEach(x=>x(o,r)),e.compilerExtensions.forEach(x=>x(o,r)),o.__beforeBegin=null,[qt,Qt,tn].forEach(x=>x(o,r)),o.isCompiled=!0;let M=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),M=o.keywords.$pattern,delete o.keywords.$pattern),M=M||/\w+/,o.keywords&&(o.keywords=Ue(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(M,!0),r&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=X(l.end)||"",o.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+r.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(x){return hn(x==="self"?o:x)})),o.contains.forEach(function(x){_(x,l)}),o.starts&&_(o.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=j(e.classNameAliases||{}),_(e)}function Ge(e){return e?e.endsWithParent||Ge(e.starts):!1}function hn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return j(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ge(e)?j(e,{starts:e.starts?j(e.starts):null}):Object.isFrozen(e)?j(e):e}var dn="11.10.0";class pn extends Error{constructor(t,s){super(t),this.name="HTMLInjectionError",this.html=s}}const ge=Be,Te=j,De=Symbol("nomatch"),bn=7,We=function(e){const t=Object.create(null),s=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Nt};function l(n){return r.noHighlightRe.test(n)}function M(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const p=B(h[1]);return p||(Ae(_.replace("{}",h[1])),Ae("Falling back to no-highlight mode for this block.",n)),p?h[1]:"no-highlight"}return a.split(/\s+/).find(p=>l(p)||B(p))}function x(n,a,h){let p="",y="";typeof a=="object"?(p=n,h=a.ignoreIllegals,y=a.language):(W("10.7.0","highlight(lang, code, ...args) has been deprecated."),W("10.7.0",`Please use highlight(code, options) instead. +import{f as se,k as ie,g as A,d as ct,y as at,h as lt,i as ut,j as ft,r as gt,o as ht,z as dt,n as fe,l as m,m as N,b as C,e as ee,s as $,A as pt,v as bt,x as Et,B as _t,C as wt}from"./index-B38pBnVb.js";function xt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Mt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function yt(e,t){return se(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[A("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"})])}function Ot(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ie(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const s=e[t],u=typeof s;(u==="object"||u==="function")&&!Object.isFrozen(s)&&Ie(s)}),e}class Se{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Be(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function j(e,...t){const s=Object.create(null);for(const u in e)s[u]=e[u];return t.forEach(function(u){for(const b in u)s[b]=u[b]}),s}const Rt="</span>",ke=e=>!!e.scope,St=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const s=e.split(".");return[`${t}${s.shift()}`,...s.map((u,b)=>`${u}${"_".repeat(b+1)}`)].join(" ")}return`${t}${e}`};class kt{constructor(t,s){this.buffer="",this.classPrefix=s.classPrefix,t.walk(this)}addText(t){this.buffer+=Be(t)}openNode(t){if(!ke(t))return;const s=St(t.scope,{prefix:this.classPrefix});this.span(s)}closeNode(t){ke(t)&&(this.buffer+=Rt)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Ne=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class he{constructor(){this.rootNode=Ne(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const s=Ne({scope:t});this.add(s),this.stack.push(s)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,s){return typeof s=="string"?t.addText(s):s.children&&(t.openNode(s),s.children.forEach(u=>this._walk(t,u)),t.closeNode(s)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(s=>typeof s=="string")?t.children=[t.children.join("")]:t.children.forEach(s=>{he._collapse(s)}))}}class Nt extends he{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,s){const u=t.root;s&&(u.scope=`language:${s}`),this.add(u)}toHTML(){return new kt(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function X(e){return e?typeof e=="string"?e:e.source:null}function Le(e){return F("(?=",e,")")}function vt(e){return F("(?:",e,")*")}function At(e){return F("(?:",e,")?")}function F(...e){return e.map(s=>X(s)).join("")}function Tt(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function de(...e){return"("+(Tt(e).capture?"":"?:")+e.map(u=>X(u)).join("|")+")"}function me(e){return new RegExp(e.toString()+"|").exec("").length-1}function Dt(e,t){const s=e&&e.exec(t);return s&&s.index===0}const Ct=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pe(e,{joinWith:t}){let s=0;return e.map(u=>{s+=1;const b=s;let _=X(u),o="";for(;_.length>0;){const r=Ct.exec(_);if(!r){o+=_;break}o+=_.substring(0,r.index),_=_.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?o+="\\"+String(Number(r[1])+b):(o+=r[0],r[0]==="("&&s++)}return o}).map(u=>`(${u})`).join(t)}const It=/\b\B/,je="[a-zA-Z]\\w*",be="[a-zA-Z_]\\w*",Pe="\\b\\d+(\\.\\d+)?",He="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$e="\\b(0b[01]+)",Bt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Lt=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=F(t,/.*\b/,e.binary,/\b.*/)),j({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(s,u)=>{s.index!==0&&u.ignoreMatch()}},e)},V={begin:"\\\\[\\s\\S]",relevance:0},mt={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[V]},jt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[V]},Pt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},re=function(e,t,s={}){const u=j({scope:"comment",begin:e,end:t,contains:[]},s);u.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const b=de("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return u.contains.push({begin:F(/[ ]+/,"(",b,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),u},Ht=re("//","$"),$t=re("/\\*","\\*/"),Ut=re("#","$"),Ft={scope:"number",begin:Pe,relevance:0},Gt={scope:"number",begin:He,relevance:0},Wt={scope:"number",begin:$e,relevance:0},zt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[V,{begin:/\[/,end:/\]/,relevance:0,contains:[V]}]},Kt={scope:"title",begin:je,relevance:0},Xt={scope:"title",begin:be,relevance:0},Vt={begin:"\\.\\s*"+be,relevance:0},Zt=function(e){return Object.assign(e,{"on:begin":(t,s)=>{s.data._beginMatch=t[1]},"on:end":(t,s)=>{s.data._beginMatch!==t[1]&&s.ignoreMatch()}})};var te=Object.freeze({__proto__:null,APOS_STRING_MODE:mt,BACKSLASH_ESCAPE:V,BINARY_NUMBER_MODE:Wt,BINARY_NUMBER_RE:$e,COMMENT:re,C_BLOCK_COMMENT_MODE:$t,C_LINE_COMMENT_MODE:Ht,C_NUMBER_MODE:Gt,C_NUMBER_RE:He,END_SAME_AS_BEGIN:Zt,HASH_COMMENT_MODE:Ut,IDENT_RE:je,MATCH_NOTHING_RE:It,METHOD_GUARD:Vt,NUMBER_MODE:Ft,NUMBER_RE:Pe,PHRASAL_WORDS_MODE:Pt,QUOTE_STRING_MODE:jt,REGEXP_MODE:zt,RE_STARTERS_RE:Bt,SHEBANG:Lt,TITLE_MODE:Kt,UNDERSCORE_IDENT_RE:be,UNDERSCORE_TITLE_MODE:Xt});function Yt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Jt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function qt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Yt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Qt(e,t){Array.isArray(e.illegal)&&(e.illegal=de(...e.illegal))}function en(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function tn(e,t){e.relevance===void 0&&(e.relevance=1)}const nn=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const s=Object.assign({},e);Object.keys(e).forEach(u=>{delete e[u]}),e.keywords=s.keywords,e.begin=F(s.beforeMatch,Le(s.begin)),e.starts={relevance:0,contains:[Object.assign(s,{endsParent:!0})]},e.relevance=0,delete s.beforeMatch},sn=["of","and","for","in","not","or","if","then","parent","list","value"],rn="keyword";function Ue(e,t,s=rn){const u=Object.create(null);return typeof e=="string"?b(s,e.split(" ")):Array.isArray(e)?b(s,e):Object.keys(e).forEach(function(_){Object.assign(u,Ue(e[_],t,_))}),u;function b(_,o){t&&(o=o.map(r=>r.toLowerCase())),o.forEach(function(r){const l=r.split("|");u[l[0]]=[_,on(l[0],l[1])]})}}function on(e,t){return t?Number(t):cn(e)?0:1}function cn(e){return sn.includes(e.toLowerCase())}const ve={},U=e=>{console.error(e)},Ae=(e,...t)=>{console.log(`WARN: ${e}`,...t)},W=(e,t)=>{ve[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ve[`${e}/${t}`]=!0)},ne=new Error;function Fe(e,t,{key:s}){let u=0;const b=e[s],_={},o={};for(let r=1;r<=t.length;r++)o[r+u]=b[r],_[r+u]=!0,u+=me(t[r-1]);e[s]=o,e[s]._emit=_,e[s]._multi=!0}function an(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ne;if(typeof e.beginScope!="object"||e.beginScope===null)throw U("beginScope must be object"),ne;Fe(e,e.begin,{key:"beginScope"}),e.begin=pe(e.begin,{joinWith:""})}}function ln(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ne;if(typeof e.endScope!="object"||e.endScope===null)throw U("endScope must be object"),ne;Fe(e,e.end,{key:"endScope"}),e.end=pe(e.end,{joinWith:""})}}function un(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function fn(e){un(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),an(e),ln(e)}function gn(e){function t(o,r){return new RegExp(X(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class s{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,r]),this.matchAt+=me(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(l=>l[1]);this.matcherRe=t(pe(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(r);if(!l)return null;const M=l.findIndex((P,R)=>R>0&&P!==void 0),x=this.matchIndexes[M];return l.splice(0,M),Object.assign(l,x)}}class u{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const l=new s;return this.rules.slice(r).forEach(([M,x])=>l.addRule(M,x)),l.compile(),this.multiRegexes[r]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,l){this.rules.push([r,l]),l.type==="begin"&&this.count++}exec(r){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let M=l.exec(r);if(this.resumingScanAtSamePosition()&&!(M&&M.index===this.lastIndex)){const x=this.getMatcher(0);x.lastIndex=this.lastIndex+1,M=x.exec(r)}return M&&(this.regexIndex+=M.position+1,this.regexIndex===this.count&&this.considerAll()),M}}function b(o){const r=new u;return o.contains.forEach(l=>r.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&r.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&r.addRule(o.illegal,{type:"illegal"}),r}function _(o,r){const l=o;if(o.isCompiled)return l;[Jt,en,fn,nn].forEach(x=>x(o,r)),e.compilerExtensions.forEach(x=>x(o,r)),o.__beforeBegin=null,[qt,Qt,tn].forEach(x=>x(o,r)),o.isCompiled=!0;let M=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),M=o.keywords.$pattern,delete o.keywords.$pattern),M=M||/\w+/,o.keywords&&(o.keywords=Ue(o.keywords,e.case_insensitive)),l.keywordPatternRe=t(M,!0),r&&(o.begin||(o.begin=/\B|\b/),l.beginRe=t(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=t(l.end)),l.terminatorEnd=X(l.end)||"",o.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+r.terminatorEnd)),o.illegal&&(l.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(x){return hn(x==="self"?o:x)})),o.contains.forEach(function(x){_(x,l)}),o.starts&&_(o.starts,r),l.matcher=b(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=j(e.classNameAliases||{}),_(e)}function Ge(e){return e?e.endsWithParent||Ge(e.starts):!1}function hn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return j(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ge(e)?j(e,{starts:e.starts?j(e.starts):null}):Object.isFrozen(e)?j(e):e}var dn="11.10.0";class pn extends Error{constructor(t,s){super(t),this.name="HTMLInjectionError",this.html=s}}const ge=Be,Te=j,De=Symbol("nomatch"),bn=7,We=function(e){const t=Object.create(null),s=Object.create(null),u=[];let b=!0;const _="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Nt};function l(n){return r.noHighlightRe.test(n)}function M(n){let a=n.className+" ";a+=n.parentNode?n.parentNode.className:"";const h=r.languageDetectRe.exec(a);if(h){const p=B(h[1]);return p||(Ae(_.replace("{}",h[1])),Ae("Falling back to no-highlight mode for this block.",n)),p?h[1]:"no-highlight"}return a.split(/\s+/).find(p=>l(p)||B(p))}function x(n,a,h){let p="",y="";typeof a=="object"?(p=n,h=a.ignoreIllegals,y=a.language):(W("10.7.0","highlight(lang, code, ...args) has been deprecated."),W("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),y=n,p=a),h===void 0&&(h=!0);const v={code:p,language:y};Y("before:highlight",v);const L=v.result?v.result:P(v.language,v.code,h);return L.code=v.code,Y("after:highlight",L),L}function P(n,a,h,p){const y=Object.create(null);function v(i,c){return i.keywords[c]}function L(){if(!f.keywords){O.addText(E);return}let i=0;f.keywordPatternRe.lastIndex=0;let c=f.keywordPatternRe.exec(E),g="";for(;c;){g+=E.substring(i,c.index);const d=D.case_insensitive?c[0].toLowerCase():c[0],S=v(f,d);if(S){const[I,rt]=S;if(O.addText(g),g="",y[d]=(y[d]||0)+1,y[d]<=bn&&(Q+=rt),I.startsWith("_"))g+=c[0];else{const ot=D.classNameAliases[I]||I;T(c[0],ot)}}else g+=c[0];i=f.keywordPatternRe.lastIndex,c=f.keywordPatternRe.exec(E)}g+=E.substring(i),O.addText(g)}function J(){if(E==="")return;let i=null;if(typeof f.subLanguage=="string"){if(!t[f.subLanguage]){O.addText(E);return}i=P(f.subLanguage,E,!0,Re[f.subLanguage]),Re[f.subLanguage]=i._top}else i=w(E,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(Q+=i.relevance),O.__addSublanguage(i._emitter,i.language)}function k(){f.subLanguage!=null?J():L(),E=""}function T(i,c){i!==""&&(O.startScope(c),O.addText(i),O.endScope())}function xe(i,c){let g=1;const d=c.length-1;for(;g<=d;){if(!i._emit[g]){g++;continue}const S=D.classNameAliases[i[g]]||i[g],I=c[g];S?T(I,S):(E=I,L(),E=""),g++}}function Me(i,c){return i.scope&&typeof i.scope=="string"&&O.openNode(D.classNameAliases[i.scope]||i.scope),i.beginScope&&(i.beginScope._wrap?(T(E,D.classNameAliases[i.beginScope._wrap]||i.beginScope._wrap),E=""):i.beginScope._multi&&(xe(i.beginScope,c),E="")),f=Object.create(i,{parent:{value:f}}),f}function ye(i,c,g){let d=Dt(i.endRe,g);if(d){if(i["on:end"]){const S=new Se(i);i["on:end"](c,S),S.isMatchIgnored&&(d=!1)}if(d){for(;i.endsParent&&i.parent;)i=i.parent;return i}}if(i.endsWithParent)return ye(i.parent,c,g)}function et(i){return f.matcher.regexIndex===0?(E+=i[0],1):(ue=!0,0)}function tt(i){const c=i[0],g=i.rule,d=new Se(g),S=[g.__beforeBegin,g["on:begin"]];for(const I of S)if(I&&(I(i,d),d.isMatchIgnored))return et(c);return g.skip?E+=c:(g.excludeBegin&&(E+=c),k(),!g.returnBegin&&!g.excludeBegin&&(E=c)),Me(g,i),g.returnBegin?0:c.length}function nt(i){const c=i[0],g=a.substring(i.index),d=ye(f,i,g);if(!d)return De;const S=f;f.endScope&&f.endScope._wrap?(k(),T(c,f.endScope._wrap)):f.endScope&&f.endScope._multi?(k(),xe(f.endScope,i)):S.skip?E+=c:(S.returnEnd||S.excludeEnd||(E+=c),k(),S.excludeEnd&&(E=c));do f.scope&&O.closeNode(),!f.skip&&!f.subLanguage&&(Q+=f.relevance),f=f.parent;while(f!==d.parent);return d.starts&&Me(d.starts,i),S.returnEnd?0:c.length}function st(){const i=[];for(let c=f;c!==D;c=c.parent)c.scope&&i.unshift(c.scope);i.forEach(c=>O.openNode(c))}let q={};function Oe(i,c){const g=c&&c[0];if(E+=i,g==null)return k(),0;if(q.type==="begin"&&c.type==="end"&&q.index===c.index&&g===""){if(E+=a.slice(c.index,c.index+1),!b){const d=new Error(`0 width match regex (${n})`);throw d.languageName=n,d.badRule=q.rule,d}return 1}if(q=c,c.type==="begin")return tt(c);if(c.type==="illegal"&&!h){const d=new Error('Illegal lexeme "'+g+'" for mode "'+(f.scope||"<unnamed>")+'"');throw d.mode=f,d}else if(c.type==="end"){const d=nt(c);if(d!==De)return d}if(c.type==="illegal"&&g==="")return 1;if(le>1e5&&le>c.index*3)throw new Error("potential infinite loop, way more iterations than matches");return E+=g,g.length}const D=B(n);if(!D)throw U(_.replace("{}",n)),new Error('Unknown language: "'+n+'"');const it=gn(D);let ae="",f=p||it;const Re={},O=new r.__emitter(r);st();let E="",Q=0,H=0,le=0,ue=!1;try{if(D.__emitTokens)D.__emitTokens(a,O);else{for(f.matcher.considerAll();;){le++,ue?ue=!1:f.matcher.considerAll(),f.matcher.lastIndex=H;const i=f.matcher.exec(a);if(!i)break;const c=a.substring(H,i.index),g=Oe(c,i);H=i.index+g}Oe(a.substring(H))}return O.finalize(),ae=O.toHTML(),{language:n,value:ae,relevance:Q,illegal:!1,_emitter:O,_top:f}}catch(i){if(i.message&&i.message.includes("Illegal"))return{language:n,value:ge(a),illegal:!0,relevance:0,_illegalBy:{message:i.message,index:H,context:a.slice(H-100,H+100),mode:i.mode,resultSoFar:ae},_emitter:O};if(b)return{language:n,value:ge(a),illegal:!1,relevance:0,errorRaised:i,_emitter:O,_top:f};throw i}}function R(n){const a={value:ge(n),illegal:!1,relevance:0,_top:o,_emitter:new r.__emitter(r)};return a._emitter.addText(n),a}function w(n,a){a=a||r.languages||Object.keys(t);const h=R(n),p=a.filter(B).filter(we).map(k=>P(k,n,!1));p.unshift(h);const y=p.sort((k,T)=>{if(k.relevance!==T.relevance)return T.relevance-k.relevance;if(k.language&&T.language){if(B(k.language).supersetOf===T.language)return 1;if(B(T.language).supersetOf===k.language)return-1}return 0}),[v,L]=y,J=v;return J.secondBest=L,J}function G(n,a,h){const p=a&&s[a]||h;n.classList.add("hljs"),n.classList.add(`language-${p}`)}function K(n){let a=null;const h=M(n);if(l(h))return;if(Y("before:highlightElement",{el:n,language:h}),n.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",n);return}if(n.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(n)),r.throwUnescapedHTML))throw new pn("One of your code blocks includes unescaped HTML.",n.innerHTML);a=n;const p=a.textContent,y=h?x(p,{language:h,ignoreIllegals:!0}):w(p);n.innerHTML=y.value,n.dataset.highlighted="yes",G(n,h,y.language),n.result={language:y.language,re:y.relevance,relevance:y.relevance},y.secondBest&&(n.secondBest={language:y.secondBest.language,relevance:y.secondBest.relevance}),Y("after:highlightElement",{el:n,result:y,text:p})}function oe(n){r=Te(r,n)}const ce=()=>{Z(),W("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ze(){Z(),W("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ee=!1;function Z(){if(document.readyState==="loading"){Ee=!0;return}document.querySelectorAll(r.cssSelector).forEach(K)}function Ke(){Ee&&Z()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Ke,!1);function Xe(n,a){let h=null;try{h=a(e)}catch(p){if(U("Language definition for '{}' could not be registered.".replace("{}",n)),b)U(p);else throw p;h=o}h.name||(h.name=n),t[n]=h,h.rawDefinition=a.bind(null,e),h.aliases&&_e(h.aliases,{languageName:n})}function Ve(n){delete t[n];for(const a of Object.keys(s))s[a]===n&&delete s[a]}function Ze(){return Object.keys(t)}function B(n){return n=(n||"").toLowerCase(),t[n]||t[s[n]]}function _e(n,{languageName:a}){typeof n=="string"&&(n=[n]),n.forEach(h=>{s[h.toLowerCase()]=a})}function we(n){const a=B(n);return a&&!a.disableAutodetect}function Ye(n){n["before:highlightBlock"]&&!n["before:highlightElement"]&&(n["before:highlightElement"]=a=>{n["before:highlightBlock"](Object.assign({block:a.el},a))}),n["after:highlightBlock"]&&!n["after:highlightElement"]&&(n["after:highlightElement"]=a=>{n["after:highlightBlock"](Object.assign({block:a.el},a))})}function Je(n){Ye(n),u.push(n)}function qe(n){const a=u.indexOf(n);a!==-1&&u.splice(a,1)}function Y(n,a){const h=n;u.forEach(function(p){p[h]&&p[h](a)})}function Qe(n){return W("10.7.0","highlightBlock will be removed entirely in v12.0"),W("10.7.0","Please use highlightElement now."),K(n)}Object.assign(e,{highlight:x,highlightAuto:w,highlightAll:Z,highlightElement:K,highlightBlock:Qe,configure:oe,initHighlighting:ce,initHighlightingOnLoad:ze,registerLanguage:Xe,unregisterLanguage:Ve,listLanguages:Ze,getLanguage:B,registerAliases:_e,autoDetection:we,inherit:Te,addPlugin:Je,removePlugin:qe}),e.debugMode=function(){b=!1},e.safeMode=function(){b=!0},e.versionString=dn,e.regex={concat:F,lookahead:Le,either:de,optional:At,anyNumberOfTimes:vt};for(const n in te)typeof te[n]=="object"&&Ie(te[n]);return Object.assign(e,te),e},z=We({});z.newInstance=()=>We({});var En=z;z.HighlightJS=z;z.default=z;const Ce=Ot(En),_n={class:"setting"},wn={class:"mt-3"},xn={class:"px-3 sm:px-0"},Mn={class:"flex flex-wrap"},yn={class:"mt-3 border-t border-gray-100"},Rn=ct({__name:"LogView",setup(e){const t=at(),s=lt(),u=ut(()=>({theme:s.isDarkMode?bt:Et})),{message:b,modal:_}=ft(["message","modal"],{configProviderProps:u}),o={name:"log",contains:[{className:"webui-log !text-green-600",begin:"\\[success\\]",end:"$",relevance:10},{className:"webui-log !text-sky-600",begin:"\\[info\\]",end:"$",relevance:10},{className:"webui-log !text-red-600",begin:"\\[error\\]",end:"$",relevance:10}]};Ce.registerLanguage("webui-log",()=>o);const r=gt(null),l=()=>{var R;(R=r.value)==null||R.scrollTo({position:"bottom",silent:!0}),b.info("已到达日志底部~")},M=()=>{var R;(R=r.value)==null||R.scrollTo({position:"top",silent:!0}),b.info("已到达日志顶部~")},x=()=>{t.content="",b.success("清空日志成功~")},P=()=>{const R=new Date().getTime();_t(t.content,R).then(w=>{_.create({title:"保存成功",type:"success",preset:"dialog",content:()=>N("p",null,[$("日志保存成功,日志保存在/data/adb/MIUI_MagicWindow+/logs-"),R,$(".txt")]),negativeText:"确定"})}).catch(w=>{_.create({title:"保存失败",type:"error",preset:"dialog",content:()=>N("p",null,[$("日志保存失败,可能目录没有写入权限,请检查~")]),negativeText:"确定"})})};return ht(()=>{dt(()=>{t.content&&wt(()=>{var R;(R=r.value)==null||R.scrollTo({position:"bottom",silent:!0})})})}),(R,w)=>{const G=ee("n-button"),K=ee("n-log"),oe=ee("n-space"),ce=ee("n-card");return se(),ie("div",_n,[A("div",wn,[A("div",xn,[w[4]||(w[4]=A("h3",{class:fe("text-base font-semibold leading-7")},[A("span",{class:"font-semibold animated-bg bg-clip-text text-transparent",style:{"background-image":"linear-gradient(101.22deg, rgb(255, 182, 133) -18.32%, rgb(255, 111, 29) 7.01%, rgb(252, 181, 232) 41.59%, rgb(135, 148, 255) 70.98%, rgb(60, 112, 255) 91.35%, rgb(60, 112, 255) 110.17%)"}},"日志记录")],-1)),A("p",{class:fe(`mt-1 max-w-2xl text-sm leading-6 ${m(s).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 在这里可以查看本次 Web UI 运行中产生的日志 ",2),A("p",{class:fe(`mt-1 max-w-2xl text-sm leading-6 ${m(s).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 若有影响使用的问题可以通过酷安/Github/模块反馈群上进行反馈 ",2)]),N(ce,{bordered:!0,class:"mt-3",size:"small"},{default:C(()=>[A("div",Mn,[N(G,{class:"mr-3 mb-3",type:"info",onClick:w[0]||(w[0]=()=>{M()})},{icon:C(()=>[N(m(Mt))]),default:C(()=>[w[5]||(w[5]=$(" 回到顶部 "))]),_:1}),N(G,{class:"mr-3 mb-3",type:"error",onClick:w[1]||(w[1]=()=>{l()})},{icon:C(()=>[N(m(xt))]),default:C(()=>[w[6]||(w[6]=$(" 回到底部 "))]),_:1}),N(G,{class:"mr-3 mb-3",type:"success",onClick:w[2]||(w[2]=()=>{x()})},{icon:C(()=>[N(m(pt))]),default:C(()=>[w[7]||(w[7]=$(" 清空日志 "))]),_:1}),N(G,{class:"mr-3 mb-3",type:"warning",onClick:w[3]||(w[3]=()=>{P()})},{icon:C(()=>[N(m(yt))]),default:C(()=>[w[8]||(w[8]=$(" 保存日志 "))]),_:1})]),A("div",yn,[N(oe,{vertical:""},{default:C(()=>[N(K,{hljs:m(Ce),ref_key:"logInstRef",ref:r,row:20,"line-height":"2","font-size":"12",log:m(t).content,language:"webui-log",trim:""},null,8,["hljs","log"])]),_:1})])]),_:1})])])}}});export{Rn as default}; diff --git a/module_src/webroot/assets/ToolsView-DRVZ6Ed-.js b/module_src/webroot/assets/ToolsView-HnojCS-C.js similarity index 95% rename from module_src/webroot/assets/ToolsView-DRVZ6Ed-.js rename to module_src/webroot/assets/ToolsView-HnojCS-C.js index a82abf28..59091d46 100644 --- a/module_src/webroot/assets/ToolsView-DRVZ6Ed-.js +++ b/module_src/webroot/assets/ToolsView-HnojCS-C.js @@ -1,4 +1,4 @@ -import{d,h as c,az as m,aA as p,aB as u,aC as g,S as f,aD as b,i as o,j as y,T as _,aE as x,aF as k,r as s,k as S,g as t,n,l as v,m as h,b as M,e as P,f as D,s as O,v as B,x as T,aG as w}from"./index-BmNUNV6O.js";const A={class:"setting"},C={class:"mt-3"},N={class:"px-3 sm:px-0"},V={class:"mt-3"},F=d({__name:"ToolsView",setup(E){const a=c();m(),p(),u(),g(),f(),b();const r=o(()=>({theme:a.isDarkMode?B:T}));y(["message","modal"],{configProviderProps:r}),_(),x(),k();const i=s([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]);return o(()=>w(i.value,"key")),s(""),s(!1),(R,e)=>{const l=P("n-alert");return D(),S("div",A,[t("div",C,[t("div",N,[e[0]||(e[0]=t("h3",{class:n("text-base font-semibold leading-7")},[t("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r +import{d,h as c,az as m,aA as p,aB as u,aC as g,S as f,aD as b,i as o,j as y,T as _,aE as x,aF as k,r as s,k as S,g as t,n,l as v,m as h,b as M,e as P,f as D,s as O,v as B,x as T,aG as w}from"./index-B38pBnVb.js";const A={class:"setting"},C={class:"mt-3"},N={class:"px-3 sm:px-0"},V={class:"mt-3"},F=d({__name:"ToolsView",setup(E){const a=c();m(),p(),u(),g(),f(),b();const r=o(()=>({theme:a.isDarkMode?B:T}));y(["message","modal"],{configProviderProps:r}),_(),x(),k();const i=s([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]);return o(()=>w(i.value,"key")),s(""),s(!1),(R,e)=>{const l=P("n-alert");return D(),S("div",A,[t("div",C,[t("div",N,[e[0]||(e[0]=t("h3",{class:n("text-base font-semibold leading-7")},[t("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r 101.22deg,\r rgb(255, 182, 133) -18.32%,\r rgb(255, 111, 29) 7.01%,\r diff --git a/module_src/webroot/assets/index-B38pBnVb.js b/module_src/webroot/assets/index-B38pBnVb.js new file mode 100644 index 00000000..6a363b3a --- /dev/null +++ b/module_src/webroot/assets/index-B38pBnVb.js @@ -0,0 +1,4202 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EmbeddedWebView-CMkPuHFE.js","assets/EmbeddedWebView-CvGGpVR8.css","assets/LogView-BZmNKDND.js","assets/LogView-CDMl6FPM.css","assets/GameTurboConfig-DXP5o1B3.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();/** +* @vue/shared v3.5.11 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function zh(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Nt={},Ca=[],Un=()=>{},$6=()=>!1,fd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Oh=e=>e.startsWith("onUpdate:"),ho=Object.assign,Lh=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},P6=Object.prototype.hasOwnProperty,Tt=(e,t)=>P6.call(e,t),ht=Array.isArray,wa=e=>hd(e)==="[object Map]",Vb=e=>hd(e)==="[object Set]",mt=e=>typeof e=="function",eo=e=>typeof e=="string",ti=e=>typeof e=="symbol",Gt=e=>e!==null&&typeof e=="object",jb=e=>(Gt(e)||mt(e))&&mt(e.then)&&mt(e.catch),Wb=Object.prototype.toString,hd=e=>Wb.call(e),M6=e=>hd(e).slice(8,-1),Ub=e=>hd(e)==="[object Object]",Hh=e=>eo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kl=zh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pd=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},A6=/-(\w)/g,vn=pd(e=>e.replace(A6,(t,o)=>o?o.toUpperCase():"")),B6=/\B([A-Z])/g,Wi=pd(e=>e.replace(B6,"-$1").toLowerCase()),md=pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),gc=pd(e=>e?`on${md(e)}`:""),Qr=(e,t)=>!Object.is(e,t),vc=(e,...t)=>{for(let o=0;o<e.length;o++)e[o](...t)},Kb=(e,t,o,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},D6=e=>{const t=parseFloat(e);return isNaN(t)?e:t},T6=e=>{const t=eo(e)?Number(e):NaN;return isNaN(t)?e:t};let Fm;const Gb=()=>Fm||(Fm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gd(e){if(ht(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],r=eo(n)?L6(n):gd(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(eo(e)||Gt(e))return e}const I6=/;(?![^(]*\))/g,z6=/:([^]+)/,O6=/\/\*[^]*?\*\//g;function L6(e){const t={};return e.replace(O6,"").split(I6).forEach(o=>{if(o){const n=o.split(z6);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){let t="";if(eo(e))t=e;else if(ht(e))for(let o=0;o<e.length;o++){const n=ye(e[o]);n&&(t+=n+" ")}else if(Gt(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}function qb(e){if(!e)return null;let{class:t,style:o}=e;return t&&!eo(t)&&(e.class=ye(t)),o&&(e.style=gd(o)),e}const H6="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",N6=zh(H6);function Zb(e){return!!e||e===""}const Xb=e=>!!(e&&e.__v_isRef===!0),it=e=>eo(e)?e:e==null?"":ht(e)||Gt(e)&&(e.toString===Wb||!mt(e.toString))?Xb(e)?it(e.value):JSON.stringify(e,Yb,2):String(e),Yb=(e,t)=>Xb(t)?Yb(e,t.value):wa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,r],i)=>(o[bc(n,i)+" =>"]=r,o),{})}:Vb(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bc(o))}:ti(t)?bc(t):Gt(t)&&!ht(t)&&!Ub(t)?String(t):t,bc=(e,t="")=>{var o;return ti(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};/** +* @vue/reactivity v3.5.11 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let To;class Qb{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=To,!t&&To&&(this.index=(To.scopes||(To.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].pause();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].resume();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].resume()}}run(t){if(this._active){const o=To;try{return To=this,t()}finally{To=o}}}on(){To=this}off(){To=this.parent}stop(t){if(this._active){let o,n;for(o=0,n=this.effects.length;o<n;o++)this.effects[o].stop();for(o=0,n=this.cleanups.length;o<n;o++)this.cleanups[o]();if(this.scopes)for(o=0,n=this.scopes.length;o<n;o++)this.scopes[o].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Jb(e){return new Qb(e)}function e1(){return To}function V6(e,t=!1){To&&To.cleanups.push(e)}let jt;const xc=new WeakSet;class t1{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,To&&To.active&&To.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xc.has(this)&&(xc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||n1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Rm(this),r1(this);const t=jt,o=Rn;jt=this,Rn=!0;try{return this.fn()}finally{i1(this),jt=t,Rn=o,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)jh(t);this.deps=this.depsTail=void 0,Rm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$f(this)&&this.run()}get dirty(){return $f(this)}}let o1=0,_l,Fl;function n1(e,t=!1){if(e.flags|=8,t){e.next=Fl,Fl=e;return}e.next=_l,_l=e}function Nh(){o1++}function Vh(){if(--o1>0)return;if(Fl){let t=Fl;for(Fl=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;_l;){let t=_l;for(_l=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function r1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function i1(e){let t,o=e.depsTail,n=o;for(;n;){const r=n.prevDep;n.version===-1?(n===o&&(o=r),jh(n),j6(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=o}function $f(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl))return;e.globalVersion=Wl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!$f(e)){e.flags&=-3;return}const o=jt,n=Rn;jt=e,Rn=!0;try{r1(e);const r=e.fn(e._value);(t.version===0||Qr(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{jt=o,Rn=n,i1(e),e.flags&=-3}}function jh(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n),!o.subs&&o.computed){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)jh(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function j6(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Rn=!0;const l1=[];function oi(){l1.push(Rn),Rn=!1}function ni(){const e=l1.pop();Rn=e===void 0?!0:e}function Rm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=jt;jt=void 0;try{t()}finally{jt=o}}}let Wl=0;class W6{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wh{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!jt||!Rn||jt===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==jt)o=this.activeLink=new W6(jt,this),jt.deps?(o.prevDep=jt.depsTail,jt.depsTail.nextDep=o,jt.depsTail=o):jt.deps=jt.depsTail=o,s1(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=jt.depsTail,o.nextDep=void 0,jt.depsTail.nextDep=o,jt.depsTail=o,jt.deps===o&&(jt.deps=n)}return o}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){Nh();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{Vh()}}}function s1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)s1(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Hu=new WeakMap,Ri=Symbol(""),Pf=Symbol(""),Ul=Symbol("");function $o(e,t,o){if(Rn&&jt){let n=Hu.get(e);n||Hu.set(e,n=new Map);let r=n.get(o);r||(n.set(o,r=new Wh),r.map=n,r.key=o),r.track()}}function mr(e,t,o,n,r,i){const a=Hu.get(e);if(!a){Wl++;return}const l=s=>{s&&s.trigger()};if(Nh(),t==="clear")a.forEach(l);else{const s=ht(e),u=s&&Hh(o);if(s&&o==="length"){const d=Number(n);a.forEach((c,h)=>{(h==="length"||h===Ul||!ti(h)&&h>=d)&&l(c)})}else switch(o!==void 0&&l(a.get(o)),u&&l(a.get(Ul)),t){case"add":s?u&&l(a.get("length")):(l(a.get(Ri)),wa(e)&&l(a.get(Pf)));break;case"delete":s||(l(a.get(Ri)),wa(e)&&l(a.get(Pf)));break;case"set":wa(e)&&l(a.get(Ri));break}}Vh()}function U6(e,t){const o=Hu.get(e);return o&&o.get(t)}function na(e){const t=Pt(e);return t===e?t:($o(t,"iterate",Ul),gn(e)?t:t.map(Fo))}function vd(e){return $o(e=Pt(e),"iterate",Ul),e}const K6={__proto__:null,[Symbol.iterator](){return yc(this,Symbol.iterator,Fo)},concat(...e){return na(this).concat(...e.map(t=>ht(t)?na(t):t))},entries(){return yc(this,"entries",e=>(e[1]=Fo(e[1]),e))},every(e,t){return ir(this,"every",e,t,void 0,arguments)},filter(e,t){return ir(this,"filter",e,t,o=>o.map(Fo),arguments)},find(e,t){return ir(this,"find",e,t,Fo,arguments)},findIndex(e,t){return ir(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ir(this,"findLast",e,t,Fo,arguments)},findLastIndex(e,t){return ir(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ir(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cc(this,"includes",e)},indexOf(...e){return Cc(this,"indexOf",e)},join(e){return na(this).join(e)},lastIndexOf(...e){return Cc(this,"lastIndexOf",e)},map(e,t){return ir(this,"map",e,t,void 0,arguments)},pop(){return ol(this,"pop")},push(...e){return ol(this,"push",e)},reduce(e,...t){return $m(this,"reduce",e,t)},reduceRight(e,...t){return $m(this,"reduceRight",e,t)},shift(){return ol(this,"shift")},some(e,t){return ir(this,"some",e,t,void 0,arguments)},splice(...e){return ol(this,"splice",e)},toReversed(){return na(this).toReversed()},toSorted(e){return na(this).toSorted(e)},toSpliced(...e){return na(this).toSpliced(...e)},unshift(...e){return ol(this,"unshift",e)},values(){return yc(this,"values",Fo)}};function yc(e,t,o){const n=vd(e),r=n[t]();return n!==e&&!gn(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=o(i.value)),i}),r}const G6=Array.prototype;function ir(e,t,o,n,r,i){const a=vd(e),l=a!==e&&!gn(e),s=a[t];if(s!==G6[t]){const c=s.apply(e,i);return l?Fo(c):c}let u=o;a!==e&&(l?u=function(c,h){return o.call(this,Fo(c),h,e)}:o.length>2&&(u=function(c,h){return o.call(this,c,h,e)}));const d=s.call(a,u,n);return l&&r?r(d):d}function $m(e,t,o,n){const r=vd(e);let i=o;return r!==e&&(gn(e)?o.length>3&&(i=function(a,l,s){return o.call(this,a,l,s,e)}):i=function(a,l,s){return o.call(this,a,Fo(l),s,e)}),r[t](i,...n)}function Cc(e,t,o){const n=Pt(e);$o(n,"iterate",Ul);const r=n[t](...o);return(r===-1||r===!1)&&qh(o[0])?(o[0]=Pt(o[0]),n[t](...o)):r}function ol(e,t,o=[]){oi(),Nh();const n=Pt(e)[t].apply(e,o);return Vh(),ni(),n}const q6=zh("__proto__,__v_isRef,__isVue"),u1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ti));function Z6(e){ti(e)||(e=String(e));const t=Pt(this);return $o(t,"has",e),t.hasOwnProperty(e)}class d1{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){const r=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!r;if(o==="__v_isReadonly")return r;if(o==="__v_isShallow")return i;if(o==="__v_raw")return n===(r?i?s3:p1:i?h1:f1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=ht(t);if(!r){let s;if(a&&(s=K6[o]))return s;if(o==="hasOwnProperty")return Z6}const l=Reflect.get(t,o,io(t)?t:n);return(ti(o)?u1.has(o):q6(o))||(r||$o(t,"get",o),i)?l:io(l)?a&&Hh(o)?l:l.value:Gt(l)?r?Zn(l):It(l):l}}class c1 extends d1{constructor(t=!1){super(!1,t)}set(t,o,n,r){let i=t[o];if(!this._isShallow){const s=Ii(i);if(!gn(n)&&!Ii(n)&&(i=Pt(i),n=Pt(n)),!ht(t)&&io(i)&&!io(n))return s?!1:(i.value=n,!0)}const a=ht(t)&&Hh(o)?Number(o)<t.length:Tt(t,o),l=Reflect.set(t,o,n,io(t)?t:r);return t===Pt(r)&&(a?Qr(n,i)&&mr(t,"set",o,n):mr(t,"add",o,n)),l}deleteProperty(t,o){const n=Tt(t,o);t[o];const r=Reflect.deleteProperty(t,o);return r&&n&&mr(t,"delete",o,void 0),r}has(t,o){const n=Reflect.has(t,o);return(!ti(o)||!u1.has(o))&&$o(t,"has",o),n}ownKeys(t){return $o(t,"iterate",ht(t)?"length":Ri),Reflect.ownKeys(t)}}class X6 extends d1{constructor(t=!1){super(!0,t)}set(t,o){return!0}deleteProperty(t,o){return!0}}const Y6=new c1,Q6=new X6,J6=new c1(!0);const Uh=e=>e,bd=e=>Reflect.getPrototypeOf(e);function Us(e,t,o=!1,n=!1){e=e.__v_raw;const r=Pt(e),i=Pt(t);o||(Qr(t,i)&&$o(r,"get",t),$o(r,"get",i));const{has:a}=bd(r),l=n?Uh:o?Zh:Fo;if(a.call(r,t))return l(e.get(t));if(a.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Ks(e,t=!1){const o=this.__v_raw,n=Pt(o),r=Pt(e);return t||(Qr(e,r)&&$o(n,"has",e),$o(n,"has",r)),e===r?o.has(e):o.has(e)||o.has(r)}function Gs(e,t=!1){return e=e.__v_raw,!t&&$o(Pt(e),"iterate",Ri),Reflect.get(e,"size",e)}function Pm(e,t=!1){!t&&!gn(e)&&!Ii(e)&&(e=Pt(e));const o=Pt(this);return bd(o).has.call(o,e)||(o.add(e),mr(o,"add",e,e)),this}function Mm(e,t,o=!1){!o&&!gn(t)&&!Ii(t)&&(t=Pt(t));const n=Pt(this),{has:r,get:i}=bd(n);let a=r.call(n,e);a||(e=Pt(e),a=r.call(n,e));const l=i.call(n,e);return n.set(e,t),a?Qr(t,l)&&mr(n,"set",e,t):mr(n,"add",e,t),this}function Am(e){const t=Pt(this),{has:o,get:n}=bd(t);let r=o.call(t,e);r||(e=Pt(e),r=o.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return r&&mr(t,"delete",e,void 0),i}function Bm(){const e=Pt(this),t=e.size!==0,o=e.clear();return t&&mr(e,"clear",void 0,void 0),o}function qs(e,t){return function(n,r){const i=this,a=i.__v_raw,l=Pt(a),s=t?Uh:e?Zh:Fo;return!e&&$o(l,"iterate",Ri),a.forEach((u,d)=>n.call(r,s(u),s(d),i))}}function Zs(e,t,o){return function(...n){const r=this.__v_raw,i=Pt(r),a=wa(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,u=r[e](...n),d=o?Uh:t?Zh:Fo;return!t&&$o(i,"iterate",s?Pf:Ri),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:l?[d(c[0]),d(c[1])]:d(c),done:h}},[Symbol.iterator](){return this}}}}function Pr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function e3(){const e={get(i){return Us(this,i)},get size(){return Gs(this)},has:Ks,add:Pm,set:Mm,delete:Am,clear:Bm,forEach:qs(!1,!1)},t={get(i){return Us(this,i,!1,!0)},get size(){return Gs(this)},has:Ks,add(i){return Pm.call(this,i,!0)},set(i,a){return Mm.call(this,i,a,!0)},delete:Am,clear:Bm,forEach:qs(!1,!0)},o={get(i){return Us(this,i,!0)},get size(){return Gs(this,!0)},has(i){return Ks.call(this,i,!0)},add:Pr("add"),set:Pr("set"),delete:Pr("delete"),clear:Pr("clear"),forEach:qs(!0,!1)},n={get(i){return Us(this,i,!0,!0)},get size(){return Gs(this,!0)},has(i){return Ks.call(this,i,!0)},add:Pr("add"),set:Pr("set"),delete:Pr("delete"),clear:Pr("clear"),forEach:qs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Zs(i,!1,!1),o[i]=Zs(i,!0,!1),t[i]=Zs(i,!1,!0),n[i]=Zs(i,!0,!0)}),[e,o,t,n]}const[t3,o3,n3,r3]=e3();function Kh(e,t){const o=t?e?r3:n3:e?o3:t3;return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Tt(o,r)&&r in n?o:n,r,i)}const i3={get:Kh(!1,!1)},a3={get:Kh(!1,!0)},l3={get:Kh(!0,!1)};const f1=new WeakMap,h1=new WeakMap,p1=new WeakMap,s3=new WeakMap;function u3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function d3(e){return e.__v_skip||!Object.isExtensible(e)?0:u3(M6(e))}function It(e){return Ii(e)?e:Gh(e,!1,Y6,i3,f1)}function m1(e){return Gh(e,!1,J6,a3,h1)}function Zn(e){return Gh(e,!0,Q6,l3,p1)}function Gh(e,t,o,n,r){if(!Gt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=d3(e);if(a===0)return e;const l=new Proxy(e,a===2?n:o);return r.set(e,l),l}function Kr(e){return Ii(e)?Kr(e.__v_raw):!!(e&&e.__v_isReactive)}function Ii(e){return!!(e&&e.__v_isReadonly)}function gn(e){return!!(e&&e.__v_isShallow)}function qh(e){return e?!!e.__v_raw:!1}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Kl(e){return!Tt(e,"__v_skip")&&Object.isExtensible(e)&&Kb(e,"__v_skip",!0),e}const Fo=e=>Gt(e)?It(e):e,Zh=e=>Gt(e)?Zn(e):e;function io(e){return e?e.__v_isRef===!0:!1}function M(e){return g1(e,!1)}function xd(e){return g1(e,!0)}function g1(e,t){return io(e)?e:new c3(e,t)}class c3{constructor(t,o){this.dep=new Wh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:Pt(t),this._value=o?t:Fo(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||gn(t)||Ii(t);t=n?t:Pt(t),Qr(t,o)&&(this._rawValue=t,this._value=n?t:Fo(t),this.dep.trigger())}}function S(e){return io(e)?e.value:e}const f3={get:(e,t,o)=>t==="__v_raw"?e:S(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return io(r)&&!io(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function v1(e){return Kr(e)?e:new Proxy(e,f3)}function b1(e){const t=ht(e)?new Array(e.length):{};for(const o in e)t[o]=x1(e,o);return t}class h3{constructor(t,o,n){this._object=t,this._key=o,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return U6(Pt(this._object),this._key)}}class p3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function De(e,t,o){return io(e)?e:mt(e)?new p3(e):Gt(e)&&arguments.length>1?x1(e,t,o):M(e)}function x1(e,t,o){const n=e[t];return io(n)?n:new h3(e,t,o)}class m3{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Wh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&jt!==this)return n1(this,!0),!0}get value(){const t=this.dep.track();return a1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function g3(e,t,o=!1){let n,r;return mt(e)?n=e:(n=e.get,r=e.set),new m3(n,r,o)}const Xs={},Nu=new WeakMap;let bi;function v3(e,t=!1,o=bi){if(o){let n=Nu.get(o);n||Nu.set(o,n=[]),n.push(e)}}function b3(e,t,o=Nt){const{immediate:n,deep:r,once:i,scheduler:a,augmentJob:l,call:s}=o,u=y=>r?y:gn(y)||r===!1||r===0?pr(y,1):pr(y);let d,c,h,f,p=!1,g=!1;if(io(e)?(c=()=>e.value,p=gn(e)):Kr(e)?(c=()=>u(e),p=!0):ht(e)?(g=!0,p=e.some(y=>Kr(y)||gn(y)),c=()=>e.map(y=>{if(io(y))return y.value;if(Kr(y))return u(y);if(mt(y))return s?s(y,2):y()})):mt(e)?t?c=s?()=>s(e,2):e:c=()=>{if(h){oi();try{h()}finally{ni()}}const y=bi;bi=d;try{return s?s(e,3,[f]):e(f)}finally{bi=y}}:c=Un,t&&r){const y=c,k=r===!0?1/0:r;c=()=>pr(y(),k)}const v=e1(),b=()=>{d.stop(),v&&Lh(v.effects,d)};if(i&&t){const y=t;t=(...k)=>{y(...k),b()}}let x=g?new Array(e.length).fill(Xs):Xs;const E=y=>{if(!(!(d.flags&1)||!d.dirty&&!y))if(t){const k=d.run();if(r||p||(g?k.some((F,C)=>Qr(F,x[C])):Qr(k,x))){h&&h();const F=bi;bi=d;try{const C=[k,x===Xs?void 0:g&&x[0]===Xs?[]:x,f];s?s(t,3,C):t(...C),x=k}finally{bi=F}}}else d.run()};return l&&l(E),d=new t1(c),d.scheduler=a?()=>a(E,!1):E,f=y=>v3(y,!1,d),h=d.onStop=()=>{const y=Nu.get(d);if(y){if(s)s(y,4);else for(const k of y)k();Nu.delete(d)}},t?n?E(!0):x=d.run():a?a(E.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function pr(e,t=1/0,o){if(t<=0||!Gt(e)||e.__v_skip||(o=o||new Set,o.has(e)))return e;if(o.add(e),t--,io(e))pr(e.value,t,o);else if(ht(e))for(let n=0;n<e.length;n++)pr(e[n],t,o);else if(Vb(e)||wa(e))e.forEach(n=>{pr(n,t,o)});else if(Ub(e)){for(const n in e)pr(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&pr(e[n],t,o)}return e}/** +* @vue/runtime-core v3.5.11 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function vs(e,t,o,n){try{return n?e(...n):e()}catch(r){yd(r,t,o)}}function Mn(e,t,o,n){if(mt(e)){const r=vs(e,t,o,n);return r&&jb(r)&&r.catch(i=>{yd(i,t,o)}),r}if(ht(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Mn(e[i],t,o,n));return r}}function yd(e,t,o,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Nt;if(t){let l=t.parent;const s=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${o}`;for(;l;){const d=l.ec;if(d){for(let c=0;c<d.length;c++)if(d[c](e,s,u)===!1)return}l=l.parent}if(i){oi(),vs(i,null,10,[e,s,u]),ni();return}}x3(e,o,r,n,a)}function x3(e,t,o,n=!0,r=!1){if(r)throw e;console.error(e)}const Io=[];let Nn=-1;const Sa=[];let zr=null,ma=0;const y1=Promise.resolve();let Vu=null;function Rt(e){const t=Vu||y1;return e?t.then(this?e.bind(this):e):t}function y3(e){let t=Nn+1,o=Io.length;for(;t<o;){const n=t+o>>>1,r=Io[n],i=Gl(r);i<e||i===e&&r.flags&2?t=n+1:o=n}return t}function Xh(e){if(!(e.flags&1)){const t=Gl(e),o=Io[Io.length-1];!o||!(e.flags&2)&&t>=Gl(o)?Io.push(e):Io.splice(y3(t),0,e),e.flags|=1,C1()}}function C1(){Vu||(Vu=y1.then(S1))}function C3(e){ht(e)?Sa.push(...e):zr&&e.id===-1?zr.splice(ma+1,0,e):e.flags&1||(Sa.push(e),e.flags|=1),C1()}function Dm(e,t,o=Nn+1){for(;o<Io.length;o++){const n=Io[o];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Io.splice(o,1),o--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function w1(e){if(Sa.length){const t=[...new Set(Sa)].sort((o,n)=>Gl(o)-Gl(n));if(Sa.length=0,zr){zr.push(...t);return}for(zr=t,ma=0;ma<zr.length;ma++){const o=zr[ma];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}zr=null,ma=0}}const Gl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function S1(e){try{for(Nn=0;Nn<Io.length;Nn++){const t=Io[Nn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),vs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Nn<Io.length;Nn++){const t=Io[Nn];t&&(t.flags&=-2)}Nn=-1,Io.length=0,w1(),Vu=null,(Io.length||Sa.length)&&S1()}}let vo=null,E1=null;function ju(e){const t=vo;return vo=e,E1=e&&e.type.__scopeId||null,t}function ne(e,t=vo,o){if(!t||e._n)return e;const n=(...r)=>{n._d&&Km(-1);const i=ju(t);let a;try{a=e(...r)}finally{ju(i),n._d&&Km(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Po(e,t){if(vo===null)return e;const o=_d(vo),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,l,s=Nt]=t[r];i&&(mt(i)&&(i={mounted:i,updated:i}),i.deep&&pr(a),n.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:s}))}return e}function ci(e,t,o,n){const r=e.dirs,i=t&&t.dirs;for(let a=0;a<r.length;a++){const l=r[a];i&&(l.oldValue=i[a].value);let s=l.dir[n];s&&(oi(),Mn(s,o,8,[e.el,l,e,t]),ni())}}const k1=Symbol("_vte"),_1=e=>e.__isTeleport,Rl=e=>e&&(e.disabled||e.disabled===""),w3=e=>e&&(e.defer||e.defer===""),Tm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Im=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Mf=(e,t)=>{const o=e&&e.to;return eo(o)?t?t(o):null:o},S3={name:"Teleport",__isTeleport:!0,process(e,t,o,n,r,i,a,l,s,u){const{mc:d,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:g,createComment:v}}=u,b=Rl(t.props);let{shapeFlag:x,children:E,dynamicChildren:y}=t;if(e==null){const k=t.el=g(""),F=t.anchor=g("");f(k,o,n),f(F,o,n);const C=(P,B)=>{x&16&&(r&&r.isCE&&(r.ce._teleportTarget=P),d(E,P,B,r,i,a,l,s))},A=()=>{const P=t.target=Mf(t.props,p),B=F1(P,t,g,f);P&&(a!=="svg"&&Tm(P)?a="svg":a!=="mathml"&&Im(P)&&(a="mathml"),b||(C(P,B),Fu(t)))};b&&(C(o,F),Fu(t)),w3(t.props)?Wo(A,i):A()}else{t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,F=t.target=e.target,C=t.targetAnchor=e.targetAnchor,A=Rl(e.props),P=A?o:F,B=A?k:C;if(a==="svg"||Tm(F)?a="svg":(a==="mathml"||Im(F))&&(a="mathml"),y?(h(e.dynamicChildren,y,P,r,i,a,l),tp(e,t,!0)):s||c(e,t,P,B,r,i,a,l,!1),b)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ys(t,o,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=Mf(t.props,p);W&&Ys(t,W,null,u,0)}else A&&Ys(t,F,C,u,1);Fu(t)}},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:a,children:l,anchor:s,targetStart:u,targetAnchor:d,target:c,props:h}=e;if(c&&(r(u),r(d)),i&&r(s),a&16){const f=i||!Rl(h);for(let p=0;p<l.length;p++){const g=l[p];n(g,t,o,f,!!g.dynamicChildren)}}},move:Ys,hydrate:E3};function Ys(e,t,o,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,o);const{el:a,anchor:l,shapeFlag:s,children:u,props:d}=e,c=i===2;if(c&&n(a,t,o),(!c||Rl(d))&&s&16)for(let h=0;h<u.length;h++)r(u[h],t,o,2);c&&n(l,t,o)}function E3(e,t,o,n,r,i,{o:{nextSibling:a,parentNode:l,querySelector:s,insert:u,createText:d}},c){const h=t.target=Mf(t.props,s);if(h){const f=h._lpa||h.firstChild;if(t.shapeFlag&16)if(Rl(t.props))t.anchor=c(a(e),t,l(e),o,n,r,i),t.targetStart=f,t.targetAnchor=f&&a(f);else{t.anchor=a(e);let p=f;for(;p;){if(p&&p.nodeType===8){if(p.data==="teleport start anchor")t.targetStart=p;else if(p.data==="teleport anchor"){t.targetAnchor=p,h._lpa=t.targetAnchor&&a(t.targetAnchor);break}}p=a(p)}t.targetAnchor||F1(h,t,d,u),c(f&&a(f),t,h,o,n,r,i)}Fu(t)}return t.anchor&&a(t.anchor)}const bs=S3;function Fu(e){const t=e.ctx;if(t&&t.ut){let o=e.targetStart;for(;o&&o!==e.targetAnchor;)o.nodeType===1&&o.setAttribute("data-v-owner",t.uid),o=o.nextSibling;t.ut()}}function F1(e,t,o,n){const r=t.targetStart=o(""),i=t.targetAnchor=o("");return r[k1]=i,e&&(n(r,e),n(i,e)),i}const Or=Symbol("_leaveCb"),Qs=Symbol("_enterCb");function R1(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ut(()=>{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const cn=[Function,Array],$1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cn,onEnter:cn,onAfterEnter:cn,onEnterCancelled:cn,onBeforeLeave:cn,onLeave:cn,onAfterLeave:cn,onLeaveCancelled:cn,onBeforeAppear:cn,onAppear:cn,onAfterAppear:cn,onAppearCancelled:cn},P1=e=>{const t=e.subTree;return t.component?P1(t.component):t},k3={name:"BaseTransition",props:$1,setup(e,{slots:t}){const o=xr(),n=R1();return()=>{const r=t.default&&Yh(t.default(),!0);if(!r||!r.length)return;const i=M1(r),a=Pt(e),{mode:l}=a;if(n.isLeaving)return wc(i);const s=zm(i);if(!s)return wc(i);let u=ql(s,a,n,o,h=>u=h);s.type!==go&&zi(s,u);const d=o.subTree,c=d&&zm(d);if(c&&c.type!==go&&!xi(s,c)&&P1(o).type!==go){const h=ql(c,a,n,o);if(zi(c,h),l==="out-in"&&s.type!==go)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete h.afterLeave},wc(i);l==="in-out"&&s.type!==go&&(h.delayLeave=(f,p,g)=>{const v=A1(n,c);v[String(c.key)]=c,f[Or]=()=>{p(),f[Or]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return i}}};function M1(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==go){t=o;break}}return t}const _3=k3;function A1(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function ql(e,t,o,n,r){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:x,onAppearCancelled:E}=t,y=String(e.key),k=A1(o,e),F=(P,B)=>{P&&Mn(P,n,9,B)},C=(P,B)=>{const W=B[1];F(P,B),ht(P)?P.every(N=>N.length<=1)&&W():P.length<=1&&W()},A={mode:a,persisted:l,beforeEnter(P){let B=s;if(!o.isMounted)if(i)B=v||s;else return;P[Or]&&P[Or](!0);const W=k[y];W&&xi(e,W)&&W.el[Or]&&W.el[Or](),F(B,[P])},enter(P){let B=u,W=d,N=c;if(!o.isMounted)if(i)B=b||u,W=x||d,N=E||c;else return;let K=!1;const H=P[Qs]=I=>{K||(K=!0,I?F(N,[P]):F(W,[P]),A.delayedLeave&&A.delayedLeave(),P[Qs]=void 0)};B?C(B,[P,H]):H()},leave(P,B){const W=String(e.key);if(P[Qs]&&P[Qs](!0),o.isUnmounting)return B();F(h,[P]);let N=!1;const K=P[Or]=H=>{N||(N=!0,B(),H?F(g,[P]):F(p,[P]),P[Or]=void 0,k[W]===e&&delete k[W])};k[W]=e,f?C(f,[P,K]):K()},clone(P){const B=ql(P,t,o,n,r);return r&&r(B),B}};return A}function wc(e){if(Cd(e))return e=qo(e),e.children=null,e}function zm(e){if(!Cd(e))return _1(e.type)&&e.children?M1(e.children):e;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&mt(o.default))return o.default()}}function zi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,zi(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Yh(e,t=!1,o){let n=[],r=0;for(let i=0;i<e.length;i++){let a=e[i];const l=o==null?a.key:String(o)+String(a.key!=null?a.key:i);a.type===ft?(a.patchFlag&128&&r++,n=n.concat(Yh(a.children,t,l))):(t||a.type!==go)&&n.push(l!=null?qo(a,{key:l}):a)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function xe(e,t){return mt(e)?ho({name:e.name},t,{setup:e}):e}function F3(){const e=xr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function B1(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Af(e,t,o,n,r=!1){if(ht(e)){e.forEach((p,g)=>Af(p,t&&(ht(t)?t[g]:t),o,n,r));return}if(Ea(n)&&!r)return;const i=n.shapeFlag&4?_d(n.component):n.el,a=r?null:i,{i:l,r:s}=e,u=t&&t.r,d=l.refs===Nt?l.refs={}:l.refs,c=l.setupState,h=Pt(c),f=c===Nt?()=>!1:p=>Tt(h,p);if(u!=null&&u!==s&&(eo(u)?(d[u]=null,f(u)&&(c[u]=null)):io(u)&&(u.value=null)),mt(s))vs(s,l,12,[a,d]);else{const p=eo(s),g=io(s);if(p||g){const v=()=>{if(e.f){const b=p?f(s)?c[s]:d[s]:s.value;r?ht(b)&&Lh(b,i):ht(b)?b.includes(i)||b.push(i):p?(d[s]=[i],f(s)&&(c[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else p?(d[s]=a,f(s)&&(c[s]=a)):g&&(s.value=a,e.k&&(d[e.k]=a))};a?(v.id=-1,Wo(v,o)):v()}}}const Ea=e=>!!e.type.__asyncLoader,Cd=e=>e.type.__isKeepAlive;function Qh(e,t){D1(e,"a",t)}function wd(e,t){D1(e,"da",t)}function D1(e,t,o=Co){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Sd(t,n,o),o){let r=o.parent;for(;r&&r.parent;)Cd(r.parent.vnode)&&R3(n,t,o,r),r=r.parent}}function R3(e,t,o,n){const r=Sd(t,e,n,!0);Go(()=>{Lh(n[t],r)},o)}function Sd(e,t,o=Co,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{oi();const l=Cs(o),s=Mn(t,o,e,a);return l(),ni(),s});return n?r.unshift(i):r.push(i),i}}const br=e=>(t,o=Co)=>{(!kd||e==="sp")&&Sd(e,(...n)=>t(...n),o)},ri=br("bm"),ut=br("m"),T1=br("bu"),I1=br("u"),Xt=br("bum"),Go=br("um"),$3=br("sp"),P3=br("rtg"),M3=br("rtc");function A3(e,t=Co){Sd("ec",e,t)}const z1="components";function lt(e,t){return L1(z1,e,!0,t)||e}const O1=Symbol.for("v-ndc");function Js(e){return eo(e)?L1(z1,e,!1)||e:e||O1}function L1(e,t,o=!0,n=!1){const r=vo||Co;if(r){const i=r.type;{const l=vE(i,!1);if(l&&(l===t||l===vn(t)||l===md(vn(t))))return i}const a=Om(r[e]||i[e],t)||Om(r.appContext[e],t);return!a&&n?i:a}}function Om(e,t){return e&&(e[t]||e[vn(t)]||e[md(vn(t))])}function xa(e,t,o,n){let r;const i=o,a=ht(e);if(a||eo(e)){const l=a&&Kr(e);let s=!1;l&&(s=!gn(e),e=vd(e)),r=new Array(e.length);for(let u=0,d=e.length;u<d;u++)r[u]=t(s?Fo(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(Gt(e))if(e[Symbol.iterator])r=Array.from(e,(l,s)=>t(l,s,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let s=0,u=l.length;s<u;s++){const d=l[s];r[s]=t(e[d],d,s,i)}}else r=[];return r}function xs(e,t,o={},n,r){if(vo.ce||vo.parent&&Ea(vo.parent)&&vo.parent.ce)return Re(),Lt(ft,null,[w("slot",o,n)],64);let i=e[t];i&&i._c&&(i._d=!1),Re();const a=i&&H1(i(o)),l=Lt(ft,{key:(o.key||a&&a.key||`_${t}`)+(!a&&n?"_fb":"")},a||[],a&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function H1(e){return e.some(t=>$a(t)?!(t.type===go||t.type===ft&&!H1(t.children)):!0)?e:null}const Bf=e=>e?rx(e)?_d(e):Bf(e.parent):null,$l=ho(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bf(e.parent),$root:e=>Bf(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jh(e),$forceUpdate:e=>e.f||(e.f=()=>{Xh(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>eE.bind(e)}),Sc=(e,t)=>e!==Nt&&!e.__isScriptSetup&&Tt(e,t),B3={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:a,type:l,appContext:s}=e;let u;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(Sc(n,t))return a[t]=1,n[t];if(r!==Nt&&Tt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&Tt(u,t))return a[t]=3,i[t];if(o!==Nt&&Tt(o,t))return a[t]=4,o[t];Df&&(a[t]=0)}}const d=$l[t];let c,h;if(d)return t==="$attrs"&&$o(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==Nt&&Tt(o,t))return a[t]=4,o[t];if(h=s.config.globalProperties,Tt(h,t))return h[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Sc(r,t)?(r[t]=o,!0):n!==Nt&&Tt(n,t)?(n[t]=o,!0):Tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,propsOptions:i}},a){let l;return!!o[a]||e!==Nt&&Tt(e,a)||Sc(t,a)||(l=i[0])&&Tt(l,a)||Tt(n,a)||Tt($l,a)||Tt(r.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Tt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Lm(e){return ht(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Df=!0;function D3(e){const t=Jh(e),o=e.proxy,n=e.ctx;Df=!1,t.beforeCreate&&Hm(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:l,provide:s,inject:u,created:d,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:x,destroyed:E,unmounted:y,render:k,renderTracked:F,renderTriggered:C,errorCaptured:A,serverPrefetch:P,expose:B,inheritAttrs:W,components:N,directives:K,filters:H}=t;if(u&&T3(u,n,null),a)for(const R in a){const z=a[R];mt(z)&&(n[R]=z.bind(o))}if(r){const R=r.call(o,o);Gt(R)&&(e.data=It(R))}if(Df=!0,i)for(const R in i){const z=i[R],_=mt(z)?z.bind(o,o):mt(z.get)?z.get.bind(o,o):Un,oe=!mt(z)&&mt(z.set)?z.set.bind(o):Un,G=T({get:_,set:oe});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>G.value,set:j=>G.value=j})}if(l)for(const R in l)N1(l[R],n,o,R);if(s){const R=mt(s)?s.call(o):s;Reflect.ownKeys(R).forEach(z=>{et(z,R[z])})}d&&Hm(d,e,"c");function O(R,z){ht(z)?z.forEach(_=>R(_.bind(o))):z&&R(z.bind(o))}if(O(ri,c),O(ut,h),O(T1,f),O(I1,p),O(Qh,g),O(wd,v),O(A3,A),O(M3,F),O(P3,C),O(Xt,x),O(Go,y),O($3,P),ht(B))if(B.length){const R=e.exposed||(e.exposed={});B.forEach(z=>{Object.defineProperty(R,z,{get:()=>o[z],set:_=>o[z]=_})})}else e.exposed||(e.exposed={});k&&e.render===Un&&(e.render=k),W!=null&&(e.inheritAttrs=W),N&&(e.components=N),K&&(e.directives=K),P&&B1(e)}function T3(e,t,o=Un){ht(e)&&(e=Tf(e));for(const n in e){const r=e[n];let i;Gt(r)?"default"in r?i=Oe(r.from||n,r.default,!0):i=Oe(r.from||n):i=Oe(r),io(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function Hm(e,t,o){Mn(ht(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function N1(e,t,o,n){let r=n.includes(".")?J1(o,n):()=>o[n];if(eo(e)){const i=t[e];mt(i)&&at(r,i)}else if(mt(e))at(r,e.bind(o));else if(Gt(e))if(ht(e))e.forEach(i=>N1(i,t,o,n));else{const i=mt(e.handler)?e.handler.bind(o):t[e.handler];mt(i)&&at(r,i,e)}}function Jh(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!r.length&&!o&&!n?s=t:(s={},r.length&&r.forEach(u=>Wu(s,u,a,!0)),Wu(s,t,a)),Gt(t)&&i.set(t,s),s}function Wu(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&Wu(e,i,o,!0),r&&r.forEach(a=>Wu(e,a,o,!0));for(const a in t)if(!(n&&a==="expose")){const l=I3[a]||o&&o[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const I3={data:Nm,props:Vm,emits:Vm,methods:xl,computed:xl,beforeCreate:Do,created:Do,beforeMount:Do,mounted:Do,beforeUpdate:Do,updated:Do,beforeDestroy:Do,beforeUnmount:Do,destroyed:Do,unmounted:Do,activated:Do,deactivated:Do,errorCaptured:Do,serverPrefetch:Do,components:xl,directives:xl,watch:O3,provide:Nm,inject:z3};function Nm(e,t){return t?e?function(){return ho(mt(e)?e.call(this,this):e,mt(t)?t.call(this,this):t)}:t:e}function z3(e,t){return xl(Tf(e),Tf(t))}function Tf(e){if(ht(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function Do(e,t){return e?[...new Set([].concat(e,t))]:t}function xl(e,t){return e?ho(Object.create(null),e,t):t}function Vm(e,t){return e?ht(e)&&ht(t)?[...new Set([...e,...t])]:ho(Object.create(null),Lm(e),Lm(t??{})):t}function O3(e,t){if(!e)return t;if(!t)return e;const o=ho(Object.create(null),e);for(const n in t)o[n]=Do(e[n],t[n]);return o}function V1(){return{app:null,config:{isNativeTag:$6,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let L3=0;function H3(e,t){return function(n,r=null){mt(n)||(n=ho({},n)),r!=null&&!Gt(r)&&(r=null);const i=V1(),a=new WeakSet,l=[];let s=!1;const u=i.app={_uid:L3++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:xE,get config(){return i.config},set config(d){},use(d,...c){return a.has(d)||(d&&mt(d.install)?(a.add(d),d.install(u,...c)):mt(d)&&(a.add(d),d(u,...c))),u},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),u},component(d,c){return c?(i.components[d]=c,u):i.components[d]},directive(d,c){return c?(i.directives[d]=c,u):i.directives[d]},mount(d,c,h){if(!s){const f=u._ceVNode||w(n,r);return f.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),c&&t?t(f,d):e(f,d,h),s=!0,u._container=d,d.__vue_app__=u,_d(f.component)}},onUnmount(d){l.push(d)},unmount(){s&&(Mn(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(d,c){return i.provides[d]=c,u},runWithContext(d){const c=$i;$i=u;try{return d()}finally{$i=c}}};return u}}let $i=null;function et(e,t){if(Co){let o=Co.provides;const n=Co.parent&&Co.parent.provides;n===o&&(o=Co.provides=Object.create(n)),o[e]=t}}function Oe(e,t,o=!1){const n=Co||vo;if(n||$i){const r=$i?$i._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return o&&mt(t)?t.call(n&&n.proxy):t}}function N3(){return!!(Co||vo||$i)}const j1={},W1=()=>Object.create(j1),U1=e=>Object.getPrototypeOf(e)===j1;function V3(e,t,o,n=!1){const r={},i=W1();e.propsDefaults=Object.create(null),K1(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);o?e.props=n?r:m1(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function j3(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,l=Pt(r),[s]=e.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let c=0;c<d.length;c++){let h=d[c];if(Ed(e.emitsOptions,h))continue;const f=t[h];if(s)if(Tt(i,h))f!==i[h]&&(i[h]=f,u=!0);else{const p=vn(h);r[p]=If(s,l,p,f,e,!1)}else f!==i[h]&&(i[h]=f,u=!0)}}}else{K1(e,t,r,i)&&(u=!0);let d;for(const c in l)(!t||!Tt(t,c)&&((d=Wi(c))===c||!Tt(t,d)))&&(s?o&&(o[c]!==void 0||o[d]!==void 0)&&(r[c]=If(s,l,c,void 0,e,!0)):delete r[c]);if(i!==l)for(const c in i)(!t||!Tt(t,c))&&(delete i[c],u=!0)}u&&mr(e.attrs,"set","")}function K1(e,t,o,n){const[r,i]=e.propsOptions;let a=!1,l;if(t)for(let s in t){if(kl(s))continue;const u=t[s];let d;r&&Tt(r,d=vn(s))?!i||!i.includes(d)?o[d]=u:(l||(l={}))[d]=u:Ed(e.emitsOptions,s)||(!(s in n)||u!==n[s])&&(n[s]=u,a=!0)}if(i){const s=Pt(o),u=l||Nt;for(let d=0;d<i.length;d++){const c=i[d];o[c]=If(r,s,c,u[c],e,!Tt(u,c))}}return a}function If(e,t,o,n,r,i){const a=e[o];if(a!=null){const l=Tt(a,"default");if(l&&n===void 0){const s=a.default;if(a.type!==Function&&!a.skipFactory&&mt(s)){const{propsDefaults:u}=r;if(o in u)n=u[o];else{const d=Cs(r);n=u[o]=s.call(null,t),d()}}else n=s;r.ce&&r.ce._setProp(o,n)}a[0]&&(i&&!l?n=!1:a[1]&&(n===""||n===Wi(o))&&(n=!0))}return n}const W3=new WeakMap;function G1(e,t,o=!1){const n=o?W3:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,a={},l=[];let s=!1;if(!mt(e)){const d=c=>{s=!0;const[h,f]=G1(c,t,!0);ho(a,h),f&&l.push(...f)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return Gt(e)&&n.set(e,Ca),Ca;if(ht(i))for(let d=0;d<i.length;d++){const c=vn(i[d]);jm(c)&&(a[c]=Nt)}else if(i)for(const d in i){const c=vn(d);if(jm(c)){const h=i[d],f=a[c]=ht(h)||mt(h)?{type:h}:ho({},h),p=f.type;let g=!1,v=!0;if(ht(p))for(let b=0;b<p.length;++b){const x=p[b],E=mt(x)&&x.name;if(E==="Boolean"){g=!0;break}else E==="String"&&(v=!1)}else g=mt(p)&&p.name==="Boolean";f[0]=g,f[1]=v,(g||Tt(f,"default"))&&l.push(c)}}const u=[a,l];return Gt(e)&&n.set(e,u),u}function jm(e){return e[0]!=="$"&&!kl(e)}const q1=e=>e[0]==="_"||e==="$stable",ep=e=>ht(e)?e.map(Vn):[Vn(e)],U3=(e,t,o)=>{if(t._n)return t;const n=ne((...r)=>ep(t(...r)),o);return n._c=!1,n},Z1=(e,t,o)=>{const n=e._ctx;for(const r in e){if(q1(r))continue;const i=e[r];if(mt(i))t[r]=U3(r,i,n);else if(i!=null){const a=ep(i);t[r]=()=>a}}},X1=(e,t)=>{const o=ep(t);e.slots.default=()=>o},Y1=(e,t,o)=>{for(const n in t)(o||n!=="_")&&(e[n]=t[n])},K3=(e,t,o)=>{const n=e.slots=W1();if(e.vnode.shapeFlag&32){const r=t._;r?(Y1(n,t,o),o&&Kb(n,"_",r,!0)):Z1(t,n)}else t&&X1(e,t)},G3=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,a=Nt;if(n.shapeFlag&32){const l=t._;l?o&&l===1?i=!1:Y1(r,t,o):(i=!t.$stable,Z1(t,r)),a=t}else t&&(X1(e,t),a={default:1});if(i)for(const l in r)!q1(l)&&a[l]==null&&delete r[l]},Wo=lE;function q3(e){return Z3(e)}function Z3(e,t){const o=Gb();o.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:a,createText:l,createComment:s,setText:u,setElementText:d,parentNode:c,nextSibling:h,setScopeId:f=Un,insertStaticContent:p}=e,g=(U,te,ge,we=null,le=null,re=null,ce=void 0,ee=null,ie=!!te.dynamicChildren)=>{if(U===te)return;U&&!xi(U,te)&&(we=fe(U),j(U,le,re,!0),U=null),te.patchFlag===-2&&(ie=!1,te.dynamicChildren=null);const{type:de,ref:ae,shapeFlag:X}=te;switch(de){case ys:v(U,te,ge,we);break;case go:b(U,te,ge,we);break;case Ru:U==null&&x(te,ge,we,ce);break;case ft:N(U,te,ge,we,le,re,ce,ee,ie);break;default:X&1?k(U,te,ge,we,le,re,ce,ee,ie):X&6?K(U,te,ge,we,le,re,ce,ee,ie):(X&64||X&128)&&de.process(U,te,ge,we,le,re,ce,ee,ie,q)}ae!=null&&le&&Af(ae,U&&U.ref,re,te||U,!te)},v=(U,te,ge,we)=>{if(U==null)n(te.el=l(te.children),ge,we);else{const le=te.el=U.el;te.children!==U.children&&u(le,te.children)}},b=(U,te,ge,we)=>{U==null?n(te.el=s(te.children||""),ge,we):te.el=U.el},x=(U,te,ge,we)=>{[U.el,U.anchor]=p(U.children,te,ge,we,U.el,U.anchor)},E=({el:U,anchor:te},ge,we)=>{let le;for(;U&&U!==te;)le=h(U),n(U,ge,we),U=le;n(te,ge,we)},y=({el:U,anchor:te})=>{let ge;for(;U&&U!==te;)ge=h(U),r(U),U=ge;r(te)},k=(U,te,ge,we,le,re,ce,ee,ie)=>{te.type==="svg"?ce="svg":te.type==="math"&&(ce="mathml"),U==null?F(te,ge,we,le,re,ce,ee,ie):P(U,te,le,re,ce,ee,ie)},F=(U,te,ge,we,le,re,ce,ee)=>{let ie,de;const{props:ae,shapeFlag:X,transition:se,dirs:ve}=U;if(ie=U.el=a(U.type,re,ae&&ae.is,ae),X&8?d(ie,U.children):X&16&&A(U.children,ie,null,we,le,Ec(U,re),ce,ee),ve&&ci(U,null,we,"created"),C(ie,U,U.scopeId,ce,we),ae){for(const Ke in ae)Ke!=="value"&&!kl(Ke)&&i(ie,Ke,null,ae[Ke],re,we);"value"in ae&&i(ie,"value",null,ae.value,re),(de=ae.onVnodeBeforeMount)&&zn(de,we,U)}ve&&ci(U,null,we,"beforeMount");const Te=X3(le,se);Te&&se.beforeEnter(ie),n(ie,te,ge),((de=ae&&ae.onVnodeMounted)||Te||ve)&&Wo(()=>{de&&zn(de,we,U),Te&&se.enter(ie),ve&&ci(U,null,we,"mounted")},le)},C=(U,te,ge,we,le)=>{if(ge&&f(U,ge),we)for(let re=0;re<we.length;re++)f(U,we[re]);if(le){let re=le.subTree;if(te===re||tx(re.type)&&(re.ssContent===te||re.ssFallback===te)){const ce=le.vnode;C(U,ce,ce.scopeId,ce.slotScopeIds,le.parent)}}},A=(U,te,ge,we,le,re,ce,ee,ie=0)=>{for(let de=ie;de<U.length;de++){const ae=U[de]=ee?Lr(U[de]):Vn(U[de]);g(null,ae,te,ge,we,le,re,ce,ee)}},P=(U,te,ge,we,le,re,ce)=>{const ee=te.el=U.el;let{patchFlag:ie,dynamicChildren:de,dirs:ae}=te;ie|=U.patchFlag&16;const X=U.props||Nt,se=te.props||Nt;let ve;if(ge&&fi(ge,!1),(ve=se.onVnodeBeforeUpdate)&&zn(ve,ge,te,U),ae&&ci(te,U,ge,"beforeUpdate"),ge&&fi(ge,!0),(X.innerHTML&&se.innerHTML==null||X.textContent&&se.textContent==null)&&d(ee,""),de?B(U.dynamicChildren,de,ee,ge,we,Ec(te,le),re):ce||z(U,te,ee,null,ge,we,Ec(te,le),re,!1),ie>0){if(ie&16)W(ee,X,se,ge,le);else if(ie&2&&X.class!==se.class&&i(ee,"class",null,se.class,le),ie&4&&i(ee,"style",X.style,se.style,le),ie&8){const Te=te.dynamicProps;for(let Ke=0;Ke<Te.length;Ke++){const Qe=Te[Ke],st=X[Qe],Xe=se[Qe];(Xe!==st||Qe==="value")&&i(ee,Qe,st,Xe,le,ge)}}ie&1&&U.children!==te.children&&d(ee,te.children)}else!ce&&de==null&&W(ee,X,se,ge,le);((ve=se.onVnodeUpdated)||ae)&&Wo(()=>{ve&&zn(ve,ge,te,U),ae&&ci(te,U,ge,"updated")},we)},B=(U,te,ge,we,le,re,ce)=>{for(let ee=0;ee<te.length;ee++){const ie=U[ee],de=te[ee],ae=ie.el&&(ie.type===ft||!xi(ie,de)||ie.shapeFlag&70)?c(ie.el):ge;g(ie,de,ae,null,we,le,re,ce,!0)}},W=(U,te,ge,we,le)=>{if(te!==ge){if(te!==Nt)for(const re in te)!kl(re)&&!(re in ge)&&i(U,re,te[re],null,le,we);for(const re in ge){if(kl(re))continue;const ce=ge[re],ee=te[re];ce!==ee&&re!=="value"&&i(U,re,ee,ce,le,we)}"value"in ge&&i(U,"value",te.value,ge.value,le)}},N=(U,te,ge,we,le,re,ce,ee,ie)=>{const de=te.el=U?U.el:l(""),ae=te.anchor=U?U.anchor:l("");let{patchFlag:X,dynamicChildren:se,slotScopeIds:ve}=te;ve&&(ee=ee?ee.concat(ve):ve),U==null?(n(de,ge,we),n(ae,ge,we),A(te.children||[],ge,ae,le,re,ce,ee,ie)):X>0&&X&64&&se&&U.dynamicChildren?(B(U.dynamicChildren,se,ge,le,re,ce,ee),(te.key!=null||le&&te===le.subTree)&&tp(U,te,!0)):z(U,te,ge,ae,le,re,ce,ee,ie)},K=(U,te,ge,we,le,re,ce,ee,ie)=>{te.slotScopeIds=ee,U==null?te.shapeFlag&512?le.ctx.activate(te,ge,we,ce,ie):H(te,ge,we,le,re,ce,ie):I(U,te,ie)},H=(U,te,ge,we,le,re,ce)=>{const ee=U.component=fE(U,we,le);if(Cd(U)&&(ee.ctx.renderer=q),hE(ee,!1,ce),ee.asyncDep){if(le&&le.registerDep(ee,O,ce),!U.el){const ie=ee.subTree=w(go);b(null,ie,te,ge)}}else O(ee,U,te,ge,le,re,ce)},I=(U,te,ge)=>{const we=te.component=U.component;if(iE(U,te,ge))if(we.asyncDep&&!we.asyncResolved){R(we,te,ge);return}else we.next=te,we.update();else te.el=U.el,we.vnode=te},O=(U,te,ge,we,le,re,ce)=>{const ee=()=>{if(U.isMounted){let{next:X,bu:se,u:ve,parent:Te,vnode:Ke}=U;{const Ye=Q1(U);if(Ye){X&&(X.el=Ke.el,R(U,X,ce)),Ye.asyncDep.then(()=>{U.isUnmounted||ee()});return}}let Qe=X,st;fi(U,!1),X?(X.el=Ke.el,R(U,X,ce)):X=Ke,se&&vc(se),(st=X.props&&X.props.onVnodeBeforeUpdate)&&zn(st,Te,X,Ke),fi(U,!0);const Xe=kc(U),pt=U.subTree;U.subTree=Xe,g(pt,Xe,c(pt.el),fe(pt),U,le,re),X.el=Xe.el,Qe===null&&aE(U,Xe.el),ve&&Wo(ve,le),(st=X.props&&X.props.onVnodeUpdated)&&Wo(()=>zn(st,Te,X,Ke),le)}else{let X;const{el:se,props:ve}=te,{bm:Te,m:Ke,parent:Qe,root:st,type:Xe}=U,pt=Ea(te);if(fi(U,!1),Te&&vc(Te),!pt&&(X=ve&&ve.onVnodeBeforeMount)&&zn(X,Qe,te),fi(U,!0),se&&je){const Ye=()=>{U.subTree=kc(U),je(se,U.subTree,U,le,null)};pt&&Xe.__asyncHydrate?Xe.__asyncHydrate(se,U,Ye):Ye()}else{st.ce&&st.ce._injectChildStyle(Xe);const Ye=U.subTree=kc(U);g(null,Ye,ge,we,U,le,re),te.el=Ye.el}if(Ke&&Wo(Ke,le),!pt&&(X=ve&&ve.onVnodeMounted)){const Ye=te;Wo(()=>zn(X,Qe,Ye),le)}(te.shapeFlag&256||Qe&&Ea(Qe.vnode)&&Qe.vnode.shapeFlag&256)&&U.a&&Wo(U.a,le),U.isMounted=!0,te=ge=we=null}};U.scope.on();const ie=U.effect=new t1(ee);U.scope.off();const de=U.update=ie.run.bind(ie),ae=U.job=ie.runIfDirty.bind(ie);ae.i=U,ae.id=U.uid,ie.scheduler=()=>Xh(ae),fi(U,!0),de()},R=(U,te,ge)=>{te.component=U;const we=U.vnode.props;U.vnode=te,U.next=null,j3(U,te.props,we,ge),G3(U,te.children,ge),oi(),Dm(U),ni()},z=(U,te,ge,we,le,re,ce,ee,ie=!1)=>{const de=U&&U.children,ae=U?U.shapeFlag:0,X=te.children,{patchFlag:se,shapeFlag:ve}=te;if(se>0){if(se&128){oe(de,X,ge,we,le,re,ce,ee,ie);return}else if(se&256){_(de,X,ge,we,le,re,ce,ee,ie);return}}ve&8?(ae&16&&pe(de,le,re),X!==de&&d(ge,X)):ae&16?ve&16?oe(de,X,ge,we,le,re,ce,ee,ie):pe(de,le,re,!0):(ae&8&&d(ge,""),ve&16&&A(X,ge,we,le,re,ce,ee,ie))},_=(U,te,ge,we,le,re,ce,ee,ie)=>{U=U||Ca,te=te||Ca;const de=U.length,ae=te.length,X=Math.min(de,ae);let se;for(se=0;se<X;se++){const ve=te[se]=ie?Lr(te[se]):Vn(te[se]);g(U[se],ve,ge,null,le,re,ce,ee,ie)}de>ae?pe(U,le,re,!0,!1,X):A(te,ge,we,le,re,ce,ee,ie,X)},oe=(U,te,ge,we,le,re,ce,ee,ie)=>{let de=0;const ae=te.length;let X=U.length-1,se=ae-1;for(;de<=X&&de<=se;){const ve=U[de],Te=te[de]=ie?Lr(te[de]):Vn(te[de]);if(xi(ve,Te))g(ve,Te,ge,null,le,re,ce,ee,ie);else break;de++}for(;de<=X&&de<=se;){const ve=U[X],Te=te[se]=ie?Lr(te[se]):Vn(te[se]);if(xi(ve,Te))g(ve,Te,ge,null,le,re,ce,ee,ie);else break;X--,se--}if(de>X){if(de<=se){const ve=se+1,Te=ve<ae?te[ve].el:we;for(;de<=se;)g(null,te[de]=ie?Lr(te[de]):Vn(te[de]),ge,Te,le,re,ce,ee,ie),de++}}else if(de>se)for(;de<=X;)j(U[de],le,re,!0),de++;else{const ve=de,Te=de,Ke=new Map;for(de=Te;de<=se;de++){const J=te[de]=ie?Lr(te[de]):Vn(te[de]);J.key!=null&&Ke.set(J.key,de)}let Qe,st=0;const Xe=se-Te+1;let pt=!1,Ye=0;const Le=new Array(Xe);for(de=0;de<Xe;de++)Le[de]=0;for(de=ve;de<=X;de++){const J=U[de];if(st>=Xe){j(J,le,re,!0);continue}let me;if(J.key!=null)me=Ke.get(J.key);else for(Qe=Te;Qe<=se;Qe++)if(Le[Qe-Te]===0&&xi(J,te[Qe])){me=Qe;break}me===void 0?j(J,le,re,!0):(Le[me-Te]=de+1,me>=Ye?Ye=me:pt=!0,g(J,te[me],ge,null,le,re,ce,ee,ie),st++)}const tt=pt?Y3(Le):Ca;for(Qe=tt.length-1,de=Xe-1;de>=0;de--){const J=Te+de,me=te[J],Me=J+1<ae?te[J+1].el:we;Le[de]===0?g(null,me,ge,Me,le,re,ce,ee,ie):pt&&(Qe<0||de!==tt[Qe]?G(me,ge,Me,2):Qe--)}}},G=(U,te,ge,we,le=null)=>{const{el:re,type:ce,transition:ee,children:ie,shapeFlag:de}=U;if(de&6){G(U.component.subTree,te,ge,we);return}if(de&128){U.suspense.move(te,ge,we);return}if(de&64){ce.move(U,te,ge,q);return}if(ce===ft){n(re,te,ge);for(let X=0;X<ie.length;X++)G(ie[X],te,ge,we);n(U.anchor,te,ge);return}if(ce===Ru){E(U,te,ge);return}if(we!==2&&de&1&&ee)if(we===0)ee.beforeEnter(re),n(re,te,ge),Wo(()=>ee.enter(re),le);else{const{leave:X,delayLeave:se,afterLeave:ve}=ee,Te=()=>n(re,te,ge),Ke=()=>{X(re,()=>{Te(),ve&&ve()})};se?se(re,Te,Ke):Ke()}else n(re,te,ge)},j=(U,te,ge,we=!1,le=!1)=>{const{type:re,props:ce,ref:ee,children:ie,dynamicChildren:de,shapeFlag:ae,patchFlag:X,dirs:se,cacheIndex:ve}=U;if(X===-2&&(le=!1),ee!=null&&Af(ee,null,ge,U,!0),ve!=null&&(te.renderCache[ve]=void 0),ae&256){te.ctx.deactivate(U);return}const Te=ae&1&&se,Ke=!Ea(U);let Qe;if(Ke&&(Qe=ce&&ce.onVnodeBeforeUnmount)&&zn(Qe,te,U),ae&6)_e(U.component,ge,we);else{if(ae&128){U.suspense.unmount(ge,we);return}Te&&ci(U,null,te,"beforeUnmount"),ae&64?U.type.remove(U,te,ge,q,we):de&&!de.hasOnce&&(re!==ft||X>0&&X&64)?pe(de,te,ge,!1,!0):(re===ft&&X&384||!le&&ae&16)&&pe(ie,te,ge),we&&ue(U)}(Ke&&(Qe=ce&&ce.onVnodeUnmounted)||Te)&&Wo(()=>{Qe&&zn(Qe,te,U),Te&&ci(U,null,te,"unmounted")},ge)},ue=U=>{const{type:te,el:ge,anchor:we,transition:le}=U;if(te===ft){he(ge,we);return}if(te===Ru){y(U);return}const re=()=>{r(ge),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(U.shapeFlag&1&&le&&!le.persisted){const{leave:ce,delayLeave:ee}=le,ie=()=>ce(ge,re);ee?ee(U.el,re,ie):ie()}else re()},he=(U,te)=>{let ge;for(;U!==te;)ge=h(U),r(U),U=ge;r(te)},_e=(U,te,ge)=>{const{bum:we,scope:le,job:re,subTree:ce,um:ee,m:ie,a:de}=U;Wm(ie),Wm(de),we&&vc(we),le.stop(),re&&(re.flags|=8,j(ce,U,te,ge)),ee&&Wo(ee,te),Wo(()=>{U.isUnmounted=!0},te),te&&te.pendingBranch&&!te.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===te.pendingId&&(te.deps--,te.deps===0&&te.resolve())},pe=(U,te,ge,we=!1,le=!1,re=0)=>{for(let ce=re;ce<U.length;ce++)j(U[ce],te,ge,we,le)},fe=U=>{if(U.shapeFlag&6)return fe(U.component.subTree);if(U.shapeFlag&128)return U.suspense.next();const te=h(U.anchor||U.el),ge=te&&te[k1];return ge?h(ge):te};let Ce=!1;const Y=(U,te,ge)=>{U==null?te._vnode&&j(te._vnode,null,null,!0):g(te._vnode||null,U,te,null,null,null,ge),te._vnode=U,Ce||(Ce=!0,Dm(),w1(),Ce=!1)},q={p:g,um:j,m:G,r:ue,mt:H,mc:A,pc:z,pbc:B,n:fe,o:e};let Se,je;return{render:Y,hydrate:Se,createApp:H3(Y,Se)}}function Ec({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function fi({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function X3(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function tp(e,t,o=!1){const n=e.children,r=t.children;if(ht(n)&&ht(r))for(let i=0;i<n.length;i++){const a=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Lr(r[i]),l.el=a.el),!o&&l.patchFlag!==-2&&tp(a,l)),l.type===ys&&(l.el=a.el)}}function Y3(e){const t=e.slice(),o=[0];let n,r,i,a,l;const s=e.length;for(n=0;n<s;n++){const u=e[n];if(u!==0){if(r=o[o.length-1],e[r]<u){t[n]=r,o.push(n);continue}for(i=0,a=o.length-1;i<a;)l=i+a>>1,e[o[l]]<u?i=l+1:a=l;u<e[o[i]]&&(i>0&&(t[n]=o[i-1]),o[i]=n)}}for(i=o.length,a=o[i-1];i-- >0;)o[i]=a,a=t[a];return o}function Q1(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q1(t)}function Wm(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Q3=Symbol.for("v-scx"),J3=()=>Oe(Q3);function kt(e,t){return op(e,null,t)}function at(e,t,o){return op(e,t,o)}function op(e,t,o=Nt){const{immediate:n,deep:r,flush:i,once:a}=o,l=ho({},o);let s;if(kd)if(i==="sync"){const h=J3();s=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)l.once=!0;else{const h=()=>{};return h.stop=Un,h.resume=Un,h.pause=Un,h}const u=Co;l.call=(h,f,p)=>Mn(h,u,f,p);let d=!1;i==="post"?l.scheduler=h=>{Wo(h,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(h,f)=>{f?h():Xh(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=b3(e,t,l);return s&&s.push(c),c}function eE(e,t,o){const n=this.proxy,r=eo(e)?e.includes(".")?J1(n,e):()=>n[e]:e.bind(n,n);let i;mt(t)?i=t:(i=t.handler,o=t);const a=Cs(this),l=op(r,i.bind(n),o);return a(),l}function J1(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;r<o.length&&n;r++)n=n[o[r]];return n}}const tE=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vn(t)}Modifiers`]||e[`${Wi(t)}Modifiers`];function oE(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||Nt;let r=o;const i=t.startsWith("update:"),a=i&&tE(n,t.slice(7));a&&(a.trim&&(r=o.map(d=>eo(d)?d.trim():d)),a.number&&(r=o.map(D6)));let l,s=n[l=gc(t)]||n[l=gc(vn(t))];!s&&i&&(s=n[l=gc(Wi(t))]),s&&Mn(s,e,6,r);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Mn(u,e,6,r)}}function ex(e,t,o=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let a={},l=!1;if(!mt(e)){const s=u=>{const d=ex(u,t,!0);d&&(l=!0,ho(a,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(Gt(e)&&n.set(e,null),null):(ht(i)?i.forEach(s=>a[s]=null):ho(a,i),Gt(e)&&n.set(e,a),a)}function Ed(e,t){return!e||!fd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Tt(e,t[0].toLowerCase()+t.slice(1))||Tt(e,Wi(t))||Tt(e,t))}function kc(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:a,attrs:l,emit:s,render:u,renderCache:d,props:c,data:h,setupState:f,ctx:p,inheritAttrs:g}=e,v=ju(e);let b,x;try{if(o.shapeFlag&4){const y=r||n,k=y;b=Vn(u.call(k,y,d,c,f,h,p)),x=l}else{const y=t;b=Vn(y.length>1?y(c,{attrs:l,slots:a,emit:s}):y(c,null)),x=t.props?l:nE(l)}}catch(y){Pl.length=0,yd(y,e,1),b=w(go)}let E=b;if(x&&g!==!1){const y=Object.keys(x),{shapeFlag:k}=E;y.length&&k&7&&(i&&y.some(Oh)&&(x=rE(x,i)),E=qo(E,x,!1,!0))}return o.dirs&&(E=qo(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(o.dirs):o.dirs),o.transition&&zi(E,o.transition),b=E,ju(v),b}const nE=e=>{let t;for(const o in e)(o==="class"||o==="style"||fd(o))&&((t||(t={}))[o]=e[o]);return t},rE=(e,t)=>{const o={};for(const n in e)(!Oh(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function iE(e,t,o){const{props:n,children:r,component:i}=e,{props:a,children:l,patchFlag:s}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return n?Um(n,a,u):!!a;if(s&8){const d=t.dynamicProps;for(let c=0;c<d.length;c++){const h=d[c];if(a[h]!==n[h]&&!Ed(u,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===a?!1:n?a?Um(n,a,u):!0:!!a;return!1}function Um(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==e[i]&&!Ed(o,i))return!0}return!1}function aE({vnode:e,parent:t},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=o,t=t.parent;else break}}const tx=e=>e.__isSuspense;function lE(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):C3(e)}const ft=Symbol.for("v-fgt"),ys=Symbol.for("v-txt"),go=Symbol.for("v-cmt"),Ru=Symbol.for("v-stc"),Pl=[];let tn=null;function Re(e=!1){Pl.push(tn=e?null:[])}function sE(){Pl.pop(),tn=Pl[Pl.length-1]||null}let Zl=1;function Km(e){Zl+=e,e<0&&tn&&(tn.hasOnce=!0)}function ox(e){return e.dynamicChildren=Zl>0?tn||Ca:null,sE(),Zl>0&&tn&&tn.push(e),e}function Ie(e,t,o,n,r,i){return ox(L(e,t,o,n,r,i,!0))}function Lt(e,t,o,n,r){return ox(w(e,t,o,n,r,!0))}function $a(e){return e?e.__v_isVNode===!0:!1}function xi(e,t){return e.type===t.type&&e.key===t.key}const nx=({key:e})=>e??null,$u=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?eo(e)||io(e)||mt(e)?{i:vo,r:e,k:t,f:!!o}:e:null);function L(e,t=null,o=null,n=0,r=null,i=e===ft?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nx(t),ref:t&&$u(t),scopeId:E1,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:vo};return l?(rp(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=eo(o)?8:16),Zl>0&&!a&&tn&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&tn.push(s),s}const w=uE;function uE(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===O1)&&(e=go),$a(e)){const l=qo(e,t,!0);return o&&rp(l,o),Zl>0&&!i&&tn&&(l.shapeFlag&6?tn[tn.indexOf(e)]=l:tn.push(l)),l.patchFlag=-2,l}if(bE(e)&&(e=e.__vccOpts),t){t=np(t);let{class:l,style:s}=t;l&&!eo(l)&&(t.class=ye(l)),Gt(s)&&(qh(s)&&!ht(s)&&(s=ho({},s)),t.style=gd(s))}const a=eo(e)?1:tx(e)?128:_1(e)?64:Gt(e)?4:mt(e)?2:0;return L(e,t,o,n,r,a,i,!0)}function np(e){return e?qh(e)||U1(e)?ho({},e):e:null}function qo(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:a,children:l,transition:s}=e,u=t?bo(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&nx(u),ref:t&&t.ref?o&&i?ht(i)?i.concat($u(t)):[i,$u(t)]:$u(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ft?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qo(e.ssContent),ssFallback:e.ssFallback&&qo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&zi(d,s.clone(d)),d}function $(e=" ",t=0){return w(ys,null,e,t)}function uX(e,t){const o=w(Ru,null,e);return o.staticCount=t,o}function Je(e="",t=!1){return t?(Re(),Lt(go,null,e)):w(go,null,e)}function Vn(e){return e==null||typeof e=="boolean"?w(go):ht(e)?w(ft,null,e.slice()):$a(e)?Lr(e):w(ys,null,String(e))}function Lr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function rp(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ht(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),rp(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!U1(t)?t._ctx=vo:r===3&&vo&&(vo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else mt(t)?(t={default:t,_ctx:vo},o=32):(t=String(t),n&64?(o=16,t=[$(t)]):o=8);e.children=t,e.shapeFlag|=o}function bo(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=ye([t.class,n.class]));else if(r==="style")t.style=gd([t.style,n.style]);else if(fd(r)){const i=t[r],a=n[r];a&&i!==a&&!(ht(i)&&i.includes(a))&&(t[r]=i?[].concat(i,a):a)}else r!==""&&(t[r]=n[r])}return t}function zn(e,t,o,n=null){Mn(e,t,7,[o,n])}const dE=V1();let cE=0;function fE(e,t,o){const n=e.type,r=(t?t.appContext:e.appContext)||dE,i={uid:cE++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Qb(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:G1(n,r),emitsOptions:ex(n,r),emit:null,emitted:null,propsDefaults:Nt,inheritAttrs:n.inheritAttrs,ctx:Nt,data:Nt,props:Nt,attrs:Nt,slots:Nt,refs:Nt,setupState:Nt,setupContext:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=oE.bind(null,i),e.ce&&e.ce(i),i}let Co=null;const xr=()=>Co||vo;let Uu,zf;{const e=Gb(),t=(o,n)=>{let r;return(r=e[o])||(r=e[o]=[]),r.push(n),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};Uu=t("__VUE_INSTANCE_SETTERS__",o=>Co=o),zf=t("__VUE_SSR_SETTERS__",o=>kd=o)}const Cs=e=>{const t=Co;return Uu(e),e.scope.on(),()=>{e.scope.off(),Uu(t)}},Gm=()=>{Co&&Co.scope.off(),Uu(null)};function rx(e){return e.vnode.shapeFlag&4}let kd=!1;function hE(e,t=!1,o=!1){t&&zf(t);const{props:n,children:r}=e.vnode,i=rx(e);V3(e,n,i,t),K3(e,r,o);const a=i?pE(e,t):void 0;return t&&zf(!1),a}function pE(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,B3);const{setup:n}=o;if(n){const r=e.setupContext=n.length>1?gE(e):null,i=Cs(e);oi();const a=vs(n,e,0,[e.props,r]);if(ni(),i(),jb(a)){if(Ea(e)||B1(e),a.then(Gm,Gm),t)return a.then(l=>{qm(e,l,t)}).catch(l=>{yd(l,e,0)});e.asyncDep=a}else qm(e,a,t)}else ix(e,t)}function qm(e,t,o){mt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Gt(t)&&(e.setupState=v1(t)),ix(e,o)}let Zm;function ix(e,t,o){const n=e.type;if(!e.render){if(!t&&Zm&&!n.render){const r=n.template||Jh(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=n,u=ho(ho({isCustomElement:i,delimiters:l},a),s);n.render=Zm(r,u)}}e.render=n.render||Un}{const r=Cs(e);oi();try{D3(e)}finally{ni(),r()}}}const mE={get(e,t){return $o(e,"get",""),e[t]}};function gE(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,mE),slots:e.slots,emit:e.emit,expose:t}}function _d(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(v1(Kl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in $l)return $l[o](e)},has(t,o){return o in t||o in $l}})):e.proxy}function vE(e,t=!0){return mt(e)?e.displayName||e.name:e.name||t&&e.__name}function bE(e){return mt(e)&&"__vccOpts"in e}const T=(e,t)=>g3(e,t,kd);function m(e,t,o){const n=arguments.length;return n===2?Gt(t)&&!ht(t)?$a(t)?w(e,null,[t]):w(e,t):w(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&$a(o)&&(o=[o]),w(e,t,o))}const xE="3.5.11";/** +* @vue/runtime-dom v3.5.11 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Of;const Xm=typeof window<"u"&&window.trustedTypes;if(Xm)try{Of=Xm.createPolicy("vue",{createHTML:e=>e})}catch{}const ax=Of?e=>Of.createHTML(e):e=>e,yE="http://www.w3.org/2000/svg",CE="http://www.w3.org/1998/Math/MathML",cr=typeof document<"u"?document:null,Ym=cr&&cr.createElement("template"),wE={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const r=t==="svg"?cr.createElementNS(yE,e):t==="mathml"?cr.createElementNS(CE,e):o?cr.createElement(e,{is:o}):cr.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>cr.createTextNode(e),createComment:e=>cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,r,i){const a=o?o.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),o),!(r===i||!(r=r.nextSibling)););else{Ym.innerHTML=ax(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Ym.content;if(n==="svg"||n==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Mr="transition",nl="animation",Pa=Symbol("_vtc"),lx={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sx=ho({},$1,lx),SE=e=>(e.displayName="Transition",e.props=sx,e),po=SE((e,{slots:t})=>m(_3,ux(e),t)),hi=(e,t=[])=>{ht(e)?e.forEach(o=>o(...t)):e&&e(...t)},Qm=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function ux(e){const t={};for(const N in e)N in lx||(t[N]=e[N]);if(e.css===!1)return t;const{name:o="v",type:n,duration:r,enterFromClass:i=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:l=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:c=`${o}-leave-from`,leaveActiveClass:h=`${o}-leave-active`,leaveToClass:f=`${o}-leave-to`}=e,p=EE(r),g=p&&p[0],v=p&&p[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:E,onLeave:y,onLeaveCancelled:k,onBeforeAppear:F=b,onAppear:C=x,onAppearCancelled:A=E}=t,P=(N,K,H)=>{Tr(N,K?d:l),Tr(N,K?u:a),H&&H()},B=(N,K)=>{N._isLeaving=!1,Tr(N,c),Tr(N,f),Tr(N,h),K&&K()},W=N=>(K,H)=>{const I=N?C:x,O=()=>P(K,N,H);hi(I,[K,O]),Jm(()=>{Tr(K,N?s:i),dr(K,N?d:l),Qm(I)||eg(K,n,g,O)})};return ho(t,{onBeforeEnter(N){hi(b,[N]),dr(N,i),dr(N,a)},onBeforeAppear(N){hi(F,[N]),dr(N,s),dr(N,u)},onEnter:W(!1),onAppear:W(!0),onLeave(N,K){N._isLeaving=!0;const H=()=>B(N,K);dr(N,c),dr(N,h),cx(),Jm(()=>{N._isLeaving&&(Tr(N,c),dr(N,f),Qm(y)||eg(N,n,v,H))}),hi(y,[N,H])},onEnterCancelled(N){P(N,!1),hi(E,[N])},onAppearCancelled(N){P(N,!0),hi(A,[N])},onLeaveCancelled(N){B(N),hi(k,[N])}})}function EE(e){if(e==null)return null;if(Gt(e))return[_c(e.enter),_c(e.leave)];{const t=_c(e);return[t,t]}}function _c(e){return T6(e)}function dr(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[Pa]||(e[Pa]=new Set)).add(t)}function Tr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const o=e[Pa];o&&(o.delete(t),o.size||(e[Pa]=void 0))}function Jm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kE=0;function eg(e,t,o,n){const r=e._endId=++kE,i=()=>{r===e._endId&&n()};if(o!=null)return setTimeout(i,o);const{type:a,timeout:l,propCount:s}=dx(e,t);if(!a)return n();const u=a+"end";let d=0;const c=()=>{e.removeEventListener(u,h),i()},h=f=>{f.target===e&&++d>=s&&c()};setTimeout(()=>{d<s&&c()},l+1),e.addEventListener(u,h)}function dx(e,t){const o=window.getComputedStyle(e),n=p=>(o[p]||"").split(", "),r=n(`${Mr}Delay`),i=n(`${Mr}Duration`),a=tg(r,i),l=n(`${nl}Delay`),s=n(`${nl}Duration`),u=tg(l,s);let d=null,c=0,h=0;t===Mr?a>0&&(d=Mr,c=a,h=i.length):t===nl?u>0&&(d=nl,c=u,h=s.length):(c=Math.max(a,u),d=c>0?a>u?Mr:nl:null,h=d?d===Mr?i.length:s.length:0);const f=d===Mr&&/\b(transform|all)(,|$)/.test(n(`${Mr}Property`).toString());return{type:d,timeout:c,propCount:h,hasTransform:f}}function tg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((o,n)=>og(o)+og(e[n])))}function og(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function cx(){return document.body.offsetHeight}function _E(e,t,o){const n=e[Pa];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ku=Symbol("_vod"),fx=Symbol("_vsh"),bn={beforeMount(e,{value:t},{transition:o}){e[Ku]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):rl(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),rl(e,!0),n.enter(e)):n.leave(e,()=>{rl(e,!1)}):rl(e,t))},beforeUnmount(e,{value:t}){rl(e,t)}};function rl(e,t){e.style.display=t?e[Ku]:"none",e[fx]=!t}const FE=Symbol(""),RE=/(^|;)\s*display\s*:/;function $E(e,t,o){const n=e.style,r=eo(o);let i=!1;if(o&&!r){if(t)if(eo(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();o[l]==null&&Pu(n,l,"")}else for(const a in t)o[a]==null&&Pu(n,a,"");for(const a in o)a==="display"&&(i=!0),Pu(n,a,o[a])}else if(r){if(t!==o){const a=n[FE];a&&(o+=";"+a),n.cssText=o,i=RE.test(o)}}else t&&e.removeAttribute("style");Ku in e&&(e[Ku]=i?n.display:"",e[fx]&&(n.display="none"))}const ng=/\s*!important$/;function Pu(e,t,o){if(ht(o))o.forEach(n=>Pu(e,t,n));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const n=PE(e,t);ng.test(o)?e.setProperty(Wi(n),o.replace(ng,""),"important"):e[n]=o}}const rg=["Webkit","Moz","ms"],Fc={};function PE(e,t){const o=Fc[t];if(o)return o;let n=vn(t);if(n!=="filter"&&n in e)return Fc[t]=n;n=md(n);for(let r=0;r<rg.length;r++){const i=rg[r]+n;if(i in e)return Fc[t]=i}return t}const ig="http://www.w3.org/1999/xlink";function ag(e,t,o,n,r,i=N6(t)){n&&t.startsWith("xlink:")?o==null?e.removeAttributeNS(ig,t.slice(6,t.length)):e.setAttributeNS(ig,t,o):o==null||i&&!Zb(o)?e.removeAttribute(t):e.setAttribute(t,i?"":ti(o)?String(o):o)}function lg(e,t,o,n){if(t==="innerHTML"||t==="textContent"){o!=null&&(e[t]=t==="innerHTML"?ax(o):o);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=o==null?e.type==="checkbox"?"on":"":String(o);(a!==l||!("_value"in e))&&(e.value=l),o==null&&e.removeAttribute(t),e._value=o;return}let i=!1;if(o===""||o==null){const a=typeof e[t];a==="boolean"?o=Zb(o):o==null&&a==="string"?(o="",i=!0):a==="number"&&(o=0,i=!0)}try{e[t]=o}catch{}i&&e.removeAttribute(t)}function ME(e,t,o,n){e.addEventListener(t,o,n)}function AE(e,t,o,n){e.removeEventListener(t,o,n)}const sg=Symbol("_vei");function BE(e,t,o,n,r=null){const i=e[sg]||(e[sg]={}),a=i[t];if(n&&a)a.value=n;else{const[l,s]=DE(t);if(n){const u=i[t]=zE(n,r);ME(e,l,u,s)}else a&&(AE(e,l,a,s),i[t]=void 0)}}const ug=/(?:Once|Passive|Capture)$/;function DE(e){let t;if(ug.test(e)){t={};let n;for(;n=e.match(ug);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wi(e.slice(2)),t]}let Rc=0;const TE=Promise.resolve(),IE=()=>Rc||(TE.then(()=>Rc=0),Rc=Date.now());function zE(e,t){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;Mn(OE(n,o.value),t,5,[n])};return o.value=e,o.attached=IE(),o}function OE(e,t){if(ht(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const dg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,LE=(e,t,o,n,r,i)=>{const a=r==="svg";t==="class"?_E(e,n,a):t==="style"?$E(e,o,n):fd(t)?Oh(t)||BE(e,t,o,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):HE(e,t,n,a))?(lg(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ag(e,t,n,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!eo(n))?lg(e,vn(t),n):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ag(e,t,n,a))};function HE(e,t,o,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&dg(t)&&mt(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return dg(t)&&eo(o)?!1:t in e}const hx=new WeakMap,px=new WeakMap,Gu=Symbol("_moveCb"),cg=Symbol("_enterCb"),NE=e=>(delete e.props.mode,e),VE=NE({name:"TransitionGroup",props:ho({},sx,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=xr(),n=R1();let r,i;return I1(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!KE(r[0].el,o.vnode.el,a))return;r.forEach(jE),r.forEach(WE);const l=r.filter(UE);cx(),l.forEach(s=>{const u=s.el,d=u.style;dr(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const c=u[Gu]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[Gu]=null,Tr(u,a))};u.addEventListener("transitionend",c)})}),()=>{const a=Pt(e),l=ux(a);let s=a.tag||ft;if(r=[],i)for(let u=0;u<i.length;u++){const d=i[u];d.el&&d.el instanceof Element&&(r.push(d),zi(d,ql(d,l,n,o)),hx.set(d,d.el.getBoundingClientRect()))}i=t.default?Yh(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&zi(d,ql(d,l,n,o))}return w(s,null,i)}}}),ip=VE;function jE(e){const t=e.el;t[Gu]&&t[Gu](),t[cg]&&t[cg]()}function WE(e){px.set(e,e.el.getBoundingClientRect())}function UE(e){const t=hx.get(e),o=px.get(e),n=t.left-o.left,r=t.top-o.top;if(n||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${r}px)`,i.transitionDuration="0s",e}}function KE(e,t,o){const n=e.cloneNode(),r=e[Pa];r&&r.forEach(l=>{l.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),o.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=dx(n);return i.removeChild(n),a}const GE=ho({patchProp:LE},wE);let fg;function qE(){return fg||(fg=q3(GE))}const mx=(...e)=>{const t=qE().createApp(...e),{mount:o}=t;return t.mount=n=>{const r=XE(n);if(!r)return;const i=t._component;!mt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=o(r,!1,ZE(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function ZE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function XE(e){return eo(e)?document.querySelector(e):e}var YE=!1;/*! + * pinia v2.2.4 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */let gx;const Fd=e=>gx=e,vx=Symbol();function Lf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ml;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ml||(Ml={}));function QE(){const e=Jb(!0),t=e.run(()=>M({}));let o=[],n=[];const r=Kl({install(i){Fd(r),r._a=i,i.provide(vx,r),i.config.globalProperties.$pinia=r,n.forEach(a=>o.push(a)),n=[]},use(i){return!this._a&&!YE?n.push(i):o.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const bx=()=>{};function hg(e,t,o,n=bx){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!o&&e1()&&V6(r),r}function ra(e,...t){e.slice().forEach(o=>{o(...t)})}const JE=e=>e(),pg=Symbol(),$c=Symbol();function Hf(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,n)=>e.set(n,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const n=t[o],r=e[o];Lf(r)&&Lf(n)&&e.hasOwnProperty(o)&&!io(n)&&!Kr(n)?e[o]=Hf(r,n):e[o]=n}return e}const e4=Symbol();function t4(e){return!Lf(e)||!e.hasOwnProperty(e4)}const{assign:Ir}=Object;function o4(e){return!!(io(e)&&e.effect)}function n4(e,t,o,n){const{state:r,actions:i,getters:a}=t,l=o.state.value[e];let s;function u(){l||(o.state.value[e]=r?r():{});const d=b1(o.state.value[e]);return Ir(d,i,Object.keys(a||{}).reduce((c,h)=>(c[h]=Kl(T(()=>{Fd(o);const f=o._s.get(e);return a[h].call(f,f)})),c),{}))}return s=xx(e,u,t,o,n,!0),s}function xx(e,t,o={},n,r,i){let a;const l=Ir({actions:{}},o),s={deep:!0};let u,d,c=[],h=[],f;const p=n.state.value[e];!i&&!p&&(n.state.value[e]={}),M({});let g;function v(A){let P;u=d=!1,typeof A=="function"?(A(n.state.value[e]),P={type:Ml.patchFunction,storeId:e,events:f}):(Hf(n.state.value[e],A),P={type:Ml.patchObject,payload:A,storeId:e,events:f});const B=g=Symbol();Rt().then(()=>{g===B&&(u=!0)}),d=!0,ra(c,P,n.state.value[e])}const b=i?function(){const{state:P}=o,B=P?P():{};this.$patch(W=>{Ir(W,B)})}:bx;function x(){a.stop(),c=[],h=[],n._s.delete(e)}const E=(A,P="")=>{if(pg in A)return A[$c]=P,A;const B=function(){Fd(n);const W=Array.from(arguments),N=[],K=[];function H(R){N.push(R)}function I(R){K.push(R)}ra(h,{args:W,name:B[$c],store:k,after:H,onError:I});let O;try{O=A.apply(this&&this.$id===e?this:k,W)}catch(R){throw ra(K,R),R}return O instanceof Promise?O.then(R=>(ra(N,R),R)).catch(R=>(ra(K,R),Promise.reject(R))):(ra(N,O),O)};return B[pg]=!0,B[$c]=P,B},y={_p:n,$id:e,$onAction:hg.bind(null,h),$patch:v,$reset:b,$subscribe(A,P={}){const B=hg(c,A,P.detached,()=>W()),W=a.run(()=>at(()=>n.state.value[e],N=>{(P.flush==="sync"?d:u)&&A({storeId:e,type:Ml.direct,events:f},N)},Ir({},s,P)));return B},$dispose:x},k=It(y);n._s.set(e,k);const C=(n._a&&n._a.runWithContext||JE)(()=>n._e.run(()=>(a=Jb()).run(()=>t({action:E}))));for(const A in C){const P=C[A];if(io(P)&&!o4(P)||Kr(P))i||(p&&t4(P)&&(io(P)?P.value=p[A]:Hf(P,p[A])),n.state.value[e][A]=P);else if(typeof P=="function"){const B=E(P,A);C[A]=B,l.actions[A]=P}}return Ir(k,C),Ir(Pt(k),C),Object.defineProperty(k,"$state",{get:()=>n.state.value[e],set:A=>{v(P=>{Ir(P,A)})}}),n._p.forEach(A=>{Ir(k,a.run(()=>A({store:k,app:n._a,pinia:n,options:l})))}),p&&i&&o.hydrate&&o.hydrate(k.$state,p),u=!0,d=!0,k}function Ui(e,t,o){let n,r;const i=typeof t=="function";typeof e=="string"?(n=e,r=i?o:t):(r=e,n=e.id);function a(l,s){const u=N3();return l=l||(u?Oe(vx,null):null),l&&Fd(l),l=gx,l._s.has(n)||(i?xx(n,t,r,l):n4(n,r,l)),l._s.get(n)}return a.$id=n,a}const r4=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i4=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,a4=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function l4(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){s4(e);return}return t}function s4(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function u4(e,t={}){if(typeof e!="string")return e;const o=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return o.slice(1,-1);if(o.length<=9){const n=o.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!a4.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(r4.test(e)||i4.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,l4)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function d4(e,t){if(e==null)return;let o=e;for(let n=0;n<t.length;n++){if(o==null||o[t[n]]==null)return;o=o[t[n]]}return o}function ap(e,t,o){if(o.length===0)return t;const n=o[0];return o.length>1&&(t=ap(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,n)?Number.isInteger(Number(o[1]))?[]:{}:e[n],t,Array.prototype.slice.call(o,1))),Number.isInteger(Number(n))&&Array.isArray(e)?e.slice()[n]:Object.assign({},e,{[n]:t})}function yx(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const o={};for(const n in e)o[n]=e[n];return delete o[t[0]],o}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const o={};for(const n in e)o[n]=e[n];return o}return ap(e,yx(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Cx(e,t){return t.map(o=>o.split(".")).map(o=>[o,d4(e,o)]).filter(o=>o[1]!==void 0).reduce((o,n)=>ap(o,n[1],n[0]),{})}function wx(e,t){return t.map(o=>o.split(".")).reduce((o,n)=>yx(o,n),e)}function mg(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a,beforeHydrate:l,afterHydrate:s},u,d=!0){try{d&&(l==null||l(u));const c=t.getItem(n);if(c){const h=o.deserialize(c),f=i?Cx(h,i):h,p=a?wx(f,a):f;e.$patch(p)}d&&(s==null||s(u))}catch(c){r&&console.error("[pinia-plugin-persistedstate]",c)}}function gg(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a}){try{const l=i?Cx(e,i):e,s=a?wx(l,a):l,u=o.serialize(s);t.setItem(n,u)}catch(l){r&&console.error("[pinia-plugin-persistedstate]",l)}}function c4(e,t,o){const{pinia:n,store:r,options:{persist:i=o}}=e;if(!i)return;if(!(r.$id in n.state.value)){const s=n._s.get(r.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const l=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(t);r.$hydrate=({runHooks:s=!0}={})=>{l.forEach(u=>{mg(r,u,e,s)})},r.$persist=()=>{l.forEach(s=>{gg(r.$state,s)})},l.forEach(s=>{mg(r,s,e),r.$subscribe((u,d)=>gg(d,s),{detached:!0})})}function f4(e={}){return function(t){c4(t,o=>({key:(e.key?e.key:n=>n)(o.key??t.store.$id),debug:o.debug??e.debug??!1,serializer:o.serializer??e.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>u4(n)},storage:o.storage??e.storage??window.localStorage,beforeHydrate:o.beforeHydrate,afterHydrate:o.afterHydrate,pick:o.pick,omit:o.omit}),e.auto??!1)}}var h4=f4();let qu=[];const Sx=new WeakMap;function p4(){qu.forEach(e=>e(...Sx.get(e))),qu=[]}function Xl(e,...t){Sx.set(e,t),!qu.includes(e)&&qu.push(e)===1&&requestAnimationFrame(p4)}function Ko(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function Oi(e){return e.composedPath()[0]||null}function m4(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(o=>{if(o==="")return;const[n,r]=o.split(":");r===void 0?t[""]=n:t[n]=r}),t}function ia(e,t){var o;if(e==null)return;const n=m4(e);if(t===void 0)return n[""];if(typeof t=="string")return(o=n[t])!==null&&o!==void 0?o:n[""];if(Array.isArray(t)){for(let r=t.length-1;r>=0;--r){const i=t[r];if(i in n)return n[i]}return n[""]}else{let r,i=-1;return Object.keys(n).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,r=n[a])}),r}}function so(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Ht(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Ro(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function g4(e,t){const[o,n]=e.split(" ");return{row:o,col:n||o}}const vg={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Ex(e,t,o){t/=100,o/=100;const n=t*Math.min(o,1-o)+o;return[e,n?(2-2*o/n)*100:0,n*100]}function Mu(e,t,o){t/=100,o/=100;const n=o-o*t/2,r=Math.min(n,1-n);return[e,r?(o-n)/r*100:0,n*100]}function Nr(e,t,o){t/=100,o/=100;let n=(r,i=(r+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function Nf(e,t,o){e/=255,t/=255,o/=255;let n=Math.max(e,t,o),r=n-Math.min(e,t,o),i=r&&(n==e?(t-o)/r:n==t?2+(o-e)/r:4+(e-t)/r);return[60*(i<0?i+6:i),n&&r/n*100,n*100]}function Vf(e,t,o){e/=255,t/=255,o/=255;let n=Math.max(e,t,o),r=n-Math.min(e,t,o),i=1-Math.abs(n+n-r-1),a=r&&(n==e?(t-o)/r:n==t?2+(o-e)/r:4+(e-t)/r);return[60*(a<0?a+6:a),i?r/i*100:0,(n+n-r)*50]}function jf(e,t,o){t/=100,o/=100;let n=t*Math.min(o,1-o),r=(i,a=(i+e/30)%12)=>o-n*Math.max(Math.min(a-3,9-a,1),-1);return[r(0)*255,r(8)*255,r(4)*255]}const Jn="^\\s*",er="\\s*$",Jr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",on="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Ci="([0-9A-Fa-f])",wi="([0-9A-Fa-f]{2})",v4=new RegExp(`${Jn}hsl\\s*\\(${on},${Jr},${Jr}\\)${er}`),b4=new RegExp(`${Jn}hsv\\s*\\(${on},${Jr},${Jr}\\)${er}`),x4=new RegExp(`${Jn}hsla\\s*\\(${on},${Jr},${Jr},${on}\\)${er}`),y4=new RegExp(`${Jn}hsva\\s*\\(${on},${Jr},${Jr},${on}\\)${er}`),C4=new RegExp(`${Jn}rgb\\s*\\(${on},${on},${on}\\)${er}`),w4=new RegExp(`${Jn}rgba\\s*\\(${on},${on},${on},${on}\\)${er}`),lp=new RegExp(`${Jn}#${Ci}${Ci}${Ci}${er}`),sp=new RegExp(`${Jn}#${wi}${wi}${wi}${er}`),up=new RegExp(`${Jn}#${Ci}${Ci}${Ci}${Ci}${er}`),dp=new RegExp(`${Jn}#${wi}${wi}${wi}${wi}${er}`);function jo(e){return parseInt(e,16)}function ka(e){try{let t;if(t=x4.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),gr(t[13])];if(t=v4.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function Pi(e){try{let t;if(t=y4.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),gr(t[13])];if(t=b4.exec(e))return[Xn(t[1]),co(t[5]),co(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function uo(e){try{let t;if(t=sp.exec(e))return[jo(t[1]),jo(t[2]),jo(t[3]),1];if(t=C4.exec(e))return[ro(t[1]),ro(t[5]),ro(t[9]),1];if(t=w4.exec(e))return[ro(t[1]),ro(t[5]),ro(t[9]),gr(t[13])];if(t=lp.exec(e))return[jo(t[1]+t[1]),jo(t[2]+t[2]),jo(t[3]+t[3]),1];if(t=dp.exec(e))return[jo(t[1]),jo(t[2]),jo(t[3]),gr(jo(t[4])/255)];if(t=up.exec(e))return[jo(t[1]+t[1]),jo(t[2]+t[2]),jo(t[3]+t[3]),gr(jo(t[4]+t[4])/255)];if(e in vg)return uo(vg[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function S4(e){return e>1?1:e<0?0:e}function E4(e,t,o){return`rgb(${ro(e)}, ${ro(t)}, ${ro(o)})`}function Wf(e,t,o,n){return`rgba(${ro(e)}, ${ro(t)}, ${ro(o)}, ${S4(n)})`}function Pc(e,t,o,n,r){return ro((e*t*(1-n)+o*n)/r)}function Ue(e,t){Array.isArray(e)||(e=uo(e)),Array.isArray(t)||(t=uo(t));const o=e[3],n=t[3],r=gr(o+n-o*n);return Wf(Pc(e[0],o,t[0],n,r),Pc(e[1],o,t[1],n,r),Pc(e[2],o,t[2],n,r),r)}function Ae(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:uo(e);return t.alpha?Wf(o,n,r,t.alpha):Wf(o,n,r,i)}function ao(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:uo(e),{lightness:a=1,alpha:l=1}=t;return Kn([o*a,n*a,r*a,i*l])}function gr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Xn(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function ro(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function co(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function Uf(e){const[t,o,n]=Array.isArray(e)?e:uo(e);return E4(t,o,n)}function Kn(e){const[t,o,n]=e;return 3 in e?`rgba(${ro(t)}, ${ro(o)}, ${ro(n)}, ${gr(e[3])})`:`rgba(${ro(t)}, ${ro(o)}, ${ro(n)}, 1)`}function Kf(e){return`hsv(${Xn(e[0])}, ${co(e[1])}%, ${co(e[2])}%)`}function Mi(e){const[t,o,n]=e;return 3 in e?`hsva(${Xn(t)}, ${co(o)}%, ${co(n)}%, ${gr(e[3])})`:`hsva(${Xn(t)}, ${co(o)}%, ${co(n)}%, 1)`}function Gf(e){return`hsl(${Xn(e[0])}, ${co(e[1])}%, ${co(e[2])}%)`}function Gr(e){const[t,o,n]=e;return 3 in e?`hsla(${Xn(t)}, ${co(o)}%, ${co(n)}%, ${gr(e[3])})`:`hsla(${Xn(t)}, ${co(o)}%, ${co(n)}%, 1)`}function qr(e){if(typeof e=="string"){let n;if(n=sp.exec(e))return`${n[0]}FF`;if(n=dp.exec(e))return n[0];if(n=lp.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=up.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(n=>ro(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,o=e.length===3?"FF":ro(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+o}function Al(e){if(typeof e=="string"){let t;if(t=sp.exec(e))return t[0];if(t=dp.exec(e))return t[0].slice(0,7);if(t=lp.exec(e)||up.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>ro(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function ii(e=8){return Math.random().toString(16).slice(2,2+e)}function kx(e,t){const o=[];for(let n=0;n<e;++n)o.push(t);return o}function cp(e,t="default",o=[]){const r=e.$slots[t];return r===void 0?o:r()}function ei(e,t=[],o){const n={};return t.forEach(r=>{n[r]=e[r]}),Object.assign(n,o)}function Ki(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function vr(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push($(String(n)));return}if(Array.isArray(n)){vr(n,t,o);return}if(n.type===ft){if(n.children===null)return;Array.isArray(n.children)&&vr(n.children,t,o)}else{if(n.type===go&&t)return;o.push(n)}}}),o}function Pe(e,...t){if(Array.isArray(e))e.forEach(o=>Pe(o,...t));else return e(...t)}function ws(e){return Object.keys(e)}function Jt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?$(e):typeof e=="number"?$(String(e)):null}const bg=new Set;function k4(e,t){const o=`[naive/${e}]: ${t}`;bg.has(o)||(bg.add(o),console.error(o))}function xn(e,t){console.error(`[naive/${e}]: ${t}`)}function yr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function xg(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function qf(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Zf(e,t="default",o=void 0){const n=e[t];if(!n)return xn("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=vr(n(o));return r.length===1?r[0]:(xn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function _x(e){return t=>{t?e.value=t.$el:e.value=null}}function pn(e){return e.some(t=>$a(t)?!(t.type===go||t.type===ft&&!pn(t.children)):!0)?e:null}function wo(e,t){return e&&pn(e())||t()}function Xf(e,t,o){return e&&pn(e(t))||o(t)}function bt(e,t){const o=e&&pn(e());return t(o||null)}function _4(e,t,o){const n=e&&pn(e(t));return o(n||null)}function Ai(e){return!(e&&pn(e()))}function Bl(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function F4(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===bn);return!!(o&&o.value===!1)}const Yf=xe({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),R4=/^(\d|\.)+$/,yg=/(\d|\.)+/;function So(e,{c:t=1,offset:o=0,attachPx:n=!0}={}){if(typeof e=="number"){const r=(e+o)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(R4.test(e)){const r=(Number(e)+o)*t;return n?r===0?"0":`${r}px`:`${r}`}else{const r=yg.exec(e);return r?e.replace(yg,String((Number(r[0])+o)*t)):e}return e}function Ma(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Cg(e){const{left:t,right:o,top:n,bottom:r}=Ro(e);return`${n} ${o} ${r} ${t}`}function $4(e){let t=0;for(let o=0;o<e.length;++o)e[o]==="&"&&++t;return t}const Fx=/\s*,(?![^(]*\))\s*/g,P4=/\s+/g;function M4(e,t){const o=[];return t.split(Fx).forEach(n=>{let r=$4(n);if(r){if(r===1){e.forEach(a=>{o.push(n.replace("&",a))});return}}else{e.forEach(a=>{o.push((a&&a+" ")+n)});return}let i=[n];for(;r--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>o.push(a))}),o}function A4(e,t){const o=[];return t.split(Fx).forEach(n=>{e.forEach(r=>{o.push((r&&r+" ")+n)})}),o}function B4(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=M4(t,o):t=A4(t,o))}),t.join(", ").replace(P4," ")}function wg(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Rd(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function D4(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function eu(e){return e?/^\s*@(s|m)/.test(e):!1}const T4=/[A-Z]/g;function Rx(e){return e.replace(T4,t=>"-"+t.toLowerCase())}function I4(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(o=>t+` ${Rx(o[0])}: ${o[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function z4(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function Sg(e,t,o,n){if(!t)return"";const r=z4(t,o,n);if(!r)return"";if(typeof r=="string")return`${e} { +${r} +}`;const i=Object.keys(r);if(i.length===0)return o.config.keepEmptyBlock?e+` { +}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=r[l];if(l==="raw"){a.push(` +`+s+` +`);return}l=Rx(l),s!=null&&a.push(` ${l}${I4(s)}`)}),e&&a.push("}"),a.join(` +`)}function Qf(e,t,o){e&&e.forEach(n=>{if(Array.isArray(n))Qf(n,t,o);else if(typeof n=="function"){const r=n(t);Array.isArray(r)?Qf(r,t,o):r&&o(r)}else n&&o(n)})}function $x(e,t,o,n,r){const i=e.$;let a="";if(!i||typeof i=="string")eu(i)?a=i:t.push(i);else if(typeof i=="function"){const u=i({context:n.context,props:r});eu(u)?a=u:t.push(u)}else if(i.before&&i.before(n.context),!i.$||typeof i.$=="string")eu(i.$)?a=i.$:t.push(i.$);else if(i.$){const u=i.$({context:n.context,props:r});eu(u)?a=u:t.push(u)}const l=B4(t),s=Sg(l,e.props,n,r);a?o.push(`${a} {`):s.length&&o.push(s),e.children&&Qf(e.children,{context:n.context,props:r},u=>{if(typeof u=="string"){const d=Sg(l,{raw:u},n,r);o.push(d)}else $x(u,t,o,n,r)}),t.pop(),a&&o.push("}"),i&&i.after&&i.after(n.context)}function O4(e,t,o){const n=[];return $x(e,[],n,t,o),n.join(` + +`)}function Yl(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function L4(e,t,o,n){const{els:r}=t;if(o===void 0)r.forEach(wg),t.els=[];else{const i=Rd(o,n);i&&r.includes(i)&&(wg(i),t.els=r.filter(a=>a!==i))}}function Eg(e,t){e.push(t)}function H4(e,t,o,n,r,i,a,l,s){let u;if(o===void 0&&(u=t.render(n),o=Yl(u)),s){s.adapter(o,u??t.render(n));return}l===void 0&&(l=document.head);const d=Rd(o,l);if(d!==null&&!i)return d;const c=d??D4(o);if(u===void 0&&(u=t.render(n)),c.textContent=u,d!==null)return d;if(a){const h=l.querySelector(`meta[name="${a}"]`);if(h)return l.insertBefore(c,h),Eg(t.els,c),c}return r?l.insertBefore(c,l.querySelector("style, link")):l.appendChild(c),Eg(t.els,c),c}function N4(e){return O4(this,this.instance,e)}function V4(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:a,parent:l}=e;return H4(this.instance,this,t,n,r,i,a,l,o)}function j4(e={}){const{id:t,parent:o}=e;L4(this.instance,this,t,o)}const tu=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:N4,mount:V4,unmount:j4}},W4=function(e,t,o,n){return Array.isArray(t)?tu(e,{$:null},null,t):Array.isArray(o)?tu(e,t,null,o):Array.isArray(n)?tu(e,t,o,n):tu(e,t,o,null)};function Px(e={}){const t={c:(...o)=>W4(t,...o),use:(o,...n)=>o.install(t,...n),find:Rd,context:{},config:e};return t}function U4(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return Rd(e)!==null}function K4(e){let t=".",o="__",n="--",r;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(n=p)}const i={install(p){r=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function a(p){let g,v;return{before(b){g=b.bem.b,v=b.bem.els,b.bem.els=null},after(b){b.bem.b=g,b.bem.els=v},$({context:b,props:x}){return p=typeof p=="string"?p:p({context:b,props:x}),b.bem.b=p,`${(x==null?void 0:x.bPrefix)||t}${b.bem.b}`}}}function l(p){let g;return{before(v){g=v.bem.els},after(v){v.bem.els=g},$({context:v,props:b}){return p=typeof p=="string"?p:p({context:v,props:b}),v.bem.els=p.split(",").map(x=>x.trim()),v.bem.els.map(x=>`${(b==null?void 0:b.bPrefix)||t}${v.bem.b}${o}${x}`).join(", ")}}}function s(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const b=p.split(",").map(y=>y.trim());function x(y){return b.map(k=>`&${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${y!==void 0?`${o}${y}`:""}${n}${k}`).join(", ")}const E=g.bem.els;return E!==null?x(E[0]):x()}}}function u(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const b=g.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${b!==null&&b.length>0?`${o}${b[0]}`:""}${n}${p})`}}}return Object.assign(i,{cB:(...p)=>r(a(p[0]),p[1],p[2]),cE:(...p)=>r(l(p[0]),p[1],p[2]),cM:(...p)=>r(s(p[0]),p[1],p[2]),cNotM:(...p)=>r(u(p[0]),p[1],p[2])}),i}const G4="n",Ql=`.${G4}-`,q4="__",Z4="--",Mx=Px(),Ax=K4({blockPrefix:Ql,elementPrefix:q4,modifierPrefix:Z4});Mx.use(Ax);const{c:V,find:dX}=Mx,{cB:D,cE:Z,cM:Q,cNotM:Ft}=Ax;function Gi(e){return V(({props:{bPrefix:t}})=>`${t||Ql}modal, ${t||Ql}drawer`,[e])}function Ha(e){return V(({props:{bPrefix:t}})=>`${t||Ql}popover`,[e])}function Bx(e){return V(({props:{bPrefix:t}})=>`&${t||Ql}modal`,e)}const X4=(...e)=>V(">",[D(...e)]);function ke(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let Mc;function Y4(){return Mc===void 0&&(Mc=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Mc}const wn=typeof document<"u"&&typeof window<"u",Dx=new WeakSet;function Q4(e){Dx.add(e)}function Tx(e){return!Dx.has(e)}function J4(e,t,o){const n=M(e.value);let r=null;return at(e,i=>{r!==null&&window.clearTimeout(r),i===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}function Ix(e){const t=M(!!e.value);if(t.value)return Zn(t);const o=at(e,n=>{n&&(t.value=!0,o())});return Zn(t)}function gt(e){const t=T(e),o=M(t.value);return at(t,n=>{o.value=n}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(n){e.set(n)}}}function fp(){return xr()!==null}const $d=typeof window<"u";let _a,Dl;const ek=()=>{var e,t;_a=$d?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Dl=!1,_a!==void 0?_a.then(()=>{Dl=!0}):Dl=!0};ek();function hp(e){if(Dl)return;let t=!1;ut(()=>{Dl||_a==null||_a.then(()=>{t||e()})}),Xt(()=>{t=!0})}function Au(e){return e.composedPath()[0]}const tk={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function ok(e,t,o){if(e==="mousemoveoutside"){const n=r=>{t.contains(Au(r))||o(r)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const r=a=>{n=!t.contains(Au(a))},i=a=>{n&&(t.contains(Au(a))||o(a))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function zx(e,t,o){const n=tk[e];let r=n.get(t);r===void 0&&n.set(t,r=new WeakMap);let i=r.get(o);return i===void 0&&r.set(o,i=ok(e,t,o)),i}function nk(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=zx(e,t,o);return Object.keys(r).forEach(i=>{Ct(i,document,r[i],n)}),!0}return!1}function rk(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=zx(e,t,o);return Object.keys(r).forEach(i=>{xt(i,document,r[i],n)}),!0}return!1}function ik(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function r(C,A,P){const B=C[A];return C[A]=function(){return P.apply(C,arguments),B.apply(C,arguments)},C}function i(C,A){C[A]=Event.prototype[A]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var C;return(C=a.get(this))!==null&&C!==void 0?C:null}function u(C,A){l!==void 0&&Object.defineProperty(C,"currentTarget",{configurable:!0,enumerable:!0,get:A??l.get})}const d={bubble:{},capture:{}},c={};function h(){const C=function(A){const{type:P,eventPhase:B,bubbles:W}=A,N=Au(A);if(B===2)return;const K=B===1?"capture":"bubble";let H=N;const I=[];for(;H===null&&(H=window),I.push(H),H!==window;)H=H.parentNode||null;const O=d.capture[P],R=d.bubble[P];if(r(A,"stopPropagation",o),r(A,"stopImmediatePropagation",n),u(A,s),K==="capture"){if(O===void 0)return;for(let z=I.length-1;z>=0&&!e.has(A);--z){const _=I[z],oe=O.get(_);if(oe!==void 0){a.set(A,_);for(const G of oe){if(t.has(A))break;G(A)}}if(z===0&&!W&&R!==void 0){const G=R.get(_);if(G!==void 0)for(const j of G){if(t.has(A))break;j(A)}}}}else if(K==="bubble"){if(R===void 0)return;for(let z=0;z<I.length&&!e.has(A);++z){const _=I[z],oe=R.get(_);if(oe!==void 0){a.set(A,_);for(const G of oe){if(t.has(A))break;G(A)}}}}i(A,"stopPropagation"),i(A,"stopImmediatePropagation"),u(A)};return C.displayName="evtdUnifiedHandler",C}function f(){const C=function(A){const{type:P,eventPhase:B}=A;if(B!==2)return;const W=c[P];W!==void 0&&W.forEach(N=>N(A))};return C.displayName="evtdUnifiedWindowEventHandler",C}const p=h(),g=f();function v(C,A){const P=d[C];return P[A]===void 0&&(P[A]=new Map,window.addEventListener(A,p,C==="capture")),P[A]}function b(C){return c[C]===void 0&&(c[C]=new Set,window.addEventListener(C,g)),c[C]}function x(C,A){let P=C.get(A);return P===void 0&&C.set(A,P=new Set),P}function E(C,A,P,B){const W=d[A][P];if(W!==void 0){const N=W.get(C);if(N!==void 0&&N.has(B))return!0}return!1}function y(C,A){const P=c[C];return!!(P!==void 0&&P.has(A))}function k(C,A,P,B){let W;if(typeof B=="object"&&B.once===!0?W=O=>{F(C,A,W,B),P(O)}:W=P,nk(C,A,W,B))return;const K=B===!0||typeof B=="object"&&B.capture===!0?"capture":"bubble",H=v(K,C),I=x(H,A);if(I.has(W)||I.add(W),A===window){const O=b(C);O.has(W)||O.add(W)}}function F(C,A,P,B){if(rk(C,A,P,B))return;const N=B===!0||typeof B=="object"&&B.capture===!0,K=N?"capture":"bubble",H=v(K,C),I=x(H,A);if(A===window&&!E(A,N?"bubble":"capture",C,P)&&y(C,P)){const R=c[C];R.delete(P),R.size===0&&(window.removeEventListener(C,g),c[C]=void 0)}I.has(P)&&I.delete(P),I.size===0&&H.delete(A),H.size===0&&(window.removeEventListener(C,p,K==="capture"),d[K][C]=void 0)}return{on:k,off:F}}const{on:Ct,off:xt}=ik(),yl=M(null);function kg(e){if(e.clientX>0||e.clientY>0)yl.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:n,width:r,height:i}=t.getBoundingClientRect();o>0||n>0?yl.value={x:o+r/2,y:n+i/2}:yl.value={x:0,y:0}}else yl.value=null}}let ou=0,_g=!0;function Zu(){if(!$d)return Zn(M(null));ou===0&&Ct("click",document,kg,!0);const e=()=>{ou+=1};return _g&&(_g=fp())?(ri(e),Xt(()=>{ou-=1,ou===0&&xt("click",document,kg,!0)})):e(),Zn(yl)}const ak=M(void 0);let nu=0;function Fg(){ak.value=Date.now()}let Rg=!0;function Xu(e){if(!$d)return Zn(M(!1));const t=M(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}nu===0&&Ct("click",window,Fg,!0);const i=()=>{nu+=1,Ct("click",window,r,!0)};return Rg&&(Rg=fp())?(ri(i),Xt(()=>{nu-=1,nu===0&&xt("click",window,Fg,!0),xt("click",window,r,!0),n()})):i(),Zn(t)}function to(e,t){return at(e,o=>{o!==void 0&&(t.value=o)}),T(()=>e.value===void 0?t.value:e.value)}function Cr(){const e=M(!1);return ut(()=>{e.value=!0}),Zn(e)}function Jl(e,t){return T(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const lk=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function sk(){return lk}const uk={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function dk(e){return`(min-width: ${e}px)`}const il={};function ck(e=uk){if(!$d)return T(()=>[]);if(typeof window.matchMedia!="function")return T(()=>[]);const t=M({}),o=Object.keys(e),n=(r,i)=>{r.matches?t.value[i]=!0:t.value[i]=!1};return o.forEach(r=>{const i=e[r];let a,l;il[i]===void 0?(a=window.matchMedia(dk(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(u=>{u(s,r)})}):a.addListener&&a.addListener(s=>{l.forEach(u=>{u(s,r)})}),l=new Set,il[i]={mql:a,cbs:l}):(a=il[i].mql,l=il[i].cbs),l.add(n),a.matches&&l.forEach(s=>{s(a,r)})}),Xt(()=>{o.forEach(r=>{const{cbs:i}=il[e[r]];i.has(n)&&i.delete(n)})}),T(()=>{const{value:r}=t;return o.filter(i=>r[i])})}function fk(e={},t){const o=It({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(u=>{if(u!==s.key)return;const d=n[u];if(typeof d=="function")d(s);else{const{stop:c=!1,prevent:h=!1}=d;c&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(u=>{if(u!==s.key)return;const d=r[u];if(typeof d=="function")d(s);else{const{stop:c=!1,prevent:h=!1}=d;c&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(Ct("keydown",document,i),Ct("keyup",document,a)),t!==void 0&&at(t,s=>{s?(Ct("keydown",document,i),Ct("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return fp()?(ri(l),Xt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),Zn(o)}const pp="n-internal-select-menu",Ox="n-internal-select-menu-body",Ss="n-modal-body",hk="n-modal-provider",Lx="n-modal",Es="n-drawer-body",mp="n-drawer",Na="n-popover-body",Hx="__disabled__";function Mo(e){const t=Oe(Ss,null),o=Oe(Es,null),n=Oe(Na,null),r=Oe(Ox,null),i=M();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};ut(()=>{Ct("fullscreenchange",document,a)}),Xt(()=>{xt("fullscreenchange",document,a)})}return gt(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Hx:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:l??(i.value||"body")})}Mo.tdkey=Hx;Mo.propTo={type:[String,Object,Boolean],default:void 0};let $g=!1;function pk(){if(wn&&window.CSS&&!$g&&($g=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}function Jf(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function eh(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push($(String(n)));return}if(Array.isArray(n)){eh(n,t,o);return}if(n.type===ft){if(n.children===null)return;Array.isArray(n.children)&&eh(n.children,t,o)}else n.type!==go&&o.push(n)}}),o}function Pg(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=eh(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let Ar=null;function Nx(){if(Ar===null&&(Ar=document.getElementById("v-binder-view-measurer"),Ar===null)){Ar=document.createElement("div"),Ar.id="v-binder-view-measurer";const{style:e}=Ar;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ar)}return Ar.getBoundingClientRect()}function mk(e,t){const o=Nx();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Ac(e){const t=e.getBoundingClientRect(),o=Nx();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function gk(e){return e.nodeType===9?null:e.parentNode}function Vx(e){if(e===null)return null;const t=gk(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+n))return t}return Vx(t)}const ks=xe({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;et("VBinder",(t=xr())===null||t===void 0?void 0:t.proxy);const o=Oe("VBinder",null),n=M(null),r=b=>{n.value=b,o&&e.syncTargetWithParent&&o.setTargetRef(b)};let i=[];const a=()=>{let b=n.value;for(;b=Vx(b),b!==null;)i.push(b);for(const x of i)Ct("scroll",x,c,!0)},l=()=>{for(const b of i)xt("scroll",b,c,!0);i=[]},s=new Set,u=b=>{s.size===0&&a(),s.has(b)||s.add(b)},d=b=>{s.has(b)&&s.delete(b),s.size===0&&l()},c=()=>{Xl(h)},h=()=>{s.forEach(b=>b())},f=new Set,p=b=>{f.size===0&&Ct("resize",window,v),f.has(b)||f.add(b)},g=b=>{f.has(b)&&f.delete(b),f.size===0&&xt("resize",window,v)},v=()=>{f.forEach(b=>b())};return Xt(()=>{xt("resize",window,v),l()}),{targetRef:n,setTargetRef:r,addScrollListener:u,removeScrollListener:d,addResizeListener:p,removeResizeListener:g}},render(){return Jf("binder",this.$slots)}}),_s=xe({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Oe("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Po(Pg("follower",this.$slots),[[t]]):Pg("follower",this.$slots)}}),aa="@@mmoContext",vk={mounted(e,{value:t}){e[aa]={handler:void 0},typeof t=="function"&&(e[aa].handler=t,Ct("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[aa];typeof t=="function"?o.handler?o.handler!==t&&(xt("mousemoveoutside",e,o.handler),o.handler=t,Ct("mousemoveoutside",e,t)):(e[aa].handler=t,Ct("mousemoveoutside",e,t)):o.handler&&(xt("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[aa];t&&xt("mousemoveoutside",e,t),e[aa].handler=void 0}},la="@@coContext",Li={mounted(e,{value:t,modifiers:o}){e[la]={handler:void 0},typeof t=="function"&&(e[la].handler=t,Ct("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[la];typeof t=="function"?n.handler?n.handler!==t&&(xt("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,Ct("clickoutside",e,t,{capture:o.capture})):(e[la].handler=t,Ct("clickoutside",e,t,{capture:o.capture})):n.handler&&(xt("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[la];o&&xt("clickoutside",e,o,{capture:t.capture}),e[la].handler=void 0}};function bk(e,t){console.error(`[vdirs/${e}]: ${t}`)}class xk{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:n}=this;if(o!==void 0){t.style.zIndex=`${o}`,n.delete(t);return}const{nextZIndex:r}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,n.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,o){const{elementZIndex:n}=this;n.has(t)?n.delete(t):o===void 0&&bk("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,n)=>o[1]-n[1]),this.nextZIndex=2e3,t.forEach(o=>{const n=o[0],r=this.nextZIndex++;`${r}`!==n.style.zIndex&&(n.style.zIndex=`${r}`)})}}const Bc=new xk,sa="@@ziContext",Pd={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[sa]={enabled:!!r,initialized:!1},r&&(Bc.ensureZIndex(e,n),e[sa].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[sa].enabled;r&&!i&&(Bc.ensureZIndex(e,n),e[sa].initialized=!0),e[sa].enabled=!!r},unmounted(e,t){if(!e[sa].initialized)return;const{value:o={}}=t,{zIndex:n}=o;Bc.unregister(e,n)}},yk="@css-render/vue3-ssr";function Ck(e,t){return`<style cssr-id="${e}"> +${t} +</style>`}function wk(e,t,o){const{styles:n,ids:r}=o;r.has(e)||n!==null&&(r.add(e),n.push(Ck(e,t)))}const Sk=typeof document<"u";function ai(){if(Sk)return;const e=Oe(yk,null);if(e!==null)return{adapter:(t,o)=>wk(t,o,e),context:e}}function Mg(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Wn}=Px(),Md="vueuc-style";function Ag(e){return e&-e}class jx{constructor(t,o){this.l=t,this.min=o;const n=new Array(t+1);for(let r=0;r<t+1;++r)n[r]=0;this.ft=n}add(t,o){if(o===0)return;const{l:n,ft:r}=this;for(t+=1;t<=n;)r[t]+=o,t+=Ag(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:o,min:n,l:r}=this;if(t>r)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=o[t],t-=Ag(t);return i}getBound(t){let o=0,n=this.l;for(;n>o;){const r=Math.floor((o+n)/2),i=this.sum(r);if(i>t){n=r;continue}else if(i<t){if(o===r)return this.sum(o+1)<=t?o+1:r;o=r}else return r}return o}}function Bg(e){return typeof e=="string"?document.querySelector(e):e()}const gp=xe({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Ix(De(e,"show")),mergedTo:T(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Jf("lazy-teleport",this.$slots):m(bs,{disabled:this.disabled,to:this.mergedTo},Jf("lazy-teleport",this.$slots)):null}}),ru={top:"bottom",bottom:"top",left:"right",right:"left"},Dg={start:"end",center:"center",end:"start"},Dc={top:"height",bottom:"height",left:"width",right:"width"},Ek={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},kk={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},_k={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Tg={top:!0,bottom:!1,left:!0,right:!1},Ig={top:"end",bottom:"start",left:"end",right:"start"};function Fk(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l??"center",u={top:0,left:0};const d=(f,p,g)=>{let v=0,b=0;const x=o[f]-t[p]-t[f];return x>0&&n&&(g?b=Tg[p]?x:-x:v=Tg[p]?x:-x),{left:v,top:b}},c=a==="left"||a==="right";if(s!=="center"){const f=_k[e],p=ru[f],g=Dc[f];if(o[g]>t[g]){if(t[f]+t[g]<o[g]){const v=(o[g]-t[g])/2;t[f]<v||t[p]<v?t[f]<t[p]?(s=Dg[l],u=d(g,p,c)):u=d(g,f,c):s="center"}}else o[g]<t[g]&&t[p]<0&&t[f]>t[p]&&(s=Dg[l])}else{const f=a==="bottom"||a==="top"?"left":"top",p=ru[f],g=Dc[f],v=(o[g]-t[g])/2;(t[f]<v||t[p]<v)&&(t[f]>t[p]?(s=Ig[f],u=d(g,f,c)):(s=Ig[p],u=d(g,p,c)))}let h=a;return t[a]<o[Dc[a]]&&t[a]<t[ru[a]]&&(h=ru[a]),{placement:s!=="center"?`${h}-${s}`:h,left:u.left,top:u.top}}function Rk(e,t){return t?kk[e]:Ek[e]}function $k(e,t,o,n,r,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:""};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:""};case"right-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateX(-50%)"}}}const Pk=Wn([Wn(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Wn(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Wn("> *",{pointerEvents:"all"})])]),Fs=xe({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Oe("VBinder"),o=gt(()=>e.enabled!==void 0?e.enabled:e.show),n=M(null),r=M(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ut(()=>{o.value&&(s(),i())});const l=ai();Pk.mount({id:"vueuc/binder",head:!0,anchorMetaName:Md,ssr:l}),Xt(()=>{a()}),hp(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=n.value;if(h===null)return;const f=t.targetRef,{x:p,y:g,overlap:v}=e,b=p!==void 0&&g!==void 0?mk(p,g):Ac(f);h.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:x,minWidth:E,placement:y,internalShift:k,flip:F}=e;h.setAttribute("v-placement",y),v?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:C}=h;x==="target"?C.width=`${b.width}px`:x!==void 0?C.width=x:C.width="",E==="target"?C.minWidth=`${b.width}px`:E!==void 0?C.minWidth=E:C.minWidth="";const A=Ac(h),P=Ac(r.value),{left:B,top:W,placement:N}=Fk(y,b,A,k,F,v),K=Rk(N,v),{left:H,top:I,transform:O}=$k(N,P,b,W,B,v);h.setAttribute("v-placement",N),h.style.setProperty("--v-offset-left",`${Math.round(B)}px`),h.style.setProperty("--v-offset-top",`${Math.round(W)}px`),h.style.transform=`translateX(${H}) translateY(${I}) ${O}`,h.style.setProperty("--v-transform-origin",K),h.style.transformOrigin=K};at(o,h=>{h?(i(),u()):a()});const u=()=>{Rt().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{at(De(e,h),s)}),["teleportDisabled"].forEach(h=>{at(De(e,h),u)}),at(De(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Cr(),c=gt(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:c,syncPosition:s}},render(){return m(gp,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=m("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[m("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Po(o,[[Pd,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Bi=[],Mk=function(){return Bi.some(function(e){return e.activeTargets.length>0})},Ak=function(){return Bi.some(function(e){return e.skippedTargets.length>0})},zg="ResizeObserver loop completed with undelivered notifications.",Bk=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:zg}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=zg),window.dispatchEvent(e)},es;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(es||(es={}));var Di=function(e){return Object.freeze(e)},Dk=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Di(this)}return e}(),Wx=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Di(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,u=t.height;return{x:o,y:n,top:r,right:i,bottom:a,left:l,width:s,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),vp=function(e){return e instanceof SVGElement&&"getBBox"in e},Ux=function(e){if(vp(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},Og=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Tk=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Tl=typeof window<"u"?window:{},iu=new WeakMap,Lg=/auto|scroll/,Ik=/^tb|vertical/,zk=/msie|trident/i.test(Tl.navigator&&Tl.navigator.userAgent),On=function(e){return parseFloat(e||"0")},Fa=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Dk((o?t:e)||0,(o?e:t)||0)},Hg=Di({devicePixelContentBoxSize:Fa(),borderBoxSize:Fa(),contentBoxSize:Fa(),contentRect:new Wx(0,0,0,0)}),Kx=function(e,t){if(t===void 0&&(t=!1),iu.has(e)&&!t)return iu.get(e);if(Ux(e))return iu.set(e,Hg),Hg;var o=getComputedStyle(e),n=vp(e)&&e.ownerSVGElement&&e.getBBox(),r=!zk&&o.boxSizing==="border-box",i=Ik.test(o.writingMode||""),a=!n&&Lg.test(o.overflowY||""),l=!n&&Lg.test(o.overflowX||""),s=n?0:On(o.paddingTop),u=n?0:On(o.paddingRight),d=n?0:On(o.paddingBottom),c=n?0:On(o.paddingLeft),h=n?0:On(o.borderTopWidth),f=n?0:On(o.borderRightWidth),p=n?0:On(o.borderBottomWidth),g=n?0:On(o.borderLeftWidth),v=c+u,b=s+d,x=g+f,E=h+p,y=l?e.offsetHeight-E-e.clientHeight:0,k=a?e.offsetWidth-x-e.clientWidth:0,F=r?v+x:0,C=r?b+E:0,A=n?n.width:On(o.width)-F-k,P=n?n.height:On(o.height)-C-y,B=A+v+k+x,W=P+b+y+E,N=Di({devicePixelContentBoxSize:Fa(Math.round(A*devicePixelRatio),Math.round(P*devicePixelRatio),i),borderBoxSize:Fa(B,W,i),contentBoxSize:Fa(A,P,i),contentRect:new Wx(c,s,A,P)});return iu.set(e,N),N},Gx=function(e,t,o){var n=Kx(e,o),r=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case es.DEVICE_PIXEL_CONTENT_BOX:return a;case es.BORDER_BOX:return r;default:return i}},Ok=function(){function e(t){var o=Kx(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Di([o.borderBoxSize]),this.contentBoxSize=Di([o.contentBoxSize]),this.devicePixelContentBoxSize=Di([o.devicePixelContentBoxSize])}return e}(),qx=function(e){if(Ux(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Lk=function(){var e=1/0,t=[];Bi.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(u){var d=new Ok(u.target),c=qx(u.target);l.push(d),u.lastReportedSize=Gx(u.target,u.observedBox),c<e&&(e=c)}),t.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},Ng=function(e){Bi.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(qx(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Hk=function(){var e=0;for(Ng(e);Mk();)e=Lk(),Ng(e);return Ak()&&Bk(),e>0},Tc,Zx=[],Nk=function(){return Zx.splice(0).forEach(function(e){return e()})},Vk=function(e){if(!Tc){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Nk()}).observe(o,n),Tc=function(){o.textContent="".concat(t?t--:t++)}}Zx.push(e),Tc()},jk=function(e){Vk(function(){requestAnimationFrame(e)})},Bu=0,Wk=function(){return!!Bu},Uk=250,Kk={attributes:!0,characterData:!0,childList:!0,subtree:!0},Vg=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],jg=function(e){return e===void 0&&(e=0),Date.now()+e},Ic=!1,Gk=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Uk),!Ic){Ic=!0;var n=jg(t);jk(function(){var r=!1;try{r=Hk()}finally{if(Ic=!1,t=n-jg(),!Wk())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Kk)};document.body?o():Tl.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Vg.forEach(function(o){return Tl.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Vg.forEach(function(o){return Tl.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),th=new Gk,Wg=function(e){!Bu&&e>0&&th.start(),Bu+=e,!Bu&&th.stop()},qk=function(e){return!vp(e)&&!Tk(e)&&getComputedStyle(e).display==="inline"},Zk=function(){function e(t,o){this.target=t,this.observedBox=o||es.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Gx(this.target,this.observedBox,!0);return qk(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Xk=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),au=new WeakMap,Ug=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},lu=function(){function e(){}return e.connect=function(t,o){var n=new Xk(t,o);au.set(t,n)},e.observe=function(t,o,n){var r=au.get(t),i=r.observationTargets.length===0;Ug(r.observationTargets,o)<0&&(i&&Bi.push(r),r.observationTargets.push(new Zk(o,n&&n.box)),Wg(1),th.schedule())},e.unobserve=function(t,o){var n=au.get(t),r=Ug(n.observationTargets,o),i=n.observationTargets.length===1;r>=0&&(i&&Bi.splice(Bi.indexOf(n),1),n.observationTargets.splice(r,1),Wg(-1))},e.disconnect=function(t){var o=this,n=au.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Yk=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");lu.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Og(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");lu.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Og(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");lu.unobserve(this,t)},e.prototype.disconnect=function(){lu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Qk{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Yk)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const n=this.elHandlersMap.get(o.target);n!==void 0&&n(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Yu=new Qk,$n=xe({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=xr().proxy;function n(r){const{onResize:i}=e;i!==void 0&&i(r)}ut(()=>{const r=o.$el;if(r===void 0){Mg("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){Mg("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(Yu.registerHandler(r.nextElementSibling,n),t=!0)}),Xt(()=>{t&&Yu.unregisterHandler(o.$el.nextElementSibling)})},render(){return xs(this.$slots,"default")}});let su;function Jk(){return typeof document>"u"?!1:(su===void 0&&("matchMedia"in window?su=window.matchMedia("(pointer:coarse)").matches:su=!1),su)}let zc;function Kg(){return typeof document>"u"?1:(zc===void 0&&(zc="chrome"in window?window.devicePixelRatio:1),zc)}const Xx="VVirtualListXScroll";function e8({columnsRef:e,renderColRef:t,renderItemWithColsRef:o}){const n=M(0),r=M(0),i=T(()=>{const u=e.value;if(u.length===0)return null;const d=new jx(u.length,0);return u.forEach((c,h)=>{d.add(h,c.width)}),d}),a=gt(()=>{const u=i.value;return u!==null?Math.max(u.getBound(r.value)-1,0):0}),l=u=>{const d=i.value;return d!==null?d.sum(u):0},s=gt(()=>{const u=i.value;return u!==null?Math.min(u.getBound(r.value+n.value)+1,e.value.length-1):0});return et(Xx,{startIndexRef:a,endIndexRef:s,columnsRef:e,renderColRef:t,renderItemWithColsRef:o,getLeft:l}),{listWidthRef:n,scrollLeftRef:r}}const Gg=xe({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:o,getLeft:n,renderColRef:r,renderItemWithColsRef:i}=Oe(Xx);return{startIndex:e,endIndex:t,columns:o,renderCol:r,renderItemWithCols:i,getLeft:n}},render(){const{startIndex:e,endIndex:t,columns:o,renderCol:n,renderItemWithCols:r,getLeft:i,item:a}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:o,item:a,getLeft:i});if(n!=null){const l=[];for(let s=e;s<=t;++s){const u=o[s];l.push(n({column:u,left:i(s),item:a}))}return l}return null}}),t8=Wn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Wn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Wn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),bp=xe({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=ai();t8.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Md,ssr:t}),ut(()=>{const{defaultScrollIndex:K,defaultScrollKey:H}=e;K!=null?v({index:K}):H!=null&&v({key:H})});let o=!1,n=!1;Qh(()=>{if(o=!1,!n){n=!0;return}v({top:f.value,left:a.value})}),wd(()=>{o=!0,n||(n=!0)});const r=gt(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let K=0;return e.columns.forEach(H=>{K+=H.width}),K}),i=T(()=>{const K=new Map,{keyField:H}=e;return e.items.forEach((I,O)=>{K.set(I[H],O)}),K}),{scrollLeftRef:a,listWidthRef:l}=e8({columnsRef:De(e,"columns"),renderColRef:De(e,"renderCol"),renderItemWithColsRef:De(e,"renderItemWithCols")}),s=M(null),u=M(void 0),d=new Map,c=T(()=>{const{items:K,itemSize:H,keyField:I}=e,O=new jx(K.length,H);return K.forEach((R,z)=>{const _=R[I],oe=d.get(_);oe!==void 0&&O.add(z,oe)}),O}),h=M(0),f=M(0),p=gt(()=>Math.max(c.value.getBound(f.value-so(e.paddingTop))-1,0)),g=T(()=>{const{value:K}=u;if(K===void 0)return[];const{items:H,itemSize:I}=e,O=p.value,R=Math.min(O+Math.ceil(K/I+1),H.length-1),z=[];for(let _=O;_<=R;++_)z.push(H[_]);return z}),v=(K,H)=>{if(typeof K=="number"){y(K,H,"auto");return}const{left:I,top:O,index:R,key:z,position:_,behavior:oe,debounce:G=!0}=K;if(I!==void 0||O!==void 0)y(I,O,oe);else if(R!==void 0)E(R,oe,G);else if(z!==void 0){const j=i.value.get(z);j!==void 0&&E(j,oe,G)}else _==="bottom"?y(0,Number.MAX_SAFE_INTEGER,oe):_==="top"&&y(0,0,oe)};let b,x=null;function E(K,H,I){const{value:O}=c,R=O.sum(K)+so(e.paddingTop);if(!I)s.value.scrollTo({left:0,top:R,behavior:H});else{b=K,x!==null&&window.clearTimeout(x),x=window.setTimeout(()=>{b=void 0,x=null},16);const{scrollTop:z,offsetHeight:_}=s.value;if(R>z){const oe=O.get(K);R+oe<=z+_||s.value.scrollTo({left:0,top:R+oe-_,behavior:H})}else s.value.scrollTo({left:0,top:R,behavior:H})}}function y(K,H,I){s.value.scrollTo({left:K,top:H,behavior:I})}function k(K,H){var I,O,R;if(o||e.ignoreItemResize||N(H.target))return;const{value:z}=c,_=i.value.get(K),oe=z.get(_),G=(R=(O=(I=H.borderBoxSize)===null||I===void 0?void 0:I[0])===null||O===void 0?void 0:O.blockSize)!==null&&R!==void 0?R:H.contentRect.height;if(G===oe)return;G-e.itemSize===0?d.delete(K):d.set(K,G-e.itemSize);const ue=G-oe;if(ue===0)return;z.add(_,ue);const he=s.value;if(he!=null){if(b===void 0){const _e=z.sum(_);he.scrollTop>_e&&he.scrollBy(0,ue)}else if(_<b)he.scrollBy(0,ue);else if(_===b){const _e=z.sum(_);G+_e>he.scrollTop+he.offsetHeight&&he.scrollBy(0,ue)}W()}h.value++}const F=!Jk();let C=!1;function A(K){var H;(H=e.onScroll)===null||H===void 0||H.call(e,K),(!F||!C)&&W()}function P(K){var H;if((H=e.onWheel)===null||H===void 0||H.call(e,K),F){const I=s.value;if(I!=null){if(K.deltaX===0&&(I.scrollTop===0&&K.deltaY<=0||I.scrollTop+I.offsetHeight>=I.scrollHeight&&K.deltaY>=0))return;K.preventDefault(),I.scrollTop+=K.deltaY/Kg(),I.scrollLeft+=K.deltaX/Kg(),W(),C=!0,Xl(()=>{C=!1})}}}function B(K){if(o||N(K.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(K.contentRect.height===u.value)return}else if(K.contentRect.height===u.value&&K.contentRect.width===l.value)return;u.value=K.contentRect.height,l.value=K.contentRect.width;const{onResize:H}=e;H!==void 0&&H(K)}function W(){const{value:K}=s;K!=null&&(f.value=K.scrollTop,a.value=K.scrollLeft)}function N(K){let H=K;for(;H!==null;){if(H.style.display==="none")return!0;H=H.parentElement}return!1}return{listHeight:u,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:T(()=>{const{itemResizable:K}=e,H=Ht(c.value.sum());return h.value,[e.itemsStyle,{boxSizing:"content-box",width:Ht(r.value),height:K?"":H,minHeight:K?H:"",paddingTop:Ht(e.paddingTop),paddingBottom:Ht(e.paddingBottom)}]}),visibleItemsStyle:T(()=>(h.value,{transform:`translateY(${Ht(c.value.sum(p.value))})`})),viewportItems:g,listElRef:s,itemsElRef:M(null),scrollTo:v,handleListResize:B,handleListScroll:A,handleListWheel:P,handleItemResize:k}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:n}=this;return m($n,{onResize:this.handleListResize},{default:()=>{var r,i;return m("div",bo(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?m("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[m(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:a,renderItemWithCols:l}=this;return this.viewportItems.map(s=>{const u=s[t],d=o.get(u),c=a!=null?m(Gg,{index:d,item:s}):void 0,h=l!=null?m(Gg,{index:d,item:s}):void 0,f=this.$slots.default({item:s,renderedCols:c,renderedItemWithCols:h,index:d})[0];return e?m($n,{key:u,onResize:p=>this.handleItemResize(u,p)},{default:()=>f}):(f.key=u,f)})}})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),o8=Wn(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Wn("&::-webkit-scrollbar",{width:0,height:0})]),n8=xe({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=M(null);function t(r){!(r.currentTarget.offsetWidth<r.currentTarget.scrollWidth)||r.deltaY===0||(r.currentTarget.scrollLeft+=r.deltaY+r.deltaX,r.preventDefault())}const o=ai();return o8.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Md,ssr:o}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...r){var i;(i=e.value)===null||i===void 0||i.scrollTo(...r)}})},render(){return m("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}}),ar="v-hidden",r8=Wn("[v-hidden]",{display:"none!important"}),qg=xe({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=M(null),n=M(null);function r(a){const{value:l}=o,{getCounter:s,getTail:u}=e;let d;if(s!==void 0?d=s():d=n.value,!l||!d)return;d.hasAttribute(ar)&&d.removeAttribute(ar);const{children:c}=l;if(a.showAllItemsBeforeCalculate)for(const E of c)E.hasAttribute(ar)&&E.removeAttribute(ar);const h=l.offsetWidth,f=[],p=t.tail?u==null?void 0:u():null;let g=p?p.offsetWidth:0,v=!1;const b=l.children.length-(t.tail?1:0);for(let E=0;E<b-1;++E){if(E<0)continue;const y=c[E];if(v){y.hasAttribute(ar)||y.setAttribute(ar,"");continue}else y.hasAttribute(ar)&&y.removeAttribute(ar);const k=y.offsetWidth;if(g+=k,f[E]=k,g>h){const{updateCounter:F}=e;for(let C=E;C>=0;--C){const A=b-1-C;F!==void 0?F(A):d.textContent=`${A}`;const P=d.offsetWidth;if(g-=f[C],g+P<=h||C===0){v=!0,E=C-1,p&&(E===-1?(p.style.maxWidth=`${h-P}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:B}=e;B&&B(A);break}}}}const{onUpdateOverflow:x}=e;v?x!==void 0&&x(!0):(x!==void 0&&x(!1),d.setAttribute(ar,""))}const i=ai();return r8.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Md,ssr:i}),ut(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return Rt(()=>this.sync({showAllItemsBeforeCalculate:!1})),m("div",{class:"v-overflow",ref:"selfRef"},[xs(e,"default"),e.counter?e.counter():m("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Yx(e){return e instanceof HTMLElement}function Qx(e){for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];if(Yx(o)&&(ey(o)||Qx(o)))return!0}return!1}function Jx(e){for(let t=e.childNodes.length-1;t>=0;t--){const o=e.childNodes[t];if(Yx(o)&&(ey(o)||Jx(o)))return!0}return!1}function ey(e){if(!i8(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function i8(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let al=[];const xp=xe({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=ii(),o=M(null),n=M(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return al[al.length-1]===t}function s(v){var b;v.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,v))}ut(()=>{at(()=>e.active,v=>{v?(c(),Ct("keydown",document,s)):(xt("keydown",document,s),r&&h())},{immediate:!0})}),Xt(()=>{xt("keydown",document,s),r&&h()});function u(v){if(!i&&l()){const b=d();if(b===null||b.contains(Oi(v)))return;f("first")}}function d(){const v=o.value;if(v===null)return null;let b=v;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function c(){var v;if(!e.disabled){if(al.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?f("first"):(v=Bg(b))===null||v===void 0||v.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",u,!0)}}function h(){var v;if(e.disabled||(document.removeEventListener("focus",u,!0),al=al.filter(x=>x!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(v=Bg(b))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function f(v){if(l()&&e.active){const b=o.value,x=n.value;if(b!==null&&x!==null){const E=d();if(E==null||E===x){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const y=v==="first"?Qx(E):Jx(E);i=!1,y||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(v){if(i)return;const b=d();b!==null&&(v.relatedTarget!==null&&b.contains(v.relatedTarget)?f("last"):f("first"))}function g(v){i||(v.relatedTarget!==null&&v.relatedTarget===o.value?f("last"):f("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return m(ft,null,[m("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),m("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function ty(e,t){t&&(ut(()=>{const{value:o}=e;o&&Yu.registerHandler(o,t)}),Xt(()=>{const{value:o}=e;o&&Yu.unregisterHandler(o)}))}let ua=0,Zg="",Xg="",Yg="",Qg="";const oh=M("0px");function oy(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=Zg,t.style.overflow=Xg,t.style.overflowX=Yg,t.style.overflowY=Qg,oh.value="0px"};ut(()=>{o=at(e,i=>{if(i){if(!ua){const a=window.innerWidth-t.offsetWidth;a>0&&(Zg=t.style.marginRight,t.style.marginRight=`${a}px`,oh.value=`${a}px`),Xg=t.style.overflow,Yg=t.style.overflowX,Qg=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,ua++}else ua--,ua||r(),n=!1},{immediate:!0})}),Xt(()=>{o==null||o(),n&&(ua--,ua||r(),n=!1)})}const yp=M(!1);function Jg(){yp.value=!0}function e0(){yp.value=!1}let ll=0;function ny(){return wn&&(ri(()=>{ll||(window.addEventListener("compositionstart",Jg),window.addEventListener("compositionend",e0)),ll++}),Xt(()=>{ll<=1?(window.removeEventListener("compositionstart",Jg),window.removeEventListener("compositionend",e0),ll=0):ll--})),yp}function a8(e){const t={isDeactivated:!1};let o=!1;return Qh(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),wd(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function ry(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}const t0="n-form-item";function Dn(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=Oe(t0,null);et(t0,null);const i=T(o?()=>o(r):()=>{const{size:s}=e;if(s)return s;if(r){const{mergedSize:u}=r;if(u.value!==void 0)return u.value}return t}),a=T(n?()=>n(r):()=>{const{disabled:s}=e;return s!==void 0?s:r?r.disabled.value:!1}),l=T(()=>{const{status:s}=e;return s||(r==null?void 0:r.mergedValidationStatus.value)});return Xt(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var iy=typeof global=="object"&&global&&global.Object===Object&&global,l8=typeof self=="object"&&self&&self.Object===Object&&self,Tn=iy||l8||Function("return this")(),yn=Tn.Symbol,ay=Object.prototype,s8=ay.hasOwnProperty,u8=ay.toString,sl=yn?yn.toStringTag:void 0;function d8(e){var t=s8.call(e,sl),o=e[sl];try{e[sl]=void 0;var n=!0}catch{}var r=u8.call(e);return n&&(t?e[sl]=o:delete e[sl]),r}var c8=Object.prototype,f8=c8.toString;function h8(e){return f8.call(e)}var p8="[object Null]",m8="[object Undefined]",o0=yn?yn.toStringTag:void 0;function qi(e){return e==null?e===void 0?m8:p8:o0&&o0 in Object(e)?d8(e):h8(e)}function Yn(e){return e!=null&&typeof e=="object"}var g8="[object Symbol]";function Ad(e){return typeof e=="symbol"||Yn(e)&&qi(e)==g8}function Cp(e,t){for(var o=-1,n=e==null?0:e.length,r=Array(n);++o<n;)r[o]=t(e[o],o,e);return r}var Oo=Array.isArray,v8=1/0,n0=yn?yn.prototype:void 0,r0=n0?n0.toString:void 0;function ly(e){if(typeof e=="string")return e;if(Oo(e))return Cp(e,ly)+"";if(Ad(e))return r0?r0.call(e):"";var t=e+"";return t=="0"&&1/e==-v8?"-0":t}var b8=/\s/;function x8(e){for(var t=e.length;t--&&b8.test(e.charAt(t)););return t}var y8=/^\s+/;function C8(e){return e&&e.slice(0,x8(e)+1).replace(y8,"")}function an(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var i0=NaN,w8=/^[-+]0x[0-9a-f]+$/i,S8=/^0b[01]+$/i,E8=/^0o[0-7]+$/i,k8=parseInt;function a0(e){if(typeof e=="number")return e;if(Ad(e))return i0;if(an(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=an(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=C8(e);var o=S8.test(e);return o||E8.test(e)?k8(e.slice(2),o?2:8):w8.test(e)?i0:+e}function wp(e){return e}var _8="[object AsyncFunction]",F8="[object Function]",R8="[object GeneratorFunction]",$8="[object Proxy]";function Sp(e){if(!an(e))return!1;var t=qi(e);return t==F8||t==R8||t==_8||t==$8}var Oc=Tn["__core-js_shared__"],l0=function(){var e=/[^.]+$/.exec(Oc&&Oc.keys&&Oc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function P8(e){return!!l0&&l0 in e}var M8=Function.prototype,A8=M8.toString;function Zi(e){if(e!=null){try{return A8.call(e)}catch{}try{return e+""}catch{}}return""}var B8=/[\\^$.*+?()[\]{}|]/g,D8=/^\[object .+?Constructor\]$/,T8=Function.prototype,I8=Object.prototype,z8=T8.toString,O8=I8.hasOwnProperty,L8=RegExp("^"+z8.call(O8).replace(B8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function H8(e){if(!an(e)||P8(e))return!1;var t=Sp(e)?L8:D8;return t.test(Zi(e))}function N8(e,t){return e==null?void 0:e[t]}function Xi(e,t){var o=N8(e,t);return H8(o)?o:void 0}var nh=Xi(Tn,"WeakMap"),s0=Object.create,V8=function(){function e(){}return function(t){if(!an(t))return{};if(s0)return s0(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();function j8(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function sy(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var W8=800,U8=16,K8=Date.now;function G8(e){var t=0,o=0;return function(){var n=K8(),r=U8-(n-o);if(o=n,r>0){if(++t>=W8)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function q8(e){return function(){return e}}var Qu=function(){try{var e=Xi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Z8=Qu?function(e,t){return Qu(e,"toString",{configurable:!0,enumerable:!1,value:q8(t),writable:!0})}:wp,uy=G8(Z8);function X8(e,t){for(var o=-1,n=e==null?0:e.length;++o<n&&t(e[o],o,e)!==!1;);return e}var Y8=9007199254740991,Q8=/^(?:0|[1-9]\d*)$/;function Ep(e,t){var o=typeof e;return t=t??Y8,!!t&&(o=="number"||o!="symbol"&&Q8.test(e))&&e>-1&&e%1==0&&e<t}function Rs(e,t,o){t=="__proto__"&&Qu?Qu(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function $s(e,t){return e===t||e!==e&&t!==t}var J8=Object.prototype,e7=J8.hasOwnProperty;function dy(e,t,o){var n=e[t];(!(e7.call(e,t)&&$s(n,o))||o===void 0&&!(t in e))&&Rs(e,t,o)}function Va(e,t,o,n){var r=!o;o||(o={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=void 0;s===void 0&&(s=e[l]),r?Rs(o,l,s):dy(o,l,s)}return o}var u0=Math.max;function cy(e,t,o){return t=u0(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=u0(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=o(a),j8(e,this,l)}}function t7(e,t){return uy(cy(e,t,wp),e+"")}var o7=9007199254740991;function kp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=o7}function ja(e){return e!=null&&kp(e.length)&&!Sp(e)}function n7(e,t,o){if(!an(o))return!1;var n=typeof t;return(n=="number"?ja(o)&&Ep(t,o.length):n=="string"&&t in o)?$s(o[t],e):!1}function r7(e){return t7(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&n7(o[0],o[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var l=o[n];l&&e(t,l,n,i)}return t})}var i7=Object.prototype;function _p(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||i7;return e===o}function a7(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var l7="[object Arguments]";function d0(e){return Yn(e)&&qi(e)==l7}var fy=Object.prototype,s7=fy.hasOwnProperty,u7=fy.propertyIsEnumerable,ts=d0(function(){return arguments}())?d0:function(e){return Yn(e)&&s7.call(e,"callee")&&!u7.call(e,"callee")};function d7(){return!1}var hy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,c0=hy&&typeof module=="object"&&module&&!module.nodeType&&module,c7=c0&&c0.exports===hy,f0=c7?Tn.Buffer:void 0,f7=f0?f0.isBuffer:void 0,os=f7||d7,h7="[object Arguments]",p7="[object Array]",m7="[object Boolean]",g7="[object Date]",v7="[object Error]",b7="[object Function]",x7="[object Map]",y7="[object Number]",C7="[object Object]",w7="[object RegExp]",S7="[object Set]",E7="[object String]",k7="[object WeakMap]",_7="[object ArrayBuffer]",F7="[object DataView]",R7="[object Float32Array]",$7="[object Float64Array]",P7="[object Int8Array]",M7="[object Int16Array]",A7="[object Int32Array]",B7="[object Uint8Array]",D7="[object Uint8ClampedArray]",T7="[object Uint16Array]",I7="[object Uint32Array]",Zt={};Zt[R7]=Zt[$7]=Zt[P7]=Zt[M7]=Zt[A7]=Zt[B7]=Zt[D7]=Zt[T7]=Zt[I7]=!0;Zt[h7]=Zt[p7]=Zt[_7]=Zt[m7]=Zt[F7]=Zt[g7]=Zt[v7]=Zt[b7]=Zt[x7]=Zt[y7]=Zt[C7]=Zt[w7]=Zt[S7]=Zt[E7]=Zt[k7]=!1;function z7(e){return Yn(e)&&kp(e.length)&&!!Zt[qi(e)]}function Fp(e){return function(t){return e(t)}}var py=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Il=py&&typeof module=="object"&&module&&!module.nodeType&&module,O7=Il&&Il.exports===py,Lc=O7&&iy.process,Aa=function(){try{var e=Il&&Il.require&&Il.require("util").types;return e||Lc&&Lc.binding&&Lc.binding("util")}catch{}}(),h0=Aa&&Aa.isTypedArray,Rp=h0?Fp(h0):z7,L7=Object.prototype,H7=L7.hasOwnProperty;function my(e,t){var o=Oo(e),n=!o&&ts(e),r=!o&&!n&&os(e),i=!o&&!n&&!r&&Rp(e),a=o||n||r||i,l=a?a7(e.length,String):[],s=l.length;for(var u in e)(t||H7.call(e,u))&&!(a&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ep(u,s)))&&l.push(u);return l}function gy(e,t){return function(o){return e(t(o))}}var N7=gy(Object.keys,Object),V7=Object.prototype,j7=V7.hasOwnProperty;function W7(e){if(!_p(e))return N7(e);var t=[];for(var o in Object(e))j7.call(e,o)&&o!="constructor"&&t.push(o);return t}function Ps(e){return ja(e)?my(e):W7(e)}function U7(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var K7=Object.prototype,G7=K7.hasOwnProperty;function q7(e){if(!an(e))return U7(e);var t=_p(e),o=[];for(var n in e)n=="constructor"&&(t||!G7.call(e,n))||o.push(n);return o}function Ms(e){return ja(e)?my(e,!0):q7(e)}var Z7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X7=/^\w*$/;function $p(e,t){if(Oo(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ad(e)?!0:X7.test(e)||!Z7.test(e)||t!=null&&e in Object(t)}var ns=Xi(Object,"create");function Y7(){this.__data__=ns?ns(null):{},this.size=0}function Q7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var J7="__lodash_hash_undefined__",e_=Object.prototype,t_=e_.hasOwnProperty;function o_(e){var t=this.__data__;if(ns){var o=t[e];return o===J7?void 0:o}return t_.call(t,e)?t[e]:void 0}var n_=Object.prototype,r_=n_.hasOwnProperty;function i_(e){var t=this.__data__;return ns?t[e]!==void 0:r_.call(t,e)}var a_="__lodash_hash_undefined__";function l_(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=ns&&t===void 0?a_:t,this}function Hi(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Hi.prototype.clear=Y7;Hi.prototype.delete=Q7;Hi.prototype.get=o_;Hi.prototype.has=i_;Hi.prototype.set=l_;function s_(){this.__data__=[],this.size=0}function Bd(e,t){for(var o=e.length;o--;)if($s(e[o][0],t))return o;return-1}var u_=Array.prototype,d_=u_.splice;function c_(e){var t=this.__data__,o=Bd(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():d_.call(t,o,1),--this.size,!0}function f_(e){var t=this.__data__,o=Bd(t,e);return o<0?void 0:t[o][1]}function h_(e){return Bd(this.__data__,e)>-1}function p_(e,t){var o=this.__data__,n=Bd(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}function wr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=s_;wr.prototype.delete=c_;wr.prototype.get=f_;wr.prototype.has=h_;wr.prototype.set=p_;var rs=Xi(Tn,"Map");function m_(){this.size=0,this.__data__={hash:new Hi,map:new(rs||wr),string:new Hi}}function g_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Dd(e,t){var o=e.__data__;return g_(t)?o[typeof t=="string"?"string":"hash"]:o.map}function v_(e){var t=Dd(this,e).delete(e);return this.size-=t?1:0,t}function b_(e){return Dd(this,e).get(e)}function x_(e){return Dd(this,e).has(e)}function y_(e,t){var o=Dd(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}function Sr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Sr.prototype.clear=m_;Sr.prototype.delete=v_;Sr.prototype.get=b_;Sr.prototype.has=x_;Sr.prototype.set=y_;var C_="Expected a function";function Pp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(C_);var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return o.cache=i.set(r,a)||i,a};return o.cache=new(Pp.Cache||Sr),o}Pp.Cache=Sr;var w_=500;function S_(e){var t=Pp(e,function(n){return o.size===w_&&o.clear(),n}),o=t.cache;return t}var E_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k_=/\\(\\)?/g,__=S_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(E_,function(o,n,r,i){t.push(r?i.replace(k_,"$1"):n||o)}),t});function As(e){return e==null?"":ly(e)}function Td(e,t){return Oo(e)?e:$p(e,t)?[e]:__(As(e))}var F_=1/0;function Bs(e){if(typeof e=="string"||Ad(e))return e;var t=e+"";return t=="0"&&1/e==-F_?"-0":t}function Mp(e,t){t=Td(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[Bs(t[o++])];return o&&o==n?e:void 0}function rh(e,t,o){var n=e==null?void 0:Mp(e,t);return n===void 0?o:n}function Ap(e,t){for(var o=-1,n=t.length,r=e.length;++o<n;)e[r+o]=t[o];return e}var p0=yn?yn.isConcatSpreadable:void 0;function R_(e){return Oo(e)||ts(e)||!!(p0&&e&&e[p0])}function $_(e,t,o,n,r){var i=-1,a=e.length;for(o||(o=R_),r||(r=[]);++i<a;){var l=e[i];o(l)?Ap(r,l):r[r.length]=l}return r}function P_(e){var t=e==null?0:e.length;return t?$_(e):[]}function M_(e){return uy(cy(e,void 0,P_),e+"")}var Bp=gy(Object.getPrototypeOf,Object),A_="[object Object]",B_=Function.prototype,D_=Object.prototype,vy=B_.toString,T_=D_.hasOwnProperty,I_=vy.call(Object);function by(e){if(!Yn(e)||qi(e)!=A_)return!1;var t=Bp(e);if(t===null)return!0;var o=T_.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&vy.call(o)==I_}function xy(e,t,o){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),o=o>r?r:o,o<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(r);++n<r;)i[n]=e[n+t];return i}function z_(e,t,o){var n=e.length;return o=o===void 0?n:o,!t&&o>=n?e:xy(e,t,o)}var O_="\\ud800-\\udfff",L_="\\u0300-\\u036f",H_="\\ufe20-\\ufe2f",N_="\\u20d0-\\u20ff",V_=L_+H_+N_,j_="\\ufe0e\\ufe0f",W_="\\u200d",U_=RegExp("["+W_+O_+V_+j_+"]");function yy(e){return U_.test(e)}function K_(e){return e.split("")}var Cy="\\ud800-\\udfff",G_="\\u0300-\\u036f",q_="\\ufe20-\\ufe2f",Z_="\\u20d0-\\u20ff",X_=G_+q_+Z_,Y_="\\ufe0e\\ufe0f",Q_="["+Cy+"]",ih="["+X_+"]",ah="\\ud83c[\\udffb-\\udfff]",J_="(?:"+ih+"|"+ah+")",wy="[^"+Cy+"]",Sy="(?:\\ud83c[\\udde6-\\uddff]){2}",Ey="[\\ud800-\\udbff][\\udc00-\\udfff]",eF="\\u200d",ky=J_+"?",_y="["+Y_+"]?",tF="(?:"+eF+"(?:"+[wy,Sy,Ey].join("|")+")"+_y+ky+")*",oF=_y+ky+tF,nF="(?:"+[wy+ih+"?",ih,Sy,Ey,Q_].join("|")+")",rF=RegExp(ah+"(?="+ah+")|"+nF+oF,"g");function iF(e){return e.match(rF)||[]}function aF(e){return yy(e)?iF(e):K_(e)}function lF(e){return function(t){t=As(t);var o=yy(t)?aF(t):void 0,n=o?o[0]:t.charAt(0),r=o?z_(o,1).join(""):t.slice(1);return n[e]()+r}}var sF=lF("toUpperCase");function uF(e,t,o,n){for(var r=-1,i=e==null?0:e.length;++r<i;)o=t(o,e[r],r,e);return o}function dF(e){return function(t){return e==null?void 0:e[t]}}var cF={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},fF=dF(cF),hF=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pF="\\u0300-\\u036f",mF="\\ufe20-\\ufe2f",gF="\\u20d0-\\u20ff",vF=pF+mF+gF,bF="["+vF+"]",xF=RegExp(bF,"g");function yF(e){return e=As(e),e&&e.replace(hF,fF).replace(xF,"")}var CF=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function wF(e){return e.match(CF)||[]}var SF=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function EF(e){return SF.test(e)}var Fy="\\ud800-\\udfff",kF="\\u0300-\\u036f",_F="\\ufe20-\\ufe2f",FF="\\u20d0-\\u20ff",RF=kF+_F+FF,Ry="\\u2700-\\u27bf",$y="a-z\\xdf-\\xf6\\xf8-\\xff",$F="\\xac\\xb1\\xd7\\xf7",PF="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",MF="\\u2000-\\u206f",AF=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Py="A-Z\\xc0-\\xd6\\xd8-\\xde",BF="\\ufe0e\\ufe0f",My=$F+PF+MF+AF,Ay="['’]",m0="["+My+"]",DF="["+RF+"]",By="\\d+",TF="["+Ry+"]",Dy="["+$y+"]",Ty="[^"+Fy+My+By+Ry+$y+Py+"]",IF="\\ud83c[\\udffb-\\udfff]",zF="(?:"+DF+"|"+IF+")",OF="[^"+Fy+"]",Iy="(?:\\ud83c[\\udde6-\\uddff]){2}",zy="[\\ud800-\\udbff][\\udc00-\\udfff]",ga="["+Py+"]",LF="\\u200d",g0="(?:"+Dy+"|"+Ty+")",HF="(?:"+ga+"|"+Ty+")",v0="(?:"+Ay+"(?:d|ll|m|re|s|t|ve))?",b0="(?:"+Ay+"(?:D|LL|M|RE|S|T|VE))?",Oy=zF+"?",Ly="["+BF+"]?",NF="(?:"+LF+"(?:"+[OF,Iy,zy].join("|")+")"+Ly+Oy+")*",VF="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jF="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",WF=Ly+Oy+NF,UF="(?:"+[TF,Iy,zy].join("|")+")"+WF,KF=RegExp([ga+"?"+Dy+"+"+v0+"(?="+[m0,ga,"$"].join("|")+")",HF+"+"+b0+"(?="+[m0,ga+g0,"$"].join("|")+")",ga+"?"+g0+"+"+v0,ga+"+"+b0,jF,VF,By,UF].join("|"),"g");function GF(e){return e.match(KF)||[]}function qF(e,t,o){return e=As(e),t=t,t===void 0?EF(e)?GF(e):wF(e):e.match(t)||[]}var ZF="['’]",XF=RegExp(ZF,"g");function YF(e){return function(t){return uF(qF(yF(t).replace(XF,"")),e,"")}}function QF(){this.__data__=new wr,this.size=0}function JF(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function eR(e){return this.__data__.get(e)}function tR(e){return this.__data__.has(e)}var oR=200;function nR(e,t){var o=this.__data__;if(o instanceof wr){var n=o.__data__;if(!rs||n.length<oR-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Sr(n)}return o.set(e,t),this.size=o.size,this}function Pn(e){var t=this.__data__=new wr(e);this.size=t.size}Pn.prototype.clear=QF;Pn.prototype.delete=JF;Pn.prototype.get=eR;Pn.prototype.has=tR;Pn.prototype.set=nR;function rR(e,t){return e&&Va(t,Ps(t),e)}function iR(e,t){return e&&Va(t,Ms(t),e)}var Hy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,x0=Hy&&typeof module=="object"&&module&&!module.nodeType&&module,aR=x0&&x0.exports===Hy,y0=aR?Tn.Buffer:void 0,C0=y0?y0.allocUnsafe:void 0;function Ny(e,t){if(t)return e.slice();var o=e.length,n=C0?C0(o):new e.constructor(o);return e.copy(n),n}function lR(e,t){for(var o=-1,n=e==null?0:e.length,r=0,i=[];++o<n;){var a=e[o];t(a,o,e)&&(i[r++]=a)}return i}function Vy(){return[]}var sR=Object.prototype,uR=sR.propertyIsEnumerable,w0=Object.getOwnPropertySymbols,Dp=w0?function(e){return e==null?[]:(e=Object(e),lR(w0(e),function(t){return uR.call(e,t)}))}:Vy;function dR(e,t){return Va(e,Dp(e),t)}var cR=Object.getOwnPropertySymbols,jy=cR?function(e){for(var t=[];e;)Ap(t,Dp(e)),e=Bp(e);return t}:Vy;function fR(e,t){return Va(e,jy(e),t)}function Wy(e,t,o){var n=t(e);return Oo(e)?n:Ap(n,o(e))}function lh(e){return Wy(e,Ps,Dp)}function Uy(e){return Wy(e,Ms,jy)}var sh=Xi(Tn,"DataView"),uh=Xi(Tn,"Promise"),dh=Xi(Tn,"Set"),S0="[object Map]",hR="[object Object]",E0="[object Promise]",k0="[object Set]",_0="[object WeakMap]",F0="[object DataView]",pR=Zi(sh),mR=Zi(rs),gR=Zi(uh),vR=Zi(dh),bR=Zi(nh),Fn=qi;(sh&&Fn(new sh(new ArrayBuffer(1)))!=F0||rs&&Fn(new rs)!=S0||uh&&Fn(uh.resolve())!=E0||dh&&Fn(new dh)!=k0||nh&&Fn(new nh)!=_0)&&(Fn=function(e){var t=qi(e),o=t==hR?e.constructor:void 0,n=o?Zi(o):"";if(n)switch(n){case pR:return F0;case mR:return S0;case gR:return E0;case vR:return k0;case bR:return _0}return t});var xR=Object.prototype,yR=xR.hasOwnProperty;function CR(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&yR.call(e,"index")&&(o.index=e.index,o.input=e.input),o}var Ju=Tn.Uint8Array;function Tp(e){var t=new e.constructor(e.byteLength);return new Ju(t).set(new Ju(e)),t}function wR(e,t){var o=t?Tp(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var SR=/\w*$/;function ER(e){var t=new e.constructor(e.source,SR.exec(e));return t.lastIndex=e.lastIndex,t}var R0=yn?yn.prototype:void 0,$0=R0?R0.valueOf:void 0;function kR(e){return $0?Object($0.call(e)):{}}function Ky(e,t){var o=t?Tp(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var _R="[object Boolean]",FR="[object Date]",RR="[object Map]",$R="[object Number]",PR="[object RegExp]",MR="[object Set]",AR="[object String]",BR="[object Symbol]",DR="[object ArrayBuffer]",TR="[object DataView]",IR="[object Float32Array]",zR="[object Float64Array]",OR="[object Int8Array]",LR="[object Int16Array]",HR="[object Int32Array]",NR="[object Uint8Array]",VR="[object Uint8ClampedArray]",jR="[object Uint16Array]",WR="[object Uint32Array]";function UR(e,t,o){var n=e.constructor;switch(t){case DR:return Tp(e);case _R:case FR:return new n(+e);case TR:return wR(e,o);case IR:case zR:case OR:case LR:case HR:case NR:case VR:case jR:case WR:return Ky(e,o);case RR:return new n;case $R:case AR:return new n(e);case PR:return ER(e);case MR:return new n;case BR:return kR(e)}}function Gy(e){return typeof e.constructor=="function"&&!_p(e)?V8(Bp(e)):{}}var KR="[object Map]";function GR(e){return Yn(e)&&Fn(e)==KR}var P0=Aa&&Aa.isMap,qR=P0?Fp(P0):GR,ZR="[object Set]";function XR(e){return Yn(e)&&Fn(e)==ZR}var M0=Aa&&Aa.isSet,YR=M0?Fp(M0):XR,QR=1,JR=2,e$=4,qy="[object Arguments]",t$="[object Array]",o$="[object Boolean]",n$="[object Date]",r$="[object Error]",Zy="[object Function]",i$="[object GeneratorFunction]",a$="[object Map]",l$="[object Number]",Xy="[object Object]",s$="[object RegExp]",u$="[object Set]",d$="[object String]",c$="[object Symbol]",f$="[object WeakMap]",h$="[object ArrayBuffer]",p$="[object DataView]",m$="[object Float32Array]",g$="[object Float64Array]",v$="[object Int8Array]",b$="[object Int16Array]",x$="[object Int32Array]",y$="[object Uint8Array]",C$="[object Uint8ClampedArray]",w$="[object Uint16Array]",S$="[object Uint32Array]",Vt={};Vt[qy]=Vt[t$]=Vt[h$]=Vt[p$]=Vt[o$]=Vt[n$]=Vt[m$]=Vt[g$]=Vt[v$]=Vt[b$]=Vt[x$]=Vt[a$]=Vt[l$]=Vt[Xy]=Vt[s$]=Vt[u$]=Vt[d$]=Vt[c$]=Vt[y$]=Vt[C$]=Vt[w$]=Vt[S$]=!0;Vt[r$]=Vt[Zy]=Vt[f$]=!1;function zl(e,t,o,n,r,i){var a,l=t&QR,s=t&JR,u=t&e$;if(o&&(a=r?o(e,n,r,i):o(e)),a!==void 0)return a;if(!an(e))return e;var d=Oo(e);if(d){if(a=CR(e),!l)return sy(e,a)}else{var c=Fn(e),h=c==Zy||c==i$;if(os(e))return Ny(e,l);if(c==Xy||c==qy||h&&!r){if(a=s||h?{}:Gy(e),!l)return s?fR(e,iR(a,e)):dR(e,rR(a,e))}else{if(!Vt[c])return r?e:{};a=UR(e,c,l)}}i||(i=new Pn);var f=i.get(e);if(f)return f;i.set(e,a),YR(e)?e.forEach(function(v){a.add(zl(v,t,o,v,e,i))}):qR(e)&&e.forEach(function(v,b){a.set(b,zl(v,t,o,b,e,i))});var p=u?s?Uy:lh:s?Ms:Ps,g=d?void 0:p(e);return X8(g||e,function(v,b){g&&(b=v,v=e[b]),dy(a,b,zl(v,t,o,b,e,i))}),a}var E$=1,k$=4;function ya(e){return zl(e,E$|k$)}var _$="__lodash_hash_undefined__";function F$(e){return this.__data__.set(e,_$),this}function R$(e){return this.__data__.has(e)}function ed(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Sr;++t<o;)this.add(e[t])}ed.prototype.add=ed.prototype.push=F$;ed.prototype.has=R$;function $$(e,t){for(var o=-1,n=e==null?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}function P$(e,t){return e.has(t)}var M$=1,A$=2;function Yy(e,t,o,n,r,i){var a=o&M$,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var c=-1,h=!0,f=o&A$?new ed:void 0;for(i.set(e,t),i.set(t,e);++c<l;){var p=e[c],g=t[c];if(n)var v=a?n(g,p,c,t,e,i):n(p,g,c,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(f){if(!$$(t,function(b,x){if(!P$(f,x)&&(p===b||r(p,b,o,n,i)))return f.push(x)})){h=!1;break}}else if(!(p===g||r(p,g,o,n,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function B$(e){var t=-1,o=Array(e.size);return e.forEach(function(n,r){o[++t]=[r,n]}),o}function D$(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var T$=1,I$=2,z$="[object Boolean]",O$="[object Date]",L$="[object Error]",H$="[object Map]",N$="[object Number]",V$="[object RegExp]",j$="[object Set]",W$="[object String]",U$="[object Symbol]",K$="[object ArrayBuffer]",G$="[object DataView]",A0=yn?yn.prototype:void 0,Hc=A0?A0.valueOf:void 0;function q$(e,t,o,n,r,i,a){switch(o){case G$:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case K$:return!(e.byteLength!=t.byteLength||!i(new Ju(e),new Ju(t)));case z$:case O$:case N$:return $s(+e,+t);case L$:return e.name==t.name&&e.message==t.message;case V$:case W$:return e==t+"";case H$:var l=B$;case j$:var s=n&T$;if(l||(l=D$),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;n|=I$,a.set(e,t);var d=Yy(l(e),l(t),n,r,i,a);return a.delete(e),d;case U$:if(Hc)return Hc.call(e)==Hc.call(t)}return!1}var Z$=1,X$=Object.prototype,Y$=X$.hasOwnProperty;function Q$(e,t,o,n,r,i){var a=o&Z$,l=lh(e),s=l.length,u=lh(t),d=u.length;if(s!=d&&!a)return!1;for(var c=s;c--;){var h=l[c];if(!(a?h in t:Y$.call(t,h)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=a;++c<s;){h=l[c];var b=e[h],x=t[h];if(n)var E=a?n(x,b,h,t,e,i):n(b,x,h,e,t,i);if(!(E===void 0?b===x||r(b,x,o,n,i):E)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var y=e.constructor,k=t.constructor;y!=k&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof k=="function"&&k instanceof k)&&(g=!1)}return i.delete(e),i.delete(t),g}var J$=1,B0="[object Arguments]",D0="[object Array]",uu="[object Object]",eP=Object.prototype,T0=eP.hasOwnProperty;function tP(e,t,o,n,r,i){var a=Oo(e),l=Oo(t),s=a?D0:Fn(e),u=l?D0:Fn(t);s=s==B0?uu:s,u=u==B0?uu:u;var d=s==uu,c=u==uu,h=s==u;if(h&&os(e)){if(!os(t))return!1;a=!0,d=!1}if(h&&!d)return i||(i=new Pn),a||Rp(e)?Yy(e,t,o,n,r,i):q$(e,t,s,o,n,r,i);if(!(o&J$)){var f=d&&T0.call(e,"__wrapped__"),p=c&&T0.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,v=p?t.value():t;return i||(i=new Pn),r(g,v,o,n,i)}}return h?(i||(i=new Pn),Q$(e,t,o,n,r,i)):!1}function Id(e,t,o,n,r){return e===t?!0:e==null||t==null||!Yn(e)&&!Yn(t)?e!==e&&t!==t:tP(e,t,o,n,Id,r)}var oP=1,nP=2;function rP(e,t,o,n){var r=o.length,i=r;if(e==null)return!i;for(e=Object(e);r--;){var a=o[r];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){a=o[r];var l=a[0],s=e[l],u=a[1];if(a[2]){if(s===void 0&&!(l in e))return!1}else{var d=new Pn,c;if(!(c===void 0?Id(u,s,oP|nP,n,d):c))return!1}}return!0}function Qy(e){return e===e&&!an(e)}function iP(e){for(var t=Ps(e),o=t.length;o--;){var n=t[o],r=e[n];t[o]=[n,r,Qy(r)]}return t}function Jy(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function aP(e){var t=iP(e);return t.length==1&&t[0][2]?Jy(t[0][0],t[0][1]):function(o){return o===e||rP(o,e,t)}}function lP(e,t){return e!=null&&t in Object(e)}function sP(e,t,o){t=Td(t,e);for(var n=-1,r=t.length,i=!1;++n<r;){var a=Bs(t[n]);if(!(i=e!=null&&o(e,a)))break;e=e[a]}return i||++n!=r?i:(r=e==null?0:e.length,!!r&&kp(r)&&Ep(a,r)&&(Oo(e)||ts(e)))}function uP(e,t){return e!=null&&sP(e,t,lP)}var dP=1,cP=2;function fP(e,t){return $p(e)&&Qy(t)?Jy(Bs(e),t):function(o){var n=rh(o,e);return n===void 0&&n===t?uP(o,e):Id(t,n,dP|cP)}}function hP(e){return function(t){return t==null?void 0:t[e]}}function pP(e){return function(t){return Mp(t,e)}}function mP(e){return $p(e)?hP(Bs(e)):pP(e)}function Ip(e){return typeof e=="function"?e:e==null?wp:typeof e=="object"?Oo(e)?fP(e[0],e[1]):aP(e):mP(e)}function gP(e,t,o,n){for(var r=-1,i=e==null?0:e.length;++r<i;){var a=e[r];t(n,a,o(a),e)}return n}function vP(e){return function(t,o,n){for(var r=-1,i=Object(t),a=n(t),l=a.length;l--;){var s=a[++r];if(o(i[s],s,i)===!1)break}return t}}var eC=vP();function tC(e,t){return e&&eC(e,t,Ps)}function bP(e,t){return function(o,n){if(o==null)return o;if(!ja(o))return e(o,n);for(var r=o.length,i=-1,a=Object(o);++i<r&&n(a[i],i,a)!==!1;);return o}}var oC=bP(tC);function xP(e,t,o,n){return oC(e,function(r,i,a){t(n,r,o(r),a)}),n}function yP(e,t){return function(o,n){var r=Oo(o)?gP:xP,i={};return r(o,e,Ip(n),i)}}var Nc=function(){return Tn.Date.now()},CP="Expected a function",wP=Math.max,SP=Math.min;function nC(e,t,o){var n,r,i,a,l,s,u=0,d=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(CP);t=a0(t)||0,an(o)&&(d=!!o.leading,c="maxWait"in o,i=c?wP(a0(o.maxWait)||0,t):i,h="trailing"in o?!!o.trailing:h);function f(F){var C=n,A=r;return n=r=void 0,u=F,a=e.apply(A,C),a}function p(F){return u=F,l=setTimeout(b,t),d?f(F):a}function g(F){var C=F-s,A=F-u,P=t-C;return c?SP(P,i-A):P}function v(F){var C=F-s,A=F-u;return s===void 0||C>=t||C<0||c&&A>=i}function b(){var F=Nc();if(v(F))return x(F);l=setTimeout(b,g(F))}function x(F){return l=void 0,h&&n?f(F):(n=r=void 0,a)}function E(){l!==void 0&&clearTimeout(l),u=0,n=s=r=l=void 0}function y(){return l===void 0?a:x(Nc())}function k(){var F=Nc(),C=v(F);if(n=arguments,r=this,s=F,C){if(l===void 0)return p(s);if(c)return clearTimeout(l),l=setTimeout(b,t),f(s)}return l===void 0&&(l=setTimeout(b,t)),a}return k.cancel=E,k.flush=y,k}function ch(e,t,o){(o!==void 0&&!$s(e[t],o)||o===void 0&&!(t in e))&&Rs(e,t,o)}function EP(e){return Yn(e)&&ja(e)}function fh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function kP(e){return Va(e,Ms(e))}function _P(e,t,o,n,r,i,a){var l=fh(e,o),s=fh(t,o),u=a.get(s);if(u){ch(e,o,u);return}var d=i?i(l,s,o+"",e,t,a):void 0,c=d===void 0;if(c){var h=Oo(s),f=!h&&os(s),p=!h&&!f&&Rp(s);d=s,h||f||p?Oo(l)?d=l:EP(l)?d=sy(l):f?(c=!1,d=Ny(s,!0)):p?(c=!1,d=Ky(s,!0)):d=[]:by(s)||ts(s)?(d=l,ts(l)?d=kP(l):(!an(l)||Sp(l))&&(d=Gy(s))):c=!1}c&&(a.set(s,d),r(d,s,n,i,a),a.delete(s)),ch(e,o,d)}function rC(e,t,o,n,r){e!==t&&eC(t,function(i,a){if(r||(r=new Pn),an(i))_P(e,t,a,o,rC,n,r);else{var l=n?n(fh(e,a),i,a+"",e,t,r):void 0;l===void 0&&(l=i),ch(e,a,l)}},Ms)}function FP(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function RP(e,t){var o=-1,n=ja(e)?Array(e.length):[];return oC(e,function(r,i,a){n[++o]=t(r,i,a)}),n}function $P(e,t){var o=Oo(e)?Cp:RP;return o(e,Ip(t))}function PP(e,t){return t.length<2?e:Mp(e,xy(t,0,-1))}function da(e,t){return Id(e,t)}var MP=YF(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),AP=yP(function(e,t,o){Rs(e,o,t)});function BP(e,t){var o={};return t=Ip(t),tC(e,function(n,r,i){Rs(o,r,t(n,r,i))}),o}var Si=r7(function(e,t,o){rC(e,t,o)});function DP(e,t){return t=Td(t,e),e=PP(e,t),e==null||delete e[Bs(FP(t))]}function TP(e){return by(e)?void 0:e}var IP=1,zP=2,OP=4,LP=M_(function(e,t){var o={};if(e==null)return o;var n=!1;t=Cp(t,function(i){return i=Td(i,e),n||(n=i.length>1),i}),Va(e,Uy(e),o),n&&(o=zl(o,IP|zP|OP,TP));for(var r=t.length;r--;)DP(o,t[r]);return o}),HP="Expected a function";function Du(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(HP);return an(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),nC(e,t,{leading:n,maxWait:t,trailing:r})}function I0(e){return As(e).toLowerCase()}const sn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:NP,fontFamily:VP,lineHeight:jP}=sn,iC=V("body",` + margin: 0; + font-size: ${NP}; + font-family: ${VP}; + line-height: ${jP}; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +`,[V("input",` + font-family: inherit; + font-size: inherit; + `)]),ln="n-config-provider",Ba="naive-ui-style";function ze(e,t,o,n,r,i){const a=ai(),l=Oe(ln,null);if(o){const u=()=>{const d=i==null?void 0:i.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Ba,ssr:a,parent:l==null?void 0:l.styleMountTarget}),l!=null&&l.preflightStyleDisabled||iC.mount({id:"n-global",head:!0,anchorMetaName:Ba,ssr:a,parent:l==null?void 0:l.styleMountTarget})};a?u():ri(u)}return T(()=>{var u;const{theme:{common:d,self:c,peers:h={}}={},themeOverrides:f={},builtinThemeOverrides:p={}}=r,{common:g,peers:v}=f,{common:b=void 0,[e]:{common:x=void 0,self:E=void 0,peers:y={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:k=void 0,[e]:F={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:C,peers:A={}}=F,P=Si({},d||x||b||n.common,k,C,g),B=Si((u=c||E||n.self)===null||u===void 0?void 0:u(P),p,F,f);return{common:P,self:B,peers:Si({},n.peers,y,h),peerOverrides:Si({},p.peers,A,v)}})}ze.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const td="n";function nt(e={},t={defaultBordered:!0}){const o=Oe(ln,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:T(()=>{var n,r;const{bordered:i}=e;return i!==void 0?i:(r=(n=o==null?void 0:o.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:xd(td),namespaceRef:T(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function aC(){const e=Oe(ln,null);return e?e.mergedClsPrefixRef:xd(td)}const WP={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function Vc(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function ul(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=o!=null&&o.width?String(o.width):a;r=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}function dl(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const a=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?KP(l,c=>c.test(a)):UP(l,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(s):s,u=o.valueCallback?o.valueCallback(u):u;const d=t.slice(a.length);return{value:u,rest:d}}}function UP(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function KP(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function GP(e){return(t,o={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;const l=t.slice(r.length);return{value:a,rest:l}}}const qP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ZP=(e,t,o)=>{let n;const r=qP[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},XP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},YP=(e,t,o,n)=>XP[e],QP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},JP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},eM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tM={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},oM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rM=(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},iM={ordinalNumber:rM,era:ul({values:QP,defaultWidth:"wide"}),quarter:ul({values:JP,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ul({values:eM,defaultWidth:"wide"}),day:ul({values:tM,defaultWidth:"wide"}),dayPeriod:ul({values:oM,defaultWidth:"wide",formattingValues:nM,defaultFormattingWidth:"wide"})},aM=/^(\d+)(th|st|nd|rd)?/i,lM=/\d+/i,sM={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uM={any:[/^b/i,/^(a|c)/i]},dM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cM={any:[/1/i,/2/i,/3/i,/4/i]},fM={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},hM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pM={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mM={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gM={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vM={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},bM={ordinalNumber:GP({matchPattern:aM,parsePattern:lM,valueCallback:e=>parseInt(e,10)}),era:dl({matchPatterns:sM,defaultMatchWidth:"wide",parsePatterns:uM,defaultParseWidth:"any"}),quarter:dl({matchPatterns:dM,defaultMatchWidth:"wide",parsePatterns:cM,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dl({matchPatterns:fM,defaultMatchWidth:"wide",parsePatterns:hM,defaultParseWidth:"any"}),day:dl({matchPatterns:pM,defaultMatchWidth:"wide",parsePatterns:mM,defaultParseWidth:"any"}),dayPeriod:dl({matchPatterns:gM,defaultMatchWidth:"any",parsePatterns:vM,defaultParseWidth:"any"})},xM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},CM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wM={date:Vc({formats:xM,defaultWidth:"full"}),time:Vc({formats:yM,defaultWidth:"full"}),dateTime:Vc({formats:CM,defaultWidth:"full"})},SM={code:"en-US",formatDistance:ZP,formatLong:wM,formatRelative:YP,localize:iM,match:bM,options:{weekStartsOn:0,firstWeekContainsDate:1}},EM={name:"en-US",locale:SM};function Er(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Oe(ln,null)||{},n=T(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:WP[e]});return{dateLocaleRef:T(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:EM}),localeRef:n}}function kr(e,t,o){if(!t)return;const n=ai(),r=Oe(ln,null),i=()=>{const a=o.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Ba,props:{bPrefix:a?`.${a}-`:void 0},ssr:n,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||iC.mount({id:"n-global",head:!0,anchorMetaName:Ba,ssr:n,parent:r==null?void 0:r.styleMountTarget})};n?i():ri(i)}function lC(e,t){const o=Oe(ln,null);return T(()=>e.hljs||(o==null?void 0:o.mergedHljsRef.value))}function vt(e,t,o,n){o||yr("useThemeClass","cssVarsRef is not passed");const r=Oe(ln,null),i=r==null?void 0:r.mergedThemeHashRef,a=r==null?void 0:r.styleMountTarget,l=M(""),s=ai();let u;const d=`__${e}`,c=()=>{let h=d;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(h+=`-${p}`),f&&(h+=`-${f}`);const{themeOverrides:g,builtinThemeOverrides:v}=n;g&&(h+=`-${Yl(JSON.stringify(g))}`),v&&(h+=`-${Yl(JSON.stringify(v))}`),l.value=h,u=()=>{const b=o.value;let x="";for(const E in b)x+=`${E}: ${b[E]};`;V(`.${h}`,x).mount({id:h,ssr:s,parent:a}),u=void 0}};return kt(()=>{c()}),{themeClass:l,onRender:()=>{u==null||u()}}}function qt(e,t,o){if(!t)return;const n=ai(),r=T(()=>{const{value:l}=t;if(!l)return;const s=l[e];if(s)return s}),i=Oe(ln,null),a=()=>{kt(()=>{const{value:l}=o,s=`${l}${e}Rtl`;if(U4(s,n))return;const{value:u}=r;u&&u.style.mount({id:s,head:!0,anchorMetaName:Ba,props:{bPrefix:l?`.${l}-`:void 0},ssr:n,parent:i==null?void 0:i.styleMountTarget})})};return n?a():ri(a),r}const sC=xe({name:"Add",render(){return m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),kM=xe({name:"ArrowDown",render(){return m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function Wa(e,t){return xe({name:sF(e),setup(){var o;const n=(o=Oe(ln,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var r;const i=(r=n==null?void 0:n.value)===null||r===void 0?void 0:r[e];return i?i():t}}})}const z0=xe({name:"Backward",render(){return m("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),_M=xe({name:"Checkmark",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},m("g",{fill:"none"},m("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),FM=xe({name:"ChevronLeft",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),zp=xe({name:"ChevronRight",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),RM=Wa("close",m("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),$M=xe({name:"Eye",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),m("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),PM=xe({name:"EyeOff",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),m("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),m("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),m("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),m("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),MM=xe({name:"Empty",render(){return m("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),m("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),zd=Wa("error",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),O0=xe({name:"FastBackward",render(){return m("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),L0=xe({name:"FastForward",render(){return m("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),AM=xe({name:"Filter",render(){return m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),H0=xe({name:"Forward",render(){return m("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),is=Wa("info",m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),N0=xe({name:"More",render(){return m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),BM=xe({name:"Remove",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))}}),Od=Wa("success",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Ld=Wa("warning",m("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),uC=xe({name:"ChevronDown",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),DM=Wa("clear",m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),TM=xe({name:"ArrowBack",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},m("path",{d:"M0 0h24v24H0V0z",fill:"none"}),m("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),Yi=xe({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Cr();return()=>m(po,{name:"icon-switch-transition",appear:o.value},t)}}),Ds=xe({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function n(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function r(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const{group:l,width:s,appear:u,mode:d}=e,c=l?ip:po,h={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:u,onEnter:i,onAfterEnter:a,onBeforeLeave:o,onLeave:n,onAfterLeave:r};return l||(h.mode=d),m(c,h,t)}}}),IM=D("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[V("svg",` + height: 1em; + width: 1em; + `)]),Ut=xe({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){kr("-base-icon",IM,De(e,"clsPrefix"))},render(){return m("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),zM=D("base-close",` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + background-color: transparent; + color: var(--n-close-icon-color); + border-radius: var(--n-close-border-radius); + height: var(--n-close-size); + width: var(--n-close-size); + font-size: var(--n-close-icon-size); + outline: none; + border: none; + position: relative; + padding: 0; +`,[Q("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),V("&::before",` + content: ""; + position: absolute; + width: var(--n-close-size); + height: var(--n-close-size); + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + transition: inherit; + border-radius: inherit; + `),Ft("disabled",[V("&:hover",` + color: var(--n-close-icon-color-hover); + `),V("&:hover::before",` + background-color: var(--n-close-color-hover); + `),V("&:focus::before",` + background-color: var(--n-close-color-hover); + `),V("&:active",` + color: var(--n-close-icon-color-pressed); + `),V("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),Q("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),Q("round",[V("&::before",` + border-radius: 50%; + `)])]),li=xe({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return kr("-base-close",zM,De(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:n,round:r,isButtonTag:i}=e;return m(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},m(Ut,{clsPrefix:t},{default:()=>m(RM,null)}))}}}),OM=xe({props:{onFocus:Function,onBlur:Function},setup(e){return()=>m("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:LM}=sn;function en({originalTransform:e="",left:t=0,top:o=0,transition:n=`all .3s ${LM} !important`}={}){return[V("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),V("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),V("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:n})]}const HM=V([V("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),D("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[Z("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[en()]),Z("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[en({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),Z("container",` + animation: rotator 3s linear infinite both; + `,[Z("icon",` + height: 1em; + width: 1em; + `)])])]),jc="1.6s",NM={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},_r=xe({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},NM),setup(e){kr("-base-loading",HM,De(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:n,scale:r}=this,i=t/r;return m("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},m(Yi,null,{default:()=>this.show?m("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},m("div",{class:`${e}-base-loading__container`},m("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},m("g",null,m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"}),m("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"}),m("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"})))))):m("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function V0(e){return Array.isArray(e)?e:[e]}const hh={STOP:"STOP"};function dC(e,t){const o=t(e);e.children!==void 0&&o!==hh.STOP&&e.children.forEach(n=>dC(n,t))}function VM(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?a=>{a.isLeaf||(n.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||n.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),n}function jM(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function WM(e){return e.children}function UM(e){return e.key}function KM(){return!1}function GM(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function qM(e){return e.disabled===!0}function ZM(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Wc(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Uc(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function XM(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function YM(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function QM(e){return(e==null?void 0:e.type)==="group"}function JM(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class eA extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function tA(e,t,o,n){return od(t.concat(e),o,n,!1)}function oA(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function nA(e,t,o,n){const r=od(t,o,n,!1),i=od(e,o,n,!0),a=oA(e,o),l=[];return r.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>r.delete(s)),r}function Kc(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:u}=e;if(!a)return n!==void 0?{checkedKeys:XM(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:YM(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let c;r!==void 0?c=nA(r,o,t,u):n!==void 0?c=tA(n,o,t,u):c=od(o,t,u,!1);const h=s==="parent",f=s==="child"||l,p=c,g=new Set,v=Math.max.apply(null,Array.from(d.keys()));for(let b=v;b>=0;b-=1){const x=b===0,E=d.get(b);for(const y of E){if(y.isLeaf)continue;const{key:k,shallowLoaded:F}=y;if(f&&F&&y.children.forEach(B=>{!B.disabled&&!B.isLeaf&&B.shallowLoaded&&p.has(B.key)&&p.delete(B.key)}),y.disabled||!F)continue;let C=!0,A=!1,P=!0;for(const B of y.children){const W=B.key;if(!B.disabled){if(P&&(P=!1),p.has(W))A=!0;else if(g.has(W)){A=!0,C=!1;break}else if(C=!1,A)break}}C&&!P?(h&&y.children.forEach(B=>{!B.disabled&&p.has(B.key)&&p.delete(B.key)}),p.add(k)):A&&g.add(k),x&&f&&p.has(k)&&p.delete(k)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function od(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const u=r.get(s);u!==void 0&&dC(u,d=>{if(d.disabled)return hh.STOP;const{key:c}=d;if(!a.has(c)&&(a.add(c),l.add(c),ZM(d.rawNode,i))){if(n)return hh.STOP;if(!o)throw new eA}})}),l}function rA(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),o||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function iA(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function aA(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function j0(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?lA:aA,i={reverse:t==="prev"};let a=!1,l=null;function s(u){if(u!==null){if(u===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!u.disabled||n)&&!u.ignored&&!u.isGroup){l=u;return}if(u.isGroup){const d=Op(u,i);d!==null?l=d:s(r(u,o))}else{const d=r(u,!1);if(d!==null)s(d);else{const c=sA(u);c!=null&&c.isGroup?s(r(c,o)):o&&s(r(u,!0))}}}}return s(e),l}function lA(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function sA(e){return e.parent}function Op(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,a=o?-1:r,l=o?-1:1;for(let s=i;s!==a;s+=l){const u=n[s];if(!u.disabled&&!u.ignored)if(u.isGroup){const d=Op(u,t);if(d!==null)return d}else return u}}return null}const uA={getChild(){return this.ignored?null:Op(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return j0(this,"next",e)},getPrev(e={}){return j0(this,"prev",e)}};function dA(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(a=>{n.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||o===void 0||o.has(a.key))&&r(a.children)})}return r(e),n}function cA(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function cC(e,t,o,n,r,i=null,a=0){const l=[];return e.forEach((s,u)=>{var d;const c=Object.create(n);if(c.rawNode=s,c.siblings=l,c.level=a,c.index=u,c.isFirstChild=u===0,c.isLastChild=u+1===e.length,c.parent=i,!c.ignored){const h=r(s);Array.isArray(h)&&(c.children=cC(h,t,o,n,r,c,a+1))}l.push(c),t.set(c.key,c),o.has(a)||o.set(a,[]),(d=o.get(a))===null||d===void 0||d.push(c)}),l}function Hd(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=qM,getIgnored:a=KM,getIsGroup:l=QM,getKey:s=UM}=t,u=(o=t.getChildren)!==null&&o!==void 0?o:WM,d=t.ignoreEmptyChildren?y=>{const k=u(y);return Array.isArray(k)?k.length?k:null:k}:u,c=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return jM(this.rawNode,d)},get shallowLoaded(){return GM(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(y){return cA(this,y)}},uA),h=cC(e,n,r,c,d);function f(y){if(y==null)return null;const k=n.get(y);return k&&!k.isGroup&&!k.ignored?k:null}function p(y){if(y==null)return null;const k=n.get(y);return k&&!k.ignored?k:null}function g(y,k){const F=p(y);return F?F.getPrev(k):null}function v(y,k){const F=p(y);return F?F.getNext(k):null}function b(y){const k=p(y);return k?k.getParent():null}function x(y){const k=p(y);return k?k.getChild():null}const E={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(y){return dA(h,y)},getNode:f,getPrev:g,getNext:v,getParent:b,getChild:x,getFirstAvailableNode(){return iA(h)},getPath(y,k={}){return rA(y,k,E)},getCheckedKeys(y,k={}){const{cascade:F=!0,leafOnly:C=!1,checkStrategy:A="all",allowNotLoaded:P=!1}=k;return Kc({checkedKeys:Wc(y),indeterminateKeys:Uc(y),cascade:F,leafOnly:C,checkStrategy:A,allowNotLoaded:P},E)},check(y,k,F={}){const{cascade:C=!0,leafOnly:A=!1,checkStrategy:P="all",allowNotLoaded:B=!1}=F;return Kc({checkedKeys:Wc(k),indeterminateKeys:Uc(k),keysToCheck:y==null?[]:V0(y),cascade:C,leafOnly:A,checkStrategy:P,allowNotLoaded:B},E)},uncheck(y,k,F={}){const{cascade:C=!0,leafOnly:A=!1,checkStrategy:P="all",allowNotLoaded:B=!1}=F;return Kc({checkedKeys:Wc(k),indeterminateKeys:Uc(k),keysToUncheck:y==null?[]:V0(y),cascade:C,leafOnly:A,checkStrategy:P,allowNotLoaded:B},E)},getNonLeafKeys(y={}){return VM(h,y)}};return E}const Ze={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},fA=uo(Ze.neutralBase),fC=uo(Ze.neutralInvertBase),hA=`rgba(${fC.slice(0,3).join(", ")}, `;function At(e){return`${hA+String(e)})`}function pA(e){const t=Array.from(fC);return t[3]=Number(e),Ue(fA,t)}const Ne=Object.assign(Object.assign({name:"common"},sn),{baseColor:Ze.neutralBase,primaryColor:Ze.primaryDefault,primaryColorHover:Ze.primaryHover,primaryColorPressed:Ze.primaryActive,primaryColorSuppl:Ze.primarySuppl,infoColor:Ze.infoDefault,infoColorHover:Ze.infoHover,infoColorPressed:Ze.infoActive,infoColorSuppl:Ze.infoSuppl,successColor:Ze.successDefault,successColorHover:Ze.successHover,successColorPressed:Ze.successActive,successColorSuppl:Ze.successSuppl,warningColor:Ze.warningDefault,warningColorHover:Ze.warningHover,warningColorPressed:Ze.warningActive,warningColorSuppl:Ze.warningSuppl,errorColor:Ze.errorDefault,errorColorHover:Ze.errorHover,errorColorPressed:Ze.errorActive,errorColorSuppl:Ze.errorSuppl,textColorBase:Ze.neutralTextBase,textColor1:At(Ze.alpha1),textColor2:At(Ze.alpha2),textColor3:At(Ze.alpha3),textColorDisabled:At(Ze.alpha4),placeholderColor:At(Ze.alpha4),placeholderColorDisabled:At(Ze.alpha5),iconColor:At(Ze.alpha4),iconColorDisabled:At(Ze.alpha5),iconColorHover:At(Number(Ze.alpha4)*1.25),iconColorPressed:At(Number(Ze.alpha4)*.8),opacity1:Ze.alpha1,opacity2:Ze.alpha2,opacity3:Ze.alpha3,opacity4:Ze.alpha4,opacity5:Ze.alpha5,dividerColor:At(Ze.alphaDivider),borderColor:At(Ze.alphaBorder),closeIconColorHover:At(Number(Ze.alphaClose)),closeIconColor:At(Number(Ze.alphaClose)),closeIconColorPressed:At(Number(Ze.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:At(Ze.alpha4),clearColorHover:ao(At(Ze.alpha4),{alpha:1.25}),clearColorPressed:ao(At(Ze.alpha4),{alpha:.8}),scrollbarColor:At(Ze.alphaScrollbar),scrollbarColorHover:At(Ze.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:At(Ze.alphaProgressRail),railColor:At(Ze.alphaRail),popoverColor:Ze.neutralPopover,tableColor:Ze.neutralCard,cardColor:Ze.neutralCard,modalColor:Ze.neutralModal,bodyColor:Ze.neutralBody,tagColor:pA(Ze.alphaTag),avatarColor:At(Ze.alphaAvatar),invertedColor:Ze.neutralBase,inputColor:At(Ze.alphaInput),codeColor:At(Ze.alphaCode),tabColor:At(Ze.alphaTab),actionColor:At(Ze.alphaAction),tableHeaderColor:At(Ze.alphaAction),hoverColor:At(Ze.alphaPending),tableColorHover:At(Ze.alphaTablePending),tableColorStriped:At(Ze.alphaTableStriped),pressedColor:At(Ze.alphaPressed),opacityDisabled:Ze.alphaDisabled,inputColorDisabled:At(Ze.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),dt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},mA=uo(dt.neutralBase),hC=uo(dt.neutralInvertBase),gA=`rgba(${hC.slice(0,3).join(", ")}, `;function W0(e){return`${gA+String(e)})`}function _o(e){const t=Array.from(hC);return t[3]=Number(e),Ue(mA,t)}const Ve=Object.assign(Object.assign({name:"common"},sn),{baseColor:dt.neutralBase,primaryColor:dt.primaryDefault,primaryColorHover:dt.primaryHover,primaryColorPressed:dt.primaryActive,primaryColorSuppl:dt.primarySuppl,infoColor:dt.infoDefault,infoColorHover:dt.infoHover,infoColorPressed:dt.infoActive,infoColorSuppl:dt.infoSuppl,successColor:dt.successDefault,successColorHover:dt.successHover,successColorPressed:dt.successActive,successColorSuppl:dt.successSuppl,warningColor:dt.warningDefault,warningColorHover:dt.warningHover,warningColorPressed:dt.warningActive,warningColorSuppl:dt.warningSuppl,errorColor:dt.errorDefault,errorColorHover:dt.errorHover,errorColorPressed:dt.errorActive,errorColorSuppl:dt.errorSuppl,textColorBase:dt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:_o(dt.alpha4),placeholderColor:_o(dt.alpha4),placeholderColorDisabled:_o(dt.alpha5),iconColor:_o(dt.alpha4),iconColorHover:ao(_o(dt.alpha4),{lightness:.75}),iconColorPressed:ao(_o(dt.alpha4),{lightness:.9}),iconColorDisabled:_o(dt.alpha5),opacity1:dt.alpha1,opacity2:dt.alpha2,opacity3:dt.alpha3,opacity4:dt.alpha4,opacity5:dt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:_o(Number(dt.alphaClose)),closeIconColorHover:_o(Number(dt.alphaClose)),closeIconColorPressed:_o(Number(dt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:_o(dt.alpha4),clearColorHover:ao(_o(dt.alpha4),{lightness:.75}),clearColorPressed:ao(_o(dt.alpha4),{lightness:.9}),scrollbarColor:W0(dt.alphaScrollbar),scrollbarColorHover:W0(dt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:_o(dt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:dt.neutralPopover,tableColor:dt.neutralCard,cardColor:dt.neutralCard,modalColor:dt.neutralModal,bodyColor:dt.neutralBody,tagColor:"#eee",avatarColor:_o(dt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:_o(dt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:dt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),vA={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function pC(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},vA),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:n})}const tr={name:"Empty",common:Ve,self:pC},Qi={name:"Empty",common:Ne,self:pC},bA=D("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--n-font-size); +`,[Z("icon",` + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + line-height: var(--n-icon-size); + color: var(--n-icon-color); + transition: + color .3s var(--n-bezier); + `,[V("+",[Z("description",` + margin-top: 8px; + `)])]),Z("description",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),Z("extra",` + text-align: center; + transition: color .3s var(--n-bezier); + margin-top: 12px; + color: var(--n-extra-text-color); + `)]),xA=Object.assign(Object.assign({},ze.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Lp=xe({name:"Empty",props:xA,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:n}=nt(e),r=ze("Empty","-empty",bA,tr,e,t),{localeRef:i}=Er("Empty"),a=T(()=>{var d,c,h;return(d=e.description)!==null&&d!==void 0?d:(h=(c=n==null?void 0:n.value)===null||c===void 0?void 0:c.Empty)===null||h===void 0?void 0:h.description}),l=T(()=>{var d,c;return((c=(d=n==null?void 0:n.value)===null||d===void 0?void 0:d.Empty)===null||c===void 0?void 0:c.renderIcon)||(()=>m(MM,null))}),s=T(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:c},self:{[ke("iconSize",d)]:h,[ke("fontSize",d)]:f,textColor:p,iconColor:g,extraTextColor:v}}=r.value;return{"--n-icon-size":h,"--n-font-size":f,"--n-bezier":c,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":v}}),u=o?vt("empty",T(()=>{let d="";const{size:c}=e;return d+=c[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:T(()=>a.value||i.value.description),cssVars:o?void 0:s,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?m("div",{class:`${t}-empty__icon`},e.icon?e.icon():m(Ut,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?m("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?m("div",{class:`${t}-empty__extra`},e.extra()):null)}}),yA={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function mC(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:n,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},yA),{height:n,width:r,borderRadius:i,color:t,colorHover:o})}const Lo={name:"Scrollbar",common:Ve,self:mC},Zo={name:"Scrollbar",common:Ne,self:mC},{cubicBezierEaseInOut:U0}=sn;function Ts({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:n=U0,leaveCubicBezier:r=U0}={}){return[V(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),V(`&.${e}-transition-leave-active`,{transition:`all ${o} ${r}!important`}),V(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),V(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const CA=D("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[V(">",[D("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[V("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),V(">",[D("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),V(">, +",[D("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + background: var(--n-scrollbar-rail-color); + -webkit-user-select: none; + `,[Q("horizontal",` + height: var(--n-scrollbar-height); + `,[V(">",[Z("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),Q("horizontal--top",` + inset: var(--n-scrollbar-rail-inset-horizontal-top); + `),Q("horizontal--bottom",` + inset: var(--n-scrollbar-rail-inset-horizontal-bottom); + `),Q("vertical",` + width: var(--n-scrollbar-width); + `,[V(">",[Z("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),Q("vertical--left",` + inset: var(--n-scrollbar-rail-inset-vertical-left); + `),Q("vertical--right",` + inset: var(--n-scrollbar-rail-inset-vertical-right); + `),Q("disabled",[V(">",[Z("scrollbar","pointer-events: none;")])]),V(">",[Z("scrollbar",` + z-index: 1; + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[Ts(),V("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),wA=Object.assign(Object.assign({},ze.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),or=xe({name:"Scrollbar",props:wA,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),r=qt("Scrollbar",n,t),i=M(null),a=M(null),l=M(null),s=M(null),u=M(null),d=M(null),c=M(null),h=M(null),f=M(null),p=M(null),g=M(null),v=M(0),b=M(0),x=M(!1),E=M(!1);let y=!1,k=!1,F,C,A=0,P=0,B=0,W=0;const N=sk(),K=ze("Scrollbar","-scrollbar",CA,Lo,e,t),H=T(()=>{const{value:J}=h,{value:me}=d,{value:Me}=p;return J===null||me===null||Me===null?0:Math.min(J,Me*J/me+so(K.value.self.width)*1.5)}),I=T(()=>`${H.value}px`),O=T(()=>{const{value:J}=f,{value:me}=c,{value:Me}=g;return J===null||me===null||Me===null?0:Me*J/me+so(K.value.self.height)*1.5}),R=T(()=>`${O.value}px`),z=T(()=>{const{value:J}=h,{value:me}=v,{value:Me}=d,{value:He}=p;if(J===null||Me===null||He===null)return 0;{const We=Me-J;return We?me/We*(He-H.value):0}}),_=T(()=>`${z.value}px`),oe=T(()=>{const{value:J}=f,{value:me}=b,{value:Me}=c,{value:He}=g;if(J===null||Me===null||He===null)return 0;{const We=Me-J;return We?me/We*(He-O.value):0}}),G=T(()=>`${oe.value}px`),j=T(()=>{const{value:J}=h,{value:me}=d;return J!==null&&me!==null&&me>J}),ue=T(()=>{const{value:J}=f,{value:me}=c;return J!==null&&me!==null&&me>J}),he=T(()=>{const{trigger:J}=e;return J==="none"||x.value}),_e=T(()=>{const{trigger:J}=e;return J==="none"||E.value}),pe=T(()=>{const{container:J}=e;return J?J():a.value}),fe=T(()=>{const{content:J}=e;return J?J():l.value}),Ce=(J,me)=>{if(!e.scrollable)return;if(typeof J=="number"){U(J,me??0,0,!1,"auto");return}const{left:Me,top:He,index:We,elSize:Ge,position:qe,behavior:ot,el:yt,debounce:Bt=!0}=J;(Me!==void 0||He!==void 0)&&U(Me??0,He??0,0,!1,ot),yt!==void 0?U(0,yt.offsetTop,yt.offsetHeight,Bt,ot):We!==void 0&&Ge!==void 0?U(0,We*Ge,Ge,Bt,ot):qe==="bottom"?U(0,Number.MAX_SAFE_INTEGER,0,!1,ot):qe==="top"&&U(0,0,0,!1,ot)},Y=a8(()=>{e.container||Ce({top:v.value,left:b.value})}),q=()=>{Y.isDeactivated||se()},Se=J=>{if(Y.isDeactivated)return;const{onResize:me}=e;me&&me(J),se()},je=(J,me)=>{if(!e.scrollable)return;const{value:Me}=pe;Me&&(typeof J=="object"?Me.scrollBy(J):Me.scrollBy(J,me||0))};function U(J,me,Me,He,We){const{value:Ge}=pe;if(Ge){if(He){const{scrollTop:qe,offsetHeight:ot}=Ge;if(me>qe){me+Me<=qe+ot||Ge.scrollTo({left:J,top:me+Me-ot,behavior:We});return}}Ge.scrollTo({left:J,top:me,behavior:We})}}function te(){ce(),ee(),se()}function ge(){we()}function we(){le(),re()}function le(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{E.value=!1},e.duration)}function re(){F!==void 0&&window.clearTimeout(F),F=window.setTimeout(()=>{x.value=!1},e.duration)}function ce(){F!==void 0&&window.clearTimeout(F),x.value=!0}function ee(){C!==void 0&&window.clearTimeout(C),E.value=!0}function ie(J){const{onScroll:me}=e;me&&me(J),de()}function de(){const{value:J}=pe;J&&(v.value=J.scrollTop,b.value=J.scrollLeft*(r!=null&&r.value?-1:1))}function ae(){const{value:J}=fe;J&&(d.value=J.offsetHeight,c.value=J.offsetWidth);const{value:me}=pe;me&&(h.value=me.offsetHeight,f.value=me.offsetWidth);const{value:Me}=u,{value:He}=s;Me&&(g.value=Me.offsetWidth),He&&(p.value=He.offsetHeight)}function X(){const{value:J}=pe;J&&(v.value=J.scrollTop,b.value=J.scrollLeft*(r!=null&&r.value?-1:1),h.value=J.offsetHeight,f.value=J.offsetWidth,d.value=J.scrollHeight,c.value=J.scrollWidth);const{value:me}=u,{value:Me}=s;me&&(g.value=me.offsetWidth),Me&&(p.value=Me.offsetHeight)}function se(){e.scrollable&&(e.useUnifiedContainer?X():(ae(),de()))}function ve(J){var me;return!(!((me=i.value)===null||me===void 0)&&me.contains(Oi(J)))}function Te(J){J.preventDefault(),J.stopPropagation(),k=!0,Ct("mousemove",window,Ke,!0),Ct("mouseup",window,Qe,!0),P=b.value,B=r!=null&&r.value?window.innerWidth-J.clientX:J.clientX}function Ke(J){if(!k)return;F!==void 0&&window.clearTimeout(F),C!==void 0&&window.clearTimeout(C);const{value:me}=f,{value:Me}=c,{value:He}=O;if(me===null||Me===null)return;const Ge=(r!=null&&r.value?window.innerWidth-J.clientX-B:J.clientX-B)*(Me-me)/(me-He),qe=Me-me;let ot=P+Ge;ot=Math.min(qe,ot),ot=Math.max(ot,0);const{value:yt}=pe;if(yt){yt.scrollLeft=ot*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:Bt}=e;Bt&&Bt(ot)}}function Qe(J){J.preventDefault(),J.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,Qe,!0),k=!1,se(),ve(J)&&we()}function st(J){J.preventDefault(),J.stopPropagation(),y=!0,Ct("mousemove",window,Xe,!0),Ct("mouseup",window,pt,!0),A=v.value,W=J.clientY}function Xe(J){if(!y)return;F!==void 0&&window.clearTimeout(F),C!==void 0&&window.clearTimeout(C);const{value:me}=h,{value:Me}=d,{value:He}=H;if(me===null||Me===null)return;const Ge=(J.clientY-W)*(Me-me)/(me-He),qe=Me-me;let ot=A+Ge;ot=Math.min(qe,ot),ot=Math.max(ot,0);const{value:yt}=pe;yt&&(yt.scrollTop=ot)}function pt(J){J.preventDefault(),J.stopPropagation(),xt("mousemove",window,Xe,!0),xt("mouseup",window,pt,!0),y=!1,se(),ve(J)&&we()}kt(()=>{const{value:J}=ue,{value:me}=j,{value:Me}=t,{value:He}=u,{value:We}=s;He&&(J?He.classList.remove(`${Me}-scrollbar-rail--disabled`):He.classList.add(`${Me}-scrollbar-rail--disabled`)),We&&(me?We.classList.remove(`${Me}-scrollbar-rail--disabled`):We.classList.add(`${Me}-scrollbar-rail--disabled`))}),ut(()=>{e.container||se()}),Xt(()=>{F!==void 0&&window.clearTimeout(F),C!==void 0&&window.clearTimeout(C),xt("mousemove",window,Xe,!0),xt("mouseup",window,pt,!0)});const Ye=T(()=>{const{common:{cubicBezierEaseInOut:J},self:{color:me,colorHover:Me,height:He,width:We,borderRadius:Ge,railInsetHorizontalTop:qe,railInsetHorizontalBottom:ot,railInsetVerticalRight:yt,railInsetVerticalLeft:Bt,railColor:_t}}=K.value;return{"--n-scrollbar-bezier":J,"--n-scrollbar-color":me,"--n-scrollbar-color-hover":Me,"--n-scrollbar-border-radius":Ge,"--n-scrollbar-width":We,"--n-scrollbar-height":He,"--n-scrollbar-rail-inset-horizontal-top":qe,"--n-scrollbar-rail-inset-horizontal-bottom":ot,"--n-scrollbar-rail-inset-vertical-right":r!=null&&r.value?Cg(yt):yt,"--n-scrollbar-rail-inset-vertical-left":r!=null&&r.value?Cg(Bt):Bt,"--n-scrollbar-rail-color":_t}}),Le=o?vt("scrollbar",void 0,Ye,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ce,scrollBy:je,sync:se,syncUnifiedContainer:X,handleMouseEnterWrapper:te,handleMouseLeaveWrapper:ge}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:u,needYBar:j,needXBar:ue,yBarSizePx:I,xBarSizePx:R,yBarTopPx:_,xBarLeftPx:G,isShowXBar:he,isShowYBar:_e,isIos:N,handleScroll:ie,handleContentResize:q,handleContainerResize:Se,handleYScrollMouseDown:st,handleXScrollMouseDown:Te,cssVars:o?void 0:Ye,themeClass:Le==null?void 0:Le.themeClass,onRender:Le==null?void 0:Le.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:a,xPlacement:l,xScrollable:s}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const u=this.trigger==="none",d=(f,p)=>m("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${a}`,f],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},m(u?Yf:po,u?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),c=()=>{var f,p;return(f=this.onRender)===null||f===void 0||f.call(this),m("div",bo(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,r&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(p=t.default)===null||p===void 0?void 0:p.call(t):m("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},m($n,{onResize:this.handleContentResize},{default:()=>m("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:d(void 0,void 0),s&&m("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},m(u?Yf:po,u?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},h=this.container?c():m($n,{onResize:this.handleContainerResize},{default:c});return i?m(ft,null,h,d(this.themeClass,this.cssVars)):h}}),gC=or,SA={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function vC(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:u,hoverColor:d,fontSizeTiny:c,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:g,heightTiny:v,heightSmall:b,heightMedium:x,heightLarge:E,heightHuge:y}=e;return Object.assign(Object.assign({},SA),{optionFontSizeTiny:c,optionFontSizeSmall:h,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:v,optionHeightSmall:b,optionHeightMedium:x,optionHeightLarge:E,optionHeightHuge:y,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:u,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})}const Ua={name:"InternalSelectMenu",common:Ve,peers:{Scrollbar:Lo,Empty:tr},self:vC},Is={name:"InternalSelectMenu",common:Ne,peers:{Scrollbar:Zo,Empty:Qi},self:vC};function EA(e,t){return m(po,{name:"fade-in-scale-up-transition"},{default:()=>e?m(Ut,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>m(_M)}):null})}const K0=xe({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:n,valueSetRef:r,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:u,nodePropsRef:d,handleOptionClick:c,handleOptionMouseEnter:h}=Oe(pp),f=gt(()=>{const{value:b}=o;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:x}=e;x.disabled||c(b,x)}function g(b){const{tmNode:x}=e;x.disabled||h(b,x)}function v(b){const{tmNode:x}=e,{value:E}=f;x.disabled||E||h(b,x)}return{multiple:n,isGrouped:gt(()=>{const{tmNode:b}=e,{parent:x}=b;return x&&x.rawNode.type==="group"}),showCheckmark:u,nodeProps:d,isPending:f,isSelected:gt(()=>{const{value:b}=t,{value:x}=n;if(b===null)return!1;const E=e.tmNode.rawNode[s.value];if(x){const{value:y}=r;return y.has(E)}else return b===E}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:v,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:u,handleMouseEnter:d,handleMouseMove:c}=this,h=EA(o,e),f=s?[s(t,o),i&&h]:[Jt(t[this.labelField],t,o),i&&h],p=a==null?void 0:a(t),g=m("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:Bl([u,p==null?void 0:p.onClick]),onMouseenter:Bl([d,p==null?void 0:p.onMouseenter]),onMousemove:Bl([c,p==null?void 0:p.onMousemove])}),m("div",{class:`${e}-base-select-option__content`},f));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),G0=xe({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=Oe(pp);return{labelField:o,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:n,tmNode:{rawNode:r}}=this,i=n==null?void 0:n(r),a=t?t(r,!1):Jt(r[this.labelField],r,!1),l=m("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return r.render?r.render({node:l,option:r}):o?o({node:l,option:r,selected:!1}):l}}),{cubicBezierEaseIn:q0,cubicBezierEaseOut:Z0}=sn;function An({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[V("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${q0}, transform ${t} ${q0} ${r&&`,${r}`}`}),V("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Z0}, transform ${t} ${Z0} ${r&&`,${r}`}`}),V("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),V("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const kA=D("base-select-menu",` + line-height: 1.5; + outline: none; + z-index: 0; + position: relative; + border-radius: var(--n-border-radius); + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-color); +`,[D("scrollbar",` + max-height: var(--n-height); + `),D("virtual-list",` + max-height: var(--n-height); + `),D("base-select-option",` + min-height: var(--n-option-height); + font-size: var(--n-option-font-size); + display: flex; + align-items: center; + `,[Z("content",` + z-index: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + `)]),D("base-select-group-header",` + min-height: var(--n-option-height); + font-size: .93em; + display: flex; + align-items: center; + `),D("base-select-menu-option-wrapper",` + position: relative; + width: 100%; + `),Z("loading, empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),Z("loading",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + `),Z("header",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),Z("action",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-top: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),D("base-select-group-header",` + position: relative; + cursor: default; + padding: var(--n-option-padding); + color: var(--n-group-header-text-color); + `),D("base-select-option",` + cursor: pointer; + position: relative; + padding: var(--n-option-padding); + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + box-sizing: border-box; + color: var(--n-option-text-color); + opacity: 1; + `,[Q("show-checkmark",` + padding-right: calc(var(--n-option-padding-right) + 20px); + `),V("&::before",` + content: ""; + position: absolute; + left: 4px; + right: 4px; + top: 0; + bottom: 0; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),V("&:active",` + color: var(--n-option-text-color-pressed); + `),Q("grouped",` + padding-left: calc(var(--n-option-padding-left) * 1.5); + `),Q("pending",[V("&::before",` + background-color: var(--n-option-color-pending); + `)]),Q("selected",` + color: var(--n-option-text-color-active); + `,[V("&::before",` + background-color: var(--n-option-color-active); + `),Q("pending",[V("&::before",` + background-color: var(--n-option-color-active-pending); + `)])]),Q("disabled",` + cursor: not-allowed; + `,[Ft("selected",` + color: var(--n-option-text-color-disabled); + `),Q("selected",` + opacity: var(--n-option-opacity-disabled); + `)]),Z("check",` + font-size: 16px; + position: absolute; + right: calc(var(--n-option-padding-right) - 4px); + top: calc(50% - 7px); + color: var(--n-option-check-color); + transition: color .3s var(--n-bezier); + `,[An({enterScale:"0.5"})])])]),bC=xe({name:"InternalSelectMenu",props:Object.assign(Object.assign({},ze.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=nt(e),n=qt("InternalSelectMenu",o,t),r=ze("InternalSelectMenu","-internal-select-menu",kA,Ua,e,De(e,"clsPrefix")),i=M(null),a=M(null),l=M(null),s=T(()=>e.treeMate.getFlattenedNodes()),u=T(()=>JM(s.value)),d=M(null);function c(){const{treeMate:j}=e;let ue=null;const{value:he}=e;he===null?ue=j.getFirstAvailableNode():(e.multiple?ue=j.getNode((he||[])[(he||[]).length-1]):ue=j.getNode(he),(!ue||ue.disabled)&&(ue=j.getFirstAvailableNode())),H(ue||null)}function h(){const{value:j}=d;j&&!e.treeMate.getNode(j.key)&&(d.value=null)}let f;at(()=>e.show,j=>{j?f=at(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?c():h(),Rt(I)):h()},{immediate:!0}):f==null||f()},{immediate:!0}),Xt(()=>{f==null||f()});const p=T(()=>so(r.value.self[ke("optionHeight",e.size)])),g=T(()=>Ro(r.value.self[ke("padding",e.size)])),v=T(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=T(()=>{const j=s.value;return j&&j.length===0});function x(j){const{onToggle:ue}=e;ue&&ue(j)}function E(j){const{onScroll:ue}=e;ue&&ue(j)}function y(j){var ue;(ue=l.value)===null||ue===void 0||ue.sync(),E(j)}function k(){var j;(j=l.value)===null||j===void 0||j.sync()}function F(){const{value:j}=d;return j||null}function C(j,ue){ue.disabled||H(ue,!1)}function A(j,ue){ue.disabled||x(ue)}function P(j){var ue;Ko(j,"action")||(ue=e.onKeyup)===null||ue===void 0||ue.call(e,j)}function B(j){var ue;Ko(j,"action")||(ue=e.onKeydown)===null||ue===void 0||ue.call(e,j)}function W(j){var ue;(ue=e.onMousedown)===null||ue===void 0||ue.call(e,j),!e.focusable&&j.preventDefault()}function N(){const{value:j}=d;j&&H(j.getNext({loop:!0}),!0)}function K(){const{value:j}=d;j&&H(j.getPrev({loop:!0}),!0)}function H(j,ue=!1){d.value=j,ue&&I()}function I(){var j,ue;const he=d.value;if(!he)return;const _e=u.value(he.key);_e!==null&&(e.virtualScroll?(j=a.value)===null||j===void 0||j.scrollTo({index:_e}):(ue=l.value)===null||ue===void 0||ue.scrollTo({index:_e,elSize:p.value}))}function O(j){var ue,he;!((ue=i.value)===null||ue===void 0)&&ue.contains(j.target)&&((he=e.onFocus)===null||he===void 0||he.call(e,j))}function R(j){var ue,he;!((ue=i.value)===null||ue===void 0)&&ue.contains(j.relatedTarget)||(he=e.onBlur)===null||he===void 0||he.call(e,j)}et(pp,{handleOptionMouseEnter:C,handleOptionClick:A,valueSetRef:v,pendingTmNodeRef:d,nodePropsRef:De(e,"nodeProps"),showCheckmarkRef:De(e,"showCheckmark"),multipleRef:De(e,"multiple"),valueRef:De(e,"value"),renderLabelRef:De(e,"renderLabel"),renderOptionRef:De(e,"renderOption"),labelFieldRef:De(e,"labelField"),valueFieldRef:De(e,"valueField")}),et(Ox,i),ut(()=>{const{value:j}=l;j&&j.sync()});const z=T(()=>{const{size:j}=e,{common:{cubicBezierEaseInOut:ue},self:{height:he,borderRadius:_e,color:pe,groupHeaderTextColor:fe,actionDividerColor:Ce,optionTextColorPressed:Y,optionTextColor:q,optionTextColorDisabled:Se,optionTextColorActive:je,optionOpacityDisabled:U,optionCheckColor:te,actionTextColor:ge,optionColorPending:we,optionColorActive:le,loadingColor:re,loadingSize:ce,optionColorActivePending:ee,[ke("optionFontSize",j)]:ie,[ke("optionHeight",j)]:de,[ke("optionPadding",j)]:ae}}=r.value;return{"--n-height":he,"--n-action-divider-color":Ce,"--n-action-text-color":ge,"--n-bezier":ue,"--n-border-radius":_e,"--n-color":pe,"--n-option-font-size":ie,"--n-group-header-text-color":fe,"--n-option-check-color":te,"--n-option-color-pending":we,"--n-option-color-active":le,"--n-option-color-active-pending":ee,"--n-option-height":de,"--n-option-opacity-disabled":U,"--n-option-text-color":q,"--n-option-text-color-active":je,"--n-option-text-color-disabled":Se,"--n-option-text-color-pressed":Y,"--n-option-padding":ae,"--n-option-padding-left":Ro(ae,"left"),"--n-option-padding-right":Ro(ae,"right"),"--n-loading-color":re,"--n-loading-size":ce}}),{inlineThemeDisabled:_}=e,oe=_?vt("internal-select-menu",T(()=>e.size[0]),z,e):void 0,G={selfRef:i,next:N,prev:K,getPendingTmNode:F};return ty(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:n,virtualListRef:a,scrollbarRef:l,itemSize:p,padding:g,flattenedNodes:s,empty:b,virtualListContainer(){const{value:j}=a;return j==null?void 0:j.listElRef},virtualListContent(){const{value:j}=a;return j==null?void 0:j.itemsElRef},doScroll:E,handleFocusin:O,handleFocusout:R,handleKeyUp:P,handleKeyDown:B,handleMouseDown:W,handleVirtualListResize:k,handleVirtualListScroll:y,cssVars:_?void 0:z,themeClass:oe==null?void 0:oe.themeClass,onRender:oe==null?void 0:oe.onRender},G)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:n,themeClass:r,onRender:i}=this;return i==null||i(),m("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,r,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},bt(e.header,a=>a&&m("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?m("div",{class:`${o}-base-select-menu__loading`},m(_r,{clsPrefix:o,strokeWidth:20})):this.empty?m("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},wo(e.empty,()=>[m(Lp,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty,size:this.size})])):m(or,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?m(bp,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?m(G0,{key:a.key,clsPrefix:o,tmNode:a}):a.ignored?null:m(K0,{clsPrefix:o,key:a.key,tmNode:a})}):m("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?m(G0,{key:a.key,clsPrefix:o,tmNode:a}):m(K0,{clsPrefix:o,key:a.key,tmNode:a})))}),bt(e.action,a=>a&&[m("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},a),m(OM,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),_A=D("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),xC=xe({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){kr("-base-wave",_A,De(e,"clsPrefix"));const t=M(null),o=M(!1);let n=null;return Xt(()=>{n!==null&&window.clearTimeout(n)}),{active:o,selfRef:t,play(){n!==null&&(window.clearTimeout(n),o.value=!1,n=null),Rt(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,o.value=!0,n=window.setTimeout(()=>{o.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return m("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),FA={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function yC(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},FA),{fontSize:i,borderRadius:r,color:o,dividerColor:a,textColor:n,boxShadow:t})}const si={name:"Popover",common:Ve,self:yC},Ji={name:"Popover",common:Ne,self:yC},Gc={top:"bottom",bottom:"top",left:"right",right:"left"},mo="var(--n-arrow-height) * 1.414",RA=V([D("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[V(">",[D("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Ft("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[Ft("scrollable",[Ft("show-header-or-footer","padding: var(--n-padding);")])]),Z("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),Z("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),Q("scrollable, show-header-or-footer",[Z("content",` + padding: var(--n-padding); + `)])]),D("popover-shared",` + transform-origin: inherit; + `,[D("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[D("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${mo}); + height: calc(${mo}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),V("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),V("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),V("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),V("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),fn("top-start",` + top: calc(${mo} / -2); + left: calc(${lr("top-start")} - var(--v-offset-left)); + `),fn("top",` + top: calc(${mo} / -2); + transform: translateX(calc(${mo} / -2)) rotate(45deg); + left: 50%; + `),fn("top-end",` + top: calc(${mo} / -2); + right: calc(${lr("top-end")} + var(--v-offset-left)); + `),fn("bottom-start",` + bottom: calc(${mo} / -2); + left: calc(${lr("bottom-start")} - var(--v-offset-left)); + `),fn("bottom",` + bottom: calc(${mo} / -2); + transform: translateX(calc(${mo} / -2)) rotate(45deg); + left: 50%; + `),fn("bottom-end",` + bottom: calc(${mo} / -2); + right: calc(${lr("bottom-end")} + var(--v-offset-left)); + `),fn("left-start",` + left: calc(${mo} / -2); + top: calc(${lr("left-start")} - var(--v-offset-top)); + `),fn("left",` + left: calc(${mo} / -2); + transform: translateY(calc(${mo} / -2)) rotate(45deg); + top: 50%; + `),fn("left-end",` + left: calc(${mo} / -2); + bottom: calc(${lr("left-end")} + var(--v-offset-top)); + `),fn("right-start",` + right: calc(${mo} / -2); + top: calc(${lr("right-start")} - var(--v-offset-top)); + `),fn("right",` + right: calc(${mo} / -2); + transform: translateY(calc(${mo} / -2)) rotate(45deg); + top: 50%; + `),fn("right-end",` + right: calc(${mo} / -2); + bottom: calc(${lr("right-end")} + var(--v-offset-top)); + `),...$P({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),n=o?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",l=`calc((${`var(--v-target-${n}, 0px)`} - ${mo}) / 2)`,s=lr(r);return V(`[v-placement="${r}"] >`,[D("popover-shared",[Q("center-arrow",[D("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function lr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function fn(e,t){const o=e.split("-")[0],n=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return V(`[v-placement="${e}"] >`,[D("popover-shared",` + margin-${Gc[o]}: var(--n-space); + `,[Q("show-arrow",` + margin-${Gc[o]}: var(--n-space-arrow); + `),Q("overlap",` + margin: 0; + `),X4("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${o}: 100%; + ${Gc[o]}: auto; + ${n} + `,[D("popover-arrow",t)])])])}const CC=Object.assign(Object.assign({},ze.props),{to:Mo.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function wC({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return m("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},m("div",{class:[`${r}-popover-arrow`,e],style:t}))}const $A=xe({name:"PopoverBody",inheritAttrs:!1,props:CC,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i}=nt(e),a=ze("Popover","-popover",RA,si,e,r),l=M(null),s=Oe("NPopover"),u=M(null),d=M(e.show),c=M(!1);kt(()=>{const{show:C}=e;C&&!Y4()&&!e.internalDeactivateImmediately&&(c.value=!0)});const h=T(()=>{const{trigger:C,onClickoutside:A}=e,P=[],{positionManuallyRef:{value:B}}=s;return B||(C==="click"&&!A&&P.push([Li,y,void 0,{capture:!0}]),C==="hover"&&P.push([vk,E])),A&&P.push([Li,y,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&c.value)&&P.push([bn,e.show]),P}),f=T(()=>{const{common:{cubicBezierEaseInOut:C,cubicBezierEaseIn:A,cubicBezierEaseOut:P},self:{space:B,spaceArrow:W,padding:N,fontSize:K,textColor:H,dividerColor:I,color:O,boxShadow:R,borderRadius:z,arrowHeight:_,arrowOffset:oe,arrowOffsetVertical:G}}=a.value;return{"--n-box-shadow":R,"--n-bezier":C,"--n-bezier-ease-in":A,"--n-bezier-ease-out":P,"--n-font-size":K,"--n-text-color":H,"--n-color":O,"--n-divider-color":I,"--n-border-radius":z,"--n-arrow-height":_,"--n-arrow-offset":oe,"--n-arrow-offset-vertical":G,"--n-padding":N,"--n-space":B,"--n-space-arrow":W}}),p=T(()=>{const C=e.width==="trigger"?void 0:So(e.width),A=[];C&&A.push({width:C});const{maxWidth:P,minWidth:B}=e;return P&&A.push({maxWidth:So(P)}),B&&A.push({maxWidth:So(B)}),i||A.push(f.value),A}),g=i?vt("popover",void 0,f,e):void 0;s.setBodyInstance({syncPosition:v}),Xt(()=>{s.setBodyInstance(null)}),at(De(e,"show"),C=>{e.animated||(C?d.value=!0:d.value=!1)});function v(){var C;(C=l.value)===null||C===void 0||C.syncPosition()}function b(C){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(C)}function x(C){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(C)}function E(C){e.trigger==="hover"&&!k().contains(Oi(C))&&s.handleMouseMoveOutside(C)}function y(C){(e.trigger==="click"&&!k().contains(Oi(C))||e.onClickoutside)&&s.handleClickOutside(C)}function k(){return s.getTriggerElement()}et(Na,u),et(Es,null),et(Ss,null);function F(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&c.value))return null;let A;const P=s.internalRenderBodyRef.value,{value:B}=r;if(P)A=P([`${B}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${B}-popover-shared--overlap`,e.showArrow&&`${B}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${B}-popover-shared--center-arrow`],u,p.value,b,x);else{const{value:W}=s.extraClassRef,{internalTrapFocus:N}=e,K=!Ai(t.header)||!Ai(t.footer),H=()=>{var I,O;const R=K?m(ft,null,bt(t.header,oe=>oe?m("div",{class:[`${B}-popover__header`,e.headerClass],style:e.headerStyle},oe):null),bt(t.default,oe=>oe?m("div",{class:[`${B}-popover__content`,e.contentClass],style:e.contentStyle},t):null),bt(t.footer,oe=>oe?m("div",{class:[`${B}-popover__footer`,e.footerClass],style:e.footerStyle},oe):null)):e.scrollable?(I=t.default)===null||I===void 0?void 0:I.call(t):m("div",{class:[`${B}-popover__content`,e.contentClass],style:e.contentStyle},t),z=e.scrollable?m(gC,{contentClass:K?void 0:`${B}-popover__content ${(O=e.contentClass)!==null&&O!==void 0?O:""}`,contentStyle:K?void 0:e.contentStyle},{default:()=>R}):R,_=e.showArrow?wC({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:B}):null;return[z,_]};A=m("div",bo({class:[`${B}-popover`,`${B}-popover-shared`,g==null?void 0:g.themeClass.value,W.map(I=>`${B}-${I}`),{[`${B}-popover--scrollable`]:e.scrollable,[`${B}-popover--show-header-or-footer`]:K,[`${B}-popover--raw`]:e.raw,[`${B}-popover-shared--overlap`]:e.overlap,[`${B}-popover-shared--show-arrow`]:e.showArrow,[`${B}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:p.value,onKeydown:s.handleKeydown,onMouseenter:b,onMouseleave:x},o),N?m(xp,{active:e.show,autoFocus:!0},{default:H}):H())}return Po(A,h.value)}return{displayed:c,namespace:n,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Mo(e),followerEnabled:d,renderContentNode:F}},render(){return m(Fs,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Mo.tdkey},{default:()=>this.animated?m(po,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),PA=Object.keys(CC),MA={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function AA(e,t,o){MA[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...a)=>{r(...a),i(...a)}:e.props[n]=i})}const Da={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Mo.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},BA=Object.assign(Object.assign(Object.assign({},ze.props),Da),{internalOnAfterLeave:Function,internalRenderBody:Function}),Ka=xe({name:"Popover",inheritAttrs:!1,props:BA,__popover__:!0,setup(e){const t=Cr(),o=M(null),n=T(()=>e.show),r=M(e.defaultShow),i=to(n,r),a=gt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:I}=e;return!!(I!=null&&I())},s=()=>l()?!1:i.value,u=Jl(e,["arrow","showArrow"]),d=T(()=>e.overlap?!1:u.value);let c=null;const h=M(null),f=M(null),p=gt(()=>e.x!==void 0&&e.y!==void 0);function g(I){const{"onUpdate:show":O,onUpdateShow:R,onShow:z,onHide:_}=e;r.value=I,O&&Pe(O,I),R&&Pe(R,I),I&&z&&Pe(z,!0),I&&_&&Pe(_,!1)}function v(){c&&c.syncPosition()}function b(){const{value:I}=h;I&&(window.clearTimeout(I),h.value=null)}function x(){const{value:I}=f;I&&(window.clearTimeout(I),f.value=null)}function E(){const I=l();if(e.trigger==="focus"&&!I){if(s())return;g(!0)}}function y(){const I=l();if(e.trigger==="focus"&&!I){if(!s())return;g(!1)}}function k(){const I=l();if(e.trigger==="hover"&&!I){if(x(),h.value!==null||s())return;const O=()=>{g(!0),h.value=null},{delay:R}=e;R===0?O():h.value=window.setTimeout(O,R)}}function F(){const I=l();if(e.trigger==="hover"&&!I){if(b(),f.value!==null||!s())return;const O=()=>{g(!1),f.value=null},{duration:R}=e;R===0?O():f.value=window.setTimeout(O,R)}}function C(){F()}function A(I){var O;s()&&(e.trigger==="click"&&(b(),x(),g(!1)),(O=e.onClickoutside)===null||O===void 0||O.call(e,I))}function P(){if(e.trigger==="click"&&!l()){b(),x();const I=!s();g(I)}}function B(I){e.internalTrapFocus&&I.key==="Escape"&&(b(),x(),g(!1))}function W(I){r.value=I}function N(){var I;return(I=o.value)===null||I===void 0?void 0:I.targetRef}function K(I){c=I}return et("NPopover",{getTriggerElement:N,handleKeydown:B,handleMouseEnter:k,handleMouseLeave:F,handleClickOutside:A,handleMouseMoveOutside:C,setBodyInstance:K,positionManuallyRef:p,isMountedRef:t,zIndexRef:De(e,"zIndex"),extraClassRef:De(e,"internalExtraClass"),internalRenderBodyRef:De(e,"internalRenderBody")}),kt(()=>{i.value&&l()&&g(!1)}),{binderInstRef:o,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:s,setShow:W,handleClick:P,handleMouseEnter:k,handleMouseLeave:F,handleFocus:E,handleBlur:y,syncPosition:v}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(o.activator?n=Zf(o,"activator"):n=Zf(o,"trigger"),n)){n=qo(n),n=n.type===ys?m("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:u=>{l.forEach(d=>{d.onBlur(u)})},onFocus:u=>{l.forEach(d=>{d.onFocus(u)})},onClick:u=>{l.forEach(d=>{d.onClick(u)})},onMouseenter:u=>{l.forEach(d=>{d.onMouseenter(u)})},onMouseleave:u=>{l.forEach(d=>{d.onMouseleave(u)})}};AA(n,a?"nested":t?"manual":this.trigger,s)}}return m(ks,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?Po(m("div",{style:{position:"fixed",inset:0}}),[[Pd,{enabled:i,zIndex:this.zIndex}]]):null,t?null:m(_s,null,{default:()=>n}),m($A,ei(this.$props,PA,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),SC={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},EC={name:"Tag",common:Ne,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:u,borderColor:d,tagColor:c,opacityDisabled:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:b,borderRadiusSmall:x,fontSizeMini:E,fontSizeTiny:y,fontSizeSmall:k,fontSizeMedium:F,heightMini:C,heightTiny:A,heightSmall:P,heightMedium:B,buttonColor2Hover:W,buttonColor2Pressed:N,fontWeightStrong:K}=e;return Object.assign(Object.assign({},SC),{closeBorderRadius:x,heightTiny:C,heightSmall:A,heightMedium:P,heightLarge:B,borderRadius:x,opacityDisabled:h,fontSizeTiny:E,fontSizeSmall:y,fontSizeMedium:k,fontSizeLarge:F,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:W,colorPressedCheckable:N,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:c,colorBordered:"#0000",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:b,borderPrimary:`1px solid ${Ae(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Ae(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:ao(r,{lightness:.7}),closeIconColorHoverPrimary:ao(r,{lightness:.7}),closeIconColorPressedPrimary:ao(r,{lightness:.7}),closeColorHoverPrimary:Ae(r,{alpha:.16}),closeColorPressedPrimary:Ae(r,{alpha:.12}),borderInfo:`1px solid ${Ae(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ae(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:ao(i,{alpha:.7}),closeIconColorHoverInfo:ao(i,{alpha:.7}),closeIconColorPressedInfo:ao(i,{alpha:.7}),closeColorHoverInfo:Ae(i,{alpha:.16}),closeColorPressedInfo:Ae(i,{alpha:.12}),borderSuccess:`1px solid ${Ae(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Ae(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:ao(a,{alpha:.7}),closeIconColorHoverSuccess:ao(a,{alpha:.7}),closeIconColorPressedSuccess:ao(a,{alpha:.7}),closeColorHoverSuccess:Ae(a,{alpha:.16}),closeColorPressedSuccess:Ae(a,{alpha:.12}),borderWarning:`1px solid ${Ae(l,{alpha:.3})}`,textColorWarning:l,colorWarning:Ae(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:ao(l,{alpha:.7}),closeIconColorHoverWarning:ao(l,{alpha:.7}),closeIconColorPressedWarning:ao(l,{alpha:.7}),closeColorHoverWarning:Ae(l,{alpha:.16}),closeColorPressedWarning:Ae(l,{alpha:.11}),borderError:`1px solid ${Ae(s,{alpha:.3})}`,textColorError:s,colorError:Ae(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:ao(s,{alpha:.7}),closeIconColorHoverError:ao(s,{alpha:.7}),closeIconColorPressedError:ao(s,{alpha:.7}),closeColorHoverError:Ae(s,{alpha:.16}),closeColorPressedError:Ae(s,{alpha:.12})})}};function DA(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:u,borderColor:d,opacityDisabled:c,tagColor:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:v,fontSizeMini:b,fontSizeTiny:x,fontSizeSmall:E,fontSizeMedium:y,heightMini:k,heightTiny:F,heightSmall:C,heightMedium:A,closeColorHover:P,closeColorPressed:B,buttonColor2Hover:W,buttonColor2Pressed:N,fontWeightStrong:K}=e;return Object.assign(Object.assign({},SC),{closeBorderRadius:v,heightTiny:k,heightSmall:F,heightMedium:C,heightLarge:A,borderRadius:v,opacityDisabled:c,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:E,fontSizeLarge:y,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:W,colorPressedCheckable:N,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:P,closeColorPressed:B,borderPrimary:`1px solid ${Ae(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Ae(r,{alpha:.12}),colorBorderedPrimary:Ae(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:Ae(r,{alpha:.12}),closeColorPressedPrimary:Ae(r,{alpha:.18}),borderInfo:`1px solid ${Ae(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ae(i,{alpha:.12}),colorBorderedInfo:Ae(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Ae(i,{alpha:.12}),closeColorPressedInfo:Ae(i,{alpha:.18}),borderSuccess:`1px solid ${Ae(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Ae(a,{alpha:.12}),colorBorderedSuccess:Ae(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:Ae(a,{alpha:.12}),closeColorPressedSuccess:Ae(a,{alpha:.18}),borderWarning:`1px solid ${Ae(l,{alpha:.35})}`,textColorWarning:l,colorWarning:Ae(l,{alpha:.15}),colorBorderedWarning:Ae(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:Ae(l,{alpha:.12}),closeColorPressedWarning:Ae(l,{alpha:.18}),borderError:`1px solid ${Ae(s,{alpha:.23})}`,textColorError:s,colorError:Ae(s,{alpha:.1}),colorBorderedError:Ae(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:Ae(s,{alpha:.12}),closeColorPressedError:Ae(s,{alpha:.18})})}const Hp={name:"Tag",common:Ve,self:DA},TA={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},IA=D("tag",` + --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[Q("strong",` + font-weight: var(--n-font-weight-strong); + `),Z("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),Z("icon",` + display: flex; + margin: 0 4px 0 0; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + font-size: var(--n-avatar-size-override); + `),Z("avatar",` + display: flex; + margin: 0 6px 0 0; + `),Z("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),Q("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[Z("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),Z("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),Q("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),Q("icon, avatar",[Q("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),Q("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),Q("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[Ft("disabled",[V("&:hover","background-color: var(--n-color-hover-checkable);",[Ft("checked","color: var(--n-text-color-hover-checkable);")]),V("&:active","background-color: var(--n-color-pressed-checkable);",[Ft("checked","color: var(--n-text-color-pressed-checkable);")])]),Q("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[Ft("disabled",[V("&:hover","background-color: var(--n-color-checked-hover);"),V("&:active","background-color: var(--n-color-checked-pressed);")])])])]),zA=Object.assign(Object.assign(Object.assign({},ze.props),TA),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),kC="n-tag",Tu=xe({name:"Tag",props:zA,setup(e){const t=M(null),{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=nt(e),a=ze("Tag","-tag",IA,Hp,e,n);et(kC,{roundRef:De(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:f,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":v}=e;g&&g(!f),v&&v(!f),p&&p(!f)}}function s(f){if(e.triggerClickOnClose||f.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&Pe(p,f)}}const u={setTextContent(f){const{value:p}=t;p&&(p.textContent=f)}},d=qt("Tag",i,n),c=T(()=>{const{type:f,size:p,color:{color:g,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:x,closeMargin:E,borderRadius:y,opacityDisabled:k,textColorCheckable:F,textColorHoverCheckable:C,textColorPressedCheckable:A,textColorChecked:P,colorCheckable:B,colorHoverCheckable:W,colorPressedCheckable:N,colorChecked:K,colorCheckedHover:H,colorCheckedPressed:I,closeBorderRadius:O,fontWeightStrong:R,[ke("colorBordered",f)]:z,[ke("closeSize",p)]:_,[ke("closeIconSize",p)]:oe,[ke("fontSize",p)]:G,[ke("height",p)]:j,[ke("color",f)]:ue,[ke("textColor",f)]:he,[ke("border",f)]:_e,[ke("closeIconColor",f)]:pe,[ke("closeIconColorHover",f)]:fe,[ke("closeIconColorPressed",f)]:Ce,[ke("closeColorHover",f)]:Y,[ke("closeColorPressed",f)]:q}}=a.value,Se=Ro(E);return{"--n-font-weight-strong":R,"--n-avatar-size-override":`calc(${j} - 8px)`,"--n-bezier":b,"--n-border-radius":y,"--n-border":_e,"--n-close-icon-size":oe,"--n-close-color-pressed":q,"--n-close-color-hover":Y,"--n-close-border-radius":O,"--n-close-icon-color":pe,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":Ce,"--n-close-icon-color-disabled":pe,"--n-close-margin-top":Se.top,"--n-close-margin-right":Se.right,"--n-close-margin-bottom":Se.bottom,"--n-close-margin-left":Se.left,"--n-close-size":_,"--n-color":g||(o.value?z:ue),"--n-color-checkable":B,"--n-color-checked":K,"--n-color-checked-hover":H,"--n-color-checked-pressed":I,"--n-color-hover-checkable":W,"--n-color-pressed-checkable":N,"--n-font-size":G,"--n-height":j,"--n-opacity-disabled":k,"--n-padding":x,"--n-text-color":v||he,"--n-text-color-checkable":F,"--n-text-color-checked":P,"--n-text-color-hover-checkable":C,"--n-text-color-pressed-checkable":A}}),h=r?vt("tag",T(()=>{let f="";const{type:p,size:g,color:{color:v,textColor:b}={}}=e;return f+=p[0],f+=g[0],v&&(f+=`a${Ma(v)}`),b&&(f+=`b${Ma(b)}`),o.value&&(f+="c"),f}),c,e):void 0;return Object.assign(Object.assign({},u),{rtlEnabled:d,mergedClsPrefix:n,contentRef:t,mergedBordered:o,handleClick:l,handleCloseClick:s,cssVars:r?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:n,closable:r,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const u=bt(s.avatar,c=>c&&m("div",{class:`${o}-tag__avatar`},c)),d=bt(s.icon,c=>c&&m("div",{class:`${o}-tag__icon`},c));return m("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:n,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:a,[`${o}-tag--avatar`]:u,[`${o}-tag--icon`]:d,[`${o}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||u,m("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?m(li,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?m("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),OA=D("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[V(">",[Z("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[V("&:hover",` + color: var(--n-clear-color-hover)!important; + `),V("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),Z("placeholder",` + display: flex; + `),Z("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[en({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),ph=xe({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return kr("-base-clear",OA,De(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-base-clear`},m(Yi,null,{default:()=>{var t,o;return this.show?m("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},wo(this.$slots.icon,()=>[m(Ut,{clsPrefix:e},{default:()=>m(DM,null)})])):m("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),_C=xe({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return m(_r,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?m(ph,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>m(Ut,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>wo(t.default,()=>[m(uC,null)])})}):null})}}}),FC={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function LA(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,borderColor:h,iconColor:f,iconColorDisabled:p,clearColor:g,clearColorHover:v,clearColorPressed:b,placeholderColor:x,placeholderColorDisabled:E,fontSizeTiny:y,fontSizeSmall:k,fontSizeMedium:F,fontSizeLarge:C,heightTiny:A,heightSmall:P,heightMedium:B,heightLarge:W}=e;return Object.assign(Object.assign({},FC),{fontSizeTiny:y,fontSizeSmall:k,fontSizeMedium:F,fontSizeLarge:C,heightTiny:A,heightSmall:P,heightMedium:B,heightLarge:W,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:x,placeholderColorDisabled:E,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Ae(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Ae(a,{alpha:.2})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Ae(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Ae(s,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Ae(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Ae(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:g,clearColorHover:v,clearColorPressed:b})}const Nd={name:"InternalSelection",common:Ve,peers:{Popover:si},self:LA},Np={name:"InternalSelection",common:Ne,peers:{Popover:Ji},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,iconColor:h,iconColorDisabled:f,clearColor:p,clearColorHover:g,clearColorPressed:v,placeholderColor:b,placeholderColorDisabled:x,fontSizeTiny:E,fontSizeSmall:y,fontSizeMedium:k,fontSizeLarge:F,heightTiny:C,heightSmall:A,heightMedium:P,heightLarge:B}=e;return Object.assign(Object.assign({},FC),{fontSizeTiny:E,fontSizeSmall:y,fontSizeMedium:k,fontSizeLarge:F,heightTiny:C,heightSmall:A,heightMedium:P,heightLarge:B,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:b,placeholderColorDisabled:x,color:r,colorDisabled:i,colorActive:Ae(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Ae(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Ae(a,{alpha:.4})}`,caretColor:a,arrowColor:h,arrowColorDisabled:f,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Ae(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Ae(s,{alpha:.4})}`,colorActiveWarning:Ae(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Ae(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Ae(d,{alpha:.4})}`,colorActiveError:Ae(d,{alpha:.1}),caretColorError:d,clearColor:p,clearColorHover:g,clearColorPressed:v})}},HA=V([D("base-selection",` + --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); + --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); + position: relative; + z-index: auto; + box-shadow: none; + width: 100%; + max-width: 100%; + display: inline-block; + vertical-align: bottom; + border-radius: var(--n-border-radius); + min-height: var(--n-height); + line-height: 1.5; + font-size: var(--n-font-size); + `,[D("base-loading",` + color: var(--n-loading-color); + `),D("base-selection-tags","min-height: var(--n-height);"),Z("border, state-border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border: var(--n-border); + border-radius: inherit; + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),Z("state-border",` + z-index: 1; + border-color: #0000; + `),D("base-suffix",` + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 10px; + `,[Z("arrow",` + font-size: var(--n-arrow-size); + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + `)]),D("base-selection-overlay",` + display: flex; + align-items: center; + white-space: nowrap; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + padding: var(--n-padding-single); + transition: color .3s var(--n-bezier); + `,[Z("wrapper",` + flex-basis: 0; + flex-grow: 1; + overflow: hidden; + text-overflow: ellipsis; + `)]),D("base-selection-placeholder",` + color: var(--n-placeholder-color); + `,[Z("inner",` + max-width: 100%; + overflow: hidden; + `)]),D("base-selection-tags",` + cursor: pointer; + outline: none; + box-sizing: border-box; + position: relative; + z-index: auto; + display: flex; + padding: var(--n-padding-multiple); + flex-wrap: wrap; + align-items: center; + width: 100%; + vertical-align: bottom; + background-color: var(--n-color); + border-radius: inherit; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `),D("base-selection-label",` + height: var(--n-height); + display: inline-flex; + width: 100%; + vertical-align: bottom; + cursor: pointer; + outline: none; + z-index: auto; + box-sizing: border-box; + position: relative; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: inherit; + background-color: var(--n-color); + align-items: center; + `,[D("base-selection-input",` + font-size: inherit; + line-height: inherit; + outline: none; + cursor: pointer; + box-sizing: border-box; + border:none; + width: 100%; + padding: var(--n-padding-single); + background-color: #0000; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + caret-color: var(--n-caret-color); + `,[Z("content",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `)]),Z("render-label",` + color: var(--n-text-color); + `)]),Ft("disabled",[V("&:hover",[Z("state-border",` + box-shadow: var(--n-box-shadow-hover); + border: var(--n-border-hover); + `)]),Q("focus",[Z("state-border",` + box-shadow: var(--n-box-shadow-focus); + border: var(--n-border-focus); + `)]),Q("active",[Z("state-border",` + box-shadow: var(--n-box-shadow-active); + border: var(--n-border-active); + `),D("base-selection-label","background-color: var(--n-color-active);"),D("base-selection-tags","background-color: var(--n-color-active);")])]),Q("disabled","cursor: not-allowed;",[Z("arrow",` + color: var(--n-arrow-color-disabled); + `),D("base-selection-label",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[D("base-selection-input",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + `),Z("render-label",` + color: var(--n-text-color-disabled); + `)]),D("base-selection-tags",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `),D("base-selection-placeholder",` + cursor: not-allowed; + color: var(--n-placeholder-color-disabled); + `)]),D("base-selection-input-tag",` + height: calc(var(--n-height) - 6px); + line-height: calc(var(--n-height) - 6px); + outline: none; + display: none; + position: relative; + margin-bottom: 3px; + max-width: 100%; + vertical-align: bottom; + `,[Z("input",` + font-size: inherit; + font-family: inherit; + min-width: 1px; + padding: 0; + background-color: #0000; + outline: none; + border: none; + max-width: 100%; + overflow: hidden; + width: 1em; + line-height: inherit; + cursor: pointer; + color: var(--n-text-color); + caret-color: var(--n-caret-color); + `),Z("mirror",` + position: absolute; + left: 0; + top: 0; + white-space: pre; + visibility: hidden; + user-select: none; + -webkit-user-select: none; + opacity: 0; + `)]),["warning","error"].map(e=>Q(`${e}-status`,[Z("state-border",`border: var(--n-border-${e});`),Ft("disabled",[V("&:hover",[Z("state-border",` + box-shadow: var(--n-box-shadow-hover-${e}); + border: var(--n-border-hover-${e}); + `)]),Q("active",[Z("state-border",` + box-shadow: var(--n-box-shadow-active-${e}); + border: var(--n-border-active-${e}); + `),D("base-selection-label",`background-color: var(--n-color-active-${e});`),D("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),Q("focus",[Z("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),D("base-selection-popover",` + margin-bottom: -3px; + display: flex; + flex-wrap: wrap; + margin-right: -8px; + `),D("base-selection-tag-wrapper",` + max-width: 100%; + display: inline-flex; + padding: 0 7px 3px 0; + `,[V("&:last-child","padding-right: 0;"),D("tag",` + font-size: 14px; + max-width: 100%; + `,[Z("content",` + line-height: 1.25; + text-overflow: ellipsis; + overflow: hidden; + `)])])]),NA=xe({name:"InternalSelection",props:Object.assign(Object.assign({},ze.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=nt(e),n=qt("InternalSelection",o,t),r=M(null),i=M(null),a=M(null),l=M(null),s=M(null),u=M(null),d=M(null),c=M(null),h=M(null),f=M(null),p=M(!1),g=M(!1),v=M(!1),b=ze("InternalSelection","-internal-selection",HA,Nd,e,De(e,"clsPrefix")),x=T(()=>e.clearable&&!e.disabled&&(v.value||e.active)),E=T(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),y=T(()=>{const X=e.selectedOption;if(X)return X[e.labelField]}),k=T(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function F(){var X;const{value:se}=r;if(se){const{value:ve}=i;ve&&(ve.style.width=`${se.offsetWidth}px`,e.maxTagCount!=="responsive"&&((X=h.value)===null||X===void 0||X.sync({showAllItemsBeforeCalculate:!1})))}}function C(){const{value:X}=f;X&&(X.style.display="none")}function A(){const{value:X}=f;X&&(X.style.display="inline-block")}at(De(e,"active"),X=>{X||C()}),at(De(e,"pattern"),()=>{e.multiple&&Rt(F)});function P(X){const{onFocus:se}=e;se&&se(X)}function B(X){const{onBlur:se}=e;se&&se(X)}function W(X){const{onDeleteOption:se}=e;se&&se(X)}function N(X){const{onClear:se}=e;se&&se(X)}function K(X){const{onPatternInput:se}=e;se&&se(X)}function H(X){var se;(!X.relatedTarget||!(!((se=a.value)===null||se===void 0)&&se.contains(X.relatedTarget)))&&P(X)}function I(X){var se;!((se=a.value)===null||se===void 0)&&se.contains(X.relatedTarget)||B(X)}function O(X){N(X)}function R(){v.value=!0}function z(){v.value=!1}function _(X){!e.active||!e.filterable||X.target!==i.value&&X.preventDefault()}function oe(X){W(X)}const G=M(!1);function j(X){if(X.key==="Backspace"&&!G.value&&!e.pattern.length){const{selectedOptions:se}=e;se!=null&&se.length&&oe(se[se.length-1])}}let ue=null;function he(X){const{value:se}=r;if(se){const ve=X.target.value;se.textContent=ve,F()}e.ignoreComposition&&G.value?ue=X:K(X)}function _e(){G.value=!0}function pe(){G.value=!1,e.ignoreComposition&&K(ue),ue=null}function fe(X){var se;g.value=!0,(se=e.onPatternFocus)===null||se===void 0||se.call(e,X)}function Ce(X){var se;g.value=!1,(se=e.onPatternBlur)===null||se===void 0||se.call(e,X)}function Y(){var X,se;if(e.filterable)g.value=!1,(X=u.value)===null||X===void 0||X.blur(),(se=i.value)===null||se===void 0||se.blur();else if(e.multiple){const{value:ve}=l;ve==null||ve.blur()}else{const{value:ve}=s;ve==null||ve.blur()}}function q(){var X,se,ve;e.filterable?(g.value=!1,(X=u.value)===null||X===void 0||X.focus()):e.multiple?(se=l.value)===null||se===void 0||se.focus():(ve=s.value)===null||ve===void 0||ve.focus()}function Se(){const{value:X}=i;X&&(A(),X.focus())}function je(){const{value:X}=i;X&&X.blur()}function U(X){const{value:se}=d;se&&se.setTextContent(`+${X}`)}function te(){const{value:X}=c;return X}function ge(){return i.value}let we=null;function le(){we!==null&&window.clearTimeout(we)}function re(){e.active||(le(),we=window.setTimeout(()=>{k.value&&(p.value=!0)},100))}function ce(){le()}function ee(X){X||(le(),p.value=!1)}at(k,X=>{X||(p.value=!1)}),ut(()=>{kt(()=>{const X=u.value;X&&(e.disabled?X.removeAttribute("tabindex"):X.tabIndex=g.value?-1:0)})}),ty(a,e.onResize);const{inlineThemeDisabled:ie}=e,de=T(()=>{const{size:X}=e,{common:{cubicBezierEaseInOut:se},self:{borderRadius:ve,color:Te,placeholderColor:Ke,textColor:Qe,paddingSingle:st,paddingMultiple:Xe,caretColor:pt,colorDisabled:Ye,textColorDisabled:Le,placeholderColorDisabled:tt,colorActive:J,boxShadowFocus:me,boxShadowActive:Me,boxShadowHover:He,border:We,borderFocus:Ge,borderHover:qe,borderActive:ot,arrowColor:yt,arrowColorDisabled:Bt,loadingColor:_t,colorActiveWarning:xo,boxShadowFocusWarning:Ao,boxShadowActiveWarning:Bo,boxShadowHoverWarning:No,borderWarning:Vo,borderFocusWarning:un,borderHoverWarning:dn,borderActiveWarning:be,colorActiveError:Be,boxShadowFocusError:rt,boxShadowActiveError:wt,boxShadowHoverError:zt,borderError:Mt,borderFocusError:Yt,borderHoverError:no,borderActiveError:En,clearColor:nr,clearColorHover:rr,clearColorPressed:di,clearSize:Qa,arrowSize:Ja,[ke("height",X)]:el,[ke("fontSize",X)]:tl}}=b.value,Rr=Ro(st),$r=Ro(Xe);return{"--n-bezier":se,"--n-border":We,"--n-border-active":ot,"--n-border-focus":Ge,"--n-border-hover":qe,"--n-border-radius":ve,"--n-box-shadow-active":Me,"--n-box-shadow-focus":me,"--n-box-shadow-hover":He,"--n-caret-color":pt,"--n-color":Te,"--n-color-active":J,"--n-color-disabled":Ye,"--n-font-size":tl,"--n-height":el,"--n-padding-single-top":Rr.top,"--n-padding-multiple-top":$r.top,"--n-padding-single-right":Rr.right,"--n-padding-multiple-right":$r.right,"--n-padding-single-left":Rr.left,"--n-padding-multiple-left":$r.left,"--n-padding-single-bottom":Rr.bottom,"--n-padding-multiple-bottom":$r.bottom,"--n-placeholder-color":Ke,"--n-placeholder-color-disabled":tt,"--n-text-color":Qe,"--n-text-color-disabled":Le,"--n-arrow-color":yt,"--n-arrow-color-disabled":Bt,"--n-loading-color":_t,"--n-color-active-warning":xo,"--n-box-shadow-focus-warning":Ao,"--n-box-shadow-active-warning":Bo,"--n-box-shadow-hover-warning":No,"--n-border-warning":Vo,"--n-border-focus-warning":un,"--n-border-hover-warning":dn,"--n-border-active-warning":be,"--n-color-active-error":Be,"--n-box-shadow-focus-error":rt,"--n-box-shadow-active-error":wt,"--n-box-shadow-hover-error":zt,"--n-border-error":Mt,"--n-border-focus-error":Yt,"--n-border-hover-error":no,"--n-border-active-error":En,"--n-clear-size":Qa,"--n-clear-color":nr,"--n-clear-color-hover":rr,"--n-clear-color-pressed":di,"--n-arrow-size":Ja}}),ae=ie?vt("internal-selection",T(()=>e.size[0]),de,e):void 0;return{mergedTheme:b,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:n,patternInputFocused:g,filterablePlaceholder:E,label:y,selected:k,showTagsPanel:p,isComposing:G,counterRef:d,counterWrapperRef:c,patternInputMirrorRef:r,patternInputRef:i,selfRef:a,multipleElRef:l,singleElRef:s,patternInputWrapperRef:u,overflowRef:h,inputTagElRef:f,handleMouseDown:_,handleFocusin:H,handleClear:O,handleMouseEnter:R,handleMouseLeave:z,handleDeleteOption:oe,handlePatternKeyDown:j,handlePatternInputInput:he,handlePatternInputBlur:Ce,handlePatternInputFocus:fe,handleMouseEnterCounter:re,handleMouseLeaveCounter:ce,handleFocusout:I,handleCompositionEnd:pe,handleCompositionStart:_e,onPopoverUpdateShow:ee,focus:q,focusInput:Se,blur:Y,blurInput:je,updateCounter:U,getCounter:te,getTail:ge,renderLabel:e.renderLabel,cssVars:ie?void 0:de,themeClass:ae==null?void 0:ae.themeClass,onRender:ae==null?void 0:ae.onRender}},render(){const{status:e,multiple:t,size:o,disabled:n,filterable:r,maxTagCount:i,bordered:a,clsPrefix:l,ellipsisTagPopoverProps:s,onRender:u,renderTag:d,renderLabel:c}=this;u==null||u();const h=i==="responsive",f=typeof i=="number",p=h||f,g=m(Yf,null,{default:()=>m(_C,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,x;return(x=(b=this.$slots).arrow)===null||x===void 0?void 0:x.call(b)}})});let v;if(t){const{labelField:b}=this,x=K=>m("div",{class:`${l}-base-selection-tag-wrapper`,key:K.value},d?d({option:K,handleClose:()=>{this.handleDeleteOption(K)}}):m(Tu,{size:o,closable:!K.disabled,disabled:n,onClose:()=>{this.handleDeleteOption(K)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>c?c(K,!0):Jt(K[b],K,!0)})),E=()=>(f?this.selectedOptions.slice(0,i):this.selectedOptions).map(x),y=r?m("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},m("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),m("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,k=h?()=>m("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},m(Tu,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let F;if(f){const K=this.selectedOptions.length-i;K>0&&(F=m("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},m(Tu,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${K}`})))}const C=h?r?m(qg,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:E,counter:k,tail:()=>y}):m(qg,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:E,counter:k}):f&&F?E().concat(F):E(),A=p?()=>m("div",{class:`${l}-base-selection-popover`},h?E():this.selectedOptions.map(x)):void 0,P=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,W=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},m("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,N=r?m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},C,h?null:y,g):m("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:n?void 0:0},C,g);v=m(ft,null,p?m(Ka,Object.assign({},P,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>N,default:A}):N,W)}else if(r){const b=this.pattern||this.isComposing,x=this.active?!b:!this.selected,E=this.active?!1:this.selected;v=m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:qf(this.label)},m("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),E?m("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},m("div",{class:`${l}-base-selection-overlay__wrapper`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Jt(this.label,this.selectedOption,!0))):null,x?m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},m("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else v=m("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?m("div",{class:`${l}-base-selection-input`,title:qf(this.label),key:"input"},m("div",{class:`${l}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Jt(this.label,this.selectedOption,!0))):m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},m("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),g);return m("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},v,a?m("div",{class:`${l}-base-selection__border`}):null,a?m("div",{class:`${l}-base-selection__state-border`}):null)}}),X0=xe({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=M(null),o=M(e.value),n=M(e.value),r=M("up"),i=M(!1),a=T(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${r.value}-scroll`:null),l=T(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${r.value}-scroll`:null);at(De(e,"value"),(d,c)=>{o.value=c,n.value=d,Rt(s)});function s(){const d=e.newOriginalNumber,c=e.oldOriginalNumber;c===void 0||d===void 0||(d>c?u("up"):c>d&&u("down"))}function u(d){r.value=d,i.value=!1,Rt(()=>{var c;(c=t.value)===null||c===void 0||c.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return m("span",{ref:t,class:`${d}-base-slot-machine-number`},o.value!==null?m("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},o.value):null,m("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},m("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},n.value)),o.value!==null?m("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},o.value):null)}}}),{cubicBezierEaseInOut:Br}=sn;function RC({duration:e=".2s",delay:t=".1s"}={}){return[V("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),V("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + opacity: 0!important; + margin-left: 0!important; + margin-right: 0!important; + `),V("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${Br}, + max-width ${e} ${Br} ${t}, + margin-left ${e} ${Br} ${t}, + margin-right ${e} ${Br} ${t}; + `),V("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${Br} ${t}, + max-width ${e} ${Br}, + margin-left ${e} ${Br}, + margin-right ${e} ${Br}; + `)]}const{cubicBezierEaseOut:ca}=sn;function VA({duration:e=".2s"}={}){return[V("&.fade-up-width-expand-transition-leave-active",{transition:` + opacity ${e} ${ca}, + max-width ${e} ${ca}, + transform ${e} ${ca} + `}),V("&.fade-up-width-expand-transition-enter-active",{transition:` + opacity ${e} ${ca}, + max-width ${e} ${ca}, + transform ${e} ${ca} + `}),V("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),V("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),V("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),V("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const jA=V([V("@keyframes n-base-slot-machine-fade-up-in",` + from { + transform: translateY(60%); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } + `),V("@keyframes n-base-slot-machine-fade-down-in",` + from { + transform: translateY(-60%); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } + `),V("@keyframes n-base-slot-machine-fade-up-out",` + from { + transform: translateY(0%); + opacity: 1; + } + to { + transform: translateY(-60%); + opacity: 0; + } + `),V("@keyframes n-base-slot-machine-fade-down-out",` + from { + transform: translateY(0%); + opacity: 1; + } + to { + transform: translateY(60%); + opacity: 0; + } + `),D("base-slot-machine",` + overflow: hidden; + white-space: nowrap; + display: inline-block; + height: 18px; + line-height: 18px; + `,[D("base-slot-machine-number",` + display: inline-block; + position: relative; + height: 18px; + width: .6em; + max-width: .6em; + `,[VA({duration:".2s"}),RC({duration:".2s",delay:"0s"}),D("base-slot-machine-old-number",` + display: inline-block; + opacity: 0; + position: absolute; + left: 0; + right: 0; + `,[Q("top",{transform:"translateY(-100%)"}),Q("bottom",{transform:"translateY(100%)"}),Q("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),Q("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),D("base-slot-machine-current-number",` + display: inline-block; + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 1; + transform: translateY(0); + width: .6em; + `,[Q("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),Q("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),Z("inner",` + display: inline-block; + position: absolute; + right: 0; + top: 0; + width: .6em; + `,[Q("not-number",` + right: unset; + left: 0; + `)])])])])]),WA=xe({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){kr("-base-slot-machine",jA,De(e,"clsPrefix"));const t=M(),o=M(),n=T(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const r=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)r.push(i%10),i/=10,i=Math.floor(i);return r.reverse(),r});return at(De(e,"value"),(r,i)=>{typeof r=="string"?(o.value=void 0,t.value=void 0):typeof i=="string"?(o.value=r,t.value=void 0):(o.value=r,t.value=i)}),()=>{const{value:r,clsPrefix:i}=e;return typeof r=="number"?m("span",{class:`${i}-base-slot-machine`},m(ip,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>n.value.map((a,l)=>m(X0,{clsPrefix:i,key:n.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:o.value,value:a}))}),m(Ds,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max<r?m(X0,{clsPrefix:i,value:"+"}):null})):m("span",{class:`${i}-base-slot-machine`},r)}}}),$C={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},UA={name:"Alert",common:Ne,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,dividerColor:r,inputColor:i,textColor1:a,textColor2:l,closeColorHover:s,closeColorPressed:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,infoColorSuppl:f,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:v,fontSize:b}=e;return Object.assign(Object.assign({},$C),{fontSize:b,lineHeight:t,titleFontWeight:n,borderRadius:o,border:`1px solid ${r}`,color:i,titleTextColor:a,iconColor:l,contentTextColor:l,closeBorderRadius:o,closeColorHover:s,closeColorPressed:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,borderInfo:`1px solid ${Ae(f,{alpha:.35})}`,colorInfo:Ae(f,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:f,contentTextColorInfo:l,closeColorHoverInfo:s,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:c,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Ae(p,{alpha:.35})}`,colorSuccess:Ae(p,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:p,contentTextColorSuccess:l,closeColorHoverSuccess:s,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:c,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Ae(g,{alpha:.35})}`,colorWarning:Ae(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:l,closeColorHoverWarning:s,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:c,closeIconColorPressedWarning:h,borderError:`1px solid ${Ae(v,{alpha:.35})}`,colorError:Ae(v,{alpha:.25}),titleTextColorError:a,iconColorError:v,contentTextColorError:l,closeColorHoverError:s,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:c,closeIconColorPressedError:h})}};function KA(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,baseColor:r,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:u,closeColorPressed:d,closeIconColor:c,closeIconColorHover:h,closeIconColorPressed:f,infoColor:p,successColor:g,warningColor:v,errorColor:b,fontSize:x}=e;return Object.assign(Object.assign({},$C),{fontSize:x,lineHeight:t,titleFontWeight:n,borderRadius:o,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:o,closeColorHover:u,closeColorPressed:d,closeIconColor:c,closeIconColorHover:h,closeIconColorPressed:f,borderInfo:`1px solid ${Ue(r,Ae(p,{alpha:.25}))}`,colorInfo:Ue(r,Ae(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:u,closeColorPressedInfo:d,closeIconColorInfo:c,closeIconColorHoverInfo:h,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Ue(r,Ae(g,{alpha:.25}))}`,colorSuccess:Ue(r,Ae(g,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:s,closeColorHoverSuccess:u,closeColorPressedSuccess:d,closeIconColorSuccess:c,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Ue(r,Ae(v,{alpha:.33}))}`,colorWarning:Ue(r,Ae(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:s,closeColorHoverWarning:u,closeColorPressedWarning:d,closeIconColorWarning:c,closeIconColorHoverWarning:h,closeIconColorPressedWarning:f,borderError:`1px solid ${Ue(r,Ae(b,{alpha:.25}))}`,colorError:Ue(r,Ae(b,{alpha:.08})),titleTextColorError:l,iconColorError:b,contentTextColorError:s,closeColorHoverError:u,closeColorPressedError:d,closeIconColorError:c,closeIconColorHoverError:h,closeIconColorPressedError:f})}const PC={name:"Alert",common:Ve,self:KA},{cubicBezierEaseInOut:Ln,cubicBezierEaseOut:GA,cubicBezierEaseIn:qA}=sn;function Vp({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:n="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",u=l?"enter":"leave";return[V(`&.fade-in-height-expand-transition-${u}-from, + &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),V(`&.fade-in-height-expand-transition-${u}-to, + &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),V(`&.fade-in-height-expand-transition-${u}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Ln} ${n}, + opacity ${t} ${GA} ${n}, + margin-top ${t} ${Ln} ${n}, + margin-bottom ${t} ${Ln} ${n}, + padding-top ${t} ${Ln} ${n}, + padding-bottom ${t} ${Ln} ${n} + ${o?`,${o}`:""} + `),V(`&.fade-in-height-expand-transition-${s}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Ln}, + opacity ${t} ${qA}, + margin-top ${t} ${Ln}, + margin-bottom ${t} ${Ln}, + padding-top ${t} ${Ln}, + padding-bottom ${t} ${Ln} + ${o?`,${o}`:""} + `)]}const ZA=D("alert",` + line-height: var(--n-line-height); + border-radius: var(--n-border-radius); + position: relative; + transition: background-color .3s var(--n-bezier); + background-color: var(--n-color); + text-align: start; + word-break: break-word; +`,[Z("border",` + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + transition: border-color .3s var(--n-bezier); + border: var(--n-border); + pointer-events: none; + `),Q("closable",[D("alert-body",[Z("title",` + padding-right: 24px; + `)])]),Z("icon",{color:"var(--n-icon-color)"}),D("alert-body",{padding:"var(--n-padding)"},[Z("title",{color:"var(--n-title-text-color)"}),Z("content",{color:"var(--n-content-text-color)"})]),Vp({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),Z("icon",` + position: absolute; + left: 0; + top: 0; + align-items: center; + justify-content: center; + display: flex; + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + margin: var(--n-icon-margin); + `),Z("close",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + `),Q("show-icon",[D("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),Q("right-adjust",[D("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),D("alert-body",` + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + `,[Z("title",` + transition: color .3s var(--n-bezier); + font-size: 16px; + line-height: 19px; + font-weight: var(--n-title-font-weight); + `,[V("& +",[Z("content",{marginTop:"9px"})])]),Z("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),Z("icon",{transition:"color .3s var(--n-bezier)"})]),XA=Object.assign(Object.assign({},ze.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),YA=xe({name:"Alert",inheritAttrs:!1,props:XA,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=ze("Alert","-alert",ZA,PC,e,t),a=qt("Alert",r,t),l=T(()=>{const{common:{cubicBezierEaseInOut:f},self:p}=i.value,{fontSize:g,borderRadius:v,titleFontWeight:b,lineHeight:x,iconSize:E,iconMargin:y,iconMarginRtl:k,closeIconSize:F,closeBorderRadius:C,closeSize:A,closeMargin:P,closeMarginRtl:B,padding:W}=p,{type:N}=e,{left:K,right:H}=Ro(y);return{"--n-bezier":f,"--n-color":p[ke("color",N)],"--n-close-icon-size":F,"--n-close-border-radius":C,"--n-close-color-hover":p[ke("closeColorHover",N)],"--n-close-color-pressed":p[ke("closeColorPressed",N)],"--n-close-icon-color":p[ke("closeIconColor",N)],"--n-close-icon-color-hover":p[ke("closeIconColorHover",N)],"--n-close-icon-color-pressed":p[ke("closeIconColorPressed",N)],"--n-icon-color":p[ke("iconColor",N)],"--n-border":p[ke("border",N)],"--n-title-text-color":p[ke("titleTextColor",N)],"--n-content-text-color":p[ke("contentTextColor",N)],"--n-line-height":x,"--n-border-radius":v,"--n-font-size":g,"--n-title-font-weight":b,"--n-icon-size":E,"--n-icon-margin":y,"--n-icon-margin-rtl":k,"--n-close-size":A,"--n-close-margin":P,"--n-close-margin-rtl":B,"--n-padding":W,"--n-icon-margin-left":K,"--n-icon-margin-right":H}}),s=n?vt("alert",T(()=>e.type[0]),l,e):void 0,u=M(!0),d=()=>{const{onAfterLeave:f,onAfterHide:p}=e;f&&f(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:o,visible:u,handleCloseClick:()=>{var f;Promise.resolve((f=e.onClose)===null||f===void 0?void 0:f.call(e)).then(p=>{p!==!1&&(u.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m(Ds,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:o}=this,n={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?m("div",Object.assign({},bo(this.$attrs,n)),this.closable&&m(li,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&m("div",{class:`${t}-alert__border`}),this.showIcon&&m("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},wo(o.icon,()=>[m(Ut,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return m(Od,null);case"info":return m(is,null);case"warning":return m(Ld,null);case"error":return m(zd,null);default:return null}}})])),m("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},bt(o.header,r=>{const i=r||this.title;return i?m("div",{class:`${t}-alert-body__title`},i):null}),o.default&&m("div",{class:`${t}-alert-body__content`},o))):null}})}}),QA={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function MC(e){const{borderRadius:t,railColor:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},QA),{borderRadius:t,railColor:o,railColorActive:n,linkColor:Ae(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:n})}const JA={name:"Anchor",common:Ve,self:MC},e9={name:"Anchor",common:Ne,self:MC};function nd(e){return e.type==="group"}function AC(e){return e.type==="ignored"}function qc(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function BC(e,t){return{getIsGroup:nd,getIgnored:AC,getKey(n){return nd(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function t9(e,t,o,n){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(nd(l)){const s=r(l[n]);s.length&&a.push(Object.assign({},l,{[n]:s}))}else{if(AC(l))continue;t(o,l)&&a.push(l)}return a}return r(e)}function o9(e,t,o){const n=new Map;return e.forEach(r=>{nd(r)?r[o].forEach(i=>{n.set(i[t],i)}):n.set(r[t],r)}),n}const n9=wn&&"chrome"in window;wn&&navigator.userAgent.includes("Firefox");const DC=wn&&navigator.userAgent.includes("Safari")&&!n9,TC={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Sn={name:"Input",common:Ne,self(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,borderRadius:h,lineHeight:f,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,heightTiny:x,heightSmall:E,heightMedium:y,heightLarge:k,clearColor:F,clearColorHover:C,clearColorPressed:A,placeholderColor:P,placeholderColorDisabled:B,iconColor:W,iconColorDisabled:N,iconColorHover:K,iconColorPressed:H}=e;return Object.assign(Object.assign({},TC),{countTextColorDisabled:n,countTextColor:o,heightTiny:x,heightSmall:E,heightMedium:y,heightLarge:k,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,lineHeight:f,lineHeightTextarea:f,borderRadius:h,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:P,placeholderColorDisabled:B,color:a,colorDisabled:l,colorFocus:Ae(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Ae(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:Ae(s,{alpha:.1}),borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 8px 0 ${Ae(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,colorFocusError:Ae(d,{alpha:.1}),borderFocusError:`1px solid ${c}`,boxShadowFocusError:`0 0 8px 0 ${Ae(d,{alpha:.3})}`,caretColorError:d,clearColor:F,clearColorHover:C,clearColorPressed:A,iconColor:W,iconColorDisabled:N,iconColorHover:K,iconColorPressed:H,suffixTextColor:t})}};function r9(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:u,warningColorHover:d,errorColor:c,errorColorHover:h,borderRadius:f,lineHeight:p,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:x,heightTiny:E,heightSmall:y,heightMedium:k,heightLarge:F,actionColor:C,clearColor:A,clearColorHover:P,clearColorPressed:B,placeholderColor:W,placeholderColorDisabled:N,iconColor:K,iconColorDisabled:H,iconColorHover:I,iconColorPressed:O}=e;return Object.assign(Object.assign({},TC),{countTextColorDisabled:n,countTextColor:o,heightTiny:E,heightSmall:y,heightMedium:k,heightLarge:F,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:x,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:C,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:r,placeholderColor:W,placeholderColorDisabled:N,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Ae(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:u,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${Ae(u,{alpha:.2})}`,caretColorWarning:u,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${Ae(c,{alpha:.2})}`,caretColorError:c,clearColor:A,clearColorHover:P,clearColorPressed:B,iconColor:K,iconColorDisabled:H,iconColorHover:I,iconColorPressed:O,suffixTextColor:t})}const Xo={name:"Input",common:Ve,self:r9},IC="n-input";function i9(e){let t=0;for(const o of e)t++;return t}function du(e){return e===""||e==null}function a9(e){const t=M(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){r();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function n(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:u,beforeText:d,afterText:c}=a;let h=s.length;if(s.endsWith(c))h=s.length-c.length;else if(s.startsWith(d))h=d.length;else{const f=d[u-1],p=s.indexOf(f,u-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function r(){t.value=null}return at(e,r),{recordCursor:o,restoreCursor:n}}const Y0=xe({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:n,mergedClsPrefixRef:r,countGraphemesRef:i}=Oe(IC),a=T(()=>{const{value:l}=o;return l===null||Array.isArray(l)?0:(i.value||i9)(l)});return()=>{const{value:l}=n,{value:s}=o;return m("span",{class:`${r.value}-input-word-count`},Xf(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),l9=D("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color .3s var(--n-bezier); + font-size: var(--n-font-size); + --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); +`,[Z("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),Z("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),Z("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[V("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),V("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),V("&:-webkit-autofill ~",[Z("placeholder","display: none;")])]),Q("round",[Ft("textarea","border-radius: calc(var(--n-height) / 2);")]),Z("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[V("span",` + width: 100%; + display: inline-block; + `)]),Q("textarea",[Z("placeholder","overflow: visible;")]),Ft("autosize","width: 100%;"),Q("autosize",[Z("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),D("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),Z("input-mirror",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),Z("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[V("&[type=password]::-ms-reveal","display: none;"),V("+",[Z("placeholder",` + display: flex; + align-items: center; + `)])]),Ft("textarea",[Z("placeholder","white-space: nowrap;")]),Z("eye",` + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `),Q("textarea","width: 100%;",[D("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),Q("resizable",[D("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),Z("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + scroll-padding-block-end: var(--n-padding-vertical); + `),Z("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),Q("pair",[Z("input-el, placeholder","text-align: center;"),Z("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[D("icon",` + color: var(--n-icon-color); + `),D("base-icon",` + color: var(--n-icon-color); + `)])]),Q("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[Z("border","border: var(--n-border-disabled);"),Z("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),Z("placeholder","color: var(--n-placeholder-color-disabled);"),Z("separator","color: var(--n-text-color-disabled);",[D("icon",` + color: var(--n-icon-color-disabled); + `),D("base-icon",` + color: var(--n-icon-color-disabled); + `)]),D("input-word-count",` + color: var(--n-count-text-color-disabled); + `),Z("suffix, prefix","color: var(--n-text-color-disabled);",[D("icon",` + color: var(--n-icon-color-disabled); + `),D("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),Ft("disabled",[Z("eye",` + color: var(--n-icon-color); + cursor: pointer; + `,[V("&:hover",` + color: var(--n-icon-color-hover); + `),V("&:active",` + color: var(--n-icon-color-pressed); + `)]),V("&:hover",[Z("state-border","border: var(--n-border-hover);")]),Q("focus","background-color: var(--n-color-focus);",[Z("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),Z("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),Z("state-border",` + border-color: #0000; + z-index: 1; + `),Z("prefix","margin-right: 4px;"),Z("suffix",` + margin-left: 4px; + `),Z("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[D("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),D("base-clear",` + font-size: var(--n-icon-size); + `,[Z("placeholder",[D("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),V(">",[D("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),D("base-icon",` + font-size: var(--n-icon-size); + `)]),D("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(e=>Q(`${e}-status`,[Ft("disabled",[D("base-loading",` + color: var(--n-loading-color-${e}) + `),Z("input-el, textarea-el",` + caret-color: var(--n-caret-color-${e}); + `),Z("state-border",` + border: var(--n-border-${e}); + `),V("&:hover",[Z("state-border",` + border: var(--n-border-hover-${e}); + `)]),V("&:focus",` + background-color: var(--n-color-focus-${e}); + `,[Z("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)]),Q("focus",` + background-color: var(--n-color-focus-${e}); + `,[Z("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),s9=D("input",[Q("disabled",[Z("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]),u9=Object.assign(Object.assign({},ze.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),rn=xe({name:"Input",props:u9,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=ze("Input","-input",l9,Xo,e,t);DC&&kr("-input-safari",s9,t);const a=M(null),l=M(null),s=M(null),u=M(null),d=M(null),c=M(null),h=M(null),f=a9(h),p=M(null),{localeRef:g}=Er("Input"),v=M(e.defaultValue),b=De(e,"value"),x=to(b,v),E=Dn(e),{mergedSizeRef:y,mergedDisabledRef:k,mergedStatusRef:F}=E,C=M(!1),A=M(!1),P=M(!1),B=M(!1);let W=null;const N=T(()=>{const{placeholder:be,pair:Be}=e;return Be?Array.isArray(be)?be:be===void 0?["",""]:[be,be]:be===void 0?[g.value.placeholder]:[be]}),K=T(()=>{const{value:be}=P,{value:Be}=x,{value:rt}=N;return!be&&(du(Be)||Array.isArray(Be)&&du(Be[0]))&&rt[0]}),H=T(()=>{const{value:be}=P,{value:Be}=x,{value:rt}=N;return!be&&rt[1]&&(du(Be)||Array.isArray(Be)&&du(Be[1]))}),I=gt(()=>e.internalForceFocus||C.value),O=gt(()=>{if(k.value||e.readonly||!e.clearable||!I.value&&!A.value)return!1;const{value:be}=x,{value:Be}=I;return e.pair?!!(Array.isArray(be)&&(be[0]||be[1]))&&(A.value||Be):!!be&&(A.value||Be)}),R=T(()=>{const{showPasswordOn:be}=e;if(be)return be;if(e.showPasswordToggle)return"click"}),z=M(!1),_=T(()=>{const{textDecoration:be}=e;return be?Array.isArray(be)?be.map(Be=>({textDecoration:Be})):[{textDecoration:be}]:["",""]}),oe=M(void 0),G=()=>{var be,Be;if(e.type==="textarea"){const{autosize:rt}=e;if(rt&&(oe.value=(Be=(be=p.value)===null||be===void 0?void 0:be.$el)===null||Be===void 0?void 0:Be.offsetWidth),!l.value||typeof rt=="boolean")return;const{paddingTop:wt,paddingBottom:zt,lineHeight:Mt}=window.getComputedStyle(l.value),Yt=Number(wt.slice(0,-2)),no=Number(zt.slice(0,-2)),En=Number(Mt.slice(0,-2)),{value:nr}=s;if(!nr)return;if(rt.minRows){const rr=Math.max(rt.minRows,1),di=`${Yt+no+En*rr}px`;nr.style.minHeight=di}if(rt.maxRows){const rr=`${Yt+no+En*rt.maxRows}px`;nr.style.maxHeight=rr}}},j=T(()=>{const{maxlength:be}=e;return be===void 0?void 0:Number(be)});ut(()=>{const{value:be}=x;Array.isArray(be)||yt(be)});const ue=xr().proxy;function he(be,Be){const{onUpdateValue:rt,"onUpdate:value":wt,onInput:zt}=e,{nTriggerFormInput:Mt}=E;rt&&Pe(rt,be,Be),wt&&Pe(wt,be,Be),zt&&Pe(zt,be,Be),v.value=be,Mt()}function _e(be,Be){const{onChange:rt}=e,{nTriggerFormChange:wt}=E;rt&&Pe(rt,be,Be),v.value=be,wt()}function pe(be){const{onBlur:Be}=e,{nTriggerFormBlur:rt}=E;Be&&Pe(Be,be),rt()}function fe(be){const{onFocus:Be}=e,{nTriggerFormFocus:rt}=E;Be&&Pe(Be,be),rt()}function Ce(be){const{onClear:Be}=e;Be&&Pe(Be,be)}function Y(be){const{onInputBlur:Be}=e;Be&&Pe(Be,be)}function q(be){const{onInputFocus:Be}=e;Be&&Pe(Be,be)}function Se(){const{onDeactivate:be}=e;be&&Pe(be)}function je(){const{onActivate:be}=e;be&&Pe(be)}function U(be){const{onClick:Be}=e;Be&&Pe(Be,be)}function te(be){const{onWrapperFocus:Be}=e;Be&&Pe(Be,be)}function ge(be){const{onWrapperBlur:Be}=e;Be&&Pe(Be,be)}function we(){P.value=!0}function le(be){P.value=!1,be.target===c.value?re(be,1):re(be,0)}function re(be,Be=0,rt="input"){const wt=be.target.value;if(yt(wt),be instanceof InputEvent&&!be.isComposing&&(P.value=!1),e.type==="textarea"){const{value:Mt}=p;Mt&&Mt.syncUnifiedContainer()}if(W=wt,P.value)return;f.recordCursor();const zt=ce(wt);if(zt)if(!e.pair)rt==="input"?he(wt,{source:Be}):_e(wt,{source:Be});else{let{value:Mt}=x;Array.isArray(Mt)?Mt=[Mt[0],Mt[1]]:Mt=["",""],Mt[Be]=wt,rt==="input"?he(Mt,{source:Be}):_e(Mt,{source:Be})}ue.$forceUpdate(),zt||Rt(f.restoreCursor)}function ce(be){const{countGraphemes:Be,maxlength:rt,minlength:wt}=e;if(Be){let Mt;if(rt!==void 0&&(Mt===void 0&&(Mt=Be(be)),Mt>Number(rt))||wt!==void 0&&(Mt===void 0&&(Mt=Be(be)),Mt<Number(rt)))return!1}const{allowInput:zt}=e;return typeof zt=="function"?zt(be):!0}function ee(be){Y(be),be.relatedTarget===a.value&&Se(),be.relatedTarget!==null&&(be.relatedTarget===d.value||be.relatedTarget===c.value||be.relatedTarget===l.value)||(B.value=!1),X(be,"blur"),h.value=null}function ie(be,Be){q(be),C.value=!0,B.value=!0,je(),X(be,"focus"),Be===0?h.value=d.value:Be===1?h.value=c.value:Be===2&&(h.value=l.value)}function de(be){e.passivelyActivated&&(ge(be),X(be,"blur"))}function ae(be){e.passivelyActivated&&(C.value=!0,te(be),X(be,"focus"))}function X(be,Be){be.relatedTarget!==null&&(be.relatedTarget===d.value||be.relatedTarget===c.value||be.relatedTarget===l.value||be.relatedTarget===a.value)||(Be==="focus"?(fe(be),C.value=!0):Be==="blur"&&(pe(be),C.value=!1))}function se(be,Be){re(be,Be,"change")}function ve(be){U(be)}function Te(be){Ce(be),Ke()}function Ke(){e.pair?(he(["",""],{source:"clear"}),_e(["",""],{source:"clear"})):(he("",{source:"clear"}),_e("",{source:"clear"}))}function Qe(be){const{onMousedown:Be}=e;Be&&Be(be);const{tagName:rt}=be.target;if(rt!=="INPUT"&&rt!=="TEXTAREA"){if(e.resizable){const{value:wt}=a;if(wt){const{left:zt,top:Mt,width:Yt,height:no}=wt.getBoundingClientRect(),En=14;if(zt+Yt-En<be.clientX&&be.clientX<zt+Yt&&Mt+no-En<be.clientY&&be.clientY<Mt+no)return}}be.preventDefault(),C.value||Me()}}function st(){var be;A.value=!0,e.type==="textarea"&&((be=p.value)===null||be===void 0||be.handleMouseEnterWrapper())}function Xe(){var be;A.value=!1,e.type==="textarea"&&((be=p.value)===null||be===void 0||be.handleMouseLeaveWrapper())}function pt(){k.value||R.value==="click"&&(z.value=!z.value)}function Ye(be){if(k.value)return;be.preventDefault();const Be=wt=>{wt.preventDefault(),xt("mouseup",document,Be)};if(Ct("mouseup",document,Be),R.value!=="mousedown")return;z.value=!0;const rt=()=>{z.value=!1,xt("mouseup",document,rt)};Ct("mouseup",document,rt)}function Le(be){e.onKeyup&&Pe(e.onKeyup,be)}function tt(be){switch(e.onKeydown&&Pe(e.onKeydown,be),be.key){case"Escape":me();break;case"Enter":J(be);break}}function J(be){var Be,rt;if(e.passivelyActivated){const{value:wt}=B;if(wt){e.internalDeactivateOnEnter&&me();return}be.preventDefault(),e.type==="textarea"?(Be=l.value)===null||Be===void 0||Be.focus():(rt=d.value)===null||rt===void 0||rt.focus()}}function me(){e.passivelyActivated&&(B.value=!1,Rt(()=>{var be;(be=a.value)===null||be===void 0||be.focus()}))}function Me(){var be,Be,rt;k.value||(e.passivelyActivated?(be=a.value)===null||be===void 0||be.focus():((Be=l.value)===null||Be===void 0||Be.focus(),(rt=d.value)===null||rt===void 0||rt.focus()))}function He(){var be;!((be=a.value)===null||be===void 0)&&be.contains(document.activeElement)&&document.activeElement.blur()}function We(){var be,Be;(be=l.value)===null||be===void 0||be.select(),(Be=d.value)===null||Be===void 0||Be.select()}function Ge(){k.value||(l.value?l.value.focus():d.value&&d.value.focus())}function qe(){const{value:be}=a;be!=null&&be.contains(document.activeElement)&&be!==document.activeElement&&me()}function ot(be){if(e.type==="textarea"){const{value:Be}=l;Be==null||Be.scrollTo(be)}else{const{value:Be}=d;Be==null||Be.scrollTo(be)}}function yt(be){const{type:Be,pair:rt,autosize:wt}=e;if(!rt&&wt)if(Be==="textarea"){const{value:zt}=s;zt&&(zt.textContent=`${be??""}\r +`)}else{const{value:zt}=u;zt&&(be?zt.textContent=be:zt.innerHTML=" ")}}function Bt(){G()}const _t=M({top:"0"});function xo(be){var Be;const{scrollTop:rt}=be.target;_t.value.top=`${-rt}px`,(Be=p.value)===null||Be===void 0||Be.syncUnifiedContainer()}let Ao=null;kt(()=>{const{autosize:be,type:Be}=e;be&&Be==="textarea"?Ao=at(x,rt=>{!Array.isArray(rt)&&rt!==W&&yt(rt)}):Ao==null||Ao()});let Bo=null;kt(()=>{e.type==="textarea"?Bo=at(x,be=>{var Be;!Array.isArray(be)&&be!==W&&((Be=p.value)===null||Be===void 0||Be.syncUnifiedContainer())}):Bo==null||Bo()}),et(IC,{mergedValueRef:x,maxlengthRef:j,mergedClsPrefixRef:t,countGraphemesRef:De(e,"countGraphemes")});const No={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:P,clear:Ke,focus:Me,blur:He,select:We,deactivate:qe,activate:Ge,scrollTo:ot},Vo=qt("Input",r,t),un=T(()=>{const{value:be}=y,{common:{cubicBezierEaseInOut:Be},self:{color:rt,borderRadius:wt,textColor:zt,caretColor:Mt,caretColorError:Yt,caretColorWarning:no,textDecorationColor:En,border:nr,borderDisabled:rr,borderHover:di,borderFocus:Qa,placeholderColor:Ja,placeholderColorDisabled:el,lineHeightTextarea:tl,colorDisabled:Rr,colorFocus:$r,textColorDisabled:rc,boxShadowFocus:ic,iconSize:ac,colorFocusWarning:lc,boxShadowFocusWarning:sc,borderWarning:uc,borderFocusWarning:dc,borderHoverWarning:cc,colorFocusError:fc,boxShadowFocusError:hc,borderError:pc,borderFocusError:mc,borderHoverError:u6,clearSize:d6,clearColor:c6,clearColorHover:f6,clearColorPressed:h6,iconColor:p6,iconColorDisabled:m6,suffixTextColor:g6,countTextColor:v6,countTextColorDisabled:b6,iconColorHover:x6,iconColorPressed:y6,loadingColor:C6,loadingColorError:w6,loadingColorWarning:S6,[ke("padding",be)]:E6,[ke("fontSize",be)]:k6,[ke("height",be)]:_6}}=i.value,{left:F6,right:R6}=Ro(E6);return{"--n-bezier":Be,"--n-count-text-color":v6,"--n-count-text-color-disabled":b6,"--n-color":rt,"--n-font-size":k6,"--n-border-radius":wt,"--n-height":_6,"--n-padding-left":F6,"--n-padding-right":R6,"--n-text-color":zt,"--n-caret-color":Mt,"--n-text-decoration-color":En,"--n-border":nr,"--n-border-disabled":rr,"--n-border-hover":di,"--n-border-focus":Qa,"--n-placeholder-color":Ja,"--n-placeholder-color-disabled":el,"--n-icon-size":ac,"--n-line-height-textarea":tl,"--n-color-disabled":Rr,"--n-color-focus":$r,"--n-text-color-disabled":rc,"--n-box-shadow-focus":ic,"--n-loading-color":C6,"--n-caret-color-warning":no,"--n-color-focus-warning":lc,"--n-box-shadow-focus-warning":sc,"--n-border-warning":uc,"--n-border-focus-warning":dc,"--n-border-hover-warning":cc,"--n-loading-color-warning":S6,"--n-caret-color-error":Yt,"--n-color-focus-error":fc,"--n-box-shadow-focus-error":hc,"--n-border-error":pc,"--n-border-focus-error":mc,"--n-border-hover-error":u6,"--n-loading-color-error":w6,"--n-clear-color":c6,"--n-clear-size":d6,"--n-clear-color-hover":f6,"--n-clear-color-pressed":h6,"--n-icon-color":p6,"--n-icon-color-hover":x6,"--n-icon-color-pressed":y6,"--n-icon-color-disabled":m6,"--n-suffix-text-color":g6}}),dn=n?vt("input",T(()=>{const{value:be}=y;return be[0]}),un,e):void 0;return Object.assign(Object.assign({},No),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:u,inputEl2Ref:c,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Vo,uncontrolledValue:v,mergedValue:x,passwordVisible:z,mergedPlaceholder:N,showPlaceholder1:K,showPlaceholder2:H,mergedFocus:I,isComposing:P,activated:B,showClearButton:O,mergedSize:y,mergedDisabled:k,textDecorationStyle:_,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:R,placeholderStyle:_t,mergedStatus:F,textAreaScrollContainerWidth:oe,handleTextAreaScroll:xo,handleCompositionStart:we,handleCompositionEnd:le,handleInput:re,handleInputBlur:ee,handleInputFocus:ie,handleWrapperBlur:de,handleWrapperFocus:ae,handleMouseEnter:st,handleMouseLeave:Xe,handleMouseDown:Qe,handleChange:se,handleClick:ve,handleClear:Te,handlePasswordToggleClick:pt,handlePasswordToggleMousedown:Ye,handleWrapperKeydown:tt,handleWrapperKeyup:Le,handleTextAreaMirrorResize:Bt,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:n?void 0:un,themeClass:dn==null?void 0:dn.themeClass,onRender:dn==null?void 0:dn.onRender})},render(){var e,t;const{mergedClsPrefix:o,mergedStatus:n,themeClass:r,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),m("div",{ref:"wrapperElRef",class:[`${o}-input`,r,n&&`${o}-input--${n}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:i==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&i!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},m("div",{class:`${o}-input-wrapper`},bt(s.prefix,u=>u&&m("div",{class:`${o}-input__prefix`},u)),i==="textarea"?m(or,{ref:"textareaScrollbarInstRef",class:`${o}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var u,d;const{textAreaScrollContainerWidth:c}=this,h={width:this.autosize&&c&&`${c}px`};return m(ft,null,m("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,(u=this.inputProps)===null||u===void 0?void 0:u.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:f=>{this.handleInputFocus(f,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?m($n,{onResize:this.handleTextAreaMirrorResize},{default:()=>m("div",{ref:"textareaMirrorElRef",class:`${o}-input__textarea-mirror`,key:"mirror"})}):null)}}):m("div",{class:`${o}-input__input`},m("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:u=>{this.handleInputFocus(u,0)},onInput:u=>{this.handleInput(u,0)},onChange:u=>{this.handleChange(u,0)}})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[0])):null,this.autosize?m("div",{class:`${o}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&bt(s.suffix,u=>u||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?m("div",{class:`${o}-input__suffix`},[bt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&m(ph,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var c,h;return(h=(c=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(c)}})),this.internalLoadingBeforeSuffix?null:u,this.loading!==void 0?m(_C,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?u:null,this.showCount&&this.type!=="textarea"?m(Y0,null,{default:d=>{var c;return(c=s.count)===null||c===void 0?void 0:c.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?m("div",{class:`${o}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?wo(s["password-visible-icon"],()=>[m(Ut,{clsPrefix:o},{default:()=>m($M,null)})]):wo(s["password-invisible-icon"],()=>[m(Ut,{clsPrefix:o},{default:()=>m(PM,null)})])):null]):null)),this.pair?m("span",{class:`${o}-input__separator`},wo(s.separator,()=>[this.separator])):null,this.pair?m("div",{class:`${o}-input-wrapper`},m("div",{class:`${o}-input__input`},m("input",{ref:"inputEl2Ref",type:this.type,class:`${o}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:u=>{this.handleInputFocus(u,1)},onInput:u=>{this.handleInput(u,1)},onChange:u=>{this.handleChange(u,1)}}),this.showPlaceholder2?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[1])):null),bt(s.suffix,u=>(this.clearable||u)&&m("div",{class:`${o}-input__suffix`},[this.clearable&&m(ph,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),u]))):null,this.mergedBordered?m("div",{class:`${o}-input__border`}):null,this.mergedBordered?m("div",{class:`${o}-input__state-border`}):null,this.showCount&&i==="textarea"?m(Y0,null,{default:u=>{var d;const{renderCount:c}=this;return c?c(u):(d=s.count)===null||d===void 0?void 0:d.call(s,u)}}):null)}}),d9=D("input-group",` + display: inline-flex; + width: 100%; + flex-wrap: nowrap; + vertical-align: bottom; +`,[V(">",[D("input",[V("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),V("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + margin-left: -1px!important; + `)]),D("button",[V("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[Z("state-border, border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)]),V("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[Z("state-border, border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])]),V("*",[V("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[V(">",[D("input",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),D("base-selection",[D("base-selection-label",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),D("base-selection-tags",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),Z("box-shadow, border, state-border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)])])]),V("&:not(:first-child)",` + margin-left: -1px!important; + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[V(">",[D("input",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),D("base-selection",[D("base-selection-label",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),D("base-selection-tags",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),Z("box-shadow, border, state-border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])])])])])]),c9={},zC=xe({name:"InputGroup",props:c9,setup(e){const{mergedClsPrefixRef:t}=nt(e);return kr("-input-group",d9,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return m("div",{class:`${e}-input-group`},this.$slots)}}),f9=D("input-group-label",` + position: relative; + user-select: none; + -webkit-user-select: none; + box-sizing: border-box; + padding: 0 12px; + display: inline-block; + border-radius: var(--n-border-radius); + background-color: var(--n-group-label-color); + color: var(--n-group-label-text-color); + font-size: var(--n-font-size); + line-height: var(--n-height); + height: var(--n-height); + flex-shrink: 0; + white-space: nowrap; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[Z("border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-group-label-border); + transition: border-color .3s var(--n-bezier); + `)]),h9=Object.assign(Object.assign({},ze.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),p9=xe({name:"InputGroupLabel",props:h9,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n}=nt(e),r=ze("Input","-input-group-label",f9,Xo,e,o),i=T(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:u,borderRadius:d,groupLabelTextColor:c,lineHeight:h,groupLabelBorder:f,[ke("fontSize",l)]:p,[ke("height",l)]:g}}=r.value;return{"--n-bezier":s,"--n-group-label-color":u,"--n-group-label-border":f,"--n-border-radius":d,"--n-group-label-text-color":c,"--n-font-size":p,"--n-line-height":h,"--n-height":g}}),a=n?vt("input-group-label",T(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:o,mergedBordered:t,cssVars:n?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,o;const{mergedClsPrefix:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${n}-input-group-label`,this.themeClass],style:this.cssVars},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t),this.mergedBordered?m("div",{class:`${n}-input-group-label__border`}):null)}});function OC(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const m9={name:"AutoComplete",common:Ve,peers:{InternalSelectMenu:Ua,Input:Xo},self:OC},g9={name:"AutoComplete",common:Ne,peers:{InternalSelectMenu:Is,Input:Sn},self:OC},v9=wn&&"loading"in document.createElement("img");function b9(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const Zc=new WeakMap,Xc=new WeakMap,Yc=new WeakMap,x9=(e,t,o)=>{if(!e)return()=>{};const n=b9(t),{root:r}=n.options;let i;const a=Zc.get(r);a?i=a:(i=new Map,Zc.set(r,i));let l,s;i.has(n.hash)?(s=i.get(n.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(c=>{c.forEach(h=>{if(h.isIntersecting){const f=Xc.get(h.target),p=Yc.get(h.target);f&&f(),p&&(p.value=!0)}})},n.options),l.observe(e),s=[l,new Set([e])],i.set(n.hash,s));let u=!1;const d=()=>{u||(Xc.delete(e),Yc.delete(e),u=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(n.hash),i.size||Zc.delete(r))};return Xc.set(e,d),Yc.set(e,o),d};function LC(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:u,modalColor:d,popoverColor:c}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:u,color:Ue(n,o),colorModal:Ue(d,o),colorPopover:Ue(c,o)}}const jp={name:"Avatar",common:Ve,self:LC},HC={name:"Avatar",common:Ne,self:LC},y9="n-avatar-group",C9=D("avatar",` + width: var(--n-merged-size); + height: var(--n-merged-size); + color: #FFF; + font-size: var(--n-font-size); + display: inline-flex; + position: relative; + overflow: hidden; + text-align: center; + border: var(--n-border); + border-radius: var(--n-border-radius); + --n-merged-color: var(--n-color); + background-color: var(--n-merged-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[Gi(V("&","--n-merged-color: var(--n-color-modal);")),Ha(V("&","--n-merged-color: var(--n-color-popover);")),V("img",` + width: 100%; + height: 100%; + `),Z("text",` + white-space: nowrap; + display: inline-block; + position: absolute; + left: 50%; + top: 50%; + `),D("icon",` + vertical-align: bottom; + font-size: calc(var(--n-merged-size) - 6px); + `),Z("text","line-height: 1.25")]),w9=Object.assign(Object.assign({},ze.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),S9=xe({name:"Avatar",props:w9,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=M(!1);let r=null;const i=M(null),a=M(null),l=()=>{const{value:x}=i;if(x&&(r===null||r!==x.innerHTML)){r=x.innerHTML;const{value:E}=a;if(E){const{offsetWidth:y,offsetHeight:k}=E,{offsetWidth:F,offsetHeight:C}=x,A=.9,P=Math.min(y/F*A,k/C*A,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${P})`}}},s=Oe(y9,null),u=T(()=>{const{size:x}=e;if(x)return x;const{size:E}=s||{};return E||"medium"}),d=ze("Avatar","-avatar",C9,jp,e,t),c=Oe(kC,null),h=T(()=>{if(s)return!0;const{round:x,circle:E}=e;return x!==void 0||E!==void 0?x||E:c?c.roundRef.value:!1}),f=T(()=>s?!0:e.bordered||!1),p=T(()=>{const x=u.value,E=h.value,y=f.value,{color:k}=e,{self:{borderRadius:F,fontSize:C,color:A,border:P,colorModal:B,colorPopover:W},common:{cubicBezierEaseInOut:N}}=d.value;let K;return typeof x=="number"?K=`${x}px`:K=d.value.self[ke("height",x)],{"--n-font-size":C,"--n-border":y?P:"none","--n-border-radius":E?"50%":F,"--n-color":k||A,"--n-color-modal":k||B,"--n-color-popover":k||W,"--n-bezier":N,"--n-merged-size":`var(--n-avatar-size-override, ${K})`}}),g=o?vt("avatar",T(()=>{const x=u.value,E=h.value,y=f.value,{color:k}=e;let F="";return x&&(typeof x=="number"?F+=`a${x}`:F+=x[0]),E&&(F+="b"),y&&(F+="c"),k&&(F+=Ma(k)),F}),p,e):void 0,v=M(!e.lazy);ut(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const E=kt(()=>{x==null||x(),x=void 0,e.lazy&&(x=x9(a.value,e.intersectionObserverOptions,v))});Xt(()=>{E(),x==null||x()})}}),at(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{n.value=!1});const b=M(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:o?void 0:p,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:n,shouldStartLoading:v,loaded:b,mergedOnError:x=>{if(!v.value)return;n.value=!0;const{onError:E,imgProps:{onError:y}={}}=e;E==null||E(x),y==null||y(x)},mergedOnLoad:x=>{const{onLoad:E,imgProps:{onLoad:y}={}}=e;E==null||E(x),y==null||y(x),b.value=!0}}},render(){var e,t;const{$slots:o,src:n,mergedClsPrefix:r,lazy:i,onRender:a,loaded:l,hasLoadError:s,imgProps:u={}}=this;a==null||a();let d;const c=!l&&!s&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():wo(o.fallback,()=>[m("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=bt(o.default,h=>{if(h)return m($n,{onResize:this.fitTextTransform},{default:()=>m("span",{ref:"textRef",class:`${r}-avatar__text`},h)});if(n||u.src){const f=this.src||u.src;return m("img",Object.assign(Object.assign({},u),{loading:v9&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?f:void 0:f,"data-image-src":f,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[u.style||"",{objectFit:this.objectFit},c?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),m("span",{ref:"selfRef",class:[`${r}-avatar`,this.themeClass],style:this.cssVars},d,i&&c)}});function NC(){return{gap:"-12px"}}const E9={name:"AvatarGroup",common:Ve,peers:{Avatar:jp},self:NC},k9={name:"AvatarGroup",common:Ne,peers:{Avatar:HC},self:NC},VC={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},_9={name:"BackTop",common:Ne,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},VC),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}};function F9(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},VC),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const R9={name:"BackTop",common:Ve,self:F9},$9={name:"Badge",common:Ne,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:n,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}};function P9(e){const{errorColor:t,infoColor:o,successColor:n,warningColor:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}const jC={name:"Badge",common:Ve,self:P9},M9=V([V("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),D("badge",` + display: inline-flex; + position: relative; + vertical-align: middle; + font-family: var(--n-font-family); + `,[Q("as-is",[D("badge-sup",{position:"static",transform:"translateX(0)"},[An({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),Q("dot",[D("badge-sup",` + height: 8px; + width: 8px; + padding: 0; + min-width: 8px; + left: 100%; + bottom: calc(100% - 4px); + `,[V("::before","border-radius: 4px;")])]),D("badge-sup",` + background: var(--n-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + color: #FFF; + position: absolute; + height: 18px; + line-height: 18px; + border-radius: 9px; + padding: 0 6px; + text-align: center; + font-size: var(--n-font-size); + transform: translateX(-50%); + left: 100%; + bottom: calc(100% - 9px); + font-variant-numeric: tabular-nums; + z-index: 2; + display: flex; + align-items: center; + `,[An({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),D("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),V("&::before",` + opacity: 0; + transform: scale(1); + border-radius: 9px; + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)])])]),A9=Object.assign(Object.assign({},ze.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),B9=xe({name:"Badge",props:A9,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=ze("Badge","-badge",M9,jC,e,o),a=M(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},u=T(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&Number(e.value)<=0)||!Ai(t.value)));ut(()=>{u.value&&(a.value=!0)});const d=qt("Badge",r,o),c=T(()=>{const{type:p,color:g}=e,{common:{cubicBezierEaseInOut:v,cubicBezierEaseOut:b},self:{[ke("color",p)]:x,fontFamily:E,fontSize:y}}=i.value;return{"--n-font-size":y,"--n-font-family":E,"--n-color":g||x,"--n-ripple-color":g||x,"--n-bezier":v,"--n-ripple-bezier":b}}),h=n?vt("badge",T(()=>{let p="";const{type:g,color:v}=e;return g&&(p+=g[0]),v&&(p+=Ma(v)),p}),c,e):void 0,f=T(()=>{const{offset:p}=e;if(!p)return;const[g,v]=p,b=typeof g=="number"?`${g}px`:g,x=typeof v=="number"?`${v}px`:v;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${b}), ${x})`}});return{rtlEnabled:d,mergedClsPrefix:o,appeared:a,showBadge:u,handleAfterEnter:l,handleAfterLeave:s,cssVars:n?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:f}},render(){var e;const{mergedClsPrefix:t,onRender:o,themeClass:n,$slots:r}=this;o==null||o();const i=(e=r.default)===null||e===void 0?void 0:e.call(r);return m("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,n,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,m(po,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?m("sup",{class:`${t}-badge-sup`,title:qf(this.value),style:this.offsetStyle},wo(r.value,()=>[this.dot?null:m(WA,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?m(xC,{clsPrefix:t}):null):null}))}}),D9={fontWeightActive:"400"};function WC(e){const{fontSize:t,textColor3:o,textColor2:n,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},D9),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const UC={name:"Breadcrumb",common:Ve,self:WC},T9={name:"Breadcrumb",common:Ne,self:WC},I9=D("breadcrumb",` + white-space: nowrap; + cursor: default; + line-height: var(--n-item-line-height); +`,[V("ul",` + list-style: none; + padding: 0; + margin: 0; + `),V("a",` + color: inherit; + text-decoration: inherit; + `),D("breadcrumb-item",` + font-size: var(--n-font-size); + transition: color .3s var(--n-bezier); + display: inline-flex; + align-items: center; + `,[D("icon",` + font-size: 18px; + vertical-align: -.2em; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `),V("&:not(:last-child)",[Q("clickable",[Z("link",` + cursor: pointer; + `,[V("&:hover",` + background-color: var(--n-item-color-hover); + `),V("&:active",` + background-color: var(--n-item-color-pressed); + `)])])]),Z("link",` + padding: 4px; + border-radius: var(--n-item-border-radius); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + color: var(--n-item-text-color); + position: relative; + `,[V("&:hover",` + color: var(--n-item-text-color-hover); + `,[D("icon",` + color: var(--n-item-text-color-hover); + `)]),V("&:active",` + color: var(--n-item-text-color-pressed); + `,[D("icon",` + color: var(--n-item-text-color-pressed); + `)])]),Z("separator",` + margin: 0 8px; + color: var(--n-separator-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + `),V("&:last-child",[Z("link",` + font-weight: var(--n-font-weight-active); + cursor: unset; + color: var(--n-item-text-color-active); + `,[D("icon",` + color: var(--n-item-text-color-active); + `)]),Z("separator",` + display: none; + `)])])]),KC="n-breadcrumb",z9=Object.assign(Object.assign({},ze.props),{separator:{type:String,default:"/"}}),O9=xe({name:"Breadcrumb",props:z9,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=ze("Breadcrumb","-breadcrumb",I9,UC,e,t);et(KC,{separatorRef:De(e,"separator"),mergedClsPrefixRef:t});const r=T(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:u,itemTextColorPressed:d,itemTextColorActive:c,fontSize:h,fontWeightActive:f,itemBorderRadius:p,itemColorHover:g,itemColorPressed:v,itemLineHeight:b}}=n.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":u,"--n-item-text-color-pressed":d,"--n-item-text-color-active":c,"--n-separator-color":l,"--n-item-color-hover":g,"--n-item-color-pressed":v,"--n-item-border-radius":p,"--n-font-weight-active":f,"--n-item-line-height":b}}),i=o?vt("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},m("ul",null,this.$slots))}});function L9(e=wn?window:null){const t=()=>{const{hash:r,host:i,hostname:a,href:l,origin:s,pathname:u,port:d,protocol:c,search:h}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:a,href:l,origin:s,pathname:u,port:d,protocol:c,search:h}},o=M(t()),n=()=>{o.value=t()};return ut(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Go(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),o}const H9={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},N9=xe({name:"BreadcrumbItem",props:H9,setup(e,{slots:t}){const o=Oe(KC,null);if(!o)return()=>null;const{separatorRef:n,mergedClsPrefixRef:r}=o,i=L9(),a=T(()=>e.href?"a":"span"),l=T(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=r;return m("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},m(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),m("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},wo(t.separator,()=>{var u;return[(u=e.separator)!==null&&u!==void 0?u:n.value]})))}}});function pi(e){return Ue(e,[255,255,255,.16])}function cu(e){return Ue(e,[0,0,0,.12])}const V9="n-button-group",j9={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function GC(e){const{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:u,opacityDisabled:d,textColor2:c,textColor3:h,primaryColorHover:f,primaryColorPressed:p,borderColor:g,primaryColor:v,baseColor:b,infoColor:x,infoColorHover:E,infoColorPressed:y,successColor:k,successColorHover:F,successColorPressed:C,warningColor:A,warningColorHover:P,warningColorPressed:B,errorColor:W,errorColorHover:N,errorColorPressed:K,fontWeight:H,buttonColor2:I,buttonColor2Hover:O,buttonColor2Pressed:R,fontWeightStrong:z}=e;return Object.assign(Object.assign({},j9),{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:u,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:I,colorSecondaryHover:O,colorSecondaryPressed:R,colorTertiary:I,colorTertiaryHover:O,colorTertiaryPressed:R,colorQuaternary:"#0000",colorQuaternaryHover:O,colorQuaternaryPressed:R,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:c,textColorTertiary:h,textColorHover:f,textColorPressed:p,textColorFocus:f,textColorDisabled:c,textColorText:c,textColorTextHover:f,textColorTextPressed:p,textColorTextFocus:f,textColorTextDisabled:c,textColorGhost:c,textColorGhostHover:f,textColorGhostPressed:p,textColorGhostFocus:f,textColorGhostDisabled:c,border:`1px solid ${g}`,borderHover:`1px solid ${f}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${f}`,borderDisabled:`1px solid ${g}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:f,colorPressedPrimary:p,colorFocusPrimary:f,colorDisabledPrimary:v,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:v,textColorTextHoverPrimary:f,textColorTextPressedPrimary:p,textColorTextFocusPrimary:f,textColorTextDisabledPrimary:c,textColorGhostPrimary:v,textColorGhostHoverPrimary:f,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:f,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${f}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${f}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:x,colorHoverInfo:E,colorPressedInfo:y,colorFocusInfo:E,colorDisabledInfo:x,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:x,textColorTextHoverInfo:E,textColorTextPressedInfo:y,textColorTextFocusInfo:E,textColorTextDisabledInfo:c,textColorGhostInfo:x,textColorGhostHoverInfo:E,textColorGhostPressedInfo:y,textColorGhostFocusInfo:E,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${E}`,borderPressedInfo:`1px solid ${y}`,borderFocusInfo:`1px solid ${E}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:k,colorHoverSuccess:F,colorPressedSuccess:C,colorFocusSuccess:F,colorDisabledSuccess:k,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:k,textColorTextHoverSuccess:F,textColorTextPressedSuccess:C,textColorTextFocusSuccess:F,textColorTextDisabledSuccess:c,textColorGhostSuccess:k,textColorGhostHoverSuccess:F,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:F,textColorGhostDisabledSuccess:k,borderSuccess:`1px solid ${k}`,borderHoverSuccess:`1px solid ${F}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${F}`,borderDisabledSuccess:`1px solid ${k}`,rippleColorSuccess:k,colorWarning:A,colorHoverWarning:P,colorPressedWarning:B,colorFocusWarning:P,colorDisabledWarning:A,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:A,textColorTextHoverWarning:P,textColorTextPressedWarning:B,textColorTextFocusWarning:P,textColorTextDisabledWarning:c,textColorGhostWarning:A,textColorGhostHoverWarning:P,textColorGhostPressedWarning:B,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:A,borderWarning:`1px solid ${A}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${B}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${A}`,rippleColorWarning:A,colorError:W,colorHoverError:N,colorPressedError:K,colorFocusError:N,colorDisabledError:W,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:W,textColorTextHoverError:N,textColorTextPressedError:K,textColorTextFocusError:N,textColorTextDisabledError:c,textColorGhostError:W,textColorGhostHoverError:N,textColorGhostPressedError:K,textColorGhostFocusError:N,textColorGhostDisabledError:W,borderError:`1px solid ${W}`,borderHoverError:`1px solid ${N}`,borderPressedError:`1px solid ${K}`,borderFocusError:`1px solid ${N}`,borderDisabledError:`1px solid ${W}`,rippleColorError:W,waveOpacity:"0.6",fontWeight:H,fontWeightStrong:z})}const Ho={name:"Button",common:Ve,self:GC},Yo={name:"Button",common:Ne,self(e){const t=GC(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},W9=V([D("button",` + margin: 0; + font-weight: var(--n-font-weight); + line-height: 1; + font-family: inherit; + padding: var(--n-padding); + height: var(--n-height); + font-size: var(--n-font-size); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + width: var(--n-width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + flex-shrink: 0; + align-items: center; + justify-content: center; + user-select: none; + -webkit-user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[Q("color",[Z("border",{borderColor:"var(--n-border-color)"}),Q("disabled",[Z("border",{borderColor:"var(--n-border-color-disabled)"})]),Ft("disabled",[V("&:focus",[Z("state-border",{borderColor:"var(--n-border-color-focus)"})]),V("&:hover",[Z("state-border",{borderColor:"var(--n-border-color-hover)"})]),V("&:active",[Z("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Q("pressed",[Z("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Q("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[Z("border",{border:"var(--n-border-disabled)"})]),Ft("disabled",[V("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[Z("state-border",{border:"var(--n-border-focus)"})]),V("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[Z("state-border",{border:"var(--n-border-hover)"})]),V("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Z("state-border",{border:"var(--n-border-pressed)"})]),Q("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Z("state-border",{border:"var(--n-border-pressed)"})])]),Q("loading","cursor: wait;"),D("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--n-ripple-duration); + animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); + `,[Q("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),wn&&"MozBoxSizing"in document.createElement("div").style?V("&::moz-focus-inner",{border:0}):null,Z("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--n-bezier); + pointer-events: none; + `),Z("border",{border:"var(--n-border)"}),Z("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),Z("icon",` + margin: var(--n-icon-margin); + margin-left: 0; + height: var(--n-icon-size); + width: var(--n-icon-size); + max-width: var(--n-icon-size); + font-size: var(--n-icon-size); + position: relative; + flex-shrink: 0; + `,[D("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `,[en({top:"50%",originalTransform:"translateY(-50%)"})]),RC()]),Z("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[V("~",[Z("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Q("block",` + display: flex; + width: 100%; + `),Q("dashed",[Z("border, state-border",{borderStyle:"dashed !important"})]),Q("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),V("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),V("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),U9=Object.assign(Object.assign({},ze.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!DC}}),Et=xe({name:"Button",props:U9,setup(e){const t=M(null),o=M(null),n=M(!1),r=gt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Oe(V9,{}),{mergedSizeRef:a}=Dn({},{defaultSize:"medium",mergedSize:y=>{const{size:k}=e;if(k)return k;const{size:F}=i;if(F)return F;const{mergedSize:C}=y||{};return C?C.value:"medium"}}),l=T(()=>e.focusable&&!e.disabled),s=y=>{var k;l.value||y.preventDefault(),!e.nativeFocusBehavior&&(y.preventDefault(),!e.disabled&&l.value&&((k=t.value)===null||k===void 0||k.focus({preventScroll:!0})))},u=y=>{var k;if(!e.disabled&&!e.loading){const{onClick:F}=e;F&&Pe(F,y),e.text||(k=o.value)===null||k===void 0||k.play()}},d=y=>{switch(y.key){case"Enter":if(!e.keyboard)return;n.value=!1}},c=y=>{switch(y.key){case"Enter":if(!e.keyboard||e.loading){y.preventDefault();return}n.value=!0}},h=()=>{n.value=!1},{inlineThemeDisabled:f,mergedClsPrefixRef:p,mergedRtlRef:g}=nt(e),v=ze("Button","-button",W9,Ho,e,p),b=qt("Button",g,p),x=T(()=>{const y=v.value,{common:{cubicBezierEaseInOut:k,cubicBezierEaseOut:F},self:C}=y,{rippleDuration:A,opacityDisabled:P,fontWeight:B,fontWeightStrong:W}=C,N=a.value,{dashed:K,type:H,ghost:I,text:O,color:R,round:z,circle:_,textColor:oe,secondary:G,tertiary:j,quaternary:ue,strong:he}=e,_e={"--n-font-weight":he?W:B};let pe={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const fe=H==="tertiary",Ce=H==="default",Y=fe?"default":H;if(O){const ee=oe||R;pe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ee||C[ke("textColorText",Y)],"--n-text-color-hover":ee?pi(ee):C[ke("textColorTextHover",Y)],"--n-text-color-pressed":ee?cu(ee):C[ke("textColorTextPressed",Y)],"--n-text-color-focus":ee?pi(ee):C[ke("textColorTextHover",Y)],"--n-text-color-disabled":ee||C[ke("textColorTextDisabled",Y)]}}else if(I||K){const ee=oe||R;pe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":R||C[ke("rippleColor",Y)],"--n-text-color":ee||C[ke("textColorGhost",Y)],"--n-text-color-hover":ee?pi(ee):C[ke("textColorGhostHover",Y)],"--n-text-color-pressed":ee?cu(ee):C[ke("textColorGhostPressed",Y)],"--n-text-color-focus":ee?pi(ee):C[ke("textColorGhostHover",Y)],"--n-text-color-disabled":ee||C[ke("textColorGhostDisabled",Y)]}}else if(G){const ee=Ce?C.textColor:fe?C.textColorTertiary:C[ke("color",Y)],ie=R||ee,de=H!=="default"&&H!=="tertiary";pe={"--n-color":de?Ae(ie,{alpha:Number(C.colorOpacitySecondary)}):C.colorSecondary,"--n-color-hover":de?Ae(ie,{alpha:Number(C.colorOpacitySecondaryHover)}):C.colorSecondaryHover,"--n-color-pressed":de?Ae(ie,{alpha:Number(C.colorOpacitySecondaryPressed)}):C.colorSecondaryPressed,"--n-color-focus":de?Ae(ie,{alpha:Number(C.colorOpacitySecondaryHover)}):C.colorSecondaryHover,"--n-color-disabled":C.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ie,"--n-text-color-hover":ie,"--n-text-color-pressed":ie,"--n-text-color-focus":ie,"--n-text-color-disabled":ie}}else if(j||ue){const ee=Ce?C.textColor:fe?C.textColorTertiary:C[ke("color",Y)],ie=R||ee;j?(pe["--n-color"]=C.colorTertiary,pe["--n-color-hover"]=C.colorTertiaryHover,pe["--n-color-pressed"]=C.colorTertiaryPressed,pe["--n-color-focus"]=C.colorSecondaryHover,pe["--n-color-disabled"]=C.colorTertiary):(pe["--n-color"]=C.colorQuaternary,pe["--n-color-hover"]=C.colorQuaternaryHover,pe["--n-color-pressed"]=C.colorQuaternaryPressed,pe["--n-color-focus"]=C.colorQuaternaryHover,pe["--n-color-disabled"]=C.colorQuaternary),pe["--n-ripple-color"]="#0000",pe["--n-text-color"]=ie,pe["--n-text-color-hover"]=ie,pe["--n-text-color-pressed"]=ie,pe["--n-text-color-focus"]=ie,pe["--n-text-color-disabled"]=ie}else pe={"--n-color":R||C[ke("color",Y)],"--n-color-hover":R?pi(R):C[ke("colorHover",Y)],"--n-color-pressed":R?cu(R):C[ke("colorPressed",Y)],"--n-color-focus":R?pi(R):C[ke("colorFocus",Y)],"--n-color-disabled":R||C[ke("colorDisabled",Y)],"--n-ripple-color":R||C[ke("rippleColor",Y)],"--n-text-color":oe||(R?C.textColorPrimary:fe?C.textColorTertiary:C[ke("textColor",Y)]),"--n-text-color-hover":oe||(R?C.textColorHoverPrimary:C[ke("textColorHover",Y)]),"--n-text-color-pressed":oe||(R?C.textColorPressedPrimary:C[ke("textColorPressed",Y)]),"--n-text-color-focus":oe||(R?C.textColorFocusPrimary:C[ke("textColorFocus",Y)]),"--n-text-color-disabled":oe||(R?C.textColorDisabledPrimary:C[ke("textColorDisabled",Y)])};let q={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};O?q={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:q={"--n-border":C[ke("border",Y)],"--n-border-hover":C[ke("borderHover",Y)],"--n-border-pressed":C[ke("borderPressed",Y)],"--n-border-focus":C[ke("borderFocus",Y)],"--n-border-disabled":C[ke("borderDisabled",Y)]};const{[ke("height",N)]:Se,[ke("fontSize",N)]:je,[ke("padding",N)]:U,[ke("paddingRound",N)]:te,[ke("iconSize",N)]:ge,[ke("borderRadius",N)]:we,[ke("iconMargin",N)]:le,waveOpacity:re}=C,ce={"--n-width":_&&!O?Se:"initial","--n-height":O?"initial":Se,"--n-font-size":je,"--n-padding":_||O?"initial":z?te:U,"--n-icon-size":ge,"--n-icon-margin":le,"--n-border-radius":O?"initial":_||z?Se:we};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":k,"--n-bezier-ease-out":F,"--n-ripple-duration":A,"--n-opacity-disabled":P,"--n-wave-opacity":re},_e),pe),q),ce)}),E=f?vt("button",T(()=>{let y="";const{dashed:k,type:F,ghost:C,text:A,color:P,round:B,circle:W,textColor:N,secondary:K,tertiary:H,quaternary:I,strong:O}=e;k&&(y+="a"),C&&(y+="b"),A&&(y+="c"),B&&(y+="d"),W&&(y+="e"),K&&(y+="f"),H&&(y+="g"),I&&(y+="h"),O&&(y+="i"),P&&(y+=`j${Ma(P)}`),N&&(y+=`k${Ma(N)}`);const{value:R}=a;return y+=`l${R[0]}`,y+=`m${F[0]}`,y}),x,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:r,enterPressed:n,rtlEnabled:b,handleMousedown:s,handleKeydown:c,handleBlur:h,handleKeyup:d,handleClick:u,customColorCssVars:T(()=>{const{color:y}=e;if(!y)return null;const k=pi(y);return{"--n-border-color":y,"--n-border-color-hover":k,"--n-border-color-pressed":cu(y),"--n-border-color-focus":k,"--n-border-color-disabled":y}}),cssVars:f?void 0:x,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const n=bt(this.$slots.default,r=>r&&m("span",{class:`${e}-button__content`},r));return m(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,m(Ds,{width:!0},{default:()=>bt(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&m("span",{class:`${e}-button__icon`,style:{margin:Ai(this.$slots.default)?"0":""}},m(Yi,null,{default:()=>this.loading?m(_r,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):m("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&n,this.text?null:m(xC,{ref:"waveElRef",clsPrefix:e}),this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Q0=Et,K9={titleFontSize:"22px"};function qC(e){const{borderRadius:t,fontSize:o,lineHeight:n,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:u,baseColor:d,hoverColor:c,cardColor:h,modalColor:f,popoverColor:p}=e;return Object.assign(Object.assign({},K9),{borderRadius:t,borderColor:Ue(h,l),borderColorModal:Ue(f,l),borderColorPopover:Ue(p,l),textColor:r,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:n,dateColorCurrent:u,dateTextColorCurrent:d,cellColorHover:Ue(h,c),cellColorHoverModal:Ue(f,c),cellColorHoverPopover:Ue(p,c),cellColor:h,cellColorModal:f,cellColorPopover:p,barColor:u})}const G9={name:"Calendar",common:Ve,peers:{Button:Ho},self:qC},q9={name:"Calendar",common:Ne,peers:{Button:Yo},self:qC};function ZC(e){const{fontSize:t,boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,dividerColor:f}=e;return{panelFontSize:t,boxShadow:o,color:n,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,dividerColor:f}}const XC={name:"ColorPicker",common:Ve,peers:{Input:Xo,Button:Ho},self:ZC},Z9={name:"ColorPicker",common:Ne,peers:{Input:Sn,Button:Yo},self:ZC};function X9(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function as(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function Y9(e){return e=Math.round(e),e>=360?359:e<0?0:e}function Q9(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const J9={rgb:{hex(e){return qr(uo(e))},hsl(e){const[t,o,n,r]=uo(e);return Gr([...Vf(t,o,n),r])},hsv(e){const[t,o,n,r]=uo(e);return Mi([...Nf(t,o,n),r])}},hex:{rgb(e){return Kn(uo(e))},hsl(e){const[t,o,n,r]=uo(e);return Gr([...Vf(t,o,n),r])},hsv(e){const[t,o,n,r]=uo(e);return Mi([...Nf(t,o,n),r])}},hsl:{hex(e){const[t,o,n,r]=ka(e);return qr([...jf(t,o,n),r])},rgb(e){const[t,o,n,r]=ka(e);return Kn([...jf(t,o,n),r])},hsv(e){const[t,o,n,r]=ka(e);return Mi([...Ex(t,o,n),r])}},hsv:{hex(e){const[t,o,n,r]=Pi(e);return qr([...Nr(t,o,n),r])},rgb(e){const[t,o,n,r]=Pi(e);return Kn([...Nr(t,o,n),r])},hsl(e){const[t,o,n,r]=Pi(e);return Gr([...Mu(t,o,n),r])}}};function YC(e,t,o){return o=o||as(e),o?o===t?e:J9[o][t](e):null}const fa="12px",eB=12,mi="6px",tB=6,oB="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",nB=xe({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=M(null);function o(i){t.value&&(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),u=Y9((i.clientX-s-tB)/(l-eB)*360);e.onUpdateHue(u)}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,style:{height:fa,borderRadius:mi}},m("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:oB,height:fa,borderRadius:mi,position:"relative"},onMousedown:this.handleMouseDown},m("div",{style:{position:"absolute",left:mi,right:mi,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${mi})`,borderRadius:mi,width:fa,height:fa}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:mi,width:fa,height:fa}})))))}}),cl="12px",rB=12,gi="6px",iB=xe({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=M(null);function o(i){!t.value||!e.rgba||(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),u=(i.clientX-s)/(l-rB);e.onUpdateAlpha(Q9(u))}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:T(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:cl,borderRadius:gi},onMousedown:this.handleMouseDown},m("div",{style:{borderRadius:gi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},m("div",{class:`${e}-color-picker-checkboard`}),m("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&m("div",{style:{position:"absolute",left:gi,right:gi,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${gi})`,borderRadius:gi,width:cl,height:cl}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Kn(this.rgba),borderRadius:gi,width:cl,height:cl}}))))}}),fu="12px",hu="6px",aB=xe({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=M(null);function o(i){t.value&&(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:u,bottom:d}=a.getBoundingClientRect(),c=(d-i.clientY)/s,h=(i.clientX-u)/l,f=100*(h>1?1:h<0?0:h),p=100*(c>1?1:c<0?0:c);e.onUpdateSV(f,p)}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:T(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},m("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),m("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&m("div",{class:`${e}-color-picker-handle`,style:{width:fu,height:fu,borderRadius:hu,left:`calc(${this.displayedSv[0]}% - ${hu})`,bottom:`calc(${this.displayedSv[1]}% - ${hu})`}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:hu,width:fu,height:fu}})))}}),Wp="n-color-picker";function lB(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function sB(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function uB(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function dB(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function cB(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}const fB={paddingSmall:"0 4px"},J0=xe({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=M(""),{themeRef:o}=Oe(Wp,null);kt(()=>{t.value=n()});function n(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function r(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=dB(a),s&&e.onUpdateValue(a),t.value=n();break;case"H":l=sB(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"S":case"L":case"V":l=uB(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"A":l=cB(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"R":case"G":case"B":l=lB(a),l===!1?t.value=n():e.onUpdateValue(l);break}}return{mergedTheme:o,inputValue:t,handleInputChange:i,handleInputUpdateValue:r}},render(){const{mergedTheme:e}=this;return m(rn,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:fB,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),hB=xe({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,o){const{showAlpha:n}=e;if(e.mode==="hex"){e.onUpdateValue((n?qr:Al)(o));return}let r;switch(e.valueArr===null?r=[0,0,0,0]:r=Array.from(e.valueArr),e.mode){case"hsv":r[t]=o,e.onUpdateValue((n?Mi:Kf)(r));break;case"rgb":r[t]=o,e.onUpdateValue((n?Kn:Uf)(r));break;case"hsl":r[t]=o,e.onUpdateValue((n?Gr:Gf)(r));break}}}},render(){const{clsPrefix:e,modes:t}=this;return m("div",{class:`${e}-color-picker-input`},m("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),m(zC,null,{default:()=>{const{mode:o,valueArr:n,showAlpha:r}=this;if(o==="hex"){let i=null;try{i=n===null?null:(r?qr:Al)(n)}catch{}return m(J0,{label:"HEX",showAlpha:r,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(o+(r?"a":"")).split("").map((i,a)=>m(J0,{label:i.toUpperCase(),value:n===null?null:n[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),pB=xe({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:o}=Oe(Wp,null);return()=>{const{hsla:n,value:r,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||o.value;return m("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},m("div",{class:`${i}-color-picker-trigger__fill`},m("div",{class:`${i}-color-picker-checkboard`}),m("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:n?Gr(n):""}}),r&&n?m("div",{class:`${i}-color-picker-trigger__value`,style:{color:n[2]>50||n[3]<.5?"black":"white"}},s?s(r):r):null))}}});function mB(e,t){if(t==="hsv"){const[o,n,r,i]=Pi(e);return Kn([...Nr(o,n,r),i])}return e}function gB(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}const vB=xe({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=T(()=>e.swatches.map(i=>{const a=as(i);return{value:i,mode:a,legalValue:mB(i,a)}}));function o(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=gB(l):(xn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:YC(l,a,s)}function n(i){e.onUpdateColor(o(i))}function r(i,a){i.key==="Enter"&&n(a)}return{parsedSwatchesRef:t,handleSwatchSelect:n,handleSwatchKeyDown:r}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>m("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:o=>{this.handleSwatchKeyDown(o,t)}},m("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),bB=xe({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=as(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(o){var n;const r=o.target.value;(n=e.onUpdateColor)===null||n===void 0||n.call(e,YC(r.toUpperCase(),e.mode,"hex")),o.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-preview__preview`},m("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),m("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),xB=V([D("color-picker",` + display: inline-block; + box-sizing: border-box; + height: var(--n-height); + font-size: var(--n-font-size); + width: 100%; + position: relative; + `),D("color-picker-panel",` + margin: 4px 0; + width: 240px; + font-size: var(--n-panel-font-size); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + `,[An(),D("input",` + text-align: center; + `)]),D("color-picker-checkboard",` + background: white; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[V("&::after",` + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 12px 12px; + background-position: 0 0, 0 6px, 6px -6px, -6px 0px; + background-repeat: repeat; + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),D("color-picker-slider",` + margin-bottom: 8px; + position: relative; + box-sizing: border-box; + `,[Z("image",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `),V("&::after",` + content: ""; + position: absolute; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + pointer-events: none; + `)]),D("color-picker-handle",` + z-index: 1; + box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); + position: absolute; + background-color: white; + overflow: hidden; + `,[Z("fill",` + box-sizing: border-box; + border: 2px solid white; + `)]),D("color-picker-pallete",` + height: 180px; + position: relative; + margin-bottom: 8px; + cursor: crosshair; + `,[Z("layer",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[Q("shadowed",` + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + `)])]),D("color-picker-preview",` + display: flex; + `,[Z("sliders",` + flex: 1 0 auto; + `),Z("preview",` + position: relative; + height: 30px; + width: 30px; + margin: 0 0 8px 6px; + border-radius: 50%; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + overflow: hidden; + `),Z("fill",` + display: block; + width: 30px; + height: 30px; + `),Z("input",` + position: absolute; + top: 0; + left: 0; + width: 30px; + height: 30px; + opacity: 0; + z-index: 1; + `)]),D("color-picker-input",` + display: flex; + align-items: center; + `,[D("input",` + flex-grow: 1; + flex-basis: 0; + `),Z("mode",` + width: 72px; + text-align: center; + `)]),D("color-picker-control",` + padding: 12px; + `),D("color-picker-action",` + display: flex; + margin-top: -4px; + border-top: 1px solid var(--n-divider-color); + padding: 8px 12px; + justify-content: flex-end; + `,[D("button","margin-left: 8px;")]),D("color-picker-trigger",` + border: var(--n-border); + height: 100%; + box-sizing: border-box; + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + cursor: pointer; + `,[Z("value",` + white-space: nowrap; + position: relative; + `),Z("fill",` + border-radius: var(--n-border-radius); + position: absolute; + display: flex; + align-items: center; + justify-content: center; + left: 4px; + right: 4px; + top: 4px; + bottom: 4px; + `),Q("disabled","cursor: not-allowed"),D("color-picker-checkboard",` + border-radius: var(--n-border-radius); + `,[V("&::after",` + --n-block-size: calc((var(--n-height) - 8px) / 3); + background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); + background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; + `)])]),D("color-picker-swatches",` + display: grid; + grid-gap: 8px; + flex-wrap: wrap; + position: relative; + grid-template-columns: repeat(auto-fill, 18px); + margin-top: 10px; + `,[D("color-picker-swatch",` + width: 18px; + height: 18px; + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 8px 8px; + background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; + background-repeat: repeat; + `,[Z("fill",` + position: relative; + width: 100%; + height: 100%; + border-radius: 3px; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + cursor: pointer; + `),V("&:focus",` + outline: none; + `,[Z("fill",[V("&::after",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: inherit; + filter: blur(2px); + content: ""; + `)])])])])]),yB=Object.assign(Object.assign({},ze.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Mo.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),CB=xe({name:"ColorPicker",props:yB,setup(e,{slots:t}){const o=M(null);let n=null;const r=Dn(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,{localeRef:l}=Er("global"),{mergedClsPrefixRef:s,namespaceRef:u,inlineThemeDisabled:d}=nt(e),c=ze("ColorPicker","-color-picker",xB,XC,e,s);et(Wp,{themeRef:c,renderLabelRef:De(e,"renderLabel"),colorPickerSlots:t});const h=M(e.defaultShow),f=to(De(e,"show"),h);function p(re){const{onUpdateShow:ce,"onUpdate:show":ee}=e;ce&&Pe(ce,re),ee&&Pe(ee,re),h.value=re}const{defaultValue:g}=e,v=M(g===void 0?X9(e.modes,e.showAlpha):g),b=to(De(e,"value"),v),x=M([b.value]),E=M(0),y=T(()=>as(b.value)),{modes:k}=e,F=M(as(b.value)||k[0]||"rgb");function C(){const{modes:re}=e,{value:ce}=F,ee=re.findIndex(ie=>ie===ce);~ee?F.value=re[(ee+1)%re.length]:F.value="rgb"}let A,P,B,W,N,K,H,I;const O=T(()=>{const{value:re}=b;if(!re)return null;switch(y.value){case"hsv":return Pi(re);case"hsl":return[A,P,B,I]=ka(re),[...Ex(A,P,B),I];case"rgb":case"hex":return[N,K,H,I]=uo(re),[...Nf(N,K,H),I]}}),R=T(()=>{const{value:re}=b;if(!re)return null;switch(y.value){case"rgb":case"hex":return uo(re);case"hsv":return[A,P,W,I]=Pi(re),[...Nr(A,P,W),I];case"hsl":return[A,P,B,I]=ka(re),[...jf(A,P,B),I]}}),z=T(()=>{const{value:re}=b;if(!re)return null;switch(y.value){case"hsl":return ka(re);case"hsv":return[A,P,W,I]=Pi(re),[...Mu(A,P,W),I];case"rgb":case"hex":return[N,K,H,I]=uo(re),[...Vf(N,K,H),I]}}),_=T(()=>{switch(F.value){case"rgb":case"hex":return R.value;case"hsv":return O.value;case"hsl":return z.value}}),oe=M(0),G=M(1),j=M([0,0]);function ue(re,ce){const{value:ee}=O,ie=oe.value,de=ee?ee[3]:1;j.value=[re,ce];const{showAlpha:ae}=e;switch(F.value){case"hsv":pe((ae?Mi:Kf)([ie,re,ce,de]),"cursor");break;case"hsl":pe((ae?Gr:Gf)([...Mu(ie,re,ce),de]),"cursor");break;case"rgb":pe((ae?Kn:Uf)([...Nr(ie,re,ce),de]),"cursor");break;case"hex":pe((ae?qr:Al)([...Nr(ie,re,ce),de]),"cursor");break}}function he(re){oe.value=re;const{value:ce}=O;if(!ce)return;const[,ee,ie,de]=ce,{showAlpha:ae}=e;switch(F.value){case"hsv":pe((ae?Mi:Kf)([re,ee,ie,de]),"cursor");break;case"rgb":pe((ae?Kn:Uf)([...Nr(re,ee,ie),de]),"cursor");break;case"hex":pe((ae?qr:Al)([...Nr(re,ee,ie),de]),"cursor");break;case"hsl":pe((ae?Gr:Gf)([...Mu(re,ee,ie),de]),"cursor");break}}function _e(re){switch(F.value){case"hsv":[A,P,W]=O.value,pe(Mi([A,P,W,re]),"cursor");break;case"rgb":[N,K,H]=R.value,pe(Kn([N,K,H,re]),"cursor");break;case"hex":[N,K,H]=R.value,pe(qr([N,K,H,re]),"cursor");break;case"hsl":[A,P,B]=z.value,pe(Gr([A,P,B,re]),"cursor");break}G.value=re}function pe(re,ce){ce==="cursor"?n=re:n=null;const{nTriggerFormChange:ee,nTriggerFormInput:ie}=r,{onUpdateValue:de,"onUpdate:value":ae}=e;de&&Pe(de,re),ae&&Pe(ae,re),ee(),ie(),v.value=re}function fe(re){pe(re,"input"),Rt(Ce)}function Ce(re=!0){const{value:ce}=b;if(ce){const{nTriggerFormChange:ee,nTriggerFormInput:ie}=r,{onComplete:de}=e;de&&de(ce);const{value:ae}=x,{value:X}=E;re&&(ae.splice(X+1,ae.length,ce),E.value=X+1),ee(),ie()}}function Y(){const{value:re}=E;re-1<0||(pe(x.value[re-1],"input"),Ce(!1),E.value=re-1)}function q(){const{value:re}=E;re<0||re+1>=x.value.length||(pe(x.value[re+1],"input"),Ce(!1),E.value=re+1)}function Se(){pe(null,"input");const{onClear:re}=e;re&&re(),p(!1)}function je(){const{value:re}=b,{onConfirm:ce}=e;ce&&ce(re),p(!1)}const U=T(()=>E.value>=1),te=T(()=>{const{value:re}=x;return re.length>1&&E.value<re.length-1});at(f,re=>{re||(x.value=[b.value],E.value=0)}),kt(()=>{if(!(n&&n===b.value)){const{value:re}=O;re&&(oe.value=re[0],G.value=re[3],j.value=[re[1],re[2]])}n=null});const ge=T(()=>{const{value:re}=i,{common:{cubicBezierEaseInOut:ce},self:{textColor:ee,color:ie,panelFontSize:de,boxShadow:ae,border:X,borderRadius:se,dividerColor:ve,[ke("height",re)]:Te,[ke("fontSize",re)]:Ke}}=c.value;return{"--n-bezier":ce,"--n-text-color":ee,"--n-color":ie,"--n-panel-font-size":de,"--n-font-size":Ke,"--n-box-shadow":ae,"--n-border":X,"--n-border-radius":se,"--n-height":Te,"--n-divider-color":ve}}),we=d?vt("color-picker",T(()=>i.value[0]),ge,e):void 0;function le(){var re;const{value:ce}=R,{value:ee}=oe,{internalActions:ie,modes:de,actions:ae}=e,{value:X}=c,{value:se}=s;return m("div",{class:[`${se}-color-picker-panel`,we==null?void 0:we.themeClass.value],onDragstart:ve=>{ve.preventDefault()},style:d?void 0:ge.value},m("div",{class:`${se}-color-picker-control`},m(aB,{clsPrefix:se,rgba:ce,displayedHue:ee,displayedSv:j.value,onUpdateSV:ue,onComplete:Ce}),m("div",{class:`${se}-color-picker-preview`},m("div",{class:`${se}-color-picker-preview__sliders`},m(nB,{clsPrefix:se,hue:ee,onUpdateHue:he,onComplete:Ce}),e.showAlpha?m(iB,{clsPrefix:se,rgba:ce,alpha:G.value,onUpdateAlpha:_e,onComplete:Ce}):null),e.showPreview?m(bB,{clsPrefix:se,mode:F.value,color:R.value&&Al(R.value),onUpdateColor:ve=>{pe(ve,"input")}}):null),m(hB,{clsPrefix:se,showAlpha:e.showAlpha,mode:F.value,modes:de,onUpdateMode:C,value:b.value,valueArr:_.value,onUpdateValue:fe}),((re=e.swatches)===null||re===void 0?void 0:re.length)&&m(vB,{clsPrefix:se,mode:F.value,swatches:e.swatches,onUpdateColor:ve=>{pe(ve,"input")}})),ae!=null&&ae.length?m("div",{class:`${se}-color-picker-action`},ae.includes("confirm")&&m(Et,{size:"small",onClick:je,theme:X.peers.Button,themeOverrides:X.peerOverrides.Button},{default:()=>l.value.confirm}),ae.includes("clear")&&m(Et,{size:"small",onClick:Se,disabled:!b.value,theme:X.peers.Button,themeOverrides:X.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?m("div",{class:`${se}-color-picker-action`},{default:t.action}):ie?m("div",{class:`${se}-color-picker-action`},ie.includes("undo")&&m(Et,{size:"small",onClick:Y,disabled:!U.value,theme:X.peers.Button,themeOverrides:X.peerOverrides.Button},{default:()=>l.value.undo}),ie.includes("redo")&&m(Et,{size:"small",onClick:q,disabled:!te.value,theme:X.peers.Button,themeOverrides:X.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:u,selfRef:o,hsla:z,rgba:R,mergedShow:f,mergedDisabled:a,isMounted:Cr(),adjustedTo:Mo(e),mergedValue:b,handleTriggerClick(){p(!0)},handleClickOutside(re){var ce;!((ce=o.value)===null||ce===void 0)&&ce.contains(Oi(re))||p(!1)},renderPanel:le,cssVars:d?void 0:ge,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},m(ks,null,{default:()=>[m(_s,null,{default:()=>m(pB,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),m(Fs,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Mo.tdkey,to:this.adjustedTo},{default:()=>m(po,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?Po(this.renderPanel(),[[Li,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),wB={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function QC(e){const{primaryColor:t,borderRadius:o,lineHeight:n,fontSize:r,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,closeColorHover:f,closeColorPressed:p,modalColor:g,boxShadow1:v,popoverColor:b,actionColor:x}=e;return Object.assign(Object.assign({},wB),{lineHeight:n,color:i,colorModal:g,colorPopover:b,colorTarget:t,colorEmbedded:x,colorEmbeddedModal:x,colorEmbeddedPopover:x,textColor:a,titleTextColor:l,borderColor:s,actionColor:x,titleFontWeight:u,closeColorHover:f,closeColorPressed:p,closeBorderRadius:o,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:v,borderRadius:o})}const Up={name:"Card",common:Ve,self:QC},JC={name:"Card",common:Ne,self(e){const t=QC(e),{cardColor:o,modalColor:n,popoverColor:r}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=r,t}},SB=V([D("card",` + font-size: var(--n-font-size); + line-height: var(--n-line-height); + display: flex; + flex-direction: column; + width: 100%; + box-sizing: border-box; + position: relative; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + color: var(--n-text-color); + word-break: break-word; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[Bx({background:"var(--n-color-modal)"}),Q("hoverable",[V("&:hover","box-shadow: var(--n-box-shadow);")]),Q("content-segmented",[V(">",[Z("content",{paddingTop:"var(--n-padding-bottom)"})])]),Q("content-soft-segmented",[V(">",[Z("content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])]),Q("footer-segmented",[V(">",[Z("footer",{paddingTop:"var(--n-padding-bottom)"})])]),Q("footer-soft-segmented",[V(">",[Z("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),V(">",[D("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + padding: + var(--n-padding-top) + var(--n-padding-left) + var(--n-padding-bottom) + var(--n-padding-left); + `,[Z("main",` + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + min-width: 0; + color: var(--n-title-text-color); + `),Z("extra",` + display: flex; + align-items: center; + font-size: var(--n-font-size); + font-weight: 400; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),Z("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),Z("action",` + box-sizing: border-box; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + background-clip: padding-box; + background-color: var(--n-action-color); + `),Z("content","flex: 1; min-width: 0;"),Z("content, footer",` + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); + `,[V("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),Z("action",` + background-color: var(--n-action-color); + padding: var(--n-padding-bottom) var(--n-padding-left); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `)]),D("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[V("img",` + display: block; + width: 100%; + `)]),Q("bordered",` + border: 1px solid var(--n-border-color); + `,[V("&:target","border-color: var(--n-color-target);")]),Q("action-segmented",[V(">",[Z("action",[V("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Q("content-segmented, content-soft-segmented",[V(">",[Z("content",{transition:"border-color 0.3s var(--n-bezier)"},[V("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Q("footer-segmented, footer-soft-segmented",[V(">",[Z("footer",{transition:"border-color 0.3s var(--n-bezier)"},[V("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Q("embedded",` + background-color: var(--n-color-embedded); + `)]),Gi(D("card",` + background: var(--n-color-modal); + `,[Q("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),Ha(D("card",` + background: var(--n-color-popover); + `,[Q("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]),Kp={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},EB=ws(Kp),kB=Object.assign(Object.assign({},ze.props),Kp),e5=xe({name:"Card",props:kB,setup(e){const t=()=>{const{onClose:u}=e;u&&Pe(u)},{inlineThemeDisabled:o,mergedClsPrefixRef:n,mergedRtlRef:r}=nt(e),i=ze("Card","-card",SB,Up,e,n),a=qt("Card",r,n),l=T(()=>{const{size:u}=e,{self:{color:d,colorModal:c,colorTarget:h,textColor:f,titleTextColor:p,titleFontWeight:g,borderColor:v,actionColor:b,borderRadius:x,lineHeight:E,closeIconColor:y,closeIconColorHover:k,closeIconColorPressed:F,closeColorHover:C,closeColorPressed:A,closeBorderRadius:P,closeIconSize:B,closeSize:W,boxShadow:N,colorPopover:K,colorEmbedded:H,colorEmbeddedModal:I,colorEmbeddedPopover:O,[ke("padding",u)]:R,[ke("fontSize",u)]:z,[ke("titleFontSize",u)]:_},common:{cubicBezierEaseInOut:oe}}=i.value,{top:G,left:j,bottom:ue}=Ro(R);return{"--n-bezier":oe,"--n-border-radius":x,"--n-color":d,"--n-color-modal":c,"--n-color-popover":K,"--n-color-embedded":H,"--n-color-embedded-modal":I,"--n-color-embedded-popover":O,"--n-color-target":h,"--n-text-color":f,"--n-line-height":E,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":y,"--n-close-icon-color-hover":k,"--n-close-icon-color-pressed":F,"--n-close-color-hover":C,"--n-close-color-pressed":A,"--n-border-color":v,"--n-box-shadow":N,"--n-padding-top":G,"--n-padding-bottom":ue,"--n-padding-left":j,"--n-font-size":z,"--n-title-font-size":_,"--n-close-size":W,"--n-close-icon-size":B,"--n-close-border-radius":P}}),s=o?vt("card",T(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:n,rtlEnabled:r,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),m(l,{class:[`${n}-card`,this.themeClass,a&&`${n}-card--embedded`,{[`${n}-card--rtl`]:r,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:o}],style:this.cssVars,role:this.role},bt(s.cover,u=>{const d=this.cover?pn([this.cover()]):u;return d&&m("div",{class:`${n}-card-cover`,role:"none"},d)}),bt(s.header,u=>{const{title:d}=this,c=d?pn(typeof d=="function"?[d()]:[d]):u;return c||this.closable?m("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},m("div",{class:`${n}-card-header__main`,role:"heading"},c),bt(s["header-extra"],h=>{const f=this.headerExtra?pn([this.headerExtra()]):h;return f&&m("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},f)}),this.closable&&m(li,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),bt(s.default,u=>{const{content:d}=this,c=d?pn(typeof d=="function"?[d()]:[d]):u;return c&&m("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)}),bt(s.footer,u=>{const d=this.footer?pn([this.footer()]):u;return d&&m("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},d)}),bt(s.action,u=>{const d=this.action?pn([this.action()]):u;return d&&m("div",{class:`${n}-card__action`,role:"none"},d)}))}});function t5(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const _B={name:"Carousel",common:Ve,self:t5},FB={name:"Carousel",common:Ne,self:t5},RB={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function o5(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,borderRadiusSmall:f,lineHeight:p}=e;return Object.assign(Object.assign({},RB),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,borderRadius:f,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${Ae(s,{alpha:.3})}`,textColor:u,textColorDisabled:a})}const ea={name:"Checkbox",common:Ve,self:o5},Ga={name:"Checkbox",common:Ne,self(e){const{cardColor:t}=e,o=o5(e);return o.color="#0000",o.checkMarkColor=t,o}};function n5(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:u,fontSizeMedium:d,heightMedium:c}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:c,optionFontSize:d,optionColorHover:u,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const $B={name:"Cascader",common:Ve,peers:{InternalSelectMenu:Ua,InternalSelection:Nd,Scrollbar:Lo,Checkbox:ea,Empty:tr},self:n5},PB={name:"Cascader",common:Ne,peers:{InternalSelectMenu:Is,InternalSelection:Np,Scrollbar:Zo,Checkbox:Ga,Empty:tr},self:n5},MB=m("svg",{viewBox:"0 0 64 64",class:"check-icon"},m("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),AB=m("svg",{viewBox:"0 0 100 100",class:"line-icon"},m("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),r5="n-checkbox-group",BB={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},i5=xe({name:"CheckboxGroup",props:BB,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=Dn(e),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=M(e.defaultValue),a=T(()=>e.value),l=to(a,i),s=T(()=>{var c;return((c=l.value)===null||c===void 0?void 0:c.length)||0}),u=T(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(c,h){const{nTriggerFormInput:f,nTriggerFormChange:p}=o,{onChange:g,"onUpdate:value":v,onUpdateValue:b}=e;if(Array.isArray(l.value)){const x=Array.from(l.value),E=x.findIndex(y=>y===h);c?~E||(x.push(h),b&&Pe(b,x,{actionType:"check",value:h}),v&&Pe(v,x,{actionType:"check",value:h}),f(),p(),i.value=x,g&&Pe(g,x)):~E&&(x.splice(E,1),b&&Pe(b,x,{actionType:"uncheck",value:h}),v&&Pe(v,x,{actionType:"uncheck",value:h}),g&&Pe(g,x),i.value=x,f(),p())}else c?(b&&Pe(b,[h],{actionType:"check",value:h}),v&&Pe(v,[h],{actionType:"check",value:h}),g&&Pe(g,[h]),i.value=[h],f(),p()):(b&&Pe(b,[],{actionType:"uncheck",value:h}),v&&Pe(v,[],{actionType:"uncheck",value:h}),g&&Pe(g,[]),i.value=[],f(),p())}return et(r5,{checkedCountRef:s,maxRef:De(e,"max"),minRef:De(e,"min"),valueSetRef:u,disabledRef:r,mergedSizeRef:n,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return m("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),DB=V([D("checkbox",` + font-size: var(--n-font-size); + outline: none; + cursor: pointer; + display: inline-flex; + flex-wrap: nowrap; + align-items: flex-start; + word-break: break-word; + line-height: var(--n-size); + --n-merged-color-table: var(--n-color-table); + `,[Q("show-label","line-height: var(--n-label-line-height);"),V("&:hover",[D("checkbox-box",[Z("border","border: var(--n-border-checked);")])]),V("&:focus:not(:active)",[D("checkbox-box",[Z("border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),Q("inside-table",[D("checkbox-box",` + background-color: var(--n-merged-color-table); + `)]),Q("checked",[D("checkbox-box",` + background-color: var(--n-color-checked); + `,[D("checkbox-icon",[V(".check-icon",` + opacity: 1; + transform: scale(1); + `)])])]),Q("indeterminate",[D("checkbox-box",[D("checkbox-icon",[V(".check-icon",` + opacity: 0; + transform: scale(.5); + `),V(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),Q("checked, indeterminate",[V("&:focus:not(:active)",[D("checkbox-box",[Z("border",` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),D("checkbox-box",` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[Z("border",{border:"var(--n-border-checked)"})])]),Q("disabled",{cursor:"not-allowed"},[Q("checked",[D("checkbox-box",` + background-color: var(--n-color-disabled-checked); + `,[Z("border",{border:"var(--n-border-disabled-checked)"}),D("checkbox-icon",[V(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),D("checkbox-box",` + background-color: var(--n-color-disabled); + `,[Z("border",` + border: var(--n-border-disabled); + `),D("checkbox-icon",[V(".check-icon, .line-icon",` + fill: var(--n-check-mark-color-disabled); + `)])]),Z("label",` + color: var(--n-text-color-disabled); + `)]),D("checkbox-box-wrapper",` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + -webkit-user-select: none; + `),D("checkbox-box",` + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + height: var(--n-size); + width: var(--n-size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color 0.3s var(--n-bezier); + `,[Z("border",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--n-border); + `),D("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[V(".check-icon, .line-icon",` + width: 100%; + fill: var(--n-check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--n-bezier), + transform 0.3s var(--n-bezier), + opacity 0.3s var(--n-bezier), + border-color 0.3s var(--n-bezier); + `),en({left:"1px",top:"1px"})])]),Z("label",` + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + `,[V("&:empty",{display:"none"})])]),Gi(D("checkbox",` + --n-merged-color-table: var(--n-color-table-modal); + `)),Ha(D("checkbox",` + --n-merged-color-table: var(--n-color-table-popover); + `))]),TB=Object.assign(Object.assign({},ze.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Vd=xe({name:"Checkbox",props:TB,setup(e){const t=Oe(r5,null),o=M(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=nt(e),a=M(e.defaultChecked),l=De(e,"checked"),s=to(l,a),u=gt(()=>{if(t){const F=t.valueSetRef.value;return F&&e.value!==void 0?F.has(e.value):!1}else return s.value===e.checkedValue}),d=Dn(e,{mergedSize(F){const{size:C}=e;if(C!==void 0)return C;if(t){const{value:A}=t.mergedSizeRef;if(A!==void 0)return A}if(F){const{mergedSize:A}=F;if(A!==void 0)return A.value}return"medium"},mergedDisabled(F){const{disabled:C}=e;if(C!==void 0)return C;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:A},checkedCountRef:P}=t;if(A!==void 0&&P.value>=A&&!u.value)return!0;const{minRef:{value:B}}=t;if(B!==void 0&&P.value<=B&&u.value)return!0}return F?F.disabled.value:!1}}),{mergedDisabledRef:c,mergedSizeRef:h}=d,f=ze("Checkbox","-checkbox",DB,ea,e,n);function p(F){if(t&&e.value!==void 0)t.toggleCheckbox(!u.value,e.value);else{const{onChange:C,"onUpdate:checked":A,onUpdateChecked:P}=e,{nTriggerFormInput:B,nTriggerFormChange:W}=d,N=u.value?e.uncheckedValue:e.checkedValue;A&&Pe(A,N,F),P&&Pe(P,N,F),C&&Pe(C,N,F),B(),W(),a.value=N}}function g(F){c.value||p(F)}function v(F){if(!c.value)switch(F.key){case" ":case"Enter":p(F)}}function b(F){switch(F.key){case" ":F.preventDefault()}}const x={focus:()=>{var F;(F=o.value)===null||F===void 0||F.focus()},blur:()=>{var F;(F=o.value)===null||F===void 0||F.blur()}},E=qt("Checkbox",i,n),y=T(()=>{const{value:F}=h,{common:{cubicBezierEaseInOut:C},self:{borderRadius:A,color:P,colorChecked:B,colorDisabled:W,colorTableHeader:N,colorTableHeaderModal:K,colorTableHeaderPopover:H,checkMarkColor:I,checkMarkColorDisabled:O,border:R,borderFocus:z,borderDisabled:_,borderChecked:oe,boxShadowFocus:G,textColor:j,textColorDisabled:ue,checkMarkColorDisabledChecked:he,colorDisabledChecked:_e,borderDisabledChecked:pe,labelPadding:fe,labelLineHeight:Ce,labelFontWeight:Y,[ke("fontSize",F)]:q,[ke("size",F)]:Se}}=f.value;return{"--n-label-line-height":Ce,"--n-label-font-weight":Y,"--n-size":Se,"--n-bezier":C,"--n-border-radius":A,"--n-border":R,"--n-border-checked":oe,"--n-border-focus":z,"--n-border-disabled":_,"--n-border-disabled-checked":pe,"--n-box-shadow-focus":G,"--n-color":P,"--n-color-checked":B,"--n-color-table":N,"--n-color-table-modal":K,"--n-color-table-popover":H,"--n-color-disabled":W,"--n-color-disabled-checked":_e,"--n-text-color":j,"--n-text-color-disabled":ue,"--n-check-mark-color":I,"--n-check-mark-color-disabled":O,"--n-check-mark-color-disabled-checked":he,"--n-font-size":q,"--n-label-padding":fe}}),k=r?vt("checkbox",T(()=>h.value[0]),y,e):void 0;return Object.assign(d,x,{rtlEnabled:E,selfRef:o,mergedClsPrefix:n,mergedDisabled:c,renderedChecked:u,mergedTheme:f,labelId:ii(),handleClick:g,handleKeyUp:v,handleKeyDown:b,cssVars:r?void 0:y,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:n,indeterminate:r,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:u,focusable:d,handleKeyUp:c,handleKeyDown:h,handleClick:f}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=bt(t.default,g=>s||g?m("span",{class:`${u}-checkbox__label`,id:l},s||g):null);return m("div",{ref:"selfRef",class:[`${u}-checkbox`,this.themeClass,this.rtlEnabled&&`${u}-checkbox--rtl`,o&&`${u}-checkbox--checked`,n&&`${u}-checkbox--disabled`,r&&`${u}-checkbox--indeterminate`,i&&`${u}-checkbox--inside-table`,p&&`${u}-checkbox--show-label`],tabindex:n||!d?void 0:0,role:"checkbox","aria-checked":r?"mixed":o,"aria-labelledby":l,style:a,onKeyup:c,onKeydown:h,onClick:f,onMousedown:()=>{Ct("selectstart",window,g=>{g.preventDefault()},{once:!0})}},m("div",{class:`${u}-checkbox-box-wrapper`}," ",m("div",{class:`${u}-checkbox-box`},m(Yi,null,{default:()=>this.indeterminate?m("div",{key:"indeterminate",class:`${u}-checkbox-icon`},AB):m("div",{key:"check",class:`${u}-checkbox-icon`},MB)}),m("div",{class:`${u}-checkbox-box__border`}))),p)}}),a5={name:"Code",common:Ne,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:r}}};function IB(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:r}}const Gp={name:"Code",common:Ve,self:IB},zB=V([D("code",` + font-size: var(--n-font-size); + font-family: var(--n-font-family); + `,[Q("show-line-numbers",` + display: flex; + `),Z("line-numbers",` + user-select: none; + padding-right: 12px; + text-align: right; + transition: color .3s var(--n-bezier); + color: var(--n-line-number-text-color); + `),Q("word-wrap",[V("pre",` + white-space: pre-wrap; + word-break: break-all; + `)]),V("pre",` + margin: 0; + line-height: inherit; + font-size: inherit; + font-family: inherit; + `),V("[class^=hljs]",` + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, + ${t} .hljs-quote { + color: var(--n-mono-3); + font-style: italic; + }`,`${t} .hljs-doctag, + ${t} .hljs-keyword, + ${t} .hljs-formula { + color: var(--n-hue-3); + }`,`${t} .hljs-section, + ${t} .hljs-name, + ${t} .hljs-selector-tag, + ${t} .hljs-deletion, + ${t} .hljs-subst { + color: var(--n-hue-5); + }`,`${t} .hljs-literal { + color: var(--n-hue-1); + }`,`${t} .hljs-string, + ${t} .hljs-regexp, + ${t} .hljs-addition, + ${t} .hljs-attribute, + ${t} .hljs-meta-string { + color: var(--n-hue-4); + }`,`${t} .hljs-built_in, + ${t} .hljs-class .hljs-title { + color: var(--n-hue-6-2); + }`,`${t} .hljs-attr, + ${t} .hljs-variable, + ${t} .hljs-template-variable, + ${t} .hljs-type, + ${t} .hljs-selector-class, + ${t} .hljs-selector-attr, + ${t} .hljs-selector-pseudo, + ${t} .hljs-number { + color: var(--n-hue-6); + }`,`${t} .hljs-symbol, + ${t} .hljs-bullet, + ${t} .hljs-link, + ${t} .hljs-meta, + ${t} .hljs-selector-id, + ${t} .hljs-title { + color: var(--n-hue-2); + }`,`${t} .hljs-emphasis { + font-style: italic; + }`,`${t} .hljs-strong { + font-weight: var(--n-font-weight-strong); + }`,`${t} .hljs-link { + text-decoration: underline; + }`]}]),OB=Object.assign(Object.assign({},ze.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),LB=xe({name:"Code",props:OB,setup(e,{slots:t}){const{internalNoHighlight:o}=e,{mergedClsPrefixRef:n,inlineThemeDisabled:r}=nt(),i=M(null),a=o?{value:void 0}:lC(e),l=(f,p,g)=>{const{value:v}=a;return!v||!(f&&v.getLanguage(f))?null:v.highlight(g?p.trim():p,{language:f}).value},s=T(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),u=()=>{if(t.default)return;const{value:f}=i;if(!f)return;const{language:p}=e,g=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const b=l(p,g,e.trim);if(b!==null){if(e.inline)f.innerHTML=b;else{const x=f.querySelector(".__code__");x&&f.removeChild(x);const E=document.createElement("pre");E.className="__code__",E.innerHTML=b,f.appendChild(E)}return}}if(e.inline){f.textContent=g;return}const v=f.querySelector(".__code__");if(v)v.textContent=g;else{const b=document.createElement("pre");b.className="__code__",b.textContent=g,f.innerHTML="",f.appendChild(b)}};ut(u),at(De(e,"language"),u),at(De(e,"code"),u),o||at(a,u);const d=ze("Code","-code",zB,Gp,e,n),c=T(()=>{const{common:{cubicBezierEaseInOut:f,fontFamilyMono:p},self:{textColor:g,fontSize:v,fontWeightStrong:b,lineNumberTextColor:x,"mono-3":E,"hue-1":y,"hue-2":k,"hue-3":F,"hue-4":C,"hue-5":A,"hue-5-2":P,"hue-6":B,"hue-6-2":W}}=d.value,{internalFontSize:N}=e;return{"--n-font-size":N?`${N}px`:v,"--n-font-family":p,"--n-font-weight-strong":b,"--n-bezier":f,"--n-text-color":g,"--n-mono-3":E,"--n-hue-1":y,"--n-hue-2":k,"--n-hue-3":F,"--n-hue-4":C,"--n-hue-5":A,"--n-hue-5-2":P,"--n-hue-6":B,"--n-hue-6-2":W,"--n-line-number-text-color":x}}),h=r?vt("code",T(()=>`${e.internalFontSize||"a"}`),c,e):void 0;return{mergedClsPrefix:n,codeRef:i,mergedShowLineNumbers:s,lineNumbers:T(()=>{let f=1;const p=[];let g=!1;for(const v of e.code)v===` +`?(g=!0,p.push(f++)):g=!1;return g||p.push(f++),p.join(` +`)}),cssVars:r?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:o,wordWrap:n,mergedShowLineNumbers:r,onRender:i}=this;return i==null||i(),m("code",{class:[`${o}-code`,this.themeClass,n&&`${o}-code--word-wrap`,r&&`${o}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},r?m("pre",{class:`${o}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function l5(e){const{fontWeight:t,textColor1:o,textColor2:n,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:r,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const s5={name:"Collapse",common:Ve,self:l5},HB={name:"Collapse",common:Ne,self:l5},NB=D("collapse","width: 100%;",[D("collapse-item",` + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + margin: var(--n-item-margin); + `,[Q("disabled",[Z("header","cursor: not-allowed;",[Z("header-main",` + color: var(--n-title-text-color-disabled); + `),D("collapse-item-arrow",` + color: var(--n-arrow-color-disabled); + `)])]),D("collapse-item","margin-left: 32px;"),V("&:first-child","margin-top: 0;"),V("&:first-child >",[Z("header","padding-top: 0;")]),Q("left-arrow-placement",[Z("header",[D("collapse-item-arrow","margin-right: 4px;")])]),Q("right-arrow-placement",[Z("header",[D("collapse-item-arrow","margin-left: 4px;")])]),Z("content-wrapper",[Z("content-inner","padding-top: 16px;"),Vp({duration:"0.15s"})]),Q("active",[Z("header",[Q("active",[D("collapse-item-arrow","transform: rotate(90deg);")])])]),V("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),Ft("disabled",[Q("trigger-area-main",[Z("header",[Z("header-main","cursor: pointer;"),D("collapse-item-arrow","cursor: default;")])]),Q("trigger-area-arrow",[Z("header",[D("collapse-item-arrow","cursor: pointer;")])]),Q("trigger-area-extra",[Z("header",[Z("header-extra","cursor: pointer;")])])]),Z("header",` + font-size: var(--n-title-font-size); + display: flex; + flex-wrap: nowrap; + align-items: center; + transition: color .3s var(--n-bezier); + position: relative; + padding: var(--n-title-padding); + color: var(--n-title-text-color); + `,[Z("header-main",` + display: flex; + flex-wrap: nowrap; + align-items: center; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + color: var(--n-title-text-color); + `),Z("header-extra",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),D("collapse-item-arrow",` + display: flex; + transition: + transform .15s var(--n-bezier), + color .3s var(--n-bezier); + font-size: 18px; + color: var(--n-arrow-color); + `)])])]),VB=Object.assign(Object.assign({},ze.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),u5="n-collapse",jB=xe({name:"Collapse",props:VB,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=M(e.defaultExpandedNames),a=T(()=>e.expandedNames),l=to(a,i),s=ze("Collapse","-collapse",NB,s5,e,o);function u(g){const{"onUpdate:expandedNames":v,onUpdateExpandedNames:b,onExpandedNamesChange:x}=e;b&&Pe(b,g),v&&Pe(v,g),x&&Pe(x,g),i.value=g}function d(g){const{onItemHeaderClick:v}=e;v&&Pe(v,g)}function c(g,v,b){const{accordion:x}=e,{value:E}=l;if(x)g?(u([v]),d({name:v,expanded:!0,event:b})):(u([]),d({name:v,expanded:!1,event:b}));else if(!Array.isArray(E))u([v]),d({name:v,expanded:!0,event:b});else{const y=E.slice(),k=y.findIndex(F=>v===F);~k?(y.splice(k,1),u(y),d({name:v,expanded:!1,event:b})):(y.push(v),u(y),d({name:v,expanded:!0,event:b}))}}et(u5,{props:e,mergedClsPrefixRef:o,expandedNamesRef:l,slots:t,toggleItem:c});const h=qt("Collapse",r,o),f=T(()=>{const{common:{cubicBezierEaseInOut:g},self:{titleFontWeight:v,dividerColor:b,titlePadding:x,titleTextColor:E,titleTextColorDisabled:y,textColor:k,arrowColor:F,fontSize:C,titleFontSize:A,arrowColorDisabled:P,itemMargin:B}}=s.value;return{"--n-font-size":C,"--n-bezier":g,"--n-text-color":k,"--n-divider-color":b,"--n-title-padding":x,"--n-title-font-size":A,"--n-title-text-color":E,"--n-title-text-color-disabled":y,"--n-title-font-weight":v,"--n-arrow-color":F,"--n-arrow-color-disabled":P,"--n-item-margin":B}}),p=n?vt("collapse",void 0,f,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:o,cssVars:n?void 0:f,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),WB=xe({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Ix(De(e,"show"))}},render(){return m(Ds,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:o,clsPrefix:n}=this,r=t==="show"&&o,i=m("div",{class:`${n}-collapse-item__content-wrapper`},m("div",{class:`${n}-collapse-item__content-inner`},this.$slots));return r?Po(i,[[bn,e]]):e?i:null}})}}),UB={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},KB=xe({name:"CollapseItem",props:UB,setup(e){const{mergedRtlRef:t}=nt(e),o=ii(),n=gt(()=>{var c;return(c=e.name)!==null&&c!==void 0?c:o}),r=Oe(u5);r||yr("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=r,u=T(()=>{const{value:c}=i;if(Array.isArray(c)){const{value:h}=n;return!~c.findIndex(f=>f===h)}else if(c){const{value:h}=n;return h!==c}return!0});return{rtlEnabled:qt("Collapse",t,l),collapseSlots:s,randomName:o,mergedClsPrefix:l,collapsed:u,triggerAreas:De(a,"triggerAreas"),mergedDisplayDirective:T(()=>{const{displayDirective:c}=e;return c||a.displayDirective}),arrowPlacement:T(()=>a.arrowPlacement),handleClick(c){let h="main";Ko(c,"arrow")&&(h="arrow"),Ko(c,"extra")&&(h="extra"),a.triggerAreas.includes(h)&&r&&!e.disabled&&r.toggleItem(u.value,n.value,c)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:o,collapsed:n,mergedDisplayDirective:r,mergedClsPrefix:i,disabled:a,triggerAreas:l}=this,s=Xf(t.header,{collapsed:n},()=>[this.title]),u=t["header-extra"]||e["header-extra"],d=t.arrow||e.arrow;return m("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${o}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!n&&`${i}-collapse-item--active`,l.map(c=>`${i}-collapse-item--trigger-area-${c}`)]},m("div",{class:[`${i}-collapse-item__header`,!n&&`${i}-collapse-item__header--active`]},m("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},o==="right"&&s,m("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Xf(d,{collapsed:n},()=>{var c;return[m(Ut,{clsPrefix:i},{default:(c=e.expandIcon)!==null&&c!==void 0?c:()=>this.rtlEnabled?m(FM,null):m(zp,null)})]})),o==="left"&&s),_4(u,{collapsed:n},c=>m("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},c))),m(WB,{clsPrefix:i,displayDirective:r,show:!n},t))}});function d5(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const GB={name:"CollapseTransition",common:Ve,self:d5},qB={name:"CollapseTransition",common:Ne,self:d5},ZB={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(xn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},qp=xe({name:"ConfigProvider",alias:["App"],props:ZB,setup(e){const t=Oe(ln,null),o=T(()=>{const{theme:g}=e;if(g===null)return;const v=t==null?void 0:t.mergedThemeRef.value;return g===void 0?v:v===void 0?g:Object.assign({},v,g)}),n=T(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const v=t==null?void 0:t.mergedThemeOverridesRef.value;return v===void 0?g:Si({},v,g)}}}),r=gt(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),i=gt(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),a=T(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),l=T(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),s=T(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:td}),u=T(()=>{var g;const{rtl:v}=e;if(v===void 0)return t==null?void 0:t.mergedRtlRef.value;const b={};for(const x of v)b[x.name]=Kl(x),(g=x.peers)===null||g===void 0||g.forEach(E=>{E.name in b||(b[E.name]=Kl(E))});return b}),d=T(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),c=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),f=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),p=T(()=>{const{value:g}=o,{value:v}=n,b=v&&Object.keys(v).length!==0,x=g==null?void 0:g.name;return x?b?`${x}-${Yl(JSON.stringify(n.value))}`:x:b?Yl(JSON.stringify(n.value)):""});return et(ln,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:u,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:s,mergedLocaleRef:T(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:T(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:T(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedKatexRef:T(()=>{const{katex:g}=e;return g===void 0?t==null?void 0:t.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:n,inlineThemeDisabled:c||!1,preflightStyleDisabled:h||!1,styleMountTarget:f}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:r,mergedTheme:o,mergedThemeOverrides:n}},render(){var e,t,o,n;return this.abstract?(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o):m(this.as||this.tag,{class:`${this.mergedClsPrefix||td}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),c5={name:"Popselect",common:Ne,peers:{Popover:Ji,InternalSelectMenu:Is}};function XB(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const jd={name:"Popselect",common:Ve,peers:{Popover:si,InternalSelectMenu:Ua},self:XB},f5="n-popselect",YB=D("popselect-menu",` + box-shadow: var(--n-menu-box-shadow); +`),Zp={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},ev=ws(Zp),QB=xe({name:"PopselectPanel",props:Zp,setup(e){const t=Oe(f5),{mergedClsPrefixRef:o,inlineThemeDisabled:n}=nt(e),r=ze("Popselect","-pop-select",YB,jd,t.props,o),i=T(()=>Hd(e.options,BC("value","children")));function a(h,f){const{onUpdateValue:p,"onUpdate:value":g,onChange:v}=e;p&&Pe(p,h,f),g&&Pe(g,h,f),v&&Pe(v,h,f)}function l(h){u(h.key)}function s(h){!Ko(h,"action")&&!Ko(h,"empty")&&!Ko(h,"header")&&h.preventDefault()}function u(h){const{value:{getNode:f}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let v=!0;e.value.forEach(b=>{if(b===h){v=!1;return}const x=f(b);x&&(p.push(x.key),g.push(x.rawNode))}),v&&(p.push(h),g.push(f(h).rawNode)),a(p,g)}else{const p=f(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=f(h);p&&a(h,p.rawNode);const{"onUpdate:show":g,onUpdateShow:v}=t.props;g&&Pe(g,!1),v&&Pe(v,!1),t.setShow(!1)}Rt(()=>{t.syncPosition()})}at(De(e,"options"),()=>{Rt(()=>{t.syncPosition()})});const d=T(()=>{const{self:{menuBoxShadow:h}}=r.value;return{"--n-menu-box-shadow":h}}),c=n?vt("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:n?void 0:d,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m(bC,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),JB=Object.assign(Object.assign(Object.assign(Object.assign({},ze.props),Ki(Da,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Da.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Zp),eD=xe({name:"Popselect",props:JB,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=ze("Popselect","-popselect",void 0,jd,e,t),n=M(null);function r(){var l;(l=n.value)===null||l===void 0||l.syncPosition()}function i(l){var s;(s=n.value)===null||s===void 0||s.setShow(l)}return et(f5,{props:e,mergedThemeRef:o,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:n,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,n,r,i,a)=>{const{$attrs:l}=this;return m(QB,Object.assign({},l,{class:[l.class,o],style:[l.style,...r]},ei(this.$props,ev),{ref:_x(n),onMouseenter:Bl([i,l.onMouseenter]),onMouseleave:Bl([a,l.onMouseleave])}),{header:()=>{var s,u;return(u=(s=this.$slots).header)===null||u===void 0?void 0:u.call(s)},action:()=>{var s,u;return(u=(s=this.$slots).action)===null||u===void 0?void 0:u.call(s)},empty:()=>{var s,u;return(u=(s=this.$slots).empty)===null||u===void 0?void 0:u.call(s)}})}};return m(Ka,Object.assign({},Ki(this.$props,ev),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}});function h5(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Xp={name:"Select",common:Ve,peers:{InternalSelection:Nd,InternalSelectMenu:Ua},self:h5},p5={name:"Select",common:Ne,peers:{InternalSelection:Np,InternalSelectMenu:Is},self:h5},tD=V([D("select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + `),D("select-menu",` + margin: 4px 0; + box-shadow: var(--n-menu-box-shadow); + `,[An({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),oD=Object.assign(Object.assign({},ze.props),{to:Mo.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),nD=xe({name:"Select",props:oD,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:n,inlineThemeDisabled:r}=nt(e),i=ze("Select","-select",tD,Xp,e,t),a=M(e.defaultValue),l=De(e,"value"),s=to(l,a),u=M(!1),d=M(""),c=Jl(e,["items","options"]),h=M([]),f=M([]),p=T(()=>f.value.concat(h.value).concat(c.value)),g=T(()=>{const{filter:J}=e;if(J)return J;const{labelField:me,valueField:Me}=e;return(He,We)=>{if(!We)return!1;const Ge=We[me];if(typeof Ge=="string")return qc(He,Ge);const qe=We[Me];return typeof qe=="string"?qc(He,qe):typeof qe=="number"?qc(He,String(qe)):!1}}),v=T(()=>{if(e.remote)return c.value;{const{value:J}=p,{value:me}=d;return!me.length||!e.filterable?J:t9(J,g.value,me,e.childrenField)}}),b=T(()=>{const{valueField:J,childrenField:me}=e,Me=BC(J,me);return Hd(v.value,Me)}),x=T(()=>o9(p.value,e.valueField,e.childrenField)),E=M(!1),y=to(De(e,"show"),E),k=M(null),F=M(null),C=M(null),{localeRef:A}=Er("Select"),P=T(()=>{var J;return(J=e.placeholder)!==null&&J!==void 0?J:A.value.placeholder}),B=[],W=M(new Map),N=T(()=>{const{fallbackOption:J}=e;if(J===void 0){const{labelField:me,valueField:Me}=e;return He=>({[me]:String(He),[Me]:He})}return J===!1?!1:me=>Object.assign(J(me),{value:me})});function K(J){const me=e.remote,{value:Me}=W,{value:He}=x,{value:We}=N,Ge=[];return J.forEach(qe=>{if(He.has(qe))Ge.push(He.get(qe));else if(me&&Me.has(qe))Ge.push(Me.get(qe));else if(We){const ot=We(qe);ot&&Ge.push(ot)}}),Ge}const H=T(()=>{if(e.multiple){const{value:J}=s;return Array.isArray(J)?K(J):[]}return null}),I=T(()=>{const{value:J}=s;return!e.multiple&&!Array.isArray(J)?J===null?null:K([J])[0]||null:null}),O=Dn(e),{mergedSizeRef:R,mergedDisabledRef:z,mergedStatusRef:_}=O;function oe(J,me){const{onChange:Me,"onUpdate:value":He,onUpdateValue:We}=e,{nTriggerFormChange:Ge,nTriggerFormInput:qe}=O;Me&&Pe(Me,J,me),We&&Pe(We,J,me),He&&Pe(He,J,me),a.value=J,Ge(),qe()}function G(J){const{onBlur:me}=e,{nTriggerFormBlur:Me}=O;me&&Pe(me,J),Me()}function j(){const{onClear:J}=e;J&&Pe(J)}function ue(J){const{onFocus:me,showOnFocus:Me}=e,{nTriggerFormFocus:He}=O;me&&Pe(me,J),He(),Me&&Ce()}function he(J){const{onSearch:me}=e;me&&Pe(me,J)}function _e(J){const{onScroll:me}=e;me&&Pe(me,J)}function pe(){var J;const{remote:me,multiple:Me}=e;if(me){const{value:He}=W;if(Me){const{valueField:We}=e;(J=H.value)===null||J===void 0||J.forEach(Ge=>{He.set(Ge[We],Ge)})}else{const We=I.value;We&&He.set(We[e.valueField],We)}}}function fe(J){const{onUpdateShow:me,"onUpdate:show":Me}=e;me&&Pe(me,J),Me&&Pe(Me,J),E.value=J}function Ce(){z.value||(fe(!0),E.value=!0,e.filterable&&Xe())}function Y(){fe(!1)}function q(){d.value="",f.value=B}const Se=M(!1);function je(){e.filterable&&(Se.value=!0)}function U(){e.filterable&&(Se.value=!1,y.value||q())}function te(){z.value||(y.value?e.filterable?Xe():Y():Ce())}function ge(J){var me,Me;!((Me=(me=C.value)===null||me===void 0?void 0:me.selfRef)===null||Me===void 0)&&Me.contains(J.relatedTarget)||(u.value=!1,G(J),Y())}function we(J){ue(J),u.value=!0}function le(){u.value=!0}function re(J){var me;!((me=k.value)===null||me===void 0)&&me.$el.contains(J.relatedTarget)||(u.value=!1,G(J),Y())}function ce(){var J;(J=k.value)===null||J===void 0||J.focus(),Y()}function ee(J){var me;y.value&&(!((me=k.value)===null||me===void 0)&&me.$el.contains(Oi(J))||Y())}function ie(J){if(!Array.isArray(J))return[];if(N.value)return Array.from(J);{const{remote:me}=e,{value:Me}=x;if(me){const{value:He}=W;return J.filter(We=>Me.has(We)||He.has(We))}else return J.filter(He=>Me.has(He))}}function de(J){ae(J.rawNode)}function ae(J){if(z.value)return;const{tag:me,remote:Me,clearFilterAfterSelect:He,valueField:We}=e;if(me&&!Me){const{value:Ge}=f,qe=Ge[0]||null;if(qe){const ot=h.value;ot.length?ot.push(qe):h.value=[qe],f.value=B}}if(Me&&W.value.set(J[We],J),e.multiple){const Ge=ie(s.value),qe=Ge.findIndex(ot=>ot===J[We]);if(~qe){if(Ge.splice(qe,1),me&&!Me){const ot=X(J[We]);~ot&&(h.value.splice(ot,1),He&&(d.value=""))}}else Ge.push(J[We]),He&&(d.value="");oe(Ge,K(Ge))}else{if(me&&!Me){const Ge=X(J[We]);~Ge?h.value=[h.value[Ge]]:h.value=B}st(),Y(),oe(J[We],J)}}function X(J){return h.value.findIndex(Me=>Me[e.valueField]===J)}function se(J){y.value||Ce();const{value:me}=J.target;d.value=me;const{tag:Me,remote:He}=e;if(he(me),Me&&!He){if(!me){f.value=B;return}const{onCreate:We}=e,Ge=We?We(me):{[e.labelField]:me,[e.valueField]:me},{valueField:qe,labelField:ot}=e;c.value.some(yt=>yt[qe]===Ge[qe]||yt[ot]===Ge[ot])||h.value.some(yt=>yt[qe]===Ge[qe]||yt[ot]===Ge[ot])?f.value=B:f.value=[Ge]}}function ve(J){J.stopPropagation();const{multiple:me}=e;!me&&e.filterable&&Y(),j(),me?oe([],[]):oe(null,null)}function Te(J){!Ko(J,"action")&&!Ko(J,"empty")&&!Ko(J,"header")&&J.preventDefault()}function Ke(J){_e(J)}function Qe(J){var me,Me,He,We,Ge;if(!e.keyboard){J.preventDefault();return}switch(J.key){case" ":if(e.filterable)break;J.preventDefault();case"Enter":if(!(!((me=k.value)===null||me===void 0)&&me.isComposing)){if(y.value){const qe=(Me=C.value)===null||Me===void 0?void 0:Me.getPendingTmNode();qe?de(qe):e.filterable||(Y(),st())}else if(Ce(),e.tag&&Se.value){const qe=f.value[0];if(qe){const ot=qe[e.valueField],{value:yt}=s;e.multiple&&Array.isArray(yt)&&yt.includes(ot)||ae(qe)}}}J.preventDefault();break;case"ArrowUp":if(J.preventDefault(),e.loading)return;y.value&&((He=C.value)===null||He===void 0||He.prev());break;case"ArrowDown":if(J.preventDefault(),e.loading)return;y.value?(We=C.value)===null||We===void 0||We.next():Ce();break;case"Escape":y.value&&(Q4(J),Y()),(Ge=k.value)===null||Ge===void 0||Ge.focus();break}}function st(){var J;(J=k.value)===null||J===void 0||J.focus()}function Xe(){var J;(J=k.value)===null||J===void 0||J.focusInput()}function pt(){var J;y.value&&((J=F.value)===null||J===void 0||J.syncPosition())}pe(),at(De(e,"options"),pe);const Ye={focus:()=>{var J;(J=k.value)===null||J===void 0||J.focus()},focusInput:()=>{var J;(J=k.value)===null||J===void 0||J.focusInput()},blur:()=>{var J;(J=k.value)===null||J===void 0||J.blur()},blurInput:()=>{var J;(J=k.value)===null||J===void 0||J.blurInput()}},Le=T(()=>{const{self:{menuBoxShadow:J}}=i.value;return{"--n-menu-box-shadow":J}}),tt=r?vt("select",void 0,Le,e):void 0;return Object.assign(Object.assign({},Ye),{mergedStatus:_,mergedClsPrefix:t,mergedBordered:o,namespace:n,treeMate:b,isMounted:Cr(),triggerRef:k,menuRef:C,pattern:d,uncontrolledShow:E,mergedShow:y,adjustedTo:Mo(e),uncontrolledValue:a,mergedValue:s,followerRef:F,localizedPlaceholder:P,selectedOption:I,selectedOptions:H,mergedSize:R,mergedDisabled:z,focused:u,activeWithoutMenuOpen:Se,inlineThemeDisabled:r,onTriggerInputFocus:je,onTriggerInputBlur:U,handleTriggerOrMenuResize:pt,handleMenuFocus:le,handleMenuBlur:re,handleMenuTabOut:ce,handleTriggerClick:te,handleToggle:de,handleDeleteOption:ae,handlePatternInput:se,handleClear:ve,handleTriggerBlur:ge,handleTriggerFocus:we,handleKeydown:Qe,handleMenuAfterLeave:q,handleMenuClickOutside:ee,handleMenuScroll:Ke,handleMenuKeydown:Qe,handleMenuMousedown:Te,mergedTheme:i,cssVars:r?void 0:Le,themeClass:tt==null?void 0:tt.themeClass,onRender:tt==null?void 0:tt.onRender})},render(){return m("div",{class:`${this.mergedClsPrefix}-select`},m(ks,null,{default:()=>[m(_s,null,{default:()=>m(NA,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),m(Fs,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Mo.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>m(po,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),Po(m(bC,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var n,r;return[(r=(n=this.$slots).empty)===null||r===void 0?void 0:r.call(n)]},header:()=>{var n,r;return[(r=(n=this.$slots).header)===null||r===void 0?void 0:r.call(n)]},action:()=>{var n,r;return[(r=(n=this.$slots).action)===null||r===void 0?void 0:r.call(n)]}}),this.displayDirective==="show"?[[bn,this.mergedShow],[Li,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Li,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),rD={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function m5(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:u,fontSizeSmall:d,fontSizeMedium:c,heightTiny:h,heightSmall:f,heightMedium:p}=e;return Object.assign(Object.assign({},rD),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:r,itemTextColorActive:o,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:f,itemSizeLarge:p,itemFontSizeSmall:u,itemFontSizeMedium:d,itemFontSizeLarge:c,jumperFontSizeSmall:u,jumperFontSizeMedium:d,jumperFontSizeLarge:c,jumperTextColor:t,jumperTextColorDisabled:a})}const Yp={name:"Pagination",common:Ve,peers:{Select:Xp,Input:Xo,Popselect:jd},self:m5},g5={name:"Pagination",common:Ne,peers:{Select:p5,Input:Sn,Popselect:c5},self(e){const{primaryColor:t,opacity3:o}=e,n=Ae(t,{alpha:Number(o)}),r=m5(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},tv=` + background: var(--n-item-color-hover); + color: var(--n-item-text-color-hover); + border: var(--n-item-border-hover); +`,ov=[Q("button",` + background: var(--n-button-color-hover); + border: var(--n-button-border-hover); + color: var(--n-button-icon-color-hover); + `)],iD=D("pagination",` + display: flex; + vertical-align: middle; + font-size: var(--n-item-font-size); + flex-wrap: nowrap; +`,[D("pagination-prefix",` + display: flex; + align-items: center; + margin: var(--n-prefix-margin); + `),D("pagination-suffix",` + display: flex; + align-items: center; + margin: var(--n-suffix-margin); + `),V("> *:not(:first-child)",` + margin: var(--n-item-margin); + `),D("select",` + width: var(--n-select-width); + `),V("&.transition-disabled",[D("pagination-item","transition: none!important;")]),D("pagination-quick-jumper",` + white-space: nowrap; + display: flex; + color: var(--n-jumper-text-color); + transition: color .3s var(--n-bezier); + align-items: center; + font-size: var(--n-jumper-font-size); + `,[D("input",` + margin: var(--n-input-margin); + width: var(--n-input-width); + `)]),D("pagination-item",` + position: relative; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + min-width: var(--n-item-size); + height: var(--n-item-size); + padding: var(--n-item-padding); + background-color: var(--n-item-color); + color: var(--n-item-text-color); + border-radius: var(--n-item-border-radius); + border: var(--n-item-border); + fill: var(--n-button-icon-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + fill .3s var(--n-bezier); + `,[Q("button",` + background: var(--n-button-color); + color: var(--n-button-icon-color); + border: var(--n-button-border); + padding: 0; + `,[D("base-icon",` + font-size: var(--n-button-icon-size); + `)]),Ft("disabled",[Q("hover",tv,ov),V("&:hover",tv,ov),V("&:active",` + background: var(--n-item-color-pressed); + color: var(--n-item-text-color-pressed); + border: var(--n-item-border-pressed); + `,[Q("button",` + background: var(--n-button-color-pressed); + border: var(--n-button-border-pressed); + color: var(--n-button-icon-color-pressed); + `)]),Q("active",` + background: var(--n-item-color-active); + color: var(--n-item-text-color-active); + border: var(--n-item-border-active); + `,[V("&:hover",` + background: var(--n-item-color-active-hover); + `)])]),Q("disabled",` + cursor: not-allowed; + color: var(--n-item-text-color-disabled); + `,[Q("active, button",` + background-color: var(--n-item-color-disabled); + border: var(--n-item-border-disabled); + `)])]),Q("disabled",` + cursor: not-allowed; + `,[D("pagination-quick-jumper",` + color: var(--n-jumper-text-color-disabled); + `)]),Q("simple",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[D("pagination-quick-jumper",[D("input",` + margin: 0; + `)])])]);function v5(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const n=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof n=="number"?n:(n==null?void 0:n.value)||10}function aD(e,t,o,n){let r=!1,i=!1,a=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,u=t;let d=e,c=e;const h=(o-5)/2;c+=Math.ceil(h),c=Math.min(Math.max(c,s+o-3),u-2),d-=Math.floor(h),d=Math.max(Math.min(d,u-o+3),s+2);let f=!1,p=!1;d>s+2&&(f=!0),c<u-2&&(p=!0);const g=[];g.push({type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}),f?(r=!0,a=d-1,g.push({type:"fast-backward",active:!1,label:void 0,options:n?nv(s+1,d-1):null})):u>=s+1&&g.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let v=d;v<=c;++v)g.push({type:"page",label:v,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===v});return p?(i=!0,l=c+1,g.push({type:"fast-forward",active:!1,label:void 0,options:n?nv(c+1,u-1):null})):c===u-2&&g[g.length-1].label!==u-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:u-1,active:e===u-1}),g[g.length-1].label!==u&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:u,active:e===u}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:a,fastForwardTo:l,items:g}}function nv(e,t){const o=[];for(let n=e;n<=t;++n)o.push({label:`${n}`,value:n});return o}const lD=Object.assign(Object.assign({},ze.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Mo.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),sD=xe({name:"Pagination",props:lD,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=ze("Pagination","-pagination",iD,Yp,e,o),{localeRef:a}=Er("Pagination"),l=M(null),s=M(e.defaultPage),u=M(v5(e)),d=to(De(e,"page"),s),c=to(De(e,"pageSize"),u),h=T(()=>{const{itemCount:Y}=e;if(Y!==void 0)return Math.max(1,Math.ceil(Y/c.value));const{pageCount:q}=e;return q!==void 0?Math.max(q,1):1}),f=M("");kt(()=>{e.simple,f.value=String(d.value)});const p=M(!1),g=M(!1),v=M(!1),b=M(!1),x=()=>{e.disabled||(p.value=!0,I())},E=()=>{e.disabled||(p.value=!1,I())},y=()=>{g.value=!0,I()},k=()=>{g.value=!1,I()},F=Y=>{O(Y)},C=T(()=>aD(d.value,h.value,e.pageSlot,e.showQuickJumpDropdown));kt(()=>{C.value.hasFastBackward?C.value.hasFastForward||(p.value=!1,v.value=!1):(g.value=!1,b.value=!1)});const A=T(()=>{const Y=a.value.selectionSuffix;return e.pageSizes.map(q=>typeof q=="number"?{label:`${q} / ${Y}`,value:q}:q)}),P=T(()=>{var Y,q;return((q=(Y=t==null?void 0:t.value)===null||Y===void 0?void 0:Y.Pagination)===null||q===void 0?void 0:q.inputSize)||xg(e.size)}),B=T(()=>{var Y,q;return((q=(Y=t==null?void 0:t.value)===null||Y===void 0?void 0:Y.Pagination)===null||q===void 0?void 0:q.selectSize)||xg(e.size)}),W=T(()=>(d.value-1)*c.value),N=T(()=>{const Y=d.value*c.value-1,{itemCount:q}=e;return q!==void 0&&Y>q-1?q-1:Y}),K=T(()=>{const{itemCount:Y}=e;return Y!==void 0?Y:(e.pageCount||1)*c.value}),H=qt("Pagination",r,o);function I(){Rt(()=>{var Y;const{value:q}=l;q&&(q.classList.add("transition-disabled"),(Y=l.value)===null||Y===void 0||Y.offsetWidth,q.classList.remove("transition-disabled"))})}function O(Y){if(Y===d.value)return;const{"onUpdate:page":q,onUpdatePage:Se,onChange:je,simple:U}=e;q&&Pe(q,Y),Se&&Pe(Se,Y),je&&Pe(je,Y),s.value=Y,U&&(f.value=String(Y))}function R(Y){if(Y===c.value)return;const{"onUpdate:pageSize":q,onUpdatePageSize:Se,onPageSizeChange:je}=e;q&&Pe(q,Y),Se&&Pe(Se,Y),je&&Pe(je,Y),u.value=Y,h.value<d.value&&O(h.value)}function z(){if(e.disabled)return;const Y=Math.min(d.value+1,h.value);O(Y)}function _(){if(e.disabled)return;const Y=Math.max(d.value-1,1);O(Y)}function oe(){if(e.disabled)return;const Y=Math.min(C.value.fastForwardTo,h.value);O(Y)}function G(){if(e.disabled)return;const Y=Math.max(C.value.fastBackwardTo,1);O(Y)}function j(Y){R(Y)}function ue(){const Y=Number.parseInt(f.value);Number.isNaN(Y)||(O(Math.max(1,Math.min(Y,h.value))),e.simple||(f.value=""))}function he(){ue()}function _e(Y){if(!e.disabled)switch(Y.type){case"page":O(Y.label);break;case"fast-backward":G();break;case"fast-forward":oe();break}}function pe(Y){f.value=Y.replace(/\D+/g,"")}kt(()=>{d.value,c.value,I()});const fe=T(()=>{const{size:Y}=e,{self:{buttonBorder:q,buttonBorderHover:Se,buttonBorderPressed:je,buttonIconColor:U,buttonIconColorHover:te,buttonIconColorPressed:ge,itemTextColor:we,itemTextColorHover:le,itemTextColorPressed:re,itemTextColorActive:ce,itemTextColorDisabled:ee,itemColor:ie,itemColorHover:de,itemColorPressed:ae,itemColorActive:X,itemColorActiveHover:se,itemColorDisabled:ve,itemBorder:Te,itemBorderHover:Ke,itemBorderPressed:Qe,itemBorderActive:st,itemBorderDisabled:Xe,itemBorderRadius:pt,jumperTextColor:Ye,jumperTextColorDisabled:Le,buttonColor:tt,buttonColorHover:J,buttonColorPressed:me,[ke("itemPadding",Y)]:Me,[ke("itemMargin",Y)]:He,[ke("inputWidth",Y)]:We,[ke("selectWidth",Y)]:Ge,[ke("inputMargin",Y)]:qe,[ke("selectMargin",Y)]:ot,[ke("jumperFontSize",Y)]:yt,[ke("prefixMargin",Y)]:Bt,[ke("suffixMargin",Y)]:_t,[ke("itemSize",Y)]:xo,[ke("buttonIconSize",Y)]:Ao,[ke("itemFontSize",Y)]:Bo,[`${ke("itemMargin",Y)}Rtl`]:No,[`${ke("inputMargin",Y)}Rtl`]:Vo},common:{cubicBezierEaseInOut:un}}=i.value;return{"--n-prefix-margin":Bt,"--n-suffix-margin":_t,"--n-item-font-size":Bo,"--n-select-width":Ge,"--n-select-margin":ot,"--n-input-width":We,"--n-input-margin":qe,"--n-input-margin-rtl":Vo,"--n-item-size":xo,"--n-item-text-color":we,"--n-item-text-color-disabled":ee,"--n-item-text-color-hover":le,"--n-item-text-color-active":ce,"--n-item-text-color-pressed":re,"--n-item-color":ie,"--n-item-color-hover":de,"--n-item-color-disabled":ve,"--n-item-color-active":X,"--n-item-color-active-hover":se,"--n-item-color-pressed":ae,"--n-item-border":Te,"--n-item-border-hover":Ke,"--n-item-border-disabled":Xe,"--n-item-border-active":st,"--n-item-border-pressed":Qe,"--n-item-padding":Me,"--n-item-border-radius":pt,"--n-bezier":un,"--n-jumper-font-size":yt,"--n-jumper-text-color":Ye,"--n-jumper-text-color-disabled":Le,"--n-item-margin":He,"--n-item-margin-rtl":No,"--n-button-icon-size":Ao,"--n-button-icon-color":U,"--n-button-icon-color-hover":te,"--n-button-icon-color-pressed":ge,"--n-button-color-hover":J,"--n-button-color":tt,"--n-button-color-pressed":me,"--n-button-border":q,"--n-button-border-hover":Se,"--n-button-border-pressed":je}}),Ce=n?vt("pagination",T(()=>{let Y="";const{size:q}=e;return Y+=q[0],Y}),fe,e):void 0;return{rtlEnabled:H,mergedClsPrefix:o,locale:a,selfRef:l,mergedPage:d,pageItems:T(()=>C.value.items),mergedItemCount:K,jumperValue:f,pageSizeOptions:A,mergedPageSize:c,inputSize:P,selectSize:B,mergedTheme:i,mergedPageCount:h,startIndex:W,endIndex:N,showFastForwardMenu:v,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:F,handleFastForwardMouseenter:x,handleFastForwardMouseleave:E,handleFastBackwardMouseenter:y,handleFastBackwardMouseleave:k,handleJumperInput:pe,handleBackwardClick:_,handleForwardClick:z,handlePageItemClick:_e,handleSizePickerChange:j,handleQuickJumperChange:he,cssVars:n?void 0:fe,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:n,mergedPage:r,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:u,locale:d,inputSize:c,selectSize:h,mergedPageSize:f,pageSizeOptions:p,jumperValue:g,simple:v,prev:b,next:x,prefix:E,suffix:y,label:k,goto:F,handleJumperInput:C,handleSizePickerChange:A,handleBackwardClick:P,handlePageItemClick:B,handleForwardClick:W,handleQuickJumperChange:N,onRender:K}=this;K==null||K();const H=e.prefix||E,I=e.suffix||y,O=b||e.prev,R=x||e.next,z=k||e.label;return m("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,v&&`${t}-pagination--simple`],style:n},H?m("div",{class:`${t}-pagination-prefix`},H({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(_=>{switch(_){case"pages":return m(ft,null,m("div",{class:[`${t}-pagination-item`,!O&&`${t}-pagination-item--button`,(r<=1||r>i||o)&&`${t}-pagination-item--disabled`],onClick:P},O?O({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):m(Ut,{clsPrefix:t},{default:()=>this.rtlEnabled?m(H0,null):m(z0,null)})),v?m(ft,null,m("div",{class:`${t}-pagination-quick-jumper`},m(rn,{value:g,onUpdateValue:C,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:N}))," /"," ",i):a.map((oe,G)=>{let j,ue,he;const{type:_e}=oe;switch(_e){case"page":const fe=oe.label;z?j=z({type:"page",node:fe,active:oe.active}):j=fe;break;case"fast-forward":const Ce=this.fastForwardActive?m(Ut,{clsPrefix:t},{default:()=>this.rtlEnabled?m(O0,null):m(L0,null)}):m(Ut,{clsPrefix:t},{default:()=>m(N0,null)});z?j=z({type:"fast-forward",node:Ce,active:this.fastForwardActive||this.showFastForwardMenu}):j=Ce,ue=this.handleFastForwardMouseenter,he=this.handleFastForwardMouseleave;break;case"fast-backward":const Y=this.fastBackwardActive?m(Ut,{clsPrefix:t},{default:()=>this.rtlEnabled?m(L0,null):m(O0,null)}):m(Ut,{clsPrefix:t},{default:()=>m(N0,null)});z?j=z({type:"fast-backward",node:Y,active:this.fastBackwardActive||this.showFastBackwardMenu}):j=Y,ue=this.handleFastBackwardMouseenter,he=this.handleFastBackwardMouseleave;break}const pe=m("div",{key:G,class:[`${t}-pagination-item`,oe.active&&`${t}-pagination-item--active`,_e!=="page"&&(_e==="fast-backward"&&this.showFastBackwardMenu||_e==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,_e==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{B(oe)},onMouseenter:ue,onMouseleave:he},j);if(_e==="page"&&!oe.mayBeFastBackward&&!oe.mayBeFastForward)return pe;{const fe=oe.type==="page"?oe.mayBeFastBackward?"fast-backward":"fast-forward":oe.type;return oe.type!=="page"&&!oe.options?pe:m(eD,{to:this.to,key:fe,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:u.peers.Popselect,themeOverrides:u.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:_e==="page"?!1:_e==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Ce=>{_e!=="page"&&(Ce?_e==="fast-backward"?this.showFastBackwardMenu=Ce:this.showFastForwardMenu=Ce:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:oe.type!=="page"&&oe.options?oe.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>pe})}}),m("div",{class:[`${t}-pagination-item`,!R&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||o}],onClick:W},R?R({page:r,pageSize:f,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):m(Ut,{clsPrefix:t},{default:()=>this.rtlEnabled?m(z0,null):m(H0,null)})));case"size-picker":return!v&&l?m(nD,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:f,disabled:o,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:A})):null;case"quick-jumper":return!v&&s?m("div",{class:`${t}-pagination-quick-jumper`},F?F():wo(this.$slots.goto,()=>[d.goto]),m(rn,{value:g,onUpdateValue:C,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:N})):null;default:return null}}),I?m("div",{class:`${t}-pagination-suffix`},I({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),b5={padding:"8px 14px"},Wd={name:"Tooltip",common:Ne,peers:{Popover:Ji},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},b5),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function uD(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},b5),{borderRadius:t,boxShadow:o,color:Ue(n,"rgba(0, 0, 0, .85)"),textColor:n})}const zs={name:"Tooltip",common:Ve,peers:{Popover:si},self:uD},x5={name:"Ellipsis",common:Ne,peers:{Tooltip:Wd}},Qp={name:"Ellipsis",common:Ve,peers:{Tooltip:zs}},y5={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},C5={name:"Radio",common:Ne,self(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},y5),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Ae(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Ae(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}};function dD(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},y5),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Ae(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Ae(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}const Ud={name:"Radio",common:Ve,self:dD},cD={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function w5(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:c,heightSmall:h,heightMedium:f,heightLarge:p,heightHuge:g,textColor3:v,opacityDisabled:b}=e;return Object.assign(Object.assign({},cD),{optionHeightSmall:h,optionHeightMedium:f,optionHeightLarge:p,optionHeightHuge:g,borderRadius:l,fontSizeSmall:s,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:c,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:Ae(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const Kd={name:"Dropdown",common:Ve,peers:{Popover:si},self:w5},Jp={name:"Dropdown",common:Ne,peers:{Popover:Ji},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=w5(e);return r.colorInverted=n,r.optionColorActive=Ae(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},fD={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function S5(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:u,fontWeightStrong:d,borderRadius:c,lineHeight:h,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,dividerColor:v,heightSmall:b,opacityDisabled:x,tableColorStriped:E}=e;return Object.assign(Object.assign({},fD),{actionDividerColor:v,lineHeight:h,borderRadius:c,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ue(t,v),tdColorHover:Ue(t,l),tdColorSorting:Ue(t,l),tdColorStriped:Ue(t,E),thColor:Ue(t,a),thColorHover:Ue(Ue(t,a),l),thColorSorting:Ue(Ue(t,a),l),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:u,borderColorModal:Ue(o,v),tdColorHoverModal:Ue(o,l),tdColorSortingModal:Ue(o,l),tdColorStripedModal:Ue(o,E),thColorModal:Ue(o,a),thColorHoverModal:Ue(Ue(o,a),l),thColorSortingModal:Ue(Ue(o,a),l),tdColorModal:o,borderColorPopover:Ue(n,v),tdColorHoverPopover:Ue(n,l),tdColorSortingPopover:Ue(n,l),tdColorStripedPopover:Ue(n,E),thColorPopover:Ue(n,a),thColorHoverPopover:Ue(Ue(n,a),l),thColorSortingPopover:Ue(Ue(n,a),l),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:u,loadingSize:b,opacityLoading:x})}const E5={name:"DataTable",common:Ve,peers:{Button:Ho,Checkbox:ea,Radio:Ud,Pagination:Yp,Scrollbar:Lo,Empty:tr,Popover:si,Ellipsis:Qp,Dropdown:Kd},self:S5},hD={name:"DataTable",common:Ne,peers:{Button:Yo,Checkbox:Ga,Radio:C5,Pagination:g5,Scrollbar:Zo,Empty:Qi,Popover:Ji,Ellipsis:x5,Dropdown:Jp},self(e){const t=S5(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},pD=Object.assign(Object.assign({},Da),ze.props),mD=xe({name:"Tooltip",props:pD,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=ze("Tooltip","-tooltip",void 0,zs,e,t),n=M(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:T(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return m(Ka,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),k5=D("ellipsis",{overflow:"hidden"},[Ft("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),Q("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),Q("cursor-pointer",` + cursor: pointer; + `)]);function mh(e){return`${e}-ellipsis--line-clamp`}function gh(e,t){return`${e}-ellipsis--cursor-${t}`}const _5=Object.assign(Object.assign({},ze.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),em=xe({name:"Ellipsis",inheritAttrs:!1,props:_5,setup(e,{slots:t,attrs:o}){const n=aC(),r=ze("Ellipsis","-ellipsis",k5,Qp,e,n),i=M(null),a=M(null),l=M(null),s=M(!1),u=T(()=>{const{lineClamp:v}=e,{value:b}=s;return v!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":v}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function d(){let v=!1;const{value:b}=s;if(b)return!0;const{value:x}=i;if(x){const{lineClamp:E}=e;if(f(x),E!==void 0)v=x.scrollHeight<=x.offsetHeight;else{const{value:y}=a;y&&(v=y.getBoundingClientRect().width<=x.getBoundingClientRect().width)}p(x,v)}return v}const c=T(()=>e.expandTrigger==="click"?()=>{var v;const{value:b}=s;b&&((v=l.value)===null||v===void 0||v.setShow(!1)),s.value=!b}:void 0);wd(()=>{var v;e.tooltip&&((v=l.value)===null||v===void 0||v.setShow(!1))});const h=()=>m("span",Object.assign({},bo(o,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?mh(n.value):void 0,e.expandTrigger==="click"?gh(n.value,"pointer"):void 0],style:u.value}),{ref:"triggerRef",onClick:c.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:m("span",{ref:"triggerInnerRef"},t));function f(v){if(!v)return;const b=u.value,x=mh(n.value);e.lineClamp!==void 0?g(v,x,"add"):g(v,x,"remove");for(const E in b)v.style[E]!==b[E]&&(v.style[E]=b[E])}function p(v,b){const x=gh(n.value,"pointer");e.expandTrigger==="click"&&!b?g(v,x,"add"):g(v,x,"remove")}function g(v,b,x){x==="add"?v.classList.contains(b)||v.classList.add(b):v.classList.contains(b)&&v.classList.remove(b)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:c,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:n}=this;if(t){const{mergedTheme:r}=this;return m(mD,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:o,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return o()}}),gD=xe({name:"PerformantEllipsis",props:_5,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const n=M(!1),r=aC();return kr("-ellipsis",k5,r),{mouseEntered:n,renderTrigger:()=>{const{lineClamp:a}=e,l=r.value;return m("span",Object.assign({},bo(t,{class:[`${l}-ellipsis`,a!==void 0?mh(l):void 0,e.expandTrigger==="click"?gh(l,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{n.value=!0}}),a?o:m("span",null,o))}}},render(){return this.mouseEntered?m(em,bo({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),vD=Object.assign(Object.assign({},ze.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),In="n-data-table",bD=xe({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),xD=xe({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=nt(),{mergedSortStateRef:o,mergedClsPrefixRef:n}=Oe(In),r=T(()=>o.value.find(s=>s.columnKey===e.column.key)),i=T(()=>r.value!==void 0),a=T(()=>{const{value:s}=r;return s&&i.value?s.order:!1}),l=T(()=>{var s,u;return((u=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||u===void 0?void 0:u.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:n,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:n}=this.column;return e?m(bD,{render:e,order:t}):m("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},n?n({order:t}):m(Ut,{clsPrefix:o},{default:()=>m(kM,null)}))}}),F5={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},R5="n-radio-group";function $5(e){const t=Oe(R5,null),o=Dn(e,{mergedSize(x){const{size:E}=e;if(E!==void 0)return E;if(t){const{mergedSizeRef:{value:y}}=t;if(y!==void 0)return y}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||t!=null&&t.disabledRef.value||x!=null&&x.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=M(null),a=M(null),l=M(e.defaultChecked),s=De(e,"checked"),u=to(s,l),d=gt(()=>t?t.valueRef.value===e.value:u.value),c=gt(()=>{const{name:x}=e;if(x!==void 0)return x;if(t)return t.nameRef.value}),h=M(!1);function f(){if(t){const{doUpdateValue:x}=t,{value:E}=e;Pe(x,E)}else{const{onUpdateChecked:x,"onUpdate:checked":E}=e,{nTriggerFormInput:y,nTriggerFormChange:k}=o;x&&Pe(x,!0),E&&Pe(E,!0),y(),k(),l.value=!0}}function p(){r.value||d.value||f()}function g(){p(),i.value&&(i.value.checked=d.value)}function v(){h.value=!1}function b(){h.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:nt(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:c,mergedDisabled:r,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:g,handleRadioInputBlur:v,handleRadioInputFocus:b}}const yD=D("radio",` + line-height: var(--n-label-line-height); + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + align-items: flex-start; + flex-wrap: nowrap; + font-size: var(--n-font-size); + word-break: break-word; +`,[Q("checked",[Z("dot",` + background-color: var(--n-color-active); + `)]),Z("dot-wrapper",` + position: relative; + flex-shrink: 0; + flex-grow: 0; + width: var(--n-radio-size); + `),D("radio-input",` + position: absolute; + border: 0; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + opacity: 0; + z-index: 1; + cursor: pointer; + `),Z("dot",` + position: absolute; + top: 50%; + left: 0; + transform: translateY(-50%); + height: var(--n-radio-size); + width: var(--n-radio-size); + background: var(--n-color); + box-shadow: var(--n-box-shadow); + border-radius: 50%; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `,[V("&::before",` + content: ""; + opacity: 0; + position: absolute; + left: 4px; + top: 4px; + height: calc(100% - 8px); + width: calc(100% - 8px); + border-radius: 50%; + transform: scale(.8); + background: var(--n-dot-color-active); + transition: + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),Q("checked",{boxShadow:"var(--n-box-shadow-active)"},[V("&::before",` + opacity: 1; + transform: scale(1); + `)])]),Z("label",` + color: var(--n-text-color); + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + display: inline-block; + transition: color .3s var(--n-bezier); + `),Ft("disabled",` + cursor: pointer; + `,[V("&:hover",[Z("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),Q("focus",[V("&:not(:active)",[Z("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),Q("disabled",` + cursor: not-allowed; + `,[Z("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[V("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),Q("checked",` + opacity: 1; + `)]),Z("label",{color:"var(--n-text-color-disabled)"}),D("radio-input",` + cursor: not-allowed; + `)])]),CD=Object.assign(Object.assign({},ze.props),F5),P5=xe({name:"Radio",props:CD,setup(e){const t=$5(e),o=ze("Radio","-radio",yD,Ud,e,t.mergedClsPrefix),n=T(()=>{const{mergedSize:{value:u}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:c,boxShadowActive:h,boxShadowDisabled:f,boxShadowFocus:p,boxShadowHover:g,color:v,colorDisabled:b,colorActive:x,textColor:E,textColorDisabled:y,dotColorActive:k,dotColorDisabled:F,labelPadding:C,labelLineHeight:A,labelFontWeight:P,[ke("fontSize",u)]:B,[ke("radioSize",u)]:W}}=o.value;return{"--n-bezier":d,"--n-label-line-height":A,"--n-label-font-weight":P,"--n-box-shadow":c,"--n-box-shadow-active":h,"--n-box-shadow-disabled":f,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":v,"--n-color-active":x,"--n-color-disabled":b,"--n-dot-color-active":k,"--n-dot-color-disabled":F,"--n-font-size":B,"--n-radio-size":W,"--n-text-color":E,"--n-text-color-disabled":y,"--n-label-padding":C}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:a}=nt(e),l=qt("Radio",a,i),s=r?vt("radio",T(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:r?void 0:n,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:n}=this;return o==null||o(),m("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},m("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),m("div",{class:`${t}-radio__dot-wrapper`}," ",m("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),bt(e.default,r=>!r&&!n?null:m("div",{ref:"labelRef",class:`${t}-radio__label`},r||n)))}}),wD=D("radio-group",` + display: inline-block; + font-size: var(--n-font-size); +`,[Z("splitor",` + display: inline-block; + vertical-align: bottom; + width: 1px; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + background: var(--n-button-border-color); + `,[Q("checked",{backgroundColor:"var(--n-button-border-color-active)"}),Q("disabled",{opacity:"var(--n-opacity-disabled)"})]),Q("button-group",` + white-space: nowrap; + height: var(--n-height); + line-height: var(--n-height); + `,[D("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),Z("splitor",{height:"var(--n-height)"})]),D("radio-button",` + vertical-align: bottom; + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-block; + box-sizing: border-box; + padding-left: 14px; + padding-right: 14px; + white-space: nowrap; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background: var(--n-button-color); + color: var(--n-button-text-color); + border-top: 1px solid var(--n-button-border-color); + border-bottom: 1px solid var(--n-button-border-color); + `,[D("radio-input",` + pointer-events: none; + position: absolute; + border: 0; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + opacity: 0; + z-index: 1; + `),Z("state-border",` + z-index: 1; + pointer-events: none; + position: absolute; + box-shadow: var(--n-button-box-shadow); + transition: box-shadow .3s var(--n-bezier); + left: -1px; + bottom: -1px; + right: -1px; + top: -1px; + `),V("&:first-child",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + border-left: 1px solid var(--n-button-border-color); + `,[Z("state-border",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + `)]),V("&:last-child",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + border-right: 1px solid var(--n-button-border-color); + `,[Z("state-border",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + `)]),Ft("disabled",` + cursor: pointer; + `,[V("&:hover",[Z("state-border",` + transition: box-shadow .3s var(--n-bezier); + box-shadow: var(--n-button-box-shadow-hover); + `),Ft("checked",{color:"var(--n-button-text-color-hover)"})]),Q("focus",[V("&:not(:active)",[Z("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),Q("checked",` + background: var(--n-button-color-active); + color: var(--n-button-text-color-active); + border-color: var(--n-button-border-color-active); + `),Q("disabled",` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `)])]);function SD(e,t,o){var n;const r=[];let i=!1;for(let a=0;a<e.length;++a){const l=e[a],s=(n=l.type)===null||n===void 0?void 0:n.name;s==="RadioButton"&&(i=!0);const u=l.props;if(s!=="RadioButton"){r.push(l);continue}if(a===0)r.push(l);else{const d=r[r.length-1].props,c=t===d.value,h=d.disabled,f=t===u.value,p=u.disabled,g=(c?2:0)+(h?0:1),v=(f?2:0)+(p?0:1),b={[`${o}-radio-group__splitor--disabled`]:h,[`${o}-radio-group__splitor--checked`]:c},x={[`${o}-radio-group__splitor--disabled`]:p,[`${o}-radio-group__splitor--checked`]:f},E=g<v?x:b;r.push(m("div",{class:[`${o}-radio-group__splitor`,E]}),l)}}return{children:r,isButtonGroup:i}}const ED=Object.assign(Object.assign({},ze.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),M5=xe({name:"RadioGroup",props:ED,setup(e){const t=M(null),{mergedSizeRef:o,mergedDisabledRef:n,nTriggerFormChange:r,nTriggerFormInput:i,nTriggerFormBlur:a,nTriggerFormFocus:l}=Dn(e),{mergedClsPrefixRef:s,inlineThemeDisabled:u,mergedRtlRef:d}=nt(e),c=ze("Radio","-radio-group",wD,Ud,e,s),h=M(e.defaultValue),f=De(e,"value"),p=to(f,h);function g(k){const{onUpdateValue:F,"onUpdate:value":C}=e;F&&Pe(F,k),C&&Pe(C,k),h.value=k,r(),i()}function v(k){const{value:F}=t;F&&(F.contains(k.relatedTarget)||l())}function b(k){const{value:F}=t;F&&(F.contains(k.relatedTarget)||a())}et(R5,{mergedClsPrefixRef:s,nameRef:De(e,"name"),valueRef:p,disabledRef:n,mergedSizeRef:o,doUpdateValue:g});const x=qt("Radio",d,s),E=T(()=>{const{value:k}=o,{common:{cubicBezierEaseInOut:F},self:{buttonBorderColor:C,buttonBorderColorActive:A,buttonBorderRadius:P,buttonBoxShadow:B,buttonBoxShadowFocus:W,buttonBoxShadowHover:N,buttonColor:K,buttonColorActive:H,buttonTextColor:I,buttonTextColorActive:O,buttonTextColorHover:R,opacityDisabled:z,[ke("buttonHeight",k)]:_,[ke("fontSize",k)]:oe}}=c.value;return{"--n-font-size":oe,"--n-bezier":F,"--n-button-border-color":C,"--n-button-border-color-active":A,"--n-button-border-radius":P,"--n-button-box-shadow":B,"--n-button-box-shadow-focus":W,"--n-button-box-shadow-hover":N,"--n-button-color":K,"--n-button-color-active":H,"--n-button-text-color":I,"--n-button-text-color-hover":R,"--n-button-text-color-active":O,"--n-height":_,"--n-opacity-disabled":z}}),y=u?vt("radio-group",T(()=>o.value[0]),E,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:s,mergedValue:p,handleFocusout:b,handleFocusin:v,cssVars:u?void 0:E,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:n,handleFocusout:r}=this,{children:i,isButtonGroup:a}=SD(vr(cp(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{onFocusin:n,onFocusout:r,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,a&&`${o}-radio-group--button-group`],style:this.cssVars},i)}}),kD=xe({name:"RadioButton",props:F5,setup:$5,render(){const{mergedClsPrefix:e}=this;return m("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},m("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),m("div",{class:`${e}-radio-button__state-border`}),bt(this.$slots.default,t=>!t&&!this.label?null:m("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),A5=40,B5=40;function rv(e){if(e.type==="selection")return e.width===void 0?A5:so(e.width);if(e.type==="expand")return e.width===void 0?B5:so(e.width);if(!("children"in e))return typeof e.width=="string"?so(e.width):e.width}function _D(e){var t,o;if(e.type==="selection")return So((t=e.width)!==null&&t!==void 0?t:A5);if(e.type==="expand")return So((o=e.width)!==null&&o!==void 0?o:B5);if(!("children"in e))return So(e.width)}function kn(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function iv(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function FD(e){return e==="ascend"?1:e==="descend"?-1:0}function RD(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function $D(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=_D(e),{minWidth:n,maxWidth:r}=e;return{width:o,minWidth:So(n)||o,maxWidth:So(r)}}function PD(e,t,o){return typeof o=="function"?o(e,t):o||""}function Qc(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Jc(e){return"children"in e?!1:!!e.sorter}function D5(e){return"children"in e&&e.children.length?!1:!!e.resizable}function av(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function lv(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function MD(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:lv(!1)}:Object.assign(Object.assign({},t),{order:lv(t.order)})}function T5(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function AD(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function BD(e,t){const o=e.filter(i=>i.type!=="expand"&&i.type!=="selection"&&i.allowExport!==!1),n=o.map(i=>i.title).join(","),r=t.map(i=>o.map(a=>AD(i[a.key])).join(","));return[n,...r].join(` +`)}const DD=xe({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=nt(e),n=qt("DataTable",o,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:a}=Oe(In),l=M(e.value),s=T(()=>{const{value:p}=l;return Array.isArray(p)?p:null}),u=T(()=>{const{value:p}=l;return Qc(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function d(p){e.onChange(p)}function c(p){e.multiple&&Array.isArray(p)?l.value=p:Qc(e.column)&&!Array.isArray(p)?l.value=[p]:l.value=p}function h(){d(l.value),e.onConfirm()}function f(){e.multiple||Qc(e.column)?d([]):d(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:n,mergedTheme:i,locale:a,checkboxGroupValue:s,radioGroupValue:u,handleChange:c,handleConfirmClick:h,handleClearClick:f}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return m("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},m(or,null,{default:()=>{const{checkboxGroupValue:n,handleChange:r}=this;return this.multiple?m(i5,{value:n,class:`${o}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>m(Vd,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):m(M5,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>m(P5,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),m("div",{class:`${o}-data-table-filter-menu__action`},m(Et,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),m(Et,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),TD=xe({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function ID(e,t,o){const n=Object.assign({},e);return n[t]=o,n}const zD=xe({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=nt(),{mergedThemeRef:o,mergedClsPrefixRef:n,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s,filterIconPopoverPropsRef:u}=Oe(In),d=M(!1),c=r,h=T(()=>e.column.filterMultiple!==!1),f=T(()=>{const E=c.value[e.column.key];if(E===void 0){const{value:y}=h;return y?[]:null}return E}),p=T(()=>{const{value:E}=f;return Array.isArray(E)?E.length>0:E!==null}),g=T(()=>{var E,y;return((y=(E=t==null?void 0:t.value)===null||E===void 0?void 0:E.DataTable)===null||y===void 0?void 0:y.renderFilter)||e.column.renderFilter});function v(E){const y=ID(c.value,e.column.key,E);s(y,e.column),a.value==="first"&&l(1)}function b(){d.value=!1}function x(){d.value=!1}return{mergedTheme:o,mergedClsPrefix:n,active:p,showPopover:d,mergedRenderFilter:g,filterIconPopoverProps:u,filterMultiple:h,mergedFilterValue:f,filterMenuCssVars:i,handleFilterChange:v,handleFilterMenuConfirm:x,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:n}=this;return m(Ka,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},n,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return m(TD,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return m("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):m(Ut,{clsPrefix:t},{default:()=>m(AM,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:o}):m(DD,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),OD=xe({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Oe(In),o=M(!1);let n=0;function r(s){return s.clientX}function i(s){var u;s.preventDefault();const d=o.value;n=r(s),o.value=!0,d||(Ct("mousemove",window,a),Ct("mouseup",window,l),(u=e.onResizeStart)===null||u===void 0||u.call(e))}function a(s){var u;(u=e.onResize)===null||u===void 0||u.call(e,r(s)-n)}function l(){var s;o.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Xt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:o,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return m("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),I5=xe({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return m("div",{class:`${this.clsPrefix}-dropdown-divider`})}});function z5(e){const{textColorBase:t,opacity1:o,opacity2:n,opacity3:r,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:o,opacity2Depth:n,opacity3Depth:r,opacity4Depth:i,opacity5Depth:a}}const O5={name:"Icon",common:Ve,self:z5},LD={name:"Icon",common:Ne,self:z5},HD=D("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[Q("color-transition",{transition:"color .3s var(--n-bezier)"}),Q("depth",{color:"var(--n-color)"},[V("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),V("svg",{height:"1em",width:"1em"})]),ND=Object.assign(Object.assign({},ze.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),Wt=xe({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:ND,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=ze("Icon","-icon",HD,O5,e,t),r=T(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=n.value;if(a!==void 0){const{color:u,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":u,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=o?vt("icon",T(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:T(()=>{const{size:a,color:l}=e;return{fontSize:So(a),color:l}}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:n,component:r,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&xn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),m("i",bo(this.$attrs,{role:"img",class:[`${n}-icon`,a,{[`${n}-icon--depth`]:o,[`${n}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?m(r):this.$slots)}}),tm="n-dropdown-menu",Gd="n-dropdown",sv="n-dropdown-option";function vh(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function VD(e){return e.type==="group"}function L5(e){return e.type==="divider"}function jD(e){return e.type==="render"}const H5=xe({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Oe(Gd),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:u,renderIconRef:d,labelFieldRef:c,childrenFieldRef:h,renderOptionRef:f,nodePropsRef:p,menuPropsRef:g}=t,v=Oe(sv,null),b=Oe(tm),x=Oe(Na),E=T(()=>e.tmNode.rawNode),y=T(()=>{const{value:R}=h;return vh(e.tmNode.rawNode,R)}),k=T(()=>{const{disabled:R}=e.tmNode;return R}),F=T(()=>{if(!y.value)return!1;const{key:R,disabled:z}=e.tmNode;if(z)return!1;const{value:_}=o,{value:oe}=n,{value:G}=r,{value:j}=i;return _!==null?j.includes(R):oe!==null?j.includes(R)&&j[j.length-1]!==R:G!==null?j.includes(R):!1}),C=T(()=>n.value===null&&!l.value),A=J4(F,300,C),P=T(()=>!!(v!=null&&v.enteringSubmenuRef.value)),B=M(!1);et(sv,{enteringSubmenuRef:B});function W(){B.value=!0}function N(){B.value=!1}function K(){const{parentKey:R,tmNode:z}=e;z.disabled||s.value&&(r.value=R,n.value=null,o.value=z.key)}function H(){const{tmNode:R}=e;R.disabled||s.value&&o.value!==R.key&&K()}function I(R){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:z}=R;z&&!Ko({target:z},"dropdownOption")&&!Ko({target:z},"scrollbarRail")&&(o.value=null)}function O(){const{value:R}=y,{tmNode:z}=e;s.value&&!R&&!z.disabled&&(t.doSelect(z.key,z.rawNode),t.doUpdateShow(!1))}return{labelField:c,renderLabel:u,renderIcon:d,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:g,popoverBody:x,animated:l,mergedShowSubmenu:T(()=>A.value&&!P.value),rawNode:E,hasSubmenu:y,pending:gt(()=>{const{value:R}=i,{key:z}=e.tmNode;return R.includes(z)}),childActive:gt(()=>{const{value:R}=a,{key:z}=e.tmNode,_=R.findIndex(oe=>z===oe);return _===-1?!1:_<R.length-1}),active:gt(()=>{const{value:R}=a,{key:z}=e.tmNode,_=R.findIndex(oe=>z===oe);return _===-1?!1:_===R.length-1}),mergedDisabled:k,renderOption:f,nodeProps:p,handleClick:O,handleMouseMove:H,handleMouseEnter:K,handleMouseLeave:I,handleSubmenuBeforeEnter:W,handleSubmenuAfterEnter:N}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:u,renderOption:d,nodeProps:c,props:h,scrollable:f}=this;let p=null;if(r){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);p=m(N5,Object.assign({},x,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},v=c==null?void 0:c(n),b=m("div",Object.assign({class:[`${i}-dropdown-option`,v==null?void 0:v.class],"data-dropdown-option":!0},v),m("div",bo(g,h),[m("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[u?u(n):Jt(n.icon)]),m("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(n):Jt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),m("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?m(Wt,null,{default:()=>m(zp,null)}):null)]),this.hasSubmenu?m(ks,null,{default:()=>[m(_s,null,{default:()=>m("div",{class:`${i}-dropdown-offset-container`},m(Fs,{show:this.mergedShowSubmenu,placement:this.placement,to:f&&this.popoverBody||void 0,teleportDisabled:!f},{default:()=>m("div",{class:`${i}-dropdown-menu-wrapper`},o?m(po,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:b,option:n}):b}}),WD=xe({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Oe(tm),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=Oe(Gd);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=m("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(l)),m("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},m("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Jt(l.icon)),m("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),m("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),UD=xe({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:n}=e;return m(ft,null,m(WD,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:L5(i)?m(I5,{clsPrefix:o,key:r.key}):r.isGroup?(xn("dropdown","`group` node is not allowed to be put in `group` node."),null):m(H5,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),KD=xe({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return m("div",t,[e==null?void 0:e()])}}),N5=xe({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=Oe(Gd);et(tm,{showIconRef:T(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>r?r(s):s.icon);const{rawNode:l}=i;return r?r(l):l.icon})}),hasSubmenuRef:T(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>vh(s,r));const{rawNode:l}=i;return vh(l,r)})})});const n=M(null);return et(Ss,null),et(Es,null),et(Na,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:jD(i)?m(KD,{tmNode:r,key:r.key}):L5(i)?m(I5,{clsPrefix:t,key:r.key}):VD(i)?m(UD,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):m(H5,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return m("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?m(gC,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?wC({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),GD=D("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[An(),D("dropdown-option",` + position: relative; + `,[V("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[V("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),D("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[V("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),Ft("disabled",[Q("pending",` + color: var(--n-option-text-color-hover); + `,[Z("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),V("&::before","background-color: var(--n-option-color-hover);")]),Q("active",` + color: var(--n-option-text-color-active); + `,[Z("prefix, suffix",` + color: var(--n-option-text-color-active); + `),V("&::before","background-color: var(--n-option-color-active);")]),Q("child-active",` + color: var(--n-option-text-color-child-active); + `,[Z("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),Q("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),Q("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[Z("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[Q("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),Z("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[Q("show-icon",` + width: var(--n-option-icon-prefix-width); + `),D("icon",` + font-size: var(--n-option-icon-size); + `)]),Z("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),Z("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[Q("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),D("icon",` + font-size: var(--n-option-icon-size); + `)]),D("dropdown-menu","pointer-events: all;")]),D("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),D("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),D("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),V(">",[D("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Ft("scrollable",` + padding: var(--n-padding); + `),Q("scrollable",[Z("content",` + padding: var(--n-padding); + `)])]),qD={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},ZD=Object.keys(Da),XD=Object.assign(Object.assign(Object.assign({},Da),qD),ze.props),V5=xe({name:"Dropdown",inheritAttrs:!1,props:XD,setup(e){const t=M(!1),o=to(De(e,"show"),t),n=T(()=>{const{keyField:N,childrenField:K}=e;return Hd(e.options,{getKey(H){return H[N]},getDisabled(H){return H.disabled===!0},getIgnored(H){return H.type==="divider"||H.type==="render"},getChildren(H){return H[K]}})}),r=T(()=>n.value.treeNodes),i=M(null),a=M(null),l=M(null),s=T(()=>{var N,K,H;return(H=(K=(N=i.value)!==null&&N!==void 0?N:a.value)!==null&&K!==void 0?K:l.value)!==null&&H!==void 0?H:null}),u=T(()=>n.value.getPath(s.value).keyPath),d=T(()=>n.value.getPath(e.value).keyPath),c=gt(()=>e.keyboard&&o.value);fk({keydown:{ArrowUp:{prevent:!0,handler:k},ArrowRight:{prevent:!0,handler:y},ArrowDown:{prevent:!0,handler:F},ArrowLeft:{prevent:!0,handler:E},Enter:{prevent:!0,handler:C},Escape:x}},c);const{mergedClsPrefixRef:h,inlineThemeDisabled:f}=nt(e),p=ze("Dropdown","-dropdown",GD,Kd,e,h);et(Gd,{labelFieldRef:De(e,"labelField"),childrenFieldRef:De(e,"childrenField"),renderLabelRef:De(e,"renderLabel"),renderIconRef:De(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:u,activeKeyPathRef:d,animatedRef:De(e,"animated"),mergedShowRef:o,nodePropsRef:De(e,"nodeProps"),renderOptionRef:De(e,"renderOption"),menuPropsRef:De(e,"menuProps"),doSelect:g,doUpdateShow:v}),at(o,N=>{!e.animated&&!N&&b()});function g(N,K){const{onSelect:H}=e;H&&Pe(H,N,K)}function v(N){const{"onUpdate:show":K,onUpdateShow:H}=e;K&&Pe(K,N),H&&Pe(H,N),t.value=N}function b(){i.value=null,a.value=null,l.value=null}function x(){v(!1)}function E(){P("left")}function y(){P("right")}function k(){P("up")}function F(){P("down")}function C(){const N=A();N!=null&&N.isLeaf&&o.value&&(g(N.key,N.rawNode),v(!1))}function A(){var N;const{value:K}=n,{value:H}=s;return!K||H===null?null:(N=K.getNode(H))!==null&&N!==void 0?N:null}function P(N){const{value:K}=s,{value:{getFirstAvailableNode:H}}=n;let I=null;if(K===null){const O=H();O!==null&&(I=O.key)}else{const O=A();if(O){let R;switch(N){case"down":R=O.getNext();break;case"up":R=O.getPrev();break;case"right":R=O.getChild();break;case"left":R=O.getParent();break}R&&(I=R.key)}}I!==null&&(i.value=null,a.value=I)}const B=T(()=>{const{size:N,inverted:K}=e,{common:{cubicBezierEaseInOut:H},self:I}=p.value,{padding:O,dividerColor:R,borderRadius:z,optionOpacityDisabled:_,[ke("optionIconSuffixWidth",N)]:oe,[ke("optionSuffixWidth",N)]:G,[ke("optionIconPrefixWidth",N)]:j,[ke("optionPrefixWidth",N)]:ue,[ke("fontSize",N)]:he,[ke("optionHeight",N)]:_e,[ke("optionIconSize",N)]:pe}=I,fe={"--n-bezier":H,"--n-font-size":he,"--n-padding":O,"--n-border-radius":z,"--n-option-height":_e,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":j,"--n-option-suffix-width":G,"--n-option-icon-suffix-width":oe,"--n-option-icon-size":pe,"--n-divider-color":R,"--n-option-opacity-disabled":_};return K?(fe["--n-color"]=I.colorInverted,fe["--n-option-color-hover"]=I.optionColorHoverInverted,fe["--n-option-color-active"]=I.optionColorActiveInverted,fe["--n-option-text-color"]=I.optionTextColorInverted,fe["--n-option-text-color-hover"]=I.optionTextColorHoverInverted,fe["--n-option-text-color-active"]=I.optionTextColorActiveInverted,fe["--n-option-text-color-child-active"]=I.optionTextColorChildActiveInverted,fe["--n-prefix-color"]=I.prefixColorInverted,fe["--n-suffix-color"]=I.suffixColorInverted,fe["--n-group-header-text-color"]=I.groupHeaderTextColorInverted):(fe["--n-color"]=I.color,fe["--n-option-color-hover"]=I.optionColorHover,fe["--n-option-color-active"]=I.optionColorActive,fe["--n-option-text-color"]=I.optionTextColor,fe["--n-option-text-color-hover"]=I.optionTextColorHover,fe["--n-option-text-color-active"]=I.optionTextColorActive,fe["--n-option-text-color-child-active"]=I.optionTextColorChildActive,fe["--n-prefix-color"]=I.prefixColor,fe["--n-suffix-color"]=I.suffixColor,fe["--n-group-header-text-color"]=I.groupHeaderTextColor),fe}),W=f?vt("dropdown",T(()=>`${e.size[0]}${e.inverted?"i":""}`),B,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:v,cssVars:f?void 0:B,themeClass:W==null?void 0:W.themeClass,onRender:W==null?void 0:W.onRender}},render(){const e=(n,r,i,a,l)=>{var s;const{mergedClsPrefix:u,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const c=(d==null?void 0:d(void 0,this.tmNodes.map(f=>f.rawNode)))||{},h={ref:_x(r),class:[n,`${u}-dropdown`,this.themeClass],clsPrefix:u,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return m(N5,bo(this.$attrs,h,c))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return m(Ka,Object.assign({},ei(this.$props,ZD),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),j5="_n_all__",W5="_n_none__";function YD(e,t,o,n){return e?r=>{for(const i of e)switch(r){case j5:o(!0);return;case W5:n(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function QD(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:j5};case"none":return{label:t.uncheckTableAll,key:W5};default:return o}}):[]}const JD=xe({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:n,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=Oe(In),l=T(()=>YD(n.value,r,i,a)),s=T(()=>QD(n.value,o.value));return()=>{var u,d,c,h;const{clsPrefix:f}=e;return m(V5,{theme:(d=(u=t.theme)===null||u===void 0?void 0:u.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(c=t.themeOverrides)===null||c===void 0?void 0:c.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>m(Ut,{clsPrefix:f,class:`${f}-data-table-check-extra`},{default:()=>m(uC,null)})})}}});function ef(e){return typeof e.title=="function"?e.title(e):e.title}const eT=xe({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:n}=this;return m("table",{style:{tableLayout:"fixed",width:n},class:`${e}-data-table-table`},m("colgroup",null,o.map(r=>m("col",{key:r.key,style:r.style}))),m("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),U5=xe({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:n,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:u,checkOptionsRef:d,mergedSortStateRef:c,componentId:h,mergedTableLayoutRef:f,headerCheckboxDisabledRef:p,virtualScrollHeaderRef:g,headerHeightRef:v,onUnstableColumnResize:b,doUpdateResizableWidth:x,handleTableHeaderScroll:E,deriveNextSorter:y,doUncheckAll:k,doCheckAll:F}=Oe(In),C=M(),A=M({});function P(I){const O=A.value[I];return O==null?void 0:O.getBoundingClientRect().width}function B(){i.value?k():F()}function W(I,O){if(Ko(I,"dataTableFilter")||Ko(I,"dataTableResizable")||!Jc(O))return;const R=c.value.find(_=>_.columnKey===O.key)||null,z=MD(O,R);y(z)}const N=new Map;function K(I){N.set(I.key,P(I.key))}function H(I,O){const R=N.get(I.key);if(R===void 0)return;const z=R+O,_=RD(z,I.minWidth,I.maxWidth);b(z,_,I,P),x(I,_)}return{cellElsRef:A,componentId:h,mergedSortState:c,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:u,checkOptions:d,mergedTableLayout:f,headerCheckboxDisabled:p,headerHeight:v,virtualScrollHeader:g,virtualListRef:C,handleCheckboxUpdateChecked:B,handleColHeaderClick:W,handleTableHeaderScroll:E,handleColumnResizeStart:K,handleColumnResize:H}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:u,checkOptions:d,componentId:c,discrete:h,mergedTableLayout:f,headerCheckboxDisabled:p,mergedSortState:g,virtualScrollHeader:v,handleColHeaderClick:b,handleCheckboxUpdateChecked:x,handleColumnResizeStart:E,handleColumnResize:y}=this,k=(P,B,W)=>P.map(({column:N,colIndex:K,colSpan:H,rowSpan:I,isLast:O})=>{var R,z;const _=kn(N),{ellipsis:oe}=N,G=()=>N.type==="selection"?N.multiple!==!1?m(ft,null,m(Vd,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:x}),d?m(JD,{clsPrefix:t}):null):null:m(ft,null,m("div",{class:`${t}-data-table-th__title-wrapper`},m("div",{class:`${t}-data-table-th__title`},oe===!0||oe&&!oe.tooltip?m("div",{class:`${t}-data-table-th__ellipsis`},ef(N)):oe&&typeof oe=="object"?m(em,Object.assign({},oe,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>ef(N)}):ef(N)),Jc(N)?m(xD,{column:N}):null),av(N)?m(zD,{column:N,options:N.filterOptions}):null,D5(N)?m(OD,{onResizeStart:()=>{E(N)},onResize:_e=>{y(N,_e)}}):null),j=_ in o,ue=_ in n,he=B&&!N.fixed?"div":"th";return m(he,{ref:_e=>e[_]=_e,key:_,style:[B&&!N.fixed?{position:"absolute",left:Ht(B(K)),top:0,bottom:0}:{left:Ht((R=o[_])===null||R===void 0?void 0:R.start),right:Ht((z=n[_])===null||z===void 0?void 0:z.start)},{width:Ht(N.width),textAlign:N.titleAlign||N.align,height:W}],colspan:H,rowspan:I,"data-col-key":_,class:[`${t}-data-table-th`,(j||ue)&&`${t}-data-table-th--fixed-${j?"left":"right"}`,{[`${t}-data-table-th--sorting`]:T5(N,g),[`${t}-data-table-th--filterable`]:av(N),[`${t}-data-table-th--sortable`]:Jc(N),[`${t}-data-table-th--selection`]:N.type==="selection",[`${t}-data-table-th--last`]:O},N.className],onClick:N.type!=="selection"&&N.type!=="expand"&&!("children"in N)?_e=>{b(_e,N)}:void 0},G())});if(v){const{headerHeight:P}=this;let B=0,W=0;return s.forEach(N=>{N.column.fixed==="left"?B++:N.column.fixed==="right"&&W++}),m(bp,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:Ht(P)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:P,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:eT,visibleItemsProps:{clsPrefix:t,id:c,cols:s,width:So(this.scrollX)},renderItemWithCols:({startColIndex:N,endColIndex:K,getLeft:H})=>{const I=s.map((R,z)=>({column:R.column,isLast:z===s.length-1,colIndex:R.index,colSpan:1,rowSpan:1})).filter(({column:R},z)=>!!(N<=z&&z<=K||R.fixed)),O=k(I,H,Ht(P));return O.splice(B,0,m("th",{colspan:s.length-B-W,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",{style:{position:"relative"}},O)}},{default:({renderedItemWithCols:N})=>N})}const F=m("thead",{class:`${t}-data-table-thead`,"data-n-id":c},l.map(P=>m("tr",{class:`${t}-data-table-tr`},k(P,null,void 0))));if(!h)return F;const{handleTableHeaderScroll:C,scrollX:A}=this;return m("div",{class:`${t}-data-table-base-table-header`,onScroll:C},m("table",{class:`${t}-data-table-table`,style:{minWidth:So(A),tableLayout:f}},m("colgroup",null,s.map(P=>m("col",{key:P.key,style:P.style}))),F))}}),tT=xe({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:n,renderCell:r}=this;let i;const{render:a,key:l,ellipsis:s}=o;if(a&&!t?i=a(n,this.index):t?i=(e=n[l])===null||e===void 0?void 0:e.value:i=r?r(rh(n,l),n,o):rh(n,l),s)if(typeof s=="object"){const{mergedTheme:u}=this;return o.ellipsisComponent==="performant-ellipsis"?m(gD,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i}):m(em,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i})}else return m("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),uv=xe({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return m("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},m(Yi,null,{default:()=>this.loading?m(_r,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):m(Ut,{clsPrefix:e,key:"base-icon"},{default:()=>m(zp,null)})}))}}),oT=xe({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=Oe(In);return()=>{const{rowKey:n}=e;return m(Vd,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),nT=xe({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=Oe(In);return()=>{const{rowKey:n}=e;return m(P5,{name:o,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}});function rT(e,t){const o=[];function n(r,i){r.forEach(a=>{a.children&&t.has(a.key)?(o.push({tmNode:a,striped:!1,key:a.key,index:i}),n(a.children,i)):o.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(r=>{o.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&n(i,r.index)}),o}const iT=xe({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:n,onMouseleave:r}=this;return m("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:n,onMouseleave:r},m("colgroup",null,o.map(i=>m("col",{key:i.key,style:i.style}))),m("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),aT=xe({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:n,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:u,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:c,mergedCurrentPageRef:h,rowClassNameRef:f,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:v,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:x,hoverKeyRef:E,summaryRef:y,mergedSortStateRef:k,virtualScrollRef:F,virtualScrollXRef:C,heightForRowRef:A,minRowHeightRef:P,componentId:B,mergedTableLayoutRef:W,childTriggerColIndexRef:N,indentRef:K,rowPropsRef:H,maxHeightRef:I,stripedRef:O,loadingRef:R,onLoadRef:z,loadingKeySetRef:_,expandableRef:oe,stickyExpandedRowsRef:G,renderExpandIconRef:j,summaryPlacementRef:ue,treeMateRef:he,scrollbarPropsRef:_e,setHeaderScrollLeft:pe,doUpdateExpandedRowKeys:fe,handleTableBodyScroll:Ce,doCheck:Y,doUncheck:q,renderCell:Se}=Oe(In),je=Oe(ln),U=M(null),te=M(null),ge=M(null),we=gt(()=>s.value.length===0),le=gt(()=>e.showHeader||!we.value),re=gt(()=>e.showHeader||we.value);let ce="";const ee=T(()=>new Set(n.value));function ie(Le){var tt;return(tt=he.value.getNode(Le))===null||tt===void 0?void 0:tt.rawNode}function de(Le,tt,J){const me=ie(Le.key);if(!me){xn("data-table",`fail to get row data with key ${Le.key}`);return}if(J){const Me=s.value.findIndex(He=>He.key===ce);if(Me!==-1){const He=s.value.findIndex(ot=>ot.key===Le.key),We=Math.min(Me,He),Ge=Math.max(Me,He),qe=[];s.value.slice(We,Ge+1).forEach(ot=>{ot.disabled||qe.push(ot.key)}),tt?Y(qe,!1,me):q(qe,me),ce=Le.key;return}}tt?Y(Le.key,!1,me):q(Le.key,me),ce=Le.key}function ae(Le){const tt=ie(Le.key);if(!tt){xn("data-table",`fail to get row data with key ${Le.key}`);return}Y(Le.key,!0,tt)}function X(){if(!le.value){const{value:tt}=ge;return tt||null}if(F.value)return Te();const{value:Le}=U;return Le?Le.containerRef:null}function se(Le,tt){var J;if(_.value.has(Le))return;const{value:me}=n,Me=me.indexOf(Le),He=Array.from(me);~Me?(He.splice(Me,1),fe(He)):tt&&!tt.isLeaf&&!tt.shallowLoaded?(_.value.add(Le),(J=z.value)===null||J===void 0||J.call(z,tt.rawNode).then(()=>{const{value:We}=n,Ge=Array.from(We);~Ge.indexOf(Le)||Ge.push(Le),fe(Ge)}).finally(()=>{_.value.delete(Le)})):(He.push(Le),fe(He))}function ve(){E.value=null}function Te(){const{value:Le}=te;return(Le==null?void 0:Le.listElRef)||null}function Ke(){const{value:Le}=te;return(Le==null?void 0:Le.itemsElRef)||null}function Qe(Le){var tt;Ce(Le),(tt=U.value)===null||tt===void 0||tt.sync()}function st(Le){var tt;const{onResize:J}=e;J&&J(Le),(tt=U.value)===null||tt===void 0||tt.sync()}const Xe={getScrollContainer:X,scrollTo(Le,tt){var J,me;F.value?(J=te.value)===null||J===void 0||J.scrollTo(Le,tt):(me=U.value)===null||me===void 0||me.scrollTo(Le,tt)}},pt=V([({props:Le})=>{const tt=me=>me===null?null:V(`[data-n-id="${Le.componentId}"] [data-col-key="${me}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),J=me=>me===null?null:V(`[data-n-id="${Le.componentId}"] [data-col-key="${me}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return V([tt(Le.leftActiveFixedColKey),J(Le.rightActiveFixedColKey),Le.leftActiveFixedChildrenColKeys.map(me=>tt(me)),Le.rightActiveFixedChildrenColKeys.map(me=>J(me))])}]);let Ye=!1;return kt(()=>{const{value:Le}=p,{value:tt}=g,{value:J}=v,{value:me}=b;if(!Ye&&Le===null&&J===null)return;const Me={leftActiveFixedColKey:Le,leftActiveFixedChildrenColKeys:tt,rightActiveFixedColKey:J,rightActiveFixedChildrenColKeys:me,componentId:B};pt.mount({id:`n-${B}`,force:!0,props:Me,anchorMetaName:Ba,parent:je==null?void 0:je.styleMountTarget}),Ye=!0}),Go(()=>{pt.unmount({id:`n-${B}`,parent:je==null?void 0:je.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:ue,dataTableSlots:t,componentId:B,scrollbarInstRef:U,virtualListRef:te,emptyElRef:ge,summary:y,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:l,loading:R,bodyShowHeaderOnly:re,shouldDisplaySomeTablePart:le,empty:we,paginatedDataAndInfo:T(()=>{const{value:Le}=O;let tt=!1;return{data:s.value.map(Le?(me,Me)=>(me.isLeaf||(tt=!0),{tmNode:me,key:me.key,striped:Me%2===1,index:Me}):(me,Me)=>(me.isLeaf||(tt=!0),{tmNode:me,key:me.key,striped:!1,index:Me})),hasChildren:tt}}),rawPaginatedData:u,fixedColumnLeftMap:d,fixedColumnRightMap:c,currentPage:h,rowClassName:f,renderExpand:x,mergedExpandedRowKeySet:ee,hoverKey:E,mergedSortState:k,virtualScroll:F,virtualScrollX:C,heightForRow:A,minRowHeight:P,mergedTableLayout:W,childTriggerColIndex:N,indent:K,rowProps:H,maxHeight:I,loadingKeySet:_,expandable:oe,stickyExpandedRows:G,renderExpandIcon:j,scrollbarProps:_e,setHeaderScrollLeft:pe,handleVirtualListScroll:Qe,handleVirtualListResize:st,handleMouseleaveTable:ve,virtualListContainer:Te,virtualListContent:Ke,handleTableBodyScroll:Ce,handleCheckboxUpdateChecked:de,handleRadioUpdateChecked:ae,handleUpdateExpanded:se,renderCell:Se},Xe)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:n,maxHeight:r,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:u}=this,d=t!==void 0||r!==void 0||a,c=!d&&i==="auto",h=t!==void 0||c,f={minWidth:So(t)||"100%"};t&&(f.width="100%");const p=m(or,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||c,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:f,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:n?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:u,onResize:s}),{default:()=>{const g={},v={},{cols:b,paginatedDataAndInfo:x,mergedTheme:E,fixedColumnLeftMap:y,fixedColumnRightMap:k,currentPage:F,rowClassName:C,mergedSortState:A,mergedExpandedRowKeySet:P,stickyExpandedRows:B,componentId:W,childTriggerColIndex:N,expandable:K,rowProps:H,handleMouseleaveTable:I,renderExpand:O,summary:R,handleCheckboxUpdateChecked:z,handleRadioUpdateChecked:_,handleUpdateExpanded:oe,heightForRow:G,minRowHeight:j,virtualScrollX:ue}=this,{length:he}=b;let _e;const{data:pe,hasChildren:fe}=x,Ce=fe?rT(pe,P):pe;if(R){const ce=R(this.rawPaginatedData);if(Array.isArray(ce)){const ee=ce.map((ie,de)=>({isSummaryRow:!0,key:`__n_summary__${de}`,tmNode:{rawNode:ie,disabled:!0},index:-1}));_e=this.summaryPlacement==="top"?[...ee,...Ce]:[...Ce,...ee]}else{const ee={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ce,disabled:!0},index:-1};_e=this.summaryPlacement==="top"?[ee,...Ce]:[...Ce,ee]}}else _e=Ce;const Y=fe?{width:Ht(this.indent)}:void 0,q=[];_e.forEach(ce=>{O&&P.has(ce.key)&&(!K||K(ce.tmNode.rawNode))?q.push(ce,{isExpandedRow:!0,key:`${ce.key}-expand`,tmNode:ce.tmNode,index:ce.index}):q.push(ce)});const{length:Se}=q,je={};pe.forEach(({tmNode:ce},ee)=>{je[ee]=ce.key});const U=B?this.bodyWidth:null,te=U===null?void 0:`${U}px`,ge=this.virtualScrollX?"div":"td";let we=0,le=0;ue&&b.forEach(ce=>{ce.column.fixed==="left"?we++:ce.column.fixed==="right"&&le++});const re=({rowInfo:ce,displayedRowIndex:ee,isVirtual:ie,isVirtualX:de,startColIndex:ae,endColIndex:X,getLeft:se})=>{const{index:ve}=ce;if("isExpandedRow"in ce){const{tmNode:{key:He,rawNode:We}}=ce;return m("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${He}__expand`},m("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,ee+1===Se&&`${o}-data-table-td--last-row`],colspan:he},B?m("div",{class:`${o}-data-table-expand`,style:{width:te}},O(We,ve)):O(We,ve)))}const Te="isSummaryRow"in ce,Ke=!Te&&ce.striped,{tmNode:Qe,key:st}=ce,{rawNode:Xe}=Qe,pt=P.has(st),Ye=H?H(Xe,ve):void 0,Le=typeof C=="string"?C:PD(Xe,ve,C),tt=de?b.filter((He,We)=>!!(ae<=We&&We<=X||He.column.fixed)):b,J=de?Ht((G==null?void 0:G(Xe,ve))||j):void 0,me=tt.map(He=>{var We,Ge,qe,ot,yt;const Bt=He.index;if(ee in g){const Yt=g[ee],no=Yt.indexOf(Bt);if(~no)return Yt.splice(no,1),null}const{column:_t}=He,xo=kn(He),{rowSpan:Ao,colSpan:Bo}=_t,No=Te?((We=ce.tmNode.rawNode[xo])===null||We===void 0?void 0:We.colSpan)||1:Bo?Bo(Xe,ve):1,Vo=Te?((Ge=ce.tmNode.rawNode[xo])===null||Ge===void 0?void 0:Ge.rowSpan)||1:Ao?Ao(Xe,ve):1,un=Bt+No===he,dn=ee+Vo===Se,be=Vo>1;if(be&&(v[ee]={[Bt]:[]}),No>1||be)for(let Yt=ee;Yt<ee+Vo;++Yt){be&&v[ee][Bt].push(je[Yt]);for(let no=Bt;no<Bt+No;++no)Yt===ee&&no===Bt||(Yt in g?g[Yt].push(no):g[Yt]=[no])}const Be=be?this.hoverKey:null,{cellProps:rt}=_t,wt=rt==null?void 0:rt(Xe,ve),zt={"--indent-offset":""},Mt=_t.fixed?"td":ge;return m(Mt,Object.assign({},wt,{key:xo,style:[{textAlign:_t.align||void 0,width:Ht(_t.width)},de&&{height:J},de&&!_t.fixed?{position:"absolute",left:Ht(se(Bt)),top:0,bottom:0}:{left:Ht((qe=y[xo])===null||qe===void 0?void 0:qe.start),right:Ht((ot=k[xo])===null||ot===void 0?void 0:ot.start)},zt,(wt==null?void 0:wt.style)||""],colspan:No,rowspan:ie?void 0:Vo,"data-col-key":xo,class:[`${o}-data-table-td`,_t.className,wt==null?void 0:wt.class,Te&&`${o}-data-table-td--summary`,Be!==null&&v[ee][Bt].includes(Be)&&`${o}-data-table-td--hover`,T5(_t,A)&&`${o}-data-table-td--sorting`,_t.fixed&&`${o}-data-table-td--fixed-${_t.fixed}`,_t.align&&`${o}-data-table-td--${_t.align}-align`,_t.type==="selection"&&`${o}-data-table-td--selection`,_t.type==="expand"&&`${o}-data-table-td--expand`,un&&`${o}-data-table-td--last-col`,dn&&`${o}-data-table-td--last-row`]}),fe&&Bt===N?[kx(zt["--indent-offset"]=Te?0:ce.tmNode.level,m("div",{class:`${o}-data-table-indent`,style:Y})),Te||ce.tmNode.isLeaf?m("div",{class:`${o}-data-table-expand-placeholder`}):m(uv,{class:`${o}-data-table-expand-trigger`,clsPrefix:o,expanded:pt,rowData:Xe,renderExpandIcon:this.renderExpandIcon,loading:l.has(ce.key),onClick:()=>{oe(st,ce.tmNode)}})]:null,_t.type==="selection"?Te?null:_t.multiple===!1?m(nT,{key:F,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:()=>{_(ce.tmNode)}}):m(oT,{key:F,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:(Yt,no)=>{z(ce.tmNode,Yt,no.shiftKey)}}):_t.type==="expand"?Te?null:!_t.expandable||!((yt=_t.expandable)===null||yt===void 0)&&yt.call(_t,Xe)?m(uv,{clsPrefix:o,rowData:Xe,expanded:pt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{oe(st,null)}}):null:m(tT,{clsPrefix:o,index:ve,row:Xe,column:_t,isSummary:Te,mergedTheme:E,renderCell:this.renderCell}))});return de&&we&&le&&me.splice(we,0,m("td",{colspan:b.length-we-le,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",Object.assign({},Ye,{onMouseenter:He=>{var We;this.hoverKey=st,(We=Ye==null?void 0:Ye.onMouseenter)===null||We===void 0||We.call(Ye,He)},key:st,class:[`${o}-data-table-tr`,Te&&`${o}-data-table-tr--summary`,Ke&&`${o}-data-table-tr--striped`,pt&&`${o}-data-table-tr--expanded`,Le,Ye==null?void 0:Ye.class],style:[Ye==null?void 0:Ye.style,de&&{height:J}]}),me)};return n?m(bp,{ref:"virtualListRef",items:q,itemSize:this.minRowHeight,visibleItemsTag:iT,visibleItemsProps:{clsPrefix:o,id:W,cols:b,onMouseleave:I},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:f,itemResizable:!ue,columns:b,renderItemWithCols:ue?({itemIndex:ce,item:ee,startColIndex:ie,endColIndex:de,getLeft:ae})=>re({displayedRowIndex:ce,isVirtual:!0,isVirtualX:!0,rowInfo:ee,startColIndex:ie,endColIndex:de,getLeft:ae}):void 0},{default:({item:ce,index:ee,renderedItemWithCols:ie})=>ie||re({rowInfo:ce,displayedRowIndex:ee,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(de){return 0}})}):m("table",{class:`${o}-data-table-table`,onMouseleave:I,style:{tableLayout:this.mergedTableLayout}},m("colgroup",null,b.map(ce=>m("col",{key:ce.key,style:ce.style}))),this.showHeader?m(U5,{discrete:!1}):null,this.empty?null:m("tbody",{"data-n-id":W,class:`${o}-data-table-tbody`},q.map((ce,ee)=>re({rowInfo:ce,displayedRowIndex:ee,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(ie){return-1}}))))}});if(this.empty){const g=()=>m("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},wo(this.dataTableSlots.empty,()=>[m(Lp,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?m(ft,null,p,g()):m($n,{onResize:this.onResize},{default:g})}return p}}),lT=xe({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:n,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,virtualScrollHeaderRef:l,syncScrollState:s}=Oe(In),u=M(null),d=M(null),c=M(null),h=M(!(o.value.length||t.value.length)),f=T(()=>({maxHeight:So(r.value),minHeight:So(i.value)}));function p(x){n.value=x.contentRect.width,s(),h.value||(h.value=!0)}function g(){var x;const{value:E}=u;return E?l.value?((x=E.virtualListRef)===null||x===void 0?void 0:x.listElRef)||null:E.$el:null}function v(){const{value:x}=d;return x?x.getScrollContainer():null}const b={getBodyElement:v,getHeaderElement:g,scrollTo(x,E){var y;(y=d.value)===null||y===void 0||y.scrollTo(x,E)}};return kt(()=>{const{value:x}=c;if(!x)return;const E=`${e.value}-data-table-base-table--transition-disabled`;h.value?setTimeout(()=>{x.classList.remove(E)},0):x.classList.add(E)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:c,headerInstRef:u,bodyInstRef:d,bodyStyle:f,flexHeight:a,handleBodyResize:p},b)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,n=t===void 0&&!o;return m("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},n?null:m(U5,{ref:"headerInstRef"}),m(aT,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:o,onResize:this.handleBodyResize}))}});function sT(e,t){const{paginatedDataRef:o,treeMateRef:n,selectionColumnRef:r}=t,i=M(e.defaultCheckedRowKeys),a=T(()=>{var k;const{checkedRowKeys:F}=e,C=F===void 0?i.value:F;return((k=r.value)===null||k===void 0?void 0:k.multiple)===!1?{checkedKeys:C.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(C,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=T(()=>a.value.checkedKeys),s=T(()=>a.value.indeterminateKeys),u=T(()=>new Set(l.value)),d=T(()=>new Set(s.value)),c=T(()=>{const{value:k}=u;return o.value.reduce((F,C)=>{const{key:A,disabled:P}=C;return F+(!P&&k.has(A)?1:0)},0)}),h=T(()=>o.value.filter(k=>k.disabled).length),f=T(()=>{const{length:k}=o.value,{value:F}=d;return c.value>0&&c.value<k-h.value||o.value.some(C=>F.has(C.key))}),p=T(()=>{const{length:k}=o.value;return c.value!==0&&c.value===k-h.value}),g=T(()=>o.value.length===0);function v(k,F,C){const{"onUpdate:checkedRowKeys":A,onUpdateCheckedRowKeys:P,onCheckedRowKeysChange:B}=e,W=[],{value:{getNode:N}}=n;k.forEach(K=>{var H;const I=(H=N(K))===null||H===void 0?void 0:H.rawNode;W.push(I)}),A&&Pe(A,k,W,{row:F,action:C}),P&&Pe(P,k,W,{row:F,action:C}),B&&Pe(B,k,W,{row:F,action:C}),i.value=k}function b(k,F=!1,C){if(!e.loading){if(F){v(Array.isArray(k)?k.slice(0,1):[k],C,"check");return}v(n.value.check(k,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,C,"check")}}function x(k,F){e.loading||v(n.value.uncheck(k,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,F,"uncheck")}function E(k=!1){const{value:F}=r;if(!F||e.loading)return;const C=[];(k?n.value.treeNodes:o.value).forEach(A=>{A.disabled||C.push(A.key)}),v(n.value.check(C,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function y(k=!1){const{value:F}=r;if(!F||e.loading)return;const C=[];(k?n.value.treeNodes:o.value).forEach(A=>{A.disabled||C.push(A.key)}),v(n.value.uncheck(C,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:u,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:f,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:v,doCheckAll:E,doUncheckAll:y,doCheck:b,doUncheck:x}}function pu(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function uT(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?dT(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function dT(e){return(t,o)=>{const n=t[e],r=o[e];return n==null?r==null?0:-1:r==null?1:typeof n=="number"&&typeof r=="number"?n-r:typeof n=="string"&&typeof r=="string"?n.localeCompare(r):0}}function cT(e,{dataRelatedColsRef:t,filteredDataRef:o}){const n=[];t.value.forEach(f=>{var p;f.sorter!==void 0&&h(n,{columnKey:f.key,sorter:f.sorter,order:(p=f.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=M(n),i=T(()=>{const f=t.value.filter(v=>v.type!=="selection"&&v.sorter!==void 0&&(v.sortOrder==="ascend"||v.sortOrder==="descend"||v.sortOrder===!1)),p=f.filter(v=>v.sortOrder!==!1);if(p.length)return p.map(v=>({columnKey:v.key,order:v.sortOrder,sorter:v.sorter}));if(f.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),a=T(()=>{const f=i.value.slice().sort((p,g)=>{const v=pu(p.sorter)||0;return(pu(g.sorter)||0)-v});return f.length?o.value.slice().sort((g,v)=>{let b=0;return f.some(x=>{const{columnKey:E,sorter:y,order:k}=x,F=uT(y,E);return F&&k&&(b=F(g.rawNode,v.rawNode),b!==0)?(b=b*FD(k),!0):!1}),b}):o.value});function l(f){let p=i.value.slice();return f&&pu(f.sorter)!==!1?(p=p.filter(g=>pu(g.sorter)!==!1),h(p,f),p):f||null}function s(f){const p=l(f);u(p)}function u(f){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:v}=e;p&&Pe(p,f),g&&Pe(g,f),v&&Pe(v,f),r.value=f}function d(f,p="ascend"){if(!f)c();else{const g=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===f);if(!(g!=null&&g.sorter))return;const v=g.sorter;s({columnKey:f,sorter:v,order:p})}}function c(){u(null)}function h(f,p){const g=f.findIndex(v=>(p==null?void 0:p.columnKey)&&v.columnKey===p.columnKey);g!==void 0&&g>=0?f[g]=p:f.push(p)}return{clearSorter:c,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function fT(e,{dataRelatedColsRef:t}){const o=T(()=>{const G=j=>{for(let ue=0;ue<j.length;++ue){const he=j[ue];if("children"in he)return G(he.children);if(he.type==="selection")return he}return null};return G(e.columns)}),n=T(()=>{const{childrenKey:G}=e;return Hd(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:j=>j[G],getDisabled:j=>{var ue,he;return!!(!((he=(ue=o.value)===null||ue===void 0?void 0:ue.disabled)===null||he===void 0)&&he.call(ue,j))}})}),r=gt(()=>{const{columns:G}=e,{length:j}=G;let ue=null;for(let he=0;he<j;++he){const _e=G[he];if(!_e.type&&ue===null&&(ue=he),"tree"in _e&&_e.tree)return he}return ue||0}),i=M({}),{pagination:a}=e,l=M(a&&a.defaultPage||1),s=M(v5(a)),u=T(()=>{const G=t.value.filter(he=>he.filterOptionValues!==void 0||he.filterOptionValue!==void 0),j={};return G.forEach(he=>{var _e;he.type==="selection"||he.type==="expand"||(he.filterOptionValues===void 0?j[he.key]=(_e=he.filterOptionValue)!==null&&_e!==void 0?_e:null:j[he.key]=he.filterOptionValues)}),Object.assign(iv(i.value),j)}),d=T(()=>{const G=u.value,{columns:j}=e;function ue(pe){return(fe,Ce)=>!!~String(Ce[pe]).indexOf(String(fe))}const{value:{treeNodes:he}}=n,_e=[];return j.forEach(pe=>{pe.type==="selection"||pe.type==="expand"||"children"in pe||_e.push([pe.key,pe])}),he?he.filter(pe=>{const{rawNode:fe}=pe;for(const[Ce,Y]of _e){let q=G[Ce];if(q==null||(Array.isArray(q)||(q=[q]),!q.length))continue;const Se=Y.filter==="default"?ue(Ce):Y.filter;if(Y&&typeof Se=="function")if(Y.filterMode==="and"){if(q.some(je=>!Se(je,fe)))return!1}else{if(q.some(je=>Se(je,fe)))continue;return!1}}return!0}):[]}),{sortedDataRef:c,deriveNextSorter:h,mergedSortStateRef:f,sort:p,clearSorter:g}=cT(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(G=>{var j;if(G.filter){const ue=G.defaultFilterOptionValues;G.filterMultiple?i.value[G.key]=ue||[]:ue!==void 0?i.value[G.key]=ue===null?[]:ue:i.value[G.key]=(j=G.defaultFilterOptionValue)!==null&&j!==void 0?j:null}});const v=T(()=>{const{pagination:G}=e;if(G!==!1)return G.page}),b=T(()=>{const{pagination:G}=e;if(G!==!1)return G.pageSize}),x=to(v,l),E=to(b,s),y=gt(()=>{const G=x.value;return e.remote?G:Math.max(1,Math.min(Math.ceil(d.value.length/E.value),G))}),k=T(()=>{const{pagination:G}=e;if(G){const{pageCount:j}=G;if(j!==void 0)return j}}),F=T(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return c.value;const G=E.value,j=(y.value-1)*G;return c.value.slice(j,j+G)}),C=T(()=>F.value.map(G=>G.rawNode));function A(G){const{pagination:j}=e;if(j){const{onChange:ue,"onUpdate:page":he,onUpdatePage:_e}=j;ue&&Pe(ue,G),_e&&Pe(_e,G),he&&Pe(he,G),N(G)}}function P(G){const{pagination:j}=e;if(j){const{onPageSizeChange:ue,"onUpdate:pageSize":he,onUpdatePageSize:_e}=j;ue&&Pe(ue,G),_e&&Pe(_e,G),he&&Pe(he,G),K(G)}}const B=T(()=>{if(e.remote){const{pagination:G}=e;if(G){const{itemCount:j}=G;if(j!==void 0)return j}return}return d.value.length}),W=T(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":A,"onUpdate:pageSize":P,page:y.value,pageSize:E.value,pageCount:B.value===void 0?k.value:void 0,itemCount:B.value}));function N(G){const{"onUpdate:page":j,onPageChange:ue,onUpdatePage:he}=e;he&&Pe(he,G),j&&Pe(j,G),ue&&Pe(ue,G),l.value=G}function K(G){const{"onUpdate:pageSize":j,onPageSizeChange:ue,onUpdatePageSize:he}=e;ue&&Pe(ue,G),he&&Pe(he,G),j&&Pe(j,G),s.value=G}function H(G,j){const{onUpdateFilters:ue,"onUpdate:filters":he,onFiltersChange:_e}=e;ue&&Pe(ue,G,j),he&&Pe(he,G,j),_e&&Pe(_e,G,j),i.value=G}function I(G,j,ue,he){var _e;(_e=e.onUnstableColumnResize)===null||_e===void 0||_e.call(e,G,j,ue,he)}function O(G){N(G)}function R(){z()}function z(){_({})}function _(G){oe(G)}function oe(G){G?G&&(i.value=iv(G)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:y,mergedPaginationRef:W,paginatedDataRef:F,rawPaginatedDataRef:C,mergedFilterStateRef:u,mergedSortStateRef:f,hoverKeyRef:M(null),selectionColumnRef:o,childTriggerColIndexRef:r,doUpdateFilters:H,deriveNextSorter:h,doUpdatePageSize:K,doUpdatePage:N,onUnstableColumnResize:I,filter:oe,filters:_,clearFilter:R,clearFilters:z,clearSorter:g,page:O,sort:p}}function hT(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:n}){let r=0;const i=M(),a=M(null),l=M([]),s=M(null),u=M([]),d=T(()=>So(e.scrollX)),c=T(()=>e.columns.filter(P=>P.fixed==="left")),h=T(()=>e.columns.filter(P=>P.fixed==="right")),f=T(()=>{const P={};let B=0;function W(N){N.forEach(K=>{const H={start:B,end:0};P[kn(K)]=H,"children"in K?(W(K.children),H.end=B):(B+=rv(K)||0,H.end=B)})}return W(c.value),P}),p=T(()=>{const P={};let B=0;function W(N){for(let K=N.length-1;K>=0;--K){const H=N[K],I={start:B,end:0};P[kn(H)]=I,"children"in H?(W(H.children),I.end=B):(B+=rv(H)||0,I.end=B)}}return W(h.value),P});function g(){var P,B;const{value:W}=c;let N=0;const{value:K}=f;let H=null;for(let I=0;I<W.length;++I){const O=kn(W[I]);if(r>(((P=K[O])===null||P===void 0?void 0:P.start)||0)-N)H=O,N=((B=K[O])===null||B===void 0?void 0:B.end)||0;else break}a.value=H}function v(){l.value=[];let P=e.columns.find(B=>kn(B)===a.value);for(;P&&"children"in P;){const B=P.children.length;if(B===0)break;const W=P.children[B-1];l.value.push(kn(W)),P=W}}function b(){var P,B;const{value:W}=h,N=Number(e.scrollX),{value:K}=n;if(K===null)return;let H=0,I=null;const{value:O}=p;for(let R=W.length-1;R>=0;--R){const z=kn(W[R]);if(Math.round(r+(((P=O[z])===null||P===void 0?void 0:P.start)||0)+K-H)<N)I=z,H=((B=O[z])===null||B===void 0?void 0:B.end)||0;else break}s.value=I}function x(){u.value=[];let P=e.columns.find(B=>kn(B)===s.value);for(;P&&"children"in P&&P.children.length;){const B=P.children[0];u.value.push(kn(B)),P=B}}function E(){const P=t.value?t.value.getHeaderElement():null,B=t.value?t.value.getBodyElement():null;return{header:P,body:B}}function y(){const{body:P}=E();P&&(P.scrollTop=0)}function k(){i.value!=="body"?Xl(C):i.value=void 0}function F(P){var B;(B=e.onScroll)===null||B===void 0||B.call(e,P),i.value!=="head"?Xl(C):i.value=void 0}function C(){const{header:P,body:B}=E();if(!B)return;const{value:W}=n;if(W!==null){if(e.maxHeight||e.flexHeight){if(!P)return;const N=r-P.scrollLeft;i.value=N!==0?"head":"body",i.value==="head"?(r=P.scrollLeft,B.scrollLeft=r):(r=B.scrollLeft,P.scrollLeft=r)}else r=B.scrollLeft;g(),v(),b(),x()}}function A(P){const{header:B}=E();B&&(B.scrollLeft=P,C())}return at(o,()=>{y()}),{styleScrollXRef:d,fixedColumnLeftMapRef:f,fixedColumnRightMapRef:p,leftFixedColumnsRef:c,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:u,syncScrollState:C,handleTableBodyScroll:F,handleTableHeaderScroll:k,setHeaderScrollLeft:A}}function pT(){const e=M({});function t(r){return e.value[r]}function o(r,i){D5(r)&&"key"in r&&(e.value[r.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:n}}function mT(e,t){const o=[],n=[],r=[],i=new WeakMap;let a=-1,l=0,s=!1;function u(h,f){f>a&&(o[f]=[],a=f),h.forEach((p,g)=>{if("children"in p)u(p.children,f+1);else{const v="key"in p?p.key:void 0;n.push({key:kn(p),style:$D(p,v!==void 0?So(t(v)):void 0),column:p,index:g,width:p.width===void 0?128:Number(p.width)}),l+=1,s||(s=!!p.ellipsis),r.push(p)}})}u(e,0);let d=0;function c(h,f){let p=0;h.forEach(g=>{var v;if("children"in g){const b=d,x={column:g,colIndex:d,colSpan:0,rowSpan:1,isLast:!1};c(g.children,f+1),g.children.forEach(E=>{var y,k;x.colSpan+=(k=(y=i.get(E))===null||y===void 0?void 0:y.colSpan)!==null&&k!==void 0?k:0}),b+x.colSpan===l&&(x.isLast=!0),i.set(g,x),o[f].push(x)}else{if(d<p){d+=1;return}let b=1;"titleColSpan"in g&&(b=(v=g.titleColSpan)!==null&&v!==void 0?v:1),b>1&&(p=d+b);const x=d+b===l,E={column:g,colSpan:b,colIndex:d,rowSpan:a-f+1,isLast:x};i.set(g,E),o[f].push(E),d+=1}})}return c(e,0),{hasEllipsis:s,rows:o,cols:n,dataRelatedCols:r}}function gT(e,t){const o=T(()=>mT(e.columns,t));return{rowsRef:T(()=>o.value.rows),colsRef:T(()=>o.value.cols),hasEllipsisRef:T(()=>o.value.hasEllipsis),dataRelatedColsRef:T(()=>o.value.dataRelatedCols)}}function vT(e,t){const o=gt(()=>{for(const u of e.columns)if(u.type==="expand")return u.renderExpand}),n=gt(()=>{let u;for(const d of e.columns)if(d.type==="expand"){u=d.expandable;break}return u}),r=M(e.defaultExpandAll?o!=null&&o.value?(()=>{const u=[];return t.value.treeNodes.forEach(d=>{var c;!((c=n.value)===null||c===void 0)&&c.call(n,d.rawNode)&&u.push(d.key)}),u})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=De(e,"expandedRowKeys"),a=De(e,"stickyExpandedRows"),l=to(i,r);function s(u){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":c}=e;d&&Pe(d,u),c&&Pe(c,u),r.value=u}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:n,doUpdateExpandedRowKeys:s}}const dv=xT(),bT=V([D("data-table",` + width: 100%; + font-size: var(--n-font-size); + display: flex; + flex-direction: column; + position: relative; + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + --n-merged-th-color-sorting: var(--n-th-color-sorting); + --n-merged-td-color-hover: var(--n-td-color-hover); + --n-merged-td-color-sorting: var(--n-td-color-sorting); + --n-merged-td-color-striped: var(--n-td-color-striped); + `,[D("data-table-wrapper",` + flex-grow: 1; + display: flex; + flex-direction: column; + `),Q("flex-height",[V(">",[D("data-table-wrapper",[V(">",[D("data-table-base-table",` + display: flex; + flex-direction: column; + flex-grow: 1; + `,[V(">",[D("data-table-base-table-body","flex-basis: 0;",[V("&:last-child","flex-grow: 1;")])])])])])])]),V(">",[D("data-table-loading-wrapper",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + justify-content: center; + `,[An({originalTransform:"translateX(-50%) translateY(-50%)"})])]),D("data-table-expand-placeholder",` + margin-right: 8px; + display: inline-block; + width: 16px; + height: 1px; + `),D("data-table-indent",` + display: inline-block; + height: 1px; + `),D("data-table-expand-trigger",` + display: inline-flex; + margin-right: 8px; + cursor: pointer; + font-size: 16px; + vertical-align: -0.2em; + position: relative; + width: 16px; + height: 16px; + color: var(--n-td-text-color); + transition: color .3s var(--n-bezier); + `,[Q("expanded",[D("icon","transform: rotate(90deg);",[en({originalTransform:"rotate(90deg)"})]),D("base-icon","transform: rotate(90deg);",[en({originalTransform:"rotate(90deg)"})])]),D("base-loading",` + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[en()]),D("icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[en()]),D("base-icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[en()])]),D("data-table-thead",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-merged-th-color); + `),D("data-table-tr",` + position: relative; + box-sizing: border-box; + background-clip: padding-box; + transition: background-color .3s var(--n-bezier); + `,[D("data-table-expand",` + position: sticky; + left: 0; + overflow: hidden; + margin: calc(var(--n-th-padding) * -1); + padding: var(--n-th-padding); + box-sizing: border-box; + `),Q("striped","background-color: var(--n-merged-td-color-striped);",[D("data-table-td","background-color: var(--n-merged-td-color-striped);")]),Ft("summary",[V("&:hover","background-color: var(--n-merged-td-color-hover);",[V(">",[D("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),D("data-table-th",` + padding: var(--n-th-padding); + position: relative; + text-align: start; + box-sizing: border-box; + background-color: var(--n-merged-th-color); + border-color: var(--n-merged-border-color); + border-bottom: 1px solid var(--n-merged-border-color); + color: var(--n-th-text-color); + transition: + border-color .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + font-weight: var(--n-th-font-weight); + `,[Q("filterable",` + padding-right: 36px; + `,[Q("sortable",` + padding-right: calc(var(--n-th-padding) + 36px); + `)]),dv,Q("selection",` + padding: 0; + text-align: center; + line-height: 0; + z-index: 3; + `),Z("title-wrapper",` + display: flex; + align-items: center; + flex-wrap: nowrap; + max-width: 100%; + `,[Z("title",` + flex: 1; + min-width: 0; + `)]),Z("ellipsis",` + display: inline-block; + vertical-align: bottom; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + `),Q("hover",` + background-color: var(--n-merged-th-color-hover); + `),Q("sorting",` + background-color: var(--n-merged-th-color-sorting); + `),Q("sortable",` + cursor: pointer; + `,[Z("ellipsis",` + max-width: calc(100% - 18px); + `),V("&:hover",` + background-color: var(--n-merged-th-color-hover); + `)]),D("data-table-sorter",` + height: var(--n-sorter-size); + width: var(--n-sorter-size); + margin-left: 4px; + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + vertical-align: -0.2em; + color: var(--n-th-icon-color); + transition: color .3s var(--n-bezier); + `,[D("base-icon","transition: transform .3s var(--n-bezier)"),Q("desc",[D("base-icon",` + transform: rotate(0deg); + `)]),Q("asc",[D("base-icon",` + transform: rotate(-180deg); + `)]),Q("asc, desc",` + color: var(--n-th-icon-color-active); + `)]),D("data-table-resize-button",` + width: var(--n-resizable-container-size); + position: absolute; + top: 0; + right: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + cursor: col-resize; + user-select: none; + `,[V("&::after",` + width: var(--n-resizable-size); + height: 50%; + position: absolute; + top: 50%; + left: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + background-color: var(--n-merged-border-color); + transform: translateY(-50%); + transition: background-color .3s var(--n-bezier); + z-index: 1; + content: ''; + `),Q("active",[V("&::after",` + background-color: var(--n-th-icon-color-active); + `)]),V("&:hover::after",` + background-color: var(--n-th-icon-color-active); + `)]),D("data-table-filter",` + position: absolute; + z-index: auto; + right: 0; + width: 36px; + top: 0; + bottom: 0; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + font-size: var(--n-filter-size); + color: var(--n-th-icon-color); + `,[V("&:hover",` + background-color: var(--n-th-button-color-hover); + `),Q("show",` + background-color: var(--n-th-button-color-hover); + `),Q("active",` + background-color: var(--n-th-button-color-hover); + color: var(--n-th-icon-color-active); + `)])]),D("data-table-td",` + padding: var(--n-td-padding); + text-align: start; + box-sizing: border-box; + border: none; + background-color: var(--n-merged-td-color); + color: var(--n-td-text-color); + border-bottom: 1px solid var(--n-merged-border-color); + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[Q("expand",[D("data-table-expand-trigger",` + margin-right: 0; + `)]),Q("last-row",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[V("&::after",` + bottom: 0 !important; + `),V("&::before",` + bottom: 0 !important; + `)]),Q("summary",` + background-color: var(--n-merged-th-color); + `),Q("hover",` + background-color: var(--n-merged-td-color-hover); + `),Q("sorting",` + background-color: var(--n-merged-td-color-sorting); + `),Z("ellipsis",` + display: inline-block; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + vertical-align: bottom; + max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); + `),Q("selection, expand",` + text-align: center; + padding: 0; + line-height: 0; + `),dv]),D("data-table-empty",` + box-sizing: border-box; + padding: var(--n-empty-padding); + flex-grow: 1; + flex-shrink: 0; + opacity: 1; + display: flex; + align-items: center; + justify-content: center; + transition: opacity .3s var(--n-bezier); + `,[Q("hide",` + opacity: 0; + `)]),Z("pagination",` + margin: var(--n-pagination-margin); + display: flex; + justify-content: flex-end; + `),D("data-table-wrapper",` + position: relative; + opacity: 1; + transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + line-height: var(--n-line-height); + `),Q("loading",[D("data-table-wrapper",` + opacity: var(--n-opacity-loading); + pointer-events: none; + `)]),Q("single-column",[D("data-table-td",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[V("&::after, &::before",` + bottom: 0 !important; + `)])]),Ft("single-line",[D("data-table-th",` + border-right: 1px solid var(--n-merged-border-color); + `,[Q("last",` + border-right: 0 solid var(--n-merged-border-color); + `)]),D("data-table-td",` + border-right: 1px solid var(--n-merged-border-color); + `,[Q("last-col",` + border-right: 0 solid var(--n-merged-border-color); + `)])]),Q("bordered",[D("data-table-wrapper",` + border: 1px solid var(--n-merged-border-color); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + overflow: hidden; + `)]),D("data-table-base-table",[Q("transition-disabled",[D("data-table-th",[V("&::after, &::before","transition: none;")]),D("data-table-td",[V("&::after, &::before","transition: none;")])])]),Q("bottom-bordered",[D("data-table-td",[Q("last-row",` + border-bottom: 1px solid var(--n-merged-border-color); + `)])]),D("data-table-table",` + font-variant-numeric: tabular-nums; + width: 100%; + word-break: break-word; + transition: background-color .3s var(--n-bezier); + border-collapse: separate; + border-spacing: 0; + background-color: var(--n-merged-td-color); + `),D("data-table-base-table-header",` + border-top-left-radius: calc(var(--n-border-radius) - 1px); + border-top-right-radius: calc(var(--n-border-radius) - 1px); + z-index: 3; + overflow: scroll; + flex-shrink: 0; + transition: border-color .3s var(--n-bezier); + scrollbar-width: none; + `,[V("&::-webkit-scrollbar",` + width: 0; + height: 0; + `)]),D("data-table-check-extra",` + transition: color .3s var(--n-bezier); + color: var(--n-th-icon-color); + position: absolute; + font-size: 14px; + right: -4px; + top: 50%; + transform: translateY(-50%); + z-index: 1; + `)]),D("data-table-filter-menu",[D("scrollbar",` + max-height: 240px; + `),Z("group",` + display: flex; + flex-direction: column; + padding: 12px 12px 0 12px; + `,[D("checkbox",` + margin-bottom: 12px; + margin-right: 0; + `),D("radio",` + margin-bottom: 12px; + margin-right: 0; + `)]),Z("action",` + padding: var(--n-action-padding); + display: flex; + flex-wrap: nowrap; + justify-content: space-evenly; + border-top: 1px solid var(--n-action-divider-color); + `,[D("button",[V("&:not(:last-child)",` + margin: var(--n-action-button-margin); + `),V("&:last-child",` + margin-right: 0; + `)])]),D("divider",` + margin: 0 !important; + `)]),Gi(D("data-table",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + --n-merged-th-color-hover: var(--n-th-color-hover-modal); + --n-merged-td-color-hover: var(--n-td-color-hover-modal); + --n-merged-th-color-sorting: var(--n-th-color-hover-modal); + --n-merged-td-color-sorting: var(--n-td-color-hover-modal); + --n-merged-td-color-striped: var(--n-td-color-striped-modal); + `)),Ha(D("data-table",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + --n-merged-th-color-hover: var(--n-th-color-hover-popover); + --n-merged-td-color-hover: var(--n-td-color-hover-popover); + --n-merged-th-color-sorting: var(--n-th-color-hover-popover); + --n-merged-td-color-sorting: var(--n-td-color-hover-popover); + --n-merged-td-color-striped: var(--n-td-color-striped-popover); + `))]);function xT(){return[Q("fixed-left",` + left: 0; + position: sticky; + z-index: 2; + `,[V("&::after",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + right: -36px; + `)]),Q("fixed-right",` + right: 0; + position: sticky; + z-index: 1; + `,[V("&::before",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + left: -36px; + `)])]}const K5=xe({name:"DataTable",alias:["AdvancedTable"],props:vD,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=nt(e),a=qt("DataTable",i,n),l=T(()=>{const{bottomBordered:J}=e;return o.value?!1:J!==void 0?J:!0}),s=ze("DataTable","-data-table",bT,E5,e,n),u=M(null),d=M(null),{getResizableWidth:c,clearResizableWidth:h,doUpdateResizableWidth:f}=pT(),{rowsRef:p,colsRef:g,dataRelatedColsRef:v,hasEllipsisRef:b}=gT(e,c),{treeMateRef:x,mergedCurrentPageRef:E,paginatedDataRef:y,rawPaginatedDataRef:k,selectionColumnRef:F,hoverKeyRef:C,mergedPaginationRef:A,mergedFilterStateRef:P,mergedSortStateRef:B,childTriggerColIndexRef:W,doUpdatePage:N,doUpdateFilters:K,onUnstableColumnResize:H,deriveNextSorter:I,filter:O,filters:R,clearFilter:z,clearFilters:_,clearSorter:oe,page:G,sort:j}=fT(e,{dataRelatedColsRef:v}),ue=J=>{const{fileName:me="data.csv",keepOriginalData:Me=!1}=J||{},He=Me?e.data:k.value,We=BD(e.columns,He),Ge=new Blob([We],{type:"text/csv;charset=utf-8"}),qe=URL.createObjectURL(Ge);ry(qe,me.endsWith(".csv")?me:`${me}.csv`),URL.revokeObjectURL(qe)},{doCheckAll:he,doUncheckAll:_e,doCheck:pe,doUncheck:fe,headerCheckboxDisabledRef:Ce,someRowsCheckedRef:Y,allRowsCheckedRef:q,mergedCheckedRowKeySetRef:Se,mergedInderminateRowKeySetRef:je}=sT(e,{selectionColumnRef:F,treeMateRef:x,paginatedDataRef:y}),{stickyExpandedRowsRef:U,mergedExpandedRowKeysRef:te,renderExpandRef:ge,expandableRef:we,doUpdateExpandedRowKeys:le}=vT(e,x),{handleTableBodyScroll:re,handleTableHeaderScroll:ce,syncScrollState:ee,setHeaderScrollLeft:ie,leftActiveFixedColKeyRef:de,leftActiveFixedChildrenColKeysRef:ae,rightActiveFixedColKeyRef:X,rightActiveFixedChildrenColKeysRef:se,leftFixedColumnsRef:ve,rightFixedColumnsRef:Te,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:Qe}=hT(e,{bodyWidthRef:u,mainTableInstRef:d,mergedCurrentPageRef:E}),{localeRef:st}=Er("DataTable"),Xe=T(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);et(In,{props:e,treeMateRef:x,renderExpandIconRef:De(e,"renderExpandIcon"),loadingKeySetRef:M(new Set),slots:t,indentRef:De(e,"indent"),childTriggerColIndexRef:W,bodyWidthRef:u,componentId:ii(),hoverKeyRef:C,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:T(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:y,leftActiveFixedColKeyRef:de,leftActiveFixedChildrenColKeysRef:ae,rightActiveFixedColKeyRef:X,rightActiveFixedChildrenColKeysRef:se,leftFixedColumnsRef:ve,rightFixedColumnsRef:Te,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:Qe,mergedCurrentPageRef:E,someRowsCheckedRef:Y,allRowsCheckedRef:q,mergedSortStateRef:B,mergedFilterStateRef:P,loadingRef:De(e,"loading"),rowClassNameRef:De(e,"rowClassName"),mergedCheckedRowKeySetRef:Se,mergedExpandedRowKeysRef:te,mergedInderminateRowKeySetRef:je,localeRef:st,expandableRef:we,stickyExpandedRowsRef:U,rowKeyRef:De(e,"rowKey"),renderExpandRef:ge,summaryRef:De(e,"summary"),virtualScrollRef:De(e,"virtualScroll"),virtualScrollXRef:De(e,"virtualScrollX"),heightForRowRef:De(e,"heightForRow"),minRowHeightRef:De(e,"minRowHeight"),virtualScrollHeaderRef:De(e,"virtualScrollHeader"),headerHeightRef:De(e,"headerHeight"),rowPropsRef:De(e,"rowProps"),stripedRef:De(e,"striped"),checkOptionsRef:T(()=>{const{value:J}=F;return J==null?void 0:J.options}),rawPaginatedDataRef:k,filterMenuCssVarsRef:T(()=>{const{self:{actionDividerColor:J,actionPadding:me,actionButtonMargin:Me}}=s.value;return{"--n-action-padding":me,"--n-action-button-margin":Me,"--n-action-divider-color":J}}),onLoadRef:De(e,"onLoad"),mergedTableLayoutRef:Xe,maxHeightRef:De(e,"maxHeight"),minHeightRef:De(e,"minHeight"),flexHeightRef:De(e,"flexHeight"),headerCheckboxDisabledRef:Ce,paginationBehaviorOnFilterRef:De(e,"paginationBehaviorOnFilter"),summaryPlacementRef:De(e,"summaryPlacement"),filterIconPopoverPropsRef:De(e,"filterIconPopoverProps"),scrollbarPropsRef:De(e,"scrollbarProps"),syncScrollState:ee,doUpdatePage:N,doUpdateFilters:K,getResizableWidth:c,onUnstableColumnResize:H,clearResizableWidth:h,doUpdateResizableWidth:f,deriveNextSorter:I,doCheck:pe,doUncheck:fe,doCheckAll:he,doUncheckAll:_e,doUpdateExpandedRowKeys:le,handleTableHeaderScroll:ce,handleTableBodyScroll:re,setHeaderScrollLeft:ie,renderCell:De(e,"renderCell")});const pt={filter:O,filters:R,clearFilters:_,clearSorter:oe,page:G,sort:j,clearFilter:z,downloadCsv:ue,scrollTo:(J,me)=>{var Me;(Me=d.value)===null||Me===void 0||Me.scrollTo(J,me)}},Ye=T(()=>{const{size:J}=e,{common:{cubicBezierEaseInOut:me},self:{borderColor:Me,tdColorHover:He,tdColorSorting:We,tdColorSortingModal:Ge,tdColorSortingPopover:qe,thColorSorting:ot,thColorSortingModal:yt,thColorSortingPopover:Bt,thColor:_t,thColorHover:xo,tdColor:Ao,tdTextColor:Bo,thTextColor:No,thFontWeight:Vo,thButtonColorHover:un,thIconColor:dn,thIconColorActive:be,filterSize:Be,borderRadius:rt,lineHeight:wt,tdColorModal:zt,thColorModal:Mt,borderColorModal:Yt,thColorHoverModal:no,tdColorHoverModal:En,borderColorPopover:nr,thColorPopover:rr,tdColorPopover:di,tdColorHoverPopover:Qa,thColorHoverPopover:Ja,paginationMargin:el,emptyPadding:tl,boxShadowAfter:Rr,boxShadowBefore:$r,sorterSize:rc,resizableContainerSize:ic,resizableSize:ac,loadingColor:lc,loadingSize:sc,opacityLoading:uc,tdColorStriped:dc,tdColorStripedModal:cc,tdColorStripedPopover:fc,[ke("fontSize",J)]:hc,[ke("thPadding",J)]:pc,[ke("tdPadding",J)]:mc}}=s.value;return{"--n-font-size":hc,"--n-th-padding":pc,"--n-td-padding":mc,"--n-bezier":me,"--n-border-radius":rt,"--n-line-height":wt,"--n-border-color":Me,"--n-border-color-modal":Yt,"--n-border-color-popover":nr,"--n-th-color":_t,"--n-th-color-hover":xo,"--n-th-color-modal":Mt,"--n-th-color-hover-modal":no,"--n-th-color-popover":rr,"--n-th-color-hover-popover":Ja,"--n-td-color":Ao,"--n-td-color-hover":He,"--n-td-color-modal":zt,"--n-td-color-hover-modal":En,"--n-td-color-popover":di,"--n-td-color-hover-popover":Qa,"--n-th-text-color":No,"--n-td-text-color":Bo,"--n-th-font-weight":Vo,"--n-th-button-color-hover":un,"--n-th-icon-color":dn,"--n-th-icon-color-active":be,"--n-filter-size":Be,"--n-pagination-margin":el,"--n-empty-padding":tl,"--n-box-shadow-before":$r,"--n-box-shadow-after":Rr,"--n-sorter-size":rc,"--n-resizable-container-size":ic,"--n-resizable-size":ac,"--n-loading-size":sc,"--n-loading-color":lc,"--n-opacity-loading":uc,"--n-td-color-striped":dc,"--n-td-color-striped-modal":cc,"--n-td-color-striped-popover":fc,"n-td-color-sorting":We,"n-td-color-sorting-modal":Ge,"n-td-color-sorting-popover":qe,"n-th-color-sorting":ot,"n-th-color-sorting-modal":yt,"n-th-color-sorting-popover":Bt}}),Le=r?vt("data-table",T(()=>e.size[0]),Ye,e):void 0,tt=T(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const J=A.value,{pageCount:me}=J;return me!==void 0?me>1:J.itemCount&&J.pageSize&&J.itemCount>J.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:n,rtlEnabled:a,mergedTheme:s,paginatedData:y,mergedBordered:o,mergedBottomBordered:l,mergedPagination:A,mergedShowPagination:tt,cssVars:r?void 0:Ye,themeClass:Le==null?void 0:Le.themeClass,onRender:Le==null?void 0:Le.onRender},pt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:n,spinProps:r}=this;return o==null||o(),m("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},m("div",{class:`${e}-data-table-wrapper`},m(lT,{ref:"mainTableInstRef"})),this.mergedShowPagination?m("div",{class:`${e}-data-table__pagination`},m(sD,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,m(po,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m("div",{class:`${e}-data-table-loading-wrapper`},wo(n.loading,()=>[m(_r,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),yT={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function G5(e){const{popoverColor:t,textColor2:o,primaryColor:n,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:u,iconColorDisabled:d}=e;return Object.assign(Object.assign({},yT),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:u,iconColorDisabled:d})}const q5={name:"TimePicker",common:Ve,peers:{Scrollbar:Lo,Button:Ho,Input:Xo},self:G5},Z5={name:"TimePicker",common:Ne,peers:{Scrollbar:Zo,Button:Yo,Input:Sn},self:G5},CT={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function X5(e){const{hoverColor:t,fontSize:o,textColor2:n,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:u,textColor1:d,dividerColor:c,boxShadow2:h,borderRadius:f,fontWeightStrong:p}=e;return Object.assign(Object.assign({},CT),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Ae(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:n,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:c,calendarDaysDividerColor:c,calendarDividerColor:c,panelActionDividerColor:c,panelBoxShadow:h,panelBorderRadius:f,calendarTitleFontWeight:p,scrollItemBorderRadius:f,iconColor:s,iconColorDisabled:u})}const wT={name:"DatePicker",common:Ve,peers:{Input:Xo,Button:Ho,TimePicker:q5,Scrollbar:Lo},self:X5},ST={name:"DatePicker",common:Ne,peers:{Input:Sn,Button:Yo,TimePicker:Z5,Scrollbar:Zo},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=X5(e);return r.itemColorDisabled=Ue(t,o),r.itemColorIncluded=Ae(n,{alpha:.15}),r.itemColorHover=Ue(t,o),r}},ET={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function Y5(e){const{tableHeaderColor:t,textColor2:o,textColor1:n,cardColor:r,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:u,lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f}=e;return Object.assign(Object.assign({},ET),{lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f,titleTextColor:n,thColor:Ue(r,t),thColorModal:Ue(i,t),thColorPopover:Ue(a,t),thTextColor:n,thFontWeight:u,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ue(r,l),borderColorModal:Ue(i,l),borderColorPopover:Ue(a,l),borderRadius:s})}const kT={name:"Descriptions",common:Ve,self:Y5},_T={name:"Descriptions",common:Ne,self:Y5},FT={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function Q5(e){const{textColor1:t,textColor2:o,modalColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:u,successColor:d,warningColor:c,errorColor:h,primaryColor:f,dividerColor:p,borderRadius:g,fontWeightStrong:v,lineHeight:b,fontSize:x}=e;return Object.assign(Object.assign({},FT),{fontSize:x,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:o,color:n,closeColorHover:l,closeColorPressed:s,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:f,iconColorInfo:u,iconColorSuccess:d,iconColorWarning:c,iconColorError:h,borderRadius:g,titleFontWeight:v})}const om={name:"Dialog",common:Ve,peers:{Button:Ho},self:Q5},J5={name:"Dialog",common:Ne,peers:{Button:Yo},self:Q5},qd={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},ew=ws(qd),RT=V([D("dialog",` + --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); + word-break: break-word; + line-height: var(--n-line-height); + position: relative; + background: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + margin: auto; + border-radius: var(--n-border-radius); + padding: var(--n-padding); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[Z("icon",{color:"var(--n-icon-color)"}),Q("bordered",{border:"var(--n-border)"}),Q("icon-top",[Z("close",{margin:"var(--n-close-margin)"}),Z("icon",{margin:"var(--n-icon-margin)"}),Z("content",{textAlign:"center"}),Z("title",{justifyContent:"center"}),Z("action",{justifyContent:"center"})]),Q("icon-left",[Z("icon",{margin:"var(--n-icon-margin)"}),Q("closable",[Z("title",` + padding-right: calc(var(--n-close-size) + 6px); + `)])]),Z("close",` + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + z-index: 1; + `),Z("content",` + font-size: var(--n-font-size); + margin: var(--n-content-margin); + position: relative; + word-break: break-word; + `,[Q("last","margin-bottom: 0;")]),Z("action",` + display: flex; + justify-content: flex-end; + `,[V("> *:not(:last-child)",` + margin-right: var(--n-action-space); + `)]),Z("icon",` + font-size: var(--n-icon-size); + transition: color .3s var(--n-bezier); + `),Z("title",` + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),D("dialog-icon-container",` + display: flex; + justify-content: center; + `)]),Gi(D("dialog",` + width: 446px; + max-width: calc(100vw - 32px); + `)),D("dialog",[Bx(` + width: 446px; + max-width: calc(100vw - 32px); + `)])]),$T={default:()=>m(is,null),info:()=>m(is,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(zd,null)},tw=xe({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},ze.props),qd),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=qt("Dialog",r,o),a=T(()=>{var f,p;const{iconPlacement:g}=e;return g||((p=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function l(f){const{onPositiveClick:p}=e;p&&p(f)}function s(f){const{onNegativeClick:p}=e;p&&p(f)}function u(){const{onClose:f}=e;f&&f()}const d=ze("Dialog","-dialog",RT,om,e,o),c=T(()=>{const{type:f}=e,p=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:v,lineHeight:b,border:x,titleTextColor:E,textColor:y,color:k,closeBorderRadius:F,closeColorHover:C,closeColorPressed:A,closeIconColor:P,closeIconColorHover:B,closeIconColorPressed:W,closeIconSize:N,borderRadius:K,titleFontWeight:H,titleFontSize:I,padding:O,iconSize:R,actionSpace:z,contentMargin:_,closeSize:oe,[p==="top"?"iconMarginIconTop":"iconMargin"]:G,[p==="top"?"closeMarginIconTop":"closeMargin"]:j,[ke("iconColor",f)]:ue}}=d.value,he=Ro(G);return{"--n-font-size":v,"--n-icon-color":ue,"--n-bezier":g,"--n-close-margin":j,"--n-icon-margin-top":he.top,"--n-icon-margin-right":he.right,"--n-icon-margin-bottom":he.bottom,"--n-icon-margin-left":he.left,"--n-icon-size":R,"--n-close-size":oe,"--n-close-icon-size":N,"--n-close-border-radius":F,"--n-close-color-hover":C,"--n-close-color-pressed":A,"--n-close-icon-color":P,"--n-close-icon-color-hover":B,"--n-close-icon-color-pressed":W,"--n-color":k,"--n-text-color":y,"--n-border-radius":K,"--n-padding":O,"--n-line-height":b,"--n-border":x,"--n-content-margin":_,"--n-title-font-size":I,"--n-title-font-weight":H,"--n-title-text-color":E,"--n-action-space":z}}),h=n?vt("dialog",T(()=>`${e.type[0]}${a.value[0]}`),c,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:l,handleNegativeClick:s,handleCloseClick:u,cssVars:n?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:n,closable:r,showIcon:i,title:a,content:l,action:s,negativeText:u,positiveText:d,positiveButtonProps:c,negativeButtonProps:h,handlePositiveClick:f,handleNegativeClick:p,mergedTheme:g,loading:v,type:b,mergedClsPrefix:x}=this;(e=this.onRender)===null||e===void 0||e.call(this);const E=i?m(Ut,{clsPrefix:x,class:`${x}-dialog__icon`},{default:()=>bt(this.$slots.icon,k=>k||(this.icon?Jt(this.icon):$T[this.type]()))}):null,y=bt(this.$slots.action,k=>k||d||u||s?m("div",{class:[`${x}-dialog__action`,this.actionClass],style:this.actionStyle},k||(s?[Jt(s)]:[this.negativeText&&m(Et,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>Jt(this.negativeText)}),this.positiveText&&m(Et,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:v,loading:v,onClick:f},c),{default:()=>Jt(this.positiveText)})])):null);return m("div",{class:[`${x}-dialog`,this.themeClass,this.closable&&`${x}-dialog--closable`,`${x}-dialog--icon-${o}`,t&&`${x}-dialog--bordered`,this.rtlEnabled&&`${x}-dialog--rtl`],style:n,role:"dialog"},r?bt(this.$slots.close,k=>{const F=[`${x}-dialog__close`,this.rtlEnabled&&`${x}-dialog--rtl`];return k?m("div",{class:F},k):m(li,{clsPrefix:x,class:F,onClick:this.handleCloseClick})}):null,i&&o==="top"?m("div",{class:`${x}-dialog-icon-container`},E):null,m("div",{class:[`${x}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?E:null,wo(this.$slots.header,()=>[Jt(a)])),m("div",{class:[`${x}-dialog__content`,y?"":`${x}-dialog__content--last`,this.contentClass],style:this.contentStyle},wo(this.$slots.default,()=>[Jt(l)])),y)}}),ow="n-dialog-provider",nw="n-dialog-api",PT="n-dialog-reactive-list";function rw(e){const{modalColor:t,textColor2:o,boxShadow3:n}=e;return{color:t,textColor:o,boxShadow:n}}const iw={name:"Modal",common:Ve,peers:{Scrollbar:Lo,Dialog:om,Card:Up},self:rw},MT={name:"Modal",common:Ne,peers:{Scrollbar:Zo,Dialog:J5,Card:JC},self:rw},nm=Object.assign(Object.assign({},Kp),qd),AT=ws(nm),BT=xe({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},nm),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=M(null),o=M(null),n=M(e.show),r=M(null),i=M(null);at(De(e,"show"),v=>{v&&(n.value=!0)}),oy(T(()=>e.blockScroll&&n.value));const a=Oe(Lx);function l(){if(a.transformOriginRef.value==="center")return"";const{value:v}=r,{value:b}=i;if(v===null||b===null)return"";if(o.value){const x=o.value.containerScrollTop;return`${v}px ${b+x}px`}return""}function s(v){if(a.transformOriginRef.value==="center")return;const b=a.getMousePosition();if(!b||!o.value)return;const x=o.value.containerScrollTop,{offsetLeft:E,offsetTop:y}=v;if(b){const k=b.y,F=b.x;r.value=-(E-F),i.value=-(y-k-x)}v.style.transformOrigin=l()}function u(v){Rt(()=>{s(v)})}function d(v){v.style.transformOrigin=l(),e.onBeforeLeave()}function c(){n.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:v}=e;v&&v()}function f(){e.onNegativeClick()}function p(){e.onPositiveClick()}const g=M(null);return at(g,v=>{v&&Rt(()=>{const b=v.el;b&&t.value!==b&&(t.value=b)})}),et(Ss,t),et(Es,null),et(Na,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:n,childNodeRef:g,handlePositiveClick:p,handleNegativeClick:f,handleCloseClick:h,handleAfterLeave:c,handleBeforeLeave:d,handleEnter:u}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:n,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Zf(e),!l){xn("modal","default slot is empty");return}l=qo(l),l.props=bo({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?Po(m("div",{role:"none",class:`${a}-modal-body-wrapper`},m(or,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),m(xp,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return m(po,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:r},{default:()=>{const d=[[bn,this.show]],{onClickoutside:c}=this;return c&&d.push([Li,this.onClickoutside,void 0,{capture:!0}]),Po(this.preset==="confirm"||this.preset==="dialog"?m(tw,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},ei(this.$props,ew),{"aria-modal":"true"}),e):this.preset==="card"?m(e5,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},ei(this.$props,EB),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),DT=V([D("modal-container",` + position: fixed; + left: 0; + top: 0; + height: 0; + width: 0; + display: flex; + `),D("modal-mask",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + `,[Ts({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),D("modal-body-wrapper",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: visible; + `,[D("modal-scroll-content",` + min-height: 100%; + display: flex; + position: relative; + `)]),D("modal",` + position: relative; + align-self: center; + color: var(--n-text-color); + margin: auto; + box-shadow: var(--n-box-shadow); + `,[An({duration:".25s",enterScale:".5"})])]),aw=Object.assign(Object.assign(Object.assign(Object.assign({},ze.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),nm),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),rm=xe({name:"Modal",inheritAttrs:!1,props:aw,setup(e){const t=M(null),{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=nt(e),i=ze("Modal","-modal",DT,iw,e,o),a=Xu(64),l=Zu(),s=Cr(),u=e.internalDialog?Oe(ow,null):null,d=e.internalModal?Oe(hk,null):null,c=ny();function h(F){const{onUpdateShow:C,"onUpdate:show":A,onHide:P}=e;C&&Pe(C,F),A&&Pe(A,F),P&&!F&&P(F)}function f(){const{onClose:F}=e;F?Promise.resolve(F()).then(C=>{C!==!1&&h(!1)}):h(!1)}function p(){const{onPositiveClick:F}=e;F?Promise.resolve(F()).then(C=>{C!==!1&&h(!1)}):h(!1)}function g(){const{onNegativeClick:F}=e;F?Promise.resolve(F()).then(C=>{C!==!1&&h(!1)}):h(!1)}function v(){const{onBeforeLeave:F,onBeforeHide:C}=e;F&&Pe(F),C&&C()}function b(){const{onAfterLeave:F,onAfterHide:C}=e;F&&Pe(F),C&&C()}function x(F){var C;const{onMaskClick:A}=e;A&&A(F),e.maskClosable&&!((C=t.value)===null||C===void 0)&&C.contains(Oi(F))&&h(!1)}function E(F){var C;(C=e.onEsc)===null||C===void 0||C.call(e),e.show&&e.closeOnEsc&&Tx(F)&&(c.value||h(!1))}et(Lx,{getMousePosition:()=>{const F=u||d;if(F){const{clickedRef:C,clickedPositionRef:A}=F;if(C.value&&A.value)return A.value}return a.value?l.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:s,appearRef:De(e,"internalAppear"),transformOriginRef:De(e,"transformOrigin")});const y=T(()=>{const{common:{cubicBezierEaseOut:F},self:{boxShadow:C,color:A,textColor:P}}=i.value;return{"--n-bezier-ease-out":F,"--n-box-shadow":C,"--n-color":A,"--n-text-color":P}}),k=r?vt("theme-class",void 0,y,e):void 0;return{mergedClsPrefix:o,namespace:n,isMounted:s,containerRef:t,presetProps:T(()=>ei(e,AT)),handleEsc:E,handleAfterLeave:b,handleClickoutside:x,handleBeforeLeave:v,doUpdateShow:h,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:f,cssVars:r?void 0:y,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e}=this;return m(gp,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return Po(m("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},m(BT,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var n;return m(po,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Pd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),TT=Object.assign(Object.assign({},qd),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),IT=xe({name:"DialogEnvironment",props:Object.assign(Object.assign({},TT),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=M(!0);function o(){const{onInternalAfterLeave:d,internalKey:c,onAfterLeave:h}=e;d&&d(c),h&&h()}function n(d){const{onPositiveClick:c}=e;c?Promise.resolve(c(d)).then(h=>{h!==!1&&s()}):s()}function r(d){const{onNegativeClick:c}=e;c?Promise.resolve(c(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function a(d){const{onMaskClick:c,maskClosable:h}=e;c&&(c(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function u(d){t.value=d}return{show:t,hide:s,handleUpdateShow:u,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:n,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:u}=this;return m(rm,{show:u,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>m(tw,Object.assign({},ei(this.$props,ew),{style:this.internalStyle,onClose:n,onNegativeClick:o,onPositiveClick:e}))})}}),zT={injectionKey:String,to:[String,Object]},OT=xe({name:"DialogProvider",props:zT,setup(){const e=M([]),t={};function o(l={}){const s=ii(),u=It(Object.assign(Object.assign({},l),{key:s,destroy:()=>{var d;(d=t[`n-dialog-${s}`])===null||d===void 0||d.hide()}}));return e.value.push(u),u}const n=["info","success","warning","error"].map(l=>s=>o(Object.assign(Object.assign({},s),{type:l})));function r(l){const{value:s}=e;s.splice(s.findIndex(u=>u.key===l),1)}function i(){Object.values(t).forEach(l=>{l==null||l.hide()})}const a={create:o,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return et(nw,a),et(ow,{clickedRef:Xu(64),clickedPositionRef:Zu()}),et(PT,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return m(ft,null,[this.dialogList.map(o=>m(IT,Ki(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function LT(){const e=Oe(nw,null);return e===null&&yr("use-dialog","No outer <n-dialog-provider /> founded."),e}function lw(e){const{textColor1:t,dividerColor:o,fontWeightStrong:n}=e;return{textColor:t,color:o,fontWeight:n}}const sw={name:"Divider",common:Ve,self:lw},HT={name:"Divider",common:Ne,self:lw},NT=D("divider",` + position: relative; + display: flex; + width: 100%; + box-sizing: border-box; + font-size: 16px; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); +`,[Ft("vertical",` + margin-top: 24px; + margin-bottom: 24px; + `,[Ft("no-title",` + display: flex; + align-items: center; + `)]),Z("title",` + display: flex; + align-items: center; + margin-left: 12px; + margin-right: 12px; + white-space: nowrap; + font-weight: var(--n-font-weight); + `),Q("title-position-left",[Z("line",[Q("left",{width:"28px"})])]),Q("title-position-right",[Z("line",[Q("right",{width:"28px"})])]),Q("dashed",[Z("line",` + background-color: #0000; + height: 0px; + width: 100%; + border-style: dashed; + border-width: 1px 0 0; + `)]),Q("vertical",` + display: inline-block; + height: 1em; + margin: 0 8px; + vertical-align: middle; + width: 1px; + `),Z("line",` + border: none; + transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); + height: 1px; + width: 100%; + margin: 0; + `),Ft("dashed",[Z("line",{backgroundColor:"var(--n-color)"})]),Q("dashed",[Z("line",{borderColor:"var(--n-color)"})]),Q("vertical",{backgroundColor:"var(--n-color)"})]),VT=Object.assign(Object.assign({},ze.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),jT=xe({name:"Divider",props:VT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=ze("Divider","-divider",NT,sw,e,t),r=T(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:u}}=n.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":u}}),i=o?vt("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:n,dashed:r,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:n,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:r,[`${a}-divider--title-position-${o}`]:t.default&&o}],style:i},n?null:m("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!n&&t.default?m(ft,null,m("div",{class:`${a}-divider__title`},this.$slots),m("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}});function uw(e){const{modalColor:t,textColor1:o,textColor2:n,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,borderRadius:f,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:f,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:o,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:u,closeBorderRadius:f,resizableTriggerColorHover:p}}const dw={name:"Drawer",common:Ve,peers:{Scrollbar:Lo},self:uw},WT={name:"Drawer",common:Ne,peers:{Scrollbar:Zo},self:uw},UT=xe({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=M(!!e.show),o=M(null),n=Oe(mp);let r=0,i="",a=null;const l=M(!1),s=M(!1),u=T(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:c}=nt(e),h=qt("Drawer",c,d),f=F,p=P=>{s.value=!0,r=u.value?P.clientY:P.clientX,i=document.body.style.cursor,document.body.style.cursor=u.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",k),document.body.addEventListener("mouseleave",f),document.body.addEventListener("mouseup",F)},g=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},v=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:b,doUpdateWidth:x}=n,E=P=>{const{maxWidth:B}=e;if(B&&P>B)return B;const{minWidth:W}=e;return W&&P<W?W:P},y=P=>{const{maxHeight:B}=e;if(B&&P>B)return B;const{minHeight:W}=e;return W&&P<W?W:P};function k(P){var B,W;if(s.value)if(u.value){let N=((B=o.value)===null||B===void 0?void 0:B.offsetHeight)||0;const K=r-P.clientY;N+=e.placement==="bottom"?K:-K,N=y(N),b(N),r=P.clientY}else{let N=((W=o.value)===null||W===void 0?void 0:W.offsetWidth)||0;const K=r-P.clientX;N+=e.placement==="right"?K:-K,N=E(N),x(N),r=P.clientX}}function F(){s.value&&(r=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",k),document.body.removeEventListener("mouseup",F),document.body.removeEventListener("mouseleave",f))}kt(()=>{e.show&&(t.value=!0)}),at(()=>e.show,P=>{P||F()}),Xt(()=>{F()});const C=T(()=>{const{show:P}=e,B=[[bn,P]];return e.showMask||B.push([Li,e.onClickoutside,void 0,{capture:!0}]),B});function A(){var P;t.value=!1,(P=e.onAfterLeave)===null||P===void 0||P.call(e)}return oy(T(()=>e.blockScroll&&t.value)),et(Es,o),et(Na,null),et(Ss,null),{bodyRef:o,rtlEnabled:h,mergedClsPrefix:n.mergedClsPrefixRef,isMounted:n.isMountedRef,mergedTheme:n.mergedThemeRef,displayed:t,transitionName:T(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:A,bodyDirectives:C,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:v,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?Po(m("div",{role:"none"},m(xp,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>m(po,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>Po(m("div",bo(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?m("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?m("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):m(or,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:KT,cubicBezierEaseOut:GT}=sn;function qT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[V(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${KT}`}),V(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${GT}`}),V(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),V(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),V(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),V(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:ZT,cubicBezierEaseOut:XT}=sn;function YT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[V(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${ZT}`}),V(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${XT}`}),V(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),V(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),V(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),V(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:QT,cubicBezierEaseOut:JT}=sn;function eI({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[V(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${QT}`}),V(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${JT}`}),V(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),V(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),V(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),V(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:tI,cubicBezierEaseOut:oI}=sn;function nI({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[V(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${tI}`}),V(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${oI}`}),V(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),V(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),V(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),V(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const rI=V([D("drawer",` + word-break: break-word; + line-height: var(--n-line-height); + position: absolute; + pointer-events: all; + box-shadow: var(--n-box-shadow); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background-color: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + `,[qT(),YT(),eI(),nI(),Q("unselectable",` + user-select: none; + -webkit-user-select: none; + `),Q("native-scrollbar",[D("drawer-content-wrapper",` + overflow: auto; + height: 100%; + `)]),Z("resize-trigger",` + position: absolute; + background-color: #0000; + transition: background-color .3s var(--n-bezier); + `,[Q("hover",` + background-color: var(--n-resize-trigger-color-hover); + `)]),D("drawer-content-wrapper",` + box-sizing: border-box; + `),D("drawer-content",` + height: 100%; + display: flex; + flex-direction: column; + `,[Q("native-scrollbar",[D("drawer-body-content-wrapper",` + height: 100%; + overflow: auto; + `)]),D("drawer-body",` + flex: 1 0 0; + overflow: hidden; + `),D("drawer-body-content-wrapper",` + box-sizing: border-box; + padding: var(--n-body-padding); + `),D("drawer-header",` + font-weight: var(--n-title-font-weight); + line-height: 1; + font-size: var(--n-title-font-size); + color: var(--n-title-text-color); + padding: var(--n-header-padding); + transition: border .3s var(--n-bezier); + border-bottom: 1px solid var(--n-divider-color); + border-bottom: var(--n-header-border-bottom); + display: flex; + justify-content: space-between; + align-items: center; + `,[Z("main",` + flex: 1; + `),Z("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),D("drawer-footer",` + display: flex; + justify-content: flex-end; + border-top: var(--n-footer-border-top); + transition: border .3s var(--n-bezier); + padding: var(--n-footer-padding); + `)]),Q("right-placement",` + top: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-bottom-left-radius: var(--n-border-radius); + `,[Z("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + left: 0; + transform: translateX(-1.5px); + cursor: ew-resize; + `)]),Q("left-placement",` + top: 0; + bottom: 0; + left: 0; + border-top-right-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[Z("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + right: 0; + transform: translateX(1.5px); + cursor: ew-resize; + `)]),Q("top-placement",` + top: 0; + left: 0; + right: 0; + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[Z("resize-trigger",` + width: 100%; + height: 3px; + bottom: 0; + left: 0; + transform: translateY(1.5px); + cursor: ns-resize; + `)]),Q("bottom-placement",` + left: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + `,[Z("resize-trigger",` + width: 100%; + height: 3px; + top: 0; + left: 0; + transform: translateY(-1.5px); + cursor: ns-resize; + `)])]),V("body",[V(">",[D("drawer-container",` + position: fixed; + `)])]),D("drawer-container",` + position: relative; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + `,[V("> *",` + pointer-events: all; + `)]),D("drawer-mask",` + background-color: rgba(0, 0, 0, .3); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[Q("invisible",` + background-color: rgba(0, 0, 0, 0) + `),Ts({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),iI=Object.assign(Object.assign({},ze.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),aI=xe({name:"Drawer",inheritAttrs:!1,props:iI,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=nt(e),r=Cr(),i=ze("Drawer","-drawer",rI,dw,e,t),a=M(e.defaultWidth),l=M(e.defaultHeight),s=to(De(e,"width"),a),u=to(De(e,"height"),l),d=T(()=>{const{placement:F}=e;return F==="top"||F==="bottom"?"":So(s.value)}),c=T(()=>{const{placement:F}=e;return F==="left"||F==="right"?"":So(u.value)}),h=F=>{const{onUpdateWidth:C,"onUpdate:width":A}=e;C&&Pe(C,F),A&&Pe(A,F),a.value=F},f=F=>{const{onUpdateHeight:C,"onUpdate:width":A}=e;C&&Pe(C,F),A&&Pe(A,F),l.value=F},p=T(()=>[{width:d.value,height:c.value},e.drawerStyle||""]);function g(F){const{onMaskClick:C,maskClosable:A}=e;A&&E(!1),C&&C(F)}function v(F){g(F)}const b=ny();function x(F){var C;(C=e.onEsc)===null||C===void 0||C.call(e),e.show&&e.closeOnEsc&&Tx(F)&&(b.value||E(!1))}function E(F){const{onHide:C,onUpdateShow:A,"onUpdate:show":P}=e;A&&Pe(A,F),P&&Pe(P,F),C&&!F&&Pe(C,F)}et(mp,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:E,doUpdateHeight:f,doUpdateWidth:h});const y=T(()=>{const{common:{cubicBezierEaseInOut:F,cubicBezierEaseIn:C,cubicBezierEaseOut:A},self:{color:P,textColor:B,boxShadow:W,lineHeight:N,headerPadding:K,footerPadding:H,borderRadius:I,bodyPadding:O,titleFontSize:R,titleTextColor:z,titleFontWeight:_,headerBorderBottom:oe,footerBorderTop:G,closeIconColor:j,closeIconColorHover:ue,closeIconColorPressed:he,closeColorHover:_e,closeColorPressed:pe,closeIconSize:fe,closeSize:Ce,closeBorderRadius:Y,resizableTriggerColorHover:q}}=i.value;return{"--n-line-height":N,"--n-color":P,"--n-border-radius":I,"--n-text-color":B,"--n-box-shadow":W,"--n-bezier":F,"--n-bezier-out":A,"--n-bezier-in":C,"--n-header-padding":K,"--n-body-padding":O,"--n-footer-padding":H,"--n-title-text-color":z,"--n-title-font-size":R,"--n-title-font-weight":_,"--n-header-border-bottom":oe,"--n-footer-border-top":G,"--n-close-icon-color":j,"--n-close-icon-color-hover":ue,"--n-close-icon-color-pressed":he,"--n-close-size":Ce,"--n-close-color-hover":_e,"--n-close-color-pressed":pe,"--n-close-icon-size":fe,"--n-close-border-radius":Y,"--n-resize-trigger-color-hover":q}}),k=n?vt("drawer",void 0,y,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:p,handleOutsideClick:v,handleMaskClick:g,handleEsc:x,mergedTheme:i,cssVars:n?void 0:y,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return m(gp,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),Po(m("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?m(po,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,m(UT,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[Pd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),lI={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},sI=xe({name:"DrawerContent",props:lI,setup(){const e=Oe(mp,null);e||yr("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:n,bodyClass:r,bodyStyle:i,bodyContentClass:a,bodyContentStyle:l,headerClass:s,headerStyle:u,footerClass:d,footerStyle:c,scrollbarProps:h,closable:f,$slots:p}=this;return m("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},p.header||e||f?m("div",{class:[`${t}-drawer-header`,s],style:u,role:"none"},m("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},p.header!==void 0?p.header():e),f&&m(li,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?m("div",{class:[`${t}-drawer-body`,r],style:i,role:"none"},m("div",{class:[`${t}-drawer-body-content-wrapper`,a],style:l,role:"none"},p)):m(or,Object.assign({themeOverrides:n.peerOverrides.Scrollbar,theme:n.peers.Scrollbar},h,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,a],contentStyle:l}),p),p.footer?m("div",{class:[`${t}-drawer-footer`,d],style:c,role:"none"},p.footer()):null)}}),cw={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},uI={name:"DynamicInput",common:Ne,peers:{Input:Sn,Button:Yo},self(){return cw}};function dI(){return cw}const cI={name:"DynamicInput",common:Ve,peers:{Input:Xo,Button:Ho},self:dI},fw={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},hw={name:"Space",self(){return fw}};function fI(){return fw}const im={name:"Space",self:fI};let tf;function hI(){if(!wn)return!0;if(tf===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),tf=t}return tf}const pI=Object.assign(Object.assign({},ze.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Iu=xe({name:"Space",props:pI,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=nt(e),n=ze("Space","-space",void 0,im,e,t),r=qt("Space",o,t);return{useGap:hI(),rtlEnabled:r,mergedClsPrefix:t,margin:T(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ke("gap",i)]:a}}=n.value,{row:l,col:s}=g4(a);return{horizontal:so(s),vertical:so(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:n,justify:r,itemClass:i,itemStyle:a,margin:l,wrap:s,mergedClsPrefix:u,rtlEnabled:d,useGap:c,wrapItem:h,internalUseGap:f}=this,p=vr(cp(this),!1);if(!p.length)return null;const g=`${l.horizontal}px`,v=`${l.horizontal/2}px`,b=`${l.vertical}px`,x=`${l.vertical/2}px`,E=p.length-1,y=r.startsWith("space-");return m("div",{role:"none",class:[`${u}-space`,d&&`${u}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!s||e?"nowrap":"wrap",marginTop:c||e?"":`-${x}`,marginBottom:c||e?"":`-${x}`,alignItems:o,gap:c?`${l.vertical}px ${l.horizontal}px`:""}},!h&&(c||f)?p:p.map((k,F)=>k.type===go?k:m("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},c?"":e?{marginBottom:F!==E?b:""}:d?{marginLeft:y?r==="space-between"&&F===E?"":v:F!==E?g:"",marginRight:y?r==="space-between"&&F===0?"":v:"",paddingTop:x,paddingBottom:x}:{marginRight:y?r==="space-between"&&F===E?"":v:F!==E?g:"",marginLeft:y?r==="space-between"&&F===0?"":v:"",paddingTop:x,paddingBottom:x}]},k)))}}),mI={name:"DynamicTags",common:Ne,peers:{Input:Sn,Button:Yo,Tag:EC,Space:hw},self(){return{inputWidth:"64px"}}},gI={name:"DynamicTags",common:Ve,peers:{Input:Xo,Button:Ho,Tag:Hp,Space:im},self(){return{inputWidth:"64px"}}},vI={name:"Element",common:Ne},pw={name:"Element",common:Ve},bI=Object.assign(Object.assign({},ze.props),{tag:{type:String,default:"div"}}),xI=xe({name:"Element",alias:["El"],props:bI,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=ze("Element","-element",void 0,pw,e,t),r=T(()=>{const{common:a}=n.value;return Object.keys(a).reduce((l,s)=>(l[`--${MP(s)}`]=a[s],l),{})}),i=o?vt("element",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:o,cssVars:n,themeClass:r,onRender:i,$slots:a}=this;return i==null||i(),m(t,{role:"none",class:[`${o}-element`,r],style:n},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),mw={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},yI={name:"Flex",self(){return mw}};function CI(){return mw}const wI={name:"Flex",self:CI},SI={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function gw(e){const{heightSmall:t,heightMedium:o,heightLarge:n,textColor1:r,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},SI),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:n,lineHeight:l,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})}const EI={name:"Form",common:Ve,self:gw},kI={name:"Form",common:Ne,self:gw},cv=1,vw="n-grid",bw=1,_I={span:{type:[Number,String],default:bw},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},xw=xe({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:_I,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:o,overflowRef:n,layoutShiftDisabledRef:r}=Oe(vw),i=xr();return{overflow:n,itemStyle:o,layoutShiftDisabled:r,mergedXGap:T(()=>Ht(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=bw,privateShow:l=!0,privateColStart:s=void 0,privateOffset:u=0}=i.vnode.props,{value:d}=t,c=Ht(d||0);return{display:l?"":"none",gridColumn:`${s??`span ${a}`} / span ${a}`,marginLeft:u?`calc((100% - (${a} - 1) * ${c}) / ${a} * ${u} + ${c} * ${u})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:o,offset:n,mergedXGap:r}=this;return m("div",{style:{gridColumn:`span ${o} / span ${o}`,marginLeft:n?`calc((100% - (${o} - 1) * ${r}) / ${o} * ${n} + ${r} * ${n})`:""}},this.$slots)}return m("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),FI={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function yw(e){const{textColor2:t,successColor:o,infoColor:n,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:u,closeColorHover:d,closeColorPressed:c,textColor1:h,textColor3:f,borderRadius:p,fontWeightStrong:g,boxShadow2:v,lineHeight:b,fontSize:x}=e;return Object.assign(Object.assign({},FI),{borderRadius:p,lineHeight:b,fontSize:x,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:n,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:u,closeBorderRadius:p,closeColorHover:d,closeColorPressed:c,headerTextColor:h,descriptionTextColor:f,actionTextColor:t,boxShadow:v})}const Cw={name:"Notification",common:Ve,peers:{Scrollbar:Lo},self:yw},RI={name:"Notification",common:Ne,peers:{Scrollbar:Zo},self:yw},$I={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function ww(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:u,boxShadow2:d,primaryColor:c,lineHeight:h,borderRadius:f,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},$I),{closeBorderRadius:f,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:u,colorInfo:u,colorSuccess:u,colorError:u,colorWarning:u,colorLoading:u,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:c,closeColorHover:p,closeColorPressed:g,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:n,closeIconColorPressedInfo:r,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:r,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:n,closeIconColorPressedError:r,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:n,closeIconColorPressedWarning:r,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:n,closeIconColorPressedLoading:r,loadingColor:c,lineHeight:h,borderRadius:f})}const Sw={name:"Message",common:Ve,self:ww},PI={name:"Message",common:Ne,self:ww},MI={name:"ButtonGroup",common:Ne},AI={name:"ButtonGroup",common:Ve},BI={name:"GradientText",common:Ne,self(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:u,infoColorSuppl:d,fontWeightStrong:c}=e;return{fontWeight:c,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:n,colorEndWarning:s,colorStartError:r,colorEndError:u,colorStartSuccess:o,colorEndSuccess:l}}};function DI(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:Ae(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Ae(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:Ae(n,{alpha:.6}),colorEndWarning:n,colorStartError:Ae(r,{alpha:.6}),colorEndError:r,colorStartSuccess:Ae(o,{alpha:.6}),colorEndSuccess:o}}const TI={name:"GradientText",common:Ve,self:DI},II={name:"InputNumber",common:Ne,peers:{Button:Yo,Input:Sn},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function zI(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const Ew={name:"InputNumber",common:Ve,peers:{Button:Ho,Input:Xo},self:zI},OI={name:"Layout",common:Ne,peers:{Scrollbar:Zo},self(e){const{textColor2:t,bodyColor:o,popoverColor:n,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ue(o,a),siderToggleBarColorHover:Ue(o,l),__invertScrollbar:"false"}}};function LI(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:u}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:r,headerColorInverted:u,footerColor:a,footerColorInverted:u,headerBorderColor:i,headerBorderColorInverted:u,footerBorderColor:i,footerBorderColorInverted:u,siderBorderColor:i,siderBorderColorInverted:u,siderColor:r,siderColorInverted:u,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Ue(n,l),siderToggleBarColorHover:Ue(n,s),__invertScrollbar:"true"}}const HI={name:"Layout",common:Ve,peers:{Scrollbar:Lo},self:LI};function kw(e){const{textColor2:t,cardColor:o,modalColor:n,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:n,colorHoverModal:Ue(n,s),colorPopover:r,colorHoverPopover:Ue(r,s),borderColor:i,borderColorModal:Ue(n,i),borderColorPopover:Ue(r,i),borderRadius:a,fontSize:l}}const NI={name:"List",common:Ve,self:kw},VI={name:"List",common:Ne,self:kw},jI={name:"LoadingBar",common:Ne,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function WI(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const _w={name:"LoadingBar",common:Ve,self:WI},UI={name:"Log",common:Ne,peers:{Scrollbar:Zo,Code:a5},self(e){const{textColor2:t,inputColor:o,fontSize:n,primaryColor:r}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:r}}};function KI(e){const{textColor2:t,modalColor:o,borderColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${n}`,loadingColor:i}}const Fw={name:"Log",common:Ve,peers:{Scrollbar:Lo,Code:Gp},self:KI},GI={name:"Mention",common:Ne,peers:{InternalSelectMenu:Is,Input:Sn},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function qI(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ZI={name:"Mention",common:Ve,peers:{InternalSelectMenu:Ua,Input:Xo},self:qI};function XI(e,t,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function Rw(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:u}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:Ae(n,{alpha:.1}),itemColorActiveHover:Ae(n,{alpha:.1}),itemColorActiveCollapsed:Ae(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:u,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:u,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},XI("#BBB",n,"#FFF","#AAA"))}const YI={name:"Menu",common:Ve,peers:{Tooltip:zs,Dropdown:Kd},self:Rw},QI={name:"Menu",common:Ne,peers:{Tooltip:Wd,Dropdown:Jp},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,n=Rw(e);return n.itemColorActive=Ae(t,{alpha:.15}),n.itemColorActiveHover=Ae(t,{alpha:.15}),n.itemColorActiveCollapsed=Ae(t,{alpha:.15}),n.itemColorActiveInverted=o,n.itemColorActiveHoverInverted=o,n.itemColorActiveCollapsedInverted=o,n}},JI={titleFontSize:"18px",backSize:"22px"};function $w(e){const{textColor1:t,textColor2:o,textColor3:n,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},JI),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:l,subtitleTextColor:n})}const Pw={name:"PageHeader",common:Ve,self:$w},ez={name:"PageHeader",common:Ne,self:$w},tz={iconSize:"22px"};function Mw(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},tz),{fontSize:t,iconColor:o})}const oz={name:"Popconfirm",common:Ve,peers:{Button:Ho,Popover:si},self:Mw},nz={name:"Popconfirm",common:Ne,peers:{Button:Yo,Popover:Ji},self:Mw};function Aw(e){const{infoColor:t,successColor:o,warningColor:n,errorColor:r,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:n,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:n,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Bw={name:"Progress",common:Ve,self:Aw},Dw={name:"Progress",common:Ne,self(e){const t=Aw(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},rz={name:"Rate",common:Ne,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};function iz(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const az={name:"Rate",common:Ve,self:iz},lz={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tw(e){const{textColor2:t,textColor1:o,errorColor:n,successColor:r,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},lz),{lineHeight:l,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:n,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const sz={name:"Result",common:Ve,self:Tw},uz={name:"Result",common:Ne,self:Tw},Iw={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},dz={name:"Slider",common:Ne,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:u,opacityDisabled:d}=e;return Object.assign(Object.assign({},Iw),{fontSize:u,markFontSize:u,railColor:o,railColorHover:o,fillColor:r,fillColorHover:r,opacityDisabled:d,handleColor:"#FFF",dotColor:l,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}};function cz(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:r,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:u,fontSize:d,opacityDisabled:c}=e;return Object.assign(Object.assign({},Iw),{fontSize:d,markFontSize:d,railColor:n,railColorHover:n,fillColor:r,fillColorHover:r,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:u,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}const zw={name:"Slider",common:Ve,self:cz};function Ow(e){const{opacityDisabled:t,heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:o,sizeSmall:n,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}}const Lw={name:"Spin",common:Ve,self:Ow},fz={name:"Spin",common:Ne,self:Ow};function Hw(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const Nw={name:"Statistic",common:Ve,self:Hw},hz={name:"Statistic",common:Ne,self:Hw},pz={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Vw(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:n,primaryColor:r,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},pz),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:n,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:n,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:r,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})}const mz={name:"Steps",common:Ve,self:Vw},gz={name:"Steps",common:Ne,self:Vw},jw={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},vz={name:"Switch",common:Ne,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:n,primaryColor:r,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},jw),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${Ae(r,{alpha:.3})}`})}};function bz(e){const{primaryColor:t,opacityDisabled:o,borderRadius:n,textColor3:r}=e;return Object.assign(Object.assign({},jw),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${Ae(t,{alpha:.2})}`})}const Ww={name:"Switch",common:Ve,self:bz},xz={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Uw(e){const{dividerColor:t,cardColor:o,modalColor:n,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:u,fontWeightStrong:d,lineHeight:c,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},xz),{fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,lineHeight:c,borderRadius:u,borderColor:Ue(o,t),borderColorModal:Ue(n,t),borderColorPopover:Ue(r,t),tdColor:o,tdColorModal:n,tdColorPopover:r,tdColorStriped:Ue(o,a),tdColorStripedModal:Ue(n,a),tdColorStripedPopover:Ue(r,a),thColor:Ue(o,i),thColorModal:Ue(n,i),thColorPopover:Ue(r,i),thTextColor:l,tdTextColor:s,thFontWeight:d})}const Kw={name:"Table",common:Ve,self:Uw},yz={name:"Table",common:Ne,self:Uw},Cz={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Gw(e){const{textColor2:t,primaryColor:o,textColorDisabled:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:u,baseColor:d,dividerColor:c,fontWeight:h,textColor1:f,borderRadius:p,fontSize:g,fontWeightStrong:v}=e;return Object.assign(Object.assign({},Cz),{colorSegment:u,tabFontSizeCard:g,tabTextColorLine:f,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:n,tabTextColorSegment:f,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:f,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:n,tabTextColorCard:f,tabTextColorHoverCard:f,tabTextColorActiveCard:o,tabTextColorDisabledCard:n,barColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:u,tabColorSegment:d,tabBorderColor:c,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:v})}const qw={name:"Tabs",common:Ve,self:Gw},wz={name:"Tabs",common:Ne,self(e){const t=Gw(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Zw(e){const{textColor1:t,textColor2:o,fontWeightStrong:n,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:o,titleFontWeight:n}}const Sz={name:"Thing",common:Ve,self:Zw},Ez={name:"Thing",common:Ne,self:Zw},Xw={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},kz={name:"Timeline",common:Ne,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:u,fontSize:d}=e;return Object.assign(Object.assign({},Xw),{contentFontSize:d,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}};function _z(e){const{textColor3:t,infoColor:o,errorColor:n,successColor:r,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:u,fontSize:d}=e;return Object.assign(Object.assign({},Xw),{contentFontSize:d,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}const Fz={name:"Timeline",common:Ve,self:_z},Yw={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},Rz={name:"Transfer",common:Ne,peers:{Checkbox:Ga,Scrollbar:Zo,Input:Sn,Empty:Qi,Button:Yo},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:u,textColor1:d,textColorDisabled:c,textColor2:h,textColor3:f,hoverColor:p,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:E,dividerColor:y}=e;return Object.assign(Object.assign({},Yw),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:l,dividerColor:y,borderColor:"#0000",listColor:s,headerColor:u,titleTextColor:d,titleTextColorDisabled:c,extraTextColor:f,extraTextColorDisabled:c,itemTextColor:h,itemTextColorDisabled:c,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:E})}};function $z(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:u,textColor1:d,textColorDisabled:c,textColor2:h,textColor3:f,borderColor:p,hoverColor:g,closeColorHover:v,closeColorPressed:b,closeIconColor:x,closeIconColorHover:E,closeIconColorPressed:y}=e;return Object.assign(Object.assign({},Yw),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:Ue(s,u),titleTextColor:d,titleTextColorDisabled:c,extraTextColor:f,extraTextColorDisabled:c,itemTextColor:h,itemTextColorDisabled:c,itemColorPending:g,titleFontWeight:t,closeColorHover:v,closeColorPressed:b,closeIconColor:x,closeIconColorHover:E,closeIconColorPressed:y})}const Pz={name:"Transfer",common:Ve,peers:{Checkbox:ea,Scrollbar:Lo,Input:Xo,Empty:tr,Button:Ho},self:$z};function Qw(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:n,pressedColor:r,primaryColor:i,textColor3:a,textColor2:l,textColorDisabled:s,fontSize:u}=e;return{fontSize:u,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:Ae(i,{alpha:.1}),arrowColor:a,nodeTextColor:l,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const Jw={name:"Tree",common:Ve,peers:{Checkbox:ea,Scrollbar:Lo,Empty:tr},self:Qw},e2={name:"Tree",common:Ne,peers:{Checkbox:Ga,Scrollbar:Zo,Empty:Qi},self(e){const{primaryColor:t}=e,o=Qw(e);return o.nodeColorActive=Ae(t,{alpha:.15}),o}},Mz={name:"TreeSelect",common:Ne,peers:{Tree:e2,Empty:Qi,InternalSelection:Np}};function Az(e){const{popoverColor:t,boxShadow2:o,borderRadius:n,heightMedium:r,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:n,menuHeight:`calc(${r} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:a,headerPadding:"8px 12px"}}const Bz={name:"TreeSelect",common:Ve,peers:{Tree:Jw,Empty:tr,InternalSelection:Nd},self:Az},Dz={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function t2(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:u,textColor3:d,infoColor:c,warningColor:h,errorColor:f,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},Dz),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:u,pTextColor:o,pTextColor1Depth:u,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:c,headerBarColorError:f,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:o,textColor1Depth:u,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:c,textColorSuccess:p,textColorWarning:h,textColorError:f,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const Tz={name:"Typography",common:Ve,self:t2},Iz={name:"Typography",common:Ne,self:t2};function o2(e){const{iconColor:t,primaryColor:o,errorColor:n,textColor2:r,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:u,lineHeight:d,borderRadius:c,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:c,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:u,itemColorHoverError:Ae(n,{alpha:.06}),itemTextColor:r,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${s}`}}const zz={name:"Upload",common:Ve,peers:{Button:Ho,Progress:Bw},self:o2},Oz={name:"Upload",common:Ne,peers:{Button:Yo,Progress:Dw},self(e){const{errorColor:t}=e,o=o2(e);return o.itemColorHoverError=Ae(t,{alpha:.09}),o}},Lz={name:"Watermark",common:Ne,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},n2={name:"Watermark",common:Ve,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Hz={name:"Row",common:Ve},Nz={name:"Row",common:Ne};function Vz(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const jz={name:"FloatButtonGroup",common:Ve,self:Vz},Wz={name:"FloatButton",common:Ne,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,baseColor:s,borderRadius:u}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColorPrimary:s,borderRadiusSquare:u}}};function Uz(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,borderRadius:s}=e;return{color:t,colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const Kz={name:"FloatButton",common:Ve,self:Uz},Gz={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},r2=24,of="__ssr__",qz={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:r2},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},i2=xe({name:"Grid",inheritAttrs:!1,props:qz,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:o}=nt(e),n=/^\d+$/,r=M(void 0),i=ck((o==null?void 0:o.value)||Gz),a=gt(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),l=T(()=>{if(a.value)return e.responsive==="self"?r.value:i.value}),s=gt(()=>{var b;return(b=Number(ia(e.cols.toString(),l.value)))!==null&&b!==void 0?b:r2}),u=gt(()=>ia(e.xGap.toString(),l.value)),d=gt(()=>ia(e.yGap.toString(),l.value)),c=b=>{r.value=b.contentRect.width},h=b=>{Xl(c,b)},f=M(!1),p=T(()=>{if(e.responsive==="self")return h}),g=M(!1),v=M();return ut(()=>{const{value:b}=v;b&&b.hasAttribute(of)&&(b.removeAttribute(of),g.value=!0)}),et(vw,{layoutShiftDisabledRef:De(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:De(e,"itemStyle"),xGapRef:u,overflowRef:f}),{isSsr:!wn,contentEl:v,mergedClsPrefix:t,style:T(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Ht(e.xGap),rowGap:Ht(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:Ht(u.value),rowGap:Ht(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:f}},render(){if(this.layoutShiftDisabled)return m("div",bo({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,o,n,r,i,a,l;this.overflow=!1;const s=vr(cp(this)),u=[],{collapsed:d,collapsedRows:c,responsiveCols:h,responsiveQuery:f}=this;s.forEach(x=>{var E,y,k,F,C;if(((E=x==null?void 0:x.type)===null||E===void 0?void 0:E.__GRID_ITEM__)!==!0)return;if(F4(x)){const B=qo(x);B.props?B.props.privateShow=!1:B.props={privateShow:!1},u.push({child:B,rawChildSpan:0});return}x.dirs=((y=x.dirs)===null||y===void 0?void 0:y.filter(({dir:B})=>B!==bn))||null,((k=x.dirs)===null||k===void 0?void 0:k.length)===0&&(x.dirs=null);const A=qo(x),P=Number((C=ia((F=A.props)===null||F===void 0?void 0:F.span,f))!==null&&C!==void 0?C:cv);P!==0&&u.push({child:A,rawChildSpan:P})});let p=0;const g=(t=u[u.length-1])===null||t===void 0?void 0:t.child;if(g!=null&&g.props){const x=(o=g.props)===null||o===void 0?void 0:o.suffix;x!==void 0&&x!==!1&&(p=Number((r=ia((n=g.props)===null||n===void 0?void 0:n.span,f))!==null&&r!==void 0?r:cv),g.props.privateSpan=p,g.props.privateColStart=h+1-p,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let v=0,b=!1;for(const{child:x,rawChildSpan:E}of u){if(b&&(this.overflow=!0),!b){const y=Number((l=ia((a=x.props)===null||a===void 0?void 0:a.offset,f))!==null&&l!==void 0?l:0),k=Math.min(E+y,h);if(x.props?(x.props.privateSpan=k,x.props.privateOffset=y):x.props={privateSpan:k,privateOffset:y},d){const F=v%h;k+F>h&&(v+=h-F),k+v+p>c*h?b=!0:v+=k}}b&&(x.props?x.props.privateShow!==!0&&(x.props.privateShow=!1):x.props={privateShow:!1})}return m("div",bo({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[of]:this.isSsr||void 0},this.$attrs),u.map(({child:x})=>x))};return this.isResponsive&&this.responsive==="self"?m($n,{onResize:this.handleResize},{default:e}):e()}});function a2(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const Zz={name:"IconWrapper",common:Ve,self:a2},Xz={name:"IconWrapper",common:Ne,self:a2};function Yz(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Qz={name:"Image",common:Ve,peers:{Tooltip:zs},self:Yz},Jz={name:"Image",common:Ne,peers:{Tooltip:Wd},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function eO(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function tO(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function nf(e){return e==null?!0:!Number.isNaN(e)}function fv(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function rf(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const oO=V([D("input-number-suffix",` + display: inline-block; + margin-right: 10px; + `),D("input-number-prefix",` + display: inline-block; + margin-left: 10px; + `)]),hv=800,pv=100,nO=Object.assign(Object.assign({},ze.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),rO=xe({name:"InputNumber",props:nO,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,mergedRtlRef:n}=nt(e),r=ze("InputNumber","-input-number",oO,Ew,e,o),{localeRef:i}=Er("InputNumber"),a=Dn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:u}=a,d=M(null),c=M(null),h=M(null),f=M(e.defaultValue),p=De(e,"value"),g=to(p,f),v=M(""),b=le=>{const re=String(le).split(".")[1];return re?re.length:0},x=le=>{const re=[e.min,e.max,e.step,le].map(ce=>ce===void 0?0:b(ce));return Math.max(...re)},E=gt(()=>{const{placeholder:le}=e;return le!==void 0?le:i.value.placeholder}),y=gt(()=>{const le=rf(e.step);return le!==null?le===0?1:Math.abs(le):1}),k=gt(()=>{const le=rf(e.min);return le!==null?le:null}),F=gt(()=>{const le=rf(e.max);return le!==null?le:null}),C=()=>{const{value:le}=g;if(nf(le)){const{format:re,precision:ce}=e;re?v.value=re(le):le===null||ce===void 0||b(le)>ce?v.value=fv(le,void 0):v.value=fv(le,ce)}else v.value=String(le)};C();const A=le=>{const{value:re}=g;if(le===re){C();return}const{"onUpdate:value":ce,onUpdateValue:ee,onChange:ie}=e,{nTriggerFormInput:de,nTriggerFormChange:ae}=a;ie&&Pe(ie,le),ee&&Pe(ee,le),ce&&Pe(ce,le),f.value=le,de(),ae()},P=({offset:le,doUpdateIfValid:re,fixPrecision:ce,isInputing:ee})=>{const{value:ie}=v;if(ee&&tO(ie))return!1;const de=(e.parse||eO)(ie);if(de===null)return re&&A(null),null;if(nf(de)){const ae=b(de),{precision:X}=e;if(X!==void 0&&X<ae&&!ce)return!1;let se=Number.parseFloat((de+le).toFixed(X??x(de)));if(nf(se)){const{value:ve}=F,{value:Te}=k;if(ve!==null&&se>ve){if(!re||ee)return!1;se=ve}if(Te!==null&&se<Te){if(!re||ee)return!1;se=Te}return e.validator&&!e.validator(se)?!1:(re&&A(se),se)}}return!1},B=gt(()=>P({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),W=gt(()=>{const{value:le}=g;if(e.validator&&le===null)return!1;const{value:re}=y;return P({offset:-re,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),N=gt(()=>{const{value:le}=g;if(e.validator&&le===null)return!1;const{value:re}=y;return P({offset:+re,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function K(le){const{onFocus:re}=e,{nTriggerFormFocus:ce}=a;re&&Pe(re,le),ce()}function H(le){var re,ce;if(le.target===((re=d.value)===null||re===void 0?void 0:re.wrapperElRef))return;const ee=P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ee!==!1){const ae=(ce=d.value)===null||ce===void 0?void 0:ce.inputElRef;ae&&(ae.value=String(ee||"")),g.value===ee&&C()}else C();const{onBlur:ie}=e,{nTriggerFormBlur:de}=a;ie&&Pe(ie,le),de(),Rt(()=>{C()})}function I(le){const{onClear:re}=e;re&&Pe(re,le)}function O(){const{value:le}=N;if(!le){Ce();return}const{value:re}=g;if(re===null)e.validator||A(oe());else{const{value:ce}=y;P({offset:ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function R(){const{value:le}=W;if(!le){pe();return}const{value:re}=g;if(re===null)e.validator||A(oe());else{const{value:ce}=y;P({offset:-ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const z=K,_=H;function oe(){if(e.validator)return null;const{value:le}=k,{value:re}=F;return le!==null?Math.max(0,le):re!==null?Math.min(0,re):0}function G(le){I(le),A(null)}function j(le){var re,ce,ee;!((re=h.value)===null||re===void 0)&&re.$el.contains(le.target)&&le.preventDefault(),!((ce=c.value)===null||ce===void 0)&&ce.$el.contains(le.target)&&le.preventDefault(),(ee=d.value)===null||ee===void 0||ee.activate()}let ue=null,he=null,_e=null;function pe(){_e&&(window.clearTimeout(_e),_e=null),ue&&(window.clearInterval(ue),ue=null)}let fe=null;function Ce(){fe&&(window.clearTimeout(fe),fe=null),he&&(window.clearInterval(he),he=null)}function Y(){pe(),_e=window.setTimeout(()=>{ue=window.setInterval(()=>{R()},pv)},hv),Ct("mouseup",document,pe,{once:!0})}function q(){Ce(),fe=window.setTimeout(()=>{he=window.setInterval(()=>{O()},pv)},hv),Ct("mouseup",document,Ce,{once:!0})}const Se=()=>{he||O()},je=()=>{ue||R()};function U(le){var re,ce;if(le.key==="Enter"){if(le.target===((re=d.value)===null||re===void 0?void 0:re.wrapperElRef))return;P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ce=d.value)===null||ce===void 0||ce.deactivate())}else if(le.key==="ArrowUp"){if(!N.value||e.keyboard.ArrowUp===!1)return;le.preventDefault(),P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&O()}else if(le.key==="ArrowDown"){if(!W.value||e.keyboard.ArrowDown===!1)return;le.preventDefault(),P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&R()}}function te(le){v.value=le,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&P({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}at(g,()=>{C()});const ge={focus:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.focus()},blur:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.blur()},select:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.select()}},we=qt("InputNumber",n,o);return Object.assign(Object.assign({},ge),{rtlEnabled:we,inputInstRef:d,minusButtonInstRef:c,addButtonInstRef:h,mergedClsPrefix:o,mergedBordered:t,uncontrolledValue:f,mergedValue:g,mergedPlaceholder:E,displayedValueInvalid:B,mergedSize:l,mergedDisabled:s,displayedValue:v,addable:N,minusable:W,mergedStatus:u,handleFocus:z,handleBlur:_,handleClear:G,handleMouseDown:j,handleAddClick:Se,handleMinusClick:je,handleAddMousedown:q,handleMinusMousedown:Y,handleKeyDown:U,handleUpdateDisplayedValue:te,mergedTheme:r,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:T(()=>{const{self:{iconColorDisabled:le}}=r.value,[re,ce,ee,ie]=uo(le);return{textColorTextDisabled:`rgb(${re}, ${ce}, ${ee})`,opacityDisabled:`${ie}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,o=()=>m(Q0,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>wo(t["minus-icon"],()=>[m(Ut,{clsPrefix:e},{default:()=>m(BM,null)})])}),n=()=>m(Q0,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>wo(t["add-icon"],()=>[m(Ut,{clsPrefix:e},{default:()=>m(sC,null)})])});return m("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},m(rn,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var r;return this.showButton&&this.buttonPlacement==="both"?[o(),bt(t.prefix,i=>i?m("span",{class:`${e}-input-number-prefix`},i):null)]:(r=t.prefix)===null||r===void 0?void 0:r.call(t)},suffix:()=>{var r;return this.showButton?[bt(t.suffix,i=>i?m("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?o():null,n()]:(r=t.suffix)===null||r===void 0?void 0:r.call(t)}}))}}),l2={extraFontSize:"12px",width:"440px"},iO={name:"Transfer",common:Ne,peers:{Checkbox:Ga,Scrollbar:Zo,Input:Sn,Empty:Qi,Button:Yo},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:u,borderRadius:d,inputColor:c,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,hoverColor:v}=e;return Object.assign(Object.assign({},l2),{itemHeightSmall:u,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:"#0000",listColor:c,headerColor:h,titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:v,titleFontWeight:n,iconColor:o,iconColorDisabled:t})}};function aO(e){const{fontWeight:t,iconColorDisabled:o,iconColor:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:u,borderRadius:d,cardColor:c,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,borderColor:v,hoverColor:b}=e;return Object.assign(Object.assign({},l2),{itemHeightSmall:u,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:v,listColor:c,headerColor:Ue(c,h),titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:v,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:t,iconColor:n,iconColorDisabled:o})}const lO={name:"Transfer",common:Ve,peers:{Checkbox:ea,Scrollbar:Lo,Input:Xo,Empty:tr,Button:Ho},self:aO},s2="n-loading-bar",u2="n-loading-bar-api",sO=D("loading-bar-container",` + z-index: 5999; + position: fixed; + top: 0; + left: 0; + right: 0; + height: 2px; +`,[Ts({enterDuration:"0.3s",leaveDuration:"0.8s"}),D("loading-bar",` + width: 100%; + transition: + max-width 4s linear, + background .2s linear; + height: var(--n-height); + `,[Q("starting",` + background: var(--n-color-loading); + `),Q("finishing",` + background: var(--n-color-loading); + transition: + max-width .2s linear, + background .2s linear; + `),Q("error",` + background: var(--n-color-error); + transition: + max-width .2s linear, + background .2s linear; + `)])]);var mu=function(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return new(o||(o=Promise))(function(i,a){function l(d){try{u(n.next(d))}catch(c){a(c)}}function s(d){try{u(n.throw(d))}catch(c){a(c)}}function u(d){d.done?i(d.value):r(d.value).then(l,s)}u((n=n.apply(e,t||[])).next())})};function gu(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const uO=xe({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=nt(),{props:t,mergedClsPrefixRef:o}=Oe(s2),n=M(null),r=M(!1),i=M(!1),a=M(!1),l=M(!1);let s=!1;const u=M(!1),d=T(()=>{const{loadingBarStyle:k}=t;return k?k[u.value?"error":"loading"]:""});function c(){return mu(this,void 0,void 0,function*(){r.value=!1,a.value=!1,s=!1,u.value=!1,l.value=!0,yield Rt(),l.value=!1})}function h(){return mu(this,arguments,void 0,function*(k=0,F=80,C="starting"){if(i.value=!0,yield c(),s)return;a.value=!0,yield Rt();const A=n.value;A&&(A.style.maxWidth=`${k}%`,A.style.transition="none",A.offsetWidth,A.className=gu(C,o.value),A.style.transition="",A.style.maxWidth=`${F}%`)})}function f(){return mu(this,void 0,void 0,function*(){if(s||u.value)return;i.value&&(yield Rt()),s=!0;const k=n.value;k&&(k.className=gu("finishing",o.value),k.style.maxWidth="100%",k.offsetWidth,a.value=!1)})}function p(){if(!(s||u.value))if(!a.value)h(100,100,"error").then(()=>{u.value=!0;const k=n.value;k&&(k.className=gu("error",o.value),k.offsetWidth,a.value=!1)});else{u.value=!0;const k=n.value;if(!k)return;k.className=gu("error",o.value),k.style.maxWidth="100%",k.offsetWidth,a.value=!1}}function g(){r.value=!0}function v(){r.value=!1}function b(){return mu(this,void 0,void 0,function*(){yield c()})}const x=ze("LoadingBar","-loading-bar",sO,_w,t,o),E=T(()=>{const{self:{height:k,colorError:F,colorLoading:C}}=x.value;return{"--n-height":k,"--n-color-loading":C,"--n-color-error":F}}),y=e?vt("loading-bar",void 0,E,t):void 0;return{mergedClsPrefix:o,loadingBarRef:n,started:i,loading:a,entering:r,transitionDisabled:l,start:h,error:p,finish:f,handleEnter:g,handleAfterEnter:v,handleAfterLeave:b,mergedLoadingBarStyle:d,cssVars:e?void 0:E,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return m(po,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),Po(m("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},m("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[bn,this.loading||!this.loading&&this.entering]])}})}}),dO=Object.assign(Object.assign({},ze.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),cO=xe({name:"LoadingBarProvider",props:dO,setup(e){const t=Cr(),o=M(null),n={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():Rt(()=>{var a;(a=o.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():Rt(()=>{var a;(a=o.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():Rt(()=>{var a;(a=o.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=nt(e);return et(u2,n),et(s2,{props:e,mergedClsPrefixRef:r}),Object.assign(n,{loadingBarRef:o})},render(){var e,t;return m(ft,null,m(bs,{disabled:this.to===!1,to:this.to||"body"},m(uO,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function fO(){const e=Oe(u2,null);return e===null&&yr("use-loading-bar","No outer <n-loading-bar-provider /> founded."),e}const hO=xe({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:Er("Log").localeRef}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-log-loader`},m(_r,{clsPrefix:e,strokeWidth:24,scale:.85}),m("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),d2="n-log",pO=xe({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:o,languageRef:n,mergedHljsRef:r}=Oe(d2),i=M(null),a=T(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(n.value,a.value))}function s(u,d){const{value:c}=r;return c&&u&&c.getLanguage(u)?c.highlight(d,{language:u}).value:d}return ut(()=>{o.value&&l()}),at(De(e,"line"),()=>{o.value&&l()}),{highlight:o,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return m("pre",{ref:"selfRef"},e?null:t)}}),mO=D("log",` + position: relative; + box-sizing: border-box; + transition: border-color .3s var(--n-bezier); +`,[V("pre",` + white-space: pre-wrap; + word-break: break-word; + margin: 0; + `),D("log-loader",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + box-sizing: border-box; + position: absolute; + right: 16px; + top: 8px; + height: 34px; + border-radius: 17px; + line-height: 34px; + white-space: nowrap; + overflow: hidden; + border: var(--n-loader-border); + color: var(--n-loader-text-color); + background-color: var(--n-loader-color); + font-size: var(--n-loader-font-size); + `,[An(),Z("content",` + display: inline-block; + vertical-align: bottom; + line-height: 34px; + padding-left: 40px; + padding-right: 20px; + white-space: nowrap; + `),D("base-loading",` + color: var(--n-loading-color); + position: absolute; + left: 12px; + top: calc(50% - 10px); + font-size: 20px; + width: 20px; + height: 20px; + display: inline-block; + `)])]),gO=Object.assign(Object.assign({},ze.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),vO=xe({name:"Log",props:gO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=M(!1),r=T(()=>e.language!==void 0),i=T(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=T(()=>{const{log:x}=e;return x?x.split(` +`):e.lines}),l=M(null),s=ze("Log","-log",mO,Fw,e,t);function u(x){const E=x.target,y=E.firstElementChild;if(n.value){Rt(()=>{n.value=!1});return}const k=E.offsetHeight,F=E.scrollTop,C=y.offsetHeight,A=F,P=C-F-k;if(A<=e.offsetTop){const{onReachTop:B,onRequireMore:W}=e;W&&W("top"),B&&B()}if(P<=e.offsetBottom){const{onReachBottom:B,onRequireMore:W}=e;W&&W("bottom"),B&&B()}}const d=Du(c,300);function c(x){if(n.value){Rt(()=>{n.value=!1});return}if(l.value){const{containerRef:E,contentRef:y}=l.value;if(E&&y){const k=E.offsetHeight,F=E.scrollTop,C=y.offsetHeight,A=F,P=C-F-k,B=x.deltaY;if(A===0&&B<0){const{onRequireMore:W}=e;W&&W("top")}if(P<=0&&B>0){const{onRequireMore:W}=e;W&&W("bottom")}}}}function h(x){const{value:E}=l;if(!E)return;const{silent:y,top:k,position:F}=x;y&&(n.value=!0),k!==void 0?E.scrollTo({left:0,top:k}):(F==="bottom"||F==="top")&&E.scrollTo({position:F})}function f(x=!1){xn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",silent:x})}function p(x=!1){xn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",silent:x})}et(d2,{languageRef:De(e,"language"),mergedHljsRef:lC(e),trimRef:De(e,"trim"),highlightRef:r});const g={scrollTo:h},v=T(()=>{const{self:{loaderFontSize:x,loaderTextColor:E,loaderColor:y,loaderBorder:k,loadingColor:F},common:{cubicBezierEaseInOut:C}}=s.value;return{"--n-bezier":C,"--n-loader-font-size":x,"--n-loader-border":k,"--n-loader-color":y,"--n-loader-text-color":E,"--n-loading-color":F}}),b=o?vt("log",void 0,v,e):void 0;return Object.assign(Object.assign({},g),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:f,scrollToBottom:p,handleWheel:d,handleScroll:u,cssVars:o?void 0:v,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[m(or,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>m(LB,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((n,r)=>m(pO,{key:r,line:n}))})}),m(po,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m(hO,{clsPrefix:e}):null})])}}),c2={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},f2="n-message-api",h2="n-message-provider",bO=V([D("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[Vp({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),D("message",` + box-sizing: border-box; + display: flex; + align-items: center; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier), + margin-bottom .3s var(--n-bezier); + padding: var(--n-padding); + border-radius: var(--n-border-radius); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--n-max-width); + color: var(--n-text-color); + background-color: var(--n-color); + box-shadow: var(--n-box-shadow); + `,[Z("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),Z("icon",` + position: relative; + margin: var(--n-icon-margin); + height: var(--n-icon-size); + width: var(--n-icon-size); + font-size: var(--n-icon-size); + flex-shrink: 0; + `,[["default","info","success","warning","error","loading"].map(e=>Q(`${e}-type`,[V("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),V("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[en()])]),Z("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[V("&:hover",` + color: var(--n-close-icon-color-hover); + `),V("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),D("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[Q("top",` + top: 12px; + left: 0; + right: 0; + `),Q("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),Q("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),Q("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),Q("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),Q("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]),xO={info:()=>m(is,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(zd,null),default:()=>null},yO=xe({name:"Message",props:Object.assign(Object.assign({},c2),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=nt(e),{props:n,mergedClsPrefixRef:r}=Oe(h2),i=qt("Message",o,r),a=ze("Message","-message",bO,Sw,n,r),l=T(()=>{const{type:u}=e,{common:{cubicBezierEaseInOut:d},self:{padding:c,margin:h,maxWidth:f,iconMargin:p,closeMargin:g,closeSize:v,iconSize:b,fontSize:x,lineHeight:E,borderRadius:y,iconColorInfo:k,iconColorSuccess:F,iconColorWarning:C,iconColorError:A,iconColorLoading:P,closeIconSize:B,closeBorderRadius:W,[ke("textColor",u)]:N,[ke("boxShadow",u)]:K,[ke("color",u)]:H,[ke("closeColorHover",u)]:I,[ke("closeColorPressed",u)]:O,[ke("closeIconColor",u)]:R,[ke("closeIconColorPressed",u)]:z,[ke("closeIconColorHover",u)]:_}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":c,"--n-max-width":f,"--n-font-size":x,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":B,"--n-close-border-radius":W,"--n-close-size":v,"--n-close-margin":g,"--n-text-color":N,"--n-color":H,"--n-box-shadow":K,"--n-icon-color-info":k,"--n-icon-color-success":F,"--n-icon-color-warning":C,"--n-icon-color-error":A,"--n-icon-color-loading":P,"--n-close-color-hover":I,"--n-close-color-pressed":O,"--n-close-icon-color":R,"--n-close-icon-color-pressed":z,"--n-close-icon-color-hover":_,"--n-line-height":E,"--n-border-radius":y}}),s=t?vt("message",T(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:n,handleClose(){var u;(u=e.onClose)===null||u===void 0||u.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:o,content:n,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:u,showIcon:d}=this;l==null||l();let c;return m("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):m("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(c=CO(s,t,r))&&d?m("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},m(Yi,null,{default:()=>c})):null,m("div",{class:`${r}-message__content`},Jt(n)),o?m(li,{clsPrefix:r,class:`${r}-message__close`,onClick:u,absolute:!0}):null))}});function CO(e,t,o){if(typeof e=="function")return e();{const n=t==="loading"?m(_r,{clsPrefix:o,strokeWidth:24,scale:.85}):xO[t]();return n?m(Ut,{clsPrefix:o,key:t},{default:()=>n}):null}}const wO=xe({name:"MessageEnvironment",props:Object.assign(Object.assign({},c2),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=M(!0);ut(()=>{n()});function n(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function r(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&n()}function a(){const{onHide:d}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:c,onAfterHide:h,internalKey:f}=e;d&&d(),c&&c(f),h&&h()}function u(){a()}return{show:o,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:r,deactivate:u}},render(){return m(Ds,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?m(yO,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),SO=Object.assign(Object.assign({},ze.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),p2=xe({name:"MessageProvider",props:SO,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=M([]),n=M({}),r={create(s,u){return i(s,Object.assign({type:"default"},u))},info(s,u){return i(s,Object.assign(Object.assign({},u),{type:"info"}))},success(s,u){return i(s,Object.assign(Object.assign({},u),{type:"success"}))},warning(s,u){return i(s,Object.assign(Object.assign({},u),{type:"warning"}))},error(s,u){return i(s,Object.assign(Object.assign({},u),{type:"error"}))},loading(s,u){return i(s,Object.assign(Object.assign({},u),{type:"loading"}))},destroyAll:l};et(h2,{props:e,mergedClsPrefixRef:t}),et(f2,r);function i(s,u){const d=ii(),c=It(Object.assign(Object.assign({},u),{content:s,key:d,destroy:()=>{var f;(f=n.value[d])===null||f===void 0||f.hide()}})),{max:h}=e;return h&&o.value.length>=h&&o.value.shift(),o.value.push(c),c}function a(s){o.value.splice(o.value.findIndex(u=>u.key===s),1),delete n.value[s]}function l(){Object.values(n.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:o,handleAfterLeave:a},r)},render(){var e,t,o;return m(ft,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?m(bs,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>m(wO,Object.assign({ref:r=>{r&&(this.messageRefs[n.key]=r)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},Ki(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}});function EO(){const e=Oe(f2,null);return e===null&&yr("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const kO=xe({name:"ModalEnvironment",props:Object.assign(Object.assign({},aw),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=M(!0);function o(){const{onInternalAfterLeave:d,internalKey:c,onAfterLeave:h}=e;d&&d(c),h&&h()}function n(){const{onPositiveClick:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function r(){const{onNegativeClick:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function a(d){const{onMaskClick:c,maskClosable:h}=e;c&&(c(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function u(d){t.value=d}return{show:t,hide:s,handleUpdateShow:u,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:l}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:o,handleEsc:n,show:r}=this;return m(rm,Object.assign({},this.$props,{show:r,onUpdateShow:e,onMaskClick:o,onEsc:n,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),mv="n-modal-provider",m2="n-modal-api",_O="n-modal-reactive-list",FO={to:[String,Object]},RO=xe({name:"ModalProvider",props:FO,setup(){const e=Xu(64),t=Zu(),o=M([]),n={};function r(s={}){const u=ii(),d=It(Object.assign(Object.assign({},s),{key:u,destroy:()=>{var c;(c=n[`n-modal-${u}`])===null||c===void 0||c.hide()}}));return o.value.push(d),d}function i(s){const{value:u}=o;u.splice(u.findIndex(d=>d.key===s),1)}function a(){Object.values(n).forEach(s=>{s==null||s.hide()})}const l={create:r,destroyAll:a};return et(m2,l),et(mv,{clickedRef:Xu(64),clickedPositionRef:Zu()}),et(_O,o),et(mv,{clickedRef:e,clickedPositionRef:t}),Object.assign(Object.assign({},l),{modalList:o,modalInstRefs:n,handleAfterLeave:i})},render(){var e,t;return m(ft,null,[this.modalList.map(o=>{var n;return m(kO,Ki(o,["destroy"],{to:(n=o.to)!==null&&n!==void 0?n:this.to,ref:r=>{r===null?delete this.modalInstRefs[`n-modal-${o.key}`]:this.modalInstRefs[`n-modal-${o.key}`]=r},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function $O(){const e=Oe(m2,null);return e===null&&yr("use-modal","No outer <n-modal-provider /> founded."),e}const Zd="n-notification-provider",PO=xe({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=Oe(Zd),n=M(null);return kt(()=>{var r,i;o.value>0?(r=n==null?void 0:n.value)===null||r===void 0||r.classList.add("transitioning"):(i=n==null?void 0:n.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:n,placement:r}=this;return m("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${r}`]},t?m(or,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),MO={info:()=>m(is,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(zd,null),default:()=>null},am={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},AO=ws(am),BO=xe({name:"Notification",props:am,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:n}=Oe(Zd),{inlineThemeDisabled:r,mergedRtlRef:i}=nt(),a=qt("Notification",i,t),l=T(()=>{const{type:u}=e,{self:{color:d,textColor:c,closeIconColor:h,closeIconColorHover:f,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:v,actionTextColor:b,borderRadius:x,headerFontWeight:E,boxShadow:y,lineHeight:k,fontSize:F,closeMargin:C,closeSize:A,width:P,padding:B,closeIconSize:W,closeBorderRadius:N,closeColorHover:K,closeColorPressed:H,titleFontSize:I,metaFontSize:O,descriptionFontSize:R,[ke("iconColor",u)]:z},common:{cubicBezierEaseOut:_,cubicBezierEaseIn:oe,cubicBezierEaseInOut:G}}=o.value,{left:j,right:ue,top:he,bottom:_e}=Ro(B);return{"--n-color":d,"--n-font-size":F,"--n-text-color":c,"--n-description-text-color":v,"--n-action-text-color":b,"--n-title-text-color":g,"--n-title-font-weight":E,"--n-bezier":G,"--n-bezier-ease-out":_,"--n-bezier-ease-in":oe,"--n-border-radius":x,"--n-box-shadow":y,"--n-close-border-radius":N,"--n-close-color-hover":K,"--n-close-color-pressed":H,"--n-close-icon-color":h,"--n-close-icon-color-hover":f,"--n-close-icon-color-pressed":p,"--n-line-height":k,"--n-icon-color":z,"--n-close-margin":C,"--n-close-size":A,"--n-close-icon-size":W,"--n-width":P,"--n-padding-left":j,"--n-padding-right":ue,"--n-padding-top":he,"--n-padding-bottom":_e,"--n-title-font-size":I,"--n-meta-font-size":O,"--n-description-font-size":R}}),s=r?vt("notification",T(()=>e.type[0]),l,n):void 0;return{mergedClsPrefix:t,showAvatar:T(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},m("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?m("div",{class:`${t}-notification__avatar`},this.avatar?Jt(this.avatar):this.type!=="default"?m(Ut,{clsPrefix:t},{default:()=>MO[this.type]()}):null):null,this.closable?m(li,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,m("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?m("div",{class:`${t}-notification-main__header`},Jt(this.title)):null,this.description?m("div",{class:`${t}-notification-main__description`},Jt(this.description)):null,this.content?m("pre",{class:`${t}-notification-main__content`},Jt(this.content)):null,this.meta||this.action?m("div",{class:`${t}-notification-main-footer`},this.meta?m("div",{class:`${t}-notification-main-footer__meta`},Jt(this.meta)):null,this.action?m("div",{class:`${t}-notification-main-footer__action`},Jt(this.action)):null):null)))}}),DO=Object.assign(Object.assign({},am),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),TO=xe({name:"NotificationEnvironment",props:Object.assign(Object.assign({},DO),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Oe(Zd),o=M(!0);let n=null;function r(){o.value=!1,n&&window.clearTimeout(n)}function i(p){t.value++,Rt(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:v}=e;g&&g(),v&&v()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function u(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:v,internalKey:b}=e;p&&p(),g(b),v&&v()}function d(){const{duration:p}=e;p&&(n=window.setTimeout(r,p))}function c(p){p.currentTarget===p.target&&n!==null&&(window.clearTimeout(n),n=null)}function h(p){p.currentTarget===p.target&&d()}function f(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&r()}):r()}return ut(()=>{e.duration&&(n=window.setTimeout(r,e.duration))}),{show:o,hide:r,handleClose:f,handleAfterLeave:u,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:c,handleMouseleave:h}},render(){return m(po,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?m(BO,Object.assign({},ei(this.$props,AO),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),IO=V([D("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[V(">",[D("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[V(">",[D("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[D("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),Q("top, top-right, top-left",` + top: 12px; + `,[V("&.transitioning >",[D("scrollbar",[V(">",[D("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),Q("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[V(">",[D("scrollbar",[V(">",[D("scrollbar-container",[D("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),D("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),Q("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[D("notification-wrapper",[V("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),V("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),Q("top",[D("notification-wrapper",` + transform-origin: top center; + `)]),Q("bottom",[D("notification-wrapper",` + transform-origin: bottom center; + `)]),Q("top-right, bottom-right",[D("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),Q("top-left, bottom-left",[D("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),Q("top-right",` + right: 0; + `,[vu("top-right")]),Q("top-left",` + left: 0; + `,[vu("top-left")]),Q("bottom-right",` + right: 0; + `,[vu("bottom-right")]),Q("bottom-left",` + left: 0; + `,[vu("bottom-left")]),Q("scrollable",[Q("top-right",` + top: 0; + `),Q("top-left",` + top: 0; + `),Q("bottom-right",` + bottom: 0; + `),Q("bottom-left",` + bottom: 0; + `)]),D("notification-wrapper",` + margin-bottom: 12px; + `,[V("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),V("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),V("&.notification-transition-leave-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-in), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `),V("&.notification-transition-enter-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-out), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `)]),D("notification",` + background-color: var(--n-color); + color: var(--n-text-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + font-family: inherit; + font-size: var(--n-font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + width: var(--n-width); + max-width: calc(100vw - 16px - 16px); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[Z("avatar",[D("icon",` + color: var(--n-icon-color); + `),D("base-icon",` + color: var(--n-icon-color); + `)]),Q("show-avatar",[D("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),Q("closable",[D("notification-main",[V("> *:first-child",` + padding-right: 20px; + `)]),Z("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),Z("avatar",` + position: absolute; + top: var(--n-padding-top); + left: var(--n-padding-left); + width: 28px; + height: 28px; + font-size: 28px; + display: flex; + align-items: center; + justify-content: center; + `,[D("icon","transition: color .3s var(--n-bezier);")]),D("notification-main",` + padding-top: var(--n-padding-top); + padding-bottom: var(--n-padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[D("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[Z("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),Z("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),Z("header",` + font-weight: var(--n-title-font-weight); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),Z("description",` + margin-top: 8px; + font-size: var(--n-description-font-size); + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),Z("content",` + line-height: var(--n-line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-text-color); + `,[V("&:first-child","margin: 0;")])])])])]);function vu(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return D("notification-wrapper",[V("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${o}, 0); + `),V("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(0, 0); + `)])}const g2="n-notification-api",zO=Object.assign(Object.assign({},ze.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),OO=xe({name:"NotificationProvider",props:zO,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=M([]),n={},r=new Set;function i(f){const p=ii(),g=()=>{r.add(p),n[p]&&n[p].hide()},v=It(Object.assign(Object.assign({},f),{key:p,destroy:g,hide:g,deactivate:g})),{max:b}=e;if(b&&o.value.length-r.size>=b){let x=!1,E=0;for(const y of o.value){if(!r.has(y.key)){n[y.key]&&(y.destroy(),x=!0);break}E++}x||o.value.splice(E,1)}return o.value.push(v),v}const a=["info","success","warning","error"].map(f=>p=>i(Object.assign(Object.assign({},p),{type:f})));function l(f){r.delete(f),o.value.splice(o.value.findIndex(p=>p.key===f),1)}const s=ze("Notification","-notification",IO,Cw,e,t),u={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:c,destroyAll:h},d=M(0);et(g2,u),et(Zd,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function c(f){return i(f)}function h(){Object.values(o.value).forEach(f=>{f.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:n,handleAfterLeave:l},u)},render(){var e,t,o;const{placement:n}=this;return m(ft,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?m(bs,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m(PO,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(r=>m(TO,Object.assign({ref:i=>{const a=r.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Ki(r,["destroy","hide","deactivate"]),{internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover})))})):null)}});function LO(){const e=Oe(g2,null);return e===null&&yr("use-notification","No outer `n-notification-provider` found."),e}const HO=V([D("page-header-header",` + margin-bottom: 20px; + `),D("page-header",` + display: flex; + align-items: center; + justify-content: space-between; + line-height: 1.5; + font-size: var(--n-font-size); + `,[Z("main",` + display: flex; + flex-wrap: nowrap; + align-items: center; + `),Z("back",` + display: flex; + margin-right: 16px; + font-size: var(--n-back-size); + cursor: pointer; + color: var(--n-back-color); + transition: color .3s var(--n-bezier); + `,[V("&:hover","color: var(--n-back-color-hover);"),V("&:active","color: var(--n-back-color-pressed);")]),Z("avatar",` + display: flex; + margin-right: 12px + `),Z("title",` + margin-right: 16px; + transition: color .3s var(--n-bezier); + font-size: var(--n-title-font-size); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),Z("subtitle",` + font-size: 14px; + transition: color .3s var(--n-bezier); + color: var(--n-subtitle-text-color); + `)]),D("page-header-content",` + font-size: var(--n-font-size); + `,[V("&:not(:first-child)","margin-top: 20px;")]),D("page-header-footer",` + font-size: var(--n-font-size); + `,[V("&:not(:first-child)","margin-top: 20px;")])]),NO=Object.assign(Object.assign({},ze.props),{title:String,subtitle:String,extra:String,onBack:Function}),VO=xe({name:"PageHeader",props:NO,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o,inlineThemeDisabled:n}=nt(e),r=ze("PageHeader","-page-header",HO,Pw,e,t),i=qt("PageHeader",o,t),a=T(()=>{const{self:{titleTextColor:s,subtitleTextColor:u,backColor:d,fontSize:c,titleFontSize:h,backSize:f,titleFontWeight:p,backColorHover:g,backColorPressed:v},common:{cubicBezierEaseInOut:b}}=r.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":c,"--n-back-size":f,"--n-subtitle-text-color":u,"--n-back-color":d,"--n-back-color-hover":g,"--n-back-color-pressed":v,"--n-bezier":b}}),l=n?vt("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:o,subtitle:n,extra:r,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:u,extra:d,default:c,header:h,avatar:f,footer:p,back:g}=l,v=t,b=o||s,x=n||u,E=r||d;return m("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?m("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(v||f||b||x||E)&&m("div",{class:`${i}-page-header`,key:"header"},m("div",{class:`${i}-page-header__main`,key:"back"},v?m("div",{class:`${i}-page-header__back`,onClick:t},g?g():m(Ut,{clsPrefix:i},{default:()=>m(TM,null)})):null,f?m("div",{class:`${i}-page-header__avatar`},f()):null,b?m("div",{class:`${i}-page-header__title`,key:"title"},o||s()):null,x?m("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},n||u()):null),E?m("div",{class:`${i}-page-header__extra`},r||d()):null),c?m("div",{class:`${i}-page-header-content`,key:"content"},c()):null,p?m("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),jO={name:"QrCode",common:Ne,self:e=>({borderRadius:e.borderRadius})};function WO(e){return{borderRadius:e.borderRadius}}const UO={name:"QrCode",common:Ve,self:WO},KO={name:"Skeleton",common:Ne,self(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}};function GO(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}const v2={name:"Skeleton",common:Ve,self:GO},qO=V([D("skeleton",` + height: 1em; + width: 100%; + transition: + --n-color-start .3s var(--n-bezier), + --n-color-end .3s var(--n-bezier), + background-color .3s var(--n-bezier); + animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); + background-color: var(--n-color-start); + `),V("@keyframes skeleton-loading",` + 0% { + background: var(--n-color-start); + } + 40% { + background: var(--n-color-end); + } + 80% { + background: var(--n-color-start); + } + 100% { + background: var(--n-color-start); + } + `)]),ZO=Object.assign(Object.assign({},ze.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),XO=xe({name:"Skeleton",inheritAttrs:!1,props:ZO,setup(e){pk();const{mergedClsPrefixRef:t}=nt(e),o=ze("Skeleton","-skeleton",qO,v2,e,t);return{mergedClsPrefix:t,style:T(()=>{var n,r;const i=o.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:u,borderRadius:d}=l;let c;const{circle:h,sharp:f,round:p,width:g,height:v,size:b,text:x,animated:E}=e;b!==void 0&&(c=l[ke("height",b)]);const y=h?(n=g??v)!==null&&n!==void 0?n:c:g,k=(r=h?g??v:v)!==null&&r!==void 0?r:c;return{display:x?"inline-block":"",verticalAlign:x?"-0.125em":"",borderRadius:h?"50%":p?"4096px":f?"":d,width:typeof y=="number"?Ht(y):y,height:typeof k=="number"?Ht(k):k,animation:E?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":u}})}},render(){const{repeat:e,style:t,mergedClsPrefix:o,$attrs:n}=this,r=m("div",bo({class:`${o}-skeleton`,style:t},n));return e>1?m(ft,null,kx(e,null).map(i=>[r,` +`])):r}});function gv(e){return window.TouchEvent&&e instanceof window.TouchEvent}function vv(){const e=new Map,t=o=>n=>{e.set(o,n)};return T1(()=>{e.clear()}),[e,t]}const YO=V([D("slider",` + display: block; + padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; + position: relative; + z-index: 0; + width: 100%; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + `,[Q("reverse",[D("slider-handles",[D("slider-handle-wrapper",` + transform: translate(50%, -50%); + `)]),D("slider-dots",[D("slider-dot",` + transform: translateX(50%, -50%); + `)]),Q("vertical",[D("slider-handles",[D("slider-handle-wrapper",` + transform: translate(-50%, -50%); + `)]),D("slider-marks",[D("slider-mark",` + transform: translateY(calc(-50% + var(--n-dot-height) / 2)); + `)]),D("slider-dots",[D("slider-dot",` + transform: translateX(-50%) translateY(0); + `)])])]),Q("vertical",` + box-sizing: content-box; + padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); + width: var(--n-rail-width-vertical); + height: 100%; + `,[D("slider-handles",` + top: calc(var(--n-handle-size) / 2); + right: 0; + bottom: calc(var(--n-handle-size) / 2); + left: 0; + `,[D("slider-handle-wrapper",` + top: unset; + left: 50%; + transform: translate(-50%, 50%); + `)]),D("slider-rail",` + height: 100%; + `,[Z("fill",` + top: unset; + right: 0; + bottom: unset; + left: 0; + `)]),Q("with-mark",` + width: var(--n-rail-width-vertical); + margin: 0 32px 0 8px; + `),D("slider-marks",` + top: calc(var(--n-handle-size) / 2); + right: unset; + bottom: calc(var(--n-handle-size) / 2); + left: 22px; + font-size: var(--n-mark-font-size); + `,[D("slider-mark",` + transform: translateY(50%); + white-space: nowrap; + `)]),D("slider-dots",` + top: calc(var(--n-handle-size) / 2); + right: unset; + bottom: calc(var(--n-handle-size) / 2); + left: 50%; + `,[D("slider-dot",` + transform: translateX(-50%) translateY(50%); + `)])]),Q("disabled",` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `,[D("slider-handle",` + cursor: not-allowed; + `)]),Q("with-mark",` + width: 100%; + margin: 8px 0 32px 0; + `),V("&:hover",[D("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[Z("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),D("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),Q("active",[D("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[Z("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),D("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),D("slider-marks",` + position: absolute; + top: 18px; + left: calc(var(--n-handle-size) / 2); + right: calc(var(--n-handle-size) / 2); + `,[D("slider-mark",` + position: absolute; + transform: translateX(-50%); + white-space: nowrap; + `)]),D("slider-rail",` + width: 100%; + position: relative; + height: var(--n-rail-height); + background-color: var(--n-rail-color); + transition: background-color .3s var(--n-bezier); + border-radius: calc(var(--n-rail-height) / 2); + `,[Z("fill",` + position: absolute; + top: 0; + bottom: 0; + border-radius: calc(var(--n-rail-height) / 2); + transition: background-color .3s var(--n-bezier); + background-color: var(--n-fill-color); + `)]),D("slider-handles",` + position: absolute; + top: 0; + right: calc(var(--n-handle-size) / 2); + bottom: 0; + left: calc(var(--n-handle-size) / 2); + `,[D("slider-handle-wrapper",` + outline: none; + position: absolute; + top: 50%; + transform: translate(-50%, -50%); + cursor: pointer; + display: flex; + `,[D("slider-handle",` + height: var(--n-handle-size); + width: var(--n-handle-size); + border-radius: 50%; + overflow: hidden; + transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); + background-color: var(--n-handle-color); + box-shadow: var(--n-handle-box-shadow); + `,[V("&:hover",` + box-shadow: var(--n-handle-box-shadow-hover); + `)]),V("&:focus",[D("slider-handle",` + box-shadow: var(--n-handle-box-shadow-focus); + `,[V("&:hover",` + box-shadow: var(--n-handle-box-shadow-active); + `)])])])]),D("slider-dots",` + position: absolute; + top: 50%; + left: calc(var(--n-handle-size) / 2); + right: calc(var(--n-handle-size) / 2); + `,[Q("transition-disabled",[D("slider-dot","transition: none;")]),D("slider-dot",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + position: absolute; + transform: translate(-50%, -50%); + height: var(--n-dot-height); + width: var(--n-dot-width); + border-radius: var(--n-dot-border-radius); + overflow: hidden; + box-sizing: border-box; + border: var(--n-dot-border); + background-color: var(--n-dot-color); + `,[Q("active","border: var(--n-dot-border-active);")])])]),D("slider-handle-indicator",` + font-size: var(--n-font-size); + padding: 6px 10px; + border-radius: var(--n-indicator-border-radius); + color: var(--n-indicator-text-color); + background-color: var(--n-indicator-color); + box-shadow: var(--n-indicator-box-shadow); + `,[An()]),D("slider-handle-indicator",` + font-size: var(--n-font-size); + padding: 6px 10px; + border-radius: var(--n-indicator-border-radius); + color: var(--n-indicator-text-color); + background-color: var(--n-indicator-color); + box-shadow: var(--n-indicator-box-shadow); + `,[Q("top",` + margin-bottom: 12px; + `),Q("right",` + margin-left: 12px; + `),Q("bottom",` + margin-top: 12px; + `),Q("left",` + margin-right: 12px; + `),An()]),Gi(D("slider",[D("slider-dot","background-color: var(--n-dot-color-modal);")])),Ha(D("slider",[D("slider-dot","background-color: var(--n-dot-color-popover);")]))]),QO=0,JO=Object.assign(Object.assign({},ze.props),{to:Mo.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),eL=xe({name:"Slider",props:JO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=nt(e),r=ze("Slider","-slider",YO,zw,e,t),i=M(null),[a,l]=vv(),[s,u]=vv(),d=M(new Set),c=Dn(e),{mergedDisabledRef:h}=c,f=T(()=>{const{step:ae}=e;if(Number(ae)<=0||ae==="mark")return 0;const X=ae.toString();let se=0;return X.includes(".")&&(se=X.length-X.indexOf(".")-1),se}),p=M(e.defaultValue),g=De(e,"value"),v=to(g,p),b=T(()=>{const{value:ae}=v;return(e.range?ae:[ae]).map(j)}),x=T(()=>b.value.length>2),E=T(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),y=T(()=>{const{marks:ae}=e;return ae?Object.keys(ae).map(Number.parseFloat):null}),k=M(-1),F=M(-1),C=M(-1),A=M(!1),P=M(!1),B=T(()=>{const{vertical:ae,reverse:X}=e;return ae?X?"top":"bottom":X?"right":"left"}),W=T(()=>{if(x.value)return;const ae=b.value,X=ue(e.range?Math.min(...ae):e.min),se=ue(e.range?Math.max(...ae):ae[0]),{value:ve}=B;return e.vertical?{[ve]:`${X}%`,height:`${se-X}%`}:{[ve]:`${X}%`,width:`${se-X}%`}}),N=T(()=>{const ae=[],{marks:X}=e;if(X){const se=b.value.slice();se.sort((st,Xe)=>st-Xe);const{value:ve}=B,{value:Te}=x,{range:Ke}=e,Qe=Te?()=>!1:st=>Ke?st>=se[0]&&st<=se[se.length-1]:st<=se[0];for(const st of Object.keys(X)){const Xe=Number(st);ae.push({active:Qe(Xe),key:Xe,label:X[st],style:{[ve]:`${ue(Xe)}%`}})}}return ae});function K(ae,X){const se=ue(ae),{value:ve}=B;return{[ve]:`${se}%`,zIndex:X===k.value?1:0}}function H(ae){return e.showTooltip||C.value===ae||k.value===ae&&A.value}function I(ae){return A.value?!(k.value===ae&&F.value===ae):!0}function O(ae){var X;~ae&&(k.value=ae,(X=a.get(ae))===null||X===void 0||X.focus())}function R(){s.forEach((ae,X)=>{H(X)&&ae.syncPosition()})}function z(ae){const{"onUpdate:value":X,onUpdateValue:se}=e,{nTriggerFormInput:ve,nTriggerFormChange:Te}=c;se&&Pe(se,ae),X&&Pe(X,ae),p.value=ae,ve(),Te()}function _(ae){const{range:X}=e;if(X){if(Array.isArray(ae)){const{value:se}=b;ae.join()!==se.join()&&z(ae)}}else Array.isArray(ae)||b.value[0]!==ae&&z(ae)}function oe(ae,X){if(e.range){const se=b.value.slice();se.splice(X,1,ae),_(se)}else _(ae)}function G(ae,X,se){const ve=se!==void 0;se||(se=ae-X>0?1:-1);const Te=y.value||[],{step:Ke}=e;if(Ke==="mark"){const Xe=pe(ae,Te.concat(X),ve?se:void 0);return Xe?Xe.value:X}if(Ke<=0)return X;const{value:Qe}=f;let st;if(ve){const Xe=Number((X/Ke).toFixed(Qe)),pt=Math.floor(Xe),Ye=Xe>pt?pt:pt-1,Le=Xe<pt?pt:pt+1;st=pe(X,[Number((Ye*Ke).toFixed(Qe)),Number((Le*Ke).toFixed(Qe)),...Te],se)}else{const Xe=_e(ae);st=pe(ae,[...Te,Xe])}return st?j(st.value):X}function j(ae){return Math.min(e.max,Math.max(e.min,ae))}function ue(ae){const{max:X,min:se}=e;return(ae-se)/(X-se)*100}function he(ae){const{max:X,min:se}=e;return se+(X-se)*ae}function _e(ae){const{step:X,min:se}=e;if(Number(X)<=0||X==="mark")return ae;const ve=Math.round((ae-se)/X)*X+se;return Number(ve.toFixed(f.value))}function pe(ae,X=y.value,se){if(!(X!=null&&X.length))return null;let ve=null,Te=-1;for(;++Te<X.length;){const Ke=X[Te]-ae,Qe=Math.abs(Ke);(se===void 0||Ke*se>0)&&(ve===null||Qe<ve.distance)&&(ve={index:Te,distance:Qe,value:X[Te]})}return ve}function fe(ae){const X=i.value;if(!X)return;const se=gv(ae)?ae.touches[0]:ae,ve=X.getBoundingClientRect();let Te;return e.vertical?Te=(ve.bottom-se.clientY)/ve.height:Te=(se.clientX-ve.left)/ve.width,e.reverse&&(Te=1-Te),he(Te)}function Ce(ae){if(h.value||!e.keyboard)return;const{vertical:X,reverse:se}=e;switch(ae.key){case"ArrowUp":ae.preventDefault(),Y(X&&se?-1:1);break;case"ArrowRight":ae.preventDefault(),Y(!X&&se?-1:1);break;case"ArrowDown":ae.preventDefault(),Y(X&&se?1:-1);break;case"ArrowLeft":ae.preventDefault(),Y(!X&&se?1:-1);break}}function Y(ae){const X=k.value;if(X===-1)return;const{step:se}=e,ve=b.value[X],Te=Number(se)<=0||se==="mark"?ve:ve+se*ae;oe(G(Te,ve,ae>0?1:-1),X)}function q(ae){var X,se;if(h.value||!gv(ae)&&ae.button!==QO)return;const ve=fe(ae);if(ve===void 0)return;const Te=b.value.slice(),Ke=e.range?(se=(X=pe(ve,Te))===null||X===void 0?void 0:X.index)!==null&&se!==void 0?se:-1:0;Ke!==-1&&(ae.preventDefault(),O(Ke),Se(),oe(G(ve,b.value[Ke]),Ke))}function Se(){A.value||(A.value=!0,e.onDragstart&&Pe(e.onDragstart),Ct("touchend",document,te),Ct("mouseup",document,te),Ct("touchmove",document,U),Ct("mousemove",document,U))}function je(){A.value&&(A.value=!1,e.onDragend&&Pe(e.onDragend),xt("touchend",document,te),xt("mouseup",document,te),xt("touchmove",document,U),xt("mousemove",document,U))}function U(ae){const{value:X}=k;if(!A.value||X===-1){je();return}const se=fe(ae);se!==void 0&&oe(G(se,b.value[X]),X)}function te(){je()}function ge(ae){k.value=ae,h.value||(C.value=ae)}function we(ae){k.value===ae&&(k.value=-1,je()),C.value===ae&&(C.value=-1)}function le(ae){C.value=ae}function re(ae){C.value===ae&&(C.value=-1)}at(k,(ae,X)=>void Rt(()=>F.value=X)),at(v,()=>{if(e.marks){if(P.value)return;P.value=!0,Rt(()=>{P.value=!1})}Rt(R)}),Xt(()=>{je()});const ce=T(()=>{const{self:{markFontSize:ae,railColor:X,railColorHover:se,fillColor:ve,fillColorHover:Te,handleColor:Ke,opacityDisabled:Qe,dotColor:st,dotColorModal:Xe,handleBoxShadow:pt,handleBoxShadowHover:Ye,handleBoxShadowActive:Le,handleBoxShadowFocus:tt,dotBorder:J,dotBoxShadow:me,railHeight:Me,railWidthVertical:He,handleSize:We,dotHeight:Ge,dotWidth:qe,dotBorderRadius:ot,fontSize:yt,dotBorderActive:Bt,dotColorPopover:_t},common:{cubicBezierEaseInOut:xo}}=r.value;return{"--n-bezier":xo,"--n-dot-border":J,"--n-dot-border-active":Bt,"--n-dot-border-radius":ot,"--n-dot-box-shadow":me,"--n-dot-color":st,"--n-dot-color-modal":Xe,"--n-dot-color-popover":_t,"--n-dot-height":Ge,"--n-dot-width":qe,"--n-fill-color":ve,"--n-fill-color-hover":Te,"--n-font-size":yt,"--n-handle-box-shadow":pt,"--n-handle-box-shadow-active":Le,"--n-handle-box-shadow-focus":tt,"--n-handle-box-shadow-hover":Ye,"--n-handle-color":Ke,"--n-handle-size":We,"--n-opacity-disabled":Qe,"--n-rail-color":X,"--n-rail-color-hover":se,"--n-rail-height":Me,"--n-rail-width-vertical":He,"--n-mark-font-size":ae}}),ee=n?vt("slider",void 0,ce,e):void 0,ie=T(()=>{const{self:{fontSize:ae,indicatorColor:X,indicatorBoxShadow:se,indicatorTextColor:ve,indicatorBorderRadius:Te}}=r.value;return{"--n-font-size":ae,"--n-indicator-border-radius":Te,"--n-indicator-box-shadow":se,"--n-indicator-color":X,"--n-indicator-text-color":ve}}),de=n?vt("slider-indicator",void 0,ie,e):void 0;return{mergedClsPrefix:t,namespace:o,uncontrolledValue:p,mergedValue:v,mergedDisabled:h,mergedPlacement:E,isMounted:Cr(),adjustedTo:Mo(e),dotTransitionDisabled:P,markInfos:N,isShowTooltip:H,shouldKeepTooltipTransition:I,handleRailRef:i,setHandleRefs:l,setFollowerRefs:u,fillStyle:W,getHandleStyle:K,activeIndex:k,arrifiedValues:b,followerEnabledIndexSet:d,handleRailMouseDown:q,handleHandleFocus:ge,handleHandleBlur:we,handleHandleMouseEnter:le,handleHandleMouseLeave:re,handleRailKeyDown:Ce,indicatorCssVars:n?void 0:ie,indicatorThemeClass:de==null?void 0:de.themeClass,indicatorOnRender:de==null?void 0:de.onRender,cssVars:n?void 0:ce,themeClass:ee==null?void 0:ee.themeClass,onRender:ee==null?void 0:ee.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:o,formatTooltip:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-slider`,o,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},m("div",{class:`${t}-slider-rail`},m("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?m("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(r=>m("div",{key:r.key,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:r.active}],style:r.style}))):null,m("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((r,i)=>{const a=this.isShowTooltip(i);return m(ks,null,{default:()=>[m(_s,null,{default:()=>m("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:"slider","aria-valuenow":r,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?"vertical":"horizontal","aria-disabled":this.disabled,style:this.getHandleStyle(r,i),onFocus:()=>{this.handleHandleFocus(i)},onBlur:()=>{this.handleHandleBlur(i)},onMouseenter:()=>{this.handleHandleMouseEnter(i)},onMouseleave:()=>{this.handleHandleMouseLeave(i)}},wo(this.$slots.thumb,()=>[m("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&m(Fs,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Mo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>m(po,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),m("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof n=="function"?n(r):r)):null}})})]})})),this.marks?m("div",{class:`${t}-slider-marks`},this.markInfos.map(r=>m("div",{key:r.key,class:`${t}-slider-mark`,style:r.style},typeof r.label=="function"?r.label():r.label))):null))}}),tL=V([V("@keyframes spin-rotate",` + from { + transform: rotate(0); + } + to { + transform: rotate(360deg); + } + `),D("spin-container",` + position: relative; + `,[D("spin-body",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Ts()])]),D("spin-body",` + display: inline-flex; + align-items: center; + justify-content: center; + flex-direction: column; + `),D("spin",` + display: inline-flex; + height: var(--n-size); + width: var(--n-size); + font-size: var(--n-size); + color: var(--n-color); + `,[Q("rotate",` + animation: spin-rotate 2s linear infinite; + `)]),D("spin-description",` + display: inline-block; + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + margin-top: 8px; + `),D("spin-content",` + opacity: 1; + transition: opacity .3s var(--n-bezier); + pointer-events: all; + `,[Q("spinning",` + user-select: none; + -webkit-user-select: none; + pointer-events: none; + opacity: var(--n-opacity-spinning); + `)])]),oL={small:20,medium:18,large:16},nL=Object.assign(Object.assign({},ze.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),rL=xe({name:"Spin",props:nL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=ze("Spin","-spin",tL,Lw,e,t),r=T(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:u},self:d}=n.value,{opacitySpinning:c,color:h,textColor:f}=d,p=typeof s=="number"?Ht(s):d[ke("size",s)];return{"--n-bezier":u,"--n-opacity-spinning":c,"--n-size":p,"--n-color":h,"--n-text-color":f}}),i=o?vt("spin",T(()=>{const{size:s}=e;return typeof s=="number"?String(s):s[0]}),r,e):void 0,a=Jl(e,["spinning","show"]),l=M(!1);return kt(s=>{let u;if(a.value){const{delay:d}=e;if(d){u=window.setTimeout(()=>{l.value=!0},d),s(()=>{clearTimeout(u)});return}}l.value=a.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:T(()=>{const{strokeWidth:s}=e;if(s!==void 0)return s;const{size:u}=e;return oL[typeof u=="number"?"medium":u]}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:o,mergedClsPrefix:n,description:r}=this,i=o.icon&&this.rotate,a=(r||o.description)&&m("div",{class:`${n}-spin-description`},r||((e=o.description)===null||e===void 0?void 0:e.call(o))),l=o.icon?m("div",{class:[`${n}-spin-body`,this.themeClass]},m("div",{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:o.default?"":this.cssVars},o.icon()),a):m("div",{class:[`${n}-spin-body`,this.themeClass]},m(_r,{clsPrefix:n,style:o.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),o.default?m("div",{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},m("div",{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},o),m(po,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),iL={name:"Split",common:Ne};function aL(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const lL={name:"Split",common:Ve,self:aL},sL=D("statistic",[Z("label",` + font-weight: var(--n-label-font-weight); + transition: .3s color var(--n-bezier); + font-size: var(--n-label-font-size); + color: var(--n-label-text-color); + `),D("statistic-value",` + margin-top: 4px; + font-weight: var(--n-value-font-weight); + `,[Z("prefix",` + margin: 0 4px 0 0; + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-prefix-text-color); + `,[D("icon",{verticalAlign:"-0.125em"})]),Z("content",` + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-text-color); + `),Z("suffix",` + margin: 0 0 0 4px; + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-suffix-text-color); + `,[D("icon",{verticalAlign:"-0.125em"})])])]),uL=Object.assign(Object.assign({},ze.props),{tabularNums:Boolean,label:String,value:[String,Number]}),dL=xe({name:"Statistic",props:uL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),r=ze("Statistic","-statistic",sL,Nw,e,t),i=qt("Statistic",n,t),a=T(()=>{const{self:{labelFontWeight:s,valueFontSize:u,valueFontWeight:d,valuePrefixTextColor:c,labelTextColor:h,valueSuffixTextColor:f,valueTextColor:p,labelFontSize:g},common:{cubicBezierEaseInOut:v}}=r.value;return{"--n-bezier":v,"--n-label-font-size":g,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":u,"--n-value-prefix-text-color":c,"--n-value-suffix-text-color":f,"--n-value-text-color":p}}),l=o?vt("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:o,label:n,prefix:r,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},bt(n,a=>m("div",{class:`${t}-statistic__label`},this.label||a)),m("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},bt(r,a=>a&&m("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?m("span",{class:`${t}-statistic-value__content`},this.value):bt(o,a=>a&&m("span",{class:`${t}-statistic-value__content`},a)),bt(i,a=>a&&m("span",{class:`${t}-statistic-value__suffix`},a))))}}),cL=D("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[Z("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),Z("rail-placeholder",` + display: flex; + flex-wrap: none; + `),Z("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),D("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[en({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),Z("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),Z("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),Z("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),V("&:focus",[Z("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),Q("round",[Z("rail","border-radius: calc(var(--n-rail-height) / 2);",[Z("button","border-radius: calc(var(--n-button-height) / 2);")])]),Ft("disabled",[Ft("icon",[Q("rubber-band",[Q("pressed",[Z("rail",[Z("button","max-width: var(--n-button-width-pressed);")])]),Z("rail",[V("&:active",[Z("button","max-width: var(--n-button-width-pressed);")])]),Q("active",[Q("pressed",[Z("rail",[Z("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),Z("rail",[V("&:active",[Z("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),Q("active",[Z("rail",[Z("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),Z("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[Z("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[en()]),Z("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),Q("active",[Z("rail","background-color: var(--n-rail-color-active);")]),Q("loading",[Z("rail",` + cursor: wait; + `)]),Q("disabled",[Z("rail",` + cursor: not-allowed; + opacity: .5; + `)])]),fL=Object.assign(Object.assign({},ze.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let fl;const hL=xe({name:"Switch",props:fL,setup(e){fl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?fl=CSS.supports("width","max(1px)"):fl=!1:fl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=ze("Switch","-switch",cL,Ww,e,t),r=Dn(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,l=M(e.defaultValue),s=De(e,"value"),u=to(s,l),d=T(()=>u.value===e.checkedValue),c=M(!1),h=M(!1),f=T(()=>{const{railStyle:A}=e;if(A)return A({focused:h.value,checked:d.value})});function p(A){const{"onUpdate:value":P,onChange:B,onUpdateValue:W}=e,{nTriggerFormInput:N,nTriggerFormChange:K}=r;P&&Pe(P,A),W&&Pe(W,A),B&&Pe(B,A),l.value=A,N(),K()}function g(){const{nTriggerFormFocus:A}=r;A()}function v(){const{nTriggerFormBlur:A}=r;A()}function b(){e.loading||a.value||(u.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function x(){h.value=!0,g()}function E(){h.value=!1,v(),c.value=!1}function y(A){e.loading||a.value||A.key===" "&&(u.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),c.value=!1)}function k(A){e.loading||a.value||A.key===" "&&(A.preventDefault(),c.value=!0)}const F=T(()=>{const{value:A}=i,{self:{opacityDisabled:P,railColor:B,railColorActive:W,buttonBoxShadow:N,buttonColor:K,boxShadowFocus:H,loadingColor:I,textColor:O,iconColor:R,[ke("buttonHeight",A)]:z,[ke("buttonWidth",A)]:_,[ke("buttonWidthPressed",A)]:oe,[ke("railHeight",A)]:G,[ke("railWidth",A)]:j,[ke("railBorderRadius",A)]:ue,[ke("buttonBorderRadius",A)]:he},common:{cubicBezierEaseInOut:_e}}=n.value;let pe,fe,Ce;return fl?(pe=`calc((${G} - ${z}) / 2)`,fe=`max(${G}, ${z})`,Ce=`max(${j}, calc(${j} + ${z} - ${G}))`):(pe=Ht((so(G)-so(z))/2),fe=Ht(Math.max(so(G),so(z))),Ce=so(G)>so(z)?j:Ht(so(j)+so(z)-so(G))),{"--n-bezier":_e,"--n-button-border-radius":he,"--n-button-box-shadow":N,"--n-button-color":K,"--n-button-width":_,"--n-button-width-pressed":oe,"--n-button-height":z,"--n-height":fe,"--n-offset":pe,"--n-opacity-disabled":P,"--n-rail-border-radius":ue,"--n-rail-color":B,"--n-rail-color-active":W,"--n-rail-height":G,"--n-rail-width":j,"--n-width":Ce,"--n-box-shadow-focus":H,"--n-loading-color":I,"--n-text-color":O,"--n-icon-color":R}}),C=o?vt("switch",T(()=>i.value[0]),F,e):void 0;return{handleClick:b,handleBlur:E,handleFocus:x,handleKeyup:y,handleKeydown:k,mergedRailStyle:f,pressed:c,mergedClsPrefix:t,mergedValue:u,checked:d,mergedDisabled:a,cssVars:o?void 0:F,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:o,mergedRailStyle:n,onRender:r,$slots:i}=this;r==null||r();const{checked:a,unchecked:l,icon:s,"checked-icon":u,"unchecked-icon":d}=i,c=!(Ai(s)&&Ai(u)&&Ai(d));return m("div",{role:"switch","aria-checked":o,class:[`${e}-switch`,this.themeClass,c&&`${e}-switch--icon`,o&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},m("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:n},bt(a,h=>bt(l,f=>h||f?m("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),h),m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),f)):null)),m("div",{class:`${e}-switch__button`},bt(s,h=>bt(u,f=>bt(d,p=>m(Yi,null,{default:()=>this.loading?m(_r,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(f||h)?m("div",{class:`${e}-switch__button-icon`,key:f?"checked-icon":"icon"},f||h):!this.checked&&(p||h)?m("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),bt(a,h=>h&&m("div",{key:"checked",class:`${e}-switch__checked`},h)),bt(l,h=>h&&m("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),pL=V([D("table",` + font-size: var(--n-font-size); + font-variant-numeric: tabular-nums; + line-height: var(--n-line-height); + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + text-align: left; + border-collapse: separate; + border-spacing: 0; + overflow: hidden; + background-color: var(--n-td-color); + border-color: var(--n-merged-border-color); + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + --n-merged-border-color: var(--n-border-color); + `,[V("th",` + white-space: nowrap; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + text-align: inherit; + padding: var(--n-th-padding); + vertical-align: inherit; + text-transform: none; + border: 0px solid var(--n-merged-border-color); + font-weight: var(--n-th-font-weight); + color: var(--n-th-text-color); + background-color: var(--n-th-color); + border-bottom: 1px solid var(--n-merged-border-color); + border-right: 1px solid var(--n-merged-border-color); + `,[V("&:last-child",` + border-right: 0px solid var(--n-merged-border-color); + `)]),V("td",` + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + padding: var(--n-td-padding); + color: var(--n-td-text-color); + background-color: var(--n-td-color); + border: 0px solid var(--n-merged-border-color); + border-right: 1px solid var(--n-merged-border-color); + border-bottom: 1px solid var(--n-merged-border-color); + `,[V("&:last-child",` + border-right: 0px solid var(--n-merged-border-color); + `)]),Q("bordered",` + border: 1px solid var(--n-merged-border-color); + border-radius: var(--n-border-radius); + `,[V("tr",[V("&:last-child",[V("td",` + border-bottom: 0 solid var(--n-merged-border-color); + `)])])]),Q("single-line",[V("th",` + border-right: 0px solid var(--n-merged-border-color); + `),V("td",` + border-right: 0px solid var(--n-merged-border-color); + `)]),Q("single-column",[V("tr",[V("&:not(:last-child)",[V("td",` + border-bottom: 0px solid var(--n-merged-border-color); + `)])])]),Q("striped",[V("tr:nth-of-type(even)",[V("td","background-color: var(--n-td-color-striped)")])]),Ft("bottom-bordered",[V("tr",[V("&:last-child",[V("td",` + border-bottom: 0px solid var(--n-merged-border-color); + `)])])])]),Gi(D("table",` + background-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + `,[V("th",` + background-color: var(--n-th-color-modal); + `),V("td",` + background-color: var(--n-td-color-modal); + `)])),Ha(D("table",` + background-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + `,[V("th",` + background-color: var(--n-th-color-popover); + `),V("td",` + background-color: var(--n-td-color-popover); + `)]))]),mL=Object.assign(Object.assign({},ze.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),gL=xe({name:"Table",props:mL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),r=ze("Table","-table",pL,Kw,e,t),i=qt("Table",n,t),a=T(()=>{const{size:s}=e,{self:{borderColor:u,tdColor:d,tdColorModal:c,tdColorPopover:h,thColor:f,thColorModal:p,thColorPopover:g,thTextColor:v,tdTextColor:b,borderRadius:x,thFontWeight:E,lineHeight:y,borderColorModal:k,borderColorPopover:F,tdColorStriped:C,tdColorStripedModal:A,tdColorStripedPopover:P,[ke("fontSize",s)]:B,[ke("tdPadding",s)]:W,[ke("thPadding",s)]:N},common:{cubicBezierEaseInOut:K}}=r.value;return{"--n-bezier":K,"--n-td-color":d,"--n-td-color-modal":c,"--n-td-color-popover":h,"--n-td-text-color":b,"--n-border-color":u,"--n-border-color-modal":k,"--n-border-color-popover":F,"--n-border-radius":x,"--n-font-size":B,"--n-th-color":f,"--n-th-color-modal":p,"--n-th-color-popover":g,"--n-th-font-weight":E,"--n-th-text-color":v,"--n-line-height":y,"--n-td-padding":W,"--n-th-padding":N,"--n-td-color-striped":C,"--n-td-color-striped-modal":A,"--n-td-color-striped-popover":P}}),l=o?vt("table",T(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),lm="n-tabs",b2={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},vL=xe({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:b2,setup(e){const t=Oe(lm,null);return t||yr("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return m("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),bL=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Ki(b2,["displayDirective"])),rd=xe({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:bL,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:n,closableRef:r,tabStyleRef:i,addTabStyleRef:a,tabClassRef:l,addTabClassRef:s,tabChangeIdRef:u,onBeforeLeaveRef:d,triggerRef:c,handleAdd:h,activateTab:f,handleClose:p}=Oe(lm);return{trigger:c,mergedClosable:T(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?r.value:g}),style:i,addStyle:a,tabClass:l,addTabClass:s,clsPrefix:t,value:o,type:n,handleClose(g){g.stopPropagation(),!e.disabled&&p(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){h();return}const{name:g}=e,v=++u.id;if(g!==o.value){const{value:b}=d;b?Promise.resolve(b(e.name,o.value)).then(x=>{x&&u.id===v&&f(g)}):f(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:n,label:r,tab:i,value:a,mergedClosable:l,trigger:s,$slots:{default:u}}=this,d=r??i;return m("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?m("div",{class:`${t}-tabs-tab-pad`}):null,m("div",Object.assign({key:o,"data-name":o,"data-disabled":n?!0:void 0},bo({class:[`${t}-tabs-tab`,a===o&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:s==="click"?this.activateTab:void 0,onMouseenter:s==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),m("span",{class:`${t}-tabs-tab__label`},e?m(ft,null,m("div",{class:`${t}-tabs-tab__height-placeholder`}," "),m(Ut,{clsPrefix:t},{default:()=>m(sC,null)})):u?u():typeof d=="object"?d:Jt(d??o)),l&&this.type==="card"?m(li,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),xL=D("tabs",` + box-sizing: border-box; + width: 100%; + display: flex; + flex-direction: column; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); +`,[Q("segment-type",[D("tabs-rail",[V("&.transition-disabled",[D("tabs-capsule",` + transition: none; + `)])])]),Q("top",[D("tab-pane",` + padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); + `)]),Q("left",[D("tab-pane",` + padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); + `)]),Q("left, right",` + flex-direction: row; + `,[D("tabs-bar",` + width: 2px; + right: 0; + transition: + top .2s var(--n-bezier), + max-height .2s var(--n-bezier), + background-color .3s var(--n-bezier); + `),D("tabs-tab",` + padding: var(--n-tab-padding-vertical); + `)]),Q("right",` + flex-direction: row-reverse; + `,[D("tab-pane",` + padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); + `),D("tabs-bar",` + left: 0; + `)]),Q("bottom",` + flex-direction: column-reverse; + justify-content: flex-end; + `,[D("tab-pane",` + padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); + `),D("tabs-bar",` + top: 0; + `)]),D("tabs-rail",` + position: relative; + padding: 3px; + border-radius: var(--n-tab-border-radius); + width: 100%; + background-color: var(--n-color-segment); + transition: background-color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[D("tabs-capsule",` + border-radius: var(--n-tab-border-radius); + position: absolute; + pointer-events: none; + background-color: var(--n-tab-color-segment); + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); + transition: transform 0.3s var(--n-bezier); + `),D("tabs-tab-wrapper",` + flex-basis: 0; + flex-grow: 1; + display: flex; + align-items: center; + justify-content: center; + `,[D("tabs-tab",` + overflow: hidden; + border-radius: var(--n-tab-border-radius); + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `,[Q("active",` + font-weight: var(--n-font-weight-strong); + color: var(--n-tab-text-color-active); + `),V("&:hover",` + color: var(--n-tab-text-color-hover); + `)])])]),Q("flex",[D("tabs-nav",` + width: 100%; + position: relative; + `,[D("tabs-wrapper",` + width: 100%; + `,[D("tabs-tab",` + margin-right: 0; + `)])])]),D("tabs-nav",` + box-sizing: border-box; + line-height: 1.5; + display: flex; + transition: border-color .3s var(--n-bezier); + `,[Z("prefix, suffix",` + display: flex; + align-items: center; + `),Z("prefix","padding-right: 16px;"),Z("suffix","padding-left: 16px;")]),Q("top, bottom",[D("tabs-nav-scroll-wrapper",[V("&::before",` + top: 0; + bottom: 0; + left: 0; + width: 20px; + `),V("&::after",` + top: 0; + bottom: 0; + right: 0; + width: 20px; + `),Q("shadow-start",[V("&::before",` + box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); + `)]),Q("shadow-end",[V("&::after",` + box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); + `)])])]),Q("left, right",[D("tabs-nav-scroll-content",` + flex-direction: column; + `),D("tabs-nav-scroll-wrapper",[V("&::before",` + top: 0; + left: 0; + right: 0; + height: 20px; + `),V("&::after",` + bottom: 0; + left: 0; + right: 0; + height: 20px; + `),Q("shadow-start",[V("&::before",` + box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); + `)]),Q("shadow-end",[V("&::after",` + box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); + `)])])]),D("tabs-nav-scroll-wrapper",` + flex: 1; + position: relative; + overflow: hidden; + `,[D("tabs-nav-y-scroll",` + height: 100%; + width: 100%; + overflow-y: auto; + scrollbar-width: none; + `,[V("&::-webkit-scrollbar",` + width: 0; + height: 0; + `)]),V("&::before, &::after",` + transition: box-shadow .3s var(--n-bezier); + pointer-events: none; + content: ""; + position: absolute; + z-index: 1; + `)]),D("tabs-nav-scroll-content",` + display: flex; + position: relative; + min-width: 100%; + min-height: 100%; + width: fit-content; + box-sizing: border-box; + `),D("tabs-wrapper",` + display: inline-flex; + flex-wrap: nowrap; + position: relative; + `),D("tabs-tab-wrapper",` + display: flex; + flex-wrap: nowrap; + flex-shrink: 0; + flex-grow: 0; + `),D("tabs-tab",` + cursor: pointer; + white-space: nowrap; + flex-wrap: nowrap; + display: inline-flex; + align-items: center; + color: var(--n-tab-text-color); + font-size: var(--n-tab-font-size); + background-clip: padding-box; + padding: var(--n-tab-padding); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[Q("disabled",{cursor:"not-allowed"}),Z("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),Z("label",` + display: flex; + align-items: center; + z-index: 1; + `)]),D("tabs-bar",` + position: absolute; + bottom: 0; + height: 2px; + border-radius: 1px; + background-color: var(--n-bar-color); + transition: + left .2s var(--n-bezier), + max-width .2s var(--n-bezier), + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[V("&.transition-disabled",` + transition: none; + `),Q("disabled",` + background-color: var(--n-tab-text-color-disabled) + `)]),D("tabs-pane-wrapper",` + position: relative; + overflow: hidden; + transition: max-height .2s var(--n-bezier); + `),D("tab-pane",` + color: var(--n-pane-text-color); + width: 100%; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .2s var(--n-bezier); + left: 0; + right: 0; + top: 0; + `,[V("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .2s var(--n-bezier), + opacity .2s var(--n-bezier); + `),V("&.next-transition-leave-active, &.prev-transition-leave-active",` + position: absolute; + `),V("&.next-transition-enter-from, &.prev-transition-leave-to",` + transform: translateX(32px); + opacity: 0; + `),V("&.next-transition-leave-to, &.prev-transition-enter-from",` + transform: translateX(-32px); + opacity: 0; + `),V("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` + transform: translateX(0); + opacity: 1; + `)]),D("tabs-tab-pad",` + box-sizing: border-box; + width: var(--n-tab-gap); + flex-grow: 0; + flex-shrink: 0; + `),Q("line-type, bar-type",[D("tabs-tab",` + font-weight: var(--n-tab-font-weight); + box-sizing: border-box; + vertical-align: bottom; + `,[V("&:hover",{color:"var(--n-tab-text-color-hover)"}),Q("active",` + color: var(--n-tab-text-color-active); + font-weight: var(--n-tab-font-weight-active); + `),Q("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),D("tabs-nav",[Q("line-type",[Q("top",[Z("prefix, suffix",` + border-bottom: 1px solid var(--n-tab-border-color); + `),D("tabs-nav-scroll-content",` + border-bottom: 1px solid var(--n-tab-border-color); + `),D("tabs-bar",` + bottom: -1px; + `)]),Q("left",[Z("prefix, suffix",` + border-right: 1px solid var(--n-tab-border-color); + `),D("tabs-nav-scroll-content",` + border-right: 1px solid var(--n-tab-border-color); + `),D("tabs-bar",` + right: -1px; + `)]),Q("right",[Z("prefix, suffix",` + border-left: 1px solid var(--n-tab-border-color); + `),D("tabs-nav-scroll-content",` + border-left: 1px solid var(--n-tab-border-color); + `),D("tabs-bar",` + left: -1px; + `)]),Q("bottom",[Z("prefix, suffix",` + border-top: 1px solid var(--n-tab-border-color); + `),D("tabs-nav-scroll-content",` + border-top: 1px solid var(--n-tab-border-color); + `),D("tabs-bar",` + top: -1px; + `)]),Z("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + `),D("tabs-nav-scroll-content",` + transition: border-color .3s var(--n-bezier); + `),D("tabs-bar",` + border-radius: 0; + `)]),Q("card-type",[Z("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + `),D("tabs-pad",` + flex-grow: 1; + transition: border-color .3s var(--n-bezier); + `),D("tabs-tab-pad",` + transition: border-color .3s var(--n-bezier); + `),D("tabs-tab",` + font-weight: var(--n-tab-font-weight); + border: 1px solid var(--n-tab-border-color); + background-color: var(--n-tab-color); + box-sizing: border-box; + position: relative; + vertical-align: bottom; + display: flex; + justify-content: space-between; + font-size: var(--n-tab-font-size); + color: var(--n-tab-text-color); + `,[Q("addable",` + padding-left: 8px; + padding-right: 8px; + font-size: 16px; + justify-content: center; + `,[Z("height-placeholder",` + width: 0; + font-size: var(--n-tab-font-size); + `),Ft("disabled",[V("&:hover",` + color: var(--n-tab-text-color-hover); + `)])]),Q("closable","padding-right: 8px;"),Q("active",` + background-color: #0000; + font-weight: var(--n-tab-font-weight-active); + color: var(--n-tab-text-color-active); + `),Q("disabled","color: var(--n-tab-text-color-disabled);")])]),Q("left, right",` + flex-direction: column; + `,[Z("prefix, suffix",` + padding: var(--n-tab-padding-vertical); + `),D("tabs-wrapper",` + flex-direction: column; + `),D("tabs-tab-wrapper",` + flex-direction: column; + `,[D("tabs-tab-pad",` + height: var(--n-tab-gap-vertical); + width: 100%; + `)])]),Q("top",[Q("card-type",[D("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),Z("prefix, suffix",` + border-bottom: 1px solid var(--n-tab-border-color); + `),D("tabs-tab",` + border-top-left-radius: var(--n-tab-border-radius); + border-top-right-radius: var(--n-tab-border-radius); + `,[Q("active",` + border-bottom: 1px solid #0000; + `)]),D("tabs-tab-pad",` + border-bottom: 1px solid var(--n-tab-border-color); + `),D("tabs-pad",` + border-bottom: 1px solid var(--n-tab-border-color); + `)])]),Q("left",[Q("card-type",[D("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),Z("prefix, suffix",` + border-right: 1px solid var(--n-tab-border-color); + `),D("tabs-tab",` + border-top-left-radius: var(--n-tab-border-radius); + border-bottom-left-radius: var(--n-tab-border-radius); + `,[Q("active",` + border-right: 1px solid #0000; + `)]),D("tabs-tab-pad",` + border-right: 1px solid var(--n-tab-border-color); + `),D("tabs-pad",` + border-right: 1px solid var(--n-tab-border-color); + `)])]),Q("right",[Q("card-type",[D("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),Z("prefix, suffix",` + border-left: 1px solid var(--n-tab-border-color); + `),D("tabs-tab",` + border-top-right-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[Q("active",` + border-left: 1px solid #0000; + `)]),D("tabs-tab-pad",` + border-left: 1px solid var(--n-tab-border-color); + `),D("tabs-pad",` + border-left: 1px solid var(--n-tab-border-color); + `)])]),Q("bottom",[Q("card-type",[D("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),Z("prefix, suffix",` + border-top: 1px solid var(--n-tab-border-color); + `),D("tabs-tab",` + border-bottom-left-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[Q("active",` + border-top: 1px solid #0000; + `)]),D("tabs-tab-pad",` + border-top: 1px solid var(--n-tab-border-color); + `),D("tabs-pad",` + border-top: 1px solid var(--n-tab-border-color); + `)])])])]),yL=Object.assign(Object.assign({},ze.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),CL=xe({name:"Tabs",props:yL,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=nt(e),s=ze("Tabs","-tabs",xL,qw,e,a),u=M(null),d=M(null),c=M(null),h=M(null),f=M(null),p=M(null),g=M(!0),v=M(!0),b=Jl(e,["labelSize","size"]),x=Jl(e,["activeName","value"]),E=M((n=(o=x.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(r=vr(t.default())[0])===null||r===void 0?void 0:r.props)===null||i===void 0?void 0:i.name:null),y=to(x,E),k={id:0},F=T(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});at(y,()=>{k.id=0,W(),N()});function C(){var ee;const{value:ie}=y;return ie===null?null:(ee=u.value)===null||ee===void 0?void 0:ee.querySelector(`[data-name="${ie}"]`)}function A(ee){if(e.type==="card")return;const{value:ie}=d;if(!ie)return;const de=ie.style.opacity==="0";if(ee){const ae=`${a.value}-tabs-bar--disabled`,{barWidth:X,placement:se}=e;if(ee.dataset.disabled==="true"?ie.classList.add(ae):ie.classList.remove(ae),["top","bottom"].includes(se)){if(B(["top","maxHeight","height"]),typeof X=="number"&&ee.offsetWidth>=X){const ve=Math.floor((ee.offsetWidth-X)/2)+ee.offsetLeft;ie.style.left=`${ve}px`,ie.style.maxWidth=`${X}px`}else ie.style.left=`${ee.offsetLeft}px`,ie.style.maxWidth=`${ee.offsetWidth}px`;ie.style.width="8192px",de&&(ie.style.transition="none"),ie.offsetWidth,de&&(ie.style.transition="",ie.style.opacity="1")}else{if(B(["left","maxWidth","width"]),typeof X=="number"&&ee.offsetHeight>=X){const ve=Math.floor((ee.offsetHeight-X)/2)+ee.offsetTop;ie.style.top=`${ve}px`,ie.style.maxHeight=`${X}px`}else ie.style.top=`${ee.offsetTop}px`,ie.style.maxHeight=`${ee.offsetHeight}px`;ie.style.height="8192px",de&&(ie.style.transition="none"),ie.offsetHeight,de&&(ie.style.transition="",ie.style.opacity="1")}}}function P(){if(e.type==="card")return;const{value:ee}=d;ee&&(ee.style.opacity="0")}function B(ee){const{value:ie}=d;if(ie)for(const de of ee)ie.style[de]=""}function W(){if(e.type==="card")return;const ee=C();ee?A(ee):P()}function N(){var ee;const ie=(ee=f.value)===null||ee===void 0?void 0:ee.$el;if(!ie)return;const de=C();if(!de)return;const{scrollLeft:ae,offsetWidth:X}=ie,{offsetLeft:se,offsetWidth:ve}=de;ae>se?ie.scrollTo({top:0,left:se,behavior:"smooth"}):se+ve>ae+X&&ie.scrollTo({top:0,left:se+ve-X,behavior:"smooth"})}const K=M(null);let H=0,I=null;function O(ee){const ie=K.value;if(ie){H=ee.getBoundingClientRect().height;const de=`${H}px`,ae=()=>{ie.style.height=de,ie.style.maxHeight=de};I?(ae(),I(),I=null):I=ae}}function R(ee){const ie=K.value;if(ie){const de=ee.getBoundingClientRect().height,ae=()=>{document.body.offsetHeight,ie.style.maxHeight=`${de}px`,ie.style.height=`${Math.max(H,de)}px`};I?(I(),I=null,ae()):I=ae}}function z(){const ee=K.value;if(ee){ee.style.maxHeight="",ee.style.height="";const{paneWrapperStyle:ie}=e;if(typeof ie=="string")ee.style.cssText=ie;else if(ie){const{maxHeight:de,height:ae}=ie;de!==void 0&&(ee.style.maxHeight=de),ae!==void 0&&(ee.style.height=ae)}}}const _={value:[]},oe=M("next");function G(ee){const ie=y.value;let de="next";for(const ae of _.value){if(ae===ie)break;if(ae===ee){de="prev";break}}oe.value=de,j(ee)}function j(ee){const{onActiveNameChange:ie,onUpdateValue:de,"onUpdate:value":ae}=e;ie&&Pe(ie,ee),de&&Pe(de,ee),ae&&Pe(ae,ee),E.value=ee}function ue(ee){const{onClose:ie}=e;ie&&Pe(ie,ee)}function he(){const{value:ee}=d;if(!ee)return;const ie="transition-disabled";ee.classList.add(ie),W(),ee.classList.remove(ie)}const _e=M(null);function pe({transitionDisabled:ee}){const ie=u.value;if(!ie)return;ee&&ie.classList.add("transition-disabled");const de=C();de&&_e.value&&(_e.value.style.width=`${de.offsetWidth}px`,_e.value.style.height=`${de.offsetHeight}px`,_e.value.style.transform=`translateX(${de.offsetLeft-so(getComputedStyle(ie).paddingLeft)}px)`,ee&&_e.value.offsetWidth),ee&&ie.classList.remove("transition-disabled")}at([y],()=>{e.type==="segment"&&Rt(()=>{pe({transitionDisabled:!1})})}),ut(()=>{e.type==="segment"&&pe({transitionDisabled:!0})});let fe=0;function Ce(ee){var ie;if(ee.contentRect.width===0&&ee.contentRect.height===0||fe===ee.contentRect.width)return;fe=ee.contentRect.width;const{type:de}=e;if((de==="line"||de==="bar")&&he(),de!=="segment"){const{placement:ae}=e;te((ae==="top"||ae==="bottom"?(ie=f.value)===null||ie===void 0?void 0:ie.$el:p.value)||null)}}const Y=Du(Ce,64);at([()=>e.justifyContent,()=>e.size],()=>{Rt(()=>{const{type:ee}=e;(ee==="line"||ee==="bar")&&he()})});const q=M(!1);function Se(ee){var ie;const{target:de,contentRect:{width:ae,height:X}}=ee,se=de.parentElement.parentElement.offsetWidth,ve=de.parentElement.parentElement.offsetHeight,{placement:Te}=e;if(!q.value)Te==="top"||Te==="bottom"?se<ae&&(q.value=!0):ve<X&&(q.value=!0);else{const{value:Ke}=h;if(!Ke)return;Te==="top"||Te==="bottom"?se-ae>Ke.$el.offsetWidth&&(q.value=!1):ve-X>Ke.$el.offsetHeight&&(q.value=!1)}te(((ie=f.value)===null||ie===void 0?void 0:ie.$el)||null)}const je=Du(Se,64);function U(){const{onAdd:ee}=e;ee&&ee(),Rt(()=>{const ie=C(),{value:de}=f;!ie||!de||de.scrollTo({left:ie.offsetLeft,top:0,behavior:"smooth"})})}function te(ee){if(!ee)return;const{placement:ie}=e;if(ie==="top"||ie==="bottom"){const{scrollLeft:de,scrollWidth:ae,offsetWidth:X}=ee;g.value=de<=0,v.value=de+X>=ae}else{const{scrollTop:de,scrollHeight:ae,offsetHeight:X}=ee;g.value=de<=0,v.value=de+X>=ae}}const ge=Du(ee=>{te(ee.target)},64);et(lm,{triggerRef:De(e,"trigger"),tabStyleRef:De(e,"tabStyle"),tabClassRef:De(e,"tabClass"),addTabStyleRef:De(e,"addTabStyle"),addTabClassRef:De(e,"addTabClass"),paneClassRef:De(e,"paneClass"),paneStyleRef:De(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:De(e,"type"),closableRef:De(e,"closable"),valueRef:y,tabChangeIdRef:k,onBeforeLeaveRef:De(e,"onBeforeLeave"),activateTab:G,handleClose:ue,handleAdd:U}),hp(()=>{W(),N()}),kt(()=>{const{value:ee}=c;if(!ee)return;const{value:ie}=a,de=`${ie}-tabs-nav-scroll-wrapper--shadow-start`,ae=`${ie}-tabs-nav-scroll-wrapper--shadow-end`;g.value?ee.classList.remove(de):ee.classList.add(de),v.value?ee.classList.remove(ae):ee.classList.add(ae)});const we={syncBarPosition:()=>{W()}},le=()=>{pe({transitionDisabled:!0})},re=T(()=>{const{value:ee}=b,{type:ie}=e,de={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ie],ae=`${ee}${de}`,{self:{barColor:X,closeIconColor:se,closeIconColorHover:ve,closeIconColorPressed:Te,tabColor:Ke,tabBorderColor:Qe,paneTextColor:st,tabFontWeight:Xe,tabBorderRadius:pt,tabFontWeightActive:Ye,colorSegment:Le,fontWeightStrong:tt,tabColorSegment:J,closeSize:me,closeIconSize:Me,closeColorHover:He,closeColorPressed:We,closeBorderRadius:Ge,[ke("panePadding",ee)]:qe,[ke("tabPadding",ae)]:ot,[ke("tabPaddingVertical",ae)]:yt,[ke("tabGap",ae)]:Bt,[ke("tabGap",`${ae}Vertical`)]:_t,[ke("tabTextColor",ie)]:xo,[ke("tabTextColorActive",ie)]:Ao,[ke("tabTextColorHover",ie)]:Bo,[ke("tabTextColorDisabled",ie)]:No,[ke("tabFontSize",ee)]:Vo},common:{cubicBezierEaseInOut:un}}=s.value;return{"--n-bezier":un,"--n-color-segment":Le,"--n-bar-color":X,"--n-tab-font-size":Vo,"--n-tab-text-color":xo,"--n-tab-text-color-active":Ao,"--n-tab-text-color-disabled":No,"--n-tab-text-color-hover":Bo,"--n-pane-text-color":st,"--n-tab-border-color":Qe,"--n-tab-border-radius":pt,"--n-close-size":me,"--n-close-icon-size":Me,"--n-close-color-hover":He,"--n-close-color-pressed":We,"--n-close-border-radius":Ge,"--n-close-icon-color":se,"--n-close-icon-color-hover":ve,"--n-close-icon-color-pressed":Te,"--n-tab-color":Ke,"--n-tab-font-weight":Xe,"--n-tab-font-weight-active":Ye,"--n-tab-padding":ot,"--n-tab-padding-vertical":yt,"--n-tab-gap":Bt,"--n-tab-gap-vertical":_t,"--n-pane-padding-left":Ro(qe,"left"),"--n-pane-padding-right":Ro(qe,"right"),"--n-pane-padding-top":Ro(qe,"top"),"--n-pane-padding-bottom":Ro(qe,"bottom"),"--n-font-weight-strong":tt,"--n-tab-color-segment":J}}),ce=l?vt("tabs",T(()=>`${b.value[0]}${e.type[0]}`),re,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:y,renderedNames:new Set,segmentCapsuleElRef:_e,tabsPaneWrapperRef:K,tabsElRef:u,barElRef:d,addTabInstRef:h,xScrollInstRef:f,scrollWrapperElRef:c,addTabFixed:q,tabWrapperStyle:F,handleNavResize:Y,mergedSize:b,handleScroll:ge,handleTabsResize:je,cssVars:l?void 0:re,themeClass:ce==null?void 0:ce.themeClass,animationDirection:oe,renderNameListRef:_,yScrollElRef:p,handleSegmentResize:le,onAnimationBeforeLeave:O,onAnimationEnter:R,onAnimationAfterEnter:z,onRender:ce==null?void 0:ce.onRender},we)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:n,addable:r,mergedSize:i,renderNameListRef:a,onRender:l,paneWrapperClass:s,paneWrapperStyle:u,$slots:{default:d,prefix:c,suffix:h}}=this;l==null||l();const f=d?vr(d()).filter(k=>k.type.__TAB_PANE__===!0):[],p=d?vr(d()).filter(k=>k.type.__TAB__===!0):[],g=!p.length,v=t==="card",b=t==="segment",x=!v&&!b&&this.justifyContent;a.value=[];const E=()=>{const k=m("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},x?null:m("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?f.map((F,C)=>(a.value.push(F.props.name),af(m(rd,Object.assign({},F.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0&&(!x||x==="center"||x==="start"||x==="end")}),F.children?{default:F.children.tab}:void 0)))):p.map((F,C)=>(a.value.push(F.props.name),af(C!==0&&!x?yv(F):F))),!n&&r&&v?xv(r,(g?f.length:p.length)!==0):null,x?null:m("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return m("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},v&&r?m($n,{onResize:this.handleTabsResize},{default:()=>k}):k,v?m("div",{class:`${e}-tabs-pad`}):null,v?null:m("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},y=b?"top":o;return m("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,x&&`${e}-tabs--flex`,`${e}-tabs--${y}`],style:this.cssVars},m("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${y}`,`${e}-tabs-nav`]},bt(c,k=>k&&m("div",{class:`${e}-tabs-nav__prefix`},k)),b?m($n,{onResize:this.handleSegmentResize},{default:()=>m("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},m("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},m("div",{class:`${e}-tabs-wrapper`},m("div",{class:`${e}-tabs-tab`}))),g?f.map((k,F)=>(a.value.push(k.props.name),m(rd,Object.assign({},k.props,{internalCreatedByPane:!0,internalLeftPadded:F!==0}),k.children?{default:k.children.tab}:void 0))):p.map((k,F)=>(a.value.push(k.props.name),F===0?k:yv(k))))}):m($n,{onResize:this.handleNavResize},{default:()=>m("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(y)?m(n8,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:E}):m("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},E()))}),n&&r&&v?xv(r,!0):null,bt(h,k=>k&&m("div",{class:`${e}-tabs-nav__suffix`},k))),g&&(this.animated&&(y==="top"||y==="bottom")?m("div",{ref:"tabsPaneWrapperRef",style:u,class:[`${e}-tabs-pane-wrapper`,s]},bv(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):bv(f,this.mergedValue,this.renderedNames)))}});function bv(e,t,o,n,r,i,a){const l=[];return e.forEach(s=>{const{name:u,displayDirective:d,"display-directive":c}=s.props,h=p=>d===p||c===p,f=t===u;if(s.key!==void 0&&(s.key=u),f||h("show")||h("show:lazy")&&o.has(u)){o.has(u)||o.add(u);const p=!h("if");l.push(p?Po(s,[[bn,f]]):s)}}),a?m(ip,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>l}):l}function xv(e,t){return m(rd,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function yv(e){const t=qo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function af(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const wL=V([D("watermark-container",` + position: relative; + `,[Ft("selectable",` + user-select: none; + -webkit-user-select: none; + `),Q("global-rotate",` + overflow: hidden; + `),Q("fullscreen",` + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + position: fixed; + `)]),D("watermark",` + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + background-repeat: repeat; + `,[Q("fullscreen",` + position: fixed; + `),Q("global-rotate",` + position: absolute; + height: max(284vh, 284vw); + width: max(284vh, 284vw); + `)])]);function SL(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const EL=Object.assign(Object.assign({},ze.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),kL=xe({name:"Watermark",props:EL,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=nt(e),n=ze("Watermark","-watermark",wL,n2,e,o),r=M(""),i=wn?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=M(!1);return hp(()=>l.value=!0),kt(()=>{if(!i)return;l.value;const s=SL(a),{xGap:u,yGap:d,width:c,height:h,yOffset:f,xOffset:p,rotate:g,image:v,content:b,fontColor:x,fontStyle:E,fontVariant:y,fontStretch:k,fontWeight:F,fontFamily:C,fontSize:A,lineHeight:P,debug:B}=e,W=(u+c)*s,N=(d+h)*s,K=p*s,H=f*s;if(i.width=W,i.height=N,a){a.translate(0,0);const I=c*s,O=h*s;if(B&&(a.strokeStyle="grey",a.strokeRect(0,0,I,O)),a.rotate(g*(Math.PI/180)),v){const R=new Image;R.crossOrigin="anonymous",R.referrerPolicy="no-referrer",R.src=v,R.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:z,imageHeight:_}=e;a.drawImage(R,K,H,(e.imageWidth||(_?R.width*_/R.height:R.width))*s,(e.imageHeight||(z?R.height*z/R.width:R.height))*s),r.value=i.toDataURL()}}else if(b){B&&(a.strokeStyle="green",a.strokeRect(0,0,I,O)),a.font=`${E} ${y} ${F} ${k} ${A*s}px/${P*s}px ${C||n.value.self.fontFamily}`,a.fillStyle=x;let R=0;const{textAlign:z}=e;b.split(` +`).map(_=>{const oe=a.measureText(_).width;return R=Math.max(R,oe),{width:oe,line:_}}).forEach(({line:_,width:oe},G)=>{const j=z==="left"?0:z==="center"?(R-oe)/2:R-oe;a.fillText(_,K+j,H+P*s*(G+1))}),r.value=i.toDataURL()}else b||(a.clearRect(0,0,i.width,i.height),r.value=i.toDataURL())}else k4("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:u,fullscreen:d,zIndex:c}=e,h=o.value,f=u!==0&&d,p="max(142vh, 142vw)",g=m("div",{class:[`${h}-watermark`,u!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:u?`translateX(-50%) translateY(-50%) rotate(${u}deg)`:void 0,zIndex:f?void 0:c,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:u===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${r.value}), url(${r.value})`:`url(${r.value})`}});return e.fullscreen&&!u?g:m("div",{class:[`${h}-watermark-container`,u!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:f?c:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),g)}}}),_L=xe({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var n;return(n=t.default)===null||n===void 0?void 0:n.call(t)}}}),FL={message:EO,notification:LO,loadingBar:fO,dialog:LT,modal:$O};function RL({providersAndProps:e,configProviderProps:t}){let o=mx(r);const n={app:o};function r(){return m(qp,S(t),{default:()=>e.map(({type:l,Provider:s,props:u})=>m(s,S(u),{default:()=>m(_L,{onSetup:()=>n[l]=FL[l]()})}))})}let i;return wn&&(i=document.createElement("div"),document.body.appendChild(i),o.mount(i)),Object.assign({unmount:()=>{var l;if(o===null||i===null){xn("discrete","unmount call no need because discrete app has been unmounted");return}o.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,o=null}},n)}function lo(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:n,notificationProviderProps:r,loadingBarProviderProps:i,modalProviderProps:a}={}){const l=[];return e.forEach(u=>{switch(u){case"message":l.push({type:u,Provider:p2,props:o});break;case"notification":l.push({type:u,Provider:OO,props:r});break;case"dialog":l.push({type:u,Provider:OT,props:n});break;case"loadingBar":l.push({type:u,Provider:cO,props:i});break;case"modal":l.push({type:u,Provider:RO,props:a})}}),RL({providersAndProps:l,configProviderProps:t})}const $L="2.40.1";function PL({componentPrefix:e="N",components:t=[]}={}){const o=[];function n(i,a,l){i.component(e+a)||i.component(e+a,l)}function r(i){o.includes(i)||(o.push(i),t.forEach(a=>{const{name:l,alias:s}=a;n(i,l,a),s&&s.forEach(u=>{n(i,u,a)})}))}return{version:$L,componentPrefix:e,install:r}}const x2=()=>({}),ML={name:"Equation",common:Ve,self:x2},AL={name:"Equation",common:Ne,self:x2},BL={name:"FloatButtonGroup",common:Ne,self(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},oo={name:"dark",common:Ne,Alert:UA,Anchor:e9,AutoComplete:g9,Avatar:HC,AvatarGroup:k9,BackTop:_9,Badge:$9,Breadcrumb:T9,Button:Yo,ButtonGroup:MI,Calendar:q9,Card:JC,Carousel:FB,Cascader:PB,Checkbox:Ga,Code:a5,Collapse:HB,CollapseTransition:qB,ColorPicker:Z9,DataTable:hD,DatePicker:ST,Descriptions:_T,Dialog:J5,Divider:HT,Drawer:WT,Dropdown:Jp,DynamicInput:uI,DynamicTags:mI,Element:vI,Empty:Qi,Ellipsis:x5,Equation:AL,Flex:yI,Form:kI,GradientText:BI,Icon:LD,IconWrapper:Xz,Image:Jz,Input:Sn,InputNumber:II,LegacyTransfer:iO,Layout:OI,List:VI,LoadingBar:jI,Log:UI,Menu:QI,Mention:GI,Message:PI,Modal:MT,Notification:RI,PageHeader:ez,Pagination:g5,Popconfirm:nz,Popover:Ji,Popselect:c5,Progress:Dw,QrCode:jO,Radio:C5,Rate:rz,Result:uz,Row:Nz,Scrollbar:Zo,Select:p5,Skeleton:KO,Slider:dz,Space:hw,Spin:fz,Statistic:hz,Steps:gz,Switch:vz,Table:yz,Tabs:wz,Tag:EC,Thing:Ez,TimePicker:Z5,Timeline:kz,Tooltip:Wd,Transfer:Rz,Tree:e2,TreeSelect:Mz,Typography:Iz,Upload:Oz,Watermark:Lz,Split:iL,FloatButton:Wz,FloatButtonGroup:BL},Kt={name:"light",common:Ve,Alert:PC,Anchor:JA,AutoComplete:m9,Avatar:jp,AvatarGroup:E9,BackTop:R9,Badge:jC,Breadcrumb:UC,Button:Ho,ButtonGroup:AI,Calendar:G9,Card:Up,Carousel:_B,Cascader:$B,Checkbox:ea,Code:Gp,Collapse:s5,CollapseTransition:GB,ColorPicker:XC,DataTable:E5,DatePicker:wT,Descriptions:kT,Dialog:om,Divider:sw,Drawer:dw,Dropdown:Kd,DynamicInput:cI,DynamicTags:gI,Element:pw,Empty:tr,Equation:ML,Ellipsis:Qp,Flex:wI,Form:EI,GradientText:TI,Icon:O5,IconWrapper:Zz,Image:Qz,Input:Xo,InputNumber:Ew,Layout:HI,LegacyTransfer:lO,List:NI,LoadingBar:_w,Log:Fw,Menu:YI,Mention:ZI,Message:Sw,Modal:iw,Notification:Cw,PageHeader:Pw,Pagination:Yp,Popconfirm:oz,Popover:si,Popselect:jd,Progress:Bw,QrCode:UO,Radio:Ud,Rate:az,Row:Hz,Result:sz,Scrollbar:Lo,Skeleton:v2,Select:Xp,Slider:zw,Space:im,Spin:Lw,Statistic:Nw,Steps:mz,Switch:Ww,Table:Kw,Tabs:qw,Tag:Hp,Thing:Sz,TimePicker:q5,Timeline:Fz,Tooltip:zs,Transfer:Pz,Tree:Jw,TreeSelect:Bz,Typography:Tz,Upload:zz,Watermark:n2,Split:lL,FloatButton:Kz,FloatButtonGroup:jz},DL=xe({render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},m("g",{fill:"none"},m("path",{d:"M8.5 2a.5.5 0 0 0 0 1h3.793L3 12.293V8.5a.5.5 0 0 0-1 0v4.9a.6.6 0 0 0 .6.6h4.9a.5.5 0 0 0 0-1H3.707L13 3.707V7.5a.5.5 0 0 0 1 0V2.6a.6.6 0 0 0-.6-.6H8.5z",fill:"currentColor"})))}}),TL=xe({render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},m("path",{d:"M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18H4z",fill:"currentColor"}),m("path",{d:"M30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586L30 3.416z",fill:"currentColor"}))}}),IL=m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"1em",height:"1em",color:"currentColor"}},m("path",{d:"M13.5 1C13.7761 1 14 1.22386 14 1.5V2H14.5C14.7761 2 15 2.22386 15 2.5C15 2.77614 14.7761 3 14.5 3H14V3.5C14 3.77614 13.7761 4 13.5 4C13.2239 4 13 3.77614 13 3.5V3H12.5C12.2239 3 12 2.77614 12 2.5C12 2.22386 12.2239 2 12.5 2H13V1.5C13 1.22386 13.2239 1 13.5 1Z",fill:"currentColor"}),m("path",{d:"M3.5 3C3.77615 3 4 3.22386 4 3.5V4H4.5C4.77615 4 5 4.22386 5 4.5C5 4.77614 4.77615 5 4.5 5H4V5.5C4 5.77614 3.77615 6 3.5 6C3.22386 6 3 5.77614 3 5.5V5H2.5C2.22386 5 2 4.77614 2 4.5C2 4.22386 2.22386 4 2.5 4H3V3.5C3 3.22386 3.22386 3 3.5 3Z",fill:"currentColor"}),m("path",{d:"M12.5 12C12.7761 12 13 11.7761 13 11.5C13 11.2239 12.7761 11 12.5 11H12V10.5C12 10.2239 11.7761 10 11.5 10C11.2239 10 11 10.2239 11 10.5V11H10.5C10.2239 11 10 11.2239 10 11.5C10 11.7761 10.2239 12 10.5 12H11V12.5C11 12.7761 11.2239 13 11.5 13C11.7761 13 12 12.7761 12 12.5V12H12.5Z",fill:"currentColor"}),m("path",{d:"M8.72956 4.56346C9.4771 3.81592 10.6891 3.81592 11.4367 4.56347C12.1842 5.31102 12.1842 6.52303 11.4367 7.27058L4.26679 14.4404C3.51924 15.1879 2.30723 15.1879 1.55968 14.4404C0.812134 13.6928 0.812138 12.4808 1.55969 11.7333L8.72956 4.56346ZM8.25002 6.4572L2.26679 12.4404C1.90977 12.7974 1.90977 13.3763 2.26679 13.7333C2.62381 14.0903 3.20266 14.0903 3.55968 13.7333L9.54292 7.75009L8.25002 6.4572ZM10.25 7.04299L10.7295 6.56347C11.0866 6.20645 11.0866 5.6276 10.7296 5.27057C10.3725 4.91355 9.79368 4.91355 9.43666 5.27057L8.95713 5.7501L10.25 7.04299Z",fill:"currentColor"}));function zL(e){return e.includes("pacity")?!1:!!(e.includes("color")||e.includes("Color"))}const OL=xe({name:"ThemeEditor",inheritAttrs:!1,setup(){const e=M(!1),t=M(null),o=Oe(ln,null),n=M(JSON.parse(localStorage["naive-ui-theme-overrides"]||"{}")),r=T(()=>{var E,y,k,F;const C=(o==null?void 0:o.mergedThemeRef.value)||Kt,A=o==null?void 0:o.mergedThemeOverridesRef.value,P=Si({},C.common||Kt.common,A==null?void 0:A.common,n.value.common||{}),B={common:P};for(const W of Object.keys(Kt))W!=="common"&&(B[W]=((y=(E=C[W])===null||E===void 0?void 0:E.self)===null||y===void 0?void 0:y.call(E,P))||((F=(k=Kt[W]).self)===null||F===void 0?void 0:F.call(k,P)),A&&B[W]&&Si(B[W],A[W]));return B}),i=T(()=>{var E;return((E=o==null?void 0:o.mergedThemeRef.value)===null||E===void 0?void 0:E.common)||Kt.common}),a=M(!1),l=M(JSON.parse(localStorage["naive-ui-theme-overrides"]||"{}")),s=M(""),u=M(""),d=M(""),c=M("");function h(){n.value=ya(Pt(l.value))}function f(E,y,k){const{value:F}=l;E in F||(F[E]={});const C=F[E];k?C[y]=k:delete C[y]}function p(){l.value={},n.value={}}function g(){const{value:E}=t;E&&E.click()}function v(){e.value=!e.value}function b(){const{value:E}=t;if(!E)return;const y=E.files,k=y==null?void 0:y[0];k&&k.text().then(F=>{n.value=JSON.parse(F),l.value=JSON.parse(F)}).catch(F=>{alert("Imported File is Invalid"),console.error(F)}).finally(()=>{E.value=""})}function x(){const E=URL.createObjectURL(new Blob([JSON.stringify(n.value,void 0,2)]));ry(E,"naive-ui-theme-overrides.json"),URL.revokeObjectURL(E)}return at(n,E=>{localStorage["naive-ui-theme-overrides"]=JSON.stringify(E)}),{locale:Er("ThemeEditor").localeRef,themeCommonDefault:i,theme:r,showPanel:a,tempOverrides:l,overrides:n,compNamePattern:u,tempCompNamePattern:c,varNamePattern:s,tempVarNamePattern:d,fileInputRef:t,applyTempOverrides:h,setTempOverrides:f,handleClearAllClick:p,handleExportClick:x,handleImportClick:g,handleInputFileChange:b,toggleMaximized:v,isMaximized:e}},render(){return m(qp,{themeOverrides:this.overrides},{default:()=>{var e,t;return[m(Ka,{scrollable:!0,arrowPointToCenter:!0,trigger:"manual",show:this.showPanel,displayDirective:"show",placement:"top-end",style:{width:this.isMaximized?"calc(100vw - 80px)":"288px",height:"calc(100vh - 200px)",padding:0}},{trigger:()=>m(xI,{style:[{position:"fixed",zIndex:10,bottom:"40px",right:`calc(40px + ${oh.value})`,width:"44px",height:"44px",fontSize:"26px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"var(--popover-color)",color:"var(--text-color-2)",transition:"color .3s var(--cubic-bezier-ease-in-out), background-color .3s var(--cubic-bezier-ease-in-out), box-shadow .3s var(--cubic-bezier-ease-in-out)",boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",cursor:"pointer"},this.$attrs.style],onClick:()=>{this.showPanel=!this.showPanel}},{default:()=>IL}),default:()=>m(ft,null,m("input",{type:"file",ref:"fileInputRef",style:{display:"block",width:0,height:0,visibility:"hidden"},onChange:this.handleInputFileChange}),m(Iu,{vertical:!0},{default:()=>[m(Iu,{align:"center",justify:"space-between",style:{marginBottom:"8px",fontSize:"18px",fontWeight:500}},{default:()=>m(ft,null,m("span",null,this.locale.title),m(Et,{onClick:this.toggleMaximized,secondary:!0,circle:!0,size:"tiny"},{icon:()=>m(Wt,{component:this.isMaximized?TL:DL})}))}),this.locale.filterCompName,m(rn,{onChange:()=>{this.compNamePattern=this.tempCompNamePattern},onInput:o=>{this.tempCompNamePattern=o},value:this.tempCompNamePattern,placeholder:this.locale.filterCompName}),this.locale.filterVarName,m(rn,{onChange:o=>{this.varNamePattern=o},onInput:o=>{this.tempVarNamePattern=o},value:this.tempVarNamePattern,placeholder:this.locale.filterVarName}),m(Et,{size:"small",onClick:()=>{this.compNamePattern="",this.varNamePattern="",this.tempCompNamePattern="",this.tempVarNamePattern=""},block:!0},{default:()=>this.locale.clearSearch}),m(Et,{size:"small",onClick:this.handleClearAllClick,block:!0},{default:()=>this.locale.clearAllVars}),m(Iu,{itemStyle:{flex:1}},{default:()=>m(ft,null,m(Et,{block:!0,size:"small",onClick:this.handleImportClick},{default:()=>this.locale.import}),m(Et,{block:!0,size:"small",onClick:this.handleExportClick},{default:()=>this.locale.export}))})]}),m(jT,null),m(jB,null,{default:()=>{const{theme:o,compNamePattern:n,varNamePattern:r}=this,i=Object.keys(o),a=n.toLowerCase(),l=r.toLowerCase();let s=0;const u=i.filter(d=>d.toLowerCase().includes(a)).map(d=>{const c=d==="common"?this.themeCommonDefault:o[d];if(c===void 0)return null;const h=Object.keys(c).filter(f=>f!=="name"&&f.toLowerCase().includes(l));return h.length?(s+=1,m(KB,{title:d,name:d},{default:()=>m(i2,{xGap:32,yGap:16,responsive:"screen",cols:this.isMaximized?"1 xs:1 s:2 m:3 l:4":1},{default:()=>h.map(f=>m(xw,null,{default:()=>{var p,g,v,b;return m(ft,null,m("div",{key:`${f}Label`,style:{wordBreak:"break-word"}},f),zL(f)?m(CB,{key:f,modes:["rgb","hex"],value:((g=(p=this.tempOverrides)===null||p===void 0?void 0:p[d])===null||g===void 0?void 0:g[f])||c[f],onComplete:this.applyTempOverrides,onUpdateValue:x=>{this.setTempOverrides(d,f,x)}},{action:()=>{var x,E;return m(Et,{size:"small",disabled:c[f]===((E=(x=this.tempOverrides)===null||x===void 0?void 0:x[d])===null||E===void 0?void 0:E[f]),onClick:()=>{this.setTempOverrides(d,f,c[f]),this.applyTempOverrides()}},{default:()=>this.locale.restore})}}):m(rn,{key:f,onChange:this.applyTempOverrides,onUpdateValue:x=>{this.setTempOverrides(d,f,x)},value:((b=(v=this.tempOverrides)===null||v===void 0?void 0:v[d])===null||b===void 0?void 0:b[f])||"",placeholder:c[f]}))}}))})})):null});return s?u:m(Lp,null)}}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)]}})}});/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const va=typeof document<"u";function y2(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function LL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&y2(e.default)}const Ot=Object.assign;function lf(e,t){const o={};for(const n in t){const r=t[n];o[n]=Bn(r)?r.map(e):e(r)}return o}const Ol=()=>{},Bn=Array.isArray,C2=/#/g,HL=/&/g,NL=/\//g,VL=/=/g,jL=/\?/g,w2=/\+/g,WL=/%5B/g,UL=/%5D/g,S2=/%5E/g,KL=/%60/g,E2=/%7B/g,GL=/%7C/g,k2=/%7D/g,qL=/%20/g;function sm(e){return encodeURI(""+e).replace(GL,"|").replace(WL,"[").replace(UL,"]")}function ZL(e){return sm(e).replace(E2,"{").replace(k2,"}").replace(S2,"^")}function bh(e){return sm(e).replace(w2,"%2B").replace(qL,"+").replace(C2,"%23").replace(HL,"%26").replace(KL,"`").replace(E2,"{").replace(k2,"}").replace(S2,"^")}function XL(e){return bh(e).replace(VL,"%3D")}function YL(e){return sm(e).replace(C2,"%23").replace(jL,"%3F")}function QL(e){return e==null?"":YL(e).replace(NL,"%2F")}function ls(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const JL=/\/$/,eH=e=>e.replace(JL,"");function sf(e,t,o="/"){let n,r={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return l<s&&l>=0&&(s=-1),s>-1&&(n=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),r=e(i)),l>-1&&(n=n||t.slice(0,l),a=t.slice(l,t.length)),n=rH(n??t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:ls(a)}}function tH(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function Cv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function oH(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&Ta(t.matched[n],o.matched[r])&&_2(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Ta(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _2(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!nH(e[o],t[o]))return!1;return!0}function nH(e,t){return Bn(e)?wv(e,t):Bn(t)?wv(t,e):e===t}function wv(e,t){return Bn(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function rH(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=o.length-1,a,l;for(a=0;a<n.length;a++)if(l=n[a],l!==".")if(l==="..")i>1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(a).join("/")}const Dr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ss;(function(e){e.pop="pop",e.push="push"})(ss||(ss={}));var Ll;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ll||(Ll={}));function iH(e){if(!e)if(va){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),eH(e)}const aH=/^[^#]+#/;function lH(e,t){return e.replace(aH,"#")+t}function sH(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}const Xd=()=>({left:window.scrollX,top:window.scrollY});function uH(e){let t;if("el"in e){const o=e.el,n=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=sH(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Sv(e,t){return(history.state?history.state.position-t:-1)+e}const xh=new Map;function dH(e,t){xh.set(e,t)}function cH(e){const t=xh.get(e);return xh.delete(e),t}let fH=()=>location.protocol+"//"+location.host;function F2(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,s=r.slice(l);return s[0]!=="/"&&(s="/"+s),Cv(s,"")}return Cv(o,e)+n+r}function hH(e,t,o,n){let r=[],i=[],a=null;const l=({state:h})=>{const f=F2(e,location),p=o.value,g=t.value;let v=0;if(h){if(o.value=f,t.value=h,a&&a===p){a=null;return}v=g?h.position-g.position:0}else n(f);r.forEach(b=>{b(o.value,p,{delta:v,type:ss.pop,direction:v?v>0?Ll.forward:Ll.back:Ll.unknown})})};function s(){a=o.value}function u(h){r.push(h);const f=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return i.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Ot({},h.state,{scroll:Xd()}),"")}function c(){for(const h of i)h();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:s,listen:u,destroy:c}}function Ev(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?Xd():null}}function pH(e){const{history:t,location:o}=window,n={value:F2(e,o)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,u,d){const c=e.indexOf("#"),h=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+s:fH()+e+s;try{t[d?"replaceState":"pushState"](u,"",h),r.value=u}catch(f){console.error(f),o[d?"replace":"assign"](h)}}function a(s,u){const d=Ot({},t.state,Ev(r.value.back,s,r.value.forward,!0),u,{position:r.value.position});i(s,d,!0),n.value=s}function l(s,u){const d=Ot({},r.value,t.state,{forward:s,scroll:Xd()});i(d.current,d,!0);const c=Ot({},Ev(n.value,s,null),{position:d.position+1},u);i(s,c,!1),n.value=s}return{location:n,state:r,push:l,replace:a}}function mH(e){e=iH(e);const t=pH(e),o=hH(e,t.state,t.location,t.replace);function n(i,a=!0){a||o.pauseListeners(),history.go(i)}const r=Ot({location:"",base:e,go:n,createHref:lH.bind(null,e)},t,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function gH(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),mH(e)}function vH(e){return typeof e=="string"||e&&typeof e=="object"}function R2(e){return typeof e=="string"||typeof e=="symbol"}const $2=Symbol("");var kv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(kv||(kv={}));function Ia(e,t){return Ot(new Error,{type:e,[$2]:!0},t)}function sr(e,t){return e instanceof Error&&$2 in e&&(t==null||!!(e.type&t))}const _v="[^/]+?",bH={sensitive:!1,strict:!1,start:!0,end:!0},xH=/[.+*?^${}()[\]/\\]/g;function yH(e,t){const o=Ot({},bH,t),n=[];let r=o.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[90];o.strict&&!u.length&&(r+="/");for(let c=0;c<u.length;c++){const h=u[c];let f=40+(o.sensitive?.25:0);if(h.type===0)c||(r+="/"),r+=h.value.replace(xH,"\\$&"),f+=40;else if(h.type===1){const{value:p,repeatable:g,optional:v,regexp:b}=h;i.push({name:p,repeatable:g,optional:v});const x=b||_v;if(x!==_v){f+=10;try{new RegExp(`(${x})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${p}" (${x}): `+y.message)}}let E=g?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;c||(E=v&&u.length<2?`(?:/${E})`:"/"+E),v&&(E+="?"),r+=E,f+=20,v&&(f+=-8),g&&(f+=-20),x===".*"&&(f+=-50)}d.push(f)}n.push(d)}if(o.strict&&o.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}o.strict||(r+="/?"),o.end?r+="$":o.strict&&(r+="(?:/|$)");const a=new RegExp(r,o.sensitive?"":"i");function l(u){const d=u.match(a),c={};if(!d)return null;for(let h=1;h<d.length;h++){const f=d[h]||"",p=i[h-1];c[p.name]=f&&p.repeatable?f.split("/"):f}return c}function s(u){let d="",c=!1;for(const h of e){(!c||!d.endsWith("/"))&&(d+="/"),c=!1;for(const f of h)if(f.type===0)d+=f.value;else if(f.type===1){const{value:p,repeatable:g,optional:v}=f,b=p in u?u[p]:"";if(Bn(b)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const x=Bn(b)?b.join("/"):b;if(!x)if(v)h.length<2&&(d.endsWith("/")?d=d.slice(0,-1):c=!0);else throw new Error(`Missing required param "${p}"`);d+=x}}return d||"/"}return{re:a,score:n,keys:i,parse:l,stringify:s}}function CH(e,t){let o=0;for(;o<e.length&&o<t.length;){const n=t[o]-e[o];if(n)return n;o++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function P2(e,t){let o=0;const n=e.score,r=t.score;for(;o<n.length&&o<r.length;){const i=CH(n[o],r[o]);if(i)return i;o++}if(Math.abs(r.length-n.length)===1){if(Fv(n))return 1;if(Fv(r))return-1}return r.length-n.length}function Fv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const wH={type:0,value:""},SH=/[a-zA-Z0-9_]/;function EH(e){if(!e)return[[]];if(e==="/")return[[wH]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${o})/"${u}": ${f}`)}let o=0,n=o;const r=[];let i;function a(){i&&r.push(i),i=[]}let l=0,s,u="",d="";function c(){u&&(o===0?i.push({type:0,value:u}):o===1||o===2||o===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}for(;l<e.length;){if(s=e[l++],s==="\\"&&o!==2){n=o,o=4;continue}switch(o){case 0:s==="/"?(u&&c(),a()):s===":"?(c(),o=1):h();break;case 4:h(),o=n;break;case 1:s==="("?o=2:SH.test(s)?h():(c(),o=0,s!=="*"&&s!=="?"&&s!=="+"&&l--);break;case 2:s===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+s:o=3:d+=s;break;case 3:c(),o=0,s!=="*"&&s!=="?"&&s!=="+"&&l--,d="";break;default:t("Unknown state");break}}return o===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),a(),r}function kH(e,t,o){const n=yH(EH(e.path),o),r=Ot(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function _H(e,t){const o=[],n=new Map;t=Mv({strict:!1,end:!0,sensitive:!1},t);function r(c){return n.get(c)}function i(c,h,f){const p=!f,g=$v(c);g.aliasOf=f&&f.record;const v=Mv(t,c),b=[g];if("alias"in c){const y=typeof c.alias=="string"?[c.alias]:c.alias;for(const k of y)b.push($v(Ot({},g,{components:f?f.record.components:g.components,path:k,aliasOf:f?f.record:g})))}let x,E;for(const y of b){const{path:k}=y;if(h&&k[0]!=="/"){const F=h.record.path,C=F[F.length-1]==="/"?"":"/";y.path=h.record.path+(k&&C+k)}if(x=kH(y,h,v),f?f.alias.push(x):(E=E||x,E!==x&&E.alias.push(x),p&&c.name&&!Pv(x)&&a(c.name)),M2(x)&&s(x),g.children){const F=g.children;for(let C=0;C<F.length;C++)i(F[C],x,f&&f.children[C])}f=f||x}return E?()=>{a(E)}:Ol}function a(c){if(R2(c)){const h=n.get(c);h&&(n.delete(c),o.splice(o.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=o.indexOf(c);h>-1&&(o.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function l(){return o}function s(c){const h=$H(c,o);o.splice(h,0,c),c.record.name&&!Pv(c)&&n.set(c.record.name,c)}function u(c,h){let f,p={},g,v;if("name"in c&&c.name){if(f=n.get(c.name),!f)throw Ia(1,{location:c});v=f.record.name,p=Ot(Rv(h.params,f.keys.filter(E=>!E.optional).concat(f.parent?f.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),c.params&&Rv(c.params,f.keys.map(E=>E.name))),g=f.stringify(p)}else if(c.path!=null)g=c.path,f=o.find(E=>E.re.test(g)),f&&(p=f.parse(g),v=f.record.name);else{if(f=h.name?n.get(h.name):o.find(E=>E.re.test(h.path)),!f)throw Ia(1,{location:c,currentLocation:h});v=f.record.name,p=Ot({},h.params,c.params),g=f.stringify(p)}const b=[];let x=f;for(;x;)b.unshift(x.record),x=x.parent;return{name:v,path:g,params:p,matched:b,meta:RH(b)}}e.forEach(c=>i(c));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:d,getRoutes:l,getRecordMatcher:r}}function Rv(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function $v(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:FH(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function FH(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]=typeof o=="object"?o[n]:o;return t}function Pv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function RH(e){return e.reduce((t,o)=>Ot(t,o.meta),{})}function Mv(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function $H(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;P2(e,t[i])<0?n=i:o=i+1}const r=PH(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function PH(e){let t=e;for(;t=t.parent;)if(M2(t)&&P2(e,t)===0)return t}function M2({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function MH(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(w2," "),a=i.indexOf("="),l=ls(a<0?i:i.slice(0,a)),s=a<0?null:ls(i.slice(a+1));if(l in t){let u=t[l];Bn(u)||(u=t[l]=[u]),u.push(s)}else t[l]=s}return t}function Av(e){let t="";for(let o in e){const n=e[o];if(o=XL(o),n==null){n!==void 0&&(t+=(t.length?"&":"")+o);continue}(Bn(n)?n.map(i=>i&&bh(i)):[n&&bh(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function AH(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=Bn(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const BH=Symbol(""),Bv=Symbol(""),Yd=Symbol(""),um=Symbol(""),yh=Symbol("");function hl(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function Hr(e,t,o,n,r,i=a=>a()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((l,s)=>{const u=h=>{h===!1?s(Ia(4,{from:o,to:t})):h instanceof Error?s(h):vH(h)?s(Ia(2,{from:t,to:h})):(a&&n.enterCallbacks[r]===a&&typeof h=="function"&&a.push(h),l())},d=i(()=>e.call(n&&n.instances[r],t,o,u));let c=Promise.resolve(d);e.length<3&&(c=c.then(u)),c.catch(h=>s(h))})}function uf(e,t,o,n,r=i=>i()){const i=[];for(const a of e)for(const l in a.components){let s=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(y2(s)){const d=(s.__vccOpts||s)[t];d&&i.push(Hr(d,o,n,a,l,r))}else{let u=s();i.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${l}" at "${a.path}"`);const c=LL(d)?d.default:d;a.mods[l]=d,a.components[l]=c;const f=(c.__vccOpts||c)[t];return f&&Hr(f,o,n,a,l,r)()}))}}return i}function Dv(e){const t=Oe(Yd),o=Oe(um),n=T(()=>{const s=S(e.to);return t.resolve(s)}),r=T(()=>{const{matched:s}=n.value,{length:u}=s,d=s[u-1],c=o.matched;if(!d||!c.length)return-1;const h=c.findIndex(Ta.bind(null,d));if(h>-1)return h;const f=Tv(s[u-2]);return u>1&&Tv(d)===f&&c[c.length-1].path!==f?c.findIndex(Ta.bind(null,s[u-2])):h}),i=T(()=>r.value>-1&&IH(o.params,n.value.params)),a=T(()=>r.value>-1&&r.value===o.matched.length-1&&_2(o.params,n.value.params));function l(s={}){return TH(s)?t[S(e.replace)?"replace":"push"](S(e.to)).catch(Ol):Promise.resolve()}return{route:n,href:T(()=>n.value.href),isActive:i,isExactActive:a,navigate:l}}const DH=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Dv,setup(e,{slots:t}){const o=It(Dv(e)),{options:n}=Oe(Yd),r=T(()=>({[Iv(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Iv(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:m("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}}),Cl=DH;function TH(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function IH(e,t){for(const o in t){const n=t[o],r=e[o];if(typeof n=="string"){if(n!==r)return!1}else if(!Bn(r)||r.length!==n.length||n.some((i,a)=>i!==r[a]))return!1}return!0}function Tv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Iv=(e,t,o)=>e??t??o,zH=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Oe(yh),r=T(()=>e.route||n.value),i=Oe(Bv,0),a=T(()=>{let u=S(i);const{matched:d}=r.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),l=T(()=>r.value.matched[a.value]);et(Bv,T(()=>a.value+1)),et(BH,l),et(yh,r);const s=M();return at(()=>[s.value,l.value,e.name],([u,d,c],[h,f,p])=>{d&&(d.instances[c]=u,f&&f!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=f.leaveGuards),d.updateGuards.size||(d.updateGuards=f.updateGuards))),u&&d&&(!f||!Ta(d,f)||!h)&&(d.enterCallbacks[c]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=r.value,d=e.name,c=l.value,h=c&&c.components[d];if(!h)return zv(o.default,{Component:h,route:u});const f=c.props[d],p=f?f===!0?u.params:typeof f=="function"?f(u):f:null,v=m(h,Ot({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(c.instances[d]=null)},ref:s}));return zv(o.default,{Component:v,route:u})||v}}});function zv(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const A2=zH;function OH(e){const t=_H(e.routes,e),o=e.parseQuery||MH,n=e.stringifyQuery||Av,r=e.history,i=hl(),a=hl(),l=hl(),s=xd(Dr);let u=Dr;va&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=lf.bind(null,fe=>""+fe),c=lf.bind(null,QL),h=lf.bind(null,ls);function f(fe,Ce){let Y,q;return R2(fe)?(Y=t.getRecordMatcher(fe),q=Ce):q=fe,t.addRoute(q,Y)}function p(fe){const Ce=t.getRecordMatcher(fe);Ce&&t.removeRoute(Ce)}function g(){return t.getRoutes().map(fe=>fe.record)}function v(fe){return!!t.getRecordMatcher(fe)}function b(fe,Ce){if(Ce=Ot({},Ce||s.value),typeof fe=="string"){const te=sf(o,fe,Ce.path),ge=t.resolve({path:te.path},Ce),we=r.createHref(te.fullPath);return Ot(te,ge,{params:h(ge.params),hash:ls(te.hash),redirectedFrom:void 0,href:we})}let Y;if(fe.path!=null)Y=Ot({},fe,{path:sf(o,fe.path,Ce.path).path});else{const te=Ot({},fe.params);for(const ge in te)te[ge]==null&&delete te[ge];Y=Ot({},fe,{params:c(te)}),Ce.params=c(Ce.params)}const q=t.resolve(Y,Ce),Se=fe.hash||"";q.params=d(h(q.params));const je=tH(n,Ot({},fe,{hash:ZL(Se),path:q.path})),U=r.createHref(je);return Ot({fullPath:je,hash:Se,query:n===Av?AH(fe.query):fe.query||{}},q,{redirectedFrom:void 0,href:U})}function x(fe){return typeof fe=="string"?sf(o,fe,s.value.path):Ot({},fe)}function E(fe,Ce){if(u!==fe)return Ia(8,{from:Ce,to:fe})}function y(fe){return C(fe)}function k(fe){return y(Ot(x(fe),{replace:!0}))}function F(fe){const Ce=fe.matched[fe.matched.length-1];if(Ce&&Ce.redirect){const{redirect:Y}=Ce;let q=typeof Y=="function"?Y(fe):Y;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=x(q):{path:q},q.params={}),Ot({query:fe.query,hash:fe.hash,params:q.path!=null?{}:fe.params},q)}}function C(fe,Ce){const Y=u=b(fe),q=s.value,Se=fe.state,je=fe.force,U=fe.replace===!0,te=F(Y);if(te)return C(Ot(x(te),{state:typeof te=="object"?Ot({},Se,te.state):Se,force:je,replace:U}),Ce||Y);const ge=Y;ge.redirectedFrom=Ce;let we;return!je&&oH(n,q,Y)&&(we=Ia(16,{to:ge,from:q}),G(q,q,!0,!1)),(we?Promise.resolve(we):B(ge,q)).catch(le=>sr(le)?sr(le,2)?le:oe(le):z(le,ge,q)).then(le=>{if(le){if(sr(le,2))return C(Ot({replace:U},x(le.to),{state:typeof le.to=="object"?Ot({},Se,le.to.state):Se,force:je}),Ce||ge)}else le=N(ge,q,!0,U,Se);return W(ge,q,le),le})}function A(fe,Ce){const Y=E(fe,Ce);return Y?Promise.reject(Y):Promise.resolve()}function P(fe){const Ce=he.values().next().value;return Ce&&typeof Ce.runWithContext=="function"?Ce.runWithContext(fe):fe()}function B(fe,Ce){let Y;const[q,Se,je]=LH(fe,Ce);Y=uf(q.reverse(),"beforeRouteLeave",fe,Ce);for(const te of q)te.leaveGuards.forEach(ge=>{Y.push(Hr(ge,fe,Ce))});const U=A.bind(null,fe,Ce);return Y.push(U),pe(Y).then(()=>{Y=[];for(const te of i.list())Y.push(Hr(te,fe,Ce));return Y.push(U),pe(Y)}).then(()=>{Y=uf(Se,"beforeRouteUpdate",fe,Ce);for(const te of Se)te.updateGuards.forEach(ge=>{Y.push(Hr(ge,fe,Ce))});return Y.push(U),pe(Y)}).then(()=>{Y=[];for(const te of je)if(te.beforeEnter)if(Bn(te.beforeEnter))for(const ge of te.beforeEnter)Y.push(Hr(ge,fe,Ce));else Y.push(Hr(te.beforeEnter,fe,Ce));return Y.push(U),pe(Y)}).then(()=>(fe.matched.forEach(te=>te.enterCallbacks={}),Y=uf(je,"beforeRouteEnter",fe,Ce,P),Y.push(U),pe(Y))).then(()=>{Y=[];for(const te of a.list())Y.push(Hr(te,fe,Ce));return Y.push(U),pe(Y)}).catch(te=>sr(te,8)?te:Promise.reject(te))}function W(fe,Ce,Y){l.list().forEach(q=>P(()=>q(fe,Ce,Y)))}function N(fe,Ce,Y,q,Se){const je=E(fe,Ce);if(je)return je;const U=Ce===Dr,te=va?history.state:{};Y&&(q||U?r.replace(fe.fullPath,Ot({scroll:U&&te&&te.scroll},Se)):r.push(fe.fullPath,Se)),s.value=fe,G(fe,Ce,Y,U),oe()}let K;function H(){K||(K=r.listen((fe,Ce,Y)=>{if(!_e.listening)return;const q=b(fe),Se=F(q);if(Se){C(Ot(Se,{replace:!0}),q).catch(Ol);return}u=q;const je=s.value;va&&dH(Sv(je.fullPath,Y.delta),Xd()),B(q,je).catch(U=>sr(U,12)?U:sr(U,2)?(C(U.to,q).then(te=>{sr(te,20)&&!Y.delta&&Y.type===ss.pop&&r.go(-1,!1)}).catch(Ol),Promise.reject()):(Y.delta&&r.go(-Y.delta,!1),z(U,q,je))).then(U=>{U=U||N(q,je,!1),U&&(Y.delta&&!sr(U,8)?r.go(-Y.delta,!1):Y.type===ss.pop&&sr(U,20)&&r.go(-1,!1)),W(q,je,U)}).catch(Ol)}))}let I=hl(),O=hl(),R;function z(fe,Ce,Y){oe(fe);const q=O.list();return q.length?q.forEach(Se=>Se(fe,Ce,Y)):console.error(fe),Promise.reject(fe)}function _(){return R&&s.value!==Dr?Promise.resolve():new Promise((fe,Ce)=>{I.add([fe,Ce])})}function oe(fe){return R||(R=!fe,H(),I.list().forEach(([Ce,Y])=>fe?Y(fe):Ce()),I.reset()),fe}function G(fe,Ce,Y,q){const{scrollBehavior:Se}=e;if(!va||!Se)return Promise.resolve();const je=!Y&&cH(Sv(fe.fullPath,0))||(q||!Y)&&history.state&&history.state.scroll||null;return Rt().then(()=>Se(fe,Ce,je)).then(U=>U&&uH(U)).catch(U=>z(U,fe,Ce))}const j=fe=>r.go(fe);let ue;const he=new Set,_e={currentRoute:s,listening:!0,addRoute:f,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:b,options:e,push:y,replace:k,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:O.add,isReady:_,install(fe){const Ce=this;fe.component("RouterLink",Cl),fe.component("RouterView",A2),fe.config.globalProperties.$router=Ce,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>S(s)}),va&&!ue&&s.value===Dr&&(ue=!0,y(r.location).catch(Se=>{}));const Y={};for(const Se in Dr)Object.defineProperty(Y,Se,{get:()=>s.value[Se],enumerable:!0});fe.provide(Yd,Ce),fe.provide(um,m1(Y)),fe.provide(yh,s);const q=fe.unmount;he.add(fe),fe.unmount=function(){he.delete(fe),he.size<1&&(u=Dr,K&&K(),K=null,s.value=Dr,ue=!1,R=!1),q()}}};function pe(fe){return fe.reduce((Ce,Y)=>Ce.then(()=>P(Y)),Promise.resolve())}return _e}function LH(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const l=t.matched[a];l&&(e.matched.find(u=>Ta(u,l))?n.push(l):o.push(l));const s=e.matched[a];s&&(t.matched.find(u=>Ta(u,s))||r.push(s))}return[o,n,r]}function HH(){return Oe(Yd)}function B2(e){return Oe(um)}function $e(e,t){return e.then(function(o){return[null,o]}).catch(function(o){return[o,void 0]})}let NH=0;function VH(e){return`${e}_callback_${Date.now()}_${NH++}`}function Ee(e,t){return typeof t>"u"&&(t={}),new Promise((o,n)=>{const r=VH("exec");window[r]=(a,l,s)=>{o({errno:a,stdout:l,stderr:s}),i(r)};function i(a){delete window[a]}try{ksu.exec(e,JSON.stringify(t),r)}catch(a){n(a),i(r)}})}const ui=Ui("logs",()=>{const e=M("");function t(r,i){e.value+=`[error] ${r}${i!==void 0?":"+i:""} +`}function o(r,i){const a=`[info] ${r}${i!==void 0?":"+i:""} +`;e.value+=a,console.log(a)}function n(r,i){e.value+=`[success] ${r}${i!==void 0?":"+i:""} +`}return{content:e,error:t,info:o,success:n}}),Fe=(e,t="Uncaught")=>e.then(o=>(Ov("Resolved",o,t),o)).catch(o=>{throw Ov("Rejected",o,t),o}),Ov=(e,t,o)=>{const n=ui(),r=e==="Resolved"?"success":"error";typeof t=="string"?t.trim().startsWith("<")&&t.trim().endsWith(">")?n[r](`${e}:${o}`,"XML data detected."):n[r](`${e}:${o}`,t):typeof t=="object"?Array.isArray(t)?n[r](`${e}:${o}`,JSON.stringify(t,null,2)):t instanceof Error?n.error(`${e}::${o}`,t.message):n[r](`${e}:${o}`,JSON.stringify(t,null,2)):typeof t=="function"?n[r](`${e}:${o}`,`Function called ${t.name?t.name:"anonymous function"}`):n[r](`${e}:${o}`,t)},jH=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "SELECT * FROM gamebooster_table WHERE package_name!='none';" -json)"`;return Fe(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Ee(o);if(i&&r(l),a)try{const s=JSON.parse(a);n(s)}catch(s){r(s)}else r(i)}}),o)},cX=()=>{const e="am start -n com.miui.securitycenter/com.miui.gamebooster.ui.SelectGameLandActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},fX=(e,t,o)=>{const i=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "UPDATE gamebooster_table SET game_ratio='${t}', game_gravity='${o}' WHERE package_name='${e}'; SELECT changes();")"`;return Fe(new Promise(async(a,l)=>{{const{errno:s,stdout:u,stderr:d}=await Ee(i);s&&l(d),u&&a(u)}}),i)};function WH(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(0),i=M(0),a=M(0),l=M([{label:"关闭键盘",type:"error",key:0},{label:"连接键盘",type:"success",key:1},{label:"复位键盘",type:"warning",key:2}]),s=M({label:"关闭键盘",type:"error",key:0}),u=async()=>{n.create({title:"想启用该功能吗?",type:"info",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("该功能仅兼容")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("水龙(Amktiao)")])," ",$("的移植包,不兼容其他移植包作者,请确保当前使用的是水龙的移植包再启用该功能,确定要继续吗?")])]),positiveText:"确认启用",negativeText:"我再想想",onPositiveClick:()=>{e.showThirdPartySetting.amktiaoROMInterface=!0}})},d=async f=>{const[p,g]=await $e(new Promise((v,b)=>{f===1?n.create({title:"想切换为键盘链接模式吗?",type:"info",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("切换为")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("键盘连接状态")])," ",$("前,请确保设备先连接上键盘,否则会存在静电击穿 CPU 的风险,确定要继续吗?")])]),positiveText:"确定切换为键盘连接状态",negativeText:"我再想想",onPositiveClick:()=>{v("positiveClick")},onNegativeClick:()=>{b("negativeClick")}}):v("positiveClick")}));g&&iV(f).then(v=>{a.value=f,s.value=l.value[f]}).catch(v=>{n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"})})},c=async f=>{const[p,g]=await $e(YN(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await $e(QN());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=1)}else{const[v,b]=await $e(JN());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=0)}},h=async f=>{const[p,g]=await $e(tV(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await $e(oV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=1}else{const[v,b]=await $e(nV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=0}};return ut(async()=>{if(e.hasPenUpdateControl){const[,f]=await $e(XN());Number(f)&&(r.value=1)}if(e.hasPenEnableControl){const[,f]=await $e(eV());Number(f)&&(i.value=1)}if(e.hasKeyboardControl){const[,f]=await $e(rV());if(f){const p=Number(f);a.value=p,s.value=l.value[p]}}}),{currentPenUpdate:r,currentPenEnable:i,currentKeyboardMode:a,keyboardModeOptions:l,currentKeyboardModeSelect:s,changeKeyboardMode:d,changePenUpdateMode:c,changePenEnableMode:h,enableSetting:u}}const dm=e=>{const t=/([A-Za-z0-9+/=]{16,})/g,o=e.match(t);return o&&o.length>0?o[0]:null},ko=(e,t)=>t?`${t}(${e})`:e,UH=e=>{const t={};return e.split(` +`).forEach(o=>{if(o=o.trim(),o&&!o.startsWith("#")){const[n,r]=o.split("=");n&&r&&(t[n.trim()]=r.trim())}}),t},KH=e=>e?e==="*:0"?"VIEW_POLICY_DEFAULT":e==="*:1"?"VIEW_POLICY_STRETCH":e==="*:2"?"VIEW_POLICY_AUTO_COLUMNS":e==="*:6"?"VIEW_POLICY_FLOAT":"CUSTOM_VIEW_POLICY":"UNDEFINED_VIEW_POLICY",df=(e,t,o)=>{var i;const n=t?(i=t.supportModes)==null?void 0:i.split(","):null,r={};return e&&!e.fullRule&&(r.embeddedEnable=o==="embedded"),t&&(n!=null&&n.includes("full")&&(r.ratio_fullScreenEnable=o==="fullScreen",e&&e.hasOwnProperty("fullRule")&&(r.fullScreenEnable=!0)),r.hasOwnProperty("fullScreen")||(r.fixedOrientationEnable=o==="fixedOrientation")),r},D2=(e,t)=>{var i;const o=(i=t==null?void 0:t.supportModes)==null?void 0:i.split(","),n=t==null?void 0:t.defaultSettings;let r="disabled";return t&&(r="fixedOrientation"),t&&t.hasOwnProperty("disable")&&t.disable&&(r="disabled"),t&&t.hasOwnProperty("supportModes")&&(o!=null&&o.includes("full"))&&(!n||n==="full")&&(r="fullScreen"),e&&!e.hasOwnProperty("fullRule")&&(!n||n==="ae")&&(r="embedded"),r},bu=e=>{if(e==="disabled")return 0;if(e==="embedded")return 1;if(e==="fixedOrientation")return 2;if(e==="fullScreen")return 3;throw new Error("wrong error AppModeCode!")},T2=e=>BP(e,t=>typeof t=="string"?I0(t)==="true"?!0:I0(t)==="false"?!1:isNaN(Number(t))?t:Number(t):t),hn=(e,t,o,n=!1)=>{const r=new DOMParser;let i=r.parseFromString(e,"application/xml");if(n){let u=`<${t}> + + ${e} + +</${t}>`.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"");i=r.parseFromString(u,"application/xml")}const a=i.getElementsByTagName(o),l={};return Array.from(a).forEach(s=>{const u=s.getAttribute("name");if(u){const d={};Array.from(s.attributes).forEach(c=>{d[c.name]=c.value}),l[u]={name:u,...T2(d)}}}),l},ct=(e,t,o)=>{const n=r=>{let i="";if(!Object.keys(e))return i;for(const a in r)if(r.hasOwnProperty(a)){i+=` <${t}`;for(const[l,s]of Object.entries(r[a]))i+=` ${l}="${String(s)}"`;i+=` /> +`}return i};return o?`<?xml version="1.0" encoding="utf-8" standalone="yes" ?> +<${o}> +${n(e)}</${o}>`:n(e)},Hl=e=>LP(e,"name"),Lv=(e,t,o,n={},r={},i={})=>{const a=St(),l=[];return new Set([...Object.keys(e),...Object.keys(t),...Object.keys(n),...Object.keys(r)]).forEach(u=>{var C;const d=n[u]??e[u],c=r[u]??t[u],h=i[u]??o[u],f=(C=c==null?void 0:c.supportModes)==null?void 0:C.split(",");c==null||c.defaultSettings;let p="disabled",g=d?!d.fullRule:!1,v=(f==null?void 0:f.includes("fo"))||c&&!c.hasOwnProperty("disable")||!1,b=(f==null?void 0:f.includes("full"))||!1,x=n[u]||r[u]||i[u]?"custom":"module";if(a.MIOSVersion&&a.MIOSVersion>=2)h?(p="disabled",h.fixedOrientationEnable&&(p="fixedOrientation"),h.ratio_fullScreenEnable&&(p="fullScreen"),h.embeddedEnable&&(p="embedded")):p=D2(d,c);else if(h!=null&&h.hasOwnProperty("embeddedEnable"))h.embeddedEnable&&d?p=d.fullRule?"fullScreen":"embedded":c&&(!c.hasOwnProperty("disable")||!c.disable)&&(p="fixedOrientation");else if(c&&(!c.hasOwnProperty("disable")||!c.disable)&&(p="fixedOrientation"),d){const A=d.hasOwnProperty("defaultSettings")&&d.defaultSettings;(!d.hasOwnProperty("defaultSettings")||A)&&(p=d.fullRule?"fullScreen":"embedded")}const E=Hl(d),y=Hl(c),k=Hl(h),F={name:u,settingMode:p,isSupportEmbedded:g,isSupportFixedOrientation:v,isSupportFullScreen:b,ruleMode:x,embeddedRules:E||void 0,fixedOrientationRule:y||void 0,settingRule:k||void 0};l.push(F)}),l},Hv=(e,t={},o={})=>{const n=[];return new Set([...Object.keys(e),...Object.keys(t)]).forEach(i=>{const a=t[i]?t[i]:e[i],l=o[i];let s="module";t[i]&&(s="custom");const u=Hl(l),d=Hl(a),c={name:i,ruleMode:s,settingMode:KH(a.activityRule||""),autoUIRule:d||void 0,settingRule:u||void 0};n.push(c)}),n},St=Ui("device",()=>{const e=M(),t=M(),o=M(),n=It({socName:"",socModel:"",display0Panel:"",memoryInfo:""}),r=M(),i=M(!1),a=M(),l=M(!1),s=M(!1),u=M(!1),d=M(!1),c=M(window.innerWidth),h=M(!1),f=M(""),p=M([]),g=M({}),v=M(""),b=M(""),x=M("Magisk"),E=M(!1),y=It({installed:!1,mode:void 0}),k=It({KSU:!1,KSU_VER:"",KSU_VER_CODE:0,KSU_KERNEL_VER_CODE:0,APATCH:!1,APATCH_VER_CODE:0,APATCH_VER:0,MAGISK_VER:"",MAGISK_VER_CODE:""}),F=It({sohQcom:0,sohMTK:0,sohXMPower:0,chargeFullDesign:0,chargeFull:0,cycleCount:0}),C=It({OS2_PAD_EMBEDDED_APP_MANAGER:!0,Hyper_OS_DOT_BLACK_LIST_MANAGER:!0,GAME_BOOSTER_RADIO_MANAGER:!0,GAME_BOOSTER_CUSTOM_RATIO:!1}),A=M(),P=M(!1),B=M(!1),W=M(!1),N=M(!1),K=M("autoRhythm"),H=M(!0),I=It([]),O=It({GameMode:!1,MIUIContentExt:!1,lowWebViewVersion:!1,patchModeAlert:!1}),R=It({amktiaoROMInterface:!1}),z=T(()=>I.length>0);async function _(){return new Promise(async(G,j)=>{const[ue,he]=await $e(IN());ue?(I.push({type:"getAndroidApplicationPackageNameListErr",title:"获取用户已安装的应用包名",msg:ue}),j(ue)):(he&&(p.value=he==null?void 0:he.split(",")),G(p.value))})}async function oe(){const G=[$e(tN()),$e(dN()),$e(TN()),$e(WN()),$e(fN()),$e(CN()),$e(hN()),$e(pN()),$e(yN()),$e(mN()),$e(gN()),$e(vN()),$e(GN()),$e(qN()),$e(ZN()),$e(aV()),$e(YH()),$e(QH()),$e(xV()),$e(bV())],j=await Promise.all(G),[[,ue],[,he],[,_e],[,pe],[,fe],[,Ce],[,Y],[,q],[,Se],[,je],[,U],[,te],[,ge],[,we],[,le],[,re],[,ce],[,ee],[,ie],[,de]]=j;if(ue!=null&&ue.length||I.push({type:"moduleInfo",title:"模块信息",msg:"获取模块信息失败"}),ue!=null&&ue.length){const Ye=T2({...UH(ue),dir:"/data/adb/modules/MIUI_MagicWindow+"});Ye.versionCode&&(r.value?r.value<Ye.versionCode&&(i.value=!0,r.value=Ye.versionCode):r.value=Ye.versionCode),a.value=Ye}if(f.value=he||"",v.value=fe||"",b.value=Ce||"",_e!=null&&_e.length){const Ye=_e.split(",");k.KSU=Ye[0]==="true",k.KSU_VER=Ye[1],k.KSU_VER_CODE=parseInt(Ye[2],10),k.KSU_KERNEL_VER_CODE=parseInt(Ye[3],10),k.APATCH=Ye[4]==="true",k.APATCH_VER_CODE=parseInt(Ye[5],10),k.APATCH_VER=parseInt(Ye[6],10),k.MAGISK_VER=Ye[7],k.MAGISK_VER_CODE=Ye[8],k.KSU?x.value="KernelSU":k.APATCH?x.value="APatch":x.value="Magisk"}if(pe){y.installed=!0;const[Ye,Le]=await $e(UN());Le==="whitelist"&&(y.mode="whitelist"),Ye&&(y.mode="blacklist")}ge&&(l.value=!0),we&&(s.value=!0),le&&(u.value=!0),re&&(d.value=!0),F.sohQcom=Number(Y),F.sohMTK=Number(q),F.sohXMPower=Number(Se),F.chargeFullDesign=Number(je),F.chargeFull=Number(U),F.cycleCount=Number(te),await _();const[ae,X]=await $e(GH());ae?I.push({type:"deviceCharacteristics",title:"设备类型",msg:ae}):e.value=X;const[se,ve]=await $e(cN());se?I.push({type:"rotationSuggestions",title:"旋转建议提示按钮",msg:se}):W.value=Number(ve)===1;const[Te,Ke]=await $e(qH());Te?I.push({type:"androidTargetSdk",title:"Android SDK版本",msg:Te}):t.value=Ke,ee&&(n.socModel=ee),ce&&(n.socName=ce),ie&&(n.display0Panel=ie),de&&(n.memoryInfo=de);const[,Qe]=await $e(JH());Qe&&Qe==="true"&&(P.value=!0);const[,st]=await $e(eN());st&&Qe==="true"&&(B.value=!0);const[,Xe]=await $e(ZH());Xe&&(o.value=Xe);const[,pt]=await $e(XH());pt&&(A.value=pt),I.length||(H.value=!1)}return{deviceCharacteristics:e,isNeedShowErrorModal:z,androidTargetSdk:t,MIOSVersion:o,shamikoInfo:y,moduleInfo:a,systemVersion:v,systemPreVersion:b,deviceName:f,deviceInfo:n,batteryInfo:F,lastVersionCode:r,needReloadData:i,smartFocusIO:A,showRotationSuggestions:W,installedAndroidApplicationPackageNameList:p,getAndroidApplicationPackageNameList:_,miuiCompatEnable:P,miuiAppCompatEnable:B,installedAppNameList:g,skipConfirm:O,showThirdPartySetting:R,currentRootManager:x,rootManagerInfo:k,errorLogging:I,loading:H,isDarkMode:N,windowWidth:c,rhythmMode:K,initDefault:oe,ABTestInfo:C,hasPenUpdateControl:l,hasPenEnableControl:s,hasKeyboardControl:u,hasNeedUpdateModule:E,enabledMiuiDesktopMode:d,isEnableShowNotificationIconNum:h}},{persist:{pick:["skipConfirm","installedAndroidApplicationPackageNameList","isDarkMode","rhythmMode","ABTestInfo","installedAppNameList","lastVersionCode","showThirdPartySetting"]}}),GH=()=>{const e="getprop ro.build.characteristics";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},qH=()=>{const e="getprop ro.build.version.sdk";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(Number(r))}}),e)},ZH=()=>{const e="getprop ro.mi.os.version.code";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(Number(r))}}),e)},XH=()=>{const e="getprop persist.sys.stability.smartfocusio";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},YH=()=>{const e="getprop ro.vendor.qti.soc_name";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},QH=()=>{const e="getprop ro.vendor.qti.soc_model";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},JH=()=>{const e="getprop ro.config.miui_compat_enable";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},eN=()=>{const e="getprop ro.config.miui_appcompat_enable";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},tN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/module.prop";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},oN=()=>{const e=`grep -q '^is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_patch_mode=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},nN=()=>{const e=`sed -i '/^is_patch_mode=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_patch_mode successfully." || echo "Remove is_patch_mode failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},rN=()=>{const e="grep 'is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},iN=()=>{const e=`grep -q '^is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_disabled_os2_system_app_optimize=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},aN=()=>{const e=`sed -i '/^is_disabled_os2_system_app_optimize=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_disabled_os2_system_app_optimize successfully." || echo "Remove is_disabled_os2_system_app_optimize failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},lN=()=>{const e="grep 'is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},sN=()=>{const e=`sed -i '/^# 开启游戏显示布局/d; /^ro.config.miui_compat_enable=/d; /^ro.config.miui_appcompat_enable=/d' /data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Command executed successfully." || echo "Command failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},uN=()=>{const e=`grep -qxF "# 开启游戏显示布局" system.prop || echo -e " +# 开启游戏显示布局 +ro.config.miui_compat_enable=true +ro.config.miui_appcompat_enable=true" >> /data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Command executed successfully." || echo "Command failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dN=()=>{const e="settings get global device_name";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},cN=()=>{const e="settings get secure show_rotation_suggestions";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},fN=()=>{const e="settings get global miui_version_name";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},hN=()=>{const e="cat /sys/class/qcom-battery/soh";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},pN=()=>{const e="cat /sys/class/power_supply/bms/soh";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},mN=()=>{const e="cat /sys/class/power_supply/battery/charge_full_design";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},gN=()=>{const e="cat /sys/class/power_supply/battery/charge_full";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},vN=()=>{const e="cat /sys/class/power_supply/battery/cycle_count";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},bN=()=>{const e="cat /sys/class/qcom-battery/fg1_rsoc";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},xN=()=>{const e="cat /sys/class/power_supply/bms/capacity_raw";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},yN=()=>{const e="cat /sys/class/xm_power/fg_master/soh";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},CN=()=>{const e="settings get global miui_pre_version";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},wN=e=>{const t=`settings put secure show_rotation_suggestions ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i==="null"?"":i)}}),t)},SN=()=>{const e=`grep -q '^is_hide_gesture_line=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_hide_gesture_line=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},EN=()=>{const e=`sed -i '/^is_hide_gesture_line=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_hide_gesture_line successfully." || echo "Remove is_hide_gesture_line failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},kN=e=>{const t=`settings put global hide_gesture_line ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i==="null"?"":i)}}),t)},_N=()=>{const e="settings get global hide_gesture_line";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},FN=e=>{const t=`settings put secure key_invisible_mode_state ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i==="null"?"":i)}}),t)},RN=()=>{const e="settings get secure key_invisible_mode_state";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},$N=()=>{const e="am start -n com.miui.securitycenter/com.miui.permcenter.settings.InvisibleModeActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},PN=e=>{const t=`settings put system miui_cursor_style ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i==="null"?"":i)}}),t)},MN=()=>{const e="settings get system miui_cursor_style";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},AN=e=>{const t=`settings put secure mouse_gesture_naturalscroll ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i==="null"?"":i)}}),t)},BN=()=>{const e="settings get secure mouse_gesture_naturalscroll";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},I2=e=>{const t=`settings put system pointer_speed ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i==="null"?"":i)}}),t)},DN=()=>{const e="settings get system pointer_speed";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},TN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/temp/root_manager_info.txt";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},IN=()=>{const e=`pm list packages -a | awk -F':' '{print $2}' | tr ' +' ',' | sed 's/,$/ +/'`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},zN=()=>{const e='CLASSPATH="/data/adb/modules/MIUI_MagicWindow+/common/utils/classes.dex" app_process /system/bin com.xayah.dex.HiddenApiUtil getInstalledPackagesAsUser 0 "user" "pkgName|label"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},ON=()=>{const e='ls /system/product/priv-app/MIUIContentExtension/MIUIContentExtension.apk &>/dev/null && echo "exists" || echo "not exists"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},LN=()=>{const e="am start -n com.miui.contentextension/.setting.activity.MainSettingsActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},z2=()=>{const e='reboot && echo "Reboot command executed successfully." || echo "Reboot command failed."';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Reboot command executed successfully."?t(r):o(r)}}),e)},hX=(e,t)=>{const o=`echo "${e.replace(/"/g,'\\"')}" > /data/adb/MIUI_MagicWindow+/logs-${t}.txt`;return new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Ee(o);i?r(l):n("save command executed successfully.")}})},pX=()=>{const e='pkill -9 -f com.android.systemui && echo "kill command executed successfully." || echo "kill command failed."';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="kill command executed successfully."?t(r):o(r)}}),e)},HN=e=>{const t=`pgrep -f ${e} > /dev/null && kill -9 $(pgrep -f ${e}) || true && pgrep -f com.miui.securitycenter > /dev/null && kill -9 $(pgrep -f com.miui.securitycenter) || true && pgrep -f com.miui.securityadd > /dev/null && kill -9 $(pgrep -f com.miui.securityadd) || true && am start -n com.miui.securityadd/com.miui.gamebooster.GameBoosterRichWebActivity`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},NN=e=>{const t=`cmd activity ${e}service -n com.miui.powerkeeper/.ui.framerate.FrameRateService`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},VN=e=>{const t=St(),o=[];return e.split(` +`).forEach(r=>{const a=(t.androidTargetSdk&&t.androidTargetSdk>=35?/id=(\d+),\s*width=(\d+),\s*height=(\d+),\s*fps=([\d.]+),\s*vsync=([\d.]+),\s*synthetic=(true|false),\s*alternativeRefreshRates=\[([^\]]*)\],\s*supportedHdrTypes=\[([^\]]*)\]/:/id=(\d+),\s*width=(\d+),\s*height=(\d+),\s*fps=([\d.]+),\s*alternativeRefreshRates=\[([^\]]*)\],\s*supportedHdrTypes=\[([^\]]*)\]/).exec(r);if(a)if(t.androidTargetSdk&&t.androidTargetSdk>=35){const[l,s,u,d,c,h,f]=a,p={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),alternativeRefreshRates:h?h.split(",").map(g=>parseFloat(g.trim())):[],supportedHdrTypes:f?f.split(",").map(g=>parseInt(g.trim(),10)):[]};o.push(p)}else{const[l,s,u,d,c,h,f,p,g]=a,v={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),vsync:parseInt(h,10),synthetic:f==="true",alternativeRefreshRates:p?p.split(",").map(b=>parseFloat(b.trim())):[],supportedHdrTypes:g?g.split(",").map(b=>parseInt(b.trim(),10)):[]};o.push(v)}}),o},jN=()=>{const e="dumpsys display | grep 'DisplayModeRecord'";return Fe(new Promise(async(t,o)=>{try{const{errno:n,stdout:r,stderr:i}=await Ee(e);if(n){o(i);return}const a=VN(r);t(a)}catch(n){o(n)}}),e)},Qd=e=>Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(`sh /data/adb/modules/MIUI_MagicWindow+/common/source/update_rule/update_rule.sh${e?` ${e}`:""}`);n?o(i):t(r)}}),"updateMiuiEmbeddingWindowRule"),WN=()=>{const e='ls -d /data/adb/shamiko/ &>/dev/null && echo "exists" || echo "not exists"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},UN=()=>{const e='ls /data/adb/shamiko/whitelist &>/dev/null && echo "whitelist" || echo "blacklist"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},KN=e=>{const t=e==="whitelist"?"touch /data/adb/shamiko/whitelist":"rm -rf /data/adb/shamiko/whitelist";return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},GN=()=>{const e='ls /sys/touchpanel/pen_update &>/dev/null && echo "exists" || echo "not exists"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},qN=()=>{const e='ls /sys/touchpanel/pen_enable &>/dev/null && echo "exists" || echo "not exists"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},ZN=()=>{const e='ls /sys/touchpanel/keyboard &>/dev/null && echo "exists" || echo "not exists"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},XN=()=>{const e="cat /sys/touchpanel/pen_update";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},YN=e=>{const t=`echo ${e} > /sys/touchpanel/pen_update`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},QN=()=>{const e=`grep -q '^is_amktiao_pen_update=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_amktiao_pen_update=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},JN=()=>{const e=`sed -i '/^is_amktiao_pen_update=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_amktiao_pen_update successfully." || echo "Remove is_amktiao_pen_update failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},eV=()=>{const e="cat /sys/touchpanel/pen_enable";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},tV=e=>{const t=`echo ${e} > /sys/touchpanel/pen_enable`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},oV=()=>{const e=`grep -q '^is_amktiao_pen_enable=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_amktiao_pen_enable=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},nV=()=>{const e=`sed -i '/^is_amktiao_pen_enable=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_amktiao_pen_enable successfully." || echo "Remove is_amktiao_pen_enable failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},rV=()=>{const e="cat /sys/touchpanel/keyboard | head -n 1";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},iV=e=>{const t=`echo ${e} > /sys/touchpanel/keyboard`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},aV=()=>{const e="getprop ro.config.miui_desktop_mode_enabled";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},lV=()=>{const e=`grep -q '^is_add_miui_desktop_mode_enabled=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_add_miui_desktop_mode_enabled=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},sV=()=>{const e=`sed -i '/^is_add_miui_desktop_mode_enabled=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_add_miui_desktop_mode_enabled successfully." || echo "Remove is_add_miui_desktop_mode_enabled failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},uV=()=>{const e=`grep -q '^ro.config.miui_desktop_mode_enabled=' /data/adb/modules/MIUI_MagicWindow+/system.prop || (echo "ro.config.miui_desktop_mode_enabled=true" | tee -a /data/adb/modules/MIUI_MagicWindow+/system.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dV=()=>{const e=`sed -i '/^ro.config.miui_desktop_mode_enabled=/d' //data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Remove ro.config.miui_desktop_mode_enabled successfully." || echo "Remove ro.config.miui_desktop_mode_enabled failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},cV=()=>{const e="settings get system miui_dkt_mode";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},fV=e=>{const t=`settings put system miui_dkt_mode ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},hV=()=>{const e=`grep -q '^is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_enable_show_notification_icon_num=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},Nv=()=>{const e=`sed -i '/^is_enable_show_notification_icon_num=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_enable_show_notification_icon_num successfully." || echo "Remove is_enable_show_notification_icon_num failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},pV=()=>{const e="grep 'is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},mV=()=>{const e=`sed -i '/^show_notification_icon_num=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove show_notification_icon_num successfully." || echo "Remove show_notification_icon_num failed."`;return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},gV=e=>{const t=`grep -q '^show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "show_notification_icon_num=${e}" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},vV=e=>{const t=`settings put system status_bar_show_notification_icon ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},bV=()=>{const e="cat /proc/mv";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r==="null"?"":r)}}),e)},xV=()=>{const e="cat /sys/class/mi_display/disp-DSI-0/panel_info";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);if(n)o(i);else{r==="null"&&t("");const a=r.split("=");Array.isArray(a)&&a.length===2?t(a[1]):t("")}}}),e)},yV=e=>{const t=`service call SurfaceFlinger 1035 i32 ${e}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},Vv=e=>{const t=`service call SurfaceFlinger 1034 i32 ${e?1:0}`;return Fe(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Ee(t);r?n(a):o(i)}}),t)},O2=()=>{const e="am start com.miui.voiceassist/com.xiaomi.voiceassistant.CTAAlertActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},CV=()=>{const e="am startservice -n com.xiaomi.aiasst.vision/.control.translation.AiTranslateService --es from systemui.plugin.tile.aisubtitles --es floatingWindowType startAiSubtitlesWindow";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},wV=()=>{const e="am start -n com.miui.mediaeditor/com.miui.gallery.vlog.template2.VlogTemplateActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},SV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$ReduceBrightColorsSettingsActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},EV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$AccessibilityInversionSettingsActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},kV=()=>{const e='am start -n com.android.phone/com.android.phone.EmergencyDialer -e shortcut "volume_down_up_three_time"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},_V=()=>{const e="am start -a android.intent.action.VIEW -n com.android.settings/.RunningServices -f 0x10000000";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},FV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$NotificationStationActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},RV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$MemorySettingsActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},$V=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.ai.AiWallpaperListActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},PV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeClientActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},MV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeServerActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},AV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.AiWallpaperGuideActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},BV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.miui.voiceassist/com.xiaomi.voiceassistant.instruction.card.translation.TranslationChatActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},DV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.miui.voiceassist/com.xiaomi.voiceassistant.instruction.card.translation.TranslationSynchronizeActivity;end'";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},TV=()=>{const e="am start -n com.google.android.gms/com.google.android.gms.googlesettings.ui.GoogleSettingsActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},IV=()=>{const e="am start -n com.miui.securitycenter/com.miui.autotask.activity.TaskManagerActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},zV=()=>{const e="am broadcast -a android.telephony.action.SECRET_CODE -d android_secret_code://5776733 android";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},OV=()=>{const e="am start -n com.android.thememanager/com.android.thememanager.activity.ThemeTabActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},L2=()=>{const e="am start -n com.miui.securitycenter/com.miui.apppredict.activity.AppClassificationActivity";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},LV=()=>{const e='ls /data/data/com.miui.securitycenter/databases/gamebooster.db &>/dev/null && echo "exists" || echo "not exists"';return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},HV=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "DELETE FROM gamebooster_table WHERE package_name='com.miui.contentextension'; SELECT changes();")"`;return Fe(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Ee(o);i?r(l):(l&&r(l),n(a))}}),o)},H2=Ui("gameBooster",()=>{const e=M([]),t=T(()=>{const u=n.value.trim().toLowerCase();return e.value.reduce((c,h)=>{const f=h.package_name.trim().toLowerCase(),p=h.app_name?h.app_name.toLowerCase():"";return!f.includes(u)&&!p.includes(u)||c.push(h),c},[])}),o=T(()=>a.length>0);T(()=>e.value.length);const n=M(""),r=M(!0),i=M(!1),a=It([]),l=T(()=>new Set([...e.value]));async function s(){r.value=!0;const[u,d]=await $e(LV());if(u&&(r.value=!1,i.value=!1),d){i.value=!0;const[c,h]=await $e(jH());c&&(r.value=!1,e.value=[]),h&&(r.value=!1,e.value=h)}a.length||(r.value=!1)}return{gameBoosterList:e,filterGameBoosterList:t,allPackageName:l,hasGameBoosterDataBase:i,searchKeyWord:n,errorLogging:a,isNeedShowErrorModal:o,loading:r,initDefault:s}},{persist:{pick:[]}});function cm(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Os(){let e=[],t={addEventListener(o,n,r,i){return o.addEventListener(n,r,i),t.add(()=>o.removeEventListener(n,r,i))},requestAnimationFrame(...o){let n=requestAnimationFrame(...o);t.add(()=>cancelAnimationFrame(n))},nextFrame(...o){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...o)})},setTimeout(...o){let n=setTimeout(...o);t.add(()=>clearTimeout(n))},microTask(...o){let n={current:!0};return cm(()=>{n.current&&o[0]()}),t.add(()=>{n.current=!1})},style(o,n,r){let i=o.style.getPropertyValue(n);return Object.assign(o.style,{[n]:r}),this.add(()=>{Object.assign(o.style,{[n]:i})})},group(o){let n=Os();return o(n),this.add(()=>n.dispose())},add(o){return e.push(o),()=>{let n=e.indexOf(o);if(n>=0)for(let r of e.splice(n,1))r()}},dispose(){for(let o of e.splice(0))o()}};return t}var jv;let NV=Symbol("headlessui.useid"),VV=0;const fm=(jv=F3)!=null?jv:function(){return Oe(NV,()=>`${++VV}`)()};function fo(e){var t;if(e==null||e.value==null)return null;let o=(t=e.value.$el)!=null?t:e.value;return o instanceof Node?o:null}function Qn(e,t,...o){if(e in t){let r=t[e];return typeof r=="function"?r(...o):r}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Qn),n}var jV=Object.defineProperty,WV=(e,t,o)=>t in e?jV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Wv=(e,t,o)=>(WV(e,typeof t!="symbol"?t+"":t,o),o);let UV=class{constructor(){Wv(this,"current",this.detect()),Wv(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Ls=new UV;function qa(e){if(Ls.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=fo(e);if(t)return t.ownerDocument}return document}let Ch=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Vr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Vr||{}),N2=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(N2||{}),KV=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(KV||{});function GV(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ch)).sort((t,o)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var V2=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(V2||{});function qV(e,t=0){var o;return e===((o=qa(e))==null?void 0:o.body)?!1:Qn(t,{0(){return e.matches(Ch)},1(){let n=e;for(;n!==null;){if(n.matches(Ch))return!0;n=n.parentElement}return!1}})}var ZV=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ZV||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ti(e){e==null||e.focus({preventScroll:!0})}let XV=["textarea","input"].join(",");function YV(e){var t,o;return(o=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,XV))!=null?o:!1}function QV(e,t=o=>o){return e.slice().sort((o,n)=>{let r=t(o),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function zu(e,t,{sorted:o=!0,relativeTo:n=null,skipElements:r=[]}={}){var i;let a=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,l=Array.isArray(e)?o?QV(e):e:GV(e);r.length>0&&l.length>1&&(l=l.filter(p=>!r.includes(p))),n=n??a.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(n))-1;if(t&4)return Math.max(0,l.indexOf(n))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},c=0,h=l.length,f;do{if(c>=h||c+h<=0)return 0;let p=u+c;if(t&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}f=l[p],f==null||f.focus(d),c+=s}while(f!==a.activeElement);return t&6&&YV(f)&&f.select(),2}function j2(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function JV(){return/Android/gi.test(window.navigator.userAgent)}function ej(){return j2()||JV()}function xu(e,t,o){Ls.isServer||kt(n=>{document.addEventListener(e,t,o),n(()=>document.removeEventListener(e,t,o))})}function W2(e,t,o){Ls.isServer||kt(n=>{window.addEventListener(e,t,o),n(()=>window.removeEventListener(e,t,o))})}function tj(e,t,o=T(()=>!0)){function n(i,a){if(!o.value||i.defaultPrevented)return;let l=a(i);if(l===null||!l.getRootNode().contains(l))return;let s=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let u of s){if(u===null)continue;let d=u instanceof HTMLElement?u:fo(u);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!qV(l,V2.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=M(null);xu("pointerdown",i=>{var a,l;o.value&&(r.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),xu("mousedown",i=>{var a,l;o.value&&(r.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),xu("click",i=>{ej()||r.value&&(n(i,()=>r.value),r.value=null)},!0),xu("touchend",i=>n(i,()=>i.target instanceof HTMLElement?i.target:null),!0),W2("blur",i=>n(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var id=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(id||{}),Wr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Wr||{});function Fr({visible:e=!0,features:t=0,ourProps:o,theirProps:n,...r}){var i;let a=K2(n,o),l=Object.assign(r,{props:a});if(e||t&2&&a.static)return cf(l);if(t&1){let s=(i=a.unmount)==null||i?0:1;return Qn(s,{0(){return null},1(){return cf({...r,props:{...a,hidden:!0,style:{display:"none"}}})}})}return cf(l)}function cf({props:e,attrs:t,slots:o,slot:n,name:r}){var i,a;let{as:l,...s}=G2(e,["unmount","static"]),u=(i=o.default)==null?void 0:i.call(o,n),d={};if(n){let c=!1,h=[];for(let[f,p]of Object.entries(n))typeof p=="boolean"&&(c=!0),p===!0&&h.push(f);c&&(d["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(u=U2(u??[]),Object.keys(s).length>0||Object.keys(t).length>0){let[c,...h]=u??[];if(!oj(c)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(s).concat(Object.keys(t)).map(g=>g.trim()).filter((g,v,b)=>b.indexOf(g)===v).sort((g,v)=>g.localeCompare(v)).map(g=>` - ${g}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(` +`)].join(` +`));let f=K2((a=c.props)!=null?a:{},s,d),p=qo(c,f,!0);for(let g in f)g.startsWith("on")&&(p.props||(p.props={}),p.props[g]=f[g]);return p}return Array.isArray(u)&&u.length===1?u[0]:u}return m(l,Object.assign({},s,d),{default:()=>u})}function U2(e){return e.flatMap(t=>t.type===ft?U2(t.children):[t])}function K2(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},o={};for(let n of e)for(let r in n)r.startsWith("on")&&typeof n[r]=="function"?(o[r]!=null||(o[r]=[]),o[r].push(n[r])):t[r]=n[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(o).map(n=>[n,void 0])));for(let n in o)Object.assign(t,{[n](r,...i){let a=o[n];for(let l of a){if(r instanceof Event&&r.defaultPrevented)return;l(r,...i)}}});return t}function G2(e,t=[]){let o=Object.assign({},e);for(let n of t)n in o&&delete o[n];return o}function oj(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ad=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ad||{});let wh=xe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:o}){return()=>{var n;let{features:r,...i}=e,a={"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Fr({ourProps:a,theirProps:i,slot:{},attrs:o,slots:t,name:"Hidden"})}}}),q2=Symbol("Context");var Jo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Jo||{});function nj(){return hm()!==null}function hm(){return Oe(q2,null)}function rj(e){et(q2,e)}var Z2=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Z2||{});function ij(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let yi=[];ij(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&yi[0]!==t.target&&(yi.unshift(t.target),yi=yi.filter(o=>o!=null&&o.isConnected),yi.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function X2(e,t,o,n){Ls.isServer||kt(r=>{e=e??window,e.addEventListener(t,o,n),r(()=>e.removeEventListener(t,o,n))})}var wl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wl||{});function aj(){let e=M(0);return W2("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Y2(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let o of e.value){let n=fo(o);n instanceof HTMLElement&&t.add(n)}return t}var Q2=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Q2||{});let pl=Object.assign(xe({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:M(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:o,expose:n}){let r=M(null);n({el:r,$el:r});let i=T(()=>qa(r)),a=M(!1);ut(()=>a.value=!0),Go(()=>a.value=!1),sj({ownerDocument:i},T(()=>a.value&&!!(e.features&16)));let l=uj({ownerDocument:i,container:r,initialFocus:T(()=>e.initialFocus)},T(()=>a.value&&!!(e.features&2)));dj({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},T(()=>a.value&&!!(e.features&8)));let s=aj();function u(f){let p=fo(r);p&&(g=>g())(()=>{Qn(s.value,{[wl.Forwards]:()=>{zu(p,Vr.First,{skipElements:[f.relatedTarget]})},[wl.Backwards]:()=>{zu(p,Vr.Last,{skipElements:[f.relatedTarget]})}})})}let d=M(!1);function c(f){f.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function h(f){if(!a.value)return;let p=Y2(e.containers);fo(r)instanceof HTMLElement&&p.add(fo(r));let g=f.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(J2(p,g)||(d.value?zu(fo(r),Qn(s.value,{[wl.Forwards]:()=>Vr.Next,[wl.Backwards]:()=>Vr.Previous})|Vr.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&Ti(f.target)))}return()=>{let f={},p={ref:r,onKeydown:c,onFocusout:h},{features:g,initialFocus:v,containers:b,...x}=e;return m(ft,[!!(g&4)&&m(wh,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:ad.Focusable}),Fr({ourProps:p,theirProps:{...t,...x},slot:f,attrs:t,slots:o,name:"FocusTrap"}),!!(g&4)&&m(wh,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:ad.Focusable})])}}}),{features:Q2});function lj(e){let t=M(yi.slice());return at([e],([o],[n])=>{n===!0&&o===!1?cm(()=>{t.value.splice(0)}):n===!1&&o===!0&&(t.value=yi.slice())},{flush:"post"}),()=>{var o;return(o=t.value.find(n=>n!=null&&n.isConnected))!=null?o:null}}function sj({ownerDocument:e},t){let o=lj(t);ut(()=>{kt(()=>{var n,r;t.value||((n=e.value)==null?void 0:n.activeElement)===((r=e.value)==null?void 0:r.body)&&Ti(o())},{flush:"post"})}),Go(()=>{t.value&&Ti(o())})}function uj({ownerDocument:e,container:t,initialFocus:o},n){let r=M(null),i=M(!1);return ut(()=>i.value=!0),Go(()=>i.value=!1),ut(()=>{at([t,o,n],(a,l)=>{if(a.every((u,d)=>(l==null?void 0:l[d])===u)||!n.value)return;let s=fo(t);s&&cm(()=>{var u,d;if(!i.value)return;let c=fo(o),h=(u=e.value)==null?void 0:u.activeElement;if(c){if(c===h){r.value=h;return}}else if(s.contains(h)){r.value=h;return}c?Ti(c):zu(s,Vr.First|Vr.NoScroll)===N2.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),r.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),r}function dj({ownerDocument:e,container:t,containers:o,previousActiveElement:n},r){var i;X2((i=e.value)==null?void 0:i.defaultView,"focus",a=>{if(!r.value)return;let l=Y2(o);fo(t)instanceof HTMLElement&&l.add(fo(t));let s=n.value;if(!s)return;let u=a.target;u&&u instanceof HTMLElement?J2(l,u)?(n.value=u,Ti(u)):(a.preventDefault(),a.stopPropagation(),Ti(s)):Ti(n.value)},!0)}function J2(e,t){for(let o of e)if(o.contains(t))return!0;return!1}function cj(e){let t=xd(e.getSnapshot());return Go(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function fj(e,t){let o=e(),n=new Set;return{getSnapshot(){return o},subscribe(r){return n.add(r),()=>n.delete(r)},dispatch(r,...i){let a=t[r].call(o,...i);a&&(o=a,n.forEach(l=>l()))}}}function hj(){let e;return{before({doc:t}){var o;let n=t.documentElement;e=((o=t.defaultView)!=null?o:window).innerWidth-n.clientWidth},after({doc:t,d:o}){let n=t.documentElement,r=n.clientWidth-n.offsetWidth,i=e-r;o.style(n,"paddingRight",`${i}px`)}}}function pj(){return j2()?{before({doc:e,d:t,meta:o}){function n(r){return o.containers.flatMap(i=>i()).some(i=>i.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Os();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(r=window.scrollY)!=null?r:window.pageYOffset,a=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),d=e.querySelector(u);d&&!n(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(n(l.target)){let s=l.target;for(;s.parentElement&&n(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(n(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;i!==s&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function mj(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function gj(e){let t={};for(let o of e)Object.assign(t,o(t));return t}let Ei=fj(()=>new Map,{PUSH(e,t){var o;let n=(o=this.get(e))!=null?o:{doc:e,count:0,d:Os(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let o=this.get(e);return o&&(o.count--,o.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:o}){let n={doc:e,d:t,meta:gj(o)},r=[pj(),hj(),mj()];r.forEach(({before:i})=>i==null?void 0:i(n)),r.forEach(({after:i})=>i==null?void 0:i(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ei.subscribe(()=>{let e=Ei.getSnapshot(),t=new Map;for(let[o]of e)t.set(o,o.documentElement.style.overflow);for(let o of e.values()){let n=t.get(o.doc)==="hidden",r=o.count!==0;(r&&!n||!r&&n)&&Ei.dispatch(o.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",o),o.count===0&&Ei.dispatch("TEARDOWN",o)}});function vj(e,t,o){let n=cj(Ei),r=T(()=>{let i=e.value?n.value.get(e.value):void 0;return i?i.count>0:!1});return at([e,t],([i,a],[l],s)=>{if(!i||!a)return;Ei.dispatch("PUSH",i,o);let u=!1;s(()=>{u||(Ei.dispatch("POP",l??i,o),u=!0)})},{immediate:!0}),r}let ff=new Map,ml=new Map;function Uv(e,t=M(!0)){kt(o=>{var n;if(!t.value)return;let r=fo(e);if(!r)return;o(function(){var a;if(!r)return;let l=(a=ml.get(r))!=null?a:1;if(l===1?ml.delete(r):ml.set(r,l-1),l!==1)return;let s=ff.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,ff.delete(r))});let i=(n=ml.get(r))!=null?n:0;ml.set(r,i+1),i===0&&(ff.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function bj({defaultContainers:e=[],portals:t,mainTreeNodeRef:o}={}){let n=M(null),r=qa(n);function i(){var a,l,s;let u=[];for(let d of e)d!==null&&(d instanceof HTMLElement?u.push(d):"value"in d&&d.value instanceof HTMLElement&&u.push(d.value));if(t!=null&&t.value)for(let d of t.value)u.push(d);for(let d of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])d!==document.body&&d!==document.head&&d instanceof HTMLElement&&d.id!=="headlessui-portal-root"&&(d.contains(fo(n))||d.contains((s=(l=fo(n))==null?void 0:l.getRootNode())==null?void 0:s.host)||u.some(c=>d.contains(c))||u.push(d));return u}return{resolveContainers:i,contains(a){return i().some(l=>l.contains(a))},mainTreeNodeRef:n,MainTreeNode(){return o!=null?null:m(wh,{features:ad.Hidden,ref:n})}}}let eS=Symbol("ForcePortalRootContext");function xj(){return Oe(eS,!1)}let Kv=xe({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o}){return et(eS,e.force),()=>{let{force:n,...r}=e;return Fr({theirProps:r,ourProps:{},slot:{},slots:t,attrs:o,name:"ForcePortalRoot"})}}}),tS=Symbol("StackContext");var Sh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Sh||{});function yj(){return Oe(tS,()=>{})}function Cj({type:e,enabled:t,element:o,onUpdate:n}){let r=yj();function i(...a){n==null||n(...a),r(...a)}ut(()=>{at(t,(a,l)=>{a?i(0,e,o):l===!0&&i(1,e,o)},{immediate:!0,flush:"sync"})}),Go(()=>{t.value&&i(1,e,o)}),et(tS,i)}let wj=Symbol("DescriptionContext");function Sj({slot:e=M({}),name:t="Description",props:o={}}={}){let n=M([]);function r(i){return n.value.push(i),()=>{let a=n.value.indexOf(i);a!==-1&&n.value.splice(a,1)}}return et(wj,{register:r,slot:e,name:t,props:o}),T(()=>n.value.length>0?n.value.join(" "):void 0)}function Ej(e){let t=qa(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let o=t.getElementById("headlessui-portal-root");if(o)return o;let n=t.createElement("div");return n.setAttribute("id","headlessui-portal-root"),t.body.appendChild(n)}const Eh=new WeakMap;function kj(e){var t;return(t=Eh.get(e))!=null?t:0}function Gv(e,t){let o=t(kj(e));return o<=0?Eh.delete(e):Eh.set(e,o),o}let _j=xe({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:o}){let n=M(null),r=T(()=>qa(n)),i=xj(),a=Oe(oS,null),l=M(i===!0||a==null?Ej(n.value):a.resolveTarget());l.value&&Gv(l.value,h=>h+1);let s=M(!1);ut(()=>{s.value=!0}),kt(()=>{i||a!=null&&(l.value=a.resolveTarget())});let u=Oe(kh,null),d=!1,c=xr();return at(n,()=>{if(d||!u)return;let h=fo(n);h&&(Go(u.register(h),c),d=!0)}),Go(()=>{var h,f;let p=(h=r.value)==null?void 0:h.getElementById("headlessui-portal-root");!p||l.value!==p||Gv(l.value,g=>g-1)||l.value.children.length>0||(f=l.value.parentElement)==null||f.removeChild(l.value)}),()=>{if(!s.value||l.value===null)return null;let h={ref:n,"data-headlessui-portal":""};return m(bs,{to:l.value},Fr({ourProps:h,theirProps:e,slot:{},attrs:o,slots:t,name:"Portal"}))}}}),kh=Symbol("PortalParentContext");function Fj(){let e=Oe(kh,null),t=M([]);function o(i){return t.value.push(i),e&&e.register(i),()=>n(i)}function n(i){let a=t.value.indexOf(i);a!==-1&&t.value.splice(a,1),e&&e.unregister(i)}let r={register:o,unregister:n,portals:t};return[t,xe({name:"PortalWrapper",setup(i,{slots:a}){return et(kh,r),()=>{var l;return(l=a.default)==null?void 0:l.call(a)}}})]}let oS=Symbol("PortalGroupContext"),Rj=xe({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:o}){let n=It({resolveTarget(){return e.target}});return et(oS,n),()=>{let{target:r,...i}=e;return Fr({theirProps:i,ourProps:{},slot:{},attrs:t,slots:o,name:"PortalGroup"})}}});var $j=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($j||{});let _h=Symbol("DialogContext");function nS(e){let t=Oe(_h,null);if(t===null){let o=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,nS),o}return t}let yu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",Pj=xe({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:yu},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:o,slots:n,expose:r}){var i,a;let l=(i=e.id)!=null?i:`headlessui-dialog-${fm()}`,s=M(!1);ut(()=>{s.value=!0});let u=!1,d=T(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(u||(u=!0,console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),c=M(0),h=hm(),f=T(()=>e.open===yu&&h!==null?(h.value&Jo.Open)===Jo.Open:e.open),p=M(null),g=T(()=>qa(p));if(r({el:p,$el:p}),!(e.open!==yu||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof f.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${f.value===yu?void 0:e.open}`);let v=T(()=>s.value&&f.value?0:1),b=T(()=>v.value===0),x=T(()=>c.value>1),E=Oe(_h,null)!==null,[y,k]=Fj(),{resolveContainers:F,mainTreeNodeRef:C,MainTreeNode:A}=bj({portals:y,defaultContainers:[T(()=>{var G;return(G=R.panelRef.value)!=null?G:p.value})]}),P=T(()=>x.value?"parent":"leaf"),B=T(()=>h!==null?(h.value&Jo.Closing)===Jo.Closing:!1),W=T(()=>E||B.value?!1:b.value),N=T(()=>{var G,j,ue;return(ue=Array.from((j=(G=g.value)==null?void 0:G.querySelectorAll("body > *"))!=null?j:[]).find(he=>he.id==="headlessui-portal-root"?!1:he.contains(fo(C))&&he instanceof HTMLElement))!=null?ue:null});Uv(N,W);let K=T(()=>x.value?!0:b.value),H=T(()=>{var G,j,ue;return(ue=Array.from((j=(G=g.value)==null?void 0:G.querySelectorAll("[data-headlessui-portal]"))!=null?j:[]).find(he=>he.contains(fo(C))&&he instanceof HTMLElement))!=null?ue:null});Uv(H,K),Cj({type:"Dialog",enabled:T(()=>v.value===0),element:p,onUpdate:(G,j)=>{if(j==="Dialog")return Qn(G,{[Sh.Add]:()=>c.value+=1,[Sh.Remove]:()=>c.value-=1})}});let I=Sj({name:"DialogDescription",slot:T(()=>({open:f.value}))}),O=M(null),R={titleId:O,panelRef:M(null),dialogState:v,setTitleId(G){O.value!==G&&(O.value=G)},close(){t("close",!1)}};et(_h,R);let z=T(()=>!(!b.value||x.value));tj(F,(G,j)=>{G.preventDefault(),R.close(),Rt(()=>j==null?void 0:j.focus())},z);let _=T(()=>!(x.value||v.value!==0));X2((a=g.value)==null?void 0:a.defaultView,"keydown",G=>{_.value&&(G.defaultPrevented||G.key===Z2.Escape&&(G.preventDefault(),G.stopPropagation(),R.close()))});let oe=T(()=>!(B.value||v.value!==0||E));return vj(g,oe,G=>{var j;return{containers:[...(j=G.containers)!=null?j:[],F]}}),kt(G=>{if(v.value!==0)return;let j=fo(p);if(!j)return;let ue=new ResizeObserver(he=>{for(let _e of he){let pe=_e.target.getBoundingClientRect();pe.x===0&&pe.y===0&&pe.width===0&&pe.height===0&&R.close()}});ue.observe(j),G(()=>ue.disconnect())}),()=>{let{open:G,initialFocus:j,...ue}=e,he={...o,ref:p,id:l,role:d.value,"aria-modal":v.value===0?!0:void 0,"aria-labelledby":O.value,"aria-describedby":I.value},_e={open:v.value===0};return m(Kv,{force:!0},()=>[m(_j,()=>m(Rj,{target:p.value},()=>m(Kv,{force:!1},()=>m(pl,{initialFocus:j,containers:F,features:b.value?Qn(P.value,{parent:pl.features.RestoreFocus,leaf:pl.features.All&~pl.features.FocusLock}):pl.features.None},()=>m(k,{},()=>Fr({ourProps:he,theirProps:{...ue,...o},slot:_e,attrs:o,slots:n,visible:v.value===0,features:id.RenderStrategy|id.Static,name:"Dialog"})))))),m(A)])}}}),Mj=xe({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:o,expose:n}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-panel-${fm()}`,a=nS("DialogPanel");n({el:a.panelRef,$el:a.panelRef});function l(s){s.stopPropagation()}return()=>{let{...s}=e,u={id:i,ref:a.panelRef,onClick:l};return Fr({ourProps:u,theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:o,name:"DialogPanel"})}}});function Aj(e){let t={called:!1};return(...o)=>{if(!t.called)return t.called=!0,e(...o)}}function hf(e,...t){e&&t.length>0&&e.classList.add(...t)}function Cu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Fh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Fh||{});function Bj(e,t){let o=Os();if(!e)return o.dispose;let{transitionDuration:n,transitionDelay:r}=getComputedStyle(e),[i,a]=[n,r].map(l=>{let[s=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return s});return i!==0?o.setTimeout(()=>t("finished"),i+a):t("finished"),o.add(()=>t("cancelled")),o.dispose}function qv(e,t,o,n,r,i){let a=Os(),l=i!==void 0?Aj(i):()=>{};return Cu(e,...r),hf(e,...t,...o),a.nextFrame(()=>{Cu(e,...o),hf(e,...n),a.add(Bj(e,s=>(Cu(e,...n,...t),hf(e,...r),l(s))))}),a.add(()=>Cu(e,...t,...o,...n,...r)),a.add(()=>l("cancelled")),a.dispose}function vi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let pm=Symbol("TransitionContext");var Dj=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Dj||{});function Tj(){return Oe(pm,null)!==null}function Ij(){let e=Oe(pm,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function zj(){let e=Oe(mm,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let mm=Symbol("NestingContext");function Jd(e){return"children"in e?Jd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function rS(e){let t=M([]),o=M(!1);ut(()=>o.value=!0),Go(()=>o.value=!1);function n(i,a=Wr.Hidden){let l=t.value.findIndex(({id:s})=>s===i);l!==-1&&(Qn(a,{[Wr.Unmount](){t.value.splice(l,1)},[Wr.Hidden](){t.value[l].state="hidden"}}),!Jd(t)&&o.value&&(e==null||e()))}function r(i){let a=t.value.find(({id:l})=>l===i);return a?a.state!=="visible"&&(a.state="visible"):t.value.push({id:i,state:"visible"}),()=>n(i,Wr.Unmount)}return{children:t,register:r,unregister:n}}let iS=id.RenderStrategy,Ou=xe({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:n,expose:r}){let i=M(0);function a(){i.value|=Jo.Opening,t("beforeEnter")}function l(){i.value&=~Jo.Opening,t("afterEnter")}function s(){i.value|=Jo.Closing,t("beforeLeave")}function u(){i.value&=~Jo.Closing,t("afterLeave")}if(!Tj()&&nj())return()=>m(aS,{...e,onBeforeEnter:a,onAfterEnter:l,onBeforeLeave:s,onAfterLeave:u},n);let d=M(null),c=T(()=>e.unmount?Wr.Unmount:Wr.Hidden);r({el:d,$el:d});let{show:h,appear:f}=Ij(),{register:p,unregister:g}=zj(),v=M(h.value?"visible":"hidden"),b={value:!0},x=fm(),E={value:!1},y=rS(()=>{!E.value&&v.value!=="hidden"&&(v.value="hidden",g(x),u())});ut(()=>{let K=p(x);Go(K)}),kt(()=>{if(c.value===Wr.Hidden&&x){if(h.value&&v.value!=="visible"){v.value="visible";return}Qn(v.value,{hidden:()=>g(x),visible:()=>p(x)})}});let k=vi(e.enter),F=vi(e.enterFrom),C=vi(e.enterTo),A=vi(e.entered),P=vi(e.leave),B=vi(e.leaveFrom),W=vi(e.leaveTo);ut(()=>{kt(()=>{if(v.value==="visible"){let K=fo(d);if(K instanceof Comment&&K.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function N(K){let H=b.value&&!f.value,I=fo(d);!I||!(I instanceof HTMLElement)||H||(E.value=!0,h.value&&a(),h.value||s(),K(h.value?qv(I,k,F,C,A,O=>{E.value=!1,O===Fh.Finished&&l()}):qv(I,P,B,W,A,O=>{E.value=!1,O===Fh.Finished&&(Jd(y)||(v.value="hidden",g(x),u()))})))}return ut(()=>{at([h],(K,H,I)=>{N(I),b.value=!1},{immediate:!0})}),et(mm,y),rj(T(()=>Qn(v.value,{visible:Jo.Open,hidden:Jo.Closed})|i.value)),()=>{let{appear:K,show:H,enter:I,enterFrom:O,enterTo:R,entered:z,leave:_,leaveFrom:oe,leaveTo:G,...j}=e,ue={ref:d},he={...j,...f.value&&h.value&&Ls.isServer?{class:ye([o.class,j.class,...k,...F])}:{}};return Fr({theirProps:he,ourProps:ue,slot:{},slots:n,attrs:o,features:iS,visible:v.value==="visible",name:"TransitionChild"})}}}),Oj=Ou,aS=xe({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:n}){let r=hm(),i=T(()=>e.show===null&&r!==null?(r.value&Jo.Open)===Jo.Open:e.show);kt(()=>{if(![!0,!1].includes(i.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let a=M(i.value?"visible":"hidden"),l=rS(()=>{a.value="hidden"}),s=M(!0),u={show:i,appear:T(()=>e.appear||!s.value)};return ut(()=>{kt(()=>{s.value=!1,i.value?a.value="visible":Jd(l)||(a.value="hidden")})}),et(mm,l),et(pm,u),()=>{let d=G2(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),c={unmount:e.unmount};return Fr({ourProps:{...c,as:"template"},theirProps:{},slot:{},slots:{...n,default:()=>[m(Oj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...o,...c,...d},n.default)]},attrs:{},features:iS,visible:a.value==="visible",name:"Transition"})}}});function lS(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Lj(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function sS(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function Zv(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Xv(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"})])}function Hj(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"})])}function uS(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"})])}function Nj(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.712 4.33a9.027 9.027 0 0 1 1.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 0 0-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 0 1 0 9.424m-4.138-5.976a3.736 3.736 0 0 0-.88-1.388 3.737 3.737 0 0 0-1.388-.88m2.268 2.268a3.765 3.765 0 0 1 0 2.528m-2.268-4.796a3.765 3.765 0 0 0-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 0 1-1.388.88m2.268-2.268 4.138 3.448m0 0a9.027 9.027 0 0 1-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0-3.448-4.138m3.448 4.138a9.014 9.014 0 0 1-9.424 0m5.976-4.138a3.765 3.765 0 0 1-2.528 0m0 0a3.736 3.736 0 0 1-1.388-.88 3.737 3.737 0 0 1-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 0 1-1.652-1.306 9.027 9.027 0 0 1-1.306-1.652m0 0 4.138-3.448M4.33 16.712a9.014 9.014 0 0 1 0-9.424m4.138 5.976a3.765 3.765 0 0 1 0-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 0 1 1.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 0 0-1.652 1.306A9.025 9.025 0 0 0 4.33 7.288"})])}function dS(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function cS(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function Vj(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7.848 8.25 1.536.887M7.848 8.25a3 3 0 1 1-5.196-3 3 3 0 0 1 5.196 3Zm1.536.887a2.165 2.165 0 0 1 1.083 1.839c.005.351.054.695.14 1.024M9.384 9.137l2.077 1.199M7.848 15.75l1.536-.887m-1.536.887a3 3 0 1 1-5.196 3 3 3 0 0 1 5.196-3Zm1.536-.887a2.165 2.165 0 0 0 1.083-1.838c.005-.352.054-.695.14-1.025m-1.223 2.863 2.077-1.199m0-3.328a4.323 4.323 0 0 1 2.068-1.379l5.325-1.628a4.5 4.5 0 0 1 2.48-.044l.803.215-7.794 4.5m-2.882-1.664A4.33 4.33 0 0 0 10.607 12m3.736 0 7.794 4.5-.802.215a4.5 4.5 0 0 1-2.48-.043l-5.326-1.629a4.324 4.324 0 0 1-2.068-1.379M14.343 12l-2.882 1.664"})])}function ld(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"})])}function jj(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}function Wj(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})])}function fS(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"})])}function hS(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function Uj(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})])}function pS(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Kj(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function mS(){const e=T(()=>t.miuiCompatEnable&&t.miuiAppCompatEnable&&t.androidTargetSdk&&t.androidTargetSdk>31),t=St();return ut(()=>{}),{isSupportGameMode:e}}function gS(){const e=St(),t=ui(),o=M(!1),n=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:r,modal:i}=lo(["message","modal"],{configProviderProps:n}),a=async()=>{if(!o.value){await navigator.clipboard.writeText("https://caiyun.139.com/m/i?135CdxVMTx4nf"),i.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("未检测到系统存在传送门,请先通过模块修补传送门再进入~")]),w("p",null,[$("已经复制模块下载链接到剪切板了,请务必选择固化并修复传送门~")])]),negativeText:"确定"});return}i.create({title:"确认打开传送门吗?",type:"info",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("即将打开")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("传送门")])," ",$("管理界面,确定要继续吗?")])]),positiveText:"确定打开",negativeText:"我再想想",onPositiveClick:async()=>{LN().then(s=>{i.create({title:"已开启",type:"success",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("好耶OwO~")]),w("p",null,[$("已经成功开启")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("传送门")])," ",$("的管理界面了~")])]),positiveText:"确定"})},s=>{i.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>w("p",null,[$("出现异常,无法正常打开传送门QwQ,详细问题可浏览日志记录~")]),negativeText:"确定"})})}})},l=async()=>{console.log("进来了修复");const[s,u]=await $e(HV());if(s){t.error("修复传送门失败",s),console.log("进来了修复失败",s);return}console.log("进来了修复成功",u),t.success("修复传送门成功",u),i.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,已经成功修复传送门~实际生效还需要重启")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平板/手机管家")])," ",$("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){HN("com.miui.contentextension").then(async d=>{i.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(d=>{i.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}})};return ut(()=>{ON().then(s=>{s==="exists"&&(o.value=!0)})}),{open:a,fix:l,isInstallMIUIContentExtension:o}}const Gj={class:"fixed inset-0 flex"},qj={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},Zj={class:"flex flex-1 flex-col"},Xj={role:"list",class:"flex flex-1 flex-col gap-y-7"},Yj={role:"list",class:"-mx-2 space-y-1"},Qj={role:"list",class:"-mx-2 mt-2 space-y-1"},Jj={class:"truncate"},eW={class:"mt-auto"},tW={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col"},oW={class:"flex flex-1 flex-col"},nW={role:"list",class:"flex flex-1 flex-col gap-y-7"},rW={role:"list",class:"-mx-2 space-y-1"},iW={role:"list",class:"-mx-2 mt-2 space-y-1"},aW={class:"truncate"},lW={class:"mt-auto"},sW={class:"min-h-screen lg:pl-72"},uW={class:"sticky top-0 z-40 backdrop-blur-md lg:mx-auto"},dW={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},cW={class:"flex h-full w-full content-center items-center justify-center"},fW={class:"mx-auto max-w-7xl px-4 pb-1 sm:px-6 lg:px-8"},hW=xe({__name:"Sidebar",setup(e){const t=B2();mS();const o=St(),n=H2();gS();const r=T(()=>({theme:o.isDarkMode?oo:Kt}));lo(["message","modal"],{configProviderProps:r});const i=It([{name:"应用横屏布局",routeName:"home",href:"/",icon:Wj},{name:"应用布局优化",routeName:"autoui",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=33)},href:"/autoui",icon:jj},{name:"游戏显示布局",routeName:"game-booster",href:"/game-booster",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=32&&n.hasGameBoosterDataBase)},icon:Nj},{name:"百宝箱",routeName:"tools",href:"/tools",icon:Xv,isShow(){return!1}},{name:"窗口控制器",routeName:"dot-black-list",href:"/dot-black-list",isShow(){return!!(o.MIOSVersion&&o.MIOSVersion>=1)},icon:Uj},{name:"精选应用",routeName:"appStore",href:"/appStore",icon:Xv},{name:"日志记录",routeName:"logs",href:"/logs",icon:Hj},{name:"新春彩蛋",routeName:"eggs",href:"/eggs",icon:()=>w(lt("n-icon"),null,{default:()=>[w("img",{src:"/images/icons/happy_new_year.png"},null)]})}]),a=[{id:1,name:"模块首页",href:"/embedded-webview?url=https://hyper-magic-window.sothx.com",initial:"H",current:!1},{id:2,name:"打赏",href:"/embedded-webview?url=https://hyper-magic-window.sothx.com/donation.html",initial:"D",current:!1}],l=M(!1),s=()=>{o.windowWidth=window.innerWidth};return ut(()=>{window.addEventListener("resize",s)}),Xt(()=>{window.removeEventListener("resize",s)}),(u,d)=>(lt("n-badge"),Re(),Ie("div",null,[w(S(aS),{as:"template",show:l.value},{default:ne(()=>[w(S(Pj),{as:"div",class:"relative z-50 lg:hidden",onClose:d[1]||(d[1]=c=>l.value=!1)},{default:ne(()=>[w(S(Ou),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:ne(()=>d[3]||(d[3]=[L("div",{class:"fixed inset-0 bg-zinc-900/80"},null,-1)])),_:1}),L("div",Gj,[w(S(Ou),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:ne(()=>[w(S(Mj),{class:ye(["relative mr-16 flex w-full max-w-xs flex-1",S(o).isDarkMode?"bg-zinc-900":"bg-white"])},{default:ne(()=>[w(S(Ou),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:ne(()=>[L("div",qj,[L("button",{type:"button",class:"-m-2.5 p-2.5",onClick:d[0]||(d[0]=c=>l.value=!1)},[d[4]||(d[4]=L("span",{class:"sr-only"},"Close sidebar",-1)),w(S(Kj),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),L("div",{class:ye(["flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-4",S(o).isDarkMode?"bg-[#151515]":"bg-[#f6f6f6]"])},[d[6]||(d[6]=L("div",{class:"flex h-2 shrink-0 items-center"},null,-1)),L("nav",Zj,[L("ul",Xj,[L("li",null,[L("ul",Yj,[(Re(!0),Ie(ft,null,xa(i,c=>(Re(),Ie("li",{key:c.name},[Po((Re(),Lt(Js(c.href&&c.routeName?"RouterLink":"a"),bo({ref_for:!0},c.href&&c.routeName?{to:c.href}:{href:"javascript:void(0)"},{onClick:h=>c.click&&c.click(),class:[c.routeName===S(t).name?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"]}),{default:ne(()=>[(Re(),Lt(Js(c.icon),{class:ye([c.routeName===S(t).name?S(o).isDarkMode?"text-teal-400":"text-teal-600":S(o).isDarkMode?"text-gray-500 group-hover:text-teal-400":"text-gray-400 group-hover:text-teal-600","h-6 w-6 shrink-0"]),"aria-hidden":"true"},null,8,["class"])),$(" "+it(c.name),1)]),_:2},1040,["onClick","class"])),[[bn,c.isShow?c.isShow():!0]])]))),128))])]),L("li",null,[L("div",{class:ye(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),L("ul",Qj,[(Re(),Ie(ft,null,xa(a,c=>L("li",{key:c.name},[w(S(Cl),{to:c.href,class:ye([c.href===S(t).fullPath?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:ne(()=>[L("span",{class:ye([c.href===S(t).fullPath?S(o).isDarkMode?"border-teal-400 text-teal-400":"border-teal-600 text-teal-600":S(o).isDarkMode?"border-gray-700 text-gray-500 group-hover:border-teal-400 group-hover:text-teal-400":"border-gray-200 text-gray-400 group-hover:border-teal-600 group-hover:text-teal-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white text-[0.625rem] font-medium"])},it(c.initial),3),L("span",Jj,it(c.name),1)]),_:2},1032,["to","class"])])),64))])]),L("li",eW,[w(S(Cl),{to:"/settings",class:ye([S(t).name==="settings"?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group-mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:ne(()=>[w(S(Zv),{class:"h-6 w-6 shrink-0","aria-hidden":"true"}),d[5]||(d[5]=$(" 模块设置 "))]),_:1},8,["class"])])])])],2)]),_:1},8,["class"])]),_:1})])]),_:1})]),_:1},8,["show"]),L("div",tW,[L("div",{class:ye(["flex grow flex-col gap-y-5 overflow-y-auto border-r",S(o).isDarkMode?"border-gray-700 bg-[#151515]":"border-gray-200 bg-[#f6f6f6]","px-6 pb-4"])},[d[8]||(d[8]=L("div",{class:"flex h-10 shrink-0 items-center"},null,-1)),L("nav",oW,[L("ul",nW,[L("li",null,[L("ul",rW,[(Re(!0),Ie(ft,null,xa(i,c=>(Re(),Ie("li",{key:c.name},[!c.isShow||c.isShow()?(Re(),Lt(Js(c.href&&c.routeName?"RouterLink":"a"),bo({key:0,ref_for:!0},c.href&&c.routeName?{to:c.href}:{href:"javascript:void(0)"},{onClick:h=>c.click&&c.click(),class:[c.routeName===S(t).name?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"]}),{default:ne(()=>[(Re(),Lt(Js(c.icon),{class:ye([c.routeName===S(t).name?S(o).isDarkMode?"text-teal-400":"text-teal-600":S(o).isDarkMode?"text-gray-500 group-hover:text-teal-400":"text-gray-400 group-hover:text-teal-600","h-6 w-6 shrink-0"]),"aria-hidden":"true"},null,8,["class"])),$(" "+it(c.name),1)]),_:2},1040,["onClick","class"])):Je("",!0)]))),128))])]),L("li",null,[L("div",{class:ye(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),L("ul",iW,[(Re(),Ie(ft,null,xa(a,c=>L("li",{key:c.name},[w(S(Cl),{to:c.href,class:ye([c.href===S(t).fullPath?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:ne(()=>[L("span",{class:ye([c.href===S(t).fullPath?S(o).isDarkMode?"border-teal-400 text-teal-400":"border-teal-600 text-teal-600":S(o).isDarkMode?"border-gray-700 text-gray-500 group-hover:border-teal-400 group-hover:text-teal-400":"border-gray-200 text-gray-400 group-hover:border-teal-600 group-hover:text-teal-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white text-[0.625rem] font-medium"])},it(c.initial),3),L("span",aW,it(c.name),1)]),_:2},1032,["to","class"])])),64))])]),L("li",lW,[w(S(Cl),{to:"/settings",class:ye([S(t).name==="settings"?S(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":S(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:ne(()=>[w(S(Zv),{class:"h-6 w-6 shrink-0","aria-hidden":"true"}),d[7]||(d[7]=$(" 模块设置 "))]),_:1},8,["class"])])])])],2)]),L("div",sW,[L("div",uW,[L("div",{class:ye(["flex h-14 items-center gap-x-4 border-b",S(o).isDarkMode?"border-gray-700 bg-zinc-900/50":"border-gray-200 bg-white/50"])},[L("button",{type:"button",class:"m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:d[2]||(d[2]=c=>l.value=!0)},[d[9]||(d[9]=L("span",{class:"sr-only"},"Open sidebar",-1)),w(S(Lj),{class:"h-6 w-6","aria-hidden":"true"})]),L("div",dW,[L("div",cW,[L("h1",{class:ye([S(o).isDarkMode?"text-gray-300":"text-gray-600","text-lg font-bold","text-h1 animated-bg bg-clip-text text-center text-transparent"]),style:{"background-image":`linear-gradient(\r + 101.22deg,\r + rgb(255, 182, 133) -18.32%,\r + rgb(255, 111, 29) 7.01%,\r + rgb(252, 181, 232) 41.59%,\r + rgb(135, 148, 255) 70.98%,\r + rgb(60, 112, 255) 91.35%,\r + rgb(60, 112, 255) 110.17%\r + )`}},"完美横屏应用计划 For Web UI",2),Je("",!0)]),d[10]||(d[10]=L("div",{class:"flex items-center gap-x-4 lg:gap-x-6"},null,-1))])],2)]),L("main",null,[L("div",fW,[xs(u.$slots,"default")])])])]))}}),vS=xe({__name:"ErrorModal",props:{modelValue:{type:Boolean},errorLogging:{}},setup(e,{emit:t}){const o=e;M(!1);const n=t,r=M(o.modelValue);at(()=>o.modelValue,a=>{r.value=a});const i=()=>{n("update:modelValue",!1)};return(a,l)=>{const s=lt("n-alert"),u=lt("n-card"),d=lt("n-modal");return Re(),Lt(d,{onPositiveClick:i,onClose:i,style:{width:"600px"},title:"发生错误",type:"error","block-scroll":"true","positive-text":"确认",preset:"dialog","mask-closable":!0,show:o.modelValue},{default:ne(()=>[w(u,{bordered:!1},{default:ne(()=>[(Re(!0),Ie(ft,null,xa(o.errorLogging,c=>(Re(),Lt(s,{title:`[发生错误] ${c.type}`,class:"mb-5",type:"error"},{default:ne(()=>[L("p",null,"错误描述:无法获取"+it(c.title),1),L("p",null,"错误详情:"+it(c.msg),1)]),_:2},1032,["title"]))),256))]),_:1})]),_:1},8,["show"])}}}),pW={class:"splash-screen"},mW=xe({__name:"SplashScreen",setup(e){return St(),(t,o)=>(Re(),Ie("div",pW,o[0]||(o[0]=[L("div",{class:"flex h-full flex-col items-center justify-center"},[L("div",{class:"mt-[61px] bg-gradient-to-t from-[#242424] to-[#262626] bg-clip-text text-center text-[40px] font-[600] leading-[53px] text-black/50 mix-blend-color-burn tablet:mt-[75px] tablet:text-[64px] tablet:leading-[85px]"},"完美横屏应用计划"),L("div",{class:"mt-12 bg-gradient-to-t from-[#242424] to-[#262626] bg-clip-text text-center text-[20px] font-[600] leading-[27px] text-black/50 mix-blend-color-burn tablet:mt-[23px] tablet:text-[24px] tablet:font-[600] tablet:leading-[32px]"},"正在加载中,请稍等……")],-1)])))}}),bS=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},gW=bS(mW,[["__scopeId","data-v-1cac3c56"]]),vW="modulepreload",bW=function(e){return"/"+e},Yv={},_n=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(o.map(s=>{if(s=bW(s),s in Yv)return;Yv[s]=!0;const u=s.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":vW,u||(c.as="script"),c.crossOrigin="",c.href=s,l&&c.setAttribute("nonce",l),document.head.appendChild(c),u)return new Promise((h,f)=>{c.addEventListener("load",h),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return r.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},xW=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_rules_list.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},yW=()=>{const e="cat /product/etc/embedded_rules_list.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},CW=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/fixed_orientation_list.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},wW=()=>{const e="cat /product/etc/fixed_orientation_list.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},SW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},EW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},kW=()=>{const e="cat /data/system/users/0/embedded_setting_config.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},_W=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_setting_config.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},FW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},xS=e=>Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(`am compat reset-all ${e}`);n?o(i):t(r)}}),"resetApplicationCompats"),ba=e=>Fe(new Promise(async(t,o)=>{{const n=[],r=[],i=St();if(e.isPatchMode){const{errno:p,stdout:g,stderr:v}=await Ee(`echo '${e.patchEmbeddedRulesListXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_rules_list.xml`);p?n.push({type:"patchEmbeddedRulesListXML",name:"[定制模式]平行窗口配置文件",message:v}):r.push({type:"patchEmbeddedRulesListXML",name:"[定制模式]平行窗口配置文件",message:"更新成功"});const{errno:b,stdout:x,stderr:E}=await Ee(`echo '${e.patchFixedOrientationListXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/fixed_orientation_list.xml`);if(b?n.push({type:"patchFixedOrientationListXML",name:"[定制模式]信箱模式配置文件",message:E}):r.push({type:"patchixedOrientationListXML",name:"[定制模式]信箱模式配置文件",message:"更新成功"}),i.MIOSVersion&&i.MIOSVersion>=2){const{errno:y,stdout:k,stderr:F}=await Ee(`echo '${e.patchEmbeddedSettingConfigXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_setting_config.xml`);y?n.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:F}):r.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:"更新成功"})}}const{errno:a,stdout:l,stderr:s}=await Ee(`echo '${e.customEmbeddedRulesListXML}' > /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml`);a?n.push({type:"customEmbeddedRulesListXML",name:"[自定义规则]平行窗口配置文件",message:s}):r.push({type:"customEmbeddedRulesListXML",name:"[自定义规则]平行窗口配置文件",message:"更新成功"});const{errno:u,stdout:d,stderr:c}=await Ee(`echo '${e.customFixedOrientationListXML}' > /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml`);if(u?n.push({type:"customFixedOrientationListXML",name:"[自定义规则]信箱模式配置文件",message:c}):r.push({type:"customFixedOrientationListXML",name:"[自定义规则]信箱模式配置文件",message:"更新成功"}),i.MIOSVersion&&i.MIOSVersion>=2){const{errno:p,stdout:g,stderr:v}=await Ee(`echo '${e.settingConfigXML}' > /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml`);p?n.push({type:"settingConfigXML",name:"[自定义规则]应用横屏布局配置文件",message:v}):r.push({type:"settingConfigXML",name:"[自定义规则]应用横屏布局配置文件",message:"更新成功"})}else{const{errno:p,stdout:g,stderr:v}=await Ee(`echo '${e.settingConfigXML}' > /data/system/users/0/embedded_setting_config.xml`);p?n.push({type:"settingConfigXML",name:"[系统]应用横屏布局配置文件",message:v}):r.push({type:"settingConfigXML",name:"[系统]应用横屏布局配置文件",message:"更新成功"})}if(e.setAppMode){const[p,g]=await $e(xS(e.setAppMode.name));p&&n.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:p}),g&&r.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:g})}const[h,f]=await $e(Qd("miui_embedding_window"));if(h&&n.push({type:"updateMiuiEmbeddingWindowRule",name:"[模块]重新载入模块应用横屏布局规则",message:h}),f&&r.push({type:"updateMiuiEmbeddingWindowRule",name:"[模块]重新载入模块应用横屏布局配置文件",message:f.split(` +`)}),e.switchAction){const{errno:p,stdout:g,stderr:v}=await Ee(`cmd miui_embedding_window ${e.switchAction.action} ${e.switchAction.name}`);p?n.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.switchAction.action}的设置`,message:v}):r.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.switchAction.action}的设置`,message:g})}if(e.setAppMode){const{errno:p,stdout:g,stderr:v}=await Ee(`cmd miui_embedding_window set-appMode ${e.setAppMode.name} ${e.setAppMode.action}`);p?n.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.setAppMode.name}的设置为${e.setAppMode.action}`,message:v}):r.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.setAppMode.name}的设置${e.setAppMode.action}`,message:g})}n.length?o({type:"error",message:"发生错误,提交失败",errorLogging:n,successLogging:r}):t({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}})),RW=["com.lbe.security.miui","com.miui.player","com.miui.fm","com.miui.hybrid","com.miui.securitycenter","com.miui.compass","com.miui.contentextension","com.miui.misound","com.miui.voiceassist","com.lbe.security.miui","com.miui.securityadd"],$W=["com.miui.touchassistant","com.miui.whitenoise","com.tencent.mobileqq","com.tencent.mm","com.alibaba.android.rimet","com.coolapk.market","com.sina.weibo","com.baidu.tieba","com.xuetangx.ykt","io.github.vvb2060.magisk","com.topjohnwu.magisk","io.github.huskydg.magisk","io.github.a13e300.ksuwebui","me.weishu.kernelsu","me.bmax.apatch","com.dna.tools","com.coolapk.market","com.sevtinge.hyperceiler","com.github.kr328.clash.foss","com.github.kr328.clash","com.github.metacubex.clash.meta","com.rocket.e5b382b19324e0a","dev.miuiicons.pedroz","com.tencent.androidqqmail","com.jingdong.app.mall","com.tencent.wework","com.taobao.trip","com.fenbi.android.leo","com.duokan.reader","com.xiaomi.shop","com.xiaomi.smarthome","com.youdao.dict","com.netease.uu","com.lemon.lv","com.valvesoftware.android.steam.community","com.douban.book.reader","com.amazon.kindlefc","com.alicloud.databox","com.huawei.appmarket","com.huawei.smarthome","mark.via","com.fenbi.android.servant","com.fenbi.android.zhaojiao","com.eusoft.eudic","com.eusoft.ting.en","com.cnki.android.cnkimobile","com.zui.calculator","com.jd.app.reader","com.huajiao","com.youku.phone","com.tencent.qqlive","com.xiaomi.gamecenter","com.kugou.android","com.ss.android.ugc.aweme","com.ss.android.ugc.live","com.ss.android.ugc.aweme.lite","com.smile.gifmaker","com.kuaishou.nebula","com.bdatu.geography","com.ubestkid.beilehu.android","youqu.android.todesk","com.tencent.docs","com.github.metacubex.clash.meta","com.tencent.pao","com.estrongs.android.pop","com.adobe.reader","com.microsoft.skydrive","cn.com.langeasy.LangEasyLexis","cn.ticktick.task","com.google.earth","com.omarea.vtools","com.plan.kot32.tomatotime","com.farplace.qingzhuo","com.xiachufang","com.happyteam.dubbingshow","czh.mindnode","com.chrissen.card","top.onepix.timeblock","www.imxiaoyu.com.musiceditor","com.mmbox.xbrowser","com.lemon.lv","com.flyersoft.moonreader","com.flyersoft.moonreaderp","com.yikaobang.yixue","com.kwai.m2u","com.qiyi.video.pad","com.smile.gifmaker","com.baidu.baidutranslate","org.zwanoo.android.speedtest","com.xiwang.zaixian","com.yozo.office","com.taobao.taobao","cn.canva.editor","com.singularity.tiangong","com.mubu.app","chuxin.shimo.shimowendang","com.roblox.client","com.netease.cloudmusic","com.netease.mc.mi","com.netease.x19","com.netease.mc.huawei","com.netease.mc.vivo","com.netease.mc.oppo","com.netease.mc.honor","com.netease.mc.bilibili","com.netease.mc.nearme.gamecenter","com.netease.mc.aligames","com.netease.mc.lenovo","com.netease.mc.meta","com.netease.mc.baidu","com.netease.mc","com.netease.mctest","com.hicloud.browser","com.hihonor.health","com.ss.android.ugc.livelite","com.oray.sunlogin","com.microsoft.todos","com.jdjdc.jdfastjdc","com.google.android.apps.translate","com.adsk.sketchbook","com.pick.sketchbook","com.ihuman.recite","com.ctfile","com.quark.scanking","com.hunantv.imgo.activity","com.sohu.sohuvideo","com.wuba.town.client","com.yhqx.player","com.lixiangdong.mediaplayer","cn.ylkj.zmjh","com.yixinli.muse","com.antutu.ABenchMark","cn.honor.qinxuan","com.fenbi.android.zenglish.hd","com.huawei.videoeditor","com.huawei.genexcloud.speedtest","com.huawei.smarthome","com.huawei.ch18","com.hihonor.dz.reader","com.hihonor.health","com.hihonor.vmall","com.hihonor.magichome","com.hihonor.heartstudy","cn.ieway.evcapture","cn.ieway.evplayer2","com.aliyun.wuying.enterprise","com.jingdong.app.reader.campus","com.UCMobile","com.quark.browser","com.smzdm.client.android","com.baidu.netdisk","com.mfcloudcalculate.networkdisk","com.chinamobile.mcloud","info.muge.appshare","com.x7890.shortcutcreator","org.kde.kdeconnect_tp","com.tencent.weread","com.larus.nova","com.moonshot.kimichat","com.baidu.newapp","com.tencent.hunyuan.app.chat","jp.pokemon.pokemonsleep","com.heytap.headset","com.twitter.android","cn.jagat.main","com.furrybar.chat.app","me.ele","com.max.xiaoheihe","com.ruanmei.ithome","com.youdao.translator","com.netflix.NGP.MonumentValley3","com.ophone.reader.ui","studio.fountainhead.habicat","com.hihonor.appmarket","cn.wenyu.bodian","com.zte.smarthome","com.phoenix.read","com.bilibili.app.in","com.bilibili.app.blue","com.joey.colors.simple.c","com.hanfuhui","com.hurantech.cherrysleep","tech.caicheng.youshi","org.panda.words"],pf=[...RW,...$W],Hs=Ui("embedded",()=>{const e=M(!1),t=M(!1),o=M({}),n=M(!1),r=M({}),i=M({}),a=M({}),l=M({}),s=M({}),u=M({}),d=M({}),c=M({}),h=M({}),f=T(()=>{const H=St(),I=new Set([...Object.keys(i.value),...Object.keys(s.value),...H.installedAndroidApplicationPackageNameList,...pf]),O=Object.entries(r.value).filter(([R])=>I.has(R));return Object.fromEntries(O)}),p=T(()=>{const H=St(),I=new Set([...Object.keys(i.value),...Object.keys(s.value),...H.installedAndroidApplicationPackageNameList,...pf]),O=Object.entries(l.value).filter(([R])=>I.has(R));return Object.fromEntries(O)}),g=T(()=>{const H=St(),I=new Set([...Object.keys(i.value),...Object.keys(s.value),...H.installedAndroidApplicationPackageNameList,...pf]),O=Object.entries(c.value).filter(([R])=>I.has(R));return Object.fromEntries(O)}),v=M([]),b=T(()=>{const H=St(),I=new Set(H.installedAndroidApplicationPackageNameList);return v.value.reduce((R,z)=>(I.has(z.name)&&R.push(z.name),R),[])}),x=T(()=>{const H=St(),I=new Set(H.installedAndroidApplicationPackageNameList);return v.value.reduce((R,z)=>{var _;return I.has(z.name)&&(_=z.fixedOrientationRule)!=null&&_.compatChange&&R.push(z.name),R},[])}),E=M(""),y=M(""),k=nC(H=>{E.value=H.trim().toLowerCase()},500);at(y,H=>{k(H)});const F=T(()=>{const H=v.value,I=St(),O=new Set(I.installedAndroidApplicationPackageNameList),R=t.value,z=E.value,_=o.value,oe=I.installedAppNameList;return H.reduce((G,j)=>{const ue=j.name.trim().toLowerCase();oe[j.name]&&!j.applicationName&&(j.applicationName=oe[j.name]),_[j.name]&&!j.applicationName&&(j.applicationName=_[j.name]);const he=j.applicationName?j.applicationName.toLowerCase():"";return!ue.includes(z)&&!he.includes(z)||R&&!O.has(j.name)||G.push(j),G},[]).sort((G,j)=>G.ruleMode==="custom"&&j.ruleMode!=="custom"?-1:G.ruleMode!=="custom"&&j.ruleMode==="custom"?1:G.name.localeCompare(j.name))}),C=T(()=>B.length>0),A=T(()=>v.value.length),P=M(!0),B=It([]),W=T(()=>new Set([...e.value?Object.keys(f.value):Object.keys(r.value),...e.value?Object.keys(p.value):Object.keys(l.value),...Object.keys(a.value),...Object.keys(u.value)]));function N(){const H=St();v.value=Lv(e.value?f.value:r.value,e.value?p.value:l.value,H.MIOSVersion&&H.MIOSVersion>=2?e.value?g.value:c.value:d.value,a.value,u.value,h.value)}async function K(){const H=St();P.value=!0;const O=(await _n(()=>import("./applicationName-_cS2S__9.js"),[])).default;o.value=O;const[R,z]=await $e(rN());R?B.push({type:"getIsPatchModeErr",title:"补丁模式",msg:R}):z==="true"?e.value=!0:e.value=!1;const _=[xW(),yW(),SW(),CW(),wW(),EW(),_W(),kW(),FW()],[[oe,G],[j,ue],[he,_e],[pe,fe],[Ce,Y],[q,Se],[je,U],[te,ge],[we,le]]=await Promise.all(_.map(ce=>$e(ce)));oe&&(r.value={},B.push({type:"sourceEmbeddedRulesList",title:"[模块]平行窗口配置文件",msg:oe})),G&&(r.value=hn(G,"package_config","package")),j&&(i.value={},B.push({type:"SystemEmbeddedRulesList",title:"[系统]平行窗口配置文件",msg:j})),ue&&(i.value=hn(ue,"package_config","package")),he&&(a.value={}),_e&&(a.value=hn(_e,"package_config","package",!0),console.log(a.value,"customConfigEmbeddedRulesList.value")),pe&&(l.value={},B.push({type:"sourceFixedOrientationList",title:"[模块]信箱模式配置文件",msg:pe})),fe&&(l.value=hn(fe,"package_config","package")),Ce&&(s.value={}),Y&&(s.value=hn(Y,"package_config","package")),q&&(u.value={}),Se&&(u.value=hn(Se,"package_config","package",!0)),je&&(c.value={}),U&&(c.value=hn(U,"setting_rule","setting")),te&&(d.value={}),ge&&(d.value=hn(ge,"setting_rule","setting")),we&&(h.value={}),le&&(h.value=hn(le,"setting_rule","setting",!0)),ui().info("deviceStore.MIOSVersion",H.MIOSVersion),v.value=Lv(e.value?f.value:r.value,e.value?p.value:l.value,H.MIOSVersion&&H.MIOSVersion>=2?e.value?g.value:c.value:d.value,a.value,u.value,h.value),B.length||(P.value=!1,H.needReloadData&&e.value&&(n.value=!0))}return{sourceEmbeddedRulesList:r,sourceFixedOrientationList:l,patchEmbeddedRulesList:f,patchFixedOrientationList:p,patchEmbeddedSettingConfig:g,customConfigEmbeddedRulesList:a,customConfigFixedOrientationList:u,customConfigEmbeddedSettingConfig:h,filterSetAppModeAppList:b,filterResetAppCompatAppList:x,systemEmbeddedSettingConfig:d,systemEmbeddedRulesList:i,systemFixedOrientationList:s,mergeRuleList:v,filterInstalledApps:t,filterMergeRuleList:F,searchKeyWord:y,errorLogging:B,isNeedShowErrorModal:C,loading:P,ruleCount:A,allPackageName:W,applicationName:o,isPatchMode:e,initDefault:K,updateMergeRuleList:N,isNeedShowReloadPathModeDialog:n}},{persist:{pick:["filterInstalledApps"]}}),yS=Ui("font",()=>{const e=M("MiSans"),t=T(()=>`${e.value}, system-ui, sans-serif`);return{currentFont:e,setFont:n=>{e.value=n},currentFontFamily:t}},{persist:{pick:["currentFont"]}}),PW=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db "SELECT dataId FROM cloud_all_data WHERE moduleName='MiuiFreeform';")"`;return new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Ee(o);if(i&&r(l),a)try{const s=a.split(` +`);n(s)}catch(s){r(s)}}})},MW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/dot_black_list.json";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);if(n)o(i);else if(r)try{t(JSON.parse(r))}catch{o("dot_black_list config is empty")}else o(null)}}),e)},AW=()=>{const e="/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3",t="/data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db";return new Promise(async(o,n)=>{{const[,r]=await $e(PW());if(r){const i=async s=>{const u=`echo "$(${e} ${t} "SELECT productData FROM cloud_all_data WHERE dataId='${s}';")"`;return Fe(new Promise(async(d,c)=>{const{errno:h,stdout:f,stderr:p}=await Ee(u);if(h&&c(p),f)try{const g=JSON.parse(f);g.dot_black_list?d({dataId:Number(s),productData:g||{},dataList:g.dot_black_list||[]}):d({dataId:Number(s),productData:g||{},dataList:[]})}catch(g){c(g)}}),u)},[a,l]=await $e(Promise.all(r.map(s=>i(s))));a&&n(a),l&&o(l)}}})},BW=()=>{const e='ls /data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db &>/dev/null && echo "exists" || echo "not exists"';return new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):r==="exists"?t(r):o(r)}})},gX=e=>{const t="/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3",o="/data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db",n=[],r=[];return Fe(new Promise(async(i,a)=>{{const l=Array.from(new Set(e.customDotBlackList)),s=async c=>{const h=`echo '${JSON.stringify(c)}' > /data/adb/MIUI_MagicWindow+/config/dot_black_list.json`;return Fe(new Promise(async(f,p)=>{const{errno:g,stdout:v,stderr:b}=await Ee(h);g?(n.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:b}),p(b)):(r.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:"更新成功"}),f(v))}),h)},[u,d]=await $e(s(l));if(u)a(u);else{const c=e.sourceDotBlackList.map(g=>{const v=ya(g.productData);return v.dot_black_list=e.dotBlackList,{dataId:g.dataId,productData:v}}),h=async(g,v)=>{const b=`echo "$(${t} ${o} "UPDATE cloud_all_data SET productData='${JSON.stringify(v).replace(/"/g,'\\"')}' WHERE dataId='${g}'; SELECT changes();")"`;return Fe(new Promise(async(x,E)=>{const{errno:y,stdout:k,stderr:F}=await Ee(b);y?E(F):k==="1"?x(k):E(k)}),b)},[f,p]=await $e(Promise.all(c.map(g=>h(g.dataId,g.productData))));f&&a(f),p&&i({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}}}),"updateDotBlackList")},DW=Ui("dotBlackList",()=>{const e=M(!1),t=M([]),o=T(()=>{if(t.value.length===0)return[];const v=t.value[0].dataList,b=new Set(v);return t.value.slice(1).forEach(x=>{const E=new Set(x.dataList);for(const y of b)E.has(y)||b.delete(y)}),v.filter(x=>b.has(x))}),n=M([]),r=T(()=>{const b=St().installedAppNameList,x=o.value.map(F=>{const C=n.value.includes(F),A=b[F]||a.value[F];return{name:F,applicationName:A,ruleMode:C?"custom":"system",status:!0}}),E=n.value.filter(F=>!o.value.includes(F)).map(F=>{const C=b[F]||a.value[F];return{name:F,applicationName:C,ruleMode:"custom",status:!1}}),y=Math.floor(x.length/2);return[...x.slice(0,y),...E,...x.slice(y)]}),i=T(()=>{const v=d.value.trim().toLowerCase(),b=r.value,x=St();return b.reduce((E,y)=>{const k=y.name.trim().toLowerCase(),F=y.applicationName?y.applicationName.toLowerCase():"";if(!k.includes(v)&&!F.includes(v))return E;const C=new Set(x.installedAndroidApplicationPackageNameList);return e.value&&!C.has(y.name)||E.push(y),E},[]).sort((E,y)=>E.ruleMode==="custom"&&y.ruleMode!=="custom"?-1:E.ruleMode!=="custom"&&y.ruleMode==="custom"?1:E.name.localeCompare(y.name))}),a=M({}),l=M([]),s=T(()=>f.length>0),u=T(()=>l.value.length),d=M(""),c=M(!0),h=M(!1),f=It([]),p=T(()=>new Set([...n.value,...o.value]));async function g(){c.value=!0;const b=(await _n(()=>import("./applicationName-_cS2S__9.js"),[])).default;a.value=b;const[x,E]=await $e(BW());if(x&&(h.value=!1),E){h.value=!0;const[y,k]=await $e(AW());y&&(t.value=[]),k&&(t.value=k);const[F,C]=await $e(MW());F&&(n.value=[]),C&&(n.value=C),c.value=!1}}return{mergeRuleList:l,allPackageName:p,sourceDotBlackList:t,hasHTMLViewerCloudData:h,systemDotBlackList:o,customDotBlackList:n,mergeDotBlackList:r,filterMergeDotBlackList:i,applicationName:a,searchKeyWord:d,errorLogging:f,isNeedShowErrorModal:s,filterInstalledApps:e,loading:c,ruleCount:u,initDefault:g}},{persist:{pick:["filterInstalledApps"]}}),TW=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/autoui_list.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},IW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/autoui_list.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},zW=()=>{const e="cat /data/system/users/0/autoui_setting_config.xml";return Fe(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Ee(e);n?o(i):t(r)}}),e)},gl=e=>Fe(new Promise(async(t,o)=>{{const n=[],r=[],{errno:i,stdout:a,stderr:l}=await Ee(`echo '${e.customAutoUIListXML}' > /data/adb/MIUI_MagicWindow+/config/autoui_list.xml`);i?n.push({type:"customAutoUIListXML",name:"[自定义规则]应用布局优化配置文件",message:l}):r.push({type:"customAutoUIListXML",name:"[自定义规则]应用布局优化配置文件",message:"更新成功"});const{errno:s,stdout:u,stderr:d}=await Ee(`echo '${e.settingConfigXML}' > /data/system/users/0/autoui_setting_config.xml`);s?n.push({type:"settingConfigXML",name:"[模块]应用布局优化配置文件",message:d}):r.push({type:"settingConfigXML",name:"[模块]应用布局优化配置文件",message:"更新成功"});const[c,h]=await $e(Qd("miui_auto_ui"));if(c&&n.push({type:"updateAutoUIRule",name:"[模块]重新载入模块应用布局优化规则",message:c}),h&&r.push({type:"updateAutoUIRule",name:"[模块]重新载入模块应用布局优化规则",message:h.split(` +`)}),e.reloadRuleAction){const{errno:f,stdout:p,stderr:g}=await Ee(`cmd miui_auto_ui ${e.reloadRuleAction.action} ${e.reloadRuleAction.name}`);f?n.push({type:"updateMiuiAutoUIReloadAction",name:`[模块]更新${e.reloadRuleAction.name}的设置`,message:g}):r.push({type:"updateMiuiAutoUIReloadAction",name:`[模块]更新${e.reloadRuleAction.name}的设置`,message:p})}n.length?o({type:"error",message:"发生错误,提交失败",errorLogging:n,successLogging:r}):t({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}})),gm=Ui("autoui",()=>{const e=M(!1),t=M({}),o=M({}),n=M({}),r=M({}),i=M([]),a=T(()=>{const g=u.value.trim().toLowerCase(),v=i.value,b=St(),x=b.installedAppNameList;return v.reduce((E,y)=>{const k=y.name.trim().toLowerCase();x[y.name]&&!y.applicationName&&(y.applicationName=x[y.name]),n.value[y.name]&&!y.applicationName&&(y.applicationName=n.value[y.name]);const F=y.applicationName?y.applicationName.toLowerCase():"";if(!k.includes(g)&&!F.includes(g))return E;const C=new Set(b.installedAndroidApplicationPackageNameList);return e.value&&!C.has(y.name)||E.push(y),E},[]).sort((E,y)=>E.ruleMode==="custom"&&y.ruleMode!=="custom"?-1:E.ruleMode!=="custom"&&y.ruleMode==="custom"?1:E.name.localeCompare(y.name))}),l=T(()=>c.length>0),s=T(()=>i.value.length),u=M(""),d=M(!0),c=It([]),h=T(()=>new Set([...Object.keys(t.value),...Object.keys(o.value)]));function f(){i.value=Hv(t.value,o.value,r.value)}async function p(){d.value=!0;const v=(await _n(()=>import("./applicationName-_cS2S__9.js"),[])).default;n.value=v;const[b,x]=await $e(TW());b&&c.push({type:"sourceAutoUIList",title:"[模块]应用布局优化配置文件",msg:b}),x&&(t.value=hn(x,"packageRules","package"));const[E,y]=await $e(IW());E||(o.value=hn(y,"packageRules","package",!0));const[k,F]=await $e(zW());k&&(r.value={}),F&&(r.value=hn(F,"setting_config","setting")),i.value=Hv(t.value,o.value,r.value),c.length||(d.value=!1)}return{sourceAutoUIList:t,customConfigAutoUIList:o,autoUISettingConfig:r,mergeRuleList:i,filterMergeRuleList:a,applicationName:n,searchKeyWord:u,errorLogging:c,isNeedShowErrorModal:l,updateMergeRuleList:f,filterInstalledApps:e,loading:d,ruleCount:s,allPackageName:h,initDefault:p}},{persist:{pick:["filterInstalledApps"]}}),OW=xe({__name:"App",setup(e){const t=St(),o=ui(),n=H2(),r=T(()=>({theme:t.isDarkMode?oo:Kt})),{message:i,modal:a}=lo(["message","modal"],{configProviderProps:r}),l=Hs(),s=yS(),u=gm(),d=DW(),c=M(!1),h=M(!0);kt(p=>{!t.loading&&!l.loading&&(h.value=!1),(t.errorLogging.length||l.errorLogging.length)&&(h.value=!1),p(()=>{})}),at(()=>s.currentFont,(p,g)=>{p&&document.documentElement.style.setProperty("--global-font-family",s.currentFontFamily)},{immediate:!0}),at(()=>t.isNeedShowErrorModal,(p,g)=>{p&&(c.value=!0)},{immediate:!1});function f(){return!!window.matchMedia("(prefers-color-scheme: dark)").matches}return kt(p=>{const g=window.matchMedia("(prefers-color-scheme: dark)");t.rhythmMode==="autoRhythm"&&(t.isDarkMode=f());const v=b=>{t.rhythmMode==="autoRhythm"&&(t.isDarkMode=b.matches)};g.addEventListener("change",v),p(()=>{g.removeEventListener("change",v)})}),ut(async()=>{window.onerror=function(p,g,v,b,x){o&&o.error("[JavaScript Error]",p.toString())},window.addEventListener("unhandledrejection",function(p){o&&o.error("[JavaScript Promise Error]",p.reason.toString())}),await t.initDefault(),t.androidTargetSdk&&t.androidTargetSdk===30?a.create({title:"不适配说明",type:"error",preset:"dialog",content:()=>w("p",null,[$("Web UI 未对Android 11做适配,无法使用~")]),negativeText:"确定"}):(t.androidTargetSdk&&t.androidTargetSdk<=33&&!t.skipConfirm.lowWebViewVersion&&a.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("Web UI 强依赖部分较新内核的JavaScript API实现,为了确保模块正常工作,Android 13/12的小米设备可能需要升级系统内置WebView版本,请通过Google Play商店升级!")]),w("p",null,[$("下载地址:https://play.google.com/store/apps/details?id=com.google.android.webview")]),w("p",null,[$("如果下载的是Beta/Dev/Canary版本的WebView,则需要前往[开发者选项-WebView实现]进行切换~")])]),positiveText:"复制下载链接到剪切板",negativeText:"已升级,不再提醒",onPositiveClick:()=>{navigator.clipboard.writeText("https://play.google.com/store/apps/details?id=com.google.android.webview")},onNegativeClick:()=>{t.skipConfirm.lowWebViewVersion=!0}}),l.initDefault(),u.initDefault(),n.initDefault(),t.MIOSVersion&&t.MIOSVersion>=1&&d.initDefault())}),(p,g)=>{const v=lt("n-config-provider");return Re(),Ie("div",{class:ye(["app-container h-full",`${S(t).isDarkMode?"bg-zinc-900 theme-dark-mode":"bg-white"}`])},[w(v,{theme:S(t).isDarkMode?S(oo):void 0},{default:ne(()=>[w(S(hW),null,{default:ne(()=>[w(S(A2))]),_:1}),w(vS,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=b=>c.value=b),errorLogging:S(t).errorLogging},null,8,["modelValue","errorLogging"]),h.value?(Re(),Lt(gW,{key:0})):Je("",!0)]),_:1},8,["theme"])],2)}}}),LW=bS(OW,[["__scopeId","data-v-d3d3a0fe"]]),CS="/images/icons/all_app.png",sd="/images/icons/ai_icon.png";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const HW=4,Qv=0,Jv=1,NW=2;function Za(e){let t=e.length;for(;--t>=0;)e[t]=0}const VW=0,wS=1,jW=2,WW=3,UW=258,vm=29,Ns=256,us=Ns+1+vm,Ra=30,bm=19,SS=2*us+1,ki=15,mf=16,KW=7,xm=256,ES=16,kS=17,_S=18,Rh=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Lu=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),GW=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),FS=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qW=512,fr=new Array((us+2)*2);Za(fr);const Nl=new Array(Ra*2);Za(Nl);const ds=new Array(qW);Za(ds);const cs=new Array(UW-WW+1);Za(cs);const ym=new Array(vm);Za(ym);const ud=new Array(Ra);Za(ud);function gf(e,t,o,n,r){this.static_tree=e,this.extra_bits=t,this.extra_base=o,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}let RS,$S,PS;function vf(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const MS=e=>e<256?ds[e]:ds[256+(e>>>7)],fs=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Uo=(e,t,o)=>{e.bi_valid>mf-o?(e.bi_buf|=t<<e.bi_valid&65535,fs(e,e.bi_buf),e.bi_buf=t>>mf-e.bi_valid,e.bi_valid+=o-mf):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=o)},jn=(e,t,o)=>{Uo(e,o[t*2],o[t*2+1])},AS=(e,t)=>{let o=0;do o|=e&1,e>>>=1,o<<=1;while(--t>0);return o>>>1},ZW=e=>{e.bi_valid===16?(fs(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},XW=(e,t)=>{const o=t.dyn_tree,n=t.max_code,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,s=t.stat_desc.max_length;let u,d,c,h,f,p,g=0;for(h=0;h<=ki;h++)e.bl_count[h]=0;for(o[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<SS;u++)d=e.heap[u],h=o[o[d*2+1]*2+1]+1,h>s&&(h=s,g++),o[d*2+1]=h,!(d>n)&&(e.bl_count[h]++,f=0,d>=l&&(f=a[d-l]),p=o[d*2],e.opt_len+=p*(h+f),i&&(e.static_len+=p*(r[d*2+1]+f)));if(g!==0){do{for(h=s-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[s]--,g-=2}while(g>0);for(h=s;h!==0;h--)for(d=e.bl_count[h];d!==0;)c=e.heap[--u],!(c>n)&&(o[c*2+1]!==h&&(e.opt_len+=(h-o[c*2+1])*o[c*2],o[c*2+1]=h),d--)}},BS=(e,t,o)=>{const n=new Array(ki+1);let r=0,i,a;for(i=1;i<=ki;i++)r=r+o[i-1]<<1,n[i]=r;for(a=0;a<=t;a++){let l=e[a*2+1];l!==0&&(e[a*2]=AS(n[l]++,l))}},YW=()=>{let e,t,o,n,r;const i=new Array(ki+1);for(o=0,n=0;n<vm-1;n++)for(ym[n]=o,e=0;e<1<<Rh[n];e++)cs[o++]=n;for(cs[o-1]=n,r=0,n=0;n<16;n++)for(ud[n]=r,e=0;e<1<<Lu[n];e++)ds[r++]=n;for(r>>=7;n<Ra;n++)for(ud[n]=r<<7,e=0;e<1<<Lu[n]-7;e++)ds[256+r++]=n;for(t=0;t<=ki;t++)i[t]=0;for(e=0;e<=143;)fr[e*2+1]=8,e++,i[8]++;for(;e<=255;)fr[e*2+1]=9,e++,i[9]++;for(;e<=279;)fr[e*2+1]=7,e++,i[7]++;for(;e<=287;)fr[e*2+1]=8,e++,i[8]++;for(BS(fr,us+1,i),e=0;e<Ra;e++)Nl[e*2+1]=5,Nl[e*2]=AS(e,5);RS=new gf(fr,Rh,Ns+1,us,ki),$S=new gf(Nl,Lu,0,Ra,ki),PS=new gf(new Array(0),GW,0,bm,KW)},DS=e=>{let t;for(t=0;t<us;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ra;t++)e.dyn_dtree[t*2]=0;for(t=0;t<bm;t++)e.bl_tree[t*2]=0;e.dyn_ltree[xm*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},TS=e=>{e.bi_valid>8?fs(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},eb=(e,t,o,n)=>{const r=t*2,i=o*2;return e[r]<e[i]||e[r]===e[i]&&n[t]<=n[o]},bf=(e,t,o)=>{const n=e.heap[o];let r=o<<1;for(;r<=e.heap_len&&(r<e.heap_len&&eb(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!eb(t,n,e.heap[r],e.depth));)e.heap[o]=e.heap[r],o=r,r<<=1;e.heap[o]=n},tb=(e,t,o)=>{let n,r,i=0,a,l;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+i++]&255,n+=(e.pending_buf[e.sym_buf+i++]&255)<<8,r=e.pending_buf[e.sym_buf+i++],n===0?jn(e,r,t):(a=cs[r],jn(e,a+Ns+1,t),l=Rh[a],l!==0&&(r-=ym[a],Uo(e,r,l)),n--,a=MS(n),jn(e,a,o),l=Lu[a],l!==0&&(n-=ud[a],Uo(e,n,l)));while(i<e.sym_next);jn(e,xm,t)},$h=(e,t)=>{const o=t.dyn_tree,n=t.stat_desc.static_tree,r=t.stat_desc.has_stree,i=t.stat_desc.elems;let a,l,s=-1,u;for(e.heap_len=0,e.heap_max=SS,a=0;a<i;a++)o[a*2]!==0?(e.heap[++e.heap_len]=s=a,e.depth[a]=0):o[a*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=s<2?++s:0,o[u*2]=1,e.depth[u]=0,e.opt_len--,r&&(e.static_len-=n[u*2+1]);for(t.max_code=s,a=e.heap_len>>1;a>=1;a--)bf(e,o,a);u=i;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],bf(e,o,1),l=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=l,o[u*2]=o[a*2]+o[l*2],e.depth[u]=(e.depth[a]>=e.depth[l]?e.depth[a]:e.depth[l])+1,o[a*2+1]=o[l*2+1]=u,e.heap[1]=u++,bf(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],XW(e,t),BS(o,s,e.bl_count)},ob=(e,t,o)=>{let n,r=-1,i,a=t[0*2+1],l=0,s=7,u=4;for(a===0&&(s=138,u=3),t[(o+1)*2+1]=65535,n=0;n<=o;n++)i=a,a=t[(n+1)*2+1],!(++l<s&&i===a)&&(l<u?e.bl_tree[i*2]+=l:i!==0?(i!==r&&e.bl_tree[i*2]++,e.bl_tree[ES*2]++):l<=10?e.bl_tree[kS*2]++:e.bl_tree[_S*2]++,l=0,r=i,a===0?(s=138,u=3):i===a?(s=6,u=3):(s=7,u=4))},nb=(e,t,o)=>{let n,r=-1,i,a=t[0*2+1],l=0,s=7,u=4;for(a===0&&(s=138,u=3),n=0;n<=o;n++)if(i=a,a=t[(n+1)*2+1],!(++l<s&&i===a)){if(l<u)do jn(e,i,e.bl_tree);while(--l!==0);else i!==0?(i!==r&&(jn(e,i,e.bl_tree),l--),jn(e,ES,e.bl_tree),Uo(e,l-3,2)):l<=10?(jn(e,kS,e.bl_tree),Uo(e,l-3,3)):(jn(e,_S,e.bl_tree),Uo(e,l-11,7));l=0,r=i,a===0?(s=138,u=3):i===a?(s=6,u=3):(s=7,u=4)}},QW=e=>{let t;for(ob(e,e.dyn_ltree,e.l_desc.max_code),ob(e,e.dyn_dtree,e.d_desc.max_code),$h(e,e.bl_desc),t=bm-1;t>=3&&e.bl_tree[FS[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},JW=(e,t,o,n)=>{let r;for(Uo(e,t-257,5),Uo(e,o-1,5),Uo(e,n-4,4),r=0;r<n;r++)Uo(e,e.bl_tree[FS[r]*2+1],3);nb(e,e.dyn_ltree,t-1),nb(e,e.dyn_dtree,o-1)},eU=e=>{let t=4093624447,o;for(o=0;o<=31;o++,t>>>=1)if(t&1&&e.dyn_ltree[o*2]!==0)return Qv;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Jv;for(o=32;o<Ns;o++)if(e.dyn_ltree[o*2]!==0)return Jv;return Qv};let rb=!1;const tU=e=>{rb||(YW(),rb=!0),e.l_desc=new vf(e.dyn_ltree,RS),e.d_desc=new vf(e.dyn_dtree,$S),e.bl_desc=new vf(e.bl_tree,PS),e.bi_buf=0,e.bi_valid=0,DS(e)},IS=(e,t,o,n)=>{Uo(e,(VW<<1)+(n?1:0),3),TS(e),fs(e,o),fs(e,~o),o&&e.pending_buf.set(e.window.subarray(t,t+o),e.pending),e.pending+=o},oU=e=>{Uo(e,wS<<1,3),jn(e,xm,fr),ZW(e)},nU=(e,t,o,n)=>{let r,i,a=0;e.level>0?(e.strm.data_type===NW&&(e.strm.data_type=eU(e)),$h(e,e.l_desc),$h(e,e.d_desc),a=QW(e),r=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=r&&(r=i)):r=i=o+5,o+4<=r&&t!==-1?IS(e,t,o,n):e.strategy===HW||i===r?(Uo(e,(wS<<1)+(n?1:0),3),tb(e,fr,Nl)):(Uo(e,(jW<<1)+(n?1:0),3),JW(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),tb(e,e.dyn_ltree,e.dyn_dtree)),DS(e),n&&TS(e)},rU=(e,t,o)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=o,t===0?e.dyn_ltree[o*2]++:(e.matches++,t--,e.dyn_ltree[(cs[o]+Ns+1)*2]++,e.dyn_dtree[MS(t)*2]++),e.sym_next===e.sym_end);var iU=tU,aU=IS,lU=nU,sU=rU,uU=oU,dU={_tr_init:iU,_tr_stored_block:aU,_tr_flush_block:lU,_tr_tally:sU,_tr_align:uU};const cU=(e,t,o,n)=>{let r=e&65535|0,i=e>>>16&65535|0,a=0;for(;o!==0;){a=o>2e3?2e3:o,o-=a;do r=r+t[n++]|0,i=i+r|0;while(--a);r%=65521,i%=65521}return r|i<<16|0};var hs=cU;const fU=()=>{let e,t=[];for(var o=0;o<256;o++){e=o;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[o]=e}return t},hU=new Uint32Array(fU()),pU=(e,t,o,n)=>{const r=hU,i=n+o;e^=-1;for(let a=n;a<i;a++)e=e>>>8^r[(e^t[a])&255];return e^-1};var yo=pU,Ni={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ta={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:mU,_tr_stored_block:Ph,_tr_flush_block:gU,_tr_tally:Zr,_tr_align:vU}=dU,{Z_NO_FLUSH:Xr,Z_PARTIAL_FLUSH:bU,Z_FULL_FLUSH:xU,Z_FINISH:mn,Z_BLOCK:ib,Z_OK:Eo,Z_STREAM_END:ab,Z_STREAM_ERROR:Gn,Z_DATA_ERROR:yU,Z_BUF_ERROR:xf,Z_DEFAULT_COMPRESSION:CU,Z_FILTERED:wU,Z_HUFFMAN_ONLY:wu,Z_RLE:SU,Z_FIXED:EU,Z_DEFAULT_STRATEGY:kU,Z_UNKNOWN:_U,Z_DEFLATED:ec}=ta,FU=9,RU=15,$U=8,PU=29,MU=256,Mh=MU+1+PU,AU=30,BU=19,DU=2*Mh+1,TU=15,$t=3,Ur=258,qn=Ur+$t+1,IU=32,za=42,Cm=57,Ah=69,Bh=73,Dh=91,Th=103,_i=113,Sl=666,zo=1,Xa=2,Vi=3,Ya=4,zU=3,Fi=(e,t)=>(e.msg=Ni[t],t),lb=e=>e*2-(e>4?9:0),jr=e=>{let t=e.length;for(;--t>=0;)e[t]=0},OU=e=>{let t,o,n,r=e.w_size;t=e.hash_size,n=t;do o=e.head[--n],e.head[n]=o>=r?o-r:0;while(--t);t=r,n=t;do o=e.prev[--n],e.prev[n]=o>=r?o-r:0;while(--t)};let LU=(e,t,o)=>(t<<e.hash_shift^o)&e.hash_mask,Yr=LU;const Qo=e=>{const t=e.state;let o=t.pending;o>e.avail_out&&(o=e.avail_out),o!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+o),e.next_out),e.next_out+=o,t.pending_out+=o,e.total_out+=o,e.avail_out-=o,t.pending-=o,t.pending===0&&(t.pending_out=0))},nn=(e,t)=>{gU(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Qo(e.strm)},Dt=(e,t)=>{e.pending_buf[e.pending++]=t},vl=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Ih=(e,t,o,n)=>{let r=e.avail_in;return r>n&&(r=n),r===0?0:(e.avail_in-=r,t.set(e.input.subarray(e.next_in,e.next_in+r),o),e.state.wrap===1?e.adler=hs(e.adler,t,r,o):e.state.wrap===2&&(e.adler=yo(e.adler,t,r,o)),e.next_in+=r,e.total_in+=r,r)},zS=(e,t)=>{let o=e.max_chain_length,n=e.strstart,r,i,a=e.prev_length,l=e.nice_match;const s=e.strstart>e.w_size-qn?e.strstart-(e.w_size-qn):0,u=e.window,d=e.w_mask,c=e.prev,h=e.strstart+Ur;let f=u[n+a-1],p=u[n+a];e.prev_length>=e.good_match&&(o>>=2),l>e.lookahead&&(l=e.lookahead);do if(r=t,!(u[r+a]!==p||u[r+a-1]!==f||u[r]!==u[n]||u[++r]!==u[n+1])){n+=2,r++;do;while(u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&n<h);if(i=Ur-(h-n),n=h-Ur,i>a){if(e.match_start=t,a=i,i>=l)break;f=u[n+a-1],p=u[n+a]}}while((t=c[t&d])>s&&--o!==0);return a<=e.lookahead?a:e.lookahead},Oa=e=>{const t=e.w_size;let o,n,r;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-qn)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),OU(e),n+=t),e.strm.avail_in===0)break;if(o=Ih(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=o,e.lookahead+e.insert>=$t)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=Yr(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=Yr(e,e.ins_h,e.window[r+$t-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<$t)););}while(e.lookahead<qn&&e.strm.avail_in!==0)},OS=(e,t)=>{let o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,r,i,a=0,l=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i||(i=e.strm.avail_out-i,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n<o&&(n===0&&t!==mn||t===Xr||n!==r+e.strm.avail_in)))break;a=t===mn&&n===r+e.strm.avail_in?1:0,Ph(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Qo(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Ih(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(a===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?Ya:t!==Xr&&t!==mn&&e.strm.avail_in===0&&e.strstart===e.block_start?Xa:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(Ih(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===mn)&&t!==Xr&&e.strm.avail_in===0&&r<=i)&&(n=r>i?i:r,a=t===mn&&e.strm.avail_in===0&&n===r?1:0,Ph(e,e.block_start,n,a),e.block_start+=n,Qo(e.strm)),a?Vi:zo)},yf=(e,t)=>{let o,n;for(;;){if(e.lookahead<qn){if(Oa(e),e.lookahead<qn&&t===Xr)return zo;if(e.lookahead===0)break}if(o=0,e.lookahead>=$t&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+$t-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),o!==0&&e.strstart-o<=e.w_size-qn&&(e.match_length=zS(e,o)),e.match_length>=$t)if(n=Zr(e,e.strstart-e.match_start,e.match_length-$t),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=$t){e.match_length--;do e.strstart++,e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+$t-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+1]);else n=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(nn(e,!1),e.strm.avail_out===0))return zo}return e.insert=e.strstart<$t-1?e.strstart:$t-1,t===mn?(nn(e,!0),e.strm.avail_out===0?Vi:Ya):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?zo:Xa},ha=(e,t)=>{let o,n,r;for(;;){if(e.lookahead<qn){if(Oa(e),e.lookahead<qn&&t===Xr)return zo;if(e.lookahead===0)break}if(o=0,e.lookahead>=$t&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+$t-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=$t-1,o!==0&&e.prev_length<e.max_lazy_match&&e.strstart-o<=e.w_size-qn&&(e.match_length=zS(e,o),e.match_length<=5&&(e.strategy===wU||e.match_length===$t&&e.strstart-e.match_start>4096)&&(e.match_length=$t-1)),e.prev_length>=$t&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-$t,n=Zr(e,e.strstart-1-e.prev_match,e.prev_length-$t),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+$t-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=$t-1,e.strstart++,n&&(nn(e,!1),e.strm.avail_out===0))return zo}else if(e.match_available){if(n=Zr(e,0,e.window[e.strstart-1]),n&&nn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return zo}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Zr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<$t-1?e.strstart:$t-1,t===mn?(nn(e,!0),e.strm.avail_out===0?Vi:Ya):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?zo:Xa},HU=(e,t)=>{let o,n,r,i;const a=e.window;for(;;){if(e.lookahead<=Ur){if(Oa(e),e.lookahead<=Ur&&t===Xr)return zo;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=$t&&e.strstart>0&&(r=e.strstart-1,n=a[r],n===a[++r]&&n===a[++r]&&n===a[++r])){i=e.strstart+Ur;do;while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<i);e.match_length=Ur-(i-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=$t?(o=Zr(e,1,e.match_length-$t),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(o=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),o&&(nn(e,!1),e.strm.avail_out===0))return zo}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?Vi:Ya):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?zo:Xa},NU=(e,t)=>{let o;for(;;){if(e.lookahead===0&&(Oa(e),e.lookahead===0)){if(t===Xr)return zo;break}if(e.match_length=0,o=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,o&&(nn(e,!1),e.strm.avail_out===0))return zo}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?Vi:Ya):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?zo:Xa};function Hn(e,t,o,n,r){this.good_length=e,this.max_lazy=t,this.nice_length=o,this.max_chain=n,this.func=r}const El=[new Hn(0,0,0,0,OS),new Hn(4,4,8,4,yf),new Hn(4,5,16,8,yf),new Hn(4,6,32,32,yf),new Hn(4,4,16,16,ha),new Hn(8,16,32,32,ha),new Hn(8,16,128,128,ha),new Hn(8,32,128,256,ha),new Hn(32,128,258,1024,ha),new Hn(32,258,258,4096,ha)],VU=e=>{e.window_size=2*e.w_size,jr(e.head),e.max_lazy_match=El[e.level].max_lazy,e.good_match=El[e.level].good_length,e.nice_match=El[e.level].nice_length,e.max_chain_length=El[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=$t-1,e.match_available=0,e.ins_h=0};function jU(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ec,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(DU*2),this.dyn_dtree=new Uint16Array((2*AU+1)*2),this.bl_tree=new Uint16Array((2*BU+1)*2),jr(this.dyn_ltree),jr(this.dyn_dtree),jr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(TU+1),this.heap=new Uint16Array(2*Mh+1),jr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Mh+1),jr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Vs=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==za&&t.status!==Cm&&t.status!==Ah&&t.status!==Bh&&t.status!==Dh&&t.status!==Th&&t.status!==_i&&t.status!==Sl?1:0},LS=e=>{if(Vs(e))return Fi(e,Gn);e.total_in=e.total_out=0,e.data_type=_U;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Cm:t.wrap?za:_i,e.adler=t.wrap===2?0:1,t.last_flush=-2,mU(t),Eo},HS=e=>{const t=LS(e);return t===Eo&&VU(e.state),t},WU=(e,t)=>Vs(e)||e.state.wrap!==2?Gn:(e.state.gzhead=t,Eo),NS=(e,t,o,n,r,i)=>{if(!e)return Gn;let a=1;if(t===CU&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),r<1||r>FU||o!==ec||n<8||n>15||t<0||t>9||i<0||i>EU||n===8&&a!==1)return Fi(e,Gn);n===8&&(n=9);const l=new jU;return e.state=l,l.strm=e,l.status=za,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+$t-1)/$t),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=t,l.strategy=i,l.method=o,HS(e)},UU=(e,t)=>NS(e,t,ec,RU,$U,kU),KU=(e,t)=>{if(Vs(e)||t>ib||t<0)return e?Fi(e,Gn):Gn;const o=e.state;if(!e.output||e.avail_in!==0&&!e.input||o.status===Sl&&t!==mn)return Fi(e,e.avail_out===0?xf:Gn);const n=o.last_flush;if(o.last_flush=t,o.pending!==0){if(Qo(e),e.avail_out===0)return o.last_flush=-1,Eo}else if(e.avail_in===0&&lb(t)<=lb(n)&&t!==mn)return Fi(e,xf);if(o.status===Sl&&e.avail_in!==0)return Fi(e,xf);if(o.status===za&&o.wrap===0&&(o.status=_i),o.status===za){let r=ec+(o.w_bits-8<<4)<<8,i=-1;if(o.strategy>=wu||o.level<2?i=0:o.level<6?i=1:o.level===6?i=2:i=3,r|=i<<6,o.strstart!==0&&(r|=IU),r+=31-r%31,vl(o,r),o.strstart!==0&&(vl(o,e.adler>>>16),vl(o,e.adler&65535)),e.adler=1,o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(o.status===Cm){if(e.adler=0,Dt(o,31),Dt(o,139),Dt(o,8),o.gzhead)Dt(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),Dt(o,o.gzhead.time&255),Dt(o,o.gzhead.time>>8&255),Dt(o,o.gzhead.time>>16&255),Dt(o,o.gzhead.time>>24&255),Dt(o,o.level===9?2:o.strategy>=wu||o.level<2?4:0),Dt(o,o.gzhead.os&255),o.gzhead.extra&&o.gzhead.extra.length&&(Dt(o,o.gzhead.extra.length&255),Dt(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=yo(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=Ah;else if(Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,o.level===9?2:o.strategy>=wu||o.level<2?4:0),Dt(o,zU),o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(o.status===Ah){if(o.gzhead.extra){let r=o.pending,i=(o.gzhead.extra.length&65535)-o.gzindex;for(;o.pending+i>o.pending_buf_size;){let l=o.pending_buf_size-o.pending;if(o.pending_buf.set(o.gzhead.extra.subarray(o.gzindex,o.gzindex+l),o.pending),o.pending=o.pending_buf_size,o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex+=l,Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0,i-=l}let a=new Uint8Array(o.gzhead.extra);o.pending_buf.set(a.subarray(o.gzindex,o.gzindex+i),o.pending),o.pending+=i,o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=Bh}if(o.status===Bh){if(o.gzhead.name){let r=o.pending,i;do{if(o.pending===o.pending_buf_size){if(o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0}o.gzindex<o.gzhead.name.length?i=o.gzhead.name.charCodeAt(o.gzindex++)&255:i=0,Dt(o,i)}while(i!==0);o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=Dh}if(o.status===Dh){if(o.gzhead.comment){let r=o.pending,i;do{if(o.pending===o.pending_buf_size){if(o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0}o.gzindex<o.gzhead.comment.length?i=o.gzhead.comment.charCodeAt(o.gzindex++)&255:i=0,Dt(o,i)}while(i!==0);o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r))}o.status=Th}if(o.status===Th){if(o.gzhead.hcrc){if(o.pending+2>o.pending_buf_size&&(Qo(e),o.pending!==0))return o.last_flush=-1,Eo;Dt(o,e.adler&255),Dt(o,e.adler>>8&255),e.adler=0}if(o.status=_i,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(e.avail_in!==0||o.lookahead!==0||t!==Xr&&o.status!==Sl){let r=o.level===0?OS(o,t):o.strategy===wu?NU(o,t):o.strategy===SU?HU(o,t):El[o.level].func(o,t);if((r===Vi||r===Ya)&&(o.status=Sl),r===zo||r===Vi)return e.avail_out===0&&(o.last_flush=-1),Eo;if(r===Xa&&(t===bU?vU(o):t!==ib&&(Ph(o,0,0,!1),t===xU&&(jr(o.head),o.lookahead===0&&(o.strstart=0,o.block_start=0,o.insert=0))),Qo(e),e.avail_out===0))return o.last_flush=-1,Eo}return t!==mn?Eo:o.wrap<=0?ab:(o.wrap===2?(Dt(o,e.adler&255),Dt(o,e.adler>>8&255),Dt(o,e.adler>>16&255),Dt(o,e.adler>>24&255),Dt(o,e.total_in&255),Dt(o,e.total_in>>8&255),Dt(o,e.total_in>>16&255),Dt(o,e.total_in>>24&255)):(vl(o,e.adler>>>16),vl(o,e.adler&65535)),Qo(e),o.wrap>0&&(o.wrap=-o.wrap),o.pending!==0?Eo:ab)},GU=e=>{if(Vs(e))return Gn;const t=e.state.status;return e.state=null,t===_i?Fi(e,yU):Eo},qU=(e,t)=>{let o=t.length;if(Vs(e))return Gn;const n=e.state,r=n.wrap;if(r===2||r===1&&n.status!==za||n.lookahead)return Gn;if(r===1&&(e.adler=hs(e.adler,t,o,0)),n.wrap=0,o>=n.w_size){r===0&&(jr(n.head),n.strstart=0,n.block_start=0,n.insert=0);let s=new Uint8Array(n.w_size);s.set(t.subarray(o-n.w_size,o),0),t=s,o=n.w_size}const i=e.avail_in,a=e.next_in,l=e.input;for(e.avail_in=o,e.next_in=0,e.input=t,Oa(n);n.lookahead>=$t;){let s=n.strstart,u=n.lookahead-($t-1);do n.ins_h=Yr(n,n.ins_h,n.window[s+$t-1]),n.prev[s&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=s,s++;while(--u);n.strstart=s,n.lookahead=$t-1,Oa(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=$t-1,n.match_available=0,e.next_in=a,e.input=l,e.avail_in=i,n.wrap=r,Eo};var ZU=UU,XU=NS,YU=HS,QU=LS,JU=WU,eK=KU,tK=GU,oK=qU,nK="pako deflate (from Nodeca project)",Vl={deflateInit:ZU,deflateInit2:XU,deflateReset:YU,deflateResetKeep:QU,deflateSetHeader:JU,deflate:eK,deflateEnd:tK,deflateSetDictionary:oK,deflateInfo:nK};const rK=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var iK=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const o=t.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(const n in o)rK(o,n)&&(e[n]=o[n])}}return e},aK=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;const o=new Uint8Array(t);for(let n=0,r=0,i=e.length;n<i;n++){let a=e[n];o.set(a,r),r+=a.length}return o},tc={assign:iK,flattenChunks:aK};let VS=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{VS=!1}const ps=new Uint8Array(256);for(let e=0;e<256;e++)ps[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ps[254]=ps[254]=1;var lK=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,o,n,r,i,a=e.length,l=0;for(r=0;r<a;r++)o=e.charCodeAt(r),(o&64512)===55296&&r+1<a&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(o=65536+(o-55296<<10)+(n-56320),r++)),l+=o<128?1:o<2048?2:o<65536?3:4;for(t=new Uint8Array(l),i=0,r=0;i<l;r++)o=e.charCodeAt(r),(o&64512)===55296&&r+1<a&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(o=65536+(o-55296<<10)+(n-56320),r++)),o<128?t[i++]=o:o<2048?(t[i++]=192|o>>>6,t[i++]=128|o&63):o<65536?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|o&63):(t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|o&63);return t};const sK=(e,t)=>{if(t<65534&&e.subarray&&VS)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let o="";for(let n=0;n<t;n++)o+=String.fromCharCode(e[n]);return o};var uK=(e,t)=>{const o=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,r;const i=new Array(o*2);for(r=0,n=0;n<o;){let a=e[n++];if(a<128){i[r++]=a;continue}let l=ps[a];if(l>4){i[r++]=65533,n+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&n<o;)a=a<<6|e[n++]&63,l--;if(l>1){i[r++]=65533;continue}a<65536?i[r++]=a:(a-=65536,i[r++]=55296|a>>10&1023,i[r++]=56320|a&1023)}return sK(i,r)},dK=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let o=t-1;for(;o>=0&&(e[o]&192)===128;)o--;return o<0||o===0?t:o+ps[e[o]]>t?o:t},ms={string2buf:lK,buf2string:uK,utf8border:dK};function cK(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var jS=cK;const WS=Object.prototype.toString,{Z_NO_FLUSH:fK,Z_SYNC_FLUSH:hK,Z_FULL_FLUSH:pK,Z_FINISH:mK,Z_OK:dd,Z_STREAM_END:gK,Z_DEFAULT_COMPRESSION:vK,Z_DEFAULT_STRATEGY:bK,Z_DEFLATED:xK}=ta;function js(e){this.options=tc.assign({level:vK,method:xK,chunkSize:16384,windowBits:15,memLevel:8,strategy:bK},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new jS,this.strm.avail_out=0;let o=Vl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(o!==dd)throw new Error(Ni[o]);if(t.header&&Vl.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=ms.string2buf(t.dictionary):WS.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,o=Vl.deflateSetDictionary(this.strm,n),o!==dd)throw new Error(Ni[o]);this._dict_set=!0}}js.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize;let r,i;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?mK:fK,typeof e=="string"?o.input=ms.string2buf(e):WS.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){if(o.avail_out===0&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),(i===hK||i===pK)&&o.avail_out<=6){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(r=Vl.deflate(o,i),r===gK)return o.next_out>0&&this.onData(o.output.subarray(0,o.next_out)),r=Vl.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===dd;if(o.avail_out===0){this.onData(o.output);continue}if(i>0&&o.next_out>0){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(o.avail_in===0)break}return!0};js.prototype.onData=function(e){this.chunks.push(e)};js.prototype.onEnd=function(e){e===dd&&(this.result=tc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function wm(e,t){const o=new js(t);if(o.push(e,!0),o.err)throw o.msg||Ni[o.err];return o.result}function yK(e,t){return t=t||{},t.raw=!0,wm(e,t)}function CK(e,t){return t=t||{},t.gzip=!0,wm(e,t)}var wK=js,SK=wm,EK=yK,kK=CK,_K=ta,FK={Deflate:wK,deflate:SK,deflateRaw:EK,gzip:kK,constants:_K};const Su=16209,RK=16191;var $K=function(t,o){let n,r,i,a,l,s,u,d,c,h,f,p,g,v,b,x,E,y,k,F,C,A,P,B;const W=t.state;n=t.next_in,P=t.input,r=n+(t.avail_in-5),i=t.next_out,B=t.output,a=i-(o-t.avail_out),l=i+(t.avail_out-257),s=W.dmax,u=W.wsize,d=W.whave,c=W.wnext,h=W.window,f=W.hold,p=W.bits,g=W.lencode,v=W.distcode,b=(1<<W.lenbits)-1,x=(1<<W.distbits)-1;e:do{p<15&&(f+=P[n++]<<p,p+=8,f+=P[n++]<<p,p+=8),E=g[f&b];t:for(;;){if(y=E>>>24,f>>>=y,p-=y,y=E>>>16&255,y===0)B[i++]=E&65535;else if(y&16){k=E&65535,y&=15,y&&(p<y&&(f+=P[n++]<<p,p+=8),k+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=P[n++]<<p,p+=8,f+=P[n++]<<p,p+=8),E=v[f&x];o:for(;;){if(y=E>>>24,f>>>=y,p-=y,y=E>>>16&255,y&16){if(F=E&65535,y&=15,p<y&&(f+=P[n++]<<p,p+=8,p<y&&(f+=P[n++]<<p,p+=8)),F+=f&(1<<y)-1,F>s){t.msg="invalid distance too far back",W.mode=Su;break e}if(f>>>=y,p-=y,y=i-a,F>y){if(y=F-y,y>d&&W.sane){t.msg="invalid distance too far back",W.mode=Su;break e}if(C=0,A=h,c===0){if(C+=u-y,y<k){k-=y;do B[i++]=h[C++];while(--y);C=i-F,A=B}}else if(c<y){if(C+=u+c-y,y-=c,y<k){k-=y;do B[i++]=h[C++];while(--y);if(C=0,c<k){y=c,k-=y;do B[i++]=h[C++];while(--y);C=i-F,A=B}}}else if(C+=c-y,y<k){k-=y;do B[i++]=h[C++];while(--y);C=i-F,A=B}for(;k>2;)B[i++]=A[C++],B[i++]=A[C++],B[i++]=A[C++],k-=3;k&&(B[i++]=A[C++],k>1&&(B[i++]=A[C++]))}else{C=i-F;do B[i++]=B[C++],B[i++]=B[C++],B[i++]=B[C++],k-=3;while(k>2);k&&(B[i++]=B[C++],k>1&&(B[i++]=B[C++]))}}else if(y&64){t.msg="invalid distance code",W.mode=Su;break e}else{E=v[(E&65535)+(f&(1<<y)-1)];continue o}break}}else if(y&64)if(y&32){W.mode=RK;break e}else{t.msg="invalid literal/length code",W.mode=Su;break e}else{E=g[(E&65535)+(f&(1<<y)-1)];continue t}break}}while(n<r&&i<l);k=p>>3,n-=k,p-=k<<3,f&=(1<<p)-1,t.next_in=n,t.next_out=i,t.avail_in=n<r?5+(r-n):5-(n-r),t.avail_out=i<l?257+(l-i):257-(i-l),W.hold=f,W.bits=p};const pa=15,sb=852,ub=592,db=0,Cf=1,cb=2,PK=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),MK=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),AK=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),BK=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),DK=(e,t,o,n,r,i,a,l)=>{const s=l.bits;let u=0,d=0,c=0,h=0,f=0,p=0,g=0,v=0,b=0,x=0,E,y,k,F,C,A=null,P;const B=new Uint16Array(pa+1),W=new Uint16Array(pa+1);let N=null,K,H,I;for(u=0;u<=pa;u++)B[u]=0;for(d=0;d<n;d++)B[t[o+d]]++;for(f=s,h=pa;h>=1&&B[h]===0;h--);if(f>h&&(f=h),h===0)return r[i++]=1<<24|64<<16|0,r[i++]=1<<24|64<<16|0,l.bits=1,0;for(c=1;c<h&&B[c]===0;c++);for(f<c&&(f=c),v=1,u=1;u<=pa;u++)if(v<<=1,v-=B[u],v<0)return-1;if(v>0&&(e===db||h!==1))return-1;for(W[1]=0,u=1;u<pa;u++)W[u+1]=W[u]+B[u];for(d=0;d<n;d++)t[o+d]!==0&&(a[W[t[o+d]]++]=d);if(e===db?(A=N=a,P=20):e===Cf?(A=PK,N=MK,P=257):(A=AK,N=BK,P=0),x=0,d=0,u=c,C=i,p=f,g=0,k=-1,b=1<<f,F=b-1,e===Cf&&b>sb||e===cb&&b>ub)return 1;for(;;){K=u-g,a[d]+1<P?(H=0,I=a[d]):a[d]>=P?(H=N[a[d]-P],I=A[a[d]-P]):(H=96,I=0),E=1<<u-g,y=1<<p,c=y;do y-=E,r[C+(x>>g)+y]=K<<24|H<<16|I|0;while(y!==0);for(E=1<<u-1;x&E;)E>>=1;if(E!==0?(x&=E-1,x+=E):x=0,d++,--B[u]===0){if(u===h)break;u=t[o+a[d]]}if(u>f&&(x&F)!==k){for(g===0&&(g=f),C+=c,p=u-g,v=1<<p;p+g<h&&(v-=B[p+g],!(v<=0));)p++,v<<=1;if(b+=1<<p,e===Cf&&b>sb||e===cb&&b>ub)return 1;k=x&F,r[k]=f<<24|p<<16|C-i|0}}return x!==0&&(r[C+x]=u-g<<24|64<<16|0),l.bits=f,0};var jl=DK;const TK=0,US=1,KS=2,{Z_FINISH:fb,Z_BLOCK:IK,Z_TREES:Eu,Z_OK:ji,Z_STREAM_END:zK,Z_NEED_DICT:OK,Z_STREAM_ERROR:Cn,Z_DATA_ERROR:GS,Z_MEM_ERROR:qS,Z_BUF_ERROR:LK,Z_DEFLATED:hb}=ta,oc=16180,pb=16181,mb=16182,gb=16183,vb=16184,bb=16185,xb=16186,yb=16187,Cb=16188,wb=16189,cd=16190,ur=16191,wf=16192,Sb=16193,Sf=16194,Eb=16195,kb=16196,_b=16197,Fb=16198,ku=16199,_u=16200,Rb=16201,$b=16202,Pb=16203,Mb=16204,Ab=16205,Ef=16206,Bb=16207,Db=16208,Qt=16209,ZS=16210,XS=16211,HK=852,NK=592,VK=15,jK=VK,Tb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function WK(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const oa=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<oc||t.mode>XS?1:0},YS=e=>{if(oa(e))return Cn;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=oc,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(HK),t.distcode=t.distdyn=new Int32Array(NK),t.sane=1,t.back=-1,ji},QS=e=>{if(oa(e))return Cn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,YS(e)},JS=(e,t)=>{let o;if(oa(e))return Cn;const n=e.state;return t<0?(o=0,t=-t):(o=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Cn:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=o,n.wbits=t,QS(e))},e6=(e,t)=>{if(!e)return Cn;const o=new WK;e.state=o,o.strm=e,o.window=null,o.mode=oc;const n=JS(e,t);return n!==ji&&(e.state=null),n},UK=e=>e6(e,jK);let Ib=!0,kf,_f;const KK=e=>{if(Ib){kf=new Int32Array(512),_f=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(jl(US,e.lens,0,288,kf,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;jl(KS,e.lens,0,32,_f,0,e.work,{bits:5}),Ib=!1}e.lencode=kf,e.lenbits=9,e.distcode=_f,e.distbits=5},t6=(e,t,o,n)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),n>=i.wsize?(i.window.set(t.subarray(o-i.wsize,o),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>n&&(r=n),i.window.set(t.subarray(o-n,o-n+r),i.wnext),n-=r,n?(i.window.set(t.subarray(o-n,o),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=r))),0},GK=(e,t)=>{let o,n,r,i,a,l,s,u,d,c,h,f,p,g,v=0,b,x,E,y,k,F,C,A;const P=new Uint8Array(4);let B,W;const N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(oa(e)||!e.output||!e.input&&e.avail_in!==0)return Cn;o=e.state,o.mode===ur&&(o.mode=wf),a=e.next_out,r=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=o.hold,d=o.bits,c=l,h=s,A=ji;e:for(;;)switch(o.mode){case oc:if(o.wrap===0){o.mode=wf;break}for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.wrap&2&&u===35615){o.wbits===0&&(o.wbits=15),o.check=0,P[0]=u&255,P[1]=u>>>8&255,o.check=yo(o.check,P,2,0),u=0,d=0,o.mode=pb;break}if(o.head&&(o.head.done=!1),!(o.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",o.mode=Qt;break}if((u&15)!==hb){e.msg="unknown compression method",o.mode=Qt;break}if(u>>>=4,d-=4,C=(u&15)+8,o.wbits===0&&(o.wbits=C),C>15||C>o.wbits){e.msg="invalid window size",o.mode=Qt;break}o.dmax=1<<o.wbits,o.flags=0,e.adler=o.check=1,o.mode=u&512?wb:ur,u=0,d=0;break;case pb:for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.flags=u,(o.flags&255)!==hb){e.msg="unknown compression method",o.mode=Qt;break}if(o.flags&57344){e.msg="unknown header flags set",o.mode=Qt;break}o.head&&(o.head.text=u>>8&1),o.flags&512&&o.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,o.check=yo(o.check,P,2,0)),u=0,d=0,o.mode=mb;case mb:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.head&&(o.head.time=u),o.flags&512&&o.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,P[2]=u>>>16&255,P[3]=u>>>24&255,o.check=yo(o.check,P,4,0)),u=0,d=0,o.mode=gb;case gb:for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.head&&(o.head.xflags=u&255,o.head.os=u>>8),o.flags&512&&o.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,o.check=yo(o.check,P,2,0)),u=0,d=0,o.mode=vb;case vb:if(o.flags&1024){for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.length=u,o.head&&(o.head.extra_len=u),o.flags&512&&o.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,o.check=yo(o.check,P,2,0)),u=0,d=0}else o.head&&(o.head.extra=null);o.mode=bb;case bb:if(o.flags&1024&&(f=o.length,f>l&&(f=l),f&&(o.head&&(C=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Uint8Array(o.head.extra_len)),o.head.extra.set(n.subarray(i,i+f),C)),o.flags&512&&o.wrap&4&&(o.check=yo(o.check,n,f,i)),l-=f,i+=f,o.length-=f),o.length))break e;o.length=0,o.mode=xb;case xb:if(o.flags&2048){if(l===0)break e;f=0;do C=n[i+f++],o.head&&C&&o.length<65536&&(o.head.name+=String.fromCharCode(C));while(C&&f<l);if(o.flags&512&&o.wrap&4&&(o.check=yo(o.check,n,f,i)),l-=f,i+=f,C)break e}else o.head&&(o.head.name=null);o.length=0,o.mode=yb;case yb:if(o.flags&4096){if(l===0)break e;f=0;do C=n[i+f++],o.head&&C&&o.length<65536&&(o.head.comment+=String.fromCharCode(C));while(C&&f<l);if(o.flags&512&&o.wrap&4&&(o.check=yo(o.check,n,f,i)),l-=f,i+=f,C)break e}else o.head&&(o.head.comment=null);o.mode=Cb;case Cb:if(o.flags&512){for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.wrap&4&&u!==(o.check&65535)){e.msg="header crc mismatch",o.mode=Qt;break}u=0,d=0}o.head&&(o.head.hcrc=o.flags>>9&1,o.head.done=!0),e.adler=o.check=0,o.mode=ur;break;case wb:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}e.adler=o.check=Tb(u),u=0,d=0,o.mode=cd;case cd:if(o.havedict===0)return e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,o.hold=u,o.bits=d,OK;e.adler=o.check=1,o.mode=ur;case ur:if(t===IK||t===Eu)break e;case wf:if(o.last){u>>>=d&7,d-=d&7,o.mode=Ef;break}for(;d<3;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}switch(o.last=u&1,u>>>=1,d-=1,u&3){case 0:o.mode=Sb;break;case 1:if(KK(o),o.mode=ku,t===Eu){u>>>=2,d-=2;break e}break;case 2:o.mode=kb;break;case 3:e.msg="invalid block type",o.mode=Qt}u>>>=2,d-=2;break;case Sb:for(u>>>=d&7,d-=d&7;d<32;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",o.mode=Qt;break}if(o.length=u&65535,u=0,d=0,o.mode=Sf,t===Eu)break e;case Sf:o.mode=Eb;case Eb:if(f=o.length,f){if(f>l&&(f=l),f>s&&(f=s),f===0)break e;r.set(n.subarray(i,i+f),a),l-=f,i+=f,s-=f,a+=f,o.length-=f;break}o.mode=ur;break;case kb:for(;d<14;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.nlen=(u&31)+257,u>>>=5,d-=5,o.ndist=(u&31)+1,u>>>=5,d-=5,o.ncode=(u&15)+4,u>>>=4,d-=4,o.nlen>286||o.ndist>30){e.msg="too many length or distance symbols",o.mode=Qt;break}o.have=0,o.mode=_b;case _b:for(;o.have<o.ncode;){for(;d<3;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.lens[N[o.have++]]=u&7,u>>>=3,d-=3}for(;o.have<19;)o.lens[N[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,B={bits:o.lenbits},A=jl(TK,o.lens,0,19,o.lencode,0,o.work,B),o.lenbits=B.bits,A){e.msg="invalid code lengths set",o.mode=Qt;break}o.have=0,o.mode=Fb;case Fb:for(;o.have<o.nlen+o.ndist;){for(;v=o.lencode[u&(1<<o.lenbits)-1],b=v>>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(E<16)u>>>=b,d-=b,o.lens[o.have++]=E;else{if(E===16){for(W=b+2;d<W;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(u>>>=b,d-=b,o.have===0){e.msg="invalid bit length repeat",o.mode=Qt;break}C=o.lens[o.have-1],f=3+(u&3),u>>>=2,d-=2}else if(E===17){for(W=b+3;d<W;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}u>>>=b,d-=b,C=0,f=3+(u&7),u>>>=3,d-=3}else{for(W=b+7;d<W;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}u>>>=b,d-=b,C=0,f=11+(u&127),u>>>=7,d-=7}if(o.have+f>o.nlen+o.ndist){e.msg="invalid bit length repeat",o.mode=Qt;break}for(;f--;)o.lens[o.have++]=C}}if(o.mode===Qt)break;if(o.lens[256]===0){e.msg="invalid code -- missing end-of-block",o.mode=Qt;break}if(o.lenbits=9,B={bits:o.lenbits},A=jl(US,o.lens,0,o.nlen,o.lencode,0,o.work,B),o.lenbits=B.bits,A){e.msg="invalid literal/lengths set",o.mode=Qt;break}if(o.distbits=6,o.distcode=o.distdyn,B={bits:o.distbits},A=jl(KS,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,B),o.distbits=B.bits,A){e.msg="invalid distances set",o.mode=Qt;break}if(o.mode=ku,t===Eu)break e;case ku:o.mode=_u;case _u:if(l>=6&&s>=258){e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,o.hold=u,o.bits=d,$K(e,h),a=e.next_out,r=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=o.hold,d=o.bits,o.mode===ur&&(o.back=-1);break}for(o.back=0;v=o.lencode[u&(1<<o.lenbits)-1],b=v>>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(x&&!(x&240)){for(y=b,k=x,F=E;v=o.lencode[F+((u&(1<<y+k)-1)>>y)],b=v>>>24,x=v>>>16&255,E=v&65535,!(y+b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}u>>>=y,d-=y,o.back+=y}if(u>>>=b,d-=b,o.back+=b,o.length=E,x===0){o.mode=Ab;break}if(x&32){o.back=-1,o.mode=ur;break}if(x&64){e.msg="invalid literal/length code",o.mode=Qt;break}o.extra=x&15,o.mode=Rb;case Rb:if(o.extra){for(W=o.extra;d<W;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.length+=u&(1<<o.extra)-1,u>>>=o.extra,d-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=$b;case $b:for(;v=o.distcode[u&(1<<o.distbits)-1],b=v>>>24,x=v>>>16&255,E=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(!(x&240)){for(y=b,k=x,F=E;v=o.distcode[F+((u&(1<<y+k)-1)>>y)],b=v>>>24,x=v>>>16&255,E=v&65535,!(y+b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}u>>>=y,d-=y,o.back+=y}if(u>>>=b,d-=b,o.back+=b,x&64){e.msg="invalid distance code",o.mode=Qt;break}o.offset=E,o.extra=x&15,o.mode=Pb;case Pb:if(o.extra){for(W=o.extra;d<W;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.offset+=u&(1<<o.extra)-1,u>>>=o.extra,d-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){e.msg="invalid distance too far back",o.mode=Qt;break}o.mode=Mb;case Mb:if(s===0)break e;if(f=h-s,o.offset>f){if(f=o.offset-f,f>o.whave&&o.sane){e.msg="invalid distance too far back",o.mode=Qt;break}f>o.wnext?(f-=o.wnext,p=o.wsize-f):p=o.wnext-f,f>o.length&&(f=o.length),g=o.window}else g=r,p=a-o.offset,f=o.length;f>s&&(f=s),s-=f,o.length-=f;do r[a++]=g[p++];while(--f);o.length===0&&(o.mode=_u);break;case Ab:if(s===0)break e;r[a++]=o.length,s--,o.mode=_u;break;case Ef:if(o.wrap){for(;d<32;){if(l===0)break e;l--,u|=n[i++]<<d,d+=8}if(h-=s,e.total_out+=h,o.total+=h,o.wrap&4&&h&&(e.adler=o.check=o.flags?yo(o.check,r,h,a-h):hs(o.check,r,h,a-h)),h=s,o.wrap&4&&(o.flags?u:Tb(u))!==o.check){e.msg="incorrect data check",o.mode=Qt;break}u=0,d=0}o.mode=Bb;case Bb:if(o.wrap&&o.flags){for(;d<32;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.wrap&4&&u!==(o.total&4294967295)){e.msg="incorrect length check",o.mode=Qt;break}u=0,d=0}o.mode=Db;case Db:A=zK;break e;case Qt:A=GS;break e;case ZS:return qS;case XS:default:return Cn}return e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,o.hold=u,o.bits=d,(o.wsize||h!==e.avail_out&&o.mode<Qt&&(o.mode<Ef||t!==fb))&&t6(e,e.output,e.next_out,h-e.avail_out),c-=e.avail_in,h-=e.avail_out,e.total_in+=c,e.total_out+=h,o.total+=h,o.wrap&4&&h&&(e.adler=o.check=o.flags?yo(o.check,r,h,e.next_out-h):hs(o.check,r,h,e.next_out-h)),e.data_type=o.bits+(o.last?64:0)+(o.mode===ur?128:0)+(o.mode===ku||o.mode===Sf?256:0),(c===0&&h===0||t===fb)&&A===ji&&(A=LK),A},qK=e=>{if(oa(e))return Cn;let t=e.state;return t.window&&(t.window=null),e.state=null,ji},ZK=(e,t)=>{if(oa(e))return Cn;const o=e.state;return o.wrap&2?(o.head=t,t.done=!1,ji):Cn},XK=(e,t)=>{const o=t.length;let n,r,i;return oa(e)||(n=e.state,n.wrap!==0&&n.mode!==cd)?Cn:n.mode===cd&&(r=1,r=hs(r,t,o,0),r!==n.check)?GS:(i=t6(e,t,o,o),i?(n.mode=ZS,qS):(n.havedict=1,ji))};var YK=QS,QK=JS,JK=YS,eG=UK,tG=e6,oG=GK,nG=qK,rG=ZK,iG=XK,aG="pako inflate (from Nodeca project)",hr={inflateReset:YK,inflateReset2:QK,inflateResetKeep:JK,inflateInit:eG,inflateInit2:tG,inflate:oG,inflateEnd:nG,inflateGetHeader:rG,inflateSetDictionary:iG,inflateInfo:aG};function lG(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var sG=lG;const o6=Object.prototype.toString,{Z_NO_FLUSH:uG,Z_FINISH:dG,Z_OK:gs,Z_STREAM_END:Ff,Z_NEED_DICT:Rf,Z_STREAM_ERROR:cG,Z_DATA_ERROR:zb,Z_MEM_ERROR:fG}=ta;function Ws(e){this.options=tc.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new jS,this.strm.avail_out=0;let o=hr.inflateInit2(this.strm,t.windowBits);if(o!==gs)throw new Error(Ni[o]);if(this.header=new sG,hr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ms.string2buf(t.dictionary):o6.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(o=hr.inflateSetDictionary(this.strm,t.dictionary),o!==gs)))throw new Error(Ni[o])}Ws.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let i,a,l;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?dG:uG,o6.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(o.avail_out===0&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),i=hr.inflate(o,a),i===Rf&&r&&(i=hr.inflateSetDictionary(o,r),i===gs?i=hr.inflate(o,a):i===zb&&(i=Rf));o.avail_in>0&&i===Ff&&o.state.wrap>0&&e[o.next_in]!==0;)hr.inflateReset(o),i=hr.inflate(o,a);switch(i){case cG:case zb:case Rf:case fG:return this.onEnd(i),this.ended=!0,!1}if(l=o.avail_out,o.next_out&&(o.avail_out===0||i===Ff))if(this.options.to==="string"){let s=ms.utf8border(o.output,o.next_out),u=o.next_out-s,d=ms.buf2string(o.output,s);o.next_out=u,o.avail_out=n-u,u&&o.output.set(o.output.subarray(s,s+u),0),this.onData(d)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(!(i===gs&&l===0)){if(i===Ff)return i=hr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(o.avail_in===0)break}}return!0};Ws.prototype.onData=function(e){this.chunks.push(e)};Ws.prototype.onEnd=function(e){e===gs&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=tc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Sm(e,t){const o=new Ws(t);if(o.push(e),o.err)throw o.msg||Ni[o.err];return o.result}function hG(e,t){return t=t||{},t.raw=!0,Sm(e,t)}var pG=Ws,mG=Sm,gG=hG,vG=Sm,bG=ta,xG={Inflate:pG,inflate:mG,inflateRaw:gG,ungzip:vG,constants:bG};const{Deflate:yG,deflate:CG,deflateRaw:wG,gzip:SG}=FK,{Inflate:EG,inflate:kG,inflateRaw:_G,ungzip:FG}=xG;var RG=yG,$G=CG,PG=wG,MG=SG,AG=EG,BG=kG,DG=_G,TG=FG,IG=ta,La={Deflate:RG,deflate:$G,deflateRaw:PG,gzip:MG,Inflate:AG,inflate:BG,inflateRaw:DG,ungzip:TG,constants:IG};function bl(e){const t=Hs(),o=It({moduleEmbeddedRules:ya(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]),currentEmbeddedRules:ya(t.customConfigEmbeddedRulesList[e]||(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]))||{},moduleFixedOrientation:ya(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]),currentFixedOrientation:ya(t.customConfigFixedOrientationList[e]||(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]))||{}});return{...b1(o)}}const n6=e=>{const t=/^[a-zA-Z0-9_.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},zG=e=>{const t=/^[a-zA-Z0-9_:,.*-]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},OG=e=>{const t=/^[a-zA-Z0-9_,.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},LG={class:"mb-4"},HG={class:"mb-4"},NG={class:"mb-4"},VG={class:"mb-4"},jG={class:"mb-4"},WG={class:"mb-4"},Ob=xe({__name:"EmbeddedAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=M(null),r=e,i=M(!1),a=St(),l=Hs(),s=ui(),u=T(()=>({theme:a.isDarkMode?oo:Kt})),{message:d,modal:c}=lo(["message","modal"],{configProviderProps:u});let h,f;const p=[{label:"强制应用所有界面横屏[nra:cr:rcr:nr]",key:"fullScreen_nra:cr:rcr:nr",rule:"nra:cr:rcr:nr"},{label:"继承应用自身设置横屏[*]",key:"fullScreen_*",rule:"*"},{label:"自定义",key:"fullScreen_custom"}],g=T(()=>{const Y=[{label:"默认横屏规则",key:"fullScreen_default",rule:""}];return a.MIOSVersion&&a.MIOSVersion>=2?[...Y,...p]:p}),v=[{label:"大尺寸[11:10]",key:"ratio_11_10",ratio:1.1},{label:"中尺寸",key:"ratio_default"},{label:"小尺寸[15:10]",key:"ratio_15_10",ratio:1.5},{label:"小尺寸[18:10]",key:"ratio_18:10",ratio:1.8},{label:"自定义",key:"ratio_custom"}],b=M(g.value[0]),x=M(),E=M(!0),y=M(),k=M(),F=M(v[1]),C=M(),A=M(.5),P=M(!1),B=M(!1),W=M([]),N=Y=>{const q=document.querySelector(".n-drawer-content");q instanceof HTMLElement&&(s.info("resizeDrawerContent",Y),q.style.height=Y?"calc(100% + 200px)":"100%")},K=Y=>{var q;N(!0),(q=n.value)==null||q.$el.scrollIntoView({behavior:"smooth",block:"start"})},H=Y=>{var q;N(!1),(q=n.value)==null||q.$el.scrollIntoView({behavior:"smooth",block:"start"})},I=M({openDrawer:Y=>new Promise((q,Se)=>{var je,U,te,ge,we,le,re;if(r.type==="update"&&!Y){Se(new Error("更新模式下必须传入初始化参数")),d.error("初始化参数不能为空");return}h=q,f=Se,r.type==="add"&&(k.value="add",b.value=g.value[0],he.value="",x.value=a.MIOSVersion&&a.MIOSVersion>=2?"":"nra:cr:rcr:nr",W.value=["fullScreen","fixedOrientation","disabled"],j.value=!1,ue.value=!1,P.value=!1),r.type==="update"&&Y&&(k.value="update",B.value=!1,A.value=.5,y.value=Y.ruleMode,he.value=Y.name,pe.value=Y.isSupportEmbedded,Y.embeddedRules&&Y.embeddedRules.hasOwnProperty("splitRatio")&&(A.value=Y.embeddedRules.splitRatio??.5),Y.embeddedRules&&Y.embeddedRules.hasOwnProperty("relaunch")?j.value=!!Y.embeddedRules.relaunch:j.value=!0,_.value=Y.settingMode,oe.value=((je=Y.fixedOrientationRule)==null?void 0:je.disable)??!1,G.value=((U=Y.fixedOrientationRule)==null?void 0:U.isShowDivider)??!1,x.value=((te=Y.embeddedRules)==null?void 0:te.fullRule)??void 0,P.value=((we=(ge=Y.fixedOrientationRule)==null?void 0:ge.compatChange)==null?void 0:we.split(",").includes("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"))??!1,x.value==="nra:cr:rcr:nr"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[1]:g.value[0]:Y.embeddedRules&&!Y.embeddedRules.hasOwnProperty("fullRule")?(x.value=a.MIOSVersion&&a.MIOSVersion>=2?void 0:"nra:cr:rcr:nr",b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[0]:g.value[1]):x.value==="*"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[2]:g.value[1]:b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[3]:g.value[2],E.value=((le=Y.embeddedRules)==null?void 0:le.supportFullSize)??!1,Y.fixedOrientationRule&&Y.fixedOrientationRule.hasOwnProperty("relaunch")?j.value=!!Y.fixedOrientationRule.relaunch:j.value=!1,C.value=((re=Y.fixedOrientationRule)==null?void 0:re.ratio)??void 0,C.value?C.value===1.1?F.value=v[0]:C.value===1.5?F.value=v[2]:C.value===1.8?F.value=v[3]:F.value=v[4]:F.value=v[1]),i.value=!0}),closeDrawer:()=>{i.value=!1,f("Drawer closed without submission")}}),O=(Y,q)=>{b.value=q,x.value=["fullScreen_nra:cr:rcr:nr","fullScreen_*"].includes(Y)?q.rule:void 0},R=(Y,q)=>{F.value=q,C.value=["ratio_11_10","ratio_15_10","ratio_18:10"].includes(Y)?q.ratio:Y==="ratio_custom"?1.5:void 0},z=({focused:Y,checked:q})=>{const Se={};return q?(Se.background="#2080f0",Y&&(Se.boxShadow="0 0 0 2px #2080f040")):(Se.background="#d03050",Y&&(Se.boxShadow="0 0 0 2px #d0305040")),Se},_=M("fullScreen"),oe=M(!1),G=M(!0),j=M(!0),ue=M(!1),he=M(""),_e=M(""),pe=M(!1),fe=async()=>{if(!he.value){c.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>w("p",null,[$("噫?应用包名不能为空(敲")])});return}if(_.value==="fullScreen"&&!x.value&&(!a.MIOSVersion||a.MIOSVersion<2)){c.create({title:"应用全屏规则不能为空",type:"error",preset:"dialog",content:()=>w("p",null,[$("噫?应用全屏规则不能为空(敲")])});return}if(r.type==="add"&&l.allPackageName.has(he.value)){c.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>w("p",null,[$("噫?这个应用包名已经存在列表中了(敲")])});return}if(r.type==="update"&&pe.value&&_.value==="fullScreen"){const[je]=await $e(new Promise((U,te)=>{c.create({title:"确认使用全屏规则吗?",type:"warning",preset:"dialog",content:()=>y.value==="custom"?w("p",null,[$("当前应用已存在")," ",w("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平行窗口的自定义规则")])," ",$(",继续提交可能导致")," ",w("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平行窗口的自定义规则")])," ",$("丢失。确定要继续吗?")]):w("p",null,[$("当前应用已存在")," ",w("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平行窗口的模块规则")])," ",$(",继续更新将会被更替为")," ",w("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("全屏规则")])," ",$(",如后续需要改回")," ",w("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平行窗口的模块规则")])," ",$("可能需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{U("positiveClick")},onNegativeClick:()=>{te("negativeClick")}})}));if(je)return}if(r.type==="update"&&y.value==="module"&&B.value){const[je]=await $e(new Promise((U,te)=>{c.create({title:"确认使用平行窗口自定义规则吗?",type:"warning",preset:"dialog",content:()=>w("p",null,[$("当前应用已存在")," ",w("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平行窗口的模块规则")])," ",$(",继续更新将会被更替为")," ",w("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平行窗口的自定义规则")])," ",$(",且该应用规则不再随模块版本更新,如后续需要改回")," ",w("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平行窗口的模块规则")])," ",$("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{U("positiveClick")},onNegativeClick:()=>{te("negativeClick")}})}));if(je)return}Ce.value=!0;const Y=()=>{Ce.value=!1,i.value=!1},q=()=>{Ce.value=!1},Se={name:he.value,settingMode:_.value,modePayload:{..._.value==="fullScreen"&&{fullRule:x.value},..._.value==="fullScreen"&&(!a.MIOSVersion||a.MIOSVersion<2)&&{skipSelfAdaptive:oe.value},..._.value==="fullScreen"&&{isShowDivider:G.value},..._.value==="fullScreen"&&{supportFullSize:E.value},..._.value==="fixedOrientation"&&{ratio:C.value},..._.value==="fixedOrientation"&&{foRelaunch:j.value},..._.value==="fixedOrientation"&&a.MIOSVersion&&a.MIOSVersion>=2&&{forceFixedOrientation:P.value},..._.value==="embedded"&&(y.value==="custom"||y.value==="module"&&B.value)&&{splitRatio:A.value},..._.value==="embedded"&&(y.value==="custom"||y.value==="module"&&B.value)&&{emRelaunch:ue.value}},loadingCallback:q,closeCallback:Y};h(Se)},Ce=M(!1);return t({openDrawer:I.value.openDrawer}),(Y,q)=>{const Se=lt("n-input-group-label"),je=lt("n-input"),U=lt("n-input-group"),te=lt("n-tag"),ge=lt("n-alert"),we=lt("n-switch"),le=lt("n-card"),re=lt("n-slider"),ce=lt("n-input-number"),ee=lt("n-tab-pane"),ie=lt("n-button"),de=lt("n-dropdown"),ae=lt("n-tabs"),X=lt("n-drawer-content"),se=lt("n-drawer");return Re(),Ie(ft,null,[xs(Y.$slots,"default",qb(np({openDrawer:I.value.openDrawer}))),w(se,{show:i.value,"onUpdate:show":q[21]||(q[21]=ve=>i.value=ve),width:S(a).windowWidth>=640?"450px":"100%",placement:"right"},{default:ne(()=>[w(X,{title:r.title,closable:""},{footer:ne(()=>[w(ie,{type:"info",loading:Ce.value,"onUpdate:loading":q[19]||(q[19]=ve=>Ce.value=ve),onClick:q[20]||(q[20]=()=>fe())},{default:ne(()=>q[54]||(q[54]=[$(" 提交 ")])),_:1},8,["loading"])]),default:ne(()=>[w(U,null,{default:ne(()=>[w(Se,{size:"large"},{default:ne(()=>q[22]||(q[22]=[$("应用包名")])),_:1}),w(je,{size:"large",status:_e.value,value:he.value,"onUpdate:value":q[0]||(q[0]=ve=>he.value=ve),"allow-input":ve=>n6(ve),readonly:r.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),y.value==="custom"?(Re(),Lt(ge,{key:0,type:"info",class:"mt-5"},{default:ne(()=>[q[25]||(q[25]=$(" 当前应用已被 ")),w(te,{bordered:!1,type:"info"},{default:ne(()=>q[23]||(q[23]=[$("自定义规则")])),_:1}),q[26]||(q[26]=$(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),w(te,{bordered:!1,type:"info"},{default:ne(()=>q[24]||(q[24]=[$("自定义规则")])),_:1}),q[27]||(q[27]=$(" 。 "))]),_:1})):Je("",!0),w(ae,{class:"my-3",type:"segment",animated:"",value:_.value,"onUpdate:value":q[18]||(q[18]=ve=>_.value=ve)},{default:ne(()=>[r.type==="update"&&pe.value?(Re(),Lt(ee,{key:0,name:"embedded",tab:"平行窗口"},{default:ne(()=>[w(ge,{"show-icon":!1,bordered:!1,title:"应用分屏显示",type:"success"},{default:ne(()=>q[28]||(q[28]=[$(" 开启后,未适配横屏应用界面将通过平行窗口显示 ")])),_:1}),y.value==="module"?(Re(),Lt(le,{key:0,bordered:!1,title:"切换自定义规则",size:"small"},{default:ne(()=>[L("div",LG,[w(te,{bordered:!1,type:"info"},{default:ne(()=>q[29]||(q[29]=[$(" 切换为自定义规则后该应用不再随模块更新 ")])),_:1})]),w(we,{"rail-style":z,value:B.value,"onUpdate:value":q[1]||(q[1]=ve=>B.value=ve),size:"large"},{checked:ne(()=>q[30]||(q[30]=[$("使用自定义规则")])),unchecked:ne(()=>q[31]||(q[31]=[$("不使用自定义规则")])),_:1},8,["value"])]),_:1})):Je("",!0),y.value==="custom"||B.value?(Re(),Lt(le,{key:1,bordered:!1,title:"平行窗口默认分屏比例",size:"small"},{default:ne(()=>[w(re,{value:A.value,"onUpdate:value":q[2]||(q[2]=ve=>A.value=ve),size:"small",min:.01,max:.99,step:.01},null,8,["value"]),w(ce,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入平行窗口默认分屏比例",value:A.value,"onUpdate:value":q[3]||(q[3]=ve=>A.value=ve),min:.01,max:.99,step:.01},null,8,["value"])]),_:1})):Je("",!0),y.value==="custom"||B.value?(Re(),Lt(le,{key:2,bordered:!1,title:"平行窗口显示比例发生变化时是否重载",size:"small"},{default:ne(()=>[L("div",HG,[w(te,{bordered:!1,type:"success"},{default:ne(()=>q[32]||(q[32]=[$(" 适用于开启 "),L("span",{class:"font-bold"},"平行窗口滑动条",-1),$(" 的应用 ")])),_:1})]),w(we,{"rail-style":z,value:ue.value,"onUpdate:value":q[4]||(q[4]=ve=>ue.value=ve),size:"large"},{checked:ne(()=>q[33]||(q[33]=[$("平行窗口显示比例变化时重载")])),unchecked:ne(()=>q[34]||(q[34]=[$("平行窗口显示比例变化时不重载")])),_:1},8,["value"])]),_:1})):Je("",!0)]),_:1})):Je("",!0),w(ee,{name:"fullScreen",tab:"全屏"},{default:ne(()=>[w(ge,{"show-icon":!1,bordered:!1,title:"应用横屏显示",type:"info"},{default:ne(()=>q[35]||(q[35]=[$(" 开启后,未适配横屏应用界面将全屏显示,并可更改显示规则 ")])),_:1}),w(le,{bordered:!1,title:"横屏显示规则",size:"small"},{default:ne(()=>[w(de,{modelValue:b.value,"onUpdate:modelValue":q[5]||(q[5]=ve=>b.value=ve),size:"large",trigger:"click",options:g.value,onSelect:O},{default:ne(()=>[w(ie,{block:"",type:"info",dashed:""},{default:ne(()=>[$(it(b.value.label),1)]),_:1})]),_:1},8,["modelValue","options"])]),_:1}),b.value.key==="fullScreen_custom"?(Re(),Lt(le,{key:0,bordered:!1,title:"自定义横屏规则",size:"small"},{default:ne(()=>[w(U,null,{default:ne(()=>[w(je,{ref_key:"currentFullRuleRef",ref:n,onFocus:q[6]||(q[6]=()=>K("currentFullRuleRef")),onBlur:q[7]||(q[7]=()=>H("currentFullRuleRef")),value:x.value,"onUpdate:value":q[8]||(q[8]=ve=>x.value=ve),placeholder:"请输入横屏规则"},null,8,["value"])]),_:1})]),_:1})):Je("",!0),!S(a).MIOSVersion||S(a).MIOSVersion<2?(Re(),Lt(le,{key:1,class:"",bordered:!1,title:"跳过应用自适配声明",size:"small"},{default:ne(()=>[L("div",NG,[w(te,{bordered:!1,type:"success"},{default:ne(()=>q[36]||(q[36]=[$(" 适用于即使设置了 "),L("span",{class:"font-bold"},"横屏规则",-1),$(" 仍无法横屏的应用 ")])),_:1})]),w(we,{"rail-style":z,value:oe.value,"onUpdate:value":q[9]||(q[9]=ve=>oe.value=ve),size:"large"},{checked:ne(()=>q[37]||(q[37]=[$("跳过自适配声明")])),unchecked:ne(()=>q[38]||(q[38]=[$("不跳过自适配声明")])),_:1},8,["value"])]),_:1})):Je("",!0),w(le,{bordered:!1,title:"平行窗口滑动条",size:"small"},{default:ne(()=>[L("div",VG,[w(te,{bordered:!1,type:"success"},{default:ne(()=>q[39]||(q[39]=[$(" 适用于原生适配 "),L("span",{class:"font-bold"},"Android Embedded",-1),$(" 的应用 ")])),_:1})]),w(we,{"rail-style":z,value:G.value,"onUpdate:value":q[10]||(q[10]=ve=>G.value=ve),size:"large"},{checked:ne(()=>q[40]||(q[40]=[$("启用平行窗口滑动条")])),unchecked:ne(()=>q[41]||(q[41]=[$("关闭平行窗口滑动条")])),_:1},8,["value"])]),_:1}),G.value?(Re(),Lt(le,{key:2,bordered:!1,title:"平行窗口可滑动至全屏",size:"small"},{default:ne(()=>[L("div",jG,[w(te,{bordered:!1,type:"success"},{default:ne(()=>q[42]||(q[42]=[$(" 适用于原生适配 "),L("span",{class:"font-bold"},"Android Embedded",-1),$(" 的应用 ")])),_:1})]),w(we,{"rail-style":z,value:E.value,"onUpdate:value":q[11]||(q[11]=ve=>E.value=ve),size:"large"},{checked:ne(()=>q[43]||(q[43]=[$("平行窗口可滑动至全屏")])),unchecked:ne(()=>q[44]||(q[44]=[$("平行窗口不可滑动至全屏")])),_:1},8,["value"])]),_:1})):Je("",!0)]),_:1}),w(ee,{name:"fixedOrientation",tab:"居中布局"},{default:ne(()=>[w(ge,{"show-icon":!1,bordered:!1,title:"应用居中显示",type:"warning"},{default:ne(()=>q[45]||(q[45]=[$(" 开启后,未适配横屏应用界面将居中显示,并可更改显示比例 ")])),_:1}),w(le,{bordered:!1,title:"居中显示比例",size:"small"},{default:ne(()=>[w(de,{value:F.value,"onUpdate:value":q[12]||(q[12]=ve=>F.value=ve),size:"large",trigger:"click",options:v,onSelect:R},{default:ne(()=>[w(ie,{block:"",type:"error",dashed:""},{default:ne(()=>[$(it(F.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),F.value.key==="ratio_custom"?(Re(),Lt(le,{key:0,bordered:!1,title:"自定义显示比例",size:"small"},{default:ne(()=>[w(re,{size:"small",value:C.value,"onUpdate:value":q[13]||(q[13]=ve=>C.value=ve),min:1.01,max:1.99,step:.01},null,8,["value"]),w(ce,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入自定义显示比例",value:C.value,"onUpdate:value":q[14]||(q[14]=ve=>C.value=ve),min:1.01,max:1.99,step:.01},null,8,["value"])]),_:1})):Je("",!0),w(le,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:ne(()=>[w(we,{"rail-style":z,value:j.value,"onUpdate:value":q[15]||(q[15]=ve=>j.value=ve),size:"large"},{checked:ne(()=>q[46]||(q[46]=[$("应用比例变化时重载应用")])),unchecked:ne(()=>q[47]||(q[47]=[$("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1}),S(a).MIOSVersion&&S(a).MIOSVersion>=2?(Re(),Lt(le,{key:1,class:"",bordered:!1,title:"强制应用居中显示",size:"small"},{default:ne(()=>[L("div",WG,[w(te,{bordered:!1,type:"success"},{default:ne(()=>q[48]||(q[48]=[$(" 适用于即使设置了 "),L("span",{class:"font-bold"},"居中布局",-1),$(" 仍无法居中显示的应用 ")])),_:1})]),w(we,{"rail-style":z,value:P.value,"onUpdate:value":q[16]||(q[16]=ve=>P.value=ve),size:"large"},{checked:ne(()=>q[49]||(q[49]=[$("强制应用居中显示")])),unchecked:ne(()=>q[50]||(q[50]=[$("不强制应用居中显示")])),_:1},8,["value"])]),_:1})):Je("",!0)]),_:1}),w(ee,{name:"disabled",tab:"原始布局"},{default:ne(()=>[w(ge,{"show-icon":!1,bordered:!1,title:"应用原始布局",type:"error"},{default:ne(()=>q[51]||(q[51]=[$(" 开启后,将禁用任何系统规则干预,应用会根据自身的适配规则进行显示,大多数应用仅竖屏显示 ")])),_:1}),w(le,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:ne(()=>[w(we,{"rail-style":z,value:j.value,"onUpdate:value":q[17]||(q[17]=ve=>j.value=ve),size:"large"},{checked:ne(()=>q[52]||(q[52]=[$("应用比例变化时重载应用")])),unchecked:ne(()=>q[53]||(q[53]=[$("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["value"])]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function r6(){const e=St(),t=M(!1),o=()=>new Promise(async(n,r)=>{if(t.value)r("已经有存在的任务了!");else{t.value=!0;const[i,a]=await $e(zN());if(i&&(r(i),t.value=!1),a){const l=a.trim().split(` +`).filter(u=>u),s={};l.forEach(u=>{const[,d,c]=u.split(",");s[d]=c}),e.installedAppNameList=s,n(s),t.value=!1}}});return{loading:t,installedAppNameList:e.installedAppNameList,getList:o}}function UG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-.53 14.03a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72V8.25a.75.75 0 0 0-1.5 0v5.69l-1.72-1.72a.75.75 0 0 0-1.06 1.06l3 3Z","clip-rule":"evenodd"})])}function KG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M12 7.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z"}),L("path",{"fill-rule":"evenodd",d:"M1.5 4.875C1.5 3.839 2.34 3 3.375 3h17.25c1.035 0 1.875.84 1.875 1.875v9.75c0 1.036-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 14.625v-9.75ZM8.25 9.75a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM18.75 9a.75.75 0 0 0-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 0 0 .75-.75V9.75a.75.75 0 0 0-.75-.75h-.008ZM4.5 9.75A.75.75 0 0 1 5.25 9h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H5.25a.75.75 0 0 1-.75-.75V9.75Z","clip-rule":"evenodd"}),L("path",{d:"M2.25 18a.75.75 0 0 0 0 1.5c5.4 0 10.63.722 15.6 2.075 1.19.324 2.4-.558 2.4-1.82V18.75a.75.75 0 0 0-.75-.75H2.25Z"})])}function GG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z"}),L("path",{"fill-rule":"evenodd",d:"M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z","clip-rule":"evenodd"})])}function qG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z","clip-rule":"evenodd"})])}function ZG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z","clip-rule":"evenodd"})])}function i6(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 0 0-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 0 0-2.282.819l-.922 1.597a1.875 1.875 0 0 0 .432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 0 0 0 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 0 0-.432 2.385l.922 1.597a1.875 1.875 0 0 0 2.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 0 0 2.28-.819l.923-1.597a1.875 1.875 0 0 0-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 0 0 0-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 0 0-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 0 0-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 0 0-1.85-1.567h-1.843ZM12 15.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z","clip-rule":"evenodd"})])}function XG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M16.5 7.5h-9v9h9v-9Z"}),L("path",{"fill-rule":"evenodd",d:"M8.25 2.25A.75.75 0 0 1 9 3v.75h2.25V3a.75.75 0 0 1 1.5 0v.75H15V3a.75.75 0 0 1 1.5 0v.75h.75a3 3 0 0 1 3 3v.75H21A.75.75 0 0 1 21 9h-.75v2.25H21a.75.75 0 0 1 0 1.5h-.75V15H21a.75.75 0 0 1 0 1.5h-.75v.75a3 3 0 0 1-3 3h-.75V21a.75.75 0 0 1-1.5 0v-.75h-2.25V21a.75.75 0 0 1-1.5 0v-.75H9V21a.75.75 0 0 1-1.5 0v-.75h-.75a3 3 0 0 1-3-3v-.75H3A.75.75 0 0 1 3 15h.75v-2.25H3a.75.75 0 0 1 0-1.5h.75V9H3a.75.75 0 0 1 0-1.5h.75v-.75a3 3 0 0 1 3-3h.75V3a.75.75 0 0 1 .75-.75ZM6 6.75A.75.75 0 0 1 6.75 6h10.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V6.75Z","clip-rule":"evenodd"})])}function a6(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm0 8.625a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM15.375 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0ZM7.5 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z","clip-rule":"evenodd"})])}function YG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),L("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),L("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})])}function QG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M1.5 5.625c0-1.036.84-1.875 1.875-1.875h17.25c1.035 0 1.875.84 1.875 1.875v12.75c0 1.035-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 18.375V5.625Zm1.5 0v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5A.375.375 0 0 0 3 5.625Zm16.125-.375a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5A.375.375 0 0 0 21 7.125v-1.5a.375.375 0 0 0-.375-.375h-1.5ZM21 9.375A.375.375 0 0 0 20.625 9h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5ZM4.875 18.75a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5ZM3.375 15h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375Zm0-3.75h1.5a.375.375 0 0 0 .375-.375v-1.5A.375.375 0 0 0 4.875 9h-1.5A.375.375 0 0 0 3 9.375v1.5c0 .207.168.375.375.375Zm4.125 0a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 0-1.5h-9Z","clip-rule":"evenodd"})])}function l6(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M3.792 2.938A49.069 49.069 0 0 1 12 2.25c2.797 0 5.54.236 8.209.688a1.857 1.857 0 0 1 1.541 1.836v1.044a3 3 0 0 1-.879 2.121l-6.182 6.182a1.5 1.5 0 0 0-.439 1.061v2.927a3 3 0 0 1-1.658 2.684l-1.757.878A.75.75 0 0 1 9.75 21v-5.818a1.5 1.5 0 0 0-.44-1.06L3.13 7.938a3 3 0 0 1-.879-2.121V4.774c0-.897.64-1.683 1.542-1.836Z","clip-rule":"evenodd"})])}function JG(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M1.5 4.5a3 3 0 0 1 3-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 0 1-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 0 0 6.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 0 1 1.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 0 1-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5Z","clip-rule":"evenodd"})])}function Em(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function eq(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M8.128 9.155a3.751 3.751 0 1 1 .713-1.321l1.136.656a.75.75 0 0 1 .222 1.104l-.006.007a.75.75 0 0 1-1.032.157 1.421 1.421 0 0 0-.113-.072l-.92-.531Zm-4.827-3.53a2.25 2.25 0 0 1 3.994 2.063.756.756 0 0 0-.122.23 2.25 2.25 0 0 1-3.872-2.293ZM13.348 8.272a5.073 5.073 0 0 0-3.428 3.57 5.08 5.08 0 0 0-.165 1.202 1.415 1.415 0 0 1-.707 1.201l-.96.554a3.751 3.751 0 1 0 .734 1.309l13.729-7.926a.75.75 0 0 0-.181-1.374l-.803-.215a5.25 5.25 0 0 0-2.894.05l-5.325 1.629Zm-9.223 7.03a2.25 2.25 0 1 0 2.25 3.897 2.25 2.25 0 0 0-2.25-3.897ZM12 12.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"}),L("path",{d:"M16.372 12.615a.75.75 0 0 1 .75 0l5.43 3.135a.75.75 0 0 1-.182 1.374l-.802.215a5.25 5.25 0 0 1-2.894-.051l-5.147-1.574a.75.75 0 0 1-.156-1.367l3-1.732Z"})])}function tq(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M5.507 4.048A3 3 0 0 1 7.785 3h8.43a3 3 0 0 1 2.278 1.048l1.722 2.008A4.533 4.533 0 0 0 19.5 6h-15c-.243 0-.482.02-.715.056l1.722-2.008Z"}),L("path",{"fill-rule":"evenodd",d:"M1.5 10.5a3 3 0 0 1 3-3h15a3 3 0 1 1 0 6h-15a3 3 0 0 1-3-3Zm15 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm2.25.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM4.5 15a3 3 0 1 0 0 6h15a3 3 0 1 0 0-6h-15Zm11.25 3.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM19.5 18a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z","clip-rule":"evenodd"})])}function oq(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M4.08 5.227A3 3 0 0 1 6.979 3H17.02a3 3 0 0 1 2.9 2.227l2.113 7.926A5.228 5.228 0 0 0 18.75 12H5.25a5.228 5.228 0 0 0-3.284 1.153L4.08 5.227Z"}),L("path",{"fill-rule":"evenodd",d:"M5.25 13.5a3.75 3.75 0 1 0 0 7.5h13.5a3.75 3.75 0 1 0 0-7.5H5.25Zm10.5 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm3.75-.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z","clip-rule":"evenodd"})])}function nq(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M6 3a3 3 0 0 0-3 3v1.5a.75.75 0 0 0 1.5 0V6A1.5 1.5 0 0 1 6 4.5h1.5a.75.75 0 0 0 0-1.5H6ZM16.5 3a.75.75 0 0 0 0 1.5H18A1.5 1.5 0 0 1 19.5 6v1.5a.75.75 0 0 0 1.5 0V6a3 3 0 0 0-3-3h-1.5ZM12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5ZM4.5 16.5a.75.75 0 0 0-1.5 0V18a3 3 0 0 0 3 3h1.5a.75.75 0 0 0 0-1.5H6A1.5 1.5 0 0 1 4.5 18v-1.5ZM21 16.5a.75.75 0 0 0-1.5 0V18a1.5 1.5 0 0 1-1.5 1.5h-1.5a.75.75 0 0 0 0 1.5H18a3 3 0 0 0 3-3v-1.5Z"})])}function rq(e,t){return Re(),Ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}function km(e){let t="",o=new Uint8Array(e),n=o.byteLength;for(let r=0;r<n;r++)t+=String.fromCharCode(o[r]);return window.btoa(t)}function _m(e){const t=window.atob(e),o=t.length,n=new Uint8Array(o);for(let r=0;r<o;r++)n[r]=t.charCodeAt(r);return n}const iq={class:"mb-10"},aq={class:"mt-3"},lq={class:"mb-3 px-4 sm:px-0"},sq={class:"flex flex-wrap"},uq={class:"flex"},dq={class:"flex"},cq=xe({__name:"HomeView",setup(e){const t=M(""),o=r6(),n=St(),r=Hs(),i=ui(),a=M(!1),l=M(!1),s=M(null),u=M(null),d=M(null),c=T(()=>({theme:n.isDarkMode?oo:Kt})),{message:h,modal:f,notification:p}=lo(["message","modal","notification"],{configProviderProps:c}),g=I(),v=M(!1),b=M(null);function x(O){return()=>m(Wt,null,{default:()=>m(O)})}const E=async()=>{const[O,R]=await $e(o.getList());O&&f.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>w("p",null,[$("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),R&&f.create({title:"获取成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},y=()=>{r.filterInstalledApps=!r.filterInstalledApps};at(()=>r.isNeedShowErrorModal,(O,R)=>{O&&(v.value=!0)},{immediate:!1});const k=async()=>{await n.getAndroidApplicationPackageNameList(),await r.initDefault()},F=async()=>{t.value="";const[,O]=await $e(new Promise((R,z)=>{f.create({title:"请粘贴分享规则口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:t.value,"onUpdate:value":_=>{t.value=_},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){R("positiveClick")}})}));if(O){a.value=!0;const R=t.value,z=dm(R);if(!(z!=null&&z.length)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入分享规则失败了QwQ,解析")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("口令发生错误,无法正常解析。")]),negativeText:"确定"}),a.value=!1;return}try{const _=_m(z),oe=La.inflate(_,{to:"string"}),G=JSON.parse(oe);if(G.type!=="embedded"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入分享规则失败了QwQ,该")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("不适用于应用横屏布局。")]),negativeText:"确定"}),a.value=!1;return}if(G.device==="pad"&&n.deviceCharacteristics!=="tablet"||G.device==="fold"&&n.deviceCharacteristics==="tablet"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),a.value=!1;return}if(G.comp===1&&n.MIOSVersion&&n.MIOSVersion>1){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入分享规则失败了QwQ,该")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("仅兼容Android 13 - 14 的小米机型。")]),negativeText:"确定"}),a.value=!1;return}if(G.comp===2&&(!n.MIOSVersion||n.MIOSVersion===1)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入分享规则失败了QwQ,该")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("仅兼容Hyper OS 2.0的小米机型。")]),negativeText:"确定"}),a.value=!1;return}r.customConfigEmbeddedRulesList[G.name]=G.em,r.customConfigFixedOrientationList[G.name]=G.fo,n.MIOSVersion&&n.MIOSVersion>=2?r.customConfigEmbeddedSettingConfig[G.name]={name:G.name,...df(r.customConfigEmbeddedRulesList[G.name],r.customConfigFixedOrientationList[G.name],G.mode)}:r.systemEmbeddedSettingConfig[G.name]={name:G.name,embeddedEnable:!!["embedded","fullScreen"].includes(G.mode)};const[j,ue]=await $e(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:G.name,action:bu(G.mode)}}:{switchAction:{name:G.name,action:["embedded","fullScreen"].includes(G.mode)?"enable":"disable"}}}));j?(f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),a.value=!1):(r.updateMergeRuleList(),await k(),a.value=!1,f.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(G.name,n.installedAppNameList[G.name]||r.applicationName[G.name])])," ",$("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平板专区-平行窗口")])," ",$("内")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(G.mode)?"打开":"关闭"])," ",$("该应用的开关再做尝试~")]),positiveText:"确定"}))}catch{f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),a.value=!1}}},C=It({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:O=>{C.page=O},onUpdatePageSize:O=>{C.pageSize=O,C.page=1}}),A=M(!1),P=async()=>{l.value=!0,await k();const[O,R]=await $e(Qd("miui_embedding_window"));O&&(f.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),l.value=!1),R&&(f.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),l.value=!1)},B=async()=>{await n.getAndroidApplicationPackageNameList(),A.value=!0;const[O,R]=await $e(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")}}));O?(f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),A.value=!1):(r.updateMergeRuleList(),A.value=!1,f.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("好耶w,已根据您设备当前的整体应用情况重新")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("修剪模块应用适配列表")])," ",$(",后续每次更新模块或者安装新的应用后,建议重新操作")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("生成定制应用数据")])," ",$("。")])]),negativeText:"确定"}))},W=async()=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(u.value){const[O,R]=await $e(u.value.openDrawer());if(O)console.log("操作取消:",O);else{R.settingMode==="fullScreen"&&(R.modePayload.fullRule&&(r.customConfigEmbeddedRulesList[R.name]={name:R.name,fullRule:R.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}),r.customConfigFixedOrientationList[R.name]={name:R.name,...R.modePayload.isShowDivider?{isShowDivider:!0}:{},...R.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...R.modePayload.supportFullSize?{supportFullSize:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"full"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}),R.settingMode==="fixedOrientation"&&(r.customConfigFixedOrientationList[R.name]={name:R.name,...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...R.modePayload.ratio!==void 0?{ratio:R.modePayload.ratio}:{},...R.modePayload.foRelaunch!==void 0?{relaunch:R.modePayload.foRelaunch}:{}}),R.settingMode==="disabled"&&(r.customConfigFixedOrientationList[R.name]={name:R.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...R.modePayload.foRelaunch!==void 0?{relaunch:R.modePayload.foRelaunch}:{}}),n.MIOSVersion&&n.MIOSVersion>=2?r.customConfigEmbeddedSettingConfig[R.name]={name:R.name,...df(r.customConfigEmbeddedRulesList[R.name],r.customConfigFixedOrientationList[R.name],R.settingMode)}:r.systemEmbeddedSettingConfig[R.name]={name:R.name,embeddedEnable:!!["embedded","fullScreen"].includes(R.settingMode)};const[z,_]=await $e(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:R.name,action:bu(R.settingMode)}}:{switchAction:{name:R.name,action:["embedded","fullScreen"].includes(R.settingMode)?"enable":"disable"}}}));z?(f.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(f.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(R.name,n.installedAppNameList[R.name]||r.applicationName[R.name])])," ",$("的应用配置添加成功了OwO~如果应用添加后的规则不生效,可以尝试重启平板并且在")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平板专区-平行窗口")])," ",$("内")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(R.settingMode)?"打开":"关闭"])," ",$("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},N=async(O,R)=>{var z;if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(d.value){i.info(JSON.stringify(O),"rowww");const[_,oe]=await $e(d.value.openDrawer(O));if(_)console.log("操作取消:",_);else{if(oe.settingMode==="fullScreen"){const{moduleEmbeddedRules:ue,currentEmbeddedRules:he,moduleFixedOrientation:_e,currentFixedOrientation:pe}=bl(O.name);he.value?(oe.modePayload.fullRule&&(he.value.fullRule=oe.modePayload.fullRule,he.value.skipSelfAdaptive=!0),n.MIOSVersion&&n.MIOSVersion>=2&&!oe.modePayload.fullRule&&he.value.fullRule&&delete he.value.fullRule,da(ue.value,he.value)||(r.customConfigEmbeddedRulesList[O.name]={name:O.name,...he.value})):oe.modePayload.fullRule?r.customConfigEmbeddedRulesList[O.name]={name:O.name,fullRule:oe.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}:n.MIOSVersion&&n.MIOSVersion>=2&&(r.customConfigEmbeddedRulesList[O.name]={name:O.name,skipSelfAdaptive:!0}),pe.value?(oe.modePayload.hasOwnProperty("isShowDivider")&&(pe.value.isShowDivider=oe.modePayload.isShowDivider),oe.modePayload.hasOwnProperty("supportFullSize")&&(pe.value.supportFullSize=oe.modePayload.supportFullSize),n.MIOSVersion&&n.MIOSVersion>=2?(pe.value.hasOwnProperty("disable")&&delete pe.value.disable,pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange):oe.modePayload.hasOwnProperty("skipSelfAdaptive")&&(pe.value.disable=oe.modePayload.skipSelfAdaptive),da(_e.value,pe.value)||(r.customConfigFixedOrientationList[O.name]={name:O.name,...pe.value})):r.customConfigFixedOrientationList[O.name]={name:O.name,...oe.modePayload.isShowDivider?{isShowDivider:!0}:{},...oe.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...oe.modePayload.supportFullSize?{supportFullSize:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"full"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(oe.settingMode==="fixedOrientation"){const{moduleEmbeddedRules:ue,currentEmbeddedRules:he,moduleFixedOrientation:_e,currentFixedOrientation:pe}=bl(O.name);if(pe.value){if(pe.value.hasOwnProperty("disable")&&delete pe.value.disable,pe.value.hasOwnProperty("isScale")&&delete pe.value.isScale,oe.modePayload.ratio!==void 0?pe.value.ratio=oe.modePayload.ratio:delete pe.value.ratio,oe.modePayload.foRelaunch!==void 0?pe.value.relaunch=oe.modePayload.foRelaunch:delete pe.value.relaunch,n.MIOSVersion&&n.MIOSVersion>=2)if(pe.value.supportModes="full,fo",pe.value.defaultSettings="fo",pe.value.skipSelfAdaptive=!0,oe.modePayload.hasOwnProperty("forceFixedOrientation")&&oe.modePayload.forceFixedOrientation)if(pe.value.compatChange){const Y=new Set((z=pe.value.compatChange)==null?void 0:z.split(","));Y.add("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"),pe.value.compatChange=[...Y].join(",")}else pe.value.compatChange="OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT";else pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange;da(_e.value,pe.value)||(r.customConfigFixedOrientationList[O.name]={name:O.name,...pe.value})}else r.customConfigFixedOrientationList[O.name]={name:O.name,...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2&&oe.modePayload.forceFixedOrientation?{compatChange:"OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"}:{},...oe.modePayload.ratio!==void 0?{ratio:oe.modePayload.ratio}:{},...oe.modePayload.foRelaunch!==void 0?{relaunch:oe.modePayload.foRelaunch}:{}}}if(oe.settingMode==="disabled"&&O.settingMode!==oe.settingMode){const{moduleEmbeddedRules:ue,currentEmbeddedRules:he,moduleFixedOrientation:_e,currentFixedOrientation:pe}=bl(O.name);pe.value?(pe.value.skipSelfAdaptive=!0,pe.value.disable=!0,pe.value.hasOwnProperty("compatChange")&&delete pe.value.compatChange,da(_e.value,pe.value)||(r.customConfigFixedOrientationList[O.name]={name:O.name,...pe.value})):r.customConfigFixedOrientationList[O.name]={name:O.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(oe.settingMode==="embedded"){if(O.settingMode!==oe.settingMode&&O.ruleMode==="custom"&&O.isSupportEmbedded&&delete r.customConfigEmbeddedRulesList[O.name],r.customConfigEmbeddedRulesList[O.name])oe.modePayload.hasOwnProperty("splitRatio")&&(r.customConfigEmbeddedRulesList[O.name].splitRatio=oe.modePayload.splitRatio),oe.modePayload.hasOwnProperty("relaunch")&&(r.customConfigEmbeddedRulesList[O.name].relaunch=oe.modePayload.emRelaunch);else{let ue=!1;oe.modePayload.hasOwnProperty("splitRatio")&&(ue=!0),oe.modePayload.hasOwnProperty("emRelaunch")&&(ue=!0),ue&&(r.customConfigEmbeddedRulesList[O.name]={...r.isPatchMode?r.patchEmbeddedRulesList[O.name]:r.sourceEmbeddedRulesList[O.name],...oe.modePayload.hasOwnProperty("splitRatio")&&{splitRatio:oe.modePayload.splitRatio},...oe.modePayload.hasOwnProperty("emRelaunch")&&{relaunch:oe.modePayload.emRelaunch}})}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:ue,currentEmbeddedRules:he,moduleFixedOrientation:_e,currentFixedOrientation:pe}=bl(O.name);pe.value&&(pe.hasOwnProperty("disable")&&delete pe.value.disable,pe.hasOwnProperty("defaultSettings")&&delete pe.value.defaultSettings,pe.hasOwnProperty("skipSelfAdaptive")||(pe.value.skipSelfAdaptive=!0),pe.hasOwnProperty("compatChange")&&delete pe.value.compatChange),pe.value&&(he.hasOwnProperty("skipSelfAdaptive")||(he.value.skipSelfAdaptive=!0)),da(ue.value,he.value)||(r.customConfigFixedOrientationList[O.name]={name:O.name,...pe.value}),da(_e.value,pe.value)||(r.customConfigEmbeddedRulesList[O.name]={name:O.name,...he.value})}}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:ue,currentEmbeddedRules:he,moduleFixedOrientation:_e,currentFixedOrientation:pe}=bl(O.name);O.settingMode!==oe.settingMode&&(r.customConfigEmbeddedSettingConfig[O.name]={name:O.name,...df(he.value,pe.value,oe.settingMode)})}else r.systemEmbeddedSettingConfig[O.name]={name:O.name,embeddedEnable:!!["embedded","fullScreen"].includes(oe.settingMode)};const[G,j]=await $e(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:O.name,action:bu(oe.settingMode)}}:{switchAction:{name:O.name,action:["embedded","fullScreen"].includes(oe.settingMode)?"enable":"disable"}}}));G?(f.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),oe.loadingCallback&&oe.loadingCallback()):(f.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(O.name,O.applicationName)])," ",$("的应用配置更新成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平板专区-平行窗口")])," ",$("内")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(oe.settingMode)?"打开":"关闭"])," ",$("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),oe.loadingCallback&&oe.loadingCallback(),oe.closeCallback&&oe.closeCallback())}}},K=async(O,R,z,_)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("该功能仅兼容平板设备,不兼容折叠屏设备!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,不兼容折叠屏设备!");return}if(O==="cleanCustomRule"){const oe=f.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>w("p",null,[$("清除自定义规则后,你对")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(z.name,z.applicationName)])," ",$("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("模块规则")])," ",$(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{oe.loading=!0,r.customConfigEmbeddedRulesList[z.name]&&delete r.customConfigEmbeddedRulesList[z.name],r.customConfigFixedOrientationList[z.name]&&delete r.customConfigFixedOrientationList[z.name],r.customConfigEmbeddedSettingConfig[z.name]&&delete r.customConfigEmbeddedSettingConfig[z.name];const[G,j]=await $e(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:z.name,action:bu(D2(r.isPatchMode?r.patchEmbeddedRulesList[z.name]:r.sourceEmbeddedRulesList[z.name],r.isPatchMode?r.patchFixedOrientationList[z.name]:r.sourceFixedOrientationList[z.name]))}}:{switchAction:{name:z.name,action:(r.isPatchMode?r.patchEmbeddedRulesList[z.name]:r.sourceEmbeddedRulesList[z.name])?"enable":"disable"}}}));G?(f.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),oe.loading=!1):(f.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),oe.loading=!1,r.updateMergeRuleList())}})}if(O==="shareCustomRule"){const oe={name:z.name,cmpt:n.MIOSVersion&&n.MIOSVersion>=2?2:1,em:{name:z.name,...z.embeddedRules},fo:{name:z.name,...z.fixedOrientationRule},type:"embedded",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:z.settingMode},G=JSON.stringify(oe),j=La.deflate(G,{level:9,memLevel:9,windowBits:15}),ue=new Uint8Array(j),he=km(ue),[_e]=await $e(navigator.clipboard.writeText(`我分享了一个[应用横屏布局]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +${he}`));if(_e){f.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("复制")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(z.name,z.applicationName)])," ",$("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("长度过大。")]),negativeText:"确定"});return}else f.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("好耶w,复制")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(z.name,z.applicationName)])," ",$("分享口令成功了~")]),w("p",null,[$("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("长度过大。")]),w("p",null,[$("分享口令导入入口位于")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("应用横屏布局- 从分享口令导入")])," ",$("。")])]),positiveText:"确定"})}},H=(O,R)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}f.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("模块已对")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(O.name,O.applicationName)])," ",$("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})};function I(){return[{title:"应用名称",minWidth:250,key:"name",render(O,R){return w("div",null,[O.applicationName&&w("p",null,[O.applicationName]),O.name&&w("p",null,[w("span",{class:{hidden:!O.applicationName}},[$("(")]),O.name,w("span",{class:{hidden:!O.applicationName}},[$(")")])])])}},{title:"规则来源",minWidth:100,key:"ruleMode",render(O,R){const z={icon:O.ruleMode==="custom"?a6:Em};if(O.ruleMode==="custom"){const _=[{label:"分享自定义规则",key:"shareCustomRule",icon:x(ld)},{label:"清除自定义规则",key:"cleanCustomRule",icon:x(hS)}];return w(lt("n-dropdown"),{onSelect:(oe,G)=>K(oe,G,O),size:"large",trigger:"click",options:_},{default:()=>[w(lt("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[$("自定义规则")],...z})]})}return w(lt("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>H(O)},{default:()=>[$("模块规则")],...z})}},{title:"应用兼容性",minWidth:100,key:"setting",render(O,R){const z={icon:rq},_=(oe,G)=>{f.create({title:"想重置应用兼容性吗?",type:"warning",preset:"dialog",content:()=>w("p",null,[$("重置后,可以解决")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(oe.name,oe.applicationName)])," ",$("由于系统错误的应用兼容性配置导致应用布局异常的问题(正常情况下不需要重置),确定要继续吗?")]),positiveText:"确定重置",negativeText:"我再想想",onPositiveClick:async()=>{const[j,ue]=await $e(xS(oe.name));j?f.create({title:"重置应用兼容性失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,重置应用兼容性失败了QwQ,详细错误请查看错误日志~")])}):f.create({title:"重置应用兼容性成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,重置")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(oe.name,oe.applicationName)])," ",$("的应用兼容性成功了OwO~")])})}})};return w("div",null,[w(lt("n-button"),{size:"small",dashed:!0,type:"warning",onClick:()=>_(O)},{default:()=>[$("兼容性重置")],...z})])}},{title:"当前规则",minWidth:100,key:"settingMode",render(O,R){const z={icon:i6},_={embedded:{type:"success",name:"平行窗口",onClick(oe,G){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}N(oe)}},fullScreen:{type:"info",name:"全屏",onClick(oe,G){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("该功能仅兼容平板设备不兼容折叠屏设备!")])});return}N(oe)}},fixedOrientation:{type:"warning",name:"居中布局",onClick(oe,G){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}N(oe)}},disabled:{type:"error",name:"原始布局",onClick(oe,G){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}N(oe)}}};return w(lt("n-button"),{size:"small",strong:!0,dashed:!0,type:_[O.settingMode].type,onClick:()=>_[O.settingMode].onClick(O,R)},{default:()=>[_[O.settingMode].name],...z})}}]}return ut(()=>{kt(()=>{r.isNeedShowReloadPathModeDialog&&Rt(async()=>{const[,O]=await $e(new Promise((R,z)=>{f.create({title:"是否需要重新生成定制应用数据?",type:"info",preset:"dialog",content:()=>w("p",null,[$("检测到您最近已经更新了模块版本并且开启了")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("定制模式")])," ",$(",模块需要重新操作")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("生成定制应用数据")])," ",$(",确定要继续吗?")]),positiveText:"确定",negativeText:"取消",onPositiveClick(){R("success")},onNegativeClick(){z("cancel")},onMaskClick(){z("cancel")},onClose(){z("cancel")}})}));O&&B(),r.isNeedShowReloadPathModeDialog=!1,n.needReloadData=!1})})}),(O,R)=>{const z=lt("n-alert"),_=lt("n-input-group"),oe=lt("n-card");return Re(),Ie(ft,null,[L("main",iq,[L("div",aq,[L("div",lq,[R[12]||(R[12]=L("h3",{class:ye("text-base font-semibold leading-7")},[L("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient( + 101.22deg, + rgb(255, 182, 133) -18.32%, + rgb(255, 111, 29) 7.01%, + rgb(252, 181, 232) 41.59%, + rgb(135, 148, 255) 70.98%, + rgb(60, 112, 255) 91.35%, + rgb(60, 112, 255) 110.17% + )`}},"应用横屏布局")],-1)),L("p",{class:ye(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用横屏布局,优化应用在横屏下的体验。 ",2)])]),w(oe,{size:"small"},{default:ne(()=>[S(n).skipConfirm.patchModeAlert?Je("",!0):(Re(),Lt(z,{key:0,type:"info",class:"mb-3",closable:"",onClose:R[0]||(R[0]=()=>{S(n).skipConfirm.patchModeAlert=!0})},{default:ne(()=>R[13]||(R[13]=[$(" 由于小米系统优化不佳的原因,大量的应用适配规则可能导致系统出现卡顿、掉帧等问题,建议老机型可以前往开启模块的定制模式,详情可以前往模块设置中了解。 ")])),_:1})),L("div",sq,[w(S(Et),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(r).loading,onClick:W},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(cS))]),_:1})]),default:ne(()=>[R[14]||(R[14]=$(" 添加应用 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(r).loading,onClick:R[1]||(R[1]=()=>k())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(lS))]),_:1})]),default:ne(()=>[R[15]||(R[15]=$(" 刷新应用列表 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(r).loading||l.value,onClick:R[2]||(R[2]=()=>P())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(fS))]),_:1})]),default:ne(()=>[R[16]||(R[16]=$(" 热重载应用数据 "))]),_:1},8,["loading"]),S(r).isPatchMode?(Re(),Lt(S(Et),{key:0,class:"mb-3 mr-3",type:"error",loading:S(n).loading||S(r).loading||A.value,onClick:R[3]||(R[3]=()=>B())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(Vj))]),_:1})]),default:ne(()=>[R[17]||(R[17]=$(" 生成定制应用数据 "))]),_:1},8,["loading"])):Je("",!0),w(S(Et),{class:"mb-3 mr-3",color:"#69b2b6",loading:S(n).loading||S(r).loading||S(o).loading.value,onClick:R[4]||(R[4]=G=>E())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(sS))]),_:1})]),default:ne(()=>[R[18]||(R[18]=$(" 获取已安装应用名称 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(r).loading||a.value,onClick:R[5]||(R[5]=G=>F())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(ld))]),_:1})]),default:ne(()=>[R[19]||(R[19]=$(" 从分享口令导入 "))]),_:1},8,["loading"])]),L("div",uq,[w(S(Et),{class:"mb-3 mr-3",type:S(r).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(r).loading,secondary:"",onClick:y},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[S(r).filterInstalledApps?(Re(),Lt(S(l6),{key:0})):(Re(),Lt(S(uS),{key:1}))]),_:1})]),default:ne(()=>[$(" "+it(S(r).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),w(S(Et),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[6]||(R[6]=()=>L2())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>R[20]||(R[20]=[L("img",{src:CS},null,-1)])),_:1})]),default:ne(()=>[R[21]||(R[21]=$(" 应用抽屉 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[7]||(R[7]=()=>O2())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>R[22]||(R[22]=[L("img",{src:sd},null,-1)])),_:1})]),default:ne(()=>[R[23]||(R[23]=$(" 超级小爱 "))]),_:1},8,["loading"])]),L("div",dq,[w(_,null,{default:ne(()=>[w(S(rn),{size:"large",clearable:"",value:S(r).searchKeyWord,"onUpdate:value":R[8]||(R[8]=G=>S(r).searchKeyWord=G),ref_key:"searchKeyWordInput",ref:s,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),w(S(Et),{size:"large",type:"primary",onClick:R[9]||(R[9]=()=>{var G;(G=s.value)==null||G.blur()})},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(dS))]),_:1})]),default:ne(()=>[R[24]||(R[24]=$(" 搜索 "))]),_:1}),w(S(Et),{size:"large",bordered:"",onClick:R[10]||(R[10]=()=>{S(r).searchKeyWord=""})},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(pS))]),_:1})]),default:ne(()=>[R[25]||(R[25]=$(" 清空 "))]),_:1})]),_:1})])]),_:1}),w(S(K5),{ref_key:"embeddedTableRef",ref:b,loading:S(n).loading||S(r).loading,columns:S(g),class:"mt-3",data:S(r).filterMergeRuleList,pagination:C},null,8,["loading","columns","data","pagination"])]),w(vS,{modelValue:v.value,"onUpdate:modelValue":R[11]||(R[11]=G=>v.value=G),errorLogging:S(r).errorLogging},null,8,["modelValue","errorLogging"]),w(Ob,{ref_key:"addEmbeddedApp",ref:u,type:"add",title:"添加应用"},null,512),w(Ob,{ref_key:"updateEmbeddedApp",ref:d,type:"update",title:"更新应用"},null,512)],64)}}}),Lb=xe({__name:"AutoUIAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=M(null),r=M(null),i=e,a=M(!1),l=St(),s=gm(),u=ui(),d=T(()=>({theme:l.isDarkMode?oo:Kt})),{message:c,modal:h}=lo(["message","modal"],{configProviderProps:d});let f,p;const g=[{label:"空白规则",key:"UNDEFINED_VIEW_POLICY"},{label:"全局缩放[*:0]",key:"VIEW_POLICY_DEFAULT",rule:"*:0"},{label:"全局拉伸[*:1]",key:"VIEW_POLICY_STRETCH",rule:"*:1"},{label:"全局栅格[*:2]",key:"VIEW_POLICY_AUTO_COLUMNS",rule:"*:2"},{label:"全局浮动[*:6]",key:"VIEW_POLICY_FLOAT",rule:"*:6"},{label:"精确适配",key:"CUSTOM_VIEW_POLICY"}],v=M(g[0]),b=M(""),x=M(""),E=M(),y=M(!1),k=M(!1),F=M(),C=M({openDrawer:R=>new Promise((z,_)=>{var oe,G,j,ue;if(i.type==="update"&&!R){_(new Error("更新模式下必须传入初始化参数")),c.error("初始化参数不能为空");return}if(f=z,p=_,i.type==="add"&&(F.value="add",K.value="",b.value="",v.value=g[0],x.value="",k.value=!1,y.value=!0),i.type==="update"&&R){switch(F.value="update",K.value=R.name,E.value=R.ruleMode,b.value=((oe=R.autoUIRule)==null?void 0:oe.activityRule)||"",b.value){case"":{v.value=g[0];break}case"*:0":{v.value=g[1];break}case"*:1":{v.value=g[2];break}case"*:2":{v.value=g[3];break}case"*:6":{v.value=g[4];break}default:{v.value=g[5];break}}x.value=((G=R.autoUIRule)==null?void 0:G.skippedActivityRule)||"",k.value=((j=R.autoUIRule)==null?void 0:j.skippedAppConfigChange)||!1,y.value=((ue=R.autoUIRule)==null?void 0:ue.optimizeWebView)||!1}a.value=!0}),closeDrawer:()=>{a.value=!1,p("Drawer closed without submission")}}),A=(R,z)=>{v.value=z,b.value=z.rule||""},P=({focused:R,checked:z})=>{const _={};return z?(_.background="#2080f0",R&&(_.boxShadow="0 0 0 2px #2080f040")):(_.background="#d03050",R&&(_.boxShadow="0 0 0 2px #d0305040")),_},B=R=>{const z=document.querySelector(".n-drawer-content");z instanceof HTMLElement&&(u.info("resizeDrawerContent",R),z.style.height=R?"calc(100% + 200px)":"100%")},W=R=>{var z,_;R==="currentActivityRuleRef"&&(B(!0),(z=r.value)==null||z.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&(B(!0),(_=n.value)==null||_.$el.scrollIntoView({behavior:"smooth",block:"start"}))},N=R=>{var z,_;R==="currentActivityRuleRef"&&(B(!1),(z=r.value)==null||z.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&(B(!1),(_=n.value)==null||_.$el.scrollIntoView({behavior:"smooth",block:"start"}))},K=M(""),H=M(""),I=async()=>{if(!K.value){h.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>w("p",null,[$("噫?应用包名不能为空(敲")])});return}if(i.type==="add"&&s.allPackageName.has(K.value)){h.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>w("p",null,[$("噫?这个应用包名已经存在列表中了(敲")])});return}O.value=!0;const R=()=>{O.value=!1,a.value=!1},z=()=>{O.value=!1},_={name:K.value,modePayload:{optimizeWebView:y.value,skippedAppConfigChange:k.value,...v.value.key!=="UNDEFINED_VIEW_POLICY"&&b.value?{activityRule:b.value}:{},...b.value&&x.value?{skippedActivityRule:x.value}:{}},loadingCallback:z,closeCallback:R};h.create({title:"确认应用布局优化规则吗?",type:"warning",preset:"dialog",content:()=>w("p",null,[$("应用布局优化的规则仅在应用横屏全屏场景下才会生效,建议将应用的横屏配置修改为")," ",w("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("全屏")]),$(",规则效果以应用个体差异而异,建议多多尝试。继续更新将会被更替为")," ",w("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$(",且该应用规则不再随模块版本更新,如后续需要改回")," ",w("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("模块规则")])," ",$("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定应用",negativeText:"我再想想",onPositiveClick:async()=>{f(_)},onNegativeClick(){z()},onMaskClick(){z()},onClose(){z()}})},O=M(!1);return M(0),t({openDrawer:C.value.openDrawer}),(R,z)=>{const _=lt("n-input-group-label"),oe=lt("n-input"),G=lt("n-input-group"),j=lt("n-tag"),ue=lt("n-alert"),he=lt("n-button"),_e=lt("n-dropdown"),pe=lt("n-card"),fe=lt("n-switch"),Ce=lt("n-drawer-content"),Y=lt("n-drawer");return Re(),Ie(ft,null,[xs(R.$slots,"default",qb(np({openDrawer:C.value.openDrawer}))),w(Y,{show:a.value,"onUpdate:show":z[12]||(z[12]=q=>a.value=q),width:S(l).windowWidth>=640?"450px":"100%",placement:"right"},{default:ne(()=>[w(Ce,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:i.title,closable:""},{footer:ne(()=>[w(he,{type:"info",loading:O.value,"onUpdate:loading":z[10]||(z[10]=q=>O.value=q),onClick:z[11]||(z[11]=()=>I())},{default:ne(()=>z[23]||(z[23]=[$(" 提交 ")])),_:1},8,["loading"])]),default:ne(()=>[w(G,{class:ye(S(l).MIOSVersion&&S(l).MIOSVersion>=2?"":"mb-5")},{default:ne(()=>[w(_,{size:"large"},{default:ne(()=>z[13]||(z[13]=[$("应用包名")])),_:1}),w(oe,{size:"large",status:H.value,value:K.value,"onUpdate:value":z[0]||(z[0]=q=>K.value=q),"allow-input":q=>n6(q),readonly:i.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1},8,["class"]),E.value==="custom"?(Re(),Lt(ue,{key:0,type:"info",class:"mb-2"},{default:ne(()=>[z[16]||(z[16]=$(" 当前应用已被 ")),w(j,{bordered:!1,type:"info"},{default:ne(()=>z[14]||(z[14]=[$("自定义规则")])),_:1}),z[17]||(z[17]=$(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),w(j,{bordered:!1,type:"info"},{default:ne(()=>z[15]||(z[15]=[$("自定义规则")])),_:1}),z[18]||(z[18]=$(" 。 "))]),_:1})):Je("",!0),w(pe,{bordered:!1,title:"应用布局优化规则",size:"small"},{default:ne(()=>[w(_e,{value:v.value,"onUpdate:value":z[1]||(z[1]=q=>v.value=q),size:"large",trigger:"click",options:g,onSelect:A},{default:ne(()=>[w(he,{block:"",type:"info",dashed:""},{default:ne(()=>[$(it(v.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),v.value.key==="CUSTOM_VIEW_POLICY"?(Re(),Lt(pe,{key:1,bordered:!1,title:"自定义应用布局优化规则",size:"small"},{default:ne(()=>[w(G,null,{default:ne(()=>[w(oe,{"display-directive":"show",ref_key:"currentActivityRuleRef",ref:r,onFocus:z[2]||(z[2]=()=>W("currentActivityRuleRef")),onBlur:z[3]||(z[3]=()=>N("currentActivityRuleRef")),"allow-input":q=>zG(q),type:"textarea",autosize:{minRows:3,maxRows:3},value:b.value,"onUpdate:value":z[4]||(z[4]=q=>b.value=q),placeholder:"请输入自定义应用布局优化规则"},null,8,["allow-input","value"])]),_:1})]),_:1})):Je("",!0),w(pe,{bordered:!1,title:"跳过应用布局优化的Activity规则",size:"small"},{default:ne(()=>[w(G,null,{default:ne(()=>[w(oe,{"display-directive":"show",ref_key:"currentSkippedActivityRuleRef",ref:n,onFocus:z[5]||(z[5]=()=>W("currentSkippedActivityRuleRef")),onBlur:z[6]||(z[6]=()=>N("currentSkippedActivityRuleRef")),"allow-input":q=>OG(q),type:"textarea",autosize:{minRows:3,maxRows:3},value:x.value,"onUpdate:value":z[7]||(z[7]=q=>x.value=q),placeholder:"请输入跳过应用布局优化的Activity规则"},null,8,["allow-input","value"])]),_:1})]),_:1}),w(pe,{bordered:!1,title:"优化WebView页面",size:"small"},{default:ne(()=>[w(fe,{"rail-style":P,value:y.value,"onUpdate:value":z[8]||(z[8]=q=>y.value=q),size:"large"},{checked:ne(()=>z[19]||(z[19]=[$("优化WebView页面")])),unchecked:ne(()=>z[20]||(z[20]=[$("不优化WebView页面")])),_:1},8,["value"])]),_:1}),w(pe,{bordered:!1,title:"跳过应用配置改变",size:"small"},{default:ne(()=>[w(fe,{"rail-style":P,value:k.value,"onUpdate:value":z[9]||(z[9]=q=>k.value=q),size:"large"},{checked:ne(()=>z[21]||(z[21]=[$("跳过应用配置改变")])),unchecked:ne(()=>z[22]||(z[22]=[$("不跳过应用配置改变")])),_:1},8,["value"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function fq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt}));lo(["message","modal"],{configProviderProps:t});const o=()=>{},n=()=>{};return ut(()=>{}),{add:o,update:n}}const hq={class:"autoui-view mb-10"},pq={class:"mt-3"},mq={class:"mb-3 px-4 sm:px-0"},gq={class:"flex flex-wrap"},vq={class:"flex flex-wrap"},bq=xe({__name:"AutoUIView",setup(e){const t=M(null),o=K(),n=St(),r=r6(),i=T(()=>({theme:n.isDarkMode?oo:Kt})),{message:a,modal:l,notification:s}=lo(["message","modal","notification"],{configProviderProps:i}),u=gm(),d=M(!1),c=M(!1);fq();const h=M(null),f=M(null);HH(),ui(),B2();const p=M("");function g(H){return()=>m(Wt,null,{default:()=>m(H)})}const v=async()=>{await n.getAndroidApplicationPackageNameList(),await u.initDefault()},b=async()=>{const[H,I]=await $e(r.getList());H&&l.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>w("p",null,[$("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),I&&l.create({title:"获取成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},x=()=>{u.filterInstalledApps=!u.filterInstalledApps},E=async()=>{c.value=!0,await v();const[H,I]=await $e(Qd("miui_auto_ui"));H&&(l.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),c.value=!1),I&&(l.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),c.value=!1)},y=async()=>{p.value="";const[,H]=await $e(new Promise((I,O)=>{l.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:p.value,"onUpdate:value":R=>{p.value=R},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){I("positiveClick")}})}));if(H){d.value=!0;const I=p.value,O=dm(I);if(!(O!=null&&O.length)){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入分享规则失败了QwQ,解析")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("口令发生错误,无法正常解析。")]),negativeText:"确定"}),d.value=!1;return}console.log(O,"getBase64String");try{const R=_m(O),z=La.inflate(R,{to:"string"}),_=JSON.parse(z);if(_.type!=="autoui"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入分享规则失败了QwQ,该")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("不适用于应用布局优化。")]),negativeText:"确定"}),d.value=!1;return}if(_.device==="pad"&&n.deviceCharacteristics!=="tablet"||_.device==="fold"&&n.deviceCharacteristics==="tablet"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),d.value=!1;return}u.customConfigAutoUIList[_.name]=_.rules,u.autoUISettingConfig[_.name]={name:_.name,enable:!0};const[oe,G]=await $e(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:_.name,action:"enable"}}));oe?(l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),d.value=!1):(u.updateMergeRuleList(),await v(),d.value=!1,l.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(_.name,n.installedAppNameList[_.name]||u.applicationName[_.name])])," ",$("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]),positiveText:"确定"}))}catch(R){console.log(R,"error"),l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),d.value=!1}}},k=async(H,I,O,R)=>{if(H==="cleanCustomRule"){const z=l.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>w("p",null,[$("清除自定义规则后,你对")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(O.name,O.applicationName)])," ",$("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("模块规则")])," ",$(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{z.loading=!0,u.customConfigAutoUIList[O.name]&&delete u.customConfigAutoUIList[O.name];const[_,oe]=await $e(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config")}));_?(l.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),z.loading=!1):(l.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),z.loading=!1,u.updateMergeRuleList())}})}if(H==="shareCustomRule"){const z={name:O.name,cmpt:1,rules:{name:O.name,...O.autoUIRule},type:"autoui",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:O.settingMode};console.log(z,"shareContent");const _=JSON.stringify(z),oe=La.deflate(_,{level:9,memLevel:9,windowBits:15}),G=new Uint8Array(oe),j=km(G),[ue]=await $e(navigator.clipboard.writeText(`我分享了一个[应用布局优化]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +${j}`));if(ue){l.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("复制")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(O.name,O.applicationName)])," ",$("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("长度过大。")]),negativeText:"确定"});return}else l.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("好耶w,复制")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(O.name,O.applicationName)])," ",$("分享口令成功了~")]),w("p",null,[$("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("自定义规则")])," ",$("长度过大。")]),w("p",null,[$("分享口令导入入口位于")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("应用布局优化- 从分享口令导入")])," ",$("。")])]),positiveText:"确定"})}},F=(H,I)=>{H.ruleMode==="module"&&l.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>w("p",null,[$("模块已对")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(H.name,H.applicationName)])," ",$("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})},C=async(H,I,O)=>{const R=l.create({title:`想${O?"开启":"关闭"}该应用的应用布局优化吗?`,type:"warning",preset:"dialog",content:()=>w("p",null,[$("即将"),O?"开启":"关闭",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(H.name,H.applicationName)])," ",$("的应用布局优化适配规则。确定要继续吗?")]),positiveText:"确定",negativeText:"我再想想",onPositiveClick:async()=>{R.loading=!0,u.autoUISettingConfig[H.name]?u.autoUISettingConfig[H.name].enable=O:u.autoUISettingConfig[H.name]={name:H.name,enable:O};const[z,_]=await $e(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:H.name,action:O?"enable":"disable"}}));z?(l.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loading=!1):(l.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,操作成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),R.loading=!1,u.updateMergeRuleList())}})},A=async()=>{if(h.value){const[H,I]=await $e(h.value.openDrawer());if(H)console.log("操作取消:",H);else{u.customConfigAutoUIList[I.name]={name:I.name,enable:!0,...I!=null&&I.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...I!=null&&I.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...I!=null&&I.modePayload.hasOwnProperty("activityRule")?{activityRule:I==null?void 0:I.modePayload.activityRule}:{},...I!=null&&I.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:I==null?void 0:I.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[I.name]={name:I.name,enable:!0};const[O,R]=await $e(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:I.name,action:"enable"}}));O?(l.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),I.loadingCallback&&I.loadingCallback()):(l.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(I.name,n.installedAppNameList[I.name]||u.applicationName[I.name])])," ",$("的应用配置添加成功了OwO~应用布局优化仅在应用全屏场景下生效,如果应用添加后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),I.loadingCallback&&I.loadingCallback(),I.closeCallback&&I.closeCallback())}}},P=async(H,I)=>{if(f&&f.value){const[O,R]=await $e(f.value.openDrawer(H));if(O)console.log("操作取消:",O);else{u.customConfigAutoUIList[H.name]?(u.customConfigAutoUIList[H.name].enable=!0,u.customConfigAutoUIList[H.name].name=H.name,R!=null&&R.modePayload.hasOwnProperty("activityRule")&&(u.customConfigAutoUIList[H.name].activityRule=R==null?void 0:R.modePayload.activityRule),R!=null&&R.modePayload.hasOwnProperty("skippedActivityRule")&&(u.customConfigAutoUIList[H.name].skippedActivityRule=R==null?void 0:R.modePayload.skippedActivityRule),R!=null&&R.modePayload.hasOwnProperty("optimizeWebView")&&(u.customConfigAutoUIList[H.name].optimizeWebView=R==null?void 0:R.modePayload.optimizeWebView),R!=null&&R.modePayload.hasOwnProperty("skippedAppConfigChange")&&(u.customConfigAutoUIList[H.name].skippedAppConfigChange=R==null?void 0:R.modePayload.skippedAppConfigChange)):u.customConfigAutoUIList[H.name]={name:H.name,enable:!0,...R!=null&&R.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...R!=null&&R.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...R!=null&&R.modePayload.hasOwnProperty("activityRule")?{activityRule:R==null?void 0:R.modePayload.activityRule}:{},...R!=null&&R.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:R==null?void 0:R.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[H.name]?u.autoUISettingConfig[H.name].enable=!0:u.autoUISettingConfig[H.name]={name:H.name,enable:!0},console.log("loadingCallback:",R.loadingCallback);const[z,_]=await $e(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:H.name,action:"enable"}}));z?(l.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(l.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w,")," ",w("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(H.name,H.applicationName)])," ",$("的应用配置更新成功了OwO~,如果应用更新后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},B=It({UNDEFINED_VIEW_POLICY:{type:"default",color:"",name:"空白规则"},VIEW_POLICY_DEFAULT:{type:"success",color:"",name:"全局缩放",onClick(H,I){}},VIEW_POLICY_STRETCH:{type:"info",color:"",name:"全局拉伸",onClick(H,I){}},VIEW_POLICY_AUTO_COLUMNS:{type:"warning",color:"",name:"全局栅格",onClick(H,I){}},VIEW_POLICY_FLOAT:{type:"error",color:"",name:"全局浮动",onClick(H,I){}},CUSTOM_VIEW_POLICY:{type:"",color:"#8a2be2",name:"精确适配",onClick(H,I){}}}),W=It({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:H=>{W.page=H},onUpdatePageSize:H=>{W.pageSize=H,W.page=1}}),N=({focused:H,checked:I})=>{const O={};return I?(O.background="#2080f0",H&&(O.boxShadow="0 0 0 2px #2080f040")):(O.background="#d03050",H&&(O.boxShadow="0 0 0 2px #d0305040")),O};function K(){return[{title:"应用名称",width:250,key:"name",render(H,I){return w("div",null,[H.applicationName&&w("p",null,[H.applicationName]),H.name&&w("p",null,[w("span",{class:{hidden:!H.applicationName}},[$("(")]),H.name,w("span",{class:{hidden:!H.applicationName}},[$(")")])])])}},{title:"规则来源",key:"ruleMode",render(H,I){const O={icon:H.ruleMode==="custom"?a6:Em};if(H.ruleMode==="custom"){const R=[{label:"分享自定义规则",key:"shareCustomRule",icon:g(ld)},{label:"清除自定义规则",key:"cleanCustomRule",icon:g(hS)}];return w(lt("n-dropdown"),{onSelect:(z,_)=>k(z,_,H),size:"large",trigger:"click",options:R},{default:()=>[w(lt("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[$("自定义规则")],...O})]})}return w(lt("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>F(H)},{default:()=>[$("模块规则")],...O})}},{title:"WebView优化",minWidth:110,key:"isOptimizeWebView",render(H,I){var O;return(O=H.autoUIRule)!=null&&O.optimizeWebView?w(lt("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[$("已启用")]}):w(lt("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[$("未启用")]})}},{title:"布局规则",key:"settingMode",render(H,I){const O={icon:i6};return w(lt("n-button"),{size:"small",strong:!0,dashed:!0,type:B[H.settingMode].type,color:B[H.settingMode].color,onClick:()=>P(H)},{default:()=>[B[H.settingMode].name],...O})}},{title:"操作",minWidth:100,key:"setting",render(H,I){const O={checked:()=>w("span",null,[$("开启")]),unchecked:()=>w("span",null,[$("关闭")])},R=z=>z.settingRule&&z.settingRule.hasOwnProperty("enable")?z.settingRule.enable:z.autoUIRule&&z.autoUIRule.hasOwnProperty("enable")?z.autoUIRule.enable:!0;return w(lt("n-switch"),{railStyle:N,onUpdateValue:z=>C(H,I,z),size:"medium",value:R&&R(H)},O)}}]}return(H,I)=>{const O=lt("n-input-group"),R=lt("n-card"),z=lt("n-data-table");return Re(),Ie("main",hq,[L("div",pq,[L("div",mq,[I[9]||(I[9]=L("h3",{class:ye("text-base font-semibold leading-7")},[L("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r + 101.22deg,\r + rgb(255, 182, 133) -18.32%,\r + rgb(255, 111, 29) 7.01%,\r + rgb(252, 181, 232) 41.59%,\r + rgb(135, 148, 255) 70.98%,\r + rgb(60, 112, 255) 91.35%,\r + rgb(60, 112, 255) 110.17%\r + )`}},"应用布局优化")],-1)),L("p",{class:ye(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用布局优化,自动优化应用内图文布局,提升视觉体验。 ",2)])]),w(R,{size:"small"},{default:ne(()=>[L("div",gq,[w(S(Et),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(u).loading,onClick:A},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(cS))]),_:1})]),default:ne(()=>[I[10]||(I[10]=$(" 添加应用 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(u).loading,onClick:I[0]||(I[0]=()=>v())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(lS))]),_:1})]),default:ne(()=>[I[11]||(I[11]=$(" 刷新应用列表 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(u).loading,onClick:I[1]||(I[1]=()=>E())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(fS))]),_:1})]),default:ne(()=>[I[12]||(I[12]=$(" 热重载应用数据 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",color:"#69b2b6",loading:S(n).loading||S(u).loading||S(r).loading.value,onClick:I[2]||(I[2]=_=>b())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(sS))]),_:1})]),default:ne(()=>[I[13]||(I[13]=$(" 获取已安装应用名称 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(u).loading||d.value,onClick:I[3]||(I[3]=_=>y())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(ld))]),_:1})]),default:ne(()=>[I[14]||(I[14]=$(" 从分享口令导入 "))]),_:1},8,["loading"])]),L("div",vq,[w(S(Et),{class:"mb-3 mr-3",type:S(u).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(u).loading,secondary:"",onClick:x},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[S(u).filterInstalledApps?(Re(),Lt(S(l6),{key:0})):(Re(),Lt(S(uS),{key:1}))]),_:1})]),default:ne(()=>[$(" "+it(S(u).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),w(S(Et),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(u).loading,onClick:I[4]||(I[4]=()=>L2())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>I[15]||(I[15]=[L("img",{src:CS},null,-1)])),_:1})]),default:ne(()=>[I[16]||(I[16]=$(" 应用抽屉 "))]),_:1},8,["loading"]),w(S(Et),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(u).loading,onClick:I[5]||(I[5]=()=>O2())},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>I[17]||(I[17]=[L("img",{src:sd},null,-1)])),_:1})]),default:ne(()=>[I[18]||(I[18]=$(" 超级小爱 "))]),_:1},8,["loading"])]),w(O,null,{default:ne(()=>[w(S(rn),{size:"large",clearable:"",value:S(u).searchKeyWord,"onUpdate:value":I[6]||(I[6]=_=>S(u).searchKeyWord=_),ref_key:"searchKeyWordInput",ref:t,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),w(S(Et),{size:"large",type:"primary",onClick:I[7]||(I[7]=()=>{var _;(_=t.value)==null||_.blur()})},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(dS))]),_:1})]),default:ne(()=>[I[19]||(I[19]=$(" 搜索 "))]),_:1}),w(S(Et),{size:"large",bordered:"",onClick:I[8]||(I[8]=()=>{S(u).searchKeyWord=""})},{icon:ne(()=>[w(S(Wt),null,{default:ne(()=>[w(S(pS))]),_:1})]),default:ne(()=>[I[20]||(I[20]=$(" 清空 "))]),_:1})]),_:1})]),_:1}),w(z,{loading:S(n).loading||S(u).loading,columns:S(o),class:"mt-3",data:S(u).filterMergeRuleList,pagination:W},null,8,["loading","columns","data","pagination"]),w(Lb,{ref_key:"addAutoUIApp",ref:h,type:"add",title:"添加应用"},null,512),w(Lb,{ref_key:"updateAutoUIApp",ref:f,type:"update",title:"更新应用"},null,512)])}}}),xq="/images/icons/miui_content_extension_app.webp",Hb="/images/apps/mi_theme.webp",Nb="/images/icons/aicr.png",yq="/images/icons/google.png";function Cq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(!1);function i(a){r.value=!0,a.OS2_PAD_EMBEDDED_APP_MANAGER?(e.ABTestInfo.OS2_PAD_EMBEDDED_APP_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("已成功参与OS2")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("应用横屏布局 For Web UI")])," ",$("的Beta测试w。由于小米在OS2新开发的")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("应用横屏布局")])," ",$("存在较多BUG,模块强制劫持了所有配置,仅能通过Web UI去调整应用横屏适配,在")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("平板专区")])," ",$("所做的相关修改会在重启后丢失。")]),w("p",null,[$("开发Hyper OS 2.0模块的Web UI真的消耗了我大量的个人时间和精力QwQ(特别是在小米的BUG加持下),如果对")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("完美横屏应用计划感到满意")])," ",$(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.Hyper_OS_DOT_BLACK_LIST_MANAGER?(e.ABTestInfo.Hyper_OS_DOT_BLACK_LIST_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("已成功参与Hyper OS")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("窗口控制器 For Web UI")])," ",$("的Beta测试w。该功能可能会随")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("小米云控")])," ",$("下发导致失效,失效时可以前往界面查看失效状态,并且选择")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("热重载应用配置")])," ",$("来恢复模块对窗口控制器的控制权。")]),w("p",null,[$("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("完美横屏应用计划感到满意")])," ",$(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_RADIO_MANAGER?(e.ABTestInfo.GAME_BOOSTER_RADIO_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("已成功参与")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("游戏显示布局 2.0")])," ",$("的Beta测试w。该功能调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。")]),w("p",null,[$("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("完美横屏应用计划感到满意")])," ",$(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_CUSTOM_RATIO?(e.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("已成功激活")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("游戏显示布局 2.0")])," ",$("的自定义游戏比例。自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封,激活该功能即认可并了解这些须知。")]),w("p",null,[$("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("完美横屏应用计划感到满意")])," ",$(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):n.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),r.value=!1}return{activateABTest:i,loading:r}}function wq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(!1),i=async l=>{const[s,u]=await $e(fV(l?1:"null"));s?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=l},a=async()=>{const[l,s]=await $e(new Promise((u,d)=>{n.create({title:"想激活工作台模式吗?",type:"info",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("激活")," ",w("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("工作台模式")])," ",$("后需要设备重启才会生效~")]),w("p",null,[$("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{u("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(s){const[u,d]=await $e(sV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[c,h]=await $e(lV());if(c){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[f,p]=await $e(dV());if(f){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[g,v]=await $e(uV());if(g){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[b]=await $e(z2());if(b){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}};return ut(async()=>{if(e.enabledMiuiDesktopMode){const[,l]=await $e(cV());Number(l)===1&&(r.value=!0)}}),{currentMiuiDktMode:r,changeMiuiDktMode:i,changeMiuiDesktopModeEnabled:a}}function Sq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(3),i=async l=>{if(l){const[s]=await $e(Nv());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await $e(hV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!0}else{const[s]=await $e(Nv());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!1}},a=async l=>{const[s]=await $e(mV());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await $e(gV(l));u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});const[d]=await $e(vV(l));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"})};return ut(async()=>{if(e.isEnableShowNotificationIconNum){const[,l]=await $e(pV());if(l&&!Number.isNaN(Number(l))){const s=Number(l);r.value=s}}}),{currentNum:r,changeNum:a,changeEnableMode:i}}function Eq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt}));lo(["message","modal"],{configProviderProps:t});const o=It({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await $e(bN());i&&(o.current=Number(i))},interval:null}),n=It({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await $e(xN());i&&(n.current=Number(i))},interval:null}),r=i=>{i.interval&&(clearInterval(i.interval),i.interval=null),i.autoReload&&(i.interval=setInterval(()=>{i.reload()},i.timer*1e3))};return kt(()=>r(o)),kt(()=>r(n)),ut(async()=>{o.reload(),n.reload()}),Go(()=>{o.interval!==null&&clearInterval(o.interval),n.interval!==null&&clearInterval(n.interval)}),{qcomBatteryFg1RSocInfo:o,capacityRawInfo:n}}function kq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(0),i=async a=>{const[l,s]=await $e(kN(a?1:0));if(l)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(a){const[u,d]=await $e(SN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w!隐藏手势提示线(小白条)成功,请知晓,隐藏手势提示线(小白条)的情况下,旋转建议提示按钮也将变成不可用的状态~")]),positiveText:"确定"}),r.value=1)}else{const[u,d]=await $e(EN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("好耶w!已经将手势提示线(小白条)调整为显示状态~")]),positiveText:"确定"}),r.value=0)}};return ut(async()=>{const[,a]=await $e(_N());Number(a)&&(r.value=1)}),{currentIsHideGestureLine:r,changeIsHideGestureLine:i}}function _q(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(0),i=async a=>{const[l,s]=await $e(FN(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await $e(RN());Number(a)&&(r.value=1)}),{currentIsInVisibleMode:r,changeIsInvisibleMode:i}}function Fq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(!1),i=async a=>{const[l,s]=await $e(aN());if(l){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}if(a){const[u,d]=await $e(iN());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}}r.value=a};return ut(async()=>{if(e.MIOSVersion&&e.MIOSVersion>=2){const[,a]=await $e(lN());a==="true"&&(r.value=!0)}}),{status:r,change:i}}function Rq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M([]),i=T(()=>r.value.map(s=>({...s,fps:Math.round(s.fps),alternativeRefreshRates:s.alternativeRefreshRates.map(u=>Math.round(u))}))),a=async s=>{n.create({title:"想应用该配置吗?",type:"info",preset:"dialog",content:()=>w("p",null,[$("应用后设备分辨率将配置为"),s.width,$("x"),s.height,$(",刷新率将配置为"),s.fps,$("Hz,在设备下次重启前将一直维持该配置,该功能可能受触控笔和其他第三方模块影响不一定生效,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。"),e.deviceCharacteristics==="tablet"&&w("span",null,[$("连接触控笔蓝牙期间,为了确保触控笔正常工作,系统也会强行重置该配置,断开触控笔蓝牙后需要重新配置,")]),$("确定要继续应用该配置么?")]),negativeText:"取消",positiveText:"确定",onPositiveClick(){l(s.id-1)}})},l=async s=>{const[u,d]=await $e(yV(s));u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),d&&n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("p",null,[$("已成功应用该分辨率及刷新率配置,在设备下次重启前将一直维持该配置,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。")]),negativeText:"确定"})};return ut(async()=>{const[s,u]=await $e(jN());s&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),u&&(r.value=u)}),{displayModeList:r,formatDisplayModeList:i,setDisplayMode:l,selectDisplayMode:a}}function $q(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(3),i=async a=>{const[l,s]=await $e(PN(a));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a};return ut(async()=>{const[,a]=await $e(MN());a&&Number(a)&&(r.value=Number(a))}),{currentMiuiCursorStyleType:r,changeMiuiCursorStyleType:i}}function Pq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(0),i=async a=>{const[l,s]=await $e(AN(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await $e(BN());Number(a)&&(r.value=1)}),{currentMouseGestureNaturalscroll:r,changeMouseGestureNaturalscroll:i}}function Mq(){const e=St(),t=T(()=>({theme:e.isDarkMode?oo:Kt})),{message:o,modal:n}=lo(["message","modal"],{configProviderProps:t}),r=M(0),i=async a=>{const[l,s]=await $e(I2(a));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a};return ut(async()=>{const[,a]=await $e(DN());Number(a)&&(r.value=Number(a))}),{changePointerSpeed:i,currentPointerSpeed:r}}const Aq={class:"setting"},Bq={class:"mt-3"},Dq={class:"px-3 sm:px-0"},Tq={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Iq={key:1,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},zq={key:2,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Oq={key:3,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Lq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Hq={key:4,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Nq={key:5,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Vq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},jq={key:6,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Wq={key:7,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Uq={key:8,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Kq={key:9,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Gq={key:10,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},qq={key:11,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Zq={key:12,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Xq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Yq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Qq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Jq={key:13,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oZ={key:14,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nZ={key:0,class:"mt-2"},rZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iZ={key:15,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},aZ={key:0,class:"mt-2"},lZ={key:16,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},sZ={key:0,class:"mt-2"},uZ={key:17,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},dZ={key:0,class:"mt-2"},cZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},fZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},hZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},pZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},mZ={key:18,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gZ={key:19,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},vZ={key:20,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},bZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},xZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},yZ={id:"gameModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},CZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},wZ={key:21,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},SZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},EZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},kZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},_Z={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},FZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},RZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},$Z={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},PZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},MZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},AZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},BZ={key:22,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},DZ={key:23,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},TZ={key:24,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},IZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},zZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},OZ={key:25,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},LZ={key:26,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},HZ={key:27,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},NZ={key:28,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},VZ={class:"whitespace-pre"},jZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},WZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},UZ={key:29,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},KZ={class:"mr-3"},GZ={class:"mr-3"},qZ={class:"mr-3"},ZZ={key:30,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},XZ={key:0},YZ={key:31,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},QZ={key:0},JZ={key:32,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eX={key:33,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tX={key:34,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oX={key:35,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nX={key:36,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},rX={key:37,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iX={key:38,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},aX=xe({__name:"SettingsView",setup(e){const t=St(),o=Hs(),n=wq();Sq();const r=gS(),i=Eq(),a=Rq(),l=kq();_q();const s=$q(),u=Pq(),d=Mq(),c=Fq(),{activateABTest:h,loading:f}=Cq(),p=T(()=>({theme:t.isDarkMode?oo:Kt})),{message:g,modal:v}=lo(["message","modal"],{configProviderProps:p}),b=mS(),x=yS(),E=WH(),y=[{label:"跟随系统",key:"autoRhythm"},{label:"浅色模式",key:"lightMode"},{label:"深色模式",key:"dartMode"}],k=M([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]),F=T(()=>AP(k.value,"key")),C=z=>{x.currentFont=z},A=z=>{t.rhythmMode=z,z==="lightMode"&&(t.isDarkMode=!1),z==="dartMode"&&(t.isDarkMode=!0)},P=M(""),B=async()=>{const _=JSON.stringify({GAME_BOOSTER_CUSTOM_RATIO:!0}),oe=La.deflate(_,{level:9,memLevel:9,windowBits:15}),G=new Uint8Array(oe),j=km(G);console.log(j,"base64String"),P.value="";const[ue,he]=await $e(new Promise((_e,pe)=>{v.create({title:"请粘贴激活口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:P.value,"onUpdate:value":fe=>{P.value=fe},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴激活口令"}),positiveText:"确定提交",negativeText:"取消",onPositiveClick(){_e("positiveClick")}})}));if(he){f.value=!0;const _e=P.value,pe=dm(_e);if(!(pe!=null&&pe.length)){v.create({title:"导入激活口令失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("导入激活口令失败了QwQ,解析口令发生错误,无法正常解析。")]),negativeText:"确定"}),f.value=!1;return}try{const fe=_m(pe),Ce=La.inflate(fe,{to:"string"}),Y=JSON.parse(Ce);h(Y)}catch{v.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),f.value=!1}}},W=M(!1),N=async z=>{const[_]=await $e(wN(z?1:0));if(_){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("无法 "),z?"开启":"关闭",$(" 旋转建议提示按钮,详情请查看日志记录~")]),negativeText:"确定"});return}t.showRotationSuggestions=z},K=async z=>{KN(z?"whitelist":"blacklist").then(_=>{t.shamikoInfo.mode=z?"whitelist":"blacklist",v.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("div",null,[z&&w("p",null,[$("好耶w,Shamiko的工作模式已成功切换为")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("白名单模式")])," "]),!z&&w("p",null,[$("好耶w,Shamiko的工作模式已成功切换为")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("黑名单模式")])," "])]),negativeText:"确定"})}).catch(_=>{v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("无法切换Shamiko的工作模式,详情请查看日志记录~")]),negativeText:"确定"})})},H=async(z,_,oe)=>{v.create({title:`获取${z}`,type:"info",preset:"dialog",content:()=>w("div",null,[w("p",null,[$("确定要下载"),z,$("么?请注意核对部分应用的兼容性。"),oe==="system",oe==="revision"]),w("p",null,[$("下载地址:")]),w("p",null,[_])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${_}`)},onNegativeClick:()=>{}})},I=async z=>{const[_,oe]=await $e(new Promise((G,j)=>{v.create({title:z?"想切换为定制模式吗?":"想切换为完整模式吗?",type:"info",preset:"dialog",content:()=>w("div",null,[z&&w("p",null,[$("切换为")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("定制模式")])," ",$("后,模块会以您设备的整体应用情况")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("修剪模块应用适配列表")])," ",$(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,后续每次更新模块或者安装新的应用后,建议前往")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("应用横屏布局")])," ",$("重新")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("生成定制应用数据")])," ",$(",确定要继续吗?")]),!z&&w("p",null,[$("切换为")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("完整模式")])," ",$("后,可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题,确定要继续吗?")])]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{G("positiveClick")},onNegativeClick:()=>{j("negativeClick")}})}));if(oe){W.value=!0;const[G]=await $e(nN());if(G){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("无法移除定制模式的配置项,详情请查看日志记录~")]),negativeText:"确定"}),W.value=!1;return}if(z){const[he]=await $e(oN());if(he){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("无法切换为定制模式,详情请查看日志记录~")]),negativeText:"确定"}),W.value=!1;return}o.isPatchMode=!0}else W.value=!1,o.isPatchMode=!1;await t.getAndroidApplicationPackageNameList();const[j,ue]=await $e(ba({isPatchMode:o.isPatchMode,patchEmbeddedRulesListXML:ct(o.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(o.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(o.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(o.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(o.customConfigFixedOrientationList,"package",void 0),...t.MIOSVersion&&t.MIOSVersion>=2?{settingConfigXML:ct(o.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(o.systemEmbeddedSettingConfig,"setting","setting_rule")}}));j?(v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),o.isPatchMode=!o.isPatchMode,W.value=!1):(v.create({title:"操作成功",type:"success",preset:"dialog",content:()=>w("div",null,[z&&w("p",null,[$("好耶w,已成功切换为")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("定制模式")])," ",$(",模块已根据您设备当前的整体应用情况")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("修剪模块应用适配列表")])," ",$(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,建议每次更新模块或者安装新的应用后,均需要在前往")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("应用横屏布局")])," ",$("界面重新生成")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("生成定制应用数据")])," ",$("。")]),!z&&w("p",null,[$("好耶w,已成功切换为")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("完整模式")])," ",$(",可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题。")])]),negativeText:"确定"}),W.value=!1,o.updateMergeRuleList())}},O=async z=>{const[_,oe]=await $e(new Promise((j,ue)=>{v.create({title:z?"想开启游戏显示布局吗?":"想关闭游戏显示布局吗?",type:"info",preset:"dialog",content:()=>w("div",null,[w("p",null,[z?"开启":"关闭"," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("游戏显示布局")])," ",$("后需要设备重启才会生效~")]),z&&t.deviceCharacteristics==="tablet"&&t.MIOSVersion&&t.MIOSVersion>=2&&w("p",null,[$("从Hyper OS 2.0开始,小米平板需要搭配配套的")," ",w("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[$("修改版平板/手机管家")])," ",$("才能使用游戏显示布局,详情请前往模块首页了解~")]),w("p",null,[$("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{j("positiveClick")},onNegativeClick:()=>{ue("negativeClick")}})})),[G]=await $e(sN());if(G){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}if(z){const[j]=await $e(uN());if(j){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}}if(oe){const[j]=await $e(z2());if(j){v.create({title:"操作失败",type:"error",preset:"dialog",content:()=>w("p",null,[$("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},R=({focused:z,checked:_})=>{const oe={};return _?(oe.background="#d03050",z&&(oe.boxShadow="0 0 0 2px #d0305040")):(oe.background="#2080f0",z&&(oe.boxShadow="0 0 0 2px #2080f040")),oe};return(z,_)=>{var fe,Ce,Y,q;const oe=lt("n-switch"),G=lt("n-alert"),j=lt("n-button"),ue=lt("n-dropdown"),he=lt("n-icon"),_e=lt("n-slider"),pe=lt("n-input-number");return Re(),Ie("div",Aq,[L("div",Bq,[L("div",Dq,[_[51]||(_[51]=L("h3",{class:ye("text-base font-semibold leading-7")},[L("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r + 101.22deg,\r + rgb(255, 182, 133) -18.32%,\r + rgb(255, 111, 29) 7.01%,\r + rgb(252, 181, 232) 41.59%,\r + rgb(135, 148, 255) 70.98%,\r + rgb(60, 112, 255) 91.35%,\r + rgb(60, 112, 255) 110.17%\r + )`}},"模块设置")],-1)),L("p",{class:ye(`mt-1 max-w-2xl text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 模块设置,让功能在自定义中完美契合。 ",2)]),L("div",{class:ye(`mt-3 border-t ${S(t).isDarkMode?"divide-sothx-gray-color border-sothx-gray-color":"divide-gray-200 border-gray-200"}`)},[L("dl",{class:ye(`divide-y ${S(t).isDarkMode?"divide-sothx-gray-color":"divide-gray-200"}`)},[(fe=S(t).moduleInfo)!=null&&fe.id?(Re(),Ie("div",Tq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块ID ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).moduleInfo.id||"获取失败"),3)])):Je("",!0),(Ce=S(t).moduleInfo)!=null&&Ce.dir?(Re(),Ie("div",Iq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块路径 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).moduleInfo.dir||"获取失败"),3)])):Je("",!0),(Y=S(t).moduleInfo)!=null&&Y.version?(Re(),Ie("div",zq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本名 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).moduleInfo.version||"获取失败"),3)])):Je("",!0),(q=S(t).moduleInfo)!=null&&q.versionCode?(Re(),Ie("div",Oq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).moduleInfo.versionCode||"获取失败"),3)])):Je("",!0),L("div",Lq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块工作模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[0]||(_[0]=Se=>I(Se)),"rail-style":R,value:S(o).isPatchMode,loading:W.value,disabled:S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:ne(()=>_[52]||(_[52]=[$("定制模式")])),unchecked:ne(()=>_[53]||(_[53]=[$("完整模式")])),_:1},8,["value","loading","disabled"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Ie("div",Hq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统应用横屏优化 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[1]||(_[1]=Se=>S(c).change(Se)),"rail-style":R,value:S(c).status,loading:S(t).loading},{checked:ne(()=>_[54]||(_[54]=[$("已禁用系统应用横屏优化")])),unchecked:ne(()=>_[55]||(_[55]=[$("已启用系统应用横屏优化")])),_:1},8,["value","loading"]),w(G,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:ne(()=>_[56]||(_[56]=[L("p",null,"由于小米「应用横屏布局」BUG,Hyper OS 2 下部分系统应用可无法完全横屏工作,模块可以修复这个问题,但每次设备重启或修改模块规则,这些系统应用都将被强制重启,该功能默认启用,如「启用」将代表已接纳并知晓此副作用影响。 ",-1),L("p",null,"受此影响的系统应用:",-1),L("p",null,"超级小爱(com.miui.voiceassist)",-1),L("p",null,"小米浏览器(com.android.browser)",-1),L("p",null,"平板/手机管家(com.miui.securitycenter)",-1)])),_:1})],2)])):Je("",!0),S(t).deviceName?(Re(),Ie("div",Nq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备名称 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).deviceName||""),3)])):Je("",!0),L("div",Vq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," ROOT管理器 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).currentRootManager||"获取失败"),3)]),S(t).currentRootManager==="KernelSU"?(Re(),Ie("div",jq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 版本 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).rootManagerInfo.KSU_VER||"获取失败"),3)])):Je("",!0),S(t).currentRootManager==="KernelSU"?(Re(),Ie("div",Wq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 用户空间版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).rootManagerInfo.KSU_VER_CODE||"获取失败"),3)])):Je("",!0),S(t).currentRootManager==="KernelSU"?(Re(),Ie("div",Uq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 内核空间版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).rootManagerInfo.KSU_KERNEL_VER_CODE||"获取失败"),3)])):Je("",!0),S(t).currentRootManager==="APatch"?(Re(),Ie("div",Kq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本名 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).rootManagerInfo.APATCH_VER||"获取失败"),3)])):Je("",!0),S(t).currentRootManager==="APatch"?(Re(),Ie("div",Gq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).rootManagerInfo.APATCH_VER_CODE||"获取失败"),3)])):Je("",!0),S(t).currentRootManager==="Magisk"?(Re(),Ie("div",qq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).rootManagerInfo.MAGISK_VER||"获取失败"),3)])):Je("",!0),S(t).currentRootManager==="Magisk"?(Re(),Ie("div",Zq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).rootManagerInfo.MAGISK_VER_CODE||"获取失败"),3)])):Je("",!0),L("div",Xq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 外观模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(ue,{size:"large",trigger:"click",options:y,onSelect:A},{default:ne(()=>[w(j,{size:"small",strong:"",secondary:"",type:S(t).rhythmMode==="autoRhythm"?"error":"success"},{default:ne(()=>[$(it(S(t).rhythmMode==="autoRhythm"&&"跟随系统"||S(t).rhythmMode==="lightMode"&&"浅色模式"||S(t).rhythmMode==="dartMode"&&"深色模式"),1)]),_:1},8,["type"])]),_:1})],2)]),L("div",Yq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 应用字体 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(ue,{size:"large",trigger:"click",options:k.value,onSelect:C},{default:ne(()=>[w(j,{size:"small",strong:"",secondary:"",type:F.value[S(x).currentFont].type},{default:ne(()=>[$(it(S(x).currentFont),1)]),_:1},8,["type"])]),_:1},8,["options"])],2)]),L("div",Qq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 激活口令 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"warning",secondary:"",loading:S(t).loading||S(o).loading||S(f),onClick:_[2]||(_[2]=Se=>B())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(UG))]),_:1})]),default:ne(()=>[_[57]||(_[57]=$(" 导入激活口令 "))]),_:1},8,["loading"])],2)]),S(t).shamikoInfo.installed?(Re(),Ie("div",Jq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Shamiko 工作模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[3]||(_[3]=Se=>K(Se)),"rail-style":R,value:S(t).shamikoInfo.mode==="whitelist",loading:S(t).loading},{checked:ne(()=>_[58]||(_[58]=[$("白名单模式")])),unchecked:ne(()=>_[59]||(_[59]=[$("黑名单模式")])),_:1},8,["value","loading"])],2)])):Je("",!0),L("div",eZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 暗码拨号盘 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:_[4]||(_[4]=()=>kV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(JG))]),_:1})]),default:ne(()=>[_[60]||(_[60]=$(" 暗码拨号盘 "))]),_:1},8,["loading"]),w(G,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:ne(()=>_[61]||(_[61]=[L("p",null,"Tips: 暗码必须以*#*#开头,且以#*#*结尾",-1),L("p",null,"eg: 开启 LSPosed 管理器的暗码:*#*#5776733#*#*",-1),L("p",null,"「安全警示: 暗码拨号器是面向开发者调试的功能,用于打开一些隐藏设定,如果您不了解暗码作用与功能建议不要轻易尝试,可能会导致您的设备数据丢失!」",-1)])),_:1})],2)]),L("div",tZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," LSPosed 管理器 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[5]||(_[5]=()=>zV())},{default:ne(()=>_[62]||(_[62]=[$(" LSPosed 管理器 ")])),_:1},8,["loading"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=1&&S(t).deviceCharacteristics==="tablet"?(Re(),Ie("div",oZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[_[64]||(_[64]=L("p",null,"工作台模式",-1)),S(t).enabledMiuiDesktopMode?Je("",!0):(Re(),Ie("p",nZ,[w(j,{strong:"",secondary:"",size:"small",onClick:_[6]||(_[6]=()=>S(n).changeMiuiDesktopModeEnabled()),type:"warning"},{default:ne(()=>_[63]||(_[63]=[$(" 启用功能 ")])),_:1})]))],2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[7]||(_[7]=Se=>S(n).changeMiuiDktMode(Se)),"rail-style":R,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:ne(()=>_[65]||(_[65]=[$("工作台模式")])),unchecked:ne(()=>_[66]||(_[66]=[$("默认桌面模式")])),_:1},8,["disabled","value","loading"])],2)])):Je("",!0),L("div",rZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},_[67]||(_[67]=[L("p",null,"传送门",-1)]),2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("div",null,[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[8]||(_[8]=()=>S(r).open())},{icon:ne(()=>_[68]||(_[68]=[L("img",{src:xq},null,-1)])),default:ne(()=>[_[69]||(_[69]=$(" 传送门 "))]),_:1},8,["loading"])]),S(r).isInstallMIUIContentExtension.value?(Re(),Lt(G,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>[L("p",null,[_[71]||(_[71]=$("您可以通过 ")),w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[9]||(_[9]=()=>S(r).fix())},{default:ne(()=>_[70]||(_[70]=[$(" 传送门异常修复 ")])),_:1},8,["loading"]),_[72]||(_[72]=$(" 移除「游戏工具箱」内的「传送门」"))])]),_:1})):Je("",!0)],2)]),S(t).hasPenEnableControl?(Re(),Ie("div",iZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[_[74]||(_[74]=$(" 第三方触控笔管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Je("",!0):(Re(),Ie("p",aZ,[w(j,{strong:"",secondary:"",size:"small",onClick:_[10]||(_[10]=()=>S(E).enableSetting()),type:"warning"},{default:ne(()=>_[73]||(_[73]=[$(" 启用功能 ")])),_:1})]))],2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[11]||(_[11]=Se=>S(E).changePenEnableMode(Se)),"rail-style":R,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(E).currentPenEnable.value,loading:S(t).loading},{checked:ne(()=>_[75]||(_[75]=[$("已启用")])),unchecked:ne(()=>_[76]||(_[76]=[$("未启用")])),_:1},8,["disabled","value","loading"]),w(G,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:ne(()=>_[77]||(_[77]=[$("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_enable 开关映射时生效")])),_:1})],2)])):Je("",!0),S(t).hasPenUpdateControl?(Re(),Ie("div",lZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[_[79]||(_[79]=$(" 手写笔驱动管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Je("",!0):(Re(),Ie("p",sZ,[w(j,{strong:"",secondary:"",size:"small",onClick:_[12]||(_[12]=()=>S(E).enableSetting()),type:"warning"},{default:ne(()=>_[78]||(_[78]=[$(" 启用功能 ")])),_:1})]))],2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[13]||(_[13]=Se=>S(E).changePenUpdateMode(Se)),"rail-style":R,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(E).currentPenUpdate.value,loading:S(t).loading},{checked:ne(()=>_[80]||(_[80]=[$("二代笔驱动")])),unchecked:ne(()=>_[81]||(_[81]=[$("一代笔驱动")])),_:1},8,["disabled","value","loading"]),w(G,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:ne(()=>_[82]||(_[82]=[L("p",null,"Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_update 开关映射时生效",-1)])),_:1})],2)])):Je("",!0),S(t).hasKeyboardControl?(Re(),Ie("div",uZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[_[84]||(_[84]=$(" 键盘连接器管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Je("",!0):(Re(),Ie("p",dZ,[w(j,{strong:"",secondary:"",size:"small",onClick:_[14]||(_[14]=()=>S(E).enableSetting()),type:"warning"},{default:ne(()=>_[83]||(_[83]=[$(" 启用功能 ")])),_:1})]))],2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(ue,{value:S(E).currentKeyboardModeSelect,size:"large",trigger:"click",options:S(E).keyboardModeOptions.value,onSelect:S(E).changeKeyboardMode},{default:ne(()=>[w(j,{strong:"",secondary:"",disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,size:"small",type:S(E).currentKeyboardModeSelect.value.type},{default:ne(()=>[$(it(S(E).currentKeyboardModeSelect.value.label),1)]),_:1},8,["disabled","type"])]),_:1},8,["value","options","onSelect"]),w(G,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:ne(()=>_[85]||(_[85]=[$("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/keyboard 开关映射时生效")])),_:1})],2)])):Je("",!0),L("div",cZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标光标样式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(ue,{size:"large",trigger:"click",options:[{label:"箭头",key:3},{label:"圆点",key:1},{label:"空心圆",key:0}],onSelect:_[15]||(_[15]=Se=>{S(s).changeMiuiCursorStyleType(Se)})},{default:ne(()=>[w(j,{size:"small",class:"mb-3 mr-3",type:"success",secondary:"",loading:S(t).loading},{default:ne(()=>[$(it(S(s).currentMiuiCursorStyleType.value===3&&"箭头"||"")+" "+it(S(s).currentMiuiCursorStyleType.value===1&&"圆点"||"")+" "+it(S(s).currentMiuiCursorStyleType.value===0&&"空心圆"||""),1)]),_:1},8,["loading"])]),_:1})],2)]),L("div",fZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标自然滚动 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[16]||(_[16]=Se=>S(u).changeMouseGestureNaturalscroll(Se)),"rail-style":R,value:S(u).currentMouseGestureNaturalscroll.value===1},{checked:ne(()=>_[86]||(_[86]=[$("已开启鼠标自然滚动")])),unchecked:ne(()=>_[87]||(_[87]=[$("未开启鼠标自然滚动")])),_:1},8,["value"]),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[88]||(_[88]=[L("p",null,"开启后内容随手指移动",-1)])),_:1})],2)]),L("div",hZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标指针速度 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(_e,{size:"small",min:-7,"onUpdate:value":[_[17]||(_[17]=Se=>I2(Se)),_[18]||(_[18]=Se=>S(d).currentPointerSpeed.value=Se)],max:7,value:S(d).currentPointerSpeed.value,step:1},null,8,["value"]),w(pe,{"show-button":!1,class:"pt-3",readonly:"",value:S(d).currentPointerSpeed.value,"onUpdate:value":_[19]||(_[19]=Se=>S(d).currentPointerSpeed.value=Se),placeholder:"请输入鼠标指针速度",min:-7,max:7,step:1},null,8,["value"])],2)]),L("div",pZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 个性化主题导入 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"warning",secondary:"",loading:S(t).loading,onClick:_[20]||(_[20]=()=>OV())},{icon:ne(()=>_[89]||(_[89]=[L("img",{src:Hb},null,-1)])),default:ne(()=>[_[90]||(_[90]=$(" 导入个性化主题 "))]),_:1},8,["loading"]),w(G,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:ne(()=>[_[92]||(_[92]=L("p",null,"需要搭配 LSPosed 模块[主题破解],才能够正常导入[个性化主题],导入按钮位于界面最底部[从SD卡导入]~",-1)),w(j,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:_[21]||(_[21]=()=>H("主题破解","https://caiyun.139.com/m/i?135CmXA9aKh8Y","original"))},{default:ne(()=>_[91]||(_[91]=[$("获取主题破解")])),_:1})]),_:1})],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Ie("div",mZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 动态壁纸 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:_[22]||(_[22]=()=>$V())},{icon:ne(()=>_[93]||(_[93]=[L("img",{src:Hb},null,-1)])),default:ne(()=>[_[94]||(_[94]=$(" AI 动态壁纸 "))]),_:1},8,["loading"]),w(j,{strong:"",secondary:"",size:"small",circle:"",type:"error",class:"ml-2",onClick:_[23]||(_[23]=()=>AV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(Em))]),_:1})]),_:1})],2)])):Je("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(Re(),Ie("div",gZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[24]||(_[24]=()=>PV())},{icon:ne(()=>_[95]||(_[95]=[L("img",{src:Nb},null,-1)])),default:ne(()=>[_[96]||(_[96]=$(" 算力共享 "))]),_:1},8,["loading"]),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[97]||(_[97]=[L("p",null,"在附近高算力设备提供的算力支持下,平板获得部分 AI 功能",-1)])),_:1})],2)])):Je("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics!=="tablet"?(Re(),Ie("div",vZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[25]||(_[25]=()=>MV())},{icon:ne(()=>_[98]||(_[98]=[L("img",{src:Nb},null,-1)])),default:ne(()=>[_[99]||(_[99]=$(" 算力共享 "))]),_:1},8,["loading"]),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[100]||(_[100]=[L("p",null,"将设备的 AI 算力共享给平板设备,让平板设备获得部分 AI 功能",-1)])),_:1})],2)])):Je("",!0),L("div",bZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 超级小爱翻译 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:_[26]||(_[26]=()=>BV())},{icon:ne(()=>_[101]||(_[101]=[L("img",{src:sd},null,-1)])),default:ne(()=>[_[102]||(_[102]=$(" 超级小爱翻译 "))]),_:1},8,["loading"])],2)]),L("div",xZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 同声传译 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:_[27]||(_[27]=()=>DV())},{icon:ne(()=>_[103]||(_[103]=[L("img",{src:sd},null,-1)])),default:ne(()=>[_[104]||(_[104]=$(" AI 同声传译 "))]),_:1},8,["loading"]),w(G,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:ne(()=>_[105]||(_[105]=[L("p",null,'打电话或开会时,打开"AI 同声传译,可以将双方的说话内容实时翻译给对方,帮助跨语言聊天。',-1),L("p",null,'Tips: 如无法打开请将"小爱翻译"和"超级小爱"升级到最新版',-1)])),_:1})],2)]),L("div",yZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏显示布局 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[28]||(_[28]=Se=>O(Se)),value:S(b).isSupportGameMode,"rail-style":R,disabled:S(t).deviceCharacteristics!=="tablet"||S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:ne(()=>_[106]||(_[106]=[$("已开启游戏显示布局")])),unchecked:ne(()=>[$(it(S(t).androidTargetSdk&&S(t).androidTargetSdk<32?"不支持游戏显示布局":"未开启游戏显示布局"),1)]),_:1},8,["value","disabled"])],2)]),L("div",CZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 旋转建议提示按钮 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[29]||(_[29]=Se=>N(Se)),"rail-style":R,value:S(t).showRotationSuggestions},{checked:ne(()=>_[107]||(_[107]=[$("已启用旋转建议提示按钮")])),unchecked:ne(()=>_[108]||(_[108]=[$("已关闭旋转建议提示按钮")])),_:1},8,["value"])],2)]),S(t).deviceCharacteristics==="tablet"&&S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Ie("div",wZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 手势提示线(小白条) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(oe,{"onUpdate:value":_[30]||(_[30]=Se=>S(l).changeIsHideGestureLine(Se)),"rail-style":R,value:S(l).currentIsHideGestureLine.value===1},{checked:ne(()=>_[109]||(_[109]=[$("隐藏手势提示线")])),unchecked:ne(()=>_[110]||(_[110]=[$("显示手势提示线")])),_:1},8,["value"])],2)])):Je("",!0),L("div",SZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Google 服务 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[31]||(_[31]=()=>TV())},{icon:ne(()=>_[111]||(_[111]=[L("img",{src:yq},null,-1)])),default:ne(()=>[_[112]||(_[112]=$(" Google 服务 "))]),_:1},8,["loading"]),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[113]||(_[113]=[L("p",null,"仅在开启 Google 基础服务 下生效",-1)])),_:1})],2)]),L("div",EZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 隐身模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[32]||(_[32]=()=>$N())},{icon:ne(()=>[w(S(YG))]),default:ne(()=>[_[114]||(_[114]=$(" 隐身模式 "))]),_:1},8,["loading"]),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[115]||(_[115]=[L("p",null,"开启后系统将拒绝所有应用录音、定位和拍照,保护您的隐私安全",-1)])),_:1})],2)]),L("div",kZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 自动任务 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:_[33]||(_[33]=()=>IV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(ZG))]),_:1})]),default:ne(()=>[_[116]||(_[116]=$(" 自动任务 "))]),_:1},8,["loading"])],2)]),L("div",_Z,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 实时字幕 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[34]||(_[34]=()=>CV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(QG))]),_:1})]),default:ne(()=>[_[117]||(_[117]=$(" 实时字幕 "))]),_:1},8,["loading"]),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[118]||(_[118]=[L("p",null,'Tips: 部分设备需要安装最新版"小爱翻译"或者强开「实时字幕」才能够正常使用!',-1)])),_:1})],2)]),L("div",FZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Mi剪辑 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:_[35]||(_[35]=()=>wV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(eq))]),_:1})]),default:ne(()=>[_[119]||(_[119]=$(" Mi剪辑 "))]),_:1},8,["loading"])],2)]),L("div",RZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 极暗模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[36]||(_[36]=()=>SV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(KG))]),_:1})]),default:ne(()=>[_[120]||(_[120]=$(" 极暗模式 "))]),_:1},8,["loading"])],2)]),L("div",$Z,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 颜色反转 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[37]||(_[37]=()=>EV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(nq))]),_:1})]),default:ne(()=>[_[121]||(_[121]=$(" 颜色反转 "))]),_:1},8,["loading"])],2)]),L("div",PZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 正在运行的服务 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[38]||(_[38]=()=>_V())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(oq))]),_:1})]),default:ne(()=>[_[122]||(_[122]=$(" 正在运行的服务 "))]),_:1},8,["loading"])],2)]),L("div",MZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 内存使用量 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[39]||(_[39]=()=>RV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(tq))]),_:1})]),default:ne(()=>[_[123]||(_[123]=$(" 内存使用量 "))]),_:1},8,["loading"])],2)]),L("div",AZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 通知日志 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:_[40]||(_[40]=()=>FV())},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(GG))]),_:1})]),default:ne(()=>[_[124]||(_[124]=$(" 通知日志 "))]),_:1},8,["loading"])],2)]),S(t).MIOSVersion?(Re(),Ie("div",BZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Xiaomi Hyper OS 版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).MIOSVersion?`Xiaomi + Hyper OS ${S(t).MIOSVersion}`:"当前为MIUI"),3)])):Je("",!0),S(t).systemVersion?(Re(),Ie("div",DZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统版本 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).systemVersion||""),3)])):Je("",!0),S(t).systemPreVersion?(Re(),Ie("div",TZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 上次更新的系统版本 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).systemPreVersion||""),3)])):Je("",!0),L("div",IZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Android Target Version ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).androidTargetSdk||"非Android设备环境"),3)]),L("div",zZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备类型 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).deviceCharacteristics==="tablet"?"平板(Pad)":"折叠屏(Fold)"),3)]),S(t).deviceInfo.socModel?(Re(),Ie("div",OZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc类型 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).deviceInfo.socModel||"获取失败"),3)])):Je("",!0),S(t).deviceInfo.socName?(Re(),Ie("div",LZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc名称 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(S(t).deviceInfo.socName||"获取失败"),3)])):Je("",!0),S(t).deviceInfo.display0Panel?(Re(),Ie("div",HZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备显示器信息(display0) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(S(t).deviceInfo.display0Panel),1)],2)])):Je("",!0),S(t).deviceInfo.memoryInfo?(Re(),Ie("div",NZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备DDR和UFS信息 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("div",VZ,it(S(t).deviceInfo.memoryInfo||"获取失败"),1)],2)])):Je("",!0),L("div",jZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 性能监视器 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(ue,{size:"large",trigger:"click",options:[{label:"打开性能监视器",key:"start"},{label:"关闭性能监视器",key:"stop"}],onSelect:_[41]||(_[41]=Se=>{NN(Se)})},{default:ne(()=>[w(j,{size:"small",class:"mb-3 mr-3",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(XG))]),_:1})]),default:ne(()=>[_[125]||(_[125]=$(" 性能监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),L("div",WZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 帧率监视器 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[w(ue,{size:"large",trigger:"click",options:[{label:"打开帧率监视器",key:"open"},{label:"关闭帧率监视器",key:"close"}],onSelect:_[42]||(_[42]=Se=>{Vv(Se==="open")})},{default:ne(()=>[w(j,{size:"small",class:"mb-3 mr-3",type:"info",secondary:"",loading:S(t).loading},{icon:ne(()=>[w(he,null,{default:ne(()=>[w(S(qG))]),_:1})]),default:ne(()=>[_[126]||(_[126]=$(" 帧率监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),S(a).formatDisplayModeList.value.length?(Re(),Ie("div",UZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 分辨率及刷新率 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(Re(!0),Ie(ft,null,xa(S(a).formatDisplayModeList.value,Se=>(Re(),Ie("div",{class:"mb-3 flex",key:Se.id},[L("p",KZ,"ID: "+it(Se.id),1),L("p",GZ,"分辨率: "+it(`${Se.width}x${Se.height}`),1),L("p",qZ,"刷新率: "+it(`${Se.fps} Hz`),1),w(j,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>S(a).selectDisplayMode(Se)},{default:ne(()=>_[127]||(_[127]=[$(" 应用该配置 ")])),_:2},1032,["loading","onClick"])]))),128))],2)])):Je("",!0),S(i).qcomBatteryFg1RSocInfo.current?(Re(),Ie("div",ZZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量(高通) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,[$(it(`${S(i).qcomBatteryFg1RSocInfo.current} %`)+" ",1),w(j,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:_[43]||(_[43]=Se=>S(i).qcomBatteryFg1RSocInfo.reload())},{default:ne(()=>_[128]||(_[128]=[$("手动刷新")])),_:1}),w(oe,{class:"ml-2",value:S(i).qcomBatteryFg1RSocInfo.autoReload,"onUpdate:value":_[44]||(_[44]=Se=>S(i).qcomBatteryFg1RSocInfo.autoReload=Se),"rail-style":R},{checked:ne(()=>_[129]||(_[129]=[$("开启自动刷新")])),unchecked:ne(()=>_[130]||(_[130]=[$("未开启自动刷新")])),_:1},8,["value"])]),S(i).qcomBatteryFg1RSocInfo.autoReload?(Re(),Ie("div",XZ,[_[131]||(_[131]=L("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),L("p",null,[w(_e,{value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":_[45]||(_[45]=Se=>S(i).qcomBatteryFg1RSocInfo.timer=Se),size:"small",min:1,max:30,step:1},null,8,["value"]),w(pe,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":_[46]||(_[46]=Se=>S(i).qcomBatteryFg1RSocInfo.timer=Se),min:0,max:30,step:1},null,8,["value"])])])):Je("",!0)],2)])):Je("",!0),S(i).capacityRawInfo.current?(Re(),Ie("div",YZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,[$(it(`${S(i).capacityRawInfo.current/100} %`)+" ",1),w(j,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:_[47]||(_[47]=Se=>S(i).capacityRawInfo.reload())},{default:ne(()=>_[132]||(_[132]=[$("手动刷新")])),_:1}),w(oe,{class:"ml-2",value:S(i).capacityRawInfo.autoReload,"onUpdate:value":_[48]||(_[48]=Se=>S(i).capacityRawInfo.autoReload=Se),"rail-style":R},{checked:ne(()=>_[133]||(_[133]=[$("开启自动刷新")])),unchecked:ne(()=>_[134]||(_[134]=[$("未开启自动刷新")])),_:1},8,["value"])]),S(i).capacityRawInfo.autoReload?(Re(),Ie("div",QZ,[_[135]||(_[135]=L("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),L("p",null,[w(_e,{value:S(i).capacityRawInfo.timer,"onUpdate:value":_[49]||(_[49]=Se=>S(i).capacityRawInfo.timer=Se),size:"small",min:1,max:30,step:1},null,8,["value"]),w(pe,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).capacityRawInfo.timer,"onUpdate:value":_[50]||(_[50]=Se=>S(i).capacityRawInfo.timer=Se),min:0,max:30,step:1},null,8,["value"])])])):Je("",!0)],2)])):Je("",!0),S(t).batteryInfo.chargeFullDesign?(Re(),Ie("div",JZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池出厂设计容量 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${S(t).batteryInfo.chargeFullDesign/1e3} mAh`),1)],2)])):Je("",!0),S(t).batteryInfo.chargeFull?(Re(),Ie("div",eX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池当前预估容量 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${S(t).batteryInfo.chargeFull/1e3} mAh`),1)],2)])):Je("",!0),S(t).batteryInfo.cycleCount?(Re(),Ie("div",tX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池循环充电次数 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${S(t).batteryInfo.cycleCount} 次`),1)],2)])):Je("",!0),S(t).batteryInfo.chargeFullDesign&&S(t).batteryInfo.chargeFull?(Re(),Ie("div",oX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池预估健康度 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${(S(t).batteryInfo.chargeFull/S(t).batteryInfo.chargeFullDesign*100).toFixed(2)} %`),1)],2)])):Je("",!0),S(t).batteryInfo.sohQcom?(Re(),Ie("div",nX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(高通) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${S(t).batteryInfo.sohQcom} %`),1),L("p",null,it(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohQcom/100)/1e3)} mAh`),1),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[136]||(_[136]=[L("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Je("",!0),S(t).batteryInfo.sohMTK?(Re(),Ie("div",rX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${S(t).batteryInfo.sohMTK} %`),1),L("p",null,it(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohMTK/100)/1e3)} + mAh`),1),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[137]||(_[137]=[L("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Je("",!0),S(t).batteryInfo.sohXMPower?(Re(),Ie("div",iX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(小米) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${S(t).batteryInfo.sohXMPower} %`),1),L("p",null,it(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohXMPower/100)/1e3)} mAh`),1),w(G,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:ne(()=>_[138]||(_[138]=[L("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Je("",!0)],2)],2)])])}}}),lX=OH({history:gH(),routes:[{path:"/",redirect:"/home"},{path:"/home",name:"home",component:cq},{path:"/autoui",name:"autoui",component:bq},{path:"/settings",name:"settings",component:aX},{path:"/embedded-webview",name:"embedded-webview",component:()=>_n(()=>import("./EmbeddedWebView-CMkPuHFE.js"),__vite__mapDeps([0,1]))},{path:"/appStore",name:"appStore",component:()=>_n(()=>import("./AppStore-BU3sN5yK.js"),[])},{path:"/logs",name:"logs",component:()=>_n(()=>import("./LogView-BZmNKDND.js"),__vite__mapDeps([2,3]))},{path:"/game-booster",name:"game-booster",component:()=>_n(()=>import("./GameBooster-CffxOwov.js"),[])},{path:"/game-turbo-config",name:"game-turbo-config",component:()=>_n(()=>import("./GameTurboConfig-DXP5o1B3.js"),__vite__mapDeps([4,3]))},{path:"/dot-black-list",name:"dot-black-list",component:()=>_n(()=>import("./DotBlackListView-Drcw_pKr.js"),[])},{path:"/tools",name:"tools",component:()=>_n(()=>import("./ToolsView-HnojCS-C.js"),[])},{path:"/eggs",name:"eggs",component:()=>_n(()=>import("./HappyNewYearEgg-DMVRILz4.js"),[])}],scrollBehavior(e,t,o){return{top:0}}}),sX=PL({components:[Et,aI,sI,gL,K5,VO,p2,V5,hL,Tu,zC,rn,rL,dL,Iu,rm,YA,e5,rd,CL,vL,M5,kD,p9,rO,oo,eL,OL,S9,O9,N9,qp,kL,i5,vO,Vd,XO,xw,i2,Wt,B9]}),nc=mx(LW),s6=QE();s6.use(h4);nc.use(s6);nc.use(sX);nc.use(lX);nc.mount("#app");export{NN as $,hS as A,hX as B,Rt as C,tC as D,q8 as E,wp as F,Ip as G,Rs as H,ya as I,DW as J,gm as K,xs as L,qb as M,np as N,it as O,ft as P,r6 as Q,H2 as R,Rq as S,mS as T,It as U,HH as V,Et as W,Wt as X,cS as Y,lS as Z,bS as _,Xt as a,XG as a0,Vv as a1,qG as a2,L2 as a3,CS as a4,O2 as a5,rn as a6,dS as a7,pS as a8,$e as a9,wq as aA,Sq as aB,Eq as aC,Cq as aD,yS as aE,WH as aF,AP as aG,uX as aH,cX as aa,fX as ab,HN as ac,i6 as ad,Fe as ae,Ee as af,n6 as ag,fq as ah,fS as ai,sS as aj,ld as ak,Uj as al,l6 as am,uS as an,gX as ao,pX as ap,z2 as aq,m as ar,dm as as,_m as at,La as au,ko as av,a6 as aw,Em as ax,km as ay,Hs as az,ne as b,Lt as c,xe as d,lt as e,Re as f,L as g,St as h,T as i,lo as j,Ie as k,S as l,w as m,ye as n,ut as o,Je as p,sd as q,M as r,$ as s,Hb as t,B2 as u,oo as v,at as w,Kt as x,ui as y,kt as z}; diff --git a/module_src/webroot/assets/index-BmNUNV6O.js b/module_src/webroot/assets/index-BmNUNV6O.js deleted file mode 100644 index f3c5be09..00000000 --- a/module_src/webroot/assets/index-BmNUNV6O.js +++ /dev/null @@ -1,4202 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EmbeddedWebView-DqK3I8Ls.js","assets/EmbeddedWebView-CvGGpVR8.css","assets/LogView-DRJfJdVP.js","assets/LogView-CDMl6FPM.css","assets/GameTurboConfig-DVUS_Z7q.js"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();/** -* @vue/shared v3.5.11 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function zh(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Nt={},Ca=[],Un=()=>{},R6=()=>!1,fd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Oh=e=>e.startsWith("onUpdate:"),fo=Object.assign,Lh=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},$6=Object.prototype.hasOwnProperty,Tt=(e,t)=>$6.call(e,t),ht=Array.isArray,wa=e=>hd(e)==="[object Map]",Vb=e=>hd(e)==="[object Set]",mt=e=>typeof e=="function",eo=e=>typeof e=="string",ti=e=>typeof e=="symbol",Kt=e=>e!==null&&typeof e=="object",jb=e=>(Kt(e)||mt(e))&&mt(e.then)&&mt(e.catch),Wb=Object.prototype.toString,hd=e=>Wb.call(e),P6=e=>hd(e).slice(8,-1),Ub=e=>hd(e)==="[object Object]",Hh=e=>eo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kl=zh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pd=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},M6=/-(\w)/g,vn=pd(e=>e.replace(M6,(t,o)=>o?o.toUpperCase():"")),A6=/\B([A-Z])/g,ji=pd(e=>e.replace(A6,"-$1").toLowerCase()),md=pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),gc=pd(e=>e?`on${md(e)}`:""),Qr=(e,t)=>!Object.is(e,t),vc=(e,...t)=>{for(let o=0;o<e.length;o++)e[o](...t)},Kb=(e,t,o,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},B6=e=>{const t=parseFloat(e);return isNaN(t)?e:t},D6=e=>{const t=eo(e)?Number(e):NaN;return isNaN(t)?e:t};let Fm;const Gb=()=>Fm||(Fm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gd(e){if(ht(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],r=eo(n)?O6(n):gd(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(eo(e)||Kt(e))return e}const T6=/;(?![^(]*\))/g,I6=/:([^]+)/,z6=/\/\*[^]*?\*\//g;function O6(e){const t={};return e.replace(z6,"").split(T6).forEach(o=>{if(o){const n=o.split(I6);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(e){let t="";if(eo(e))t=e;else if(ht(e))for(let o=0;o<e.length;o++){const n=ye(e[o]);n&&(t+=n+" ")}else if(Kt(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}function qb(e){if(!e)return null;let{class:t,style:o}=e;return t&&!eo(t)&&(e.class=ye(t)),o&&(e.style=gd(o)),e}const L6="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",H6=zh(L6);function Zb(e){return!!e||e===""}const Xb=e=>!!(e&&e.__v_isRef===!0),it=e=>eo(e)?e:e==null?"":ht(e)||Kt(e)&&(e.toString===Wb||!mt(e.toString))?Xb(e)?it(e.value):JSON.stringify(e,Yb,2):String(e),Yb=(e,t)=>Xb(t)?Yb(e,t.value):wa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,r],i)=>(o[bc(n,i)+" =>"]=r,o),{})}:Vb(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>bc(o))}:ti(t)?bc(t):Kt(t)&&!ht(t)&&!Ub(t)?String(t):t,bc=(e,t="")=>{var o;return ti(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};/** -* @vue/reactivity v3.5.11 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let To;class Qb{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=To,!t&&To&&(this.index=(To.scopes||(To.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].pause();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].resume();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].resume()}}run(t){if(this._active){const o=To;try{return To=this,t()}finally{To=o}}}on(){To=this}off(){To=this.parent}stop(t){if(this._active){let o,n;for(o=0,n=this.effects.length;o<n;o++)this.effects[o].stop();for(o=0,n=this.cleanups.length;o<n;o++)this.cleanups[o]();if(this.scopes)for(o=0,n=this.scopes.length;o<n;o++)this.scopes[o].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Jb(e){return new Qb(e)}function e1(){return To}function N6(e,t=!1){To&&To.cleanups.push(e)}let jt;const xc=new WeakSet;class t1{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,To&&To.active&&To.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xc.has(this)&&(xc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||n1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Rm(this),r1(this);const t=jt,o=Rn;jt=this,Rn=!0;try{return this.fn()}finally{i1(this),jt=t,Rn=o,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)jh(t);this.deps=this.depsTail=void 0,Rm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$f(this)&&this.run()}get dirty(){return $f(this)}}let o1=0,_l,Fl;function n1(e,t=!1){if(e.flags|=8,t){e.next=Fl,Fl=e;return}e.next=_l,_l=e}function Nh(){o1++}function Vh(){if(--o1>0)return;if(Fl){let t=Fl;for(Fl=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;_l;){let t=_l;for(_l=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function r1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function i1(e){let t,o=e.depsTail,n=o;for(;n;){const r=n.prevDep;n.version===-1?(n===o&&(o=r),jh(n),V6(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=o}function $f(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl))return;e.globalVersion=Wl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!$f(e)){e.flags&=-3;return}const o=jt,n=Rn;jt=e,Rn=!0;try{r1(e);const r=e.fn(e._value);(t.version===0||Qr(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{jt=o,Rn=n,i1(e),e.flags&=-3}}function jh(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n),!o.subs&&o.computed){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)jh(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function V6(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let Rn=!0;const l1=[];function oi(){l1.push(Rn),Rn=!1}function ni(){const e=l1.pop();Rn=e===void 0?!0:e}function Rm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=jt;jt=void 0;try{t()}finally{jt=o}}}let Wl=0;class j6{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wh{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!jt||!Rn||jt===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==jt)o=this.activeLink=new j6(jt,this),jt.deps?(o.prevDep=jt.depsTail,jt.depsTail.nextDep=o,jt.depsTail=o):jt.deps=jt.depsTail=o,s1(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=jt.depsTail,o.nextDep=void 0,jt.depsTail.nextDep=o,jt.depsTail=o,jt.deps===o&&(jt.deps=n)}return o}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){Nh();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{Vh()}}}function s1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)s1(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Hu=new WeakMap,Fi=Symbol(""),Pf=Symbol(""),Ul=Symbol("");function $o(e,t,o){if(Rn&&jt){let n=Hu.get(e);n||Hu.set(e,n=new Map);let r=n.get(o);r||(n.set(o,r=new Wh),r.map=n,r.key=o),r.track()}}function mr(e,t,o,n,r,i){const a=Hu.get(e);if(!a){Wl++;return}const l=s=>{s&&s.trigger()};if(Nh(),t==="clear")a.forEach(l);else{const s=ht(e),u=s&&Hh(o);if(s&&o==="length"){const d=Number(n);a.forEach((c,h)=>{(h==="length"||h===Ul||!ti(h)&&h>=d)&&l(c)})}else switch(o!==void 0&&l(a.get(o)),u&&l(a.get(Ul)),t){case"add":s?u&&l(a.get("length")):(l(a.get(Fi)),wa(e)&&l(a.get(Pf)));break;case"delete":s||(l(a.get(Fi)),wa(e)&&l(a.get(Pf)));break;case"set":wa(e)&&l(a.get(Fi));break}}Vh()}function W6(e,t){const o=Hu.get(e);return o&&o.get(t)}function na(e){const t=Pt(e);return t===e?t:($o(t,"iterate",Ul),gn(e)?t:t.map(Fo))}function vd(e){return $o(e=Pt(e),"iterate",Ul),e}const U6={__proto__:null,[Symbol.iterator](){return yc(this,Symbol.iterator,Fo)},concat(...e){return na(this).concat(...e.map(t=>ht(t)?na(t):t))},entries(){return yc(this,"entries",e=>(e[1]=Fo(e[1]),e))},every(e,t){return ir(this,"every",e,t,void 0,arguments)},filter(e,t){return ir(this,"filter",e,t,o=>o.map(Fo),arguments)},find(e,t){return ir(this,"find",e,t,Fo,arguments)},findIndex(e,t){return ir(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ir(this,"findLast",e,t,Fo,arguments)},findLastIndex(e,t){return ir(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ir(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cc(this,"includes",e)},indexOf(...e){return Cc(this,"indexOf",e)},join(e){return na(this).join(e)},lastIndexOf(...e){return Cc(this,"lastIndexOf",e)},map(e,t){return ir(this,"map",e,t,void 0,arguments)},pop(){return ol(this,"pop")},push(...e){return ol(this,"push",e)},reduce(e,...t){return $m(this,"reduce",e,t)},reduceRight(e,...t){return $m(this,"reduceRight",e,t)},shift(){return ol(this,"shift")},some(e,t){return ir(this,"some",e,t,void 0,arguments)},splice(...e){return ol(this,"splice",e)},toReversed(){return na(this).toReversed()},toSorted(e){return na(this).toSorted(e)},toSpliced(...e){return na(this).toSpliced(...e)},unshift(...e){return ol(this,"unshift",e)},values(){return yc(this,"values",Fo)}};function yc(e,t,o){const n=vd(e),r=n[t]();return n!==e&&!gn(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=o(i.value)),i}),r}const K6=Array.prototype;function ir(e,t,o,n,r,i){const a=vd(e),l=a!==e&&!gn(e),s=a[t];if(s!==K6[t]){const c=s.apply(e,i);return l?Fo(c):c}let u=o;a!==e&&(l?u=function(c,h){return o.call(this,Fo(c),h,e)}:o.length>2&&(u=function(c,h){return o.call(this,c,h,e)}));const d=s.call(a,u,n);return l&&r?r(d):d}function $m(e,t,o,n){const r=vd(e);let i=o;return r!==e&&(gn(e)?o.length>3&&(i=function(a,l,s){return o.call(this,a,l,s,e)}):i=function(a,l,s){return o.call(this,a,Fo(l),s,e)}),r[t](i,...n)}function Cc(e,t,o){const n=Pt(e);$o(n,"iterate",Ul);const r=n[t](...o);return(r===-1||r===!1)&&qh(o[0])?(o[0]=Pt(o[0]),n[t](...o)):r}function ol(e,t,o=[]){oi(),Nh();const n=Pt(e)[t].apply(e,o);return Vh(),ni(),n}const G6=zh("__proto__,__v_isRef,__isVue"),u1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ti));function q6(e){ti(e)||(e=String(e));const t=Pt(this);return $o(t,"has",e),t.hasOwnProperty(e)}class d1{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){const r=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!r;if(o==="__v_isReadonly")return r;if(o==="__v_isShallow")return i;if(o==="__v_raw")return n===(r?i?l3:p1:i?h1:f1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=ht(t);if(!r){let s;if(a&&(s=U6[o]))return s;if(o==="hasOwnProperty")return q6}const l=Reflect.get(t,o,ro(t)?t:n);return(ti(o)?u1.has(o):G6(o))||(r||$o(t,"get",o),i)?l:ro(l)?a&&Hh(o)?l:l.value:Kt(l)?r?Zn(l):It(l):l}}class c1 extends d1{constructor(t=!1){super(!1,t)}set(t,o,n,r){let i=t[o];if(!this._isShallow){const s=Ti(i);if(!gn(n)&&!Ti(n)&&(i=Pt(i),n=Pt(n)),!ht(t)&&ro(i)&&!ro(n))return s?!1:(i.value=n,!0)}const a=ht(t)&&Hh(o)?Number(o)<t.length:Tt(t,o),l=Reflect.set(t,o,n,ro(t)?t:r);return t===Pt(r)&&(a?Qr(n,i)&&mr(t,"set",o,n):mr(t,"add",o,n)),l}deleteProperty(t,o){const n=Tt(t,o);t[o];const r=Reflect.deleteProperty(t,o);return r&&n&&mr(t,"delete",o,void 0),r}has(t,o){const n=Reflect.has(t,o);return(!ti(o)||!u1.has(o))&&$o(t,"has",o),n}ownKeys(t){return $o(t,"iterate",ht(t)?"length":Fi),Reflect.ownKeys(t)}}class Z6 extends d1{constructor(t=!1){super(!0,t)}set(t,o){return!0}deleteProperty(t,o){return!0}}const X6=new c1,Y6=new Z6,Q6=new c1(!0);const Uh=e=>e,bd=e=>Reflect.getPrototypeOf(e);function Us(e,t,o=!1,n=!1){e=e.__v_raw;const r=Pt(e),i=Pt(t);o||(Qr(t,i)&&$o(r,"get",t),$o(r,"get",i));const{has:a}=bd(r),l=n?Uh:o?Zh:Fo;if(a.call(r,t))return l(e.get(t));if(a.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Ks(e,t=!1){const o=this.__v_raw,n=Pt(o),r=Pt(e);return t||(Qr(e,r)&&$o(n,"has",e),$o(n,"has",r)),e===r?o.has(e):o.has(e)||o.has(r)}function Gs(e,t=!1){return e=e.__v_raw,!t&&$o(Pt(e),"iterate",Fi),Reflect.get(e,"size",e)}function Pm(e,t=!1){!t&&!gn(e)&&!Ti(e)&&(e=Pt(e));const o=Pt(this);return bd(o).has.call(o,e)||(o.add(e),mr(o,"add",e,e)),this}function Mm(e,t,o=!1){!o&&!gn(t)&&!Ti(t)&&(t=Pt(t));const n=Pt(this),{has:r,get:i}=bd(n);let a=r.call(n,e);a||(e=Pt(e),a=r.call(n,e));const l=i.call(n,e);return n.set(e,t),a?Qr(t,l)&&mr(n,"set",e,t):mr(n,"add",e,t),this}function Am(e){const t=Pt(this),{has:o,get:n}=bd(t);let r=o.call(t,e);r||(e=Pt(e),r=o.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return r&&mr(t,"delete",e,void 0),i}function Bm(){const e=Pt(this),t=e.size!==0,o=e.clear();return t&&mr(e,"clear",void 0,void 0),o}function qs(e,t){return function(n,r){const i=this,a=i.__v_raw,l=Pt(a),s=t?Uh:e?Zh:Fo;return!e&&$o(l,"iterate",Fi),a.forEach((u,d)=>n.call(r,s(u),s(d),i))}}function Zs(e,t,o){return function(...n){const r=this.__v_raw,i=Pt(r),a=wa(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,u=r[e](...n),d=o?Uh:t?Zh:Fo;return!t&&$o(i,"iterate",s?Pf:Fi),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:l?[d(c[0]),d(c[1])]:d(c),done:h}},[Symbol.iterator](){return this}}}}function Pr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function J6(){const e={get(i){return Us(this,i)},get size(){return Gs(this)},has:Ks,add:Pm,set:Mm,delete:Am,clear:Bm,forEach:qs(!1,!1)},t={get(i){return Us(this,i,!1,!0)},get size(){return Gs(this)},has:Ks,add(i){return Pm.call(this,i,!0)},set(i,a){return Mm.call(this,i,a,!0)},delete:Am,clear:Bm,forEach:qs(!1,!0)},o={get(i){return Us(this,i,!0)},get size(){return Gs(this,!0)},has(i){return Ks.call(this,i,!0)},add:Pr("add"),set:Pr("set"),delete:Pr("delete"),clear:Pr("clear"),forEach:qs(!0,!1)},n={get(i){return Us(this,i,!0,!0)},get size(){return Gs(this,!0)},has(i){return Ks.call(this,i,!0)},add:Pr("add"),set:Pr("set"),delete:Pr("delete"),clear:Pr("clear"),forEach:qs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Zs(i,!1,!1),o[i]=Zs(i,!0,!1),t[i]=Zs(i,!1,!0),n[i]=Zs(i,!0,!0)}),[e,o,t,n]}const[e3,t3,o3,n3]=J6();function Kh(e,t){const o=t?e?n3:o3:e?t3:e3;return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Tt(o,r)&&r in n?o:n,r,i)}const r3={get:Kh(!1,!1)},i3={get:Kh(!1,!0)},a3={get:Kh(!0,!1)};const f1=new WeakMap,h1=new WeakMap,p1=new WeakMap,l3=new WeakMap;function s3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function u3(e){return e.__v_skip||!Object.isExtensible(e)?0:s3(P6(e))}function It(e){return Ti(e)?e:Gh(e,!1,X6,r3,f1)}function m1(e){return Gh(e,!1,Q6,i3,h1)}function Zn(e){return Gh(e,!0,Y6,a3,p1)}function Gh(e,t,o,n,r){if(!Kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=u3(e);if(a===0)return e;const l=new Proxy(e,a===2?n:o);return r.set(e,l),l}function Kr(e){return Ti(e)?Kr(e.__v_raw):!!(e&&e.__v_isReactive)}function Ti(e){return!!(e&&e.__v_isReadonly)}function gn(e){return!!(e&&e.__v_isShallow)}function qh(e){return e?!!e.__v_raw:!1}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Kl(e){return!Tt(e,"__v_skip")&&Object.isExtensible(e)&&Kb(e,"__v_skip",!0),e}const Fo=e=>Kt(e)?It(e):e,Zh=e=>Kt(e)?Zn(e):e;function ro(e){return e?e.__v_isRef===!0:!1}function M(e){return g1(e,!1)}function xd(e){return g1(e,!0)}function g1(e,t){return ro(e)?e:new d3(e,t)}class d3{constructor(t,o){this.dep=new Wh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:Pt(t),this._value=o?t:Fo(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||gn(t)||Ti(t);t=n?t:Pt(t),Qr(t,o)&&(this._rawValue=t,this._value=n?t:Fo(t),this.dep.trigger())}}function E(e){return ro(e)?e.value:e}const c3={get:(e,t,o)=>t==="__v_raw"?e:E(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return ro(r)&&!ro(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function v1(e){return Kr(e)?e:new Proxy(e,c3)}function b1(e){const t=ht(e)?new Array(e.length):{};for(const o in e)t[o]=x1(e,o);return t}class f3{constructor(t,o,n){this._object=t,this._key=o,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return W6(Pt(this._object),this._key)}}class h3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Be(e,t,o){return ro(e)?e:mt(e)?new h3(e):Kt(e)&&arguments.length>1?x1(e,t,o):M(e)}function x1(e,t,o){const n=e[t];return ro(n)?n:new f3(e,t,o)}class p3{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Wh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&jt!==this)return n1(this,!0),!0}get value(){const t=this.dep.track();return a1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function m3(e,t,o=!1){let n,r;return mt(e)?n=e:(n=e.get,r=e.set),new p3(n,r,o)}const Xs={},Nu=new WeakMap;let vi;function g3(e,t=!1,o=vi){if(o){let n=Nu.get(o);n||Nu.set(o,n=[]),n.push(e)}}function v3(e,t,o=Nt){const{immediate:n,deep:r,once:i,scheduler:a,augmentJob:l,call:s}=o,u=C=>r?C:gn(C)||r===!1||r===0?pr(C,1):pr(C);let d,c,h,f,p=!1,g=!1;if(ro(e)?(c=()=>e.value,p=gn(e)):Kr(e)?(c=()=>u(e),p=!0):ht(e)?(g=!0,p=e.some(C=>Kr(C)||gn(C)),c=()=>e.map(C=>{if(ro(C))return C.value;if(Kr(C))return u(C);if(mt(C))return s?s(C,2):C()})):mt(e)?t?c=s?()=>s(e,2):e:c=()=>{if(h){oi();try{h()}finally{ni()}}const C=vi;vi=d;try{return s?s(e,3,[f]):e(f)}finally{vi=C}}:c=Un,t&&r){const C=c,_=r===!0?1/0:r;c=()=>pr(C(),_)}const v=e1(),b=()=>{d.stop(),v&&Lh(v.effects,d)};if(i&&t){const C=t;t=(..._)=>{C(..._),b()}}let x=g?new Array(e.length).fill(Xs):Xs;const k=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const _=d.run();if(r||p||(g?_.some((R,w)=>Qr(R,x[w])):Qr(_,x))){h&&h();const R=vi;vi=d;try{const w=[_,x===Xs?void 0:g&&x[0]===Xs?[]:x,f];s?s(t,3,w):t(...w),x=_}finally{vi=R}}}else d.run()};return l&&l(k),d=new t1(c),d.scheduler=a?()=>a(k,!1):k,f=C=>g3(C,!1,d),h=d.onStop=()=>{const C=Nu.get(d);if(C){if(s)s(C,4);else for(const _ of C)_();Nu.delete(d)}},t?n?k(!0):x=d.run():a?a(k.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function pr(e,t=1/0,o){if(t<=0||!Kt(e)||e.__v_skip||(o=o||new Set,o.has(e)))return e;if(o.add(e),t--,ro(e))pr(e.value,t,o);else if(ht(e))for(let n=0;n<e.length;n++)pr(e[n],t,o);else if(Vb(e)||wa(e))e.forEach(n=>{pr(n,t,o)});else if(Ub(e)){for(const n in e)pr(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&pr(e[n],t,o)}return e}/** -* @vue/runtime-core v3.5.11 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function vs(e,t,o,n){try{return n?e(...n):e()}catch(r){yd(r,t,o)}}function Mn(e,t,o,n){if(mt(e)){const r=vs(e,t,o,n);return r&&jb(r)&&r.catch(i=>{yd(i,t,o)}),r}if(ht(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Mn(e[i],t,o,n));return r}}function yd(e,t,o,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Nt;if(t){let l=t.parent;const s=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${o}`;for(;l;){const d=l.ec;if(d){for(let c=0;c<d.length;c++)if(d[c](e,s,u)===!1)return}l=l.parent}if(i){oi(),vs(i,null,10,[e,s,u]),ni();return}}b3(e,o,r,n,a)}function b3(e,t,o,n=!0,r=!1){if(r)throw e;console.error(e)}const Io=[];let Nn=-1;const Sa=[];let zr=null,ma=0;const y1=Promise.resolve();let Vu=null;function Rt(e){const t=Vu||y1;return e?t.then(this?e.bind(this):e):t}function x3(e){let t=Nn+1,o=Io.length;for(;t<o;){const n=t+o>>>1,r=Io[n],i=Gl(r);i<e||i===e&&r.flags&2?t=n+1:o=n}return t}function Xh(e){if(!(e.flags&1)){const t=Gl(e),o=Io[Io.length-1];!o||!(e.flags&2)&&t>=Gl(o)?Io.push(e):Io.splice(x3(t),0,e),e.flags|=1,C1()}}function C1(){Vu||(Vu=y1.then(S1))}function y3(e){ht(e)?Sa.push(...e):zr&&e.id===-1?zr.splice(ma+1,0,e):e.flags&1||(Sa.push(e),e.flags|=1),C1()}function Dm(e,t,o=Nn+1){for(;o<Io.length;o++){const n=Io[o];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Io.splice(o,1),o--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function w1(e){if(Sa.length){const t=[...new Set(Sa)].sort((o,n)=>Gl(o)-Gl(n));if(Sa.length=0,zr){zr.push(...t);return}for(zr=t,ma=0;ma<zr.length;ma++){const o=zr[ma];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}zr=null,ma=0}}const Gl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function S1(e){try{for(Nn=0;Nn<Io.length;Nn++){const t=Io[Nn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),vs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Nn<Io.length;Nn++){const t=Io[Nn];t&&(t.flags&=-2)}Nn=-1,Io.length=0,w1(),Vu=null,(Io.length||Sa.length)&&S1()}}let vo=null,E1=null;function ju(e){const t=vo;return vo=e,E1=e&&e.type.__scopeId||null,t}function oe(e,t=vo,o){if(!t||e._n)return e;const n=(...r)=>{n._d&&Km(-1);const i=ju(t);let a;try{a=e(...r)}finally{ju(i),n._d&&Km(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Po(e,t){if(vo===null)return e;const o=_d(vo),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,l,s=Nt]=t[r];i&&(mt(i)&&(i={mounted:i,updated:i}),i.deep&&pr(a),n.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:s}))}return e}function di(e,t,o,n){const r=e.dirs,i=t&&t.dirs;for(let a=0;a<r.length;a++){const l=r[a];i&&(l.oldValue=i[a].value);let s=l.dir[n];s&&(oi(),Mn(s,o,8,[e.el,l,e,t]),ni())}}const k1=Symbol("_vte"),_1=e=>e.__isTeleport,Rl=e=>e&&(e.disabled||e.disabled===""),C3=e=>e&&(e.defer||e.defer===""),Tm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Im=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Mf=(e,t)=>{const o=e&&e.to;return eo(o)?t?t(o):null:o},w3={name:"Teleport",__isTeleport:!0,process(e,t,o,n,r,i,a,l,s,u){const{mc:d,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:g,createComment:v}}=u,b=Rl(t.props);let{shapeFlag:x,children:k,dynamicChildren:C}=t;if(e==null){const _=t.el=g(""),R=t.anchor=g("");f(_,o,n),f(R,o,n);const w=($,B)=>{x&16&&(r&&r.isCE&&(r.ce._teleportTarget=$),d(k,$,B,r,i,a,l,s))},A=()=>{const $=t.target=Mf(t.props,p),B=F1($,t,g,f);$&&(a!=="svg"&&Tm($)?a="svg":a!=="mathml"&&Im($)&&(a="mathml"),b||(w($,B),Fu(t)))};b&&(w(o,R),Fu(t)),C3(t.props)?Wo(A,i):A()}else{t.el=e.el,t.targetStart=e.targetStart;const _=t.anchor=e.anchor,R=t.target=e.target,w=t.targetAnchor=e.targetAnchor,A=Rl(e.props),$=A?o:R,B=A?_:w;if(a==="svg"||Tm(R)?a="svg":(a==="mathml"||Im(R))&&(a="mathml"),C?(h(e.dynamicChildren,C,$,r,i,a,l),tp(e,t,!0)):s||c(e,t,$,B,r,i,a,l,!1),b)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ys(t,o,_,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=Mf(t.props,p);U&&Ys(t,U,null,u,0)}else A&&Ys(t,R,w,u,1);Fu(t)}},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:a,children:l,anchor:s,targetStart:u,targetAnchor:d,target:c,props:h}=e;if(c&&(r(u),r(d)),i&&r(s),a&16){const f=i||!Rl(h);for(let p=0;p<l.length;p++){const g=l[p];n(g,t,o,f,!!g.dynamicChildren)}}},move:Ys,hydrate:S3};function Ys(e,t,o,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,o);const{el:a,anchor:l,shapeFlag:s,children:u,props:d}=e,c=i===2;if(c&&n(a,t,o),(!c||Rl(d))&&s&16)for(let h=0;h<u.length;h++)r(u[h],t,o,2);c&&n(l,t,o)}function S3(e,t,o,n,r,i,{o:{nextSibling:a,parentNode:l,querySelector:s,insert:u,createText:d}},c){const h=t.target=Mf(t.props,s);if(h){const f=h._lpa||h.firstChild;if(t.shapeFlag&16)if(Rl(t.props))t.anchor=c(a(e),t,l(e),o,n,r,i),t.targetStart=f,t.targetAnchor=f&&a(f);else{t.anchor=a(e);let p=f;for(;p;){if(p&&p.nodeType===8){if(p.data==="teleport start anchor")t.targetStart=p;else if(p.data==="teleport anchor"){t.targetAnchor=p,h._lpa=t.targetAnchor&&a(t.targetAnchor);break}}p=a(p)}t.targetAnchor||F1(h,t,d,u),c(f&&a(f),t,h,o,n,r,i)}Fu(t)}return t.anchor&&a(t.anchor)}const bs=w3;function Fu(e){const t=e.ctx;if(t&&t.ut){let o=e.targetStart;for(;o&&o!==e.targetAnchor;)o.nodeType===1&&o.setAttribute("data-v-owner",t.uid),o=o.nextSibling;t.ut()}}function F1(e,t,o,n){const r=t.targetStart=o(""),i=t.targetAnchor=o("");return r[k1]=i,e&&(n(r,e),n(i,e)),i}const Or=Symbol("_leaveCb"),Qs=Symbol("_enterCb");function R1(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ut(()=>{e.isMounted=!0}),Xt(()=>{e.isUnmounting=!0}),e}const cn=[Function,Array],$1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cn,onEnter:cn,onAfterEnter:cn,onEnterCancelled:cn,onBeforeLeave:cn,onLeave:cn,onAfterLeave:cn,onLeaveCancelled:cn,onBeforeAppear:cn,onAppear:cn,onAfterAppear:cn,onAppearCancelled:cn},P1=e=>{const t=e.subTree;return t.component?P1(t.component):t},E3={name:"BaseTransition",props:$1,setup(e,{slots:t}){const o=xr(),n=R1();return()=>{const r=t.default&&Yh(t.default(),!0);if(!r||!r.length)return;const i=M1(r),a=Pt(e),{mode:l}=a;if(n.isLeaving)return wc(i);const s=zm(i);if(!s)return wc(i);let u=ql(s,a,n,o,h=>u=h);s.type!==go&&Ii(s,u);const d=o.subTree,c=d&&zm(d);if(c&&c.type!==go&&!bi(s,c)&&P1(o).type!==go){const h=ql(c,a,n,o);if(Ii(c,h),l==="out-in"&&s.type!==go)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete h.afterLeave},wc(i);l==="in-out"&&s.type!==go&&(h.delayLeave=(f,p,g)=>{const v=A1(n,c);v[String(c.key)]=c,f[Or]=()=>{p(),f[Or]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return i}}};function M1(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==go){t=o;break}}return t}const k3=E3;function A1(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function ql(e,t,o,n,r){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:b,onAfterAppear:x,onAppearCancelled:k}=t,C=String(e.key),_=A1(o,e),R=($,B)=>{$&&Mn($,n,9,B)},w=($,B)=>{const U=B[1];R($,B),ht($)?$.every(N=>N.length<=1)&&U():$.length<=1&&U()},A={mode:a,persisted:l,beforeEnter($){let B=s;if(!o.isMounted)if(i)B=v||s;else return;$[Or]&&$[Or](!0);const U=_[C];U&&bi(e,U)&&U.el[Or]&&U.el[Or](),R(B,[$])},enter($){let B=u,U=d,N=c;if(!o.isMounted)if(i)B=b||u,U=x||d,N=k||c;else return;let K=!1;const H=$[Qs]=T=>{K||(K=!0,T?R(N,[$]):R(U,[$]),A.delayedLeave&&A.delayedLeave(),$[Qs]=void 0)};B?w(B,[$,H]):H()},leave($,B){const U=String(e.key);if($[Qs]&&$[Qs](!0),o.isUnmounting)return B();R(h,[$]);let N=!1;const K=$[Or]=H=>{N||(N=!0,B(),H?R(g,[$]):R(p,[$]),$[Or]=void 0,_[U]===e&&delete _[U])};_[U]=e,f?w(f,[$,K]):K()},clone($){const B=ql($,t,o,n,r);return r&&r(B),B}};return A}function wc(e){if(Cd(e))return e=qo(e),e.children=null,e}function zm(e){if(!Cd(e))return _1(e.type)&&e.children?M1(e.children):e;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&mt(o.default))return o.default()}}function Ii(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ii(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Yh(e,t=!1,o){let n=[],r=0;for(let i=0;i<e.length;i++){let a=e[i];const l=o==null?a.key:String(o)+String(a.key!=null?a.key:i);a.type===ft?(a.patchFlag&128&&r++,n=n.concat(Yh(a.children,t,l))):(t||a.type!==go)&&n.push(l!=null?qo(a,{key:l}):a)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function xe(e,t){return mt(e)?fo({name:e.name},t,{setup:e}):e}function _3(){const e=xr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function B1(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Af(e,t,o,n,r=!1){if(ht(e)){e.forEach((p,g)=>Af(p,t&&(ht(t)?t[g]:t),o,n,r));return}if(Ea(n)&&!r)return;const i=n.shapeFlag&4?_d(n.component):n.el,a=r?null:i,{i:l,r:s}=e,u=t&&t.r,d=l.refs===Nt?l.refs={}:l.refs,c=l.setupState,h=Pt(c),f=c===Nt?()=>!1:p=>Tt(h,p);if(u!=null&&u!==s&&(eo(u)?(d[u]=null,f(u)&&(c[u]=null)):ro(u)&&(u.value=null)),mt(s))vs(s,l,12,[a,d]);else{const p=eo(s),g=ro(s);if(p||g){const v=()=>{if(e.f){const b=p?f(s)?c[s]:d[s]:s.value;r?ht(b)&&Lh(b,i):ht(b)?b.includes(i)||b.push(i):p?(d[s]=[i],f(s)&&(c[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else p?(d[s]=a,f(s)&&(c[s]=a)):g&&(s.value=a,e.k&&(d[e.k]=a))};a?(v.id=-1,Wo(v,o)):v()}}}const Ea=e=>!!e.type.__asyncLoader,Cd=e=>e.type.__isKeepAlive;function Qh(e,t){D1(e,"a",t)}function wd(e,t){D1(e,"da",t)}function D1(e,t,o=Co){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Sd(t,n,o),o){let r=o.parent;for(;r&&r.parent;)Cd(r.parent.vnode)&&F3(n,t,o,r),r=r.parent}}function F3(e,t,o,n){const r=Sd(t,e,n,!0);Go(()=>{Lh(n[t],r)},o)}function Sd(e,t,o=Co,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{oi();const l=Cs(o),s=Mn(t,o,e,a);return l(),ni(),s});return n?r.unshift(i):r.push(i),i}}const br=e=>(t,o=Co)=>{(!kd||e==="sp")&&Sd(e,(...n)=>t(...n),o)},ri=br("bm"),ut=br("m"),T1=br("bu"),I1=br("u"),Xt=br("bum"),Go=br("um"),R3=br("sp"),$3=br("rtg"),P3=br("rtc");function M3(e,t=Co){Sd("ec",e,t)}const z1="components";function lt(e,t){return L1(z1,e,!0,t)||e}const O1=Symbol.for("v-ndc");function Js(e){return eo(e)?L1(z1,e,!1)||e:e||O1}function L1(e,t,o=!0,n=!1){const r=vo||Co;if(r){const i=r.type;{const l=gE(i,!1);if(l&&(l===t||l===vn(t)||l===md(vn(t))))return i}const a=Om(r[e]||i[e],t)||Om(r.appContext[e],t);return!a&&n?i:a}}function Om(e,t){return e&&(e[t]||e[vn(t)]||e[md(vn(t))])}function xa(e,t,o,n){let r;const i=o,a=ht(e);if(a||eo(e)){const l=a&&Kr(e);let s=!1;l&&(s=!gn(e),e=vd(e)),r=new Array(e.length);for(let u=0,d=e.length;u<d;u++)r[u]=t(s?Fo(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(Kt(e))if(e[Symbol.iterator])r=Array.from(e,(l,s)=>t(l,s,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let s=0,u=l.length;s<u;s++){const d=l[s];r[s]=t(e[d],d,s,i)}}else r=[];return r}function xs(e,t,o={},n,r){if(vo.ce||vo.parent&&Ea(vo.parent)&&vo.parent.ce)return Fe(),Ht(ft,null,[S("slot",o,n)],64);let i=e[t];i&&i._c&&(i._d=!1),Fe();const a=i&&H1(i(o)),l=Ht(ft,{key:(o.key||a&&a.key||`_${t}`)+(!a&&n?"_fb":"")},a||[],a&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function H1(e){return e.some(t=>$a(t)?!(t.type===go||t.type===ft&&!H1(t.children)):!0)?e:null}const Bf=e=>e?rx(e)?_d(e):Bf(e.parent):null,$l=fo(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bf(e.parent),$root:e=>Bf(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jh(e),$forceUpdate:e=>e.f||(e.f=()=>{Xh(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>J3.bind(e)}),Sc=(e,t)=>e!==Nt&&!e.__isScriptSetup&&Tt(e,t),A3={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:a,type:l,appContext:s}=e;let u;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(Sc(n,t))return a[t]=1,n[t];if(r!==Nt&&Tt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&Tt(u,t))return a[t]=3,i[t];if(o!==Nt&&Tt(o,t))return a[t]=4,o[t];Df&&(a[t]=0)}}const d=$l[t];let c,h;if(d)return t==="$attrs"&&$o(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==Nt&&Tt(o,t))return a[t]=4,o[t];if(h=s.config.globalProperties,Tt(h,t))return h[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Sc(r,t)?(r[t]=o,!0):n!==Nt&&Tt(n,t)?(n[t]=o,!0):Tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,propsOptions:i}},a){let l;return!!o[a]||e!==Nt&&Tt(e,a)||Sc(t,a)||(l=i[0])&&Tt(l,a)||Tt(n,a)||Tt($l,a)||Tt(r.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Tt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Lm(e){return ht(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Df=!0;function B3(e){const t=Jh(e),o=e.proxy,n=e.ctx;Df=!1,t.beforeCreate&&Hm(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:l,provide:s,inject:u,created:d,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:x,destroyed:k,unmounted:C,render:_,renderTracked:R,renderTriggered:w,errorCaptured:A,serverPrefetch:$,expose:B,inheritAttrs:U,components:N,directives:K,filters:H}=t;if(u&&D3(u,n,null),a)for(const F in a){const y=a[F];mt(y)&&(n[F]=y.bind(o))}if(r){const F=r.call(o,o);Kt(F)&&(e.data=It(F))}if(Df=!0,i)for(const F in i){const y=i[F],re=mt(y)?y.bind(o,o):mt(y.get)?y.get.bind(o,o):Un,te=!mt(y)&&mt(y.set)?y.set.bind(o):Un,j=I({get:re,set:te});Object.defineProperty(n,F,{enumerable:!0,configurable:!0,get:()=>j.value,set:Z=>j.value=Z})}if(l)for(const F in l)N1(l[F],n,o,F);if(s){const F=mt(s)?s.call(o):s;Reflect.ownKeys(F).forEach(y=>{Je(y,F[y])})}d&&Hm(d,e,"c");function z(F,y){ht(y)?y.forEach(re=>F(re.bind(o))):y&&F(y.bind(o))}if(z(ri,c),z(ut,h),z(T1,f),z(I1,p),z(Qh,g),z(wd,v),z(M3,A),z(P3,R),z($3,w),z(Xt,x),z(Go,C),z(R3,$),ht(B))if(B.length){const F=e.exposed||(e.exposed={});B.forEach(y=>{Object.defineProperty(F,y,{get:()=>o[y],set:re=>o[y]=re})})}else e.exposed||(e.exposed={});_&&e.render===Un&&(e.render=_),U!=null&&(e.inheritAttrs=U),N&&(e.components=N),K&&(e.directives=K),$&&B1(e)}function D3(e,t,o=Un){ht(e)&&(e=Tf(e));for(const n in e){const r=e[n];let i;Kt(r)?"default"in r?i=Oe(r.from||n,r.default,!0):i=Oe(r.from||n):i=Oe(r),ro(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function Hm(e,t,o){Mn(ht(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function N1(e,t,o,n){let r=n.includes(".")?J1(o,n):()=>o[n];if(eo(e)){const i=t[e];mt(i)&&at(r,i)}else if(mt(e))at(r,e.bind(o));else if(Kt(e))if(ht(e))e.forEach(i=>N1(i,t,o,n));else{const i=mt(e.handler)?e.handler.bind(o):t[e.handler];mt(i)&&at(r,i,e)}}function Jh(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!r.length&&!o&&!n?s=t:(s={},r.length&&r.forEach(u=>Wu(s,u,a,!0)),Wu(s,t,a)),Kt(t)&&i.set(t,s),s}function Wu(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&Wu(e,i,o,!0),r&&r.forEach(a=>Wu(e,a,o,!0));for(const a in t)if(!(n&&a==="expose")){const l=T3[a]||o&&o[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const T3={data:Nm,props:Vm,emits:Vm,methods:xl,computed:xl,beforeCreate:Do,created:Do,beforeMount:Do,mounted:Do,beforeUpdate:Do,updated:Do,beforeDestroy:Do,beforeUnmount:Do,destroyed:Do,unmounted:Do,activated:Do,deactivated:Do,errorCaptured:Do,serverPrefetch:Do,components:xl,directives:xl,watch:z3,provide:Nm,inject:I3};function Nm(e,t){return t?e?function(){return fo(mt(e)?e.call(this,this):e,mt(t)?t.call(this,this):t)}:t:e}function I3(e,t){return xl(Tf(e),Tf(t))}function Tf(e){if(ht(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function Do(e,t){return e?[...new Set([].concat(e,t))]:t}function xl(e,t){return e?fo(Object.create(null),e,t):t}function Vm(e,t){return e?ht(e)&&ht(t)?[...new Set([...e,...t])]:fo(Object.create(null),Lm(e),Lm(t??{})):t}function z3(e,t){if(!e)return t;if(!t)return e;const o=fo(Object.create(null),e);for(const n in t)o[n]=Do(e[n],t[n]);return o}function V1(){return{app:null,config:{isNativeTag:R6,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let O3=0;function L3(e,t){return function(n,r=null){mt(n)||(n=fo({},n)),r!=null&&!Kt(r)&&(r=null);const i=V1(),a=new WeakSet,l=[];let s=!1;const u=i.app={_uid:O3++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:bE,get config(){return i.config},set config(d){},use(d,...c){return a.has(d)||(d&&mt(d.install)?(a.add(d),d.install(u,...c)):mt(d)&&(a.add(d),d(u,...c))),u},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),u},component(d,c){return c?(i.components[d]=c,u):i.components[d]},directive(d,c){return c?(i.directives[d]=c,u):i.directives[d]},mount(d,c,h){if(!s){const f=u._ceVNode||S(n,r);return f.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),c&&t?t(f,d):e(f,d,h),s=!0,u._container=d,d.__vue_app__=u,_d(f.component)}},onUnmount(d){l.push(d)},unmount(){s&&(Mn(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(d,c){return i.provides[d]=c,u},runWithContext(d){const c=Ri;Ri=u;try{return d()}finally{Ri=c}}};return u}}let Ri=null;function Je(e,t){if(Co){let o=Co.provides;const n=Co.parent&&Co.parent.provides;n===o&&(o=Co.provides=Object.create(n)),o[e]=t}}function Oe(e,t,o=!1){const n=Co||vo;if(n||Ri){const r=Ri?Ri._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return o&&mt(t)?t.call(n&&n.proxy):t}}function H3(){return!!(Co||vo||Ri)}const j1={},W1=()=>Object.create(j1),U1=e=>Object.getPrototypeOf(e)===j1;function N3(e,t,o,n=!1){const r={},i=W1();e.propsDefaults=Object.create(null),K1(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);o?e.props=n?r:m1(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function V3(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,l=Pt(r),[s]=e.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let c=0;c<d.length;c++){let h=d[c];if(Ed(e.emitsOptions,h))continue;const f=t[h];if(s)if(Tt(i,h))f!==i[h]&&(i[h]=f,u=!0);else{const p=vn(h);r[p]=If(s,l,p,f,e,!1)}else f!==i[h]&&(i[h]=f,u=!0)}}}else{K1(e,t,r,i)&&(u=!0);let d;for(const c in l)(!t||!Tt(t,c)&&((d=ji(c))===c||!Tt(t,d)))&&(s?o&&(o[c]!==void 0||o[d]!==void 0)&&(r[c]=If(s,l,c,void 0,e,!0)):delete r[c]);if(i!==l)for(const c in i)(!t||!Tt(t,c))&&(delete i[c],u=!0)}u&&mr(e.attrs,"set","")}function K1(e,t,o,n){const[r,i]=e.propsOptions;let a=!1,l;if(t)for(let s in t){if(kl(s))continue;const u=t[s];let d;r&&Tt(r,d=vn(s))?!i||!i.includes(d)?o[d]=u:(l||(l={}))[d]=u:Ed(e.emitsOptions,s)||(!(s in n)||u!==n[s])&&(n[s]=u,a=!0)}if(i){const s=Pt(o),u=l||Nt;for(let d=0;d<i.length;d++){const c=i[d];o[c]=If(r,s,c,u[c],e,!Tt(u,c))}}return a}function If(e,t,o,n,r,i){const a=e[o];if(a!=null){const l=Tt(a,"default");if(l&&n===void 0){const s=a.default;if(a.type!==Function&&!a.skipFactory&&mt(s)){const{propsDefaults:u}=r;if(o in u)n=u[o];else{const d=Cs(r);n=u[o]=s.call(null,t),d()}}else n=s;r.ce&&r.ce._setProp(o,n)}a[0]&&(i&&!l?n=!1:a[1]&&(n===""||n===ji(o))&&(n=!0))}return n}const j3=new WeakMap;function G1(e,t,o=!1){const n=o?j3:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,a={},l=[];let s=!1;if(!mt(e)){const d=c=>{s=!0;const[h,f]=G1(c,t,!0);fo(a,h),f&&l.push(...f)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return Kt(e)&&n.set(e,Ca),Ca;if(ht(i))for(let d=0;d<i.length;d++){const c=vn(i[d]);jm(c)&&(a[c]=Nt)}else if(i)for(const d in i){const c=vn(d);if(jm(c)){const h=i[d],f=a[c]=ht(h)||mt(h)?{type:h}:fo({},h),p=f.type;let g=!1,v=!0;if(ht(p))for(let b=0;b<p.length;++b){const x=p[b],k=mt(x)&&x.name;if(k==="Boolean"){g=!0;break}else k==="String"&&(v=!1)}else g=mt(p)&&p.name==="Boolean";f[0]=g,f[1]=v,(g||Tt(f,"default"))&&l.push(c)}}const u=[a,l];return Kt(e)&&n.set(e,u),u}function jm(e){return e[0]!=="$"&&!kl(e)}const q1=e=>e[0]==="_"||e==="$stable",ep=e=>ht(e)?e.map(Vn):[Vn(e)],W3=(e,t,o)=>{if(t._n)return t;const n=oe((...r)=>ep(t(...r)),o);return n._c=!1,n},Z1=(e,t,o)=>{const n=e._ctx;for(const r in e){if(q1(r))continue;const i=e[r];if(mt(i))t[r]=W3(r,i,n);else if(i!=null){const a=ep(i);t[r]=()=>a}}},X1=(e,t)=>{const o=ep(t);e.slots.default=()=>o},Y1=(e,t,o)=>{for(const n in t)(o||n!=="_")&&(e[n]=t[n])},U3=(e,t,o)=>{const n=e.slots=W1();if(e.vnode.shapeFlag&32){const r=t._;r?(Y1(n,t,o),o&&Kb(n,"_",r,!0)):Z1(t,n)}else t&&X1(e,t)},K3=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,a=Nt;if(n.shapeFlag&32){const l=t._;l?o&&l===1?i=!1:Y1(r,t,o):(i=!t.$stable,Z1(t,r)),a=t}else t&&(X1(e,t),a={default:1});if(i)for(const l in r)!q1(l)&&a[l]==null&&delete r[l]},Wo=aE;function G3(e){return q3(e)}function q3(e,t){const o=Gb();o.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:a,createText:l,createComment:s,setText:u,setElementText:d,parentNode:c,nextSibling:h,setScopeId:f=Un,insertStaticContent:p}=e,g=(W,ee,ge,we=null,le=null,ne=null,ce=void 0,J=null,ie=!!ee.dynamicChildren)=>{if(W===ee)return;W&&!bi(W,ee)&&(we=fe(W),Z(W,le,ne,!0),W=null),ee.patchFlag===-2&&(ie=!1,ee.dynamicChildren=null);const{type:de,ref:ae,shapeFlag:q}=ee;switch(de){case ys:v(W,ee,ge,we);break;case go:b(W,ee,ge,we);break;case Ru:W==null&&x(ee,ge,we,ce);break;case ft:N(W,ee,ge,we,le,ne,ce,J,ie);break;default:q&1?_(W,ee,ge,we,le,ne,ce,J,ie):q&6?K(W,ee,ge,we,le,ne,ce,J,ie):(q&64||q&128)&&de.process(W,ee,ge,we,le,ne,ce,J,ie,O)}ae!=null&&le&&Af(ae,W&&W.ref,ne,ee||W,!ee)},v=(W,ee,ge,we)=>{if(W==null)n(ee.el=l(ee.children),ge,we);else{const le=ee.el=W.el;ee.children!==W.children&&u(le,ee.children)}},b=(W,ee,ge,we)=>{W==null?n(ee.el=s(ee.children||""),ge,we):ee.el=W.el},x=(W,ee,ge,we)=>{[W.el,W.anchor]=p(W.children,ee,ge,we,W.el,W.anchor)},k=({el:W,anchor:ee},ge,we)=>{let le;for(;W&&W!==ee;)le=h(W),n(W,ge,we),W=le;n(ee,ge,we)},C=({el:W,anchor:ee})=>{let ge;for(;W&&W!==ee;)ge=h(W),r(W),W=ge;r(ee)},_=(W,ee,ge,we,le,ne,ce,J,ie)=>{ee.type==="svg"?ce="svg":ee.type==="math"&&(ce="mathml"),W==null?R(ee,ge,we,le,ne,ce,J,ie):$(W,ee,le,ne,ce,J,ie)},R=(W,ee,ge,we,le,ne,ce,J)=>{let ie,de;const{props:ae,shapeFlag:q,transition:ue,dirs:ve}=W;if(ie=W.el=a(W.type,ne,ae&&ae.is,ae),q&8?d(ie,W.children):q&16&&A(W.children,ie,null,we,le,Ec(W,ne),ce,J),ve&&di(W,null,we,"created"),w(ie,W,W.scopeId,ce,we),ae){for(const Ke in ae)Ke!=="value"&&!kl(Ke)&&i(ie,Ke,null,ae[Ke],ne,we);"value"in ae&&i(ie,"value",null,ae.value,ne),(de=ae.onVnodeBeforeMount)&&zn(de,we,W)}ve&&di(W,null,we,"beforeMount");const De=Z3(le,ue);De&&ue.beforeEnter(ie),n(ie,ee,ge),((de=ae&&ae.onVnodeMounted)||De||ve)&&Wo(()=>{de&&zn(de,we,W),De&&ue.enter(ie),ve&&di(W,null,we,"mounted")},le)},w=(W,ee,ge,we,le)=>{if(ge&&f(W,ge),we)for(let ne=0;ne<we.length;ne++)f(W,we[ne]);if(le){let ne=le.subTree;if(ee===ne||tx(ne.type)&&(ne.ssContent===ee||ne.ssFallback===ee)){const ce=le.vnode;w(W,ce,ce.scopeId,ce.slotScopeIds,le.parent)}}},A=(W,ee,ge,we,le,ne,ce,J,ie=0)=>{for(let de=ie;de<W.length;de++){const ae=W[de]=J?Lr(W[de]):Vn(W[de]);g(null,ae,ee,ge,we,le,ne,ce,J)}},$=(W,ee,ge,we,le,ne,ce)=>{const J=ee.el=W.el;let{patchFlag:ie,dynamicChildren:de,dirs:ae}=ee;ie|=W.patchFlag&16;const q=W.props||Nt,ue=ee.props||Nt;let ve;if(ge&&ci(ge,!1),(ve=ue.onVnodeBeforeUpdate)&&zn(ve,ge,ee,W),ae&&di(ee,W,ge,"beforeUpdate"),ge&&ci(ge,!0),(q.innerHTML&&ue.innerHTML==null||q.textContent&&ue.textContent==null)&&d(J,""),de?B(W.dynamicChildren,de,J,ge,we,Ec(ee,le),ne):ce||y(W,ee,J,null,ge,we,Ec(ee,le),ne,!1),ie>0){if(ie&16)U(J,q,ue,ge,le);else if(ie&2&&q.class!==ue.class&&i(J,"class",null,ue.class,le),ie&4&&i(J,"style",q.style,ue.style,le),ie&8){const De=ee.dynamicProps;for(let Ke=0;Ke<De.length;Ke++){const Qe=De[Ke],st=q[Qe],Xe=ue[Qe];(Xe!==st||Qe==="value")&&i(J,Qe,st,Xe,le,ge)}}ie&1&&W.children!==ee.children&&d(J,ee.children)}else!ce&&de==null&&U(J,q,ue,ge,le);((ve=ue.onVnodeUpdated)||ae)&&Wo(()=>{ve&&zn(ve,ge,ee,W),ae&&di(ee,W,ge,"updated")},we)},B=(W,ee,ge,we,le,ne,ce)=>{for(let J=0;J<ee.length;J++){const ie=W[J],de=ee[J],ae=ie.el&&(ie.type===ft||!bi(ie,de)||ie.shapeFlag&70)?c(ie.el):ge;g(ie,de,ae,null,we,le,ne,ce,!0)}},U=(W,ee,ge,we,le)=>{if(ee!==ge){if(ee!==Nt)for(const ne in ee)!kl(ne)&&!(ne in ge)&&i(W,ne,ee[ne],null,le,we);for(const ne in ge){if(kl(ne))continue;const ce=ge[ne],J=ee[ne];ce!==J&&ne!=="value"&&i(W,ne,J,ce,le,we)}"value"in ge&&i(W,"value",ee.value,ge.value,le)}},N=(W,ee,ge,we,le,ne,ce,J,ie)=>{const de=ee.el=W?W.el:l(""),ae=ee.anchor=W?W.anchor:l("");let{patchFlag:q,dynamicChildren:ue,slotScopeIds:ve}=ee;ve&&(J=J?J.concat(ve):ve),W==null?(n(de,ge,we),n(ae,ge,we),A(ee.children||[],ge,ae,le,ne,ce,J,ie)):q>0&&q&64&&ue&&W.dynamicChildren?(B(W.dynamicChildren,ue,ge,le,ne,ce,J),(ee.key!=null||le&&ee===le.subTree)&&tp(W,ee,!0)):y(W,ee,ge,ae,le,ne,ce,J,ie)},K=(W,ee,ge,we,le,ne,ce,J,ie)=>{ee.slotScopeIds=J,W==null?ee.shapeFlag&512?le.ctx.activate(ee,ge,we,ce,ie):H(ee,ge,we,le,ne,ce,ie):T(W,ee,ie)},H=(W,ee,ge,we,le,ne,ce)=>{const J=W.component=cE(W,we,le);if(Cd(W)&&(J.ctx.renderer=O),fE(J,!1,ce),J.asyncDep){if(le&&le.registerDep(J,z,ce),!W.el){const ie=J.subTree=S(go);b(null,ie,ee,ge)}}else z(J,W,ee,ge,le,ne,ce)},T=(W,ee,ge)=>{const we=ee.component=W.component;if(rE(W,ee,ge))if(we.asyncDep&&!we.asyncResolved){F(we,ee,ge);return}else we.next=ee,we.update();else ee.el=W.el,we.vnode=ee},z=(W,ee,ge,we,le,ne,ce)=>{const J=()=>{if(W.isMounted){let{next:q,bu:ue,u:ve,parent:De,vnode:Ke}=W;{const Ye=Q1(W);if(Ye){q&&(q.el=Ke.el,F(W,q,ce)),Ye.asyncDep.then(()=>{W.isUnmounted||J()});return}}let Qe=q,st;ci(W,!1),q?(q.el=Ke.el,F(W,q,ce)):q=Ke,ue&&vc(ue),(st=q.props&&q.props.onVnodeBeforeUpdate)&&zn(st,De,q,Ke),ci(W,!0);const Xe=kc(W),pt=W.subTree;W.subTree=Xe,g(pt,Xe,c(pt.el),fe(pt),W,le,ne),q.el=Xe.el,Qe===null&&iE(W,Xe.el),ve&&Wo(ve,le),(st=q.props&&q.props.onVnodeUpdated)&&Wo(()=>zn(st,De,q,Ke),le)}else{let q;const{el:ue,props:ve}=ee,{bm:De,m:Ke,parent:Qe,root:st,type:Xe}=W,pt=Ea(ee);if(ci(W,!1),De&&vc(De),!pt&&(q=ve&&ve.onVnodeBeforeMount)&&zn(q,Qe,ee),ci(W,!0),ue&&je){const Ye=()=>{W.subTree=kc(W),je(ue,W.subTree,W,le,null)};pt&&Xe.__asyncHydrate?Xe.__asyncHydrate(ue,W,Ye):Ye()}else{st.ce&&st.ce._injectChildStyle(Xe);const Ye=W.subTree=kc(W);g(null,Ye,ge,we,W,le,ne),ee.el=Ye.el}if(Ke&&Wo(Ke,le),!pt&&(q=ve&&ve.onVnodeMounted)){const Ye=ee;Wo(()=>zn(q,Qe,Ye),le)}(ee.shapeFlag&256||Qe&&Ea(Qe.vnode)&&Qe.vnode.shapeFlag&256)&&W.a&&Wo(W.a,le),W.isMounted=!0,ee=ge=we=null}};W.scope.on();const ie=W.effect=new t1(J);W.scope.off();const de=W.update=ie.run.bind(ie),ae=W.job=ie.runIfDirty.bind(ie);ae.i=W,ae.id=W.uid,ie.scheduler=()=>Xh(ae),ci(W,!0),de()},F=(W,ee,ge)=>{ee.component=W;const we=W.vnode.props;W.vnode=ee,W.next=null,V3(W,ee.props,we,ge),K3(W,ee.children,ge),oi(),Dm(W),ni()},y=(W,ee,ge,we,le,ne,ce,J,ie=!1)=>{const de=W&&W.children,ae=W?W.shapeFlag:0,q=ee.children,{patchFlag:ue,shapeFlag:ve}=ee;if(ue>0){if(ue&128){te(de,q,ge,we,le,ne,ce,J,ie);return}else if(ue&256){re(de,q,ge,we,le,ne,ce,J,ie);return}}ve&8?(ae&16&&he(de,le,ne),q!==de&&d(ge,q)):ae&16?ve&16?te(de,q,ge,we,le,ne,ce,J,ie):he(de,le,ne,!0):(ae&8&&d(ge,""),ve&16&&A(q,ge,we,le,ne,ce,J,ie))},re=(W,ee,ge,we,le,ne,ce,J,ie)=>{W=W||Ca,ee=ee||Ca;const de=W.length,ae=ee.length,q=Math.min(de,ae);let ue;for(ue=0;ue<q;ue++){const ve=ee[ue]=ie?Lr(ee[ue]):Vn(ee[ue]);g(W[ue],ve,ge,null,le,ne,ce,J,ie)}de>ae?he(W,le,ne,!0,!1,q):A(ee,ge,we,le,ne,ce,J,ie,q)},te=(W,ee,ge,we,le,ne,ce,J,ie)=>{let de=0;const ae=ee.length;let q=W.length-1,ue=ae-1;for(;de<=q&&de<=ue;){const ve=W[de],De=ee[de]=ie?Lr(ee[de]):Vn(ee[de]);if(bi(ve,De))g(ve,De,ge,null,le,ne,ce,J,ie);else break;de++}for(;de<=q&&de<=ue;){const ve=W[q],De=ee[ue]=ie?Lr(ee[ue]):Vn(ee[ue]);if(bi(ve,De))g(ve,De,ge,null,le,ne,ce,J,ie);else break;q--,ue--}if(de>q){if(de<=ue){const ve=ue+1,De=ve<ae?ee[ve].el:we;for(;de<=ue;)g(null,ee[de]=ie?Lr(ee[de]):Vn(ee[de]),ge,De,le,ne,ce,J,ie),de++}}else if(de>ue)for(;de<=q;)Z(W[de],le,ne,!0),de++;else{const ve=de,De=de,Ke=new Map;for(de=De;de<=ue;de++){const Q=ee[de]=ie?Lr(ee[de]):Vn(ee[de]);Q.key!=null&&Ke.set(Q.key,de)}let Qe,st=0;const Xe=ue-De+1;let pt=!1,Ye=0;const Le=new Array(Xe);for(de=0;de<Xe;de++)Le[de]=0;for(de=ve;de<=q;de++){const Q=W[de];if(st>=Xe){Z(Q,le,ne,!0);continue}let me;if(Q.key!=null)me=Ke.get(Q.key);else for(Qe=De;Qe<=ue;Qe++)if(Le[Qe-De]===0&&bi(Q,ee[Qe])){me=Qe;break}me===void 0?Z(Q,le,ne,!0):(Le[me-De]=de+1,me>=Ye?Ye=me:pt=!0,g(Q,ee[me],ge,null,le,ne,ce,J,ie),st++)}const et=pt?X3(Le):Ca;for(Qe=et.length-1,de=Xe-1;de>=0;de--){const Q=De+de,me=ee[Q],Pe=Q+1<ae?ee[Q+1].el:we;Le[de]===0?g(null,me,ge,Pe,le,ne,ce,J,ie):pt&&(Qe<0||de!==et[Qe]?j(me,ge,Pe,2):Qe--)}}},j=(W,ee,ge,we,le=null)=>{const{el:ne,type:ce,transition:J,children:ie,shapeFlag:de}=W;if(de&6){j(W.component.subTree,ee,ge,we);return}if(de&128){W.suspense.move(ee,ge,we);return}if(de&64){ce.move(W,ee,ge,O);return}if(ce===ft){n(ne,ee,ge);for(let q=0;q<ie.length;q++)j(ie[q],ee,ge,we);n(W.anchor,ee,ge);return}if(ce===Ru){k(W,ee,ge);return}if(we!==2&&de&1&&J)if(we===0)J.beforeEnter(ne),n(ne,ee,ge),Wo(()=>J.enter(ne),le);else{const{leave:q,delayLeave:ue,afterLeave:ve}=J,De=()=>n(ne,ee,ge),Ke=()=>{q(ne,()=>{De(),ve&&ve()})};ue?ue(ne,De,Ke):Ke()}else n(ne,ee,ge)},Z=(W,ee,ge,we=!1,le=!1)=>{const{type:ne,props:ce,ref:J,children:ie,dynamicChildren:de,shapeFlag:ae,patchFlag:q,dirs:ue,cacheIndex:ve}=W;if(q===-2&&(le=!1),J!=null&&Af(J,null,ge,W,!0),ve!=null&&(ee.renderCache[ve]=void 0),ae&256){ee.ctx.deactivate(W);return}const De=ae&1&&ue,Ke=!Ea(W);let Qe;if(Ke&&(Qe=ce&&ce.onVnodeBeforeUnmount)&&zn(Qe,ee,W),ae&6)Se(W.component,ge,we);else{if(ae&128){W.suspense.unmount(ge,we);return}De&&di(W,null,ee,"beforeUnmount"),ae&64?W.type.remove(W,ee,ge,O,we):de&&!de.hasOnce&&(ne!==ft||q>0&&q&64)?he(de,ee,ge,!1,!0):(ne===ft&&q&384||!le&&ae&16)&&he(ie,ee,ge),we&&se(W)}(Ke&&(Qe=ce&&ce.onVnodeUnmounted)||De)&&Wo(()=>{Qe&&zn(Qe,ee,W),De&&di(W,null,ee,"unmounted")},ge)},se=W=>{const{type:ee,el:ge,anchor:we,transition:le}=W;if(ee===ft){pe(ge,we);return}if(ee===Ru){C(W);return}const ne=()=>{r(ge),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(W.shapeFlag&1&&le&&!le.persisted){const{leave:ce,delayLeave:J}=le,ie=()=>ce(ge,ne);J?J(W.el,ne,ie):ie()}else ne()},pe=(W,ee)=>{let ge;for(;W!==ee;)ge=h(W),r(W),W=ge;r(ee)},Se=(W,ee,ge)=>{const{bum:we,scope:le,job:ne,subTree:ce,um:J,m:ie,a:de}=W;Wm(ie),Wm(de),we&&vc(we),le.stop(),ne&&(ne.flags|=8,Z(ce,W,ee,ge)),J&&Wo(J,ee),Wo(()=>{W.isUnmounted=!0},ee),ee&&ee.pendingBranch&&!ee.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===ee.pendingId&&(ee.deps--,ee.deps===0&&ee.resolve())},he=(W,ee,ge,we=!1,le=!1,ne=0)=>{for(let ce=ne;ce<W.length;ce++)Z(W[ce],ee,ge,we,le)},fe=W=>{if(W.shapeFlag&6)return fe(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const ee=h(W.anchor||W.el),ge=ee&&ee[k1];return ge?h(ge):ee};let Ce=!1;const Y=(W,ee,ge)=>{W==null?ee._vnode&&Z(ee._vnode,null,null,!0):g(ee._vnode||null,W,ee,null,null,null,ge),ee._vnode=W,Ce||(Ce=!0,Dm(),w1(),Ce=!1)},O={p:g,um:Z,m:j,r:se,mt:H,mc:A,pc:y,pbc:B,n:fe,o:e};let ze,je;return{render:Y,hydrate:ze,createApp:L3(Y,ze)}}function Ec({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function ci({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Z3(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function tp(e,t,o=!1){const n=e.children,r=t.children;if(ht(n)&&ht(r))for(let i=0;i<n.length;i++){const a=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Lr(r[i]),l.el=a.el),!o&&l.patchFlag!==-2&&tp(a,l)),l.type===ys&&(l.el=a.el)}}function X3(e){const t=e.slice(),o=[0];let n,r,i,a,l;const s=e.length;for(n=0;n<s;n++){const u=e[n];if(u!==0){if(r=o[o.length-1],e[r]<u){t[n]=r,o.push(n);continue}for(i=0,a=o.length-1;i<a;)l=i+a>>1,e[o[l]]<u?i=l+1:a=l;u<e[o[i]]&&(i>0&&(t[n]=o[i-1]),o[i]=n)}}for(i=o.length,a=o[i-1];i-- >0;)o[i]=a,a=t[a];return o}function Q1(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q1(t)}function Wm(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Y3=Symbol.for("v-scx"),Q3=()=>Oe(Y3);function kt(e,t){return op(e,null,t)}function at(e,t,o){return op(e,t,o)}function op(e,t,o=Nt){const{immediate:n,deep:r,flush:i,once:a}=o,l=fo({},o);let s;if(kd)if(i==="sync"){const h=Q3();s=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||n)l.once=!0;else{const h=()=>{};return h.stop=Un,h.resume=Un,h.pause=Un,h}const u=Co;l.call=(h,f,p)=>Mn(h,u,f,p);let d=!1;i==="post"?l.scheduler=h=>{Wo(h,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(h,f)=>{f?h():Xh(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=v3(e,t,l);return s&&s.push(c),c}function J3(e,t,o){const n=this.proxy,r=eo(e)?e.includes(".")?J1(n,e):()=>n[e]:e.bind(n,n);let i;mt(t)?i=t:(i=t.handler,o=t);const a=Cs(this),l=op(r,i.bind(n),o);return a(),l}function J1(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;r<o.length&&n;r++)n=n[o[r]];return n}}const eE=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vn(t)}Modifiers`]||e[`${ji(t)}Modifiers`];function tE(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||Nt;let r=o;const i=t.startsWith("update:"),a=i&&eE(n,t.slice(7));a&&(a.trim&&(r=o.map(d=>eo(d)?d.trim():d)),a.number&&(r=o.map(B6)));let l,s=n[l=gc(t)]||n[l=gc(vn(t))];!s&&i&&(s=n[l=gc(ji(t))]),s&&Mn(s,e,6,r);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Mn(u,e,6,r)}}function ex(e,t,o=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let a={},l=!1;if(!mt(e)){const s=u=>{const d=ex(u,t,!0);d&&(l=!0,fo(a,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(Kt(e)&&n.set(e,null),null):(ht(i)?i.forEach(s=>a[s]=null):fo(a,i),Kt(e)&&n.set(e,a),a)}function Ed(e,t){return!e||!fd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Tt(e,t[0].toLowerCase()+t.slice(1))||Tt(e,ji(t))||Tt(e,t))}function kc(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:a,attrs:l,emit:s,render:u,renderCache:d,props:c,data:h,setupState:f,ctx:p,inheritAttrs:g}=e,v=ju(e);let b,x;try{if(o.shapeFlag&4){const C=r||n,_=C;b=Vn(u.call(_,C,d,c,f,h,p)),x=l}else{const C=t;b=Vn(C.length>1?C(c,{attrs:l,slots:a,emit:s}):C(c,null)),x=t.props?l:oE(l)}}catch(C){Pl.length=0,yd(C,e,1),b=S(go)}let k=b;if(x&&g!==!1){const C=Object.keys(x),{shapeFlag:_}=k;C.length&&_&7&&(i&&C.some(Oh)&&(x=nE(x,i)),k=qo(k,x,!1,!0))}return o.dirs&&(k=qo(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&Ii(k,o.transition),b=k,ju(v),b}const oE=e=>{let t;for(const o in e)(o==="class"||o==="style"||fd(o))&&((t||(t={}))[o]=e[o]);return t},nE=(e,t)=>{const o={};for(const n in e)(!Oh(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function rE(e,t,o){const{props:n,children:r,component:i}=e,{props:a,children:l,patchFlag:s}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return n?Um(n,a,u):!!a;if(s&8){const d=t.dynamicProps;for(let c=0;c<d.length;c++){const h=d[c];if(a[h]!==n[h]&&!Ed(u,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===a?!1:n?a?Um(n,a,u):!0:!!a;return!1}function Um(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==e[i]&&!Ed(o,i))return!0}return!1}function iE({vnode:e,parent:t},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=o,t=t.parent;else break}}const tx=e=>e.__isSuspense;function aE(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):y3(e)}const ft=Symbol.for("v-fgt"),ys=Symbol.for("v-txt"),go=Symbol.for("v-cmt"),Ru=Symbol.for("v-stc"),Pl=[];let tn=null;function Fe(e=!1){Pl.push(tn=e?null:[])}function lE(){Pl.pop(),tn=Pl[Pl.length-1]||null}let Zl=1;function Km(e){Zl+=e,e<0&&tn&&(tn.hasOnce=!0)}function ox(e){return e.dynamicChildren=Zl>0?tn||Ca:null,lE(),Zl>0&&tn&&tn.push(e),e}function Te(e,t,o,n,r,i){return ox(L(e,t,o,n,r,i,!0))}function Ht(e,t,o,n,r){return ox(S(e,t,o,n,r,!0))}function $a(e){return e?e.__v_isVNode===!0:!1}function bi(e,t){return e.type===t.type&&e.key===t.key}const nx=({key:e})=>e??null,$u=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?eo(e)||ro(e)||mt(e)?{i:vo,r:e,k:t,f:!!o}:e:null);function L(e,t=null,o=null,n=0,r=null,i=e===ft?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nx(t),ref:t&&$u(t),scopeId:E1,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:vo};return l?(rp(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=eo(o)?8:16),Zl>0&&!a&&tn&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&tn.push(s),s}const S=sE;function sE(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===O1)&&(e=go),$a(e)){const l=qo(e,t,!0);return o&&rp(l,o),Zl>0&&!i&&tn&&(l.shapeFlag&6?tn[tn.indexOf(e)]=l:tn.push(l)),l.patchFlag=-2,l}if(vE(e)&&(e=e.__vccOpts),t){t=np(t);let{class:l,style:s}=t;l&&!eo(l)&&(t.class=ye(l)),Kt(s)&&(qh(s)&&!ht(s)&&(s=fo({},s)),t.style=gd(s))}const a=eo(e)?1:tx(e)?128:_1(e)?64:Kt(e)?4:mt(e)?2:0;return L(e,t,o,n,r,a,i,!0)}function np(e){return e?qh(e)||U1(e)?fo({},e):e:null}function qo(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:a,children:l,transition:s}=e,u=t?bo(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&nx(u),ref:t&&t.ref?o&&i?ht(i)?i.concat($u(t)):[i,$u(t)]:$u(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ft?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qo(e.ssContent),ssFallback:e.ssFallback&&qo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&Ii(d,s.clone(d)),d}function P(e=" ",t=0){return S(ys,null,e,t)}function aX(e,t){const o=S(Ru,null,e);return o.staticCount=t,o}function ot(e="",t=!1){return t?(Fe(),Ht(go,null,e)):S(go,null,e)}function Vn(e){return e==null||typeof e=="boolean"?S(go):ht(e)?S(ft,null,e.slice()):$a(e)?Lr(e):S(ys,null,String(e))}function Lr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function rp(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ht(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),rp(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!U1(t)?t._ctx=vo:r===3&&vo&&(vo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else mt(t)?(t={default:t,_ctx:vo},o=32):(t=String(t),n&64?(o=16,t=[P(t)]):o=8);e.children=t,e.shapeFlag|=o}function bo(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=ye([t.class,n.class]));else if(r==="style")t.style=gd([t.style,n.style]);else if(fd(r)){const i=t[r],a=n[r];a&&i!==a&&!(ht(i)&&i.includes(a))&&(t[r]=i?[].concat(i,a):a)}else r!==""&&(t[r]=n[r])}return t}function zn(e,t,o,n=null){Mn(e,t,7,[o,n])}const uE=V1();let dE=0;function cE(e,t,o){const n=e.type,r=(t?t.appContext:e.appContext)||uE,i={uid:dE++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Qb(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:G1(n,r),emitsOptions:ex(n,r),emit:null,emitted:null,propsDefaults:Nt,inheritAttrs:n.inheritAttrs,ctx:Nt,data:Nt,props:Nt,attrs:Nt,slots:Nt,refs:Nt,setupState:Nt,setupContext:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=tE.bind(null,i),e.ce&&e.ce(i),i}let Co=null;const xr=()=>Co||vo;let Uu,zf;{const e=Gb(),t=(o,n)=>{let r;return(r=e[o])||(r=e[o]=[]),r.push(n),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};Uu=t("__VUE_INSTANCE_SETTERS__",o=>Co=o),zf=t("__VUE_SSR_SETTERS__",o=>kd=o)}const Cs=e=>{const t=Co;return Uu(e),e.scope.on(),()=>{e.scope.off(),Uu(t)}},Gm=()=>{Co&&Co.scope.off(),Uu(null)};function rx(e){return e.vnode.shapeFlag&4}let kd=!1;function fE(e,t=!1,o=!1){t&&zf(t);const{props:n,children:r}=e.vnode,i=rx(e);N3(e,n,i,t),U3(e,r,o);const a=i?hE(e,t):void 0;return t&&zf(!1),a}function hE(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,A3);const{setup:n}=o;if(n){const r=e.setupContext=n.length>1?mE(e):null,i=Cs(e);oi();const a=vs(n,e,0,[e.props,r]);if(ni(),i(),jb(a)){if(Ea(e)||B1(e),a.then(Gm,Gm),t)return a.then(l=>{qm(e,l,t)}).catch(l=>{yd(l,e,0)});e.asyncDep=a}else qm(e,a,t)}else ix(e,t)}function qm(e,t,o){mt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Kt(t)&&(e.setupState=v1(t)),ix(e,o)}let Zm;function ix(e,t,o){const n=e.type;if(!e.render){if(!t&&Zm&&!n.render){const r=n.template||Jh(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=n,u=fo(fo({isCustomElement:i,delimiters:l},a),s);n.render=Zm(r,u)}}e.render=n.render||Un}{const r=Cs(e);oi();try{B3(e)}finally{ni(),r()}}}const pE={get(e,t){return $o(e,"get",""),e[t]}};function mE(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,pE),slots:e.slots,emit:e.emit,expose:t}}function _d(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(v1(Kl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in $l)return $l[o](e)},has(t,o){return o in t||o in $l}})):e.proxy}function gE(e,t=!0){return mt(e)?e.displayName||e.name:e.name||t&&e.__name}function vE(e){return mt(e)&&"__vccOpts"in e}const I=(e,t)=>m3(e,t,kd);function m(e,t,o){const n=arguments.length;return n===2?Kt(t)&&!ht(t)?$a(t)?S(e,null,[t]):S(e,t):S(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&$a(o)&&(o=[o]),S(e,t,o))}const bE="3.5.11";/** -* @vue/runtime-dom v3.5.11 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Of;const Xm=typeof window<"u"&&window.trustedTypes;if(Xm)try{Of=Xm.createPolicy("vue",{createHTML:e=>e})}catch{}const ax=Of?e=>Of.createHTML(e):e=>e,xE="http://www.w3.org/2000/svg",yE="http://www.w3.org/1998/Math/MathML",cr=typeof document<"u"?document:null,Ym=cr&&cr.createElement("template"),CE={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const r=t==="svg"?cr.createElementNS(xE,e):t==="mathml"?cr.createElementNS(yE,e):o?cr.createElement(e,{is:o}):cr.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>cr.createTextNode(e),createComment:e=>cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,r,i){const a=o?o.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),o),!(r===i||!(r=r.nextSibling)););else{Ym.innerHTML=ax(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Ym.content;if(n==="svg"||n==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Mr="transition",nl="animation",Pa=Symbol("_vtc"),lx={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sx=fo({},$1,lx),wE=e=>(e.displayName="Transition",e.props=sx,e),ho=wE((e,{slots:t})=>m(k3,ux(e),t)),fi=(e,t=[])=>{ht(e)?e.forEach(o=>o(...t)):e&&e(...t)},Qm=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function ux(e){const t={};for(const N in e)N in lx||(t[N]=e[N]);if(e.css===!1)return t;const{name:o="v",type:n,duration:r,enterFromClass:i=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:l=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:c=`${o}-leave-from`,leaveActiveClass:h=`${o}-leave-active`,leaveToClass:f=`${o}-leave-to`}=e,p=SE(r),g=p&&p[0],v=p&&p[1],{onBeforeEnter:b,onEnter:x,onEnterCancelled:k,onLeave:C,onLeaveCancelled:_,onBeforeAppear:R=b,onAppear:w=x,onAppearCancelled:A=k}=t,$=(N,K,H)=>{Tr(N,K?d:l),Tr(N,K?u:a),H&&H()},B=(N,K)=>{N._isLeaving=!1,Tr(N,c),Tr(N,f),Tr(N,h),K&&K()},U=N=>(K,H)=>{const T=N?w:x,z=()=>$(K,N,H);fi(T,[K,z]),Jm(()=>{Tr(K,N?s:i),dr(K,N?d:l),Qm(T)||eg(K,n,g,z)})};return fo(t,{onBeforeEnter(N){fi(b,[N]),dr(N,i),dr(N,a)},onBeforeAppear(N){fi(R,[N]),dr(N,s),dr(N,u)},onEnter:U(!1),onAppear:U(!0),onLeave(N,K){N._isLeaving=!0;const H=()=>B(N,K);dr(N,c),dr(N,h),cx(),Jm(()=>{N._isLeaving&&(Tr(N,c),dr(N,f),Qm(C)||eg(N,n,v,H))}),fi(C,[N,H])},onEnterCancelled(N){$(N,!1),fi(k,[N])},onAppearCancelled(N){$(N,!0),fi(A,[N])},onLeaveCancelled(N){B(N),fi(_,[N])}})}function SE(e){if(e==null)return null;if(Kt(e))return[_c(e.enter),_c(e.leave)];{const t=_c(e);return[t,t]}}function _c(e){return D6(e)}function dr(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[Pa]||(e[Pa]=new Set)).add(t)}function Tr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const o=e[Pa];o&&(o.delete(t),o.size||(e[Pa]=void 0))}function Jm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let EE=0;function eg(e,t,o,n){const r=e._endId=++EE,i=()=>{r===e._endId&&n()};if(o!=null)return setTimeout(i,o);const{type:a,timeout:l,propCount:s}=dx(e,t);if(!a)return n();const u=a+"end";let d=0;const c=()=>{e.removeEventListener(u,h),i()},h=f=>{f.target===e&&++d>=s&&c()};setTimeout(()=>{d<s&&c()},l+1),e.addEventListener(u,h)}function dx(e,t){const o=window.getComputedStyle(e),n=p=>(o[p]||"").split(", "),r=n(`${Mr}Delay`),i=n(`${Mr}Duration`),a=tg(r,i),l=n(`${nl}Delay`),s=n(`${nl}Duration`),u=tg(l,s);let d=null,c=0,h=0;t===Mr?a>0&&(d=Mr,c=a,h=i.length):t===nl?u>0&&(d=nl,c=u,h=s.length):(c=Math.max(a,u),d=c>0?a>u?Mr:nl:null,h=d?d===Mr?i.length:s.length:0);const f=d===Mr&&/\b(transform|all)(,|$)/.test(n(`${Mr}Property`).toString());return{type:d,timeout:c,propCount:h,hasTransform:f}}function tg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((o,n)=>og(o)+og(e[n])))}function og(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function cx(){return document.body.offsetHeight}function kE(e,t,o){const n=e[Pa];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Ku=Symbol("_vod"),fx=Symbol("_vsh"),bn={beforeMount(e,{value:t},{transition:o}){e[Ku]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):rl(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),rl(e,!0),n.enter(e)):n.leave(e,()=>{rl(e,!1)}):rl(e,t))},beforeUnmount(e,{value:t}){rl(e,t)}};function rl(e,t){e.style.display=t?e[Ku]:"none",e[fx]=!t}const _E=Symbol(""),FE=/(^|;)\s*display\s*:/;function RE(e,t,o){const n=e.style,r=eo(o);let i=!1;if(o&&!r){if(t)if(eo(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();o[l]==null&&Pu(n,l,"")}else for(const a in t)o[a]==null&&Pu(n,a,"");for(const a in o)a==="display"&&(i=!0),Pu(n,a,o[a])}else if(r){if(t!==o){const a=n[_E];a&&(o+=";"+a),n.cssText=o,i=FE.test(o)}}else t&&e.removeAttribute("style");Ku in e&&(e[Ku]=i?n.display:"",e[fx]&&(n.display="none"))}const ng=/\s*!important$/;function Pu(e,t,o){if(ht(o))o.forEach(n=>Pu(e,t,n));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const n=$E(e,t);ng.test(o)?e.setProperty(ji(n),o.replace(ng,""),"important"):e[n]=o}}const rg=["Webkit","Moz","ms"],Fc={};function $E(e,t){const o=Fc[t];if(o)return o;let n=vn(t);if(n!=="filter"&&n in e)return Fc[t]=n;n=md(n);for(let r=0;r<rg.length;r++){const i=rg[r]+n;if(i in e)return Fc[t]=i}return t}const ig="http://www.w3.org/1999/xlink";function ag(e,t,o,n,r,i=H6(t)){n&&t.startsWith("xlink:")?o==null?e.removeAttributeNS(ig,t.slice(6,t.length)):e.setAttributeNS(ig,t,o):o==null||i&&!Zb(o)?e.removeAttribute(t):e.setAttribute(t,i?"":ti(o)?String(o):o)}function lg(e,t,o,n){if(t==="innerHTML"||t==="textContent"){o!=null&&(e[t]=t==="innerHTML"?ax(o):o);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=o==null?e.type==="checkbox"?"on":"":String(o);(a!==l||!("_value"in e))&&(e.value=l),o==null&&e.removeAttribute(t),e._value=o;return}let i=!1;if(o===""||o==null){const a=typeof e[t];a==="boolean"?o=Zb(o):o==null&&a==="string"?(o="",i=!0):a==="number"&&(o=0,i=!0)}try{e[t]=o}catch{}i&&e.removeAttribute(t)}function PE(e,t,o,n){e.addEventListener(t,o,n)}function ME(e,t,o,n){e.removeEventListener(t,o,n)}const sg=Symbol("_vei");function AE(e,t,o,n,r=null){const i=e[sg]||(e[sg]={}),a=i[t];if(n&&a)a.value=n;else{const[l,s]=BE(t);if(n){const u=i[t]=IE(n,r);PE(e,l,u,s)}else a&&(ME(e,l,a,s),i[t]=void 0)}}const ug=/(?:Once|Passive|Capture)$/;function BE(e){let t;if(ug.test(e)){t={};let n;for(;n=e.match(ug);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ji(e.slice(2)),t]}let Rc=0;const DE=Promise.resolve(),TE=()=>Rc||(DE.then(()=>Rc=0),Rc=Date.now());function IE(e,t){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;Mn(zE(n,o.value),t,5,[n])};return o.value=e,o.attached=TE(),o}function zE(e,t){if(ht(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const dg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,OE=(e,t,o,n,r,i)=>{const a=r==="svg";t==="class"?kE(e,n,a):t==="style"?RE(e,o,n):fd(t)?Oh(t)||AE(e,t,o,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):LE(e,t,n,a))?(lg(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ag(e,t,n,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!eo(n))?lg(e,vn(t),n):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ag(e,t,n,a))};function LE(e,t,o,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&dg(t)&&mt(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return dg(t)&&eo(o)?!1:t in e}const hx=new WeakMap,px=new WeakMap,Gu=Symbol("_moveCb"),cg=Symbol("_enterCb"),HE=e=>(delete e.props.mode,e),NE=HE({name:"TransitionGroup",props:fo({},sx,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=xr(),n=R1();let r,i;return I1(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!UE(r[0].el,o.vnode.el,a))return;r.forEach(VE),r.forEach(jE);const l=r.filter(WE);cx(),l.forEach(s=>{const u=s.el,d=u.style;dr(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const c=u[Gu]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[Gu]=null,Tr(u,a))};u.addEventListener("transitionend",c)})}),()=>{const a=Pt(e),l=ux(a);let s=a.tag||ft;if(r=[],i)for(let u=0;u<i.length;u++){const d=i[u];d.el&&d.el instanceof Element&&(r.push(d),Ii(d,ql(d,l,n,o)),hx.set(d,d.el.getBoundingClientRect()))}i=t.default?Yh(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&Ii(d,ql(d,l,n,o))}return S(s,null,i)}}}),ip=NE;function VE(e){const t=e.el;t[Gu]&&t[Gu](),t[cg]&&t[cg]()}function jE(e){px.set(e,e.el.getBoundingClientRect())}function WE(e){const t=hx.get(e),o=px.get(e),n=t.left-o.left,r=t.top-o.top;if(n||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${r}px)`,i.transitionDuration="0s",e}}function UE(e,t,o){const n=e.cloneNode(),r=e[Pa];r&&r.forEach(l=>{l.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),o.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:a}=dx(n);return i.removeChild(n),a}const KE=fo({patchProp:OE},CE);let fg;function GE(){return fg||(fg=G3(KE))}const mx=(...e)=>{const t=GE().createApp(...e),{mount:o}=t;return t.mount=n=>{const r=ZE(n);if(!r)return;const i=t._component;!mt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=o(r,!1,qE(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function qE(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ZE(e){return eo(e)?document.querySelector(e):e}var XE=!1;/*! - * pinia v2.2.4 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */let gx;const Fd=e=>gx=e,vx=Symbol();function Lf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ml;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ml||(Ml={}));function YE(){const e=Jb(!0),t=e.run(()=>M({}));let o=[],n=[];const r=Kl({install(i){Fd(r),r._a=i,i.provide(vx,r),i.config.globalProperties.$pinia=r,n.forEach(a=>o.push(a)),n=[]},use(i){return!this._a&&!XE?n.push(i):o.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const bx=()=>{};function hg(e,t,o,n=bx){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!o&&e1()&&N6(r),r}function ra(e,...t){e.slice().forEach(o=>{o(...t)})}const QE=e=>e(),pg=Symbol(),$c=Symbol();function Hf(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,n)=>e.set(n,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const n=t[o],r=e[o];Lf(r)&&Lf(n)&&e.hasOwnProperty(o)&&!ro(n)&&!Kr(n)?e[o]=Hf(r,n):e[o]=n}return e}const JE=Symbol();function e4(e){return!Lf(e)||!e.hasOwnProperty(JE)}const{assign:Ir}=Object;function t4(e){return!!(ro(e)&&e.effect)}function o4(e,t,o,n){const{state:r,actions:i,getters:a}=t,l=o.state.value[e];let s;function u(){l||(o.state.value[e]=r?r():{});const d=b1(o.state.value[e]);return Ir(d,i,Object.keys(a||{}).reduce((c,h)=>(c[h]=Kl(I(()=>{Fd(o);const f=o._s.get(e);return a[h].call(f,f)})),c),{}))}return s=xx(e,u,t,o,n,!0),s}function xx(e,t,o={},n,r,i){let a;const l=Ir({actions:{}},o),s={deep:!0};let u,d,c=[],h=[],f;const p=n.state.value[e];!i&&!p&&(n.state.value[e]={}),M({});let g;function v(A){let $;u=d=!1,typeof A=="function"?(A(n.state.value[e]),$={type:Ml.patchFunction,storeId:e,events:f}):(Hf(n.state.value[e],A),$={type:Ml.patchObject,payload:A,storeId:e,events:f});const B=g=Symbol();Rt().then(()=>{g===B&&(u=!0)}),d=!0,ra(c,$,n.state.value[e])}const b=i?function(){const{state:$}=o,B=$?$():{};this.$patch(U=>{Ir(U,B)})}:bx;function x(){a.stop(),c=[],h=[],n._s.delete(e)}const k=(A,$="")=>{if(pg in A)return A[$c]=$,A;const B=function(){Fd(n);const U=Array.from(arguments),N=[],K=[];function H(F){N.push(F)}function T(F){K.push(F)}ra(h,{args:U,name:B[$c],store:_,after:H,onError:T});let z;try{z=A.apply(this&&this.$id===e?this:_,U)}catch(F){throw ra(K,F),F}return z instanceof Promise?z.then(F=>(ra(N,F),F)).catch(F=>(ra(K,F),Promise.reject(F))):(ra(N,z),z)};return B[pg]=!0,B[$c]=$,B},C={_p:n,$id:e,$onAction:hg.bind(null,h),$patch:v,$reset:b,$subscribe(A,$={}){const B=hg(c,A,$.detached,()=>U()),U=a.run(()=>at(()=>n.state.value[e],N=>{($.flush==="sync"?d:u)&&A({storeId:e,type:Ml.direct,events:f},N)},Ir({},s,$)));return B},$dispose:x},_=It(C);n._s.set(e,_);const w=(n._a&&n._a.runWithContext||QE)(()=>n._e.run(()=>(a=Jb()).run(()=>t({action:k}))));for(const A in w){const $=w[A];if(ro($)&&!t4($)||Kr($))i||(p&&e4($)&&(ro($)?$.value=p[A]:Hf($,p[A])),n.state.value[e][A]=$);else if(typeof $=="function"){const B=k($,A);w[A]=B,l.actions[A]=$}}return Ir(_,w),Ir(Pt(_),w),Object.defineProperty(_,"$state",{get:()=>n.state.value[e],set:A=>{v($=>{Ir($,A)})}}),n._p.forEach(A=>{Ir(_,a.run(()=>A({store:_,app:n._a,pinia:n,options:l})))}),p&&i&&o.hydrate&&o.hydrate(_.$state,p),u=!0,d=!0,_}function Wi(e,t,o){let n,r;const i=typeof t=="function";typeof e=="string"?(n=e,r=i?o:t):(r=e,n=e.id);function a(l,s){const u=H3();return l=l||(u?Oe(vx,null):null),l&&Fd(l),l=gx,l._s.has(n)||(i?xx(n,t,r,l):o4(n,r,l)),l._s.get(n)}return a.$id=n,a}const n4=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,r4=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i4=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a4(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){l4(e);return}return t}function l4(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function s4(e,t={}){if(typeof e!="string")return e;const o=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return o.slice(1,-1);if(o.length<=9){const n=o.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!i4.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(n4.test(e)||r4.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,a4)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}function u4(e,t){if(e==null)return;let o=e;for(let n=0;n<t.length;n++){if(o==null||o[t[n]]==null)return;o=o[t[n]]}return o}function ap(e,t,o){if(o.length===0)return t;const n=o[0];return o.length>1&&(t=ap(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,n)?Number.isInteger(Number(o[1]))?[]:{}:e[n],t,Array.prototype.slice.call(o,1))),Number.isInteger(Number(n))&&Array.isArray(e)?e.slice()[n]:Object.assign({},e,{[n]:t})}function yx(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const o={};for(const n in e)o[n]=e[n];return delete o[t[0]],o}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const o={};for(const n in e)o[n]=e[n];return o}return ap(e,yx(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Cx(e,t){return t.map(o=>o.split(".")).map(o=>[o,u4(e,o)]).filter(o=>o[1]!==void 0).reduce((o,n)=>ap(o,n[1],n[0]),{})}function wx(e,t){return t.map(o=>o.split(".")).reduce((o,n)=>yx(o,n),e)}function mg(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a,beforeHydrate:l,afterHydrate:s},u,d=!0){try{d&&(l==null||l(u));const c=t.getItem(n);if(c){const h=o.deserialize(c),f=i?Cx(h,i):h,p=a?wx(f,a):f;e.$patch(p)}d&&(s==null||s(u))}catch(c){r&&console.error("[pinia-plugin-persistedstate]",c)}}function gg(e,{storage:t,serializer:o,key:n,debug:r,pick:i,omit:a}){try{const l=i?Cx(e,i):e,s=a?wx(l,a):l,u=o.serialize(s);t.setItem(n,u)}catch(l){r&&console.error("[pinia-plugin-persistedstate]",l)}}function d4(e,t,o){const{pinia:n,store:r,options:{persist:i=o}}=e;if(!i)return;if(!(r.$id in n.state.value)){const s=n._s.get(r.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const l=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(t);r.$hydrate=({runHooks:s=!0}={})=>{l.forEach(u=>{mg(r,u,e,s)})},r.$persist=()=>{l.forEach(s=>{gg(r.$state,s)})},l.forEach(s=>{mg(r,s,e),r.$subscribe((u,d)=>gg(d,s),{detached:!0})})}function c4(e={}){return function(t){d4(t,o=>({key:(e.key?e.key:n=>n)(o.key??t.store.$id),debug:o.debug??e.debug??!1,serializer:o.serializer??e.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>s4(n)},storage:o.storage??e.storage??window.localStorage,beforeHydrate:o.beforeHydrate,afterHydrate:o.afterHydrate,pick:o.pick,omit:o.omit}),e.auto??!1)}}var f4=c4();let qu=[];const Sx=new WeakMap;function h4(){qu.forEach(e=>e(...Sx.get(e))),qu=[]}function Xl(e,...t){Sx.set(e,t),!qu.includes(e)&&qu.push(e)===1&&requestAnimationFrame(h4)}function Ko(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function zi(e){return e.composedPath()[0]||null}function p4(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(o=>{if(o==="")return;const[n,r]=o.split(":");r===void 0?t[""]=n:t[n]=r}),t}function ia(e,t){var o;if(e==null)return;const n=p4(e);if(t===void 0)return n[""];if(typeof t=="string")return(o=n[t])!==null&&o!==void 0?o:n[""];if(Array.isArray(t)){for(let r=t.length-1;r>=0;--r){const i=t[r];if(i in n)return n[i]}return n[""]}else{let r,i=-1;return Object.keys(n).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,r=n[a])}),r}}function lo(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Lt(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Ro(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function m4(e,t){const[o,n]=e.split(" ");return{row:o,col:n||o}}const vg={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Ex(e,t,o){t/=100,o/=100;const n=t*Math.min(o,1-o)+o;return[e,n?(2-2*o/n)*100:0,n*100]}function Mu(e,t,o){t/=100,o/=100;const n=o-o*t/2,r=Math.min(n,1-n);return[e,r?(o-n)/r*100:0,n*100]}function Nr(e,t,o){t/=100,o/=100;let n=(r,i=(r+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function Nf(e,t,o){e/=255,t/=255,o/=255;let n=Math.max(e,t,o),r=n-Math.min(e,t,o),i=r&&(n==e?(t-o)/r:n==t?2+(o-e)/r:4+(e-t)/r);return[60*(i<0?i+6:i),n&&r/n*100,n*100]}function Vf(e,t,o){e/=255,t/=255,o/=255;let n=Math.max(e,t,o),r=n-Math.min(e,t,o),i=1-Math.abs(n+n-r-1),a=r&&(n==e?(t-o)/r:n==t?2+(o-e)/r:4+(e-t)/r);return[60*(a<0?a+6:a),i?r/i*100:0,(n+n-r)*50]}function jf(e,t,o){t/=100,o/=100;let n=t*Math.min(o,1-o),r=(i,a=(i+e/30)%12)=>o-n*Math.max(Math.min(a-3,9-a,1),-1);return[r(0)*255,r(8)*255,r(4)*255]}const Jn="^\\s*",er="\\s*$",Jr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",on="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",yi="([0-9A-Fa-f])",Ci="([0-9A-Fa-f]{2})",g4=new RegExp(`${Jn}hsl\\s*\\(${on},${Jr},${Jr}\\)${er}`),v4=new RegExp(`${Jn}hsv\\s*\\(${on},${Jr},${Jr}\\)${er}`),b4=new RegExp(`${Jn}hsla\\s*\\(${on},${Jr},${Jr},${on}\\)${er}`),x4=new RegExp(`${Jn}hsva\\s*\\(${on},${Jr},${Jr},${on}\\)${er}`),y4=new RegExp(`${Jn}rgb\\s*\\(${on},${on},${on}\\)${er}`),C4=new RegExp(`${Jn}rgba\\s*\\(${on},${on},${on},${on}\\)${er}`),lp=new RegExp(`${Jn}#${yi}${yi}${yi}${er}`),sp=new RegExp(`${Jn}#${Ci}${Ci}${Ci}${er}`),up=new RegExp(`${Jn}#${yi}${yi}${yi}${yi}${er}`),dp=new RegExp(`${Jn}#${Ci}${Ci}${Ci}${Ci}${er}`);function jo(e){return parseInt(e,16)}function ka(e){try{let t;if(t=b4.exec(e))return[Xn(t[1]),uo(t[5]),uo(t[9]),gr(t[13])];if(t=g4.exec(e))return[Xn(t[1]),uo(t[5]),uo(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function $i(e){try{let t;if(t=x4.exec(e))return[Xn(t[1]),uo(t[5]),uo(t[9]),gr(t[13])];if(t=v4.exec(e))return[Xn(t[1]),uo(t[5]),uo(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function so(e){try{let t;if(t=sp.exec(e))return[jo(t[1]),jo(t[2]),jo(t[3]),1];if(t=y4.exec(e))return[no(t[1]),no(t[5]),no(t[9]),1];if(t=C4.exec(e))return[no(t[1]),no(t[5]),no(t[9]),gr(t[13])];if(t=lp.exec(e))return[jo(t[1]+t[1]),jo(t[2]+t[2]),jo(t[3]+t[3]),1];if(t=dp.exec(e))return[jo(t[1]),jo(t[2]),jo(t[3]),gr(jo(t[4])/255)];if(t=up.exec(e))return[jo(t[1]+t[1]),jo(t[2]+t[2]),jo(t[3]+t[3]),gr(jo(t[4]+t[4])/255)];if(e in vg)return so(vg[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function w4(e){return e>1?1:e<0?0:e}function S4(e,t,o){return`rgb(${no(e)}, ${no(t)}, ${no(o)})`}function Wf(e,t,o,n){return`rgba(${no(e)}, ${no(t)}, ${no(o)}, ${w4(n)})`}function Pc(e,t,o,n,r){return no((e*t*(1-n)+o*n)/r)}function Ue(e,t){Array.isArray(e)||(e=so(e)),Array.isArray(t)||(t=so(t));const o=e[3],n=t[3],r=gr(o+n-o*n);return Wf(Pc(e[0],o,t[0],n,r),Pc(e[1],o,t[1],n,r),Pc(e[2],o,t[2],n,r),r)}function Me(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:so(e);return t.alpha?Wf(o,n,r,t.alpha):Wf(o,n,r,i)}function ao(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:so(e),{lightness:a=1,alpha:l=1}=t;return Kn([o*a,n*a,r*a,i*l])}function gr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Xn(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function no(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function uo(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function Uf(e){const[t,o,n]=Array.isArray(e)?e:so(e);return S4(t,o,n)}function Kn(e){const[t,o,n]=e;return 3 in e?`rgba(${no(t)}, ${no(o)}, ${no(n)}, ${gr(e[3])})`:`rgba(${no(t)}, ${no(o)}, ${no(n)}, 1)`}function Kf(e){return`hsv(${Xn(e[0])}, ${uo(e[1])}%, ${uo(e[2])}%)`}function Pi(e){const[t,o,n]=e;return 3 in e?`hsva(${Xn(t)}, ${uo(o)}%, ${uo(n)}%, ${gr(e[3])})`:`hsva(${Xn(t)}, ${uo(o)}%, ${uo(n)}%, 1)`}function Gf(e){return`hsl(${Xn(e[0])}, ${uo(e[1])}%, ${uo(e[2])}%)`}function Gr(e){const[t,o,n]=e;return 3 in e?`hsla(${Xn(t)}, ${uo(o)}%, ${uo(n)}%, ${gr(e[3])})`:`hsla(${Xn(t)}, ${uo(o)}%, ${uo(n)}%, 1)`}function qr(e){if(typeof e=="string"){let n;if(n=sp.exec(e))return`${n[0]}FF`;if(n=dp.exec(e))return n[0];if(n=lp.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=up.exec(e))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(n=>no(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,o=e.length===3?"FF":no(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+o}function Al(e){if(typeof e=="string"){let t;if(t=sp.exec(e))return t[0];if(t=dp.exec(e))return t[0].slice(0,7);if(t=lp.exec(e)||up.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>no(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function ii(e=8){return Math.random().toString(16).slice(2,2+e)}function kx(e,t){const o=[];for(let n=0;n<e;++n)o.push(t);return o}function cp(e,t="default",o=[]){const r=e.$slots[t];return r===void 0?o:r()}function ei(e,t=[],o){const n={};return t.forEach(r=>{n[r]=e[r]}),Object.assign(n,o)}function Ui(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function vr(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(P(String(n)));return}if(Array.isArray(n)){vr(n,t,o);return}if(n.type===ft){if(n.children===null)return;Array.isArray(n.children)&&vr(n.children,t,o)}else{if(n.type===go&&t)return;o.push(n)}}}),o}function $e(e,...t){if(Array.isArray(e))e.forEach(o=>$e(o,...t));else return e(...t)}function ws(e){return Object.keys(e)}function Jt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?P(e):typeof e=="number"?P(String(e)):null}const bg=new Set;function E4(e,t){const o=`[naive/${e}]: ${t}`;bg.has(o)||(bg.add(o),console.error(o))}function xn(e,t){console.error(`[naive/${e}]: ${t}`)}function yr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function xg(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function qf(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Zf(e,t="default",o=void 0){const n=e[t];if(!n)return xn("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=vr(n(o));return r.length===1?r[0]:(xn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function _x(e){return t=>{t?e.value=t.$el:e.value=null}}function pn(e){return e.some(t=>$a(t)?!(t.type===go||t.type===ft&&!pn(t.children)):!0)?e:null}function wo(e,t){return e&&pn(e())||t()}function Xf(e,t,o){return e&&pn(e(t))||o(t)}function bt(e,t){const o=e&&pn(e());return t(o||null)}function k4(e,t,o){const n=e&&pn(e(t));return o(n||null)}function Mi(e){return!(e&&pn(e()))}function Bl(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function _4(e){var t;const o=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:n})=>n===bn);return!!(o&&o.value===!1)}const Yf=xe({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),F4=/^(\d|\.)+$/,yg=/(\d|\.)+/;function So(e,{c:t=1,offset:o=0,attachPx:n=!0}={}){if(typeof e=="number"){const r=(e+o)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(F4.test(e)){const r=(Number(e)+o)*t;return n?r===0?"0":`${r}px`:`${r}`}else{const r=yg.exec(e);return r?e.replace(yg,String((Number(r[0])+o)*t)):e}return e}function Ma(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Cg(e){const{left:t,right:o,top:n,bottom:r}=Ro(e);return`${n} ${o} ${r} ${t}`}function R4(e){let t=0;for(let o=0;o<e.length;++o)e[o]==="&"&&++t;return t}const Fx=/\s*,(?![^(]*\))\s*/g,$4=/\s+/g;function P4(e,t){const o=[];return t.split(Fx).forEach(n=>{let r=R4(n);if(r){if(r===1){e.forEach(a=>{o.push(n.replace("&",a))});return}}else{e.forEach(a=>{o.push((a&&a+" ")+n)});return}let i=[n];for(;r--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>o.push(a))}),o}function M4(e,t){const o=[];return t.split(Fx).forEach(n=>{e.forEach(r=>{o.push((r&&r+" ")+n)})}),o}function A4(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=P4(t,o):t=M4(t,o))}),t.join(", ").replace($4," ")}function wg(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Rd(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function B4(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function eu(e){return e?/^\s*@(s|m)/.test(e):!1}const D4=/[A-Z]/g;function Rx(e){return e.replace(D4,t=>"-"+t.toLowerCase())}function T4(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(o=>t+` ${Rx(o[0])}: ${o[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function I4(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function Sg(e,t,o,n){if(!t)return"";const r=I4(t,o,n);if(!r)return"";if(typeof r=="string")return`${e} { -${r} -}`;const i=Object.keys(r);if(i.length===0)return o.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=r[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=Rx(l),s!=null&&a.push(` ${l}${T4(s)}`)}),e&&a.push("}"),a.join(` -`)}function Qf(e,t,o){e&&e.forEach(n=>{if(Array.isArray(n))Qf(n,t,o);else if(typeof n=="function"){const r=n(t);Array.isArray(r)?Qf(r,t,o):r&&o(r)}else n&&o(n)})}function $x(e,t,o,n,r){const i=e.$;let a="";if(!i||typeof i=="string")eu(i)?a=i:t.push(i);else if(typeof i=="function"){const u=i({context:n.context,props:r});eu(u)?a=u:t.push(u)}else if(i.before&&i.before(n.context),!i.$||typeof i.$=="string")eu(i.$)?a=i.$:t.push(i.$);else if(i.$){const u=i.$({context:n.context,props:r});eu(u)?a=u:t.push(u)}const l=A4(t),s=Sg(l,e.props,n,r);a?o.push(`${a} {`):s.length&&o.push(s),e.children&&Qf(e.children,{context:n.context,props:r},u=>{if(typeof u=="string"){const d=Sg(l,{raw:u},n,r);o.push(d)}else $x(u,t,o,n,r)}),t.pop(),a&&o.push("}"),i&&i.after&&i.after(n.context)}function z4(e,t,o){const n=[];return $x(e,[],n,t,o),n.join(` - -`)}function Yl(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function O4(e,t,o,n){const{els:r}=t;if(o===void 0)r.forEach(wg),t.els=[];else{const i=Rd(o,n);i&&r.includes(i)&&(wg(i),t.els=r.filter(a=>a!==i))}}function Eg(e,t){e.push(t)}function L4(e,t,o,n,r,i,a,l,s){let u;if(o===void 0&&(u=t.render(n),o=Yl(u)),s){s.adapter(o,u??t.render(n));return}l===void 0&&(l=document.head);const d=Rd(o,l);if(d!==null&&!i)return d;const c=d??B4(o);if(u===void 0&&(u=t.render(n)),c.textContent=u,d!==null)return d;if(a){const h=l.querySelector(`meta[name="${a}"]`);if(h)return l.insertBefore(c,h),Eg(t.els,c),c}return r?l.insertBefore(c,l.querySelector("style, link")):l.appendChild(c),Eg(t.els,c),c}function H4(e){return z4(this,this.instance,e)}function N4(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:a,parent:l}=e;return L4(this.instance,this,t,n,r,i,a,l,o)}function V4(e={}){const{id:t,parent:o}=e;O4(this.instance,this,t,o)}const tu=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:H4,mount:N4,unmount:V4}},j4=function(e,t,o,n){return Array.isArray(t)?tu(e,{$:null},null,t):Array.isArray(o)?tu(e,t,null,o):Array.isArray(n)?tu(e,t,o,n):tu(e,t,o,null)};function Px(e={}){const t={c:(...o)=>j4(t,...o),use:(o,...n)=>o.install(t,...n),find:Rd,context:{},config:e};return t}function W4(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return Rd(e)!==null}function U4(e){let t=".",o="__",n="--",r;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(n=p)}const i={install(p){r=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function a(p){let g,v;return{before(b){g=b.bem.b,v=b.bem.els,b.bem.els=null},after(b){b.bem.b=g,b.bem.els=v},$({context:b,props:x}){return p=typeof p=="string"?p:p({context:b,props:x}),b.bem.b=p,`${(x==null?void 0:x.bPrefix)||t}${b.bem.b}`}}}function l(p){let g;return{before(v){g=v.bem.els},after(v){v.bem.els=g},$({context:v,props:b}){return p=typeof p=="string"?p:p({context:v,props:b}),v.bem.els=p.split(",").map(x=>x.trim()),v.bem.els.map(x=>`${(b==null?void 0:b.bPrefix)||t}${v.bem.b}${o}${x}`).join(", ")}}}function s(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const b=p.split(",").map(C=>C.trim());function x(C){return b.map(_=>`&${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${C!==void 0?`${o}${C}`:""}${n}${_}`).join(", ")}const k=g.bem.els;return k!==null?x(k[0]):x()}}}function u(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const b=g.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${b!==null&&b.length>0?`${o}${b[0]}`:""}${n}${p})`}}}return Object.assign(i,{cB:(...p)=>r(a(p[0]),p[1],p[2]),cE:(...p)=>r(l(p[0]),p[1],p[2]),cM:(...p)=>r(s(p[0]),p[1],p[2]),cNotM:(...p)=>r(u(p[0]),p[1],p[2])}),i}const K4="n",Ql=`.${K4}-`,G4="__",q4="--",Mx=Px(),Ax=U4({blockPrefix:Ql,elementPrefix:G4,modifierPrefix:q4});Mx.use(Ax);const{c:V,find:lX}=Mx,{cB:D,cE:G,cM:X,cNotM:Ft}=Ax;function Ki(e){return V(({props:{bPrefix:t}})=>`${t||Ql}modal, ${t||Ql}drawer`,[e])}function Ha(e){return V(({props:{bPrefix:t}})=>`${t||Ql}popover`,[e])}function Bx(e){return V(({props:{bPrefix:t}})=>`&${t||Ql}modal`,e)}const Z4=(...e)=>V(">",[D(...e)]);function Ee(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let Mc;function X4(){return Mc===void 0&&(Mc=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Mc}const wn=typeof document<"u"&&typeof window<"u",Dx=new WeakSet;function Y4(e){Dx.add(e)}function Tx(e){return!Dx.has(e)}function Q4(e,t,o){const n=M(e.value);let r=null;return at(e,i=>{r!==null&&window.clearTimeout(r),i===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}function Ix(e){const t=M(!!e.value);if(t.value)return Zn(t);const o=at(e,n=>{n&&(t.value=!0,o())});return Zn(t)}function gt(e){const t=I(e),o=M(t.value);return at(t,n=>{o.value=n}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(n){e.set(n)}}}function fp(){return xr()!==null}const $d=typeof window<"u";let _a,Dl;const J4=()=>{var e,t;_a=$d?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Dl=!1,_a!==void 0?_a.then(()=>{Dl=!0}):Dl=!0};J4();function hp(e){if(Dl)return;let t=!1;ut(()=>{Dl||_a==null||_a.then(()=>{t||e()})}),Xt(()=>{t=!0})}function Au(e){return e.composedPath()[0]}const ek={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function tk(e,t,o){if(e==="mousemoveoutside"){const n=r=>{t.contains(Au(r))||o(r)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const r=a=>{n=!t.contains(Au(a))},i=a=>{n&&(t.contains(Au(a))||o(a))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function zx(e,t,o){const n=ek[e];let r=n.get(t);r===void 0&&n.set(t,r=new WeakMap);let i=r.get(o);return i===void 0&&r.set(o,i=tk(e,t,o)),i}function ok(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=zx(e,t,o);return Object.keys(r).forEach(i=>{Ct(i,document,r[i],n)}),!0}return!1}function nk(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=zx(e,t,o);return Object.keys(r).forEach(i=>{xt(i,document,r[i],n)}),!0}return!1}function rk(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function r(w,A,$){const B=w[A];return w[A]=function(){return $.apply(w,arguments),B.apply(w,arguments)},w}function i(w,A){w[A]=Event.prototype[A]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var w;return(w=a.get(this))!==null&&w!==void 0?w:null}function u(w,A){l!==void 0&&Object.defineProperty(w,"currentTarget",{configurable:!0,enumerable:!0,get:A??l.get})}const d={bubble:{},capture:{}},c={};function h(){const w=function(A){const{type:$,eventPhase:B,bubbles:U}=A,N=Au(A);if(B===2)return;const K=B===1?"capture":"bubble";let H=N;const T=[];for(;H===null&&(H=window),T.push(H),H!==window;)H=H.parentNode||null;const z=d.capture[$],F=d.bubble[$];if(r(A,"stopPropagation",o),r(A,"stopImmediatePropagation",n),u(A,s),K==="capture"){if(z===void 0)return;for(let y=T.length-1;y>=0&&!e.has(A);--y){const re=T[y],te=z.get(re);if(te!==void 0){a.set(A,re);for(const j of te){if(t.has(A))break;j(A)}}if(y===0&&!U&&F!==void 0){const j=F.get(re);if(j!==void 0)for(const Z of j){if(t.has(A))break;Z(A)}}}}else if(K==="bubble"){if(F===void 0)return;for(let y=0;y<T.length&&!e.has(A);++y){const re=T[y],te=F.get(re);if(te!==void 0){a.set(A,re);for(const j of te){if(t.has(A))break;j(A)}}}}i(A,"stopPropagation"),i(A,"stopImmediatePropagation"),u(A)};return w.displayName="evtdUnifiedHandler",w}function f(){const w=function(A){const{type:$,eventPhase:B}=A;if(B!==2)return;const U=c[$];U!==void 0&&U.forEach(N=>N(A))};return w.displayName="evtdUnifiedWindowEventHandler",w}const p=h(),g=f();function v(w,A){const $=d[w];return $[A]===void 0&&($[A]=new Map,window.addEventListener(A,p,w==="capture")),$[A]}function b(w){return c[w]===void 0&&(c[w]=new Set,window.addEventListener(w,g)),c[w]}function x(w,A){let $=w.get(A);return $===void 0&&w.set(A,$=new Set),$}function k(w,A,$,B){const U=d[A][$];if(U!==void 0){const N=U.get(w);if(N!==void 0&&N.has(B))return!0}return!1}function C(w,A){const $=c[w];return!!($!==void 0&&$.has(A))}function _(w,A,$,B){let U;if(typeof B=="object"&&B.once===!0?U=z=>{R(w,A,U,B),$(z)}:U=$,ok(w,A,U,B))return;const K=B===!0||typeof B=="object"&&B.capture===!0?"capture":"bubble",H=v(K,w),T=x(H,A);if(T.has(U)||T.add(U),A===window){const z=b(w);z.has(U)||z.add(U)}}function R(w,A,$,B){if(nk(w,A,$,B))return;const N=B===!0||typeof B=="object"&&B.capture===!0,K=N?"capture":"bubble",H=v(K,w),T=x(H,A);if(A===window&&!k(A,N?"bubble":"capture",w,$)&&C(w,$)){const F=c[w];F.delete($),F.size===0&&(window.removeEventListener(w,g),c[w]=void 0)}T.has($)&&T.delete($),T.size===0&&H.delete(A),H.size===0&&(window.removeEventListener(w,p,K==="capture"),d[K][w]=void 0)}return{on:_,off:R}}const{on:Ct,off:xt}=rk(),yl=M(null);function kg(e){if(e.clientX>0||e.clientY>0)yl.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:o,top:n,width:r,height:i}=t.getBoundingClientRect();o>0||n>0?yl.value={x:o+r/2,y:n+i/2}:yl.value={x:0,y:0}}else yl.value=null}}let ou=0,_g=!0;function Zu(){if(!$d)return Zn(M(null));ou===0&&Ct("click",document,kg,!0);const e=()=>{ou+=1};return _g&&(_g=fp())?(ri(e),Xt(()=>{ou-=1,ou===0&&xt("click",document,kg,!0)})):e(),Zn(yl)}const ik=M(void 0);let nu=0;function Fg(){ik.value=Date.now()}let Rg=!0;function Xu(e){if(!$d)return Zn(M(!1));const t=M(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}nu===0&&Ct("click",window,Fg,!0);const i=()=>{nu+=1,Ct("click",window,r,!0)};return Rg&&(Rg=fp())?(ri(i),Xt(()=>{nu-=1,nu===0&&xt("click",window,Fg,!0),xt("click",window,r,!0),n()})):i(),Zn(t)}function to(e,t){return at(e,o=>{o!==void 0&&(t.value=o)}),I(()=>e.value===void 0?t.value:e.value)}function Cr(){const e=M(!1);return ut(()=>{e.value=!0}),Zn(e)}function Jl(e,t){return I(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const ak=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function lk(){return ak}const sk={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function uk(e){return`(min-width: ${e}px)`}const il={};function dk(e=sk){if(!$d)return I(()=>[]);if(typeof window.matchMedia!="function")return I(()=>[]);const t=M({}),o=Object.keys(e),n=(r,i)=>{r.matches?t.value[i]=!0:t.value[i]=!1};return o.forEach(r=>{const i=e[r];let a,l;il[i]===void 0?(a=window.matchMedia(uk(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(u=>{u(s,r)})}):a.addListener&&a.addListener(s=>{l.forEach(u=>{u(s,r)})}),l=new Set,il[i]={mql:a,cbs:l}):(a=il[i].mql,l=il[i].cbs),l.add(n),a.matches&&l.forEach(s=>{s(a,r)})}),Xt(()=>{o.forEach(r=>{const{cbs:i}=il[e[r]];i.has(n)&&i.delete(n)})}),I(()=>{const{value:r}=t;return o.filter(i=>r[i])})}function ck(e={},t){const o=It({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(u=>{if(u!==s.key)return;const d=n[u];if(typeof d=="function")d(s);else{const{stop:c=!1,prevent:h=!1}=d;c&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(u=>{if(u!==s.key)return;const d=r[u];if(typeof d=="function")d(s);else{const{stop:c=!1,prevent:h=!1}=d;c&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(Ct("keydown",document,i),Ct("keyup",document,a)),t!==void 0&&at(t,s=>{s?(Ct("keydown",document,i),Ct("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return fp()?(ri(l),Xt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),Zn(o)}const pp="n-internal-select-menu",Ox="n-internal-select-menu-body",Ss="n-modal-body",fk="n-modal-provider",Lx="n-modal",Es="n-drawer-body",mp="n-drawer",Na="n-popover-body",Hx="__disabled__";function Mo(e){const t=Oe(Ss,null),o=Oe(Es,null),n=Oe(Na,null),r=Oe(Ox,null),i=M();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};ut(()=>{Ct("fullscreenchange",document,a)}),Xt(()=>{xt("fullscreenchange",document,a)})}return gt(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Hx:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:l??(i.value||"body")})}Mo.tdkey=Hx;Mo.propTo={type:[String,Object,Boolean],default:void 0};let $g=!1;function hk(){if(wn&&window.CSS&&!$g&&($g=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}function Jf(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function eh(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(P(String(n)));return}if(Array.isArray(n)){eh(n,t,o);return}if(n.type===ft){if(n.children===null)return;Array.isArray(n.children)&&eh(n.children,t,o)}else n.type!==go&&o.push(n)}}),o}function Pg(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=eh(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let Ar=null;function Nx(){if(Ar===null&&(Ar=document.getElementById("v-binder-view-measurer"),Ar===null)){Ar=document.createElement("div"),Ar.id="v-binder-view-measurer";const{style:e}=Ar;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ar)}return Ar.getBoundingClientRect()}function pk(e,t){const o=Nx();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Ac(e){const t=e.getBoundingClientRect(),o=Nx();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function mk(e){return e.nodeType===9?null:e.parentNode}function Vx(e){if(e===null)return null;const t=mk(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+n))return t}return Vx(t)}const ks=xe({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Je("VBinder",(t=xr())===null||t===void 0?void 0:t.proxy);const o=Oe("VBinder",null),n=M(null),r=b=>{n.value=b,o&&e.syncTargetWithParent&&o.setTargetRef(b)};let i=[];const a=()=>{let b=n.value;for(;b=Vx(b),b!==null;)i.push(b);for(const x of i)Ct("scroll",x,c,!0)},l=()=>{for(const b of i)xt("scroll",b,c,!0);i=[]},s=new Set,u=b=>{s.size===0&&a(),s.has(b)||s.add(b)},d=b=>{s.has(b)&&s.delete(b),s.size===0&&l()},c=()=>{Xl(h)},h=()=>{s.forEach(b=>b())},f=new Set,p=b=>{f.size===0&&Ct("resize",window,v),f.has(b)||f.add(b)},g=b=>{f.has(b)&&f.delete(b),f.size===0&&xt("resize",window,v)},v=()=>{f.forEach(b=>b())};return Xt(()=>{xt("resize",window,v),l()}),{targetRef:n,setTargetRef:r,addScrollListener:u,removeScrollListener:d,addResizeListener:p,removeResizeListener:g}},render(){return Jf("binder",this.$slots)}}),_s=xe({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Oe("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Po(Pg("follower",this.$slots),[[t]]):Pg("follower",this.$slots)}}),aa="@@mmoContext",gk={mounted(e,{value:t}){e[aa]={handler:void 0},typeof t=="function"&&(e[aa].handler=t,Ct("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[aa];typeof t=="function"?o.handler?o.handler!==t&&(xt("mousemoveoutside",e,o.handler),o.handler=t,Ct("mousemoveoutside",e,t)):(e[aa].handler=t,Ct("mousemoveoutside",e,t)):o.handler&&(xt("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[aa];t&&xt("mousemoveoutside",e,t),e[aa].handler=void 0}},la="@@coContext",Oi={mounted(e,{value:t,modifiers:o}){e[la]={handler:void 0},typeof t=="function"&&(e[la].handler=t,Ct("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[la];typeof t=="function"?n.handler?n.handler!==t&&(xt("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,Ct("clickoutside",e,t,{capture:o.capture})):(e[la].handler=t,Ct("clickoutside",e,t,{capture:o.capture})):n.handler&&(xt("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[la];o&&xt("clickoutside",e,o,{capture:t.capture}),e[la].handler=void 0}};function vk(e,t){console.error(`[vdirs/${e}]: ${t}`)}class bk{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:n}=this;if(o!==void 0){t.style.zIndex=`${o}`,n.delete(t);return}const{nextZIndex:r}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,n.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,o){const{elementZIndex:n}=this;n.has(t)?n.delete(t):o===void 0&&vk("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,n)=>o[1]-n[1]),this.nextZIndex=2e3,t.forEach(o=>{const n=o[0],r=this.nextZIndex++;`${r}`!==n.style.zIndex&&(n.style.zIndex=`${r}`)})}}const Bc=new bk,sa="@@ziContext",Pd={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[sa]={enabled:!!r,initialized:!1},r&&(Bc.ensureZIndex(e,n),e[sa].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[sa].enabled;r&&!i&&(Bc.ensureZIndex(e,n),e[sa].initialized=!0),e[sa].enabled=!!r},unmounted(e,t){if(!e[sa].initialized)return;const{value:o={}}=t,{zIndex:n}=o;Bc.unregister(e,n)}},xk="@css-render/vue3-ssr";function yk(e,t){return`<style cssr-id="${e}"> -${t} -</style>`}function Ck(e,t,o){const{styles:n,ids:r}=o;r.has(e)||n!==null&&(r.add(e),n.push(yk(e,t)))}const wk=typeof document<"u";function ai(){if(wk)return;const e=Oe(xk,null);if(e!==null)return{adapter:(t,o)=>Ck(t,o,e),context:e}}function Mg(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Wn}=Px(),Md="vueuc-style";function Ag(e){return e&-e}class jx{constructor(t,o){this.l=t,this.min=o;const n=new Array(t+1);for(let r=0;r<t+1;++r)n[r]=0;this.ft=n}add(t,o){if(o===0)return;const{l:n,ft:r}=this;for(t+=1;t<=n;)r[t]+=o,t+=Ag(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:o,min:n,l:r}=this;if(t>r)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=o[t],t-=Ag(t);return i}getBound(t){let o=0,n=this.l;for(;n>o;){const r=Math.floor((o+n)/2),i=this.sum(r);if(i>t){n=r;continue}else if(i<t){if(o===r)return this.sum(o+1)<=t?o+1:r;o=r}else return r}return o}}function Bg(e){return typeof e=="string"?document.querySelector(e):e()}const gp=xe({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Ix(Be(e,"show")),mergedTo:I(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Jf("lazy-teleport",this.$slots):m(bs,{disabled:this.disabled,to:this.mergedTo},Jf("lazy-teleport",this.$slots)):null}}),ru={top:"bottom",bottom:"top",left:"right",right:"left"},Dg={start:"end",center:"center",end:"start"},Dc={top:"height",bottom:"height",left:"width",right:"width"},Sk={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Ek={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},kk={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Tg={top:!0,bottom:!1,left:!0,right:!1},Ig={top:"end",bottom:"start",left:"end",right:"start"};function _k(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l??"center",u={top:0,left:0};const d=(f,p,g)=>{let v=0,b=0;const x=o[f]-t[p]-t[f];return x>0&&n&&(g?b=Tg[p]?x:-x:v=Tg[p]?x:-x),{left:v,top:b}},c=a==="left"||a==="right";if(s!=="center"){const f=kk[e],p=ru[f],g=Dc[f];if(o[g]>t[g]){if(t[f]+t[g]<o[g]){const v=(o[g]-t[g])/2;t[f]<v||t[p]<v?t[f]<t[p]?(s=Dg[l],u=d(g,p,c)):u=d(g,f,c):s="center"}}else o[g]<t[g]&&t[p]<0&&t[f]>t[p]&&(s=Dg[l])}else{const f=a==="bottom"||a==="top"?"left":"top",p=ru[f],g=Dc[f],v=(o[g]-t[g])/2;(t[f]<v||t[p]<v)&&(t[f]>t[p]?(s=Ig[f],u=d(g,f,c)):(s=Ig[p],u=d(g,p,c)))}let h=a;return t[a]<o[Dc[a]]&&t[a]<t[ru[a]]&&(h=ru[a]),{placement:s!=="center"?`${h}-${s}`:h,left:u.left,top:u.top}}function Fk(e,t){return t?Ek[e]:Sk[e]}function Rk(e,t,o,n,r,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:""};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:""};case"right-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateX(-50%)"}}}const $k=Wn([Wn(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Wn(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Wn("> *",{pointerEvents:"all"})])]),Fs=xe({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Oe("VBinder"),o=gt(()=>e.enabled!==void 0?e.enabled:e.show),n=M(null),r=M(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};ut(()=>{o.value&&(s(),i())});const l=ai();$k.mount({id:"vueuc/binder",head:!0,anchorMetaName:Md,ssr:l}),Xt(()=>{a()}),hp(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=n.value;if(h===null)return;const f=t.targetRef,{x:p,y:g,overlap:v}=e,b=p!==void 0&&g!==void 0?pk(p,g):Ac(f);h.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:x,minWidth:k,placement:C,internalShift:_,flip:R}=e;h.setAttribute("v-placement",C),v?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:w}=h;x==="target"?w.width=`${b.width}px`:x!==void 0?w.width=x:w.width="",k==="target"?w.minWidth=`${b.width}px`:k!==void 0?w.minWidth=k:w.minWidth="";const A=Ac(h),$=Ac(r.value),{left:B,top:U,placement:N}=_k(C,b,A,_,R,v),K=Fk(N,v),{left:H,top:T,transform:z}=Rk(N,$,b,U,B,v);h.setAttribute("v-placement",N),h.style.setProperty("--v-offset-left",`${Math.round(B)}px`),h.style.setProperty("--v-offset-top",`${Math.round(U)}px`),h.style.transform=`translateX(${H}) translateY(${T}) ${z}`,h.style.setProperty("--v-transform-origin",K),h.style.transformOrigin=K};at(o,h=>{h?(i(),u()):a()});const u=()=>{Rt().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{at(Be(e,h),s)}),["teleportDisabled"].forEach(h=>{at(Be(e,h),u)}),at(Be(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Cr(),c=gt(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:c,syncPosition:s}},render(){return m(gp,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=m("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[m("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Po(o,[[Pd,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Ai=[],Pk=function(){return Ai.some(function(e){return e.activeTargets.length>0})},Mk=function(){return Ai.some(function(e){return e.skippedTargets.length>0})},zg="ResizeObserver loop completed with undelivered notifications.",Ak=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:zg}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=zg),window.dispatchEvent(e)},es;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(es||(es={}));var Bi=function(e){return Object.freeze(e)},Bk=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Bi(this)}return e}(),Wx=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Bi(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,u=t.height;return{x:o,y:n,top:r,right:i,bottom:a,left:l,width:s,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),vp=function(e){return e instanceof SVGElement&&"getBBox"in e},Ux=function(e){if(vp(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},Og=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Dk=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Tl=typeof window<"u"?window:{},iu=new WeakMap,Lg=/auto|scroll/,Tk=/^tb|vertical/,Ik=/msie|trident/i.test(Tl.navigator&&Tl.navigator.userAgent),On=function(e){return parseFloat(e||"0")},Fa=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Bk((o?t:e)||0,(o?e:t)||0)},Hg=Bi({devicePixelContentBoxSize:Fa(),borderBoxSize:Fa(),contentBoxSize:Fa(),contentRect:new Wx(0,0,0,0)}),Kx=function(e,t){if(t===void 0&&(t=!1),iu.has(e)&&!t)return iu.get(e);if(Ux(e))return iu.set(e,Hg),Hg;var o=getComputedStyle(e),n=vp(e)&&e.ownerSVGElement&&e.getBBox(),r=!Ik&&o.boxSizing==="border-box",i=Tk.test(o.writingMode||""),a=!n&&Lg.test(o.overflowY||""),l=!n&&Lg.test(o.overflowX||""),s=n?0:On(o.paddingTop),u=n?0:On(o.paddingRight),d=n?0:On(o.paddingBottom),c=n?0:On(o.paddingLeft),h=n?0:On(o.borderTopWidth),f=n?0:On(o.borderRightWidth),p=n?0:On(o.borderBottomWidth),g=n?0:On(o.borderLeftWidth),v=c+u,b=s+d,x=g+f,k=h+p,C=l?e.offsetHeight-k-e.clientHeight:0,_=a?e.offsetWidth-x-e.clientWidth:0,R=r?v+x:0,w=r?b+k:0,A=n?n.width:On(o.width)-R-_,$=n?n.height:On(o.height)-w-C,B=A+v+_+x,U=$+b+C+k,N=Bi({devicePixelContentBoxSize:Fa(Math.round(A*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:Fa(B,U,i),contentBoxSize:Fa(A,$,i),contentRect:new Wx(c,s,A,$)});return iu.set(e,N),N},Gx=function(e,t,o){var n=Kx(e,o),r=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case es.DEVICE_PIXEL_CONTENT_BOX:return a;case es.BORDER_BOX:return r;default:return i}},zk=function(){function e(t){var o=Kx(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Bi([o.borderBoxSize]),this.contentBoxSize=Bi([o.contentBoxSize]),this.devicePixelContentBoxSize=Bi([o.devicePixelContentBoxSize])}return e}(),qx=function(e){if(Ux(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Ok=function(){var e=1/0,t=[];Ai.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(u){var d=new zk(u.target),c=qx(u.target);l.push(d),u.lastReportedSize=Gx(u.target,u.observedBox),c<e&&(e=c)}),t.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},Ng=function(e){Ai.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(qx(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Lk=function(){var e=0;for(Ng(e);Pk();)e=Ok(),Ng(e);return Mk()&&Ak(),e>0},Tc,Zx=[],Hk=function(){return Zx.splice(0).forEach(function(e){return e()})},Nk=function(e){if(!Tc){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Hk()}).observe(o,n),Tc=function(){o.textContent="".concat(t?t--:t++)}}Zx.push(e),Tc()},Vk=function(e){Nk(function(){requestAnimationFrame(e)})},Bu=0,jk=function(){return!!Bu},Wk=250,Uk={attributes:!0,characterData:!0,childList:!0,subtree:!0},Vg=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],jg=function(e){return e===void 0&&(e=0),Date.now()+e},Ic=!1,Kk=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Wk),!Ic){Ic=!0;var n=jg(t);Vk(function(){var r=!1;try{r=Lk()}finally{if(Ic=!1,t=n-jg(),!jk())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Uk)};document.body?o():Tl.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Vg.forEach(function(o){return Tl.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Vg.forEach(function(o){return Tl.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),th=new Kk,Wg=function(e){!Bu&&e>0&&th.start(),Bu+=e,!Bu&&th.stop()},Gk=function(e){return!vp(e)&&!Dk(e)&&getComputedStyle(e).display==="inline"},qk=function(){function e(t,o){this.target=t,this.observedBox=o||es.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Gx(this.target,this.observedBox,!0);return Gk(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Zk=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),au=new WeakMap,Ug=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},lu=function(){function e(){}return e.connect=function(t,o){var n=new Zk(t,o);au.set(t,n)},e.observe=function(t,o,n){var r=au.get(t),i=r.observationTargets.length===0;Ug(r.observationTargets,o)<0&&(i&&Ai.push(r),r.observationTargets.push(new qk(o,n&&n.box)),Wg(1),th.schedule())},e.unobserve=function(t,o){var n=au.get(t),r=Ug(n.observationTargets,o),i=n.observationTargets.length===1;r>=0&&(i&&Ai.splice(Ai.indexOf(n),1),n.observationTargets.splice(r,1),Wg(-1))},e.disconnect=function(t){var o=this,n=au.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Xk=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");lu.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Og(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");lu.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Og(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");lu.unobserve(this,t)},e.prototype.disconnect=function(){lu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Yk{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Xk)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const n=this.elHandlersMap.get(o.target);n!==void 0&&n(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Yu=new Yk,$n=xe({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=xr().proxy;function n(r){const{onResize:i}=e;i!==void 0&&i(r)}ut(()=>{const r=o.$el;if(r===void 0){Mg("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){Mg("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(Yu.registerHandler(r.nextElementSibling,n),t=!0)}),Xt(()=>{t&&Yu.unregisterHandler(o.$el.nextElementSibling)})},render(){return xs(this.$slots,"default")}});let su;function Qk(){return typeof document>"u"?!1:(su===void 0&&("matchMedia"in window?su=window.matchMedia("(pointer:coarse)").matches:su=!1),su)}let zc;function Kg(){return typeof document>"u"?1:(zc===void 0&&(zc="chrome"in window?window.devicePixelRatio:1),zc)}const Xx="VVirtualListXScroll";function Jk({columnsRef:e,renderColRef:t,renderItemWithColsRef:o}){const n=M(0),r=M(0),i=I(()=>{const u=e.value;if(u.length===0)return null;const d=new jx(u.length,0);return u.forEach((c,h)=>{d.add(h,c.width)}),d}),a=gt(()=>{const u=i.value;return u!==null?Math.max(u.getBound(r.value)-1,0):0}),l=u=>{const d=i.value;return d!==null?d.sum(u):0},s=gt(()=>{const u=i.value;return u!==null?Math.min(u.getBound(r.value+n.value)+1,e.value.length-1):0});return Je(Xx,{startIndexRef:a,endIndexRef:s,columnsRef:e,renderColRef:t,renderItemWithColsRef:o,getLeft:l}),{listWidthRef:n,scrollLeftRef:r}}const Gg=xe({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:o,getLeft:n,renderColRef:r,renderItemWithColsRef:i}=Oe(Xx);return{startIndex:e,endIndex:t,columns:o,renderCol:r,renderItemWithCols:i,getLeft:n}},render(){const{startIndex:e,endIndex:t,columns:o,renderCol:n,renderItemWithCols:r,getLeft:i,item:a}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:o,item:a,getLeft:i});if(n!=null){const l=[];for(let s=e;s<=t;++s){const u=o[s];l.push(n({column:u,left:i(s),item:a}))}return l}return null}}),e8=Wn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Wn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Wn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),bp=xe({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=ai();e8.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Md,ssr:t}),ut(()=>{const{defaultScrollIndex:K,defaultScrollKey:H}=e;K!=null?v({index:K}):H!=null&&v({key:H})});let o=!1,n=!1;Qh(()=>{if(o=!1,!n){n=!0;return}v({top:f.value,left:a.value})}),wd(()=>{o=!0,n||(n=!0)});const r=gt(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let K=0;return e.columns.forEach(H=>{K+=H.width}),K}),i=I(()=>{const K=new Map,{keyField:H}=e;return e.items.forEach((T,z)=>{K.set(T[H],z)}),K}),{scrollLeftRef:a,listWidthRef:l}=Jk({columnsRef:Be(e,"columns"),renderColRef:Be(e,"renderCol"),renderItemWithColsRef:Be(e,"renderItemWithCols")}),s=M(null),u=M(void 0),d=new Map,c=I(()=>{const{items:K,itemSize:H,keyField:T}=e,z=new jx(K.length,H);return K.forEach((F,y)=>{const re=F[T],te=d.get(re);te!==void 0&&z.add(y,te)}),z}),h=M(0),f=M(0),p=gt(()=>Math.max(c.value.getBound(f.value-lo(e.paddingTop))-1,0)),g=I(()=>{const{value:K}=u;if(K===void 0)return[];const{items:H,itemSize:T}=e,z=p.value,F=Math.min(z+Math.ceil(K/T+1),H.length-1),y=[];for(let re=z;re<=F;++re)y.push(H[re]);return y}),v=(K,H)=>{if(typeof K=="number"){C(K,H,"auto");return}const{left:T,top:z,index:F,key:y,position:re,behavior:te,debounce:j=!0}=K;if(T!==void 0||z!==void 0)C(T,z,te);else if(F!==void 0)k(F,te,j);else if(y!==void 0){const Z=i.value.get(y);Z!==void 0&&k(Z,te,j)}else re==="bottom"?C(0,Number.MAX_SAFE_INTEGER,te):re==="top"&&C(0,0,te)};let b,x=null;function k(K,H,T){const{value:z}=c,F=z.sum(K)+lo(e.paddingTop);if(!T)s.value.scrollTo({left:0,top:F,behavior:H});else{b=K,x!==null&&window.clearTimeout(x),x=window.setTimeout(()=>{b=void 0,x=null},16);const{scrollTop:y,offsetHeight:re}=s.value;if(F>y){const te=z.get(K);F+te<=y+re||s.value.scrollTo({left:0,top:F+te-re,behavior:H})}else s.value.scrollTo({left:0,top:F,behavior:H})}}function C(K,H,T){s.value.scrollTo({left:K,top:H,behavior:T})}function _(K,H){var T,z,F;if(o||e.ignoreItemResize||N(H.target))return;const{value:y}=c,re=i.value.get(K),te=y.get(re),j=(F=(z=(T=H.borderBoxSize)===null||T===void 0?void 0:T[0])===null||z===void 0?void 0:z.blockSize)!==null&&F!==void 0?F:H.contentRect.height;if(j===te)return;j-e.itemSize===0?d.delete(K):d.set(K,j-e.itemSize);const se=j-te;if(se===0)return;y.add(re,se);const pe=s.value;if(pe!=null){if(b===void 0){const Se=y.sum(re);pe.scrollTop>Se&&pe.scrollBy(0,se)}else if(re<b)pe.scrollBy(0,se);else if(re===b){const Se=y.sum(re);j+Se>pe.scrollTop+pe.offsetHeight&&pe.scrollBy(0,se)}U()}h.value++}const R=!Qk();let w=!1;function A(K){var H;(H=e.onScroll)===null||H===void 0||H.call(e,K),(!R||!w)&&U()}function $(K){var H;if((H=e.onWheel)===null||H===void 0||H.call(e,K),R){const T=s.value;if(T!=null){if(K.deltaX===0&&(T.scrollTop===0&&K.deltaY<=0||T.scrollTop+T.offsetHeight>=T.scrollHeight&&K.deltaY>=0))return;K.preventDefault(),T.scrollTop+=K.deltaY/Kg(),T.scrollLeft+=K.deltaX/Kg(),U(),w=!0,Xl(()=>{w=!1})}}}function B(K){if(o||N(K.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(K.contentRect.height===u.value)return}else if(K.contentRect.height===u.value&&K.contentRect.width===l.value)return;u.value=K.contentRect.height,l.value=K.contentRect.width;const{onResize:H}=e;H!==void 0&&H(K)}function U(){const{value:K}=s;K!=null&&(f.value=K.scrollTop,a.value=K.scrollLeft)}function N(K){let H=K;for(;H!==null;){if(H.style.display==="none")return!0;H=H.parentElement}return!1}return{listHeight:u,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:I(()=>{const{itemResizable:K}=e,H=Lt(c.value.sum());return h.value,[e.itemsStyle,{boxSizing:"content-box",width:Lt(r.value),height:K?"":H,minHeight:K?H:"",paddingTop:Lt(e.paddingTop),paddingBottom:Lt(e.paddingBottom)}]}),visibleItemsStyle:I(()=>(h.value,{transform:`translateY(${Lt(c.value.sum(p.value))})`})),viewportItems:g,listElRef:s,itemsElRef:M(null),scrollTo:v,handleListResize:B,handleListScroll:A,handleListWheel:$,handleItemResize:_}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:n}=this;return m($n,{onResize:this.handleListResize},{default:()=>{var r,i;return m("div",bo(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?m("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[m(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:a,renderItemWithCols:l}=this;return this.viewportItems.map(s=>{const u=s[t],d=o.get(u),c=a!=null?m(Gg,{index:d,item:s}):void 0,h=l!=null?m(Gg,{index:d,item:s}):void 0,f=this.$slots.default({item:s,renderedCols:c,renderedItemWithCols:h,index:d})[0];return e?m($n,{key:u,onResize:p=>this.handleItemResize(u,p)},{default:()=>f}):(f.key=u,f)})}})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),t8=Wn(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Wn("&::-webkit-scrollbar",{width:0,height:0})]),o8=xe({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=M(null);function t(r){!(r.currentTarget.offsetWidth<r.currentTarget.scrollWidth)||r.deltaY===0||(r.currentTarget.scrollLeft+=r.deltaY+r.deltaX,r.preventDefault())}const o=ai();return t8.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Md,ssr:o}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...r){var i;(i=e.value)===null||i===void 0||i.scrollTo(...r)}})},render(){return m("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}}),ar="v-hidden",n8=Wn("[v-hidden]",{display:"none!important"}),qg=xe({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=M(null),n=M(null);function r(a){const{value:l}=o,{getCounter:s,getTail:u}=e;let d;if(s!==void 0?d=s():d=n.value,!l||!d)return;d.hasAttribute(ar)&&d.removeAttribute(ar);const{children:c}=l;if(a.showAllItemsBeforeCalculate)for(const k of c)k.hasAttribute(ar)&&k.removeAttribute(ar);const h=l.offsetWidth,f=[],p=t.tail?u==null?void 0:u():null;let g=p?p.offsetWidth:0,v=!1;const b=l.children.length-(t.tail?1:0);for(let k=0;k<b-1;++k){if(k<0)continue;const C=c[k];if(v){C.hasAttribute(ar)||C.setAttribute(ar,"");continue}else C.hasAttribute(ar)&&C.removeAttribute(ar);const _=C.offsetWidth;if(g+=_,f[k]=_,g>h){const{updateCounter:R}=e;for(let w=k;w>=0;--w){const A=b-1-w;R!==void 0?R(A):d.textContent=`${A}`;const $=d.offsetWidth;if(g-=f[w],g+$<=h||w===0){v=!0,k=w-1,p&&(k===-1?(p.style.maxWidth=`${h-$}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:B}=e;B&&B(A);break}}}}const{onUpdateOverflow:x}=e;v?x!==void 0&&x(!0):(x!==void 0&&x(!1),d.setAttribute(ar,""))}const i=ai();return n8.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Md,ssr:i}),ut(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return Rt(()=>this.sync({showAllItemsBeforeCalculate:!1})),m("div",{class:"v-overflow",ref:"selfRef"},[xs(e,"default"),e.counter?e.counter():m("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Yx(e){return e instanceof HTMLElement}function Qx(e){for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];if(Yx(o)&&(ey(o)||Qx(o)))return!0}return!1}function Jx(e){for(let t=e.childNodes.length-1;t>=0;t--){const o=e.childNodes[t];if(Yx(o)&&(ey(o)||Jx(o)))return!0}return!1}function ey(e){if(!r8(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function r8(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let al=[];const xp=xe({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=ii(),o=M(null),n=M(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return al[al.length-1]===t}function s(v){var b;v.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,v))}ut(()=>{at(()=>e.active,v=>{v?(c(),Ct("keydown",document,s)):(xt("keydown",document,s),r&&h())},{immediate:!0})}),Xt(()=>{xt("keydown",document,s),r&&h()});function u(v){if(!i&&l()){const b=d();if(b===null||b.contains(zi(v)))return;f("first")}}function d(){const v=o.value;if(v===null)return null;let b=v;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function c(){var v;if(!e.disabled){if(al.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?f("first"):(v=Bg(b))===null||v===void 0||v.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",u,!0)}}function h(){var v;if(e.disabled||(document.removeEventListener("focus",u,!0),al=al.filter(x=>x!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(v=Bg(b))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function f(v){if(l()&&e.active){const b=o.value,x=n.value;if(b!==null&&x!==null){const k=d();if(k==null||k===x){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const C=v==="first"?Qx(k):Jx(k);i=!1,C||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(v){if(i)return;const b=d();b!==null&&(v.relatedTarget!==null&&b.contains(v.relatedTarget)?f("last"):f("first"))}function g(v){i||(v.relatedTarget!==null&&v.relatedTarget===o.value?f("last"):f("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return m(ft,null,[m("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),m("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function ty(e,t){t&&(ut(()=>{const{value:o}=e;o&&Yu.registerHandler(o,t)}),Xt(()=>{const{value:o}=e;o&&Yu.unregisterHandler(o)}))}let ua=0,Zg="",Xg="",Yg="",Qg="";const oh=M("0px");function oy(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=Zg,t.style.overflow=Xg,t.style.overflowX=Yg,t.style.overflowY=Qg,oh.value="0px"};ut(()=>{o=at(e,i=>{if(i){if(!ua){const a=window.innerWidth-t.offsetWidth;a>0&&(Zg=t.style.marginRight,t.style.marginRight=`${a}px`,oh.value=`${a}px`),Xg=t.style.overflow,Yg=t.style.overflowX,Qg=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,ua++}else ua--,ua||r(),n=!1},{immediate:!0})}),Xt(()=>{o==null||o(),n&&(ua--,ua||r(),n=!1)})}const yp=M(!1);function Jg(){yp.value=!0}function e0(){yp.value=!1}let ll=0;function ny(){return wn&&(ri(()=>{ll||(window.addEventListener("compositionstart",Jg),window.addEventListener("compositionend",e0)),ll++}),Xt(()=>{ll<=1?(window.removeEventListener("compositionstart",Jg),window.removeEventListener("compositionend",e0),ll=0):ll--})),yp}function i8(e){const t={isDeactivated:!1};let o=!1;return Qh(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),wd(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function ry(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}const t0="n-form-item";function Dn(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=Oe(t0,null);Je(t0,null);const i=I(o?()=>o(r):()=>{const{size:s}=e;if(s)return s;if(r){const{mergedSize:u}=r;if(u.value!==void 0)return u.value}return t}),a=I(n?()=>n(r):()=>{const{disabled:s}=e;return s!==void 0?s:r?r.disabled.value:!1}),l=I(()=>{const{status:s}=e;return s||(r==null?void 0:r.mergedValidationStatus.value)});return Xt(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var iy=typeof global=="object"&&global&&global.Object===Object&&global,a8=typeof self=="object"&&self&&self.Object===Object&&self,Tn=iy||a8||Function("return this")(),yn=Tn.Symbol,ay=Object.prototype,l8=ay.hasOwnProperty,s8=ay.toString,sl=yn?yn.toStringTag:void 0;function u8(e){var t=l8.call(e,sl),o=e[sl];try{e[sl]=void 0;var n=!0}catch{}var r=s8.call(e);return n&&(t?e[sl]=o:delete e[sl]),r}var d8=Object.prototype,c8=d8.toString;function f8(e){return c8.call(e)}var h8="[object Null]",p8="[object Undefined]",o0=yn?yn.toStringTag:void 0;function Gi(e){return e==null?e===void 0?p8:h8:o0&&o0 in Object(e)?u8(e):f8(e)}function Yn(e){return e!=null&&typeof e=="object"}var m8="[object Symbol]";function Ad(e){return typeof e=="symbol"||Yn(e)&&Gi(e)==m8}function Cp(e,t){for(var o=-1,n=e==null?0:e.length,r=Array(n);++o<n;)r[o]=t(e[o],o,e);return r}var Oo=Array.isArray,g8=1/0,n0=yn?yn.prototype:void 0,r0=n0?n0.toString:void 0;function ly(e){if(typeof e=="string")return e;if(Oo(e))return Cp(e,ly)+"";if(Ad(e))return r0?r0.call(e):"";var t=e+"";return t=="0"&&1/e==-g8?"-0":t}var v8=/\s/;function b8(e){for(var t=e.length;t--&&v8.test(e.charAt(t)););return t}var x8=/^\s+/;function y8(e){return e&&e.slice(0,b8(e)+1).replace(x8,"")}function an(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var i0=NaN,C8=/^[-+]0x[0-9a-f]+$/i,w8=/^0b[01]+$/i,S8=/^0o[0-7]+$/i,E8=parseInt;function a0(e){if(typeof e=="number")return e;if(Ad(e))return i0;if(an(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=an(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=y8(e);var o=w8.test(e);return o||S8.test(e)?E8(e.slice(2),o?2:8):C8.test(e)?i0:+e}function wp(e){return e}var k8="[object AsyncFunction]",_8="[object Function]",F8="[object GeneratorFunction]",R8="[object Proxy]";function Sp(e){if(!an(e))return!1;var t=Gi(e);return t==_8||t==F8||t==k8||t==R8}var Oc=Tn["__core-js_shared__"],l0=function(){var e=/[^.]+$/.exec(Oc&&Oc.keys&&Oc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $8(e){return!!l0&&l0 in e}var P8=Function.prototype,M8=P8.toString;function qi(e){if(e!=null){try{return M8.call(e)}catch{}try{return e+""}catch{}}return""}var A8=/[\\^$.*+?()[\]{}|]/g,B8=/^\[object .+?Constructor\]$/,D8=Function.prototype,T8=Object.prototype,I8=D8.toString,z8=T8.hasOwnProperty,O8=RegExp("^"+I8.call(z8).replace(A8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L8(e){if(!an(e)||$8(e))return!1;var t=Sp(e)?O8:B8;return t.test(qi(e))}function H8(e,t){return e==null?void 0:e[t]}function Zi(e,t){var o=H8(e,t);return L8(o)?o:void 0}var nh=Zi(Tn,"WeakMap"),s0=Object.create,N8=function(){function e(){}return function(t){if(!an(t))return{};if(s0)return s0(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();function V8(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function sy(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var j8=800,W8=16,U8=Date.now;function K8(e){var t=0,o=0;return function(){var n=U8(),r=W8-(n-o);if(o=n,r>0){if(++t>=j8)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function G8(e){return function(){return e}}var Qu=function(){try{var e=Zi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),q8=Qu?function(e,t){return Qu(e,"toString",{configurable:!0,enumerable:!1,value:G8(t),writable:!0})}:wp,uy=K8(q8);function Z8(e,t){for(var o=-1,n=e==null?0:e.length;++o<n&&t(e[o],o,e)!==!1;);return e}var X8=9007199254740991,Y8=/^(?:0|[1-9]\d*)$/;function Ep(e,t){var o=typeof e;return t=t??X8,!!t&&(o=="number"||o!="symbol"&&Y8.test(e))&&e>-1&&e%1==0&&e<t}function Rs(e,t,o){t=="__proto__"&&Qu?Qu(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function $s(e,t){return e===t||e!==e&&t!==t}var Q8=Object.prototype,J8=Q8.hasOwnProperty;function dy(e,t,o){var n=e[t];(!(J8.call(e,t)&&$s(n,o))||o===void 0&&!(t in e))&&Rs(e,t,o)}function Va(e,t,o,n){var r=!o;o||(o={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=void 0;s===void 0&&(s=e[l]),r?Rs(o,l,s):dy(o,l,s)}return o}var u0=Math.max;function cy(e,t,o){return t=u0(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=u0(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=o(a),V8(e,this,l)}}function e_(e,t){return uy(cy(e,t,wp),e+"")}var t_=9007199254740991;function kp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t_}function ja(e){return e!=null&&kp(e.length)&&!Sp(e)}function o_(e,t,o){if(!an(o))return!1;var n=typeof t;return(n=="number"?ja(o)&&Ep(t,o.length):n=="string"&&t in o)?$s(o[t],e):!1}function n_(e){return e_(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,a=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&o_(o[0],o[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var l=o[n];l&&e(t,l,n,i)}return t})}var r_=Object.prototype;function _p(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||r_;return e===o}function i_(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var a_="[object Arguments]";function d0(e){return Yn(e)&&Gi(e)==a_}var fy=Object.prototype,l_=fy.hasOwnProperty,s_=fy.propertyIsEnumerable,ts=d0(function(){return arguments}())?d0:function(e){return Yn(e)&&l_.call(e,"callee")&&!s_.call(e,"callee")};function u_(){return!1}var hy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,c0=hy&&typeof module=="object"&&module&&!module.nodeType&&module,d_=c0&&c0.exports===hy,f0=d_?Tn.Buffer:void 0,c_=f0?f0.isBuffer:void 0,os=c_||u_,f_="[object Arguments]",h_="[object Array]",p_="[object Boolean]",m_="[object Date]",g_="[object Error]",v_="[object Function]",b_="[object Map]",x_="[object Number]",y_="[object Object]",C_="[object RegExp]",w_="[object Set]",S_="[object String]",E_="[object WeakMap]",k_="[object ArrayBuffer]",__="[object DataView]",F_="[object Float32Array]",R_="[object Float64Array]",$_="[object Int8Array]",P_="[object Int16Array]",M_="[object Int32Array]",A_="[object Uint8Array]",B_="[object Uint8ClampedArray]",D_="[object Uint16Array]",T_="[object Uint32Array]",qt={};qt[F_]=qt[R_]=qt[$_]=qt[P_]=qt[M_]=qt[A_]=qt[B_]=qt[D_]=qt[T_]=!0;qt[f_]=qt[h_]=qt[k_]=qt[p_]=qt[__]=qt[m_]=qt[g_]=qt[v_]=qt[b_]=qt[x_]=qt[y_]=qt[C_]=qt[w_]=qt[S_]=qt[E_]=!1;function I_(e){return Yn(e)&&kp(e.length)&&!!qt[Gi(e)]}function Fp(e){return function(t){return e(t)}}var py=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Il=py&&typeof module=="object"&&module&&!module.nodeType&&module,z_=Il&&Il.exports===py,Lc=z_&&iy.process,Aa=function(){try{var e=Il&&Il.require&&Il.require("util").types;return e||Lc&&Lc.binding&&Lc.binding("util")}catch{}}(),h0=Aa&&Aa.isTypedArray,Rp=h0?Fp(h0):I_,O_=Object.prototype,L_=O_.hasOwnProperty;function my(e,t){var o=Oo(e),n=!o&&ts(e),r=!o&&!n&&os(e),i=!o&&!n&&!r&&Rp(e),a=o||n||r||i,l=a?i_(e.length,String):[],s=l.length;for(var u in e)(t||L_.call(e,u))&&!(a&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ep(u,s)))&&l.push(u);return l}function gy(e,t){return function(o){return e(t(o))}}var H_=gy(Object.keys,Object),N_=Object.prototype,V_=N_.hasOwnProperty;function j_(e){if(!_p(e))return H_(e);var t=[];for(var o in Object(e))V_.call(e,o)&&o!="constructor"&&t.push(o);return t}function Ps(e){return ja(e)?my(e):j_(e)}function W_(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var U_=Object.prototype,K_=U_.hasOwnProperty;function G_(e){if(!an(e))return W_(e);var t=_p(e),o=[];for(var n in e)n=="constructor"&&(t||!K_.call(e,n))||o.push(n);return o}function Ms(e){return ja(e)?my(e,!0):G_(e)}var q_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z_=/^\w*$/;function $p(e,t){if(Oo(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ad(e)?!0:Z_.test(e)||!q_.test(e)||t!=null&&e in Object(t)}var ns=Zi(Object,"create");function X_(){this.__data__=ns?ns(null):{},this.size=0}function Y_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Q_="__lodash_hash_undefined__",J_=Object.prototype,e7=J_.hasOwnProperty;function t7(e){var t=this.__data__;if(ns){var o=t[e];return o===Q_?void 0:o}return e7.call(t,e)?t[e]:void 0}var o7=Object.prototype,n7=o7.hasOwnProperty;function r7(e){var t=this.__data__;return ns?t[e]!==void 0:n7.call(t,e)}var i7="__lodash_hash_undefined__";function a7(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=ns&&t===void 0?i7:t,this}function Li(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Li.prototype.clear=X_;Li.prototype.delete=Y_;Li.prototype.get=t7;Li.prototype.has=r7;Li.prototype.set=a7;function l7(){this.__data__=[],this.size=0}function Bd(e,t){for(var o=e.length;o--;)if($s(e[o][0],t))return o;return-1}var s7=Array.prototype,u7=s7.splice;function d7(e){var t=this.__data__,o=Bd(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():u7.call(t,o,1),--this.size,!0}function c7(e){var t=this.__data__,o=Bd(t,e);return o<0?void 0:t[o][1]}function f7(e){return Bd(this.__data__,e)>-1}function h7(e,t){var o=this.__data__,n=Bd(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}function wr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=l7;wr.prototype.delete=d7;wr.prototype.get=c7;wr.prototype.has=f7;wr.prototype.set=h7;var rs=Zi(Tn,"Map");function p7(){this.size=0,this.__data__={hash:new Li,map:new(rs||wr),string:new Li}}function m7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Dd(e,t){var o=e.__data__;return m7(t)?o[typeof t=="string"?"string":"hash"]:o.map}function g7(e){var t=Dd(this,e).delete(e);return this.size-=t?1:0,t}function v7(e){return Dd(this,e).get(e)}function b7(e){return Dd(this,e).has(e)}function x7(e,t){var o=Dd(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}function Sr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Sr.prototype.clear=p7;Sr.prototype.delete=g7;Sr.prototype.get=v7;Sr.prototype.has=b7;Sr.prototype.set=x7;var y7="Expected a function";function Pp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(y7);var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return o.cache=i.set(r,a)||i,a};return o.cache=new(Pp.Cache||Sr),o}Pp.Cache=Sr;var C7=500;function w7(e){var t=Pp(e,function(n){return o.size===C7&&o.clear(),n}),o=t.cache;return t}var S7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E7=/\\(\\)?/g,k7=w7(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(S7,function(o,n,r,i){t.push(r?i.replace(E7,"$1"):n||o)}),t});function As(e){return e==null?"":ly(e)}function Td(e,t){return Oo(e)?e:$p(e,t)?[e]:k7(As(e))}var _7=1/0;function Bs(e){if(typeof e=="string"||Ad(e))return e;var t=e+"";return t=="0"&&1/e==-_7?"-0":t}function Mp(e,t){t=Td(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[Bs(t[o++])];return o&&o==n?e:void 0}function rh(e,t,o){var n=e==null?void 0:Mp(e,t);return n===void 0?o:n}function Ap(e,t){for(var o=-1,n=t.length,r=e.length;++o<n;)e[r+o]=t[o];return e}var p0=yn?yn.isConcatSpreadable:void 0;function F7(e){return Oo(e)||ts(e)||!!(p0&&e&&e[p0])}function R7(e,t,o,n,r){var i=-1,a=e.length;for(o||(o=F7),r||(r=[]);++i<a;){var l=e[i];o(l)?Ap(r,l):r[r.length]=l}return r}function $7(e){var t=e==null?0:e.length;return t?R7(e):[]}function P7(e){return uy(cy(e,void 0,$7),e+"")}var Bp=gy(Object.getPrototypeOf,Object),M7="[object Object]",A7=Function.prototype,B7=Object.prototype,vy=A7.toString,D7=B7.hasOwnProperty,T7=vy.call(Object);function by(e){if(!Yn(e)||Gi(e)!=M7)return!1;var t=Bp(e);if(t===null)return!0;var o=D7.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&vy.call(o)==T7}function xy(e,t,o){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),o=o>r?r:o,o<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(r);++n<r;)i[n]=e[n+t];return i}function I7(e,t,o){var n=e.length;return o=o===void 0?n:o,!t&&o>=n?e:xy(e,t,o)}var z7="\\ud800-\\udfff",O7="\\u0300-\\u036f",L7="\\ufe20-\\ufe2f",H7="\\u20d0-\\u20ff",N7=O7+L7+H7,V7="\\ufe0e\\ufe0f",j7="\\u200d",W7=RegExp("["+j7+z7+N7+V7+"]");function yy(e){return W7.test(e)}function U7(e){return e.split("")}var Cy="\\ud800-\\udfff",K7="\\u0300-\\u036f",G7="\\ufe20-\\ufe2f",q7="\\u20d0-\\u20ff",Z7=K7+G7+q7,X7="\\ufe0e\\ufe0f",Y7="["+Cy+"]",ih="["+Z7+"]",ah="\\ud83c[\\udffb-\\udfff]",Q7="(?:"+ih+"|"+ah+")",wy="[^"+Cy+"]",Sy="(?:\\ud83c[\\udde6-\\uddff]){2}",Ey="[\\ud800-\\udbff][\\udc00-\\udfff]",J7="\\u200d",ky=Q7+"?",_y="["+X7+"]?",eF="(?:"+J7+"(?:"+[wy,Sy,Ey].join("|")+")"+_y+ky+")*",tF=_y+ky+eF,oF="(?:"+[wy+ih+"?",ih,Sy,Ey,Y7].join("|")+")",nF=RegExp(ah+"(?="+ah+")|"+oF+tF,"g");function rF(e){return e.match(nF)||[]}function iF(e){return yy(e)?rF(e):U7(e)}function aF(e){return function(t){t=As(t);var o=yy(t)?iF(t):void 0,n=o?o[0]:t.charAt(0),r=o?I7(o,1).join(""):t.slice(1);return n[e]()+r}}var lF=aF("toUpperCase");function sF(e,t,o,n){for(var r=-1,i=e==null?0:e.length;++r<i;)o=t(o,e[r],r,e);return o}function uF(e){return function(t){return e==null?void 0:e[t]}}var dF={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},cF=uF(dF),fF=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hF="\\u0300-\\u036f",pF="\\ufe20-\\ufe2f",mF="\\u20d0-\\u20ff",gF=hF+pF+mF,vF="["+gF+"]",bF=RegExp(vF,"g");function xF(e){return e=As(e),e&&e.replace(fF,cF).replace(bF,"")}var yF=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function CF(e){return e.match(yF)||[]}var wF=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function SF(e){return wF.test(e)}var Fy="\\ud800-\\udfff",EF="\\u0300-\\u036f",kF="\\ufe20-\\ufe2f",_F="\\u20d0-\\u20ff",FF=EF+kF+_F,Ry="\\u2700-\\u27bf",$y="a-z\\xdf-\\xf6\\xf8-\\xff",RF="\\xac\\xb1\\xd7\\xf7",$F="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",PF="\\u2000-\\u206f",MF=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Py="A-Z\\xc0-\\xd6\\xd8-\\xde",AF="\\ufe0e\\ufe0f",My=RF+$F+PF+MF,Ay="['’]",m0="["+My+"]",BF="["+FF+"]",By="\\d+",DF="["+Ry+"]",Dy="["+$y+"]",Ty="[^"+Fy+My+By+Ry+$y+Py+"]",TF="\\ud83c[\\udffb-\\udfff]",IF="(?:"+BF+"|"+TF+")",zF="[^"+Fy+"]",Iy="(?:\\ud83c[\\udde6-\\uddff]){2}",zy="[\\ud800-\\udbff][\\udc00-\\udfff]",ga="["+Py+"]",OF="\\u200d",g0="(?:"+Dy+"|"+Ty+")",LF="(?:"+ga+"|"+Ty+")",v0="(?:"+Ay+"(?:d|ll|m|re|s|t|ve))?",b0="(?:"+Ay+"(?:D|LL|M|RE|S|T|VE))?",Oy=IF+"?",Ly="["+AF+"]?",HF="(?:"+OF+"(?:"+[zF,Iy,zy].join("|")+")"+Ly+Oy+")*",NF="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",VF="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jF=Ly+Oy+HF,WF="(?:"+[DF,Iy,zy].join("|")+")"+jF,UF=RegExp([ga+"?"+Dy+"+"+v0+"(?="+[m0,ga,"$"].join("|")+")",LF+"+"+b0+"(?="+[m0,ga+g0,"$"].join("|")+")",ga+"?"+g0+"+"+v0,ga+"+"+b0,VF,NF,By,WF].join("|"),"g");function KF(e){return e.match(UF)||[]}function GF(e,t,o){return e=As(e),t=t,t===void 0?SF(e)?KF(e):CF(e):e.match(t)||[]}var qF="['’]",ZF=RegExp(qF,"g");function XF(e){return function(t){return sF(GF(xF(t).replace(ZF,"")),e,"")}}function YF(){this.__data__=new wr,this.size=0}function QF(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function JF(e){return this.__data__.get(e)}function eR(e){return this.__data__.has(e)}var tR=200;function oR(e,t){var o=this.__data__;if(o instanceof wr){var n=o.__data__;if(!rs||n.length<tR-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Sr(n)}return o.set(e,t),this.size=o.size,this}function Pn(e){var t=this.__data__=new wr(e);this.size=t.size}Pn.prototype.clear=YF;Pn.prototype.delete=QF;Pn.prototype.get=JF;Pn.prototype.has=eR;Pn.prototype.set=oR;function nR(e,t){return e&&Va(t,Ps(t),e)}function rR(e,t){return e&&Va(t,Ms(t),e)}var Hy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,x0=Hy&&typeof module=="object"&&module&&!module.nodeType&&module,iR=x0&&x0.exports===Hy,y0=iR?Tn.Buffer:void 0,C0=y0?y0.allocUnsafe:void 0;function Ny(e,t){if(t)return e.slice();var o=e.length,n=C0?C0(o):new e.constructor(o);return e.copy(n),n}function aR(e,t){for(var o=-1,n=e==null?0:e.length,r=0,i=[];++o<n;){var a=e[o];t(a,o,e)&&(i[r++]=a)}return i}function Vy(){return[]}var lR=Object.prototype,sR=lR.propertyIsEnumerable,w0=Object.getOwnPropertySymbols,Dp=w0?function(e){return e==null?[]:(e=Object(e),aR(w0(e),function(t){return sR.call(e,t)}))}:Vy;function uR(e,t){return Va(e,Dp(e),t)}var dR=Object.getOwnPropertySymbols,jy=dR?function(e){for(var t=[];e;)Ap(t,Dp(e)),e=Bp(e);return t}:Vy;function cR(e,t){return Va(e,jy(e),t)}function Wy(e,t,o){var n=t(e);return Oo(e)?n:Ap(n,o(e))}function lh(e){return Wy(e,Ps,Dp)}function Uy(e){return Wy(e,Ms,jy)}var sh=Zi(Tn,"DataView"),uh=Zi(Tn,"Promise"),dh=Zi(Tn,"Set"),S0="[object Map]",fR="[object Object]",E0="[object Promise]",k0="[object Set]",_0="[object WeakMap]",F0="[object DataView]",hR=qi(sh),pR=qi(rs),mR=qi(uh),gR=qi(dh),vR=qi(nh),Fn=Gi;(sh&&Fn(new sh(new ArrayBuffer(1)))!=F0||rs&&Fn(new rs)!=S0||uh&&Fn(uh.resolve())!=E0||dh&&Fn(new dh)!=k0||nh&&Fn(new nh)!=_0)&&(Fn=function(e){var t=Gi(e),o=t==fR?e.constructor:void 0,n=o?qi(o):"";if(n)switch(n){case hR:return F0;case pR:return S0;case mR:return E0;case gR:return k0;case vR:return _0}return t});var bR=Object.prototype,xR=bR.hasOwnProperty;function yR(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&xR.call(e,"index")&&(o.index=e.index,o.input=e.input),o}var Ju=Tn.Uint8Array;function Tp(e){var t=new e.constructor(e.byteLength);return new Ju(t).set(new Ju(e)),t}function CR(e,t){var o=t?Tp(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var wR=/\w*$/;function SR(e){var t=new e.constructor(e.source,wR.exec(e));return t.lastIndex=e.lastIndex,t}var R0=yn?yn.prototype:void 0,$0=R0?R0.valueOf:void 0;function ER(e){return $0?Object($0.call(e)):{}}function Ky(e,t){var o=t?Tp(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var kR="[object Boolean]",_R="[object Date]",FR="[object Map]",RR="[object Number]",$R="[object RegExp]",PR="[object Set]",MR="[object String]",AR="[object Symbol]",BR="[object ArrayBuffer]",DR="[object DataView]",TR="[object Float32Array]",IR="[object Float64Array]",zR="[object Int8Array]",OR="[object Int16Array]",LR="[object Int32Array]",HR="[object Uint8Array]",NR="[object Uint8ClampedArray]",VR="[object Uint16Array]",jR="[object Uint32Array]";function WR(e,t,o){var n=e.constructor;switch(t){case BR:return Tp(e);case kR:case _R:return new n(+e);case DR:return CR(e,o);case TR:case IR:case zR:case OR:case LR:case HR:case NR:case VR:case jR:return Ky(e,o);case FR:return new n;case RR:case MR:return new n(e);case $R:return SR(e);case PR:return new n;case AR:return ER(e)}}function Gy(e){return typeof e.constructor=="function"&&!_p(e)?N8(Bp(e)):{}}var UR="[object Map]";function KR(e){return Yn(e)&&Fn(e)==UR}var P0=Aa&&Aa.isMap,GR=P0?Fp(P0):KR,qR="[object Set]";function ZR(e){return Yn(e)&&Fn(e)==qR}var M0=Aa&&Aa.isSet,XR=M0?Fp(M0):ZR,YR=1,QR=2,JR=4,qy="[object Arguments]",e$="[object Array]",t$="[object Boolean]",o$="[object Date]",n$="[object Error]",Zy="[object Function]",r$="[object GeneratorFunction]",i$="[object Map]",a$="[object Number]",Xy="[object Object]",l$="[object RegExp]",s$="[object Set]",u$="[object String]",d$="[object Symbol]",c$="[object WeakMap]",f$="[object ArrayBuffer]",h$="[object DataView]",p$="[object Float32Array]",m$="[object Float64Array]",g$="[object Int8Array]",v$="[object Int16Array]",b$="[object Int32Array]",x$="[object Uint8Array]",y$="[object Uint8ClampedArray]",C$="[object Uint16Array]",w$="[object Uint32Array]",Vt={};Vt[qy]=Vt[e$]=Vt[f$]=Vt[h$]=Vt[t$]=Vt[o$]=Vt[p$]=Vt[m$]=Vt[g$]=Vt[v$]=Vt[b$]=Vt[i$]=Vt[a$]=Vt[Xy]=Vt[l$]=Vt[s$]=Vt[u$]=Vt[d$]=Vt[x$]=Vt[y$]=Vt[C$]=Vt[w$]=!0;Vt[n$]=Vt[Zy]=Vt[c$]=!1;function zl(e,t,o,n,r,i){var a,l=t&YR,s=t&QR,u=t&JR;if(o&&(a=r?o(e,n,r,i):o(e)),a!==void 0)return a;if(!an(e))return e;var d=Oo(e);if(d){if(a=yR(e),!l)return sy(e,a)}else{var c=Fn(e),h=c==Zy||c==r$;if(os(e))return Ny(e,l);if(c==Xy||c==qy||h&&!r){if(a=s||h?{}:Gy(e),!l)return s?cR(e,rR(a,e)):uR(e,nR(a,e))}else{if(!Vt[c])return r?e:{};a=WR(e,c,l)}}i||(i=new Pn);var f=i.get(e);if(f)return f;i.set(e,a),XR(e)?e.forEach(function(v){a.add(zl(v,t,o,v,e,i))}):GR(e)&&e.forEach(function(v,b){a.set(b,zl(v,t,o,b,e,i))});var p=u?s?Uy:lh:s?Ms:Ps,g=d?void 0:p(e);return Z8(g||e,function(v,b){g&&(b=v,v=e[b]),dy(a,b,zl(v,t,o,b,e,i))}),a}var S$=1,E$=4;function ya(e){return zl(e,S$|E$)}var k$="__lodash_hash_undefined__";function _$(e){return this.__data__.set(e,k$),this}function F$(e){return this.__data__.has(e)}function ed(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Sr;++t<o;)this.add(e[t])}ed.prototype.add=ed.prototype.push=_$;ed.prototype.has=F$;function R$(e,t){for(var o=-1,n=e==null?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}function $$(e,t){return e.has(t)}var P$=1,M$=2;function Yy(e,t,o,n,r,i){var a=o&P$,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var c=-1,h=!0,f=o&M$?new ed:void 0;for(i.set(e,t),i.set(t,e);++c<l;){var p=e[c],g=t[c];if(n)var v=a?n(g,p,c,t,e,i):n(p,g,c,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(f){if(!R$(t,function(b,x){if(!$$(f,x)&&(p===b||r(p,b,o,n,i)))return f.push(x)})){h=!1;break}}else if(!(p===g||r(p,g,o,n,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function A$(e){var t=-1,o=Array(e.size);return e.forEach(function(n,r){o[++t]=[r,n]}),o}function B$(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var D$=1,T$=2,I$="[object Boolean]",z$="[object Date]",O$="[object Error]",L$="[object Map]",H$="[object Number]",N$="[object RegExp]",V$="[object Set]",j$="[object String]",W$="[object Symbol]",U$="[object ArrayBuffer]",K$="[object DataView]",A0=yn?yn.prototype:void 0,Hc=A0?A0.valueOf:void 0;function G$(e,t,o,n,r,i,a){switch(o){case K$:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case U$:return!(e.byteLength!=t.byteLength||!i(new Ju(e),new Ju(t)));case I$:case z$:case H$:return $s(+e,+t);case O$:return e.name==t.name&&e.message==t.message;case N$:case j$:return e==t+"";case L$:var l=A$;case V$:var s=n&D$;if(l||(l=B$),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;n|=T$,a.set(e,t);var d=Yy(l(e),l(t),n,r,i,a);return a.delete(e),d;case W$:if(Hc)return Hc.call(e)==Hc.call(t)}return!1}var q$=1,Z$=Object.prototype,X$=Z$.hasOwnProperty;function Y$(e,t,o,n,r,i){var a=o&q$,l=lh(e),s=l.length,u=lh(t),d=u.length;if(s!=d&&!a)return!1;for(var c=s;c--;){var h=l[c];if(!(a?h in t:X$.call(t,h)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=a;++c<s;){h=l[c];var b=e[h],x=t[h];if(n)var k=a?n(x,b,h,t,e,i):n(b,x,h,e,t,i);if(!(k===void 0?b===x||r(b,x,o,n,i):k)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var C=e.constructor,_=t.constructor;C!=_&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return i.delete(e),i.delete(t),g}var Q$=1,B0="[object Arguments]",D0="[object Array]",uu="[object Object]",J$=Object.prototype,T0=J$.hasOwnProperty;function eP(e,t,o,n,r,i){var a=Oo(e),l=Oo(t),s=a?D0:Fn(e),u=l?D0:Fn(t);s=s==B0?uu:s,u=u==B0?uu:u;var d=s==uu,c=u==uu,h=s==u;if(h&&os(e)){if(!os(t))return!1;a=!0,d=!1}if(h&&!d)return i||(i=new Pn),a||Rp(e)?Yy(e,t,o,n,r,i):G$(e,t,s,o,n,r,i);if(!(o&Q$)){var f=d&&T0.call(e,"__wrapped__"),p=c&&T0.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,v=p?t.value():t;return i||(i=new Pn),r(g,v,o,n,i)}}return h?(i||(i=new Pn),Y$(e,t,o,n,r,i)):!1}function Id(e,t,o,n,r){return e===t?!0:e==null||t==null||!Yn(e)&&!Yn(t)?e!==e&&t!==t:eP(e,t,o,n,Id,r)}var tP=1,oP=2;function nP(e,t,o,n){var r=o.length,i=r;if(e==null)return!i;for(e=Object(e);r--;){var a=o[r];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){a=o[r];var l=a[0],s=e[l],u=a[1];if(a[2]){if(s===void 0&&!(l in e))return!1}else{var d=new Pn,c;if(!(c===void 0?Id(u,s,tP|oP,n,d):c))return!1}}return!0}function Qy(e){return e===e&&!an(e)}function rP(e){for(var t=Ps(e),o=t.length;o--;){var n=t[o],r=e[n];t[o]=[n,r,Qy(r)]}return t}function Jy(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function iP(e){var t=rP(e);return t.length==1&&t[0][2]?Jy(t[0][0],t[0][1]):function(o){return o===e||nP(o,e,t)}}function aP(e,t){return e!=null&&t in Object(e)}function lP(e,t,o){t=Td(t,e);for(var n=-1,r=t.length,i=!1;++n<r;){var a=Bs(t[n]);if(!(i=e!=null&&o(e,a)))break;e=e[a]}return i||++n!=r?i:(r=e==null?0:e.length,!!r&&kp(r)&&Ep(a,r)&&(Oo(e)||ts(e)))}function sP(e,t){return e!=null&&lP(e,t,aP)}var uP=1,dP=2;function cP(e,t){return $p(e)&&Qy(t)?Jy(Bs(e),t):function(o){var n=rh(o,e);return n===void 0&&n===t?sP(o,e):Id(t,n,uP|dP)}}function fP(e){return function(t){return t==null?void 0:t[e]}}function hP(e){return function(t){return Mp(t,e)}}function pP(e){return $p(e)?fP(Bs(e)):hP(e)}function Ip(e){return typeof e=="function"?e:e==null?wp:typeof e=="object"?Oo(e)?cP(e[0],e[1]):iP(e):pP(e)}function mP(e,t,o,n){for(var r=-1,i=e==null?0:e.length;++r<i;){var a=e[r];t(n,a,o(a),e)}return n}function gP(e){return function(t,o,n){for(var r=-1,i=Object(t),a=n(t),l=a.length;l--;){var s=a[++r];if(o(i[s],s,i)===!1)break}return t}}var eC=gP();function tC(e,t){return e&&eC(e,t,Ps)}function vP(e,t){return function(o,n){if(o==null)return o;if(!ja(o))return e(o,n);for(var r=o.length,i=-1,a=Object(o);++i<r&&n(a[i],i,a)!==!1;);return o}}var oC=vP(tC);function bP(e,t,o,n){return oC(e,function(r,i,a){t(n,r,o(r),a)}),n}function xP(e,t){return function(o,n){var r=Oo(o)?mP:bP,i={};return r(o,e,Ip(n),i)}}var Nc=function(){return Tn.Date.now()},yP="Expected a function",CP=Math.max,wP=Math.min;function nC(e,t,o){var n,r,i,a,l,s,u=0,d=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(yP);t=a0(t)||0,an(o)&&(d=!!o.leading,c="maxWait"in o,i=c?CP(a0(o.maxWait)||0,t):i,h="trailing"in o?!!o.trailing:h);function f(R){var w=n,A=r;return n=r=void 0,u=R,a=e.apply(A,w),a}function p(R){return u=R,l=setTimeout(b,t),d?f(R):a}function g(R){var w=R-s,A=R-u,$=t-w;return c?wP($,i-A):$}function v(R){var w=R-s,A=R-u;return s===void 0||w>=t||w<0||c&&A>=i}function b(){var R=Nc();if(v(R))return x(R);l=setTimeout(b,g(R))}function x(R){return l=void 0,h&&n?f(R):(n=r=void 0,a)}function k(){l!==void 0&&clearTimeout(l),u=0,n=s=r=l=void 0}function C(){return l===void 0?a:x(Nc())}function _(){var R=Nc(),w=v(R);if(n=arguments,r=this,s=R,w){if(l===void 0)return p(s);if(c)return clearTimeout(l),l=setTimeout(b,t),f(s)}return l===void 0&&(l=setTimeout(b,t)),a}return _.cancel=k,_.flush=C,_}function ch(e,t,o){(o!==void 0&&!$s(e[t],o)||o===void 0&&!(t in e))&&Rs(e,t,o)}function SP(e){return Yn(e)&&ja(e)}function fh(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function EP(e){return Va(e,Ms(e))}function kP(e,t,o,n,r,i,a){var l=fh(e,o),s=fh(t,o),u=a.get(s);if(u){ch(e,o,u);return}var d=i?i(l,s,o+"",e,t,a):void 0,c=d===void 0;if(c){var h=Oo(s),f=!h&&os(s),p=!h&&!f&&Rp(s);d=s,h||f||p?Oo(l)?d=l:SP(l)?d=sy(l):f?(c=!1,d=Ny(s,!0)):p?(c=!1,d=Ky(s,!0)):d=[]:by(s)||ts(s)?(d=l,ts(l)?d=EP(l):(!an(l)||Sp(l))&&(d=Gy(s))):c=!1}c&&(a.set(s,d),r(d,s,n,i,a),a.delete(s)),ch(e,o,d)}function rC(e,t,o,n,r){e!==t&&eC(t,function(i,a){if(r||(r=new Pn),an(i))kP(e,t,a,o,rC,n,r);else{var l=n?n(fh(e,a),i,a+"",e,t,r):void 0;l===void 0&&(l=i),ch(e,a,l)}},Ms)}function _P(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function FP(e,t){var o=-1,n=ja(e)?Array(e.length):[];return oC(e,function(r,i,a){n[++o]=t(r,i,a)}),n}function RP(e,t){var o=Oo(e)?Cp:FP;return o(e,Ip(t))}function $P(e,t){return t.length<2?e:Mp(e,xy(t,0,-1))}function da(e,t){return Id(e,t)}var PP=XF(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),MP=xP(function(e,t,o){Rs(e,o,t)});function AP(e,t){var o={};return t=Ip(t),tC(e,function(n,r,i){Rs(o,r,t(n,r,i))}),o}var wi=n_(function(e,t,o){rC(e,t,o)});function BP(e,t){return t=Td(t,e),e=$P(e,t),e==null||delete e[Bs(_P(t))]}function DP(e){return by(e)?void 0:e}var TP=1,IP=2,zP=4,OP=P7(function(e,t){var o={};if(e==null)return o;var n=!1;t=Cp(t,function(i){return i=Td(i,e),n||(n=i.length>1),i}),Va(e,Uy(e),o),n&&(o=zl(o,TP|IP|zP,DP));for(var r=t.length;r--;)BP(o,t[r]);return o}),LP="Expected a function";function Du(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(LP);return an(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),nC(e,t,{leading:n,maxWait:t,trailing:r})}function I0(e){return As(e).toLowerCase()}const sn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:HP,fontFamily:NP,lineHeight:VP}=sn,iC=V("body",` - margin: 0; - font-size: ${HP}; - font-family: ${NP}; - line-height: ${VP}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[V("input",` - font-family: inherit; - font-size: inherit; - `)]),ln="n-config-provider",Ba="naive-ui-style";function Ie(e,t,o,n,r,i){const a=ai(),l=Oe(ln,null);if(o){const u=()=>{const d=i==null?void 0:i.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Ba,ssr:a,parent:l==null?void 0:l.styleMountTarget}),l!=null&&l.preflightStyleDisabled||iC.mount({id:"n-global",head:!0,anchorMetaName:Ba,ssr:a,parent:l==null?void 0:l.styleMountTarget})};a?u():ri(u)}return I(()=>{var u;const{theme:{common:d,self:c,peers:h={}}={},themeOverrides:f={},builtinThemeOverrides:p={}}=r,{common:g,peers:v}=f,{common:b=void 0,[e]:{common:x=void 0,self:k=void 0,peers:C={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:_=void 0,[e]:R={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:w,peers:A={}}=R,$=wi({},d||x||b||n.common,_,w,g),B=wi((u=c||k||n.self)===null||u===void 0?void 0:u($),p,R,f);return{common:$,self:B,peers:wi({},n.peers,C,h),peerOverrides:wi({},p.peers,A,v)}})}Ie.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const td="n";function nt(e={},t={defaultBordered:!0}){const o=Oe(ln,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:I(()=>{var n,r;const{bordered:i}=e;return i!==void 0?i:(r=(n=o==null?void 0:o.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:xd(td),namespaceRef:I(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function aC(){const e=Oe(ln,null);return e?e.mergedClsPrefixRef:xd(td)}const jP={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function Vc(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function ul(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=o!=null&&o.width?String(o.width):a;r=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}function dl(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const a=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?UP(l,c=>c.test(a)):WP(l,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(s):s,u=o.valueCallback?o.valueCallback(u):u;const d=t.slice(a.length);return{value:u,rest:d}}}function WP(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function UP(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function KP(e){return(t,o={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;const l=t.slice(r.length);return{value:a,rest:l}}}const GP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qP=(e,t,o)=>{let n;const r=GP[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},ZP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},XP=(e,t,o,n)=>ZP[e],YP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},QP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},JP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},eM={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},tM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nM=(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},rM={ordinalNumber:nM,era:ul({values:YP,defaultWidth:"wide"}),quarter:ul({values:QP,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ul({values:JP,defaultWidth:"wide"}),day:ul({values:eM,defaultWidth:"wide"}),dayPeriod:ul({values:tM,defaultWidth:"wide",formattingValues:oM,defaultFormattingWidth:"wide"})},iM=/^(\d+)(th|st|nd|rd)?/i,aM=/\d+/i,lM={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},sM={any:[/^b/i,/^(a|c)/i]},uM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dM={any:[/1/i,/2/i,/3/i,/4/i]},cM={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hM={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pM={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},mM={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gM={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vM={ordinalNumber:KP({matchPattern:iM,parsePattern:aM,valueCallback:e=>parseInt(e,10)}),era:dl({matchPatterns:lM,defaultMatchWidth:"wide",parsePatterns:sM,defaultParseWidth:"any"}),quarter:dl({matchPatterns:uM,defaultMatchWidth:"wide",parsePatterns:dM,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dl({matchPatterns:cM,defaultMatchWidth:"wide",parsePatterns:fM,defaultParseWidth:"any"}),day:dl({matchPatterns:hM,defaultMatchWidth:"wide",parsePatterns:pM,defaultParseWidth:"any"}),dayPeriod:dl({matchPatterns:mM,defaultMatchWidth:"any",parsePatterns:gM,defaultParseWidth:"any"})},bM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},CM={date:Vc({formats:bM,defaultWidth:"full"}),time:Vc({formats:xM,defaultWidth:"full"}),dateTime:Vc({formats:yM,defaultWidth:"full"})},wM={code:"en-US",formatDistance:qP,formatLong:CM,formatRelative:XP,localize:rM,match:vM,options:{weekStartsOn:0,firstWeekContainsDate:1}},SM={name:"en-US",locale:wM};function Er(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Oe(ln,null)||{},n=I(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:jP[e]});return{dateLocaleRef:I(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:SM}),localeRef:n}}function kr(e,t,o){if(!t)return;const n=ai(),r=Oe(ln,null),i=()=>{const a=o.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Ba,props:{bPrefix:a?`.${a}-`:void 0},ssr:n,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||iC.mount({id:"n-global",head:!0,anchorMetaName:Ba,ssr:n,parent:r==null?void 0:r.styleMountTarget})};n?i():ri(i)}function lC(e,t){const o=Oe(ln,null);return I(()=>e.hljs||(o==null?void 0:o.mergedHljsRef.value))}function vt(e,t,o,n){o||yr("useThemeClass","cssVarsRef is not passed");const r=Oe(ln,null),i=r==null?void 0:r.mergedThemeHashRef,a=r==null?void 0:r.styleMountTarget,l=M(""),s=ai();let u;const d=`__${e}`,c=()=>{let h=d;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(h+=`-${p}`),f&&(h+=`-${f}`);const{themeOverrides:g,builtinThemeOverrides:v}=n;g&&(h+=`-${Yl(JSON.stringify(g))}`),v&&(h+=`-${Yl(JSON.stringify(v))}`),l.value=h,u=()=>{const b=o.value;let x="";for(const k in b)x+=`${k}: ${b[k]};`;V(`.${h}`,x).mount({id:h,ssr:s,parent:a}),u=void 0}};return kt(()=>{c()}),{themeClass:l,onRender:()=>{u==null||u()}}}function Gt(e,t,o){if(!t)return;const n=ai(),r=I(()=>{const{value:l}=t;if(!l)return;const s=l[e];if(s)return s}),i=Oe(ln,null),a=()=>{kt(()=>{const{value:l}=o,s=`${l}${e}Rtl`;if(W4(s,n))return;const{value:u}=r;u&&u.style.mount({id:s,head:!0,anchorMetaName:Ba,props:{bPrefix:l?`.${l}-`:void 0},ssr:n,parent:i==null?void 0:i.styleMountTarget})})};return n?a():ri(a),r}const sC=xe({name:"Add",render(){return m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),EM=xe({name:"ArrowDown",render(){return m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function Wa(e,t){return xe({name:lF(e),setup(){var o;const n=(o=Oe(ln,null))===null||o===void 0?void 0:o.mergedIconsRef;return()=>{var r;const i=(r=n==null?void 0:n.value)===null||r===void 0?void 0:r[e];return i?i():t}}})}const z0=xe({name:"Backward",render(){return m("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),kM=xe({name:"Checkmark",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},m("g",{fill:"none"},m("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),_M=xe({name:"ChevronLeft",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),zp=xe({name:"ChevronRight",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),FM=Wa("close",m("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),RM=xe({name:"Eye",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),m("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),$M=xe({name:"EyeOff",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),m("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),m("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),m("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),m("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),PM=xe({name:"Empty",render(){return m("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),m("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),zd=Wa("error",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),O0=xe({name:"FastBackward",render(){return m("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),L0=xe({name:"FastForward",render(){return m("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),MM=xe({name:"Filter",render(){return m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),H0=xe({name:"Forward",render(){return m("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),is=Wa("info",m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),N0=xe({name:"More",render(){return m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),AM=xe({name:"Remove",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),Od=Wa("success",m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Ld=Wa("warning",m("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),uC=xe({name:"ChevronDown",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),BM=Wa("clear",m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),DM=xe({name:"ArrowBack",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},m("path",{d:"M0 0h24v24H0V0z",fill:"none"}),m("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),Xi=xe({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=Cr();return()=>m(ho,{name:"icon-switch-transition",appear:o.value},t)}}),Ds=xe({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function n(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function r(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const{group:l,width:s,appear:u,mode:d}=e,c=l?ip:ho,h={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:u,onEnter:i,onAfterEnter:a,onBeforeLeave:o,onLeave:n,onAfterLeave:r};return l||(h.mode=d),m(c,h,t)}}}),TM=D("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[V("svg",` - height: 1em; - width: 1em; - `)]),Ut=xe({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){kr("-base-icon",TM,Be(e,"clsPrefix"))},render(){return m("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),IM=D("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[X("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),V("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),Ft("disabled",[V("&:hover",` - color: var(--n-close-icon-color-hover); - `),V("&:hover::before",` - background-color: var(--n-close-color-hover); - `),V("&:focus::before",` - background-color: var(--n-close-color-hover); - `),V("&:active",` - color: var(--n-close-icon-color-pressed); - `),V("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),X("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),X("round",[V("&::before",` - border-radius: 50%; - `)])]),li=xe({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return kr("-base-close",IM,Be(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:n,round:r,isButtonTag:i}=e;return m(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},m(Ut,{clsPrefix:t},{default:()=>m(FM,null)}))}}}),zM=xe({props:{onFocus:Function,onBlur:Function},setup(e){return()=>m("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:OM}=sn;function en({originalTransform:e="",left:t=0,top:o=0,transition:n=`all .3s ${OM} !important`}={}){return[V("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),V("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),V("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:n})]}const LM=V([V("@keyframes rotator",` - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - }`),D("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[G("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[en()]),G("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[en({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),G("container",` - animation: rotator 3s linear infinite both; - `,[G("icon",` - height: 1em; - width: 1em; - `)])])]),jc="1.6s",HM={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},_r=xe({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},HM),setup(e){kr("-base-loading",LM,Be(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:n,scale:r}=this,i=t/r;return m("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},m(Xi,null,{default:()=>this.show?m("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},m("div",{class:`${e}-base-loading__container`},m("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},m("g",null,m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"}),m("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"}),m("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:jc,fill:"freeze",repeatCount:"indefinite"})))))):m("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function V0(e){return Array.isArray(e)?e:[e]}const hh={STOP:"STOP"};function dC(e,t){const o=t(e);e.children!==void 0&&o!==hh.STOP&&e.children.forEach(n=>dC(n,t))}function NM(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?a=>{a.isLeaf||(n.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||n.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),n}function VM(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function jM(e){return e.children}function WM(e){return e.key}function UM(){return!1}function KM(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function GM(e){return e.disabled===!0}function qM(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Wc(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Uc(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function ZM(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function XM(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function YM(e){return(e==null?void 0:e.type)==="group"}function QM(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class JM extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function eA(e,t,o,n){return od(t.concat(e),o,n,!1)}function tA(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function oA(e,t,o,n){const r=od(t,o,n,!1),i=od(e,o,n,!0),a=tA(e,o),l=[];return r.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>r.delete(s)),r}function Kc(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:u}=e;if(!a)return n!==void 0?{checkedKeys:ZM(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:XM(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let c;r!==void 0?c=oA(r,o,t,u):n!==void 0?c=eA(n,o,t,u):c=od(o,t,u,!1);const h=s==="parent",f=s==="child"||l,p=c,g=new Set,v=Math.max.apply(null,Array.from(d.keys()));for(let b=v;b>=0;b-=1){const x=b===0,k=d.get(b);for(const C of k){if(C.isLeaf)continue;const{key:_,shallowLoaded:R}=C;if(f&&R&&C.children.forEach(B=>{!B.disabled&&!B.isLeaf&&B.shallowLoaded&&p.has(B.key)&&p.delete(B.key)}),C.disabled||!R)continue;let w=!0,A=!1,$=!0;for(const B of C.children){const U=B.key;if(!B.disabled){if($&&($=!1),p.has(U))A=!0;else if(g.has(U)){A=!0,w=!1;break}else if(w=!1,A)break}}w&&!$?(h&&C.children.forEach(B=>{!B.disabled&&p.has(B.key)&&p.delete(B.key)}),p.add(_)):A&&g.add(_),x&&f&&p.has(_)&&p.delete(_)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function od(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const u=r.get(s);u!==void 0&&dC(u,d=>{if(d.disabled)return hh.STOP;const{key:c}=d;if(!a.has(c)&&(a.add(c),l.add(c),qM(d.rawNode,i))){if(n)return hh.STOP;if(!o)throw new JM}})}),l}function nA(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),o||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function rA(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function iA(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function j0(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?aA:iA,i={reverse:t==="prev"};let a=!1,l=null;function s(u){if(u!==null){if(u===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!u.disabled||n)&&!u.ignored&&!u.isGroup){l=u;return}if(u.isGroup){const d=Op(u,i);d!==null?l=d:s(r(u,o))}else{const d=r(u,!1);if(d!==null)s(d);else{const c=lA(u);c!=null&&c.isGroup?s(r(c,o)):o&&s(r(u,!0))}}}}return s(e),l}function aA(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function lA(e){return e.parent}function Op(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,a=o?-1:r,l=o?-1:1;for(let s=i;s!==a;s+=l){const u=n[s];if(!u.disabled&&!u.ignored)if(u.isGroup){const d=Op(u,t);if(d!==null)return d}else return u}}return null}const sA={getChild(){return this.ignored?null:Op(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return j0(this,"next",e)},getPrev(e={}){return j0(this,"prev",e)}};function uA(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(a=>{n.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||o===void 0||o.has(a.key))&&r(a.children)})}return r(e),n}function dA(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function cC(e,t,o,n,r,i=null,a=0){const l=[];return e.forEach((s,u)=>{var d;const c=Object.create(n);if(c.rawNode=s,c.siblings=l,c.level=a,c.index=u,c.isFirstChild=u===0,c.isLastChild=u+1===e.length,c.parent=i,!c.ignored){const h=r(s);Array.isArray(h)&&(c.children=cC(h,t,o,n,r,c,a+1))}l.push(c),t.set(c.key,c),o.has(a)||o.set(a,[]),(d=o.get(a))===null||d===void 0||d.push(c)}),l}function Hd(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=GM,getIgnored:a=UM,getIsGroup:l=YM,getKey:s=WM}=t,u=(o=t.getChildren)!==null&&o!==void 0?o:jM,d=t.ignoreEmptyChildren?C=>{const _=u(C);return Array.isArray(_)?_.length?_:null:_}:u,c=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return VM(this.rawNode,d)},get shallowLoaded(){return KM(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(C){return dA(this,C)}},sA),h=cC(e,n,r,c,d);function f(C){if(C==null)return null;const _=n.get(C);return _&&!_.isGroup&&!_.ignored?_:null}function p(C){if(C==null)return null;const _=n.get(C);return _&&!_.ignored?_:null}function g(C,_){const R=p(C);return R?R.getPrev(_):null}function v(C,_){const R=p(C);return R?R.getNext(_):null}function b(C){const _=p(C);return _?_.getParent():null}function x(C){const _=p(C);return _?_.getChild():null}const k={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(C){return uA(h,C)},getNode:f,getPrev:g,getNext:v,getParent:b,getChild:x,getFirstAvailableNode(){return rA(h)},getPath(C,_={}){return nA(C,_,k)},getCheckedKeys(C,_={}){const{cascade:R=!0,leafOnly:w=!1,checkStrategy:A="all",allowNotLoaded:$=!1}=_;return Kc({checkedKeys:Wc(C),indeterminateKeys:Uc(C),cascade:R,leafOnly:w,checkStrategy:A,allowNotLoaded:$},k)},check(C,_,R={}){const{cascade:w=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:B=!1}=R;return Kc({checkedKeys:Wc(_),indeterminateKeys:Uc(_),keysToCheck:C==null?[]:V0(C),cascade:w,leafOnly:A,checkStrategy:$,allowNotLoaded:B},k)},uncheck(C,_,R={}){const{cascade:w=!0,leafOnly:A=!1,checkStrategy:$="all",allowNotLoaded:B=!1}=R;return Kc({checkedKeys:Wc(_),indeterminateKeys:Uc(_),keysToUncheck:C==null?[]:V0(C),cascade:w,leafOnly:A,checkStrategy:$,allowNotLoaded:B},k)},getNonLeafKeys(C={}){return NM(h,C)}};return k}const Ze={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},cA=so(Ze.neutralBase),fC=so(Ze.neutralInvertBase),fA=`rgba(${fC.slice(0,3).join(", ")}, `;function At(e){return`${fA+String(e)})`}function hA(e){const t=Array.from(fC);return t[3]=Number(e),Ue(cA,t)}const Ne=Object.assign(Object.assign({name:"common"},sn),{baseColor:Ze.neutralBase,primaryColor:Ze.primaryDefault,primaryColorHover:Ze.primaryHover,primaryColorPressed:Ze.primaryActive,primaryColorSuppl:Ze.primarySuppl,infoColor:Ze.infoDefault,infoColorHover:Ze.infoHover,infoColorPressed:Ze.infoActive,infoColorSuppl:Ze.infoSuppl,successColor:Ze.successDefault,successColorHover:Ze.successHover,successColorPressed:Ze.successActive,successColorSuppl:Ze.successSuppl,warningColor:Ze.warningDefault,warningColorHover:Ze.warningHover,warningColorPressed:Ze.warningActive,warningColorSuppl:Ze.warningSuppl,errorColor:Ze.errorDefault,errorColorHover:Ze.errorHover,errorColorPressed:Ze.errorActive,errorColorSuppl:Ze.errorSuppl,textColorBase:Ze.neutralTextBase,textColor1:At(Ze.alpha1),textColor2:At(Ze.alpha2),textColor3:At(Ze.alpha3),textColorDisabled:At(Ze.alpha4),placeholderColor:At(Ze.alpha4),placeholderColorDisabled:At(Ze.alpha5),iconColor:At(Ze.alpha4),iconColorDisabled:At(Ze.alpha5),iconColorHover:At(Number(Ze.alpha4)*1.25),iconColorPressed:At(Number(Ze.alpha4)*.8),opacity1:Ze.alpha1,opacity2:Ze.alpha2,opacity3:Ze.alpha3,opacity4:Ze.alpha4,opacity5:Ze.alpha5,dividerColor:At(Ze.alphaDivider),borderColor:At(Ze.alphaBorder),closeIconColorHover:At(Number(Ze.alphaClose)),closeIconColor:At(Number(Ze.alphaClose)),closeIconColorPressed:At(Number(Ze.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:At(Ze.alpha4),clearColorHover:ao(At(Ze.alpha4),{alpha:1.25}),clearColorPressed:ao(At(Ze.alpha4),{alpha:.8}),scrollbarColor:At(Ze.alphaScrollbar),scrollbarColorHover:At(Ze.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:At(Ze.alphaProgressRail),railColor:At(Ze.alphaRail),popoverColor:Ze.neutralPopover,tableColor:Ze.neutralCard,cardColor:Ze.neutralCard,modalColor:Ze.neutralModal,bodyColor:Ze.neutralBody,tagColor:hA(Ze.alphaTag),avatarColor:At(Ze.alphaAvatar),invertedColor:Ze.neutralBase,inputColor:At(Ze.alphaInput),codeColor:At(Ze.alphaCode),tabColor:At(Ze.alphaTab),actionColor:At(Ze.alphaAction),tableHeaderColor:At(Ze.alphaAction),hoverColor:At(Ze.alphaPending),tableColorHover:At(Ze.alphaTablePending),tableColorStriped:At(Ze.alphaTableStriped),pressedColor:At(Ze.alphaPressed),opacityDisabled:Ze.alphaDisabled,inputColorDisabled:At(Ze.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),dt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},pA=so(dt.neutralBase),hC=so(dt.neutralInvertBase),mA=`rgba(${hC.slice(0,3).join(", ")}, `;function W0(e){return`${mA+String(e)})`}function _o(e){const t=Array.from(hC);return t[3]=Number(e),Ue(pA,t)}const Ve=Object.assign(Object.assign({name:"common"},sn),{baseColor:dt.neutralBase,primaryColor:dt.primaryDefault,primaryColorHover:dt.primaryHover,primaryColorPressed:dt.primaryActive,primaryColorSuppl:dt.primarySuppl,infoColor:dt.infoDefault,infoColorHover:dt.infoHover,infoColorPressed:dt.infoActive,infoColorSuppl:dt.infoSuppl,successColor:dt.successDefault,successColorHover:dt.successHover,successColorPressed:dt.successActive,successColorSuppl:dt.successSuppl,warningColor:dt.warningDefault,warningColorHover:dt.warningHover,warningColorPressed:dt.warningActive,warningColorSuppl:dt.warningSuppl,errorColor:dt.errorDefault,errorColorHover:dt.errorHover,errorColorPressed:dt.errorActive,errorColorSuppl:dt.errorSuppl,textColorBase:dt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:_o(dt.alpha4),placeholderColor:_o(dt.alpha4),placeholderColorDisabled:_o(dt.alpha5),iconColor:_o(dt.alpha4),iconColorHover:ao(_o(dt.alpha4),{lightness:.75}),iconColorPressed:ao(_o(dt.alpha4),{lightness:.9}),iconColorDisabled:_o(dt.alpha5),opacity1:dt.alpha1,opacity2:dt.alpha2,opacity3:dt.alpha3,opacity4:dt.alpha4,opacity5:dt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:_o(Number(dt.alphaClose)),closeIconColorHover:_o(Number(dt.alphaClose)),closeIconColorPressed:_o(Number(dt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:_o(dt.alpha4),clearColorHover:ao(_o(dt.alpha4),{lightness:.75}),clearColorPressed:ao(_o(dt.alpha4),{lightness:.9}),scrollbarColor:W0(dt.alphaScrollbar),scrollbarColorHover:W0(dt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:_o(dt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:dt.neutralPopover,tableColor:dt.neutralCard,cardColor:dt.neutralCard,modalColor:dt.neutralModal,bodyColor:dt.neutralBody,tagColor:"#eee",avatarColor:_o(dt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:_o(dt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:dt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),gA={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function pC(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},gA),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:n})}const tr={name:"Empty",common:Ve,self:pC},Yi={name:"Empty",common:Ne,self:pC},vA=D("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[G("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[V("+",[G("description",` - margin-top: 8px; - `)])]),G("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),G("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),bA=Object.assign(Object.assign({},Ie.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Lp=xe({name:"Empty",props:bA,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:n}=nt(e),r=Ie("Empty","-empty",vA,tr,e,t),{localeRef:i}=Er("Empty"),a=I(()=>{var d,c,h;return(d=e.description)!==null&&d!==void 0?d:(h=(c=n==null?void 0:n.value)===null||c===void 0?void 0:c.Empty)===null||h===void 0?void 0:h.description}),l=I(()=>{var d,c;return((c=(d=n==null?void 0:n.value)===null||d===void 0?void 0:d.Empty)===null||c===void 0?void 0:c.renderIcon)||(()=>m(PM,null))}),s=I(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:c},self:{[Ee("iconSize",d)]:h,[Ee("fontSize",d)]:f,textColor:p,iconColor:g,extraTextColor:v}}=r.value;return{"--n-icon-size":h,"--n-font-size":f,"--n-bezier":c,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":v}}),u=o?vt("empty",I(()=>{let d="";const{size:c}=e;return d+=c[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:I(()=>a.value||i.value.description),cssVars:o?void 0:s,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?m("div",{class:`${t}-empty__icon`},e.icon?e.icon():m(Ut,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?m("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?m("div",{class:`${t}-empty__extra`},e.extra()):null)}}),xA={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function mC(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:n,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},xA),{height:n,width:r,borderRadius:i,color:t,colorHover:o})}const Lo={name:"Scrollbar",common:Ve,self:mC},Zo={name:"Scrollbar",common:Ne,self:mC},{cubicBezierEaseInOut:U0}=sn;function Ts({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:n=U0,leaveCubicBezier:r=U0}={}){return[V(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),V(`&.${e}-transition-leave-active`,{transition:`all ${o} ${r}!important`}),V(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),V(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const yA=D("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[V(">",[D("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - min-height: inherit; - max-height: inherit; - scrollbar-width: none; - `,[V("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),V(">",[D("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),V(">, +",[D("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - background: var(--n-scrollbar-rail-color); - -webkit-user-select: none; - `,[X("horizontal",` - height: var(--n-scrollbar-height); - `,[V(">",[G("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),X("horizontal--top",` - inset: var(--n-scrollbar-rail-inset-horizontal-top); - `),X("horizontal--bottom",` - inset: var(--n-scrollbar-rail-inset-horizontal-bottom); - `),X("vertical",` - width: var(--n-scrollbar-width); - `,[V(">",[G("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),X("vertical--left",` - inset: var(--n-scrollbar-rail-inset-vertical-left); - `),X("vertical--right",` - inset: var(--n-scrollbar-rail-inset-vertical-right); - `),X("disabled",[V(">",[G("scrollbar","pointer-events: none;")])]),V(">",[G("scrollbar",` - z-index: 1; - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Ts(),V("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),CA=Object.assign(Object.assign({},Ie.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),or=xe({name:"Scrollbar",props:CA,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),r=Gt("Scrollbar",n,t),i=M(null),a=M(null),l=M(null),s=M(null),u=M(null),d=M(null),c=M(null),h=M(null),f=M(null),p=M(null),g=M(null),v=M(0),b=M(0),x=M(!1),k=M(!1);let C=!1,_=!1,R,w,A=0,$=0,B=0,U=0;const N=lk(),K=Ie("Scrollbar","-scrollbar",yA,Lo,e,t),H=I(()=>{const{value:Q}=h,{value:me}=d,{value:Pe}=p;return Q===null||me===null||Pe===null?0:Math.min(Q,Pe*Q/me+lo(K.value.self.width)*1.5)}),T=I(()=>`${H.value}px`),z=I(()=>{const{value:Q}=f,{value:me}=c,{value:Pe}=g;return Q===null||me===null||Pe===null?0:Pe*Q/me+lo(K.value.self.height)*1.5}),F=I(()=>`${z.value}px`),y=I(()=>{const{value:Q}=h,{value:me}=v,{value:Pe}=d,{value:He}=p;if(Q===null||Pe===null||He===null)return 0;{const We=Pe-Q;return We?me/We*(He-H.value):0}}),re=I(()=>`${y.value}px`),te=I(()=>{const{value:Q}=f,{value:me}=b,{value:Pe}=c,{value:He}=g;if(Q===null||Pe===null||He===null)return 0;{const We=Pe-Q;return We?me/We*(He-z.value):0}}),j=I(()=>`${te.value}px`),Z=I(()=>{const{value:Q}=h,{value:me}=d;return Q!==null&&me!==null&&me>Q}),se=I(()=>{const{value:Q}=f,{value:me}=c;return Q!==null&&me!==null&&me>Q}),pe=I(()=>{const{trigger:Q}=e;return Q==="none"||x.value}),Se=I(()=>{const{trigger:Q}=e;return Q==="none"||k.value}),he=I(()=>{const{container:Q}=e;return Q?Q():a.value}),fe=I(()=>{const{content:Q}=e;return Q?Q():l.value}),Ce=(Q,me)=>{if(!e.scrollable)return;if(typeof Q=="number"){W(Q,me??0,0,!1,"auto");return}const{left:Pe,top:He,index:We,elSize:Ge,position:qe,behavior:tt,el:yt,debounce:Bt=!0}=Q;(Pe!==void 0||He!==void 0)&&W(Pe??0,He??0,0,!1,tt),yt!==void 0?W(0,yt.offsetTop,yt.offsetHeight,Bt,tt):We!==void 0&&Ge!==void 0?W(0,We*Ge,Ge,Bt,tt):qe==="bottom"?W(0,Number.MAX_SAFE_INTEGER,0,!1,tt):qe==="top"&&W(0,0,0,!1,tt)},Y=i8(()=>{e.container||Ce({top:v.value,left:b.value})}),O=()=>{Y.isDeactivated||ue()},ze=Q=>{if(Y.isDeactivated)return;const{onResize:me}=e;me&&me(Q),ue()},je=(Q,me)=>{if(!e.scrollable)return;const{value:Pe}=he;Pe&&(typeof Q=="object"?Pe.scrollBy(Q):Pe.scrollBy(Q,me||0))};function W(Q,me,Pe,He,We){const{value:Ge}=he;if(Ge){if(He){const{scrollTop:qe,offsetHeight:tt}=Ge;if(me>qe){me+Pe<=qe+tt||Ge.scrollTo({left:Q,top:me+Pe-tt,behavior:We});return}}Ge.scrollTo({left:Q,top:me,behavior:We})}}function ee(){ce(),J(),ue()}function ge(){we()}function we(){le(),ne()}function le(){w!==void 0&&window.clearTimeout(w),w=window.setTimeout(()=>{k.value=!1},e.duration)}function ne(){R!==void 0&&window.clearTimeout(R),R=window.setTimeout(()=>{x.value=!1},e.duration)}function ce(){R!==void 0&&window.clearTimeout(R),x.value=!0}function J(){w!==void 0&&window.clearTimeout(w),k.value=!0}function ie(Q){const{onScroll:me}=e;me&&me(Q),de()}function de(){const{value:Q}=he;Q&&(v.value=Q.scrollTop,b.value=Q.scrollLeft*(r!=null&&r.value?-1:1))}function ae(){const{value:Q}=fe;Q&&(d.value=Q.offsetHeight,c.value=Q.offsetWidth);const{value:me}=he;me&&(h.value=me.offsetHeight,f.value=me.offsetWidth);const{value:Pe}=u,{value:He}=s;Pe&&(g.value=Pe.offsetWidth),He&&(p.value=He.offsetHeight)}function q(){const{value:Q}=he;Q&&(v.value=Q.scrollTop,b.value=Q.scrollLeft*(r!=null&&r.value?-1:1),h.value=Q.offsetHeight,f.value=Q.offsetWidth,d.value=Q.scrollHeight,c.value=Q.scrollWidth);const{value:me}=u,{value:Pe}=s;me&&(g.value=me.offsetWidth),Pe&&(p.value=Pe.offsetHeight)}function ue(){e.scrollable&&(e.useUnifiedContainer?q():(ae(),de()))}function ve(Q){var me;return!(!((me=i.value)===null||me===void 0)&&me.contains(zi(Q)))}function De(Q){Q.preventDefault(),Q.stopPropagation(),_=!0,Ct("mousemove",window,Ke,!0),Ct("mouseup",window,Qe,!0),$=b.value,B=r!=null&&r.value?window.innerWidth-Q.clientX:Q.clientX}function Ke(Q){if(!_)return;R!==void 0&&window.clearTimeout(R),w!==void 0&&window.clearTimeout(w);const{value:me}=f,{value:Pe}=c,{value:He}=z;if(me===null||Pe===null)return;const Ge=(r!=null&&r.value?window.innerWidth-Q.clientX-B:Q.clientX-B)*(Pe-me)/(me-He),qe=Pe-me;let tt=$+Ge;tt=Math.min(qe,tt),tt=Math.max(tt,0);const{value:yt}=he;if(yt){yt.scrollLeft=tt*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:Bt}=e;Bt&&Bt(tt)}}function Qe(Q){Q.preventDefault(),Q.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,Qe,!0),_=!1,ue(),ve(Q)&&we()}function st(Q){Q.preventDefault(),Q.stopPropagation(),C=!0,Ct("mousemove",window,Xe,!0),Ct("mouseup",window,pt,!0),A=v.value,U=Q.clientY}function Xe(Q){if(!C)return;R!==void 0&&window.clearTimeout(R),w!==void 0&&window.clearTimeout(w);const{value:me}=h,{value:Pe}=d,{value:He}=H;if(me===null||Pe===null)return;const Ge=(Q.clientY-U)*(Pe-me)/(me-He),qe=Pe-me;let tt=A+Ge;tt=Math.min(qe,tt),tt=Math.max(tt,0);const{value:yt}=he;yt&&(yt.scrollTop=tt)}function pt(Q){Q.preventDefault(),Q.stopPropagation(),xt("mousemove",window,Xe,!0),xt("mouseup",window,pt,!0),C=!1,ue(),ve(Q)&&we()}kt(()=>{const{value:Q}=se,{value:me}=Z,{value:Pe}=t,{value:He}=u,{value:We}=s;He&&(Q?He.classList.remove(`${Pe}-scrollbar-rail--disabled`):He.classList.add(`${Pe}-scrollbar-rail--disabled`)),We&&(me?We.classList.remove(`${Pe}-scrollbar-rail--disabled`):We.classList.add(`${Pe}-scrollbar-rail--disabled`))}),ut(()=>{e.container||ue()}),Xt(()=>{R!==void 0&&window.clearTimeout(R),w!==void 0&&window.clearTimeout(w),xt("mousemove",window,Xe,!0),xt("mouseup",window,pt,!0)});const Ye=I(()=>{const{common:{cubicBezierEaseInOut:Q},self:{color:me,colorHover:Pe,height:He,width:We,borderRadius:Ge,railInsetHorizontalTop:qe,railInsetHorizontalBottom:tt,railInsetVerticalRight:yt,railInsetVerticalLeft:Bt,railColor:_t}}=K.value;return{"--n-scrollbar-bezier":Q,"--n-scrollbar-color":me,"--n-scrollbar-color-hover":Pe,"--n-scrollbar-border-radius":Ge,"--n-scrollbar-width":We,"--n-scrollbar-height":He,"--n-scrollbar-rail-inset-horizontal-top":qe,"--n-scrollbar-rail-inset-horizontal-bottom":tt,"--n-scrollbar-rail-inset-vertical-right":r!=null&&r.value?Cg(yt):yt,"--n-scrollbar-rail-inset-vertical-left":r!=null&&r.value?Cg(Bt):Bt,"--n-scrollbar-rail-color":_t}}),Le=o?vt("scrollbar",void 0,Ye,e):void 0;return Object.assign(Object.assign({},{scrollTo:Ce,scrollBy:je,sync:ue,syncUnifiedContainer:q,handleMouseEnterWrapper:ee,handleMouseLeaveWrapper:ge}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:u,needYBar:Z,needXBar:se,yBarSizePx:T,xBarSizePx:F,yBarTopPx:re,xBarLeftPx:j,isShowXBar:pe,isShowYBar:Se,isIos:N,handleScroll:ie,handleContentResize:O,handleContainerResize:ze,handleYScrollMouseDown:st,handleXScrollMouseDown:De,cssVars:o?void 0:Ye,themeClass:Le==null?void 0:Le.themeClass,onRender:Le==null?void 0:Le.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:a,xPlacement:l,xScrollable:s}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const u=this.trigger==="none",d=(f,p)=>m("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${a}`,f],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},m(u?Yf:ho,u?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),c=()=>{var f,p;return(f=this.onRender)===null||f===void 0||f.call(this),m("div",bo(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,r&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(p=t.default)===null||p===void 0?void 0:p.call(t):m("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},m($n,{onResize:this.handleContentResize},{default:()=>m("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:d(void 0,void 0),s&&m("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},m(u?Yf:ho,u?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},h=this.container?c():m($n,{onResize:this.handleContainerResize},{default:c});return i?m(ft,null,h,d(this.themeClass,this.cssVars)):h}}),gC=or,wA={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function vC(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:u,hoverColor:d,fontSizeTiny:c,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:g,heightTiny:v,heightSmall:b,heightMedium:x,heightLarge:k,heightHuge:C}=e;return Object.assign(Object.assign({},wA),{optionFontSizeTiny:c,optionFontSizeSmall:h,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:v,optionHeightSmall:b,optionHeightMedium:x,optionHeightLarge:k,optionHeightHuge:C,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:u,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})}const Ua={name:"InternalSelectMenu",common:Ve,peers:{Scrollbar:Lo,Empty:tr},self:vC},Is={name:"InternalSelectMenu",common:Ne,peers:{Scrollbar:Zo,Empty:Yi},self:vC};function SA(e,t){return m(ho,{name:"fade-in-scale-up-transition"},{default:()=>e?m(Ut,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>m(kM)}):null})}const K0=xe({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:n,valueSetRef:r,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:u,nodePropsRef:d,handleOptionClick:c,handleOptionMouseEnter:h}=Oe(pp),f=gt(()=>{const{value:b}=o;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:x}=e;x.disabled||c(b,x)}function g(b){const{tmNode:x}=e;x.disabled||h(b,x)}function v(b){const{tmNode:x}=e,{value:k}=f;x.disabled||k||h(b,x)}return{multiple:n,isGrouped:gt(()=>{const{tmNode:b}=e,{parent:x}=b;return x&&x.rawNode.type==="group"}),showCheckmark:u,nodeProps:d,isPending:f,isSelected:gt(()=>{const{value:b}=t,{value:x}=n;if(b===null)return!1;const k=e.tmNode.rawNode[s.value];if(x){const{value:C}=r;return C.has(k)}else return b===k}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:v,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:u,handleMouseEnter:d,handleMouseMove:c}=this,h=SA(o,e),f=s?[s(t,o),i&&h]:[Jt(t[this.labelField],t,o),i&&h],p=a==null?void 0:a(t),g=m("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:Bl([u,p==null?void 0:p.onClick]),onMouseenter:Bl([d,p==null?void 0:p.onMouseenter]),onMousemove:Bl([c,p==null?void 0:p.onMousemove])}),m("div",{class:`${e}-base-select-option__content`},f));return t.render?t.render({node:g,option:t,selected:o}):l?l({node:g,option:t,selected:o}):g}}),G0=xe({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=Oe(pp);return{labelField:o,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:n,tmNode:{rawNode:r}}=this,i=n==null?void 0:n(r),a=t?t(r,!1):Jt(r[this.labelField],r,!1),l=m("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return r.render?r.render({node:l,option:r}):o?o({node:l,option:r,selected:!1}):l}}),{cubicBezierEaseIn:q0,cubicBezierEaseOut:Z0}=sn;function An({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[V("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${q0}, transform ${t} ${q0} ${r&&`,${r}`}`}),V("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Z0}, transform ${t} ${Z0} ${r&&`,${r}`}`}),V("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),V("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const EA=D("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[D("scrollbar",` - max-height: var(--n-height); - `),D("virtual-list",` - max-height: var(--n-height); - `),D("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[G("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),D("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),D("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),G("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),G("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),G("header",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),G("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),D("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),D("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[X("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),V("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),V("&:active",` - color: var(--n-option-text-color-pressed); - `),X("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),X("pending",[V("&::before",` - background-color: var(--n-option-color-pending); - `)]),X("selected",` - color: var(--n-option-text-color-active); - `,[V("&::before",` - background-color: var(--n-option-color-active); - `),X("pending",[V("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),X("disabled",` - cursor: not-allowed; - `,[Ft("selected",` - color: var(--n-option-text-color-disabled); - `),X("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),G("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[An({enterScale:"0.5"})])])]),bC=xe({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=nt(e),n=Gt("InternalSelectMenu",o,t),r=Ie("InternalSelectMenu","-internal-select-menu",EA,Ua,e,Be(e,"clsPrefix")),i=M(null),a=M(null),l=M(null),s=I(()=>e.treeMate.getFlattenedNodes()),u=I(()=>QM(s.value)),d=M(null);function c(){const{treeMate:Z}=e;let se=null;const{value:pe}=e;pe===null?se=Z.getFirstAvailableNode():(e.multiple?se=Z.getNode((pe||[])[(pe||[]).length-1]):se=Z.getNode(pe),(!se||se.disabled)&&(se=Z.getFirstAvailableNode())),H(se||null)}function h(){const{value:Z}=d;Z&&!e.treeMate.getNode(Z.key)&&(d.value=null)}let f;at(()=>e.show,Z=>{Z?f=at(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?c():h(),Rt(T)):h()},{immediate:!0}):f==null||f()},{immediate:!0}),Xt(()=>{f==null||f()});const p=I(()=>lo(r.value.self[Ee("optionHeight",e.size)])),g=I(()=>Ro(r.value.self[Ee("padding",e.size)])),v=I(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=I(()=>{const Z=s.value;return Z&&Z.length===0});function x(Z){const{onToggle:se}=e;se&&se(Z)}function k(Z){const{onScroll:se}=e;se&&se(Z)}function C(Z){var se;(se=l.value)===null||se===void 0||se.sync(),k(Z)}function _(){var Z;(Z=l.value)===null||Z===void 0||Z.sync()}function R(){const{value:Z}=d;return Z||null}function w(Z,se){se.disabled||H(se,!1)}function A(Z,se){se.disabled||x(se)}function $(Z){var se;Ko(Z,"action")||(se=e.onKeyup)===null||se===void 0||se.call(e,Z)}function B(Z){var se;Ko(Z,"action")||(se=e.onKeydown)===null||se===void 0||se.call(e,Z)}function U(Z){var se;(se=e.onMousedown)===null||se===void 0||se.call(e,Z),!e.focusable&&Z.preventDefault()}function N(){const{value:Z}=d;Z&&H(Z.getNext({loop:!0}),!0)}function K(){const{value:Z}=d;Z&&H(Z.getPrev({loop:!0}),!0)}function H(Z,se=!1){d.value=Z,se&&T()}function T(){var Z,se;const pe=d.value;if(!pe)return;const Se=u.value(pe.key);Se!==null&&(e.virtualScroll?(Z=a.value)===null||Z===void 0||Z.scrollTo({index:Se}):(se=l.value)===null||se===void 0||se.scrollTo({index:Se,elSize:p.value}))}function z(Z){var se,pe;!((se=i.value)===null||se===void 0)&&se.contains(Z.target)&&((pe=e.onFocus)===null||pe===void 0||pe.call(e,Z))}function F(Z){var se,pe;!((se=i.value)===null||se===void 0)&&se.contains(Z.relatedTarget)||(pe=e.onBlur)===null||pe===void 0||pe.call(e,Z)}Je(pp,{handleOptionMouseEnter:w,handleOptionClick:A,valueSetRef:v,pendingTmNodeRef:d,nodePropsRef:Be(e,"nodeProps"),showCheckmarkRef:Be(e,"showCheckmark"),multipleRef:Be(e,"multiple"),valueRef:Be(e,"value"),renderLabelRef:Be(e,"renderLabel"),renderOptionRef:Be(e,"renderOption"),labelFieldRef:Be(e,"labelField"),valueFieldRef:Be(e,"valueField")}),Je(Ox,i),ut(()=>{const{value:Z}=l;Z&&Z.sync()});const y=I(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:se},self:{height:pe,borderRadius:Se,color:he,groupHeaderTextColor:fe,actionDividerColor:Ce,optionTextColorPressed:Y,optionTextColor:O,optionTextColorDisabled:ze,optionTextColorActive:je,optionOpacityDisabled:W,optionCheckColor:ee,actionTextColor:ge,optionColorPending:we,optionColorActive:le,loadingColor:ne,loadingSize:ce,optionColorActivePending:J,[Ee("optionFontSize",Z)]:ie,[Ee("optionHeight",Z)]:de,[Ee("optionPadding",Z)]:ae}}=r.value;return{"--n-height":pe,"--n-action-divider-color":Ce,"--n-action-text-color":ge,"--n-bezier":se,"--n-border-radius":Se,"--n-color":he,"--n-option-font-size":ie,"--n-group-header-text-color":fe,"--n-option-check-color":ee,"--n-option-color-pending":we,"--n-option-color-active":le,"--n-option-color-active-pending":J,"--n-option-height":de,"--n-option-opacity-disabled":W,"--n-option-text-color":O,"--n-option-text-color-active":je,"--n-option-text-color-disabled":ze,"--n-option-text-color-pressed":Y,"--n-option-padding":ae,"--n-option-padding-left":Ro(ae,"left"),"--n-option-padding-right":Ro(ae,"right"),"--n-loading-color":ne,"--n-loading-size":ce}}),{inlineThemeDisabled:re}=e,te=re?vt("internal-select-menu",I(()=>e.size[0]),y,e):void 0,j={selfRef:i,next:N,prev:K,getPendingTmNode:R};return ty(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:n,virtualListRef:a,scrollbarRef:l,itemSize:p,padding:g,flattenedNodes:s,empty:b,virtualListContainer(){const{value:Z}=a;return Z==null?void 0:Z.listElRef},virtualListContent(){const{value:Z}=a;return Z==null?void 0:Z.itemsElRef},doScroll:k,handleFocusin:z,handleFocusout:F,handleKeyUp:$,handleKeyDown:B,handleMouseDown:U,handleVirtualListResize:_,handleVirtualListScroll:C,cssVars:re?void 0:y,themeClass:te==null?void 0:te.themeClass,onRender:te==null?void 0:te.onRender},j)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:n,themeClass:r,onRender:i}=this;return i==null||i(),m("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,r,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},bt(e.header,a=>a&&m("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?m("div",{class:`${o}-base-select-menu__loading`},m(_r,{clsPrefix:o,strokeWidth:20})):this.empty?m("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},wo(e.empty,()=>[m(Lp,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty,size:this.size})])):m(or,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?m(bp,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?m(G0,{key:a.key,clsPrefix:o,tmNode:a}):a.ignored?null:m(K0,{clsPrefix:o,key:a.key,tmNode:a})}):m("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?m(G0,{key:a.key,clsPrefix:o,tmNode:a}):m(K0,{clsPrefix:o,key:a.key,tmNode:a})))}),bt(e.action,a=>a&&[m("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},a),m(zM,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),kA=D("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),xC=xe({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){kr("-base-wave",kA,Be(e,"clsPrefix"));const t=M(null),o=M(!1);let n=null;return Xt(()=>{n!==null&&window.clearTimeout(n)}),{active:o,selfRef:t,play(){n!==null&&(window.clearTimeout(n),o.value=!1,n=null),Rt(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,o.value=!0,n=window.setTimeout(()=>{o.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return m("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),_A={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function yC(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},_A),{fontSize:i,borderRadius:r,color:o,dividerColor:a,textColor:n,boxShadow:t})}const si={name:"Popover",common:Ve,self:yC},Qi={name:"Popover",common:Ne,self:yC},Gc={top:"bottom",bottom:"top",left:"right",right:"left"},mo="var(--n-arrow-height) * 1.414",FA=V([D("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[V(">",[D("scrollbar",` - height: inherit; - max-height: inherit; - `)]),Ft("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[Ft("scrollable",[Ft("show-header-or-footer","padding: var(--n-padding);")])]),G("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),G("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),X("scrollable, show-header-or-footer",[G("content",` - padding: var(--n-padding); - `)])]),D("popover-shared",` - transform-origin: inherit; - `,[D("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[D("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${mo}); - height: calc(${mo}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),V("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),V("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),V("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),V("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),fn("top-start",` - top: calc(${mo} / -2); - left: calc(${lr("top-start")} - var(--v-offset-left)); - `),fn("top",` - top: calc(${mo} / -2); - transform: translateX(calc(${mo} / -2)) rotate(45deg); - left: 50%; - `),fn("top-end",` - top: calc(${mo} / -2); - right: calc(${lr("top-end")} + var(--v-offset-left)); - `),fn("bottom-start",` - bottom: calc(${mo} / -2); - left: calc(${lr("bottom-start")} - var(--v-offset-left)); - `),fn("bottom",` - bottom: calc(${mo} / -2); - transform: translateX(calc(${mo} / -2)) rotate(45deg); - left: 50%; - `),fn("bottom-end",` - bottom: calc(${mo} / -2); - right: calc(${lr("bottom-end")} + var(--v-offset-left)); - `),fn("left-start",` - left: calc(${mo} / -2); - top: calc(${lr("left-start")} - var(--v-offset-top)); - `),fn("left",` - left: calc(${mo} / -2); - transform: translateY(calc(${mo} / -2)) rotate(45deg); - top: 50%; - `),fn("left-end",` - left: calc(${mo} / -2); - bottom: calc(${lr("left-end")} + var(--v-offset-top)); - `),fn("right-start",` - right: calc(${mo} / -2); - top: calc(${lr("right-start")} - var(--v-offset-top)); - `),fn("right",` - right: calc(${mo} / -2); - transform: translateY(calc(${mo} / -2)) rotate(45deg); - top: 50%; - `),fn("right-end",` - right: calc(${mo} / -2); - bottom: calc(${lr("right-end")} + var(--v-offset-top)); - `),...RP({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),n=o?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",l=`calc((${`var(--v-target-${n}, 0px)`} - ${mo}) / 2)`,s=lr(r);return V(`[v-placement="${r}"] >`,[D("popover-shared",[X("center-arrow",[D("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function lr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function fn(e,t){const o=e.split("-")[0],n=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return V(`[v-placement="${e}"] >`,[D("popover-shared",` - margin-${Gc[o]}: var(--n-space); - `,[X("show-arrow",` - margin-${Gc[o]}: var(--n-space-arrow); - `),X("overlap",` - margin: 0; - `),Z4("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${o}: 100%; - ${Gc[o]}: auto; - ${n} - `,[D("popover-arrow",t)])])])}const CC=Object.assign(Object.assign({},Ie.props),{to:Mo.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function wC({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return m("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},m("div",{class:[`${r}-popover-arrow`,e],style:t}))}const RA=xe({name:"PopoverBody",inheritAttrs:!1,props:CC,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i}=nt(e),a=Ie("Popover","-popover",FA,si,e,r),l=M(null),s=Oe("NPopover"),u=M(null),d=M(e.show),c=M(!1);kt(()=>{const{show:w}=e;w&&!X4()&&!e.internalDeactivateImmediately&&(c.value=!0)});const h=I(()=>{const{trigger:w,onClickoutside:A}=e,$=[],{positionManuallyRef:{value:B}}=s;return B||(w==="click"&&!A&&$.push([Oi,C,void 0,{capture:!0}]),w==="hover"&&$.push([gk,k])),A&&$.push([Oi,C,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&c.value)&&$.push([bn,e.show]),$}),f=I(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:A,cubicBezierEaseOut:$},self:{space:B,spaceArrow:U,padding:N,fontSize:K,textColor:H,dividerColor:T,color:z,boxShadow:F,borderRadius:y,arrowHeight:re,arrowOffset:te,arrowOffsetVertical:j}}=a.value;return{"--n-box-shadow":F,"--n-bezier":w,"--n-bezier-ease-in":A,"--n-bezier-ease-out":$,"--n-font-size":K,"--n-text-color":H,"--n-color":z,"--n-divider-color":T,"--n-border-radius":y,"--n-arrow-height":re,"--n-arrow-offset":te,"--n-arrow-offset-vertical":j,"--n-padding":N,"--n-space":B,"--n-space-arrow":U}}),p=I(()=>{const w=e.width==="trigger"?void 0:So(e.width),A=[];w&&A.push({width:w});const{maxWidth:$,minWidth:B}=e;return $&&A.push({maxWidth:So($)}),B&&A.push({maxWidth:So(B)}),i||A.push(f.value),A}),g=i?vt("popover",void 0,f,e):void 0;s.setBodyInstance({syncPosition:v}),Xt(()=>{s.setBodyInstance(null)}),at(Be(e,"show"),w=>{e.animated||(w?d.value=!0:d.value=!1)});function v(){var w;(w=l.value)===null||w===void 0||w.syncPosition()}function b(w){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(w)}function x(w){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(w)}function k(w){e.trigger==="hover"&&!_().contains(zi(w))&&s.handleMouseMoveOutside(w)}function C(w){(e.trigger==="click"&&!_().contains(zi(w))||e.onClickoutside)&&s.handleClickOutside(w)}function _(){return s.getTriggerElement()}Je(Na,u),Je(Es,null),Je(Ss,null);function R(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&c.value))return null;let A;const $=s.internalRenderBodyRef.value,{value:B}=r;if($)A=$([`${B}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${B}-popover-shared--overlap`,e.showArrow&&`${B}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${B}-popover-shared--center-arrow`],u,p.value,b,x);else{const{value:U}=s.extraClassRef,{internalTrapFocus:N}=e,K=!Mi(t.header)||!Mi(t.footer),H=()=>{var T,z;const F=K?m(ft,null,bt(t.header,te=>te?m("div",{class:[`${B}-popover__header`,e.headerClass],style:e.headerStyle},te):null),bt(t.default,te=>te?m("div",{class:[`${B}-popover__content`,e.contentClass],style:e.contentStyle},t):null),bt(t.footer,te=>te?m("div",{class:[`${B}-popover__footer`,e.footerClass],style:e.footerStyle},te):null)):e.scrollable?(T=t.default)===null||T===void 0?void 0:T.call(t):m("div",{class:[`${B}-popover__content`,e.contentClass],style:e.contentStyle},t),y=e.scrollable?m(gC,{contentClass:K?void 0:`${B}-popover__content ${(z=e.contentClass)!==null&&z!==void 0?z:""}`,contentStyle:K?void 0:e.contentStyle},{default:()=>F}):F,re=e.showArrow?wC({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:B}):null;return[y,re]};A=m("div",bo({class:[`${B}-popover`,`${B}-popover-shared`,g==null?void 0:g.themeClass.value,U.map(T=>`${B}-${T}`),{[`${B}-popover--scrollable`]:e.scrollable,[`${B}-popover--show-header-or-footer`]:K,[`${B}-popover--raw`]:e.raw,[`${B}-popover-shared--overlap`]:e.overlap,[`${B}-popover-shared--show-arrow`]:e.showArrow,[`${B}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:p.value,onKeydown:s.handleKeydown,onMouseenter:b,onMouseleave:x},o),N?m(xp,{active:e.show,autoFocus:!0},{default:H}):H())}return Po(A,h.value)}return{displayed:c,namespace:n,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Mo(e),followerEnabled:d,renderContentNode:R}},render(){return m(Fs,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Mo.tdkey},{default:()=>this.animated?m(ho,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),$A=Object.keys(CC),PA={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function MA(e,t,o){PA[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...a)=>{r(...a),i(...a)}:e.props[n]=i})}const Da={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Mo.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},AA=Object.assign(Object.assign(Object.assign({},Ie.props),Da),{internalOnAfterLeave:Function,internalRenderBody:Function}),Ka=xe({name:"Popover",inheritAttrs:!1,props:AA,__popover__:!0,setup(e){const t=Cr(),o=M(null),n=I(()=>e.show),r=M(e.defaultShow),i=to(n,r),a=gt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:T}=e;return!!(T!=null&&T())},s=()=>l()?!1:i.value,u=Jl(e,["arrow","showArrow"]),d=I(()=>e.overlap?!1:u.value);let c=null;const h=M(null),f=M(null),p=gt(()=>e.x!==void 0&&e.y!==void 0);function g(T){const{"onUpdate:show":z,onUpdateShow:F,onShow:y,onHide:re}=e;r.value=T,z&&$e(z,T),F&&$e(F,T),T&&y&&$e(y,!0),T&&re&&$e(re,!1)}function v(){c&&c.syncPosition()}function b(){const{value:T}=h;T&&(window.clearTimeout(T),h.value=null)}function x(){const{value:T}=f;T&&(window.clearTimeout(T),f.value=null)}function k(){const T=l();if(e.trigger==="focus"&&!T){if(s())return;g(!0)}}function C(){const T=l();if(e.trigger==="focus"&&!T){if(!s())return;g(!1)}}function _(){const T=l();if(e.trigger==="hover"&&!T){if(x(),h.value!==null||s())return;const z=()=>{g(!0),h.value=null},{delay:F}=e;F===0?z():h.value=window.setTimeout(z,F)}}function R(){const T=l();if(e.trigger==="hover"&&!T){if(b(),f.value!==null||!s())return;const z=()=>{g(!1),f.value=null},{duration:F}=e;F===0?z():f.value=window.setTimeout(z,F)}}function w(){R()}function A(T){var z;s()&&(e.trigger==="click"&&(b(),x(),g(!1)),(z=e.onClickoutside)===null||z===void 0||z.call(e,T))}function $(){if(e.trigger==="click"&&!l()){b(),x();const T=!s();g(T)}}function B(T){e.internalTrapFocus&&T.key==="Escape"&&(b(),x(),g(!1))}function U(T){r.value=T}function N(){var T;return(T=o.value)===null||T===void 0?void 0:T.targetRef}function K(T){c=T}return Je("NPopover",{getTriggerElement:N,handleKeydown:B,handleMouseEnter:_,handleMouseLeave:R,handleClickOutside:A,handleMouseMoveOutside:w,setBodyInstance:K,positionManuallyRef:p,isMountedRef:t,zIndexRef:Be(e,"zIndex"),extraClassRef:Be(e,"internalExtraClass"),internalRenderBodyRef:Be(e,"internalRenderBody")}),kt(()=>{i.value&&l()&&g(!1)}),{binderInstRef:o,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:s,setShow:U,handleClick:$,handleMouseEnter:_,handleMouseLeave:R,handleFocus:k,handleBlur:C,syncPosition:v}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(o.activator?n=Zf(o,"activator"):n=Zf(o,"trigger"),n)){n=qo(n),n=n.type===ys?m("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:u=>{l.forEach(d=>{d.onBlur(u)})},onFocus:u=>{l.forEach(d=>{d.onFocus(u)})},onClick:u=>{l.forEach(d=>{d.onClick(u)})},onMouseenter:u=>{l.forEach(d=>{d.onMouseenter(u)})},onMouseleave:u=>{l.forEach(d=>{d.onMouseleave(u)})}};MA(n,a?"nested":t?"manual":this.trigger,s)}}return m(ks,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?Po(m("div",{style:{position:"fixed",inset:0}}),[[Pd,{enabled:i,zIndex:this.zIndex}]]):null,t?null:m(_s,null,{default:()=>n}),m(RA,ei(this.$props,$A,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),SC={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},EC={name:"Tag",common:Ne,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:u,borderColor:d,tagColor:c,opacityDisabled:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:b,borderRadiusSmall:x,fontSizeMini:k,fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:R,heightMini:w,heightTiny:A,heightSmall:$,heightMedium:B,buttonColor2Hover:U,buttonColor2Pressed:N,fontWeightStrong:K}=e;return Object.assign(Object.assign({},SC),{closeBorderRadius:x,heightTiny:w,heightSmall:A,heightMedium:$,heightLarge:B,borderRadius:x,opacityDisabled:h,fontSizeTiny:k,fontSizeSmall:C,fontSizeMedium:_,fontSizeLarge:R,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:U,colorPressedCheckable:N,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:c,colorBordered:"#0000",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:b,borderPrimary:`1px solid ${Me(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Me(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:ao(r,{lightness:.7}),closeIconColorHoverPrimary:ao(r,{lightness:.7}),closeIconColorPressedPrimary:ao(r,{lightness:.7}),closeColorHoverPrimary:Me(r,{alpha:.16}),closeColorPressedPrimary:Me(r,{alpha:.12}),borderInfo:`1px solid ${Me(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Me(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:ao(i,{alpha:.7}),closeIconColorHoverInfo:ao(i,{alpha:.7}),closeIconColorPressedInfo:ao(i,{alpha:.7}),closeColorHoverInfo:Me(i,{alpha:.16}),closeColorPressedInfo:Me(i,{alpha:.12}),borderSuccess:`1px solid ${Me(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Me(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:ao(a,{alpha:.7}),closeIconColorHoverSuccess:ao(a,{alpha:.7}),closeIconColorPressedSuccess:ao(a,{alpha:.7}),closeColorHoverSuccess:Me(a,{alpha:.16}),closeColorPressedSuccess:Me(a,{alpha:.12}),borderWarning:`1px solid ${Me(l,{alpha:.3})}`,textColorWarning:l,colorWarning:Me(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:ao(l,{alpha:.7}),closeIconColorHoverWarning:ao(l,{alpha:.7}),closeIconColorPressedWarning:ao(l,{alpha:.7}),closeColorHoverWarning:Me(l,{alpha:.16}),closeColorPressedWarning:Me(l,{alpha:.11}),borderError:`1px solid ${Me(s,{alpha:.3})}`,textColorError:s,colorError:Me(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:ao(s,{alpha:.7}),closeIconColorHoverError:ao(s,{alpha:.7}),closeIconColorPressedError:ao(s,{alpha:.7}),closeColorHoverError:Me(s,{alpha:.16}),closeColorPressedError:Me(s,{alpha:.12})})}};function BA(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:u,borderColor:d,opacityDisabled:c,tagColor:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:v,fontSizeMini:b,fontSizeTiny:x,fontSizeSmall:k,fontSizeMedium:C,heightMini:_,heightTiny:R,heightSmall:w,heightMedium:A,closeColorHover:$,closeColorPressed:B,buttonColor2Hover:U,buttonColor2Pressed:N,fontWeightStrong:K}=e;return Object.assign(Object.assign({},SC),{closeBorderRadius:v,heightTiny:_,heightSmall:R,heightMedium:w,heightLarge:A,borderRadius:v,opacityDisabled:c,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:k,fontSizeLarge:C,fontWeightStrong:K,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:U,colorPressedCheckable:N,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:$,closeColorPressed:B,borderPrimary:`1px solid ${Me(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Me(r,{alpha:.12}),colorBorderedPrimary:Me(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:Me(r,{alpha:.12}),closeColorPressedPrimary:Me(r,{alpha:.18}),borderInfo:`1px solid ${Me(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Me(i,{alpha:.12}),colorBorderedInfo:Me(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Me(i,{alpha:.12}),closeColorPressedInfo:Me(i,{alpha:.18}),borderSuccess:`1px solid ${Me(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Me(a,{alpha:.12}),colorBorderedSuccess:Me(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:Me(a,{alpha:.12}),closeColorPressedSuccess:Me(a,{alpha:.18}),borderWarning:`1px solid ${Me(l,{alpha:.35})}`,textColorWarning:l,colorWarning:Me(l,{alpha:.15}),colorBorderedWarning:Me(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:Me(l,{alpha:.12}),closeColorPressedWarning:Me(l,{alpha:.18}),borderError:`1px solid ${Me(s,{alpha:.23})}`,textColorError:s,colorError:Me(s,{alpha:.1}),colorBorderedError:Me(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:Me(s,{alpha:.12}),closeColorPressedError:Me(s,{alpha:.18})})}const Hp={name:"Tag",common:Ve,self:BA},DA={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},TA=D("tag",` - --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[X("strong",` - font-weight: var(--n-font-weight-strong); - `),G("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),G("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),G("avatar",` - display: flex; - margin: 0 6px 0 0; - `),G("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),X("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[G("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),G("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),X("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),X("icon, avatar",[X("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),X("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),X("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[Ft("disabled",[V("&:hover","background-color: var(--n-color-hover-checkable);",[Ft("checked","color: var(--n-text-color-hover-checkable);")]),V("&:active","background-color: var(--n-color-pressed-checkable);",[Ft("checked","color: var(--n-text-color-pressed-checkable);")])]),X("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[Ft("disabled",[V("&:hover","background-color: var(--n-color-checked-hover);"),V("&:active","background-color: var(--n-color-checked-pressed);")])])])]),IA=Object.assign(Object.assign(Object.assign({},Ie.props),DA),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),kC="n-tag",Tu=xe({name:"Tag",props:IA,setup(e){const t=M(null),{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=nt(e),a=Ie("Tag","-tag",TA,Hp,e,n);Je(kC,{roundRef:Be(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:f,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":v}=e;g&&g(!f),v&&v(!f),p&&p(!f)}}function s(f){if(e.triggerClickOnClose||f.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&$e(p,f)}}const u={setTextContent(f){const{value:p}=t;p&&(p.textContent=f)}},d=Gt("Tag",i,n),c=I(()=>{const{type:f,size:p,color:{color:g,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:x,closeMargin:k,borderRadius:C,opacityDisabled:_,textColorCheckable:R,textColorHoverCheckable:w,textColorPressedCheckable:A,textColorChecked:$,colorCheckable:B,colorHoverCheckable:U,colorPressedCheckable:N,colorChecked:K,colorCheckedHover:H,colorCheckedPressed:T,closeBorderRadius:z,fontWeightStrong:F,[Ee("colorBordered",f)]:y,[Ee("closeSize",p)]:re,[Ee("closeIconSize",p)]:te,[Ee("fontSize",p)]:j,[Ee("height",p)]:Z,[Ee("color",f)]:se,[Ee("textColor",f)]:pe,[Ee("border",f)]:Se,[Ee("closeIconColor",f)]:he,[Ee("closeIconColorHover",f)]:fe,[Ee("closeIconColorPressed",f)]:Ce,[Ee("closeColorHover",f)]:Y,[Ee("closeColorPressed",f)]:O}}=a.value,ze=Ro(k);return{"--n-font-weight-strong":F,"--n-avatar-size-override":`calc(${Z} - 8px)`,"--n-bezier":b,"--n-border-radius":C,"--n-border":Se,"--n-close-icon-size":te,"--n-close-color-pressed":O,"--n-close-color-hover":Y,"--n-close-border-radius":z,"--n-close-icon-color":he,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":Ce,"--n-close-icon-color-disabled":he,"--n-close-margin-top":ze.top,"--n-close-margin-right":ze.right,"--n-close-margin-bottom":ze.bottom,"--n-close-margin-left":ze.left,"--n-close-size":re,"--n-color":g||(o.value?y:se),"--n-color-checkable":B,"--n-color-checked":K,"--n-color-checked-hover":H,"--n-color-checked-pressed":T,"--n-color-hover-checkable":U,"--n-color-pressed-checkable":N,"--n-font-size":j,"--n-height":Z,"--n-opacity-disabled":_,"--n-padding":x,"--n-text-color":v||pe,"--n-text-color-checkable":R,"--n-text-color-checked":$,"--n-text-color-hover-checkable":w,"--n-text-color-pressed-checkable":A}}),h=r?vt("tag",I(()=>{let f="";const{type:p,size:g,color:{color:v,textColor:b}={}}=e;return f+=p[0],f+=g[0],v&&(f+=`a${Ma(v)}`),b&&(f+=`b${Ma(b)}`),o.value&&(f+="c"),f}),c,e):void 0;return Object.assign(Object.assign({},u),{rtlEnabled:d,mergedClsPrefix:n,contentRef:t,mergedBordered:o,handleClick:l,handleCloseClick:s,cssVars:r?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:n,closable:r,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const u=bt(s.avatar,c=>c&&m("div",{class:`${o}-tag__avatar`},c)),d=bt(s.icon,c=>c&&m("div",{class:`${o}-tag__icon`},c));return m("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:n,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:a,[`${o}-tag--avatar`]:u,[`${o}-tag--icon`]:d,[`${o}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||u,m("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?m(li,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?m("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),zA=D("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[V(">",[G("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[V("&:hover",` - color: var(--n-clear-color-hover)!important; - `),V("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),G("placeholder",` - display: flex; - `),G("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[en({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),ph=xe({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return kr("-base-clear",zA,Be(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-base-clear`},m(Xi,null,{default:()=>{var t,o;return this.show?m("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},wo(this.$slots.icon,()=>[m(Ut,{clsPrefix:e},{default:()=>m(BM,null)})])):m("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),_C=xe({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return m(_r,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?m(ph,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>m(Ut,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>wo(t.default,()=>[m(uC,null)])})}):null})}}}),FC={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function OA(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,borderColor:h,iconColor:f,iconColorDisabled:p,clearColor:g,clearColorHover:v,clearColorPressed:b,placeholderColor:x,placeholderColorDisabled:k,fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:R,fontSizeLarge:w,heightTiny:A,heightSmall:$,heightMedium:B,heightLarge:U}=e;return Object.assign(Object.assign({},FC),{fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:R,fontSizeLarge:w,heightTiny:A,heightSmall:$,heightMedium:B,heightLarge:U,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:x,placeholderColorDisabled:k,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Me(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Me(a,{alpha:.2})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Me(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Me(s,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Me(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Me(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:g,clearColorHover:v,clearColorPressed:b})}const Nd={name:"InternalSelection",common:Ve,peers:{Popover:si},self:OA},Np={name:"InternalSelection",common:Ne,peers:{Popover:Qi},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,iconColor:h,iconColorDisabled:f,clearColor:p,clearColorHover:g,clearColorPressed:v,placeholderColor:b,placeholderColorDisabled:x,fontSizeTiny:k,fontSizeSmall:C,fontSizeMedium:_,fontSizeLarge:R,heightTiny:w,heightSmall:A,heightMedium:$,heightLarge:B}=e;return Object.assign(Object.assign({},FC),{fontSizeTiny:k,fontSizeSmall:C,fontSizeMedium:_,fontSizeLarge:R,heightTiny:w,heightSmall:A,heightMedium:$,heightLarge:B,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:b,placeholderColorDisabled:x,color:r,colorDisabled:i,colorActive:Me(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Me(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Me(a,{alpha:.4})}`,caretColor:a,arrowColor:h,arrowColorDisabled:f,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Me(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Me(s,{alpha:.4})}`,colorActiveWarning:Me(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${c}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Me(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Me(d,{alpha:.4})}`,colorActiveError:Me(d,{alpha:.1}),caretColorError:d,clearColor:p,clearColorHover:g,clearColorPressed:v})}},LA=V([D("base-selection",` - --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); - --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[D("base-loading",` - color: var(--n-loading-color); - `),D("base-selection-tags","min-height: var(--n-height);"),G("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),G("state-border",` - z-index: 1; - border-color: #0000; - `),D("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[G("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),D("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[G("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),D("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[G("inner",` - max-width: 100%; - overflow: hidden; - `)]),D("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),D("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[D("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[G("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),G("render-label",` - color: var(--n-text-color); - `)]),Ft("disabled",[V("&:hover",[G("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),X("focus",[G("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),X("active",[G("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),D("base-selection-label","background-color: var(--n-color-active);"),D("base-selection-tags","background-color: var(--n-color-active);")])]),X("disabled","cursor: not-allowed;",[G("arrow",` - color: var(--n-arrow-color-disabled); - `),D("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[D("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),G("render-label",` - color: var(--n-text-color-disabled); - `)]),D("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),D("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),D("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[G("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),G("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>X(`${e}-status`,[G("state-border",`border: var(--n-border-${e});`),Ft("disabled",[V("&:hover",[G("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),X("active",[G("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),D("base-selection-label",`background-color: var(--n-color-active-${e});`),D("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),X("focus",[G("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),D("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),D("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[V("&:last-child","padding-right: 0;"),D("tag",` - font-size: 14px; - max-width: 100%; - `,[G("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),HA=xe({name:"InternalSelection",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=nt(e),n=Gt("InternalSelection",o,t),r=M(null),i=M(null),a=M(null),l=M(null),s=M(null),u=M(null),d=M(null),c=M(null),h=M(null),f=M(null),p=M(!1),g=M(!1),v=M(!1),b=Ie("InternalSelection","-internal-selection",LA,Nd,e,Be(e,"clsPrefix")),x=I(()=>e.clearable&&!e.disabled&&(v.value||e.active)),k=I(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),C=I(()=>{const q=e.selectedOption;if(q)return q[e.labelField]}),_=I(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function R(){var q;const{value:ue}=r;if(ue){const{value:ve}=i;ve&&(ve.style.width=`${ue.offsetWidth}px`,e.maxTagCount!=="responsive"&&((q=h.value)===null||q===void 0||q.sync({showAllItemsBeforeCalculate:!1})))}}function w(){const{value:q}=f;q&&(q.style.display="none")}function A(){const{value:q}=f;q&&(q.style.display="inline-block")}at(Be(e,"active"),q=>{q||w()}),at(Be(e,"pattern"),()=>{e.multiple&&Rt(R)});function $(q){const{onFocus:ue}=e;ue&&ue(q)}function B(q){const{onBlur:ue}=e;ue&&ue(q)}function U(q){const{onDeleteOption:ue}=e;ue&&ue(q)}function N(q){const{onClear:ue}=e;ue&&ue(q)}function K(q){const{onPatternInput:ue}=e;ue&&ue(q)}function H(q){var ue;(!q.relatedTarget||!(!((ue=a.value)===null||ue===void 0)&&ue.contains(q.relatedTarget)))&&$(q)}function T(q){var ue;!((ue=a.value)===null||ue===void 0)&&ue.contains(q.relatedTarget)||B(q)}function z(q){N(q)}function F(){v.value=!0}function y(){v.value=!1}function re(q){!e.active||!e.filterable||q.target!==i.value&&q.preventDefault()}function te(q){U(q)}const j=M(!1);function Z(q){if(q.key==="Backspace"&&!j.value&&!e.pattern.length){const{selectedOptions:ue}=e;ue!=null&&ue.length&&te(ue[ue.length-1])}}let se=null;function pe(q){const{value:ue}=r;if(ue){const ve=q.target.value;ue.textContent=ve,R()}e.ignoreComposition&&j.value?se=q:K(q)}function Se(){j.value=!0}function he(){j.value=!1,e.ignoreComposition&&K(se),se=null}function fe(q){var ue;g.value=!0,(ue=e.onPatternFocus)===null||ue===void 0||ue.call(e,q)}function Ce(q){var ue;g.value=!1,(ue=e.onPatternBlur)===null||ue===void 0||ue.call(e,q)}function Y(){var q,ue;if(e.filterable)g.value=!1,(q=u.value)===null||q===void 0||q.blur(),(ue=i.value)===null||ue===void 0||ue.blur();else if(e.multiple){const{value:ve}=l;ve==null||ve.blur()}else{const{value:ve}=s;ve==null||ve.blur()}}function O(){var q,ue,ve;e.filterable?(g.value=!1,(q=u.value)===null||q===void 0||q.focus()):e.multiple?(ue=l.value)===null||ue===void 0||ue.focus():(ve=s.value)===null||ve===void 0||ve.focus()}function ze(){const{value:q}=i;q&&(A(),q.focus())}function je(){const{value:q}=i;q&&q.blur()}function W(q){const{value:ue}=d;ue&&ue.setTextContent(`+${q}`)}function ee(){const{value:q}=c;return q}function ge(){return i.value}let we=null;function le(){we!==null&&window.clearTimeout(we)}function ne(){e.active||(le(),we=window.setTimeout(()=>{_.value&&(p.value=!0)},100))}function ce(){le()}function J(q){q||(le(),p.value=!1)}at(_,q=>{q||(p.value=!1)}),ut(()=>{kt(()=>{const q=u.value;q&&(e.disabled?q.removeAttribute("tabindex"):q.tabIndex=g.value?-1:0)})}),ty(a,e.onResize);const{inlineThemeDisabled:ie}=e,de=I(()=>{const{size:q}=e,{common:{cubicBezierEaseInOut:ue},self:{borderRadius:ve,color:De,placeholderColor:Ke,textColor:Qe,paddingSingle:st,paddingMultiple:Xe,caretColor:pt,colorDisabled:Ye,textColorDisabled:Le,placeholderColorDisabled:et,colorActive:Q,boxShadowFocus:me,boxShadowActive:Pe,boxShadowHover:He,border:We,borderFocus:Ge,borderHover:qe,borderActive:tt,arrowColor:yt,arrowColorDisabled:Bt,loadingColor:_t,colorActiveWarning:xo,boxShadowFocusWarning:Ao,boxShadowActiveWarning:Bo,boxShadowHoverWarning:No,borderWarning:Vo,borderFocusWarning:un,borderHoverWarning:dn,borderActiveWarning:be,colorActiveError:Ae,boxShadowFocusError:rt,boxShadowActiveError:wt,boxShadowHoverError:zt,borderError:Mt,borderFocusError:Yt,borderHoverError:oo,borderActiveError:En,clearColor:nr,clearColorHover:rr,clearColorPressed:ui,clearSize:Qa,arrowSize:Ja,[Ee("height",q)]:el,[Ee("fontSize",q)]:tl}}=b.value,Rr=Ro(st),$r=Ro(Xe);return{"--n-bezier":ue,"--n-border":We,"--n-border-active":tt,"--n-border-focus":Ge,"--n-border-hover":qe,"--n-border-radius":ve,"--n-box-shadow-active":Pe,"--n-box-shadow-focus":me,"--n-box-shadow-hover":He,"--n-caret-color":pt,"--n-color":De,"--n-color-active":Q,"--n-color-disabled":Ye,"--n-font-size":tl,"--n-height":el,"--n-padding-single-top":Rr.top,"--n-padding-multiple-top":$r.top,"--n-padding-single-right":Rr.right,"--n-padding-multiple-right":$r.right,"--n-padding-single-left":Rr.left,"--n-padding-multiple-left":$r.left,"--n-padding-single-bottom":Rr.bottom,"--n-padding-multiple-bottom":$r.bottom,"--n-placeholder-color":Ke,"--n-placeholder-color-disabled":et,"--n-text-color":Qe,"--n-text-color-disabled":Le,"--n-arrow-color":yt,"--n-arrow-color-disabled":Bt,"--n-loading-color":_t,"--n-color-active-warning":xo,"--n-box-shadow-focus-warning":Ao,"--n-box-shadow-active-warning":Bo,"--n-box-shadow-hover-warning":No,"--n-border-warning":Vo,"--n-border-focus-warning":un,"--n-border-hover-warning":dn,"--n-border-active-warning":be,"--n-color-active-error":Ae,"--n-box-shadow-focus-error":rt,"--n-box-shadow-active-error":wt,"--n-box-shadow-hover-error":zt,"--n-border-error":Mt,"--n-border-focus-error":Yt,"--n-border-hover-error":oo,"--n-border-active-error":En,"--n-clear-size":Qa,"--n-clear-color":nr,"--n-clear-color-hover":rr,"--n-clear-color-pressed":ui,"--n-arrow-size":Ja}}),ae=ie?vt("internal-selection",I(()=>e.size[0]),de,e):void 0;return{mergedTheme:b,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:n,patternInputFocused:g,filterablePlaceholder:k,label:C,selected:_,showTagsPanel:p,isComposing:j,counterRef:d,counterWrapperRef:c,patternInputMirrorRef:r,patternInputRef:i,selfRef:a,multipleElRef:l,singleElRef:s,patternInputWrapperRef:u,overflowRef:h,inputTagElRef:f,handleMouseDown:re,handleFocusin:H,handleClear:z,handleMouseEnter:F,handleMouseLeave:y,handleDeleteOption:te,handlePatternKeyDown:Z,handlePatternInputInput:pe,handlePatternInputBlur:Ce,handlePatternInputFocus:fe,handleMouseEnterCounter:ne,handleMouseLeaveCounter:ce,handleFocusout:T,handleCompositionEnd:he,handleCompositionStart:Se,onPopoverUpdateShow:J,focus:O,focusInput:ze,blur:Y,blurInput:je,updateCounter:W,getCounter:ee,getTail:ge,renderLabel:e.renderLabel,cssVars:ie?void 0:de,themeClass:ae==null?void 0:ae.themeClass,onRender:ae==null?void 0:ae.onRender}},render(){const{status:e,multiple:t,size:o,disabled:n,filterable:r,maxTagCount:i,bordered:a,clsPrefix:l,ellipsisTagPopoverProps:s,onRender:u,renderTag:d,renderLabel:c}=this;u==null||u();const h=i==="responsive",f=typeof i=="number",p=h||f,g=m(Yf,null,{default:()=>m(_C,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,x;return(x=(b=this.$slots).arrow)===null||x===void 0?void 0:x.call(b)}})});let v;if(t){const{labelField:b}=this,x=K=>m("div",{class:`${l}-base-selection-tag-wrapper`,key:K.value},d?d({option:K,handleClose:()=>{this.handleDeleteOption(K)}}):m(Tu,{size:o,closable:!K.disabled,disabled:n,onClose:()=>{this.handleDeleteOption(K)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>c?c(K,!0):Jt(K[b],K,!0)})),k=()=>(f?this.selectedOptions.slice(0,i):this.selectedOptions).map(x),C=r?m("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},m("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),m("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,_=h?()=>m("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},m(Tu,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let R;if(f){const K=this.selectedOptions.length-i;K>0&&(R=m("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},m(Tu,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${K}`})))}const w=h?r?m(qg,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:k,counter:_,tail:()=>C}):m(qg,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:k,counter:_}):f&&R?k().concat(R):k(),A=p?()=>m("div",{class:`${l}-base-selection-popover`},h?k():this.selectedOptions.map(x)):void 0,$=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,U=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},m("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,N=r?m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},w,h?null:C,g):m("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:n?void 0:0},w,g);v=m(ft,null,p?m(Ka,Object.assign({},$,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>N,default:A}):N,U)}else if(r){const b=this.pattern||this.isComposing,x=this.active?!b:!this.selected,k=this.active?!1:this.selected;v=m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:qf(this.label)},m("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),k?m("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},m("div",{class:`${l}-base-selection-overlay__wrapper`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Jt(this.label,this.selectedOption,!0))):null,x?m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},m("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else v=m("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?m("div",{class:`${l}-base-selection-input`,title:qf(this.label),key:"input"},m("div",{class:`${l}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):Jt(this.label,this.selectedOption,!0))):m("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},m("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),g);return m("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},v,a?m("div",{class:`${l}-base-selection__border`}):null,a?m("div",{class:`${l}-base-selection__state-border`}):null)}}),X0=xe({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=M(null),o=M(e.value),n=M(e.value),r=M("up"),i=M(!1),a=I(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${r.value}-scroll`:null),l=I(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${r.value}-scroll`:null);at(Be(e,"value"),(d,c)=>{o.value=c,n.value=d,Rt(s)});function s(){const d=e.newOriginalNumber,c=e.oldOriginalNumber;c===void 0||d===void 0||(d>c?u("up"):c>d&&u("down"))}function u(d){r.value=d,i.value=!1,Rt(()=>{var c;(c=t.value)===null||c===void 0||c.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return m("span",{ref:t,class:`${d}-base-slot-machine-number`},o.value!==null?m("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},o.value):null,m("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},m("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},n.value)),o.value!==null?m("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},o.value):null)}}}),{cubicBezierEaseInOut:Br}=sn;function RC({duration:e=".2s",delay:t=".1s"}={}){return[V("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),V("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),V("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${Br}, - max-width ${e} ${Br} ${t}, - margin-left ${e} ${Br} ${t}, - margin-right ${e} ${Br} ${t}; - `),V("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${Br} ${t}, - max-width ${e} ${Br}, - margin-left ${e} ${Br}, - margin-right ${e} ${Br}; - `)]}const{cubicBezierEaseOut:ca}=sn;function NA({duration:e=".2s"}={}){return[V("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${ca}, - max-width ${e} ${ca}, - transform ${e} ${ca} - `}),V("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${ca}, - max-width ${e} ${ca}, - transform ${e} ${ca} - `}),V("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),V("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),V("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),V("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const VA=V([V("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),V("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),V("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),V("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),D("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[D("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[NA({duration:".2s"}),RC({duration:".2s",delay:"0s"}),D("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[X("top",{transform:"translateY(-100%)"}),X("bottom",{transform:"translateY(100%)"}),X("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),X("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),D("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[X("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),X("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),G("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[X("not-number",` - right: unset; - left: 0; - `)])])])])]),jA=xe({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){kr("-base-slot-machine",VA,Be(e,"clsPrefix"));const t=M(),o=M(),n=I(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const r=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)r.push(i%10),i/=10,i=Math.floor(i);return r.reverse(),r});return at(Be(e,"value"),(r,i)=>{typeof r=="string"?(o.value=void 0,t.value=void 0):typeof i=="string"?(o.value=r,t.value=void 0):(o.value=r,t.value=i)}),()=>{const{value:r,clsPrefix:i}=e;return typeof r=="number"?m("span",{class:`${i}-base-slot-machine`},m(ip,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>n.value.map((a,l)=>m(X0,{clsPrefix:i,key:n.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:o.value,value:a}))}),m(Ds,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max<r?m(X0,{clsPrefix:i,value:"+"}):null})):m("span",{class:`${i}-base-slot-machine`},r)}}}),$C={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},WA={name:"Alert",common:Ne,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,dividerColor:r,inputColor:i,textColor1:a,textColor2:l,closeColorHover:s,closeColorPressed:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,infoColorSuppl:f,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:v,fontSize:b}=e;return Object.assign(Object.assign({},$C),{fontSize:b,lineHeight:t,titleFontWeight:n,borderRadius:o,border:`1px solid ${r}`,color:i,titleTextColor:a,iconColor:l,contentTextColor:l,closeBorderRadius:o,closeColorHover:s,closeColorPressed:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,borderInfo:`1px solid ${Me(f,{alpha:.35})}`,colorInfo:Me(f,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:f,contentTextColorInfo:l,closeColorHoverInfo:s,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:c,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Me(p,{alpha:.35})}`,colorSuccess:Me(p,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:p,contentTextColorSuccess:l,closeColorHoverSuccess:s,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:c,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Me(g,{alpha:.35})}`,colorWarning:Me(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:l,closeColorHoverWarning:s,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:c,closeIconColorPressedWarning:h,borderError:`1px solid ${Me(v,{alpha:.35})}`,colorError:Me(v,{alpha:.25}),titleTextColorError:a,iconColorError:v,contentTextColorError:l,closeColorHoverError:s,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:c,closeIconColorPressedError:h})}};function UA(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,baseColor:r,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:u,closeColorPressed:d,closeIconColor:c,closeIconColorHover:h,closeIconColorPressed:f,infoColor:p,successColor:g,warningColor:v,errorColor:b,fontSize:x}=e;return Object.assign(Object.assign({},$C),{fontSize:x,lineHeight:t,titleFontWeight:n,borderRadius:o,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:o,closeColorHover:u,closeColorPressed:d,closeIconColor:c,closeIconColorHover:h,closeIconColorPressed:f,borderInfo:`1px solid ${Ue(r,Me(p,{alpha:.25}))}`,colorInfo:Ue(r,Me(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:u,closeColorPressedInfo:d,closeIconColorInfo:c,closeIconColorHoverInfo:h,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Ue(r,Me(g,{alpha:.25}))}`,colorSuccess:Ue(r,Me(g,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:s,closeColorHoverSuccess:u,closeColorPressedSuccess:d,closeIconColorSuccess:c,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Ue(r,Me(v,{alpha:.33}))}`,colorWarning:Ue(r,Me(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:s,closeColorHoverWarning:u,closeColorPressedWarning:d,closeIconColorWarning:c,closeIconColorHoverWarning:h,closeIconColorPressedWarning:f,borderError:`1px solid ${Ue(r,Me(b,{alpha:.25}))}`,colorError:Ue(r,Me(b,{alpha:.08})),titleTextColorError:l,iconColorError:b,contentTextColorError:s,closeColorHoverError:u,closeColorPressedError:d,closeIconColorError:c,closeIconColorHoverError:h,closeIconColorPressedError:f})}const PC={name:"Alert",common:Ve,self:UA},{cubicBezierEaseInOut:Ln,cubicBezierEaseOut:KA,cubicBezierEaseIn:GA}=sn;function Vp({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:n="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",u=l?"enter":"leave";return[V(`&.fade-in-height-expand-transition-${u}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),V(`&.fade-in-height-expand-transition-${u}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),V(`&.fade-in-height-expand-transition-${u}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${Ln} ${n}, - opacity ${t} ${KA} ${n}, - margin-top ${t} ${Ln} ${n}, - margin-bottom ${t} ${Ln} ${n}, - padding-top ${t} ${Ln} ${n}, - padding-bottom ${t} ${Ln} ${n} - ${o?`,${o}`:""} - `),V(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${Ln}, - opacity ${t} ${GA}, - margin-top ${t} ${Ln}, - margin-bottom ${t} ${Ln}, - padding-top ${t} ${Ln}, - padding-bottom ${t} ${Ln} - ${o?`,${o}`:""} - `)]}const qA=D("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[G("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),X("closable",[D("alert-body",[G("title",` - padding-right: 24px; - `)])]),G("icon",{color:"var(--n-icon-color)"}),D("alert-body",{padding:"var(--n-padding)"},[G("title",{color:"var(--n-title-text-color)"}),G("content",{color:"var(--n-content-text-color)"})]),Vp({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),G("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),G("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),X("show-icon",[D("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),X("right-adjust",[D("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),D("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[G("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[V("& +",[G("content",{marginTop:"9px"})])]),G("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),G("icon",{transition:"color .3s var(--n-bezier)"})]),ZA=Object.assign(Object.assign({},Ie.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),XA=xe({name:"Alert",inheritAttrs:!1,props:ZA,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=Ie("Alert","-alert",qA,PC,e,t),a=Gt("Alert",r,t),l=I(()=>{const{common:{cubicBezierEaseInOut:f},self:p}=i.value,{fontSize:g,borderRadius:v,titleFontWeight:b,lineHeight:x,iconSize:k,iconMargin:C,iconMarginRtl:_,closeIconSize:R,closeBorderRadius:w,closeSize:A,closeMargin:$,closeMarginRtl:B,padding:U}=p,{type:N}=e,{left:K,right:H}=Ro(C);return{"--n-bezier":f,"--n-color":p[Ee("color",N)],"--n-close-icon-size":R,"--n-close-border-radius":w,"--n-close-color-hover":p[Ee("closeColorHover",N)],"--n-close-color-pressed":p[Ee("closeColorPressed",N)],"--n-close-icon-color":p[Ee("closeIconColor",N)],"--n-close-icon-color-hover":p[Ee("closeIconColorHover",N)],"--n-close-icon-color-pressed":p[Ee("closeIconColorPressed",N)],"--n-icon-color":p[Ee("iconColor",N)],"--n-border":p[Ee("border",N)],"--n-title-text-color":p[Ee("titleTextColor",N)],"--n-content-text-color":p[Ee("contentTextColor",N)],"--n-line-height":x,"--n-border-radius":v,"--n-font-size":g,"--n-title-font-weight":b,"--n-icon-size":k,"--n-icon-margin":C,"--n-icon-margin-rtl":_,"--n-close-size":A,"--n-close-margin":$,"--n-close-margin-rtl":B,"--n-padding":U,"--n-icon-margin-left":K,"--n-icon-margin-right":H}}),s=n?vt("alert",I(()=>e.type[0]),l,e):void 0,u=M(!0),d=()=>{const{onAfterLeave:f,onAfterHide:p}=e;f&&f(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:o,visible:u,handleCloseClick:()=>{var f;Promise.resolve((f=e.onClose)===null||f===void 0?void 0:f.call(e)).then(p=>{p!==!1&&(u.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m(Ds,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:o}=this,n={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?m("div",Object.assign({},bo(this.$attrs,n)),this.closable&&m(li,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&m("div",{class:`${t}-alert__border`}),this.showIcon&&m("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},wo(o.icon,()=>[m(Ut,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return m(Od,null);case"info":return m(is,null);case"warning":return m(Ld,null);case"error":return m(zd,null);default:return null}}})])),m("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},bt(o.header,r=>{const i=r||this.title;return i?m("div",{class:`${t}-alert-body__title`},i):null}),o.default&&m("div",{class:`${t}-alert-body__content`},o))):null}})}}),YA={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function MC(e){const{borderRadius:t,railColor:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},YA),{borderRadius:t,railColor:o,railColorActive:n,linkColor:Me(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:n})}const QA={name:"Anchor",common:Ve,self:MC},JA={name:"Anchor",common:Ne,self:MC};function nd(e){return e.type==="group"}function AC(e){return e.type==="ignored"}function qc(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function BC(e,t){return{getIsGroup:nd,getIgnored:AC,getKey(n){return nd(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function e9(e,t,o,n){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(nd(l)){const s=r(l[n]);s.length&&a.push(Object.assign({},l,{[n]:s}))}else{if(AC(l))continue;t(o,l)&&a.push(l)}return a}return r(e)}function t9(e,t,o){const n=new Map;return e.forEach(r=>{nd(r)?r[o].forEach(i=>{n.set(i[t],i)}):n.set(r[t],r)}),n}const o9=wn&&"chrome"in window;wn&&navigator.userAgent.includes("Firefox");const DC=wn&&navigator.userAgent.includes("Safari")&&!o9,TC={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Sn={name:"Input",common:Ne,self(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:u,errorColor:d,errorColorHover:c,borderRadius:h,lineHeight:f,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,heightTiny:x,heightSmall:k,heightMedium:C,heightLarge:_,clearColor:R,clearColorHover:w,clearColorPressed:A,placeholderColor:$,placeholderColorDisabled:B,iconColor:U,iconColorDisabled:N,iconColorHover:K,iconColorPressed:H}=e;return Object.assign(Object.assign({},TC),{countTextColorDisabled:n,countTextColor:o,heightTiny:x,heightSmall:k,heightMedium:C,heightLarge:_,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:b,lineHeight:f,lineHeightTextarea:f,borderRadius:h,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:$,placeholderColorDisabled:B,color:a,colorDisabled:l,colorFocus:Me(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Me(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:Me(s,{alpha:.1}),borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 8px 0 ${Me(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${c}`,colorFocusError:Me(d,{alpha:.1}),borderFocusError:`1px solid ${c}`,boxShadowFocusError:`0 0 8px 0 ${Me(d,{alpha:.3})}`,caretColorError:d,clearColor:R,clearColorHover:w,clearColorPressed:A,iconColor:U,iconColorDisabled:N,iconColorHover:K,iconColorPressed:H,suffixTextColor:t})}};function n9(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:u,warningColorHover:d,errorColor:c,errorColorHover:h,borderRadius:f,lineHeight:p,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:x,heightTiny:k,heightSmall:C,heightMedium:_,heightLarge:R,actionColor:w,clearColor:A,clearColorHover:$,clearColorPressed:B,placeholderColor:U,placeholderColorDisabled:N,iconColor:K,iconColorDisabled:H,iconColorHover:T,iconColorPressed:z}=e;return Object.assign(Object.assign({},TC),{countTextColorDisabled:n,countTextColor:o,heightTiny:k,heightSmall:C,heightMedium:_,heightLarge:R,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:x,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:w,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:r,placeholderColor:U,placeholderColorDisabled:N,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Me(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:u,borderWarning:`1px solid ${u}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${Me(u,{alpha:.2})}`,caretColorWarning:u,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${Me(c,{alpha:.2})}`,caretColorError:c,clearColor:A,clearColorHover:$,clearColorPressed:B,iconColor:K,iconColorDisabled:H,iconColorHover:T,iconColorPressed:z,suffixTextColor:t})}const Xo={name:"Input",common:Ve,self:n9},IC="n-input";function r9(e){let t=0;for(const o of e)t++;return t}function du(e){return e===""||e==null}function i9(e){const t=M(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){r();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function n(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:u,beforeText:d,afterText:c}=a;let h=s.length;if(s.endsWith(c))h=s.length-c.length;else if(s.startsWith(d))h=d.length;else{const f=d[u-1],p=s.indexOf(f,u-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function r(){t.value=null}return at(e,r),{recordCursor:o,restoreCursor:n}}const Y0=xe({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:n,mergedClsPrefixRef:r,countGraphemesRef:i}=Oe(IC),a=I(()=>{const{value:l}=o;return l===null||Array.isArray(l)?0:(i.value||r9)(l)});return()=>{const{value:l}=n,{value:s}=o;return m("span",{class:`${r.value}-input-word-count`},Xf(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),a9=D("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[G("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),G("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),G("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[V("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),V("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),V("&:-webkit-autofill ~",[G("placeholder","display: none;")])]),X("round",[Ft("textarea","border-radius: calc(var(--n-height) / 2);")]),G("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[V("span",` - width: 100%; - display: inline-block; - `)]),X("textarea",[G("placeholder","overflow: visible;")]),Ft("autosize","width: 100%;"),X("autosize",[G("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),D("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),G("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),G("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[V("&[type=password]::-ms-reveal","display: none;"),V("+",[G("placeholder",` - display: flex; - align-items: center; - `)])]),Ft("textarea",[G("placeholder","white-space: nowrap;")]),G("eye",` - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `),X("textarea","width: 100%;",[D("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),X("resizable",[D("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),G("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - scroll-padding-block-end: var(--n-padding-vertical); - `),G("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),X("pair",[G("input-el, placeholder","text-align: center;"),G("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[D("icon",` - color: var(--n-icon-color); - `),D("base-icon",` - color: var(--n-icon-color); - `)])]),X("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[G("border","border: var(--n-border-disabled);"),G("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),G("placeholder","color: var(--n-placeholder-color-disabled);"),G("separator","color: var(--n-text-color-disabled);",[D("icon",` - color: var(--n-icon-color-disabled); - `),D("base-icon",` - color: var(--n-icon-color-disabled); - `)]),D("input-word-count",` - color: var(--n-count-text-color-disabled); - `),G("suffix, prefix","color: var(--n-text-color-disabled);",[D("icon",` - color: var(--n-icon-color-disabled); - `),D("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),Ft("disabled",[G("eye",` - color: var(--n-icon-color); - cursor: pointer; - `,[V("&:hover",` - color: var(--n-icon-color-hover); - `),V("&:active",` - color: var(--n-icon-color-pressed); - `)]),V("&:hover",[G("state-border","border: var(--n-border-hover);")]),X("focus","background-color: var(--n-color-focus);",[G("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),G("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),G("state-border",` - border-color: #0000; - z-index: 1; - `),G("prefix","margin-right: 4px;"),G("suffix",` - margin-left: 4px; - `),G("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[D("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),D("base-clear",` - font-size: var(--n-icon-size); - `,[G("placeholder",[D("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),V(">",[D("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),D("base-icon",` - font-size: var(--n-icon-size); - `)]),D("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>X(`${e}-status`,[Ft("disabled",[D("base-loading",` - color: var(--n-loading-color-${e}) - `),G("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),G("state-border",` - border: var(--n-border-${e}); - `),V("&:hover",[G("state-border",` - border: var(--n-border-hover-${e}); - `)]),V("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[G("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),X("focus",` - background-color: var(--n-color-focus-${e}); - `,[G("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),l9=D("input",[X("disabled",[G("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),s9=Object.assign(Object.assign({},Ie.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),rn=xe({name:"Input",props:s9,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=Ie("Input","-input",a9,Xo,e,t);DC&&kr("-input-safari",l9,t);const a=M(null),l=M(null),s=M(null),u=M(null),d=M(null),c=M(null),h=M(null),f=i9(h),p=M(null),{localeRef:g}=Er("Input"),v=M(e.defaultValue),b=Be(e,"value"),x=to(b,v),k=Dn(e),{mergedSizeRef:C,mergedDisabledRef:_,mergedStatusRef:R}=k,w=M(!1),A=M(!1),$=M(!1),B=M(!1);let U=null;const N=I(()=>{const{placeholder:be,pair:Ae}=e;return Ae?Array.isArray(be)?be:be===void 0?["",""]:[be,be]:be===void 0?[g.value.placeholder]:[be]}),K=I(()=>{const{value:be}=$,{value:Ae}=x,{value:rt}=N;return!be&&(du(Ae)||Array.isArray(Ae)&&du(Ae[0]))&&rt[0]}),H=I(()=>{const{value:be}=$,{value:Ae}=x,{value:rt}=N;return!be&&rt[1]&&(du(Ae)||Array.isArray(Ae)&&du(Ae[1]))}),T=gt(()=>e.internalForceFocus||w.value),z=gt(()=>{if(_.value||e.readonly||!e.clearable||!T.value&&!A.value)return!1;const{value:be}=x,{value:Ae}=T;return e.pair?!!(Array.isArray(be)&&(be[0]||be[1]))&&(A.value||Ae):!!be&&(A.value||Ae)}),F=I(()=>{const{showPasswordOn:be}=e;if(be)return be;if(e.showPasswordToggle)return"click"}),y=M(!1),re=I(()=>{const{textDecoration:be}=e;return be?Array.isArray(be)?be.map(Ae=>({textDecoration:Ae})):[{textDecoration:be}]:["",""]}),te=M(void 0),j=()=>{var be,Ae;if(e.type==="textarea"){const{autosize:rt}=e;if(rt&&(te.value=(Ae=(be=p.value)===null||be===void 0?void 0:be.$el)===null||Ae===void 0?void 0:Ae.offsetWidth),!l.value||typeof rt=="boolean")return;const{paddingTop:wt,paddingBottom:zt,lineHeight:Mt}=window.getComputedStyle(l.value),Yt=Number(wt.slice(0,-2)),oo=Number(zt.slice(0,-2)),En=Number(Mt.slice(0,-2)),{value:nr}=s;if(!nr)return;if(rt.minRows){const rr=Math.max(rt.minRows,1),ui=`${Yt+oo+En*rr}px`;nr.style.minHeight=ui}if(rt.maxRows){const rr=`${Yt+oo+En*rt.maxRows}px`;nr.style.maxHeight=rr}}},Z=I(()=>{const{maxlength:be}=e;return be===void 0?void 0:Number(be)});ut(()=>{const{value:be}=x;Array.isArray(be)||yt(be)});const se=xr().proxy;function pe(be,Ae){const{onUpdateValue:rt,"onUpdate:value":wt,onInput:zt}=e,{nTriggerFormInput:Mt}=k;rt&&$e(rt,be,Ae),wt&&$e(wt,be,Ae),zt&&$e(zt,be,Ae),v.value=be,Mt()}function Se(be,Ae){const{onChange:rt}=e,{nTriggerFormChange:wt}=k;rt&&$e(rt,be,Ae),v.value=be,wt()}function he(be){const{onBlur:Ae}=e,{nTriggerFormBlur:rt}=k;Ae&&$e(Ae,be),rt()}function fe(be){const{onFocus:Ae}=e,{nTriggerFormFocus:rt}=k;Ae&&$e(Ae,be),rt()}function Ce(be){const{onClear:Ae}=e;Ae&&$e(Ae,be)}function Y(be){const{onInputBlur:Ae}=e;Ae&&$e(Ae,be)}function O(be){const{onInputFocus:Ae}=e;Ae&&$e(Ae,be)}function ze(){const{onDeactivate:be}=e;be&&$e(be)}function je(){const{onActivate:be}=e;be&&$e(be)}function W(be){const{onClick:Ae}=e;Ae&&$e(Ae,be)}function ee(be){const{onWrapperFocus:Ae}=e;Ae&&$e(Ae,be)}function ge(be){const{onWrapperBlur:Ae}=e;Ae&&$e(Ae,be)}function we(){$.value=!0}function le(be){$.value=!1,be.target===c.value?ne(be,1):ne(be,0)}function ne(be,Ae=0,rt="input"){const wt=be.target.value;if(yt(wt),be instanceof InputEvent&&!be.isComposing&&($.value=!1),e.type==="textarea"){const{value:Mt}=p;Mt&&Mt.syncUnifiedContainer()}if(U=wt,$.value)return;f.recordCursor();const zt=ce(wt);if(zt)if(!e.pair)rt==="input"?pe(wt,{source:Ae}):Se(wt,{source:Ae});else{let{value:Mt}=x;Array.isArray(Mt)?Mt=[Mt[0],Mt[1]]:Mt=["",""],Mt[Ae]=wt,rt==="input"?pe(Mt,{source:Ae}):Se(Mt,{source:Ae})}se.$forceUpdate(),zt||Rt(f.restoreCursor)}function ce(be){const{countGraphemes:Ae,maxlength:rt,minlength:wt}=e;if(Ae){let Mt;if(rt!==void 0&&(Mt===void 0&&(Mt=Ae(be)),Mt>Number(rt))||wt!==void 0&&(Mt===void 0&&(Mt=Ae(be)),Mt<Number(rt)))return!1}const{allowInput:zt}=e;return typeof zt=="function"?zt(be):!0}function J(be){Y(be),be.relatedTarget===a.value&&ze(),be.relatedTarget!==null&&(be.relatedTarget===d.value||be.relatedTarget===c.value||be.relatedTarget===l.value)||(B.value=!1),q(be,"blur"),h.value=null}function ie(be,Ae){O(be),w.value=!0,B.value=!0,je(),q(be,"focus"),Ae===0?h.value=d.value:Ae===1?h.value=c.value:Ae===2&&(h.value=l.value)}function de(be){e.passivelyActivated&&(ge(be),q(be,"blur"))}function ae(be){e.passivelyActivated&&(w.value=!0,ee(be),q(be,"focus"))}function q(be,Ae){be.relatedTarget!==null&&(be.relatedTarget===d.value||be.relatedTarget===c.value||be.relatedTarget===l.value||be.relatedTarget===a.value)||(Ae==="focus"?(fe(be),w.value=!0):Ae==="blur"&&(he(be),w.value=!1))}function ue(be,Ae){ne(be,Ae,"change")}function ve(be){W(be)}function De(be){Ce(be),Ke()}function Ke(){e.pair?(pe(["",""],{source:"clear"}),Se(["",""],{source:"clear"})):(pe("",{source:"clear"}),Se("",{source:"clear"}))}function Qe(be){const{onMousedown:Ae}=e;Ae&&Ae(be);const{tagName:rt}=be.target;if(rt!=="INPUT"&&rt!=="TEXTAREA"){if(e.resizable){const{value:wt}=a;if(wt){const{left:zt,top:Mt,width:Yt,height:oo}=wt.getBoundingClientRect(),En=14;if(zt+Yt-En<be.clientX&&be.clientX<zt+Yt&&Mt+oo-En<be.clientY&&be.clientY<Mt+oo)return}}be.preventDefault(),w.value||Pe()}}function st(){var be;A.value=!0,e.type==="textarea"&&((be=p.value)===null||be===void 0||be.handleMouseEnterWrapper())}function Xe(){var be;A.value=!1,e.type==="textarea"&&((be=p.value)===null||be===void 0||be.handleMouseLeaveWrapper())}function pt(){_.value||F.value==="click"&&(y.value=!y.value)}function Ye(be){if(_.value)return;be.preventDefault();const Ae=wt=>{wt.preventDefault(),xt("mouseup",document,Ae)};if(Ct("mouseup",document,Ae),F.value!=="mousedown")return;y.value=!0;const rt=()=>{y.value=!1,xt("mouseup",document,rt)};Ct("mouseup",document,rt)}function Le(be){e.onKeyup&&$e(e.onKeyup,be)}function et(be){switch(e.onKeydown&&$e(e.onKeydown,be),be.key){case"Escape":me();break;case"Enter":Q(be);break}}function Q(be){var Ae,rt;if(e.passivelyActivated){const{value:wt}=B;if(wt){e.internalDeactivateOnEnter&&me();return}be.preventDefault(),e.type==="textarea"?(Ae=l.value)===null||Ae===void 0||Ae.focus():(rt=d.value)===null||rt===void 0||rt.focus()}}function me(){e.passivelyActivated&&(B.value=!1,Rt(()=>{var be;(be=a.value)===null||be===void 0||be.focus()}))}function Pe(){var be,Ae,rt;_.value||(e.passivelyActivated?(be=a.value)===null||be===void 0||be.focus():((Ae=l.value)===null||Ae===void 0||Ae.focus(),(rt=d.value)===null||rt===void 0||rt.focus()))}function He(){var be;!((be=a.value)===null||be===void 0)&&be.contains(document.activeElement)&&document.activeElement.blur()}function We(){var be,Ae;(be=l.value)===null||be===void 0||be.select(),(Ae=d.value)===null||Ae===void 0||Ae.select()}function Ge(){_.value||(l.value?l.value.focus():d.value&&d.value.focus())}function qe(){const{value:be}=a;be!=null&&be.contains(document.activeElement)&&be!==document.activeElement&&me()}function tt(be){if(e.type==="textarea"){const{value:Ae}=l;Ae==null||Ae.scrollTo(be)}else{const{value:Ae}=d;Ae==null||Ae.scrollTo(be)}}function yt(be){const{type:Ae,pair:rt,autosize:wt}=e;if(!rt&&wt)if(Ae==="textarea"){const{value:zt}=s;zt&&(zt.textContent=`${be??""}\r -`)}else{const{value:zt}=u;zt&&(be?zt.textContent=be:zt.innerHTML=" ")}}function Bt(){j()}const _t=M({top:"0"});function xo(be){var Ae;const{scrollTop:rt}=be.target;_t.value.top=`${-rt}px`,(Ae=p.value)===null||Ae===void 0||Ae.syncUnifiedContainer()}let Ao=null;kt(()=>{const{autosize:be,type:Ae}=e;be&&Ae==="textarea"?Ao=at(x,rt=>{!Array.isArray(rt)&&rt!==U&&yt(rt)}):Ao==null||Ao()});let Bo=null;kt(()=>{e.type==="textarea"?Bo=at(x,be=>{var Ae;!Array.isArray(be)&&be!==U&&((Ae=p.value)===null||Ae===void 0||Ae.syncUnifiedContainer())}):Bo==null||Bo()}),Je(IC,{mergedValueRef:x,maxlengthRef:Z,mergedClsPrefixRef:t,countGraphemesRef:Be(e,"countGraphemes")});const No={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,clear:Ke,focus:Pe,blur:He,select:We,deactivate:qe,activate:Ge,scrollTo:tt},Vo=Gt("Input",r,t),un=I(()=>{const{value:be}=C,{common:{cubicBezierEaseInOut:Ae},self:{color:rt,borderRadius:wt,textColor:zt,caretColor:Mt,caretColorError:Yt,caretColorWarning:oo,textDecorationColor:En,border:nr,borderDisabled:rr,borderHover:ui,borderFocus:Qa,placeholderColor:Ja,placeholderColorDisabled:el,lineHeightTextarea:tl,colorDisabled:Rr,colorFocus:$r,textColorDisabled:rc,boxShadowFocus:ic,iconSize:ac,colorFocusWarning:lc,boxShadowFocusWarning:sc,borderWarning:uc,borderFocusWarning:dc,borderHoverWarning:cc,colorFocusError:fc,boxShadowFocusError:hc,borderError:pc,borderFocusError:mc,borderHoverError:s6,clearSize:u6,clearColor:d6,clearColorHover:c6,clearColorPressed:f6,iconColor:h6,iconColorDisabled:p6,suffixTextColor:m6,countTextColor:g6,countTextColorDisabled:v6,iconColorHover:b6,iconColorPressed:x6,loadingColor:y6,loadingColorError:C6,loadingColorWarning:w6,[Ee("padding",be)]:S6,[Ee("fontSize",be)]:E6,[Ee("height",be)]:k6}}=i.value,{left:_6,right:F6}=Ro(S6);return{"--n-bezier":Ae,"--n-count-text-color":g6,"--n-count-text-color-disabled":v6,"--n-color":rt,"--n-font-size":E6,"--n-border-radius":wt,"--n-height":k6,"--n-padding-left":_6,"--n-padding-right":F6,"--n-text-color":zt,"--n-caret-color":Mt,"--n-text-decoration-color":En,"--n-border":nr,"--n-border-disabled":rr,"--n-border-hover":ui,"--n-border-focus":Qa,"--n-placeholder-color":Ja,"--n-placeholder-color-disabled":el,"--n-icon-size":ac,"--n-line-height-textarea":tl,"--n-color-disabled":Rr,"--n-color-focus":$r,"--n-text-color-disabled":rc,"--n-box-shadow-focus":ic,"--n-loading-color":y6,"--n-caret-color-warning":oo,"--n-color-focus-warning":lc,"--n-box-shadow-focus-warning":sc,"--n-border-warning":uc,"--n-border-focus-warning":dc,"--n-border-hover-warning":cc,"--n-loading-color-warning":w6,"--n-caret-color-error":Yt,"--n-color-focus-error":fc,"--n-box-shadow-focus-error":hc,"--n-border-error":pc,"--n-border-focus-error":mc,"--n-border-hover-error":s6,"--n-loading-color-error":C6,"--n-clear-color":d6,"--n-clear-size":u6,"--n-clear-color-hover":c6,"--n-clear-color-pressed":f6,"--n-icon-color":h6,"--n-icon-color-hover":b6,"--n-icon-color-pressed":x6,"--n-icon-color-disabled":p6,"--n-suffix-text-color":m6}}),dn=n?vt("input",I(()=>{const{value:be}=C;return be[0]}),un,e):void 0;return Object.assign(Object.assign({},No),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:u,inputEl2Ref:c,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Vo,uncontrolledValue:v,mergedValue:x,passwordVisible:y,mergedPlaceholder:N,showPlaceholder1:K,showPlaceholder2:H,mergedFocus:T,isComposing:$,activated:B,showClearButton:z,mergedSize:C,mergedDisabled:_,textDecorationStyle:re,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:F,placeholderStyle:_t,mergedStatus:R,textAreaScrollContainerWidth:te,handleTextAreaScroll:xo,handleCompositionStart:we,handleCompositionEnd:le,handleInput:ne,handleInputBlur:J,handleInputFocus:ie,handleWrapperBlur:de,handleWrapperFocus:ae,handleMouseEnter:st,handleMouseLeave:Xe,handleMouseDown:Qe,handleChange:ue,handleClick:ve,handleClear:De,handlePasswordToggleClick:pt,handlePasswordToggleMousedown:Ye,handleWrapperKeydown:et,handleWrapperKeyup:Le,handleTextAreaMirrorResize:Bt,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:n?void 0:un,themeClass:dn==null?void 0:dn.themeClass,onRender:dn==null?void 0:dn.onRender})},render(){var e,t;const{mergedClsPrefix:o,mergedStatus:n,themeClass:r,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),m("div",{ref:"wrapperElRef",class:[`${o}-input`,r,n&&`${o}-input--${n}-status`,{[`${o}-input--rtl`]:this.rtlEnabled,[`${o}-input--disabled`]:this.mergedDisabled,[`${o}-input--textarea`]:i==="textarea",[`${o}-input--resizable`]:this.resizable&&!this.autosize,[`${o}-input--autosize`]:this.autosize,[`${o}-input--round`]:this.round&&i!=="textarea",[`${o}-input--pair`]:this.pair,[`${o}-input--focus`]:this.mergedFocus,[`${o}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},m("div",{class:`${o}-input-wrapper`},bt(s.prefix,u=>u&&m("div",{class:`${o}-input__prefix`},u)),i==="textarea"?m(or,{ref:"textareaScrollbarInstRef",class:`${o}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var u,d;const{textAreaScrollContainerWidth:c}=this,h={width:this.autosize&&c&&`${c}px`};return m(ft,null,m("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${o}-input__textarea-el`,(u=this.inputProps)===null||u===void 0?void 0:u.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:f=>{this.handleInputFocus(f,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?m($n,{onResize:this.handleTextAreaMirrorResize},{default:()=>m("div",{ref:"textareaMirrorElRef",class:`${o}-input__textarea-mirror`,key:"mirror"})}):null)}}):m("div",{class:`${o}-input__input`},m("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${o}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:u=>{this.handleInputFocus(u,0)},onInput:u=>{this.handleInput(u,0)},onChange:u=>{this.handleChange(u,0)}})),this.showPlaceholder1?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[0])):null,this.autosize?m("div",{class:`${o}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&bt(s.suffix,u=>u||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?m("div",{class:`${o}-input__suffix`},[bt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&m(ph,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var c,h;return(h=(c=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(c)}})),this.internalLoadingBeforeSuffix?null:u,this.loading!==void 0?m(_C,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?u:null,this.showCount&&this.type!=="textarea"?m(Y0,null,{default:d=>{var c;return(c=s.count)===null||c===void 0?void 0:c.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?m("div",{class:`${o}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?wo(s["password-visible-icon"],()=>[m(Ut,{clsPrefix:o},{default:()=>m(RM,null)})]):wo(s["password-invisible-icon"],()=>[m(Ut,{clsPrefix:o},{default:()=>m($M,null)})])):null]):null)),this.pair?m("span",{class:`${o}-input__separator`},wo(s.separator,()=>[this.separator])):null,this.pair?m("div",{class:`${o}-input-wrapper`},m("div",{class:`${o}-input__input`},m("input",{ref:"inputEl2Ref",type:this.type,class:`${o}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:u=>{this.handleInputFocus(u,1)},onInput:u=>{this.handleInput(u,1)},onChange:u=>{this.handleChange(u,1)}}),this.showPlaceholder2?m("div",{class:`${o}-input__placeholder`},m("span",null,this.mergedPlaceholder[1])):null),bt(s.suffix,u=>(this.clearable||u)&&m("div",{class:`${o}-input__suffix`},[this.clearable&&m(ph,{clsPrefix:o,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),u]))):null,this.mergedBordered?m("div",{class:`${o}-input__border`}):null,this.mergedBordered?m("div",{class:`${o}-input__state-border`}):null,this.showCount&&i==="textarea"?m(Y0,null,{default:u=>{var d;const{renderCount:c}=this;return c?c(u):(d=s.count)===null||d===void 0?void 0:d.call(s,u)}}):null)}}),u9=D("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[V(">",[D("input",[V("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),V("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),D("button",[V("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[G("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),V("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[G("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),V("*",[V("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[V(">",[D("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),D("base-selection",[D("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),D("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),G("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),V("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[V(">",[D("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),D("base-selection",[D("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),D("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),G("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),d9={},zC=xe({name:"InputGroup",props:d9,setup(e){const{mergedClsPrefixRef:t}=nt(e);return kr("-input-group",u9,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return m("div",{class:`${e}-input-group`},this.$slots)}}),c9=D("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[G("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),f9=Object.assign(Object.assign({},Ie.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),h9=xe({name:"InputGroupLabel",props:f9,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n}=nt(e),r=Ie("Input","-input-group-label",c9,Xo,e,o),i=I(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:u,borderRadius:d,groupLabelTextColor:c,lineHeight:h,groupLabelBorder:f,[Ee("fontSize",l)]:p,[Ee("height",l)]:g}}=r.value;return{"--n-bezier":s,"--n-group-label-color":u,"--n-group-label-border":f,"--n-border-radius":d,"--n-group-label-text-color":c,"--n-font-size":p,"--n-line-height":h,"--n-height":g}}),a=n?vt("input-group-label",I(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:o,mergedBordered:t,cssVars:n?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,o;const{mergedClsPrefix:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${n}-input-group-label`,this.themeClass],style:this.cssVars},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t),this.mergedBordered?m("div",{class:`${n}-input-group-label__border`}):null)}});function OC(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const p9={name:"AutoComplete",common:Ve,peers:{InternalSelectMenu:Ua,Input:Xo},self:OC},m9={name:"AutoComplete",common:Ne,peers:{InternalSelectMenu:Is,Input:Sn},self:OC},g9=wn&&"loading"in document.createElement("img");function v9(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const Zc=new WeakMap,Xc=new WeakMap,Yc=new WeakMap,b9=(e,t,o)=>{if(!e)return()=>{};const n=v9(t),{root:r}=n.options;let i;const a=Zc.get(r);a?i=a:(i=new Map,Zc.set(r,i));let l,s;i.has(n.hash)?(s=i.get(n.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(c=>{c.forEach(h=>{if(h.isIntersecting){const f=Xc.get(h.target),p=Yc.get(h.target);f&&f(),p&&(p.value=!0)}})},n.options),l.observe(e),s=[l,new Set([e])],i.set(n.hash,s));let u=!1;const d=()=>{u||(Xc.delete(e),Yc.delete(e),u=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(n.hash),i.size||Zc.delete(r))};return Xc.set(e,d),Yc.set(e,o),d};function LC(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:u,modalColor:d,popoverColor:c}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:u,color:Ue(n,o),colorModal:Ue(d,o),colorPopover:Ue(c,o)}}const jp={name:"Avatar",common:Ve,self:LC},HC={name:"Avatar",common:Ne,self:LC},x9="n-avatar-group",y9=D("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[Ki(V("&","--n-merged-color: var(--n-color-modal);")),Ha(V("&","--n-merged-color: var(--n-color-popover);")),V("img",` - width: 100%; - height: 100%; - `),G("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),D("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),G("text","line-height: 1.25")]),C9=Object.assign(Object.assign({},Ie.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),w9=xe({name:"Avatar",props:C9,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=M(!1);let r=null;const i=M(null),a=M(null),l=()=>{const{value:x}=i;if(x&&(r===null||r!==x.innerHTML)){r=x.innerHTML;const{value:k}=a;if(k){const{offsetWidth:C,offsetHeight:_}=k,{offsetWidth:R,offsetHeight:w}=x,A=.9,$=Math.min(C/R*A,_/w*A,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${$})`}}},s=Oe(x9,null),u=I(()=>{const{size:x}=e;if(x)return x;const{size:k}=s||{};return k||"medium"}),d=Ie("Avatar","-avatar",y9,jp,e,t),c=Oe(kC,null),h=I(()=>{if(s)return!0;const{round:x,circle:k}=e;return x!==void 0||k!==void 0?x||k:c?c.roundRef.value:!1}),f=I(()=>s?!0:e.bordered||!1),p=I(()=>{const x=u.value,k=h.value,C=f.value,{color:_}=e,{self:{borderRadius:R,fontSize:w,color:A,border:$,colorModal:B,colorPopover:U},common:{cubicBezierEaseInOut:N}}=d.value;let K;return typeof x=="number"?K=`${x}px`:K=d.value.self[Ee("height",x)],{"--n-font-size":w,"--n-border":C?$:"none","--n-border-radius":k?"50%":R,"--n-color":_||A,"--n-color-modal":_||B,"--n-color-popover":_||U,"--n-bezier":N,"--n-merged-size":`var(--n-avatar-size-override, ${K})`}}),g=o?vt("avatar",I(()=>{const x=u.value,k=h.value,C=f.value,{color:_}=e;let R="";return x&&(typeof x=="number"?R+=`a${x}`:R+=x[0]),k&&(R+="b"),C&&(R+="c"),_&&(R+=Ma(_)),R}),p,e):void 0,v=M(!e.lazy);ut(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const k=kt(()=>{x==null||x(),x=void 0,e.lazy&&(x=b9(a.value,e.intersectionObserverOptions,v))});Xt(()=>{k(),x==null||x()})}}),at(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{n.value=!1});const b=M(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:o?void 0:p,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:n,shouldStartLoading:v,loaded:b,mergedOnError:x=>{if(!v.value)return;n.value=!0;const{onError:k,imgProps:{onError:C}={}}=e;k==null||k(x),C==null||C(x)},mergedOnLoad:x=>{const{onLoad:k,imgProps:{onLoad:C}={}}=e;k==null||k(x),C==null||C(x),b.value=!0}}},render(){var e,t;const{$slots:o,src:n,mergedClsPrefix:r,lazy:i,onRender:a,loaded:l,hasLoadError:s,imgProps:u={}}=this;a==null||a();let d;const c=!l&&!s&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():wo(o.fallback,()=>[m("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=bt(o.default,h=>{if(h)return m($n,{onResize:this.fitTextTransform},{default:()=>m("span",{ref:"textRef",class:`${r}-avatar__text`},h)});if(n||u.src){const f=this.src||u.src;return m("img",Object.assign(Object.assign({},u),{loading:g9&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?f:void 0:f,"data-image-src":f,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[u.style||"",{objectFit:this.objectFit},c?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),m("span",{ref:"selfRef",class:[`${r}-avatar`,this.themeClass],style:this.cssVars},d,i&&c)}});function NC(){return{gap:"-12px"}}const S9={name:"AvatarGroup",common:Ve,peers:{Avatar:jp},self:NC},E9={name:"AvatarGroup",common:Ne,peers:{Avatar:HC},self:NC},VC={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},k9={name:"BackTop",common:Ne,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},VC),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}};function _9(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},VC),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const F9={name:"BackTop",common:Ve,self:_9},R9={name:"Badge",common:Ne,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:n,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}};function $9(e){const{errorColor:t,infoColor:o,successColor:n,warningColor:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}const jC={name:"Badge",common:Ve,self:$9},P9=V([V("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),D("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - font-family: var(--n-font-family); - `,[X("as-is",[D("badge-sup",{position:"static",transform:"translateX(0)"},[An({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),X("dot",[D("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[V("::before","border-radius: 4px;")])]),D("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 2; - display: flex; - align-items: center; - `,[An({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),D("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),V("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),M9=Object.assign(Object.assign({},Ie.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),A9=xe({name:"Badge",props:M9,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=Ie("Badge","-badge",P9,jC,e,o),a=M(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},u=I(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&Number(e.value)<=0)||!Mi(t.value)));ut(()=>{u.value&&(a.value=!0)});const d=Gt("Badge",r,o),c=I(()=>{const{type:p,color:g}=e,{common:{cubicBezierEaseInOut:v,cubicBezierEaseOut:b},self:{[Ee("color",p)]:x,fontFamily:k,fontSize:C}}=i.value;return{"--n-font-size":C,"--n-font-family":k,"--n-color":g||x,"--n-ripple-color":g||x,"--n-bezier":v,"--n-ripple-bezier":b}}),h=n?vt("badge",I(()=>{let p="";const{type:g,color:v}=e;return g&&(p+=g[0]),v&&(p+=Ma(v)),p}),c,e):void 0,f=I(()=>{const{offset:p}=e;if(!p)return;const[g,v]=p,b=typeof g=="number"?`${g}px`:g,x=typeof v=="number"?`${v}px`:v;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${b}), ${x})`}});return{rtlEnabled:d,mergedClsPrefix:o,appeared:a,showBadge:u,handleAfterEnter:l,handleAfterLeave:s,cssVars:n?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:f}},render(){var e;const{mergedClsPrefix:t,onRender:o,themeClass:n,$slots:r}=this;o==null||o();const i=(e=r.default)===null||e===void 0?void 0:e.call(r);return m("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,n,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,m(ho,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?m("sup",{class:`${t}-badge-sup`,title:qf(this.value),style:this.offsetStyle},wo(r.value,()=>[this.dot?null:m(jA,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?m(xC,{clsPrefix:t}):null):null}))}}),B9={fontWeightActive:"400"};function WC(e){const{fontSize:t,textColor3:o,textColor2:n,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},B9),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const UC={name:"Breadcrumb",common:Ve,self:WC},D9={name:"Breadcrumb",common:Ne,self:WC},T9=D("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[V("ul",` - list-style: none; - padding: 0; - margin: 0; - `),V("a",` - color: inherit; - text-decoration: inherit; - `),D("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[D("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),V("&:not(:last-child)",[X("clickable",[G("link",` - cursor: pointer; - `,[V("&:hover",` - background-color: var(--n-item-color-hover); - `),V("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),G("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[V("&:hover",` - color: var(--n-item-text-color-hover); - `,[D("icon",` - color: var(--n-item-text-color-hover); - `)]),V("&:active",` - color: var(--n-item-text-color-pressed); - `,[D("icon",` - color: var(--n-item-text-color-pressed); - `)])]),G("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),V("&:last-child",[G("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[D("icon",` - color: var(--n-item-text-color-active); - `)]),G("separator",` - display: none; - `)])])]),KC="n-breadcrumb",I9=Object.assign(Object.assign({},Ie.props),{separator:{type:String,default:"/"}}),z9=xe({name:"Breadcrumb",props:I9,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=Ie("Breadcrumb","-breadcrumb",T9,UC,e,t);Je(KC,{separatorRef:Be(e,"separator"),mergedClsPrefixRef:t});const r=I(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:u,itemTextColorPressed:d,itemTextColorActive:c,fontSize:h,fontWeightActive:f,itemBorderRadius:p,itemColorHover:g,itemColorPressed:v,itemLineHeight:b}}=n.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":u,"--n-item-text-color-pressed":d,"--n-item-text-color-active":c,"--n-separator-color":l,"--n-item-color-hover":g,"--n-item-color-pressed":v,"--n-item-border-radius":p,"--n-font-weight-active":f,"--n-item-line-height":b}}),i=o?vt("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},m("ul",null,this.$slots))}});function O9(e=wn?window:null){const t=()=>{const{hash:r,host:i,hostname:a,href:l,origin:s,pathname:u,port:d,protocol:c,search:h}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:a,href:l,origin:s,pathname:u,port:d,protocol:c,search:h}},o=M(t()),n=()=>{o.value=t()};return ut(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Go(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),o}const L9={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},H9=xe({name:"BreadcrumbItem",props:L9,setup(e,{slots:t}){const o=Oe(KC,null);if(!o)return()=>null;const{separatorRef:n,mergedClsPrefixRef:r}=o,i=O9(),a=I(()=>e.href?"a":"span"),l=I(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=r;return m("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},m(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),m("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},wo(t.separator,()=>{var u;return[(u=e.separator)!==null&&u!==void 0?u:n.value]})))}}});function hi(e){return Ue(e,[255,255,255,.16])}function cu(e){return Ue(e,[0,0,0,.12])}const N9="n-button-group",V9={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function GC(e){const{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:u,opacityDisabled:d,textColor2:c,textColor3:h,primaryColorHover:f,primaryColorPressed:p,borderColor:g,primaryColor:v,baseColor:b,infoColor:x,infoColorHover:k,infoColorPressed:C,successColor:_,successColorHover:R,successColorPressed:w,warningColor:A,warningColorHover:$,warningColorPressed:B,errorColor:U,errorColorHover:N,errorColorPressed:K,fontWeight:H,buttonColor2:T,buttonColor2Hover:z,buttonColor2Pressed:F,fontWeightStrong:y}=e;return Object.assign(Object.assign({},V9),{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:u,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:T,colorSecondaryHover:z,colorSecondaryPressed:F,colorTertiary:T,colorTertiaryHover:z,colorTertiaryPressed:F,colorQuaternary:"#0000",colorQuaternaryHover:z,colorQuaternaryPressed:F,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:c,textColorTertiary:h,textColorHover:f,textColorPressed:p,textColorFocus:f,textColorDisabled:c,textColorText:c,textColorTextHover:f,textColorTextPressed:p,textColorTextFocus:f,textColorTextDisabled:c,textColorGhost:c,textColorGhostHover:f,textColorGhostPressed:p,textColorGhostFocus:f,textColorGhostDisabled:c,border:`1px solid ${g}`,borderHover:`1px solid ${f}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${f}`,borderDisabled:`1px solid ${g}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:f,colorPressedPrimary:p,colorFocusPrimary:f,colorDisabledPrimary:v,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:v,textColorTextHoverPrimary:f,textColorTextPressedPrimary:p,textColorTextFocusPrimary:f,textColorTextDisabledPrimary:c,textColorGhostPrimary:v,textColorGhostHoverPrimary:f,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:f,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${f}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${f}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:x,colorHoverInfo:k,colorPressedInfo:C,colorFocusInfo:k,colorDisabledInfo:x,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:x,textColorTextHoverInfo:k,textColorTextPressedInfo:C,textColorTextFocusInfo:k,textColorTextDisabledInfo:c,textColorGhostInfo:x,textColorGhostHoverInfo:k,textColorGhostPressedInfo:C,textColorGhostFocusInfo:k,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${k}`,borderPressedInfo:`1px solid ${C}`,borderFocusInfo:`1px solid ${k}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:_,colorHoverSuccess:R,colorPressedSuccess:w,colorFocusSuccess:R,colorDisabledSuccess:_,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:_,textColorTextHoverSuccess:R,textColorTextPressedSuccess:w,textColorTextFocusSuccess:R,textColorTextDisabledSuccess:c,textColorGhostSuccess:_,textColorGhostHoverSuccess:R,textColorGhostPressedSuccess:w,textColorGhostFocusSuccess:R,textColorGhostDisabledSuccess:_,borderSuccess:`1px solid ${_}`,borderHoverSuccess:`1px solid ${R}`,borderPressedSuccess:`1px solid ${w}`,borderFocusSuccess:`1px solid ${R}`,borderDisabledSuccess:`1px solid ${_}`,rippleColorSuccess:_,colorWarning:A,colorHoverWarning:$,colorPressedWarning:B,colorFocusWarning:$,colorDisabledWarning:A,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:A,textColorTextHoverWarning:$,textColorTextPressedWarning:B,textColorTextFocusWarning:$,textColorTextDisabledWarning:c,textColorGhostWarning:A,textColorGhostHoverWarning:$,textColorGhostPressedWarning:B,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:A,borderWarning:`1px solid ${A}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${B}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${A}`,rippleColorWarning:A,colorError:U,colorHoverError:N,colorPressedError:K,colorFocusError:N,colorDisabledError:U,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:U,textColorTextHoverError:N,textColorTextPressedError:K,textColorTextFocusError:N,textColorTextDisabledError:c,textColorGhostError:U,textColorGhostHoverError:N,textColorGhostPressedError:K,textColorGhostFocusError:N,textColorGhostDisabledError:U,borderError:`1px solid ${U}`,borderHoverError:`1px solid ${N}`,borderPressedError:`1px solid ${K}`,borderFocusError:`1px solid ${N}`,borderDisabledError:`1px solid ${U}`,rippleColorError:U,waveOpacity:"0.6",fontWeight:H,fontWeightStrong:y})}const Ho={name:"Button",common:Ve,self:GC},Yo={name:"Button",common:Ne,self(e){const t=GC(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},j9=V([D("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[X("color",[G("border",{borderColor:"var(--n-border-color)"}),X("disabled",[G("border",{borderColor:"var(--n-border-color-disabled)"})]),Ft("disabled",[V("&:focus",[G("state-border",{borderColor:"var(--n-border-color-focus)"})]),V("&:hover",[G("state-border",{borderColor:"var(--n-border-color-hover)"})]),V("&:active",[G("state-border",{borderColor:"var(--n-border-color-pressed)"})]),X("pressed",[G("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),X("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[G("border",{border:"var(--n-border-disabled)"})]),Ft("disabled",[V("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[G("state-border",{border:"var(--n-border-focus)"})]),V("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[G("state-border",{border:"var(--n-border-hover)"})]),V("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[G("state-border",{border:"var(--n-border-pressed)"})]),X("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[G("state-border",{border:"var(--n-border-pressed)"})])]),X("loading","cursor: wait;"),D("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[X("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),wn&&"MozBoxSizing"in document.createElement("div").style?V("&::moz-focus-inner",{border:0}):null,G("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),G("border",{border:"var(--n-border)"}),G("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),G("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[D("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[en({top:"50%",originalTransform:"translateY(-50%)"})]),RC()]),G("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[V("~",[G("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),X("block",` - display: flex; - width: 100%; - `),X("dashed",[G("border, state-border",{borderStyle:"dashed !important"})]),X("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),V("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),V("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),W9=Object.assign(Object.assign({},Ie.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!DC}}),St=xe({name:"Button",props:W9,setup(e){const t=M(null),o=M(null),n=M(!1),r=gt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Oe(N9,{}),{mergedSizeRef:a}=Dn({},{defaultSize:"medium",mergedSize:C=>{const{size:_}=e;if(_)return _;const{size:R}=i;if(R)return R;const{mergedSize:w}=C||{};return w?w.value:"medium"}}),l=I(()=>e.focusable&&!e.disabled),s=C=>{var _;l.value||C.preventDefault(),!e.nativeFocusBehavior&&(C.preventDefault(),!e.disabled&&l.value&&((_=t.value)===null||_===void 0||_.focus({preventScroll:!0})))},u=C=>{var _;if(!e.disabled&&!e.loading){const{onClick:R}=e;R&&$e(R,C),e.text||(_=o.value)===null||_===void 0||_.play()}},d=C=>{switch(C.key){case"Enter":if(!e.keyboard)return;n.value=!1}},c=C=>{switch(C.key){case"Enter":if(!e.keyboard||e.loading){C.preventDefault();return}n.value=!0}},h=()=>{n.value=!1},{inlineThemeDisabled:f,mergedClsPrefixRef:p,mergedRtlRef:g}=nt(e),v=Ie("Button","-button",j9,Ho,e,p),b=Gt("Button",g,p),x=I(()=>{const C=v.value,{common:{cubicBezierEaseInOut:_,cubicBezierEaseOut:R},self:w}=C,{rippleDuration:A,opacityDisabled:$,fontWeight:B,fontWeightStrong:U}=w,N=a.value,{dashed:K,type:H,ghost:T,text:z,color:F,round:y,circle:re,textColor:te,secondary:j,tertiary:Z,quaternary:se,strong:pe}=e,Se={"--n-font-weight":pe?U:B};let he={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const fe=H==="tertiary",Ce=H==="default",Y=fe?"default":H;if(z){const J=te||F;he={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":J||w[Ee("textColorText",Y)],"--n-text-color-hover":J?hi(J):w[Ee("textColorTextHover",Y)],"--n-text-color-pressed":J?cu(J):w[Ee("textColorTextPressed",Y)],"--n-text-color-focus":J?hi(J):w[Ee("textColorTextHover",Y)],"--n-text-color-disabled":J||w[Ee("textColorTextDisabled",Y)]}}else if(T||K){const J=te||F;he={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":F||w[Ee("rippleColor",Y)],"--n-text-color":J||w[Ee("textColorGhost",Y)],"--n-text-color-hover":J?hi(J):w[Ee("textColorGhostHover",Y)],"--n-text-color-pressed":J?cu(J):w[Ee("textColorGhostPressed",Y)],"--n-text-color-focus":J?hi(J):w[Ee("textColorGhostHover",Y)],"--n-text-color-disabled":J||w[Ee("textColorGhostDisabled",Y)]}}else if(j){const J=Ce?w.textColor:fe?w.textColorTertiary:w[Ee("color",Y)],ie=F||J,de=H!=="default"&&H!=="tertiary";he={"--n-color":de?Me(ie,{alpha:Number(w.colorOpacitySecondary)}):w.colorSecondary,"--n-color-hover":de?Me(ie,{alpha:Number(w.colorOpacitySecondaryHover)}):w.colorSecondaryHover,"--n-color-pressed":de?Me(ie,{alpha:Number(w.colorOpacitySecondaryPressed)}):w.colorSecondaryPressed,"--n-color-focus":de?Me(ie,{alpha:Number(w.colorOpacitySecondaryHover)}):w.colorSecondaryHover,"--n-color-disabled":w.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ie,"--n-text-color-hover":ie,"--n-text-color-pressed":ie,"--n-text-color-focus":ie,"--n-text-color-disabled":ie}}else if(Z||se){const J=Ce?w.textColor:fe?w.textColorTertiary:w[Ee("color",Y)],ie=F||J;Z?(he["--n-color"]=w.colorTertiary,he["--n-color-hover"]=w.colorTertiaryHover,he["--n-color-pressed"]=w.colorTertiaryPressed,he["--n-color-focus"]=w.colorSecondaryHover,he["--n-color-disabled"]=w.colorTertiary):(he["--n-color"]=w.colorQuaternary,he["--n-color-hover"]=w.colorQuaternaryHover,he["--n-color-pressed"]=w.colorQuaternaryPressed,he["--n-color-focus"]=w.colorQuaternaryHover,he["--n-color-disabled"]=w.colorQuaternary),he["--n-ripple-color"]="#0000",he["--n-text-color"]=ie,he["--n-text-color-hover"]=ie,he["--n-text-color-pressed"]=ie,he["--n-text-color-focus"]=ie,he["--n-text-color-disabled"]=ie}else he={"--n-color":F||w[Ee("color",Y)],"--n-color-hover":F?hi(F):w[Ee("colorHover",Y)],"--n-color-pressed":F?cu(F):w[Ee("colorPressed",Y)],"--n-color-focus":F?hi(F):w[Ee("colorFocus",Y)],"--n-color-disabled":F||w[Ee("colorDisabled",Y)],"--n-ripple-color":F||w[Ee("rippleColor",Y)],"--n-text-color":te||(F?w.textColorPrimary:fe?w.textColorTertiary:w[Ee("textColor",Y)]),"--n-text-color-hover":te||(F?w.textColorHoverPrimary:w[Ee("textColorHover",Y)]),"--n-text-color-pressed":te||(F?w.textColorPressedPrimary:w[Ee("textColorPressed",Y)]),"--n-text-color-focus":te||(F?w.textColorFocusPrimary:w[Ee("textColorFocus",Y)]),"--n-text-color-disabled":te||(F?w.textColorDisabledPrimary:w[Ee("textColorDisabled",Y)])};let O={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};z?O={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:O={"--n-border":w[Ee("border",Y)],"--n-border-hover":w[Ee("borderHover",Y)],"--n-border-pressed":w[Ee("borderPressed",Y)],"--n-border-focus":w[Ee("borderFocus",Y)],"--n-border-disabled":w[Ee("borderDisabled",Y)]};const{[Ee("height",N)]:ze,[Ee("fontSize",N)]:je,[Ee("padding",N)]:W,[Ee("paddingRound",N)]:ee,[Ee("iconSize",N)]:ge,[Ee("borderRadius",N)]:we,[Ee("iconMargin",N)]:le,waveOpacity:ne}=w,ce={"--n-width":re&&!z?ze:"initial","--n-height":z?"initial":ze,"--n-font-size":je,"--n-padding":re||z?"initial":y?ee:W,"--n-icon-size":ge,"--n-icon-margin":le,"--n-border-radius":z?"initial":re||y?ze:we};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":_,"--n-bezier-ease-out":R,"--n-ripple-duration":A,"--n-opacity-disabled":$,"--n-wave-opacity":ne},Se),he),O),ce)}),k=f?vt("button",I(()=>{let C="";const{dashed:_,type:R,ghost:w,text:A,color:$,round:B,circle:U,textColor:N,secondary:K,tertiary:H,quaternary:T,strong:z}=e;_&&(C+="a"),w&&(C+="b"),A&&(C+="c"),B&&(C+="d"),U&&(C+="e"),K&&(C+="f"),H&&(C+="g"),T&&(C+="h"),z&&(C+="i"),$&&(C+=`j${Ma($)}`),N&&(C+=`k${Ma(N)}`);const{value:F}=a;return C+=`l${F[0]}`,C+=`m${R[0]}`,C}),x,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:r,enterPressed:n,rtlEnabled:b,handleMousedown:s,handleKeydown:c,handleBlur:h,handleKeyup:d,handleClick:u,customColorCssVars:I(()=>{const{color:C}=e;if(!C)return null;const _=hi(C);return{"--n-border-color":C,"--n-border-color-hover":_,"--n-border-color-pressed":cu(C),"--n-border-color-focus":_,"--n-border-color-disabled":C}}),cssVars:f?void 0:x,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const n=bt(this.$slots.default,r=>r&&m("span",{class:`${e}-button__content`},r));return m(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,m(Ds,{width:!0},{default:()=>bt(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&m("span",{class:`${e}-button__icon`,style:{margin:Mi(this.$slots.default)?"0":""}},m(Xi,null,{default:()=>this.loading?m(_r,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):m("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&n,this.text?null:m(xC,{ref:"waveElRef",clsPrefix:e}),this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Q0=St,U9={titleFontSize:"22px"};function qC(e){const{borderRadius:t,fontSize:o,lineHeight:n,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:u,baseColor:d,hoverColor:c,cardColor:h,modalColor:f,popoverColor:p}=e;return Object.assign(Object.assign({},U9),{borderRadius:t,borderColor:Ue(h,l),borderColorModal:Ue(f,l),borderColorPopover:Ue(p,l),textColor:r,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:n,dateColorCurrent:u,dateTextColorCurrent:d,cellColorHover:Ue(h,c),cellColorHoverModal:Ue(f,c),cellColorHoverPopover:Ue(p,c),cellColor:h,cellColorModal:f,cellColorPopover:p,barColor:u})}const K9={name:"Calendar",common:Ve,peers:{Button:Ho},self:qC},G9={name:"Calendar",common:Ne,peers:{Button:Yo},self:qC};function ZC(e){const{fontSize:t,boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,dividerColor:f}=e;return{panelFontSize:t,boxShadow:o,color:n,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,dividerColor:f}}const XC={name:"ColorPicker",common:Ve,peers:{Input:Xo,Button:Ho},self:ZC},q9={name:"ColorPicker",common:Ne,peers:{Input:Sn,Button:Yo},self:ZC};function Z9(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function as(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function X9(e){return e=Math.round(e),e>=360?359:e<0?0:e}function Y9(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const Q9={rgb:{hex(e){return qr(so(e))},hsl(e){const[t,o,n,r]=so(e);return Gr([...Vf(t,o,n),r])},hsv(e){const[t,o,n,r]=so(e);return Pi([...Nf(t,o,n),r])}},hex:{rgb(e){return Kn(so(e))},hsl(e){const[t,o,n,r]=so(e);return Gr([...Vf(t,o,n),r])},hsv(e){const[t,o,n,r]=so(e);return Pi([...Nf(t,o,n),r])}},hsl:{hex(e){const[t,o,n,r]=ka(e);return qr([...jf(t,o,n),r])},rgb(e){const[t,o,n,r]=ka(e);return Kn([...jf(t,o,n),r])},hsv(e){const[t,o,n,r]=ka(e);return Pi([...Ex(t,o,n),r])}},hsv:{hex(e){const[t,o,n,r]=$i(e);return qr([...Nr(t,o,n),r])},rgb(e){const[t,o,n,r]=$i(e);return Kn([...Nr(t,o,n),r])},hsl(e){const[t,o,n,r]=$i(e);return Gr([...Mu(t,o,n),r])}}};function YC(e,t,o){return o=o||as(e),o?o===t?e:Q9[o][t](e):null}const fa="12px",J9=12,pi="6px",eB=6,tB="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",oB=xe({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=M(null);function o(i){t.value&&(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),u=X9((i.clientX-s-eB)/(l-J9)*360);e.onUpdateHue(u)}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,style:{height:fa,borderRadius:pi}},m("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:tB,height:fa,borderRadius:pi,position:"relative"},onMousedown:this.handleMouseDown},m("div",{style:{position:"absolute",left:pi,right:pi,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${pi})`,borderRadius:pi,width:fa,height:fa}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:pi,width:fa,height:fa}})))))}}),cl="12px",nB=12,mi="6px",rB=xe({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=M(null);function o(i){!t.value||!e.rgba||(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),u=(i.clientX-s)/(l-nB);e.onUpdateAlpha(Y9(u))}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:I(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:cl,borderRadius:mi},onMousedown:this.handleMouseDown},m("div",{style:{borderRadius:mi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},m("div",{class:`${e}-color-picker-checkboard`}),m("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&m("div",{style:{position:"absolute",left:mi,right:mi,top:0,bottom:0}},m("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${mi})`,borderRadius:mi,width:cl,height:cl}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Kn(this.rgba),borderRadius:mi,width:cl,height:cl}}))))}}),fu="12px",hu="6px",iB=xe({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=M(null);function o(i){t.value&&(Ct("mousemove",document,n),Ct("mouseup",document,r),n(i))}function n(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:u,bottom:d}=a.getBoundingClientRect(),c=(d-i.clientY)/s,h=(i.clientX-u)/l,f=100*(h>1?1:h<0?0:h),p=100*(c>1?1:c<0?0:c);e.onUpdateSV(f,p)}function r(){var i;xt("mousemove",document,n),xt("mouseup",document,r),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:I(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:o}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},m("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),m("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&m("div",{class:`${e}-color-picker-handle`,style:{width:fu,height:fu,borderRadius:hu,left:`calc(${this.displayedSv[0]}% - ${hu})`,bottom:`calc(${this.displayedSv[1]}% - ${hu})`}},m("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:hu,width:fu,height:fu}})))}}),Wp="n-color-picker";function aB(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function lB(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function sB(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function uB(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function dB(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}const cB={paddingSmall:"0 4px"},J0=xe({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=M(""),{themeRef:o}=Oe(Wp,null);kt(()=>{t.value=n()});function n(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function r(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=uB(a),s&&e.onUpdateValue(a),t.value=n();break;case"H":l=lB(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"S":case"L":case"V":l=sB(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"A":l=dB(a),l===!1?t.value=n():e.onUpdateValue(l);break;case"R":case"G":case"B":l=aB(a),l===!1?t.value=n():e.onUpdateValue(l);break}}return{mergedTheme:o,inputValue:t,handleInputChange:i,handleInputUpdateValue:r}},render(){const{mergedTheme:e}=this;return m(rn,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:cB,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),fB=xe({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,o){const{showAlpha:n}=e;if(e.mode==="hex"){e.onUpdateValue((n?qr:Al)(o));return}let r;switch(e.valueArr===null?r=[0,0,0,0]:r=Array.from(e.valueArr),e.mode){case"hsv":r[t]=o,e.onUpdateValue((n?Pi:Kf)(r));break;case"rgb":r[t]=o,e.onUpdateValue((n?Kn:Uf)(r));break;case"hsl":r[t]=o,e.onUpdateValue((n?Gr:Gf)(r));break}}}},render(){const{clsPrefix:e,modes:t}=this;return m("div",{class:`${e}-color-picker-input`},m("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),m(zC,null,{default:()=>{const{mode:o,valueArr:n,showAlpha:r}=this;if(o==="hex"){let i=null;try{i=n===null?null:(r?qr:Al)(n)}catch{}return m(J0,{label:"HEX",showAlpha:r,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(o+(r?"a":"")).split("").map((i,a)=>m(J0,{label:i.toUpperCase(),value:n===null?null:n[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),hB=xe({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:o}=Oe(Wp,null);return()=>{const{hsla:n,value:r,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||o.value;return m("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},m("div",{class:`${i}-color-picker-trigger__fill`},m("div",{class:`${i}-color-picker-checkboard`}),m("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:n?Gr(n):""}}),r&&n?m("div",{class:`${i}-color-picker-trigger__value`,style:{color:n[2]>50||n[3]<.5?"black":"white"}},s?s(r):r):null))}}});function pB(e,t){if(t==="hsv"){const[o,n,r,i]=$i(e);return Kn([...Nr(o,n,r),i])}return e}function mB(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}const gB=xe({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=I(()=>e.swatches.map(i=>{const a=as(i);return{value:i,mode:a,legalValue:pB(i,a)}}));function o(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=mB(l):(xn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:YC(l,a,s)}function n(i){e.onUpdateColor(o(i))}function r(i,a){i.key==="Enter"&&n(a)}return{parsedSwatchesRef:t,handleSwatchSelect:n,handleSwatchKeyDown:r}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>m("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:o=>{this.handleSwatchKeyDown(o,t)}},m("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),vB=xe({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=as(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(o){var n;const r=o.target.value;(n=e.onUpdateColor)===null||n===void 0||n.call(e,YC(r.toUpperCase(),e.mode,"hex")),o.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-color-picker-preview__preview`},m("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),m("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),bB=V([D("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),D("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[An(),D("input",` - text-align: center; - `)]),D("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[V("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),D("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[G("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),V("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),D("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[G("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),D("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[G("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[X("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),D("color-picker-preview",` - display: flex; - `,[G("sliders",` - flex: 1 0 auto; - `),G("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),G("fill",` - display: block; - width: 30px; - height: 30px; - `),G("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),D("color-picker-input",` - display: flex; - align-items: center; - `,[D("input",` - flex-grow: 1; - flex-basis: 0; - `),G("mode",` - width: 72px; - text-align: center; - `)]),D("color-picker-control",` - padding: 12px; - `),D("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[D("button","margin-left: 8px;")]),D("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[G("value",` - white-space: nowrap; - position: relative; - `),G("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),X("disabled","cursor: not-allowed"),D("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[V("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),D("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[D("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[G("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),V("&:focus",` - outline: none; - `,[G("fill",[V("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),xB=Object.assign(Object.assign({},Ie.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Mo.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),yB=xe({name:"ColorPicker",props:xB,setup(e,{slots:t}){const o=M(null);let n=null;const r=Dn(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,{localeRef:l}=Er("global"),{mergedClsPrefixRef:s,namespaceRef:u,inlineThemeDisabled:d}=nt(e),c=Ie("ColorPicker","-color-picker",bB,XC,e,s);Je(Wp,{themeRef:c,renderLabelRef:Be(e,"renderLabel"),colorPickerSlots:t});const h=M(e.defaultShow),f=to(Be(e,"show"),h);function p(ne){const{onUpdateShow:ce,"onUpdate:show":J}=e;ce&&$e(ce,ne),J&&$e(J,ne),h.value=ne}const{defaultValue:g}=e,v=M(g===void 0?Z9(e.modes,e.showAlpha):g),b=to(Be(e,"value"),v),x=M([b.value]),k=M(0),C=I(()=>as(b.value)),{modes:_}=e,R=M(as(b.value)||_[0]||"rgb");function w(){const{modes:ne}=e,{value:ce}=R,J=ne.findIndex(ie=>ie===ce);~J?R.value=ne[(J+1)%ne.length]:R.value="rgb"}let A,$,B,U,N,K,H,T;const z=I(()=>{const{value:ne}=b;if(!ne)return null;switch(C.value){case"hsv":return $i(ne);case"hsl":return[A,$,B,T]=ka(ne),[...Ex(A,$,B),T];case"rgb":case"hex":return[N,K,H,T]=so(ne),[...Nf(N,K,H),T]}}),F=I(()=>{const{value:ne}=b;if(!ne)return null;switch(C.value){case"rgb":case"hex":return so(ne);case"hsv":return[A,$,U,T]=$i(ne),[...Nr(A,$,U),T];case"hsl":return[A,$,B,T]=ka(ne),[...jf(A,$,B),T]}}),y=I(()=>{const{value:ne}=b;if(!ne)return null;switch(C.value){case"hsl":return ka(ne);case"hsv":return[A,$,U,T]=$i(ne),[...Mu(A,$,U),T];case"rgb":case"hex":return[N,K,H,T]=so(ne),[...Vf(N,K,H),T]}}),re=I(()=>{switch(R.value){case"rgb":case"hex":return F.value;case"hsv":return z.value;case"hsl":return y.value}}),te=M(0),j=M(1),Z=M([0,0]);function se(ne,ce){const{value:J}=z,ie=te.value,de=J?J[3]:1;Z.value=[ne,ce];const{showAlpha:ae}=e;switch(R.value){case"hsv":he((ae?Pi:Kf)([ie,ne,ce,de]),"cursor");break;case"hsl":he((ae?Gr:Gf)([...Mu(ie,ne,ce),de]),"cursor");break;case"rgb":he((ae?Kn:Uf)([...Nr(ie,ne,ce),de]),"cursor");break;case"hex":he((ae?qr:Al)([...Nr(ie,ne,ce),de]),"cursor");break}}function pe(ne){te.value=ne;const{value:ce}=z;if(!ce)return;const[,J,ie,de]=ce,{showAlpha:ae}=e;switch(R.value){case"hsv":he((ae?Pi:Kf)([ne,J,ie,de]),"cursor");break;case"rgb":he((ae?Kn:Uf)([...Nr(ne,J,ie),de]),"cursor");break;case"hex":he((ae?qr:Al)([...Nr(ne,J,ie),de]),"cursor");break;case"hsl":he((ae?Gr:Gf)([...Mu(ne,J,ie),de]),"cursor");break}}function Se(ne){switch(R.value){case"hsv":[A,$,U]=z.value,he(Pi([A,$,U,ne]),"cursor");break;case"rgb":[N,K,H]=F.value,he(Kn([N,K,H,ne]),"cursor");break;case"hex":[N,K,H]=F.value,he(qr([N,K,H,ne]),"cursor");break;case"hsl":[A,$,B]=y.value,he(Gr([A,$,B,ne]),"cursor");break}j.value=ne}function he(ne,ce){ce==="cursor"?n=ne:n=null;const{nTriggerFormChange:J,nTriggerFormInput:ie}=r,{onUpdateValue:de,"onUpdate:value":ae}=e;de&&$e(de,ne),ae&&$e(ae,ne),J(),ie(),v.value=ne}function fe(ne){he(ne,"input"),Rt(Ce)}function Ce(ne=!0){const{value:ce}=b;if(ce){const{nTriggerFormChange:J,nTriggerFormInput:ie}=r,{onComplete:de}=e;de&&de(ce);const{value:ae}=x,{value:q}=k;ne&&(ae.splice(q+1,ae.length,ce),k.value=q+1),J(),ie()}}function Y(){const{value:ne}=k;ne-1<0||(he(x.value[ne-1],"input"),Ce(!1),k.value=ne-1)}function O(){const{value:ne}=k;ne<0||ne+1>=x.value.length||(he(x.value[ne+1],"input"),Ce(!1),k.value=ne+1)}function ze(){he(null,"input");const{onClear:ne}=e;ne&&ne(),p(!1)}function je(){const{value:ne}=b,{onConfirm:ce}=e;ce&&ce(ne),p(!1)}const W=I(()=>k.value>=1),ee=I(()=>{const{value:ne}=x;return ne.length>1&&k.value<ne.length-1});at(f,ne=>{ne||(x.value=[b.value],k.value=0)}),kt(()=>{if(!(n&&n===b.value)){const{value:ne}=z;ne&&(te.value=ne[0],j.value=ne[3],Z.value=[ne[1],ne[2]])}n=null});const ge=I(()=>{const{value:ne}=i,{common:{cubicBezierEaseInOut:ce},self:{textColor:J,color:ie,panelFontSize:de,boxShadow:ae,border:q,borderRadius:ue,dividerColor:ve,[Ee("height",ne)]:De,[Ee("fontSize",ne)]:Ke}}=c.value;return{"--n-bezier":ce,"--n-text-color":J,"--n-color":ie,"--n-panel-font-size":de,"--n-font-size":Ke,"--n-box-shadow":ae,"--n-border":q,"--n-border-radius":ue,"--n-height":De,"--n-divider-color":ve}}),we=d?vt("color-picker",I(()=>i.value[0]),ge,e):void 0;function le(){var ne;const{value:ce}=F,{value:J}=te,{internalActions:ie,modes:de,actions:ae}=e,{value:q}=c,{value:ue}=s;return m("div",{class:[`${ue}-color-picker-panel`,we==null?void 0:we.themeClass.value],onDragstart:ve=>{ve.preventDefault()},style:d?void 0:ge.value},m("div",{class:`${ue}-color-picker-control`},m(iB,{clsPrefix:ue,rgba:ce,displayedHue:J,displayedSv:Z.value,onUpdateSV:se,onComplete:Ce}),m("div",{class:`${ue}-color-picker-preview`},m("div",{class:`${ue}-color-picker-preview__sliders`},m(oB,{clsPrefix:ue,hue:J,onUpdateHue:pe,onComplete:Ce}),e.showAlpha?m(rB,{clsPrefix:ue,rgba:ce,alpha:j.value,onUpdateAlpha:Se,onComplete:Ce}):null),e.showPreview?m(vB,{clsPrefix:ue,mode:R.value,color:F.value&&Al(F.value),onUpdateColor:ve=>{he(ve,"input")}}):null),m(fB,{clsPrefix:ue,showAlpha:e.showAlpha,mode:R.value,modes:de,onUpdateMode:w,value:b.value,valueArr:re.value,onUpdateValue:fe}),((ne=e.swatches)===null||ne===void 0?void 0:ne.length)&&m(gB,{clsPrefix:ue,mode:R.value,swatches:e.swatches,onUpdateColor:ve=>{he(ve,"input")}})),ae!=null&&ae.length?m("div",{class:`${ue}-color-picker-action`},ae.includes("confirm")&&m(St,{size:"small",onClick:je,theme:q.peers.Button,themeOverrides:q.peerOverrides.Button},{default:()=>l.value.confirm}),ae.includes("clear")&&m(St,{size:"small",onClick:ze,disabled:!b.value,theme:q.peers.Button,themeOverrides:q.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?m("div",{class:`${ue}-color-picker-action`},{default:t.action}):ie?m("div",{class:`${ue}-color-picker-action`},ie.includes("undo")&&m(St,{size:"small",onClick:Y,disabled:!W.value,theme:q.peers.Button,themeOverrides:q.peerOverrides.Button},{default:()=>l.value.undo}),ie.includes("redo")&&m(St,{size:"small",onClick:O,disabled:!ee.value,theme:q.peers.Button,themeOverrides:q.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:u,selfRef:o,hsla:y,rgba:F,mergedShow:f,mergedDisabled:a,isMounted:Cr(),adjustedTo:Mo(e),mergedValue:b,handleTriggerClick(){p(!0)},handleClickOutside(ne){var ce;!((ce=o.value)===null||ce===void 0)&&ce.contains(zi(ne))||p(!1)},renderPanel:le,cssVars:d?void 0:ge,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},m(ks,null,{default:()=>[m(_s,null,{default:()=>m(hB,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),m(Fs,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Mo.tdkey,to:this.adjustedTo},{default:()=>m(ho,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?Po(this.renderPanel(),[[Oi,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),CB={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function QC(e){const{primaryColor:t,borderRadius:o,lineHeight:n,fontSize:r,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,closeColorHover:f,closeColorPressed:p,modalColor:g,boxShadow1:v,popoverColor:b,actionColor:x}=e;return Object.assign(Object.assign({},CB),{lineHeight:n,color:i,colorModal:g,colorPopover:b,colorTarget:t,colorEmbedded:x,colorEmbeddedModal:x,colorEmbeddedPopover:x,textColor:a,titleTextColor:l,borderColor:s,actionColor:x,titleFontWeight:u,closeColorHover:f,closeColorPressed:p,closeBorderRadius:o,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:v,borderRadius:o})}const Up={name:"Card",common:Ve,self:QC},JC={name:"Card",common:Ne,self(e){const t=QC(e),{cardColor:o,modalColor:n,popoverColor:r}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=r,t}},wB=V([D("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[Bx({background:"var(--n-color-modal)"}),X("hoverable",[V("&:hover","box-shadow: var(--n-box-shadow);")]),X("content-segmented",[V(">",[G("content",{paddingTop:"var(--n-padding-bottom)"})])]),X("content-soft-segmented",[V(">",[G("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),X("footer-segmented",[V(">",[G("footer",{paddingTop:"var(--n-padding-bottom)"})])]),X("footer-soft-segmented",[V(">",[G("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),V(">",[D("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[G("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),G("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),G("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),G("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),G("content","flex: 1; min-width: 0;"),G("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[V("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),G("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),D("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[V("img",` - display: block; - width: 100%; - `)]),X("bordered",` - border: 1px solid var(--n-border-color); - `,[V("&:target","border-color: var(--n-color-target);")]),X("action-segmented",[V(">",[G("action",[V("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),X("content-segmented, content-soft-segmented",[V(">",[G("content",{transition:"border-color 0.3s var(--n-bezier)"},[V("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),X("footer-segmented, footer-soft-segmented",[V(">",[G("footer",{transition:"border-color 0.3s var(--n-bezier)"},[V("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),X("embedded",` - background-color: var(--n-color-embedded); - `)]),Ki(D("card",` - background: var(--n-color-modal); - `,[X("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),Ha(D("card",` - background: var(--n-color-popover); - `,[X("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),Kp={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},SB=ws(Kp),EB=Object.assign(Object.assign({},Ie.props),Kp),e5=xe({name:"Card",props:EB,setup(e){const t=()=>{const{onClose:u}=e;u&&$e(u)},{inlineThemeDisabled:o,mergedClsPrefixRef:n,mergedRtlRef:r}=nt(e),i=Ie("Card","-card",wB,Up,e,n),a=Gt("Card",r,n),l=I(()=>{const{size:u}=e,{self:{color:d,colorModal:c,colorTarget:h,textColor:f,titleTextColor:p,titleFontWeight:g,borderColor:v,actionColor:b,borderRadius:x,lineHeight:k,closeIconColor:C,closeIconColorHover:_,closeIconColorPressed:R,closeColorHover:w,closeColorPressed:A,closeBorderRadius:$,closeIconSize:B,closeSize:U,boxShadow:N,colorPopover:K,colorEmbedded:H,colorEmbeddedModal:T,colorEmbeddedPopover:z,[Ee("padding",u)]:F,[Ee("fontSize",u)]:y,[Ee("titleFontSize",u)]:re},common:{cubicBezierEaseInOut:te}}=i.value,{top:j,left:Z,bottom:se}=Ro(F);return{"--n-bezier":te,"--n-border-radius":x,"--n-color":d,"--n-color-modal":c,"--n-color-popover":K,"--n-color-embedded":H,"--n-color-embedded-modal":T,"--n-color-embedded-popover":z,"--n-color-target":h,"--n-text-color":f,"--n-line-height":k,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":C,"--n-close-icon-color-hover":_,"--n-close-icon-color-pressed":R,"--n-close-color-hover":w,"--n-close-color-pressed":A,"--n-border-color":v,"--n-box-shadow":N,"--n-padding-top":j,"--n-padding-bottom":se,"--n-padding-left":Z,"--n-font-size":y,"--n-title-font-size":re,"--n-close-size":U,"--n-close-icon-size":B,"--n-close-border-radius":$}}),s=o?vt("card",I(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:n,rtlEnabled:r,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),m(l,{class:[`${n}-card`,this.themeClass,a&&`${n}-card--embedded`,{[`${n}-card--rtl`]:r,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:o}],style:this.cssVars,role:this.role},bt(s.cover,u=>{const d=this.cover?pn([this.cover()]):u;return d&&m("div",{class:`${n}-card-cover`,role:"none"},d)}),bt(s.header,u=>{const{title:d}=this,c=d?pn(typeof d=="function"?[d()]:[d]):u;return c||this.closable?m("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},m("div",{class:`${n}-card-header__main`,role:"heading"},c),bt(s["header-extra"],h=>{const f=this.headerExtra?pn([this.headerExtra()]):h;return f&&m("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},f)}),this.closable&&m(li,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),bt(s.default,u=>{const{content:d}=this,c=d?pn(typeof d=="function"?[d()]:[d]):u;return c&&m("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)}),bt(s.footer,u=>{const d=this.footer?pn([this.footer()]):u;return d&&m("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},d)}),bt(s.action,u=>{const d=this.action?pn([this.action()]):u;return d&&m("div",{class:`${n}-card__action`,role:"none"},d)}))}});function t5(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const kB={name:"Carousel",common:Ve,self:t5},_B={name:"Carousel",common:Ne,self:t5},FB={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function o5(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:u,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,borderRadiusSmall:f,lineHeight:p}=e;return Object.assign(Object.assign({},FB),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:h,borderRadius:f,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${Me(s,{alpha:.3})}`,textColor:u,textColorDisabled:a})}const Ji={name:"Checkbox",common:Ve,self:o5},Ga={name:"Checkbox",common:Ne,self(e){const{cardColor:t}=e,o=o5(e);return o.color="#0000",o.checkMarkColor=t,o}};function n5(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:u,fontSizeMedium:d,heightMedium:c}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:c,optionFontSize:d,optionColorHover:u,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const RB={name:"Cascader",common:Ve,peers:{InternalSelectMenu:Ua,InternalSelection:Nd,Scrollbar:Lo,Checkbox:Ji,Empty:tr},self:n5},$B={name:"Cascader",common:Ne,peers:{InternalSelectMenu:Is,InternalSelection:Np,Scrollbar:Zo,Checkbox:Ga,Empty:tr},self:n5},PB=m("svg",{viewBox:"0 0 64 64",class:"check-icon"},m("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),MB=m("svg",{viewBox:"0 0 100 100",class:"line-icon"},m("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),r5="n-checkbox-group",AB={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},i5=xe({name:"CheckboxGroup",props:AB,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=Dn(e),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=M(e.defaultValue),a=I(()=>e.value),l=to(a,i),s=I(()=>{var c;return((c=l.value)===null||c===void 0?void 0:c.length)||0}),u=I(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(c,h){const{nTriggerFormInput:f,nTriggerFormChange:p}=o,{onChange:g,"onUpdate:value":v,onUpdateValue:b}=e;if(Array.isArray(l.value)){const x=Array.from(l.value),k=x.findIndex(C=>C===h);c?~k||(x.push(h),b&&$e(b,x,{actionType:"check",value:h}),v&&$e(v,x,{actionType:"check",value:h}),f(),p(),i.value=x,g&&$e(g,x)):~k&&(x.splice(k,1),b&&$e(b,x,{actionType:"uncheck",value:h}),v&&$e(v,x,{actionType:"uncheck",value:h}),g&&$e(g,x),i.value=x,f(),p())}else c?(b&&$e(b,[h],{actionType:"check",value:h}),v&&$e(v,[h],{actionType:"check",value:h}),g&&$e(g,[h]),i.value=[h],f(),p()):(b&&$e(b,[],{actionType:"uncheck",value:h}),v&&$e(v,[],{actionType:"uncheck",value:h}),g&&$e(g,[]),i.value=[],f(),p())}return Je(r5,{checkedCountRef:s,maxRef:Be(e,"max"),minRef:Be(e,"min"),valueSetRef:u,disabledRef:r,mergedSizeRef:n,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return m("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),BB=V([D("checkbox",` - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - line-height: var(--n-size); - --n-merged-color-table: var(--n-color-table); - `,[X("show-label","line-height: var(--n-label-line-height);"),V("&:hover",[D("checkbox-box",[G("border","border: var(--n-border-checked);")])]),V("&:focus:not(:active)",[D("checkbox-box",[G("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),X("inside-table",[D("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),X("checked",[D("checkbox-box",` - background-color: var(--n-color-checked); - `,[D("checkbox-icon",[V(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),X("indeterminate",[D("checkbox-box",[D("checkbox-icon",[V(".check-icon",` - opacity: 0; - transform: scale(.5); - `),V(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),X("checked, indeterminate",[V("&:focus:not(:active)",[D("checkbox-box",[G("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),D("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[G("border",{border:"var(--n-border-checked)"})])]),X("disabled",{cursor:"not-allowed"},[X("checked",[D("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[G("border",{border:"var(--n-border-disabled-checked)"}),D("checkbox-icon",[V(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),D("checkbox-box",` - background-color: var(--n-color-disabled); - `,[G("border",` - border: var(--n-border-disabled); - `),D("checkbox-icon",[V(".check-icon, .line-icon",` - fill: var(--n-check-mark-color-disabled); - `)])]),G("label",` - color: var(--n-text-color-disabled); - `)]),D("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),D("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[G("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),D("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[V(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),en({left:"1px",top:"1px"})])]),G("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[V("&:empty",{display:"none"})])]),Ki(D("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),Ha(D("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),DB=Object.assign(Object.assign({},Ie.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Vd=xe({name:"Checkbox",props:DB,setup(e){const t=Oe(r5,null),o=M(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=nt(e),a=M(e.defaultChecked),l=Be(e,"checked"),s=to(l,a),u=gt(()=>{if(t){const R=t.valueSetRef.value;return R&&e.value!==void 0?R.has(e.value):!1}else return s.value===e.checkedValue}),d=Dn(e,{mergedSize(R){const{size:w}=e;if(w!==void 0)return w;if(t){const{value:A}=t.mergedSizeRef;if(A!==void 0)return A}if(R){const{mergedSize:A}=R;if(A!==void 0)return A.value}return"medium"},mergedDisabled(R){const{disabled:w}=e;if(w!==void 0)return w;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:A},checkedCountRef:$}=t;if(A!==void 0&&$.value>=A&&!u.value)return!0;const{minRef:{value:B}}=t;if(B!==void 0&&$.value<=B&&u.value)return!0}return R?R.disabled.value:!1}}),{mergedDisabledRef:c,mergedSizeRef:h}=d,f=Ie("Checkbox","-checkbox",BB,Ji,e,n);function p(R){if(t&&e.value!==void 0)t.toggleCheckbox(!u.value,e.value);else{const{onChange:w,"onUpdate:checked":A,onUpdateChecked:$}=e,{nTriggerFormInput:B,nTriggerFormChange:U}=d,N=u.value?e.uncheckedValue:e.checkedValue;A&&$e(A,N,R),$&&$e($,N,R),w&&$e(w,N,R),B(),U(),a.value=N}}function g(R){c.value||p(R)}function v(R){if(!c.value)switch(R.key){case" ":case"Enter":p(R)}}function b(R){switch(R.key){case" ":R.preventDefault()}}const x={focus:()=>{var R;(R=o.value)===null||R===void 0||R.focus()},blur:()=>{var R;(R=o.value)===null||R===void 0||R.blur()}},k=Gt("Checkbox",i,n),C=I(()=>{const{value:R}=h,{common:{cubicBezierEaseInOut:w},self:{borderRadius:A,color:$,colorChecked:B,colorDisabled:U,colorTableHeader:N,colorTableHeaderModal:K,colorTableHeaderPopover:H,checkMarkColor:T,checkMarkColorDisabled:z,border:F,borderFocus:y,borderDisabled:re,borderChecked:te,boxShadowFocus:j,textColor:Z,textColorDisabled:se,checkMarkColorDisabledChecked:pe,colorDisabledChecked:Se,borderDisabledChecked:he,labelPadding:fe,labelLineHeight:Ce,labelFontWeight:Y,[Ee("fontSize",R)]:O,[Ee("size",R)]:ze}}=f.value;return{"--n-label-line-height":Ce,"--n-label-font-weight":Y,"--n-size":ze,"--n-bezier":w,"--n-border-radius":A,"--n-border":F,"--n-border-checked":te,"--n-border-focus":y,"--n-border-disabled":re,"--n-border-disabled-checked":he,"--n-box-shadow-focus":j,"--n-color":$,"--n-color-checked":B,"--n-color-table":N,"--n-color-table-modal":K,"--n-color-table-popover":H,"--n-color-disabled":U,"--n-color-disabled-checked":Se,"--n-text-color":Z,"--n-text-color-disabled":se,"--n-check-mark-color":T,"--n-check-mark-color-disabled":z,"--n-check-mark-color-disabled-checked":pe,"--n-font-size":O,"--n-label-padding":fe}}),_=r?vt("checkbox",I(()=>h.value[0]),C,e):void 0;return Object.assign(d,x,{rtlEnabled:k,selfRef:o,mergedClsPrefix:n,mergedDisabled:c,renderedChecked:u,mergedTheme:f,labelId:ii(),handleClick:g,handleKeyUp:v,handleKeyDown:b,cssVars:r?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:n,indeterminate:r,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:u,focusable:d,handleKeyUp:c,handleKeyDown:h,handleClick:f}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=bt(t.default,g=>s||g?m("span",{class:`${u}-checkbox__label`,id:l},s||g):null);return m("div",{ref:"selfRef",class:[`${u}-checkbox`,this.themeClass,this.rtlEnabled&&`${u}-checkbox--rtl`,o&&`${u}-checkbox--checked`,n&&`${u}-checkbox--disabled`,r&&`${u}-checkbox--indeterminate`,i&&`${u}-checkbox--inside-table`,p&&`${u}-checkbox--show-label`],tabindex:n||!d?void 0:0,role:"checkbox","aria-checked":r?"mixed":o,"aria-labelledby":l,style:a,onKeyup:c,onKeydown:h,onClick:f,onMousedown:()=>{Ct("selectstart",window,g=>{g.preventDefault()},{once:!0})}},m("div",{class:`${u}-checkbox-box-wrapper`}," ",m("div",{class:`${u}-checkbox-box`},m(Xi,null,{default:()=>this.indeterminate?m("div",{key:"indeterminate",class:`${u}-checkbox-icon`},MB):m("div",{key:"check",class:`${u}-checkbox-icon`},PB)}),m("div",{class:`${u}-checkbox-box__border`}))),p)}}),a5={name:"Code",common:Ne,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:r}}};function TB(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:r}}const Gp={name:"Code",common:Ve,self:TB},IB=V([D("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[X("show-line-numbers",` - display: flex; - `),G("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),X("word-wrap",[V("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),V("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),V("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),zB=Object.assign(Object.assign({},Ie.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),OB=xe({name:"Code",props:zB,setup(e,{slots:t}){const{internalNoHighlight:o}=e,{mergedClsPrefixRef:n,inlineThemeDisabled:r}=nt(),i=M(null),a=o?{value:void 0}:lC(e),l=(f,p,g)=>{const{value:v}=a;return!v||!(f&&v.getLanguage(f))?null:v.highlight(g?p.trim():p,{language:f}).value},s=I(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),u=()=>{if(t.default)return;const{value:f}=i;if(!f)return;const{language:p}=e,g=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const b=l(p,g,e.trim);if(b!==null){if(e.inline)f.innerHTML=b;else{const x=f.querySelector(".__code__");x&&f.removeChild(x);const k=document.createElement("pre");k.className="__code__",k.innerHTML=b,f.appendChild(k)}return}}if(e.inline){f.textContent=g;return}const v=f.querySelector(".__code__");if(v)v.textContent=g;else{const b=document.createElement("pre");b.className="__code__",b.textContent=g,f.innerHTML="",f.appendChild(b)}};ut(u),at(Be(e,"language"),u),at(Be(e,"code"),u),o||at(a,u);const d=Ie("Code","-code",IB,Gp,e,n),c=I(()=>{const{common:{cubicBezierEaseInOut:f,fontFamilyMono:p},self:{textColor:g,fontSize:v,fontWeightStrong:b,lineNumberTextColor:x,"mono-3":k,"hue-1":C,"hue-2":_,"hue-3":R,"hue-4":w,"hue-5":A,"hue-5-2":$,"hue-6":B,"hue-6-2":U}}=d.value,{internalFontSize:N}=e;return{"--n-font-size":N?`${N}px`:v,"--n-font-family":p,"--n-font-weight-strong":b,"--n-bezier":f,"--n-text-color":g,"--n-mono-3":k,"--n-hue-1":C,"--n-hue-2":_,"--n-hue-3":R,"--n-hue-4":w,"--n-hue-5":A,"--n-hue-5-2":$,"--n-hue-6":B,"--n-hue-6-2":U,"--n-line-number-text-color":x}}),h=r?vt("code",I(()=>`${e.internalFontSize||"a"}`),c,e):void 0;return{mergedClsPrefix:n,codeRef:i,mergedShowLineNumbers:s,lineNumbers:I(()=>{let f=1;const p=[];let g=!1;for(const v of e.code)v===` -`?(g=!0,p.push(f++)):g=!1;return g||p.push(f++),p.join(` -`)}),cssVars:r?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:o,wordWrap:n,mergedShowLineNumbers:r,onRender:i}=this;return i==null||i(),m("code",{class:[`${o}-code`,this.themeClass,n&&`${o}-code--word-wrap`,r&&`${o}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},r?m("pre",{class:`${o}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function l5(e){const{fontWeight:t,textColor1:o,textColor2:n,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:r,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const s5={name:"Collapse",common:Ve,self:l5},LB={name:"Collapse",common:Ne,self:l5},HB=D("collapse","width: 100%;",[D("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[X("disabled",[G("header","cursor: not-allowed;",[G("header-main",` - color: var(--n-title-text-color-disabled); - `),D("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),D("collapse-item","margin-left: 32px;"),V("&:first-child","margin-top: 0;"),V("&:first-child >",[G("header","padding-top: 0;")]),X("left-arrow-placement",[G("header",[D("collapse-item-arrow","margin-right: 4px;")])]),X("right-arrow-placement",[G("header",[D("collapse-item-arrow","margin-left: 4px;")])]),G("content-wrapper",[G("content-inner","padding-top: 16px;"),Vp({duration:"0.15s"})]),X("active",[G("header",[X("active",[D("collapse-item-arrow","transform: rotate(90deg);")])])]),V("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),Ft("disabled",[X("trigger-area-main",[G("header",[G("header-main","cursor: pointer;"),D("collapse-item-arrow","cursor: default;")])]),X("trigger-area-arrow",[G("header",[D("collapse-item-arrow","cursor: pointer;")])]),X("trigger-area-extra",[G("header",[G("header-extra","cursor: pointer;")])])]),G("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: var(--n-title-padding); - color: var(--n-title-text-color); - `,[G("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),G("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),D("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),NB=Object.assign(Object.assign({},Ie.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),u5="n-collapse",VB=xe({name:"Collapse",props:NB,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=M(e.defaultExpandedNames),a=I(()=>e.expandedNames),l=to(a,i),s=Ie("Collapse","-collapse",HB,s5,e,o);function u(g){const{"onUpdate:expandedNames":v,onUpdateExpandedNames:b,onExpandedNamesChange:x}=e;b&&$e(b,g),v&&$e(v,g),x&&$e(x,g),i.value=g}function d(g){const{onItemHeaderClick:v}=e;v&&$e(v,g)}function c(g,v,b){const{accordion:x}=e,{value:k}=l;if(x)g?(u([v]),d({name:v,expanded:!0,event:b})):(u([]),d({name:v,expanded:!1,event:b}));else if(!Array.isArray(k))u([v]),d({name:v,expanded:!0,event:b});else{const C=k.slice(),_=C.findIndex(R=>v===R);~_?(C.splice(_,1),u(C),d({name:v,expanded:!1,event:b})):(C.push(v),u(C),d({name:v,expanded:!0,event:b}))}}Je(u5,{props:e,mergedClsPrefixRef:o,expandedNamesRef:l,slots:t,toggleItem:c});const h=Gt("Collapse",r,o),f=I(()=>{const{common:{cubicBezierEaseInOut:g},self:{titleFontWeight:v,dividerColor:b,titlePadding:x,titleTextColor:k,titleTextColorDisabled:C,textColor:_,arrowColor:R,fontSize:w,titleFontSize:A,arrowColorDisabled:$,itemMargin:B}}=s.value;return{"--n-font-size":w,"--n-bezier":g,"--n-text-color":_,"--n-divider-color":b,"--n-title-padding":x,"--n-title-font-size":A,"--n-title-text-color":k,"--n-title-text-color-disabled":C,"--n-title-font-weight":v,"--n-arrow-color":R,"--n-arrow-color-disabled":$,"--n-item-margin":B}}),p=n?vt("collapse",void 0,f,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:o,cssVars:n?void 0:f,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),jB=xe({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Ix(Be(e,"show"))}},render(){return m(Ds,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:o,clsPrefix:n}=this,r=t==="show"&&o,i=m("div",{class:`${n}-collapse-item__content-wrapper`},m("div",{class:`${n}-collapse-item__content-inner`},this.$slots));return r?Po(i,[[bn,e]]):e?i:null}})}}),WB={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},UB=xe({name:"CollapseItem",props:WB,setup(e){const{mergedRtlRef:t}=nt(e),o=ii(),n=gt(()=>{var c;return(c=e.name)!==null&&c!==void 0?c:o}),r=Oe(u5);r||yr("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=r,u=I(()=>{const{value:c}=i;if(Array.isArray(c)){const{value:h}=n;return!~c.findIndex(f=>f===h)}else if(c){const{value:h}=n;return h!==c}return!0});return{rtlEnabled:Gt("Collapse",t,l),collapseSlots:s,randomName:o,mergedClsPrefix:l,collapsed:u,triggerAreas:Be(a,"triggerAreas"),mergedDisplayDirective:I(()=>{const{displayDirective:c}=e;return c||a.displayDirective}),arrowPlacement:I(()=>a.arrowPlacement),handleClick(c){let h="main";Ko(c,"arrow")&&(h="arrow"),Ko(c,"extra")&&(h="extra"),a.triggerAreas.includes(h)&&r&&!e.disabled&&r.toggleItem(u.value,n.value,c)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:o,collapsed:n,mergedDisplayDirective:r,mergedClsPrefix:i,disabled:a,triggerAreas:l}=this,s=Xf(t.header,{collapsed:n},()=>[this.title]),u=t["header-extra"]||e["header-extra"],d=t.arrow||e.arrow;return m("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${o}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!n&&`${i}-collapse-item--active`,l.map(c=>`${i}-collapse-item--trigger-area-${c}`)]},m("div",{class:[`${i}-collapse-item__header`,!n&&`${i}-collapse-item__header--active`]},m("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},o==="right"&&s,m("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Xf(d,{collapsed:n},()=>{var c;return[m(Ut,{clsPrefix:i},{default:(c=e.expandIcon)!==null&&c!==void 0?c:()=>this.rtlEnabled?m(_M,null):m(zp,null)})]})),o==="left"&&s),k4(u,{collapsed:n},c=>m("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},c))),m(jB,{clsPrefix:i,displayDirective:r,show:!n},t))}});function d5(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const KB={name:"CollapseTransition",common:Ve,self:d5},GB={name:"CollapseTransition",common:Ne,self:d5},qB={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(xn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},qp=xe({name:"ConfigProvider",alias:["App"],props:qB,setup(e){const t=Oe(ln,null),o=I(()=>{const{theme:g}=e;if(g===null)return;const v=t==null?void 0:t.mergedThemeRef.value;return g===void 0?v:v===void 0?g:Object.assign({},v,g)}),n=I(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const v=t==null?void 0:t.mergedThemeOverridesRef.value;return v===void 0?g:wi({},v,g)}}}),r=gt(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),i=gt(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),a=I(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),l=I(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),s=I(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:td}),u=I(()=>{var g;const{rtl:v}=e;if(v===void 0)return t==null?void 0:t.mergedRtlRef.value;const b={};for(const x of v)b[x.name]=Kl(x),(g=x.peers)===null||g===void 0||g.forEach(k=>{k.name in b||(b[k.name]=Kl(k))});return b}),d=I(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),c=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),f=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),p=I(()=>{const{value:g}=o,{value:v}=n,b=v&&Object.keys(v).length!==0,x=g==null?void 0:g.name;return x?b?`${x}-${Yl(JSON.stringify(n.value))}`:x:b?Yl(JSON.stringify(n.value)):""});return Je(ln,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:u,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:s,mergedLocaleRef:I(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:I(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:I(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedKatexRef:I(()=>{const{katex:g}=e;return g===void 0?t==null?void 0:t.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:n,inlineThemeDisabled:c||!1,preflightStyleDisabled:h||!1,styleMountTarget:f}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:r,mergedTheme:o,mergedThemeOverrides:n}},render(){var e,t,o,n;return this.abstract?(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o):m(this.as||this.tag,{class:`${this.mergedClsPrefix||td}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),c5={name:"Popselect",common:Ne,peers:{Popover:Qi,InternalSelectMenu:Is}};function ZB(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const jd={name:"Popselect",common:Ve,peers:{Popover:si,InternalSelectMenu:Ua},self:ZB},f5="n-popselect",XB=D("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),Zp={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},ev=ws(Zp),YB=xe({name:"PopselectPanel",props:Zp,setup(e){const t=Oe(f5),{mergedClsPrefixRef:o,inlineThemeDisabled:n}=nt(e),r=Ie("Popselect","-pop-select",XB,jd,t.props,o),i=I(()=>Hd(e.options,BC("value","children")));function a(h,f){const{onUpdateValue:p,"onUpdate:value":g,onChange:v}=e;p&&$e(p,h,f),g&&$e(g,h,f),v&&$e(v,h,f)}function l(h){u(h.key)}function s(h){!Ko(h,"action")&&!Ko(h,"empty")&&!Ko(h,"header")&&h.preventDefault()}function u(h){const{value:{getNode:f}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let v=!0;e.value.forEach(b=>{if(b===h){v=!1;return}const x=f(b);x&&(p.push(x.key),g.push(x.rawNode))}),v&&(p.push(h),g.push(f(h).rawNode)),a(p,g)}else{const p=f(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=f(h);p&&a(h,p.rawNode);const{"onUpdate:show":g,onUpdateShow:v}=t.props;g&&$e(g,!1),v&&$e(v,!1),t.setShow(!1)}Rt(()=>{t.syncPosition()})}at(Be(e,"options"),()=>{Rt(()=>{t.syncPosition()})});const d=I(()=>{const{self:{menuBoxShadow:h}}=r.value;return{"--n-menu-box-shadow":h}}),c=n?vt("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:n?void 0:d,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),m(bC,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),QB=Object.assign(Object.assign(Object.assign(Object.assign({},Ie.props),Ui(Da,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Da.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Zp),JB=xe({name:"Popselect",props:QB,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=Ie("Popselect","-popselect",void 0,jd,e,t),n=M(null);function r(){var l;(l=n.value)===null||l===void 0||l.syncPosition()}function i(l){var s;(s=n.value)===null||s===void 0||s.setShow(l)}return Je(f5,{props:e,mergedThemeRef:o,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:n,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,n,r,i,a)=>{const{$attrs:l}=this;return m(YB,Object.assign({},l,{class:[l.class,o],style:[l.style,...r]},ei(this.$props,ev),{ref:_x(n),onMouseenter:Bl([i,l.onMouseenter]),onMouseleave:Bl([a,l.onMouseleave])}),{header:()=>{var s,u;return(u=(s=this.$slots).header)===null||u===void 0?void 0:u.call(s)},action:()=>{var s,u;return(u=(s=this.$slots).action)===null||u===void 0?void 0:u.call(s)},empty:()=>{var s,u;return(u=(s=this.$slots).empty)===null||u===void 0?void 0:u.call(s)}})}};return m(Ka,Object.assign({},Ui(this.$props,ev),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}});function h5(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Xp={name:"Select",common:Ve,peers:{InternalSelection:Nd,InternalSelectMenu:Ua},self:h5},p5={name:"Select",common:Ne,peers:{InternalSelection:Np,InternalSelectMenu:Is},self:h5},eD=V([D("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),D("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[An({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),tD=Object.assign(Object.assign({},Ie.props),{to:Mo.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),oD=xe({name:"Select",props:tD,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:n,inlineThemeDisabled:r}=nt(e),i=Ie("Select","-select",eD,Xp,e,t),a=M(e.defaultValue),l=Be(e,"value"),s=to(l,a),u=M(!1),d=M(""),c=Jl(e,["items","options"]),h=M([]),f=M([]),p=I(()=>f.value.concat(h.value).concat(c.value)),g=I(()=>{const{filter:Q}=e;if(Q)return Q;const{labelField:me,valueField:Pe}=e;return(He,We)=>{if(!We)return!1;const Ge=We[me];if(typeof Ge=="string")return qc(He,Ge);const qe=We[Pe];return typeof qe=="string"?qc(He,qe):typeof qe=="number"?qc(He,String(qe)):!1}}),v=I(()=>{if(e.remote)return c.value;{const{value:Q}=p,{value:me}=d;return!me.length||!e.filterable?Q:e9(Q,g.value,me,e.childrenField)}}),b=I(()=>{const{valueField:Q,childrenField:me}=e,Pe=BC(Q,me);return Hd(v.value,Pe)}),x=I(()=>t9(p.value,e.valueField,e.childrenField)),k=M(!1),C=to(Be(e,"show"),k),_=M(null),R=M(null),w=M(null),{localeRef:A}=Er("Select"),$=I(()=>{var Q;return(Q=e.placeholder)!==null&&Q!==void 0?Q:A.value.placeholder}),B=[],U=M(new Map),N=I(()=>{const{fallbackOption:Q}=e;if(Q===void 0){const{labelField:me,valueField:Pe}=e;return He=>({[me]:String(He),[Pe]:He})}return Q===!1?!1:me=>Object.assign(Q(me),{value:me})});function K(Q){const me=e.remote,{value:Pe}=U,{value:He}=x,{value:We}=N,Ge=[];return Q.forEach(qe=>{if(He.has(qe))Ge.push(He.get(qe));else if(me&&Pe.has(qe))Ge.push(Pe.get(qe));else if(We){const tt=We(qe);tt&&Ge.push(tt)}}),Ge}const H=I(()=>{if(e.multiple){const{value:Q}=s;return Array.isArray(Q)?K(Q):[]}return null}),T=I(()=>{const{value:Q}=s;return!e.multiple&&!Array.isArray(Q)?Q===null?null:K([Q])[0]||null:null}),z=Dn(e),{mergedSizeRef:F,mergedDisabledRef:y,mergedStatusRef:re}=z;function te(Q,me){const{onChange:Pe,"onUpdate:value":He,onUpdateValue:We}=e,{nTriggerFormChange:Ge,nTriggerFormInput:qe}=z;Pe&&$e(Pe,Q,me),We&&$e(We,Q,me),He&&$e(He,Q,me),a.value=Q,Ge(),qe()}function j(Q){const{onBlur:me}=e,{nTriggerFormBlur:Pe}=z;me&&$e(me,Q),Pe()}function Z(){const{onClear:Q}=e;Q&&$e(Q)}function se(Q){const{onFocus:me,showOnFocus:Pe}=e,{nTriggerFormFocus:He}=z;me&&$e(me,Q),He(),Pe&&Ce()}function pe(Q){const{onSearch:me}=e;me&&$e(me,Q)}function Se(Q){const{onScroll:me}=e;me&&$e(me,Q)}function he(){var Q;const{remote:me,multiple:Pe}=e;if(me){const{value:He}=U;if(Pe){const{valueField:We}=e;(Q=H.value)===null||Q===void 0||Q.forEach(Ge=>{He.set(Ge[We],Ge)})}else{const We=T.value;We&&He.set(We[e.valueField],We)}}}function fe(Q){const{onUpdateShow:me,"onUpdate:show":Pe}=e;me&&$e(me,Q),Pe&&$e(Pe,Q),k.value=Q}function Ce(){y.value||(fe(!0),k.value=!0,e.filterable&&Xe())}function Y(){fe(!1)}function O(){d.value="",f.value=B}const ze=M(!1);function je(){e.filterable&&(ze.value=!0)}function W(){e.filterable&&(ze.value=!1,C.value||O())}function ee(){y.value||(C.value?e.filterable?Xe():Y():Ce())}function ge(Q){var me,Pe;!((Pe=(me=w.value)===null||me===void 0?void 0:me.selfRef)===null||Pe===void 0)&&Pe.contains(Q.relatedTarget)||(u.value=!1,j(Q),Y())}function we(Q){se(Q),u.value=!0}function le(){u.value=!0}function ne(Q){var me;!((me=_.value)===null||me===void 0)&&me.$el.contains(Q.relatedTarget)||(u.value=!1,j(Q),Y())}function ce(){var Q;(Q=_.value)===null||Q===void 0||Q.focus(),Y()}function J(Q){var me;C.value&&(!((me=_.value)===null||me===void 0)&&me.$el.contains(zi(Q))||Y())}function ie(Q){if(!Array.isArray(Q))return[];if(N.value)return Array.from(Q);{const{remote:me}=e,{value:Pe}=x;if(me){const{value:He}=U;return Q.filter(We=>Pe.has(We)||He.has(We))}else return Q.filter(He=>Pe.has(He))}}function de(Q){ae(Q.rawNode)}function ae(Q){if(y.value)return;const{tag:me,remote:Pe,clearFilterAfterSelect:He,valueField:We}=e;if(me&&!Pe){const{value:Ge}=f,qe=Ge[0]||null;if(qe){const tt=h.value;tt.length?tt.push(qe):h.value=[qe],f.value=B}}if(Pe&&U.value.set(Q[We],Q),e.multiple){const Ge=ie(s.value),qe=Ge.findIndex(tt=>tt===Q[We]);if(~qe){if(Ge.splice(qe,1),me&&!Pe){const tt=q(Q[We]);~tt&&(h.value.splice(tt,1),He&&(d.value=""))}}else Ge.push(Q[We]),He&&(d.value="");te(Ge,K(Ge))}else{if(me&&!Pe){const Ge=q(Q[We]);~Ge?h.value=[h.value[Ge]]:h.value=B}st(),Y(),te(Q[We],Q)}}function q(Q){return h.value.findIndex(Pe=>Pe[e.valueField]===Q)}function ue(Q){C.value||Ce();const{value:me}=Q.target;d.value=me;const{tag:Pe,remote:He}=e;if(pe(me),Pe&&!He){if(!me){f.value=B;return}const{onCreate:We}=e,Ge=We?We(me):{[e.labelField]:me,[e.valueField]:me},{valueField:qe,labelField:tt}=e;c.value.some(yt=>yt[qe]===Ge[qe]||yt[tt]===Ge[tt])||h.value.some(yt=>yt[qe]===Ge[qe]||yt[tt]===Ge[tt])?f.value=B:f.value=[Ge]}}function ve(Q){Q.stopPropagation();const{multiple:me}=e;!me&&e.filterable&&Y(),Z(),me?te([],[]):te(null,null)}function De(Q){!Ko(Q,"action")&&!Ko(Q,"empty")&&!Ko(Q,"header")&&Q.preventDefault()}function Ke(Q){Se(Q)}function Qe(Q){var me,Pe,He,We,Ge;if(!e.keyboard){Q.preventDefault();return}switch(Q.key){case" ":if(e.filterable)break;Q.preventDefault();case"Enter":if(!(!((me=_.value)===null||me===void 0)&&me.isComposing)){if(C.value){const qe=(Pe=w.value)===null||Pe===void 0?void 0:Pe.getPendingTmNode();qe?de(qe):e.filterable||(Y(),st())}else if(Ce(),e.tag&&ze.value){const qe=f.value[0];if(qe){const tt=qe[e.valueField],{value:yt}=s;e.multiple&&Array.isArray(yt)&&yt.includes(tt)||ae(qe)}}}Q.preventDefault();break;case"ArrowUp":if(Q.preventDefault(),e.loading)return;C.value&&((He=w.value)===null||He===void 0||He.prev());break;case"ArrowDown":if(Q.preventDefault(),e.loading)return;C.value?(We=w.value)===null||We===void 0||We.next():Ce();break;case"Escape":C.value&&(Y4(Q),Y()),(Ge=_.value)===null||Ge===void 0||Ge.focus();break}}function st(){var Q;(Q=_.value)===null||Q===void 0||Q.focus()}function Xe(){var Q;(Q=_.value)===null||Q===void 0||Q.focusInput()}function pt(){var Q;C.value&&((Q=R.value)===null||Q===void 0||Q.syncPosition())}he(),at(Be(e,"options"),he);const Ye={focus:()=>{var Q;(Q=_.value)===null||Q===void 0||Q.focus()},focusInput:()=>{var Q;(Q=_.value)===null||Q===void 0||Q.focusInput()},blur:()=>{var Q;(Q=_.value)===null||Q===void 0||Q.blur()},blurInput:()=>{var Q;(Q=_.value)===null||Q===void 0||Q.blurInput()}},Le=I(()=>{const{self:{menuBoxShadow:Q}}=i.value;return{"--n-menu-box-shadow":Q}}),et=r?vt("select",void 0,Le,e):void 0;return Object.assign(Object.assign({},Ye),{mergedStatus:re,mergedClsPrefix:t,mergedBordered:o,namespace:n,treeMate:b,isMounted:Cr(),triggerRef:_,menuRef:w,pattern:d,uncontrolledShow:k,mergedShow:C,adjustedTo:Mo(e),uncontrolledValue:a,mergedValue:s,followerRef:R,localizedPlaceholder:$,selectedOption:T,selectedOptions:H,mergedSize:F,mergedDisabled:y,focused:u,activeWithoutMenuOpen:ze,inlineThemeDisabled:r,onTriggerInputFocus:je,onTriggerInputBlur:W,handleTriggerOrMenuResize:pt,handleMenuFocus:le,handleMenuBlur:ne,handleMenuTabOut:ce,handleTriggerClick:ee,handleToggle:de,handleDeleteOption:ae,handlePatternInput:ue,handleClear:ve,handleTriggerBlur:ge,handleTriggerFocus:we,handleKeydown:Qe,handleMenuAfterLeave:O,handleMenuClickOutside:J,handleMenuScroll:Ke,handleMenuKeydown:Qe,handleMenuMousedown:De,mergedTheme:i,cssVars:r?void 0:Le,themeClass:et==null?void 0:et.themeClass,onRender:et==null?void 0:et.onRender})},render(){return m("div",{class:`${this.mergedClsPrefix}-select`},m(ks,null,{default:()=>[m(_s,null,{default:()=>m(HA,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),m(Fs,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Mo.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>m(ho,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),Po(m(bC,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var n,r;return[(r=(n=this.$slots).empty)===null||r===void 0?void 0:r.call(n)]},header:()=>{var n,r;return[(r=(n=this.$slots).header)===null||r===void 0?void 0:r.call(n)]},action:()=>{var n,r;return[(r=(n=this.$slots).action)===null||r===void 0?void 0:r.call(n)]}}),this.displayDirective==="show"?[[bn,this.mergedShow],[Oi,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Oi,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),nD={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function m5(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:u,fontSizeSmall:d,fontSizeMedium:c,heightTiny:h,heightSmall:f,heightMedium:p}=e;return Object.assign(Object.assign({},nD),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:r,itemTextColorActive:o,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:f,itemSizeLarge:p,itemFontSizeSmall:u,itemFontSizeMedium:d,itemFontSizeLarge:c,jumperFontSizeSmall:u,jumperFontSizeMedium:d,jumperFontSizeLarge:c,jumperTextColor:t,jumperTextColorDisabled:a})}const Yp={name:"Pagination",common:Ve,peers:{Select:Xp,Input:Xo,Popselect:jd},self:m5},g5={name:"Pagination",common:Ne,peers:{Select:p5,Input:Sn,Popselect:c5},self(e){const{primaryColor:t,opacity3:o}=e,n=Me(t,{alpha:Number(o)}),r=m5(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},tv=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,ov=[X("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],rD=D("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[D("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),D("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),V("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),D("select",` - width: var(--n-select-width); - `),V("&.transition-disabled",[D("pagination-item","transition: none!important;")]),D("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[D("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),D("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[X("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[D("base-icon",` - font-size: var(--n-button-icon-size); - `)]),Ft("disabled",[X("hover",tv,ov),V("&:hover",tv,ov),V("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[X("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),X("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[V("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),X("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[X("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),X("disabled",` - cursor: not-allowed; - `,[D("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),X("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[D("pagination-quick-jumper",[D("input",` - margin: 0; - `)])])]);function v5(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const n=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof n=="number"?n:(n==null?void 0:n.value)||10}function iD(e,t,o,n){let r=!1,i=!1,a=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,u=t;let d=e,c=e;const h=(o-5)/2;c+=Math.ceil(h),c=Math.min(Math.max(c,s+o-3),u-2),d-=Math.floor(h),d=Math.max(Math.min(d,u-o+3),s+2);let f=!1,p=!1;d>s+2&&(f=!0),c<u-2&&(p=!0);const g=[];g.push({type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}),f?(r=!0,a=d-1,g.push({type:"fast-backward",active:!1,label:void 0,options:n?nv(s+1,d-1):null})):u>=s+1&&g.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let v=d;v<=c;++v)g.push({type:"page",label:v,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===v});return p?(i=!0,l=c+1,g.push({type:"fast-forward",active:!1,label:void 0,options:n?nv(c+1,u-1):null})):c===u-2&&g[g.length-1].label!==u-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:u-1,active:e===u-1}),g[g.length-1].label!==u&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:u,active:e===u}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:a,fastForwardTo:l,items:g}}function nv(e,t){const o=[];for(let n=e;n<=t;++n)o.push({label:`${n}`,value:n});return o}const aD=Object.assign(Object.assign({},Ie.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Mo.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),lD=xe({name:"Pagination",props:aD,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=Ie("Pagination","-pagination",rD,Yp,e,o),{localeRef:a}=Er("Pagination"),l=M(null),s=M(e.defaultPage),u=M(v5(e)),d=to(Be(e,"page"),s),c=to(Be(e,"pageSize"),u),h=I(()=>{const{itemCount:Y}=e;if(Y!==void 0)return Math.max(1,Math.ceil(Y/c.value));const{pageCount:O}=e;return O!==void 0?Math.max(O,1):1}),f=M("");kt(()=>{e.simple,f.value=String(d.value)});const p=M(!1),g=M(!1),v=M(!1),b=M(!1),x=()=>{e.disabled||(p.value=!0,T())},k=()=>{e.disabled||(p.value=!1,T())},C=()=>{g.value=!0,T()},_=()=>{g.value=!1,T()},R=Y=>{z(Y)},w=I(()=>iD(d.value,h.value,e.pageSlot,e.showQuickJumpDropdown));kt(()=>{w.value.hasFastBackward?w.value.hasFastForward||(p.value=!1,v.value=!1):(g.value=!1,b.value=!1)});const A=I(()=>{const Y=a.value.selectionSuffix;return e.pageSizes.map(O=>typeof O=="number"?{label:`${O} / ${Y}`,value:O}:O)}),$=I(()=>{var Y,O;return((O=(Y=t==null?void 0:t.value)===null||Y===void 0?void 0:Y.Pagination)===null||O===void 0?void 0:O.inputSize)||xg(e.size)}),B=I(()=>{var Y,O;return((O=(Y=t==null?void 0:t.value)===null||Y===void 0?void 0:Y.Pagination)===null||O===void 0?void 0:O.selectSize)||xg(e.size)}),U=I(()=>(d.value-1)*c.value),N=I(()=>{const Y=d.value*c.value-1,{itemCount:O}=e;return O!==void 0&&Y>O-1?O-1:Y}),K=I(()=>{const{itemCount:Y}=e;return Y!==void 0?Y:(e.pageCount||1)*c.value}),H=Gt("Pagination",r,o);function T(){Rt(()=>{var Y;const{value:O}=l;O&&(O.classList.add("transition-disabled"),(Y=l.value)===null||Y===void 0||Y.offsetWidth,O.classList.remove("transition-disabled"))})}function z(Y){if(Y===d.value)return;const{"onUpdate:page":O,onUpdatePage:ze,onChange:je,simple:W}=e;O&&$e(O,Y),ze&&$e(ze,Y),je&&$e(je,Y),s.value=Y,W&&(f.value=String(Y))}function F(Y){if(Y===c.value)return;const{"onUpdate:pageSize":O,onUpdatePageSize:ze,onPageSizeChange:je}=e;O&&$e(O,Y),ze&&$e(ze,Y),je&&$e(je,Y),u.value=Y,h.value<d.value&&z(h.value)}function y(){if(e.disabled)return;const Y=Math.min(d.value+1,h.value);z(Y)}function re(){if(e.disabled)return;const Y=Math.max(d.value-1,1);z(Y)}function te(){if(e.disabled)return;const Y=Math.min(w.value.fastForwardTo,h.value);z(Y)}function j(){if(e.disabled)return;const Y=Math.max(w.value.fastBackwardTo,1);z(Y)}function Z(Y){F(Y)}function se(){const Y=Number.parseInt(f.value);Number.isNaN(Y)||(z(Math.max(1,Math.min(Y,h.value))),e.simple||(f.value=""))}function pe(){se()}function Se(Y){if(!e.disabled)switch(Y.type){case"page":z(Y.label);break;case"fast-backward":j();break;case"fast-forward":te();break}}function he(Y){f.value=Y.replace(/\D+/g,"")}kt(()=>{d.value,c.value,T()});const fe=I(()=>{const{size:Y}=e,{self:{buttonBorder:O,buttonBorderHover:ze,buttonBorderPressed:je,buttonIconColor:W,buttonIconColorHover:ee,buttonIconColorPressed:ge,itemTextColor:we,itemTextColorHover:le,itemTextColorPressed:ne,itemTextColorActive:ce,itemTextColorDisabled:J,itemColor:ie,itemColorHover:de,itemColorPressed:ae,itemColorActive:q,itemColorActiveHover:ue,itemColorDisabled:ve,itemBorder:De,itemBorderHover:Ke,itemBorderPressed:Qe,itemBorderActive:st,itemBorderDisabled:Xe,itemBorderRadius:pt,jumperTextColor:Ye,jumperTextColorDisabled:Le,buttonColor:et,buttonColorHover:Q,buttonColorPressed:me,[Ee("itemPadding",Y)]:Pe,[Ee("itemMargin",Y)]:He,[Ee("inputWidth",Y)]:We,[Ee("selectWidth",Y)]:Ge,[Ee("inputMargin",Y)]:qe,[Ee("selectMargin",Y)]:tt,[Ee("jumperFontSize",Y)]:yt,[Ee("prefixMargin",Y)]:Bt,[Ee("suffixMargin",Y)]:_t,[Ee("itemSize",Y)]:xo,[Ee("buttonIconSize",Y)]:Ao,[Ee("itemFontSize",Y)]:Bo,[`${Ee("itemMargin",Y)}Rtl`]:No,[`${Ee("inputMargin",Y)}Rtl`]:Vo},common:{cubicBezierEaseInOut:un}}=i.value;return{"--n-prefix-margin":Bt,"--n-suffix-margin":_t,"--n-item-font-size":Bo,"--n-select-width":Ge,"--n-select-margin":tt,"--n-input-width":We,"--n-input-margin":qe,"--n-input-margin-rtl":Vo,"--n-item-size":xo,"--n-item-text-color":we,"--n-item-text-color-disabled":J,"--n-item-text-color-hover":le,"--n-item-text-color-active":ce,"--n-item-text-color-pressed":ne,"--n-item-color":ie,"--n-item-color-hover":de,"--n-item-color-disabled":ve,"--n-item-color-active":q,"--n-item-color-active-hover":ue,"--n-item-color-pressed":ae,"--n-item-border":De,"--n-item-border-hover":Ke,"--n-item-border-disabled":Xe,"--n-item-border-active":st,"--n-item-border-pressed":Qe,"--n-item-padding":Pe,"--n-item-border-radius":pt,"--n-bezier":un,"--n-jumper-font-size":yt,"--n-jumper-text-color":Ye,"--n-jumper-text-color-disabled":Le,"--n-item-margin":He,"--n-item-margin-rtl":No,"--n-button-icon-size":Ao,"--n-button-icon-color":W,"--n-button-icon-color-hover":ee,"--n-button-icon-color-pressed":ge,"--n-button-color-hover":Q,"--n-button-color":et,"--n-button-color-pressed":me,"--n-button-border":O,"--n-button-border-hover":ze,"--n-button-border-pressed":je}}),Ce=n?vt("pagination",I(()=>{let Y="";const{size:O}=e;return Y+=O[0],Y}),fe,e):void 0;return{rtlEnabled:H,mergedClsPrefix:o,locale:a,selfRef:l,mergedPage:d,pageItems:I(()=>w.value.items),mergedItemCount:K,jumperValue:f,pageSizeOptions:A,mergedPageSize:c,inputSize:$,selectSize:B,mergedTheme:i,mergedPageCount:h,startIndex:U,endIndex:N,showFastForwardMenu:v,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:R,handleFastForwardMouseenter:x,handleFastForwardMouseleave:k,handleFastBackwardMouseenter:C,handleFastBackwardMouseleave:_,handleJumperInput:he,handleBackwardClick:re,handleForwardClick:y,handlePageItemClick:Se,handleSizePickerChange:Z,handleQuickJumperChange:pe,cssVars:n?void 0:fe,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:n,mergedPage:r,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:u,locale:d,inputSize:c,selectSize:h,mergedPageSize:f,pageSizeOptions:p,jumperValue:g,simple:v,prev:b,next:x,prefix:k,suffix:C,label:_,goto:R,handleJumperInput:w,handleSizePickerChange:A,handleBackwardClick:$,handlePageItemClick:B,handleForwardClick:U,handleQuickJumperChange:N,onRender:K}=this;K==null||K();const H=e.prefix||k,T=e.suffix||C,z=b||e.prev,F=x||e.next,y=_||e.label;return m("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,v&&`${t}-pagination--simple`],style:n},H?m("div",{class:`${t}-pagination-prefix`},H({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(re=>{switch(re){case"pages":return m(ft,null,m("div",{class:[`${t}-pagination-item`,!z&&`${t}-pagination-item--button`,(r<=1||r>i||o)&&`${t}-pagination-item--disabled`],onClick:$},z?z({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):m(Ut,{clsPrefix:t},{default:()=>this.rtlEnabled?m(H0,null):m(z0,null)})),v?m(ft,null,m("div",{class:`${t}-pagination-quick-jumper`},m(rn,{value:g,onUpdateValue:w,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:N}))," /"," ",i):a.map((te,j)=>{let Z,se,pe;const{type:Se}=te;switch(Se){case"page":const fe=te.label;y?Z=y({type:"page",node:fe,active:te.active}):Z=fe;break;case"fast-forward":const Ce=this.fastForwardActive?m(Ut,{clsPrefix:t},{default:()=>this.rtlEnabled?m(O0,null):m(L0,null)}):m(Ut,{clsPrefix:t},{default:()=>m(N0,null)});y?Z=y({type:"fast-forward",node:Ce,active:this.fastForwardActive||this.showFastForwardMenu}):Z=Ce,se=this.handleFastForwardMouseenter,pe=this.handleFastForwardMouseleave;break;case"fast-backward":const Y=this.fastBackwardActive?m(Ut,{clsPrefix:t},{default:()=>this.rtlEnabled?m(L0,null):m(O0,null)}):m(Ut,{clsPrefix:t},{default:()=>m(N0,null)});y?Z=y({type:"fast-backward",node:Y,active:this.fastBackwardActive||this.showFastBackwardMenu}):Z=Y,se=this.handleFastBackwardMouseenter,pe=this.handleFastBackwardMouseleave;break}const he=m("div",{key:j,class:[`${t}-pagination-item`,te.active&&`${t}-pagination-item--active`,Se!=="page"&&(Se==="fast-backward"&&this.showFastBackwardMenu||Se==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,Se==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{B(te)},onMouseenter:se,onMouseleave:pe},Z);if(Se==="page"&&!te.mayBeFastBackward&&!te.mayBeFastForward)return he;{const fe=te.type==="page"?te.mayBeFastBackward?"fast-backward":"fast-forward":te.type;return te.type!=="page"&&!te.options?he:m(JB,{to:this.to,key:fe,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:u.peers.Popselect,themeOverrides:u.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Se==="page"?!1:Se==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Ce=>{Se!=="page"&&(Ce?Se==="fast-backward"?this.showFastBackwardMenu=Ce:this.showFastForwardMenu=Ce:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:te.type!=="page"&&te.options?te.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>he})}}),m("div",{class:[`${t}-pagination-item`,!F&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||o}],onClick:U},F?F({page:r,pageSize:f,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):m(Ut,{clsPrefix:t},{default:()=>this.rtlEnabled?m(z0,null):m(H0,null)})));case"size-picker":return!v&&l?m(oD,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:f,disabled:o,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:A})):null;case"quick-jumper":return!v&&s?m("div",{class:`${t}-pagination-quick-jumper`},R?R():wo(this.$slots.goto,()=>[d.goto]),m(rn,{value:g,onUpdateValue:w,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:N})):null;default:return null}}),T?m("div",{class:`${t}-pagination-suffix`},T({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),b5={padding:"8px 14px"},Wd={name:"Tooltip",common:Ne,peers:{Popover:Qi},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},b5),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function sD(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},b5),{borderRadius:t,boxShadow:o,color:Ue(n,"rgba(0, 0, 0, .85)"),textColor:n})}const zs={name:"Tooltip",common:Ve,peers:{Popover:si},self:sD},x5={name:"Ellipsis",common:Ne,peers:{Tooltip:Wd}},Qp={name:"Ellipsis",common:Ve,peers:{Tooltip:zs}},y5={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},C5={name:"Radio",common:Ne,self(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},y5),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Me(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Me(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}};function uD(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},y5),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:c,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Me(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Me(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}const Ud={name:"Radio",common:Ve,self:uD},dD={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function w5(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:c,heightSmall:h,heightMedium:f,heightLarge:p,heightHuge:g,textColor3:v,opacityDisabled:b}=e;return Object.assign(Object.assign({},dD),{optionHeightSmall:h,optionHeightMedium:f,optionHeightLarge:p,optionHeightHuge:g,borderRadius:l,fontSizeSmall:s,fontSizeMedium:u,fontSizeLarge:d,fontSizeHuge:c,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:Me(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const Kd={name:"Dropdown",common:Ve,peers:{Popover:si},self:w5},Jp={name:"Dropdown",common:Ne,peers:{Popover:Qi},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=w5(e);return r.colorInverted=n,r.optionColorActive=Me(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},cD={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function S5(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:u,fontWeightStrong:d,borderRadius:c,lineHeight:h,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,dividerColor:v,heightSmall:b,opacityDisabled:x,tableColorStriped:k}=e;return Object.assign(Object.assign({},cD),{actionDividerColor:v,lineHeight:h,borderRadius:c,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ue(t,v),tdColorHover:Ue(t,l),tdColorSorting:Ue(t,l),tdColorStriped:Ue(t,k),thColor:Ue(t,a),thColorHover:Ue(Ue(t,a),l),thColorSorting:Ue(Ue(t,a),l),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:u,borderColorModal:Ue(o,v),tdColorHoverModal:Ue(o,l),tdColorSortingModal:Ue(o,l),tdColorStripedModal:Ue(o,k),thColorModal:Ue(o,a),thColorHoverModal:Ue(Ue(o,a),l),thColorSortingModal:Ue(Ue(o,a),l),tdColorModal:o,borderColorPopover:Ue(n,v),tdColorHoverPopover:Ue(n,l),tdColorSortingPopover:Ue(n,l),tdColorStripedPopover:Ue(n,k),thColorPopover:Ue(n,a),thColorHoverPopover:Ue(Ue(n,a),l),thColorSortingPopover:Ue(Ue(n,a),l),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:u,loadingSize:b,opacityLoading:x})}const E5={name:"DataTable",common:Ve,peers:{Button:Ho,Checkbox:Ji,Radio:Ud,Pagination:Yp,Scrollbar:Lo,Empty:tr,Popover:si,Ellipsis:Qp,Dropdown:Kd},self:S5},fD={name:"DataTable",common:Ne,peers:{Button:Yo,Checkbox:Ga,Radio:C5,Pagination:g5,Scrollbar:Zo,Empty:Yi,Popover:Qi,Ellipsis:x5,Dropdown:Jp},self(e){const t=S5(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},hD=Object.assign(Object.assign({},Da),Ie.props),pD=xe({name:"Tooltip",props:hD,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=Ie("Tooltip","-tooltip",void 0,zs,e,t),n=M(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:I(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return m(Ka,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),k5=D("ellipsis",{overflow:"hidden"},[Ft("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),X("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),X("cursor-pointer",` - cursor: pointer; - `)]);function mh(e){return`${e}-ellipsis--line-clamp`}function gh(e,t){return`${e}-ellipsis--cursor-${t}`}const _5=Object.assign(Object.assign({},Ie.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),em=xe({name:"Ellipsis",inheritAttrs:!1,props:_5,setup(e,{slots:t,attrs:o}){const n=aC(),r=Ie("Ellipsis","-ellipsis",k5,Qp,e,n),i=M(null),a=M(null),l=M(null),s=M(!1),u=I(()=>{const{lineClamp:v}=e,{value:b}=s;return v!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":v}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function d(){let v=!1;const{value:b}=s;if(b)return!0;const{value:x}=i;if(x){const{lineClamp:k}=e;if(f(x),k!==void 0)v=x.scrollHeight<=x.offsetHeight;else{const{value:C}=a;C&&(v=C.getBoundingClientRect().width<=x.getBoundingClientRect().width)}p(x,v)}return v}const c=I(()=>e.expandTrigger==="click"?()=>{var v;const{value:b}=s;b&&((v=l.value)===null||v===void 0||v.setShow(!1)),s.value=!b}:void 0);wd(()=>{var v;e.tooltip&&((v=l.value)===null||v===void 0||v.setShow(!1))});const h=()=>m("span",Object.assign({},bo(o,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?mh(n.value):void 0,e.expandTrigger==="click"?gh(n.value,"pointer"):void 0],style:u.value}),{ref:"triggerRef",onClick:c.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:m("span",{ref:"triggerInnerRef"},t));function f(v){if(!v)return;const b=u.value,x=mh(n.value);e.lineClamp!==void 0?g(v,x,"add"):g(v,x,"remove");for(const k in b)v.style[k]!==b[k]&&(v.style[k]=b[k])}function p(v,b){const x=gh(n.value,"pointer");e.expandTrigger==="click"&&!b?g(v,x,"add"):g(v,x,"remove")}function g(v,b,x){x==="add"?v.classList.contains(b)||v.classList.add(b):v.classList.contains(b)&&v.classList.remove(b)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:c,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:n}=this;if(t){const{mergedTheme:r}=this;return m(pD,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:o,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return o()}}),mD=xe({name:"PerformantEllipsis",props:_5,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const n=M(!1),r=aC();return kr("-ellipsis",k5,r),{mouseEntered:n,renderTrigger:()=>{const{lineClamp:a}=e,l=r.value;return m("span",Object.assign({},bo(t,{class:[`${l}-ellipsis`,a!==void 0?mh(l):void 0,e.expandTrigger==="click"?gh(l,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{n.value=!0}}),a?o:m("span",null,o))}}},render(){return this.mouseEntered?m(em,bo({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),gD=Object.assign(Object.assign({},Ie.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),In="n-data-table",vD=xe({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),bD=xe({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=nt(),{mergedSortStateRef:o,mergedClsPrefixRef:n}=Oe(In),r=I(()=>o.value.find(s=>s.columnKey===e.column.key)),i=I(()=>r.value!==void 0),a=I(()=>{const{value:s}=r;return s&&i.value?s.order:!1}),l=I(()=>{var s,u;return((u=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||u===void 0?void 0:u.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:n,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:n}=this.column;return e?m(vD,{render:e,order:t}):m("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},n?n({order:t}):m(Ut,{clsPrefix:o},{default:()=>m(EM,null)}))}}),F5={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},R5="n-radio-group";function $5(e){const t=Oe(R5,null),o=Dn(e,{mergedSize(x){const{size:k}=e;if(k!==void 0)return k;if(t){const{mergedSizeRef:{value:C}}=t;if(C!==void 0)return C}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||t!=null&&t.disabledRef.value||x!=null&&x.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=M(null),a=M(null),l=M(e.defaultChecked),s=Be(e,"checked"),u=to(s,l),d=gt(()=>t?t.valueRef.value===e.value:u.value),c=gt(()=>{const{name:x}=e;if(x!==void 0)return x;if(t)return t.nameRef.value}),h=M(!1);function f(){if(t){const{doUpdateValue:x}=t,{value:k}=e;$e(x,k)}else{const{onUpdateChecked:x,"onUpdate:checked":k}=e,{nTriggerFormInput:C,nTriggerFormChange:_}=o;x&&$e(x,!0),k&&$e(k,!0),C(),_(),l.value=!0}}function p(){r.value||d.value||f()}function g(){p(),i.value&&(i.value.checked=d.value)}function v(){h.value=!1}function b(){h.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:nt(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:c,mergedDisabled:r,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:g,handleRadioInputBlur:v,handleRadioInputFocus:b}}const xD=D("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[X("checked",[G("dot",` - background-color: var(--n-color-active); - `)]),G("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),D("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),G("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[V("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),X("checked",{boxShadow:"var(--n-box-shadow-active)"},[V("&::before",` - opacity: 1; - transform: scale(1); - `)])]),G("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),Ft("disabled",` - cursor: pointer; - `,[V("&:hover",[G("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),X("focus",[V("&:not(:active)",[G("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),X("disabled",` - cursor: not-allowed; - `,[G("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[V("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),X("checked",` - opacity: 1; - `)]),G("label",{color:"var(--n-text-color-disabled)"}),D("radio-input",` - cursor: not-allowed; - `)])]),yD=Object.assign(Object.assign({},Ie.props),F5),P5=xe({name:"Radio",props:yD,setup(e){const t=$5(e),o=Ie("Radio","-radio",xD,Ud,e,t.mergedClsPrefix),n=I(()=>{const{mergedSize:{value:u}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:c,boxShadowActive:h,boxShadowDisabled:f,boxShadowFocus:p,boxShadowHover:g,color:v,colorDisabled:b,colorActive:x,textColor:k,textColorDisabled:C,dotColorActive:_,dotColorDisabled:R,labelPadding:w,labelLineHeight:A,labelFontWeight:$,[Ee("fontSize",u)]:B,[Ee("radioSize",u)]:U}}=o.value;return{"--n-bezier":d,"--n-label-line-height":A,"--n-label-font-weight":$,"--n-box-shadow":c,"--n-box-shadow-active":h,"--n-box-shadow-disabled":f,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":v,"--n-color-active":x,"--n-color-disabled":b,"--n-dot-color-active":_,"--n-dot-color-disabled":R,"--n-font-size":B,"--n-radio-size":U,"--n-text-color":k,"--n-text-color-disabled":C,"--n-label-padding":w}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:a}=nt(e),l=Gt("Radio",a,i),s=r?vt("radio",I(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:r?void 0:n,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:n}=this;return o==null||o(),m("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},m("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),m("div",{class:`${t}-radio__dot-wrapper`}," ",m("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),bt(e.default,r=>!r&&!n?null:m("div",{ref:"labelRef",class:`${t}-radio__label`},r||n)))}}),CD=D("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[G("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[X("checked",{backgroundColor:"var(--n-button-border-color-active)"}),X("disabled",{opacity:"var(--n-opacity-disabled)"})]),X("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[D("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),G("splitor",{height:"var(--n-height)"})]),D("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background: var(--n-button-color); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[D("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),G("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),V("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[G("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),V("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[G("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),Ft("disabled",` - cursor: pointer; - `,[V("&:hover",[G("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),Ft("checked",{color:"var(--n-button-text-color-hover)"})]),X("focus",[V("&:not(:active)",[G("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),X("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),X("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function wD(e,t,o){var n;const r=[];let i=!1;for(let a=0;a<e.length;++a){const l=e[a],s=(n=l.type)===null||n===void 0?void 0:n.name;s==="RadioButton"&&(i=!0);const u=l.props;if(s!=="RadioButton"){r.push(l);continue}if(a===0)r.push(l);else{const d=r[r.length-1].props,c=t===d.value,h=d.disabled,f=t===u.value,p=u.disabled,g=(c?2:0)+(h?0:1),v=(f?2:0)+(p?0:1),b={[`${o}-radio-group__splitor--disabled`]:h,[`${o}-radio-group__splitor--checked`]:c},x={[`${o}-radio-group__splitor--disabled`]:p,[`${o}-radio-group__splitor--checked`]:f},k=g<v?x:b;r.push(m("div",{class:[`${o}-radio-group__splitor`,k]}),l)}}return{children:r,isButtonGroup:i}}const SD=Object.assign(Object.assign({},Ie.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),M5=xe({name:"RadioGroup",props:SD,setup(e){const t=M(null),{mergedSizeRef:o,mergedDisabledRef:n,nTriggerFormChange:r,nTriggerFormInput:i,nTriggerFormBlur:a,nTriggerFormFocus:l}=Dn(e),{mergedClsPrefixRef:s,inlineThemeDisabled:u,mergedRtlRef:d}=nt(e),c=Ie("Radio","-radio-group",CD,Ud,e,s),h=M(e.defaultValue),f=Be(e,"value"),p=to(f,h);function g(_){const{onUpdateValue:R,"onUpdate:value":w}=e;R&&$e(R,_),w&&$e(w,_),h.value=_,r(),i()}function v(_){const{value:R}=t;R&&(R.contains(_.relatedTarget)||l())}function b(_){const{value:R}=t;R&&(R.contains(_.relatedTarget)||a())}Je(R5,{mergedClsPrefixRef:s,nameRef:Be(e,"name"),valueRef:p,disabledRef:n,mergedSizeRef:o,doUpdateValue:g});const x=Gt("Radio",d,s),k=I(()=>{const{value:_}=o,{common:{cubicBezierEaseInOut:R},self:{buttonBorderColor:w,buttonBorderColorActive:A,buttonBorderRadius:$,buttonBoxShadow:B,buttonBoxShadowFocus:U,buttonBoxShadowHover:N,buttonColor:K,buttonColorActive:H,buttonTextColor:T,buttonTextColorActive:z,buttonTextColorHover:F,opacityDisabled:y,[Ee("buttonHeight",_)]:re,[Ee("fontSize",_)]:te}}=c.value;return{"--n-font-size":te,"--n-bezier":R,"--n-button-border-color":w,"--n-button-border-color-active":A,"--n-button-border-radius":$,"--n-button-box-shadow":B,"--n-button-box-shadow-focus":U,"--n-button-box-shadow-hover":N,"--n-button-color":K,"--n-button-color-active":H,"--n-button-text-color":T,"--n-button-text-color-hover":F,"--n-button-text-color-active":z,"--n-height":re,"--n-opacity-disabled":y}}),C=u?vt("radio-group",I(()=>o.value[0]),k,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:s,mergedValue:p,handleFocusout:b,handleFocusin:v,cssVars:u?void 0:k,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:n,handleFocusout:r}=this,{children:i,isButtonGroup:a}=wD(vr(cp(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{onFocusin:n,onFocusout:r,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,a&&`${o}-radio-group--button-group`],style:this.cssVars},i)}}),ED=xe({name:"RadioButton",props:F5,setup:$5,render(){const{mergedClsPrefix:e}=this;return m("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},m("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),m("div",{class:`${e}-radio-button__state-border`}),bt(this.$slots.default,t=>!t&&!this.label?null:m("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),A5=40,B5=40;function rv(e){if(e.type==="selection")return e.width===void 0?A5:lo(e.width);if(e.type==="expand")return e.width===void 0?B5:lo(e.width);if(!("children"in e))return typeof e.width=="string"?lo(e.width):e.width}function kD(e){var t,o;if(e.type==="selection")return So((t=e.width)!==null&&t!==void 0?t:A5);if(e.type==="expand")return So((o=e.width)!==null&&o!==void 0?o:B5);if(!("children"in e))return So(e.width)}function kn(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function iv(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function _D(e){return e==="ascend"?1:e==="descend"?-1:0}function FD(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function RD(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=kD(e),{minWidth:n,maxWidth:r}=e;return{width:o,minWidth:So(n)||o,maxWidth:So(r)}}function $D(e,t,o){return typeof o=="function"?o(e,t):o||""}function Qc(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Jc(e){return"children"in e?!1:!!e.sorter}function D5(e){return"children"in e&&e.children.length?!1:!!e.resizable}function av(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function lv(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function PD(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:lv(!1)}:Object.assign(Object.assign({},t),{order:lv(t.order)})}function T5(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function MD(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function AD(e,t){const o=e.filter(i=>i.type!=="expand"&&i.type!=="selection"&&i.allowExport!==!1),n=o.map(i=>i.title).join(","),r=t.map(i=>o.map(a=>MD(i[a.key])).join(","));return[n,...r].join(` -`)}const BD=xe({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=nt(e),n=Gt("DataTable",o,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:a}=Oe(In),l=M(e.value),s=I(()=>{const{value:p}=l;return Array.isArray(p)?p:null}),u=I(()=>{const{value:p}=l;return Qc(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function d(p){e.onChange(p)}function c(p){e.multiple&&Array.isArray(p)?l.value=p:Qc(e.column)&&!Array.isArray(p)?l.value=[p]:l.value=p}function h(){d(l.value),e.onConfirm()}function f(){e.multiple||Qc(e.column)?d([]):d(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:n,mergedTheme:i,locale:a,checkboxGroupValue:s,radioGroupValue:u,handleChange:c,handleConfirmClick:h,handleClearClick:f}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return m("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},m(or,null,{default:()=>{const{checkboxGroupValue:n,handleChange:r}=this;return this.multiple?m(i5,{value:n,class:`${o}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>m(Vd,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):m(M5,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>m(P5,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),m("div",{class:`${o}-data-table-filter-menu__action`},m(St,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),m(St,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),DD=xe({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function TD(e,t,o){const n=Object.assign({},e);return n[t]=o,n}const ID=xe({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=nt(),{mergedThemeRef:o,mergedClsPrefixRef:n,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s,filterIconPopoverPropsRef:u}=Oe(In),d=M(!1),c=r,h=I(()=>e.column.filterMultiple!==!1),f=I(()=>{const k=c.value[e.column.key];if(k===void 0){const{value:C}=h;return C?[]:null}return k}),p=I(()=>{const{value:k}=f;return Array.isArray(k)?k.length>0:k!==null}),g=I(()=>{var k,C;return((C=(k=t==null?void 0:t.value)===null||k===void 0?void 0:k.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function v(k){const C=TD(c.value,e.column.key,k);s(C,e.column),a.value==="first"&&l(1)}function b(){d.value=!1}function x(){d.value=!1}return{mergedTheme:o,mergedClsPrefix:n,active:p,showPopover:d,mergedRenderFilter:g,filterIconPopoverProps:u,filterMultiple:h,mergedFilterValue:f,filterMenuCssVars:i,handleFilterChange:v,handleFilterMenuConfirm:x,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:n}=this;return m(Ka,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},n,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return m(DD,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return m("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):m(Ut,{clsPrefix:t},{default:()=>m(MM,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:o}):m(BD,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),zD=xe({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Oe(In),o=M(!1);let n=0;function r(s){return s.clientX}function i(s){var u;s.preventDefault();const d=o.value;n=r(s),o.value=!0,d||(Ct("mousemove",window,a),Ct("mouseup",window,l),(u=e.onResizeStart)===null||u===void 0||u.call(e))}function a(s){var u;(u=e.onResize)===null||u===void 0||u.call(e,r(s)-n)}function l(){var s;o.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Xt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:o,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return m("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),I5=xe({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return m("div",{class:`${this.clsPrefix}-dropdown-divider`})}});function z5(e){const{textColorBase:t,opacity1:o,opacity2:n,opacity3:r,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:o,opacity2Depth:n,opacity3Depth:r,opacity4Depth:i,opacity5Depth:a}}const O5={name:"Icon",common:Ve,self:z5},OD={name:"Icon",common:Ne,self:z5},LD=D("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[X("color-transition",{transition:"color .3s var(--n-bezier)"}),X("depth",{color:"var(--n-color)"},[V("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),V("svg",{height:"1em",width:"1em"})]),HD=Object.assign(Object.assign({},Ie.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),Wt=xe({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:HD,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=Ie("Icon","-icon",LD,O5,e,t),r=I(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=n.value;if(a!==void 0){const{color:u,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":u,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=o?vt("icon",I(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:I(()=>{const{size:a,color:l}=e;return{fontSize:So(a),color:l}}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:n,component:r,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&xn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),m("i",bo(this.$attrs,{role:"img",class:[`${n}-icon`,a,{[`${n}-icon--depth`]:o,[`${n}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?m(r):this.$slots)}}),tm="n-dropdown-menu",Gd="n-dropdown",sv="n-dropdown-option";function vh(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function ND(e){return e.type==="group"}function L5(e){return e.type==="divider"}function VD(e){return e.type==="render"}const H5=xe({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Oe(Gd),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:u,renderIconRef:d,labelFieldRef:c,childrenFieldRef:h,renderOptionRef:f,nodePropsRef:p,menuPropsRef:g}=t,v=Oe(sv,null),b=Oe(tm),x=Oe(Na),k=I(()=>e.tmNode.rawNode),C=I(()=>{const{value:F}=h;return vh(e.tmNode.rawNode,F)}),_=I(()=>{const{disabled:F}=e.tmNode;return F}),R=I(()=>{if(!C.value)return!1;const{key:F,disabled:y}=e.tmNode;if(y)return!1;const{value:re}=o,{value:te}=n,{value:j}=r,{value:Z}=i;return re!==null?Z.includes(F):te!==null?Z.includes(F)&&Z[Z.length-1]!==F:j!==null?Z.includes(F):!1}),w=I(()=>n.value===null&&!l.value),A=Q4(R,300,w),$=I(()=>!!(v!=null&&v.enteringSubmenuRef.value)),B=M(!1);Je(sv,{enteringSubmenuRef:B});function U(){B.value=!0}function N(){B.value=!1}function K(){const{parentKey:F,tmNode:y}=e;y.disabled||s.value&&(r.value=F,n.value=null,o.value=y.key)}function H(){const{tmNode:F}=e;F.disabled||s.value&&o.value!==F.key&&K()}function T(F){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:y}=F;y&&!Ko({target:y},"dropdownOption")&&!Ko({target:y},"scrollbarRail")&&(o.value=null)}function z(){const{value:F}=C,{tmNode:y}=e;s.value&&!F&&!y.disabled&&(t.doSelect(y.key,y.rawNode),t.doUpdateShow(!1))}return{labelField:c,renderLabel:u,renderIcon:d,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:g,popoverBody:x,animated:l,mergedShowSubmenu:I(()=>A.value&&!$.value),rawNode:k,hasSubmenu:C,pending:gt(()=>{const{value:F}=i,{key:y}=e.tmNode;return F.includes(y)}),childActive:gt(()=>{const{value:F}=a,{key:y}=e.tmNode,re=F.findIndex(te=>y===te);return re===-1?!1:re<F.length-1}),active:gt(()=>{const{value:F}=a,{key:y}=e.tmNode,re=F.findIndex(te=>y===te);return re===-1?!1:re===F.length-1}),mergedDisabled:_,renderOption:f,nodeProps:p,handleClick:z,handleMouseMove:H,handleMouseEnter:K,handleMouseLeave:T,handleSubmenuBeforeEnter:U,handleSubmenuAfterEnter:N}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:u,renderOption:d,nodeProps:c,props:h,scrollable:f}=this;let p=null;if(r){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);p=m(N5,Object.assign({},x,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},v=c==null?void 0:c(n),b=m("div",Object.assign({class:[`${i}-dropdown-option`,v==null?void 0:v.class],"data-dropdown-option":!0},v),m("div",bo(g,h),[m("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[u?u(n):Jt(n.icon)]),m("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(n):Jt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),m("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?m(Wt,null,{default:()=>m(zp,null)}):null)]),this.hasSubmenu?m(ks,null,{default:()=>[m(_s,null,{default:()=>m("div",{class:`${i}-dropdown-offset-container`},m(Fs,{show:this.mergedShowSubmenu,placement:this.placement,to:f&&this.popoverBody||void 0,teleportDisabled:!f},{default:()=>m("div",{class:`${i}-dropdown-menu-wrapper`},o?m(ho,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:b,option:n}):b}}),jD=xe({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Oe(tm),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=Oe(Gd);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=m("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(l)),m("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},m("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Jt(l.icon)),m("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),m("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),WD=xe({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:n}=e;return m(ft,null,m(jD,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:L5(i)?m(I5,{clsPrefix:o,key:r.key}):r.isGroup?(xn("dropdown","`group` node is not allowed to be put in `group` node."),null):m(H5,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),UD=xe({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return m("div",t,[e==null?void 0:e()])}}),N5=xe({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=Oe(Gd);Je(tm,{showIconRef:I(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>r?r(s):s.icon);const{rawNode:l}=i;return r?r(l):l.icon})}),hasSubmenuRef:I(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>vh(s,r));const{rawNode:l}=i;return vh(l,r)})})});const n=M(null);return Je(Ss,null),Je(Es,null),Je(Na,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:VD(i)?m(UD,{tmNode:r,key:r.key}):L5(i)?m(I5,{clsPrefix:t,key:r.key}):ND(i)?m(WD,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):m(H5,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return m("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?m(gC,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?wC({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),KD=D("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[An(),D("dropdown-option",` - position: relative; - `,[V("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[V("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),D("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[V("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),Ft("disabled",[X("pending",` - color: var(--n-option-text-color-hover); - `,[G("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),V("&::before","background-color: var(--n-option-color-hover);")]),X("active",` - color: var(--n-option-text-color-active); - `,[G("prefix, suffix",` - color: var(--n-option-text-color-active); - `),V("&::before","background-color: var(--n-option-color-active);")]),X("child-active",` - color: var(--n-option-text-color-child-active); - `,[G("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),X("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),X("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[G("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[X("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),G("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[X("show-icon",` - width: var(--n-option-icon-prefix-width); - `),D("icon",` - font-size: var(--n-option-icon-size); - `)]),G("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),G("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[X("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),D("icon",` - font-size: var(--n-option-icon-size); - `)]),D("dropdown-menu","pointer-events: all;")]),D("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),D("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),D("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),V(">",[D("scrollbar",` - height: inherit; - max-height: inherit; - `)]),Ft("scrollable",` - padding: var(--n-padding); - `),X("scrollable",[G("content",` - padding: var(--n-padding); - `)])]),GD={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},qD=Object.keys(Da),ZD=Object.assign(Object.assign(Object.assign({},Da),GD),Ie.props),V5=xe({name:"Dropdown",inheritAttrs:!1,props:ZD,setup(e){const t=M(!1),o=to(Be(e,"show"),t),n=I(()=>{const{keyField:N,childrenField:K}=e;return Hd(e.options,{getKey(H){return H[N]},getDisabled(H){return H.disabled===!0},getIgnored(H){return H.type==="divider"||H.type==="render"},getChildren(H){return H[K]}})}),r=I(()=>n.value.treeNodes),i=M(null),a=M(null),l=M(null),s=I(()=>{var N,K,H;return(H=(K=(N=i.value)!==null&&N!==void 0?N:a.value)!==null&&K!==void 0?K:l.value)!==null&&H!==void 0?H:null}),u=I(()=>n.value.getPath(s.value).keyPath),d=I(()=>n.value.getPath(e.value).keyPath),c=gt(()=>e.keyboard&&o.value);ck({keydown:{ArrowUp:{prevent:!0,handler:_},ArrowRight:{prevent:!0,handler:C},ArrowDown:{prevent:!0,handler:R},ArrowLeft:{prevent:!0,handler:k},Enter:{prevent:!0,handler:w},Escape:x}},c);const{mergedClsPrefixRef:h,inlineThemeDisabled:f}=nt(e),p=Ie("Dropdown","-dropdown",KD,Kd,e,h);Je(Gd,{labelFieldRef:Be(e,"labelField"),childrenFieldRef:Be(e,"childrenField"),renderLabelRef:Be(e,"renderLabel"),renderIconRef:Be(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:u,activeKeyPathRef:d,animatedRef:Be(e,"animated"),mergedShowRef:o,nodePropsRef:Be(e,"nodeProps"),renderOptionRef:Be(e,"renderOption"),menuPropsRef:Be(e,"menuProps"),doSelect:g,doUpdateShow:v}),at(o,N=>{!e.animated&&!N&&b()});function g(N,K){const{onSelect:H}=e;H&&$e(H,N,K)}function v(N){const{"onUpdate:show":K,onUpdateShow:H}=e;K&&$e(K,N),H&&$e(H,N),t.value=N}function b(){i.value=null,a.value=null,l.value=null}function x(){v(!1)}function k(){$("left")}function C(){$("right")}function _(){$("up")}function R(){$("down")}function w(){const N=A();N!=null&&N.isLeaf&&o.value&&(g(N.key,N.rawNode),v(!1))}function A(){var N;const{value:K}=n,{value:H}=s;return!K||H===null?null:(N=K.getNode(H))!==null&&N!==void 0?N:null}function $(N){const{value:K}=s,{value:{getFirstAvailableNode:H}}=n;let T=null;if(K===null){const z=H();z!==null&&(T=z.key)}else{const z=A();if(z){let F;switch(N){case"down":F=z.getNext();break;case"up":F=z.getPrev();break;case"right":F=z.getChild();break;case"left":F=z.getParent();break}F&&(T=F.key)}}T!==null&&(i.value=null,a.value=T)}const B=I(()=>{const{size:N,inverted:K}=e,{common:{cubicBezierEaseInOut:H},self:T}=p.value,{padding:z,dividerColor:F,borderRadius:y,optionOpacityDisabled:re,[Ee("optionIconSuffixWidth",N)]:te,[Ee("optionSuffixWidth",N)]:j,[Ee("optionIconPrefixWidth",N)]:Z,[Ee("optionPrefixWidth",N)]:se,[Ee("fontSize",N)]:pe,[Ee("optionHeight",N)]:Se,[Ee("optionIconSize",N)]:he}=T,fe={"--n-bezier":H,"--n-font-size":pe,"--n-padding":z,"--n-border-radius":y,"--n-option-height":Se,"--n-option-prefix-width":se,"--n-option-icon-prefix-width":Z,"--n-option-suffix-width":j,"--n-option-icon-suffix-width":te,"--n-option-icon-size":he,"--n-divider-color":F,"--n-option-opacity-disabled":re};return K?(fe["--n-color"]=T.colorInverted,fe["--n-option-color-hover"]=T.optionColorHoverInverted,fe["--n-option-color-active"]=T.optionColorActiveInverted,fe["--n-option-text-color"]=T.optionTextColorInverted,fe["--n-option-text-color-hover"]=T.optionTextColorHoverInverted,fe["--n-option-text-color-active"]=T.optionTextColorActiveInverted,fe["--n-option-text-color-child-active"]=T.optionTextColorChildActiveInverted,fe["--n-prefix-color"]=T.prefixColorInverted,fe["--n-suffix-color"]=T.suffixColorInverted,fe["--n-group-header-text-color"]=T.groupHeaderTextColorInverted):(fe["--n-color"]=T.color,fe["--n-option-color-hover"]=T.optionColorHover,fe["--n-option-color-active"]=T.optionColorActive,fe["--n-option-text-color"]=T.optionTextColor,fe["--n-option-text-color-hover"]=T.optionTextColorHover,fe["--n-option-text-color-active"]=T.optionTextColorActive,fe["--n-option-text-color-child-active"]=T.optionTextColorChildActive,fe["--n-prefix-color"]=T.prefixColor,fe["--n-suffix-color"]=T.suffixColor,fe["--n-group-header-text-color"]=T.groupHeaderTextColor),fe}),U=f?vt("dropdown",I(()=>`${e.size[0]}${e.inverted?"i":""}`),B,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:v,cssVars:f?void 0:B,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender}},render(){const e=(n,r,i,a,l)=>{var s;const{mergedClsPrefix:u,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const c=(d==null?void 0:d(void 0,this.tmNodes.map(f=>f.rawNode)))||{},h={ref:_x(r),class:[n,`${u}-dropdown`,this.themeClass],clsPrefix:u,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return m(N5,bo(this.$attrs,h,c))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return m(Ka,Object.assign({},ei(this.$props,qD),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),j5="_n_all__",W5="_n_none__";function XD(e,t,o,n){return e?r=>{for(const i of e)switch(r){case j5:o(!0);return;case W5:n(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function YD(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:j5};case"none":return{label:t.uncheckTableAll,key:W5};default:return o}}):[]}const QD=xe({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:n,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=Oe(In),l=I(()=>XD(n.value,r,i,a)),s=I(()=>YD(n.value,o.value));return()=>{var u,d,c,h;const{clsPrefix:f}=e;return m(V5,{theme:(d=(u=t.theme)===null||u===void 0?void 0:u.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(c=t.themeOverrides)===null||c===void 0?void 0:c.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>m(Ut,{clsPrefix:f,class:`${f}-data-table-check-extra`},{default:()=>m(uC,null)})})}}});function ef(e){return typeof e.title=="function"?e.title(e):e.title}const JD=xe({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:n}=this;return m("table",{style:{tableLayout:"fixed",width:n},class:`${e}-data-table-table`},m("colgroup",null,o.map(r=>m("col",{key:r.key,style:r.style}))),m("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),U5=xe({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:n,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:u,checkOptionsRef:d,mergedSortStateRef:c,componentId:h,mergedTableLayoutRef:f,headerCheckboxDisabledRef:p,virtualScrollHeaderRef:g,headerHeightRef:v,onUnstableColumnResize:b,doUpdateResizableWidth:x,handleTableHeaderScroll:k,deriveNextSorter:C,doUncheckAll:_,doCheckAll:R}=Oe(In),w=M(),A=M({});function $(T){const z=A.value[T];return z==null?void 0:z.getBoundingClientRect().width}function B(){i.value?_():R()}function U(T,z){if(Ko(T,"dataTableFilter")||Ko(T,"dataTableResizable")||!Jc(z))return;const F=c.value.find(re=>re.columnKey===z.key)||null,y=PD(z,F);C(y)}const N=new Map;function K(T){N.set(T.key,$(T.key))}function H(T,z){const F=N.get(T.key);if(F===void 0)return;const y=F+z,re=FD(y,T.minWidth,T.maxWidth);b(y,re,T,$),x(T,re)}return{cellElsRef:A,componentId:h,mergedSortState:c,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:u,checkOptions:d,mergedTableLayout:f,headerCheckboxDisabled:p,headerHeight:v,virtualScrollHeader:g,virtualListRef:w,handleCheckboxUpdateChecked:B,handleColHeaderClick:U,handleTableHeaderScroll:k,handleColumnResizeStart:K,handleColumnResize:H}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:u,checkOptions:d,componentId:c,discrete:h,mergedTableLayout:f,headerCheckboxDisabled:p,mergedSortState:g,virtualScrollHeader:v,handleColHeaderClick:b,handleCheckboxUpdateChecked:x,handleColumnResizeStart:k,handleColumnResize:C}=this,_=($,B,U)=>$.map(({column:N,colIndex:K,colSpan:H,rowSpan:T,isLast:z})=>{var F,y;const re=kn(N),{ellipsis:te}=N,j=()=>N.type==="selection"?N.multiple!==!1?m(ft,null,m(Vd,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:x}),d?m(QD,{clsPrefix:t}):null):null:m(ft,null,m("div",{class:`${t}-data-table-th__title-wrapper`},m("div",{class:`${t}-data-table-th__title`},te===!0||te&&!te.tooltip?m("div",{class:`${t}-data-table-th__ellipsis`},ef(N)):te&&typeof te=="object"?m(em,Object.assign({},te,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>ef(N)}):ef(N)),Jc(N)?m(bD,{column:N}):null),av(N)?m(ID,{column:N,options:N.filterOptions}):null,D5(N)?m(zD,{onResizeStart:()=>{k(N)},onResize:Se=>{C(N,Se)}}):null),Z=re in o,se=re in n,pe=B&&!N.fixed?"div":"th";return m(pe,{ref:Se=>e[re]=Se,key:re,style:[B&&!N.fixed?{position:"absolute",left:Lt(B(K)),top:0,bottom:0}:{left:Lt((F=o[re])===null||F===void 0?void 0:F.start),right:Lt((y=n[re])===null||y===void 0?void 0:y.start)},{width:Lt(N.width),textAlign:N.titleAlign||N.align,height:U}],colspan:H,rowspan:T,"data-col-key":re,class:[`${t}-data-table-th`,(Z||se)&&`${t}-data-table-th--fixed-${Z?"left":"right"}`,{[`${t}-data-table-th--sorting`]:T5(N,g),[`${t}-data-table-th--filterable`]:av(N),[`${t}-data-table-th--sortable`]:Jc(N),[`${t}-data-table-th--selection`]:N.type==="selection",[`${t}-data-table-th--last`]:z},N.className],onClick:N.type!=="selection"&&N.type!=="expand"&&!("children"in N)?Se=>{b(Se,N)}:void 0},j())});if(v){const{headerHeight:$}=this;let B=0,U=0;return s.forEach(N=>{N.column.fixed==="left"?B++:N.column.fixed==="right"&&U++}),m(bp,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:Lt($)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:$,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:JD,visibleItemsProps:{clsPrefix:t,id:c,cols:s,width:So(this.scrollX)},renderItemWithCols:({startColIndex:N,endColIndex:K,getLeft:H})=>{const T=s.map((F,y)=>({column:F.column,isLast:y===s.length-1,colIndex:F.index,colSpan:1,rowSpan:1})).filter(({column:F},y)=>!!(N<=y&&y<=K||F.fixed)),z=_(T,H,Lt($));return z.splice(B,0,m("th",{colspan:s.length-B-U,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",{style:{position:"relative"}},z)}},{default:({renderedItemWithCols:N})=>N})}const R=m("thead",{class:`${t}-data-table-thead`,"data-n-id":c},l.map($=>m("tr",{class:`${t}-data-table-tr`},_($,null,void 0))));if(!h)return R;const{handleTableHeaderScroll:w,scrollX:A}=this;return m("div",{class:`${t}-data-table-base-table-header`,onScroll:w},m("table",{class:`${t}-data-table-table`,style:{minWidth:So(A),tableLayout:f}},m("colgroup",null,s.map($=>m("col",{key:$.key,style:$.style}))),R))}}),eT=xe({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:n,renderCell:r}=this;let i;const{render:a,key:l,ellipsis:s}=o;if(a&&!t?i=a(n,this.index):t?i=(e=n[l])===null||e===void 0?void 0:e.value:i=r?r(rh(n,l),n,o):rh(n,l),s)if(typeof s=="object"){const{mergedTheme:u}=this;return o.ellipsisComponent==="performant-ellipsis"?m(mD,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i}):m(em,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i})}else return m("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),uv=xe({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return m("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},m(Xi,null,{default:()=>this.loading?m(_r,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):m(Ut,{clsPrefix:e,key:"base-icon"},{default:()=>m(zp,null)})}))}}),tT=xe({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=Oe(In);return()=>{const{rowKey:n}=e;return m(Vd,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),oT=xe({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=Oe(In);return()=>{const{rowKey:n}=e;return m(P5,{name:o,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}});function nT(e,t){const o=[];function n(r,i){r.forEach(a=>{a.children&&t.has(a.key)?(o.push({tmNode:a,striped:!1,key:a.key,index:i}),n(a.children,i)):o.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(r=>{o.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&n(i,r.index)}),o}const rT=xe({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:n,onMouseleave:r}=this;return m("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:n,onMouseleave:r},m("colgroup",null,o.map(i=>m("col",{key:i.key,style:i.style}))),m("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),iT=xe({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:n,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:u,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:c,mergedCurrentPageRef:h,rowClassNameRef:f,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:v,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:x,hoverKeyRef:k,summaryRef:C,mergedSortStateRef:_,virtualScrollRef:R,virtualScrollXRef:w,heightForRowRef:A,minRowHeightRef:$,componentId:B,mergedTableLayoutRef:U,childTriggerColIndexRef:N,indentRef:K,rowPropsRef:H,maxHeightRef:T,stripedRef:z,loadingRef:F,onLoadRef:y,loadingKeySetRef:re,expandableRef:te,stickyExpandedRowsRef:j,renderExpandIconRef:Z,summaryPlacementRef:se,treeMateRef:pe,scrollbarPropsRef:Se,setHeaderScrollLeft:he,doUpdateExpandedRowKeys:fe,handleTableBodyScroll:Ce,doCheck:Y,doUncheck:O,renderCell:ze}=Oe(In),je=Oe(ln),W=M(null),ee=M(null),ge=M(null),we=gt(()=>s.value.length===0),le=gt(()=>e.showHeader||!we.value),ne=gt(()=>e.showHeader||we.value);let ce="";const J=I(()=>new Set(n.value));function ie(Le){var et;return(et=pe.value.getNode(Le))===null||et===void 0?void 0:et.rawNode}function de(Le,et,Q){const me=ie(Le.key);if(!me){xn("data-table",`fail to get row data with key ${Le.key}`);return}if(Q){const Pe=s.value.findIndex(He=>He.key===ce);if(Pe!==-1){const He=s.value.findIndex(tt=>tt.key===Le.key),We=Math.min(Pe,He),Ge=Math.max(Pe,He),qe=[];s.value.slice(We,Ge+1).forEach(tt=>{tt.disabled||qe.push(tt.key)}),et?Y(qe,!1,me):O(qe,me),ce=Le.key;return}}et?Y(Le.key,!1,me):O(Le.key,me),ce=Le.key}function ae(Le){const et=ie(Le.key);if(!et){xn("data-table",`fail to get row data with key ${Le.key}`);return}Y(Le.key,!0,et)}function q(){if(!le.value){const{value:et}=ge;return et||null}if(R.value)return De();const{value:Le}=W;return Le?Le.containerRef:null}function ue(Le,et){var Q;if(re.value.has(Le))return;const{value:me}=n,Pe=me.indexOf(Le),He=Array.from(me);~Pe?(He.splice(Pe,1),fe(He)):et&&!et.isLeaf&&!et.shallowLoaded?(re.value.add(Le),(Q=y.value)===null||Q===void 0||Q.call(y,et.rawNode).then(()=>{const{value:We}=n,Ge=Array.from(We);~Ge.indexOf(Le)||Ge.push(Le),fe(Ge)}).finally(()=>{re.value.delete(Le)})):(He.push(Le),fe(He))}function ve(){k.value=null}function De(){const{value:Le}=ee;return(Le==null?void 0:Le.listElRef)||null}function Ke(){const{value:Le}=ee;return(Le==null?void 0:Le.itemsElRef)||null}function Qe(Le){var et;Ce(Le),(et=W.value)===null||et===void 0||et.sync()}function st(Le){var et;const{onResize:Q}=e;Q&&Q(Le),(et=W.value)===null||et===void 0||et.sync()}const Xe={getScrollContainer:q,scrollTo(Le,et){var Q,me;R.value?(Q=ee.value)===null||Q===void 0||Q.scrollTo(Le,et):(me=W.value)===null||me===void 0||me.scrollTo(Le,et)}},pt=V([({props:Le})=>{const et=me=>me===null?null:V(`[data-n-id="${Le.componentId}"] [data-col-key="${me}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Q=me=>me===null?null:V(`[data-n-id="${Le.componentId}"] [data-col-key="${me}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return V([et(Le.leftActiveFixedColKey),Q(Le.rightActiveFixedColKey),Le.leftActiveFixedChildrenColKeys.map(me=>et(me)),Le.rightActiveFixedChildrenColKeys.map(me=>Q(me))])}]);let Ye=!1;return kt(()=>{const{value:Le}=p,{value:et}=g,{value:Q}=v,{value:me}=b;if(!Ye&&Le===null&&Q===null)return;const Pe={leftActiveFixedColKey:Le,leftActiveFixedChildrenColKeys:et,rightActiveFixedColKey:Q,rightActiveFixedChildrenColKeys:me,componentId:B};pt.mount({id:`n-${B}`,force:!0,props:Pe,anchorMetaName:Ba,parent:je==null?void 0:je.styleMountTarget}),Ye=!0}),Go(()=>{pt.unmount({id:`n-${B}`,parent:je==null?void 0:je.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:se,dataTableSlots:t,componentId:B,scrollbarInstRef:W,virtualListRef:ee,emptyElRef:ge,summary:C,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:l,loading:F,bodyShowHeaderOnly:ne,shouldDisplaySomeTablePart:le,empty:we,paginatedDataAndInfo:I(()=>{const{value:Le}=z;let et=!1;return{data:s.value.map(Le?(me,Pe)=>(me.isLeaf||(et=!0),{tmNode:me,key:me.key,striped:Pe%2===1,index:Pe}):(me,Pe)=>(me.isLeaf||(et=!0),{tmNode:me,key:me.key,striped:!1,index:Pe})),hasChildren:et}}),rawPaginatedData:u,fixedColumnLeftMap:d,fixedColumnRightMap:c,currentPage:h,rowClassName:f,renderExpand:x,mergedExpandedRowKeySet:J,hoverKey:k,mergedSortState:_,virtualScroll:R,virtualScrollX:w,heightForRow:A,minRowHeight:$,mergedTableLayout:U,childTriggerColIndex:N,indent:K,rowProps:H,maxHeight:T,loadingKeySet:re,expandable:te,stickyExpandedRows:j,renderExpandIcon:Z,scrollbarProps:Se,setHeaderScrollLeft:he,handleVirtualListScroll:Qe,handleVirtualListResize:st,handleMouseleaveTable:ve,virtualListContainer:De,virtualListContent:Ke,handleTableBodyScroll:Ce,handleCheckboxUpdateChecked:de,handleRadioUpdateChecked:ae,handleUpdateExpanded:ue,renderCell:ze},Xe)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:n,maxHeight:r,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:u}=this,d=t!==void 0||r!==void 0||a,c=!d&&i==="auto",h=t!==void 0||c,f={minWidth:So(t)||"100%"};t&&(f.width="100%");const p=m(or,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||c,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:f,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:n?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:u,onResize:s}),{default:()=>{const g={},v={},{cols:b,paginatedDataAndInfo:x,mergedTheme:k,fixedColumnLeftMap:C,fixedColumnRightMap:_,currentPage:R,rowClassName:w,mergedSortState:A,mergedExpandedRowKeySet:$,stickyExpandedRows:B,componentId:U,childTriggerColIndex:N,expandable:K,rowProps:H,handleMouseleaveTable:T,renderExpand:z,summary:F,handleCheckboxUpdateChecked:y,handleRadioUpdateChecked:re,handleUpdateExpanded:te,heightForRow:j,minRowHeight:Z,virtualScrollX:se}=this,{length:pe}=b;let Se;const{data:he,hasChildren:fe}=x,Ce=fe?nT(he,$):he;if(F){const ce=F(this.rawPaginatedData);if(Array.isArray(ce)){const J=ce.map((ie,de)=>({isSummaryRow:!0,key:`__n_summary__${de}`,tmNode:{rawNode:ie,disabled:!0},index:-1}));Se=this.summaryPlacement==="top"?[...J,...Ce]:[...Ce,...J]}else{const J={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ce,disabled:!0},index:-1};Se=this.summaryPlacement==="top"?[J,...Ce]:[...Ce,J]}}else Se=Ce;const Y=fe?{width:Lt(this.indent)}:void 0,O=[];Se.forEach(ce=>{z&&$.has(ce.key)&&(!K||K(ce.tmNode.rawNode))?O.push(ce,{isExpandedRow:!0,key:`${ce.key}-expand`,tmNode:ce.tmNode,index:ce.index}):O.push(ce)});const{length:ze}=O,je={};he.forEach(({tmNode:ce},J)=>{je[J]=ce.key});const W=B?this.bodyWidth:null,ee=W===null?void 0:`${W}px`,ge=this.virtualScrollX?"div":"td";let we=0,le=0;se&&b.forEach(ce=>{ce.column.fixed==="left"?we++:ce.column.fixed==="right"&&le++});const ne=({rowInfo:ce,displayedRowIndex:J,isVirtual:ie,isVirtualX:de,startColIndex:ae,endColIndex:q,getLeft:ue})=>{const{index:ve}=ce;if("isExpandedRow"in ce){const{tmNode:{key:He,rawNode:We}}=ce;return m("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${He}__expand`},m("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,J+1===ze&&`${o}-data-table-td--last-row`],colspan:pe},B?m("div",{class:`${o}-data-table-expand`,style:{width:ee}},z(We,ve)):z(We,ve)))}const De="isSummaryRow"in ce,Ke=!De&&ce.striped,{tmNode:Qe,key:st}=ce,{rawNode:Xe}=Qe,pt=$.has(st),Ye=H?H(Xe,ve):void 0,Le=typeof w=="string"?w:$D(Xe,ve,w),et=de?b.filter((He,We)=>!!(ae<=We&&We<=q||He.column.fixed)):b,Q=de?Lt((j==null?void 0:j(Xe,ve))||Z):void 0,me=et.map(He=>{var We,Ge,qe,tt,yt;const Bt=He.index;if(J in g){const Yt=g[J],oo=Yt.indexOf(Bt);if(~oo)return Yt.splice(oo,1),null}const{column:_t}=He,xo=kn(He),{rowSpan:Ao,colSpan:Bo}=_t,No=De?((We=ce.tmNode.rawNode[xo])===null||We===void 0?void 0:We.colSpan)||1:Bo?Bo(Xe,ve):1,Vo=De?((Ge=ce.tmNode.rawNode[xo])===null||Ge===void 0?void 0:Ge.rowSpan)||1:Ao?Ao(Xe,ve):1,un=Bt+No===pe,dn=J+Vo===ze,be=Vo>1;if(be&&(v[J]={[Bt]:[]}),No>1||be)for(let Yt=J;Yt<J+Vo;++Yt){be&&v[J][Bt].push(je[Yt]);for(let oo=Bt;oo<Bt+No;++oo)Yt===J&&oo===Bt||(Yt in g?g[Yt].push(oo):g[Yt]=[oo])}const Ae=be?this.hoverKey:null,{cellProps:rt}=_t,wt=rt==null?void 0:rt(Xe,ve),zt={"--indent-offset":""},Mt=_t.fixed?"td":ge;return m(Mt,Object.assign({},wt,{key:xo,style:[{textAlign:_t.align||void 0,width:Lt(_t.width)},de&&{height:Q},de&&!_t.fixed?{position:"absolute",left:Lt(ue(Bt)),top:0,bottom:0}:{left:Lt((qe=C[xo])===null||qe===void 0?void 0:qe.start),right:Lt((tt=_[xo])===null||tt===void 0?void 0:tt.start)},zt,(wt==null?void 0:wt.style)||""],colspan:No,rowspan:ie?void 0:Vo,"data-col-key":xo,class:[`${o}-data-table-td`,_t.className,wt==null?void 0:wt.class,De&&`${o}-data-table-td--summary`,Ae!==null&&v[J][Bt].includes(Ae)&&`${o}-data-table-td--hover`,T5(_t,A)&&`${o}-data-table-td--sorting`,_t.fixed&&`${o}-data-table-td--fixed-${_t.fixed}`,_t.align&&`${o}-data-table-td--${_t.align}-align`,_t.type==="selection"&&`${o}-data-table-td--selection`,_t.type==="expand"&&`${o}-data-table-td--expand`,un&&`${o}-data-table-td--last-col`,dn&&`${o}-data-table-td--last-row`]}),fe&&Bt===N?[kx(zt["--indent-offset"]=De?0:ce.tmNode.level,m("div",{class:`${o}-data-table-indent`,style:Y})),De||ce.tmNode.isLeaf?m("div",{class:`${o}-data-table-expand-placeholder`}):m(uv,{class:`${o}-data-table-expand-trigger`,clsPrefix:o,expanded:pt,rowData:Xe,renderExpandIcon:this.renderExpandIcon,loading:l.has(ce.key),onClick:()=>{te(st,ce.tmNode)}})]:null,_t.type==="selection"?De?null:_t.multiple===!1?m(oT,{key:R,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:()=>{re(ce.tmNode)}}):m(tT,{key:R,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:(Yt,oo)=>{y(ce.tmNode,Yt,oo.shiftKey)}}):_t.type==="expand"?De?null:!_t.expandable||!((yt=_t.expandable)===null||yt===void 0)&&yt.call(_t,Xe)?m(uv,{clsPrefix:o,rowData:Xe,expanded:pt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{te(st,null)}}):null:m(eT,{clsPrefix:o,index:ve,row:Xe,column:_t,isSummary:De,mergedTheme:k,renderCell:this.renderCell}))});return de&&we&&le&&me.splice(we,0,m("td",{colspan:b.length-we-le,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",Object.assign({},Ye,{onMouseenter:He=>{var We;this.hoverKey=st,(We=Ye==null?void 0:Ye.onMouseenter)===null||We===void 0||We.call(Ye,He)},key:st,class:[`${o}-data-table-tr`,De&&`${o}-data-table-tr--summary`,Ke&&`${o}-data-table-tr--striped`,pt&&`${o}-data-table-tr--expanded`,Le,Ye==null?void 0:Ye.class],style:[Ye==null?void 0:Ye.style,de&&{height:Q}]}),me)};return n?m(bp,{ref:"virtualListRef",items:O,itemSize:this.minRowHeight,visibleItemsTag:rT,visibleItemsProps:{clsPrefix:o,id:U,cols:b,onMouseleave:T},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:f,itemResizable:!se,columns:b,renderItemWithCols:se?({itemIndex:ce,item:J,startColIndex:ie,endColIndex:de,getLeft:ae})=>ne({displayedRowIndex:ce,isVirtual:!0,isVirtualX:!0,rowInfo:J,startColIndex:ie,endColIndex:de,getLeft:ae}):void 0},{default:({item:ce,index:J,renderedItemWithCols:ie})=>ie||ne({rowInfo:ce,displayedRowIndex:J,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(de){return 0}})}):m("table",{class:`${o}-data-table-table`,onMouseleave:T,style:{tableLayout:this.mergedTableLayout}},m("colgroup",null,b.map(ce=>m("col",{key:ce.key,style:ce.style}))),this.showHeader?m(U5,{discrete:!1}):null,this.empty?null:m("tbody",{"data-n-id":U,class:`${o}-data-table-tbody`},O.map((ce,J)=>ne({rowInfo:ce,displayedRowIndex:J,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(ie){return-1}}))))}});if(this.empty){const g=()=>m("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},wo(this.dataTableSlots.empty,()=>[m(Lp,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?m(ft,null,p,g()):m($n,{onResize:this.onResize},{default:g})}return p}}),aT=xe({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:n,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,virtualScrollHeaderRef:l,syncScrollState:s}=Oe(In),u=M(null),d=M(null),c=M(null),h=M(!(o.value.length||t.value.length)),f=I(()=>({maxHeight:So(r.value),minHeight:So(i.value)}));function p(x){n.value=x.contentRect.width,s(),h.value||(h.value=!0)}function g(){var x;const{value:k}=u;return k?l.value?((x=k.virtualListRef)===null||x===void 0?void 0:x.listElRef)||null:k.$el:null}function v(){const{value:x}=d;return x?x.getScrollContainer():null}const b={getBodyElement:v,getHeaderElement:g,scrollTo(x,k){var C;(C=d.value)===null||C===void 0||C.scrollTo(x,k)}};return kt(()=>{const{value:x}=c;if(!x)return;const k=`${e.value}-data-table-base-table--transition-disabled`;h.value?setTimeout(()=>{x.classList.remove(k)},0):x.classList.add(k)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:c,headerInstRef:u,bodyInstRef:d,bodyStyle:f,flexHeight:a,handleBodyResize:p},b)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,n=t===void 0&&!o;return m("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},n?null:m(U5,{ref:"headerInstRef"}),m(iT,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:o,onResize:this.handleBodyResize}))}});function lT(e,t){const{paginatedDataRef:o,treeMateRef:n,selectionColumnRef:r}=t,i=M(e.defaultCheckedRowKeys),a=I(()=>{var _;const{checkedRowKeys:R}=e,w=R===void 0?i.value:R;return((_=r.value)===null||_===void 0?void 0:_.multiple)===!1?{checkedKeys:w.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(w,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=I(()=>a.value.checkedKeys),s=I(()=>a.value.indeterminateKeys),u=I(()=>new Set(l.value)),d=I(()=>new Set(s.value)),c=I(()=>{const{value:_}=u;return o.value.reduce((R,w)=>{const{key:A,disabled:$}=w;return R+(!$&&_.has(A)?1:0)},0)}),h=I(()=>o.value.filter(_=>_.disabled).length),f=I(()=>{const{length:_}=o.value,{value:R}=d;return c.value>0&&c.value<_-h.value||o.value.some(w=>R.has(w.key))}),p=I(()=>{const{length:_}=o.value;return c.value!==0&&c.value===_-h.value}),g=I(()=>o.value.length===0);function v(_,R,w){const{"onUpdate:checkedRowKeys":A,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:B}=e,U=[],{value:{getNode:N}}=n;_.forEach(K=>{var H;const T=(H=N(K))===null||H===void 0?void 0:H.rawNode;U.push(T)}),A&&$e(A,_,U,{row:R,action:w}),$&&$e($,_,U,{row:R,action:w}),B&&$e(B,_,U,{row:R,action:w}),i.value=_}function b(_,R=!1,w){if(!e.loading){if(R){v(Array.isArray(_)?_.slice(0,1):[_],w,"check");return}v(n.value.check(_,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,w,"check")}}function x(_,R){e.loading||v(n.value.uncheck(_,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,R,"uncheck")}function k(_=!1){const{value:R}=r;if(!R||e.loading)return;const w=[];(_?n.value.treeNodes:o.value).forEach(A=>{A.disabled||w.push(A.key)}),v(n.value.check(w,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function C(_=!1){const{value:R}=r;if(!R||e.loading)return;const w=[];(_?n.value.treeNodes:o.value).forEach(A=>{A.disabled||w.push(A.key)}),v(n.value.uncheck(w,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:u,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:f,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:v,doCheckAll:k,doUncheckAll:C,doCheck:b,doUncheck:x}}function pu(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function sT(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?uT(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function uT(e){return(t,o)=>{const n=t[e],r=o[e];return n==null?r==null?0:-1:r==null?1:typeof n=="number"&&typeof r=="number"?n-r:typeof n=="string"&&typeof r=="string"?n.localeCompare(r):0}}function dT(e,{dataRelatedColsRef:t,filteredDataRef:o}){const n=[];t.value.forEach(f=>{var p;f.sorter!==void 0&&h(n,{columnKey:f.key,sorter:f.sorter,order:(p=f.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=M(n),i=I(()=>{const f=t.value.filter(v=>v.type!=="selection"&&v.sorter!==void 0&&(v.sortOrder==="ascend"||v.sortOrder==="descend"||v.sortOrder===!1)),p=f.filter(v=>v.sortOrder!==!1);if(p.length)return p.map(v=>({columnKey:v.key,order:v.sortOrder,sorter:v.sorter}));if(f.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),a=I(()=>{const f=i.value.slice().sort((p,g)=>{const v=pu(p.sorter)||0;return(pu(g.sorter)||0)-v});return f.length?o.value.slice().sort((g,v)=>{let b=0;return f.some(x=>{const{columnKey:k,sorter:C,order:_}=x,R=sT(C,k);return R&&_&&(b=R(g.rawNode,v.rawNode),b!==0)?(b=b*_D(_),!0):!1}),b}):o.value});function l(f){let p=i.value.slice();return f&&pu(f.sorter)!==!1?(p=p.filter(g=>pu(g.sorter)!==!1),h(p,f),p):f||null}function s(f){const p=l(f);u(p)}function u(f){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:v}=e;p&&$e(p,f),g&&$e(g,f),v&&$e(v,f),r.value=f}function d(f,p="ascend"){if(!f)c();else{const g=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===f);if(!(g!=null&&g.sorter))return;const v=g.sorter;s({columnKey:f,sorter:v,order:p})}}function c(){u(null)}function h(f,p){const g=f.findIndex(v=>(p==null?void 0:p.columnKey)&&v.columnKey===p.columnKey);g!==void 0&&g>=0?f[g]=p:f.push(p)}return{clearSorter:c,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function cT(e,{dataRelatedColsRef:t}){const o=I(()=>{const j=Z=>{for(let se=0;se<Z.length;++se){const pe=Z[se];if("children"in pe)return j(pe.children);if(pe.type==="selection")return pe}return null};return j(e.columns)}),n=I(()=>{const{childrenKey:j}=e;return Hd(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:Z=>Z[j],getDisabled:Z=>{var se,pe;return!!(!((pe=(se=o.value)===null||se===void 0?void 0:se.disabled)===null||pe===void 0)&&pe.call(se,Z))}})}),r=gt(()=>{const{columns:j}=e,{length:Z}=j;let se=null;for(let pe=0;pe<Z;++pe){const Se=j[pe];if(!Se.type&&se===null&&(se=pe),"tree"in Se&&Se.tree)return pe}return se||0}),i=M({}),{pagination:a}=e,l=M(a&&a.defaultPage||1),s=M(v5(a)),u=I(()=>{const j=t.value.filter(pe=>pe.filterOptionValues!==void 0||pe.filterOptionValue!==void 0),Z={};return j.forEach(pe=>{var Se;pe.type==="selection"||pe.type==="expand"||(pe.filterOptionValues===void 0?Z[pe.key]=(Se=pe.filterOptionValue)!==null&&Se!==void 0?Se:null:Z[pe.key]=pe.filterOptionValues)}),Object.assign(iv(i.value),Z)}),d=I(()=>{const j=u.value,{columns:Z}=e;function se(he){return(fe,Ce)=>!!~String(Ce[he]).indexOf(String(fe))}const{value:{treeNodes:pe}}=n,Se=[];return Z.forEach(he=>{he.type==="selection"||he.type==="expand"||"children"in he||Se.push([he.key,he])}),pe?pe.filter(he=>{const{rawNode:fe}=he;for(const[Ce,Y]of Se){let O=j[Ce];if(O==null||(Array.isArray(O)||(O=[O]),!O.length))continue;const ze=Y.filter==="default"?se(Ce):Y.filter;if(Y&&typeof ze=="function")if(Y.filterMode==="and"){if(O.some(je=>!ze(je,fe)))return!1}else{if(O.some(je=>ze(je,fe)))continue;return!1}}return!0}):[]}),{sortedDataRef:c,deriveNextSorter:h,mergedSortStateRef:f,sort:p,clearSorter:g}=dT(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(j=>{var Z;if(j.filter){const se=j.defaultFilterOptionValues;j.filterMultiple?i.value[j.key]=se||[]:se!==void 0?i.value[j.key]=se===null?[]:se:i.value[j.key]=(Z=j.defaultFilterOptionValue)!==null&&Z!==void 0?Z:null}});const v=I(()=>{const{pagination:j}=e;if(j!==!1)return j.page}),b=I(()=>{const{pagination:j}=e;if(j!==!1)return j.pageSize}),x=to(v,l),k=to(b,s),C=gt(()=>{const j=x.value;return e.remote?j:Math.max(1,Math.min(Math.ceil(d.value.length/k.value),j))}),_=I(()=>{const{pagination:j}=e;if(j){const{pageCount:Z}=j;if(Z!==void 0)return Z}}),R=I(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return c.value;const j=k.value,Z=(C.value-1)*j;return c.value.slice(Z,Z+j)}),w=I(()=>R.value.map(j=>j.rawNode));function A(j){const{pagination:Z}=e;if(Z){const{onChange:se,"onUpdate:page":pe,onUpdatePage:Se}=Z;se&&$e(se,j),Se&&$e(Se,j),pe&&$e(pe,j),N(j)}}function $(j){const{pagination:Z}=e;if(Z){const{onPageSizeChange:se,"onUpdate:pageSize":pe,onUpdatePageSize:Se}=Z;se&&$e(se,j),Se&&$e(Se,j),pe&&$e(pe,j),K(j)}}const B=I(()=>{if(e.remote){const{pagination:j}=e;if(j){const{itemCount:Z}=j;if(Z!==void 0)return Z}return}return d.value.length}),U=I(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":A,"onUpdate:pageSize":$,page:C.value,pageSize:k.value,pageCount:B.value===void 0?_.value:void 0,itemCount:B.value}));function N(j){const{"onUpdate:page":Z,onPageChange:se,onUpdatePage:pe}=e;pe&&$e(pe,j),Z&&$e(Z,j),se&&$e(se,j),l.value=j}function K(j){const{"onUpdate:pageSize":Z,onPageSizeChange:se,onUpdatePageSize:pe}=e;se&&$e(se,j),pe&&$e(pe,j),Z&&$e(Z,j),s.value=j}function H(j,Z){const{onUpdateFilters:se,"onUpdate:filters":pe,onFiltersChange:Se}=e;se&&$e(se,j,Z),pe&&$e(pe,j,Z),Se&&$e(Se,j,Z),i.value=j}function T(j,Z,se,pe){var Se;(Se=e.onUnstableColumnResize)===null||Se===void 0||Se.call(e,j,Z,se,pe)}function z(j){N(j)}function F(){y()}function y(){re({})}function re(j){te(j)}function te(j){j?j&&(i.value=iv(j)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:C,mergedPaginationRef:U,paginatedDataRef:R,rawPaginatedDataRef:w,mergedFilterStateRef:u,mergedSortStateRef:f,hoverKeyRef:M(null),selectionColumnRef:o,childTriggerColIndexRef:r,doUpdateFilters:H,deriveNextSorter:h,doUpdatePageSize:K,doUpdatePage:N,onUnstableColumnResize:T,filter:te,filters:re,clearFilter:F,clearFilters:y,clearSorter:g,page:z,sort:p}}function fT(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:n}){let r=0;const i=M(),a=M(null),l=M([]),s=M(null),u=M([]),d=I(()=>So(e.scrollX)),c=I(()=>e.columns.filter($=>$.fixed==="left")),h=I(()=>e.columns.filter($=>$.fixed==="right")),f=I(()=>{const $={};let B=0;function U(N){N.forEach(K=>{const H={start:B,end:0};$[kn(K)]=H,"children"in K?(U(K.children),H.end=B):(B+=rv(K)||0,H.end=B)})}return U(c.value),$}),p=I(()=>{const $={};let B=0;function U(N){for(let K=N.length-1;K>=0;--K){const H=N[K],T={start:B,end:0};$[kn(H)]=T,"children"in H?(U(H.children),T.end=B):(B+=rv(H)||0,T.end=B)}}return U(h.value),$});function g(){var $,B;const{value:U}=c;let N=0;const{value:K}=f;let H=null;for(let T=0;T<U.length;++T){const z=kn(U[T]);if(r>((($=K[z])===null||$===void 0?void 0:$.start)||0)-N)H=z,N=((B=K[z])===null||B===void 0?void 0:B.end)||0;else break}a.value=H}function v(){l.value=[];let $=e.columns.find(B=>kn(B)===a.value);for(;$&&"children"in $;){const B=$.children.length;if(B===0)break;const U=$.children[B-1];l.value.push(kn(U)),$=U}}function b(){var $,B;const{value:U}=h,N=Number(e.scrollX),{value:K}=n;if(K===null)return;let H=0,T=null;const{value:z}=p;for(let F=U.length-1;F>=0;--F){const y=kn(U[F]);if(Math.round(r+((($=z[y])===null||$===void 0?void 0:$.start)||0)+K-H)<N)T=y,H=((B=z[y])===null||B===void 0?void 0:B.end)||0;else break}s.value=T}function x(){u.value=[];let $=e.columns.find(B=>kn(B)===s.value);for(;$&&"children"in $&&$.children.length;){const B=$.children[0];u.value.push(kn(B)),$=B}}function k(){const $=t.value?t.value.getHeaderElement():null,B=t.value?t.value.getBodyElement():null;return{header:$,body:B}}function C(){const{body:$}=k();$&&($.scrollTop=0)}function _(){i.value!=="body"?Xl(w):i.value=void 0}function R($){var B;(B=e.onScroll)===null||B===void 0||B.call(e,$),i.value!=="head"?Xl(w):i.value=void 0}function w(){const{header:$,body:B}=k();if(!B)return;const{value:U}=n;if(U!==null){if(e.maxHeight||e.flexHeight){if(!$)return;const N=r-$.scrollLeft;i.value=N!==0?"head":"body",i.value==="head"?(r=$.scrollLeft,B.scrollLeft=r):(r=B.scrollLeft,$.scrollLeft=r)}else r=B.scrollLeft;g(),v(),b(),x()}}function A($){const{header:B}=k();B&&(B.scrollLeft=$,w())}return at(o,()=>{C()}),{styleScrollXRef:d,fixedColumnLeftMapRef:f,fixedColumnRightMapRef:p,leftFixedColumnsRef:c,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:u,syncScrollState:w,handleTableBodyScroll:R,handleTableHeaderScroll:_,setHeaderScrollLeft:A}}function hT(){const e=M({});function t(r){return e.value[r]}function o(r,i){D5(r)&&"key"in r&&(e.value[r.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:n}}function pT(e,t){const o=[],n=[],r=[],i=new WeakMap;let a=-1,l=0,s=!1;function u(h,f){f>a&&(o[f]=[],a=f),h.forEach((p,g)=>{if("children"in p)u(p.children,f+1);else{const v="key"in p?p.key:void 0;n.push({key:kn(p),style:RD(p,v!==void 0?So(t(v)):void 0),column:p,index:g,width:p.width===void 0?128:Number(p.width)}),l+=1,s||(s=!!p.ellipsis),r.push(p)}})}u(e,0);let d=0;function c(h,f){let p=0;h.forEach(g=>{var v;if("children"in g){const b=d,x={column:g,colIndex:d,colSpan:0,rowSpan:1,isLast:!1};c(g.children,f+1),g.children.forEach(k=>{var C,_;x.colSpan+=(_=(C=i.get(k))===null||C===void 0?void 0:C.colSpan)!==null&&_!==void 0?_:0}),b+x.colSpan===l&&(x.isLast=!0),i.set(g,x),o[f].push(x)}else{if(d<p){d+=1;return}let b=1;"titleColSpan"in g&&(b=(v=g.titleColSpan)!==null&&v!==void 0?v:1),b>1&&(p=d+b);const x=d+b===l,k={column:g,colSpan:b,colIndex:d,rowSpan:a-f+1,isLast:x};i.set(g,k),o[f].push(k),d+=1}})}return c(e,0),{hasEllipsis:s,rows:o,cols:n,dataRelatedCols:r}}function mT(e,t){const o=I(()=>pT(e.columns,t));return{rowsRef:I(()=>o.value.rows),colsRef:I(()=>o.value.cols),hasEllipsisRef:I(()=>o.value.hasEllipsis),dataRelatedColsRef:I(()=>o.value.dataRelatedCols)}}function gT(e,t){const o=gt(()=>{for(const u of e.columns)if(u.type==="expand")return u.renderExpand}),n=gt(()=>{let u;for(const d of e.columns)if(d.type==="expand"){u=d.expandable;break}return u}),r=M(e.defaultExpandAll?o!=null&&o.value?(()=>{const u=[];return t.value.treeNodes.forEach(d=>{var c;!((c=n.value)===null||c===void 0)&&c.call(n,d.rawNode)&&u.push(d.key)}),u})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Be(e,"expandedRowKeys"),a=Be(e,"stickyExpandedRows"),l=to(i,r);function s(u){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":c}=e;d&&$e(d,u),c&&$e(c,u),r.value=u}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:n,doUpdateExpandedRowKeys:s}}const dv=bT(),vT=V([D("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-sorting: var(--n-th-color-sorting); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-sorting: var(--n-td-color-sorting); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[D("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),X("flex-height",[V(">",[D("data-table-wrapper",[V(">",[D("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[V(">",[D("data-table-base-table-body","flex-basis: 0;",[V("&:last-child","flex-grow: 1;")])])])])])])]),V(">",[D("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[An({originalTransform:"translateX(-50%) translateY(-50%)"})])]),D("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),D("data-table-indent",` - display: inline-block; - height: 1px; - `),D("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[X("expanded",[D("icon","transform: rotate(90deg);",[en({originalTransform:"rotate(90deg)"})]),D("base-icon","transform: rotate(90deg);",[en({originalTransform:"rotate(90deg)"})])]),D("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[en()]),D("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[en()]),D("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[en()])]),D("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),D("data-table-tr",` - position: relative; - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[D("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),X("striped","background-color: var(--n-merged-td-color-striped);",[D("data-table-td","background-color: var(--n-merged-td-color-striped);")]),Ft("summary",[V("&:hover","background-color: var(--n-merged-td-color-hover);",[V(">",[D("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),D("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[X("filterable",` - padding-right: 36px; - `,[X("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),dv,X("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),G("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[G("title",` - flex: 1; - min-width: 0; - `)]),G("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),X("hover",` - background-color: var(--n-merged-th-color-hover); - `),X("sorting",` - background-color: var(--n-merged-th-color-sorting); - `),X("sortable",` - cursor: pointer; - `,[G("ellipsis",` - max-width: calc(100% - 18px); - `),V("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),D("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[D("base-icon","transition: transform .3s var(--n-bezier)"),X("desc",[D("base-icon",` - transform: rotate(0deg); - `)]),X("asc",[D("base-icon",` - transform: rotate(-180deg); - `)]),X("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),D("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[V("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),X("active",[V("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),V("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),D("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[V("&:hover",` - background-color: var(--n-th-button-color-hover); - `),X("show",` - background-color: var(--n-th-button-color-hover); - `),X("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),D("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[X("expand",[D("data-table-expand-trigger",` - margin-right: 0; - `)]),X("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[V("&::after",` - bottom: 0 !important; - `),V("&::before",` - bottom: 0 !important; - `)]),X("summary",` - background-color: var(--n-merged-th-color); - `),X("hover",` - background-color: var(--n-merged-td-color-hover); - `),X("sorting",` - background-color: var(--n-merged-td-color-sorting); - `),G("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); - `),X("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),dv]),D("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[X("hide",` - opacity: 0; - `)]),G("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),D("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),X("loading",[D("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),X("single-column",[D("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[V("&::after, &::before",` - bottom: 0 !important; - `)])]),Ft("single-line",[D("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[X("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),D("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[X("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),X("bordered",[D("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),D("data-table-base-table",[X("transition-disabled",[D("data-table-th",[V("&::after, &::before","transition: none;")]),D("data-table-td",[V("&::after, &::before","transition: none;")])])]),X("bottom-bordered",[D("data-table-td",[X("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),D("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),D("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[V("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),D("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),D("data-table-filter-menu",[D("scrollbar",` - max-height: 240px; - `),G("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[D("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),D("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),G("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[D("button",[V("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),V("&:last-child",` - margin-right: 0; - `)])]),D("divider",` - margin: 0 !important; - `)]),Ki(D("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-th-color-sorting: var(--n-th-color-hover-modal); - --n-merged-td-color-sorting: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),Ha(D("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-th-color-sorting: var(--n-th-color-hover-popover); - --n-merged-td-color-sorting: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function bT(){return[X("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[V("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),X("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[V("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const K5=xe({name:"DataTable",alias:["AdvancedTable"],props:gD,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=nt(e),a=Gt("DataTable",i,n),l=I(()=>{const{bottomBordered:Q}=e;return o.value?!1:Q!==void 0?Q:!0}),s=Ie("DataTable","-data-table",vT,E5,e,n),u=M(null),d=M(null),{getResizableWidth:c,clearResizableWidth:h,doUpdateResizableWidth:f}=hT(),{rowsRef:p,colsRef:g,dataRelatedColsRef:v,hasEllipsisRef:b}=mT(e,c),{treeMateRef:x,mergedCurrentPageRef:k,paginatedDataRef:C,rawPaginatedDataRef:_,selectionColumnRef:R,hoverKeyRef:w,mergedPaginationRef:A,mergedFilterStateRef:$,mergedSortStateRef:B,childTriggerColIndexRef:U,doUpdatePage:N,doUpdateFilters:K,onUnstableColumnResize:H,deriveNextSorter:T,filter:z,filters:F,clearFilter:y,clearFilters:re,clearSorter:te,page:j,sort:Z}=cT(e,{dataRelatedColsRef:v}),se=Q=>{const{fileName:me="data.csv",keepOriginalData:Pe=!1}=Q||{},He=Pe?e.data:_.value,We=AD(e.columns,He),Ge=new Blob([We],{type:"text/csv;charset=utf-8"}),qe=URL.createObjectURL(Ge);ry(qe,me.endsWith(".csv")?me:`${me}.csv`),URL.revokeObjectURL(qe)},{doCheckAll:pe,doUncheckAll:Se,doCheck:he,doUncheck:fe,headerCheckboxDisabledRef:Ce,someRowsCheckedRef:Y,allRowsCheckedRef:O,mergedCheckedRowKeySetRef:ze,mergedInderminateRowKeySetRef:je}=lT(e,{selectionColumnRef:R,treeMateRef:x,paginatedDataRef:C}),{stickyExpandedRowsRef:W,mergedExpandedRowKeysRef:ee,renderExpandRef:ge,expandableRef:we,doUpdateExpandedRowKeys:le}=gT(e,x),{handleTableBodyScroll:ne,handleTableHeaderScroll:ce,syncScrollState:J,setHeaderScrollLeft:ie,leftActiveFixedColKeyRef:de,leftActiveFixedChildrenColKeysRef:ae,rightActiveFixedColKeyRef:q,rightActiveFixedChildrenColKeysRef:ue,leftFixedColumnsRef:ve,rightFixedColumnsRef:De,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:Qe}=fT(e,{bodyWidthRef:u,mainTableInstRef:d,mergedCurrentPageRef:k}),{localeRef:st}=Er("DataTable"),Xe=I(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);Je(In,{props:e,treeMateRef:x,renderExpandIconRef:Be(e,"renderExpandIcon"),loadingKeySetRef:M(new Set),slots:t,indentRef:Be(e,"indent"),childTriggerColIndexRef:U,bodyWidthRef:u,componentId:ii(),hoverKeyRef:w,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:I(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:C,leftActiveFixedColKeyRef:de,leftActiveFixedChildrenColKeysRef:ae,rightActiveFixedColKeyRef:q,rightActiveFixedChildrenColKeysRef:ue,leftFixedColumnsRef:ve,rightFixedColumnsRef:De,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:Qe,mergedCurrentPageRef:k,someRowsCheckedRef:Y,allRowsCheckedRef:O,mergedSortStateRef:B,mergedFilterStateRef:$,loadingRef:Be(e,"loading"),rowClassNameRef:Be(e,"rowClassName"),mergedCheckedRowKeySetRef:ze,mergedExpandedRowKeysRef:ee,mergedInderminateRowKeySetRef:je,localeRef:st,expandableRef:we,stickyExpandedRowsRef:W,rowKeyRef:Be(e,"rowKey"),renderExpandRef:ge,summaryRef:Be(e,"summary"),virtualScrollRef:Be(e,"virtualScroll"),virtualScrollXRef:Be(e,"virtualScrollX"),heightForRowRef:Be(e,"heightForRow"),minRowHeightRef:Be(e,"minRowHeight"),virtualScrollHeaderRef:Be(e,"virtualScrollHeader"),headerHeightRef:Be(e,"headerHeight"),rowPropsRef:Be(e,"rowProps"),stripedRef:Be(e,"striped"),checkOptionsRef:I(()=>{const{value:Q}=R;return Q==null?void 0:Q.options}),rawPaginatedDataRef:_,filterMenuCssVarsRef:I(()=>{const{self:{actionDividerColor:Q,actionPadding:me,actionButtonMargin:Pe}}=s.value;return{"--n-action-padding":me,"--n-action-button-margin":Pe,"--n-action-divider-color":Q}}),onLoadRef:Be(e,"onLoad"),mergedTableLayoutRef:Xe,maxHeightRef:Be(e,"maxHeight"),minHeightRef:Be(e,"minHeight"),flexHeightRef:Be(e,"flexHeight"),headerCheckboxDisabledRef:Ce,paginationBehaviorOnFilterRef:Be(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Be(e,"summaryPlacement"),filterIconPopoverPropsRef:Be(e,"filterIconPopoverProps"),scrollbarPropsRef:Be(e,"scrollbarProps"),syncScrollState:J,doUpdatePage:N,doUpdateFilters:K,getResizableWidth:c,onUnstableColumnResize:H,clearResizableWidth:h,doUpdateResizableWidth:f,deriveNextSorter:T,doCheck:he,doUncheck:fe,doCheckAll:pe,doUncheckAll:Se,doUpdateExpandedRowKeys:le,handleTableHeaderScroll:ce,handleTableBodyScroll:ne,setHeaderScrollLeft:ie,renderCell:Be(e,"renderCell")});const pt={filter:z,filters:F,clearFilters:re,clearSorter:te,page:j,sort:Z,clearFilter:y,downloadCsv:se,scrollTo:(Q,me)=>{var Pe;(Pe=d.value)===null||Pe===void 0||Pe.scrollTo(Q,me)}},Ye=I(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:me},self:{borderColor:Pe,tdColorHover:He,tdColorSorting:We,tdColorSortingModal:Ge,tdColorSortingPopover:qe,thColorSorting:tt,thColorSortingModal:yt,thColorSortingPopover:Bt,thColor:_t,thColorHover:xo,tdColor:Ao,tdTextColor:Bo,thTextColor:No,thFontWeight:Vo,thButtonColorHover:un,thIconColor:dn,thIconColorActive:be,filterSize:Ae,borderRadius:rt,lineHeight:wt,tdColorModal:zt,thColorModal:Mt,borderColorModal:Yt,thColorHoverModal:oo,tdColorHoverModal:En,borderColorPopover:nr,thColorPopover:rr,tdColorPopover:ui,tdColorHoverPopover:Qa,thColorHoverPopover:Ja,paginationMargin:el,emptyPadding:tl,boxShadowAfter:Rr,boxShadowBefore:$r,sorterSize:rc,resizableContainerSize:ic,resizableSize:ac,loadingColor:lc,loadingSize:sc,opacityLoading:uc,tdColorStriped:dc,tdColorStripedModal:cc,tdColorStripedPopover:fc,[Ee("fontSize",Q)]:hc,[Ee("thPadding",Q)]:pc,[Ee("tdPadding",Q)]:mc}}=s.value;return{"--n-font-size":hc,"--n-th-padding":pc,"--n-td-padding":mc,"--n-bezier":me,"--n-border-radius":rt,"--n-line-height":wt,"--n-border-color":Pe,"--n-border-color-modal":Yt,"--n-border-color-popover":nr,"--n-th-color":_t,"--n-th-color-hover":xo,"--n-th-color-modal":Mt,"--n-th-color-hover-modal":oo,"--n-th-color-popover":rr,"--n-th-color-hover-popover":Ja,"--n-td-color":Ao,"--n-td-color-hover":He,"--n-td-color-modal":zt,"--n-td-color-hover-modal":En,"--n-td-color-popover":ui,"--n-td-color-hover-popover":Qa,"--n-th-text-color":No,"--n-td-text-color":Bo,"--n-th-font-weight":Vo,"--n-th-button-color-hover":un,"--n-th-icon-color":dn,"--n-th-icon-color-active":be,"--n-filter-size":Ae,"--n-pagination-margin":el,"--n-empty-padding":tl,"--n-box-shadow-before":$r,"--n-box-shadow-after":Rr,"--n-sorter-size":rc,"--n-resizable-container-size":ic,"--n-resizable-size":ac,"--n-loading-size":sc,"--n-loading-color":lc,"--n-opacity-loading":uc,"--n-td-color-striped":dc,"--n-td-color-striped-modal":cc,"--n-td-color-striped-popover":fc,"n-td-color-sorting":We,"n-td-color-sorting-modal":Ge,"n-td-color-sorting-popover":qe,"n-th-color-sorting":tt,"n-th-color-sorting-modal":yt,"n-th-color-sorting-popover":Bt}}),Le=r?vt("data-table",I(()=>e.size[0]),Ye,e):void 0,et=I(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Q=A.value,{pageCount:me}=Q;return me!==void 0?me>1:Q.itemCount&&Q.pageSize&&Q.itemCount>Q.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:n,rtlEnabled:a,mergedTheme:s,paginatedData:C,mergedBordered:o,mergedBottomBordered:l,mergedPagination:A,mergedShowPagination:et,cssVars:r?void 0:Ye,themeClass:Le==null?void 0:Le.themeClass,onRender:Le==null?void 0:Le.onRender},pt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:n,spinProps:r}=this;return o==null||o(),m("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},m("div",{class:`${e}-data-table-wrapper`},m(aT,{ref:"mainTableInstRef"})),this.mergedShowPagination?m("div",{class:`${e}-data-table__pagination`},m(lD,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,m(ho,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m("div",{class:`${e}-data-table-loading-wrapper`},wo(n.loading,()=>[m(_r,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),xT={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function G5(e){const{popoverColor:t,textColor2:o,primaryColor:n,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:u,iconColorDisabled:d}=e;return Object.assign(Object.assign({},xT),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:u,iconColorDisabled:d})}const q5={name:"TimePicker",common:Ve,peers:{Scrollbar:Lo,Button:Ho,Input:Xo},self:G5},Z5={name:"TimePicker",common:Ne,peers:{Scrollbar:Zo,Button:Yo,Input:Sn},self:G5},yT={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function X5(e){const{hoverColor:t,fontSize:o,textColor2:n,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:u,textColor1:d,dividerColor:c,boxShadow2:h,borderRadius:f,fontWeightStrong:p}=e;return Object.assign(Object.assign({},yT),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Me(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:n,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:c,calendarDaysDividerColor:c,calendarDividerColor:c,panelActionDividerColor:c,panelBoxShadow:h,panelBorderRadius:f,calendarTitleFontWeight:p,scrollItemBorderRadius:f,iconColor:s,iconColorDisabled:u})}const CT={name:"DatePicker",common:Ve,peers:{Input:Xo,Button:Ho,TimePicker:q5,Scrollbar:Lo},self:X5},wT={name:"DatePicker",common:Ne,peers:{Input:Sn,Button:Yo,TimePicker:Z5,Scrollbar:Zo},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=X5(e);return r.itemColorDisabled=Ue(t,o),r.itemColorIncluded=Me(n,{alpha:.15}),r.itemColorHover=Ue(t,o),r}},ST={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function Y5(e){const{tableHeaderColor:t,textColor2:o,textColor1:n,cardColor:r,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:u,lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f}=e;return Object.assign(Object.assign({},ST),{lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f,titleTextColor:n,thColor:Ue(r,t),thColorModal:Ue(i,t),thColorPopover:Ue(a,t),thTextColor:n,thFontWeight:u,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ue(r,l),borderColorModal:Ue(i,l),borderColorPopover:Ue(a,l),borderRadius:s})}const ET={name:"Descriptions",common:Ve,self:Y5},kT={name:"Descriptions",common:Ne,self:Y5},_T={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function Q5(e){const{textColor1:t,textColor2:o,modalColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:u,successColor:d,warningColor:c,errorColor:h,primaryColor:f,dividerColor:p,borderRadius:g,fontWeightStrong:v,lineHeight:b,fontSize:x}=e;return Object.assign(Object.assign({},_T),{fontSize:x,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:o,color:n,closeColorHover:l,closeColorPressed:s,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:f,iconColorInfo:u,iconColorSuccess:d,iconColorWarning:c,iconColorError:h,borderRadius:g,titleFontWeight:v})}const om={name:"Dialog",common:Ve,peers:{Button:Ho},self:Q5},J5={name:"Dialog",common:Ne,peers:{Button:Yo},self:Q5},qd={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},ew=ws(qd),FT=V([D("dialog",` - --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[G("icon",{color:"var(--n-icon-color)"}),X("bordered",{border:"var(--n-border)"}),X("icon-top",[G("close",{margin:"var(--n-close-margin)"}),G("icon",{margin:"var(--n-icon-margin)"}),G("content",{textAlign:"center"}),G("title",{justifyContent:"center"}),G("action",{justifyContent:"center"})]),X("icon-left",[G("icon",{margin:"var(--n-icon-margin)"}),X("closable",[G("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),G("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),G("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[X("last","margin-bottom: 0;")]),G("action",` - display: flex; - justify-content: flex-end; - `,[V("> *:not(:last-child)",` - margin-right: var(--n-action-space); - `)]),G("icon",` - font-size: var(--n-icon-size); - transition: color .3s var(--n-bezier); - `),G("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),D("dialog-icon-container",` - display: flex; - justify-content: center; - `)]),Ki(D("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),D("dialog",[Bx(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),RT={default:()=>m(is,null),info:()=>m(is,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(zd,null)},tw=xe({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Ie.props),qd),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=nt(e),i=Gt("Dialog",r,o),a=I(()=>{var f,p;const{iconPlacement:g}=e;return g||((p=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function l(f){const{onPositiveClick:p}=e;p&&p(f)}function s(f){const{onNegativeClick:p}=e;p&&p(f)}function u(){const{onClose:f}=e;f&&f()}const d=Ie("Dialog","-dialog",FT,om,e,o),c=I(()=>{const{type:f}=e,p=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:v,lineHeight:b,border:x,titleTextColor:k,textColor:C,color:_,closeBorderRadius:R,closeColorHover:w,closeColorPressed:A,closeIconColor:$,closeIconColorHover:B,closeIconColorPressed:U,closeIconSize:N,borderRadius:K,titleFontWeight:H,titleFontSize:T,padding:z,iconSize:F,actionSpace:y,contentMargin:re,closeSize:te,[p==="top"?"iconMarginIconTop":"iconMargin"]:j,[p==="top"?"closeMarginIconTop":"closeMargin"]:Z,[Ee("iconColor",f)]:se}}=d.value,pe=Ro(j);return{"--n-font-size":v,"--n-icon-color":se,"--n-bezier":g,"--n-close-margin":Z,"--n-icon-margin-top":pe.top,"--n-icon-margin-right":pe.right,"--n-icon-margin-bottom":pe.bottom,"--n-icon-margin-left":pe.left,"--n-icon-size":F,"--n-close-size":te,"--n-close-icon-size":N,"--n-close-border-radius":R,"--n-close-color-hover":w,"--n-close-color-pressed":A,"--n-close-icon-color":$,"--n-close-icon-color-hover":B,"--n-close-icon-color-pressed":U,"--n-color":_,"--n-text-color":C,"--n-border-radius":K,"--n-padding":z,"--n-line-height":b,"--n-border":x,"--n-content-margin":re,"--n-title-font-size":T,"--n-title-font-weight":H,"--n-title-text-color":k,"--n-action-space":y}}),h=n?vt("dialog",I(()=>`${e.type[0]}${a.value[0]}`),c,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:l,handleNegativeClick:s,handleCloseClick:u,cssVars:n?void 0:c,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:n,closable:r,showIcon:i,title:a,content:l,action:s,negativeText:u,positiveText:d,positiveButtonProps:c,negativeButtonProps:h,handlePositiveClick:f,handleNegativeClick:p,mergedTheme:g,loading:v,type:b,mergedClsPrefix:x}=this;(e=this.onRender)===null||e===void 0||e.call(this);const k=i?m(Ut,{clsPrefix:x,class:`${x}-dialog__icon`},{default:()=>bt(this.$slots.icon,_=>_||(this.icon?Jt(this.icon):RT[this.type]()))}):null,C=bt(this.$slots.action,_=>_||d||u||s?m("div",{class:[`${x}-dialog__action`,this.actionClass],style:this.actionStyle},_||(s?[Jt(s)]:[this.negativeText&&m(St,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>Jt(this.negativeText)}),this.positiveText&&m(St,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:v,loading:v,onClick:f},c),{default:()=>Jt(this.positiveText)})])):null);return m("div",{class:[`${x}-dialog`,this.themeClass,this.closable&&`${x}-dialog--closable`,`${x}-dialog--icon-${o}`,t&&`${x}-dialog--bordered`,this.rtlEnabled&&`${x}-dialog--rtl`],style:n,role:"dialog"},r?bt(this.$slots.close,_=>{const R=[`${x}-dialog__close`,this.rtlEnabled&&`${x}-dialog--rtl`];return _?m("div",{class:R},_):m(li,{clsPrefix:x,class:R,onClick:this.handleCloseClick})}):null,i&&o==="top"?m("div",{class:`${x}-dialog-icon-container`},k):null,m("div",{class:[`${x}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?k:null,wo(this.$slots.header,()=>[Jt(a)])),m("div",{class:[`${x}-dialog__content`,C?"":`${x}-dialog__content--last`,this.contentClass],style:this.contentStyle},wo(this.$slots.default,()=>[Jt(l)])),C)}}),ow="n-dialog-provider",nw="n-dialog-api",$T="n-dialog-reactive-list";function rw(e){const{modalColor:t,textColor2:o,boxShadow3:n}=e;return{color:t,textColor:o,boxShadow:n}}const iw={name:"Modal",common:Ve,peers:{Scrollbar:Lo,Dialog:om,Card:Up},self:rw},PT={name:"Modal",common:Ne,peers:{Scrollbar:Zo,Dialog:J5,Card:JC},self:rw},nm=Object.assign(Object.assign({},Kp),qd),MT=ws(nm),AT=xe({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},nm),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=M(null),o=M(null),n=M(e.show),r=M(null),i=M(null);at(Be(e,"show"),v=>{v&&(n.value=!0)}),oy(I(()=>e.blockScroll&&n.value));const a=Oe(Lx);function l(){if(a.transformOriginRef.value==="center")return"";const{value:v}=r,{value:b}=i;if(v===null||b===null)return"";if(o.value){const x=o.value.containerScrollTop;return`${v}px ${b+x}px`}return""}function s(v){if(a.transformOriginRef.value==="center")return;const b=a.getMousePosition();if(!b||!o.value)return;const x=o.value.containerScrollTop,{offsetLeft:k,offsetTop:C}=v;if(b){const _=b.y,R=b.x;r.value=-(k-R),i.value=-(C-_-x)}v.style.transformOrigin=l()}function u(v){Rt(()=>{s(v)})}function d(v){v.style.transformOrigin=l(),e.onBeforeLeave()}function c(){n.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:v}=e;v&&v()}function f(){e.onNegativeClick()}function p(){e.onPositiveClick()}const g=M(null);return at(g,v=>{v&&Rt(()=>{const b=v.el;b&&t.value!==b&&(t.value=b)})}),Je(Ss,t),Je(Es,null),Je(Na,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:n,childNodeRef:g,handlePositiveClick:p,handleNegativeClick:f,handleCloseClick:h,handleAfterLeave:c,handleBeforeLeave:d,handleEnter:u}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:n,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Zf(e),!l){xn("modal","default slot is empty");return}l=qo(l),l.props=bo({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?Po(m("div",{role:"none",class:`${a}-modal-body-wrapper`},m(or,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),m(xp,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return m(ho,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:r},{default:()=>{const d=[[bn,this.show]],{onClickoutside:c}=this;return c&&d.push([Oi,this.onClickoutside,void 0,{capture:!0}]),Po(this.preset==="confirm"||this.preset==="dialog"?m(tw,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},ei(this.$props,ew),{"aria-modal":"true"}),e):this.preset==="card"?m(e5,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},ei(this.$props,SB),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),BT=V([D("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),D("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Ts({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),D("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[D("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),D("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[An({duration:".25s",enterScale:".5"})])]),aw=Object.assign(Object.assign(Object.assign(Object.assign({},Ie.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),nm),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),rm=xe({name:"Modal",inheritAttrs:!1,props:aw,setup(e){const t=M(null),{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=nt(e),i=Ie("Modal","-modal",BT,iw,e,o),a=Xu(64),l=Zu(),s=Cr(),u=e.internalDialog?Oe(ow,null):null,d=e.internalModal?Oe(fk,null):null,c=ny();function h(R){const{onUpdateShow:w,"onUpdate:show":A,onHide:$}=e;w&&$e(w,R),A&&$e(A,R),$&&!R&&$(R)}function f(){const{onClose:R}=e;R?Promise.resolve(R()).then(w=>{w!==!1&&h(!1)}):h(!1)}function p(){const{onPositiveClick:R}=e;R?Promise.resolve(R()).then(w=>{w!==!1&&h(!1)}):h(!1)}function g(){const{onNegativeClick:R}=e;R?Promise.resolve(R()).then(w=>{w!==!1&&h(!1)}):h(!1)}function v(){const{onBeforeLeave:R,onBeforeHide:w}=e;R&&$e(R),w&&w()}function b(){const{onAfterLeave:R,onAfterHide:w}=e;R&&$e(R),w&&w()}function x(R){var w;const{onMaskClick:A}=e;A&&A(R),e.maskClosable&&!((w=t.value)===null||w===void 0)&&w.contains(zi(R))&&h(!1)}function k(R){var w;(w=e.onEsc)===null||w===void 0||w.call(e),e.show&&e.closeOnEsc&&Tx(R)&&(c.value||h(!1))}Je(Lx,{getMousePosition:()=>{const R=u||d;if(R){const{clickedRef:w,clickedPositionRef:A}=R;if(w.value&&A.value)return A.value}return a.value?l.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:s,appearRef:Be(e,"internalAppear"),transformOriginRef:Be(e,"transformOrigin")});const C=I(()=>{const{common:{cubicBezierEaseOut:R},self:{boxShadow:w,color:A,textColor:$}}=i.value;return{"--n-bezier-ease-out":R,"--n-box-shadow":w,"--n-color":A,"--n-text-color":$}}),_=r?vt("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:o,namespace:n,isMounted:s,containerRef:t,presetProps:I(()=>ei(e,MT)),handleEsc:k,handleAfterLeave:b,handleClickoutside:x,handleBeforeLeave:v,doUpdateShow:h,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:f,cssVars:r?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e}=this;return m(gp,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return Po(m("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},m(AT,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var n;return m(ho,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Pd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),DT=Object.assign(Object.assign({},qd),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),TT=xe({name:"DialogEnvironment",props:Object.assign(Object.assign({},DT),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=M(!0);function o(){const{onInternalAfterLeave:d,internalKey:c,onAfterLeave:h}=e;d&&d(c),h&&h()}function n(d){const{onPositiveClick:c}=e;c?Promise.resolve(c(d)).then(h=>{h!==!1&&s()}):s()}function r(d){const{onNegativeClick:c}=e;c?Promise.resolve(c(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function a(d){const{onMaskClick:c,maskClosable:h}=e;c&&(c(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function u(d){t.value=d}return{show:t,hide:s,handleUpdateShow:u,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:n,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:u}=this;return m(rm,{show:u,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>m(tw,Object.assign({},ei(this.$props,ew),{style:this.internalStyle,onClose:n,onNegativeClick:o,onPositiveClick:e}))})}}),IT={injectionKey:String,to:[String,Object]},zT=xe({name:"DialogProvider",props:IT,setup(){const e=M([]),t={};function o(l={}){const s=ii(),u=It(Object.assign(Object.assign({},l),{key:s,destroy:()=>{var d;(d=t[`n-dialog-${s}`])===null||d===void 0||d.hide()}}));return e.value.push(u),u}const n=["info","success","warning","error"].map(l=>s=>o(Object.assign(Object.assign({},s),{type:l})));function r(l){const{value:s}=e;s.splice(s.findIndex(u=>u.key===l),1)}function i(){Object.values(t).forEach(l=>{l==null||l.hide()})}const a={create:o,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return Je(nw,a),Je(ow,{clickedRef:Xu(64),clickedPositionRef:Zu()}),Je($T,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return m(ft,null,[this.dialogList.map(o=>m(TT,Ui(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function OT(){const e=Oe(nw,null);return e===null&&yr("use-dialog","No outer <n-dialog-provider /> founded."),e}function lw(e){const{textColor1:t,dividerColor:o,fontWeightStrong:n}=e;return{textColor:t,color:o,fontWeight:n}}const sw={name:"Divider",common:Ve,self:lw},LT={name:"Divider",common:Ne,self:lw},HT=D("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[Ft("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[Ft("no-title",` - display: flex; - align-items: center; - `)]),G("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),X("title-position-left",[G("line",[X("left",{width:"28px"})])]),X("title-position-right",[G("line",[X("right",{width:"28px"})])]),X("dashed",[G("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),X("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),G("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),Ft("dashed",[G("line",{backgroundColor:"var(--n-color)"})]),X("dashed",[G("line",{borderColor:"var(--n-color)"})]),X("vertical",{backgroundColor:"var(--n-color)"})]),NT=Object.assign(Object.assign({},Ie.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),VT=xe({name:"Divider",props:NT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=Ie("Divider","-divider",HT,sw,e,t),r=I(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:u}}=n.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":u}}),i=o?vt("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:o,vertical:n,dashed:r,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:n,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:r,[`${a}-divider--title-position-${o}`]:t.default&&o}],style:i},n?null:m("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!n&&t.default?m(ft,null,m("div",{class:`${a}-divider__title`},this.$slots),m("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}});function uw(e){const{modalColor:t,textColor1:o,textColor2:n,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:u,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,borderRadius:f,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:f,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:o,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:c,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:u,closeBorderRadius:f,resizableTriggerColorHover:p}}const dw={name:"Drawer",common:Ve,peers:{Scrollbar:Lo},self:uw},jT={name:"Drawer",common:Ne,peers:{Scrollbar:Zo},self:uw},WT=xe({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=M(!!e.show),o=M(null),n=Oe(mp);let r=0,i="",a=null;const l=M(!1),s=M(!1),u=I(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:c}=nt(e),h=Gt("Drawer",c,d),f=R,p=$=>{s.value=!0,r=u.value?$.clientY:$.clientX,i=document.body.style.cursor,document.body.style.cursor=u.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",_),document.body.addEventListener("mouseleave",f),document.body.addEventListener("mouseup",R)},g=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},v=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:b,doUpdateWidth:x}=n,k=$=>{const{maxWidth:B}=e;if(B&&$>B)return B;const{minWidth:U}=e;return U&&$<U?U:$},C=$=>{const{maxHeight:B}=e;if(B&&$>B)return B;const{minHeight:U}=e;return U&&$<U?U:$};function _($){var B,U;if(s.value)if(u.value){let N=((B=o.value)===null||B===void 0?void 0:B.offsetHeight)||0;const K=r-$.clientY;N+=e.placement==="bottom"?K:-K,N=C(N),b(N),r=$.clientY}else{let N=((U=o.value)===null||U===void 0?void 0:U.offsetWidth)||0;const K=r-$.clientX;N+=e.placement==="right"?K:-K,N=k(N),x(N),r=$.clientX}}function R(){s.value&&(r=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",_),document.body.removeEventListener("mouseup",R),document.body.removeEventListener("mouseleave",f))}kt(()=>{e.show&&(t.value=!0)}),at(()=>e.show,$=>{$||R()}),Xt(()=>{R()});const w=I(()=>{const{show:$}=e,B=[[bn,$]];return e.showMask||B.push([Oi,e.onClickoutside,void 0,{capture:!0}]),B});function A(){var $;t.value=!1,($=e.onAfterLeave)===null||$===void 0||$.call(e)}return oy(I(()=>e.blockScroll&&t.value)),Je(Es,o),Je(Na,null),Je(Ss,null),{bodyRef:o,rtlEnabled:h,mergedClsPrefix:n.mergedClsPrefixRef,isMounted:n.isMountedRef,mergedTheme:n.mergedThemeRef,displayed:t,transitionName:I(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:A,bodyDirectives:w,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:v,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?Po(m("div",{role:"none"},m(xp,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>m(ho,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>Po(m("div",bo(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?m("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?m("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):m(or,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[bn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:UT,cubicBezierEaseOut:KT}=sn;function GT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-right"}={}){return[V(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${UT}`}),V(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${KT}`}),V(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),V(`&.${o}-transition-enter-from`,{transform:"translateX(100%)"}),V(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),V(`&.${o}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:qT,cubicBezierEaseOut:ZT}=sn;function XT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-left"}={}){return[V(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${qT}`}),V(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${ZT}`}),V(`&.${o}-transition-enter-to`,{transform:"translateX(0)"}),V(`&.${o}-transition-enter-from`,{transform:"translateX(-100%)"}),V(`&.${o}-transition-leave-from`,{transform:"translateX(0)"}),V(`&.${o}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:YT,cubicBezierEaseOut:QT}=sn;function JT({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-top"}={}){return[V(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${YT}`}),V(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${QT}`}),V(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),V(`&.${o}-transition-enter-from`,{transform:"translateY(-100%)"}),V(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),V(`&.${o}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:eI,cubicBezierEaseOut:tI}=sn;function oI({duration:e="0.3s",leaveDuration:t="0.2s",name:o="slide-in-from-bottom"}={}){return[V(`&.${o}-transition-leave-active`,{transition:`transform ${t} ${eI}`}),V(`&.${o}-transition-enter-active`,{transition:`transform ${e} ${tI}`}),V(`&.${o}-transition-enter-to`,{transform:"translateY(0)"}),V(`&.${o}-transition-enter-from`,{transform:"translateY(100%)"}),V(`&.${o}-transition-leave-from`,{transform:"translateY(0)"}),V(`&.${o}-transition-leave-to`,{transform:"translateY(100%)"})]}const nI=V([D("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[GT(),XT(),JT(),oI(),X("unselectable",` - user-select: none; - -webkit-user-select: none; - `),X("native-scrollbar",[D("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),G("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[X("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),D("drawer-content-wrapper",` - box-sizing: border-box; - `),D("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[X("native-scrollbar",[D("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),D("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),D("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),D("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[G("main",` - flex: 1; - `),G("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),D("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),X("right-placement",` - top: 0; - bottom: 0; - right: 0; - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[G("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),X("left-placement",` - top: 0; - bottom: 0; - left: 0; - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[G("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),X("top-placement",` - top: 0; - left: 0; - right: 0; - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[G("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),X("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - `,[G("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),V("body",[V(">",[D("drawer-container",` - position: fixed; - `)])]),D("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[V("> *",` - pointer-events: all; - `)]),D("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[X("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Ts({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),rI=Object.assign(Object.assign({},Ie.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),iI=xe({name:"Drawer",inheritAttrs:!1,props:rI,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=nt(e),r=Cr(),i=Ie("Drawer","-drawer",nI,dw,e,t),a=M(e.defaultWidth),l=M(e.defaultHeight),s=to(Be(e,"width"),a),u=to(Be(e,"height"),l),d=I(()=>{const{placement:R}=e;return R==="top"||R==="bottom"?"":So(s.value)}),c=I(()=>{const{placement:R}=e;return R==="left"||R==="right"?"":So(u.value)}),h=R=>{const{onUpdateWidth:w,"onUpdate:width":A}=e;w&&$e(w,R),A&&$e(A,R),a.value=R},f=R=>{const{onUpdateHeight:w,"onUpdate:width":A}=e;w&&$e(w,R),A&&$e(A,R),l.value=R},p=I(()=>[{width:d.value,height:c.value},e.drawerStyle||""]);function g(R){const{onMaskClick:w,maskClosable:A}=e;A&&k(!1),w&&w(R)}function v(R){g(R)}const b=ny();function x(R){var w;(w=e.onEsc)===null||w===void 0||w.call(e),e.show&&e.closeOnEsc&&Tx(R)&&(b.value||k(!1))}function k(R){const{onHide:w,onUpdateShow:A,"onUpdate:show":$}=e;A&&$e(A,R),$&&$e($,R),w&&!R&&$e(w,R)}Je(mp,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:k,doUpdateHeight:f,doUpdateWidth:h});const C=I(()=>{const{common:{cubicBezierEaseInOut:R,cubicBezierEaseIn:w,cubicBezierEaseOut:A},self:{color:$,textColor:B,boxShadow:U,lineHeight:N,headerPadding:K,footerPadding:H,borderRadius:T,bodyPadding:z,titleFontSize:F,titleTextColor:y,titleFontWeight:re,headerBorderBottom:te,footerBorderTop:j,closeIconColor:Z,closeIconColorHover:se,closeIconColorPressed:pe,closeColorHover:Se,closeColorPressed:he,closeIconSize:fe,closeSize:Ce,closeBorderRadius:Y,resizableTriggerColorHover:O}}=i.value;return{"--n-line-height":N,"--n-color":$,"--n-border-radius":T,"--n-text-color":B,"--n-box-shadow":U,"--n-bezier":R,"--n-bezier-out":A,"--n-bezier-in":w,"--n-header-padding":K,"--n-body-padding":z,"--n-footer-padding":H,"--n-title-text-color":y,"--n-title-font-size":F,"--n-title-font-weight":re,"--n-header-border-bottom":te,"--n-footer-border-top":j,"--n-close-icon-color":Z,"--n-close-icon-color-hover":se,"--n-close-icon-color-pressed":pe,"--n-close-size":Ce,"--n-close-color-hover":Se,"--n-close-color-pressed":he,"--n-close-icon-size":fe,"--n-close-border-radius":Y,"--n-resize-trigger-color-hover":O}}),_=n?vt("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:o,mergedBodyStyle:p,handleOutsideClick:v,handleMaskClick:g,handleEsc:x,mergedTheme:i,cssVars:n?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return m(gp,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),Po(m("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?m(ho,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?m("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,m(WT,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[Pd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),aI={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},lI=xe({name:"DrawerContent",props:aI,setup(){const e=Oe(mp,null);e||yr("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function o(){t(!1)}return{handleCloseClick:o,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:o,mergedTheme:n,bodyClass:r,bodyStyle:i,bodyContentClass:a,bodyContentStyle:l,headerClass:s,headerStyle:u,footerClass:d,footerStyle:c,scrollbarProps:h,closable:f,$slots:p}=this;return m("div",{role:"none",class:[`${t}-drawer-content`,o&&`${t}-drawer-content--native-scrollbar`]},p.header||e||f?m("div",{class:[`${t}-drawer-header`,s],style:u,role:"none"},m("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},p.header!==void 0?p.header():e),f&&m(li,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,o?m("div",{class:[`${t}-drawer-body`,r],style:i,role:"none"},m("div",{class:[`${t}-drawer-body-content-wrapper`,a],style:l,role:"none"},p)):m(or,Object.assign({themeOverrides:n.peerOverrides.Scrollbar,theme:n.peers.Scrollbar},h,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,a],contentStyle:l}),p),p.footer?m("div",{class:[`${t}-drawer-footer`,d],style:c,role:"none"},p.footer()):null)}}),cw={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},sI={name:"DynamicInput",common:Ne,peers:{Input:Sn,Button:Yo},self(){return cw}};function uI(){return cw}const dI={name:"DynamicInput",common:Ve,peers:{Input:Xo,Button:Ho},self:uI},fw={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},hw={name:"Space",self(){return fw}};function cI(){return fw}const im={name:"Space",self:cI};let tf;function fI(){if(!wn)return!0;if(tf===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),tf=t}return tf}const hI=Object.assign(Object.assign({},Ie.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Iu=xe({name:"Space",props:hI,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=nt(e),n=Ie("Space","-space",void 0,im,e,t),r=Gt("Space",o,t);return{useGap:fI(),rtlEnabled:r,mergedClsPrefix:t,margin:I(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Ee("gap",i)]:a}}=n.value,{row:l,col:s}=m4(a);return{horizontal:lo(s),vertical:lo(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:n,justify:r,itemClass:i,itemStyle:a,margin:l,wrap:s,mergedClsPrefix:u,rtlEnabled:d,useGap:c,wrapItem:h,internalUseGap:f}=this,p=vr(cp(this),!1);if(!p.length)return null;const g=`${l.horizontal}px`,v=`${l.horizontal/2}px`,b=`${l.vertical}px`,x=`${l.vertical/2}px`,k=p.length-1,C=r.startsWith("space-");return m("div",{role:"none",class:[`${u}-space`,d&&`${u}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!s||e?"nowrap":"wrap",marginTop:c||e?"":`-${x}`,marginBottom:c||e?"":`-${x}`,alignItems:o,gap:c?`${l.vertical}px ${l.horizontal}px`:""}},!h&&(c||f)?p:p.map((_,R)=>_.type===go?_:m("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},c?"":e?{marginBottom:R!==k?b:""}:d?{marginLeft:C?r==="space-between"&&R===k?"":v:R!==k?g:"",marginRight:C?r==="space-between"&&R===0?"":v:"",paddingTop:x,paddingBottom:x}:{marginRight:C?r==="space-between"&&R===k?"":v:R!==k?g:"",marginLeft:C?r==="space-between"&&R===0?"":v:"",paddingTop:x,paddingBottom:x}]},_)))}}),pI={name:"DynamicTags",common:Ne,peers:{Input:Sn,Button:Yo,Tag:EC,Space:hw},self(){return{inputWidth:"64px"}}},mI={name:"DynamicTags",common:Ve,peers:{Input:Xo,Button:Ho,Tag:Hp,Space:im},self(){return{inputWidth:"64px"}}},gI={name:"Element",common:Ne},pw={name:"Element",common:Ve},vI=Object.assign(Object.assign({},Ie.props),{tag:{type:String,default:"div"}}),bI=xe({name:"Element",alias:["El"],props:vI,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=Ie("Element","-element",void 0,pw,e,t),r=I(()=>{const{common:a}=n.value;return Object.keys(a).reduce((l,s)=>(l[`--${PP(s)}`]=a[s],l),{})}),i=o?vt("element",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:o,cssVars:n,themeClass:r,onRender:i,$slots:a}=this;return i==null||i(),m(t,{role:"none",class:[`${o}-element`,r],style:n},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),mw={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},xI={name:"Flex",self(){return mw}};function yI(){return mw}const CI={name:"Flex",self:yI},wI={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function gw(e){const{heightSmall:t,heightMedium:o,heightLarge:n,textColor1:r,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},wI),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:n,lineHeight:l,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})}const SI={name:"Form",common:Ve,self:gw},EI={name:"Form",common:Ne,self:gw},cv=1,vw="n-grid",bw=1,kI={span:{type:[Number,String],default:bw},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},xw=xe({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:kI,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:o,overflowRef:n,layoutShiftDisabledRef:r}=Oe(vw),i=xr();return{overflow:n,itemStyle:o,layoutShiftDisabled:r,mergedXGap:I(()=>Lt(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=bw,privateShow:l=!0,privateColStart:s=void 0,privateOffset:u=0}=i.vnode.props,{value:d}=t,c=Lt(d||0);return{display:l?"":"none",gridColumn:`${s??`span ${a}`} / span ${a}`,marginLeft:u?`calc((100% - (${a} - 1) * ${c}) / ${a} * ${u} + ${c} * ${u})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:o,offset:n,mergedXGap:r}=this;return m("div",{style:{gridColumn:`span ${o} / span ${o}`,marginLeft:n?`calc((100% - (${o} - 1) * ${r}) / ${o} * ${n} + ${r} * ${n})`:""}},this.$slots)}return m("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),_I={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function yw(e){const{textColor2:t,successColor:o,infoColor:n,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:u,closeColorHover:d,closeColorPressed:c,textColor1:h,textColor3:f,borderRadius:p,fontWeightStrong:g,boxShadow2:v,lineHeight:b,fontSize:x}=e;return Object.assign(Object.assign({},_I),{borderRadius:p,lineHeight:b,fontSize:x,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:n,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:u,closeBorderRadius:p,closeColorHover:d,closeColorPressed:c,headerTextColor:h,descriptionTextColor:f,actionTextColor:t,boxShadow:v})}const Cw={name:"Notification",common:Ve,peers:{Scrollbar:Lo},self:yw},FI={name:"Notification",common:Ne,peers:{Scrollbar:Zo},self:yw},RI={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function ww(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:u,boxShadow2:d,primaryColor:c,lineHeight:h,borderRadius:f,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},RI),{closeBorderRadius:f,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:u,colorInfo:u,colorSuccess:u,colorError:u,colorWarning:u,colorLoading:u,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:c,closeColorHover:p,closeColorPressed:g,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:n,closeIconColorPressedInfo:r,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:r,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:n,closeIconColorPressedError:r,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:n,closeIconColorPressedWarning:r,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:n,closeIconColorPressedLoading:r,loadingColor:c,lineHeight:h,borderRadius:f})}const Sw={name:"Message",common:Ve,self:ww},$I={name:"Message",common:Ne,self:ww},PI={name:"ButtonGroup",common:Ne},MI={name:"ButtonGroup",common:Ve},AI={name:"GradientText",common:Ne,self(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:u,infoColorSuppl:d,fontWeightStrong:c}=e;return{fontWeight:c,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:n,colorEndWarning:s,colorStartError:r,colorEndError:u,colorStartSuccess:o,colorEndSuccess:l}}};function BI(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:Me(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Me(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:Me(n,{alpha:.6}),colorEndWarning:n,colorStartError:Me(r,{alpha:.6}),colorEndError:r,colorStartSuccess:Me(o,{alpha:.6}),colorEndSuccess:o}}const DI={name:"GradientText",common:Ve,self:BI},TI={name:"InputNumber",common:Ne,peers:{Button:Yo,Input:Sn},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function II(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const Ew={name:"InputNumber",common:Ve,peers:{Button:Ho,Input:Xo},self:II},zI={name:"Layout",common:Ne,peers:{Scrollbar:Zo},self(e){const{textColor2:t,bodyColor:o,popoverColor:n,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ue(o,a),siderToggleBarColorHover:Ue(o,l),__invertScrollbar:"false"}}};function OI(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:u}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:r,headerColorInverted:u,footerColor:a,footerColorInverted:u,headerBorderColor:i,headerBorderColorInverted:u,footerBorderColor:i,footerBorderColorInverted:u,siderBorderColor:i,siderBorderColorInverted:u,siderColor:r,siderColorInverted:u,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Ue(n,l),siderToggleBarColorHover:Ue(n,s),__invertScrollbar:"true"}}const LI={name:"Layout",common:Ve,peers:{Scrollbar:Lo},self:OI};function kw(e){const{textColor2:t,cardColor:o,modalColor:n,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:n,colorHoverModal:Ue(n,s),colorPopover:r,colorHoverPopover:Ue(r,s),borderColor:i,borderColorModal:Ue(n,i),borderColorPopover:Ue(r,i),borderRadius:a,fontSize:l}}const HI={name:"List",common:Ve,self:kw},NI={name:"List",common:Ne,self:kw},VI={name:"LoadingBar",common:Ne,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function jI(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const _w={name:"LoadingBar",common:Ve,self:jI},WI={name:"Log",common:Ne,peers:{Scrollbar:Zo,Code:a5},self(e){const{textColor2:t,inputColor:o,fontSize:n,primaryColor:r}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:r}}};function UI(e){const{textColor2:t,modalColor:o,borderColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${n}`,loadingColor:i}}const Fw={name:"Log",common:Ve,peers:{Scrollbar:Lo,Code:Gp},self:UI},KI={name:"Mention",common:Ne,peers:{InternalSelectMenu:Is,Input:Sn},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function GI(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const qI={name:"Mention",common:Ve,peers:{InternalSelectMenu:Ua,Input:Xo},self:GI};function ZI(e,t,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function Rw(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:u}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:Me(n,{alpha:.1}),itemColorActiveHover:Me(n,{alpha:.1}),itemColorActiveCollapsed:Me(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:u,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:u,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},ZI("#BBB",n,"#FFF","#AAA"))}const XI={name:"Menu",common:Ve,peers:{Tooltip:zs,Dropdown:Kd},self:Rw},YI={name:"Menu",common:Ne,peers:{Tooltip:Wd,Dropdown:Jp},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,n=Rw(e);return n.itemColorActive=Me(t,{alpha:.15}),n.itemColorActiveHover=Me(t,{alpha:.15}),n.itemColorActiveCollapsed=Me(t,{alpha:.15}),n.itemColorActiveInverted=o,n.itemColorActiveHoverInverted=o,n.itemColorActiveCollapsedInverted=o,n}},QI={titleFontSize:"18px",backSize:"22px"};function $w(e){const{textColor1:t,textColor2:o,textColor3:n,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},QI),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:l,subtitleTextColor:n})}const Pw={name:"PageHeader",common:Ve,self:$w},JI={name:"PageHeader",common:Ne,self:$w},ez={iconSize:"22px"};function Mw(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},ez),{fontSize:t,iconColor:o})}const tz={name:"Popconfirm",common:Ve,peers:{Button:Ho,Popover:si},self:Mw},oz={name:"Popconfirm",common:Ne,peers:{Button:Yo,Popover:Qi},self:Mw};function Aw(e){const{infoColor:t,successColor:o,warningColor:n,errorColor:r,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:n,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:n,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const Bw={name:"Progress",common:Ve,self:Aw},Dw={name:"Progress",common:Ne,self(e){const t=Aw(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},nz={name:"Rate",common:Ne,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};function rz(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const iz={name:"Rate",common:Ve,self:rz},az={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Tw(e){const{textColor2:t,textColor1:o,errorColor:n,successColor:r,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},az),{lineHeight:l,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:n,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const lz={name:"Result",common:Ve,self:Tw},sz={name:"Result",common:Ne,self:Tw},Iw={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},uz={name:"Slider",common:Ne,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:u,opacityDisabled:d}=e;return Object.assign(Object.assign({},Iw),{fontSize:u,markFontSize:u,railColor:o,railColorHover:o,fillColor:r,fillColorHover:r,opacityDisabled:d,handleColor:"#FFF",dotColor:l,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}};function dz(e){const t="rgba(0, 0, 0, .85)",o="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:r,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:u,fontSize:d,opacityDisabled:c}=e;return Object.assign(Object.assign({},Iw),{fontSize:d,markFontSize:d,railColor:n,railColorHover:n,fillColor:r,fillColorHover:r,opacityDisabled:c,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:o,indicatorTextColor:i,indicatorBorderRadius:u,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}const zw={name:"Slider",common:Ve,self:dz};function Ow(e){const{opacityDisabled:t,heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:o,sizeSmall:n,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}}const Lw={name:"Spin",common:Ve,self:Ow},cz={name:"Spin",common:Ne,self:Ow};function Hw(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const Nw={name:"Statistic",common:Ve,self:Hw},fz={name:"Statistic",common:Ne,self:Hw},hz={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Vw(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:n,primaryColor:r,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},hz),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:n,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:n,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:r,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})}const pz={name:"Steps",common:Ve,self:Vw},mz={name:"Steps",common:Ne,self:Vw},jw={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},gz={name:"Switch",common:Ne,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:n,primaryColor:r,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},jw),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${Me(r,{alpha:.3})}`})}};function vz(e){const{primaryColor:t,opacityDisabled:o,borderRadius:n,textColor3:r}=e;return Object.assign(Object.assign({},jw),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:o,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 0 2px ${Me(t,{alpha:.2})}`})}const Ww={name:"Switch",common:Ve,self:vz},bz={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function Uw(e){const{dividerColor:t,cardColor:o,modalColor:n,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:u,fontWeightStrong:d,lineHeight:c,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},bz),{fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,lineHeight:c,borderRadius:u,borderColor:Ue(o,t),borderColorModal:Ue(n,t),borderColorPopover:Ue(r,t),tdColor:o,tdColorModal:n,tdColorPopover:r,tdColorStriped:Ue(o,a),tdColorStripedModal:Ue(n,a),tdColorStripedPopover:Ue(r,a),thColor:Ue(o,i),thColorModal:Ue(n,i),thColorPopover:Ue(r,i),thTextColor:l,tdTextColor:s,thFontWeight:d})}const Kw={name:"Table",common:Ve,self:Uw},xz={name:"Table",common:Ne,self:Uw},yz={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Gw(e){const{textColor2:t,primaryColor:o,textColorDisabled:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:u,baseColor:d,dividerColor:c,fontWeight:h,textColor1:f,borderRadius:p,fontSize:g,fontWeightStrong:v}=e;return Object.assign(Object.assign({},yz),{colorSegment:u,tabFontSizeCard:g,tabTextColorLine:f,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:n,tabTextColorSegment:f,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:f,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:n,tabTextColorCard:f,tabTextColorHoverCard:f,tabTextColorActiveCard:o,tabTextColorDisabledCard:n,barColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:u,tabColorSegment:d,tabBorderColor:c,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:v})}const qw={name:"Tabs",common:Ve,self:Gw},Cz={name:"Tabs",common:Ne,self(e){const t=Gw(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Zw(e){const{textColor1:t,textColor2:o,fontWeightStrong:n,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:o,titleFontWeight:n}}const wz={name:"Thing",common:Ve,self:Zw},Sz={name:"Thing",common:Ne,self:Zw},Xw={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},Ez={name:"Timeline",common:Ne,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:u,fontSize:d}=e;return Object.assign(Object.assign({},Xw),{contentFontSize:d,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}};function kz(e){const{textColor3:t,infoColor:o,errorColor:n,successColor:r,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:u,fontSize:d}=e;return Object.assign(Object.assign({},Xw),{contentFontSize:d,titleFontWeight:u,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}const _z={name:"Timeline",common:Ve,self:kz},Yw={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},Fz={name:"Transfer",common:Ne,peers:{Checkbox:Ga,Scrollbar:Zo,Input:Sn,Empty:Yi,Button:Yo},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:u,textColor1:d,textColorDisabled:c,textColor2:h,textColor3:f,hoverColor:p,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:k,dividerColor:C}=e;return Object.assign(Object.assign({},Yw),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:l,dividerColor:C,borderColor:"#0000",listColor:s,headerColor:u,titleTextColor:d,titleTextColorDisabled:c,extraTextColor:f,extraTextColorDisabled:c,itemTextColor:h,itemTextColorDisabled:c,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:v,closeIconColor:b,closeIconColorHover:x,closeIconColorPressed:k})}};function Rz(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:u,textColor1:d,textColorDisabled:c,textColor2:h,textColor3:f,borderColor:p,hoverColor:g,closeColorHover:v,closeColorPressed:b,closeIconColor:x,closeIconColorHover:k,closeIconColorPressed:C}=e;return Object.assign(Object.assign({},Yw),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:Ue(s,u),titleTextColor:d,titleTextColorDisabled:c,extraTextColor:f,extraTextColorDisabled:c,itemTextColor:h,itemTextColorDisabled:c,itemColorPending:g,titleFontWeight:t,closeColorHover:v,closeColorPressed:b,closeIconColor:x,closeIconColorHover:k,closeIconColorPressed:C})}const $z={name:"Transfer",common:Ve,peers:{Checkbox:Ji,Scrollbar:Lo,Input:Xo,Empty:tr,Button:Ho},self:Rz};function Qw(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:n,pressedColor:r,primaryColor:i,textColor3:a,textColor2:l,textColorDisabled:s,fontSize:u}=e;return{fontSize:u,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:Me(i,{alpha:.1}),arrowColor:a,nodeTextColor:l,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const Jw={name:"Tree",common:Ve,peers:{Checkbox:Ji,Scrollbar:Lo,Empty:tr},self:Qw},e2={name:"Tree",common:Ne,peers:{Checkbox:Ga,Scrollbar:Zo,Empty:Yi},self(e){const{primaryColor:t}=e,o=Qw(e);return o.nodeColorActive=Me(t,{alpha:.15}),o}},Pz={name:"TreeSelect",common:Ne,peers:{Tree:e2,Empty:Yi,InternalSelection:Np}};function Mz(e){const{popoverColor:t,boxShadow2:o,borderRadius:n,heightMedium:r,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:o,menuBorderRadius:n,menuHeight:`calc(${r} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:a,headerPadding:"8px 12px"}}const Az={name:"TreeSelect",common:Ve,peers:{Tree:Jw,Empty:tr,InternalSelection:Nd},self:Mz},Bz={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function t2(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:u,textColor3:d,infoColor:c,warningColor:h,errorColor:f,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},Bz),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:u,pTextColor:o,pTextColor1Depth:u,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:c,headerBarColorError:f,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:o,textColor1Depth:u,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:c,textColorSuccess:p,textColorWarning:h,textColorError:f,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const Dz={name:"Typography",common:Ve,self:t2},Tz={name:"Typography",common:Ne,self:t2};function o2(e){const{iconColor:t,primaryColor:o,errorColor:n,textColor2:r,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:u,lineHeight:d,borderRadius:c,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:c,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:u,itemColorHoverError:Me(n,{alpha:.06}),itemTextColor:r,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${s}`}}const Iz={name:"Upload",common:Ve,peers:{Button:Ho,Progress:Bw},self:o2},zz={name:"Upload",common:Ne,peers:{Button:Yo,Progress:Dw},self(e){const{errorColor:t}=e,o=o2(e);return o.itemColorHoverError=Me(t,{alpha:.09}),o}},Oz={name:"Watermark",common:Ne,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},n2={name:"Watermark",common:Ve,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Lz={name:"Row",common:Ve},Hz={name:"Row",common:Ne};function Nz(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const Vz={name:"FloatButtonGroup",common:Ve,self:Nz},jz={name:"FloatButton",common:Ne,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,baseColor:s,borderRadius:u}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColorPrimary:s,borderRadiusSquare:u}}};function Wz(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,borderRadius:s}=e;return{color:t,colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:s}}const Uz={name:"FloatButton",common:Ve,self:Wz},Kz={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},r2=24,of="__ssr__",Gz={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:r2},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},i2=xe({name:"Grid",inheritAttrs:!1,props:Gz,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:o}=nt(e),n=/^\d+$/,r=M(void 0),i=dk((o==null?void 0:o.value)||Kz),a=gt(()=>!!(e.itemResponsive||!n.test(e.cols.toString())||!n.test(e.xGap.toString())||!n.test(e.yGap.toString()))),l=I(()=>{if(a.value)return e.responsive==="self"?r.value:i.value}),s=gt(()=>{var b;return(b=Number(ia(e.cols.toString(),l.value)))!==null&&b!==void 0?b:r2}),u=gt(()=>ia(e.xGap.toString(),l.value)),d=gt(()=>ia(e.yGap.toString(),l.value)),c=b=>{r.value=b.contentRect.width},h=b=>{Xl(c,b)},f=M(!1),p=I(()=>{if(e.responsive==="self")return h}),g=M(!1),v=M();return ut(()=>{const{value:b}=v;b&&b.hasAttribute(of)&&(b.removeAttribute(of),g.value=!0)}),Je(vw,{layoutShiftDisabledRef:Be(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:Be(e,"itemStyle"),xGapRef:u,overflowRef:f}),{isSsr:!wn,contentEl:v,mergedClsPrefix:t,style:I(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Lt(e.xGap),rowGap:Lt(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:Lt(u.value),rowGap:Lt(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:f}},render(){if(this.layoutShiftDisabled)return m("div",bo({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,o,n,r,i,a,l;this.overflow=!1;const s=vr(cp(this)),u=[],{collapsed:d,collapsedRows:c,responsiveCols:h,responsiveQuery:f}=this;s.forEach(x=>{var k,C,_,R,w;if(((k=x==null?void 0:x.type)===null||k===void 0?void 0:k.__GRID_ITEM__)!==!0)return;if(_4(x)){const B=qo(x);B.props?B.props.privateShow=!1:B.props={privateShow:!1},u.push({child:B,rawChildSpan:0});return}x.dirs=((C=x.dirs)===null||C===void 0?void 0:C.filter(({dir:B})=>B!==bn))||null,((_=x.dirs)===null||_===void 0?void 0:_.length)===0&&(x.dirs=null);const A=qo(x),$=Number((w=ia((R=A.props)===null||R===void 0?void 0:R.span,f))!==null&&w!==void 0?w:cv);$!==0&&u.push({child:A,rawChildSpan:$})});let p=0;const g=(t=u[u.length-1])===null||t===void 0?void 0:t.child;if(g!=null&&g.props){const x=(o=g.props)===null||o===void 0?void 0:o.suffix;x!==void 0&&x!==!1&&(p=Number((r=ia((n=g.props)===null||n===void 0?void 0:n.span,f))!==null&&r!==void 0?r:cv),g.props.privateSpan=p,g.props.privateColStart=h+1-p,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let v=0,b=!1;for(const{child:x,rawChildSpan:k}of u){if(b&&(this.overflow=!0),!b){const C=Number((l=ia((a=x.props)===null||a===void 0?void 0:a.offset,f))!==null&&l!==void 0?l:0),_=Math.min(k+C,h);if(x.props?(x.props.privateSpan=_,x.props.privateOffset=C):x.props={privateSpan:_,privateOffset:C},d){const R=v%h;_+R>h&&(v+=h-R),_+v+p>c*h?b=!0:v+=_}}b&&(x.props?x.props.privateShow!==!0&&(x.props.privateShow=!1):x.props={privateShow:!1})}return m("div",bo({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[of]:this.isSsr||void 0},this.$attrs),u.map(({child:x})=>x))};return this.isResponsive&&this.responsive==="self"?m($n,{onResize:this.handleResize},{default:e}):e()}});function a2(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const qz={name:"IconWrapper",common:Ve,self:a2},Zz={name:"IconWrapper",common:Ne,self:a2};function Xz(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Yz={name:"Image",common:Ve,peers:{Tooltip:zs},self:Xz},Qz={name:"Image",common:Ne,peers:{Tooltip:Wd},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function Jz(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function eO(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function nf(e){return e==null?!0:!Number.isNaN(e)}function fv(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function rf(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const tO=V([D("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),D("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),hv=800,pv=100,oO=Object.assign(Object.assign({},Ie.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),nO=xe({name:"InputNumber",props:oO,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:o,mergedRtlRef:n}=nt(e),r=Ie("InputNumber","-input-number",tO,Ew,e,o),{localeRef:i}=Er("InputNumber"),a=Dn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:u}=a,d=M(null),c=M(null),h=M(null),f=M(e.defaultValue),p=Be(e,"value"),g=to(p,f),v=M(""),b=le=>{const ne=String(le).split(".")[1];return ne?ne.length:0},x=le=>{const ne=[e.min,e.max,e.step,le].map(ce=>ce===void 0?0:b(ce));return Math.max(...ne)},k=gt(()=>{const{placeholder:le}=e;return le!==void 0?le:i.value.placeholder}),C=gt(()=>{const le=rf(e.step);return le!==null?le===0?1:Math.abs(le):1}),_=gt(()=>{const le=rf(e.min);return le!==null?le:null}),R=gt(()=>{const le=rf(e.max);return le!==null?le:null}),w=()=>{const{value:le}=g;if(nf(le)){const{format:ne,precision:ce}=e;ne?v.value=ne(le):le===null||ce===void 0||b(le)>ce?v.value=fv(le,void 0):v.value=fv(le,ce)}else v.value=String(le)};w();const A=le=>{const{value:ne}=g;if(le===ne){w();return}const{"onUpdate:value":ce,onUpdateValue:J,onChange:ie}=e,{nTriggerFormInput:de,nTriggerFormChange:ae}=a;ie&&$e(ie,le),J&&$e(J,le),ce&&$e(ce,le),f.value=le,de(),ae()},$=({offset:le,doUpdateIfValid:ne,fixPrecision:ce,isInputing:J})=>{const{value:ie}=v;if(J&&eO(ie))return!1;const de=(e.parse||Jz)(ie);if(de===null)return ne&&A(null),null;if(nf(de)){const ae=b(de),{precision:q}=e;if(q!==void 0&&q<ae&&!ce)return!1;let ue=Number.parseFloat((de+le).toFixed(q??x(de)));if(nf(ue)){const{value:ve}=R,{value:De}=_;if(ve!==null&&ue>ve){if(!ne||J)return!1;ue=ve}if(De!==null&&ue<De){if(!ne||J)return!1;ue=De}return e.validator&&!e.validator(ue)?!1:(ne&&A(ue),ue)}}return!1},B=gt(()=>$({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),U=gt(()=>{const{value:le}=g;if(e.validator&&le===null)return!1;const{value:ne}=C;return $({offset:-ne,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),N=gt(()=>{const{value:le}=g;if(e.validator&&le===null)return!1;const{value:ne}=C;return $({offset:+ne,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function K(le){const{onFocus:ne}=e,{nTriggerFormFocus:ce}=a;ne&&$e(ne,le),ce()}function H(le){var ne,ce;if(le.target===((ne=d.value)===null||ne===void 0?void 0:ne.wrapperElRef))return;const J=$({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(J!==!1){const ae=(ce=d.value)===null||ce===void 0?void 0:ce.inputElRef;ae&&(ae.value=String(J||"")),g.value===J&&w()}else w();const{onBlur:ie}=e,{nTriggerFormBlur:de}=a;ie&&$e(ie,le),de(),Rt(()=>{w()})}function T(le){const{onClear:ne}=e;ne&&$e(ne,le)}function z(){const{value:le}=N;if(!le){Ce();return}const{value:ne}=g;if(ne===null)e.validator||A(te());else{const{value:ce}=C;$({offset:ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function F(){const{value:le}=U;if(!le){he();return}const{value:ne}=g;if(ne===null)e.validator||A(te());else{const{value:ce}=C;$({offset:-ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const y=K,re=H;function te(){if(e.validator)return null;const{value:le}=_,{value:ne}=R;return le!==null?Math.max(0,le):ne!==null?Math.min(0,ne):0}function j(le){T(le),A(null)}function Z(le){var ne,ce,J;!((ne=h.value)===null||ne===void 0)&&ne.$el.contains(le.target)&&le.preventDefault(),!((ce=c.value)===null||ce===void 0)&&ce.$el.contains(le.target)&&le.preventDefault(),(J=d.value)===null||J===void 0||J.activate()}let se=null,pe=null,Se=null;function he(){Se&&(window.clearTimeout(Se),Se=null),se&&(window.clearInterval(se),se=null)}let fe=null;function Ce(){fe&&(window.clearTimeout(fe),fe=null),pe&&(window.clearInterval(pe),pe=null)}function Y(){he(),Se=window.setTimeout(()=>{se=window.setInterval(()=>{F()},pv)},hv),Ct("mouseup",document,he,{once:!0})}function O(){Ce(),fe=window.setTimeout(()=>{pe=window.setInterval(()=>{z()},pv)},hv),Ct("mouseup",document,Ce,{once:!0})}const ze=()=>{pe||z()},je=()=>{se||F()};function W(le){var ne,ce;if(le.key==="Enter"){if(le.target===((ne=d.value)===null||ne===void 0?void 0:ne.wrapperElRef))return;$({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ce=d.value)===null||ce===void 0||ce.deactivate())}else if(le.key==="ArrowUp"){if(!N.value||e.keyboard.ArrowUp===!1)return;le.preventDefault(),$({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&z()}else if(le.key==="ArrowDown"){if(!U.value||e.keyboard.ArrowDown===!1)return;le.preventDefault(),$({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&F()}}function ee(le){v.value=le,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&$({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}at(g,()=>{w()});const ge={focus:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.focus()},blur:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.blur()},select:()=>{var le;return(le=d.value)===null||le===void 0?void 0:le.select()}},we=Gt("InputNumber",n,o);return Object.assign(Object.assign({},ge),{rtlEnabled:we,inputInstRef:d,minusButtonInstRef:c,addButtonInstRef:h,mergedClsPrefix:o,mergedBordered:t,uncontrolledValue:f,mergedValue:g,mergedPlaceholder:k,displayedValueInvalid:B,mergedSize:l,mergedDisabled:s,displayedValue:v,addable:N,minusable:U,mergedStatus:u,handleFocus:y,handleBlur:re,handleClear:j,handleMouseDown:Z,handleAddClick:ze,handleMinusClick:je,handleAddMousedown:O,handleMinusMousedown:Y,handleKeyDown:W,handleUpdateDisplayedValue:ee,mergedTheme:r,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:I(()=>{const{self:{iconColorDisabled:le}}=r.value,[ne,ce,J,ie]=so(le);return{textColorTextDisabled:`rgb(${ne}, ${ce}, ${J})`,opacityDisabled:`${ie}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,o=()=>m(Q0,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>wo(t["minus-icon"],()=>[m(Ut,{clsPrefix:e},{default:()=>m(AM,null)})])}),n=()=>m(Q0,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>wo(t["add-icon"],()=>[m(Ut,{clsPrefix:e},{default:()=>m(sC,null)})])});return m("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},m(rn,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var r;return this.showButton&&this.buttonPlacement==="both"?[o(),bt(t.prefix,i=>i?m("span",{class:`${e}-input-number-prefix`},i):null)]:(r=t.prefix)===null||r===void 0?void 0:r.call(t)},suffix:()=>{var r;return this.showButton?[bt(t.suffix,i=>i?m("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?o():null,n()]:(r=t.suffix)===null||r===void 0?void 0:r.call(t)}}))}}),l2={extraFontSize:"12px",width:"440px"},rO={name:"Transfer",common:Ne,peers:{Checkbox:Ga,Scrollbar:Zo,Input:Sn,Empty:Yi,Button:Yo},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:u,borderRadius:d,inputColor:c,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,hoverColor:v}=e;return Object.assign(Object.assign({},l2),{itemHeightSmall:u,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:"#0000",listColor:c,headerColor:h,titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:v,titleFontWeight:n,iconColor:o,iconColorDisabled:t})}};function iO(e){const{fontWeight:t,iconColorDisabled:o,iconColor:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:u,borderRadius:d,cardColor:c,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,borderColor:v,hoverColor:b}=e;return Object.assign(Object.assign({},l2),{itemHeightSmall:u,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:v,listColor:c,headerColor:Ue(c,h),titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:v,itemTextColor:g,itemTextColorDisabled:p,itemColorPending:b,titleFontWeight:t,iconColor:n,iconColorDisabled:o})}const aO={name:"Transfer",common:Ve,peers:{Checkbox:Ji,Scrollbar:Lo,Input:Xo,Empty:tr,Button:Ho},self:iO},s2="n-loading-bar",u2="n-loading-bar-api",lO=D("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Ts({enterDuration:"0.3s",leaveDuration:"0.8s"}),D("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[X("starting",` - background: var(--n-color-loading); - `),X("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),X("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var mu=function(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return new(o||(o=Promise))(function(i,a){function l(d){try{u(n.next(d))}catch(c){a(c)}}function s(d){try{u(n.throw(d))}catch(c){a(c)}}function u(d){d.done?i(d.value):r(d.value).then(l,s)}u((n=n.apply(e,t||[])).next())})};function gu(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const sO=xe({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=nt(),{props:t,mergedClsPrefixRef:o}=Oe(s2),n=M(null),r=M(!1),i=M(!1),a=M(!1),l=M(!1);let s=!1;const u=M(!1),d=I(()=>{const{loadingBarStyle:_}=t;return _?_[u.value?"error":"loading"]:""});function c(){return mu(this,void 0,void 0,function*(){r.value=!1,a.value=!1,s=!1,u.value=!1,l.value=!0,yield Rt(),l.value=!1})}function h(){return mu(this,arguments,void 0,function*(_=0,R=80,w="starting"){if(i.value=!0,yield c(),s)return;a.value=!0,yield Rt();const A=n.value;A&&(A.style.maxWidth=`${_}%`,A.style.transition="none",A.offsetWidth,A.className=gu(w,o.value),A.style.transition="",A.style.maxWidth=`${R}%`)})}function f(){return mu(this,void 0,void 0,function*(){if(s||u.value)return;i.value&&(yield Rt()),s=!0;const _=n.value;_&&(_.className=gu("finishing",o.value),_.style.maxWidth="100%",_.offsetWidth,a.value=!1)})}function p(){if(!(s||u.value))if(!a.value)h(100,100,"error").then(()=>{u.value=!0;const _=n.value;_&&(_.className=gu("error",o.value),_.offsetWidth,a.value=!1)});else{u.value=!0;const _=n.value;if(!_)return;_.className=gu("error",o.value),_.style.maxWidth="100%",_.offsetWidth,a.value=!1}}function g(){r.value=!0}function v(){r.value=!1}function b(){return mu(this,void 0,void 0,function*(){yield c()})}const x=Ie("LoadingBar","-loading-bar",lO,_w,t,o),k=I(()=>{const{self:{height:_,colorError:R,colorLoading:w}}=x.value;return{"--n-height":_,"--n-color-loading":w,"--n-color-error":R}}),C=e?vt("loading-bar",void 0,k,t):void 0;return{mergedClsPrefix:o,loadingBarRef:n,started:i,loading:a,entering:r,transitionDisabled:l,start:h,error:p,finish:f,handleEnter:g,handleAfterEnter:v,handleAfterLeave:b,mergedLoadingBarStyle:d,cssVars:e?void 0:k,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return m(ho,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),Po(m("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},m("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[bn,this.loading||!this.loading&&this.entering]])}})}}),uO=Object.assign(Object.assign({},Ie.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),dO=xe({name:"LoadingBarProvider",props:uO,setup(e){const t=Cr(),o=M(null),n={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():Rt(()=>{var a;(a=o.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():Rt(()=>{var a;(a=o.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():Rt(()=>{var a;(a=o.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=nt(e);return Je(u2,n),Je(s2,{props:e,mergedClsPrefixRef:r}),Object.assign(n,{loadingBarRef:o})},render(){var e,t;return m(ft,null,m(bs,{disabled:this.to===!1,to:this.to||"body"},m(sO,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function cO(){const e=Oe(u2,null);return e===null&&yr("use-loading-bar","No outer <n-loading-bar-provider /> founded."),e}const fO=xe({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:Er("Log").localeRef}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-log-loader`},m(_r,{clsPrefix:e,strokeWidth:24,scale:.85}),m("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),d2="n-log",hO=xe({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:o,languageRef:n,mergedHljsRef:r}=Oe(d2),i=M(null),a=I(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(n.value,a.value))}function s(u,d){const{value:c}=r;return c&&u&&c.getLanguage(u)?c.highlight(d,{language:u}).value:d}return ut(()=>{o.value&&l()}),at(Be(e,"line"),()=>{o.value&&l()}),{highlight:o,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return m("pre",{ref:"selfRef"},e?null:t)}}),pO=D("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[V("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),D("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[An(),G("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),D("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),mO=Object.assign(Object.assign({},Ie.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),gO=xe({name:"Log",props:mO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=M(!1),r=I(()=>e.language!==void 0),i=I(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=I(()=>{const{log:x}=e;return x?x.split(` -`):e.lines}),l=M(null),s=Ie("Log","-log",pO,Fw,e,t);function u(x){const k=x.target,C=k.firstElementChild;if(n.value){Rt(()=>{n.value=!1});return}const _=k.offsetHeight,R=k.scrollTop,w=C.offsetHeight,A=R,$=w-R-_;if(A<=e.offsetTop){const{onReachTop:B,onRequireMore:U}=e;U&&U("top"),B&&B()}if($<=e.offsetBottom){const{onReachBottom:B,onRequireMore:U}=e;U&&U("bottom"),B&&B()}}const d=Du(c,300);function c(x){if(n.value){Rt(()=>{n.value=!1});return}if(l.value){const{containerRef:k,contentRef:C}=l.value;if(k&&C){const _=k.offsetHeight,R=k.scrollTop,w=C.offsetHeight,A=R,$=w-R-_,B=x.deltaY;if(A===0&&B<0){const{onRequireMore:U}=e;U&&U("top")}if($<=0&&B>0){const{onRequireMore:U}=e;U&&U("bottom")}}}}function h(x){const{value:k}=l;if(!k)return;const{silent:C,top:_,position:R}=x;C&&(n.value=!0),_!==void 0?k.scrollTo({left:0,top:_}):(R==="bottom"||R==="top")&&k.scrollTo({position:R})}function f(x=!1){xn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",silent:x})}function p(x=!1){xn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",silent:x})}Je(d2,{languageRef:Be(e,"language"),mergedHljsRef:lC(e),trimRef:Be(e,"trim"),highlightRef:r});const g={scrollTo:h},v=I(()=>{const{self:{loaderFontSize:x,loaderTextColor:k,loaderColor:C,loaderBorder:_,loadingColor:R},common:{cubicBezierEaseInOut:w}}=s.value;return{"--n-bezier":w,"--n-loader-font-size":x,"--n-loader-border":_,"--n-loader-color":C,"--n-loader-text-color":k,"--n-loading-color":R}}),b=o?vt("log",void 0,v,e):void 0;return Object.assign(Object.assign({},g),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:f,scrollToBottom:p,handleWheel:d,handleScroll:u,cssVars:o?void 0:v,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[m(or,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>m(OB,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((n,r)=>m(hO,{key:r,line:n}))})}),m(ho,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m(fO,{clsPrefix:e}):null})])}}),c2={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},f2="n-message-api",h2="n-message-provider",vO=V([D("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[Vp({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),D("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[G("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),G("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>X(`${e}-type`,[V("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),V("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[en()])]),G("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[V("&:hover",` - color: var(--n-close-icon-color-hover); - `),V("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),D("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[X("top",` - top: 12px; - left: 0; - right: 0; - `),X("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),X("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),X("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),X("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),X("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),bO={info:()=>m(is,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(zd,null),default:()=>null},xO=xe({name:"Message",props:Object.assign(Object.assign({},c2),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=nt(e),{props:n,mergedClsPrefixRef:r}=Oe(h2),i=Gt("Message",o,r),a=Ie("Message","-message",vO,Sw,n,r),l=I(()=>{const{type:u}=e,{common:{cubicBezierEaseInOut:d},self:{padding:c,margin:h,maxWidth:f,iconMargin:p,closeMargin:g,closeSize:v,iconSize:b,fontSize:x,lineHeight:k,borderRadius:C,iconColorInfo:_,iconColorSuccess:R,iconColorWarning:w,iconColorError:A,iconColorLoading:$,closeIconSize:B,closeBorderRadius:U,[Ee("textColor",u)]:N,[Ee("boxShadow",u)]:K,[Ee("color",u)]:H,[Ee("closeColorHover",u)]:T,[Ee("closeColorPressed",u)]:z,[Ee("closeIconColor",u)]:F,[Ee("closeIconColorPressed",u)]:y,[Ee("closeIconColorHover",u)]:re}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":c,"--n-max-width":f,"--n-font-size":x,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":B,"--n-close-border-radius":U,"--n-close-size":v,"--n-close-margin":g,"--n-text-color":N,"--n-color":H,"--n-box-shadow":K,"--n-icon-color-info":_,"--n-icon-color-success":R,"--n-icon-color-warning":w,"--n-icon-color-error":A,"--n-icon-color-loading":$,"--n-close-color-hover":T,"--n-close-color-pressed":z,"--n-close-icon-color":F,"--n-close-icon-color-pressed":y,"--n-close-icon-color-hover":re,"--n-line-height":k,"--n-border-radius":C}}),s=t?vt("message",I(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:n,handleClose(){var u;(u=e.onClose)===null||u===void 0||u.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:o,content:n,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:u,showIcon:d}=this;l==null||l();let c;return m("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):m("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(c=yO(s,t,r))&&d?m("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},m(Xi,null,{default:()=>c})):null,m("div",{class:`${r}-message__content`},Jt(n)),o?m(li,{clsPrefix:r,class:`${r}-message__close`,onClick:u,absolute:!0}):null))}});function yO(e,t,o){if(typeof e=="function")return e();{const n=t==="loading"?m(_r,{clsPrefix:o,strokeWidth:24,scale:.85}):bO[t]();return n?m(Ut,{clsPrefix:o,key:t},{default:()=>n}):null}}const CO=xe({name:"MessageEnvironment",props:Object.assign(Object.assign({},c2),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=M(!0);ut(()=>{n()});function n(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function r(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&n()}function a(){const{onHide:d}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:c,onAfterHide:h,internalKey:f}=e;d&&d(),c&&c(f),h&&h()}function u(){a()}return{show:o,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:r,deactivate:u}},render(){return m(Ds,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?m(xO,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),wO=Object.assign(Object.assign({},Ie.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),p2=xe({name:"MessageProvider",props:wO,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=M([]),n=M({}),r={create(s,u){return i(s,Object.assign({type:"default"},u))},info(s,u){return i(s,Object.assign(Object.assign({},u),{type:"info"}))},success(s,u){return i(s,Object.assign(Object.assign({},u),{type:"success"}))},warning(s,u){return i(s,Object.assign(Object.assign({},u),{type:"warning"}))},error(s,u){return i(s,Object.assign(Object.assign({},u),{type:"error"}))},loading(s,u){return i(s,Object.assign(Object.assign({},u),{type:"loading"}))},destroyAll:l};Je(h2,{props:e,mergedClsPrefixRef:t}),Je(f2,r);function i(s,u){const d=ii(),c=It(Object.assign(Object.assign({},u),{content:s,key:d,destroy:()=>{var f;(f=n.value[d])===null||f===void 0||f.hide()}})),{max:h}=e;return h&&o.value.length>=h&&o.value.shift(),o.value.push(c),c}function a(s){o.value.splice(o.value.findIndex(u=>u.key===s),1),delete n.value[s]}function l(){Object.values(n.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:o,handleAfterLeave:a},r)},render(){var e,t,o;return m(ft,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?m(bs,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>m(CO,Object.assign({ref:r=>{r&&(this.messageRefs[n.key]=r)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},Ui(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}});function SO(){const e=Oe(f2,null);return e===null&&yr("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const EO=xe({name:"ModalEnvironment",props:Object.assign(Object.assign({},aw),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=M(!0);function o(){const{onInternalAfterLeave:d,internalKey:c,onAfterLeave:h}=e;d&&d(c),h&&h()}function n(){const{onPositiveClick:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function r(){const{onNegativeClick:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(c=>{c!==!1&&s()}):s()}function a(d){const{onMaskClick:c,maskClosable:h}=e;c&&(c(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function u(d){t.value=d}return{show:t,hide:s,handleUpdateShow:u,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:l}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:o,handleEsc:n,show:r}=this;return m(rm,Object.assign({},this.$props,{show:r,onUpdateShow:e,onMaskClick:o,onEsc:n,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),mv="n-modal-provider",m2="n-modal-api",kO="n-modal-reactive-list",_O={to:[String,Object]},FO=xe({name:"ModalProvider",props:_O,setup(){const e=Xu(64),t=Zu(),o=M([]),n={};function r(s={}){const u=ii(),d=It(Object.assign(Object.assign({},s),{key:u,destroy:()=>{var c;(c=n[`n-modal-${u}`])===null||c===void 0||c.hide()}}));return o.value.push(d),d}function i(s){const{value:u}=o;u.splice(u.findIndex(d=>d.key===s),1)}function a(){Object.values(n).forEach(s=>{s==null||s.hide()})}const l={create:r,destroyAll:a};return Je(m2,l),Je(mv,{clickedRef:Xu(64),clickedPositionRef:Zu()}),Je(kO,o),Je(mv,{clickedRef:e,clickedPositionRef:t}),Object.assign(Object.assign({},l),{modalList:o,modalInstRefs:n,handleAfterLeave:i})},render(){var e,t;return m(ft,null,[this.modalList.map(o=>{var n;return m(EO,Ui(o,["destroy"],{to:(n=o.to)!==null&&n!==void 0?n:this.to,ref:r=>{r===null?delete this.modalInstRefs[`n-modal-${o.key}`]:this.modalInstRefs[`n-modal-${o.key}`]=r},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function RO(){const e=Oe(m2,null);return e===null&&yr("use-modal","No outer <n-modal-provider /> founded."),e}const Zd="n-notification-provider",$O=xe({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:o}=Oe(Zd),n=M(null);return kt(()=>{var r,i;o.value>0?(r=n==null?void 0:n.value)===null||r===void 0||r.classList.add("transitioning"):(i=n==null?void 0:n.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:o}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:o,mergedTheme:n,placement:r}=this;return m("div",{ref:"selfRef",class:[`${o}-notification-container`,t&&`${o}-notification-container--scrollable`,`${o}-notification-container--${r}`]},t?m(or,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),PO={info:()=>m(is,null),success:()=>m(Od,null),warning:()=>m(Ld,null),error:()=>m(zd,null),default:()=>null},am={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},MO=ws(am),AO=xe({name:"Notification",props:am,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:o,props:n}=Oe(Zd),{inlineThemeDisabled:r,mergedRtlRef:i}=nt(),a=Gt("Notification",i,t),l=I(()=>{const{type:u}=e,{self:{color:d,textColor:c,closeIconColor:h,closeIconColorHover:f,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:v,actionTextColor:b,borderRadius:x,headerFontWeight:k,boxShadow:C,lineHeight:_,fontSize:R,closeMargin:w,closeSize:A,width:$,padding:B,closeIconSize:U,closeBorderRadius:N,closeColorHover:K,closeColorPressed:H,titleFontSize:T,metaFontSize:z,descriptionFontSize:F,[Ee("iconColor",u)]:y},common:{cubicBezierEaseOut:re,cubicBezierEaseIn:te,cubicBezierEaseInOut:j}}=o.value,{left:Z,right:se,top:pe,bottom:Se}=Ro(B);return{"--n-color":d,"--n-font-size":R,"--n-text-color":c,"--n-description-text-color":v,"--n-action-text-color":b,"--n-title-text-color":g,"--n-title-font-weight":k,"--n-bezier":j,"--n-bezier-ease-out":re,"--n-bezier-ease-in":te,"--n-border-radius":x,"--n-box-shadow":C,"--n-close-border-radius":N,"--n-close-color-hover":K,"--n-close-color-pressed":H,"--n-close-icon-color":h,"--n-close-icon-color-hover":f,"--n-close-icon-color-pressed":p,"--n-line-height":_,"--n-icon-color":y,"--n-close-margin":w,"--n-close-size":A,"--n-close-icon-size":U,"--n-width":$,"--n-padding-left":Z,"--n-padding-right":se,"--n-padding-top":pe,"--n-padding-bottom":Se,"--n-title-font-size":T,"--n-meta-font-size":z,"--n-description-font-size":F}}),s=r?vt("notification",I(()=>e.type[0]),l,n):void 0;return{mergedClsPrefix:t,showAvatar:I(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},m("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?m("div",{class:`${t}-notification__avatar`},this.avatar?Jt(this.avatar):this.type!=="default"?m(Ut,{clsPrefix:t},{default:()=>PO[this.type]()}):null):null,this.closable?m(li,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,m("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?m("div",{class:`${t}-notification-main__header`},Jt(this.title)):null,this.description?m("div",{class:`${t}-notification-main__description`},Jt(this.description)):null,this.content?m("pre",{class:`${t}-notification-main__content`},Jt(this.content)):null,this.meta||this.action?m("div",{class:`${t}-notification-main-footer`},this.meta?m("div",{class:`${t}-notification-main-footer__meta`},Jt(this.meta)):null,this.action?m("div",{class:`${t}-notification-main-footer__action`},Jt(this.action)):null):null)))}}),BO=Object.assign(Object.assign({},am),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),DO=xe({name:"NotificationEnvironment",props:Object.assign(Object.assign({},BO),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Oe(Zd),o=M(!0);let n=null;function r(){o.value=!1,n&&window.clearTimeout(n)}function i(p){t.value++,Rt(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:v}=e;g&&g(),v&&v()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function u(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:v,internalKey:b}=e;p&&p(),g(b),v&&v()}function d(){const{duration:p}=e;p&&(n=window.setTimeout(r,p))}function c(p){p.currentTarget===p.target&&n!==null&&(window.clearTimeout(n),n=null)}function h(p){p.currentTarget===p.target&&d()}function f(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&r()}):r()}return ut(()=>{e.duration&&(n=window.setTimeout(r,e.duration))}),{show:o,hide:r,handleClose:f,handleAfterLeave:u,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:c,handleMouseleave:h}},render(){return m(ho,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?m(AO,Object.assign({},ei(this.$props,MO),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),TO=V([D("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[V(">",[D("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[V(">",[D("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[D("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),X("top, top-right, top-left",` - top: 12px; - `,[V("&.transitioning >",[D("scrollbar",[V(">",[D("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),X("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[V(">",[D("scrollbar",[V(">",[D("scrollbar-container",[D("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),D("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),X("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[D("notification-wrapper",[V("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),V("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),X("top",[D("notification-wrapper",` - transform-origin: top center; - `)]),X("bottom",[D("notification-wrapper",` - transform-origin: bottom center; - `)]),X("top-right, bottom-right",[D("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),X("top-left, bottom-left",[D("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),X("top-right",` - right: 0; - `,[vu("top-right")]),X("top-left",` - left: 0; - `,[vu("top-left")]),X("bottom-right",` - right: 0; - `,[vu("bottom-right")]),X("bottom-left",` - left: 0; - `,[vu("bottom-left")]),X("scrollable",[X("top-right",` - top: 0; - `),X("top-left",` - top: 0; - `),X("bottom-right",` - bottom: 0; - `),X("bottom-left",` - bottom: 0; - `)]),D("notification-wrapper",` - margin-bottom: 12px; - `,[V("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),V("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),V("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),V("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),D("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - max-width: calc(100vw - 16px - 16px); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[G("avatar",[D("icon",` - color: var(--n-icon-color); - `),D("base-icon",` - color: var(--n-icon-color); - `)]),X("show-avatar",[D("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),X("closable",[D("notification-main",[V("> *:first-child",` - padding-right: 20px; - `)]),G("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),G("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[D("icon","transition: color .3s var(--n-bezier);")]),D("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[D("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[G("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),G("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),G("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),G("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),G("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[V("&:first-child","margin: 0;")])])])])]);function vu(e){const o=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return D("notification-wrapper",[V("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${o}, 0); - `),V("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(0, 0); - `)])}const g2="n-notification-api",IO=Object.assign(Object.assign({},Ie.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),zO=xe({name:"NotificationProvider",props:IO,setup(e){const{mergedClsPrefixRef:t}=nt(e),o=M([]),n={},r=new Set;function i(f){const p=ii(),g=()=>{r.add(p),n[p]&&n[p].hide()},v=It(Object.assign(Object.assign({},f),{key:p,destroy:g,hide:g,deactivate:g})),{max:b}=e;if(b&&o.value.length-r.size>=b){let x=!1,k=0;for(const C of o.value){if(!r.has(C.key)){n[C.key]&&(C.destroy(),x=!0);break}k++}x||o.value.splice(k,1)}return o.value.push(v),v}const a=["info","success","warning","error"].map(f=>p=>i(Object.assign(Object.assign({},p),{type:f})));function l(f){r.delete(f),o.value.splice(o.value.findIndex(p=>p.key===f),1)}const s=Ie("Notification","-notification",TO,Cw,e,t),u={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:c,destroyAll:h},d=M(0);Je(g2,u),Je(Zd,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function c(f){return i(f)}function h(){Object.values(o.value).forEach(f=>{f.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:o,notificationRefs:n,handleAfterLeave:l},u)},render(){var e,t,o;const{placement:n}=this;return m(ft,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?m(bs,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m($O,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(r=>m(DO,Object.assign({ref:i=>{const a=r.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Ui(r,["destroy","hide","deactivate"]),{internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover})))})):null)}});function OO(){const e=Oe(g2,null);return e===null&&yr("use-notification","No outer `n-notification-provider` found."),e}const LO=V([D("page-header-header",` - margin-bottom: 20px; - `),D("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[G("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),G("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[V("&:hover","color: var(--n-back-color-hover);"),V("&:active","color: var(--n-back-color-pressed);")]),G("avatar",` - display: flex; - margin-right: 12px - `),G("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),G("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),D("page-header-content",` - font-size: var(--n-font-size); - `,[V("&:not(:first-child)","margin-top: 20px;")]),D("page-header-footer",` - font-size: var(--n-font-size); - `,[V("&:not(:first-child)","margin-top: 20px;")])]),HO=Object.assign(Object.assign({},Ie.props),{title:String,subtitle:String,extra:String,onBack:Function}),NO=xe({name:"PageHeader",props:HO,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o,inlineThemeDisabled:n}=nt(e),r=Ie("PageHeader","-page-header",LO,Pw,e,t),i=Gt("PageHeader",o,t),a=I(()=>{const{self:{titleTextColor:s,subtitleTextColor:u,backColor:d,fontSize:c,titleFontSize:h,backSize:f,titleFontWeight:p,backColorHover:g,backColorPressed:v},common:{cubicBezierEaseInOut:b}}=r.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":c,"--n-back-size":f,"--n-subtitle-text-color":u,"--n-back-color":d,"--n-back-color-hover":g,"--n-back-color-pressed":v,"--n-bezier":b}}),l=n?vt("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:o,subtitle:n,extra:r,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:u,extra:d,default:c,header:h,avatar:f,footer:p,back:g}=l,v=t,b=o||s,x=n||u,k=r||d;return m("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?m("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(v||f||b||x||k)&&m("div",{class:`${i}-page-header`,key:"header"},m("div",{class:`${i}-page-header__main`,key:"back"},v?m("div",{class:`${i}-page-header__back`,onClick:t},g?g():m(Ut,{clsPrefix:i},{default:()=>m(DM,null)})):null,f?m("div",{class:`${i}-page-header__avatar`},f()):null,b?m("div",{class:`${i}-page-header__title`,key:"title"},o||s()):null,x?m("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},n||u()):null),k?m("div",{class:`${i}-page-header__extra`},r||d()):null),c?m("div",{class:`${i}-page-header-content`,key:"content"},c()):null,p?m("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),VO={name:"QrCode",common:Ne,self:e=>({borderRadius:e.borderRadius})};function jO(e){return{borderRadius:e.borderRadius}}const WO={name:"QrCode",common:Ve,self:jO},UO={name:"Skeleton",common:Ne,self(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}};function KO(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}const v2={name:"Skeleton",common:Ve,self:KO},GO=V([D("skeleton",` - height: 1em; - width: 100%; - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),V("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),qO=Object.assign(Object.assign({},Ie.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),ZO=xe({name:"Skeleton",inheritAttrs:!1,props:qO,setup(e){hk();const{mergedClsPrefixRef:t}=nt(e),o=Ie("Skeleton","-skeleton",GO,v2,e,t);return{mergedClsPrefix:t,style:I(()=>{var n,r;const i=o.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:u,borderRadius:d}=l;let c;const{circle:h,sharp:f,round:p,width:g,height:v,size:b,text:x,animated:k}=e;b!==void 0&&(c=l[Ee("height",b)]);const C=h?(n=g??v)!==null&&n!==void 0?n:c:g,_=(r=h?g??v:v)!==null&&r!==void 0?r:c;return{display:x?"inline-block":"",verticalAlign:x?"-0.125em":"",borderRadius:h?"50%":p?"4096px":f?"":d,width:typeof C=="number"?Lt(C):C,height:typeof _=="number"?Lt(_):_,animation:k?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":u}})}},render(){const{repeat:e,style:t,mergedClsPrefix:o,$attrs:n}=this,r=m("div",bo({class:`${o}-skeleton`,style:t},n));return e>1?m(ft,null,kx(e,null).map(i=>[r,` -`])):r}});function gv(e){return window.TouchEvent&&e instanceof window.TouchEvent}function vv(){const e=new Map,t=o=>n=>{e.set(o,n)};return T1(()=>{e.clear()}),[e,t]}const XO=V([D("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[X("reverse",[D("slider-handles",[D("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),D("slider-dots",[D("slider-dot",` - transform: translateX(50%, -50%); - `)]),X("vertical",[D("slider-handles",[D("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),D("slider-marks",[D("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),D("slider-dots",[D("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),X("vertical",` - box-sizing: content-box; - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[D("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[D("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),D("slider-rail",` - height: 100%; - `,[G("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),X("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),D("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[D("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),D("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[D("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),X("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[D("slider-handle",` - cursor: not-allowed; - `)]),X("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),V("&:hover",[D("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[G("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),D("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),X("active",[D("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[G("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),D("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),D("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[D("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),D("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[G("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),D("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[D("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[D("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[V("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),V("&:focus",[D("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[V("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),D("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[X("transition-disabled",[D("slider-dot","transition: none;")]),D("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[X("active","border: var(--n-dot-border-active);")])])]),D("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[An()]),D("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[X("top",` - margin-bottom: 12px; - `),X("right",` - margin-left: 12px; - `),X("bottom",` - margin-top: 12px; - `),X("left",` - margin-right: 12px; - `),An()]),Ki(D("slider",[D("slider-dot","background-color: var(--n-dot-color-modal);")])),Ha(D("slider",[D("slider-dot","background-color: var(--n-dot-color-popover);")]))]),YO=0,QO=Object.assign(Object.assign({},Ie.props),{to:Mo.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),JO=xe({name:"Slider",props:QO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=nt(e),r=Ie("Slider","-slider",XO,zw,e,t),i=M(null),[a,l]=vv(),[s,u]=vv(),d=M(new Set),c=Dn(e),{mergedDisabledRef:h}=c,f=I(()=>{const{step:ae}=e;if(Number(ae)<=0||ae==="mark")return 0;const q=ae.toString();let ue=0;return q.includes(".")&&(ue=q.length-q.indexOf(".")-1),ue}),p=M(e.defaultValue),g=Be(e,"value"),v=to(g,p),b=I(()=>{const{value:ae}=v;return(e.range?ae:[ae]).map(Z)}),x=I(()=>b.value.length>2),k=I(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),C=I(()=>{const{marks:ae}=e;return ae?Object.keys(ae).map(Number.parseFloat):null}),_=M(-1),R=M(-1),w=M(-1),A=M(!1),$=M(!1),B=I(()=>{const{vertical:ae,reverse:q}=e;return ae?q?"top":"bottom":q?"right":"left"}),U=I(()=>{if(x.value)return;const ae=b.value,q=se(e.range?Math.min(...ae):e.min),ue=se(e.range?Math.max(...ae):ae[0]),{value:ve}=B;return e.vertical?{[ve]:`${q}%`,height:`${ue-q}%`}:{[ve]:`${q}%`,width:`${ue-q}%`}}),N=I(()=>{const ae=[],{marks:q}=e;if(q){const ue=b.value.slice();ue.sort((st,Xe)=>st-Xe);const{value:ve}=B,{value:De}=x,{range:Ke}=e,Qe=De?()=>!1:st=>Ke?st>=ue[0]&&st<=ue[ue.length-1]:st<=ue[0];for(const st of Object.keys(q)){const Xe=Number(st);ae.push({active:Qe(Xe),key:Xe,label:q[st],style:{[ve]:`${se(Xe)}%`}})}}return ae});function K(ae,q){const ue=se(ae),{value:ve}=B;return{[ve]:`${ue}%`,zIndex:q===_.value?1:0}}function H(ae){return e.showTooltip||w.value===ae||_.value===ae&&A.value}function T(ae){return A.value?!(_.value===ae&&R.value===ae):!0}function z(ae){var q;~ae&&(_.value=ae,(q=a.get(ae))===null||q===void 0||q.focus())}function F(){s.forEach((ae,q)=>{H(q)&&ae.syncPosition()})}function y(ae){const{"onUpdate:value":q,onUpdateValue:ue}=e,{nTriggerFormInput:ve,nTriggerFormChange:De}=c;ue&&$e(ue,ae),q&&$e(q,ae),p.value=ae,ve(),De()}function re(ae){const{range:q}=e;if(q){if(Array.isArray(ae)){const{value:ue}=b;ae.join()!==ue.join()&&y(ae)}}else Array.isArray(ae)||b.value[0]!==ae&&y(ae)}function te(ae,q){if(e.range){const ue=b.value.slice();ue.splice(q,1,ae),re(ue)}else re(ae)}function j(ae,q,ue){const ve=ue!==void 0;ue||(ue=ae-q>0?1:-1);const De=C.value||[],{step:Ke}=e;if(Ke==="mark"){const Xe=he(ae,De.concat(q),ve?ue:void 0);return Xe?Xe.value:q}if(Ke<=0)return q;const{value:Qe}=f;let st;if(ve){const Xe=Number((q/Ke).toFixed(Qe)),pt=Math.floor(Xe),Ye=Xe>pt?pt:pt-1,Le=Xe<pt?pt:pt+1;st=he(q,[Number((Ye*Ke).toFixed(Qe)),Number((Le*Ke).toFixed(Qe)),...De],ue)}else{const Xe=Se(ae);st=he(ae,[...De,Xe])}return st?Z(st.value):q}function Z(ae){return Math.min(e.max,Math.max(e.min,ae))}function se(ae){const{max:q,min:ue}=e;return(ae-ue)/(q-ue)*100}function pe(ae){const{max:q,min:ue}=e;return ue+(q-ue)*ae}function Se(ae){const{step:q,min:ue}=e;if(Number(q)<=0||q==="mark")return ae;const ve=Math.round((ae-ue)/q)*q+ue;return Number(ve.toFixed(f.value))}function he(ae,q=C.value,ue){if(!(q!=null&&q.length))return null;let ve=null,De=-1;for(;++De<q.length;){const Ke=q[De]-ae,Qe=Math.abs(Ke);(ue===void 0||Ke*ue>0)&&(ve===null||Qe<ve.distance)&&(ve={index:De,distance:Qe,value:q[De]})}return ve}function fe(ae){const q=i.value;if(!q)return;const ue=gv(ae)?ae.touches[0]:ae,ve=q.getBoundingClientRect();let De;return e.vertical?De=(ve.bottom-ue.clientY)/ve.height:De=(ue.clientX-ve.left)/ve.width,e.reverse&&(De=1-De),pe(De)}function Ce(ae){if(h.value||!e.keyboard)return;const{vertical:q,reverse:ue}=e;switch(ae.key){case"ArrowUp":ae.preventDefault(),Y(q&&ue?-1:1);break;case"ArrowRight":ae.preventDefault(),Y(!q&&ue?-1:1);break;case"ArrowDown":ae.preventDefault(),Y(q&&ue?1:-1);break;case"ArrowLeft":ae.preventDefault(),Y(!q&&ue?1:-1);break}}function Y(ae){const q=_.value;if(q===-1)return;const{step:ue}=e,ve=b.value[q],De=Number(ue)<=0||ue==="mark"?ve:ve+ue*ae;te(j(De,ve,ae>0?1:-1),q)}function O(ae){var q,ue;if(h.value||!gv(ae)&&ae.button!==YO)return;const ve=fe(ae);if(ve===void 0)return;const De=b.value.slice(),Ke=e.range?(ue=(q=he(ve,De))===null||q===void 0?void 0:q.index)!==null&&ue!==void 0?ue:-1:0;Ke!==-1&&(ae.preventDefault(),z(Ke),ze(),te(j(ve,b.value[Ke]),Ke))}function ze(){A.value||(A.value=!0,e.onDragstart&&$e(e.onDragstart),Ct("touchend",document,ee),Ct("mouseup",document,ee),Ct("touchmove",document,W),Ct("mousemove",document,W))}function je(){A.value&&(A.value=!1,e.onDragend&&$e(e.onDragend),xt("touchend",document,ee),xt("mouseup",document,ee),xt("touchmove",document,W),xt("mousemove",document,W))}function W(ae){const{value:q}=_;if(!A.value||q===-1){je();return}const ue=fe(ae);ue!==void 0&&te(j(ue,b.value[q]),q)}function ee(){je()}function ge(ae){_.value=ae,h.value||(w.value=ae)}function we(ae){_.value===ae&&(_.value=-1,je()),w.value===ae&&(w.value=-1)}function le(ae){w.value=ae}function ne(ae){w.value===ae&&(w.value=-1)}at(_,(ae,q)=>void Rt(()=>R.value=q)),at(v,()=>{if(e.marks){if($.value)return;$.value=!0,Rt(()=>{$.value=!1})}Rt(F)}),Xt(()=>{je()});const ce=I(()=>{const{self:{markFontSize:ae,railColor:q,railColorHover:ue,fillColor:ve,fillColorHover:De,handleColor:Ke,opacityDisabled:Qe,dotColor:st,dotColorModal:Xe,handleBoxShadow:pt,handleBoxShadowHover:Ye,handleBoxShadowActive:Le,handleBoxShadowFocus:et,dotBorder:Q,dotBoxShadow:me,railHeight:Pe,railWidthVertical:He,handleSize:We,dotHeight:Ge,dotWidth:qe,dotBorderRadius:tt,fontSize:yt,dotBorderActive:Bt,dotColorPopover:_t},common:{cubicBezierEaseInOut:xo}}=r.value;return{"--n-bezier":xo,"--n-dot-border":Q,"--n-dot-border-active":Bt,"--n-dot-border-radius":tt,"--n-dot-box-shadow":me,"--n-dot-color":st,"--n-dot-color-modal":Xe,"--n-dot-color-popover":_t,"--n-dot-height":Ge,"--n-dot-width":qe,"--n-fill-color":ve,"--n-fill-color-hover":De,"--n-font-size":yt,"--n-handle-box-shadow":pt,"--n-handle-box-shadow-active":Le,"--n-handle-box-shadow-focus":et,"--n-handle-box-shadow-hover":Ye,"--n-handle-color":Ke,"--n-handle-size":We,"--n-opacity-disabled":Qe,"--n-rail-color":q,"--n-rail-color-hover":ue,"--n-rail-height":Pe,"--n-rail-width-vertical":He,"--n-mark-font-size":ae}}),J=n?vt("slider",void 0,ce,e):void 0,ie=I(()=>{const{self:{fontSize:ae,indicatorColor:q,indicatorBoxShadow:ue,indicatorTextColor:ve,indicatorBorderRadius:De}}=r.value;return{"--n-font-size":ae,"--n-indicator-border-radius":De,"--n-indicator-box-shadow":ue,"--n-indicator-color":q,"--n-indicator-text-color":ve}}),de=n?vt("slider-indicator",void 0,ie,e):void 0;return{mergedClsPrefix:t,namespace:o,uncontrolledValue:p,mergedValue:v,mergedDisabled:h,mergedPlacement:k,isMounted:Cr(),adjustedTo:Mo(e),dotTransitionDisabled:$,markInfos:N,isShowTooltip:H,shouldKeepTooltipTransition:T,handleRailRef:i,setHandleRefs:l,setFollowerRefs:u,fillStyle:U,getHandleStyle:K,activeIndex:_,arrifiedValues:b,followerEnabledIndexSet:d,handleRailMouseDown:O,handleHandleFocus:ge,handleHandleBlur:we,handleHandleMouseEnter:le,handleHandleMouseLeave:ne,handleRailKeyDown:Ce,indicatorCssVars:n?void 0:ie,indicatorThemeClass:de==null?void 0:de.themeClass,indicatorOnRender:de==null?void 0:de.onRender,cssVars:n?void 0:ce,themeClass:J==null?void 0:J.themeClass,onRender:J==null?void 0:J.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:o,formatTooltip:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-slider`,o,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},m("div",{class:`${t}-slider-rail`},m("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?m("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(r=>m("div",{key:r.key,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:r.active}],style:r.style}))):null,m("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((r,i)=>{const a=this.isShowTooltip(i);return m(ks,null,{default:()=>[m(_s,null,{default:()=>m("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:"slider","aria-valuenow":r,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?"vertical":"horizontal","aria-disabled":this.disabled,style:this.getHandleStyle(r,i),onFocus:()=>{this.handleHandleFocus(i)},onBlur:()=>{this.handleHandleBlur(i)},onMouseenter:()=>{this.handleHandleMouseEnter(i)},onMouseleave:()=>{this.handleHandleMouseLeave(i)}},wo(this.$slots.thumb,()=>[m("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&m(Fs,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Mo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>m(ho,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),m("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof n=="function"?n(r):r)):null}})})]})})),this.marks?m("div",{class:`${t}-slider-marks`},this.markInfos.map(r=>m("div",{key:r.key,class:`${t}-slider-mark`,style:r.style},typeof r.label=="function"?r.label():r.label))):null))}}),eL=V([V("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),D("spin-container",` - position: relative; - `,[D("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Ts()])]),D("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),D("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[X("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),D("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),D("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[X("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),tL={small:20,medium:18,large:16},oL=Object.assign(Object.assign({},Ie.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),nL=xe({name:"Spin",props:oL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=Ie("Spin","-spin",eL,Lw,e,t),r=I(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:u},self:d}=n.value,{opacitySpinning:c,color:h,textColor:f}=d,p=typeof s=="number"?Lt(s):d[Ee("size",s)];return{"--n-bezier":u,"--n-opacity-spinning":c,"--n-size":p,"--n-color":h,"--n-text-color":f}}),i=o?vt("spin",I(()=>{const{size:s}=e;return typeof s=="number"?String(s):s[0]}),r,e):void 0,a=Jl(e,["spinning","show"]),l=M(!1);return kt(s=>{let u;if(a.value){const{delay:d}=e;if(d){u=window.setTimeout(()=>{l.value=!0},d),s(()=>{clearTimeout(u)});return}}l.value=a.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:I(()=>{const{strokeWidth:s}=e;if(s!==void 0)return s;const{size:u}=e;return tL[typeof u=="number"?"medium":u]}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:o,mergedClsPrefix:n,description:r}=this,i=o.icon&&this.rotate,a=(r||o.description)&&m("div",{class:`${n}-spin-description`},r||((e=o.description)===null||e===void 0?void 0:e.call(o))),l=o.icon?m("div",{class:[`${n}-spin-body`,this.themeClass]},m("div",{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:o.default?"":this.cssVars},o.icon()),a):m("div",{class:[`${n}-spin-body`,this.themeClass]},m(_r,{clsPrefix:n,style:o.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),o.default?m("div",{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},m("div",{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},o),m(ho,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),rL={name:"Split",common:Ne};function iL(e){const{primaryColorHover:t,borderColor:o}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:o}}const aL={name:"Split",common:Ve,self:iL},lL=D("statistic",[G("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),D("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[G("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[D("icon",{verticalAlign:"-0.125em"})]),G("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),G("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[D("icon",{verticalAlign:"-0.125em"})])])]),sL=Object.assign(Object.assign({},Ie.props),{tabularNums:Boolean,label:String,value:[String,Number]}),uL=xe({name:"Statistic",props:sL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),r=Ie("Statistic","-statistic",lL,Nw,e,t),i=Gt("Statistic",n,t),a=I(()=>{const{self:{labelFontWeight:s,valueFontSize:u,valueFontWeight:d,valuePrefixTextColor:c,labelTextColor:h,valueSuffixTextColor:f,valueTextColor:p,labelFontSize:g},common:{cubicBezierEaseInOut:v}}=r.value;return{"--n-bezier":v,"--n-label-font-size":g,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":u,"--n-value-prefix-text-color":c,"--n-value-suffix-text-color":f,"--n-value-text-color":p}}),l=o?vt("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:o,label:n,prefix:r,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},bt(n,a=>m("div",{class:`${t}-statistic__label`},this.label||a)),m("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},bt(r,a=>a&&m("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?m("span",{class:`${t}-statistic-value__content`},this.value):bt(o,a=>a&&m("span",{class:`${t}-statistic-value__content`},a)),bt(i,a=>a&&m("span",{class:`${t}-statistic-value__suffix`},a))))}}),dL=D("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[G("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),G("rail-placeholder",` - display: flex; - flex-wrap: none; - `),G("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),D("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[en({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),G("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),G("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),G("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),V("&:focus",[G("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),X("round",[G("rail","border-radius: calc(var(--n-rail-height) / 2);",[G("button","border-radius: calc(var(--n-button-height) / 2);")])]),Ft("disabled",[Ft("icon",[X("rubber-band",[X("pressed",[G("rail",[G("button","max-width: var(--n-button-width-pressed);")])]),G("rail",[V("&:active",[G("button","max-width: var(--n-button-width-pressed);")])]),X("active",[X("pressed",[G("rail",[G("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),G("rail",[V("&:active",[G("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),X("active",[G("rail",[G("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),G("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[G("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[en()]),G("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),X("active",[G("rail","background-color: var(--n-rail-color-active);")]),X("loading",[G("rail",` - cursor: wait; - `)]),X("disabled",[G("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),cL=Object.assign(Object.assign({},Ie.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let fl;const fL=xe({name:"Switch",props:cL,setup(e){fl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?fl=CSS.supports("width","max(1px)"):fl=!1:fl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=nt(e),n=Ie("Switch","-switch",dL,Ww,e,t),r=Dn(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,l=M(e.defaultValue),s=Be(e,"value"),u=to(s,l),d=I(()=>u.value===e.checkedValue),c=M(!1),h=M(!1),f=I(()=>{const{railStyle:A}=e;if(A)return A({focused:h.value,checked:d.value})});function p(A){const{"onUpdate:value":$,onChange:B,onUpdateValue:U}=e,{nTriggerFormInput:N,nTriggerFormChange:K}=r;$&&$e($,A),U&&$e(U,A),B&&$e(B,A),l.value=A,N(),K()}function g(){const{nTriggerFormFocus:A}=r;A()}function v(){const{nTriggerFormBlur:A}=r;A()}function b(){e.loading||a.value||(u.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function x(){h.value=!0,g()}function k(){h.value=!1,v(),c.value=!1}function C(A){e.loading||a.value||A.key===" "&&(u.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),c.value=!1)}function _(A){e.loading||a.value||A.key===" "&&(A.preventDefault(),c.value=!0)}const R=I(()=>{const{value:A}=i,{self:{opacityDisabled:$,railColor:B,railColorActive:U,buttonBoxShadow:N,buttonColor:K,boxShadowFocus:H,loadingColor:T,textColor:z,iconColor:F,[Ee("buttonHeight",A)]:y,[Ee("buttonWidth",A)]:re,[Ee("buttonWidthPressed",A)]:te,[Ee("railHeight",A)]:j,[Ee("railWidth",A)]:Z,[Ee("railBorderRadius",A)]:se,[Ee("buttonBorderRadius",A)]:pe},common:{cubicBezierEaseInOut:Se}}=n.value;let he,fe,Ce;return fl?(he=`calc((${j} - ${y}) / 2)`,fe=`max(${j}, ${y})`,Ce=`max(${Z}, calc(${Z} + ${y} - ${j}))`):(he=Lt((lo(j)-lo(y))/2),fe=Lt(Math.max(lo(j),lo(y))),Ce=lo(j)>lo(y)?Z:Lt(lo(Z)+lo(y)-lo(j))),{"--n-bezier":Se,"--n-button-border-radius":pe,"--n-button-box-shadow":N,"--n-button-color":K,"--n-button-width":re,"--n-button-width-pressed":te,"--n-button-height":y,"--n-height":fe,"--n-offset":he,"--n-opacity-disabled":$,"--n-rail-border-radius":se,"--n-rail-color":B,"--n-rail-color-active":U,"--n-rail-height":j,"--n-rail-width":Z,"--n-width":Ce,"--n-box-shadow-focus":H,"--n-loading-color":T,"--n-text-color":z,"--n-icon-color":F}}),w=o?vt("switch",I(()=>i.value[0]),R,e):void 0;return{handleClick:b,handleBlur:k,handleFocus:x,handleKeyup:C,handleKeydown:_,mergedRailStyle:f,pressed:c,mergedClsPrefix:t,mergedValue:u,checked:d,mergedDisabled:a,cssVars:o?void 0:R,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:o,mergedRailStyle:n,onRender:r,$slots:i}=this;r==null||r();const{checked:a,unchecked:l,icon:s,"checked-icon":u,"unchecked-icon":d}=i,c=!(Mi(s)&&Mi(u)&&Mi(d));return m("div",{role:"switch","aria-checked":o,class:[`${e}-switch`,this.themeClass,c&&`${e}-switch--icon`,o&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},m("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:n},bt(a,h=>bt(l,f=>h||f?m("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),h),m("div",{class:`${e}-switch__rail-placeholder`},m("div",{class:`${e}-switch__button-placeholder`}),f)):null)),m("div",{class:`${e}-switch__button`},bt(s,h=>bt(u,f=>bt(d,p=>m(Xi,null,{default:()=>this.loading?m(_r,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(f||h)?m("div",{class:`${e}-switch__button-icon`,key:f?"checked-icon":"icon"},f||h):!this.checked&&(p||h)?m("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),bt(a,h=>h&&m("div",{key:"checked",class:`${e}-switch__checked`},h)),bt(l,h=>h&&m("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),hL=V([D("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[V("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[V("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),V("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[V("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),X("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[V("tr",[V("&:last-child",[V("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),X("single-line",[V("th",` - border-right: 0px solid var(--n-merged-border-color); - `),V("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),X("single-column",[V("tr",[V("&:not(:last-child)",[V("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),X("striped",[V("tr:nth-of-type(even)",[V("td","background-color: var(--n-td-color-striped)")])]),Ft("bottom-bordered",[V("tr",[V("&:last-child",[V("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),Ki(D("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[V("th",` - background-color: var(--n-th-color-modal); - `),V("td",` - background-color: var(--n-td-color-modal); - `)])),Ha(D("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[V("th",` - background-color: var(--n-th-color-popover); - `),V("td",` - background-color: var(--n-td-color-popover); - `)]))]),pL=Object.assign(Object.assign({},Ie.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),mL=xe({name:"Table",props:pL,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=nt(e),r=Ie("Table","-table",hL,Kw,e,t),i=Gt("Table",n,t),a=I(()=>{const{size:s}=e,{self:{borderColor:u,tdColor:d,tdColorModal:c,tdColorPopover:h,thColor:f,thColorModal:p,thColorPopover:g,thTextColor:v,tdTextColor:b,borderRadius:x,thFontWeight:k,lineHeight:C,borderColorModal:_,borderColorPopover:R,tdColorStriped:w,tdColorStripedModal:A,tdColorStripedPopover:$,[Ee("fontSize",s)]:B,[Ee("tdPadding",s)]:U,[Ee("thPadding",s)]:N},common:{cubicBezierEaseInOut:K}}=r.value;return{"--n-bezier":K,"--n-td-color":d,"--n-td-color-modal":c,"--n-td-color-popover":h,"--n-td-text-color":b,"--n-border-color":u,"--n-border-color-modal":_,"--n-border-color-popover":R,"--n-border-radius":x,"--n-font-size":B,"--n-th-color":f,"--n-th-color-modal":p,"--n-th-color-popover":g,"--n-th-font-weight":k,"--n-th-text-color":v,"--n-line-height":C,"--n-td-padding":U,"--n-th-padding":N,"--n-td-color-striped":w,"--n-td-color-striped-modal":A,"--n-td-color-striped-popover":$}}),l=o?vt("table",I(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),m("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),lm="n-tabs",b2={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},gL=xe({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:b2,setup(e){const t=Oe(lm,null);return t||yr("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return m("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),vL=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Ui(b2,["displayDirective"])),rd=xe({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:vL,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:n,closableRef:r,tabStyleRef:i,addTabStyleRef:a,tabClassRef:l,addTabClassRef:s,tabChangeIdRef:u,onBeforeLeaveRef:d,triggerRef:c,handleAdd:h,activateTab:f,handleClose:p}=Oe(lm);return{trigger:c,mergedClosable:I(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?r.value:g}),style:i,addStyle:a,tabClass:l,addTabClass:s,clsPrefix:t,value:o,type:n,handleClose(g){g.stopPropagation(),!e.disabled&&p(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){h();return}const{name:g}=e,v=++u.id;if(g!==o.value){const{value:b}=d;b?Promise.resolve(b(e.name,o.value)).then(x=>{x&&u.id===v&&f(g)}):f(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:n,label:r,tab:i,value:a,mergedClosable:l,trigger:s,$slots:{default:u}}=this,d=r??i;return m("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?m("div",{class:`${t}-tabs-tab-pad`}):null,m("div",Object.assign({key:o,"data-name":o,"data-disabled":n?!0:void 0},bo({class:[`${t}-tabs-tab`,a===o&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:s==="click"?this.activateTab:void 0,onMouseenter:s==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),m("span",{class:`${t}-tabs-tab__label`},e?m(ft,null,m("div",{class:`${t}-tabs-tab__height-placeholder`}," "),m(Ut,{clsPrefix:t},{default:()=>m(sC,null)})):u?u():typeof d=="object"?d:Jt(d??o)),l&&this.type==="card"?m(li,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),bL=D("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[X("segment-type",[D("tabs-rail",[V("&.transition-disabled",[D("tabs-capsule",` - transition: none; - `)])])]),X("top",[D("tab-pane",` - padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); - `)]),X("left",[D("tab-pane",` - padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); - `)]),X("left, right",` - flex-direction: row; - `,[D("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),D("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),X("right",` - flex-direction: row-reverse; - `,[D("tab-pane",` - padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); - `),D("tabs-bar",` - left: 0; - `)]),X("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[D("tab-pane",` - padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); - `),D("tabs-bar",` - top: 0; - `)]),D("tabs-rail",` - position: relative; - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[D("tabs-capsule",` - border-radius: var(--n-tab-border-radius); - position: absolute; - pointer-events: none; - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - transition: transform 0.3s var(--n-bezier); - `),D("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[D("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[X("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - `),V("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),X("flex",[D("tabs-nav",` - width: 100%; - position: relative; - `,[D("tabs-wrapper",` - width: 100%; - `,[D("tabs-tab",` - margin-right: 0; - `)])])]),D("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[G("prefix, suffix",` - display: flex; - align-items: center; - `),G("prefix","padding-right: 16px;"),G("suffix","padding-left: 16px;")]),X("top, bottom",[D("tabs-nav-scroll-wrapper",[V("&::before",` - top: 0; - bottom: 0; - left: 0; - width: 20px; - `),V("&::after",` - top: 0; - bottom: 0; - right: 0; - width: 20px; - `),X("shadow-start",[V("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),X("shadow-end",[V("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)])])]),X("left, right",[D("tabs-nav-scroll-content",` - flex-direction: column; - `),D("tabs-nav-scroll-wrapper",[V("&::before",` - top: 0; - left: 0; - right: 0; - height: 20px; - `),V("&::after",` - bottom: 0; - left: 0; - right: 0; - height: 20px; - `),X("shadow-start",[V("&::before",` - box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); - `)]),X("shadow-end",[V("&::after",` - box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); - `)])])]),D("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[D("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[V("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),V("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - z-index: 1; - `)]),D("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - min-height: 100%; - width: fit-content; - box-sizing: border-box; - `),D("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),D("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),D("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[X("disabled",{cursor:"not-allowed"}),G("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),G("label",` - display: flex; - align-items: center; - z-index: 1; - `)]),D("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[V("&.transition-disabled",` - transition: none; - `),X("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),D("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),D("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[V("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),V("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),V("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),V("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),V("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),D("tabs-tab-pad",` - box-sizing: border-box; - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),X("line-type, bar-type",[D("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[V("&:hover",{color:"var(--n-tab-text-color-hover)"}),X("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),X("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),D("tabs-nav",[X("line-type",[X("top",[G("prefix, suffix",` - border-bottom: 1px solid var(--n-tab-border-color); - `),D("tabs-nav-scroll-content",` - border-bottom: 1px solid var(--n-tab-border-color); - `),D("tabs-bar",` - bottom: -1px; - `)]),X("left",[G("prefix, suffix",` - border-right: 1px solid var(--n-tab-border-color); - `),D("tabs-nav-scroll-content",` - border-right: 1px solid var(--n-tab-border-color); - `),D("tabs-bar",` - right: -1px; - `)]),X("right",[G("prefix, suffix",` - border-left: 1px solid var(--n-tab-border-color); - `),D("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `),D("tabs-bar",` - left: -1px; - `)]),X("bottom",[G("prefix, suffix",` - border-top: 1px solid var(--n-tab-border-color); - `),D("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - `),D("tabs-bar",` - top: -1px; - `)]),G("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - `),D("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - `),D("tabs-bar",` - border-radius: 0; - `)]),X("card-type",[G("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - `),D("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - `),D("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - `),D("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[X("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - justify-content: center; - `,[G("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),Ft("disabled",[V("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),X("closable","padding-right: 8px;"),X("active",` - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),X("disabled","color: var(--n-tab-text-color-disabled);")])]),X("left, right",` - flex-direction: column; - `,[G("prefix, suffix",` - padding: var(--n-tab-padding-vertical); - `),D("tabs-wrapper",` - flex-direction: column; - `),D("tabs-tab-wrapper",` - flex-direction: column; - `,[D("tabs-tab-pad",` - height: var(--n-tab-gap-vertical); - width: 100%; - `)])]),X("top",[X("card-type",[D("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),G("prefix, suffix",` - border-bottom: 1px solid var(--n-tab-border-color); - `),D("tabs-tab",` - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - `,[X("active",` - border-bottom: 1px solid #0000; - `)]),D("tabs-tab-pad",` - border-bottom: 1px solid var(--n-tab-border-color); - `),D("tabs-pad",` - border-bottom: 1px solid var(--n-tab-border-color); - `)])]),X("left",[X("card-type",[D("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),G("prefix, suffix",` - border-right: 1px solid var(--n-tab-border-color); - `),D("tabs-tab",` - border-top-left-radius: var(--n-tab-border-radius); - border-bottom-left-radius: var(--n-tab-border-radius); - `,[X("active",` - border-right: 1px solid #0000; - `)]),D("tabs-tab-pad",` - border-right: 1px solid var(--n-tab-border-color); - `),D("tabs-pad",` - border-right: 1px solid var(--n-tab-border-color); - `)])]),X("right",[X("card-type",[D("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),G("prefix, suffix",` - border-left: 1px solid var(--n-tab-border-color); - `),D("tabs-tab",` - border-top-right-radius: var(--n-tab-border-radius); - border-bottom-right-radius: var(--n-tab-border-radius); - `,[X("active",` - border-left: 1px solid #0000; - `)]),D("tabs-tab-pad",` - border-left: 1px solid var(--n-tab-border-color); - `),D("tabs-pad",` - border-left: 1px solid var(--n-tab-border-color); - `)])]),X("bottom",[X("card-type",[D("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),G("prefix, suffix",` - border-top: 1px solid var(--n-tab-border-color); - `),D("tabs-tab",` - border-bottom-left-radius: var(--n-tab-border-radius); - border-bottom-right-radius: var(--n-tab-border-radius); - `,[X("active",` - border-top: 1px solid #0000; - `)]),D("tabs-tab-pad",` - border-top: 1px solid var(--n-tab-border-color); - `),D("tabs-pad",` - border-top: 1px solid var(--n-tab-border-color); - `)])])])]),xL=Object.assign(Object.assign({},Ie.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),yL=xe({name:"Tabs",props:xL,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=nt(e),s=Ie("Tabs","-tabs",bL,qw,e,a),u=M(null),d=M(null),c=M(null),h=M(null),f=M(null),p=M(null),g=M(!0),v=M(!0),b=Jl(e,["labelSize","size"]),x=Jl(e,["activeName","value"]),k=M((n=(o=x.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(r=vr(t.default())[0])===null||r===void 0?void 0:r.props)===null||i===void 0?void 0:i.name:null),C=to(x,k),_={id:0},R=I(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});at(C,()=>{_.id=0,U(),N()});function w(){var J;const{value:ie}=C;return ie===null?null:(J=u.value)===null||J===void 0?void 0:J.querySelector(`[data-name="${ie}"]`)}function A(J){if(e.type==="card")return;const{value:ie}=d;if(!ie)return;const de=ie.style.opacity==="0";if(J){const ae=`${a.value}-tabs-bar--disabled`,{barWidth:q,placement:ue}=e;if(J.dataset.disabled==="true"?ie.classList.add(ae):ie.classList.remove(ae),["top","bottom"].includes(ue)){if(B(["top","maxHeight","height"]),typeof q=="number"&&J.offsetWidth>=q){const ve=Math.floor((J.offsetWidth-q)/2)+J.offsetLeft;ie.style.left=`${ve}px`,ie.style.maxWidth=`${q}px`}else ie.style.left=`${J.offsetLeft}px`,ie.style.maxWidth=`${J.offsetWidth}px`;ie.style.width="8192px",de&&(ie.style.transition="none"),ie.offsetWidth,de&&(ie.style.transition="",ie.style.opacity="1")}else{if(B(["left","maxWidth","width"]),typeof q=="number"&&J.offsetHeight>=q){const ve=Math.floor((J.offsetHeight-q)/2)+J.offsetTop;ie.style.top=`${ve}px`,ie.style.maxHeight=`${q}px`}else ie.style.top=`${J.offsetTop}px`,ie.style.maxHeight=`${J.offsetHeight}px`;ie.style.height="8192px",de&&(ie.style.transition="none"),ie.offsetHeight,de&&(ie.style.transition="",ie.style.opacity="1")}}}function $(){if(e.type==="card")return;const{value:J}=d;J&&(J.style.opacity="0")}function B(J){const{value:ie}=d;if(ie)for(const de of J)ie.style[de]=""}function U(){if(e.type==="card")return;const J=w();J?A(J):$()}function N(){var J;const ie=(J=f.value)===null||J===void 0?void 0:J.$el;if(!ie)return;const de=w();if(!de)return;const{scrollLeft:ae,offsetWidth:q}=ie,{offsetLeft:ue,offsetWidth:ve}=de;ae>ue?ie.scrollTo({top:0,left:ue,behavior:"smooth"}):ue+ve>ae+q&&ie.scrollTo({top:0,left:ue+ve-q,behavior:"smooth"})}const K=M(null);let H=0,T=null;function z(J){const ie=K.value;if(ie){H=J.getBoundingClientRect().height;const de=`${H}px`,ae=()=>{ie.style.height=de,ie.style.maxHeight=de};T?(ae(),T(),T=null):T=ae}}function F(J){const ie=K.value;if(ie){const de=J.getBoundingClientRect().height,ae=()=>{document.body.offsetHeight,ie.style.maxHeight=`${de}px`,ie.style.height=`${Math.max(H,de)}px`};T?(T(),T=null,ae()):T=ae}}function y(){const J=K.value;if(J){J.style.maxHeight="",J.style.height="";const{paneWrapperStyle:ie}=e;if(typeof ie=="string")J.style.cssText=ie;else if(ie){const{maxHeight:de,height:ae}=ie;de!==void 0&&(J.style.maxHeight=de),ae!==void 0&&(J.style.height=ae)}}}const re={value:[]},te=M("next");function j(J){const ie=C.value;let de="next";for(const ae of re.value){if(ae===ie)break;if(ae===J){de="prev";break}}te.value=de,Z(J)}function Z(J){const{onActiveNameChange:ie,onUpdateValue:de,"onUpdate:value":ae}=e;ie&&$e(ie,J),de&&$e(de,J),ae&&$e(ae,J),k.value=J}function se(J){const{onClose:ie}=e;ie&&$e(ie,J)}function pe(){const{value:J}=d;if(!J)return;const ie="transition-disabled";J.classList.add(ie),U(),J.classList.remove(ie)}const Se=M(null);function he({transitionDisabled:J}){const ie=u.value;if(!ie)return;J&&ie.classList.add("transition-disabled");const de=w();de&&Se.value&&(Se.value.style.width=`${de.offsetWidth}px`,Se.value.style.height=`${de.offsetHeight}px`,Se.value.style.transform=`translateX(${de.offsetLeft-lo(getComputedStyle(ie).paddingLeft)}px)`,J&&Se.value.offsetWidth),J&&ie.classList.remove("transition-disabled")}at([C],()=>{e.type==="segment"&&Rt(()=>{he({transitionDisabled:!1})})}),ut(()=>{e.type==="segment"&&he({transitionDisabled:!0})});let fe=0;function Ce(J){var ie;if(J.contentRect.width===0&&J.contentRect.height===0||fe===J.contentRect.width)return;fe=J.contentRect.width;const{type:de}=e;if((de==="line"||de==="bar")&&pe(),de!=="segment"){const{placement:ae}=e;ee((ae==="top"||ae==="bottom"?(ie=f.value)===null||ie===void 0?void 0:ie.$el:p.value)||null)}}const Y=Du(Ce,64);at([()=>e.justifyContent,()=>e.size],()=>{Rt(()=>{const{type:J}=e;(J==="line"||J==="bar")&&pe()})});const O=M(!1);function ze(J){var ie;const{target:de,contentRect:{width:ae,height:q}}=J,ue=de.parentElement.parentElement.offsetWidth,ve=de.parentElement.parentElement.offsetHeight,{placement:De}=e;if(!O.value)De==="top"||De==="bottom"?ue<ae&&(O.value=!0):ve<q&&(O.value=!0);else{const{value:Ke}=h;if(!Ke)return;De==="top"||De==="bottom"?ue-ae>Ke.$el.offsetWidth&&(O.value=!1):ve-q>Ke.$el.offsetHeight&&(O.value=!1)}ee(((ie=f.value)===null||ie===void 0?void 0:ie.$el)||null)}const je=Du(ze,64);function W(){const{onAdd:J}=e;J&&J(),Rt(()=>{const ie=w(),{value:de}=f;!ie||!de||de.scrollTo({left:ie.offsetLeft,top:0,behavior:"smooth"})})}function ee(J){if(!J)return;const{placement:ie}=e;if(ie==="top"||ie==="bottom"){const{scrollLeft:de,scrollWidth:ae,offsetWidth:q}=J;g.value=de<=0,v.value=de+q>=ae}else{const{scrollTop:de,scrollHeight:ae,offsetHeight:q}=J;g.value=de<=0,v.value=de+q>=ae}}const ge=Du(J=>{ee(J.target)},64);Je(lm,{triggerRef:Be(e,"trigger"),tabStyleRef:Be(e,"tabStyle"),tabClassRef:Be(e,"tabClass"),addTabStyleRef:Be(e,"addTabStyle"),addTabClassRef:Be(e,"addTabClass"),paneClassRef:Be(e,"paneClass"),paneStyleRef:Be(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:Be(e,"type"),closableRef:Be(e,"closable"),valueRef:C,tabChangeIdRef:_,onBeforeLeaveRef:Be(e,"onBeforeLeave"),activateTab:j,handleClose:se,handleAdd:W}),hp(()=>{U(),N()}),kt(()=>{const{value:J}=c;if(!J)return;const{value:ie}=a,de=`${ie}-tabs-nav-scroll-wrapper--shadow-start`,ae=`${ie}-tabs-nav-scroll-wrapper--shadow-end`;g.value?J.classList.remove(de):J.classList.add(de),v.value?J.classList.remove(ae):J.classList.add(ae)});const we={syncBarPosition:()=>{U()}},le=()=>{he({transitionDisabled:!0})},ne=I(()=>{const{value:J}=b,{type:ie}=e,de={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ie],ae=`${J}${de}`,{self:{barColor:q,closeIconColor:ue,closeIconColorHover:ve,closeIconColorPressed:De,tabColor:Ke,tabBorderColor:Qe,paneTextColor:st,tabFontWeight:Xe,tabBorderRadius:pt,tabFontWeightActive:Ye,colorSegment:Le,fontWeightStrong:et,tabColorSegment:Q,closeSize:me,closeIconSize:Pe,closeColorHover:He,closeColorPressed:We,closeBorderRadius:Ge,[Ee("panePadding",J)]:qe,[Ee("tabPadding",ae)]:tt,[Ee("tabPaddingVertical",ae)]:yt,[Ee("tabGap",ae)]:Bt,[Ee("tabGap",`${ae}Vertical`)]:_t,[Ee("tabTextColor",ie)]:xo,[Ee("tabTextColorActive",ie)]:Ao,[Ee("tabTextColorHover",ie)]:Bo,[Ee("tabTextColorDisabled",ie)]:No,[Ee("tabFontSize",J)]:Vo},common:{cubicBezierEaseInOut:un}}=s.value;return{"--n-bezier":un,"--n-color-segment":Le,"--n-bar-color":q,"--n-tab-font-size":Vo,"--n-tab-text-color":xo,"--n-tab-text-color-active":Ao,"--n-tab-text-color-disabled":No,"--n-tab-text-color-hover":Bo,"--n-pane-text-color":st,"--n-tab-border-color":Qe,"--n-tab-border-radius":pt,"--n-close-size":me,"--n-close-icon-size":Pe,"--n-close-color-hover":He,"--n-close-color-pressed":We,"--n-close-border-radius":Ge,"--n-close-icon-color":ue,"--n-close-icon-color-hover":ve,"--n-close-icon-color-pressed":De,"--n-tab-color":Ke,"--n-tab-font-weight":Xe,"--n-tab-font-weight-active":Ye,"--n-tab-padding":tt,"--n-tab-padding-vertical":yt,"--n-tab-gap":Bt,"--n-tab-gap-vertical":_t,"--n-pane-padding-left":Ro(qe,"left"),"--n-pane-padding-right":Ro(qe,"right"),"--n-pane-padding-top":Ro(qe,"top"),"--n-pane-padding-bottom":Ro(qe,"bottom"),"--n-font-weight-strong":et,"--n-tab-color-segment":Q}}),ce=l?vt("tabs",I(()=>`${b.value[0]}${e.type[0]}`),ne,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,segmentCapsuleElRef:Se,tabsPaneWrapperRef:K,tabsElRef:u,barElRef:d,addTabInstRef:h,xScrollInstRef:f,scrollWrapperElRef:c,addTabFixed:O,tabWrapperStyle:R,handleNavResize:Y,mergedSize:b,handleScroll:ge,handleTabsResize:je,cssVars:l?void 0:ne,themeClass:ce==null?void 0:ce.themeClass,animationDirection:te,renderNameListRef:re,yScrollElRef:p,handleSegmentResize:le,onAnimationBeforeLeave:z,onAnimationEnter:F,onAnimationAfterEnter:y,onRender:ce==null?void 0:ce.onRender},we)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:n,addable:r,mergedSize:i,renderNameListRef:a,onRender:l,paneWrapperClass:s,paneWrapperStyle:u,$slots:{default:d,prefix:c,suffix:h}}=this;l==null||l();const f=d?vr(d()).filter(_=>_.type.__TAB_PANE__===!0):[],p=d?vr(d()).filter(_=>_.type.__TAB__===!0):[],g=!p.length,v=t==="card",b=t==="segment",x=!v&&!b&&this.justifyContent;a.value=[];const k=()=>{const _=m("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},x?null:m("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?f.map((R,w)=>(a.value.push(R.props.name),af(m(rd,Object.assign({},R.props,{internalCreatedByPane:!0,internalLeftPadded:w!==0&&(!x||x==="center"||x==="start"||x==="end")}),R.children?{default:R.children.tab}:void 0)))):p.map((R,w)=>(a.value.push(R.props.name),af(w!==0&&!x?yv(R):R))),!n&&r&&v?xv(r,(g?f.length:p.length)!==0):null,x?null:m("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return m("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},v&&r?m($n,{onResize:this.handleTabsResize},{default:()=>_}):_,v?m("div",{class:`${e}-tabs-pad`}):null,v?null:m("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},C=b?"top":o;return m("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,x&&`${e}-tabs--flex`,`${e}-tabs--${C}`],style:this.cssVars},m("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${C}`,`${e}-tabs-nav`]},bt(c,_=>_&&m("div",{class:`${e}-tabs-nav__prefix`},_)),b?m($n,{onResize:this.handleSegmentResize},{default:()=>m("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},m("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},m("div",{class:`${e}-tabs-wrapper`},m("div",{class:`${e}-tabs-tab`}))),g?f.map((_,R)=>(a.value.push(_.props.name),m(rd,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:R!==0}),_.children?{default:_.children.tab}:void 0))):p.map((_,R)=>(a.value.push(_.props.name),R===0?_:yv(_))))}):m($n,{onResize:this.handleNavResize},{default:()=>m("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(C)?m(o8,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:k}):m("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},k()))}),n&&r&&v?xv(r,!0):null,bt(h,_=>_&&m("div",{class:`${e}-tabs-nav__suffix`},_))),g&&(this.animated&&(C==="top"||C==="bottom")?m("div",{ref:"tabsPaneWrapperRef",style:u,class:[`${e}-tabs-pane-wrapper`,s]},bv(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):bv(f,this.mergedValue,this.renderedNames)))}});function bv(e,t,o,n,r,i,a){const l=[];return e.forEach(s=>{const{name:u,displayDirective:d,"display-directive":c}=s.props,h=p=>d===p||c===p,f=t===u;if(s.key!==void 0&&(s.key=u),f||h("show")||h("show:lazy")&&o.has(u)){o.has(u)||o.add(u);const p=!h("if");l.push(p?Po(s,[[bn,f]]):s)}}),a?m(ip,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>l}):l}function xv(e,t){return m(rd,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function yv(e){const t=qo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function af(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const CL=V([D("watermark-container",` - position: relative; - `,[Ft("selectable",` - user-select: none; - -webkit-user-select: none; - `),X("global-rotate",` - overflow: hidden; - `),X("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),D("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[X("fullscreen",` - position: fixed; - `),X("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function wL(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const SL=Object.assign(Object.assign({},Ie.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),EL=xe({name:"Watermark",props:SL,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=nt(e),n=Ie("Watermark","-watermark",CL,n2,e,o),r=M(""),i=wn?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=M(!1);return hp(()=>l.value=!0),kt(()=>{if(!i)return;l.value;const s=wL(a),{xGap:u,yGap:d,width:c,height:h,yOffset:f,xOffset:p,rotate:g,image:v,content:b,fontColor:x,fontStyle:k,fontVariant:C,fontStretch:_,fontWeight:R,fontFamily:w,fontSize:A,lineHeight:$,debug:B}=e,U=(u+c)*s,N=(d+h)*s,K=p*s,H=f*s;if(i.width=U,i.height=N,a){a.translate(0,0);const T=c*s,z=h*s;if(B&&(a.strokeStyle="grey",a.strokeRect(0,0,T,z)),a.rotate(g*(Math.PI/180)),v){const F=new Image;F.crossOrigin="anonymous",F.referrerPolicy="no-referrer",F.src=v,F.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:y,imageHeight:re}=e;a.drawImage(F,K,H,(e.imageWidth||(re?F.width*re/F.height:F.width))*s,(e.imageHeight||(y?F.height*y/F.width:F.height))*s),r.value=i.toDataURL()}}else if(b){B&&(a.strokeStyle="green",a.strokeRect(0,0,T,z)),a.font=`${k} ${C} ${R} ${_} ${A*s}px/${$*s}px ${w||n.value.self.fontFamily}`,a.fillStyle=x;let F=0;const{textAlign:y}=e;b.split(` -`).map(re=>{const te=a.measureText(re).width;return F=Math.max(F,te),{width:te,line:re}}).forEach(({line:re,width:te},j)=>{const Z=y==="left"?0:y==="center"?(F-te)/2:F-te;a.fillText(re,K+Z,H+$*s*(j+1))}),r.value=i.toDataURL()}else b||(a.clearRect(0,0,i.width,i.height),r.value=i.toDataURL())}else E4("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:u,fullscreen:d,zIndex:c}=e,h=o.value,f=u!==0&&d,p="max(142vh, 142vw)",g=m("div",{class:[`${h}-watermark`,u!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:u?`translateX(-50%) translateY(-50%) rotate(${u}deg)`:void 0,zIndex:f?void 0:c,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:u===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${r.value}), url(${r.value})`:`url(${r.value})`}});return e.fullscreen&&!u?g:m("div",{class:[`${h}-watermark-container`,u!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:f?c:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),g)}}}),kL=xe({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var o;return(o=e.onSetup)===null||o===void 0||o.call(e),()=>{var n;return(n=t.default)===null||n===void 0?void 0:n.call(t)}}}),_L={message:SO,notification:OO,loadingBar:cO,dialog:OT,modal:RO};function FL({providersAndProps:e,configProviderProps:t}){let o=mx(r);const n={app:o};function r(){return m(qp,E(t),{default:()=>e.map(({type:l,Provider:s,props:u})=>m(s,E(u),{default:()=>m(kL,{onSetup:()=>n[l]=_L[l]()})}))})}let i;return wn&&(i=document.createElement("div"),document.body.appendChild(i),o.mount(i)),Object.assign({unmount:()=>{var l;if(o===null||i===null){xn("discrete","unmount call no need because discrete app has been unmounted");return}o.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,o=null}},n)}function po(e,{configProviderProps:t,messageProviderProps:o,dialogProviderProps:n,notificationProviderProps:r,loadingBarProviderProps:i,modalProviderProps:a}={}){const l=[];return e.forEach(u=>{switch(u){case"message":l.push({type:u,Provider:p2,props:o});break;case"notification":l.push({type:u,Provider:zO,props:r});break;case"dialog":l.push({type:u,Provider:zT,props:n});break;case"loadingBar":l.push({type:u,Provider:dO,props:i});break;case"modal":l.push({type:u,Provider:FO,props:a})}}),FL({providersAndProps:l,configProviderProps:t})}const RL="2.40.1";function $L({componentPrefix:e="N",components:t=[]}={}){const o=[];function n(i,a,l){i.component(e+a)||i.component(e+a,l)}function r(i){o.includes(i)||(o.push(i),t.forEach(a=>{const{name:l,alias:s}=a;n(i,l,a),s&&s.forEach(u=>{n(i,u,a)})}))}return{version:RL,componentPrefix:e,install:r}}const x2=()=>({}),PL={name:"Equation",common:Ve,self:x2},ML={name:"Equation",common:Ne,self:x2},AL={name:"FloatButtonGroup",common:Ne,self(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},io={name:"dark",common:Ne,Alert:WA,Anchor:JA,AutoComplete:m9,Avatar:HC,AvatarGroup:E9,BackTop:k9,Badge:R9,Breadcrumb:D9,Button:Yo,ButtonGroup:PI,Calendar:G9,Card:JC,Carousel:_B,Cascader:$B,Checkbox:Ga,Code:a5,Collapse:LB,CollapseTransition:GB,ColorPicker:q9,DataTable:fD,DatePicker:wT,Descriptions:kT,Dialog:J5,Divider:LT,Drawer:jT,Dropdown:Jp,DynamicInput:sI,DynamicTags:pI,Element:gI,Empty:Yi,Ellipsis:x5,Equation:ML,Flex:xI,Form:EI,GradientText:AI,Icon:OD,IconWrapper:Zz,Image:Qz,Input:Sn,InputNumber:TI,LegacyTransfer:rO,Layout:zI,List:NI,LoadingBar:VI,Log:WI,Menu:YI,Mention:KI,Message:$I,Modal:PT,Notification:FI,PageHeader:JI,Pagination:g5,Popconfirm:oz,Popover:Qi,Popselect:c5,Progress:Dw,QrCode:VO,Radio:C5,Rate:nz,Result:sz,Row:Hz,Scrollbar:Zo,Select:p5,Skeleton:UO,Slider:uz,Space:hw,Spin:cz,Statistic:fz,Steps:mz,Switch:gz,Table:xz,Tabs:Cz,Tag:EC,Thing:Sz,TimePicker:Z5,Timeline:Ez,Tooltip:Wd,Transfer:Fz,Tree:e2,TreeSelect:Pz,Typography:Tz,Upload:zz,Watermark:Oz,Split:rL,FloatButton:jz,FloatButtonGroup:AL},Zt={name:"light",common:Ve,Alert:PC,Anchor:QA,AutoComplete:p9,Avatar:jp,AvatarGroup:S9,BackTop:F9,Badge:jC,Breadcrumb:UC,Button:Ho,ButtonGroup:MI,Calendar:K9,Card:Up,Carousel:kB,Cascader:RB,Checkbox:Ji,Code:Gp,Collapse:s5,CollapseTransition:KB,ColorPicker:XC,DataTable:E5,DatePicker:CT,Descriptions:ET,Dialog:om,Divider:sw,Drawer:dw,Dropdown:Kd,DynamicInput:dI,DynamicTags:mI,Element:pw,Empty:tr,Equation:PL,Ellipsis:Qp,Flex:CI,Form:SI,GradientText:DI,Icon:O5,IconWrapper:qz,Image:Yz,Input:Xo,InputNumber:Ew,Layout:LI,LegacyTransfer:aO,List:HI,LoadingBar:_w,Log:Fw,Menu:XI,Mention:qI,Message:Sw,Modal:iw,Notification:Cw,PageHeader:Pw,Pagination:Yp,Popconfirm:tz,Popover:si,Popselect:jd,Progress:Bw,QrCode:WO,Radio:Ud,Rate:iz,Row:Lz,Result:lz,Scrollbar:Lo,Skeleton:v2,Select:Xp,Slider:zw,Space:im,Spin:Lw,Statistic:Nw,Steps:pz,Switch:Ww,Table:Kw,Tabs:qw,Tag:Hp,Thing:wz,TimePicker:q5,Timeline:_z,Tooltip:zs,Transfer:$z,Tree:Jw,TreeSelect:Az,Typography:Dz,Upload:Iz,Watermark:n2,Split:aL,FloatButton:Uz,FloatButtonGroup:Vz},BL=xe({render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},m("g",{fill:"none"},m("path",{d:"M8.5 2a.5.5 0 0 0 0 1h3.793L3 12.293V8.5a.5.5 0 0 0-1 0v4.9a.6.6 0 0 0 .6.6h4.9a.5.5 0 0 0 0-1H3.707L13 3.707V7.5a.5.5 0 0 0 1 0V2.6a.6.6 0 0 0-.6-.6H8.5z",fill:"currentColor"})))}}),DL=xe({render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},m("path",{d:"M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18H4z",fill:"currentColor"}),m("path",{d:"M30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586L30 3.416z",fill:"currentColor"}))}}),TL=m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"1em",height:"1em",color:"currentColor"}},m("path",{d:"M13.5 1C13.7761 1 14 1.22386 14 1.5V2H14.5C14.7761 2 15 2.22386 15 2.5C15 2.77614 14.7761 3 14.5 3H14V3.5C14 3.77614 13.7761 4 13.5 4C13.2239 4 13 3.77614 13 3.5V3H12.5C12.2239 3 12 2.77614 12 2.5C12 2.22386 12.2239 2 12.5 2H13V1.5C13 1.22386 13.2239 1 13.5 1Z",fill:"currentColor"}),m("path",{d:"M3.5 3C3.77615 3 4 3.22386 4 3.5V4H4.5C4.77615 4 5 4.22386 5 4.5C5 4.77614 4.77615 5 4.5 5H4V5.5C4 5.77614 3.77615 6 3.5 6C3.22386 6 3 5.77614 3 5.5V5H2.5C2.22386 5 2 4.77614 2 4.5C2 4.22386 2.22386 4 2.5 4H3V3.5C3 3.22386 3.22386 3 3.5 3Z",fill:"currentColor"}),m("path",{d:"M12.5 12C12.7761 12 13 11.7761 13 11.5C13 11.2239 12.7761 11 12.5 11H12V10.5C12 10.2239 11.7761 10 11.5 10C11.2239 10 11 10.2239 11 10.5V11H10.5C10.2239 11 10 11.2239 10 11.5C10 11.7761 10.2239 12 10.5 12H11V12.5C11 12.7761 11.2239 13 11.5 13C11.7761 13 12 12.7761 12 12.5V12H12.5Z",fill:"currentColor"}),m("path",{d:"M8.72956 4.56346C9.4771 3.81592 10.6891 3.81592 11.4367 4.56347C12.1842 5.31102 12.1842 6.52303 11.4367 7.27058L4.26679 14.4404C3.51924 15.1879 2.30723 15.1879 1.55968 14.4404C0.812134 13.6928 0.812138 12.4808 1.55969 11.7333L8.72956 4.56346ZM8.25002 6.4572L2.26679 12.4404C1.90977 12.7974 1.90977 13.3763 2.26679 13.7333C2.62381 14.0903 3.20266 14.0903 3.55968 13.7333L9.54292 7.75009L8.25002 6.4572ZM10.25 7.04299L10.7295 6.56347C11.0866 6.20645 11.0866 5.6276 10.7296 5.27057C10.3725 4.91355 9.79368 4.91355 9.43666 5.27057L8.95713 5.7501L10.25 7.04299Z",fill:"currentColor"}));function IL(e){return e.includes("pacity")?!1:!!(e.includes("color")||e.includes("Color"))}const zL=xe({name:"ThemeEditor",inheritAttrs:!1,setup(){const e=M(!1),t=M(null),o=Oe(ln,null),n=M(JSON.parse(localStorage["naive-ui-theme-overrides"]||"{}")),r=I(()=>{var k,C,_,R;const w=(o==null?void 0:o.mergedThemeRef.value)||Zt,A=o==null?void 0:o.mergedThemeOverridesRef.value,$=wi({},w.common||Zt.common,A==null?void 0:A.common,n.value.common||{}),B={common:$};for(const U of Object.keys(Zt))U!=="common"&&(B[U]=((C=(k=w[U])===null||k===void 0?void 0:k.self)===null||C===void 0?void 0:C.call(k,$))||((R=(_=Zt[U]).self)===null||R===void 0?void 0:R.call(_,$)),A&&B[U]&&wi(B[U],A[U]));return B}),i=I(()=>{var k;return((k=o==null?void 0:o.mergedThemeRef.value)===null||k===void 0?void 0:k.common)||Zt.common}),a=M(!1),l=M(JSON.parse(localStorage["naive-ui-theme-overrides"]||"{}")),s=M(""),u=M(""),d=M(""),c=M("");function h(){n.value=ya(Pt(l.value))}function f(k,C,_){const{value:R}=l;k in R||(R[k]={});const w=R[k];_?w[C]=_:delete w[C]}function p(){l.value={},n.value={}}function g(){const{value:k}=t;k&&k.click()}function v(){e.value=!e.value}function b(){const{value:k}=t;if(!k)return;const C=k.files,_=C==null?void 0:C[0];_&&_.text().then(R=>{n.value=JSON.parse(R),l.value=JSON.parse(R)}).catch(R=>{alert("Imported File is Invalid"),console.error(R)}).finally(()=>{k.value=""})}function x(){const k=URL.createObjectURL(new Blob([JSON.stringify(n.value,void 0,2)]));ry(k,"naive-ui-theme-overrides.json"),URL.revokeObjectURL(k)}return at(n,k=>{localStorage["naive-ui-theme-overrides"]=JSON.stringify(k)}),{locale:Er("ThemeEditor").localeRef,themeCommonDefault:i,theme:r,showPanel:a,tempOverrides:l,overrides:n,compNamePattern:u,tempCompNamePattern:c,varNamePattern:s,tempVarNamePattern:d,fileInputRef:t,applyTempOverrides:h,setTempOverrides:f,handleClearAllClick:p,handleExportClick:x,handleImportClick:g,handleInputFileChange:b,toggleMaximized:v,isMaximized:e}},render(){return m(qp,{themeOverrides:this.overrides},{default:()=>{var e,t;return[m(Ka,{scrollable:!0,arrowPointToCenter:!0,trigger:"manual",show:this.showPanel,displayDirective:"show",placement:"top-end",style:{width:this.isMaximized?"calc(100vw - 80px)":"288px",height:"calc(100vh - 200px)",padding:0}},{trigger:()=>m(bI,{style:[{position:"fixed",zIndex:10,bottom:"40px",right:`calc(40px + ${oh.value})`,width:"44px",height:"44px",fontSize:"26px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"var(--popover-color)",color:"var(--text-color-2)",transition:"color .3s var(--cubic-bezier-ease-in-out), background-color .3s var(--cubic-bezier-ease-in-out), box-shadow .3s var(--cubic-bezier-ease-in-out)",boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",cursor:"pointer"},this.$attrs.style],onClick:()=>{this.showPanel=!this.showPanel}},{default:()=>TL}),default:()=>m(ft,null,m("input",{type:"file",ref:"fileInputRef",style:{display:"block",width:0,height:0,visibility:"hidden"},onChange:this.handleInputFileChange}),m(Iu,{vertical:!0},{default:()=>[m(Iu,{align:"center",justify:"space-between",style:{marginBottom:"8px",fontSize:"18px",fontWeight:500}},{default:()=>m(ft,null,m("span",null,this.locale.title),m(St,{onClick:this.toggleMaximized,secondary:!0,circle:!0,size:"tiny"},{icon:()=>m(Wt,{component:this.isMaximized?DL:BL})}))}),this.locale.filterCompName,m(rn,{onChange:()=>{this.compNamePattern=this.tempCompNamePattern},onInput:o=>{this.tempCompNamePattern=o},value:this.tempCompNamePattern,placeholder:this.locale.filterCompName}),this.locale.filterVarName,m(rn,{onChange:o=>{this.varNamePattern=o},onInput:o=>{this.tempVarNamePattern=o},value:this.tempVarNamePattern,placeholder:this.locale.filterVarName}),m(St,{size:"small",onClick:()=>{this.compNamePattern="",this.varNamePattern="",this.tempCompNamePattern="",this.tempVarNamePattern=""},block:!0},{default:()=>this.locale.clearSearch}),m(St,{size:"small",onClick:this.handleClearAllClick,block:!0},{default:()=>this.locale.clearAllVars}),m(Iu,{itemStyle:{flex:1}},{default:()=>m(ft,null,m(St,{block:!0,size:"small",onClick:this.handleImportClick},{default:()=>this.locale.import}),m(St,{block:!0,size:"small",onClick:this.handleExportClick},{default:()=>this.locale.export}))})]}),m(VT,null),m(VB,null,{default:()=>{const{theme:o,compNamePattern:n,varNamePattern:r}=this,i=Object.keys(o),a=n.toLowerCase(),l=r.toLowerCase();let s=0;const u=i.filter(d=>d.toLowerCase().includes(a)).map(d=>{const c=d==="common"?this.themeCommonDefault:o[d];if(c===void 0)return null;const h=Object.keys(c).filter(f=>f!=="name"&&f.toLowerCase().includes(l));return h.length?(s+=1,m(UB,{title:d,name:d},{default:()=>m(i2,{xGap:32,yGap:16,responsive:"screen",cols:this.isMaximized?"1 xs:1 s:2 m:3 l:4":1},{default:()=>h.map(f=>m(xw,null,{default:()=>{var p,g,v,b;return m(ft,null,m("div",{key:`${f}Label`,style:{wordBreak:"break-word"}},f),IL(f)?m(yB,{key:f,modes:["rgb","hex"],value:((g=(p=this.tempOverrides)===null||p===void 0?void 0:p[d])===null||g===void 0?void 0:g[f])||c[f],onComplete:this.applyTempOverrides,onUpdateValue:x=>{this.setTempOverrides(d,f,x)}},{action:()=>{var x,k;return m(St,{size:"small",disabled:c[f]===((k=(x=this.tempOverrides)===null||x===void 0?void 0:x[d])===null||k===void 0?void 0:k[f]),onClick:()=>{this.setTempOverrides(d,f,c[f]),this.applyTempOverrides()}},{default:()=>this.locale.restore})}}):m(rn,{key:f,onChange:this.applyTempOverrides,onUpdateValue:x=>{this.setTempOverrides(d,f,x)},value:((b=(v=this.tempOverrides)===null||v===void 0?void 0:v[d])===null||b===void 0?void 0:b[f])||"",placeholder:c[f]}))}}))})})):null});return s?u:m(Lp,null)}}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)]}})}});/*! - * vue-router v4.4.5 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const va=typeof document<"u";function y2(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function OL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&y2(e.default)}const Ot=Object.assign;function lf(e,t){const o={};for(const n in t){const r=t[n];o[n]=Bn(r)?r.map(e):e(r)}return o}const Ol=()=>{},Bn=Array.isArray,C2=/#/g,LL=/&/g,HL=/\//g,NL=/=/g,VL=/\?/g,w2=/\+/g,jL=/%5B/g,WL=/%5D/g,S2=/%5E/g,UL=/%60/g,E2=/%7B/g,KL=/%7C/g,k2=/%7D/g,GL=/%20/g;function sm(e){return encodeURI(""+e).replace(KL,"|").replace(jL,"[").replace(WL,"]")}function qL(e){return sm(e).replace(E2,"{").replace(k2,"}").replace(S2,"^")}function bh(e){return sm(e).replace(w2,"%2B").replace(GL,"+").replace(C2,"%23").replace(LL,"%26").replace(UL,"`").replace(E2,"{").replace(k2,"}").replace(S2,"^")}function ZL(e){return bh(e).replace(NL,"%3D")}function XL(e){return sm(e).replace(C2,"%23").replace(VL,"%3F")}function YL(e){return e==null?"":XL(e).replace(HL,"%2F")}function ls(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const QL=/\/$/,JL=e=>e.replace(QL,"");function sf(e,t,o="/"){let n,r={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return l<s&&l>=0&&(s=-1),s>-1&&(n=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),r=e(i)),l>-1&&(n=n||t.slice(0,l),a=t.slice(l,t.length)),n=nH(n??t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:ls(a)}}function eH(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function Cv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function tH(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&Ta(t.matched[n],o.matched[r])&&_2(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Ta(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _2(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!oH(e[o],t[o]))return!1;return!0}function oH(e,t){return Bn(e)?wv(e,t):Bn(t)?wv(t,e):e===t}function wv(e,t){return Bn(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function nH(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=o.length-1,a,l;for(a=0;a<n.length;a++)if(l=n[a],l!==".")if(l==="..")i>1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(a).join("/")}const Dr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ss;(function(e){e.pop="pop",e.push="push"})(ss||(ss={}));var Ll;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ll||(Ll={}));function rH(e){if(!e)if(va){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),JL(e)}const iH=/^[^#]+#/;function aH(e,t){return e.replace(iH,"#")+t}function lH(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}const Xd=()=>({left:window.scrollX,top:window.scrollY});function sH(e){let t;if("el"in e){const o=e.el,n=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=lH(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Sv(e,t){return(history.state?history.state.position-t:-1)+e}const xh=new Map;function uH(e,t){xh.set(e,t)}function dH(e){const t=xh.get(e);return xh.delete(e),t}let cH=()=>location.protocol+"//"+location.host;function F2(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,s=r.slice(l);return s[0]!=="/"&&(s="/"+s),Cv(s,"")}return Cv(o,e)+n+r}function fH(e,t,o,n){let r=[],i=[],a=null;const l=({state:h})=>{const f=F2(e,location),p=o.value,g=t.value;let v=0;if(h){if(o.value=f,t.value=h,a&&a===p){a=null;return}v=g?h.position-g.position:0}else n(f);r.forEach(b=>{b(o.value,p,{delta:v,type:ss.pop,direction:v?v>0?Ll.forward:Ll.back:Ll.unknown})})};function s(){a=o.value}function u(h){r.push(h);const f=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return i.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Ot({},h.state,{scroll:Xd()}),"")}function c(){for(const h of i)h();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:s,listen:u,destroy:c}}function Ev(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?Xd():null}}function hH(e){const{history:t,location:o}=window,n={value:F2(e,o)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,u,d){const c=e.indexOf("#"),h=c>-1?(o.host&&document.querySelector("base")?e:e.slice(c))+s:cH()+e+s;try{t[d?"replaceState":"pushState"](u,"",h),r.value=u}catch(f){console.error(f),o[d?"replace":"assign"](h)}}function a(s,u){const d=Ot({},t.state,Ev(r.value.back,s,r.value.forward,!0),u,{position:r.value.position});i(s,d,!0),n.value=s}function l(s,u){const d=Ot({},r.value,t.state,{forward:s,scroll:Xd()});i(d.current,d,!0);const c=Ot({},Ev(n.value,s,null),{position:d.position+1},u);i(s,c,!1),n.value=s}return{location:n,state:r,push:l,replace:a}}function pH(e){e=rH(e);const t=hH(e),o=fH(e,t.state,t.location,t.replace);function n(i,a=!0){a||o.pauseListeners(),history.go(i)}const r=Ot({location:"",base:e,go:n,createHref:aH.bind(null,e)},t,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function mH(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),pH(e)}function gH(e){return typeof e=="string"||e&&typeof e=="object"}function R2(e){return typeof e=="string"||typeof e=="symbol"}const $2=Symbol("");var kv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(kv||(kv={}));function Ia(e,t){return Ot(new Error,{type:e,[$2]:!0},t)}function sr(e,t){return e instanceof Error&&$2 in e&&(t==null||!!(e.type&t))}const _v="[^/]+?",vH={sensitive:!1,strict:!1,start:!0,end:!0},bH=/[.+*?^${}()[\]/\\]/g;function xH(e,t){const o=Ot({},vH,t),n=[];let r=o.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[90];o.strict&&!u.length&&(r+="/");for(let c=0;c<u.length;c++){const h=u[c];let f=40+(o.sensitive?.25:0);if(h.type===0)c||(r+="/"),r+=h.value.replace(bH,"\\$&"),f+=40;else if(h.type===1){const{value:p,repeatable:g,optional:v,regexp:b}=h;i.push({name:p,repeatable:g,optional:v});const x=b||_v;if(x!==_v){f+=10;try{new RegExp(`(${x})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${p}" (${x}): `+C.message)}}let k=g?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;c||(k=v&&u.length<2?`(?:/${k})`:"/"+k),v&&(k+="?"),r+=k,f+=20,v&&(f+=-8),g&&(f+=-20),x===".*"&&(f+=-50)}d.push(f)}n.push(d)}if(o.strict&&o.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}o.strict||(r+="/?"),o.end?r+="$":o.strict&&(r+="(?:/|$)");const a=new RegExp(r,o.sensitive?"":"i");function l(u){const d=u.match(a),c={};if(!d)return null;for(let h=1;h<d.length;h++){const f=d[h]||"",p=i[h-1];c[p.name]=f&&p.repeatable?f.split("/"):f}return c}function s(u){let d="",c=!1;for(const h of e){(!c||!d.endsWith("/"))&&(d+="/"),c=!1;for(const f of h)if(f.type===0)d+=f.value;else if(f.type===1){const{value:p,repeatable:g,optional:v}=f,b=p in u?u[p]:"";if(Bn(b)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const x=Bn(b)?b.join("/"):b;if(!x)if(v)h.length<2&&(d.endsWith("/")?d=d.slice(0,-1):c=!0);else throw new Error(`Missing required param "${p}"`);d+=x}}return d||"/"}return{re:a,score:n,keys:i,parse:l,stringify:s}}function yH(e,t){let o=0;for(;o<e.length&&o<t.length;){const n=t[o]-e[o];if(n)return n;o++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function P2(e,t){let o=0;const n=e.score,r=t.score;for(;o<n.length&&o<r.length;){const i=yH(n[o],r[o]);if(i)return i;o++}if(Math.abs(r.length-n.length)===1){if(Fv(n))return 1;if(Fv(r))return-1}return r.length-n.length}function Fv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const CH={type:0,value:""},wH=/[a-zA-Z0-9_]/;function SH(e){if(!e)return[[]];if(e==="/")return[[CH]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${o})/"${u}": ${f}`)}let o=0,n=o;const r=[];let i;function a(){i&&r.push(i),i=[]}let l=0,s,u="",d="";function c(){u&&(o===0?i.push({type:0,value:u}):o===1||o===2||o===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}for(;l<e.length;){if(s=e[l++],s==="\\"&&o!==2){n=o,o=4;continue}switch(o){case 0:s==="/"?(u&&c(),a()):s===":"?(c(),o=1):h();break;case 4:h(),o=n;break;case 1:s==="("?o=2:wH.test(s)?h():(c(),o=0,s!=="*"&&s!=="?"&&s!=="+"&&l--);break;case 2:s===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+s:o=3:d+=s;break;case 3:c(),o=0,s!=="*"&&s!=="?"&&s!=="+"&&l--,d="";break;default:t("Unknown state");break}}return o===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),a(),r}function EH(e,t,o){const n=xH(SH(e.path),o),r=Ot(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function kH(e,t){const o=[],n=new Map;t=Mv({strict:!1,end:!0,sensitive:!1},t);function r(c){return n.get(c)}function i(c,h,f){const p=!f,g=$v(c);g.aliasOf=f&&f.record;const v=Mv(t,c),b=[g];if("alias"in c){const C=typeof c.alias=="string"?[c.alias]:c.alias;for(const _ of C)b.push($v(Ot({},g,{components:f?f.record.components:g.components,path:_,aliasOf:f?f.record:g})))}let x,k;for(const C of b){const{path:_}=C;if(h&&_[0]!=="/"){const R=h.record.path,w=R[R.length-1]==="/"?"":"/";C.path=h.record.path+(_&&w+_)}if(x=EH(C,h,v),f?f.alias.push(x):(k=k||x,k!==x&&k.alias.push(x),p&&c.name&&!Pv(x)&&a(c.name)),M2(x)&&s(x),g.children){const R=g.children;for(let w=0;w<R.length;w++)i(R[w],x,f&&f.children[w])}f=f||x}return k?()=>{a(k)}:Ol}function a(c){if(R2(c)){const h=n.get(c);h&&(n.delete(c),o.splice(o.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=o.indexOf(c);h>-1&&(o.splice(h,1),c.record.name&&n.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function l(){return o}function s(c){const h=RH(c,o);o.splice(h,0,c),c.record.name&&!Pv(c)&&n.set(c.record.name,c)}function u(c,h){let f,p={},g,v;if("name"in c&&c.name){if(f=n.get(c.name),!f)throw Ia(1,{location:c});v=f.record.name,p=Ot(Rv(h.params,f.keys.filter(k=>!k.optional).concat(f.parent?f.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),c.params&&Rv(c.params,f.keys.map(k=>k.name))),g=f.stringify(p)}else if(c.path!=null)g=c.path,f=o.find(k=>k.re.test(g)),f&&(p=f.parse(g),v=f.record.name);else{if(f=h.name?n.get(h.name):o.find(k=>k.re.test(h.path)),!f)throw Ia(1,{location:c,currentLocation:h});v=f.record.name,p=Ot({},h.params,c.params),g=f.stringify(p)}const b=[];let x=f;for(;x;)b.unshift(x.record),x=x.parent;return{name:v,path:g,params:p,matched:b,meta:FH(b)}}e.forEach(c=>i(c));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:d,getRoutes:l,getRecordMatcher:r}}function Rv(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function $v(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_H(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _H(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]=typeof o=="object"?o[n]:o;return t}function Pv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function FH(e){return e.reduce((t,o)=>Ot(t,o.meta),{})}function Mv(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function RH(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;P2(e,t[i])<0?n=i:o=i+1}const r=$H(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function $H(e){let t=e;for(;t=t.parent;)if(M2(t)&&P2(e,t)===0)return t}function M2({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function PH(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(w2," "),a=i.indexOf("="),l=ls(a<0?i:i.slice(0,a)),s=a<0?null:ls(i.slice(a+1));if(l in t){let u=t[l];Bn(u)||(u=t[l]=[u]),u.push(s)}else t[l]=s}return t}function Av(e){let t="";for(let o in e){const n=e[o];if(o=ZL(o),n==null){n!==void 0&&(t+=(t.length?"&":"")+o);continue}(Bn(n)?n.map(i=>i&&bh(i)):[n&&bh(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function MH(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=Bn(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const AH=Symbol(""),Bv=Symbol(""),Yd=Symbol(""),um=Symbol(""),yh=Symbol("");function hl(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function Hr(e,t,o,n,r,i=a=>a()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((l,s)=>{const u=h=>{h===!1?s(Ia(4,{from:o,to:t})):h instanceof Error?s(h):gH(h)?s(Ia(2,{from:t,to:h})):(a&&n.enterCallbacks[r]===a&&typeof h=="function"&&a.push(h),l())},d=i(()=>e.call(n&&n.instances[r],t,o,u));let c=Promise.resolve(d);e.length<3&&(c=c.then(u)),c.catch(h=>s(h))})}function uf(e,t,o,n,r=i=>i()){const i=[];for(const a of e)for(const l in a.components){let s=a.components[l];if(!(t!=="beforeRouteEnter"&&!a.instances[l]))if(y2(s)){const d=(s.__vccOpts||s)[t];d&&i.push(Hr(d,o,n,a,l,r))}else{let u=s();i.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${l}" at "${a.path}"`);const c=OL(d)?d.default:d;a.mods[l]=d,a.components[l]=c;const f=(c.__vccOpts||c)[t];return f&&Hr(f,o,n,a,l,r)()}))}}return i}function Dv(e){const t=Oe(Yd),o=Oe(um),n=I(()=>{const s=E(e.to);return t.resolve(s)}),r=I(()=>{const{matched:s}=n.value,{length:u}=s,d=s[u-1],c=o.matched;if(!d||!c.length)return-1;const h=c.findIndex(Ta.bind(null,d));if(h>-1)return h;const f=Tv(s[u-2]);return u>1&&Tv(d)===f&&c[c.length-1].path!==f?c.findIndex(Ta.bind(null,s[u-2])):h}),i=I(()=>r.value>-1&&TH(o.params,n.value.params)),a=I(()=>r.value>-1&&r.value===o.matched.length-1&&_2(o.params,n.value.params));function l(s={}){return DH(s)?t[E(e.replace)?"replace":"push"](E(e.to)).catch(Ol):Promise.resolve()}return{route:n,href:I(()=>n.value.href),isActive:i,isExactActive:a,navigate:l}}const BH=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Dv,setup(e,{slots:t}){const o=It(Dv(e)),{options:n}=Oe(Yd),r=I(()=>({[Iv(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Iv(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:m("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}}),Cl=BH;function DH(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TH(e,t){for(const o in t){const n=t[o],r=e[o];if(typeof n=="string"){if(n!==r)return!1}else if(!Bn(r)||r.length!==n.length||n.some((i,a)=>i!==r[a]))return!1}return!0}function Tv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Iv=(e,t,o)=>e??t??o,IH=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=Oe(yh),r=I(()=>e.route||n.value),i=Oe(Bv,0),a=I(()=>{let u=E(i);const{matched:d}=r.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),l=I(()=>r.value.matched[a.value]);Je(Bv,I(()=>a.value+1)),Je(AH,l),Je(yh,r);const s=M();return at(()=>[s.value,l.value,e.name],([u,d,c],[h,f,p])=>{d&&(d.instances[c]=u,f&&f!==d&&u&&u===h&&(d.leaveGuards.size||(d.leaveGuards=f.leaveGuards),d.updateGuards.size||(d.updateGuards=f.updateGuards))),u&&d&&(!f||!Ta(d,f)||!h)&&(d.enterCallbacks[c]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=r.value,d=e.name,c=l.value,h=c&&c.components[d];if(!h)return zv(o.default,{Component:h,route:u});const f=c.props[d],p=f?f===!0?u.params:typeof f=="function"?f(u):f:null,v=m(h,Ot({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(c.instances[d]=null)},ref:s}));return zv(o.default,{Component:v,route:u})||v}}});function zv(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const A2=IH;function zH(e){const t=kH(e.routes,e),o=e.parseQuery||PH,n=e.stringifyQuery||Av,r=e.history,i=hl(),a=hl(),l=hl(),s=xd(Dr);let u=Dr;va&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=lf.bind(null,fe=>""+fe),c=lf.bind(null,YL),h=lf.bind(null,ls);function f(fe,Ce){let Y,O;return R2(fe)?(Y=t.getRecordMatcher(fe),O=Ce):O=fe,t.addRoute(O,Y)}function p(fe){const Ce=t.getRecordMatcher(fe);Ce&&t.removeRoute(Ce)}function g(){return t.getRoutes().map(fe=>fe.record)}function v(fe){return!!t.getRecordMatcher(fe)}function b(fe,Ce){if(Ce=Ot({},Ce||s.value),typeof fe=="string"){const ee=sf(o,fe,Ce.path),ge=t.resolve({path:ee.path},Ce),we=r.createHref(ee.fullPath);return Ot(ee,ge,{params:h(ge.params),hash:ls(ee.hash),redirectedFrom:void 0,href:we})}let Y;if(fe.path!=null)Y=Ot({},fe,{path:sf(o,fe.path,Ce.path).path});else{const ee=Ot({},fe.params);for(const ge in ee)ee[ge]==null&&delete ee[ge];Y=Ot({},fe,{params:c(ee)}),Ce.params=c(Ce.params)}const O=t.resolve(Y,Ce),ze=fe.hash||"";O.params=d(h(O.params));const je=eH(n,Ot({},fe,{hash:qL(ze),path:O.path})),W=r.createHref(je);return Ot({fullPath:je,hash:ze,query:n===Av?MH(fe.query):fe.query||{}},O,{redirectedFrom:void 0,href:W})}function x(fe){return typeof fe=="string"?sf(o,fe,s.value.path):Ot({},fe)}function k(fe,Ce){if(u!==fe)return Ia(8,{from:Ce,to:fe})}function C(fe){return w(fe)}function _(fe){return C(Ot(x(fe),{replace:!0}))}function R(fe){const Ce=fe.matched[fe.matched.length-1];if(Ce&&Ce.redirect){const{redirect:Y}=Ce;let O=typeof Y=="function"?Y(fe):Y;return typeof O=="string"&&(O=O.includes("?")||O.includes("#")?O=x(O):{path:O},O.params={}),Ot({query:fe.query,hash:fe.hash,params:O.path!=null?{}:fe.params},O)}}function w(fe,Ce){const Y=u=b(fe),O=s.value,ze=fe.state,je=fe.force,W=fe.replace===!0,ee=R(Y);if(ee)return w(Ot(x(ee),{state:typeof ee=="object"?Ot({},ze,ee.state):ze,force:je,replace:W}),Ce||Y);const ge=Y;ge.redirectedFrom=Ce;let we;return!je&&tH(n,O,Y)&&(we=Ia(16,{to:ge,from:O}),j(O,O,!0,!1)),(we?Promise.resolve(we):B(ge,O)).catch(le=>sr(le)?sr(le,2)?le:te(le):y(le,ge,O)).then(le=>{if(le){if(sr(le,2))return w(Ot({replace:W},x(le.to),{state:typeof le.to=="object"?Ot({},ze,le.to.state):ze,force:je}),Ce||ge)}else le=N(ge,O,!0,W,ze);return U(ge,O,le),le})}function A(fe,Ce){const Y=k(fe,Ce);return Y?Promise.reject(Y):Promise.resolve()}function $(fe){const Ce=pe.values().next().value;return Ce&&typeof Ce.runWithContext=="function"?Ce.runWithContext(fe):fe()}function B(fe,Ce){let Y;const[O,ze,je]=OH(fe,Ce);Y=uf(O.reverse(),"beforeRouteLeave",fe,Ce);for(const ee of O)ee.leaveGuards.forEach(ge=>{Y.push(Hr(ge,fe,Ce))});const W=A.bind(null,fe,Ce);return Y.push(W),he(Y).then(()=>{Y=[];for(const ee of i.list())Y.push(Hr(ee,fe,Ce));return Y.push(W),he(Y)}).then(()=>{Y=uf(ze,"beforeRouteUpdate",fe,Ce);for(const ee of ze)ee.updateGuards.forEach(ge=>{Y.push(Hr(ge,fe,Ce))});return Y.push(W),he(Y)}).then(()=>{Y=[];for(const ee of je)if(ee.beforeEnter)if(Bn(ee.beforeEnter))for(const ge of ee.beforeEnter)Y.push(Hr(ge,fe,Ce));else Y.push(Hr(ee.beforeEnter,fe,Ce));return Y.push(W),he(Y)}).then(()=>(fe.matched.forEach(ee=>ee.enterCallbacks={}),Y=uf(je,"beforeRouteEnter",fe,Ce,$),Y.push(W),he(Y))).then(()=>{Y=[];for(const ee of a.list())Y.push(Hr(ee,fe,Ce));return Y.push(W),he(Y)}).catch(ee=>sr(ee,8)?ee:Promise.reject(ee))}function U(fe,Ce,Y){l.list().forEach(O=>$(()=>O(fe,Ce,Y)))}function N(fe,Ce,Y,O,ze){const je=k(fe,Ce);if(je)return je;const W=Ce===Dr,ee=va?history.state:{};Y&&(O||W?r.replace(fe.fullPath,Ot({scroll:W&&ee&&ee.scroll},ze)):r.push(fe.fullPath,ze)),s.value=fe,j(fe,Ce,Y,W),te()}let K;function H(){K||(K=r.listen((fe,Ce,Y)=>{if(!Se.listening)return;const O=b(fe),ze=R(O);if(ze){w(Ot(ze,{replace:!0}),O).catch(Ol);return}u=O;const je=s.value;va&&uH(Sv(je.fullPath,Y.delta),Xd()),B(O,je).catch(W=>sr(W,12)?W:sr(W,2)?(w(W.to,O).then(ee=>{sr(ee,20)&&!Y.delta&&Y.type===ss.pop&&r.go(-1,!1)}).catch(Ol),Promise.reject()):(Y.delta&&r.go(-Y.delta,!1),y(W,O,je))).then(W=>{W=W||N(O,je,!1),W&&(Y.delta&&!sr(W,8)?r.go(-Y.delta,!1):Y.type===ss.pop&&sr(W,20)&&r.go(-1,!1)),U(O,je,W)}).catch(Ol)}))}let T=hl(),z=hl(),F;function y(fe,Ce,Y){te(fe);const O=z.list();return O.length?O.forEach(ze=>ze(fe,Ce,Y)):console.error(fe),Promise.reject(fe)}function re(){return F&&s.value!==Dr?Promise.resolve():new Promise((fe,Ce)=>{T.add([fe,Ce])})}function te(fe){return F||(F=!fe,H(),T.list().forEach(([Ce,Y])=>fe?Y(fe):Ce()),T.reset()),fe}function j(fe,Ce,Y,O){const{scrollBehavior:ze}=e;if(!va||!ze)return Promise.resolve();const je=!Y&&dH(Sv(fe.fullPath,0))||(O||!Y)&&history.state&&history.state.scroll||null;return Rt().then(()=>ze(fe,Ce,je)).then(W=>W&&sH(W)).catch(W=>y(W,fe,Ce))}const Z=fe=>r.go(fe);let se;const pe=new Set,Se={currentRoute:s,listening:!0,addRoute:f,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:b,options:e,push:C,replace:_,go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:z.add,isReady:re,install(fe){const Ce=this;fe.component("RouterLink",Cl),fe.component("RouterView",A2),fe.config.globalProperties.$router=Ce,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>E(s)}),va&&!se&&s.value===Dr&&(se=!0,C(r.location).catch(ze=>{}));const Y={};for(const ze in Dr)Object.defineProperty(Y,ze,{get:()=>s.value[ze],enumerable:!0});fe.provide(Yd,Ce),fe.provide(um,m1(Y)),fe.provide(yh,s);const O=fe.unmount;pe.add(fe),fe.unmount=function(){pe.delete(fe),pe.size<1&&(u=Dr,K&&K(),K=null,s.value=Dr,se=!1,F=!1),O()}}};function he(fe){return fe.reduce((Ce,Y)=>Ce.then(()=>$(Y)),Promise.resolve())}return Se}function OH(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const l=t.matched[a];l&&(e.matched.find(u=>Ta(u,l))?n.push(l):o.push(l));const s=e.matched[a];s&&(t.matched.find(u=>Ta(u,s))||r.push(s))}return[o,n,r]}function LH(){return Oe(Yd)}function B2(e){return Oe(um)}function Re(e,t){return e.then(function(o){return[null,o]}).catch(function(o){return[o,void 0]})}let HH=0;function NH(e){return`${e}_callback_${Date.now()}_${HH++}`}function ke(e,t){return typeof t>"u"&&(t={}),new Promise((o,n)=>{const r=NH("exec");window[r]=(a,l,s)=>{o({errno:a,stdout:l,stderr:s}),i(r)};function i(a){delete window[a]}try{ksu.exec(e,JSON.stringify(t),r)}catch(a){n(a),i(r)}})}const ea=Wi("logs",()=>{const e=M("");function t(r,i){e.value+=`[error] ${r}${i!==void 0?":"+i:""} -`}function o(r,i){const a=`[info] ${r}${i!==void 0?":"+i:""} -`;e.value+=a,console.log(a)}function n(r,i){e.value+=`[success] ${r}${i!==void 0?":"+i:""} -`}return{content:e,error:t,info:o,success:n}}),_e=(e,t="Uncaught")=>e.then(o=>(Ov("Resolved",o,t),o)).catch(o=>{throw Ov("Rejected",o,t),o}),Ov=(e,t,o)=>{const n=ea(),r=e==="Resolved"?"success":"error";typeof t=="string"?t.trim().startsWith("<")&&t.trim().endsWith(">")?n[r](`${e}:${o}`,"XML data detected."):n[r](`${e}:${o}`,t):typeof t=="object"?Array.isArray(t)?n[r](`${e}:${o}`,JSON.stringify(t,null,2)):t instanceof Error?n.error(`${e}::${o}`,t.message):n[r](`${e}:${o}`,JSON.stringify(t,null,2)):typeof t=="function"?n[r](`${e}:${o}`,`Function called ${t.name?t.name:"anonymous function"}`):n[r](`${e}:${o}`,t)},VH=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "SELECT * FROM gamebooster_table WHERE package_name!='none';" -json)"`;return _e(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await ke(o);if(i&&r(l),a)try{const s=JSON.parse(a);n(s)}catch(s){r(s)}else r(i)}}),o)},sX=()=>{const e="am start -n com.miui.securitycenter/com.miui.gamebooster.ui.SelectGameLandActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},jH=()=>{const e='ls /data/data/com.miui.securitycenter/databases/gamebooster.db &>/dev/null && echo "exists" || echo "not exists"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},uX=(e,t,o)=>{const i=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/data/com.miui.securitycenter/databases/gamebooster.db "UPDATE gamebooster_table SET game_ratio='${t}', game_gravity='${o}' WHERE package_name='${e}'; SELECT changes();")"`;return _e(new Promise(async(a,l)=>{{const{errno:s,stdout:u,stderr:d}=await ke(i);s&&l(d),u&&a(u)}}),i)},D2=Wi("gameBooster",()=>{const e=M([]),t=I(()=>{const u=n.value.trim().toLowerCase();return e.value.reduce((c,h)=>{const f=h.package_name.trim().toLowerCase(),p=h.app_name?h.app_name.toLowerCase():"";return!f.includes(u)&&!p.includes(u)||c.push(h),c},[])}),o=I(()=>a.length>0);I(()=>e.value.length);const n=M(""),r=M(!0),i=M(!1),a=It([]),l=I(()=>new Set([...e.value]));async function s(){r.value=!0;const[u,d]=await Re(jH());if(u&&(r.value=!1,i.value=!1),d){i.value=!0;const[c,h]=await Re(VH());c&&(r.value=!1,e.value=[]),h&&(r.value=!1,e.value=h)}a.length||(r.value=!1)}return{gameBoosterList:e,filterGameBoosterList:t,allPackageName:l,hasGameBoosterDataBase:i,searchKeyWord:n,errorLogging:a,isNeedShowErrorModal:o,loading:r,initDefault:s}},{persist:{pick:[]}});function dm(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Os(){let e=[],t={addEventListener(o,n,r,i){return o.addEventListener(n,r,i),t.add(()=>o.removeEventListener(n,r,i))},requestAnimationFrame(...o){let n=requestAnimationFrame(...o);t.add(()=>cancelAnimationFrame(n))},nextFrame(...o){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...o)})},setTimeout(...o){let n=setTimeout(...o);t.add(()=>clearTimeout(n))},microTask(...o){let n={current:!0};return dm(()=>{n.current&&o[0]()}),t.add(()=>{n.current=!1})},style(o,n,r){let i=o.style.getPropertyValue(n);return Object.assign(o.style,{[n]:r}),this.add(()=>{Object.assign(o.style,{[n]:i})})},group(o){let n=Os();return o(n),this.add(()=>n.dispose())},add(o){return e.push(o),()=>{let n=e.indexOf(o);if(n>=0)for(let r of e.splice(n,1))r()}},dispose(){for(let o of e.splice(0))o()}};return t}var Lv;let WH=Symbol("headlessui.useid"),UH=0;const cm=(Lv=_3)!=null?Lv:function(){return Oe(WH,()=>`${++UH}`)()};function co(e){var t;if(e==null||e.value==null)return null;let o=(t=e.value.$el)!=null?t:e.value;return o instanceof Node?o:null}function Qn(e,t,...o){if(e in t){let r=t[e];return typeof r=="function"?r(...o):r}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Qn),n}var KH=Object.defineProperty,GH=(e,t,o)=>t in e?KH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Hv=(e,t,o)=>(GH(e,typeof t!="symbol"?t+"":t,o),o);let qH=class{constructor(){Hv(this,"current",this.detect()),Hv(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Ls=new qH;function qa(e){if(Ls.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=co(e);if(t)return t.ownerDocument}return document}let Ch=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Vr=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Vr||{}),T2=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(T2||{}),ZH=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ZH||{});function XH(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ch)).sort((t,o)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var I2=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(I2||{});function YH(e,t=0){var o;return e===((o=qa(e))==null?void 0:o.body)?!1:Qn(t,{0(){return e.matches(Ch)},1(){let n=e;for(;n!==null;){if(n.matches(Ch))return!0;n=n.parentElement}return!1}})}var QH=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(QH||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Di(e){e==null||e.focus({preventScroll:!0})}let JH=["textarea","input"].join(",");function eN(e){var t,o;return(o=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,JH))!=null?o:!1}function tN(e,t=o=>o){return e.slice().sort((o,n)=>{let r=t(o),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function zu(e,t,{sorted:o=!0,relativeTo:n=null,skipElements:r=[]}={}){var i;let a=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?i:document,l=Array.isArray(e)?o?tN(e):e:XH(e);r.length>0&&l.length>1&&(l=l.filter(p=>!r.includes(p))),n=n??a.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(n))-1;if(t&4)return Math.max(0,l.indexOf(n))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},c=0,h=l.length,f;do{if(c>=h||c+h<=0)return 0;let p=u+c;if(t&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}f=l[p],f==null||f.focus(d),c+=s}while(f!==a.activeElement);return t&6&&eN(f)&&f.select(),2}function z2(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function oN(){return/Android/gi.test(window.navigator.userAgent)}function nN(){return z2()||oN()}function bu(e,t,o){Ls.isServer||kt(n=>{document.addEventListener(e,t,o),n(()=>document.removeEventListener(e,t,o))})}function O2(e,t,o){Ls.isServer||kt(n=>{window.addEventListener(e,t,o),n(()=>window.removeEventListener(e,t,o))})}function rN(e,t,o=I(()=>!0)){function n(i,a){if(!o.value||i.defaultPrevented)return;let l=a(i);if(l===null||!l.getRootNode().contains(l))return;let s=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let u of s){if(u===null)continue;let d=u instanceof HTMLElement?u:co(u);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!YH(l,I2.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=M(null);bu("pointerdown",i=>{var a,l;o.value&&(r.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),bu("mousedown",i=>{var a,l;o.value&&(r.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),bu("click",i=>{nN()||r.value&&(n(i,()=>r.value),r.value=null)},!0),bu("touchend",i=>n(i,()=>i.target instanceof HTMLElement?i.target:null),!0),O2("blur",i=>n(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var id=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(id||{}),Wr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Wr||{});function Fr({visible:e=!0,features:t=0,ourProps:o,theirProps:n,...r}){var i;let a=H2(n,o),l=Object.assign(r,{props:a});if(e||t&2&&a.static)return df(l);if(t&1){let s=(i=a.unmount)==null||i?0:1;return Qn(s,{0(){return null},1(){return df({...r,props:{...a,hidden:!0,style:{display:"none"}}})}})}return df(l)}function df({props:e,attrs:t,slots:o,slot:n,name:r}){var i,a;let{as:l,...s}=N2(e,["unmount","static"]),u=(i=o.default)==null?void 0:i.call(o,n),d={};if(n){let c=!1,h=[];for(let[f,p]of Object.entries(n))typeof p=="boolean"&&(c=!0),p===!0&&h.push(f);c&&(d["data-headlessui-state"]=h.join(" "))}if(l==="template"){if(u=L2(u??[]),Object.keys(s).length>0||Object.keys(t).length>0){let[c,...h]=u??[];if(!iN(c)||h.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${r} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(s).concat(Object.keys(t)).map(g=>g.trim()).filter((g,v,b)=>b.indexOf(g)===v).sort((g,v)=>g.localeCompare(v)).map(g=>` - ${g}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(` -`)].join(` -`));let f=H2((a=c.props)!=null?a:{},s,d),p=qo(c,f,!0);for(let g in f)g.startsWith("on")&&(p.props||(p.props={}),p.props[g]=f[g]);return p}return Array.isArray(u)&&u.length===1?u[0]:u}return m(l,Object.assign({},s,d),{default:()=>u})}function L2(e){return e.flatMap(t=>t.type===ft?L2(t.children):[t])}function H2(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},o={};for(let n of e)for(let r in n)r.startsWith("on")&&typeof n[r]=="function"?(o[r]!=null||(o[r]=[]),o[r].push(n[r])):t[r]=n[r];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(o).map(n=>[n,void 0])));for(let n in o)Object.assign(t,{[n](r,...i){let a=o[n];for(let l of a){if(r instanceof Event&&r.defaultPrevented)return;l(r,...i)}}});return t}function N2(e,t=[]){let o=Object.assign({},e);for(let n of t)n in o&&delete o[n];return o}function iN(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var ad=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ad||{});let wh=xe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:o}){return()=>{var n;let{features:r,...i}=e,a={"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Fr({ourProps:a,theirProps:i,slot:{},attrs:o,slots:t,name:"Hidden"})}}}),V2=Symbol("Context");var Jo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Jo||{});function aN(){return fm()!==null}function fm(){return Oe(V2,null)}function lN(e){Je(V2,e)}var j2=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(j2||{});function sN(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let xi=[];sN(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&xi[0]!==t.target&&(xi.unshift(t.target),xi=xi.filter(o=>o!=null&&o.isConnected),xi.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function W2(e,t,o,n){Ls.isServer||kt(r=>{e=e??window,e.addEventListener(t,o,n),r(()=>e.removeEventListener(t,o,n))})}var wl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wl||{});function uN(){let e=M(0);return O2("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function U2(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let o of e.value){let n=co(o);n instanceof HTMLElement&&t.add(n)}return t}var K2=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(K2||{});let pl=Object.assign(xe({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:M(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:o,expose:n}){let r=M(null);n({el:r,$el:r});let i=I(()=>qa(r)),a=M(!1);ut(()=>a.value=!0),Go(()=>a.value=!1),cN({ownerDocument:i},I(()=>a.value&&!!(e.features&16)));let l=fN({ownerDocument:i,container:r,initialFocus:I(()=>e.initialFocus)},I(()=>a.value&&!!(e.features&2)));hN({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},I(()=>a.value&&!!(e.features&8)));let s=uN();function u(f){let p=co(r);p&&(g=>g())(()=>{Qn(s.value,{[wl.Forwards]:()=>{zu(p,Vr.First,{skipElements:[f.relatedTarget]})},[wl.Backwards]:()=>{zu(p,Vr.Last,{skipElements:[f.relatedTarget]})}})})}let d=M(!1);function c(f){f.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function h(f){if(!a.value)return;let p=U2(e.containers);co(r)instanceof HTMLElement&&p.add(co(r));let g=f.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(G2(p,g)||(d.value?zu(co(r),Qn(s.value,{[wl.Forwards]:()=>Vr.Next,[wl.Backwards]:()=>Vr.Previous})|Vr.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&Di(f.target)))}return()=>{let f={},p={ref:r,onKeydown:c,onFocusout:h},{features:g,initialFocus:v,containers:b,...x}=e;return m(ft,[!!(g&4)&&m(wh,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:ad.Focusable}),Fr({ourProps:p,theirProps:{...t,...x},slot:f,attrs:t,slots:o,name:"FocusTrap"}),!!(g&4)&&m(wh,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:ad.Focusable})])}}}),{features:K2});function dN(e){let t=M(xi.slice());return at([e],([o],[n])=>{n===!0&&o===!1?dm(()=>{t.value.splice(0)}):n===!1&&o===!0&&(t.value=xi.slice())},{flush:"post"}),()=>{var o;return(o=t.value.find(n=>n!=null&&n.isConnected))!=null?o:null}}function cN({ownerDocument:e},t){let o=dN(t);ut(()=>{kt(()=>{var n,r;t.value||((n=e.value)==null?void 0:n.activeElement)===((r=e.value)==null?void 0:r.body)&&Di(o())},{flush:"post"})}),Go(()=>{t.value&&Di(o())})}function fN({ownerDocument:e,container:t,initialFocus:o},n){let r=M(null),i=M(!1);return ut(()=>i.value=!0),Go(()=>i.value=!1),ut(()=>{at([t,o,n],(a,l)=>{if(a.every((u,d)=>(l==null?void 0:l[d])===u)||!n.value)return;let s=co(t);s&&dm(()=>{var u,d;if(!i.value)return;let c=co(o),h=(u=e.value)==null?void 0:u.activeElement;if(c){if(c===h){r.value=h;return}}else if(s.contains(h)){r.value=h;return}c?Di(c):zu(s,Vr.First|Vr.NoScroll)===T2.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),r.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),r}function hN({ownerDocument:e,container:t,containers:o,previousActiveElement:n},r){var i;W2((i=e.value)==null?void 0:i.defaultView,"focus",a=>{if(!r.value)return;let l=U2(o);co(t)instanceof HTMLElement&&l.add(co(t));let s=n.value;if(!s)return;let u=a.target;u&&u instanceof HTMLElement?G2(l,u)?(n.value=u,Di(u)):(a.preventDefault(),a.stopPropagation(),Di(s)):Di(n.value)},!0)}function G2(e,t){for(let o of e)if(o.contains(t))return!0;return!1}function pN(e){let t=xd(e.getSnapshot());return Go(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function mN(e,t){let o=e(),n=new Set;return{getSnapshot(){return o},subscribe(r){return n.add(r),()=>n.delete(r)},dispatch(r,...i){let a=t[r].call(o,...i);a&&(o=a,n.forEach(l=>l()))}}}function gN(){let e;return{before({doc:t}){var o;let n=t.documentElement;e=((o=t.defaultView)!=null?o:window).innerWidth-n.clientWidth},after({doc:t,d:o}){let n=t.documentElement,r=n.clientWidth-n.offsetWidth,i=e-r;o.style(n,"paddingRight",`${i}px`)}}}function vN(){return z2()?{before({doc:e,d:t,meta:o}){function n(r){return o.containers.flatMap(i=>i()).some(i=>i.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Os();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let i=(r=window.scrollY)!=null?r:window.pageYOffset,a=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),d=e.querySelector(u);d&&!n(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(n(l.target)){let s=l.target;for(;s.parentElement&&n(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(n(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;i!==s&&window.scrollTo(0,i),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function bN(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function xN(e){let t={};for(let o of e)Object.assign(t,o(t));return t}let Si=mN(()=>new Map,{PUSH(e,t){var o;let n=(o=this.get(e))!=null?o:{doc:e,count:0,d:Os(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let o=this.get(e);return o&&(o.count--,o.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:o}){let n={doc:e,d:t,meta:xN(o)},r=[vN(),gN(),bN()];r.forEach(({before:i})=>i==null?void 0:i(n)),r.forEach(({after:i})=>i==null?void 0:i(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Si.subscribe(()=>{let e=Si.getSnapshot(),t=new Map;for(let[o]of e)t.set(o,o.documentElement.style.overflow);for(let o of e.values()){let n=t.get(o.doc)==="hidden",r=o.count!==0;(r&&!n||!r&&n)&&Si.dispatch(o.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",o),o.count===0&&Si.dispatch("TEARDOWN",o)}});function yN(e,t,o){let n=pN(Si),r=I(()=>{let i=e.value?n.value.get(e.value):void 0;return i?i.count>0:!1});return at([e,t],([i,a],[l],s)=>{if(!i||!a)return;Si.dispatch("PUSH",i,o);let u=!1;s(()=>{u||(Si.dispatch("POP",l??i,o),u=!0)})},{immediate:!0}),r}let cf=new Map,ml=new Map;function Nv(e,t=M(!0)){kt(o=>{var n;if(!t.value)return;let r=co(e);if(!r)return;o(function(){var a;if(!r)return;let l=(a=ml.get(r))!=null?a:1;if(l===1?ml.delete(r):ml.set(r,l-1),l!==1)return;let s=cf.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,cf.delete(r))});let i=(n=ml.get(r))!=null?n:0;ml.set(r,i+1),i===0&&(cf.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function CN({defaultContainers:e=[],portals:t,mainTreeNodeRef:o}={}){let n=M(null),r=qa(n);function i(){var a,l,s;let u=[];for(let d of e)d!==null&&(d instanceof HTMLElement?u.push(d):"value"in d&&d.value instanceof HTMLElement&&u.push(d.value));if(t!=null&&t.value)for(let d of t.value)u.push(d);for(let d of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])d!==document.body&&d!==document.head&&d instanceof HTMLElement&&d.id!=="headlessui-portal-root"&&(d.contains(co(n))||d.contains((s=(l=co(n))==null?void 0:l.getRootNode())==null?void 0:s.host)||u.some(c=>d.contains(c))||u.push(d));return u}return{resolveContainers:i,contains(a){return i().some(l=>l.contains(a))},mainTreeNodeRef:n,MainTreeNode(){return o!=null?null:m(wh,{features:ad.Hidden,ref:n})}}}let q2=Symbol("ForcePortalRootContext");function wN(){return Oe(q2,!1)}let Vv=xe({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o}){return Je(q2,e.force),()=>{let{force:n,...r}=e;return Fr({theirProps:r,ourProps:{},slot:{},slots:t,attrs:o,name:"ForcePortalRoot"})}}}),Z2=Symbol("StackContext");var Sh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Sh||{});function SN(){return Oe(Z2,()=>{})}function EN({type:e,enabled:t,element:o,onUpdate:n}){let r=SN();function i(...a){n==null||n(...a),r(...a)}ut(()=>{at(t,(a,l)=>{a?i(0,e,o):l===!0&&i(1,e,o)},{immediate:!0,flush:"sync"})}),Go(()=>{t.value&&i(1,e,o)}),Je(Z2,i)}let kN=Symbol("DescriptionContext");function _N({slot:e=M({}),name:t="Description",props:o={}}={}){let n=M([]);function r(i){return n.value.push(i),()=>{let a=n.value.indexOf(i);a!==-1&&n.value.splice(a,1)}}return Je(kN,{register:r,slot:e,name:t,props:o}),I(()=>n.value.length>0?n.value.join(" "):void 0)}function FN(e){let t=qa(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let o=t.getElementById("headlessui-portal-root");if(o)return o;let n=t.createElement("div");return n.setAttribute("id","headlessui-portal-root"),t.body.appendChild(n)}const Eh=new WeakMap;function RN(e){var t;return(t=Eh.get(e))!=null?t:0}function jv(e,t){let o=t(RN(e));return o<=0?Eh.delete(e):Eh.set(e,o),o}let $N=xe({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:o}){let n=M(null),r=I(()=>qa(n)),i=wN(),a=Oe(X2,null),l=M(i===!0||a==null?FN(n.value):a.resolveTarget());l.value&&jv(l.value,h=>h+1);let s=M(!1);ut(()=>{s.value=!0}),kt(()=>{i||a!=null&&(l.value=a.resolveTarget())});let u=Oe(kh,null),d=!1,c=xr();return at(n,()=>{if(d||!u)return;let h=co(n);h&&(Go(u.register(h),c),d=!0)}),Go(()=>{var h,f;let p=(h=r.value)==null?void 0:h.getElementById("headlessui-portal-root");!p||l.value!==p||jv(l.value,g=>g-1)||l.value.children.length>0||(f=l.value.parentElement)==null||f.removeChild(l.value)}),()=>{if(!s.value||l.value===null)return null;let h={ref:n,"data-headlessui-portal":""};return m(bs,{to:l.value},Fr({ourProps:h,theirProps:e,slot:{},attrs:o,slots:t,name:"Portal"}))}}}),kh=Symbol("PortalParentContext");function PN(){let e=Oe(kh,null),t=M([]);function o(i){return t.value.push(i),e&&e.register(i),()=>n(i)}function n(i){let a=t.value.indexOf(i);a!==-1&&t.value.splice(a,1),e&&e.unregister(i)}let r={register:o,unregister:n,portals:t};return[t,xe({name:"PortalWrapper",setup(i,{slots:a}){return Je(kh,r),()=>{var l;return(l=a.default)==null?void 0:l.call(a)}}})]}let X2=Symbol("PortalGroupContext"),MN=xe({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:o}){let n=It({resolveTarget(){return e.target}});return Je(X2,n),()=>{let{target:r,...i}=e;return Fr({theirProps:i,ourProps:{},slot:{},attrs:t,slots:o,name:"PortalGroup"})}}});var AN=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(AN||{});let _h=Symbol("DialogContext");function Y2(e){let t=Oe(_h,null);if(t===null){let o=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Y2),o}return t}let xu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",BN=xe({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:xu},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:o,slots:n,expose:r}){var i,a;let l=(i=e.id)!=null?i:`headlessui-dialog-${cm()}`,s=M(!1);ut(()=>{s.value=!0});let u=!1,d=I(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(u||(u=!0,console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),c=M(0),h=fm(),f=I(()=>e.open===xu&&h!==null?(h.value&Jo.Open)===Jo.Open:e.open),p=M(null),g=I(()=>qa(p));if(r({el:p,$el:p}),!(e.open!==xu||h!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof f.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${f.value===xu?void 0:e.open}`);let v=I(()=>s.value&&f.value?0:1),b=I(()=>v.value===0),x=I(()=>c.value>1),k=Oe(_h,null)!==null,[C,_]=PN(),{resolveContainers:R,mainTreeNodeRef:w,MainTreeNode:A}=CN({portals:C,defaultContainers:[I(()=>{var j;return(j=F.panelRef.value)!=null?j:p.value})]}),$=I(()=>x.value?"parent":"leaf"),B=I(()=>h!==null?(h.value&Jo.Closing)===Jo.Closing:!1),U=I(()=>k||B.value?!1:b.value),N=I(()=>{var j,Z,se;return(se=Array.from((Z=(j=g.value)==null?void 0:j.querySelectorAll("body > *"))!=null?Z:[]).find(pe=>pe.id==="headlessui-portal-root"?!1:pe.contains(co(w))&&pe instanceof HTMLElement))!=null?se:null});Nv(N,U);let K=I(()=>x.value?!0:b.value),H=I(()=>{var j,Z,se;return(se=Array.from((Z=(j=g.value)==null?void 0:j.querySelectorAll("[data-headlessui-portal]"))!=null?Z:[]).find(pe=>pe.contains(co(w))&&pe instanceof HTMLElement))!=null?se:null});Nv(H,K),EN({type:"Dialog",enabled:I(()=>v.value===0),element:p,onUpdate:(j,Z)=>{if(Z==="Dialog")return Qn(j,{[Sh.Add]:()=>c.value+=1,[Sh.Remove]:()=>c.value-=1})}});let T=_N({name:"DialogDescription",slot:I(()=>({open:f.value}))}),z=M(null),F={titleId:z,panelRef:M(null),dialogState:v,setTitleId(j){z.value!==j&&(z.value=j)},close(){t("close",!1)}};Je(_h,F);let y=I(()=>!(!b.value||x.value));rN(R,(j,Z)=>{j.preventDefault(),F.close(),Rt(()=>Z==null?void 0:Z.focus())},y);let re=I(()=>!(x.value||v.value!==0));W2((a=g.value)==null?void 0:a.defaultView,"keydown",j=>{re.value&&(j.defaultPrevented||j.key===j2.Escape&&(j.preventDefault(),j.stopPropagation(),F.close()))});let te=I(()=>!(B.value||v.value!==0||k));return yN(g,te,j=>{var Z;return{containers:[...(Z=j.containers)!=null?Z:[],R]}}),kt(j=>{if(v.value!==0)return;let Z=co(p);if(!Z)return;let se=new ResizeObserver(pe=>{for(let Se of pe){let he=Se.target.getBoundingClientRect();he.x===0&&he.y===0&&he.width===0&&he.height===0&&F.close()}});se.observe(Z),j(()=>se.disconnect())}),()=>{let{open:j,initialFocus:Z,...se}=e,pe={...o,ref:p,id:l,role:d.value,"aria-modal":v.value===0?!0:void 0,"aria-labelledby":z.value,"aria-describedby":T.value},Se={open:v.value===0};return m(Vv,{force:!0},()=>[m($N,()=>m(MN,{target:p.value},()=>m(Vv,{force:!1},()=>m(pl,{initialFocus:Z,containers:R,features:b.value?Qn($.value,{parent:pl.features.RestoreFocus,leaf:pl.features.All&~pl.features.FocusLock}):pl.features.None},()=>m(_,{},()=>Fr({ourProps:pe,theirProps:{...se,...o},slot:Se,attrs:o,slots:n,visible:v.value===0,features:id.RenderStrategy|id.Static,name:"Dialog"})))))),m(A)])}}}),DN=xe({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:o,expose:n}){var r;let i=(r=e.id)!=null?r:`headlessui-dialog-panel-${cm()}`,a=Y2("DialogPanel");n({el:a.panelRef,$el:a.panelRef});function l(s){s.stopPropagation()}return()=>{let{...s}=e,u={id:i,ref:a.panelRef,onClick:l};return Fr({ourProps:u,theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:o,name:"DialogPanel"})}}});function TN(e){let t={called:!1};return(...o)=>{if(!t.called)return t.called=!0,e(...o)}}function ff(e,...t){e&&t.length>0&&e.classList.add(...t)}function yu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Fh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Fh||{});function IN(e,t){let o=Os();if(!e)return o.dispose;let{transitionDuration:n,transitionDelay:r}=getComputedStyle(e),[i,a]=[n,r].map(l=>{let[s=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return s});return i!==0?o.setTimeout(()=>t("finished"),i+a):t("finished"),o.add(()=>t("cancelled")),o.dispose}function Wv(e,t,o,n,r,i){let a=Os(),l=i!==void 0?TN(i):()=>{};return yu(e,...r),ff(e,...t,...o),a.nextFrame(()=>{yu(e,...o),ff(e,...n),a.add(IN(e,s=>(yu(e,...n,...t),ff(e,...r),l(s))))}),a.add(()=>yu(e,...t,...o,...n,...r)),a.add(()=>l("cancelled")),a.dispose}function gi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let hm=Symbol("TransitionContext");var zN=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zN||{});function ON(){return Oe(hm,null)!==null}function LN(){let e=Oe(hm,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function HN(){let e=Oe(pm,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let pm=Symbol("NestingContext");function Qd(e){return"children"in e?Qd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function Q2(e){let t=M([]),o=M(!1);ut(()=>o.value=!0),Go(()=>o.value=!1);function n(i,a=Wr.Hidden){let l=t.value.findIndex(({id:s})=>s===i);l!==-1&&(Qn(a,{[Wr.Unmount](){t.value.splice(l,1)},[Wr.Hidden](){t.value[l].state="hidden"}}),!Qd(t)&&o.value&&(e==null||e()))}function r(i){let a=t.value.find(({id:l})=>l===i);return a?a.state!=="visible"&&(a.state="visible"):t.value.push({id:i,state:"visible"}),()=>n(i,Wr.Unmount)}return{children:t,register:r,unregister:n}}let J2=id.RenderStrategy,Ou=xe({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:n,expose:r}){let i=M(0);function a(){i.value|=Jo.Opening,t("beforeEnter")}function l(){i.value&=~Jo.Opening,t("afterEnter")}function s(){i.value|=Jo.Closing,t("beforeLeave")}function u(){i.value&=~Jo.Closing,t("afterLeave")}if(!ON()&&aN())return()=>m(eS,{...e,onBeforeEnter:a,onAfterEnter:l,onBeforeLeave:s,onAfterLeave:u},n);let d=M(null),c=I(()=>e.unmount?Wr.Unmount:Wr.Hidden);r({el:d,$el:d});let{show:h,appear:f}=LN(),{register:p,unregister:g}=HN(),v=M(h.value?"visible":"hidden"),b={value:!0},x=cm(),k={value:!1},C=Q2(()=>{!k.value&&v.value!=="hidden"&&(v.value="hidden",g(x),u())});ut(()=>{let K=p(x);Go(K)}),kt(()=>{if(c.value===Wr.Hidden&&x){if(h.value&&v.value!=="visible"){v.value="visible";return}Qn(v.value,{hidden:()=>g(x),visible:()=>p(x)})}});let _=gi(e.enter),R=gi(e.enterFrom),w=gi(e.enterTo),A=gi(e.entered),$=gi(e.leave),B=gi(e.leaveFrom),U=gi(e.leaveTo);ut(()=>{kt(()=>{if(v.value==="visible"){let K=co(d);if(K instanceof Comment&&K.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function N(K){let H=b.value&&!f.value,T=co(d);!T||!(T instanceof HTMLElement)||H||(k.value=!0,h.value&&a(),h.value||s(),K(h.value?Wv(T,_,R,w,A,z=>{k.value=!1,z===Fh.Finished&&l()}):Wv(T,$,B,U,A,z=>{k.value=!1,z===Fh.Finished&&(Qd(C)||(v.value="hidden",g(x),u()))})))}return ut(()=>{at([h],(K,H,T)=>{N(T),b.value=!1},{immediate:!0})}),Je(pm,C),lN(I(()=>Qn(v.value,{visible:Jo.Open,hidden:Jo.Closed})|i.value)),()=>{let{appear:K,show:H,enter:T,enterFrom:z,enterTo:F,entered:y,leave:re,leaveFrom:te,leaveTo:j,...Z}=e,se={ref:d},pe={...Z,...f.value&&h.value&&Ls.isServer?{class:ye([o.class,Z.class,..._,...R])}:{}};return Fr({theirProps:pe,ourProps:se,slot:{},slots:n,attrs:o,features:J2,visible:v.value==="visible",name:"TransitionChild"})}}}),NN=Ou,eS=xe({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:o,slots:n}){let r=fm(),i=I(()=>e.show===null&&r!==null?(r.value&Jo.Open)===Jo.Open:e.show);kt(()=>{if(![!0,!1].includes(i.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let a=M(i.value?"visible":"hidden"),l=Q2(()=>{a.value="hidden"}),s=M(!0),u={show:i,appear:I(()=>e.appear||!s.value)};return ut(()=>{kt(()=>{s.value=!1,i.value?a.value="visible":Qd(l)||(a.value="hidden")})}),Je(pm,l),Je(hm,u),()=>{let d=N2(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),c={unmount:e.unmount};return Fr({ourProps:{...c,as:"template"},theirProps:{},slot:{},slots:{...n,default:()=>[m(NN,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...o,...c,...d},n.default)]},attrs:{},features:J2,visible:a.value==="visible",name:"Transition"})}}});function tS(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function VN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function oS(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function Uv(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Kv(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"})])}function jN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"})])}function nS(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"})])}function WN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.712 4.33a9.027 9.027 0 0 1 1.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 0 0-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 0 1 0 9.424m-4.138-5.976a3.736 3.736 0 0 0-.88-1.388 3.737 3.737 0 0 0-1.388-.88m2.268 2.268a3.765 3.765 0 0 1 0 2.528m-2.268-4.796a3.765 3.765 0 0 0-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 0 1-1.388.88m2.268-2.268 4.138 3.448m0 0a9.027 9.027 0 0 1-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0-3.448-4.138m3.448 4.138a9.014 9.014 0 0 1-9.424 0m5.976-4.138a3.765 3.765 0 0 1-2.528 0m0 0a3.736 3.736 0 0 1-1.388-.88 3.737 3.737 0 0 1-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 0 1-1.652-1.306 9.027 9.027 0 0 1-1.306-1.652m0 0 4.138-3.448M4.33 16.712a9.014 9.014 0 0 1 0-9.424m4.138 5.976a3.765 3.765 0 0 1 0-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 0 1 1.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 0 0-1.652 1.306A9.025 9.025 0 0 0 4.33 7.288"})])}function rS(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function UN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"})])}function iS(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function KN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m7.848 8.25 1.536.887M7.848 8.25a3 3 0 1 1-5.196-3 3 3 0 0 1 5.196 3Zm1.536.887a2.165 2.165 0 0 1 1.083 1.839c.005.351.054.695.14 1.024M9.384 9.137l2.077 1.199M7.848 15.75l1.536-.887m-1.536.887a3 3 0 1 1-5.196 3 3 3 0 0 1 5.196-3Zm1.536-.887a2.165 2.165 0 0 0 1.083-1.838c.005-.352.054-.695.14-1.025m-1.223 2.863 2.077-1.199m0-3.328a4.323 4.323 0 0 1 2.068-1.379l5.325-1.628a4.5 4.5 0 0 1 2.48-.044l.803.215-7.794 4.5m-2.882-1.664A4.33 4.33 0 0 0 10.607 12m3.736 0 7.794 4.5-.802.215a4.5 4.5 0 0 1-2.48-.043l-5.326-1.629a4.324 4.324 0 0 1-2.068-1.379M14.343 12l-2.882 1.664"})])}function ld(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"})])}function GN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}function qN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"})])}function aS(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"})])}function lS(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function ZN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})])}function sS(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function XN(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const YN=()=>{const e="getprop ro.build.characteristics";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},QN=()=>{const e="getprop ro.build.version.sdk";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(Number(r))}}),e)},JN=()=>{const e="getprop ro.mi.os.version.code";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(Number(r))}}),e)},eV=()=>{const e="getprop persist.sys.stability.smartfocusio";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},tV=()=>{const e="getprop ro.vendor.qti.soc_name";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},oV=()=>{const e="getprop ro.vendor.qti.soc_model";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},nV=()=>{const e="getprop ro.config.miui_compat_enable";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},rV=()=>{const e="getprop ro.config.miui_appcompat_enable";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},iV=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/module.prop";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},aV=()=>{const e=`grep -q '^is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_patch_mode=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},lV=()=>{const e=`sed -i '/^is_patch_mode=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_patch_mode successfully." || echo "Remove is_patch_mode failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},sV=()=>{const e="grep 'is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},uV=()=>{const e=`grep -q '^is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_disabled_os2_system_app_optimize=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dV=()=>{const e=`sed -i '/^is_disabled_os2_system_app_optimize=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_disabled_os2_system_app_optimize successfully." || echo "Remove is_disabled_os2_system_app_optimize failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},cV=()=>{const e="grep 'is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},fV=()=>{const e=`sed -i '/^# 开启游戏显示布局/d; /^ro.config.miui_compat_enable=/d; /^ro.config.miui_appcompat_enable=/d' /data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Command executed successfully." || echo "Command failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},hV=()=>{const e=`grep -qxF "# 开启游戏显示布局" system.prop || echo -e " -# 开启游戏显示布局 -ro.config.miui_compat_enable=true -ro.config.miui_appcompat_enable=true" >> /data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Command executed successfully." || echo "Command failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},pV=()=>{const e="settings get global device_name";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},mV=()=>{const e="settings get secure show_rotation_suggestions";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},gV=()=>{const e="settings get global miui_version_name";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},vV=()=>{const e="cat /sys/class/qcom-battery/soh";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},bV=()=>{const e="cat /sys/class/power_supply/bms/soh";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},xV=()=>{const e="cat /sys/class/power_supply/battery/charge_full_design";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},yV=()=>{const e="cat /sys/class/power_supply/battery/charge_full";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},CV=()=>{const e="cat /sys/class/power_supply/battery/cycle_count";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},wV=()=>{const e="cat /sys/class/qcom-battery/fg1_rsoc";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},SV=()=>{const e="cat /sys/class/power_supply/bms/capacity_raw";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},EV=()=>{const e="cat /sys/class/xm_power/fg_master/soh";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},kV=()=>{const e="settings get global miui_pre_version";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},_V=e=>{const t=`settings put secure show_rotation_suggestions ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i==="null"?"":i)}}),t)},FV=()=>{const e=`grep -q '^is_hide_gesture_line=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_hide_gesture_line=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},RV=()=>{const e=`sed -i '/^is_hide_gesture_line=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_hide_gesture_line successfully." || echo "Remove is_hide_gesture_line failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},$V=e=>{const t=`settings put global hide_gesture_line ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i==="null"?"":i)}}),t)},PV=()=>{const e="settings get global hide_gesture_line";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},MV=e=>{const t=`settings put secure key_invisible_mode_state ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i==="null"?"":i)}}),t)},AV=()=>{const e="settings get secure key_invisible_mode_state";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},BV=()=>{const e="am start -n com.miui.securitycenter/com.miui.permcenter.settings.InvisibleModeActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},DV=e=>{const t=`settings put system miui_cursor_style ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i==="null"?"":i)}}),t)},TV=()=>{const e="settings get system miui_cursor_style";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},IV=e=>{const t=`settings put secure mouse_gesture_naturalscroll ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i==="null"?"":i)}}),t)},zV=()=>{const e="settings get secure mouse_gesture_naturalscroll";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},uS=e=>{const t=`settings put system pointer_speed ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i==="null"?"":i)}}),t)},OV=()=>{const e="settings get system pointer_speed";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},LV=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/temp/root_manager_info.txt";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},HV=()=>{const e=`pm list packages -a | awk -F':' '{print $2}' | tr ' -' ',' | sed 's/,$/ -/'`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},NV=()=>{const e='CLASSPATH="/data/adb/modules/MIUI_MagicWindow+/common/utils/classes.dex" app_process /system/bin com.xayah.dex.HiddenApiUtil getInstalledPackagesAsUser 0 "user" "pkgName|label"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},VV=()=>{const e='ls /system/product/priv-app/MIUIContentExtension/MIUIContentExtension.apk &>/dev/null && echo "exists" || echo "not exists"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},jV=()=>{const e="am start -n com.miui.contentextension/.setting.activity.MainSettingsActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},dS=()=>{const e='reboot && echo "Reboot command executed successfully." || echo "Reboot command failed."';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Reboot command executed successfully."?t(r):o(r)}}),e)},cX=(e,t)=>{const o=`echo "${e.replace(/"/g,'\\"')}" > /data/adb/MIUI_MagicWindow+/logs-${t}.txt`;return new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await ke(o);i?r(l):n("save command executed successfully.")}})},fX=()=>{const e='pkill -9 -f com.android.systemui && echo "kill command executed successfully." || echo "kill command failed."';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="kill command executed successfully."?t(r):o(r)}}),e)},hX=e=>{const t=`pgrep -f ${e} > /dev/null && kill -9 $(pgrep -f ${e}) || true && pgrep -f com.miui.securitycenter > /dev/null && kill -9 $(pgrep -f com.miui.securitycenter) || true && pgrep -f com.miui.securityadd > /dev/null && kill -9 $(pgrep -f com.miui.securityadd) || true && am start -n com.miui.securityadd/com.miui.gamebooster.GameBoosterRichWebActivity`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},WV=e=>{const t=`cmd activity ${e}service -n com.miui.powerkeeper/.ui.framerate.FrameRateService`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},UV=e=>{const t=Et(),o=[];return e.split(` -`).forEach(r=>{const a=(t.androidTargetSdk&&t.androidTargetSdk>=35?/id=(\d+),\s*width=(\d+),\s*height=(\d+),\s*fps=([\d.]+),\s*vsync=([\d.]+),\s*synthetic=(true|false),\s*alternativeRefreshRates=\[([^\]]*)\],\s*supportedHdrTypes=\[([^\]]*)\]/:/id=(\d+),\s*width=(\d+),\s*height=(\d+),\s*fps=([\d.]+),\s*alternativeRefreshRates=\[([^\]]*)\],\s*supportedHdrTypes=\[([^\]]*)\]/).exec(r);if(a)if(t.androidTargetSdk&&t.androidTargetSdk>=35){const[l,s,u,d,c,h,f]=a,p={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),alternativeRefreshRates:h?h.split(",").map(g=>parseFloat(g.trim())):[],supportedHdrTypes:f?f.split(",").map(g=>parseInt(g.trim(),10)):[]};o.push(p)}else{const[l,s,u,d,c,h,f,p,g]=a,v={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),vsync:parseInt(h,10),synthetic:f==="true",alternativeRefreshRates:p?p.split(",").map(b=>parseFloat(b.trim())):[],supportedHdrTypes:g?g.split(",").map(b=>parseInt(b.trim(),10)):[]};o.push(v)}}),o},KV=()=>{const e="dumpsys display | grep 'DisplayModeRecord'";return _e(new Promise(async(t,o)=>{try{const{errno:n,stdout:r,stderr:i}=await ke(e);if(n){o(i);return}const a=UV(r);t(a)}catch(n){o(n)}}),e)},Jd=e=>_e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(`sh /data/adb/modules/MIUI_MagicWindow+/common/source/update_rule/update_rule.sh${e?` ${e}`:""}`);n?o(i):t(r)}}),"updateMiuiEmbeddingWindowRule"),GV=()=>{const e='ls -d /data/adb/shamiko/ &>/dev/null && echo "exists" || echo "not exists"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},qV=()=>{const e='ls /data/adb/shamiko/whitelist &>/dev/null && echo "whitelist" || echo "blacklist"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},ZV=e=>{const t=e==="whitelist"?"touch /data/adb/shamiko/whitelist":"rm -rf /data/adb/shamiko/whitelist";return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},XV=()=>{const e='ls /sys/touchpanel/pen_update &>/dev/null && echo "exists" || echo "not exists"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},YV=()=>{const e='ls /sys/touchpanel/pen_enable &>/dev/null && echo "exists" || echo "not exists"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},QV=()=>{const e='ls /sys/touchpanel/keyboard &>/dev/null && echo "exists" || echo "not exists"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},JV=()=>{const e="cat /sys/touchpanel/pen_update";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},ej=e=>{const t=`echo ${e} > /sys/touchpanel/pen_update`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},tj=()=>{const e=`grep -q '^is_amktiao_pen_update=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_amktiao_pen_update=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},oj=()=>{const e=`sed -i '/^is_amktiao_pen_update=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_amktiao_pen_update successfully." || echo "Remove is_amktiao_pen_update failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},nj=()=>{const e="cat /sys/touchpanel/pen_enable";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},rj=e=>{const t=`echo ${e} > /sys/touchpanel/pen_enable`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},ij=()=>{const e=`grep -q '^is_amktiao_pen_enable=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_amktiao_pen_enable=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},aj=()=>{const e=`sed -i '/^is_amktiao_pen_enable=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_amktiao_pen_enable successfully." || echo "Remove is_amktiao_pen_enable failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},lj=()=>{const e="cat /sys/touchpanel/keyboard | head -n 1";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},sj=e=>{const t=`echo ${e} > /sys/touchpanel/keyboard`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},uj=()=>{const e="getprop ro.config.miui_desktop_mode_enabled";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},dj=()=>{const e=`grep -q '^is_add_miui_desktop_mode_enabled=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_add_miui_desktop_mode_enabled=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},cj=()=>{const e=`sed -i '/^is_add_miui_desktop_mode_enabled=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_add_miui_desktop_mode_enabled successfully." || echo "Remove is_add_miui_desktop_mode_enabled failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},fj=()=>{const e=`grep -q '^ro.config.miui_desktop_mode_enabled=' /data/adb/modules/MIUI_MagicWindow+/system.prop || (echo "ro.config.miui_desktop_mode_enabled=true" | tee -a /data/adb/modules/MIUI_MagicWindow+/system.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},hj=()=>{const e=`sed -i '/^ro.config.miui_desktop_mode_enabled=/d' //data/adb/modules/MIUI_MagicWindow+/system.prop && echo "Remove ro.config.miui_desktop_mode_enabled successfully." || echo "Remove ro.config.miui_desktop_mode_enabled failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},pj=()=>{const e="settings get system miui_dkt_mode";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},mj=e=>{const t=`settings put system miui_dkt_mode ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},gj=()=>{const e=`grep -q '^is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_enable_show_notification_icon_num=true" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},Gv=()=>{const e=`sed -i '/^is_enable_show_notification_icon_num=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_enable_show_notification_icon_num successfully." || echo "Remove is_enable_show_notification_icon_num failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},vj=()=>{const e="grep 'is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},bj=()=>{const e=`sed -i '/^show_notification_icon_num=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove show_notification_icon_num successfully." || echo "Remove show_notification_icon_num failed."`;return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},xj=e=>{const t=`grep -q '^show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "show_notification_icon_num=${e}" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},yj=e=>{const t=`settings put system status_bar_show_notification_icon ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},Cj=()=>{const e="cat /proc/mv";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r==="null"?"":r)}}),e)},wj=()=>{const e="cat /sys/class/mi_display/disp-DSI-0/panel_info";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);if(n)o(i);else{r==="null"&&t("");const a=r.split("=");Array.isArray(a)&&a.length===2?t(a[1]):t("")}}}),e)},Sj=e=>{const t=`service call SurfaceFlinger 1035 i32 ${e}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},qv=e=>{const t=`service call SurfaceFlinger 1034 i32 ${e?1:0}`;return _e(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await ke(t);r?n(a):o(i)}}),t)},cS=()=>{const e="am start com.miui.voiceassist/com.xiaomi.voiceassistant.CTAAlertActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Ej=()=>{const e="am startservice -n com.xiaomi.aiasst.vision/.control.translation.AiTranslateService --es from systemui.plugin.tile.aisubtitles --es floatingWindowType startAiSubtitlesWindow";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},kj=()=>{const e="am start -n com.miui.mediaeditor/com.miui.gallery.vlog.template2.VlogTemplateActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},_j=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$ReduceBrightColorsSettingsActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Fj=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$AccessibilityInversionSettingsActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Rj=()=>{const e='am start -n com.android.phone/com.android.phone.EmergencyDialer -e shortcut "volume_down_up_three_time"';return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},$j=()=>{const e="am start -a android.intent.action.VIEW -n com.android.settings/.RunningServices -f 0x10000000";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Pj=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$NotificationStationActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Mj=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$MemorySettingsActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Aj=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.ai.AiWallpaperListActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Bj=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeClientActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Dj=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeServerActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Tj=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.AiWallpaperGuideActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Ij=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.miui.voiceassist/com.xiaomi.voiceassistant.instruction.card.translation.TranslationChatActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},zj=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.miui.voiceassist/com.xiaomi.voiceassistant.instruction.card.translation.TranslationSynchronizeActivity;end'";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Oj=()=>{const e="am start -n com.google.android.gms/com.google.android.gms.googlesettings.ui.GoogleSettingsActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Lj=()=>{const e="am start -n com.miui.securitycenter/com.miui.autotask.activity.TaskManagerActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Hj=()=>{const e="am broadcast -a android.telephony.action.SECRET_CODE -d android_secret_code://5776733 android";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},Nj=()=>{const e="am start -n com.android.thememanager/com.android.thememanager.activity.ThemeTabActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},fS=()=>{const e="am start -n com.miui.securitycenter/com.miui.apppredict.activity.AppClassificationActivity";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)};function Vj(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(0),i=M(0),a=M(0),l=M([{label:"关闭键盘",type:"error",key:0},{label:"连接键盘",type:"success",key:1},{label:"复位键盘",type:"warning",key:2}]),s=M({label:"关闭键盘",type:"error",key:0}),u=async()=>{n.create({title:"想启用该功能吗?",type:"info",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("该功能仅兼容")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("水龙(Amktiao)")])," ",P("的移植包,不兼容其他移植包作者,请确保当前使用的是水龙的移植包再启用该功能,确定要继续吗?")])]),positiveText:"确认启用",negativeText:"我再想想",onPositiveClick:()=>{e.showThirdPartySetting.amktiaoROMInterface=!0}})},d=async f=>{const[p,g]=await Re(new Promise((v,b)=>{f===1?n.create({title:"想切换为键盘链接模式吗?",type:"info",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("切换为")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("键盘连接状态")])," ",P("前,请确保设备先连接上键盘,否则会存在静电击穿 CPU 的风险,确定要继续吗?")])]),positiveText:"确定切换为键盘连接状态",negativeText:"我再想想",onPositiveClick:()=>{v("positiveClick")},onNegativeClick:()=>{b("negativeClick")}}):v("positiveClick")}));g&&sj(f).then(v=>{a.value=f,s.value=l.value[f]}).catch(v=>{n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"})})},c=async f=>{const[p,g]=await Re(ej(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await Re(tj());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=1)}else{const[v,b]=await Re(oj());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=0)}},h=async f=>{const[p,g]=await Re(rj(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await Re(ij());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=1}else{const[v,b]=await Re(aj());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=0}};return ut(async()=>{if(e.hasPenUpdateControl){const[,f]=await Re(JV());Number(f)&&(r.value=1)}if(e.hasPenEnableControl){const[,f]=await Re(nj());Number(f)&&(i.value=1)}if(e.hasKeyboardControl){const[,f]=await Re(lj());if(f){const p=Number(f);a.value=p,s.value=l.value[p]}}}),{currentPenUpdate:r,currentPenEnable:i,currentKeyboardMode:a,keyboardModeOptions:l,currentKeyboardModeSelect:s,changeKeyboardMode:d,changePenUpdateMode:c,changePenEnableMode:h,enableSetting:u}}const mm=e=>{const t=/([A-Za-z0-9+/=]{16,})/g,o=e.match(t);return o&&o.length>0?o[0]:null},ko=(e,t)=>t?`${t}(${e})`:e,jj=e=>{const t={};return e.split(` -`).forEach(o=>{if(o=o.trim(),o&&!o.startsWith("#")){const[n,r]=o.split("=");n&&r&&(t[n.trim()]=r.trim())}}),t},Wj=e=>e?e==="*:0"?"VIEW_POLICY_DEFAULT":e==="*:1"?"VIEW_POLICY_STRETCH":e==="*:2"?"VIEW_POLICY_AUTO_COLUMNS":e==="*:6"?"VIEW_POLICY_FLOAT":"CUSTOM_VIEW_POLICY":"UNDEFINED_VIEW_POLICY",hf=(e,t,o)=>{var i;const n=t?(i=t.supportModes)==null?void 0:i.split(","):null,r={};return e&&!e.fullRule&&(r.embeddedEnable=o==="embedded"),t&&(n!=null&&n.includes("full")&&(r.ratio_fullScreenEnable=o==="fullScreen",e&&e.hasOwnProperty("fullRule")&&(r.fullScreenEnable=!0)),r.hasOwnProperty("fullScreen")||(r.fixedOrientationEnable=o==="fixedOrientation")),r},hS=(e,t)=>{var i;const o=(i=t==null?void 0:t.supportModes)==null?void 0:i.split(","),n=t==null?void 0:t.defaultSettings;let r="disabled";return t&&(r="fixedOrientation"),t&&t.hasOwnProperty("disable")&&t.disable&&(r="disabled"),t&&t.hasOwnProperty("supportModes")&&(o!=null&&o.includes("full"))&&(!n||n==="full")&&(r="fullScreen"),e&&!e.hasOwnProperty("fullRule")&&(!n||n==="ae")&&(r="embedded"),r},Cu=e=>{if(e==="disabled")return 0;if(e==="embedded")return 1;if(e==="fixedOrientation")return 2;if(e==="fullScreen")return 3;throw new Error("wrong error AppModeCode!")},pS=e=>AP(e,t=>typeof t=="string"?I0(t)==="true"?!0:I0(t)==="false"?!1:isNaN(Number(t))?t:Number(t):t),hn=(e,t,o,n=!1)=>{const r=new DOMParser;let i=r.parseFromString(e,"application/xml");if(n){let u=`<${t}> - - ${e} - -</${t}>`.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"");i=r.parseFromString(u,"application/xml")}const a=i.getElementsByTagName(o),l={};return Array.from(a).forEach(s=>{const u=s.getAttribute("name");if(u){const d={};Array.from(s.attributes).forEach(c=>{d[c.name]=c.value}),l[u]={name:u,...pS(d)}}}),l},ct=(e,t,o)=>{const n=r=>{let i="";if(!Object.keys(e))return i;for(const a in r)if(r.hasOwnProperty(a)){i+=` <${t}`;for(const[l,s]of Object.entries(r[a]))i+=` ${l}="${String(s)}"`;i+=` /> -`}return i};return o?`<?xml version="1.0" encoding="utf-8" standalone="yes" ?> -<${o}> -${n(e)}</${o}>`:n(e)},Hl=e=>OP(e,"name"),Zv=(e,t,o,n={},r={},i={})=>{const a=Et(),l=[];return new Set([...Object.keys(e),...Object.keys(t),...Object.keys(n),...Object.keys(r)]).forEach(u=>{var w;const d=n[u]??e[u],c=r[u]??t[u],h=i[u]??o[u],f=(w=c==null?void 0:c.supportModes)==null?void 0:w.split(",");c==null||c.defaultSettings;let p="disabled",g=d?!d.fullRule:!1,v=(f==null?void 0:f.includes("fo"))||c&&!c.hasOwnProperty("disable")||!1,b=(f==null?void 0:f.includes("full"))||!1,x=n[u]||r[u]||i[u]?"custom":"module";if(a.MIOSVersion&&a.MIOSVersion>=2)h?(p="disabled",h.fixedOrientationEnable&&(p="fixedOrientation"),h.ratio_fullScreenEnable&&(p="fullScreen"),h.embeddedEnable&&(p="embedded")):p=hS(d,c);else if(h!=null&&h.hasOwnProperty("embeddedEnable"))h.embeddedEnable&&d?p=d.fullRule?"fullScreen":"embedded":c&&(!c.hasOwnProperty("disable")||!c.disable)&&(p="fixedOrientation");else if(c&&(!c.hasOwnProperty("disable")||!c.disable)&&(p="fixedOrientation"),d){const A=d.hasOwnProperty("defaultSettings")&&d.defaultSettings;(!d.hasOwnProperty("defaultSettings")||A)&&(p=d.fullRule?"fullScreen":"embedded")}const k=Hl(d),C=Hl(c),_=Hl(h),R={name:u,settingMode:p,isSupportEmbedded:g,isSupportFixedOrientation:v,isSupportFullScreen:b,ruleMode:x,embeddedRules:k||void 0,fixedOrientationRule:C||void 0,settingRule:_||void 0};l.push(R)}),l},Xv=(e,t={},o={})=>{const n=[];return new Set([...Object.keys(e),...Object.keys(t)]).forEach(i=>{const a=t[i]?t[i]:e[i],l=o[i];let s="module";t[i]&&(s="custom");const u=Hl(l),d=Hl(a),c={name:i,ruleMode:s,settingMode:Wj(a.activityRule||""),autoUIRule:d||void 0,settingRule:u||void 0};n.push(c)}),n},Et=Wi("device",()=>{const e=M(),t=M(),o=M(),n=It({socName:"",socModel:"",display0Panel:"",memoryInfo:""}),r=M(),i=M(!1),a=M(),l=M(!1),s=M(!1),u=M(!1),d=M(!1),c=M(window.innerWidth),h=M(!1),f=M(""),p=M([]),g=M({}),v=M(""),b=M(""),x=M("Magisk"),k=M(!1),C=It({installed:!1,mode:void 0}),_=It({KSU:!1,KSU_VER:"",KSU_VER_CODE:0,KSU_KERNEL_VER_CODE:0,APATCH:!1,APATCH_VER_CODE:0,APATCH_VER:0,MAGISK_VER:"",MAGISK_VER_CODE:""}),R=It({sohQcom:0,sohMTK:0,sohXMPower:0,chargeFullDesign:0,chargeFull:0,cycleCount:0}),w=It({OS2_PAD_EMBEDDED_APP_MANAGER:!0,Hyper_OS_DOT_BLACK_LIST_MANAGER:!0,GAME_BOOSTER_RADIO_MANAGER:!0,GAME_BOOSTER_CUSTOM_RATIO:!1}),A=M(),$=M(!1),B=M(!1),U=M(!1),N=M(!1),K=M("autoRhythm"),H=M(!0),T=It([]),z=It({GameMode:!1,MIUIContentExt:!1,lowWebViewVersion:!1,patchModeAlert:!1}),F=It({amktiaoROMInterface:!1}),y=I(()=>T.length>0);async function re(){return new Promise(async(j,Z)=>{const[se,pe]=await Re(HV());se?(T.push({type:"getAndroidApplicationPackageNameListErr",title:"获取用户已安装的应用包名",msg:se}),Z(se)):(pe&&(p.value=pe==null?void 0:pe.split(",")),j(p.value))})}async function te(){const j=[Re(iV()),Re(pV()),Re(LV()),Re(GV()),Re(gV()),Re(kV()),Re(vV()),Re(bV()),Re(EV()),Re(xV()),Re(yV()),Re(CV()),Re(XV()),Re(YV()),Re(QV()),Re(uj()),Re(tV()),Re(oV()),Re(wj()),Re(Cj())],Z=await Promise.all(j),[[,se],[,pe],[,Se],[,he],[,fe],[,Ce],[,Y],[,O],[,ze],[,je],[,W],[,ee],[,ge],[,we],[,le],[,ne],[,ce],[,J],[,ie],[,de]]=Z;if(se!=null&&se.length||T.push({type:"moduleInfo",title:"模块信息",msg:"获取模块信息失败"}),se!=null&&se.length){const Ye=pS({...jj(se),dir:"/data/adb/modules/MIUI_MagicWindow+"});Ye.versionCode&&(r.value?r.value<Ye.versionCode&&(i.value=!0,r.value=Ye.versionCode):r.value=Ye.versionCode),a.value=Ye}if(f.value=pe||"",v.value=fe||"",b.value=Ce||"",Se!=null&&Se.length){const Ye=Se.split(",");_.KSU=Ye[0]==="true",_.KSU_VER=Ye[1],_.KSU_VER_CODE=parseInt(Ye[2],10),_.KSU_KERNEL_VER_CODE=parseInt(Ye[3],10),_.APATCH=Ye[4]==="true",_.APATCH_VER_CODE=parseInt(Ye[5],10),_.APATCH_VER=parseInt(Ye[6],10),_.MAGISK_VER=Ye[7],_.MAGISK_VER_CODE=Ye[8],_.KSU?x.value="KernelSU":_.APATCH?x.value="APatch":x.value="Magisk"}if(he){C.installed=!0;const[Ye,Le]=await Re(qV());Le==="whitelist"&&(C.mode="whitelist"),Ye&&(C.mode="blacklist")}ge&&(l.value=!0),we&&(s.value=!0),le&&(u.value=!0),ne&&(d.value=!0),R.sohQcom=Number(Y),R.sohMTK=Number(O),R.sohXMPower=Number(ze),R.chargeFullDesign=Number(je),R.chargeFull=Number(W),R.cycleCount=Number(ee),await re();const[ae,q]=await Re(YN());ae?T.push({type:"deviceCharacteristics",title:"设备类型",msg:ae}):e.value=q;const[ue,ve]=await Re(mV());ue?T.push({type:"rotationSuggestions",title:"旋转建议提示按钮",msg:ue}):U.value=Number(ve)===1;const[De,Ke]=await Re(QN());De?T.push({type:"androidTargetSdk",title:"Android SDK版本",msg:De}):t.value=Ke,J&&(n.socModel=J),ce&&(n.socName=ce),ie&&(n.display0Panel=ie),de&&(n.memoryInfo=de);const[,Qe]=await Re(nV());Qe&&Qe==="true"&&($.value=!0);const[,st]=await Re(rV());st&&Qe==="true"&&(B.value=!0);const[,Xe]=await Re(JN());Xe&&(o.value=Xe);const[,pt]=await Re(eV());pt&&(A.value=pt),T.length||(H.value=!1)}return{deviceCharacteristics:e,isNeedShowErrorModal:y,androidTargetSdk:t,MIOSVersion:o,shamikoInfo:C,moduleInfo:a,systemVersion:v,systemPreVersion:b,deviceName:f,deviceInfo:n,batteryInfo:R,lastVersionCode:r,needReloadData:i,smartFocusIO:A,showRotationSuggestions:U,installedAndroidApplicationPackageNameList:p,getAndroidApplicationPackageNameList:re,miuiCompatEnable:$,miuiAppCompatEnable:B,installedAppNameList:g,skipConfirm:z,showThirdPartySetting:F,currentRootManager:x,rootManagerInfo:_,errorLogging:T,loading:H,isDarkMode:N,windowWidth:c,rhythmMode:K,initDefault:te,ABTestInfo:w,hasPenUpdateControl:l,hasPenEnableControl:s,hasKeyboardControl:u,hasNeedUpdateModule:k,enabledMiuiDesktopMode:d,isEnableShowNotificationIconNum:h}},{persist:{pick:["skipConfirm","installedAndroidApplicationPackageNameList","isDarkMode","rhythmMode","ABTestInfo","installedAppNameList","lastVersionCode","showThirdPartySetting"]}});function mS(){const e=I(()=>t.miuiCompatEnable&&t.miuiAppCompatEnable&&t.androidTargetSdk&&t.androidTargetSdk>31),t=Et();return ut(()=>{}),{isSupportGameMode:e}}function Uj(){const e=M(!1);return ut(()=>{VV().then(t=>{t==="exists"&&(e.value=!0)})}),{isInstallMIUIContentExtension:e}}const Kj={class:"fixed inset-0 flex"},Gj={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},qj={class:"flex flex-1 flex-col"},Zj={role:"list",class:"flex flex-1 flex-col gap-y-7"},Xj={role:"list",class:"-mx-2 space-y-1"},Yj={role:"list",class:"-mx-2 mt-2 space-y-1"},Qj={class:"truncate"},Jj={class:"mt-auto"},eW={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col"},tW={class:"flex flex-1 flex-col"},oW={role:"list",class:"flex flex-1 flex-col gap-y-7"},nW={role:"list",class:"-mx-2 space-y-1"},rW={role:"list",class:"-mx-2 mt-2 space-y-1"},iW={class:"truncate"},aW={class:"mt-auto"},lW={class:"min-h-screen lg:pl-72"},sW={class:"sticky top-0 z-40 backdrop-blur-md lg:mx-auto"},uW={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},dW={class:"flex h-full w-full content-center items-center justify-center"},cW={class:"mx-auto max-w-7xl px-4 pb-1 sm:px-6 lg:px-8"},fW=xe({__name:"Sidebar",setup(e){const t=B2();mS();const o=Et(),n=D2(),r=Uj(),i=I(()=>({theme:o.isDarkMode?io:Zt})),{message:a,modal:l}=po(["message","modal"],{configProviderProps:i}),s=It([{name:"应用横屏布局",routeName:"home",href:"/",icon:qN},{name:"应用布局优化",routeName:"autoui",isShow(){return o.androidTargetSdk&&o.androidTargetSdk>=33},href:"/autoui",icon:GN},{name:"游戏显示布局",routeName:"game-booster",href:"/game-booster",isShow(){return o.androidTargetSdk&&o.androidTargetSdk>=32&&n.hasGameBoosterDataBase},icon:WN},{name:"传送门",async click(){if(!r.isInstallMIUIContentExtension.value){await navigator.clipboard.writeText("https://caiyun.139.com/m/i?135CdxVMTx4nf"),l.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("未检测到系统存在传送门,请先通过模块修补传送门再进入~")]),S("p",null,[P("已经复制模块下载链接到剪切板了,请务必选择固化并修复传送门~")])]),negativeText:"确定"});return}l.create({title:"确认打开传送门吗?",type:"info",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("即将打开")," ",S("span",{class:`font-bold ${o.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("传送门")])," ",P("管理界面,确定要继续吗?")])]),positiveText:"确定打开",negativeText:"我再想想",onPositiveClick:async()=>{jV().then(h=>{l.create({title:"已开启",type:"success",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("好耶OwO~")]),S("p",null,[P("已经成功开启")," ",S("span",{class:`font-bold ${o.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("传送门")])," ",P("的管理界面了~")])]),positiveText:"确定"})},h=>{l.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>S("p",null,[P("出现异常,无法正常打开传送门QwQ,详细问题可浏览日志记录~")]),negativeText:"确定"})})}})},icon:UN},{name:"百宝箱",routeName:"tools",href:"/tools",icon:Kv,isShow(){return!1}},{name:"窗口控制器",routeName:"dot-black-list",href:"/dot-black-list",isShow(){return o.MIOSVersion&&o.MIOSVersion>=1},icon:ZN},{name:"精选应用",routeName:"appStore",href:"/appStore",icon:Kv},{name:"日志记录",routeName:"logs",href:"/logs",icon:jN},{name:"新春彩蛋",routeName:"eggs",href:"/eggs",icon:()=>S(lt("n-icon"),null,{default:()=>[S("img",{src:"/images/icons/happy_new_year.png"},null)]})}]),u=[{id:1,name:"模块首页",href:"/embedded-webview?url=https://hyper-magic-window.sothx.com",initial:"H",current:!1},{id:2,name:"打赏",href:"/embedded-webview?url=https://hyper-magic-window.sothx.com/donation.html",initial:"D",current:!1}],d=M(!1),c=()=>{o.windowWidth=window.innerWidth};return ut(()=>{window.addEventListener("resize",c)}),Xt(()=>{window.removeEventListener("resize",c)}),(h,f)=>(lt("n-badge"),Fe(),Te("div",null,[S(E(eS),{as:"template",show:d.value},{default:oe(()=>[S(E(BN),{as:"div",class:"relative z-50 lg:hidden",onClose:f[1]||(f[1]=p=>d.value=!1)},{default:oe(()=>[S(E(Ou),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:oe(()=>f[3]||(f[3]=[L("div",{class:"fixed inset-0 bg-zinc-900/80"},null,-1)])),_:1}),L("div",Kj,[S(E(Ou),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:oe(()=>[S(E(DN),{class:ye(["relative mr-16 flex w-full max-w-xs flex-1",E(o).isDarkMode?"bg-zinc-900":"bg-white"])},{default:oe(()=>[S(E(Ou),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:oe(()=>[L("div",Gj,[L("button",{type:"button",class:"-m-2.5 p-2.5",onClick:f[0]||(f[0]=p=>d.value=!1)},[f[4]||(f[4]=L("span",{class:"sr-only"},"Close sidebar",-1)),S(E(XN),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),L("div",{class:ye(["flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-4",E(o).isDarkMode?"bg-[#151515]":"bg-[#f6f6f6]"])},[f[6]||(f[6]=L("div",{class:"flex h-2 shrink-0 items-center"},null,-1)),L("nav",qj,[L("ul",Zj,[L("li",null,[L("ul",Xj,[(Fe(!0),Te(ft,null,xa(s,p=>(Fe(),Te("li",{key:p.name},[Po((Fe(),Ht(Js(p.href&&p.routeName?"RouterLink":"a"),bo({ref_for:!0},p.href&&p.routeName?{to:p.href}:{href:"javascript:void(0)"},{onClick:g=>p.click&&p.click(),class:[p.routeName===E(t).name?E(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":E(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"]}),{default:oe(()=>[(Fe(),Ht(Js(p.icon),{class:ye([p.routeName===E(t).name?E(o).isDarkMode?"text-teal-400":"text-teal-600":E(o).isDarkMode?"text-gray-500 group-hover:text-teal-400":"text-gray-400 group-hover:text-teal-600","h-6 w-6 shrink-0"]),"aria-hidden":"true"},null,8,["class"])),P(" "+it(p.name),1)]),_:2},1040,["onClick","class"])),[[bn,p.isShow?p.isShow():!0]])]))),128))])]),L("li",null,[L("div",{class:ye(["text-xs font-semibold leading-6",E(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),L("ul",Yj,[(Fe(),Te(ft,null,xa(u,p=>L("li",{key:p.name},[S(E(Cl),{to:p.href,class:ye([p.href===E(t).fullPath?E(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":E(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:oe(()=>[L("span",{class:ye([p.href===E(t).fullPath?E(o).isDarkMode?"border-teal-400 text-teal-400":"border-teal-600 text-teal-600":E(o).isDarkMode?"border-gray-700 text-gray-500 group-hover:border-teal-400 group-hover:text-teal-400":"border-gray-200 text-gray-400 group-hover:border-teal-600 group-hover:text-teal-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white text-[0.625rem] font-medium"])},it(p.initial),3),L("span",Qj,it(p.name),1)]),_:2},1032,["to","class"])])),64))])]),L("li",Jj,[S(E(Cl),{to:"/settings",class:ye([E(t).name==="settings"?E(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":E(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group-mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:oe(()=>[S(E(Uv),{class:"h-6 w-6 shrink-0","aria-hidden":"true"}),f[5]||(f[5]=P(" 模块设置 "))]),_:1},8,["class"])])])])],2)]),_:1},8,["class"])]),_:1})])]),_:1})]),_:1},8,["show"]),L("div",eW,[L("div",{class:ye(["flex grow flex-col gap-y-5 overflow-y-auto border-r",E(o).isDarkMode?"border-gray-700 bg-[#151515]":"border-gray-200 bg-[#f6f6f6]","px-6 pb-4"])},[f[8]||(f[8]=L("div",{class:"flex h-10 shrink-0 items-center"},null,-1)),L("nav",tW,[L("ul",oW,[L("li",null,[L("ul",nW,[(Fe(!0),Te(ft,null,xa(s,p=>(Fe(),Te("li",{key:p.name},[!p.isShow||p.isShow()?(Fe(),Ht(Js(p.href&&p.routeName?"RouterLink":"a"),bo({key:0,ref_for:!0},p.href&&p.routeName?{to:p.href}:{href:"javascript:void(0)"},{onClick:g=>p.click&&p.click(),class:[p.routeName===E(t).name?E(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":E(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"]}),{default:oe(()=>[(Fe(),Ht(Js(p.icon),{class:ye([p.routeName===E(t).name?E(o).isDarkMode?"text-teal-400":"text-teal-600":E(o).isDarkMode?"text-gray-500 group-hover:text-teal-400":"text-gray-400 group-hover:text-teal-600","h-6 w-6 shrink-0"]),"aria-hidden":"true"},null,8,["class"])),P(" "+it(p.name),1)]),_:2},1040,["onClick","class"])):ot("",!0)]))),128))])]),L("li",null,[L("div",{class:ye(["text-xs font-semibold leading-6",E(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),L("ul",rW,[(Fe(),Te(ft,null,xa(u,p=>L("li",{key:p.name},[S(E(Cl),{to:p.href,class:ye([p.href===E(t).fullPath?E(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":E(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:oe(()=>[L("span",{class:ye([p.href===E(t).fullPath?E(o).isDarkMode?"border-teal-400 text-teal-400":"border-teal-600 text-teal-600":E(o).isDarkMode?"border-gray-700 text-gray-500 group-hover:border-teal-400 group-hover:text-teal-400":"border-gray-200 text-gray-400 group-hover:border-teal-600 group-hover:text-teal-600","flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white text-[0.625rem] font-medium"])},it(p.initial),3),L("span",iW,it(p.name),1)]),_:2},1032,["to","class"])])),64))])]),L("li",aW,[S(E(Cl),{to:"/settings",class:ye([E(t).name==="settings"?E(o).isDarkMode?"bg-[#232323] text-teal-400":"bg-[#E8E8E8] text-teal-600":E(o).isDarkMode?"text-gray-300 hover:bg-[#232323] hover:text-teal-400":"text-gray-700 hover:bg-[#E8E8E8] hover:text-teal-600","group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"])},{default:oe(()=>[S(E(Uv),{class:"h-6 w-6 shrink-0","aria-hidden":"true"}),f[7]||(f[7]=P(" 模块设置 "))]),_:1},8,["class"])])])])],2)]),L("div",lW,[L("div",sW,[L("div",{class:ye(["flex h-14 items-center gap-x-4 border-b",E(o).isDarkMode?"border-gray-700 bg-zinc-900/50":"border-gray-200 bg-white/50"])},[L("button",{type:"button",class:"m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:f[2]||(f[2]=p=>d.value=!0)},[f[9]||(f[9]=L("span",{class:"sr-only"},"Open sidebar",-1)),S(E(VN),{class:"h-6 w-6","aria-hidden":"true"})]),L("div",uW,[L("div",dW,[L("h1",{class:ye([E(o).isDarkMode?"text-gray-300":"text-gray-600","text-lg font-bold","text-h1 animated-bg bg-clip-text text-center text-transparent"]),style:{"background-image":`linear-gradient(\r - 101.22deg,\r - rgb(255, 182, 133) -18.32%,\r - rgb(255, 111, 29) 7.01%,\r - rgb(252, 181, 232) 41.59%,\r - rgb(135, 148, 255) 70.98%,\r - rgb(60, 112, 255) 91.35%,\r - rgb(60, 112, 255) 110.17%\r - )`}},"完美横屏应用计划 For Web UI",2),ot("",!0)]),f[10]||(f[10]=L("div",{class:"flex items-center gap-x-4 lg:gap-x-6"},null,-1))])],2)]),L("main",null,[L("div",cW,[xs(h.$slots,"default")])])])]))}}),gS=xe({__name:"ErrorModal",props:{modelValue:{type:Boolean},errorLogging:{}},setup(e,{emit:t}){const o=e;M(!1);const n=t,r=M(o.modelValue);at(()=>o.modelValue,a=>{r.value=a});const i=()=>{n("update:modelValue",!1)};return(a,l)=>{const s=lt("n-alert"),u=lt("n-card"),d=lt("n-modal");return Fe(),Ht(d,{onPositiveClick:i,onClose:i,style:{width:"600px"},title:"发生错误",type:"error","block-scroll":"true","positive-text":"确认",preset:"dialog","mask-closable":!0,show:o.modelValue},{default:oe(()=>[S(u,{bordered:!1},{default:oe(()=>[(Fe(!0),Te(ft,null,xa(o.errorLogging,c=>(Fe(),Ht(s,{title:`[发生错误] ${c.type}`,class:"mb-5",type:"error"},{default:oe(()=>[L("p",null,"错误描述:无法获取"+it(c.title),1),L("p",null,"错误详情:"+it(c.msg),1)]),_:2},1032,["title"]))),256))]),_:1})]),_:1},8,["show"])}}}),hW={class:"splash-screen"},pW=xe({__name:"SplashScreen",setup(e){return Et(),(t,o)=>(Fe(),Te("div",hW,o[0]||(o[0]=[L("div",{class:"flex h-full flex-col items-center justify-center"},[L("div",{class:"mt-[61px] bg-gradient-to-t from-[#242424] to-[#262626] bg-clip-text text-center text-[40px] font-[600] leading-[53px] text-black/50 mix-blend-color-burn tablet:mt-[75px] tablet:text-[64px] tablet:leading-[85px]"},"完美横屏应用计划"),L("div",{class:"mt-12 bg-gradient-to-t from-[#242424] to-[#262626] bg-clip-text text-center text-[20px] font-[600] leading-[27px] text-black/50 mix-blend-color-burn tablet:mt-[23px] tablet:text-[24px] tablet:font-[600] tablet:leading-[32px]"},"正在加载中,请稍等……")],-1)])))}}),vS=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},mW=vS(pW,[["__scopeId","data-v-1cac3c56"]]),gW="modulepreload",vW=function(e){return"/"+e},Yv={},_n=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(o.map(s=>{if(s=vW(s),s in Yv)return;Yv[s]=!0;const u=s.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":gW,u||(c.as="script"),c.crossOrigin="",c.href=s,l&&c.setAttribute("nonce",l),document.head.appendChild(c),u)return new Promise((h,f)=>{c.addEventListener("load",h),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return r.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},bW=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_rules_list.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},xW=()=>{const e="cat /product/etc/embedded_rules_list.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},yW=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/fixed_orientation_list.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},CW=()=>{const e="cat /product/etc/fixed_orientation_list.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},wW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},SW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},EW=()=>{const e="cat /data/system/users/0/embedded_setting_config.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},kW=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_setting_config.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},_W=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},bS=e=>_e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(`am compat reset-all ${e}`);n?o(i):t(r)}}),"resetApplicationCompats"),ba=e=>_e(new Promise(async(t,o)=>{{const n=[],r=[],i=Et();if(e.isPatchMode){const{errno:p,stdout:g,stderr:v}=await ke(`echo '${e.patchEmbeddedRulesListXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_rules_list.xml`);p?n.push({type:"patchEmbeddedRulesListXML",name:"[定制模式]平行窗口配置文件",message:v}):r.push({type:"patchEmbeddedRulesListXML",name:"[定制模式]平行窗口配置文件",message:"更新成功"});const{errno:b,stdout:x,stderr:k}=await ke(`echo '${e.patchFixedOrientationListXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/fixed_orientation_list.xml`);if(b?n.push({type:"patchFixedOrientationListXML",name:"[定制模式]信箱模式配置文件",message:k}):r.push({type:"patchixedOrientationListXML",name:"[定制模式]信箱模式配置文件",message:"更新成功"}),i.MIOSVersion&&i.MIOSVersion>=2){const{errno:C,stdout:_,stderr:R}=await ke(`echo '${e.patchEmbeddedSettingConfigXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_setting_config.xml`);C?n.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:R}):r.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:"更新成功"})}}const{errno:a,stdout:l,stderr:s}=await ke(`echo '${e.customEmbeddedRulesListXML}' > /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml`);a?n.push({type:"customEmbeddedRulesListXML",name:"[自定义规则]平行窗口配置文件",message:s}):r.push({type:"customEmbeddedRulesListXML",name:"[自定义规则]平行窗口配置文件",message:"更新成功"});const{errno:u,stdout:d,stderr:c}=await ke(`echo '${e.customFixedOrientationListXML}' > /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml`);if(u?n.push({type:"customFixedOrientationListXML",name:"[自定义规则]信箱模式配置文件",message:c}):r.push({type:"customFixedOrientationListXML",name:"[自定义规则]信箱模式配置文件",message:"更新成功"}),i.MIOSVersion&&i.MIOSVersion>=2){const{errno:p,stdout:g,stderr:v}=await ke(`echo '${e.settingConfigXML}' > /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml`);p?n.push({type:"settingConfigXML",name:"[自定义规则]应用横屏布局配置文件",message:v}):r.push({type:"settingConfigXML",name:"[自定义规则]应用横屏布局配置文件",message:"更新成功"})}else{const{errno:p,stdout:g,stderr:v}=await ke(`echo '${e.settingConfigXML}' > /data/system/users/0/embedded_setting_config.xml`);p?n.push({type:"settingConfigXML",name:"[系统]应用横屏布局配置文件",message:v}):r.push({type:"settingConfigXML",name:"[系统]应用横屏布局配置文件",message:"更新成功"})}if(e.setAppMode){const[p,g]=await Re(bS(e.setAppMode.name));p&&n.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:p}),g&&r.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:g})}const[h,f]=await Re(Jd("miui_embedding_window"));if(h&&n.push({type:"updateMiuiEmbeddingWindowRule",name:"[模块]重新载入模块应用横屏布局规则",message:h}),f&&r.push({type:"updateMiuiEmbeddingWindowRule",name:"[模块]重新载入模块应用横屏布局配置文件",message:f.split(` -`)}),e.switchAction){const{errno:p,stdout:g,stderr:v}=await ke(`cmd miui_embedding_window ${e.switchAction.action} ${e.switchAction.name}`);p?n.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.switchAction.action}的设置`,message:v}):r.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.switchAction.action}的设置`,message:g})}if(e.setAppMode){const{errno:p,stdout:g,stderr:v}=await ke(`cmd miui_embedding_window set-appMode ${e.setAppMode.name} ${e.setAppMode.action}`);p?n.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.setAppMode.name}的设置为${e.setAppMode.action}`,message:v}):r.push({type:"updateMiuiEmbeddingWindowSwitchAction",name:`[模块]更新${e.setAppMode.name}的设置${e.setAppMode.action}`,message:g})}n.length?o({type:"error",message:"发生错误,提交失败",errorLogging:n,successLogging:r}):t({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}})),FW=["com.lbe.security.miui","com.miui.player","com.miui.fm","com.miui.hybrid","com.miui.securitycenter","com.miui.compass","com.miui.contentextension","com.miui.misound","com.miui.voiceassist","com.lbe.security.miui","com.miui.securityadd"],RW=["com.miui.touchassistant","com.miui.whitenoise","com.tencent.mobileqq","com.tencent.mm","com.alibaba.android.rimet","com.coolapk.market","com.sina.weibo","com.baidu.tieba","com.xuetangx.ykt","io.github.vvb2060.magisk","com.topjohnwu.magisk","io.github.huskydg.magisk","io.github.a13e300.ksuwebui","me.weishu.kernelsu","me.bmax.apatch","com.dna.tools","com.coolapk.market","com.sevtinge.hyperceiler","com.github.kr328.clash.foss","com.github.kr328.clash","com.github.metacubex.clash.meta","com.rocket.e5b382b19324e0a","dev.miuiicons.pedroz","com.tencent.androidqqmail","com.jingdong.app.mall","com.tencent.wework","com.taobao.trip","com.fenbi.android.leo","com.duokan.reader","com.xiaomi.shop","com.xiaomi.smarthome","com.youdao.dict","com.netease.uu","com.lemon.lv","com.valvesoftware.android.steam.community","com.douban.book.reader","com.amazon.kindlefc","com.alicloud.databox","com.huawei.appmarket","com.huawei.smarthome","mark.via","com.fenbi.android.servant","com.fenbi.android.zhaojiao","com.eusoft.eudic","com.eusoft.ting.en","com.cnki.android.cnkimobile","com.zui.calculator","com.jd.app.reader","com.huajiao","com.youku.phone","com.tencent.qqlive","com.xiaomi.gamecenter","com.kugou.android","com.ss.android.ugc.aweme","com.ss.android.ugc.live","com.ss.android.ugc.aweme.lite","com.smile.gifmaker","com.kuaishou.nebula","com.bdatu.geography","com.ubestkid.beilehu.android","youqu.android.todesk","com.tencent.docs","com.github.metacubex.clash.meta","com.tencent.pao","com.estrongs.android.pop","com.adobe.reader","com.microsoft.skydrive","cn.com.langeasy.LangEasyLexis","cn.ticktick.task","com.google.earth","com.omarea.vtools","com.plan.kot32.tomatotime","com.farplace.qingzhuo","com.xiachufang","com.happyteam.dubbingshow","czh.mindnode","com.chrissen.card","top.onepix.timeblock","www.imxiaoyu.com.musiceditor","com.mmbox.xbrowser","com.lemon.lv","com.flyersoft.moonreader","com.flyersoft.moonreaderp","com.yikaobang.yixue","com.kwai.m2u","com.qiyi.video.pad","com.smile.gifmaker","com.baidu.baidutranslate","org.zwanoo.android.speedtest","com.xiwang.zaixian","com.yozo.office","com.taobao.taobao","cn.canva.editor","com.singularity.tiangong","com.mubu.app","chuxin.shimo.shimowendang","com.roblox.client","com.netease.cloudmusic","com.netease.mc.mi","com.netease.x19","com.netease.mc.huawei","com.netease.mc.vivo","com.netease.mc.oppo","com.netease.mc.honor","com.netease.mc.bilibili","com.netease.mc.nearme.gamecenter","com.netease.mc.aligames","com.netease.mc.lenovo","com.netease.mc.meta","com.netease.mc.baidu","com.netease.mc","com.netease.mctest","com.hicloud.browser","com.hihonor.health","com.ss.android.ugc.livelite","com.oray.sunlogin","com.microsoft.todos","com.jdjdc.jdfastjdc","com.google.android.apps.translate","com.adsk.sketchbook","com.pick.sketchbook","com.ihuman.recite","com.ctfile","com.quark.scanking","com.hunantv.imgo.activity","com.sohu.sohuvideo","com.wuba.town.client","com.yhqx.player","com.lixiangdong.mediaplayer","cn.ylkj.zmjh","com.yixinli.muse","com.antutu.ABenchMark","cn.honor.qinxuan","com.fenbi.android.zenglish.hd","com.huawei.videoeditor","com.huawei.genexcloud.speedtest","com.huawei.smarthome","com.huawei.ch18","com.hihonor.dz.reader","com.hihonor.health","com.hihonor.vmall","com.hihonor.magichome","com.hihonor.heartstudy","cn.ieway.evcapture","cn.ieway.evplayer2","com.aliyun.wuying.enterprise","com.jingdong.app.reader.campus","com.UCMobile","com.quark.browser","com.smzdm.client.android","com.baidu.netdisk","com.mfcloudcalculate.networkdisk","com.chinamobile.mcloud","info.muge.appshare","com.x7890.shortcutcreator","org.kde.kdeconnect_tp","com.tencent.weread","com.larus.nova","com.moonshot.kimichat","com.baidu.newapp","com.tencent.hunyuan.app.chat","jp.pokemon.pokemonsleep","com.heytap.headset","com.twitter.android","cn.jagat.main","com.furrybar.chat.app","me.ele","com.max.xiaoheihe","com.ruanmei.ithome","com.youdao.translator","com.netflix.NGP.MonumentValley3","com.ophone.reader.ui","studio.fountainhead.habicat","com.hihonor.appmarket","cn.wenyu.bodian","com.zte.smarthome","com.phoenix.read","com.bilibili.app.in","com.bilibili.app.blue","com.joey.colors.simple.c","com.hanfuhui","com.hurantech.cherrysleep","tech.caicheng.youshi","org.panda.words"],pf=[...FW,...RW],Hs=Wi("embedded",()=>{const e=M(!1),t=M(!1),o=M({}),n=M(!1),r=M({}),i=M({}),a=M({}),l=M({}),s=M({}),u=M({}),d=M({}),c=M({}),h=M({}),f=I(()=>{const H=Et(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...H.installedAndroidApplicationPackageNameList,...pf]),z=Object.entries(r.value).filter(([F])=>T.has(F));return Object.fromEntries(z)}),p=I(()=>{const H=Et(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...H.installedAndroidApplicationPackageNameList,...pf]),z=Object.entries(l.value).filter(([F])=>T.has(F));return Object.fromEntries(z)}),g=I(()=>{const H=Et(),T=new Set([...Object.keys(i.value),...Object.keys(s.value),...H.installedAndroidApplicationPackageNameList,...pf]),z=Object.entries(c.value).filter(([F])=>T.has(F));return Object.fromEntries(z)}),v=M([]),b=I(()=>{const H=Et(),T=new Set(H.installedAndroidApplicationPackageNameList);return v.value.reduce((F,y)=>(T.has(y.name)&&F.push(y.name),F),[])}),x=I(()=>{const H=Et(),T=new Set(H.installedAndroidApplicationPackageNameList);return v.value.reduce((F,y)=>{var re;return T.has(y.name)&&(re=y.fixedOrientationRule)!=null&&re.compatChange&&F.push(y.name),F},[])}),k=M(""),C=M(""),_=nC(H=>{k.value=H.trim().toLowerCase()},500);at(C,H=>{_(H)});const R=I(()=>{const H=v.value,T=Et(),z=new Set(T.installedAndroidApplicationPackageNameList),F=t.value,y=k.value,re=o.value,te=T.installedAppNameList;return H.reduce((j,Z)=>{const se=Z.name.trim().toLowerCase();te[Z.name]&&!Z.applicationName&&(Z.applicationName=te[Z.name]),re[Z.name]&&!Z.applicationName&&(Z.applicationName=re[Z.name]);const pe=Z.applicationName?Z.applicationName.toLowerCase():"";return!se.includes(y)&&!pe.includes(y)||F&&!z.has(Z.name)||j.push(Z),j},[]).sort((j,Z)=>j.ruleMode==="custom"&&Z.ruleMode!=="custom"?-1:j.ruleMode!=="custom"&&Z.ruleMode==="custom"?1:j.name.localeCompare(Z.name))}),w=I(()=>B.length>0),A=I(()=>v.value.length),$=M(!0),B=It([]),U=I(()=>new Set([...e.value?Object.keys(f.value):Object.keys(r.value),...e.value?Object.keys(p.value):Object.keys(l.value),...Object.keys(a.value),...Object.keys(u.value)]));function N(){const H=Et();v.value=Zv(e.value?f.value:r.value,e.value?p.value:l.value,H.MIOSVersion&&H.MIOSVersion>=2?e.value?g.value:c.value:d.value,a.value,u.value,h.value)}async function K(){const H=Et();$.value=!0;const z=(await _n(()=>import("./applicationName-_cS2S__9.js"),[])).default;o.value=z;const[F,y]=await Re(sV());F?B.push({type:"getIsPatchModeErr",title:"补丁模式",msg:F}):y==="true"?e.value=!0:e.value=!1;const re=[bW(),xW(),wW(),yW(),CW(),SW(),kW(),EW(),_W()],[[te,j],[Z,se],[pe,Se],[he,fe],[Ce,Y],[O,ze],[je,W],[ee,ge],[we,le]]=await Promise.all(re.map(ce=>Re(ce)));te&&(r.value={},B.push({type:"sourceEmbeddedRulesList",title:"[模块]平行窗口配置文件",msg:te})),j&&(r.value=hn(j,"package_config","package")),Z&&(i.value={},B.push({type:"SystemEmbeddedRulesList",title:"[系统]平行窗口配置文件",msg:Z})),se&&(i.value=hn(se,"package_config","package")),pe&&(a.value={}),Se&&(a.value=hn(Se,"package_config","package",!0),console.log(a.value,"customConfigEmbeddedRulesList.value")),he&&(l.value={},B.push({type:"sourceFixedOrientationList",title:"[模块]信箱模式配置文件",msg:he})),fe&&(l.value=hn(fe,"package_config","package")),Ce&&(s.value={}),Y&&(s.value=hn(Y,"package_config","package")),O&&(u.value={}),ze&&(u.value=hn(ze,"package_config","package",!0)),je&&(c.value={}),W&&(c.value=hn(W,"setting_rule","setting")),ee&&(d.value={}),ge&&(d.value=hn(ge,"setting_rule","setting")),we&&(h.value={}),le&&(h.value=hn(le,"setting_rule","setting",!0)),ea().info("deviceStore.MIOSVersion",H.MIOSVersion),v.value=Zv(e.value?f.value:r.value,e.value?p.value:l.value,H.MIOSVersion&&H.MIOSVersion>=2?e.value?g.value:c.value:d.value,a.value,u.value,h.value),B.length||($.value=!1,H.needReloadData&&e.value&&(n.value=!0))}return{sourceEmbeddedRulesList:r,sourceFixedOrientationList:l,patchEmbeddedRulesList:f,patchFixedOrientationList:p,patchEmbeddedSettingConfig:g,customConfigEmbeddedRulesList:a,customConfigFixedOrientationList:u,customConfigEmbeddedSettingConfig:h,filterSetAppModeAppList:b,filterResetAppCompatAppList:x,systemEmbeddedSettingConfig:d,systemEmbeddedRulesList:i,systemFixedOrientationList:s,mergeRuleList:v,filterInstalledApps:t,filterMergeRuleList:R,searchKeyWord:C,errorLogging:B,isNeedShowErrorModal:w,loading:$,ruleCount:A,allPackageName:U,applicationName:o,isPatchMode:e,initDefault:K,updateMergeRuleList:N,isNeedShowReloadPathModeDialog:n}},{persist:{pick:["filterInstalledApps"]}}),xS=Wi("font",()=>{const e=M("MiSans"),t=I(()=>`${e.value}, system-ui, sans-serif`);return{currentFont:e,setFont:n=>{e.value=n},currentFontFamily:t}},{persist:{pick:["currentFont"]}}),$W=()=>{const o=`echo "$(/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3 /data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db "SELECT dataId FROM cloud_all_data WHERE moduleName='MiuiFreeform';")"`;return new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await ke(o);if(i&&r(l),a)try{const s=a.split(` -`);n(s)}catch(s){r(s)}}})},PW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/dot_black_list.json";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);if(n)o(i);else if(r)try{t(JSON.parse(r))}catch{o("dot_black_list config is empty")}else o(null)}}),e)},MW=()=>{const e="/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3",t="/data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db";return new Promise(async(o,n)=>{{const[,r]=await Re($W());if(r){const i=async s=>{const u=`echo "$(${e} ${t} "SELECT productData FROM cloud_all_data WHERE dataId='${s}';")"`;return _e(new Promise(async(d,c)=>{const{errno:h,stdout:f,stderr:p}=await ke(u);if(h&&c(p),f)try{const g=JSON.parse(f);g.dot_black_list?d({dataId:Number(s),productData:g||{},dataList:g.dot_black_list||[]}):d({dataId:Number(s),productData:g||{},dataList:[]})}catch(g){c(g)}}),u)},[a,l]=await Re(Promise.all(r.map(s=>i(s))));a&&n(a),l&&o(l)}}})},AW=()=>{const e='ls /data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db &>/dev/null && echo "exists" || echo "not exists"';return new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):r==="exists"?t(r):o(r)}})},pX=e=>{const t="/data/adb/modules/MIUI_MagicWindow+/common/utils/sqlite3",o="/data/user_de/0/com.android.htmlviewer/databases/cloud_all_data.db",n=[],r=[];return _e(new Promise(async(i,a)=>{{const l=Array.from(new Set(e.customDotBlackList)),s=async c=>{const h=`echo '${JSON.stringify(c)}' > /data/adb/MIUI_MagicWindow+/config/dot_black_list.json`;return _e(new Promise(async(f,p)=>{const{errno:g,stdout:v,stderr:b}=await ke(h);g?(n.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:b}),p(b)):(r.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:"更新成功"}),f(v))}),h)},[u,d]=await Re(s(l));if(u)a(u);else{const c=e.sourceDotBlackList.map(g=>{const v=ya(g.productData);return v.dot_black_list=e.dotBlackList,{dataId:g.dataId,productData:v}}),h=async(g,v)=>{const b=`echo "$(${t} ${o} "UPDATE cloud_all_data SET productData='${JSON.stringify(v).replace(/"/g,'\\"')}' WHERE dataId='${g}'; SELECT changes();")"`;return _e(new Promise(async(x,k)=>{const{errno:C,stdout:_,stderr:R}=await ke(b);C?k(R):_==="1"?x(_):k(_)}),b)},[f,p]=await Re(Promise.all(c.map(g=>h(g.dataId,g.productData))));f&&a(f),p&&i({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}}}),"updateDotBlackList")},BW=Wi("dotBlackList",()=>{const e=M(!1),t=M([]),o=I(()=>{if(t.value.length===0)return[];const v=t.value[0].dataList,b=new Set(v);return t.value.slice(1).forEach(x=>{const k=new Set(x.dataList);for(const C of b)k.has(C)||b.delete(C)}),v.filter(x=>b.has(x))}),n=M([]),r=I(()=>{const b=Et().installedAppNameList,x=o.value.map(R=>{const w=n.value.includes(R),A=b[R]||a.value[R];return{name:R,applicationName:A,ruleMode:w?"custom":"system",status:!0}}),k=n.value.filter(R=>!o.value.includes(R)).map(R=>{const w=b[R]||a.value[R];return{name:R,applicationName:w,ruleMode:"custom",status:!1}}),C=Math.floor(x.length/2);return[...x.slice(0,C),...k,...x.slice(C)]}),i=I(()=>{const v=d.value.trim().toLowerCase(),b=r.value,x=Et();return b.reduce((k,C)=>{const _=C.name.trim().toLowerCase(),R=C.applicationName?C.applicationName.toLowerCase():"";if(!_.includes(v)&&!R.includes(v))return k;const w=new Set(x.installedAndroidApplicationPackageNameList);return e.value&&!w.has(C.name)||k.push(C),k},[]).sort((k,C)=>k.ruleMode==="custom"&&C.ruleMode!=="custom"?-1:k.ruleMode!=="custom"&&C.ruleMode==="custom"?1:k.name.localeCompare(C.name))}),a=M({}),l=M([]),s=I(()=>f.length>0),u=I(()=>l.value.length),d=M(""),c=M(!0),h=M(!1),f=It([]),p=I(()=>new Set([...n.value,...o.value]));async function g(){c.value=!0;const b=(await _n(()=>import("./applicationName-_cS2S__9.js"),[])).default;a.value=b;const[x,k]=await Re(AW());if(x&&(h.value=!1),k){h.value=!0;const[C,_]=await Re(MW());C&&(t.value=[]),_&&(t.value=_);const[R,w]=await Re(PW());R&&(n.value=[]),w&&(n.value=w),c.value=!1}}return{mergeRuleList:l,allPackageName:p,sourceDotBlackList:t,hasHTMLViewerCloudData:h,systemDotBlackList:o,customDotBlackList:n,mergeDotBlackList:r,filterMergeDotBlackList:i,applicationName:a,searchKeyWord:d,errorLogging:f,isNeedShowErrorModal:s,filterInstalledApps:e,loading:c,ruleCount:u,initDefault:g}},{persist:{pick:["filterInstalledApps"]}}),DW=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/autoui_list.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},TW=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/autoui_list.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},IW=()=>{const e="cat /data/system/users/0/autoui_setting_config.xml";return _e(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await ke(e);n?o(i):t(r)}}),e)},gl=e=>_e(new Promise(async(t,o)=>{{const n=[],r=[],{errno:i,stdout:a,stderr:l}=await ke(`echo '${e.customAutoUIListXML}' > /data/adb/MIUI_MagicWindow+/config/autoui_list.xml`);i?n.push({type:"customAutoUIListXML",name:"[自定义规则]应用布局优化配置文件",message:l}):r.push({type:"customAutoUIListXML",name:"[自定义规则]应用布局优化配置文件",message:"更新成功"});const{errno:s,stdout:u,stderr:d}=await ke(`echo '${e.settingConfigXML}' > /data/system/users/0/autoui_setting_config.xml`);s?n.push({type:"settingConfigXML",name:"[模块]应用布局优化配置文件",message:d}):r.push({type:"settingConfigXML",name:"[模块]应用布局优化配置文件",message:"更新成功"});const[c,h]=await Re(Jd("miui_auto_ui"));if(c&&n.push({type:"updateAutoUIRule",name:"[模块]重新载入模块应用布局优化规则",message:c}),h&&r.push({type:"updateAutoUIRule",name:"[模块]重新载入模块应用布局优化规则",message:h.split(` -`)}),e.reloadRuleAction){const{errno:f,stdout:p,stderr:g}=await ke(`cmd miui_auto_ui ${e.reloadRuleAction.action} ${e.reloadRuleAction.name}`);f?n.push({type:"updateMiuiAutoUIReloadAction",name:`[模块]更新${e.reloadRuleAction.name}的设置`,message:g}):r.push({type:"updateMiuiAutoUIReloadAction",name:`[模块]更新${e.reloadRuleAction.name}的设置`,message:p})}n.length?o({type:"error",message:"发生错误,提交失败",errorLogging:n,successLogging:r}):t({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}})),gm=Wi("autoui",()=>{const e=M(!1),t=M({}),o=M({}),n=M({}),r=M({}),i=M([]),a=I(()=>{const g=u.value.trim().toLowerCase(),v=i.value,b=Et(),x=b.installedAppNameList;return v.reduce((k,C)=>{const _=C.name.trim().toLowerCase();x[C.name]&&!C.applicationName&&(C.applicationName=x[C.name]),n.value[C.name]&&!C.applicationName&&(C.applicationName=n.value[C.name]);const R=C.applicationName?C.applicationName.toLowerCase():"";if(!_.includes(g)&&!R.includes(g))return k;const w=new Set(b.installedAndroidApplicationPackageNameList);return e.value&&!w.has(C.name)||k.push(C),k},[]).sort((k,C)=>k.ruleMode==="custom"&&C.ruleMode!=="custom"?-1:k.ruleMode!=="custom"&&C.ruleMode==="custom"?1:k.name.localeCompare(C.name))}),l=I(()=>c.length>0),s=I(()=>i.value.length),u=M(""),d=M(!0),c=It([]),h=I(()=>new Set([...Object.keys(t.value),...Object.keys(o.value)]));function f(){i.value=Xv(t.value,o.value,r.value)}async function p(){d.value=!0;const v=(await _n(()=>import("./applicationName-_cS2S__9.js"),[])).default;n.value=v;const[b,x]=await Re(DW());b&&c.push({type:"sourceAutoUIList",title:"[模块]应用布局优化配置文件",msg:b}),x&&(t.value=hn(x,"packageRules","package"));const[k,C]=await Re(TW());k||(o.value=hn(C,"packageRules","package",!0));const[_,R]=await Re(IW());_&&(r.value={}),R&&(r.value=hn(R,"setting_config","setting")),i.value=Xv(t.value,o.value,r.value),c.length||(d.value=!1)}return{sourceAutoUIList:t,customConfigAutoUIList:o,autoUISettingConfig:r,mergeRuleList:i,filterMergeRuleList:a,applicationName:n,searchKeyWord:u,errorLogging:c,isNeedShowErrorModal:l,updateMergeRuleList:f,filterInstalledApps:e,loading:d,ruleCount:s,allPackageName:h,initDefault:p}},{persist:{pick:["filterInstalledApps"]}}),zW=xe({__name:"App",setup(e){const t=Et(),o=ea(),n=D2(),r=I(()=>({theme:t.isDarkMode?io:Zt})),{message:i,modal:a}=po(["message","modal"],{configProviderProps:r}),l=Hs(),s=xS(),u=gm(),d=BW(),c=M(!1),h=M(!0);kt(p=>{!t.loading&&!l.loading&&(h.value=!1),(t.errorLogging.length||l.errorLogging.length)&&(h.value=!1),p(()=>{})}),at(()=>s.currentFont,(p,g)=>{p&&document.documentElement.style.setProperty("--global-font-family",s.currentFontFamily)},{immediate:!0}),at(()=>t.isNeedShowErrorModal,(p,g)=>{p&&(c.value=!0)},{immediate:!1});function f(){return!!window.matchMedia("(prefers-color-scheme: dark)").matches}return kt(p=>{const g=window.matchMedia("(prefers-color-scheme: dark)");t.rhythmMode==="autoRhythm"&&(t.isDarkMode=f());const v=b=>{t.rhythmMode==="autoRhythm"&&(t.isDarkMode=b.matches)};g.addEventListener("change",v),p(()=>{g.removeEventListener("change",v)})}),ut(async()=>{window.onerror=function(p,g,v,b,x){o&&o.error("[JavaScript Error]",p.toString())},window.addEventListener("unhandledrejection",function(p){o&&o.error("[JavaScript Promise Error]",p.reason.toString())}),await t.initDefault(),t.androidTargetSdk&&t.androidTargetSdk===30?a.create({title:"不适配说明",type:"error",preset:"dialog",content:()=>S("p",null,[P("Web UI 未对Android 11做适配,无法使用~")]),negativeText:"确定"}):(t.androidTargetSdk&&t.androidTargetSdk<=33&&!t.skipConfirm.lowWebViewVersion&&a.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("Web UI 强依赖部分较新内核的JavaScript API实现,为了确保模块正常工作,Android 13/12的小米设备可能需要升级系统内置WebView版本,请通过Google Play商店升级!")]),S("p",null,[P("下载地址:https://play.google.com/store/apps/details?id=com.google.android.webview")]),S("p",null,[P("如果下载的是Beta/Dev/Canary版本的WebView,则需要前往[开发者选项-WebView实现]进行切换~")])]),positiveText:"复制下载链接到剪切板",negativeText:"已升级,不再提醒",onPositiveClick:()=>{navigator.clipboard.writeText("https://play.google.com/store/apps/details?id=com.google.android.webview")},onNegativeClick:()=>{t.skipConfirm.lowWebViewVersion=!0}}),l.initDefault(),u.initDefault(),n.initDefault(),t.MIOSVersion&&t.MIOSVersion>=1&&d.initDefault())}),(p,g)=>{const v=lt("n-config-provider");return Fe(),Te("div",{class:ye(["app-container h-full",`${E(t).isDarkMode?"bg-zinc-900 theme-dark-mode":"bg-white"}`])},[S(v,{theme:E(t).isDarkMode?E(io):void 0},{default:oe(()=>[S(E(fW),null,{default:oe(()=>[S(E(A2))]),_:1}),S(gS,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=b=>c.value=b),errorLogging:E(t).errorLogging},null,8,["modelValue","errorLogging"]),h.value?(Fe(),Ht(mW,{key:0})):ot("",!0)]),_:1},8,["theme"])],2)}}}),OW=vS(zW,[["__scopeId","data-v-d3d3a0fe"]]),yS="/images/icons/all_app.png",sd="/images/icons/ai_icon.png";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const LW=4,Qv=0,Jv=1,HW=2;function Za(e){let t=e.length;for(;--t>=0;)e[t]=0}const NW=0,CS=1,VW=2,jW=3,WW=258,vm=29,Ns=256,us=Ns+1+vm,Ra=30,bm=19,wS=2*us+1,Ei=15,mf=16,UW=7,xm=256,SS=16,ES=17,kS=18,Rh=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Lu=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),KW=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GW=512,fr=new Array((us+2)*2);Za(fr);const Nl=new Array(Ra*2);Za(Nl);const ds=new Array(GW);Za(ds);const cs=new Array(WW-jW+1);Za(cs);const ym=new Array(vm);Za(ym);const ud=new Array(Ra);Za(ud);function gf(e,t,o,n,r){this.static_tree=e,this.extra_bits=t,this.extra_base=o,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}let FS,RS,$S;function vf(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const PS=e=>e<256?ds[e]:ds[256+(e>>>7)],fs=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Uo=(e,t,o)=>{e.bi_valid>mf-o?(e.bi_buf|=t<<e.bi_valid&65535,fs(e,e.bi_buf),e.bi_buf=t>>mf-e.bi_valid,e.bi_valid+=o-mf):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=o)},jn=(e,t,o)=>{Uo(e,o[t*2],o[t*2+1])},MS=(e,t)=>{let o=0;do o|=e&1,e>>>=1,o<<=1;while(--t>0);return o>>>1},qW=e=>{e.bi_valid===16?(fs(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},ZW=(e,t)=>{const o=t.dyn_tree,n=t.max_code,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,s=t.stat_desc.max_length;let u,d,c,h,f,p,g=0;for(h=0;h<=Ei;h++)e.bl_count[h]=0;for(o[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<wS;u++)d=e.heap[u],h=o[o[d*2+1]*2+1]+1,h>s&&(h=s,g++),o[d*2+1]=h,!(d>n)&&(e.bl_count[h]++,f=0,d>=l&&(f=a[d-l]),p=o[d*2],e.opt_len+=p*(h+f),i&&(e.static_len+=p*(r[d*2+1]+f)));if(g!==0){do{for(h=s-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[s]--,g-=2}while(g>0);for(h=s;h!==0;h--)for(d=e.bl_count[h];d!==0;)c=e.heap[--u],!(c>n)&&(o[c*2+1]!==h&&(e.opt_len+=(h-o[c*2+1])*o[c*2],o[c*2+1]=h),d--)}},AS=(e,t,o)=>{const n=new Array(Ei+1);let r=0,i,a;for(i=1;i<=Ei;i++)r=r+o[i-1]<<1,n[i]=r;for(a=0;a<=t;a++){let l=e[a*2+1];l!==0&&(e[a*2]=MS(n[l]++,l))}},XW=()=>{let e,t,o,n,r;const i=new Array(Ei+1);for(o=0,n=0;n<vm-1;n++)for(ym[n]=o,e=0;e<1<<Rh[n];e++)cs[o++]=n;for(cs[o-1]=n,r=0,n=0;n<16;n++)for(ud[n]=r,e=0;e<1<<Lu[n];e++)ds[r++]=n;for(r>>=7;n<Ra;n++)for(ud[n]=r<<7,e=0;e<1<<Lu[n]-7;e++)ds[256+r++]=n;for(t=0;t<=Ei;t++)i[t]=0;for(e=0;e<=143;)fr[e*2+1]=8,e++,i[8]++;for(;e<=255;)fr[e*2+1]=9,e++,i[9]++;for(;e<=279;)fr[e*2+1]=7,e++,i[7]++;for(;e<=287;)fr[e*2+1]=8,e++,i[8]++;for(AS(fr,us+1,i),e=0;e<Ra;e++)Nl[e*2+1]=5,Nl[e*2]=MS(e,5);FS=new gf(fr,Rh,Ns+1,us,Ei),RS=new gf(Nl,Lu,0,Ra,Ei),$S=new gf(new Array(0),KW,0,bm,UW)},BS=e=>{let t;for(t=0;t<us;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ra;t++)e.dyn_dtree[t*2]=0;for(t=0;t<bm;t++)e.bl_tree[t*2]=0;e.dyn_ltree[xm*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},DS=e=>{e.bi_valid>8?fs(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},eb=(e,t,o,n)=>{const r=t*2,i=o*2;return e[r]<e[i]||e[r]===e[i]&&n[t]<=n[o]},bf=(e,t,o)=>{const n=e.heap[o];let r=o<<1;for(;r<=e.heap_len&&(r<e.heap_len&&eb(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!eb(t,n,e.heap[r],e.depth));)e.heap[o]=e.heap[r],o=r,r<<=1;e.heap[o]=n},tb=(e,t,o)=>{let n,r,i=0,a,l;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+i++]&255,n+=(e.pending_buf[e.sym_buf+i++]&255)<<8,r=e.pending_buf[e.sym_buf+i++],n===0?jn(e,r,t):(a=cs[r],jn(e,a+Ns+1,t),l=Rh[a],l!==0&&(r-=ym[a],Uo(e,r,l)),n--,a=PS(n),jn(e,a,o),l=Lu[a],l!==0&&(n-=ud[a],Uo(e,n,l)));while(i<e.sym_next);jn(e,xm,t)},$h=(e,t)=>{const o=t.dyn_tree,n=t.stat_desc.static_tree,r=t.stat_desc.has_stree,i=t.stat_desc.elems;let a,l,s=-1,u;for(e.heap_len=0,e.heap_max=wS,a=0;a<i;a++)o[a*2]!==0?(e.heap[++e.heap_len]=s=a,e.depth[a]=0):o[a*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=s<2?++s:0,o[u*2]=1,e.depth[u]=0,e.opt_len--,r&&(e.static_len-=n[u*2+1]);for(t.max_code=s,a=e.heap_len>>1;a>=1;a--)bf(e,o,a);u=i;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],bf(e,o,1),l=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=l,o[u*2]=o[a*2]+o[l*2],e.depth[u]=(e.depth[a]>=e.depth[l]?e.depth[a]:e.depth[l])+1,o[a*2+1]=o[l*2+1]=u,e.heap[1]=u++,bf(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ZW(e,t),AS(o,s,e.bl_count)},ob=(e,t,o)=>{let n,r=-1,i,a=t[0*2+1],l=0,s=7,u=4;for(a===0&&(s=138,u=3),t[(o+1)*2+1]=65535,n=0;n<=o;n++)i=a,a=t[(n+1)*2+1],!(++l<s&&i===a)&&(l<u?e.bl_tree[i*2]+=l:i!==0?(i!==r&&e.bl_tree[i*2]++,e.bl_tree[SS*2]++):l<=10?e.bl_tree[ES*2]++:e.bl_tree[kS*2]++,l=0,r=i,a===0?(s=138,u=3):i===a?(s=6,u=3):(s=7,u=4))},nb=(e,t,o)=>{let n,r=-1,i,a=t[0*2+1],l=0,s=7,u=4;for(a===0&&(s=138,u=3),n=0;n<=o;n++)if(i=a,a=t[(n+1)*2+1],!(++l<s&&i===a)){if(l<u)do jn(e,i,e.bl_tree);while(--l!==0);else i!==0?(i!==r&&(jn(e,i,e.bl_tree),l--),jn(e,SS,e.bl_tree),Uo(e,l-3,2)):l<=10?(jn(e,ES,e.bl_tree),Uo(e,l-3,3)):(jn(e,kS,e.bl_tree),Uo(e,l-11,7));l=0,r=i,a===0?(s=138,u=3):i===a?(s=6,u=3):(s=7,u=4)}},YW=e=>{let t;for(ob(e,e.dyn_ltree,e.l_desc.max_code),ob(e,e.dyn_dtree,e.d_desc.max_code),$h(e,e.bl_desc),t=bm-1;t>=3&&e.bl_tree[_S[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},QW=(e,t,o,n)=>{let r;for(Uo(e,t-257,5),Uo(e,o-1,5),Uo(e,n-4,4),r=0;r<n;r++)Uo(e,e.bl_tree[_S[r]*2+1],3);nb(e,e.dyn_ltree,t-1),nb(e,e.dyn_dtree,o-1)},JW=e=>{let t=4093624447,o;for(o=0;o<=31;o++,t>>>=1)if(t&1&&e.dyn_ltree[o*2]!==0)return Qv;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Jv;for(o=32;o<Ns;o++)if(e.dyn_ltree[o*2]!==0)return Jv;return Qv};let rb=!1;const eU=e=>{rb||(XW(),rb=!0),e.l_desc=new vf(e.dyn_ltree,FS),e.d_desc=new vf(e.dyn_dtree,RS),e.bl_desc=new vf(e.bl_tree,$S),e.bi_buf=0,e.bi_valid=0,BS(e)},TS=(e,t,o,n)=>{Uo(e,(NW<<1)+(n?1:0),3),DS(e),fs(e,o),fs(e,~o),o&&e.pending_buf.set(e.window.subarray(t,t+o),e.pending),e.pending+=o},tU=e=>{Uo(e,CS<<1,3),jn(e,xm,fr),qW(e)},oU=(e,t,o,n)=>{let r,i,a=0;e.level>0?(e.strm.data_type===HW&&(e.strm.data_type=JW(e)),$h(e,e.l_desc),$h(e,e.d_desc),a=YW(e),r=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=r&&(r=i)):r=i=o+5,o+4<=r&&t!==-1?TS(e,t,o,n):e.strategy===LW||i===r?(Uo(e,(CS<<1)+(n?1:0),3),tb(e,fr,Nl)):(Uo(e,(VW<<1)+(n?1:0),3),QW(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),tb(e,e.dyn_ltree,e.dyn_dtree)),BS(e),n&&DS(e)},nU=(e,t,o)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=o,t===0?e.dyn_ltree[o*2]++:(e.matches++,t--,e.dyn_ltree[(cs[o]+Ns+1)*2]++,e.dyn_dtree[PS(t)*2]++),e.sym_next===e.sym_end);var rU=eU,iU=TS,aU=oU,lU=nU,sU=tU,uU={_tr_init:rU,_tr_stored_block:iU,_tr_flush_block:aU,_tr_tally:lU,_tr_align:sU};const dU=(e,t,o,n)=>{let r=e&65535|0,i=e>>>16&65535|0,a=0;for(;o!==0;){a=o>2e3?2e3:o,o-=a;do r=r+t[n++]|0,i=i+r|0;while(--a);r%=65521,i%=65521}return r|i<<16|0};var hs=dU;const cU=()=>{let e,t=[];for(var o=0;o<256;o++){e=o;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[o]=e}return t},fU=new Uint32Array(cU()),hU=(e,t,o,n)=>{const r=fU,i=n+o;e^=-1;for(let a=n;a<i;a++)e=e>>>8^r[(e^t[a])&255];return e^-1};var yo=hU,Hi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ta={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:pU,_tr_stored_block:Ph,_tr_flush_block:mU,_tr_tally:Zr,_tr_align:gU}=uU,{Z_NO_FLUSH:Xr,Z_PARTIAL_FLUSH:vU,Z_FULL_FLUSH:bU,Z_FINISH:mn,Z_BLOCK:ib,Z_OK:Eo,Z_STREAM_END:ab,Z_STREAM_ERROR:Gn,Z_DATA_ERROR:xU,Z_BUF_ERROR:xf,Z_DEFAULT_COMPRESSION:yU,Z_FILTERED:CU,Z_HUFFMAN_ONLY:wu,Z_RLE:wU,Z_FIXED:SU,Z_DEFAULT_STRATEGY:EU,Z_UNKNOWN:kU,Z_DEFLATED:ec}=ta,_U=9,FU=15,RU=8,$U=29,PU=256,Mh=PU+1+$U,MU=30,AU=19,BU=2*Mh+1,DU=15,$t=3,Ur=258,qn=Ur+$t+1,TU=32,za=42,Cm=57,Ah=69,Bh=73,Dh=91,Th=103,ki=113,Sl=666,zo=1,Xa=2,Ni=3,Ya=4,IU=3,_i=(e,t)=>(e.msg=Hi[t],t),lb=e=>e*2-(e>4?9:0),jr=e=>{let t=e.length;for(;--t>=0;)e[t]=0},zU=e=>{let t,o,n,r=e.w_size;t=e.hash_size,n=t;do o=e.head[--n],e.head[n]=o>=r?o-r:0;while(--t);t=r,n=t;do o=e.prev[--n],e.prev[n]=o>=r?o-r:0;while(--t)};let OU=(e,t,o)=>(t<<e.hash_shift^o)&e.hash_mask,Yr=OU;const Qo=e=>{const t=e.state;let o=t.pending;o>e.avail_out&&(o=e.avail_out),o!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+o),e.next_out),e.next_out+=o,t.pending_out+=o,e.total_out+=o,e.avail_out-=o,t.pending-=o,t.pending===0&&(t.pending_out=0))},nn=(e,t)=>{mU(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Qo(e.strm)},Dt=(e,t)=>{e.pending_buf[e.pending++]=t},vl=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Ih=(e,t,o,n)=>{let r=e.avail_in;return r>n&&(r=n),r===0?0:(e.avail_in-=r,t.set(e.input.subarray(e.next_in,e.next_in+r),o),e.state.wrap===1?e.adler=hs(e.adler,t,r,o):e.state.wrap===2&&(e.adler=yo(e.adler,t,r,o)),e.next_in+=r,e.total_in+=r,r)},IS=(e,t)=>{let o=e.max_chain_length,n=e.strstart,r,i,a=e.prev_length,l=e.nice_match;const s=e.strstart>e.w_size-qn?e.strstart-(e.w_size-qn):0,u=e.window,d=e.w_mask,c=e.prev,h=e.strstart+Ur;let f=u[n+a-1],p=u[n+a];e.prev_length>=e.good_match&&(o>>=2),l>e.lookahead&&(l=e.lookahead);do if(r=t,!(u[r+a]!==p||u[r+a-1]!==f||u[r]!==u[n]||u[++r]!==u[n+1])){n+=2,r++;do;while(u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&u[++n]===u[++r]&&n<h);if(i=Ur-(h-n),n=h-Ur,i>a){if(e.match_start=t,a=i,i>=l)break;f=u[n+a-1],p=u[n+a]}}while((t=c[t&d])>s&&--o!==0);return a<=e.lookahead?a:e.lookahead},Oa=e=>{const t=e.w_size;let o,n,r;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-qn)&&(e.window.set(e.window.subarray(t,t+t-n),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),zU(e),n+=t),e.strm.avail_in===0)break;if(o=Ih(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=o,e.lookahead+e.insert>=$t)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=Yr(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=Yr(e,e.ins_h,e.window[r+$t-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<$t)););}while(e.lookahead<qn&&e.strm.avail_in!==0)},zS=(e,t)=>{let o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,r,i,a=0,l=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i||(i=e.strm.avail_out-i,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n<o&&(n===0&&t!==mn||t===Xr||n!==r+e.strm.avail_in)))break;a=t===mn&&n===r+e.strm.avail_in?1:0,Ph(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Qo(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Ih(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(a===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?Ya:t!==Xr&&t!==mn&&e.strm.avail_in===0&&e.strstart===e.block_start?Xa:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(Ih(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===mn)&&t!==Xr&&e.strm.avail_in===0&&r<=i)&&(n=r>i?i:r,a=t===mn&&e.strm.avail_in===0&&n===r?1:0,Ph(e,e.block_start,n,a),e.block_start+=n,Qo(e.strm)),a?Ni:zo)},yf=(e,t)=>{let o,n;for(;;){if(e.lookahead<qn){if(Oa(e),e.lookahead<qn&&t===Xr)return zo;if(e.lookahead===0)break}if(o=0,e.lookahead>=$t&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+$t-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),o!==0&&e.strstart-o<=e.w_size-qn&&(e.match_length=IS(e,o)),e.match_length>=$t)if(n=Zr(e,e.strstart-e.match_start,e.match_length-$t),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=$t){e.match_length--;do e.strstart++,e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+$t-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+1]);else n=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(nn(e,!1),e.strm.avail_out===0))return zo}return e.insert=e.strstart<$t-1?e.strstart:$t-1,t===mn?(nn(e,!0),e.strm.avail_out===0?Ni:Ya):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?zo:Xa},ha=(e,t)=>{let o,n,r;for(;;){if(e.lookahead<qn){if(Oa(e),e.lookahead<qn&&t===Xr)return zo;if(e.lookahead===0)break}if(o=0,e.lookahead>=$t&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+$t-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=$t-1,o!==0&&e.prev_length<e.max_lazy_match&&e.strstart-o<=e.w_size-qn&&(e.match_length=IS(e,o),e.match_length<=5&&(e.strategy===CU||e.match_length===$t&&e.strstart-e.match_start>4096)&&(e.match_length=$t-1)),e.prev_length>=$t&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-$t,n=Zr(e,e.strstart-1-e.prev_match,e.prev_length-$t),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=Yr(e,e.ins_h,e.window[e.strstart+$t-1]),o=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=$t-1,e.strstart++,n&&(nn(e,!1),e.strm.avail_out===0))return zo}else if(e.match_available){if(n=Zr(e,0,e.window[e.strstart-1]),n&&nn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return zo}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Zr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<$t-1?e.strstart:$t-1,t===mn?(nn(e,!0),e.strm.avail_out===0?Ni:Ya):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?zo:Xa},LU=(e,t)=>{let o,n,r,i;const a=e.window;for(;;){if(e.lookahead<=Ur){if(Oa(e),e.lookahead<=Ur&&t===Xr)return zo;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=$t&&e.strstart>0&&(r=e.strstart-1,n=a[r],n===a[++r]&&n===a[++r]&&n===a[++r])){i=e.strstart+Ur;do;while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<i);e.match_length=Ur-(i-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=$t?(o=Zr(e,1,e.match_length-$t),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(o=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),o&&(nn(e,!1),e.strm.avail_out===0))return zo}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?Ni:Ya):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?zo:Xa},HU=(e,t)=>{let o;for(;;){if(e.lookahead===0&&(Oa(e),e.lookahead===0)){if(t===Xr)return zo;break}if(e.match_length=0,o=Zr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,o&&(nn(e,!1),e.strm.avail_out===0))return zo}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?Ni:Ya):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?zo:Xa};function Hn(e,t,o,n,r){this.good_length=e,this.max_lazy=t,this.nice_length=o,this.max_chain=n,this.func=r}const El=[new Hn(0,0,0,0,zS),new Hn(4,4,8,4,yf),new Hn(4,5,16,8,yf),new Hn(4,6,32,32,yf),new Hn(4,4,16,16,ha),new Hn(8,16,32,32,ha),new Hn(8,16,128,128,ha),new Hn(8,32,128,256,ha),new Hn(32,128,258,1024,ha),new Hn(32,258,258,4096,ha)],NU=e=>{e.window_size=2*e.w_size,jr(e.head),e.max_lazy_match=El[e.level].max_lazy,e.good_match=El[e.level].good_length,e.nice_match=El[e.level].nice_length,e.max_chain_length=El[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=$t-1,e.match_available=0,e.ins_h=0};function VU(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ec,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(BU*2),this.dyn_dtree=new Uint16Array((2*MU+1)*2),this.bl_tree=new Uint16Array((2*AU+1)*2),jr(this.dyn_ltree),jr(this.dyn_dtree),jr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(DU+1),this.heap=new Uint16Array(2*Mh+1),jr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Mh+1),jr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Vs=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==za&&t.status!==Cm&&t.status!==Ah&&t.status!==Bh&&t.status!==Dh&&t.status!==Th&&t.status!==ki&&t.status!==Sl?1:0},OS=e=>{if(Vs(e))return _i(e,Gn);e.total_in=e.total_out=0,e.data_type=kU;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Cm:t.wrap?za:ki,e.adler=t.wrap===2?0:1,t.last_flush=-2,pU(t),Eo},LS=e=>{const t=OS(e);return t===Eo&&NU(e.state),t},jU=(e,t)=>Vs(e)||e.state.wrap!==2?Gn:(e.state.gzhead=t,Eo),HS=(e,t,o,n,r,i)=>{if(!e)return Gn;let a=1;if(t===yU&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),r<1||r>_U||o!==ec||n<8||n>15||t<0||t>9||i<0||i>SU||n===8&&a!==1)return _i(e,Gn);n===8&&(n=9);const l=new VU;return e.state=l,l.strm=e,l.status=za,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+$t-1)/$t),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=t,l.strategy=i,l.method=o,LS(e)},WU=(e,t)=>HS(e,t,ec,FU,RU,EU),UU=(e,t)=>{if(Vs(e)||t>ib||t<0)return e?_i(e,Gn):Gn;const o=e.state;if(!e.output||e.avail_in!==0&&!e.input||o.status===Sl&&t!==mn)return _i(e,e.avail_out===0?xf:Gn);const n=o.last_flush;if(o.last_flush=t,o.pending!==0){if(Qo(e),e.avail_out===0)return o.last_flush=-1,Eo}else if(e.avail_in===0&&lb(t)<=lb(n)&&t!==mn)return _i(e,xf);if(o.status===Sl&&e.avail_in!==0)return _i(e,xf);if(o.status===za&&o.wrap===0&&(o.status=ki),o.status===za){let r=ec+(o.w_bits-8<<4)<<8,i=-1;if(o.strategy>=wu||o.level<2?i=0:o.level<6?i=1:o.level===6?i=2:i=3,r|=i<<6,o.strstart!==0&&(r|=TU),r+=31-r%31,vl(o,r),o.strstart!==0&&(vl(o,e.adler>>>16),vl(o,e.adler&65535)),e.adler=1,o.status=ki,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(o.status===Cm){if(e.adler=0,Dt(o,31),Dt(o,139),Dt(o,8),o.gzhead)Dt(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),Dt(o,o.gzhead.time&255),Dt(o,o.gzhead.time>>8&255),Dt(o,o.gzhead.time>>16&255),Dt(o,o.gzhead.time>>24&255),Dt(o,o.level===9?2:o.strategy>=wu||o.level<2?4:0),Dt(o,o.gzhead.os&255),o.gzhead.extra&&o.gzhead.extra.length&&(Dt(o,o.gzhead.extra.length&255),Dt(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=yo(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=Ah;else if(Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,0),Dt(o,o.level===9?2:o.strategy>=wu||o.level<2?4:0),Dt(o,IU),o.status=ki,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(o.status===Ah){if(o.gzhead.extra){let r=o.pending,i=(o.gzhead.extra.length&65535)-o.gzindex;for(;o.pending+i>o.pending_buf_size;){let l=o.pending_buf_size-o.pending;if(o.pending_buf.set(o.gzhead.extra.subarray(o.gzindex,o.gzindex+l),o.pending),o.pending=o.pending_buf_size,o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex+=l,Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0,i-=l}let a=new Uint8Array(o.gzhead.extra);o.pending_buf.set(a.subarray(o.gzindex,o.gzindex+i),o.pending),o.pending+=i,o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=Bh}if(o.status===Bh){if(o.gzhead.name){let r=o.pending,i;do{if(o.pending===o.pending_buf_size){if(o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0}o.gzindex<o.gzhead.name.length?i=o.gzhead.name.charCodeAt(o.gzindex++)&255:i=0,Dt(o,i)}while(i!==0);o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=Dh}if(o.status===Dh){if(o.gzhead.comment){let r=o.pending,i;do{if(o.pending===o.pending_buf_size){if(o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0}o.gzindex<o.gzhead.comment.length?i=o.gzhead.comment.charCodeAt(o.gzindex++)&255:i=0,Dt(o,i)}while(i!==0);o.gzhead.hcrc&&o.pending>r&&(e.adler=yo(e.adler,o.pending_buf,o.pending-r,r))}o.status=Th}if(o.status===Th){if(o.gzhead.hcrc){if(o.pending+2>o.pending_buf_size&&(Qo(e),o.pending!==0))return o.last_flush=-1,Eo;Dt(o,e.adler&255),Dt(o,e.adler>>8&255),e.adler=0}if(o.status=ki,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(e.avail_in!==0||o.lookahead!==0||t!==Xr&&o.status!==Sl){let r=o.level===0?zS(o,t):o.strategy===wu?HU(o,t):o.strategy===wU?LU(o,t):El[o.level].func(o,t);if((r===Ni||r===Ya)&&(o.status=Sl),r===zo||r===Ni)return e.avail_out===0&&(o.last_flush=-1),Eo;if(r===Xa&&(t===vU?gU(o):t!==ib&&(Ph(o,0,0,!1),t===bU&&(jr(o.head),o.lookahead===0&&(o.strstart=0,o.block_start=0,o.insert=0))),Qo(e),e.avail_out===0))return o.last_flush=-1,Eo}return t!==mn?Eo:o.wrap<=0?ab:(o.wrap===2?(Dt(o,e.adler&255),Dt(o,e.adler>>8&255),Dt(o,e.adler>>16&255),Dt(o,e.adler>>24&255),Dt(o,e.total_in&255),Dt(o,e.total_in>>8&255),Dt(o,e.total_in>>16&255),Dt(o,e.total_in>>24&255)):(vl(o,e.adler>>>16),vl(o,e.adler&65535)),Qo(e),o.wrap>0&&(o.wrap=-o.wrap),o.pending!==0?Eo:ab)},KU=e=>{if(Vs(e))return Gn;const t=e.state.status;return e.state=null,t===ki?_i(e,xU):Eo},GU=(e,t)=>{let o=t.length;if(Vs(e))return Gn;const n=e.state,r=n.wrap;if(r===2||r===1&&n.status!==za||n.lookahead)return Gn;if(r===1&&(e.adler=hs(e.adler,t,o,0)),n.wrap=0,o>=n.w_size){r===0&&(jr(n.head),n.strstart=0,n.block_start=0,n.insert=0);let s=new Uint8Array(n.w_size);s.set(t.subarray(o-n.w_size,o),0),t=s,o=n.w_size}const i=e.avail_in,a=e.next_in,l=e.input;for(e.avail_in=o,e.next_in=0,e.input=t,Oa(n);n.lookahead>=$t;){let s=n.strstart,u=n.lookahead-($t-1);do n.ins_h=Yr(n,n.ins_h,n.window[s+$t-1]),n.prev[s&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=s,s++;while(--u);n.strstart=s,n.lookahead=$t-1,Oa(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=$t-1,n.match_available=0,e.next_in=a,e.input=l,e.avail_in=i,n.wrap=r,Eo};var qU=WU,ZU=HS,XU=LS,YU=OS,QU=jU,JU=UU,eK=KU,tK=GU,oK="pako deflate (from Nodeca project)",Vl={deflateInit:qU,deflateInit2:ZU,deflateReset:XU,deflateResetKeep:YU,deflateSetHeader:QU,deflate:JU,deflateEnd:eK,deflateSetDictionary:tK,deflateInfo:oK};const nK=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var rK=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const o=t.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(const n in o)nK(o,n)&&(e[n]=o[n])}}return e},iK=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;const o=new Uint8Array(t);for(let n=0,r=0,i=e.length;n<i;n++){let a=e[n];o.set(a,r),r+=a.length}return o},tc={assign:rK,flattenChunks:iK};let NS=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{NS=!1}const ps=new Uint8Array(256);for(let e=0;e<256;e++)ps[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ps[254]=ps[254]=1;var aK=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,o,n,r,i,a=e.length,l=0;for(r=0;r<a;r++)o=e.charCodeAt(r),(o&64512)===55296&&r+1<a&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(o=65536+(o-55296<<10)+(n-56320),r++)),l+=o<128?1:o<2048?2:o<65536?3:4;for(t=new Uint8Array(l),i=0,r=0;i<l;r++)o=e.charCodeAt(r),(o&64512)===55296&&r+1<a&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(o=65536+(o-55296<<10)+(n-56320),r++)),o<128?t[i++]=o:o<2048?(t[i++]=192|o>>>6,t[i++]=128|o&63):o<65536?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|o&63):(t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|o&63);return t};const lK=(e,t)=>{if(t<65534&&e.subarray&&NS)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let o="";for(let n=0;n<t;n++)o+=String.fromCharCode(e[n]);return o};var sK=(e,t)=>{const o=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,r;const i=new Array(o*2);for(r=0,n=0;n<o;){let a=e[n++];if(a<128){i[r++]=a;continue}let l=ps[a];if(l>4){i[r++]=65533,n+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&n<o;)a=a<<6|e[n++]&63,l--;if(l>1){i[r++]=65533;continue}a<65536?i[r++]=a:(a-=65536,i[r++]=55296|a>>10&1023,i[r++]=56320|a&1023)}return lK(i,r)},uK=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let o=t-1;for(;o>=0&&(e[o]&192)===128;)o--;return o<0||o===0?t:o+ps[e[o]]>t?o:t},ms={string2buf:aK,buf2string:sK,utf8border:uK};function dK(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var VS=dK;const jS=Object.prototype.toString,{Z_NO_FLUSH:cK,Z_SYNC_FLUSH:fK,Z_FULL_FLUSH:hK,Z_FINISH:pK,Z_OK:dd,Z_STREAM_END:mK,Z_DEFAULT_COMPRESSION:gK,Z_DEFAULT_STRATEGY:vK,Z_DEFLATED:bK}=ta;function js(e){this.options=tc.assign({level:gK,method:bK,chunkSize:16384,windowBits:15,memLevel:8,strategy:vK},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new VS,this.strm.avail_out=0;let o=Vl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(o!==dd)throw new Error(Hi[o]);if(t.header&&Vl.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=ms.string2buf(t.dictionary):jS.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,o=Vl.deflateSetDictionary(this.strm,n),o!==dd)throw new Error(Hi[o]);this._dict_set=!0}}js.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize;let r,i;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?pK:cK,typeof e=="string"?o.input=ms.string2buf(e):jS.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){if(o.avail_out===0&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),(i===fK||i===hK)&&o.avail_out<=6){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(r=Vl.deflate(o,i),r===mK)return o.next_out>0&&this.onData(o.output.subarray(0,o.next_out)),r=Vl.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===dd;if(o.avail_out===0){this.onData(o.output);continue}if(i>0&&o.next_out>0){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(o.avail_in===0)break}return!0};js.prototype.onData=function(e){this.chunks.push(e)};js.prototype.onEnd=function(e){e===dd&&(this.result=tc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function wm(e,t){const o=new js(t);if(o.push(e,!0),o.err)throw o.msg||Hi[o.err];return o.result}function xK(e,t){return t=t||{},t.raw=!0,wm(e,t)}function yK(e,t){return t=t||{},t.gzip=!0,wm(e,t)}var CK=js,wK=wm,SK=xK,EK=yK,kK=ta,_K={Deflate:CK,deflate:wK,deflateRaw:SK,gzip:EK,constants:kK};const Su=16209,FK=16191;var RK=function(t,o){let n,r,i,a,l,s,u,d,c,h,f,p,g,v,b,x,k,C,_,R,w,A,$,B;const U=t.state;n=t.next_in,$=t.input,r=n+(t.avail_in-5),i=t.next_out,B=t.output,a=i-(o-t.avail_out),l=i+(t.avail_out-257),s=U.dmax,u=U.wsize,d=U.whave,c=U.wnext,h=U.window,f=U.hold,p=U.bits,g=U.lencode,v=U.distcode,b=(1<<U.lenbits)-1,x=(1<<U.distbits)-1;e:do{p<15&&(f+=$[n++]<<p,p+=8,f+=$[n++]<<p,p+=8),k=g[f&b];t:for(;;){if(C=k>>>24,f>>>=C,p-=C,C=k>>>16&255,C===0)B[i++]=k&65535;else if(C&16){_=k&65535,C&=15,C&&(p<C&&(f+=$[n++]<<p,p+=8),_+=f&(1<<C)-1,f>>>=C,p-=C),p<15&&(f+=$[n++]<<p,p+=8,f+=$[n++]<<p,p+=8),k=v[f&x];o:for(;;){if(C=k>>>24,f>>>=C,p-=C,C=k>>>16&255,C&16){if(R=k&65535,C&=15,p<C&&(f+=$[n++]<<p,p+=8,p<C&&(f+=$[n++]<<p,p+=8)),R+=f&(1<<C)-1,R>s){t.msg="invalid distance too far back",U.mode=Su;break e}if(f>>>=C,p-=C,C=i-a,R>C){if(C=R-C,C>d&&U.sane){t.msg="invalid distance too far back",U.mode=Su;break e}if(w=0,A=h,c===0){if(w+=u-C,C<_){_-=C;do B[i++]=h[w++];while(--C);w=i-R,A=B}}else if(c<C){if(w+=u+c-C,C-=c,C<_){_-=C;do B[i++]=h[w++];while(--C);if(w=0,c<_){C=c,_-=C;do B[i++]=h[w++];while(--C);w=i-R,A=B}}}else if(w+=c-C,C<_){_-=C;do B[i++]=h[w++];while(--C);w=i-R,A=B}for(;_>2;)B[i++]=A[w++],B[i++]=A[w++],B[i++]=A[w++],_-=3;_&&(B[i++]=A[w++],_>1&&(B[i++]=A[w++]))}else{w=i-R;do B[i++]=B[w++],B[i++]=B[w++],B[i++]=B[w++],_-=3;while(_>2);_&&(B[i++]=B[w++],_>1&&(B[i++]=B[w++]))}}else if(C&64){t.msg="invalid distance code",U.mode=Su;break e}else{k=v[(k&65535)+(f&(1<<C)-1)];continue o}break}}else if(C&64)if(C&32){U.mode=FK;break e}else{t.msg="invalid literal/length code",U.mode=Su;break e}else{k=g[(k&65535)+(f&(1<<C)-1)];continue t}break}}while(n<r&&i<l);_=p>>3,n-=_,p-=_<<3,f&=(1<<p)-1,t.next_in=n,t.next_out=i,t.avail_in=n<r?5+(r-n):5-(n-r),t.avail_out=i<l?257+(l-i):257-(i-l),U.hold=f,U.bits=p};const pa=15,sb=852,ub=592,db=0,Cf=1,cb=2,$K=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),PK=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),MK=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),AK=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),BK=(e,t,o,n,r,i,a,l)=>{const s=l.bits;let u=0,d=0,c=0,h=0,f=0,p=0,g=0,v=0,b=0,x=0,k,C,_,R,w,A=null,$;const B=new Uint16Array(pa+1),U=new Uint16Array(pa+1);let N=null,K,H,T;for(u=0;u<=pa;u++)B[u]=0;for(d=0;d<n;d++)B[t[o+d]]++;for(f=s,h=pa;h>=1&&B[h]===0;h--);if(f>h&&(f=h),h===0)return r[i++]=1<<24|64<<16|0,r[i++]=1<<24|64<<16|0,l.bits=1,0;for(c=1;c<h&&B[c]===0;c++);for(f<c&&(f=c),v=1,u=1;u<=pa;u++)if(v<<=1,v-=B[u],v<0)return-1;if(v>0&&(e===db||h!==1))return-1;for(U[1]=0,u=1;u<pa;u++)U[u+1]=U[u]+B[u];for(d=0;d<n;d++)t[o+d]!==0&&(a[U[t[o+d]]++]=d);if(e===db?(A=N=a,$=20):e===Cf?(A=$K,N=PK,$=257):(A=MK,N=AK,$=0),x=0,d=0,u=c,w=i,p=f,g=0,_=-1,b=1<<f,R=b-1,e===Cf&&b>sb||e===cb&&b>ub)return 1;for(;;){K=u-g,a[d]+1<$?(H=0,T=a[d]):a[d]>=$?(H=N[a[d]-$],T=A[a[d]-$]):(H=96,T=0),k=1<<u-g,C=1<<p,c=C;do C-=k,r[w+(x>>g)+C]=K<<24|H<<16|T|0;while(C!==0);for(k=1<<u-1;x&k;)k>>=1;if(k!==0?(x&=k-1,x+=k):x=0,d++,--B[u]===0){if(u===h)break;u=t[o+a[d]]}if(u>f&&(x&R)!==_){for(g===0&&(g=f),w+=c,p=u-g,v=1<<p;p+g<h&&(v-=B[p+g],!(v<=0));)p++,v<<=1;if(b+=1<<p,e===Cf&&b>sb||e===cb&&b>ub)return 1;_=x&R,r[_]=f<<24|p<<16|w-i|0}}return x!==0&&(r[w+x]=u-g<<24|64<<16|0),l.bits=f,0};var jl=BK;const DK=0,WS=1,US=2,{Z_FINISH:fb,Z_BLOCK:TK,Z_TREES:Eu,Z_OK:Vi,Z_STREAM_END:IK,Z_NEED_DICT:zK,Z_STREAM_ERROR:Cn,Z_DATA_ERROR:KS,Z_MEM_ERROR:GS,Z_BUF_ERROR:OK,Z_DEFLATED:hb}=ta,oc=16180,pb=16181,mb=16182,gb=16183,vb=16184,bb=16185,xb=16186,yb=16187,Cb=16188,wb=16189,cd=16190,ur=16191,wf=16192,Sb=16193,Sf=16194,Eb=16195,kb=16196,_b=16197,Fb=16198,ku=16199,_u=16200,Rb=16201,$b=16202,Pb=16203,Mb=16204,Ab=16205,Ef=16206,Bb=16207,Db=16208,Qt=16209,qS=16210,ZS=16211,LK=852,HK=592,NK=15,VK=NK,Tb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function jK(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const oa=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<oc||t.mode>ZS?1:0},XS=e=>{if(oa(e))return Cn;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=oc,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(LK),t.distcode=t.distdyn=new Int32Array(HK),t.sane=1,t.back=-1,Vi},YS=e=>{if(oa(e))return Cn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,XS(e)},QS=(e,t)=>{let o;if(oa(e))return Cn;const n=e.state;return t<0?(o=0,t=-t):(o=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Cn:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=o,n.wbits=t,YS(e))},JS=(e,t)=>{if(!e)return Cn;const o=new jK;e.state=o,o.strm=e,o.window=null,o.mode=oc;const n=QS(e,t);return n!==Vi&&(e.state=null),n},WK=e=>JS(e,VK);let Ib=!0,kf,_f;const UK=e=>{if(Ib){kf=new Int32Array(512),_f=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(jl(WS,e.lens,0,288,kf,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;jl(US,e.lens,0,32,_f,0,e.work,{bits:5}),Ib=!1}e.lencode=kf,e.lenbits=9,e.distcode=_f,e.distbits=5},e6=(e,t,o,n)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),n>=i.wsize?(i.window.set(t.subarray(o-i.wsize,o),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>n&&(r=n),i.window.set(t.subarray(o-n,o-n+r),i.wnext),n-=r,n?(i.window.set(t.subarray(o-n,o),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=r))),0},KK=(e,t)=>{let o,n,r,i,a,l,s,u,d,c,h,f,p,g,v=0,b,x,k,C,_,R,w,A;const $=new Uint8Array(4);let B,U;const N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(oa(e)||!e.output||!e.input&&e.avail_in!==0)return Cn;o=e.state,o.mode===ur&&(o.mode=wf),a=e.next_out,r=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=o.hold,d=o.bits,c=l,h=s,A=Vi;e:for(;;)switch(o.mode){case oc:if(o.wrap===0){o.mode=wf;break}for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.wrap&2&&u===35615){o.wbits===0&&(o.wbits=15),o.check=0,$[0]=u&255,$[1]=u>>>8&255,o.check=yo(o.check,$,2,0),u=0,d=0,o.mode=pb;break}if(o.head&&(o.head.done=!1),!(o.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",o.mode=Qt;break}if((u&15)!==hb){e.msg="unknown compression method",o.mode=Qt;break}if(u>>>=4,d-=4,w=(u&15)+8,o.wbits===0&&(o.wbits=w),w>15||w>o.wbits){e.msg="invalid window size",o.mode=Qt;break}o.dmax=1<<o.wbits,o.flags=0,e.adler=o.check=1,o.mode=u&512?wb:ur,u=0,d=0;break;case pb:for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.flags=u,(o.flags&255)!==hb){e.msg="unknown compression method",o.mode=Qt;break}if(o.flags&57344){e.msg="unknown header flags set",o.mode=Qt;break}o.head&&(o.head.text=u>>8&1),o.flags&512&&o.wrap&4&&($[0]=u&255,$[1]=u>>>8&255,o.check=yo(o.check,$,2,0)),u=0,d=0,o.mode=mb;case mb:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.head&&(o.head.time=u),o.flags&512&&o.wrap&4&&($[0]=u&255,$[1]=u>>>8&255,$[2]=u>>>16&255,$[3]=u>>>24&255,o.check=yo(o.check,$,4,0)),u=0,d=0,o.mode=gb;case gb:for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.head&&(o.head.xflags=u&255,o.head.os=u>>8),o.flags&512&&o.wrap&4&&($[0]=u&255,$[1]=u>>>8&255,o.check=yo(o.check,$,2,0)),u=0,d=0,o.mode=vb;case vb:if(o.flags&1024){for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.length=u,o.head&&(o.head.extra_len=u),o.flags&512&&o.wrap&4&&($[0]=u&255,$[1]=u>>>8&255,o.check=yo(o.check,$,2,0)),u=0,d=0}else o.head&&(o.head.extra=null);o.mode=bb;case bb:if(o.flags&1024&&(f=o.length,f>l&&(f=l),f&&(o.head&&(w=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Uint8Array(o.head.extra_len)),o.head.extra.set(n.subarray(i,i+f),w)),o.flags&512&&o.wrap&4&&(o.check=yo(o.check,n,f,i)),l-=f,i+=f,o.length-=f),o.length))break e;o.length=0,o.mode=xb;case xb:if(o.flags&2048){if(l===0)break e;f=0;do w=n[i+f++],o.head&&w&&o.length<65536&&(o.head.name+=String.fromCharCode(w));while(w&&f<l);if(o.flags&512&&o.wrap&4&&(o.check=yo(o.check,n,f,i)),l-=f,i+=f,w)break e}else o.head&&(o.head.name=null);o.length=0,o.mode=yb;case yb:if(o.flags&4096){if(l===0)break e;f=0;do w=n[i+f++],o.head&&w&&o.length<65536&&(o.head.comment+=String.fromCharCode(w));while(w&&f<l);if(o.flags&512&&o.wrap&4&&(o.check=yo(o.check,n,f,i)),l-=f,i+=f,w)break e}else o.head&&(o.head.comment=null);o.mode=Cb;case Cb:if(o.flags&512){for(;d<16;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.wrap&4&&u!==(o.check&65535)){e.msg="header crc mismatch",o.mode=Qt;break}u=0,d=0}o.head&&(o.head.hcrc=o.flags>>9&1,o.head.done=!0),e.adler=o.check=0,o.mode=ur;break;case wb:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}e.adler=o.check=Tb(u),u=0,d=0,o.mode=cd;case cd:if(o.havedict===0)return e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,o.hold=u,o.bits=d,zK;e.adler=o.check=1,o.mode=ur;case ur:if(t===TK||t===Eu)break e;case wf:if(o.last){u>>>=d&7,d-=d&7,o.mode=Ef;break}for(;d<3;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}switch(o.last=u&1,u>>>=1,d-=1,u&3){case 0:o.mode=Sb;break;case 1:if(UK(o),o.mode=ku,t===Eu){u>>>=2,d-=2;break e}break;case 2:o.mode=kb;break;case 3:e.msg="invalid block type",o.mode=Qt}u>>>=2,d-=2;break;case Sb:for(u>>>=d&7,d-=d&7;d<32;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",o.mode=Qt;break}if(o.length=u&65535,u=0,d=0,o.mode=Sf,t===Eu)break e;case Sf:o.mode=Eb;case Eb:if(f=o.length,f){if(f>l&&(f=l),f>s&&(f=s),f===0)break e;r.set(n.subarray(i,i+f),a),l-=f,i+=f,s-=f,a+=f,o.length-=f;break}o.mode=ur;break;case kb:for(;d<14;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.nlen=(u&31)+257,u>>>=5,d-=5,o.ndist=(u&31)+1,u>>>=5,d-=5,o.ncode=(u&15)+4,u>>>=4,d-=4,o.nlen>286||o.ndist>30){e.msg="too many length or distance symbols",o.mode=Qt;break}o.have=0,o.mode=_b;case _b:for(;o.have<o.ncode;){for(;d<3;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.lens[N[o.have++]]=u&7,u>>>=3,d-=3}for(;o.have<19;)o.lens[N[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,B={bits:o.lenbits},A=jl(DK,o.lens,0,19,o.lencode,0,o.work,B),o.lenbits=B.bits,A){e.msg="invalid code lengths set",o.mode=Qt;break}o.have=0,o.mode=Fb;case Fb:for(;o.have<o.nlen+o.ndist;){for(;v=o.lencode[u&(1<<o.lenbits)-1],b=v>>>24,x=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(k<16)u>>>=b,d-=b,o.lens[o.have++]=k;else{if(k===16){for(U=b+2;d<U;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(u>>>=b,d-=b,o.have===0){e.msg="invalid bit length repeat",o.mode=Qt;break}w=o.lens[o.have-1],f=3+(u&3),u>>>=2,d-=2}else if(k===17){for(U=b+3;d<U;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}u>>>=b,d-=b,w=0,f=3+(u&7),u>>>=3,d-=3}else{for(U=b+7;d<U;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}u>>>=b,d-=b,w=0,f=11+(u&127),u>>>=7,d-=7}if(o.have+f>o.nlen+o.ndist){e.msg="invalid bit length repeat",o.mode=Qt;break}for(;f--;)o.lens[o.have++]=w}}if(o.mode===Qt)break;if(o.lens[256]===0){e.msg="invalid code -- missing end-of-block",o.mode=Qt;break}if(o.lenbits=9,B={bits:o.lenbits},A=jl(WS,o.lens,0,o.nlen,o.lencode,0,o.work,B),o.lenbits=B.bits,A){e.msg="invalid literal/lengths set",o.mode=Qt;break}if(o.distbits=6,o.distcode=o.distdyn,B={bits:o.distbits},A=jl(US,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,B),o.distbits=B.bits,A){e.msg="invalid distances set",o.mode=Qt;break}if(o.mode=ku,t===Eu)break e;case ku:o.mode=_u;case _u:if(l>=6&&s>=258){e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,o.hold=u,o.bits=d,RK(e,h),a=e.next_out,r=e.output,s=e.avail_out,i=e.next_in,n=e.input,l=e.avail_in,u=o.hold,d=o.bits,o.mode===ur&&(o.back=-1);break}for(o.back=0;v=o.lencode[u&(1<<o.lenbits)-1],b=v>>>24,x=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(x&&!(x&240)){for(C=b,_=x,R=k;v=o.lencode[R+((u&(1<<C+_)-1)>>C)],b=v>>>24,x=v>>>16&255,k=v&65535,!(C+b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}u>>>=C,d-=C,o.back+=C}if(u>>>=b,d-=b,o.back+=b,o.length=k,x===0){o.mode=Ab;break}if(x&32){o.back=-1,o.mode=ur;break}if(x&64){e.msg="invalid literal/length code",o.mode=Qt;break}o.extra=x&15,o.mode=Rb;case Rb:if(o.extra){for(U=o.extra;d<U;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.length+=u&(1<<o.extra)-1,u>>>=o.extra,d-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=$b;case $b:for(;v=o.distcode[u&(1<<o.distbits)-1],b=v>>>24,x=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(!(x&240)){for(C=b,_=x,R=k;v=o.distcode[R+((u&(1<<C+_)-1)>>C)],b=v>>>24,x=v>>>16&255,k=v&65535,!(C+b<=d);){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}u>>>=C,d-=C,o.back+=C}if(u>>>=b,d-=b,o.back+=b,x&64){e.msg="invalid distance code",o.mode=Qt;break}o.offset=k,o.extra=x&15,o.mode=Pb;case Pb:if(o.extra){for(U=o.extra;d<U;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}o.offset+=u&(1<<o.extra)-1,u>>>=o.extra,d-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){e.msg="invalid distance too far back",o.mode=Qt;break}o.mode=Mb;case Mb:if(s===0)break e;if(f=h-s,o.offset>f){if(f=o.offset-f,f>o.whave&&o.sane){e.msg="invalid distance too far back",o.mode=Qt;break}f>o.wnext?(f-=o.wnext,p=o.wsize-f):p=o.wnext-f,f>o.length&&(f=o.length),g=o.window}else g=r,p=a-o.offset,f=o.length;f>s&&(f=s),s-=f,o.length-=f;do r[a++]=g[p++];while(--f);o.length===0&&(o.mode=_u);break;case Ab:if(s===0)break e;r[a++]=o.length,s--,o.mode=_u;break;case Ef:if(o.wrap){for(;d<32;){if(l===0)break e;l--,u|=n[i++]<<d,d+=8}if(h-=s,e.total_out+=h,o.total+=h,o.wrap&4&&h&&(e.adler=o.check=o.flags?yo(o.check,r,h,a-h):hs(o.check,r,h,a-h)),h=s,o.wrap&4&&(o.flags?u:Tb(u))!==o.check){e.msg="incorrect data check",o.mode=Qt;break}u=0,d=0}o.mode=Bb;case Bb:if(o.wrap&&o.flags){for(;d<32;){if(l===0)break e;l--,u+=n[i++]<<d,d+=8}if(o.wrap&4&&u!==(o.total&4294967295)){e.msg="incorrect length check",o.mode=Qt;break}u=0,d=0}o.mode=Db;case Db:A=IK;break e;case Qt:A=KS;break e;case qS:return GS;case ZS:default:return Cn}return e.next_out=a,e.avail_out=s,e.next_in=i,e.avail_in=l,o.hold=u,o.bits=d,(o.wsize||h!==e.avail_out&&o.mode<Qt&&(o.mode<Ef||t!==fb))&&e6(e,e.output,e.next_out,h-e.avail_out),c-=e.avail_in,h-=e.avail_out,e.total_in+=c,e.total_out+=h,o.total+=h,o.wrap&4&&h&&(e.adler=o.check=o.flags?yo(o.check,r,h,e.next_out-h):hs(o.check,r,h,e.next_out-h)),e.data_type=o.bits+(o.last?64:0)+(o.mode===ur?128:0)+(o.mode===ku||o.mode===Sf?256:0),(c===0&&h===0||t===fb)&&A===Vi&&(A=OK),A},GK=e=>{if(oa(e))return Cn;let t=e.state;return t.window&&(t.window=null),e.state=null,Vi},qK=(e,t)=>{if(oa(e))return Cn;const o=e.state;return o.wrap&2?(o.head=t,t.done=!1,Vi):Cn},ZK=(e,t)=>{const o=t.length;let n,r,i;return oa(e)||(n=e.state,n.wrap!==0&&n.mode!==cd)?Cn:n.mode===cd&&(r=1,r=hs(r,t,o,0),r!==n.check)?KS:(i=e6(e,t,o,o),i?(n.mode=qS,GS):(n.havedict=1,Vi))};var XK=YS,YK=QS,QK=XS,JK=WK,eG=JS,tG=KK,oG=GK,nG=qK,rG=ZK,iG="pako inflate (from Nodeca project)",hr={inflateReset:XK,inflateReset2:YK,inflateResetKeep:QK,inflateInit:JK,inflateInit2:eG,inflate:tG,inflateEnd:oG,inflateGetHeader:nG,inflateSetDictionary:rG,inflateInfo:iG};function aG(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var lG=aG;const t6=Object.prototype.toString,{Z_NO_FLUSH:sG,Z_FINISH:uG,Z_OK:gs,Z_STREAM_END:Ff,Z_NEED_DICT:Rf,Z_STREAM_ERROR:dG,Z_DATA_ERROR:zb,Z_MEM_ERROR:cG}=ta;function Ws(e){this.options=tc.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new VS,this.strm.avail_out=0;let o=hr.inflateInit2(this.strm,t.windowBits);if(o!==gs)throw new Error(Hi[o]);if(this.header=new lG,hr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ms.string2buf(t.dictionary):t6.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(o=hr.inflateSetDictionary(this.strm,t.dictionary),o!==gs)))throw new Error(Hi[o])}Ws.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let i,a,l;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?uG:sG,t6.call(e)==="[object ArrayBuffer]"?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(o.avail_out===0&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),i=hr.inflate(o,a),i===Rf&&r&&(i=hr.inflateSetDictionary(o,r),i===gs?i=hr.inflate(o,a):i===zb&&(i=Rf));o.avail_in>0&&i===Ff&&o.state.wrap>0&&e[o.next_in]!==0;)hr.inflateReset(o),i=hr.inflate(o,a);switch(i){case dG:case zb:case Rf:case cG:return this.onEnd(i),this.ended=!0,!1}if(l=o.avail_out,o.next_out&&(o.avail_out===0||i===Ff))if(this.options.to==="string"){let s=ms.utf8border(o.output,o.next_out),u=o.next_out-s,d=ms.buf2string(o.output,s);o.next_out=u,o.avail_out=n-u,u&&o.output.set(o.output.subarray(s,s+u),0),this.onData(d)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(!(i===gs&&l===0)){if(i===Ff)return i=hr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(o.avail_in===0)break}}return!0};Ws.prototype.onData=function(e){this.chunks.push(e)};Ws.prototype.onEnd=function(e){e===gs&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=tc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Sm(e,t){const o=new Ws(t);if(o.push(e),o.err)throw o.msg||Hi[o.err];return o.result}function fG(e,t){return t=t||{},t.raw=!0,Sm(e,t)}var hG=Ws,pG=Sm,mG=fG,gG=Sm,vG=ta,bG={Inflate:hG,inflate:pG,inflateRaw:mG,ungzip:gG,constants:vG};const{Deflate:xG,deflate:yG,deflateRaw:CG,gzip:wG}=_K,{Inflate:SG,inflate:EG,inflateRaw:kG,ungzip:_G}=bG;var FG=xG,RG=yG,$G=CG,PG=wG,MG=SG,AG=EG,BG=kG,DG=_G,TG=ta,La={Deflate:FG,deflate:RG,deflateRaw:$G,gzip:PG,Inflate:MG,inflate:AG,inflateRaw:BG,ungzip:DG,constants:TG};function bl(e){const t=Hs(),o=It({moduleEmbeddedRules:ya(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]),currentEmbeddedRules:ya(t.customConfigEmbeddedRulesList[e]||(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]))||{},moduleFixedOrientation:ya(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]),currentFixedOrientation:ya(t.customConfigFixedOrientationList[e]||(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]))||{}});return{...b1(o)}}const o6=e=>{const t=/^[a-zA-Z0-9_.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},IG=e=>{const t=/^[a-zA-Z0-9_:,.*-]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},zG=e=>{const t=/^[a-zA-Z0-9_,.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},OG={class:"mb-4"},LG={class:"mb-4"},HG={class:"mb-4"},NG={class:"mb-4"},VG={class:"mb-4"},jG={class:"mb-4"},Ob=xe({__name:"EmbeddedAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=M(null),r=e,i=M(!1),a=Et(),l=Hs(),s=ea(),u=I(()=>({theme:a.isDarkMode?io:Zt})),{message:d,modal:c}=po(["message","modal"],{configProviderProps:u});let h,f;const p=[{label:"强制应用所有界面横屏[nra:cr:rcr:nr]",key:"fullScreen_nra:cr:rcr:nr",rule:"nra:cr:rcr:nr"},{label:"继承应用自身设置横屏[*]",key:"fullScreen_*",rule:"*"},{label:"自定义",key:"fullScreen_custom"}],g=I(()=>{const Y=[{label:"默认横屏规则",key:"fullScreen_default",rule:""}];return a.MIOSVersion&&a.MIOSVersion>=2?[...Y,...p]:p}),v=[{label:"大尺寸[11:10]",key:"ratio_11_10",ratio:1.1},{label:"中尺寸",key:"ratio_default"},{label:"小尺寸[15:10]",key:"ratio_15_10",ratio:1.5},{label:"小尺寸[18:10]",key:"ratio_18:10",ratio:1.8},{label:"自定义",key:"ratio_custom"}],b=M(g.value[0]),x=M(),k=M(!0),C=M(),_=M(),R=M(v[1]),w=M(),A=M(.5),$=M(!1),B=M(!1),U=M([]),N=Y=>{const O=document.querySelector(".n-drawer-content");O instanceof HTMLElement&&(s.info("resizeDrawerContent",Y),O.style.height=Y?"calc(100% + 200px)":"100%")},K=Y=>{var O;N(!0),(O=n.value)==null||O.$el.scrollIntoView({behavior:"smooth",block:"start"})},H=Y=>{var O;N(!1),(O=n.value)==null||O.$el.scrollIntoView({behavior:"smooth",block:"start"})},T=M({openDrawer:Y=>new Promise((O,ze)=>{var je,W,ee,ge,we,le,ne;if(r.type==="update"&&!Y){ze(new Error("更新模式下必须传入初始化参数")),d.error("初始化参数不能为空");return}h=O,f=ze,r.type==="add"&&(_.value="add",b.value=g.value[0],pe.value="",x.value=a.MIOSVersion&&a.MIOSVersion>=2?"":"nra:cr:rcr:nr",U.value=["fullScreen","fixedOrientation","disabled"],Z.value=!1,se.value=!1,$.value=!1),r.type==="update"&&Y&&(_.value="update",B.value=!1,A.value=.5,C.value=Y.ruleMode,pe.value=Y.name,he.value=Y.isSupportEmbedded,Y.embeddedRules&&Y.embeddedRules.hasOwnProperty("splitRatio")&&(A.value=Y.embeddedRules.splitRatio??.5),Y.embeddedRules&&Y.embeddedRules.hasOwnProperty("relaunch")?Z.value=!!Y.embeddedRules.relaunch:Z.value=!0,re.value=Y.settingMode,te.value=((je=Y.fixedOrientationRule)==null?void 0:je.disable)??!1,j.value=((W=Y.fixedOrientationRule)==null?void 0:W.isShowDivider)??!1,x.value=((ee=Y.embeddedRules)==null?void 0:ee.fullRule)??void 0,$.value=((we=(ge=Y.fixedOrientationRule)==null?void 0:ge.compatChange)==null?void 0:we.split(",").includes("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"))??!1,x.value==="nra:cr:rcr:nr"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[1]:g.value[0]:Y.embeddedRules&&!Y.embeddedRules.hasOwnProperty("fullRule")?(x.value=a.MIOSVersion&&a.MIOSVersion>=2?void 0:"nra:cr:rcr:nr",b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[0]:g.value[1]):x.value==="*"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[2]:g.value[1]:b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[3]:g.value[2],k.value=((le=Y.embeddedRules)==null?void 0:le.supportFullSize)??!1,Y.fixedOrientationRule&&Y.fixedOrientationRule.hasOwnProperty("relaunch")?Z.value=!!Y.fixedOrientationRule.relaunch:Z.value=!1,w.value=((ne=Y.fixedOrientationRule)==null?void 0:ne.ratio)??void 0,w.value?w.value===1.1?R.value=v[0]:w.value===1.5?R.value=v[2]:w.value===1.8?R.value=v[3]:R.value=v[4]:R.value=v[1]),i.value=!0}),closeDrawer:()=>{i.value=!1,f("Drawer closed without submission")}}),z=(Y,O)=>{b.value=O,x.value=["fullScreen_nra:cr:rcr:nr","fullScreen_*"].includes(Y)?O.rule:void 0},F=(Y,O)=>{R.value=O,w.value=["ratio_11_10","ratio_15_10","ratio_18:10"].includes(Y)?O.ratio:Y==="ratio_custom"?1.5:void 0},y=({focused:Y,checked:O})=>{const ze={};return O?(ze.background="#2080f0",Y&&(ze.boxShadow="0 0 0 2px #2080f040")):(ze.background="#d03050",Y&&(ze.boxShadow="0 0 0 2px #d0305040")),ze},re=M("fullScreen"),te=M(!1),j=M(!0),Z=M(!0),se=M(!1),pe=M(""),Se=M(""),he=M(!1),fe=async()=>{if(!pe.value){c.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>S("p",null,[P("噫?应用包名不能为空(敲")])});return}if(re.value==="fullScreen"&&!x.value&&(!a.MIOSVersion||a.MIOSVersion<2)){c.create({title:"应用全屏规则不能为空",type:"error",preset:"dialog",content:()=>S("p",null,[P("噫?应用全屏规则不能为空(敲")])});return}if(r.type==="add"&&l.allPackageName.has(pe.value)){c.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>S("p",null,[P("噫?这个应用包名已经存在列表中了(敲")])});return}if(r.type==="update"&&he.value&&re.value==="fullScreen"){const[je]=await Re(new Promise((W,ee)=>{c.create({title:"确认使用全屏规则吗?",type:"warning",preset:"dialog",content:()=>C.value==="custom"?S("p",null,[P("当前应用已存在")," ",S("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平行窗口的自定义规则")])," ",P(",继续提交可能导致")," ",S("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平行窗口的自定义规则")])," ",P("丢失。确定要继续吗?")]):S("p",null,[P("当前应用已存在")," ",S("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平行窗口的模块规则")])," ",P(",继续更新将会被更替为")," ",S("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("全屏规则")])," ",P(",如后续需要改回")," ",S("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平行窗口的模块规则")])," ",P("可能需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{W("positiveClick")},onNegativeClick:()=>{ee("negativeClick")}})}));if(je)return}if(r.type==="update"&&C.value==="module"&&B.value){const[je]=await Re(new Promise((W,ee)=>{c.create({title:"确认使用平行窗口自定义规则吗?",type:"warning",preset:"dialog",content:()=>S("p",null,[P("当前应用已存在")," ",S("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平行窗口的模块规则")])," ",P(",继续更新将会被更替为")," ",S("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平行窗口的自定义规则")])," ",P(",且该应用规则不再随模块版本更新,如后续需要改回")," ",S("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平行窗口的模块规则")])," ",P("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{W("positiveClick")},onNegativeClick:()=>{ee("negativeClick")}})}));if(je)return}Ce.value=!0;const Y=()=>{Ce.value=!1,i.value=!1},O=()=>{Ce.value=!1},ze={name:pe.value,settingMode:re.value,modePayload:{...re.value==="fullScreen"&&{fullRule:x.value},...re.value==="fullScreen"&&(!a.MIOSVersion||a.MIOSVersion<2)&&{skipSelfAdaptive:te.value},...re.value==="fullScreen"&&{isShowDivider:j.value},...re.value==="fullScreen"&&{supportFullSize:k.value},...re.value==="fixedOrientation"&&{ratio:w.value},...re.value==="fixedOrientation"&&{foRelaunch:Z.value},...re.value==="fixedOrientation"&&a.MIOSVersion&&a.MIOSVersion>=2&&{forceFixedOrientation:$.value},...re.value==="embedded"&&(C.value==="custom"||C.value==="module"&&B.value)&&{splitRatio:A.value},...re.value==="embedded"&&(C.value==="custom"||C.value==="module"&&B.value)&&{emRelaunch:se.value}},loadingCallback:O,closeCallback:Y};h(ze)},Ce=M(!1);return t({openDrawer:T.value.openDrawer}),(Y,O)=>{const ze=lt("n-input-group-label"),je=lt("n-input"),W=lt("n-input-group"),ee=lt("n-tag"),ge=lt("n-alert"),we=lt("n-switch"),le=lt("n-card"),ne=lt("n-slider"),ce=lt("n-input-number"),J=lt("n-tab-pane"),ie=lt("n-button"),de=lt("n-dropdown"),ae=lt("n-tabs"),q=lt("n-drawer-content"),ue=lt("n-drawer");return Fe(),Te(ft,null,[xs(Y.$slots,"default",qb(np({openDrawer:T.value.openDrawer}))),S(ue,{show:i.value,"onUpdate:show":O[21]||(O[21]=ve=>i.value=ve),width:E(a).windowWidth>=640?"450px":"100%",placement:"right"},{default:oe(()=>[S(q,{title:r.title,closable:""},{footer:oe(()=>[S(ie,{type:"info",loading:Ce.value,"onUpdate:loading":O[19]||(O[19]=ve=>Ce.value=ve),onClick:O[20]||(O[20]=()=>fe())},{default:oe(()=>O[54]||(O[54]=[P(" 提交 ")])),_:1},8,["loading"])]),default:oe(()=>[S(W,null,{default:oe(()=>[S(ze,{size:"large"},{default:oe(()=>O[22]||(O[22]=[P("应用包名")])),_:1}),S(je,{size:"large",status:Se.value,value:pe.value,"onUpdate:value":O[0]||(O[0]=ve=>pe.value=ve),"allow-input":ve=>o6(ve),readonly:r.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),C.value==="custom"?(Fe(),Ht(ge,{key:0,type:"info",class:"mt-5"},{default:oe(()=>[O[25]||(O[25]=P(" 当前应用已被 ")),S(ee,{bordered:!1,type:"info"},{default:oe(()=>O[23]||(O[23]=[P("自定义规则")])),_:1}),O[26]||(O[26]=P(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),S(ee,{bordered:!1,type:"info"},{default:oe(()=>O[24]||(O[24]=[P("自定义规则")])),_:1}),O[27]||(O[27]=P(" 。 "))]),_:1})):ot("",!0),S(ae,{class:"my-3",type:"segment",animated:"",value:re.value,"onUpdate:value":O[18]||(O[18]=ve=>re.value=ve)},{default:oe(()=>[r.type==="update"&&he.value?(Fe(),Ht(J,{key:0,name:"embedded",tab:"平行窗口"},{default:oe(()=>[S(ge,{"show-icon":!1,bordered:!1,title:"应用分屏显示",type:"success"},{default:oe(()=>O[28]||(O[28]=[P(" 开启后,未适配横屏应用界面将通过平行窗口显示 ")])),_:1}),C.value==="module"?(Fe(),Ht(le,{key:0,bordered:!1,title:"切换自定义规则",size:"small"},{default:oe(()=>[L("div",OG,[S(ee,{bordered:!1,type:"info"},{default:oe(()=>O[29]||(O[29]=[P(" 切换为自定义规则后该应用不再随模块更新 ")])),_:1})]),S(we,{"rail-style":y,value:B.value,"onUpdate:value":O[1]||(O[1]=ve=>B.value=ve),size:"large"},{checked:oe(()=>O[30]||(O[30]=[P("使用自定义规则")])),unchecked:oe(()=>O[31]||(O[31]=[P("不使用自定义规则")])),_:1},8,["value"])]),_:1})):ot("",!0),C.value==="custom"||B.value?(Fe(),Ht(le,{key:1,bordered:!1,title:"平行窗口默认分屏比例",size:"small"},{default:oe(()=>[S(ne,{value:A.value,"onUpdate:value":O[2]||(O[2]=ve=>A.value=ve),size:"small",min:.01,max:.99,step:.01},null,8,["value"]),S(ce,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入平行窗口默认分屏比例",value:A.value,"onUpdate:value":O[3]||(O[3]=ve=>A.value=ve),min:.01,max:.99,step:.01},null,8,["value"])]),_:1})):ot("",!0),C.value==="custom"||B.value?(Fe(),Ht(le,{key:2,bordered:!1,title:"平行窗口显示比例发生变化时是否重载",size:"small"},{default:oe(()=>[L("div",LG,[S(ee,{bordered:!1,type:"success"},{default:oe(()=>O[32]||(O[32]=[P(" 适用于开启 "),L("span",{class:"font-bold"},"平行窗口滑动条",-1),P(" 的应用 ")])),_:1})]),S(we,{"rail-style":y,value:se.value,"onUpdate:value":O[4]||(O[4]=ve=>se.value=ve),size:"large"},{checked:oe(()=>O[33]||(O[33]=[P("平行窗口显示比例变化时重载")])),unchecked:oe(()=>O[34]||(O[34]=[P("平行窗口显示比例变化时不重载")])),_:1},8,["value"])]),_:1})):ot("",!0)]),_:1})):ot("",!0),S(J,{name:"fullScreen",tab:"全屏"},{default:oe(()=>[S(ge,{"show-icon":!1,bordered:!1,title:"应用横屏显示",type:"info"},{default:oe(()=>O[35]||(O[35]=[P(" 开启后,未适配横屏应用界面将全屏显示,并可更改显示规则 ")])),_:1}),S(le,{bordered:!1,title:"横屏显示规则",size:"small"},{default:oe(()=>[S(de,{modelValue:b.value,"onUpdate:modelValue":O[5]||(O[5]=ve=>b.value=ve),size:"large",trigger:"click",options:g.value,onSelect:z},{default:oe(()=>[S(ie,{block:"",type:"info",dashed:""},{default:oe(()=>[P(it(b.value.label),1)]),_:1})]),_:1},8,["modelValue","options"])]),_:1}),b.value.key==="fullScreen_custom"?(Fe(),Ht(le,{key:0,bordered:!1,title:"自定义横屏规则",size:"small"},{default:oe(()=>[S(W,null,{default:oe(()=>[S(je,{ref_key:"currentFullRuleRef",ref:n,onFocus:O[6]||(O[6]=()=>K("currentFullRuleRef")),onBlur:O[7]||(O[7]=()=>H("currentFullRuleRef")),value:x.value,"onUpdate:value":O[8]||(O[8]=ve=>x.value=ve),placeholder:"请输入横屏规则"},null,8,["value"])]),_:1})]),_:1})):ot("",!0),!E(a).MIOSVersion||E(a).MIOSVersion<2?(Fe(),Ht(le,{key:1,class:"",bordered:!1,title:"跳过应用自适配声明",size:"small"},{default:oe(()=>[L("div",HG,[S(ee,{bordered:!1,type:"success"},{default:oe(()=>O[36]||(O[36]=[P(" 适用于即使设置了 "),L("span",{class:"font-bold"},"横屏规则",-1),P(" 仍无法横屏的应用 ")])),_:1})]),S(we,{"rail-style":y,value:te.value,"onUpdate:value":O[9]||(O[9]=ve=>te.value=ve),size:"large"},{checked:oe(()=>O[37]||(O[37]=[P("跳过自适配声明")])),unchecked:oe(()=>O[38]||(O[38]=[P("不跳过自适配声明")])),_:1},8,["value"])]),_:1})):ot("",!0),S(le,{bordered:!1,title:"平行窗口滑动条",size:"small"},{default:oe(()=>[L("div",NG,[S(ee,{bordered:!1,type:"success"},{default:oe(()=>O[39]||(O[39]=[P(" 适用于原生适配 "),L("span",{class:"font-bold"},"Android Embedded",-1),P(" 的应用 ")])),_:1})]),S(we,{"rail-style":y,value:j.value,"onUpdate:value":O[10]||(O[10]=ve=>j.value=ve),size:"large"},{checked:oe(()=>O[40]||(O[40]=[P("启用平行窗口滑动条")])),unchecked:oe(()=>O[41]||(O[41]=[P("关闭平行窗口滑动条")])),_:1},8,["value"])]),_:1}),j.value?(Fe(),Ht(le,{key:2,bordered:!1,title:"平行窗口可滑动至全屏",size:"small"},{default:oe(()=>[L("div",VG,[S(ee,{bordered:!1,type:"success"},{default:oe(()=>O[42]||(O[42]=[P(" 适用于原生适配 "),L("span",{class:"font-bold"},"Android Embedded",-1),P(" 的应用 ")])),_:1})]),S(we,{"rail-style":y,value:k.value,"onUpdate:value":O[11]||(O[11]=ve=>k.value=ve),size:"large"},{checked:oe(()=>O[43]||(O[43]=[P("平行窗口可滑动至全屏")])),unchecked:oe(()=>O[44]||(O[44]=[P("平行窗口不可滑动至全屏")])),_:1},8,["value"])]),_:1})):ot("",!0)]),_:1}),S(J,{name:"fixedOrientation",tab:"居中布局"},{default:oe(()=>[S(ge,{"show-icon":!1,bordered:!1,title:"应用居中显示",type:"warning"},{default:oe(()=>O[45]||(O[45]=[P(" 开启后,未适配横屏应用界面将居中显示,并可更改显示比例 ")])),_:1}),S(le,{bordered:!1,title:"居中显示比例",size:"small"},{default:oe(()=>[S(de,{value:R.value,"onUpdate:value":O[12]||(O[12]=ve=>R.value=ve),size:"large",trigger:"click",options:v,onSelect:F},{default:oe(()=>[S(ie,{block:"",type:"error",dashed:""},{default:oe(()=>[P(it(R.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),R.value.key==="ratio_custom"?(Fe(),Ht(le,{key:0,bordered:!1,title:"自定义显示比例",size:"small"},{default:oe(()=>[S(ne,{size:"small",value:w.value,"onUpdate:value":O[13]||(O[13]=ve=>w.value=ve),min:1.01,max:1.99,step:.01},null,8,["value"]),S(ce,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入自定义显示比例",value:w.value,"onUpdate:value":O[14]||(O[14]=ve=>w.value=ve),min:1.01,max:1.99,step:.01},null,8,["value"])]),_:1})):ot("",!0),S(le,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:oe(()=>[S(we,{"rail-style":y,value:Z.value,"onUpdate:value":O[15]||(O[15]=ve=>Z.value=ve),size:"large"},{checked:oe(()=>O[46]||(O[46]=[P("应用比例变化时重载应用")])),unchecked:oe(()=>O[47]||(O[47]=[P("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1}),E(a).MIOSVersion&&E(a).MIOSVersion>=2?(Fe(),Ht(le,{key:1,class:"",bordered:!1,title:"强制应用居中显示",size:"small"},{default:oe(()=>[L("div",jG,[S(ee,{bordered:!1,type:"success"},{default:oe(()=>O[48]||(O[48]=[P(" 适用于即使设置了 "),L("span",{class:"font-bold"},"居中布局",-1),P(" 仍无法居中显示的应用 ")])),_:1})]),S(we,{"rail-style":y,value:$.value,"onUpdate:value":O[16]||(O[16]=ve=>$.value=ve),size:"large"},{checked:oe(()=>O[49]||(O[49]=[P("强制应用居中显示")])),unchecked:oe(()=>O[50]||(O[50]=[P("不强制应用居中显示")])),_:1},8,["value"])]),_:1})):ot("",!0)]),_:1}),S(J,{name:"disabled",tab:"原始布局"},{default:oe(()=>[S(ge,{"show-icon":!1,bordered:!1,title:"应用原始布局",type:"error"},{default:oe(()=>O[51]||(O[51]=[P(" 开启后,将禁用任何系统规则干预,应用会根据自身的适配规则进行显示,大多数应用仅竖屏显示 ")])),_:1}),S(le,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:oe(()=>[S(we,{"rail-style":y,value:Z.value,"onUpdate:value":O[17]||(O[17]=ve=>Z.value=ve),size:"large"},{checked:oe(()=>O[52]||(O[52]=[P("应用比例变化时重载应用")])),unchecked:oe(()=>O[53]||(O[53]=[P("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["value"])]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function n6(){const e=Et(),t=M(!1),o=()=>new Promise(async(n,r)=>{if(t.value)r("已经有存在的任务了!");else{t.value=!0;const[i,a]=await Re(NV());if(i&&(r(i),t.value=!1),a){const l=a.trim().split(` -`).filter(u=>u),s={};l.forEach(u=>{const[,d,c]=u.split(",");s[d]=c}),e.installedAppNameList=s,n(s),t.value=!1}}});return{loading:t,installedAppNameList:e.installedAppNameList,getList:o}}function WG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-.53 14.03a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72V8.25a.75.75 0 0 0-1.5 0v5.69l-1.72-1.72a.75.75 0 0 0-1.06 1.06l3 3Z","clip-rule":"evenodd"})])}function UG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M12 7.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z"}),L("path",{"fill-rule":"evenodd",d:"M1.5 4.875C1.5 3.839 2.34 3 3.375 3h17.25c1.035 0 1.875.84 1.875 1.875v9.75c0 1.036-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 14.625v-9.75ZM8.25 9.75a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM18.75 9a.75.75 0 0 0-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 0 0 .75-.75V9.75a.75.75 0 0 0-.75-.75h-.008ZM4.5 9.75A.75.75 0 0 1 5.25 9h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H5.25a.75.75 0 0 1-.75-.75V9.75Z","clip-rule":"evenodd"}),L("path",{d:"M2.25 18a.75.75 0 0 0 0 1.5c5.4 0 10.63.722 15.6 2.075 1.19.324 2.4-.558 2.4-1.82V18.75a.75.75 0 0 0-.75-.75H2.25Z"})])}function KG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z"}),L("path",{"fill-rule":"evenodd",d:"M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z","clip-rule":"evenodd"})])}function GG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z","clip-rule":"evenodd"})])}function qG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z","clip-rule":"evenodd"})])}function r6(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M11.078 2.25c-.917 0-1.699.663-1.85 1.567L9.05 4.889c-.02.12-.115.26-.297.348a7.493 7.493 0 0 0-.986.57c-.166.115-.334.126-.45.083L6.3 5.508a1.875 1.875 0 0 0-2.282.819l-.922 1.597a1.875 1.875 0 0 0 .432 2.385l.84.692c.095.078.17.229.154.43a7.598 7.598 0 0 0 0 1.139c.015.2-.059.352-.153.43l-.841.692a1.875 1.875 0 0 0-.432 2.385l.922 1.597a1.875 1.875 0 0 0 2.282.818l1.019-.382c.115-.043.283-.031.45.082.312.214.641.405.985.57.182.088.277.228.297.35l.178 1.071c.151.904.933 1.567 1.85 1.567h1.844c.916 0 1.699-.663 1.85-1.567l.178-1.072c.02-.12.114-.26.297-.349.344-.165.673-.356.985-.57.167-.114.335-.125.45-.082l1.02.382a1.875 1.875 0 0 0 2.28-.819l.923-1.597a1.875 1.875 0 0 0-.432-2.385l-.84-.692c-.095-.078-.17-.229-.154-.43a7.614 7.614 0 0 0 0-1.139c-.016-.2.059-.352.153-.43l.84-.692c.708-.582.891-1.59.433-2.385l-.922-1.597a1.875 1.875 0 0 0-2.282-.818l-1.02.382c-.114.043-.282.031-.449-.083a7.49 7.49 0 0 0-.985-.57c-.183-.087-.277-.227-.297-.348l-.179-1.072a1.875 1.875 0 0 0-1.85-1.567h-1.843ZM12 15.75a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z","clip-rule":"evenodd"})])}function ZG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M16.5 7.5h-9v9h9v-9Z"}),L("path",{"fill-rule":"evenodd",d:"M8.25 2.25A.75.75 0 0 1 9 3v.75h2.25V3a.75.75 0 0 1 1.5 0v.75H15V3a.75.75 0 0 1 1.5 0v.75h.75a3 3 0 0 1 3 3v.75H21A.75.75 0 0 1 21 9h-.75v2.25H21a.75.75 0 0 1 0 1.5h-.75V15H21a.75.75 0 0 1 0 1.5h-.75v.75a3 3 0 0 1-3 3h-.75V21a.75.75 0 0 1-1.5 0v-.75h-2.25V21a.75.75 0 0 1-1.5 0v-.75H9V21a.75.75 0 0 1-1.5 0v-.75h-.75a3 3 0 0 1-3-3v-.75H3A.75.75 0 0 1 3 15h.75v-2.25H3a.75.75 0 0 1 0-1.5h.75V9H3a.75.75 0 0 1 0-1.5h.75v-.75a3 3 0 0 1 3-3h.75V3a.75.75 0 0 1 .75-.75ZM6 6.75A.75.75 0 0 1 6.75 6h10.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V6.75Z","clip-rule":"evenodd"})])}function i6(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm0 8.625a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM15.375 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0ZM7.5 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z","clip-rule":"evenodd"})])}function XG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),L("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),L("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})])}function YG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M1.5 5.625c0-1.036.84-1.875 1.875-1.875h17.25c1.035 0 1.875.84 1.875 1.875v12.75c0 1.035-.84 1.875-1.875 1.875H3.375A1.875 1.875 0 0 1 1.5 18.375V5.625Zm1.5 0v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5A.375.375 0 0 0 3 5.625Zm16.125-.375a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5A.375.375 0 0 0 21 7.125v-1.5a.375.375 0 0 0-.375-.375h-1.5ZM21 9.375A.375.375 0 0 0 20.625 9h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5Zm0 3.75a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5a.375.375 0 0 0 .375-.375v-1.5ZM4.875 18.75a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375h1.5ZM3.375 15h1.5a.375.375 0 0 0 .375-.375v-1.5a.375.375 0 0 0-.375-.375h-1.5a.375.375 0 0 0-.375.375v1.5c0 .207.168.375.375.375Zm0-3.75h1.5a.375.375 0 0 0 .375-.375v-1.5A.375.375 0 0 0 4.875 9h-1.5A.375.375 0 0 0 3 9.375v1.5c0 .207.168.375.375.375Zm4.125 0a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 0-1.5h-9Z","clip-rule":"evenodd"})])}function a6(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M3.792 2.938A49.069 49.069 0 0 1 12 2.25c2.797 0 5.54.236 8.209.688a1.857 1.857 0 0 1 1.541 1.836v1.044a3 3 0 0 1-.879 2.121l-6.182 6.182a1.5 1.5 0 0 0-.439 1.061v2.927a3 3 0 0 1-1.658 2.684l-1.757.878A.75.75 0 0 1 9.75 21v-5.818a1.5 1.5 0 0 0-.44-1.06L3.13 7.938a3 3 0 0 1-.879-2.121V4.774c0-.897.64-1.683 1.542-1.836Z","clip-rule":"evenodd"})])}function QG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M1.5 4.5a3 3 0 0 1 3-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 0 1-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 0 0 6.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 0 1 1.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 0 1-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5Z","clip-rule":"evenodd"})])}function Em(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}function JG(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M8.128 9.155a3.751 3.751 0 1 1 .713-1.321l1.136.656a.75.75 0 0 1 .222 1.104l-.006.007a.75.75 0 0 1-1.032.157 1.421 1.421 0 0 0-.113-.072l-.92-.531Zm-4.827-3.53a2.25 2.25 0 0 1 3.994 2.063.756.756 0 0 0-.122.23 2.25 2.25 0 0 1-3.872-2.293ZM13.348 8.272a5.073 5.073 0 0 0-3.428 3.57 5.08 5.08 0 0 0-.165 1.202 1.415 1.415 0 0 1-.707 1.201l-.96.554a3.751 3.751 0 1 0 .734 1.309l13.729-7.926a.75.75 0 0 0-.181-1.374l-.803-.215a5.25 5.25 0 0 0-2.894.05l-5.325 1.629Zm-9.223 7.03a2.25 2.25 0 1 0 2.25 3.897 2.25 2.25 0 0 0-2.25-3.897ZM12 12.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"}),L("path",{d:"M16.372 12.615a.75.75 0 0 1 .75 0l5.43 3.135a.75.75 0 0 1-.182 1.374l-.802.215a5.25 5.25 0 0 1-2.894-.051l-5.147-1.574a.75.75 0 0 1-.156-1.367l3-1.732Z"})])}function eq(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M5.507 4.048A3 3 0 0 1 7.785 3h8.43a3 3 0 0 1 2.278 1.048l1.722 2.008A4.533 4.533 0 0 0 19.5 6h-15c-.243 0-.482.02-.715.056l1.722-2.008Z"}),L("path",{"fill-rule":"evenodd",d:"M1.5 10.5a3 3 0 0 1 3-3h15a3 3 0 1 1 0 6h-15a3 3 0 0 1-3-3Zm15 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm2.25.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM4.5 15a3 3 0 1 0 0 6h15a3 3 0 1 0 0-6h-15Zm11.25 3.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM19.5 18a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z","clip-rule":"evenodd"})])}function tq(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M4.08 5.227A3 3 0 0 1 6.979 3H17.02a3 3 0 0 1 2.9 2.227l2.113 7.926A5.228 5.228 0 0 0 18.75 12H5.25a5.228 5.228 0 0 0-3.284 1.153L4.08 5.227Z"}),L("path",{"fill-rule":"evenodd",d:"M5.25 13.5a3.75 3.75 0 1 0 0 7.5h13.5a3.75 3.75 0 1 0 0-7.5H5.25Zm10.5 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm3.75-.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z","clip-rule":"evenodd"})])}function oq(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{d:"M6 3a3 3 0 0 0-3 3v1.5a.75.75 0 0 0 1.5 0V6A1.5 1.5 0 0 1 6 4.5h1.5a.75.75 0 0 0 0-1.5H6ZM16.5 3a.75.75 0 0 0 0 1.5H18A1.5 1.5 0 0 1 19.5 6v1.5a.75.75 0 0 0 1.5 0V6a3 3 0 0 0-3-3h-1.5ZM12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5ZM4.5 16.5a.75.75 0 0 0-1.5 0V18a3 3 0 0 0 3 3h1.5a.75.75 0 0 0 0-1.5H6A1.5 1.5 0 0 1 4.5 18v-1.5ZM21 16.5a.75.75 0 0 0-1.5 0V18a1.5 1.5 0 0 1-1.5 1.5h-1.5a.75.75 0 0 0 0 1.5H18a3 3 0 0 0 3-3v-1.5Z"})])}function nq(e,t){return Fe(),Te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[L("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}function km(e){let t="",o=new Uint8Array(e),n=o.byteLength;for(let r=0;r<n;r++)t+=String.fromCharCode(o[r]);return window.btoa(t)}function _m(e){const t=window.atob(e),o=t.length,n=new Uint8Array(o);for(let r=0;r<o;r++)n[r]=t.charCodeAt(r);return n}const rq={class:"mb-10"},iq={class:"mt-3"},aq={class:"mb-3 px-4 sm:px-0"},lq={class:"flex flex-wrap"},sq={class:"flex"},uq={class:"flex"},dq=xe({__name:"HomeView",setup(e){const t=M(""),o=n6(),n=Et(),r=Hs(),i=ea(),a=M(!1),l=M(!1),s=M(null),u=M(null),d=M(null),c=I(()=>({theme:n.isDarkMode?io:Zt})),{message:h,modal:f,notification:p}=po(["message","modal","notification"],{configProviderProps:c}),g=T(),v=M(!1),b=M(null);function x(z){return()=>m(Wt,null,{default:()=>m(z)})}const k=async()=>{const[z,F]=await Re(o.getList());z&&f.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>S("p",null,[P("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),F&&f.create({title:"获取成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},C=()=>{r.filterInstalledApps=!r.filterInstalledApps};at(()=>r.isNeedShowErrorModal,(z,F)=>{z&&(v.value=!0)},{immediate:!1});const _=async()=>{await n.getAndroidApplicationPackageNameList(),await r.initDefault()},R=async()=>{t.value="";const[,z]=await Re(new Promise((F,y)=>{f.create({title:"请粘贴分享规则口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:t.value,"onUpdate:value":re=>{t.value=re},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){F("positiveClick")}})}));if(z){a.value=!0;const F=t.value,y=mm(F);if(!(y!=null&&y.length)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入分享规则失败了QwQ,解析")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("口令发生错误,无法正常解析。")]),negativeText:"确定"}),a.value=!1;return}try{const re=_m(y),te=La.inflate(re,{to:"string"}),j=JSON.parse(te);if(j.type!=="embedded"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入分享规则失败了QwQ,该")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("不适用于应用横屏布局。")]),negativeText:"确定"}),a.value=!1;return}if(j.device==="pad"&&n.deviceCharacteristics!=="tablet"||j.device==="fold"&&n.deviceCharacteristics==="tablet"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),a.value=!1;return}if(j.comp===1&&n.MIOSVersion&&n.MIOSVersion>1){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入分享规则失败了QwQ,该")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("仅兼容Android 13 - 14 的小米机型。")]),negativeText:"确定"}),a.value=!1;return}if(j.comp===2&&(!n.MIOSVersion||n.MIOSVersion===1)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入分享规则失败了QwQ,该")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("仅兼容Hyper OS 2.0的小米机型。")]),negativeText:"确定"}),a.value=!1;return}r.customConfigEmbeddedRulesList[j.name]=j.em,r.customConfigFixedOrientationList[j.name]=j.fo,n.MIOSVersion&&n.MIOSVersion>=2?r.customConfigEmbeddedSettingConfig[j.name]={name:j.name,...hf(r.customConfigEmbeddedRulesList[j.name],r.customConfigFixedOrientationList[j.name],j.mode)}:r.systemEmbeddedSettingConfig[j.name]={name:j.name,embeddedEnable:!!["embedded","fullScreen"].includes(j.mode)};const[Z,se]=await Re(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:j.name,action:Cu(j.mode)}}:{switchAction:{name:j.name,action:["embedded","fullScreen"].includes(j.mode)?"enable":"disable"}}}));Z?(f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),a.value=!1):(r.updateMergeRuleList(),await _(),a.value=!1,f.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(j.name,n.installedAppNameList[j.name]||r.applicationName[j.name])])," ",P("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平板专区-平行窗口")])," ",P("内")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(j.mode)?"打开":"关闭"])," ",P("该应用的开关再做尝试~")]),positiveText:"确定"}))}catch{f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),a.value=!1}}},w=It({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:z=>{w.page=z},onUpdatePageSize:z=>{w.pageSize=z,w.page=1}}),A=M(!1),$=async()=>{l.value=!0,await _();const[z,F]=await Re(Jd("miui_embedding_window"));z&&(f.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),l.value=!1),F&&(f.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),l.value=!1)},B=async()=>{await n.getAndroidApplicationPackageNameList(),A.value=!0;const[z,F]=await Re(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")}}));z?(f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),A.value=!1):(r.updateMergeRuleList(),A.value=!1,f.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("好耶w,已根据您设备当前的整体应用情况重新")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("修剪模块应用适配列表")])," ",P(",后续每次更新模块或者安装新的应用后,建议重新操作")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("生成定制应用数据")])," ",P("。")])]),negativeText:"确定"}))},U=async()=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(u.value){const[z,F]=await Re(u.value.openDrawer());if(z)console.log("操作取消:",z);else{F.settingMode==="fullScreen"&&(F.modePayload.fullRule&&(r.customConfigEmbeddedRulesList[F.name]={name:F.name,fullRule:F.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}),r.customConfigFixedOrientationList[F.name]={name:F.name,...F.modePayload.isShowDivider?{isShowDivider:!0}:{},...F.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...F.modePayload.supportFullSize?{supportFullSize:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"full"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}),F.settingMode==="fixedOrientation"&&(r.customConfigFixedOrientationList[F.name]={name:F.name,...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...F.modePayload.ratio!==void 0?{ratio:F.modePayload.ratio}:{},...F.modePayload.foRelaunch!==void 0?{relaunch:F.modePayload.foRelaunch}:{}}),F.settingMode==="disabled"&&(r.customConfigFixedOrientationList[F.name]={name:F.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...F.modePayload.foRelaunch!==void 0?{relaunch:F.modePayload.foRelaunch}:{}}),n.MIOSVersion&&n.MIOSVersion>=2?r.customConfigEmbeddedSettingConfig[F.name]={name:F.name,...hf(r.customConfigEmbeddedRulesList[F.name],r.customConfigFixedOrientationList[F.name],F.settingMode)}:r.systemEmbeddedSettingConfig[F.name]={name:F.name,embeddedEnable:!!["embedded","fullScreen"].includes(F.settingMode)};const[y,re]=await Re(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:F.name,action:Cu(F.settingMode)}}:{switchAction:{name:F.name,action:["embedded","fullScreen"].includes(F.settingMode)?"enable":"disable"}}}));y?(f.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),F.loadingCallback&&F.loadingCallback()):(f.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(F.name,n.installedAppNameList[F.name]||r.applicationName[F.name])])," ",P("的应用配置添加成功了OwO~如果应用添加后的规则不生效,可以尝试重启平板并且在")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平板专区-平行窗口")])," ",P("内")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(F.settingMode)?"打开":"关闭"])," ",P("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),F.loadingCallback&&F.loadingCallback(),F.closeCallback&&F.closeCallback())}}},N=async(z,F)=>{var y;if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(d.value){i.info(JSON.stringify(z),"rowww");const[re,te]=await Re(d.value.openDrawer(z));if(re)console.log("操作取消:",re);else{if(te.settingMode==="fullScreen"){const{moduleEmbeddedRules:se,currentEmbeddedRules:pe,moduleFixedOrientation:Se,currentFixedOrientation:he}=bl(z.name);pe.value?(te.modePayload.fullRule&&(pe.value.fullRule=te.modePayload.fullRule,pe.value.skipSelfAdaptive=!0),n.MIOSVersion&&n.MIOSVersion>=2&&!te.modePayload.fullRule&&pe.value.fullRule&&delete pe.value.fullRule,da(se.value,pe.value)||(r.customConfigEmbeddedRulesList[z.name]={name:z.name,...pe.value})):te.modePayload.fullRule?r.customConfigEmbeddedRulesList[z.name]={name:z.name,fullRule:te.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}:n.MIOSVersion&&n.MIOSVersion>=2&&(r.customConfigEmbeddedRulesList[z.name]={name:z.name,skipSelfAdaptive:!0}),he.value?(te.modePayload.hasOwnProperty("isShowDivider")&&(he.value.isShowDivider=te.modePayload.isShowDivider),te.modePayload.hasOwnProperty("supportFullSize")&&(he.value.supportFullSize=te.modePayload.supportFullSize),n.MIOSVersion&&n.MIOSVersion>=2?(he.value.hasOwnProperty("disable")&&delete he.value.disable,he.value.hasOwnProperty("compatChange")&&delete he.value.compatChange):te.modePayload.hasOwnProperty("skipSelfAdaptive")&&(he.value.disable=te.modePayload.skipSelfAdaptive),da(Se.value,he.value)||(r.customConfigFixedOrientationList[z.name]={name:z.name,...he.value})):r.customConfigFixedOrientationList[z.name]={name:z.name,...te.modePayload.isShowDivider?{isShowDivider:!0}:{},...te.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...te.modePayload.supportFullSize?{supportFullSize:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"full"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(te.settingMode==="fixedOrientation"){const{moduleEmbeddedRules:se,currentEmbeddedRules:pe,moduleFixedOrientation:Se,currentFixedOrientation:he}=bl(z.name);if(he.value){if(he.value.hasOwnProperty("disable")&&delete he.value.disable,he.value.hasOwnProperty("isScale")&&delete he.value.isScale,te.modePayload.ratio!==void 0?he.value.ratio=te.modePayload.ratio:delete he.value.ratio,te.modePayload.foRelaunch!==void 0?he.value.relaunch=te.modePayload.foRelaunch:delete he.value.relaunch,n.MIOSVersion&&n.MIOSVersion>=2)if(he.value.supportModes="full,fo",he.value.defaultSettings="fo",he.value.skipSelfAdaptive=!0,te.modePayload.hasOwnProperty("forceFixedOrientation")&&te.modePayload.forceFixedOrientation)if(he.value.compatChange){const Y=new Set((y=he.value.compatChange)==null?void 0:y.split(","));Y.add("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"),he.value.compatChange=[...Y].join(",")}else he.value.compatChange="OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT";else he.value.hasOwnProperty("compatChange")&&delete he.value.compatChange;da(Se.value,he.value)||(r.customConfigFixedOrientationList[z.name]={name:z.name,...he.value})}else r.customConfigFixedOrientationList[z.name]={name:z.name,...n.MIOSVersion&&n.MIOSVersion>=2?{supportModes:"full,fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{defaultSettings:"fo"}:{},...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{},...n.MIOSVersion&&n.MIOSVersion>=2&&te.modePayload.forceFixedOrientation?{compatChange:"OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"}:{},...te.modePayload.ratio!==void 0?{ratio:te.modePayload.ratio}:{},...te.modePayload.foRelaunch!==void 0?{relaunch:te.modePayload.foRelaunch}:{}}}if(te.settingMode==="disabled"&&z.settingMode!==te.settingMode){const{moduleEmbeddedRules:se,currentEmbeddedRules:pe,moduleFixedOrientation:Se,currentFixedOrientation:he}=bl(z.name);he.value?(he.value.skipSelfAdaptive=!0,he.value.disable=!0,he.value.hasOwnProperty("compatChange")&&delete he.value.compatChange,da(Se.value,he.value)||(r.customConfigFixedOrientationList[z.name]={name:z.name,...he.value})):r.customConfigFixedOrientationList[z.name]={name:z.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(te.settingMode==="embedded"){if(z.settingMode!==te.settingMode&&z.ruleMode==="custom"&&z.isSupportEmbedded&&delete r.customConfigEmbeddedRulesList[z.name],r.customConfigEmbeddedRulesList[z.name])te.modePayload.hasOwnProperty("splitRatio")&&(r.customConfigEmbeddedRulesList[z.name].splitRatio=te.modePayload.splitRatio),te.modePayload.hasOwnProperty("relaunch")&&(r.customConfigEmbeddedRulesList[z.name].relaunch=te.modePayload.emRelaunch);else{let se=!1;te.modePayload.hasOwnProperty("splitRatio")&&(se=!0),te.modePayload.hasOwnProperty("emRelaunch")&&(se=!0),se&&(r.customConfigEmbeddedRulesList[z.name]={...r.isPatchMode?r.patchEmbeddedRulesList[z.name]:r.sourceEmbeddedRulesList[z.name],...te.modePayload.hasOwnProperty("splitRatio")&&{splitRatio:te.modePayload.splitRatio},...te.modePayload.hasOwnProperty("emRelaunch")&&{relaunch:te.modePayload.emRelaunch}})}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:se,currentEmbeddedRules:pe,moduleFixedOrientation:Se,currentFixedOrientation:he}=bl(z.name);he.value&&(he.hasOwnProperty("disable")&&delete he.value.disable,he.hasOwnProperty("defaultSettings")&&delete he.value.defaultSettings,he.hasOwnProperty("skipSelfAdaptive")||(he.value.skipSelfAdaptive=!0),he.hasOwnProperty("compatChange")&&delete he.value.compatChange),he.value&&(pe.hasOwnProperty("skipSelfAdaptive")||(pe.value.skipSelfAdaptive=!0)),da(se.value,pe.value)||(r.customConfigFixedOrientationList[z.name]={name:z.name,...he.value}),da(Se.value,he.value)||(r.customConfigEmbeddedRulesList[z.name]={name:z.name,...pe.value})}}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:se,currentEmbeddedRules:pe,moduleFixedOrientation:Se,currentFixedOrientation:he}=bl(z.name);z.settingMode!==te.settingMode&&(r.customConfigEmbeddedSettingConfig[z.name]={name:z.name,...hf(pe.value,he.value,te.settingMode)})}else r.systemEmbeddedSettingConfig[z.name]={name:z.name,embeddedEnable:!!["embedded","fullScreen"].includes(te.settingMode)};const[j,Z]=await Re(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:z.name,action:Cu(te.settingMode)}}:{switchAction:{name:z.name,action:["embedded","fullScreen"].includes(te.settingMode)?"enable":"disable"}}}));j?(f.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),te.loadingCallback&&te.loadingCallback()):(f.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(z.name,z.applicationName)])," ",P("的应用配置更新成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平板专区-平行窗口")])," ",P("内")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(te.settingMode)?"打开":"关闭"])," ",P("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),te.loadingCallback&&te.loadingCallback(),te.closeCallback&&te.closeCallback())}}},K=async(z,F,y,re)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("该功能仅兼容平板设备,不兼容折叠屏设备!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,不兼容折叠屏设备!");return}if(z==="cleanCustomRule"){const te=f.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>S("p",null,[P("清除自定义规则后,你对")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(y.name,y.applicationName)])," ",P("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("模块规则")])," ",P(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{te.loading=!0,r.customConfigEmbeddedRulesList[y.name]&&delete r.customConfigEmbeddedRulesList[y.name],r.customConfigFixedOrientationList[y.name]&&delete r.customConfigFixedOrientationList[y.name],r.customConfigEmbeddedSettingConfig[y.name]&&delete r.customConfigEmbeddedSettingConfig[y.name];const[j,Z]=await Re(ba({isPatchMode:r.isPatchMode,patchEmbeddedRulesListXML:ct(r.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(r.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(r.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(r.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(r.customConfigFixedOrientationList,"package",void 0),...n.MIOSVersion&&n.MIOSVersion>=2?{settingConfigXML:ct(r.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(r.systemEmbeddedSettingConfig,"setting","setting_rule")},...n.MIOSVersion&&n.MIOSVersion>=2?{setAppMode:{name:y.name,action:Cu(hS(r.isPatchMode?r.patchEmbeddedRulesList[y.name]:r.sourceEmbeddedRulesList[y.name],r.isPatchMode?r.patchFixedOrientationList[y.name]:r.sourceFixedOrientationList[y.name]))}}:{switchAction:{name:y.name,action:(r.isPatchMode?r.patchEmbeddedRulesList[y.name]:r.sourceEmbeddedRulesList[y.name])?"enable":"disable"}}}));j?(f.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),te.loading=!1):(f.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),te.loading=!1,r.updateMergeRuleList())}})}if(z==="shareCustomRule"){const te={name:y.name,cmpt:n.MIOSVersion&&n.MIOSVersion>=2?2:1,em:{name:y.name,...y.embeddedRules},fo:{name:y.name,...y.fixedOrientationRule},type:"embedded",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:y.settingMode},j=JSON.stringify(te),Z=La.deflate(j,{level:9,memLevel:9,windowBits:15}),se=new Uint8Array(Z),pe=km(se),[Se]=await Re(navigator.clipboard.writeText(`我分享了一个[应用横屏布局]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: -${pe}`));if(Se){f.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("复制")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(y.name,y.applicationName)])," ",P("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("长度过大。")]),negativeText:"确定"});return}else f.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("好耶w,复制")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(y.name,y.applicationName)])," ",P("分享口令成功了~")]),S("p",null,[P("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("长度过大。")]),S("p",null,[P("分享口令导入入口位于")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("应用横屏布局- 从分享口令导入")])," ",P("。")])]),positiveText:"确定"})}},H=(z,F)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}f.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("模块已对")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(z.name,z.applicationName)])," ",P("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})};function T(){return[{title:"应用名称",minWidth:250,key:"name",render(z,F){return S("div",null,[z.applicationName&&S("p",null,[z.applicationName]),z.name&&S("p",null,[S("span",{class:{hidden:!z.applicationName}},[P("(")]),z.name,S("span",{class:{hidden:!z.applicationName}},[P(")")])])])}},{title:"规则来源",minWidth:100,key:"ruleMode",render(z,F){const y={icon:z.ruleMode==="custom"?i6:Em};if(z.ruleMode==="custom"){const re=[{label:"分享自定义规则",key:"shareCustomRule",icon:x(ld)},{label:"清除自定义规则",key:"cleanCustomRule",icon:x(lS)}];return S(lt("n-dropdown"),{onSelect:(te,j)=>K(te,j,z),size:"large",trigger:"click",options:re},{default:()=>[S(lt("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[P("自定义规则")],...y})]})}return S(lt("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>H(z)},{default:()=>[P("模块规则")],...y})}},{title:"应用兼容性",minWidth:100,key:"setting",render(z,F){const y={icon:nq},re=(te,j)=>{f.create({title:"想重置应用兼容性吗?",type:"warning",preset:"dialog",content:()=>S("p",null,[P("重置后,可以解决")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(te.name,te.applicationName)])," ",P("由于系统错误的应用兼容性配置导致应用布局异常的问题(正常情况下不需要重置),确定要继续吗?")]),positiveText:"确定重置",negativeText:"我再想想",onPositiveClick:async()=>{const[Z,se]=await Re(bS(te.name));Z?f.create({title:"重置应用兼容性失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,重置应用兼容性失败了QwQ,详细错误请查看错误日志~")])}):f.create({title:"重置应用兼容性成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,重置")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(te.name,te.applicationName)])," ",P("的应用兼容性成功了OwO~")])})}})};return S("div",null,[S(lt("n-button"),{size:"small",dashed:!0,type:"warning",onClick:()=>re(z)},{default:()=>[P("兼容性重置")],...y})])}},{title:"当前规则",minWidth:100,key:"settingMode",render(z,F){const y={icon:r6},re={embedded:{type:"success",name:"平行窗口",onClick(te,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}N(te)}},fullScreen:{type:"info",name:"全屏",onClick(te,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("该功能仅兼容平板设备不兼容折叠屏设备!")])});return}N(te)}},fixedOrientation:{type:"warning",name:"居中布局",onClick(te,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}N(te)}},disabled:{type:"error",name:"原始布局",onClick(te,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}N(te)}}};return S(lt("n-button"),{size:"small",strong:!0,dashed:!0,type:re[z.settingMode].type,onClick:()=>re[z.settingMode].onClick(z,F)},{default:()=>[re[z.settingMode].name],...y})}}]}return ut(()=>{kt(()=>{r.isNeedShowReloadPathModeDialog&&Rt(async()=>{const[,z]=await Re(new Promise((F,y)=>{f.create({title:"是否需要重新生成定制应用数据?",type:"info",preset:"dialog",content:()=>S("p",null,[P("检测到您最近已经更新了模块版本并且开启了")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("定制模式")])," ",P(",模块需要重新操作")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("生成定制应用数据")])," ",P(",确定要继续吗?")]),positiveText:"确定",negativeText:"取消",onPositiveClick(){F("success")},onNegativeClick(){y("cancel")},onMaskClick(){y("cancel")},onClose(){y("cancel")}})}));z&&B(),r.isNeedShowReloadPathModeDialog=!1,n.needReloadData=!1})})}),(z,F)=>{const y=lt("n-alert"),re=lt("n-input-group"),te=lt("n-card");return Fe(),Te(ft,null,[L("main",rq,[L("div",iq,[L("div",aq,[F[12]||(F[12]=L("h3",{class:ye("text-base font-semibold leading-7")},[L("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient( - 101.22deg, - rgb(255, 182, 133) -18.32%, - rgb(255, 111, 29) 7.01%, - rgb(252, 181, 232) 41.59%, - rgb(135, 148, 255) 70.98%, - rgb(60, 112, 255) 91.35%, - rgb(60, 112, 255) 110.17% - )`}},"应用横屏布局")],-1)),L("p",{class:ye(`mt-1 max-w-2xl text-sm leading-6 ${E(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用横屏布局,优化应用在横屏下的体验。 ",2)])]),S(te,{size:"small"},{default:oe(()=>[E(n).skipConfirm.patchModeAlert?ot("",!0):(Fe(),Ht(y,{key:0,type:"info",class:"mb-3",closable:"",onClose:F[0]||(F[0]=()=>{E(n).skipConfirm.patchModeAlert=!0})},{default:oe(()=>F[13]||(F[13]=[P(" 由于小米系统优化不佳的原因,大量的应用适配规则可能导致系统出现卡顿、掉帧等问题,建议老机型可以前往开启模块的定制模式,详情可以前往模块设置中了解。 ")])),_:1})),L("div",lq,[S(E(St),{class:"mb-3 mr-3",type:"info",loading:E(n).loading||E(r).loading,onClick:U},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(iS))]),_:1})]),default:oe(()=>[F[14]||(F[14]=P(" 添加应用 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",type:"success",loading:E(n).loading||E(r).loading,onClick:F[1]||(F[1]=()=>_())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(tS))]),_:1})]),default:oe(()=>[F[15]||(F[15]=P(" 刷新应用列表 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",color:"#8a2be2",loading:E(n).loading||E(r).loading||l.value,onClick:F[2]||(F[2]=()=>$())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(aS))]),_:1})]),default:oe(()=>[F[16]||(F[16]=P(" 热重载应用数据 "))]),_:1},8,["loading"]),E(r).isPatchMode?(Fe(),Ht(E(St),{key:0,class:"mb-3 mr-3",type:"error",loading:E(n).loading||E(r).loading||A.value,onClick:F[3]||(F[3]=()=>B())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(KN))]),_:1})]),default:oe(()=>[F[17]||(F[17]=P(" 生成定制应用数据 "))]),_:1},8,["loading"])):ot("",!0),S(E(St),{class:"mb-3 mr-3",color:"#69b2b6",loading:E(n).loading||E(r).loading||E(o).loading.value,onClick:F[4]||(F[4]=j=>k())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(oS))]),_:1})]),default:oe(()=>[F[18]||(F[18]=P(" 获取已安装应用名称 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",type:"warning",loading:E(n).loading||E(r).loading||a.value,onClick:F[5]||(F[5]=j=>R())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(ld))]),_:1})]),default:oe(()=>[F[19]||(F[19]=P(" 从分享口令导入 "))]),_:1},8,["loading"])]),L("div",sq,[S(E(St),{class:"mb-3 mr-3",type:E(r).filterInstalledApps?"success":"info",strong:"",loading:E(n).loading||E(r).loading,secondary:"",onClick:C},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[E(r).filterInstalledApps?(Fe(),Ht(E(a6),{key:0})):(Fe(),Ht(E(nS),{key:1}))]),_:1})]),default:oe(()=>[P(" "+it(E(r).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),S(E(St),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:E(n).loading||E(r).loading,onClick:F[6]||(F[6]=()=>fS())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>F[20]||(F[20]=[L("img",{src:yS},null,-1)])),_:1})]),default:oe(()=>[F[21]||(F[21]=P(" 应用抽屉 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",type:"error",secondary:"",loading:E(n).loading||E(r).loading,onClick:F[7]||(F[7]=()=>cS())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>F[22]||(F[22]=[L("img",{src:sd},null,-1)])),_:1})]),default:oe(()=>[F[23]||(F[23]=P(" 超级小爱 "))]),_:1},8,["loading"])]),L("div",uq,[S(re,null,{default:oe(()=>[S(E(rn),{size:"large",clearable:"",value:E(r).searchKeyWord,"onUpdate:value":F[8]||(F[8]=j=>E(r).searchKeyWord=j),ref_key:"searchKeyWordInput",ref:s,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),S(E(St),{size:"large",type:"primary",onClick:F[9]||(F[9]=()=>{var j;(j=s.value)==null||j.blur()})},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(rS))]),_:1})]),default:oe(()=>[F[24]||(F[24]=P(" 搜索 "))]),_:1}),S(E(St),{size:"large",bordered:"",onClick:F[10]||(F[10]=()=>{E(r).searchKeyWord=""})},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(sS))]),_:1})]),default:oe(()=>[F[25]||(F[25]=P(" 清空 "))]),_:1})]),_:1})])]),_:1}),S(E(K5),{ref_key:"embeddedTableRef",ref:b,loading:E(n).loading||E(r).loading,columns:E(g),class:"mt-3",data:E(r).filterMergeRuleList,pagination:w},null,8,["loading","columns","data","pagination"])]),S(gS,{modelValue:v.value,"onUpdate:modelValue":F[11]||(F[11]=j=>v.value=j),errorLogging:E(r).errorLogging},null,8,["modelValue","errorLogging"]),S(Ob,{ref_key:"addEmbeddedApp",ref:u,type:"add",title:"添加应用"},null,512),S(Ob,{ref_key:"updateEmbeddedApp",ref:d,type:"update",title:"更新应用"},null,512)],64)}}}),Lb=xe({__name:"AutoUIAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=M(null),r=M(null),i=e,a=M(!1),l=Et(),s=gm(),u=ea(),d=I(()=>({theme:l.isDarkMode?io:Zt})),{message:c,modal:h}=po(["message","modal"],{configProviderProps:d});let f,p;const g=[{label:"空白规则",key:"UNDEFINED_VIEW_POLICY"},{label:"全局缩放[*:0]",key:"VIEW_POLICY_DEFAULT",rule:"*:0"},{label:"全局拉伸[*:1]",key:"VIEW_POLICY_STRETCH",rule:"*:1"},{label:"全局栅格[*:2]",key:"VIEW_POLICY_AUTO_COLUMNS",rule:"*:2"},{label:"全局浮动[*:6]",key:"VIEW_POLICY_FLOAT",rule:"*:6"},{label:"精确适配",key:"CUSTOM_VIEW_POLICY"}],v=M(g[0]),b=M(""),x=M(""),k=M(),C=M(!1),_=M(!1),R=M(),w=M({openDrawer:F=>new Promise((y,re)=>{var te,j,Z,se;if(i.type==="update"&&!F){re(new Error("更新模式下必须传入初始化参数")),c.error("初始化参数不能为空");return}if(f=y,p=re,i.type==="add"&&(R.value="add",K.value="",b.value="",v.value=g[0],x.value="",_.value=!1,C.value=!0),i.type==="update"&&F){switch(R.value="update",K.value=F.name,k.value=F.ruleMode,b.value=((te=F.autoUIRule)==null?void 0:te.activityRule)||"",b.value){case"":{v.value=g[0];break}case"*:0":{v.value=g[1];break}case"*:1":{v.value=g[2];break}case"*:2":{v.value=g[3];break}case"*:6":{v.value=g[4];break}default:{v.value=g[5];break}}x.value=((j=F.autoUIRule)==null?void 0:j.skippedActivityRule)||"",_.value=((Z=F.autoUIRule)==null?void 0:Z.skippedAppConfigChange)||!1,C.value=((se=F.autoUIRule)==null?void 0:se.optimizeWebView)||!1}a.value=!0}),closeDrawer:()=>{a.value=!1,p("Drawer closed without submission")}}),A=(F,y)=>{v.value=y,b.value=y.rule||""},$=({focused:F,checked:y})=>{const re={};return y?(re.background="#2080f0",F&&(re.boxShadow="0 0 0 2px #2080f040")):(re.background="#d03050",F&&(re.boxShadow="0 0 0 2px #d0305040")),re},B=F=>{const y=document.querySelector(".n-drawer-content");y instanceof HTMLElement&&(u.info("resizeDrawerContent",F),y.style.height=F?"calc(100% + 200px)":"100%")},U=F=>{var y,re;F==="currentActivityRuleRef"&&(B(!0),(y=r.value)==null||y.$el.scrollIntoView({behavior:"smooth",block:"start"})),F==="currentSkippedActivityRuleRef"&&(B(!0),(re=n.value)==null||re.$el.scrollIntoView({behavior:"smooth",block:"start"}))},N=F=>{var y,re;F==="currentActivityRuleRef"&&(B(!1),(y=r.value)==null||y.$el.scrollIntoView({behavior:"smooth",block:"start"})),F==="currentSkippedActivityRuleRef"&&(B(!1),(re=n.value)==null||re.$el.scrollIntoView({behavior:"smooth",block:"start"}))},K=M(""),H=M(""),T=async()=>{if(!K.value){h.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>S("p",null,[P("噫?应用包名不能为空(敲")])});return}if(i.type==="add"&&s.allPackageName.has(K.value)){h.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>S("p",null,[P("噫?这个应用包名已经存在列表中了(敲")])});return}z.value=!0;const F=()=>{z.value=!1,a.value=!1},y=()=>{z.value=!1},re={name:K.value,modePayload:{optimizeWebView:C.value,skippedAppConfigChange:_.value,...v.value.key!=="UNDEFINED_VIEW_POLICY"&&b.value?{activityRule:b.value}:{},...b.value&&x.value?{skippedActivityRule:x.value}:{}},loadingCallback:y,closeCallback:F};h.create({title:"确认应用布局优化规则吗?",type:"warning",preset:"dialog",content:()=>S("p",null,[P("应用布局优化的规则仅在应用横屏全屏场景下才会生效,建议将应用的横屏配置修改为")," ",S("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("全屏")]),P(",规则效果以应用个体差异而异,建议多多尝试。继续更新将会被更替为")," ",S("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P(",且该应用规则不再随模块版本更新,如后续需要改回")," ",S("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("模块规则")])," ",P("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定应用",negativeText:"我再想想",onPositiveClick:async()=>{f(re)},onNegativeClick(){y()},onMaskClick(){y()},onClose(){y()}})},z=M(!1);return M(0),t({openDrawer:w.value.openDrawer}),(F,y)=>{const re=lt("n-input-group-label"),te=lt("n-input"),j=lt("n-input-group"),Z=lt("n-tag"),se=lt("n-alert"),pe=lt("n-button"),Se=lt("n-dropdown"),he=lt("n-card"),fe=lt("n-switch"),Ce=lt("n-drawer-content"),Y=lt("n-drawer");return Fe(),Te(ft,null,[xs(F.$slots,"default",qb(np({openDrawer:w.value.openDrawer}))),S(Y,{show:a.value,"onUpdate:show":y[12]||(y[12]=O=>a.value=O),width:E(l).windowWidth>=640?"450px":"100%",placement:"right"},{default:oe(()=>[S(Ce,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:i.title,closable:""},{footer:oe(()=>[S(pe,{type:"info",loading:z.value,"onUpdate:loading":y[10]||(y[10]=O=>z.value=O),onClick:y[11]||(y[11]=()=>T())},{default:oe(()=>y[23]||(y[23]=[P(" 提交 ")])),_:1},8,["loading"])]),default:oe(()=>[S(j,{class:ye(E(l).MIOSVersion&&E(l).MIOSVersion>=2?"":"mb-5")},{default:oe(()=>[S(re,{size:"large"},{default:oe(()=>y[13]||(y[13]=[P("应用包名")])),_:1}),S(te,{size:"large",status:H.value,value:K.value,"onUpdate:value":y[0]||(y[0]=O=>K.value=O),"allow-input":O=>o6(O),readonly:i.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1},8,["class"]),k.value==="custom"?(Fe(),Ht(se,{key:0,type:"info",class:"mb-2"},{default:oe(()=>[y[16]||(y[16]=P(" 当前应用已被 ")),S(Z,{bordered:!1,type:"info"},{default:oe(()=>y[14]||(y[14]=[P("自定义规则")])),_:1}),y[17]||(y[17]=P(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),S(Z,{bordered:!1,type:"info"},{default:oe(()=>y[15]||(y[15]=[P("自定义规则")])),_:1}),y[18]||(y[18]=P(" 。 "))]),_:1})):ot("",!0),S(he,{bordered:!1,title:"应用布局优化规则",size:"small"},{default:oe(()=>[S(Se,{value:v.value,"onUpdate:value":y[1]||(y[1]=O=>v.value=O),size:"large",trigger:"click",options:g,onSelect:A},{default:oe(()=>[S(pe,{block:"",type:"info",dashed:""},{default:oe(()=>[P(it(v.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),v.value.key==="CUSTOM_VIEW_POLICY"?(Fe(),Ht(he,{key:1,bordered:!1,title:"自定义应用布局优化规则",size:"small"},{default:oe(()=>[S(j,null,{default:oe(()=>[S(te,{"display-directive":"show",ref_key:"currentActivityRuleRef",ref:r,onFocus:y[2]||(y[2]=()=>U("currentActivityRuleRef")),onBlur:y[3]||(y[3]=()=>N("currentActivityRuleRef")),"allow-input":O=>IG(O),type:"textarea",autosize:{minRows:3,maxRows:3},value:b.value,"onUpdate:value":y[4]||(y[4]=O=>b.value=O),placeholder:"请输入自定义应用布局优化规则"},null,8,["allow-input","value"])]),_:1})]),_:1})):ot("",!0),S(he,{bordered:!1,title:"跳过应用布局优化的Activity规则",size:"small"},{default:oe(()=>[S(j,null,{default:oe(()=>[S(te,{"display-directive":"show",ref_key:"currentSkippedActivityRuleRef",ref:n,onFocus:y[5]||(y[5]=()=>U("currentSkippedActivityRuleRef")),onBlur:y[6]||(y[6]=()=>N("currentSkippedActivityRuleRef")),"allow-input":O=>zG(O),type:"textarea",autosize:{minRows:3,maxRows:3},value:x.value,"onUpdate:value":y[7]||(y[7]=O=>x.value=O),placeholder:"请输入跳过应用布局优化的Activity规则"},null,8,["allow-input","value"])]),_:1})]),_:1}),S(he,{bordered:!1,title:"优化WebView页面",size:"small"},{default:oe(()=>[S(fe,{"rail-style":$,value:C.value,"onUpdate:value":y[8]||(y[8]=O=>C.value=O),size:"large"},{checked:oe(()=>y[19]||(y[19]=[P("优化WebView页面")])),unchecked:oe(()=>y[20]||(y[20]=[P("不优化WebView页面")])),_:1},8,["value"])]),_:1}),S(he,{bordered:!1,title:"跳过应用配置改变",size:"small"},{default:oe(()=>[S(fe,{"rail-style":$,value:_.value,"onUpdate:value":y[9]||(y[9]=O=>_.value=O),size:"large"},{checked:oe(()=>y[21]||(y[21]=[P("跳过应用配置改变")])),unchecked:oe(()=>y[22]||(y[22]=[P("不跳过应用配置改变")])),_:1},8,["value"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function cq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt}));po(["message","modal"],{configProviderProps:t});const o=()=>{},n=()=>{};return ut(()=>{}),{add:o,update:n}}const fq={class:"autoui-view mb-10"},hq={class:"mt-3"},pq={class:"mb-3 px-4 sm:px-0"},mq={class:"flex flex-wrap"},gq={class:"flex flex-wrap"},vq=xe({__name:"AutoUIView",setup(e){const t=M(null),o=K(),n=Et(),r=n6(),i=I(()=>({theme:n.isDarkMode?io:Zt})),{message:a,modal:l,notification:s}=po(["message","modal","notification"],{configProviderProps:i}),u=gm(),d=M(!1),c=M(!1);cq();const h=M(null),f=M(null);LH(),ea(),B2();const p=M("");function g(H){return()=>m(Wt,null,{default:()=>m(H)})}const v=async()=>{await n.getAndroidApplicationPackageNameList(),await u.initDefault()},b=async()=>{const[H,T]=await Re(r.getList());H&&l.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>S("p",null,[P("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),T&&l.create({title:"获取成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},x=()=>{u.filterInstalledApps=!u.filterInstalledApps},k=async()=>{c.value=!0,await v();const[H,T]=await Re(Jd("miui_auto_ui"));H&&(l.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),c.value=!1),T&&(l.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),c.value=!1)},C=async()=>{p.value="";const[,H]=await Re(new Promise((T,z)=>{l.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:p.value,"onUpdate:value":F=>{p.value=F},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){T("positiveClick")}})}));if(H){d.value=!0;const T=p.value,z=mm(T);if(!(z!=null&&z.length)){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入分享规则失败了QwQ,解析")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("口令发生错误,无法正常解析。")]),negativeText:"确定"}),d.value=!1;return}console.log(z,"getBase64String");try{const F=_m(z),y=La.inflate(F,{to:"string"}),re=JSON.parse(y);if(re.type!=="autoui"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入分享规则失败了QwQ,该")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("不适用于应用布局优化。")]),negativeText:"确定"}),d.value=!1;return}if(re.device==="pad"&&n.deviceCharacteristics!=="tablet"||re.device==="fold"&&n.deviceCharacteristics==="tablet"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),d.value=!1;return}u.customConfigAutoUIList[re.name]=re.rules,u.autoUISettingConfig[re.name]={name:re.name,enable:!0};const[te,j]=await Re(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:re.name,action:"enable"}}));te?(l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),d.value=!1):(u.updateMergeRuleList(),await v(),d.value=!1,l.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(re.name,n.installedAppNameList[re.name]||u.applicationName[re.name])])," ",P("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]),positiveText:"确定"}))}catch(F){console.log(F,"error"),l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),d.value=!1}}},_=async(H,T,z,F)=>{if(H==="cleanCustomRule"){const y=l.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>S("p",null,[P("清除自定义规则后,你对")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(z.name,z.applicationName)])," ",P("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("模块规则")])," ",P(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{y.loading=!0,u.customConfigAutoUIList[z.name]&&delete u.customConfigAutoUIList[z.name];const[re,te]=await Re(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config")}));re?(l.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),y.loading=!1):(l.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),y.loading=!1,u.updateMergeRuleList())}})}if(H==="shareCustomRule"){const y={name:z.name,cmpt:1,rules:{name:z.name,...z.autoUIRule},type:"autoui",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:z.settingMode};console.log(y,"shareContent");const re=JSON.stringify(y),te=La.deflate(re,{level:9,memLevel:9,windowBits:15}),j=new Uint8Array(te),Z=km(j),[se]=await Re(navigator.clipboard.writeText(`我分享了一个[应用布局优化]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: -${Z}`));if(se){l.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("复制")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(z.name,z.applicationName)])," ",P("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("长度过大。")]),negativeText:"确定"});return}else l.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("好耶w,复制")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(z.name,z.applicationName)])," ",P("分享口令成功了~")]),S("p",null,[P("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("自定义规则")])," ",P("长度过大。")]),S("p",null,[P("分享口令导入入口位于")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("应用布局优化- 从分享口令导入")])," ",P("。")])]),positiveText:"确定"})}},R=(H,T)=>{H.ruleMode==="module"&&l.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>S("p",null,[P("模块已对")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(H.name,H.applicationName)])," ",P("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})},w=async(H,T,z)=>{const F=l.create({title:`想${z?"开启":"关闭"}该应用的应用布局优化吗?`,type:"warning",preset:"dialog",content:()=>S("p",null,[P("即将"),z?"开启":"关闭",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(H.name,H.applicationName)])," ",P("的应用布局优化适配规则。确定要继续吗?")]),positiveText:"确定",negativeText:"我再想想",onPositiveClick:async()=>{F.loading=!0,u.autoUISettingConfig[H.name]?u.autoUISettingConfig[H.name].enable=z:u.autoUISettingConfig[H.name]={name:H.name,enable:z};const[y,re]=await Re(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:H.name,action:z?"enable":"disable"}}));y?(l.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),F.loading=!1):(l.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,操作成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),F.loading=!1,u.updateMergeRuleList())}})},A=async()=>{if(h.value){const[H,T]=await Re(h.value.openDrawer());if(H)console.log("操作取消:",H);else{u.customConfigAutoUIList[T.name]={name:T.name,enable:!0,...T!=null&&T.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...T!=null&&T.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...T!=null&&T.modePayload.hasOwnProperty("activityRule")?{activityRule:T==null?void 0:T.modePayload.activityRule}:{},...T!=null&&T.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:T==null?void 0:T.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[T.name]={name:T.name,enable:!0};const[z,F]=await Re(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:T.name,action:"enable"}}));z?(l.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),T.loadingCallback&&T.loadingCallback()):(l.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(T.name,n.installedAppNameList[T.name]||u.applicationName[T.name])])," ",P("的应用配置添加成功了OwO~应用布局优化仅在应用全屏场景下生效,如果应用添加后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),T.loadingCallback&&T.loadingCallback(),T.closeCallback&&T.closeCallback())}}},$=async(H,T)=>{if(f&&f.value){const[z,F]=await Re(f.value.openDrawer(H));if(z)console.log("操作取消:",z);else{u.customConfigAutoUIList[H.name]?(u.customConfigAutoUIList[H.name].enable=!0,u.customConfigAutoUIList[H.name].name=H.name,F!=null&&F.modePayload.hasOwnProperty("activityRule")&&(u.customConfigAutoUIList[H.name].activityRule=F==null?void 0:F.modePayload.activityRule),F!=null&&F.modePayload.hasOwnProperty("skippedActivityRule")&&(u.customConfigAutoUIList[H.name].skippedActivityRule=F==null?void 0:F.modePayload.skippedActivityRule),F!=null&&F.modePayload.hasOwnProperty("optimizeWebView")&&(u.customConfigAutoUIList[H.name].optimizeWebView=F==null?void 0:F.modePayload.optimizeWebView),F!=null&&F.modePayload.hasOwnProperty("skippedAppConfigChange")&&(u.customConfigAutoUIList[H.name].skippedAppConfigChange=F==null?void 0:F.modePayload.skippedAppConfigChange)):u.customConfigAutoUIList[H.name]={name:H.name,enable:!0,...F!=null&&F.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...F!=null&&F.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...F!=null&&F.modePayload.hasOwnProperty("activityRule")?{activityRule:F==null?void 0:F.modePayload.activityRule}:{},...F!=null&&F.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:F==null?void 0:F.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[H.name]?u.autoUISettingConfig[H.name].enable=!0:u.autoUISettingConfig[H.name]={name:H.name,enable:!0},console.log("loadingCallback:",F.loadingCallback);const[y,re]=await Re(gl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:H.name,action:"enable"}}));y?(l.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),F.loadingCallback&&F.loadingCallback()):(l.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w,")," ",S("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[ko(H.name,H.applicationName)])," ",P("的应用配置更新成功了OwO~,如果应用更新后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),F.loadingCallback&&F.loadingCallback(),F.closeCallback&&F.closeCallback())}}},B=It({UNDEFINED_VIEW_POLICY:{type:"default",color:"",name:"空白规则"},VIEW_POLICY_DEFAULT:{type:"success",color:"",name:"全局缩放",onClick(H,T){}},VIEW_POLICY_STRETCH:{type:"info",color:"",name:"全局拉伸",onClick(H,T){}},VIEW_POLICY_AUTO_COLUMNS:{type:"warning",color:"",name:"全局栅格",onClick(H,T){}},VIEW_POLICY_FLOAT:{type:"error",color:"",name:"全局浮动",onClick(H,T){}},CUSTOM_VIEW_POLICY:{type:"",color:"#8a2be2",name:"精确适配",onClick(H,T){}}}),U=It({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:H=>{U.page=H},onUpdatePageSize:H=>{U.pageSize=H,U.page=1}}),N=({focused:H,checked:T})=>{const z={};return T?(z.background="#2080f0",H&&(z.boxShadow="0 0 0 2px #2080f040")):(z.background="#d03050",H&&(z.boxShadow="0 0 0 2px #d0305040")),z};function K(){return[{title:"应用名称",width:250,key:"name",render(H,T){return S("div",null,[H.applicationName&&S("p",null,[H.applicationName]),H.name&&S("p",null,[S("span",{class:{hidden:!H.applicationName}},[P("(")]),H.name,S("span",{class:{hidden:!H.applicationName}},[P(")")])])])}},{title:"规则来源",key:"ruleMode",render(H,T){const z={icon:H.ruleMode==="custom"?i6:Em};if(H.ruleMode==="custom"){const F=[{label:"分享自定义规则",key:"shareCustomRule",icon:g(ld)},{label:"清除自定义规则",key:"cleanCustomRule",icon:g(lS)}];return S(lt("n-dropdown"),{onSelect:(y,re)=>_(y,re,H),size:"large",trigger:"click",options:F},{default:()=>[S(lt("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[P("自定义规则")],...z})]})}return S(lt("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>R(H)},{default:()=>[P("模块规则")],...z})}},{title:"WebView优化",minWidth:110,key:"isOptimizeWebView",render(H,T){var z;return(z=H.autoUIRule)!=null&&z.optimizeWebView?S(lt("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[P("已启用")]}):S(lt("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[P("未启用")]})}},{title:"布局规则",key:"settingMode",render(H,T){const z={icon:r6};return S(lt("n-button"),{size:"small",strong:!0,dashed:!0,type:B[H.settingMode].type,color:B[H.settingMode].color,onClick:()=>$(H)},{default:()=>[B[H.settingMode].name],...z})}},{title:"操作",minWidth:100,key:"setting",render(H,T){const z={checked:()=>S("span",null,[P("开启")]),unchecked:()=>S("span",null,[P("关闭")])},F=y=>y.settingRule&&y.settingRule.hasOwnProperty("enable")?y.settingRule.enable:y.autoUIRule&&y.autoUIRule.hasOwnProperty("enable")?y.autoUIRule.enable:!0;return S(lt("n-switch"),{railStyle:N,onUpdateValue:y=>w(H,T,y),size:"medium",value:F&&F(H)},z)}}]}return(H,T)=>{const z=lt("n-input-group"),F=lt("n-card"),y=lt("n-data-table");return Fe(),Te("main",fq,[L("div",hq,[L("div",pq,[T[9]||(T[9]=L("h3",{class:ye("text-base font-semibold leading-7")},[L("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r - 101.22deg,\r - rgb(255, 182, 133) -18.32%,\r - rgb(255, 111, 29) 7.01%,\r - rgb(252, 181, 232) 41.59%,\r - rgb(135, 148, 255) 70.98%,\r - rgb(60, 112, 255) 91.35%,\r - rgb(60, 112, 255) 110.17%\r - )`}},"应用布局优化")],-1)),L("p",{class:ye(`mt-1 max-w-2xl text-sm leading-6 ${E(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用布局优化,自动优化应用内图文布局,提升视觉体验。 ",2)])]),S(F,{size:"small"},{default:oe(()=>[L("div",mq,[S(E(St),{class:"mb-3 mr-3",type:"info",loading:E(n).loading||E(u).loading,onClick:A},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(iS))]),_:1})]),default:oe(()=>[T[10]||(T[10]=P(" 添加应用 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",type:"success",loading:E(n).loading||E(u).loading,onClick:T[0]||(T[0]=()=>v())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(tS))]),_:1})]),default:oe(()=>[T[11]||(T[11]=P(" 刷新应用列表 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",color:"#8a2be2",loading:E(n).loading||E(u).loading,onClick:T[1]||(T[1]=()=>k())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(aS))]),_:1})]),default:oe(()=>[T[12]||(T[12]=P(" 热重载应用数据 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",color:"#69b2b6",loading:E(n).loading||E(u).loading||E(r).loading.value,onClick:T[2]||(T[2]=re=>b())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(oS))]),_:1})]),default:oe(()=>[T[13]||(T[13]=P(" 获取已安装应用名称 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",type:"warning",loading:E(n).loading||E(u).loading||d.value,onClick:T[3]||(T[3]=re=>C())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(ld))]),_:1})]),default:oe(()=>[T[14]||(T[14]=P(" 从分享口令导入 "))]),_:1},8,["loading"])]),L("div",gq,[S(E(St),{class:"mb-3 mr-3",type:E(u).filterInstalledApps?"success":"info",strong:"",loading:E(n).loading||E(u).loading,secondary:"",onClick:x},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[E(u).filterInstalledApps?(Fe(),Ht(E(a6),{key:0})):(Fe(),Ht(E(nS),{key:1}))]),_:1})]),default:oe(()=>[P(" "+it(E(u).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),S(E(St),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:E(n).loading||E(u).loading,onClick:T[4]||(T[4]=()=>fS())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>T[15]||(T[15]=[L("img",{src:yS},null,-1)])),_:1})]),default:oe(()=>[T[16]||(T[16]=P(" 应用抽屉 "))]),_:1},8,["loading"]),S(E(St),{class:"mb-3 mr-3",type:"error",secondary:"",loading:E(n).loading||E(u).loading,onClick:T[5]||(T[5]=()=>cS())},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>T[17]||(T[17]=[L("img",{src:sd},null,-1)])),_:1})]),default:oe(()=>[T[18]||(T[18]=P(" 超级小爱 "))]),_:1},8,["loading"])]),S(z,null,{default:oe(()=>[S(E(rn),{size:"large",clearable:"",value:E(u).searchKeyWord,"onUpdate:value":T[6]||(T[6]=re=>E(u).searchKeyWord=re),ref_key:"searchKeyWordInput",ref:t,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),S(E(St),{size:"large",type:"primary",onClick:T[7]||(T[7]=()=>{var re;(re=t.value)==null||re.blur()})},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(rS))]),_:1})]),default:oe(()=>[T[19]||(T[19]=P(" 搜索 "))]),_:1}),S(E(St),{size:"large",bordered:"",onClick:T[8]||(T[8]=()=>{E(u).searchKeyWord=""})},{icon:oe(()=>[S(E(Wt),null,{default:oe(()=>[S(E(sS))]),_:1})]),default:oe(()=>[T[20]||(T[20]=P(" 清空 "))]),_:1})]),_:1})]),_:1}),S(y,{loading:E(n).loading||E(u).loading,columns:E(o),class:"mt-3",data:E(u).filterMergeRuleList,pagination:U},null,8,["loading","columns","data","pagination"]),S(Lb,{ref_key:"addAutoUIApp",ref:h,type:"add",title:"添加应用"},null,512),S(Lb,{ref_key:"updateAutoUIApp",ref:f,type:"update",title:"更新应用"},null,512)])}}}),Hb="/images/apps/mi_theme.webp",Nb="/images/icons/aicr.png",bq="/images/icons/google.png";function xq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(!1);function i(a){r.value=!0,a.OS2_PAD_EMBEDDED_APP_MANAGER?(e.ABTestInfo.OS2_PAD_EMBEDDED_APP_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("已成功参与OS2")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("应用横屏布局 For Web UI")])," ",P("的Beta测试w。由于小米在OS2新开发的")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("应用横屏布局")])," ",P("存在较多BUG,模块强制劫持了所有配置,仅能通过Web UI去调整应用横屏适配,在")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("平板专区")])," ",P("所做的相关修改会在重启后丢失。")]),S("p",null,[P("开发Hyper OS 2.0模块的Web UI真的消耗了我大量的个人时间和精力QwQ(特别是在小米的BUG加持下),如果对")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("完美横屏应用计划感到满意")])," ",P(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.Hyper_OS_DOT_BLACK_LIST_MANAGER?(e.ABTestInfo.Hyper_OS_DOT_BLACK_LIST_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("已成功参与Hyper OS")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("窗口控制器 For Web UI")])," ",P("的Beta测试w。该功能可能会随")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("小米云控")])," ",P("下发导致失效,失效时可以前往界面查看失效状态,并且选择")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("热重载应用配置")])," ",P("来恢复模块对窗口控制器的控制权。")]),S("p",null,[P("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("完美横屏应用计划感到满意")])," ",P(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_RADIO_MANAGER?(e.ABTestInfo.GAME_BOOSTER_RADIO_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("已成功参与")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("游戏显示布局 2.0")])," ",P("的Beta测试w。该功能调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。")]),S("p",null,[P("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("完美横屏应用计划感到满意")])," ",P(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_CUSTOM_RATIO?(e.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("已成功激活")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("游戏显示布局 2.0")])," ",P("的自定义游戏比例。自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封,激活该功能即认可并了解这些须知。")]),S("p",null,[P("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("完美横屏应用计划感到满意")])," ",P(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):n.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),r.value=!1}return{activateABTest:i,loading:r}}function yq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(!1),i=async l=>{const[s,u]=await Re(mj(l?1:"null"));s?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=l},a=async()=>{const[l,s]=await Re(new Promise((u,d)=>{n.create({title:"想激活工作台模式吗?",type:"info",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("激活")," ",S("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("工作台模式")])," ",P("后需要设备重启才会生效~")]),S("p",null,[P("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{u("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(s){const[u,d]=await Re(cj());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[c,h]=await Re(dj());if(c){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[f,p]=await Re(hj());if(f){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[g,v]=await Re(fj());if(g){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[b]=await Re(dS());if(b){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}};return ut(async()=>{if(e.enabledMiuiDesktopMode){const[,l]=await Re(pj());Number(l)===1&&(r.value=!0)}}),{currentMiuiDktMode:r,changeMiuiDktMode:i,changeMiuiDesktopModeEnabled:a}}function Cq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(3),i=async l=>{if(l){const[s]=await Re(Gv());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await Re(gj());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!0}else{const[s]=await Re(Gv());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!1}},a=async l=>{const[s]=await Re(bj());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await Re(xj(l));u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});const[d]=await Re(yj(l));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"})};return ut(async()=>{if(e.isEnableShowNotificationIconNum){const[,l]=await Re(vj());if(l&&!Number.isNaN(Number(l))){const s=Number(l);r.value=s}}}),{currentNum:r,changeNum:a,changeEnableMode:i}}function wq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt}));po(["message","modal"],{configProviderProps:t});const o=It({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await Re(wV());i&&(o.current=Number(i))},interval:null}),n=It({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await Re(SV());i&&(n.current=Number(i))},interval:null}),r=i=>{i.interval&&(clearInterval(i.interval),i.interval=null),i.autoReload&&(i.interval=setInterval(()=>{i.reload()},i.timer*1e3))};return kt(()=>r(o)),kt(()=>r(n)),ut(async()=>{o.reload(),n.reload()}),Go(()=>{o.interval!==null&&clearInterval(o.interval),n.interval!==null&&clearInterval(n.interval)}),{qcomBatteryFg1RSocInfo:o,capacityRawInfo:n}}function Sq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(0),i=async a=>{const[l,s]=await Re($V(a?1:0));if(l)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(a){const[u,d]=await Re(FV());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w!隐藏手势提示线(小白条)成功,请知晓,隐藏手势提示线(小白条)的情况下,旋转建议提示按钮也将变成不可用的状态~")]),positiveText:"确定"}),r.value=1)}else{const[u,d]=await Re(RV());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("好耶w!已经将手势提示线(小白条)调整为显示状态~")]),positiveText:"确定"}),r.value=0)}};return ut(async()=>{const[,a]=await Re(PV());Number(a)&&(r.value=1)}),{currentIsHideGestureLine:r,changeIsHideGestureLine:i}}function Eq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(0),i=async a=>{const[l,s]=await Re(MV(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await Re(AV());Number(a)&&(r.value=1)}),{currentIsInVisibleMode:r,changeIsInvisibleMode:i}}function kq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(!1),i=async a=>{const[l,s]=await Re(dV());if(l){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}if(a){const[u,d]=await Re(uV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}}r.value=a};return ut(async()=>{if(e.MIOSVersion&&e.MIOSVersion>=2){const[,a]=await Re(cV());a==="true"&&(r.value=!0)}}),{status:r,change:i}}function _q(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M([]),i=I(()=>r.value.map(s=>({...s,fps:Math.round(s.fps),alternativeRefreshRates:s.alternativeRefreshRates.map(u=>Math.round(u))}))),a=async s=>{n.create({title:"想应用该配置吗?",type:"info",preset:"dialog",content:()=>S("p",null,[P("应用后设备分辨率将配置为"),s.width,P("x"),s.height,P(",刷新率将配置为"),s.fps,P("Hz,在设备下次重启前将一直维持该配置,该功能可能受触控笔和其他第三方模块影响不一定生效,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。"),e.deviceCharacteristics==="tablet"&&S("span",null,[P("连接触控笔蓝牙期间,为了确保触控笔正常工作,系统也会强行重置该配置,断开触控笔蓝牙后需要重新配置,")]),P("确定要继续应用该配置么?")]),negativeText:"取消",positiveText:"确定",onPositiveClick(){l(s.id-1)}})},l=async s=>{const[u,d]=await Re(Sj(s));u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),d&&n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("p",null,[P("已成功应用该分辨率及刷新率配置,在设备下次重启前将一直维持该配置,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。")]),negativeText:"确定"})};return ut(async()=>{const[s,u]=await Re(KV());s&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),u&&(r.value=u)}),{displayModeList:r,formatDisplayModeList:i,setDisplayMode:l,selectDisplayMode:a}}function Fq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(3),i=async a=>{const[l,s]=await Re(DV(a));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a};return ut(async()=>{const[,a]=await Re(TV());a&&Number(a)&&(r.value=Number(a))}),{currentMiuiCursorStyleType:r,changeMiuiCursorStyleType:i}}function Rq(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(0),i=async a=>{const[l,s]=await Re(IV(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await Re(zV());Number(a)&&(r.value=1)}),{currentMouseGestureNaturalscroll:r,changeMouseGestureNaturalscroll:i}}function $q(){const e=Et(),t=I(()=>({theme:e.isDarkMode?io:Zt})),{message:o,modal:n}=po(["message","modal"],{configProviderProps:t}),r=M(0),i=async a=>{const[l,s]=await Re(uS(a));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a};return ut(async()=>{const[,a]=await Re(OV());Number(a)&&(r.value=Number(a))}),{changePointerSpeed:i,currentPointerSpeed:r}}const Pq={class:"setting"},Mq={class:"mt-3"},Aq={class:"px-3 sm:px-0"},Bq={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Dq={key:1,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Tq={key:2,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Iq={key:3,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},zq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Oq={key:4,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Lq={key:5,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Hq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Nq={key:6,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Vq={key:7,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},jq={key:8,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Wq={key:9,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Uq={key:10,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Kq={key:11,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Gq={key:12,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},qq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Zq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Xq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Yq={key:13,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Qq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},Jq={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eZ={key:14,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tZ={key:0,class:"mt-2"},oZ={key:15,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nZ={key:0,class:"mt-2"},rZ={key:16,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iZ={key:0,class:"mt-2"},aZ={key:17,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},lZ={key:0,class:"mt-2"},sZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},uZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},dZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},cZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},fZ={key:18,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},hZ={key:19,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},pZ={key:20,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},mZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},vZ={id:"gameModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},bZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},xZ={key:21,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},yZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},CZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},wZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},SZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},EZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},kZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},_Z={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},FZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},RZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},$Z={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},PZ={key:22,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},MZ={key:23,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},AZ={key:24,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},BZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},DZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},TZ={key:25,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},IZ={key:26,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},zZ={key:27,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},OZ={key:28,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},LZ={class:"whitespace-pre"},HZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},NZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},VZ={key:29,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},jZ={class:"mr-3"},WZ={class:"mr-3"},UZ={class:"mr-3"},KZ={key:30,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},GZ={key:0},qZ={key:31,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},ZZ={key:0},XZ={key:32,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},YZ={key:33,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},QZ={key:34,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},JZ={key:35,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eX={key:36,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tX={key:37,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oX={key:38,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nX=xe({__name:"SettingsView",setup(e){const t=Et(),o=Hs(),n=yq();Cq();const r=wq(),i=_q(),a=Sq();Eq();const l=Fq(),s=Rq(),u=$q(),d=kq(),{activateABTest:c,loading:h}=xq(),f=I(()=>({theme:t.isDarkMode?io:Zt})),{message:p,modal:g}=po(["message","modal"],{configProviderProps:f}),v=mS(),b=xS(),x=Vj(),k=[{label:"跟随系统",key:"autoRhythm"},{label:"浅色模式",key:"lightMode"},{label:"深色模式",key:"dartMode"}],C=M([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]),_=I(()=>MP(C.value,"key")),R=F=>{b.currentFont=F},w=F=>{t.rhythmMode=F,F==="lightMode"&&(t.isDarkMode=!1),F==="dartMode"&&(t.isDarkMode=!0)},A=M(""),$=async()=>{const y=JSON.stringify({GAME_BOOSTER_CUSTOM_RATIO:!0}),re=La.deflate(y,{level:9,memLevel:9,windowBits:15}),te=new Uint8Array(re),j=km(te);console.log(j,"base64String"),A.value="";const[Z,se]=await Re(new Promise((pe,Se)=>{g.create({title:"请粘贴激活口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:A.value,"onUpdate:value":he=>{A.value=he},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴激活口令"}),positiveText:"确定提交",negativeText:"取消",onPositiveClick(){pe("positiveClick")}})}));if(se){h.value=!0;const pe=A.value,Se=mm(pe);if(!(Se!=null&&Se.length)){g.create({title:"导入激活口令失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("导入激活口令失败了QwQ,解析口令发生错误,无法正常解析。")]),negativeText:"确定"}),h.value=!1;return}try{const he=_m(Se),fe=La.inflate(he,{to:"string"}),Ce=JSON.parse(fe);c(Ce)}catch{g.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),h.value=!1}}},B=M(!1),U=async F=>{const[y]=await Re(_V(F?1:0));if(y){g.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("无法 "),F?"开启":"关闭",P(" 旋转建议提示按钮,详情请查看日志记录~")]),negativeText:"确定"});return}t.showRotationSuggestions=F},N=async F=>{ZV(F?"whitelist":"blacklist").then(y=>{t.shamikoInfo.mode=F?"whitelist":"blacklist",g.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("div",null,[F&&S("p",null,[P("好耶w,Shamiko的工作模式已成功切换为")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("白名单模式")])," "]),!F&&S("p",null,[P("好耶w,Shamiko的工作模式已成功切换为")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("黑名单模式")])," "])]),negativeText:"确定"})}).catch(y=>{g.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("无法切换Shamiko的工作模式,详情请查看日志记录~")]),negativeText:"确定"})})},K=async(F,y,re)=>{g.create({title:`获取${F}`,type:"info",preset:"dialog",content:()=>S("div",null,[S("p",null,[P("确定要下载"),F,P("么?请注意核对部分应用的兼容性。"),re==="system",re==="revision"]),S("p",null,[P("下载地址:")]),S("p",null,[y])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${y}`)},onNegativeClick:()=>{}})},H=async F=>{const[y,re]=await Re(new Promise((te,j)=>{g.create({title:F?"想切换为定制模式吗?":"想切换为完整模式吗?",type:"info",preset:"dialog",content:()=>S("div",null,[F&&S("p",null,[P("切换为")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("定制模式")])," ",P("后,模块会以您设备的整体应用情况")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("修剪模块应用适配列表")])," ",P(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,后续每次更新模块或者安装新的应用后,建议前往")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("应用横屏布局")])," ",P("重新")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("生成定制应用数据")])," ",P(",确定要继续吗?")]),!F&&S("p",null,[P("切换为")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("完整模式")])," ",P("后,可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题,确定要继续吗?")])]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{te("positiveClick")},onNegativeClick:()=>{j("negativeClick")}})}));if(re){B.value=!0;const[te]=await Re(lV());if(te){g.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("无法移除定制模式的配置项,详情请查看日志记录~")]),negativeText:"确定"}),B.value=!1;return}if(F){const[se]=await Re(aV());if(se){g.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("无法切换为定制模式,详情请查看日志记录~")]),negativeText:"确定"}),B.value=!1;return}o.isPatchMode=!0}else B.value=!1,o.isPatchMode=!1;await t.getAndroidApplicationPackageNameList();const[j,Z]=await Re(ba({isPatchMode:o.isPatchMode,patchEmbeddedRulesListXML:ct(o.patchEmbeddedRulesList,"package","package_config"),patchFixedOrientationListXML:ct(o.patchFixedOrientationList,"package","package_config"),patchEmbeddedSettingConfigXML:ct(o.patchEmbeddedSettingConfig,"setting","setting_rule"),customEmbeddedRulesListXML:ct(o.customConfigEmbeddedRulesList,"package",void 0),customFixedOrientationListXML:ct(o.customConfigFixedOrientationList,"package",void 0),...t.MIOSVersion&&t.MIOSVersion>=2?{settingConfigXML:ct(o.customConfigEmbeddedSettingConfig,"setting",void 0)}:{settingConfigXML:ct(o.systemEmbeddedSettingConfig,"setting","setting_rule")}}));j?(g.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),o.isPatchMode=!o.isPatchMode,B.value=!1):(g.create({title:"操作成功",type:"success",preset:"dialog",content:()=>S("div",null,[F&&S("p",null,[P("好耶w,已成功切换为")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("定制模式")])," ",P(",模块已根据您设备当前的整体应用情况")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("修剪模块应用适配列表")])," ",P(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,建议每次更新模块或者安装新的应用后,均需要在前往")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("应用横屏布局")])," ",P("界面重新生成")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("生成定制应用数据")])," ",P("。")]),!F&&S("p",null,[P("好耶w,已成功切换为")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("完整模式")])," ",P(",可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题。")])]),negativeText:"确定"}),B.value=!1,o.updateMergeRuleList())}},T=async F=>{const[y,re]=await Re(new Promise((j,Z)=>{g.create({title:F?"想开启游戏显示布局吗?":"想关闭游戏显示布局吗?",type:"info",preset:"dialog",content:()=>S("div",null,[S("p",null,[F?"开启":"关闭"," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("游戏显示布局")])," ",P("后需要设备重启才会生效~")]),F&&t.deviceCharacteristics==="tablet"&&t.MIOSVersion&&t.MIOSVersion>=2&&S("p",null,[P("从Hyper OS 2.0开始,小米平板需要搭配配套的")," ",S("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[P("修改版平板/手机管家")])," ",P("才能使用游戏显示布局,详情请前往模块首页了解~")]),S("p",null,[P("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{j("positiveClick")},onNegativeClick:()=>{Z("negativeClick")}})})),[te]=await Re(fV());if(te){g.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}if(F){const[j]=await Re(hV());if(j){g.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}}if(re){const[j]=await Re(dS());if(j){g.create({title:"操作失败",type:"error",preset:"dialog",content:()=>S("p",null,[P("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},z=({focused:F,checked:y})=>{const re={};return y?(re.background="#d03050",F&&(re.boxShadow="0 0 0 2px #d0305040")):(re.background="#2080f0",F&&(re.boxShadow="0 0 0 2px #2080f040")),re};return(F,y)=>{var he,fe,Ce,Y;const re=lt("n-switch"),te=lt("n-alert"),j=lt("n-button"),Z=lt("n-dropdown"),se=lt("n-icon"),pe=lt("n-slider"),Se=lt("n-input-number");return Fe(),Te("div",Pq,[L("div",Mq,[L("div",Aq,[y[49]||(y[49]=L("h3",{class:ye("text-base font-semibold leading-7")},[L("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r - 101.22deg,\r - rgb(255, 182, 133) -18.32%,\r - rgb(255, 111, 29) 7.01%,\r - rgb(252, 181, 232) 41.59%,\r - rgb(135, 148, 255) 70.98%,\r - rgb(60, 112, 255) 91.35%,\r - rgb(60, 112, 255) 110.17%\r - )`}},"模块设置")],-1)),L("p",{class:ye(`mt-1 max-w-2xl text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 模块设置,让功能在自定义中完美契合。 ",2)]),L("div",{class:ye(`mt-3 border-t ${E(t).isDarkMode?"divide-sothx-gray-color border-sothx-gray-color":"divide-gray-200 border-gray-200"}`)},[L("dl",{class:ye(`divide-y ${E(t).isDarkMode?"divide-sothx-gray-color":"divide-gray-200"}`)},[(he=E(t).moduleInfo)!=null&&he.id?(Fe(),Te("div",Bq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块ID ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).moduleInfo.id||"获取失败"),3)])):ot("",!0),(fe=E(t).moduleInfo)!=null&&fe.dir?(Fe(),Te("div",Dq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块路径 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).moduleInfo.dir||"获取失败"),3)])):ot("",!0),(Ce=E(t).moduleInfo)!=null&&Ce.version?(Fe(),Te("div",Tq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本名 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).moduleInfo.version||"获取失败"),3)])):ot("",!0),(Y=E(t).moduleInfo)!=null&&Y.versionCode?(Fe(),Te("div",Iq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).moduleInfo.versionCode||"获取失败"),3)])):ot("",!0),L("div",zq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块工作模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[0]||(y[0]=O=>H(O)),"rail-style":z,value:E(o).isPatchMode,loading:B.value,disabled:E(t).androidTargetSdk&&E(t).androidTargetSdk<32},{checked:oe(()=>y[50]||(y[50]=[P("定制模式")])),unchecked:oe(()=>y[51]||(y[51]=[P("完整模式")])),_:1},8,["value","loading","disabled"])],2)]),E(t).MIOSVersion&&E(t).MIOSVersion>=2?(Fe(),Te("div",Oq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统应用横屏优化 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[1]||(y[1]=O=>E(d).change(O)),"rail-style":z,value:E(d).status,loading:E(t).loading},{checked:oe(()=>y[52]||(y[52]=[P("已禁用系统应用横屏优化")])),unchecked:oe(()=>y[53]||(y[53]=[P("已启用系统应用横屏优化")])),_:1},8,["value","loading"]),S(te,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:oe(()=>y[54]||(y[54]=[L("p",null,"由于小米「应用横屏布局」BUG,Hyper OS 2 下部分系统应用可无法完全横屏工作,模块可以修复这个问题,但每次设备重启或修改模块规则,这些系统应用都将被强制重启,该功能默认启用,如「启用」将代表已接纳并知晓此副作用影响。 ",-1),L("p",null,"受此影响的系统应用:",-1),L("p",null,"超级小爱(com.miui.voiceassist)",-1),L("p",null,"小米浏览器(com.android.browser)",-1),L("p",null,"平板/手机管家(com.miui.securitycenter)",-1)])),_:1})],2)])):ot("",!0),E(t).deviceName?(Fe(),Te("div",Lq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备名称 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).deviceName||""),3)])):ot("",!0),L("div",Hq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," ROOT管理器 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).currentRootManager||"获取失败"),3)]),E(t).currentRootManager==="KernelSU"?(Fe(),Te("div",Nq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 版本 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).rootManagerInfo.KSU_VER||"获取失败"),3)])):ot("",!0),E(t).currentRootManager==="KernelSU"?(Fe(),Te("div",Vq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 用户空间版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).rootManagerInfo.KSU_VER_CODE||"获取失败"),3)])):ot("",!0),E(t).currentRootManager==="KernelSU"?(Fe(),Te("div",jq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 内核空间版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).rootManagerInfo.KSU_KERNEL_VER_CODE||"获取失败"),3)])):ot("",!0),E(t).currentRootManager==="APatch"?(Fe(),Te("div",Wq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本名 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).rootManagerInfo.APATCH_VER||"获取失败"),3)])):ot("",!0),E(t).currentRootManager==="APatch"?(Fe(),Te("div",Uq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).rootManagerInfo.APATCH_VER_CODE||"获取失败"),3)])):ot("",!0),E(t).currentRootManager==="Magisk"?(Fe(),Te("div",Kq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).rootManagerInfo.MAGISK_VER||"获取失败"),3)])):ot("",!0),E(t).currentRootManager==="Magisk"?(Fe(),Te("div",Gq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).rootManagerInfo.MAGISK_VER_CODE||"获取失败"),3)])):ot("",!0),L("div",qq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 外观模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(Z,{size:"large",trigger:"click",options:k,onSelect:w},{default:oe(()=>[S(j,{size:"small",strong:"",secondary:"",type:E(t).rhythmMode==="autoRhythm"?"error":"success"},{default:oe(()=>[P(it(E(t).rhythmMode==="autoRhythm"&&"跟随系统"||E(t).rhythmMode==="lightMode"&&"浅色模式"||E(t).rhythmMode==="dartMode"&&"深色模式"),1)]),_:1},8,["type"])]),_:1})],2)]),L("div",Zq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 应用字体 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(Z,{size:"large",trigger:"click",options:C.value,onSelect:R},{default:oe(()=>[S(j,{size:"small",strong:"",secondary:"",type:_.value[E(b).currentFont].type},{default:oe(()=>[P(it(E(b).currentFont),1)]),_:1},8,["type"])]),_:1},8,["options"])],2)]),L("div",Xq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 激活口令 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"warning",secondary:"",loading:E(t).loading||E(o).loading||E(h),onClick:y[2]||(y[2]=O=>$())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(WG))]),_:1})]),default:oe(()=>[y[55]||(y[55]=P(" 导入激活口令 "))]),_:1},8,["loading"])],2)]),E(t).shamikoInfo.installed?(Fe(),Te("div",Yq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," Shamiko 工作模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[3]||(y[3]=O=>N(O)),"rail-style":z,value:E(t).shamikoInfo.mode==="whitelist",loading:E(t).loading},{checked:oe(()=>y[56]||(y[56]=[P("白名单模式")])),unchecked:oe(()=>y[57]||(y[57]=[P("黑名单模式")])),_:1},8,["value","loading"])],2)])):ot("",!0),L("div",Qq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 暗码拨号盘 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"error",secondary:"",loading:E(t).loading,onClick:y[4]||(y[4]=()=>Rj())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(QG))]),_:1})]),default:oe(()=>[y[58]||(y[58]=P(" 暗码拨号盘 "))]),_:1},8,["loading"]),S(te,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:oe(()=>y[59]||(y[59]=[L("p",null,"Tips: 暗码必须以*#*#开头,且以#*#*结尾",-1),L("p",null,"eg: 开启 LSPosed 管理器的暗码:*#*#5776733#*#*",-1),L("p",null,"「安全警示: 暗码拨号器是面向开发者调试的功能,用于打开一些隐藏设定,如果您不了解暗码作用与功能建议不要轻易尝试,可能会导致您的设备数据丢失!」",-1)])),_:1})],2)]),L("div",Jq,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," LSPosed 管理器 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[5]||(y[5]=()=>Hj())},{default:oe(()=>y[60]||(y[60]=[P(" LSPosed 管理器 ")])),_:1},8,["loading"])],2)]),E(t).MIOSVersion&&E(t).MIOSVersion>=1&&E(t).deviceCharacteristics==="tablet"?(Fe(),Te("div",eZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[62]||(y[62]=L("p",null,"工作台模式",-1)),E(t).enabledMiuiDesktopMode?ot("",!0):(Fe(),Te("p",tZ,[S(j,{strong:"",secondary:"",size:"small",onClick:y[6]||(y[6]=()=>E(n).changeMiuiDesktopModeEnabled()),type:"warning"},{default:oe(()=>y[61]||(y[61]=[P(" 启用功能 ")])),_:1})]))],2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[7]||(y[7]=O=>E(n).changeMiuiDktMode(O)),"rail-style":z,disabled:!E(t).enabledMiuiDesktopMode,value:E(n).currentMiuiDktMode,loading:E(t).loading},{checked:oe(()=>y[63]||(y[63]=[P("工作台模式")])),unchecked:oe(()=>y[64]||(y[64]=[P("默认桌面模式")])),_:1},8,["disabled","value","loading"])],2)])):ot("",!0),E(t).hasPenEnableControl?(Fe(),Te("div",oZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[66]||(y[66]=P(" 第三方触控笔管理(水龙) ")),E(t).showThirdPartySetting.amktiaoROMInterface?ot("",!0):(Fe(),Te("p",nZ,[S(j,{strong:"",secondary:"",size:"small",onClick:y[8]||(y[8]=()=>E(x).enableSetting()),type:"warning"},{default:oe(()=>y[65]||(y[65]=[P(" 启用功能 ")])),_:1})]))],2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[9]||(y[9]=O=>E(x).changePenEnableMode(O)),"rail-style":z,disabled:!E(t).showThirdPartySetting.amktiaoROMInterface,value:!!E(x).currentPenEnable.value,loading:E(t).loading},{checked:oe(()=>y[67]||(y[67]=[P("已启用")])),unchecked:oe(()=>y[68]||(y[68]=[P("未启用")])),_:1},8,["disabled","value","loading"]),S(te,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:oe(()=>y[69]||(y[69]=[P("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_enable 开关映射时生效")])),_:1})],2)])):ot("",!0),E(t).hasPenUpdateControl?(Fe(),Te("div",rZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[71]||(y[71]=P(" 手写笔驱动管理(水龙) ")),E(t).showThirdPartySetting.amktiaoROMInterface?ot("",!0):(Fe(),Te("p",iZ,[S(j,{strong:"",secondary:"",size:"small",onClick:y[10]||(y[10]=()=>E(x).enableSetting()),type:"warning"},{default:oe(()=>y[70]||(y[70]=[P(" 启用功能 ")])),_:1})]))],2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[11]||(y[11]=O=>E(x).changePenUpdateMode(O)),"rail-style":z,disabled:!E(t).showThirdPartySetting.amktiaoROMInterface,value:!!E(x).currentPenUpdate.value,loading:E(t).loading},{checked:oe(()=>y[72]||(y[72]=[P("二代笔驱动")])),unchecked:oe(()=>y[73]||(y[73]=[P("一代笔驱动")])),_:1},8,["disabled","value","loading"]),S(te,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:oe(()=>y[74]||(y[74]=[L("p",null,"Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_update 开关映射时生效",-1)])),_:1})],2)])):ot("",!0),E(t).hasKeyboardControl?(Fe(),Te("div",aZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[76]||(y[76]=P(" 键盘连接器管理(水龙) ")),E(t).showThirdPartySetting.amktiaoROMInterface?ot("",!0):(Fe(),Te("p",lZ,[S(j,{strong:"",secondary:"",size:"small",onClick:y[12]||(y[12]=()=>E(x).enableSetting()),type:"warning"},{default:oe(()=>y[75]||(y[75]=[P(" 启用功能 ")])),_:1})]))],2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(Z,{value:E(x).currentKeyboardModeSelect,size:"large",trigger:"click",options:E(x).keyboardModeOptions.value,onSelect:E(x).changeKeyboardMode},{default:oe(()=>[S(j,{strong:"",secondary:"",disabled:!E(t).showThirdPartySetting.amktiaoROMInterface,size:"small",type:E(x).currentKeyboardModeSelect.value.type},{default:oe(()=>[P(it(E(x).currentKeyboardModeSelect.value.label),1)]),_:1},8,["disabled","type"])]),_:1},8,["value","options","onSelect"]),S(te,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:oe(()=>y[77]||(y[77]=[P("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/keyboard 开关映射时生效")])),_:1})],2)])):ot("",!0),L("div",sZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标光标样式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(Z,{size:"large",trigger:"click",options:[{label:"箭头",key:3},{label:"圆点",key:1},{label:"空心圆",key:0}],onSelect:y[13]||(y[13]=O=>{E(l).changeMiuiCursorStyleType(O)})},{default:oe(()=>[S(j,{size:"small",class:"mb-3 mr-3",type:"success",secondary:"",loading:E(t).loading},{default:oe(()=>[P(it(E(l).currentMiuiCursorStyleType.value===3&&"箭头"||"")+" "+it(E(l).currentMiuiCursorStyleType.value===1&&"圆点"||"")+" "+it(E(l).currentMiuiCursorStyleType.value===0&&"空心圆"||""),1)]),_:1},8,["loading"])]),_:1})],2)]),L("div",uZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标自然滚动 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[14]||(y[14]=O=>E(s).changeMouseGestureNaturalscroll(O)),"rail-style":z,value:E(s).currentMouseGestureNaturalscroll.value===1},{checked:oe(()=>y[78]||(y[78]=[P("已开启鼠标自然滚动")])),unchecked:oe(()=>y[79]||(y[79]=[P("未开启鼠标自然滚动")])),_:1},8,["value"]),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[80]||(y[80]=[L("p",null,"开启后内容随手指移动",-1)])),_:1})],2)]),L("div",dZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标指针速度 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(pe,{size:"small",min:-7,"onUpdate:value":[y[15]||(y[15]=O=>uS(O)),y[16]||(y[16]=O=>E(u).currentPointerSpeed.value=O)],max:7,value:E(u).currentPointerSpeed.value,step:1},null,8,["value"]),S(Se,{"show-button":!1,class:"pt-3",readonly:"",value:E(u).currentPointerSpeed.value,"onUpdate:value":y[17]||(y[17]=O=>E(u).currentPointerSpeed.value=O),placeholder:"请输入鼠标指针速度",min:-7,max:7,step:1},null,8,["value"])],2)]),L("div",cZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 个性化主题导入 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"warning",secondary:"",loading:E(t).loading,onClick:y[18]||(y[18]=()=>Nj())},{icon:oe(()=>y[81]||(y[81]=[L("img",{src:Hb},null,-1)])),default:oe(()=>[y[82]||(y[82]=P(" 导入个性化主题 "))]),_:1},8,["loading"]),S(te,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:oe(()=>[y[84]||(y[84]=L("p",null,"需要搭配 LSPosed 模块[主题破解],才能够正常导入[个性化主题],导入按钮位于界面最底部[从SD卡导入]~",-1)),S(j,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:y[19]||(y[19]=()=>K("主题破解","https://caiyun.139.com/m/i?135CmXA9aKh8Y","original"))},{default:oe(()=>y[83]||(y[83]=[P("获取主题破解")])),_:1})]),_:1})],2)]),E(t).MIOSVersion&&E(t).MIOSVersion>=2?(Fe(),Te("div",fZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 动态壁纸 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"error",secondary:"",loading:E(t).loading,onClick:y[20]||(y[20]=()=>Aj())},{icon:oe(()=>y[85]||(y[85]=[L("img",{src:Hb},null,-1)])),default:oe(()=>[y[86]||(y[86]=P(" AI 动态壁纸 "))]),_:1},8,["loading"]),S(j,{strong:"",secondary:"",size:"small",circle:"",type:"error",class:"ml-2",onClick:y[21]||(y[21]=()=>Tj())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(Em))]),_:1})]),_:1})],2)])):ot("",!0),E(t).MIOSVersion&&E(t).MIOSVersion>=2&&E(t).deviceCharacteristics==="tablet"?(Fe(),Te("div",hZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[22]||(y[22]=()=>Bj())},{icon:oe(()=>y[87]||(y[87]=[L("img",{src:Nb},null,-1)])),default:oe(()=>[y[88]||(y[88]=P(" 算力共享 "))]),_:1},8,["loading"]),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[89]||(y[89]=[L("p",null,"在附近高算力设备提供的算力支持下,平板获得部分 AI 功能",-1)])),_:1})],2)])):ot("",!0),E(t).MIOSVersion&&E(t).MIOSVersion>=2&&E(t).deviceCharacteristics!=="tablet"?(Fe(),Te("div",pZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[23]||(y[23]=()=>Dj())},{icon:oe(()=>y[90]||(y[90]=[L("img",{src:Nb},null,-1)])),default:oe(()=>[y[91]||(y[91]=P(" 算力共享 "))]),_:1},8,["loading"]),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[92]||(y[92]=[L("p",null,"将设备的 AI 算力共享给平板设备,让平板设备获得部分 AI 功能",-1)])),_:1})],2)])):ot("",!0),L("div",mZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 超级小爱翻译 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"error",secondary:"",loading:E(t).loading,onClick:y[24]||(y[24]=()=>Ij())},{icon:oe(()=>y[93]||(y[93]=[L("img",{src:sd},null,-1)])),default:oe(()=>[y[94]||(y[94]=P(" 超级小爱翻译 "))]),_:1},8,["loading"])],2)]),L("div",gZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 同声传译 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"error",secondary:"",loading:E(t).loading,onClick:y[25]||(y[25]=()=>zj())},{icon:oe(()=>y[95]||(y[95]=[L("img",{src:sd},null,-1)])),default:oe(()=>[y[96]||(y[96]=P(" AI 同声传译 "))]),_:1},8,["loading"]),S(te,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:oe(()=>y[97]||(y[97]=[L("p",null,'打电话或开会时,打开"AI 同声传译,可以将双方的说话内容实时翻译给对方,帮助跨语言聊天。',-1),L("p",null,'Tips: 如无法打开请将"小爱翻译"和"超级小爱"升级到最新版',-1)])),_:1})],2)]),L("div",vZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏显示布局 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[26]||(y[26]=O=>T(O)),value:E(v).isSupportGameMode,"rail-style":z,disabled:E(t).deviceCharacteristics!=="tablet"||E(t).androidTargetSdk&&E(t).androidTargetSdk<32},{checked:oe(()=>y[98]||(y[98]=[P("已开启游戏显示布局")])),unchecked:oe(()=>[P(it(E(t).androidTargetSdk&&E(t).androidTargetSdk<32?"不支持游戏显示布局":"未开启游戏显示布局"),1)]),_:1},8,["value","disabled"])],2)]),L("div",bZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 旋转建议提示按钮 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[27]||(y[27]=O=>U(O)),"rail-style":z,value:E(t).showRotationSuggestions},{checked:oe(()=>y[99]||(y[99]=[P("已启用旋转建议提示按钮")])),unchecked:oe(()=>y[100]||(y[100]=[P("已关闭旋转建议提示按钮")])),_:1},8,["value"])],2)]),E(t).deviceCharacteristics==="tablet"&&E(t).MIOSVersion&&E(t).MIOSVersion>=2?(Fe(),Te("div",xZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 手势提示线(小白条) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(re,{"onUpdate:value":y[28]||(y[28]=O=>E(a).changeIsHideGestureLine(O)),"rail-style":z,value:E(a).currentIsHideGestureLine.value===1},{checked:oe(()=>y[101]||(y[101]=[P("隐藏手势提示线")])),unchecked:oe(()=>y[102]||(y[102]=[P("显示手势提示线")])),_:1},8,["value"])],2)])):ot("",!0),L("div",yZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," Google 服务 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[29]||(y[29]=()=>Oj())},{icon:oe(()=>y[103]||(y[103]=[L("img",{src:bq},null,-1)])),default:oe(()=>[y[104]||(y[104]=P(" Google 服务 "))]),_:1},8,["loading"]),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[105]||(y[105]=[L("p",null,"仅在开启 Google 基础服务 下生效",-1)])),_:1})],2)]),L("div",CZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 隐身模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[30]||(y[30]=()=>BV())},{icon:oe(()=>[S(E(XG))]),default:oe(()=>[y[106]||(y[106]=P(" 隐身模式 "))]),_:1},8,["loading"]),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[107]||(y[107]=[L("p",null,"开启后系统将拒绝所有应用录音、定位和拍照,保护您的隐私安全",-1)])),_:1})],2)]),L("div",wZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 自动任务 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"success",secondary:"",loading:E(t).loading,onClick:y[31]||(y[31]=()=>Lj())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(qG))]),_:1})]),default:oe(()=>[y[108]||(y[108]=P(" 自动任务 "))]),_:1},8,["loading"])],2)]),L("div",SZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 实时字幕 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[32]||(y[32]=()=>Ej())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(YG))]),_:1})]),default:oe(()=>[y[109]||(y[109]=P(" 实时字幕 "))]),_:1},8,["loading"]),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[110]||(y[110]=[L("p",null,'Tips: 部分设备需要安装最新版"小爱翻译"或者强开「实时字幕」才能够正常使用!',-1)])),_:1})],2)]),L("div",EZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," Mi剪辑 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"error",secondary:"",loading:E(t).loading,onClick:y[33]||(y[33]=()=>kj())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(JG))]),_:1})]),default:oe(()=>[y[111]||(y[111]=P(" Mi剪辑 "))]),_:1},8,["loading"])],2)]),L("div",kZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 极暗模式 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[34]||(y[34]=()=>_j())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(UG))]),_:1})]),default:oe(()=>[y[112]||(y[112]=P(" 极暗模式 "))]),_:1},8,["loading"])],2)]),L("div",_Z,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 颜色反转 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[35]||(y[35]=()=>Fj())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(oq))]),_:1})]),default:oe(()=>[y[113]||(y[113]=P(" 颜色反转 "))]),_:1},8,["loading"])],2)]),L("div",FZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 正在运行的服务 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[36]||(y[36]=()=>$j())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(tq))]),_:1})]),default:oe(()=>[y[114]||(y[114]=P(" 正在运行的服务 "))]),_:1},8,["loading"])],2)]),L("div",RZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 内存使用量 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[37]||(y[37]=()=>Mj())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(eq))]),_:1})]),default:oe(()=>[y[115]||(y[115]=P(" 内存使用量 "))]),_:1},8,["loading"])],2)]),L("div",$Z,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 通知日志 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:y[38]||(y[38]=()=>Pj())},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(KG))]),_:1})]),default:oe(()=>[y[116]||(y[116]=P(" 通知日志 "))]),_:1},8,["loading"])],2)]),E(t).MIOSVersion?(Fe(),Te("div",PZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," Xiaomi Hyper OS 版本号 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).MIOSVersion?`Xiaomi - Hyper OS ${E(t).MIOSVersion}`:"当前为MIUI"),3)])):ot("",!0),E(t).systemVersion?(Fe(),Te("div",MZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统版本 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).systemVersion||""),3)])):ot("",!0),E(t).systemPreVersion?(Fe(),Te("div",AZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 上次更新的系统版本 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).systemPreVersion||""),3)])):ot("",!0),L("div",BZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," Android Target Version ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).androidTargetSdk||"非Android设备环境"),3)]),L("div",DZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备类型 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).deviceCharacteristics==="tablet"?"平板(Pad)":"折叠屏(Fold)"),3)]),E(t).deviceInfo.socModel?(Fe(),Te("div",TZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc类型 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).deviceInfo.socModel||"获取失败"),3)])):ot("",!0),E(t).deviceInfo.socName?(Fe(),Te("div",IZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc名称 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},it(E(t).deviceInfo.socName||"获取失败"),3)])):ot("",!0),E(t).deviceInfo.display0Panel?(Fe(),Te("div",zZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备显示器信息(display0) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(E(t).deviceInfo.display0Panel),1)],2)])):ot("",!0),E(t).deviceInfo.memoryInfo?(Fe(),Te("div",OZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备DDR和UFS信息 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("div",LZ,it(E(t).deviceInfo.memoryInfo||"获取失败"),1)],2)])):ot("",!0),L("div",HZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 性能监视器 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(Z,{size:"large",trigger:"click",options:[{label:"打开性能监视器",key:"start"},{label:"关闭性能监视器",key:"stop"}],onSelect:y[39]||(y[39]=O=>{WV(O)})},{default:oe(()=>[S(j,{size:"small",class:"mb-3 mr-3",type:"info",color:"#8a2be2",secondary:"",loading:E(t).loading},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(ZG))]),_:1})]),default:oe(()=>[y[117]||(y[117]=P(" 性能监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),L("div",NZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 帧率监视器 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(Z,{size:"large",trigger:"click",options:[{label:"打开帧率监视器",key:"open"},{label:"关闭帧率监视器",key:"close"}],onSelect:y[40]||(y[40]=O=>{qv(O==="open")})},{default:oe(()=>[S(j,{size:"small",class:"mb-3 mr-3",type:"info",secondary:"",loading:E(t).loading},{icon:oe(()=>[S(se,null,{default:oe(()=>[S(E(GG))]),_:1})]),default:oe(()=>[y[118]||(y[118]=P(" 帧率监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),E(i).formatDisplayModeList.value.length?(Fe(),Te("div",VZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 分辨率及刷新率 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(Fe(!0),Te(ft,null,xa(E(i).formatDisplayModeList.value,O=>(Fe(),Te("div",{class:"mb-3 flex",key:O.id},[L("p",jZ,"ID: "+it(O.id),1),L("p",WZ,"分辨率: "+it(`${O.width}x${O.height}`),1),L("p",UZ,"刷新率: "+it(`${O.fps} Hz`),1),S(j,{size:"small",type:"info",secondary:"",loading:E(t).loading,onClick:()=>E(i).selectDisplayMode(O)},{default:oe(()=>y[119]||(y[119]=[P(" 应用该配置 ")])),_:2},1032,["loading","onClick"])]))),128))],2)])):ot("",!0),E(r).qcomBatteryFg1RSocInfo.current?(Fe(),Te("div",KZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量(高通) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,[P(it(`${E(r).qcomBatteryFg1RSocInfo.current} %`)+" ",1),S(j,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:y[41]||(y[41]=O=>E(r).qcomBatteryFg1RSocInfo.reload())},{default:oe(()=>y[120]||(y[120]=[P("手动刷新")])),_:1}),S(re,{class:"ml-2",value:E(r).qcomBatteryFg1RSocInfo.autoReload,"onUpdate:value":y[42]||(y[42]=O=>E(r).qcomBatteryFg1RSocInfo.autoReload=O),"rail-style":z},{checked:oe(()=>y[121]||(y[121]=[P("开启自动刷新")])),unchecked:oe(()=>y[122]||(y[122]=[P("未开启自动刷新")])),_:1},8,["value"])]),E(r).qcomBatteryFg1RSocInfo.autoReload?(Fe(),Te("div",GZ,[y[123]||(y[123]=L("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),L("p",null,[S(pe,{value:E(r).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":y[43]||(y[43]=O=>E(r).qcomBatteryFg1RSocInfo.timer=O),size:"small",min:1,max:30,step:1},null,8,["value"]),S(Se,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:E(r).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":y[44]||(y[44]=O=>E(r).qcomBatteryFg1RSocInfo.timer=O),min:0,max:30,step:1},null,8,["value"])])])):ot("",!0)],2)])):ot("",!0),E(r).capacityRawInfo.current?(Fe(),Te("div",qZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,[P(it(`${E(r).capacityRawInfo.current/100} %`)+" ",1),S(j,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:y[45]||(y[45]=O=>E(r).capacityRawInfo.reload())},{default:oe(()=>y[124]||(y[124]=[P("手动刷新")])),_:1}),S(re,{class:"ml-2",value:E(r).capacityRawInfo.autoReload,"onUpdate:value":y[46]||(y[46]=O=>E(r).capacityRawInfo.autoReload=O),"rail-style":z},{checked:oe(()=>y[125]||(y[125]=[P("开启自动刷新")])),unchecked:oe(()=>y[126]||(y[126]=[P("未开启自动刷新")])),_:1},8,["value"])]),E(r).capacityRawInfo.autoReload?(Fe(),Te("div",ZZ,[y[127]||(y[127]=L("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),L("p",null,[S(pe,{value:E(r).capacityRawInfo.timer,"onUpdate:value":y[47]||(y[47]=O=>E(r).capacityRawInfo.timer=O),size:"small",min:1,max:30,step:1},null,8,["value"]),S(Se,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:E(r).capacityRawInfo.timer,"onUpdate:value":y[48]||(y[48]=O=>E(r).capacityRawInfo.timer=O),min:0,max:30,step:1},null,8,["value"])])])):ot("",!0)],2)])):ot("",!0),E(t).batteryInfo.chargeFullDesign?(Fe(),Te("div",XZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池出厂设计容量 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${E(t).batteryInfo.chargeFullDesign/1e3} mAh`),1)],2)])):ot("",!0),E(t).batteryInfo.chargeFull?(Fe(),Te("div",YZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池当前预估容量 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${E(t).batteryInfo.chargeFull/1e3} mAh`),1)],2)])):ot("",!0),E(t).batteryInfo.cycleCount?(Fe(),Te("div",QZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池循环充电次数 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${E(t).batteryInfo.cycleCount} 次`),1)],2)])):ot("",!0),E(t).batteryInfo.chargeFullDesign&&E(t).batteryInfo.chargeFull?(Fe(),Te("div",JZ,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池预估健康度 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${(E(t).batteryInfo.chargeFull/E(t).batteryInfo.chargeFullDesign*100).toFixed(2)} %`),1)],2)])):ot("",!0),E(t).batteryInfo.sohQcom?(Fe(),Te("div",eX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(高通) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${E(t).batteryInfo.sohQcom} %`),1),L("p",null,it(`≈ ${Math.round(E(t).batteryInfo.chargeFullDesign*(E(t).batteryInfo.sohQcom/100)/1e3)} mAh`),1),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[128]||(y[128]=[L("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):ot("",!0),E(t).batteryInfo.sohMTK?(Fe(),Te("div",tX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度 ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${E(t).batteryInfo.sohMTK} %`),1),L("p",null,it(`≈ ${Math.round(E(t).batteryInfo.chargeFullDesign*(E(t).batteryInfo.sohMTK/100)/1e3)} - mAh`),1),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[129]||(y[129]=[L("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):ot("",!0),E(t).batteryInfo.sohXMPower?(Fe(),Te("div",oX,[L("dt",{class:ye(`text-sm font-medium leading-6 ${E(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(小米) ",2),L("dd",{class:ye(`mt-1 text-sm leading-6 ${E(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[L("p",null,it(`${E(t).batteryInfo.sohXMPower} %`),1),L("p",null,it(`≈ ${Math.round(E(t).batteryInfo.chargeFullDesign*(E(t).batteryInfo.sohXMPower/100)/1e3)} mAh`),1),S(te,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:oe(()=>y[130]||(y[130]=[L("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):ot("",!0)],2)],2)])])}}}),rX=zH({history:mH(),routes:[{path:"/",redirect:"/home"},{path:"/home",name:"home",component:dq},{path:"/autoui",name:"autoui",component:vq},{path:"/settings",name:"settings",component:nX},{path:"/embedded-webview",name:"embedded-webview",component:()=>_n(()=>import("./EmbeddedWebView-DqK3I8Ls.js"),__vite__mapDeps([0,1]))},{path:"/appStore",name:"appStore",component:()=>_n(()=>import("./AppStore-C2FGZ_d1.js"),[])},{path:"/logs",name:"logs",component:()=>_n(()=>import("./LogView-DRJfJdVP.js"),__vite__mapDeps([2,3]))},{path:"/game-booster",name:"game-booster",component:()=>_n(()=>import("./GameBooster-CrLPfjMF.js"),[])},{path:"/game-turbo-config",name:"game-turbo-config",component:()=>_n(()=>import("./GameTurboConfig-DVUS_Z7q.js"),__vite__mapDeps([4,3]))},{path:"/dot-black-list",name:"dot-black-list",component:()=>_n(()=>import("./DotBlackListView-D4Z5m2bS.js"),[])},{path:"/tools",name:"tools",component:()=>_n(()=>import("./ToolsView-DRVZ6Ed-.js"),[])},{path:"/eggs",name:"eggs",component:()=>_n(()=>import("./HappyNewYearEgg-DHD1Eoqi.js"),[])}],scrollBehavior(e,t,o){return{top:0}}}),iX=$L({components:[St,iI,lI,mL,K5,NO,p2,V5,fL,Tu,zC,rn,nL,uL,Iu,rm,XA,e5,rd,yL,gL,M5,ED,h9,nO,io,JO,zL,w9,z9,H9,qp,EL,i5,gO,Vd,ZO,xw,i2,Wt,A9]}),nc=mx(OW),l6=YE();l6.use(f4);nc.use(l6);nc.use(iX);nc.use(rX);nc.mount("#app");export{WV as $,lS as A,cX as B,Rt as C,tC as D,G8 as E,wp as F,Ip as G,Rs as H,ya as I,BW as J,gm as K,xs as L,qb as M,np as N,it as O,ft as P,n6 as Q,D2 as R,_q as S,mS as T,It as U,LH as V,St as W,Wt as X,iS as Y,tS as Z,vS as _,Xt as a,ZG as a0,qv as a1,GG as a2,fS as a3,yS as a4,cS as a5,rn as a6,rS as a7,sS as a8,Re as a9,yq as aA,Cq as aB,wq as aC,xq as aD,xS as aE,Vj as aF,MP as aG,aX as aH,sX as aa,uX as ab,hX as ac,r6 as ad,_e as ae,ke as af,o6 as ag,cq as ah,aS as ai,oS as aj,ld as ak,ZN as al,a6 as am,nS as an,pX as ao,fX as ap,dS as aq,m as ar,mm as as,_m as at,La as au,ko as av,i6 as aw,Em as ax,km as ay,Hs as az,oe as b,Ht as c,xe as d,lt as e,Fe as f,L as g,Et as h,I as i,po as j,Te as k,E as l,S as m,ye as n,ut as o,ot as p,sd as q,M as r,P as s,Hb as t,B2 as u,io as v,at as w,Zt as x,ea as y,kt as z}; diff --git a/module_src/webroot/images/icons/miui_content_extension_app.webp b/module_src/webroot/images/icons/miui_content_extension_app.webp new file mode 100644 index 0000000000000000000000000000000000000000..90feba4f8184f5871da2f1cc0ec1d0cbaaf33fc6 GIT binary patch literal 14890 zcmV+_I@QHeNk&E@IsgDyMM6+kP&il$0000G0000h0RSrj06|PpNcs=}00Hn;ZQHiB z*|r@La8MkaanLxp<DfW59e{&g4yc3N4v-KBJsdO+=IO__ZaXv|9Q)6Rn1IXA@&31u zpB^5b9-p3{pTE4kyu4hu-$V+6<X~PMB$3L|Ac9Z?q44dxeOaHMpPwF|{`lkfkN0<% zU;l5P{&;%+a=j)*gdC0x6j@Vf(-33~A(~!U5DF4mb1;PR?d!|)(;vTo_!ZrK`uu$T zm$EIxK1IVAlsTExk+Qa{j4f#?LaXW(Q4Ntbis0*)$KUUM9ru4eUrB^e=9;n%Dr;F& zkd$&bWGvgvX^}ayCW@rYr54JVqU)E355Itqe_cx|QYptnh(xlFG6%_8I~hAh<X|CH z2wAfx5+yBb10ntM{PCyu`(OWxP(<dmwA4V6F=QN4LiR~Z1DUH~ZkZ!N*@Yae60)|C zHP`3={iN>xd_mb}ELn57j8Qr!udU%f&KQIciinVH)PShS>r-DJenNMT-;}Y4Le{Jy z)sV85H*9G5?jto65h_Zw91W3uO-cOo@RPZF{D#nCEklaT5us>PArkVVFXg}*gd8s0 zpvhVUx&HAp`E->eXb2)}#>iOKV8~CnVXX{FgqGvwl_3fLJp3%~UmQ=_M?)>N86*3C zLL^$G9L}~)#^?x&_;UX<xO+r8uqFv@q=eEC6b<O-gH-k{5vsI_maH{JQSkWVeYiRp zO=GgnT-FqXtdXC0A_>YGLA4M>wt4mSw;${?N&^*b<`yZk&D@e-YZ4Sy)+8b#NNOtd z_#@rFSVM#gN)nVZw-j13_bbVmHKKNveKNL$@N)md{C<t3UD<|dY|@a7O~2F{#stwy z8MALQ$MwSx@)=n}X^14!R3b=(eob*m2(pGK4VjZ7>*Ejc7oiZz7%B*f9F9`u*Ir&3 zBFZiqgNVoP@9x<eR0$z1f+TNP@(VAObRdxkX*V~NtY7ZFv%9b63aXS?m?$U_CF?JZ zBAW)0Ia-92mbJy#yYK4$t1($aY?6b+(W>RwpS37a#;j?ftWi05z5kBxuc1&mSjw0X zMWKm$7mNi#jsy)yvnJH_{=2!mS|izHUkRZ~j^`a22^wn2(GIK?gs*qs$=%mbnM0^0 zqCyV0l=o$1P%5IPPzaH2_<Hw!d}$e*S~BK%6(Y(zv<QMEW7f<eqO^GaE*?e5HggL) z1R?S+SyPUNvSyc~5&rrP9+5&s?Z&J%5rn*d3k_>&Bxwjz`23&!uS9Y*X-XYQk#}&B zgArwnDU?X~_#fS0ZKG&8*lH{idIyzIs%0$O@`lm%{=a!qEm@0pA#3I;@(vDBIUG@0 zo2n)2%YX8iwNP1yf*?e;)jNo&qNcn)%37%S{2$z_#X_OTnl#DU>b+bLNkbZ%lv*ql zAKvad1Vv<Sc;ntnl!C0O2`#3eh^}{U^{5;#O19C^(vWv|NCjz=D94M(H@cUxA#%7V zDDU_3re)075W#P6^JRDNNT_HCp?6w3Qi6^g9A4h!0ZN<fTO!+#_kL|C`_d-cPj7Ke zi;%S?Yj!QE-f3+JN#?W&SzEf^z3#yrDpFaiVXgB1PstmHid5Fe*IgxJWE+vg_5MTX zKq46<+vwZfYyOC=5mZEEo61etLK}*#5mZDxzUJy^khwBeY<l;#AsQSFGFQIc9ec2i zAX-WkEOHyB1FwuAT1tFA_I0WxXo+mgkZu7LO2;Y*S|WHk^uZd+QueiEj9UT8D??ez zzVQ2zXJySAw3D*W?HIH~S+fT1q`!__%i6T2s0fMNu4QdnQ&hya10S>IXsWD5vUGFQ zkTpkBWi9%+dnO0VnzhKb+^#uT)~rSNzugt7<PD?Et(uTZ-Z0|2`GAttuA!-=+oT93 zsa-=;{5CyE!m(s5+isCL3CEJL;LqtxlB1bhB9a?5BsrS7C8Fo)Y78wooZPs{7+P{T zS+Bz#G*Lu|tQFlXa}z~`$Xao?{4Qe@F%cxUZpJ8LB1rIQdCE4b;b^2AXCKvYG!mbe zFHsUfiKK#Z^Oi(VBB`M8ynH2;5R}MRZsQVy5*f?-&yqEiwdC-P6v|q1c*(cR<?;bC zPNb#jmYzsU6Txqn%SSa7q(wJaL0WW-_;k5E5JAQWs@sZ;5mZxB50}fMS0^O7%@dMr zgU8F|IiX!BV>ekSW1I2$a(M~S61C|ji`sOo{Qt}4D@nteL~iyZ^6Km5@~^e5saQz2 zS1J|~npz-pNM*>)9a0%W#^`b<YdfKmTRl{=Zr0!Kvq@1Dxz&pzYZ)WIeWWrMlG{Gn zN67N=cR4snk#039QY=CB>0zmfM7iaoj1kKC#{-!&7OI;~p|U1O{P9?+AQ6?@zJkhH z#-~S;ZCRt6PP7P-@c5*lNs@BYr%0qE%ijn>)=0Npq$D8?&(C?=-1<>znd|v)NV|mG z`jNG0^8A9NhIAT`c}QPg5|wRE!_XA;@&ZN3+&Lgs#_;k|NDkInK-7R<UL0>Z7b7is zxr$bVItgkiw8ZtA1#&88pY8QZNmSHXFotMpn1jxR5EAsy5E*hVmc!RUNOCGRwUqw3 z3d$K7LWt`%f;u4(QE>g1$hLDKRTSkLL{rYjP>2v(l9RCsB|}8g$*|^VWlcFDf>73^ ztT`Jig)BkVIv<dI<m_ydwN8w(rXWP5^I=U1MUmx{OjvTfb0YHkoRc}2XgDo9AO+Dm zk-3&R=VgfObAl#xdbC-~nb{^HXJ-zlPK|xbT4zQmYA7dXL6VcRAmsearlON$Oy<sx zWJozVi^y81Mg%!WQ_j+4)A@m%Cz*4Ow&XPJOi5WgJrX9J9z{b=(Sp+HQKd!B&y+!@ zN2np^XR(~A=_JXTPLL!yMWf1Tn&=b>=gGO6mZDQ64QFZ4Swc?IXz2VX%c<H)(veP( zma{ZObb`#0Gqgx_ib&4VNazev=FX4oJ3&Ol37UO%dZ0p1)lQHkC8x-mle7h$BQ>ZK z1Qpcz5i)mr5Jhrw=1h%5M4cOALr%_QpYt=S1)UvpL(b45a(-ric0`-dxiKc0J3F$b z<>ahs?&Nr7&d!!Lof$1<P3Xj+AVP9(7#pZFqYcT)nJJ;@yr`DcCZ}cDSLEcZNrX;} zL`yP9XNMt@Gcz)$)G5(Yq>%ZX7?(96a!!_v31aGmm>ZORIUQ?h*oSgPmRJgv@vLZ} zlA?^A4~VQ8ww)4{HGG3MIvIi#sei8&)YO?ES+o9g4T-3ni#5&HtAjZk<48-VMX7|^ zXv*Aaprlk{K*{NtP*G?o2#L;ueNpIo6$zm_4{DHz{&`7)2F`+_5m{eeymF}%AW>fV z@{-afi&HR(v}+*;b7H=HSqKT82W@Jom%kBY&DhPCwaQ$2es(b1ZoZ}jHJKWy7TtQ9 z8l;rxr%l->w|z1}3i0%aYzxV4pUhFl=<!K8nl-xN5LruT@%Z3qyK^xW^6=2ml(j@R zT#1$-(<cpytjTSkY(pye_`5lTFx71qrji`&<Naov63T6!5(<Kr^xHiRN#%GqSLJxd zvff>?&9)(`TWfBJRtGPatLT^zqMJ+zv4r?{Su?lX^ewL*^7V50GL^CxQRucRYY~MO zSzj)fzauIWB?R42nJ6I$TAnYLr;tbuL@MZJk{XCqkhPvJmj`6Klrd{=>!plYL!>`0 zmru4WAqmxO)e@3WP4mag<$hDy2brtesIm_-SHp+P<?>Af9SLf1BS%Mq8qAl=<#J85 zNjOk$<u(Zi%J%E>w-BL{Le{#4S_qXCver=lfB8&Gwz0gj+eS*ZvAnXLmj9>9nzHU% z65TXa)|7SElIY`d$5KHpv{bo?mkMg3rONhhxm*#3SH{xqLl|BeOSoRfzr8j>j#oEI zT8>A^@h{V#swF9gl(gYi8LK5JhLp5<nC@jGMI>WUQ#VMIY@~=}EXs%Jaz!C)_EA(( zZq=ZWHTx*4>t*|wZDgB}F^O)CT5>S5O~}~u?)Rkxg(&6Vpl%B#w3MI_rR+cMF8?mb zHiS?_lp8ZbT99oBp}1ZS{-r}r8X{WMEfFM<4mD|rJRkX(NR<eYHDd+Q&5$_~sS+Ww zh7U(BFIf=Nm^q0c-3Dt>A`4;~Gk(1s{?l4nBMoU8BWv9PsWNA*tdWL<hhul&%3KKv z5)$NQY>_pg%$1NJxn5rR<dsdS>?`Uf2#J)uVN)vpc+K6nrJ)qEPmoYj@41j7k%JAT zkokIf^`nv^D%56eig@RdH5Nijil|V-!|U#@kvSzcErhb|UAIjUL1a#e;d*()Poz={ zf-*)Ki>P;7P02)%N-YTL;VmvN1c{Qt8iW>WdB0hU*dT&L$?)a!ruR?@vSv(@pdsj; zwhd`$q7r0{`?t9~k}*whnzHX579By6O~y3wba~^uD?-+yDIHjog!F!D$y!qs4Rgp^ zbiKU!{}N?QUK>qg@~#dd+q}L+SrhKx?(#Wvf|k-iMVq;IQW6mnBsJ9{bAp~O|K*DY zWFI0_P?Dh3d#SQd#+DG$fbeqpPw%fZkx1H=ZJ5U1JFS#4`!;jdCc6Ii-&{V*;jE!F zL=tH#y?3l3N<-$P$eM#6F8}psh!6^qjG=;%$a^?MlwC3gku~D!^56gEa8M<Lv<Q;C zhZBjAc5_3?;it>@_%~`&L6s5<69pxr_eg`t94$gh%i5-VxqO#*U+t4M#3ng79If|7 zQKF1l(?VIJa{TMv_i?%VS}0TwmNF(pQD~xfL_v@vLBr9k3Dx!P^1a?)EhL-lD<M?L z@#y_Pf`(dhv;%7ealOBMzxP*_IfPmwD&%lWsr>qr5E+z;s3{aeWZT!@F5mOrS8G#C z#vHFgMA`PsBZMLdl8jk1hltYGyUX`|_eHjuThJj0k)?%xZONE5<!C5tb~*Zdclqw0 zMAUA~S`$GCwMoA?s=T()u$D%WhWNkBkN9MtG^LKD$Q%_>Q@@;+jG;}DgArwnDfIdB zWB%_-%fVJ-k<gLsGxtkE)|yHv)iRcC*<U|ie$@MyXcw|(t|D_Nwa_s33mHQt4iJ^Y z5tX&&<^J*mKWz$v5ZP9u7I}Ssk*T391T7R*)Rfo9=gW_Me~qk3ldP@Q1kq3pK|?<~ zq#$d?WG#rKAq`Fb`QPP-e}aZLPMIrfBtmG>PbxI2qDnhKQ3|rACWNQE%TMtBi)}Qt zG~{R~W7_1WUDjw~K}1qs9a2Hsyxd=Yk`GrD1?6Dsz`?B97Af@eD3z4Zk|JYiJrLzh z>-y>P6aC{#MMDUwqyv$Ik)ti4(vLP~tgMl3kZeK?=}76@<K5-w`f!zP$iWav6d_84 z5X#Z|0ji~4h>~(7NXCR5u8nVxcbA{<!`GoD70Fn}tWgBnM{1L!{bwyL+aWS$TSSs| zDPuz$LSFv7yZoF#{C%ymZK=gjTI6_?F>|&BHAP1nGB1hD<qcEHTA`w4ts*6S`@fHu zpZUkXuQlXg=BX5kl7uoRW8N}oB0@oEhzhExA!C`WnL|oJT>tub`T2i%_;Mv{1d*VU zaS=gC8WMU%k!=G>IhYWotXV6nC}m6$sZ=c2=RfZ+zs$Rjk6*r8gED8|X3ZR_Fo>eb z+_DW>Ygi+M2$EziYsgq3;@kE4^QXJZFZjd9ho|S4um8%fq-meE954GyLX=3o#-`FR zw-E%Tb;@|XetCX+_;i2y_21op{P^(j`1JVv{QR<Bx8G!2QbVKzULC1+EjlnJl{IVq zd)>agyu5sQetv#>dU|;H^zr`w@^b`MP&gn0DF6V_mH?drDl7pk0RR91C5^JO_T!3l zldl-B^t^U~pXZc`({t5Ef;kQ)zmNYD_*36|Hu@v@e}rGHzu-P$t8d&s?Eb?4g#2l$ z56!ak=d<hI;Qv>DsDH`&Q~P)LoAcAmFZfUKf9apue^<Y<f6n>1{ebFG{ZIM_^-u2K ze?NKO@4vZwTKtv%OYjB!`}yC`|J?uj-($bsA7C%#zt4RlKfr&1`~Un_{doU{{u}p~ z=p*@W@_+2V)jw`OfB)rv0D1s=j(-6DPtq;$3#Px6U6UUt_7j|&Rev-2Po^*ZQ~RIf zzxE&8Zm}%2{y+0G;eb^?mtKwDZnOaW@8}u+5Bgv5AFKZFK9B#A{%7Db`B(J6^?%&I zbU%OopFMzn+Ity(y`~fgkJ;PS!Z)?&<*Z#R8Y6aZsva05se*YzI3{OJ-v^I&vS&I6 zf*V${5xvb?jX@h~vS>E7&aw^|EQQs8=09pj<<wKU%Ks9d)J|^g&@mXYoSfxB5m0}C z#|zjP*oa_h%F7?^70&eg9hh_67#yckN*fIW?noO|Z=|>m>2nYOl10?I_<kwwvUPf; z;+oX5xV;bJNuEvBF-O%VPoRbrPaQP3HosTdWsJ}vgjNlJL6S_cQsVn6V9=>$)91UV z)3)`k_0?5r|KahR0>P*DwO1zAwj3fY8X-;S<prmbEH}E?;B0S=@}rAY5}#@tW$K83 zAubyqvsYlJ?4f<dW}6<}MhB&|y;(3XFkysmuCnn-C4%P_Mk{U7i*Xg!i~Q)p-On~B z`>|`=;9b9Sc`(sL*=`fETxtLyLUDo1Q>ap6nol!Moc7yhj#|cK*EnuL?M7W&EU^K+ z_Ino$wCy61T|mul`lg~hkz&f6GiaRN7t{??Nv8*NzMjb;z2yg$dcuY>_>d>o8=w5C zh)1Y>W4f3WG+E~;1>MF`P_^t8vjJ3YR=%hvFIG^+P$c~QU~`Udv$D1WPc1SU29h_v zE><2eT6kQY5<gTcRI?{}7$!&%8xF#j8QOb#NC%C&+5}>)9(W<{$fS2wbFDOA&2T_1 z^hjZK|6`E5%x!CZ+nx8DRl+d>8Xn?xcPB-RR)0?C#l&)AVL?aDH|gslP)q=SC&X|1 zKOs2pz*WCPNMnKNXYLLkOUJ`Hyh^~x!l`Zlnq>H&i6)cX<IU<Oz)HGNAJOYD^k{YZ zn!0fg>A~Y`(+ylb1_PJPF%)u^jhy}K6k1_IlB4;sZL&IC46)^$(fmHL*&fEys@;*C ztieSHs}g)JdG%U@_WIa|BBOozEYne)AI!m4WM@ycH=BF?Fa6xuV?FE2jUrm1DY6cO zPQZhvVi(I;J(@(=i=1Xf_~v~uI0oYIYCpM54JRJApm%US!qic(?}C5-$p1Z@5Nb$d z|Crr3@L}!2-BAfOSM7y5vYLoc>lwS;Y*)!LyGXqe`G@H~k6xm=y^xyE>T|IbSj`LS z-SJrLF<J5H@CkZEl(Mq3<-qNZHG>xNK2o8y7hiDE1)}7YsP)F>v9uN+NOA|L=)g!g zP<NnW|A~?Y9utFe$qj|rQm@_hVp@7bQOa|^Iv;O4Rk;1X>@)<wxH3Qu!%6W>Z-4;) z|KD!ZUw{6V7m#uIQI|ddor9mc_S4mx{xgq1KmKc*dc_`#SNXqq``J8EF_V3rj_w~W z0#+?B<7=v}dO%jpn4PGkJ>L~E87DN#N!0(2qdCcJZ?vM_gv(94I+uPB`mVT$^U3W; zpCO?MIVYx(`RHS1S<fumES2TlfukeDs)bV|RreUlI`f6xDKn&Zm<vG@Ed<`5l4Hf& zEkDs`%3cRzP8HWX+9WSahG`mllv=6X<*qP<af{O~fECC|kCY^UUS!eNY=IebOcR(> z57Np%#CYnu?BPqD%IuI*QTkUi+wR?lAsD&KUQqfR^>89S?62-YuK(%7A;L8*!~K;k zE$DT3WPZ3sPz%JH6&x4;`(ed&Mv@*S_w`ST;eU;^5Tacl;I1;<rFl$vUgT+d9%hT$ zcn*0xU*?7iG?dEWIRY|F-2$-Zhcq7x0=(@Wm|FJqgjr|%znOw{9J=Fc+A*+s{CVrY zuU}M*zz{$G(#7Pff=r^EX@S!AFFLJGD&8nU=xF&YVVZBPF18MvHFN(Z^>RzFWRI%R z|NI{wkrcW%)k0;eVE8Y9i`l8W|NGjn62!m6yjfZ5aWUMmD;-*}p_-5Y@G-zyckDt2 z1dt@;tGb0|PXie*0sNFcWMT*yxZ>^?UW^FA_PQAn+A4jK>Me;|vYgBM<Z*$IokPiX z^a0v{LCNapKavi>Ne_l@$-=o1ss*ThEmoo~cBjvvU)u-KnNK`%f<FuU{9Gkk@us%! z>$rFi#@u^Sb-%Rwb=_!52NX3RWDIgc#_`j7by;uEw;%8U>vd~|CT#-jiE6<!$I;`M zBFQ3J5!j_IfyvWuWBbG6Q;};U^!S<gk4TZqIs)#X@InPvVFw%HJ7yxgF|uvYPaB8D zn>+qtjevZNQru!q7}dtyc7@@OGaw&)6Tr5vbCekw`mP`SRq<x8ulNer7Z(~(>jO~h zj#?YD$^T@ZVd0i)S7<H4q9xQ|jiqrB*BVb*j|giJ2&Q><c+u##$cVV+E>d87on9|; z2b{g=6B=W2j4%<P(BLU|>=27$a_jYMJmRuNV|9DEbs~)ZK_3!!b)e0)hCcc18V%n8 zIuL*O+nZa2DMHg0_)g)yF(qHX+<ijy&7U&RdH;9y%d7OD1@u76ANby4wNogs?YM$m zubJqG@W~~id=TknxnhYQlIE&jHpNF$sCg&dqwmmeiBbyj$I-Xg+p9_L%UdJC@akBf z<RDagp<DSjuEmfuIS$LN^skWs-*@#G3czEtxM}4JHZem)b~mKHvipLl-!*C{jHQo0 zMXZACFQQhuRX$l;K6TiI`+izV_;q`hl@)42*yoGS$`2}6rs88gAtY*cCl5A{#oY#T zd=|$CH$eLM7-;P5{Q8C~mm-rZD+xi)W-z6mT(e(96<re^-yl<f_yu#ld5RoI^+V8d z6_=_~P$O+U<`ROTni}xU++N#?c{x@Pw`|a@6c*~p;unlF%6?Rw%ew8pap#w5z6F}w zs+91G%~J`jk0~4n<oih@uMH$CiZ=7KkU>1G|H}60NN5z~@)=a1qldso8e7g$M|af9 zvyo^cLt)wctM_brj3RrdAY&u~Mmf=&dXsODNEo(WLQ$f;43)gczLi#=I@y;e*<R_L znNdIm7R9@FL3G@J3!A*@@vav?@LxmgWe1;I?Ukw$)8^mdg!@>1XTW}_b!`xHrpd58 zK1I=S`NF8#D052l+SJa?xe2SLz<i|lZZp6tRY<?OnR3n2g0vgwT@T9DDl@~UXZ82+ zv|51N-mMY-_)veRt*;e-C=EBt$WN_TJ#d&&Gyv#t_9P#GmF<XmthtMV(-u%p%?qU6 z7bGQEZDuk=;tfI}0;djJ{+FYZCUD}!*J)!;h}=^oam|+-#hs1#0nl_7Rg@0_asZQG z<c1<li_}N-e0!wq{e>WzOn<-h^Ddlw{O`|>U+=x6n`0mUsuRkaRE~g+JvLNdugz(w za6v)!h?|j0!+yYjjL+`3JtcJ_eZ20rfJ{taUSyHPQ~Fb7b;<#%xGUpfT|_#}=8foZ zkifirWV$~ibb9ceY?kQ|f#|REsP`fC-}Y~Pi#x4ltCI3W`#<S<qy;ZZ^-4O662}1U z-C?%xlOdSu%s#&oTdJQDEPGYZet(~!vvg&MTg)=TI2&Eb2)6!4d-Bq3#6zWF$uNKf z4!2@rQz(0`mli0r2K$6k<z{YTvm7UhKG63WU(8Xj|JZ6RpLf+d`GCK*^1C)VkZI>5 zFIoO7Hns6S>rJ_Q|L{|*%D)}Q-P<RZS$^gD@|Wp_BdRU<UHE@@Md|ohXS>PIiVL5> zn~v{y6a@rwlfMp|9aHd10DqeSF{A&3u$xel{@Ts=n~<vm0b_0e-p8$3+b6I0{B$+g zl;z%l4XNk)0N&pb$y-kFwj~}Tx(7zhbn*RCY_S$ld<7+E+F&7$KEQJI?|!3kyR;=o zc;kO?s#PMsnJd(yT3nQyyu<YueC!r(Is*gwb0-q+Ho4rPaG@R=t_h!^PL!(l1zxz# zWYZx$%2JDi*F1cL@KBmw{@<A{c7p29)Q%uo1berYQw_d|6X?yoUti?!3k{j>!571X zr0bDmC&Lk1U~P=vrZL9&WZ$Tk+_)BY6xIh=iNN54f6=#b8_1W61n?e%F57CU5%6dX zdKqy6iQ8jLzi4NMsG2p2b{74MZDn9vw<73-QpH#lBY8l72(jcWsSA#=HpL5Mf1eNZ zTls{hu;hijZYv6xB`1c}Q?g@I(1;LOk)gWWVBG5E1Fy)Qft-3i7Qmit^@%UN{?V(N zsejG?t#?I%>m8O);c)rOO=WITJExJqKNYX~y{1V%O+&)JX&UuVE`(#4ykCeq2UuRd z8G6r{Mt-4c0oe2`NS=zdpiA+RbSd-wUfWnI*^jtKC#m<*TWJMsi%D#GcVKwHeUplU z`Cu@*NNX%D3ybb7oQF7D+VnvW?ueoe+fTS2Ql!wRRsUC^5;H~AH_cCV790&+%H*Xu z6s_@O&UY7CPmLo`mZ`c107Mr}074PREse^<>n+;SS3;mf+)Ll61T{-7AoXnT2}hm) zclaNt2*ar{dYcar7Jv0ki|3nNjOi57{8si7V~GRA{XkJP%|;Dc+-AObv;(1<84%Vt z(UEFHt82(W!#o(KB1aky-6QUxBu+knar@E${R|P~e{cic>JWC=&|iV(`Yt*c$Bg3h zfe9>fHgP@3@L}I?;7tByli5E4xhd&L@JL(s^e*U<zH-E486?Bq3O*j`SoWa)jtUiF zv{fnj0X!PS9Emf<o2JNb9B{`=R{?Y9Vy+-#{!u#+azxO+uA=yiil)g>q4$uI@f#U4 zSUPgM8Ew7)KJ6E$I)Dc};5gI82Pgs6q4GSF)tpuW1dDpTM(EstbLL{{A7Se;T|xrZ zQ10{-%E|bJLcol)kU%b9EGn(|k$Mld58W6yhxZX}pUD-;5wwD4pN3aB?Ts@oN3xW? zi}GtO*e@PYmHZtV*Jl(6{<8*0X!-SSUnL3E=0Iv3f2;s5CEG;Wm6A*8IJ8>tMPT87 z?z>C3340Rymcr}f^HH#-AFKV3NCNFAyLdxrMd-qb7Y`G`Gr35Or4h;lBSt(6$)!YB zYb$5gXQ>TiAYBlUB_Mylr1>KVLsp{e(2g>Qo(!`VkODGw8BpQf;i~~~1p;tj5lUgO zL*nE@ay-=>Ao#KCdST=tlJfpU*4oNI0zq8l@n51*=zmcA5Mm9vUwgkoeMG*_O4tod z9dlL@*%74$a>x|Jh!v}NSm#y+zV;B6n|+poLLqI&uErl(Lz(JV<79{=cX9A4nZ}`1 zX*ZzFO~a6!OgjIu6zGjbLJ6LSVwxS_#i0yHW?*mC8Ttr_##uLn)V(%fYLedg?@iWx z@|C8w@#p!>se`_2@@b7Em)kX7XQ&Ak*kS6ism+ii@xfT1$5T*?$pYt9_IU?CCueh5 z(GIe=8crmR@lY6~p+8Fh2Sb;&tf4o0Z?@grG=azJs#llgJPYzXd*7t&2o4l)rU_qe zih^&)$-`f%o!9hkPKocR2FP`)Wly46b#T&1mNzv?Q37#82$)qwX#K3}oP4}5;0Zbt zW;gVtAJJrUf2n$K7#^^o<bgqaVj2iiT3feipaIdMJ)A7HvsI$@I&oH)R_^ousSus} zoqK_GAiWvf!IFy);}tKVpdGQtm@s=l=6OJcK8%yLd@=nD)<wTrZ3oPl^(%}4#EkZm zLi{%nVE$OTSg&6RplDYS%HfLQoIbm)9Z#pXy3Jsjq;HuAp$uy=&J1F!>^b%80)WCt zJ+zE}raF)<fX-$+VOwWb6fz?eG3_k9cLLQz^-hoqDd`AC=M;v2*LNNojV%UsO)11D zvdoIUSM%cB0OcT%RLHKc8F5tEbq0PeME4|Oqc1OsQj50p+L9vq*yjqqW0?8NFA6Ky zY-0OCMTnsda1zP29GWBXgUCR7YCD-Ss^k}kB7@-_Ha!|Dt5spBowf&%je6#e?<B)3 z<D@?lg&Nuetfr)UR91la*LMQb`EWJ+<6ChrmvcbB>X+iL9-7e+TFB$_U;SG6qX#l{ z(G{i_n*kuJ5rhw3y!xWa9ymEx5X89ka7H#db$v-F@%3GdM<xi&^XRGm9wHnI&qq9K zvB!#&c;y#Aj><YigE6u@(H|`#V|#(T8<kyL1$Gg63N@zLs<ebtk~p{c58v<!pO01( zY)hZCB%Q9mQw*`0<7SNqir7UzrBY<7qWf^4Tveia%vpz+F7lv;E3+eR2q9MU51#TH zZF;#l{{D~xM=U!ZPbzisKR$3DHuH<*1Y0jYClRYY%FQw`CZ`D4Lf^I9<!7dE^UR%^ zpr&BqbI!k#j@{RuiI+R4OeYurY58)G$KTw$TP+%AdC#?6r-K?&!2kIn0_wp%wy%AG zw*_WJ;7KbKcce}eb$Ct)&_kqjKcLa<k4W>r(iqrIZ7oGQgoE`FFjzK`uVGAl{CSeL zpNLWWt&2QeD5y?&qATf;_vh`i<HIzuZ6Ljw2CO3SQXCm-DlpnCc+H^G*Bi`zQciAW z`81kvD--~wXl1T$&-$tZvur_C4Aw?{b&#k1g7*qpJicm0xR&;-Up+_GTA>VrZs}qO zv1wV$zD*-aA;*b|0;<y{!)fAc6BU$nB2=(0cKqTh5%lw8lC`W9V!l49Gq$phEcANS zsb63C#{PSIDKW)+4rB&F!N5_KumTDoeKFALrs2xP>!5S|1Wgd0OmvAo8qt_Igp62S zgfnA7Kkp4V?_U~c$Fr#L?Po4HX|xc1`LDO}Kfqj^F{dac1*?_=m}K97eP{D$gqYb5 zwOxT^c&0?h8#*5S0Qf%sr~d35_iyQWv5DIpW){LKv)2Yf8%3J?kGB}oFn;uaQ*s9L zFagtdir?~(BnGFGa{M<2%}SZXU#MtG==6Y0UP9i(>|_U7dZ)8vXsZjxM+(QgDYx8U zr9_F%amYG!sl=e)-}%uByIP!gFJ+q3bx-%lemUg#=Jk8wpa`uVj#a8^<VXny3J_2k z=ttcU?PZv@=NT7Vm<O5I9rz}|q_I2*3;m7DZq*~e%ksZ>&b#C-g7^@M(38~uRZvO; z_>TA0qQF=T-lc*&4F6bL`brXM%!L?iVT5CG<vqD|5jnRX-H$)^hOJ+X*FkM>9N<7V z*%y_(ybt~=mOJWm^*KMtv7hptSb`BavlqKb$LeQ(eh7{xtD}EA?fzhh`2%nACsS5Q zH~;B%Q`hNY`$t+Ber9ltSxbt=iqV|3(X*Bb&1Va;R?nf@MOSm9b;fI(eJEUAWt$J1 z7=oshFPb-iVh%#b1uqJkydIWk_^{**(HT{1wThy_Vs%j*J36!~_QTk!xzsL%iw|t; zyh~?#+3$OEVQ^E9CQm|T2+QQT4!qXmAILL2$s|f%W<H?C#LT74&tL{qh0-*l3Km!# z<XThpb5mB}N-6_lWa_MMIjR?d;$>Wv%5gg(XeAUD$+K;`5_r{LyKc}pc@MrKx_pfH z-K{n4QeB7rcQ}%9^&&yTK0V4cNa)!xFiYRpTb->WcNOAcQePnopJmYRrS5_FOuH3p zh0~M)hDn`SbbuHC_kccp61pon=S%a~x=zP_QU#WYU0t9?1*qWnn-i=J&ITb&iLA5g z3!ie}I*Vyp`6|*x_`P+wfP@fN&y9Tk_ES|mIuf4nr6SY^1dLA+01ha{39oAl4`=<W zA4o(1MqjV;bZo^GDLpK;u|;$?V-0>LC|bC~31pf(ZO{ln{N;uFI*OP4y4O(WCKI4{ zG}kBS`O6G=yNoD<Vp9=iSSG%n2B&}bE7P6ENv$VDzha=%SYYJmLB_qXGNhx}H2EBw z6gV8K$2IA!o7Sv(D+S!N+1M;CrShGeZt))TU^+0Axi5D1XUy#UK5{NjlnAgILCA^E zW|4)<!ESaP)ah781pW(FnLEHtzvj1mCWcfh-EzBBoz)Kg_SK%$55SnkS<6AMI=e_u zN)#Cf3N=I1LiPXR1ANc+E&Ayn&}$f55mJF5kT{Q@^5{*!MnE@%&8=09dcj0+Mf_jx zh{>fJ>(BQ@A}vLqoi1SMC=#${$KmHYkNE@ouvQC;w0$eYX110l&FC`ZWXI|l7)`|? zU~laF4&)-Qb00Z_G%FpqmW9B1Qr}n1eE6`crc^&vRTClW(I<%pQ8B^Ysic%Z?mMxz zFf6kxWgKq8a(PRNcuRvxQb4$RN5*HUkUenV1HBo@ZxLf%1o71HL>si7w{eT27K%A) zz0Av>G*Ks$A*R<F*#28+{v6`KAetu_Bb0~{y+*K{?Kd?rACX3ohK=cuHh{F!WnD9Y z{mRPLGcBize;68;MWkmpj9Ip>;o=OXIOq3q{;^7G8J{WPo)ZlIOsh|!{ctm_@yE~1 z1grySa!}_7VY(x#nQk}=Yygj?<lo~qI{Zb!-a&pUFAAPX|5yL3^d4^2Gg}XI|4HvM z)Izek$D1Jm$~MD*OGoyx>z7GvdoRs)raoE~1@n0=eD+Kq;%Pst`;lyg$r7IfigV7X zB7Gn>6o|pOz`3uDU!i;vJGzV#%>6a_0U0@MS(sw4w8{o0u|HTL_39CBE-Di#YJEKt zJ7P=B3f$!`b(92Vy2Yl6oWymf)>f9GZ)cdOQ!@iLo0Wl?_%ryNrSK)A#0^}|eaMGa z2#P>;!i2`<PQLWP)ZJM=bj7IwyS^P(mQRD~KNK5Cc9Py_xK02RlE9jqPUI)L$0!$0 z5bFsn;0||T7l@H_xak?W=|Mn3V=4$nD=sjtKZ5E*AJ)HZ*`98WO@wMMwjPjSun;vg zfJIXsLmD!nlX+)l!BWPBtDfq0nvsg=p;F{)D-*}^3g67ZTT?d9)US`c?G3B9T3;)F z0jfb8Vm}a=91p@0gGvI%k|n84u_f1gfeMQ@KK)MJa&Hs*!vXh0m3ba@!}d}2sd*a} z_Q(Khx=i3|bZW^#u08%P<ZnRA4Ma?J13$?Xo9I7->U+6f&@VQxGQwItp2#LKs?83- z<N|uUZs%<DaW?(4#fZ7d;G<1%*w(@_>+J6(ieK<wL?Pd6yqY2}_ylbbzgorL{OS&o z&7%sLqfuRkAeccX@v>L|A=h5>xhig3CsUgpQbG?p?(O~Dt)b)vNUwDWmpn5k@U*bH z+aeA|sNnRUyJOYl=QI=i3A42@ylCSuq=+OL`y9GgK`!*Al|O`#pC_f_5R+;3HniGz zKgsTzS;O?ambt}8m64m_{%<x%SYa6D66DS?eY?IiYLL9z+CO3kg>R4I1CxZDCbot- z*pK)u0x^wk!jm!47zDRaaFDT?BgyTdN0AU|Z))SiH^q|F>!4XTL+|wmS+-6^8cKPC z!E6@zr@qLsX_5S~)XaE>kOHh$|4wh{{-Jh$z44_OxWNKMdwo5E!um#UyiRw+6zE43 z?s16Tw#$Op1qQvA%fkitF1@EcW~QVE>mqBBsMg=p40)-SBBSp){r1~Ns8n${XG~DY zMSTj)eCZFGINj*59m{;KW~{SUc|IXuSCLG^8v@(Aji4e5CkMjKnA&`ICC>4^^sn(T zhrxMAuX8LOin;{RG{UYD<@Tm0SR;=fgI&kY1JLh?qJHn8eiR%7TKedt&(Y!FzAoCm zsW%#dX+6|N1iJ0Y9MEY&c{0J&3-4nkH6(uxmIDBS8ld|V8$5(^WiBnaf@*)pP&+$7 zdn6{2`qfc|{a};#Y)SOYs^_AmZ~rIORCy_E_*3bMA@4KXjQ$~`Vh?WYUgoOzy*8Zt zLf!9u>*!BAl0Izo&dzw15S#ih!33bt6I}>+KTINl7dwfee;ym?O*zVEfQAm8t+hqr zc|a43BOtGsU%Sh)3x?3T3CnIlcyGx#tfaH5{HJFj+Nk!jHD+p2jg{pFT2-)G=%442 zD{Zo`&J^aoJe_i^4f}dozztK5LJMXl?Qw1l(o{l23u9D8@zNO$&_SC2ZvTC!0E26( zt)YQ$V-fzrlr~}I6#=*5W*<>(pTJ_(a)ayu8J_e=m6OT=VB&Ydnd_vK0tQH(>;I@I z1WwjxJgC{ZC3%nPK(2#khGiE>fNRvv*QpwohktocXb!)j%g?C8_CoAHIW$g~-n#QH zN`AJrav=Lwpa=-S;qD+G3fqLe2DQ=K9qo~`3!aP&qGvAp2FmCULqLF}#_-Nfwo&oL zwiuqQ8NJ3}PIFod8vk&h>;y?a7ob9KzZ&ecb8)<PEk-1X6XTh#{2utZ5ey9Yj<tJz z=iz#daE#)7NLK8BIF?$WG!||Ud+Y&og^{xRTI+Eb(2?EyECQSaC%DhJ$eGdsUM)GZ z3fozF-5n}8!c=qg0-k~Jc3_u0zzuF-HRWCUdoK4GwTzBkqgm!AQH<)w>mkFtdE@J! z_o#pThsv`20)G~AM>9}rN8dO<k*0<CV=0K(%Gddrpk+r|XvI3ywGwIaAW<9aDWHQ= zg2ll_cV)34T^Bq4fB3H~Q>$CNc+vp3HgN{pXOuAJ{MA|W2{LgIUjGq_XnFOFf)qZ* z;DG!VDKV8zJwlv6FLEHysZ_lkh>cZznbxjt6uzko9QwqyV}xtD7`;@5(>H7B?WECV zqiNmmlwsm1cJ3>Zhm<=bUBK|H`3hwXo{(DLQrGFep1VT>7&-oHlChu0($~NdP}Pb( zXN_z(wO@VzDCbi-fu45a2#Vo13f(zOt_krkAlnI#Nd^mgSJd?*IdWcY1DZB<$caAk zcjQ$O1-vu5(rT5}y(gR-!~^dg9t$Ra67dO%Ox$Oj#R(l<H@!!o6G3mYjyBt<LXjwv zrb_|qBHaL;?FjO30A$5ia(d=MkUvC~^UlxfT~x`t6}>Eb()F~L1$iwI7eIc)uF%Wa zr{shF00yp)S6ip_&`?DE6rHoSM~{Y(sf5AK%_?Z{*c878S`18<Th_0ir3Tnkq$4FC z^~u~2Iy^$Odzs(F1&!7)VX9x+V6KXV|M)F!W5?3iufbish)~x$Z0~=;-5~k~!b)Fu zfF@YjuGkIXk&f%L!upqM3)i>+<u#tOvSM7_G3(Pwyy&2|42J-QfSP4sXUsVxhpB8i zbJQc0wyPXsmU}LC-k<)2AC`C12_`fs{g(1p;irY6(xnCin?Lmxesm}GSUd>sozNC- z#HO;&e)Q%5j-O+z7ga~TG<sk^6|i_dTC+_QRG{DG0Bv45_eI{}4qsAYnB&?^a^#pO zybIBEEY)Lm&!s$-zL5Eum3s=qbgTnhXB<?tBndBYb<8E&&QctoWyA@wmKT2vB2#~z zXHMtedxif)J}kXks=!?~xda1^3a;5sQe&x@WE2<pN&WXa`+lgqEK{jnx5XG=wO<%Z zytjSVWtRV6I9;BN<3IsD%Jf2+UYb#(llt+7znb+Tz3vSUvncBKh(5$5f5py~Blf(< z-JLqAMh)%#CPw%MAIh<Qept?-xAVWWv)qe~<==K6<uy_GI?!0T{>9}HVbUF9n*!*Z z08H^99aX1m9gxuKVM53jbqgW+8+?FIxG~mSf>7Y1)3HvO)-Wq^H8zoBF)#DL4{3<r zxEiJGim_X%f63Re!5C-4!(wZI@P~jV<x(4|1+*^cuLE0h$MPN>1U#h#?hK|(czBS- z1HI$(+LIPs_Yps~R><eBC=@8OHq`m3FD9et0B_dMju$o^OlHOu>pynq2B1?AUzGww zU`LFwf`8EhTRjp6uX+146gnbAH~Sgier7f2F11tILEby{MBYW}wlx?;Tp~LbtZHz1 zJK~Lqv>D!F<x8HPQj{>JOwEh~PnM2>rVp<N#d;4<fP_k@L<KYP7zxp3LZsY@YTC1M zciO>uXvKDOVyb8~)8P!vqnT=wRw3}d%y&L&E{6~dVoyeLic-2n>;#ei^dDpj)~l{q zNAWdg&m*tFRn*}7&1Z%k-cFzEvMT6WLY-q{*($}Gb6hM?)cJqQw``=)zW-kD{n)|N zlK+H1mV{p6S(X54{Z{yS1O5dh9X|%)0>@yLqkxogtAh00@m^jf@SngN=aYDMGg5+W z2vL^PDht%@GSjVwe&+^BTu##oB34Qz{yLml!$0~m8bY$kklQJr#B;vinQ74$q0)V( zhJ_j~()}vEz(J$RX4F;HBe(?RESwQCoQxw7g9=6|ISY<f-`j%{h^MgN+f+o)zAzv> zK6%*qB_k9JDMc3LX`6t^5=+1=;{t?mLk<KT6wqocQT^LpWqCpGIG2cGHyRtBHQ_qE z=ognU%BYVNN5B9_2ZS%<spk2`hb&P8)lP?AgjFsWw?Jp#bf#Vtg;%ThjGKBKpAb{j z@_{3k<Z^kSr`C*)Qxt)C(r`MfsX%PsmMUcy?cbwe0^;y%^E`v3+%fXy*`q)yfJa3) z8B^zP%-trdW*hI-87A|HU8wiTQoVdKfB^FCYEXQ@a8FsfALdEl!$W7{{Ny|wZa>M8 z%H7?HKHwofDboZdqA<chi!JUDY*D#<3socQ1G*i>#FX<<>HqJbjJ6oC6VXYNfQ%XV zAPuqPfo%L&G{GF}{`JLe|3w~KW32RQk>S6b`erq*56{C(umAa~Hu4Bvi!zhPs_nL` zY?&;1|HPoM9eq{#)i3Z0RZ+PXBC&9BSD7pxzFrD&zI)20=$)4%#JfAi&cMPo2y_{O zUq4KQAL#y$J{k!Pl7FgJGL8ERWY*Uu+XzO*Kx{Vyt^hHxo;O5a2s=f$#i9ouurOS@ zE}vpyk@yFTGu}#6tYAyI1Z$a?eps6*NkezV<@bw$R2yaU$iODb5e>jz{Qk=VA4itd zYuO8d|NfRRokz>Y*jmu>hGXNx@iT6=HO;KP^K)c^^+$_DnEB7x;9M!y=8R+t2@CzU zeH@2(0~HE*W>JRd>HR;#?WGc=i6%TqQPkzYiGldcDq70y3jvNO3%Jy*CbyE<x}2`_ z5fF%h%b`fvT(CSG`nxD?gb3Vnq+f%XcKRb<e9b9xYD{_4mqpmC{jHkVzq+Sra=!_R zRG;%YcW=-VxnL$Sm%%}VJ4%>(&xEZw*A+RI*{8{}b_j@`(J-w@M)ni?G{8=z=?I9^ zea;cHLEg;V$W#yQk_F@|j%`zrg_h3YTaB=r)p2l-0>J8+!sW7IZ~Cmdb`N}V#7pL3 zV&k<#s14s2^zq!RIxLg#vWA;TyzI>aM0!MdVW3w$(p;G@|Mdr6MZE^vejWOEmo1wr zR>CyyB%S(qmo1wr{fkE@yBCB}3FjvM76yqvpDJj-kT|l_cxSj&z$}`JCFwS||M!$A z00031Q9eZ`;bn=kuF}$KFI!`Q`J|v4FBN8B6%NfV5CA6ln+V~OZhFjDSPPK45JiH; zc-(<j#L&_iaKbfaEBL4@@o(6<&2UcXgh<@VD0BP>P|h{{_Mm>ts6w%O)V?P!b(a4Y zhXCH6S4ElM^$~KJ@&G#36j;+ABy(eS04H^un4vVsRKIHs)u>U-S7QR$c@HBx3nvm* zY9P4-IOp6MsHLh$wXeoW&+vy^8x(%n1pqnGNNu?Zg09r6Sy(Md4|FonFd%G^{wRwb zo22b(E!Lt+;Nmaf=B4eao>l)3c<mQ*IfVYFR$c6S^bQ;*_sy`)esFdqFPBrXTgSG9 z`^2R$fBiw$)&KME<zBdR09T^n0)nbJX95H2rB-HpUtaggfB*6**KoEy#S(c#;7R@( cFKmtRm%(mmK_?Y%I2q<Y8UOv|3IG5A0P0-;_5c6? literal 0 HcmV?d00001 diff --git a/module_src/webroot/index.html b/module_src/webroot/index.html index 99812c33..ef413acc 100644 --- a/module_src/webroot/index.html +++ b/module_src/webroot/index.html @@ -5,7 +5,7 @@ <link rel="icon" href="/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>完美横屏应用计划 For Web UI</title> - <script type="module" crossorigin src="/assets/index-BmNUNV6O.js"></script> + <script type="module" crossorigin src="/assets/index-B38pBnVb.js"></script> <link rel="stylesheet" crossorigin href="/assets/index-Bk0Pirw-.css"> </head> <body>