From b415096a827373e82683da73573e2ecd3f64ebe5 Mon Sep 17 00:00:00 2001 From: sothx Date: Wed, 22 Jan 2025 18:03:05 +0800 Subject: [PATCH] feat: update --- docs/changelog.md | 14 +---- docs/release/V8/changelog.md | 14 +---- docs/release/V9/changelog.md | 14 +---- ...Store-myjg0Efs.js => AppStore-BuJDF3ID.js} | 2 +- ...lq1lIC.js => DotBlackListView-DP7Lvogy.js} | 2 +- ...WNxtfd7.js => EmbeddedWebView-CWXM9W6r.js} | 2 +- ...er-CCGqR_Io.js => GameBooster-BrGqqyKs.js} | 2 +- ...12askhf.js => GameTurboConfig-CQo6LjY6.js} | 2 +- ...ailm8tl.js => HappyNewYearEgg-BVtnqtKV.js} | 2 +- ...ogView-Dcvhg-9q.js => LogView-DRiHaWZO.js} | 2 +- ...yle6ik.js => MagicControlView-YT1mq4bs.js} | 2 +- .../{index-DriQcjjf.js => index-DylCICe-.js} | 62 +++++++++---------- module_src/webroot/index.html | 2 +- 13 files changed, 43 insertions(+), 79 deletions(-) rename module_src/webroot/assets/{AppStore-myjg0Efs.js => AppStore-BuJDF3ID.js} (99%) rename module_src/webroot/assets/{DotBlackListView-A_lq1lIC.js => DotBlackListView-DP7Lvogy.js} (99%) rename module_src/webroot/assets/{EmbeddedWebView-6WNxtfd7.js => EmbeddedWebView-CWXM9W6r.js} (93%) rename module_src/webroot/assets/{GameBooster-CCGqR_Io.js => GameBooster-BrGqqyKs.js} (99%) rename module_src/webroot/assets/{GameTurboConfig-B12askhf.js => GameTurboConfig-CQo6LjY6.js} (96%) rename module_src/webroot/assets/{HappyNewYearEgg-Cailm8tl.js => HappyNewYearEgg-BVtnqtKV.js} (97%) rename module_src/webroot/assets/{LogView-Dcvhg-9q.js => LogView-DRiHaWZO.js} (99%) rename module_src/webroot/assets/{MagicControlView-C9yle6ik.js => MagicControlView-YT1mq4bs.js} (96%) rename module_src/webroot/assets/{index-DriQcjjf.js => index-DylCICe-.js} (93%) diff --git a/docs/changelog.md b/docs/changelog.md index 12984ac5..ac5c4df6 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,21 +6,9 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增 结构大师(com.CDA.StructureMaster)的居中布局适配 - -- 新增 淘宝特价版(com.taobao.litetao)的全屏适配 - [Web UI] -- 新增 [应用横屏布局-应用规则感知-酷安],可以在高版本的Hyper OS 2使用精适配的酷安规则 - -- 新增 [应用横屏布局-应用规则感知-哔哩哔哩],可以在高版本的Hyper OS 2使用应用布局优化规则 - -- 新增 [应用横屏布局-应用不兼容感知-结构大师],修改结构大师适配规则时,会优先推荐使用对应的HD版本 - -- 扩充 [定制模式-应用白名单] 列表 +- 优化ZRAM Writeback的显示逻辑,增加回写块的显示 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 模块首页:[https://hyper-magic-window.sothx.com/](https://hyper-magic-window.sothx.com/) \ No newline at end of file diff --git a/docs/release/V8/changelog.md b/docs/release/V8/changelog.md index 12984ac5..ac5c4df6 100644 --- a/docs/release/V8/changelog.md +++ b/docs/release/V8/changelog.md @@ -6,21 +6,9 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增 结构大师(com.CDA.StructureMaster)的居中布局适配 - -- 新增 淘宝特价版(com.taobao.litetao)的全屏适配 - [Web UI] -- 新增 [应用横屏布局-应用规则感知-酷安],可以在高版本的Hyper OS 2使用精适配的酷安规则 - -- 新增 [应用横屏布局-应用规则感知-哔哩哔哩],可以在高版本的Hyper OS 2使用应用布局优化规则 - -- 新增 [应用横屏布局-应用不兼容感知-结构大师],修改结构大师适配规则时,会优先推荐使用对应的HD版本 - -- 扩充 [定制模式-应用白名单] 列表 +- 优化ZRAM Writeback的显示逻辑,增加回写块的显示 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 模块首页:[https://hyper-magic-window.sothx.com/](https://hyper-magic-window.sothx.com/) \ No newline at end of file diff --git a/docs/release/V9/changelog.md b/docs/release/V9/changelog.md index 12984ac5..ac5c4df6 100644 --- a/docs/release/V9/changelog.md +++ b/docs/release/V9/changelog.md @@ -6,21 +6,9 @@ 链接: [https://caiyun.139.com/m/i?135CeBMHACC6p](https://caiyun.139.com/m/i?135CeBMHACC6p) -[应用横屏布局] - -- 新增 结构大师(com.CDA.StructureMaster)的居中布局适配 - -- 新增 淘宝特价版(com.taobao.litetao)的全屏适配 - [Web UI] -- 新增 [应用横屏布局-应用规则感知-酷安],可以在高版本的Hyper OS 2使用精适配的酷安规则 - -- 新增 [应用横屏布局-应用规则感知-哔哩哔哩],可以在高版本的Hyper OS 2使用应用布局优化规则 - -- 新增 [应用横屏布局-应用不兼容感知-结构大师],修改结构大师适配规则时,会优先推荐使用对应的HD版本 - -- 扩充 [定制模式-应用白名单] 列表 +- 优化ZRAM Writeback的显示逻辑,增加回写块的显示 如果是处于测试版(Beta)的模块,可能存在较多的不稳定性以及异常BUG,如遇问题可反馈,反馈Q群:277757185 模块首页:[https://hyper-magic-window.sothx.com/](https://hyper-magic-window.sothx.com/) \ No newline at end of file diff --git a/module_src/webroot/assets/AppStore-myjg0Efs.js b/module_src/webroot/assets/AppStore-BuJDF3ID.js similarity index 99% rename from module_src/webroot/assets/AppStore-myjg0Efs.js rename to module_src/webroot/assets/AppStore-BuJDF3ID.js index 72fd53b7..6c3b6fb7 100644 --- a/module_src/webroot/assets/AppStore-myjg0Efs.js +++ b/module_src/webroot/assets/AppStore-BuJDF3ID.js @@ -1,4 +1,4 @@ -import{d as k,h as b,i as F,j as S,k as e,g as s,n as a,l as m,m as i,b as l,p as y,e as f,f as d,q as P,s as n,t as O,v as A,x as H,y as M,z as D}from"./index-DriQcjjf.js";const B="/images/apps/magisk.webp",C="/images/apps/mi_home.png",w="/images/apps/mi_note.png",I="/images/apps/mi_soundrecorder.webp",E="/images/apps/qq_music.jpg",T="/images/apps/starNote.webp",V="/images/apps/mi_music.png",W="/images/apps/samsung_browser.png",N="/images/apps/bodian.webp",Q="/images/apps/honor_music.png",X="/images/apps/pianoperfect.webp",R="/images/apps/flipaclip.png",U="/images/apps/habicat.webp",Z="/images/apps/gamecores.webp",z="/images/apps/youshi.webp",Y="/images/apps/sspai.png",$={class:"setting"},q={class:"mt-5"},L={class:"px-4 sm:px-0"},j={class:"mt-6 border-gray-100"},G={class:"divide-gray-100 mb-5"},J={class:"px-4 flex sm:grid sm:px-0"},K={key:0,class:"px-4 flex sm:grid sm:px-0 mt-5"},_={class:"px-4 flex sm:grid sm:px-0 mt-5"},c={key:1,class:"px-4 flex sm:grid sm:px-0 mt-5"},h={key:2,class:"px-4 flex sm:grid sm:px-0 mt-5"},tt={key:3,class:"px-4 flex sm:grid sm:px-0 mt-5"},st={class:"px-4 flex sm:grid sm:px-0 mt-5"},lt={class:"px-4 flex sm:grid sm:px-0 mt-5"},it={key:4,class:"px-4 flex sm:grid sm:px-0 mt-5"},nt={class:"px-4 flex sm:grid sm:px-0 mt-5"},ot={key:5,class:"px-4 flex sm:grid sm:px-0 mt-5"},pt={class:"px-4 flex sm:grid sm:px-0 mt-5"},rt={key:6,class:"px-4 flex sm:grid sm:px-0 mt-5"},ut={key:7,class:"px-4 flex sm:grid sm:px-0 mt-5"},mt={key:8,class:"px-4 flex sm:grid sm:px-0 mt-5"},et={class:"px-4 flex sm:grid sm:px-0 mt-5"},dt={key:9,class:"px-4 flex sm:grid sm:px-0 mt-5"},yt={class:"px-4 flex sm:grid sm:px-0 mt-5"},gt={class:"px-4 flex sm:grid sm:px-0 mt-5"},at={class:"px-4 flex sm:grid sm:px-0 mt-5"},ft={class:"px-4 flex sm:grid sm:px-0 mt-5"},bt=k({__name:"AppStore",setup(Ct){const u=b(),x=F(()=>({theme:u.isDarkMode?M:D})),{message:xt,modal:v,notification:vt}=S(["message","modal","notification"],{configProviderProps:x}),p=async(g,t,o)=>{v.create({title:`获取${g}`,type:"info",preset:"dialog",content:()=>i("div",null,[i("p",null,[n("确定要下载"),g,n("么?请注意核对部分应用的兼容性。"),o==="system"&&i("span",null,[n("(Tips: 系统应用无法通过小米自带的应用包管理器安装,请通过MT管理器安装!)")]),o==="revision"&&i("span",null,[n("(Tips: 修改版需搭配核心破解并通过MT管理器安装)")]),o==="magisk"&&i("span",null,[n("(Tips: Magisk模块请通过ROOT管理器进行安装)")])]),i("p",null,[n("下载地址:")]),i("p",null,[t])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${t}`)},onNegativeClick:()=>{}})};return(g,t)=>{const o=f("n-button"),r=f("n-alert");return d(),e("div",$,[s("div",q,[s("div",L,[t[21]||(t[21]=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 k,h as b,i as F,j as S,k as e,g as s,n as a,l as m,m as i,b as l,p as y,e as f,f as d,q as P,s as n,t as O,v as A,x as H,y as M,z as D}from"./index-DylCICe-.js";const B="/images/apps/magisk.webp",C="/images/apps/mi_home.png",w="/images/apps/mi_note.png",I="/images/apps/mi_soundrecorder.webp",E="/images/apps/qq_music.jpg",T="/images/apps/starNote.webp",V="/images/apps/mi_music.png",W="/images/apps/samsung_browser.png",N="/images/apps/bodian.webp",Q="/images/apps/honor_music.png",X="/images/apps/pianoperfect.webp",R="/images/apps/flipaclip.png",U="/images/apps/habicat.webp",Z="/images/apps/gamecores.webp",z="/images/apps/youshi.webp",Y="/images/apps/sspai.png",$={class:"setting"},q={class:"mt-5"},L={class:"px-4 sm:px-0"},j={class:"mt-6 border-gray-100"},G={class:"divide-gray-100 mb-5"},J={class:"px-4 flex sm:grid sm:px-0"},K={key:0,class:"px-4 flex sm:grid sm:px-0 mt-5"},_={class:"px-4 flex sm:grid sm:px-0 mt-5"},c={key:1,class:"px-4 flex sm:grid sm:px-0 mt-5"},h={key:2,class:"px-4 flex sm:grid sm:px-0 mt-5"},tt={key:3,class:"px-4 flex sm:grid sm:px-0 mt-5"},st={class:"px-4 flex sm:grid sm:px-0 mt-5"},lt={class:"px-4 flex sm:grid sm:px-0 mt-5"},it={key:4,class:"px-4 flex sm:grid sm:px-0 mt-5"},nt={class:"px-4 flex sm:grid sm:px-0 mt-5"},ot={key:5,class:"px-4 flex sm:grid sm:px-0 mt-5"},pt={class:"px-4 flex sm:grid sm:px-0 mt-5"},rt={key:6,class:"px-4 flex sm:grid sm:px-0 mt-5"},ut={key:7,class:"px-4 flex sm:grid sm:px-0 mt-5"},mt={key:8,class:"px-4 flex sm:grid sm:px-0 mt-5"},et={class:"px-4 flex sm:grid sm:px-0 mt-5"},dt={key:9,class:"px-4 flex sm:grid sm:px-0 mt-5"},yt={class:"px-4 flex sm:grid sm:px-0 mt-5"},gt={class:"px-4 flex sm:grid sm:px-0 mt-5"},at={class:"px-4 flex sm:grid sm:px-0 mt-5"},ft={class:"px-4 flex sm:grid sm:px-0 mt-5"},bt=k({__name:"AppStore",setup(Ct){const u=b(),x=F(()=>({theme:u.isDarkMode?M:D})),{message:xt,modal:v,notification:vt}=S(["message","modal","notification"],{configProviderProps:x}),p=async(g,t,o)=>{v.create({title:`获取${g}`,type:"info",preset:"dialog",content:()=>i("div",null,[i("p",null,[n("确定要下载"),g,n("么?请注意核对部分应用的兼容性。"),o==="system"&&i("span",null,[n("(Tips: 系统应用无法通过小米自带的应用包管理器安装,请通过MT管理器安装!)")]),o==="revision"&&i("span",null,[n("(Tips: 修改版需搭配核心破解并通过MT管理器安装)")]),o==="magisk"&&i("span",null,[n("(Tips: Magisk模块请通过ROOT管理器进行安装)")])]),i("p",null,[n("下载地址:")]),i("p",null,[t])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${t}`)},onNegativeClick:()=>{}})};return(g,t)=>{const o=f("n-button"),r=f("n-alert");return d(),e("div",$,[s("div",q,[s("div",L,[t[21]||(t[21]=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-A_lq1lIC.js b/module_src/webroot/assets/DotBlackListView-DP7Lvogy.js similarity index 99% rename from module_src/webroot/assets/DotBlackListView-A_lq1lIC.js rename to module_src/webroot/assets/DotBlackListView-DP7Lvogy.js index 646f619b..db80d362 100644 --- a/module_src/webroot/assets/DotBlackListView-A_lq1lIC.js +++ b/module_src/webroot/assets/DotBlackListView-DP7Lvogy.js @@ -1,4 +1,4 @@ -import{f as S,k as V,g as f,d as lu,L as nu,r as k,h as ou,M as su,A as ru,i as iu,j as Fu,e as E,N as Eu,O as pu,P as Cu,m as u,b as o,s as e,ai as Du,l as a,R as Bu,y as cu,z as du,S as gu,aj as mu,W as fu,n as G,X as ku,u as Au,p as vu,Y as A,Z as m,$ as yu,a0 as bu,ak as wu,al as xu,am as uu,c as eu,an as Lu,ao as Mu,Q as Tu,a5 as _u,a6 as Ru,a7 as hu,q as $u,a8 as tu,a9 as Iu,aa as Su,ab as y,ap as H,aq as z,ar as Nu,as as J,at as Pu,au as Qu,av as au,aw as I,ax as Uu,ay as Hu,az as zu,C as Vu}from"./index-DriQcjjf.js";function Wu(W,N){return S(),V("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"},[f("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"})])}const Ou=lu({__name:"DotBlackListAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(W,{expose:N,emit:X}){const n=nu();k(null),k(null);const T=W,w=k(!1),_=ou();su(),ru();const Y=iu(()=>({theme:_.isDarkMode?cu:du})),{message:s,modal:P}=Fu(["message","modal"],{configProviderProps:Y});let l,C;const R=k({openDrawer:L=>new Promise((F,x)=>{if(T.type==="update"&&!L){x(new Error("更新模式下必须传入初始化参数")),s.error("初始化参数不能为空");return}l=F,C=x,v.value="",w.value=!0}),closeDrawer:()=>{w.value=!1,C("Drawer closed without submission")}}),v=k(""),h=k(""),Q=async()=>{if(!v.value){P.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?应用包名不能为空(敲")])});return}if(n.allPackageName.has(v.value)){P.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:v.value,loadingCallback:F,closeCallback:L};P.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=k(!1);return N({openDrawer:R.value.openDrawer}),(L,F)=>{const x=E("n-input-group-label"),O=E("n-input"),K=E("n-input-group"),j=E("n-alert"),Z=E("n-button"),q=E("n-drawer-content"),$=E("n-drawer");return S(),V(Bu,null,[Eu(L.$slots,"default",pu(Cu({openDrawer:R.value.openDrawer}))),u($,{show:w.value,"onUpdate:show":F[3]||(F[3]=b=>w.value=b),width:a(_).windowWidth>=640?"450px":"100%",placement:"right"},{default:o(()=>[u(q,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:T.title,closable:""},{footer:o(()=>[u(Z,{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(K,null,{default:o(()=>[u(x,{size:"large"},{default:o(()=>F[4]||(F[4]=[e("应用包名")])),_:1}),u(O,{size:"large",status:h.value,value:v.value,"onUpdate:value":F[0]||(F[0]=b=>v.value=b),"allow-input":b=>Du(b),readonly:T.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),u(j,{"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"},Zu={class:"mb-3 px-4 sm:px-0"},qu={key:0,class:"mb-3 flex flex-wrap"},Ju={class:"flex flex-wrap"},Xu={class:"flex flex-wrap"},Gu=lu({__name:"DotBlackListView",setup(W){const N=k(null),X=b(),n=ou(),T=su(),w=gu(),_=iu(()=>({theme:n.isDarkMode?cu:du})),{message:Y,modal:s,notification:P}=Fu(["message","modal","notification"],{configProviderProps:_}),l=nu(),C=k(!1),R=k(!1);mu();const v=k(null);ku(),ru(),Au();const h=k("");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 y(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(d=>d.name),[t,i]=await y(H({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 d=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(d=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),R.value=!1)},O=async()=>{const[r,t]=await y(new Promise((i,d)=>{s.create({title:"想重启设备吗?",type:"info",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("是否立即重启设备,以使规则生效?")])]),positiveText:"确认重启",negativeText:"取消",onPositiveClick:()=>{i("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(t){const[i]=await y(Nu());if(i){s.create({title:"操作失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},K=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}h.value="";const[,r]=await y(new Promise((t,i)=>{s.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>J(tu,{type:"textarea",value:h.value,"onUpdate:value":d=>{h.value=d},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){t("positiveClick")}})}));if(r){C.value=!0;const t=h.value,i=Pu(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 d=Qu(i),D=au.inflate(d,{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 y(H({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"}`},[I(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(d){console.log(d,"error"),s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),C.value=!1}}},j=async(r,t,i,d)=>{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"}`},[I(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 y(H({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=zu(U),[M]=await y(navigator.clipboard.writeText(`我分享了一个[窗口控制器]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +import{f as S,k as V,g as f,d as lu,L as nu,r as k,h as ou,M as su,A as ru,i as iu,j as Fu,e as E,N as Eu,O as pu,P as Cu,m as u,b as o,s as e,ai as Du,l as a,R as Bu,y as cu,z as du,S as gu,aj as mu,W as fu,n as G,X as ku,u as Au,p as vu,Y as A,Z as m,$ as yu,a0 as bu,ak as wu,al as xu,am as uu,c as eu,an as Lu,ao as Mu,Q as Tu,a5 as _u,a6 as Ru,a7 as hu,q as $u,a8 as tu,a9 as Iu,aa as Su,ab as y,ap as H,aq as z,ar as Nu,as as J,at as Pu,au as Qu,av as au,aw as I,ax as Uu,ay as Hu,az as zu,C as Vu}from"./index-DylCICe-.js";function Wu(W,N){return S(),V("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"},[f("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"})])}const Ou=lu({__name:"DotBlackListAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(W,{expose:N,emit:X}){const n=nu();k(null),k(null);const T=W,w=k(!1),_=ou();su(),ru();const Y=iu(()=>({theme:_.isDarkMode?cu:du})),{message:s,modal:P}=Fu(["message","modal"],{configProviderProps:Y});let l,C;const R=k({openDrawer:L=>new Promise((F,x)=>{if(T.type==="update"&&!L){x(new Error("更新模式下必须传入初始化参数")),s.error("初始化参数不能为空");return}l=F,C=x,v.value="",w.value=!0}),closeDrawer:()=>{w.value=!1,C("Drawer closed without submission")}}),v=k(""),h=k(""),Q=async()=>{if(!v.value){P.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>u("p",null,[e("噫?应用包名不能为空(敲")])});return}if(n.allPackageName.has(v.value)){P.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:v.value,loadingCallback:F,closeCallback:L};P.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=k(!1);return N({openDrawer:R.value.openDrawer}),(L,F)=>{const x=E("n-input-group-label"),O=E("n-input"),K=E("n-input-group"),j=E("n-alert"),Z=E("n-button"),q=E("n-drawer-content"),$=E("n-drawer");return S(),V(Bu,null,[Eu(L.$slots,"default",pu(Cu({openDrawer:R.value.openDrawer}))),u($,{show:w.value,"onUpdate:show":F[3]||(F[3]=b=>w.value=b),width:a(_).windowWidth>=640?"450px":"100%",placement:"right"},{default:o(()=>[u(q,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:T.title,closable:""},{footer:o(()=>[u(Z,{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(K,null,{default:o(()=>[u(x,{size:"large"},{default:o(()=>F[4]||(F[4]=[e("应用包名")])),_:1}),u(O,{size:"large",status:h.value,value:v.value,"onUpdate:value":F[0]||(F[0]=b=>v.value=b),"allow-input":b=>Du(b),readonly:T.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),u(j,{"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"},Zu={class:"mb-3 px-4 sm:px-0"},qu={key:0,class:"mb-3 flex flex-wrap"},Ju={class:"flex flex-wrap"},Xu={class:"flex flex-wrap"},Gu=lu({__name:"DotBlackListView",setup(W){const N=k(null),X=b(),n=ou(),T=su(),w=gu(),_=iu(()=>({theme:n.isDarkMode?cu:du})),{message:Y,modal:s,notification:P}=Fu(["message","modal","notification"],{configProviderProps:_}),l=nu(),C=k(!1),R=k(!1);mu();const v=k(null);ku(),ru(),Au();const h=k("");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 y(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(d=>d.name),[t,i]=await y(H({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 d=>{await p(),s.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>u("p",null,[e("已经成功为你重启系统界面的作用域,请查看是否生效,如不生效请手动重启平板再查看效果~")])})}).catch(d=>{s.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}}),R.value=!1)},O=async()=>{const[r,t]=await y(new Promise((i,d)=>{s.create({title:"想重启设备吗?",type:"info",preset:"dialog",content:()=>u("div",null,[u("p",null,[e("是否立即重启设备,以使规则生效?")])]),positiveText:"确认重启",negativeText:"取消",onPositiveClick:()=>{i("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(t){const[i]=await y(Nu());if(i){s.create({title:"操作失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},K=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}h.value="";const[,r]=await y(new Promise((t,i)=>{s.create({title:"请粘贴分享口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>J(tu,{type:"textarea",value:h.value,"onUpdate:value":d=>{h.value=d},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){t("positiveClick")}})}));if(r){C.value=!0;const t=h.value,i=Pu(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 d=Qu(i),D=au.inflate(d,{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 y(H({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"}`},[I(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(d){console.log(d,"error"),s.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>u("p",null,[e("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),C.value=!1}}},j=async(r,t,i,d)=>{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"}`},[I(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 y(H({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=zu(U),[M]=await y(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"}`},[I(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"}`},[I(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:"确定"})}},Z=(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"}`},[I(r.name,r.applicationName)])," ",e("配置了窗口控制器的隐藏,且不可被移除,仅有自定义规则可以被移除哦~")])})},q=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(v.value){const[r,t]=await y(v.value.openDrawer());if(r)console.log("操作取消:",r);else{l.customDotBlackList.push(t.name);const i=l.mergeDotBlackList.map(c=>c.name),[d,D]=await y(H({dotBlackList:i,sourceDotBlackList:l.sourceDotBlackList,customDotBlackList:l.customDotBlackList}));d?(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"}`},[I(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())}}},$=fu({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:r=>{$.page=r},onUpdatePageSize:r=>{$.pageSize=r,$.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(E("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[e("已生效")]}):u(E("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[e("未生效")]})}},{title:"规则来源",width:150,key:"ruleMode",render(r,t){const i={icon:r.ruleMode==="custom"?Uu:Hu};if(r.ruleMode==="custom"){const d=[{label:"分享自定义规则",key:"shareCustomRule",icon:Q(uu)},{label:"清除自定义规则",key:"cleanCustomRule",icon:Q(Vu)}];return u(E("n-dropdown"),{onSelect:(D,c)=>j(D,c,r),size:"large",trigger:"click",options:d},{default:()=>[u(E("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[e("自定义规则")],...i})]})}return u(E("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>Z(r)},{default:()=>[e("系统规则")],...i})}}]}return(r,t)=>{const i=E("n-alert"),d=E("n-input-group"),D=E("n-card"),c=E("n-data-table");return S(),V("main",Ku,[f("div",ju,[f("div",Zu,[t[10]||(t[10]=f("h3",{class:G("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 diff --git a/module_src/webroot/assets/EmbeddedWebView-6WNxtfd7.js b/module_src/webroot/assets/EmbeddedWebView-CWXM9W6r.js similarity index 93% rename from module_src/webroot/assets/EmbeddedWebView-6WNxtfd7.js rename to module_src/webroot/assets/EmbeddedWebView-CWXM9W6r.js index e39341bb..e5a4c036 100644 --- a/module_src/webroot/assets/EmbeddedWebView-6WNxtfd7.js +++ b/module_src/webroot/assets/EmbeddedWebView-CWXM9W6r.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-DriQcjjf.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-DylCICe-.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-CCGqR_Io.js b/module_src/webroot/assets/GameBooster-BrGqqyKs.js similarity index 99% rename from module_src/webroot/assets/GameBooster-CCGqR_Io.js rename to module_src/webroot/assets/GameBooster-BrGqqyKs.js index 92b2267b..0f0b8363 100644 --- a/module_src/webroot/assets/GameBooster-CCGqR_Io.js +++ b/module_src/webroot/assets/GameBooster-BrGqqyKs.js @@ -1,4 +1,4 @@ -import{F as J,G as ce,H as ge,I as me,J as Fe,f as M,k as H,g as F,K as Ee,d as X,L as ve,r as C,h as ee,M as fe,A as ye,i as te,j as ue,e as c,N as Ce,O as Ae,P as Be,m as t,b as a,s as l,l as u,Q,c as Y,p as P,R as oe,y as ae,z as ne,S as _e,T as be,U as De,V as ke,W as Te,n as Z,X as we,Y as _,Z as k,$ as Re,a0 as Oe,a1 as Ge,a2 as xe,a3 as q,a4 as Ie,a5 as Me,a6 as Se,a7 as Ne,q as Ve,a8 as ze,a9 as Le,aa as Ue,ab as W,ac as $e,ad as he,ae as We,af as Ye}from"./index-DriQcjjf.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],B.value=e.gameRatio):(y.value=G.custom,B.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]),B=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"?B.value="":B.value=o.value},I=(e,o)=>{D.value=o},h=async()=>{if(!B.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:B.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"),A=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",Ae(Be({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(A,{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:B.value,"onUpdate:value":o[3]||(o[3]=m=>B.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(A,{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();_e();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})})},B=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:()=>B(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{F as J,G as ce,H as ge,I as me,J as Fe,f as M,k as H,g as F,K as Ee,d as X,L as ve,r as C,h as ee,M as fe,A as ye,i as te,j as ue,e as c,N as Ce,O as Ae,P as Be,m as t,b as a,s as l,l as u,Q,c as Y,p as P,R as oe,y as ae,z as ne,S as _e,T as be,U as De,V as ke,W as Te,n as Z,X as we,Y as _,Z as k,$ as Re,a0 as Oe,a1 as Ge,a2 as xe,a3 as q,a4 as Ie,a5 as Me,a6 as Se,a7 as Ne,q as Ve,a8 as ze,a9 as Le,aa as Ue,ab as W,ac as $e,ad as he,ae as We,af as Ye}from"./index-DylCICe-.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],B.value=e.gameRatio):(y.value=G.custom,B.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]),B=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"?B.value="":B.value=o.value},I=(e,o)=>{D.value=o},h=async()=>{if(!B.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:B.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"),A=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",Ae(Be({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(A,{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:B.value,"onUpdate:value":o[3]||(o[3]=m=>B.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(A,{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();_e();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})})},B=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:()=>B(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-B12askhf.js b/module_src/webroot/assets/GameTurboConfig-CQo6LjY6.js similarity index 96% rename from module_src/webroot/assets/GameTurboConfig-B12askhf.js rename to module_src/webroot/assets/GameTurboConfig-CQo6LjY6.js index d8468eaf..51ede885 100644 --- a/module_src/webroot/assets/GameTurboConfig-B12askhf.js +++ b/module_src/webroot/assets/GameTurboConfig-CQo6LjY6.js @@ -1 +1 @@ -import{ag as _,ah as f,d as x,A as b,h,i as v,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,y as M,z as P}from"./index-DriQcjjf.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"},B=x({__name:"GameTurboConfig",setup(n){b();const o=h(),i=v(()=>({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{B as default}; +import{ag as _,ah as f,d as x,A as b,h,i as v,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,y as M,z as P}from"./index-DylCICe-.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"},B=x({__name:"GameTurboConfig",setup(n){b();const o=h(),i=v(()=>({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{B as default}; diff --git a/module_src/webroot/assets/HappyNewYearEgg-Cailm8tl.js b/module_src/webroot/assets/HappyNewYearEgg-BVtnqtKV.js similarity index 97% rename from module_src/webroot/assets/HappyNewYearEgg-Cailm8tl.js rename to module_src/webroot/assets/HappyNewYearEgg-BVtnqtKV.js index 0dec7ded..0055589f 100644 --- a/module_src/webroot/assets/HappyNewYearEgg-Cailm8tl.js +++ b/module_src/webroot/assets/HappyNewYearEgg-BVtnqtKV.js @@ -1 +1 @@ -import{d as p,h as e,i as n,j as o,k as l,aI as c,f as d,y as m,z as r}from"./index-DriQcjjf.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('

年从节换,新岁已至,转眼已经迎来了「2025」年。

「2024年3月31日」,我正式接手「完美横屏应用计划」

至今,新版「完美横屏应用计划」共陪伴了大家「246」天。

诞生了「2907」个提交和「683」个版本。

你们对「完美横屏应用计划」的认可,也是我维护下去的动力!

不管何时何地,「遇见你们都是我最美好的事」,感谢大家的一路相伴。

「新年胜旧年」,多喜乐,长安宁。

年年皆胜意,岁岁皆欢愉,祝大家「新年快乐」

十分感谢所有给「完美横屏应用计划」打赏给予认可的酷友。

最后感谢「柚稚的孩纸」「Kirara」「御坂初琴」给我提供了不少的帮助!

「2025年1月1日」 By 做梦书 致辞

',2)])))}});export{E as default}; +import{d as p,h as e,i as n,j as o,k as l,aI as c,f as d,y as m,z as r}from"./index-DylCICe-.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('

年从节换,新岁已至,转眼已经迎来了「2025」年。

「2024年3月31日」,我正式接手「完美横屏应用计划」

至今,新版「完美横屏应用计划」共陪伴了大家「246」天。

诞生了「2907」个提交和「683」个版本。

你们对「完美横屏应用计划」的认可,也是我维护下去的动力!

不管何时何地,「遇见你们都是我最美好的事」,感谢大家的一路相伴。

「新年胜旧年」,多喜乐,长安宁。

年年皆胜意,岁岁皆欢愉,祝大家「新年快乐」

十分感谢所有给「完美横屏应用计划」打赏给予认可的酷友。

最后感谢「柚稚的孩纸」「Kirara」「御坂初琴」给我提供了不少的帮助!

「2025年1月1日」 By 做梦书 致辞

',2)])))}});export{E as default}; diff --git a/module_src/webroot/assets/LogView-Dcvhg-9q.js b/module_src/webroot/assets/LogView-DRiHaWZO.js similarity index 99% rename from module_src/webroot/assets/LogView-Dcvhg-9q.js rename to module_src/webroot/assets/LogView-DRiHaWZO.js index dbd1f52a..0d34b3e0 100644 --- a/module_src/webroot/assets/LogView-Dcvhg-9q.js +++ b/module_src/webroot/assets/LogView-DRiHaWZO.js @@ -1,2 +1,2 @@ -import{f as se,k as ie,g as A,d as ct,A as at,h as lt,i as ut,j as ft,r as gt,o as ht,B as dt,n as fe,l as m,m as N,b as C,e as ee,s as $,C as pt,y as bt,z as Et,D as _t,E as wt}from"./index-DriQcjjf.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,"'")}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="",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+=``}}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,A as at,h as lt,i as ut,j as ft,r as gt,o as ht,B as dt,n as fe,l as m,m as N,b as C,e as ee,s as $,C as pt,y as bt,z as Et,D as _t,E as wt}from"./index-DylCICe-.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,"'")}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="",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+=``}}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||"")+'"');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/MagicControlView-C9yle6ik.js b/module_src/webroot/assets/MagicControlView-YT1mq4bs.js similarity index 96% rename from module_src/webroot/assets/MagicControlView-C9yle6ik.js rename to module_src/webroot/assets/MagicControlView-YT1mq4bs.js index 327b24d8..7dda5994 100644 --- a/module_src/webroot/assets/MagicControlView-C9yle6ik.js +++ b/module_src/webroot/assets/MagicControlView-YT1mq4bs.js @@ -1,4 +1,4 @@ -import{d as p,h as f,aA as g,aB as u,aC as y,aD as _,U as b,aE as k,i as o,j as x,V as h,aF as S,aG as v,r as s,k as M,g as t,n,l as w,m as r,b as P,e as i,f as D,s as O,y as B,z as C,aH as A}from"./index-DriQcjjf.js";const V={class:"setting"},z={class:"mt-3"},N={class:"px-3 sm:px-0"},T={class:"mt-3"},F=p({__name:"MagicControlView",setup(E){const a=f();g(),u(),y(),_(),b(),k();const l=o(()=>({theme:a.isDarkMode?B:C}));x(["message","modal"],{configProviderProps:l}),h(),S(),v();const c=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(()=>A(c.value,"key")),s(""),s(!1),(H,e)=>{const d=i("n-watermark"),m=i("n-alert");return D(),M("div",V,[t("div",z,[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 as p,h as f,aA as g,aB as u,aC as y,aD as _,U as b,aE as k,i as o,j as x,V as h,aF as S,aG as v,r as s,k as M,g as t,n,l as w,m as r,b as P,e as i,f as D,s as O,y as B,z as C,aH as A}from"./index-DylCICe-.js";const V={class:"setting"},z={class:"mt-3"},N={class:"px-3 sm:px-0"},T={class:"mt-3"},F=p({__name:"MagicControlView",setup(E){const a=f();g(),u(),y(),_(),b(),k();const l=o(()=>({theme:a.isDarkMode?B:C}));x(["message","modal"],{configProviderProps:l}),h(),S(),v();const c=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(()=>A(c.value,"key")),s(""),s(!1),(H,e)=>{const d=i("n-watermark"),m=i("n-alert");return D(),M("div",V,[t("div",z,[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-DriQcjjf.js b/module_src/webroot/assets/index-DylCICe-.js similarity index 93% rename from module_src/webroot/assets/index-DriQcjjf.js rename to module_src/webroot/assets/index-DylCICe-.js index 05a99551..e313218d 100644 --- a/module_src/webroot/assets/index-DriQcjjf.js +++ b/module_src/webroot/assets/index-DylCICe-.js @@ -1,9 +1,9 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EmbeddedWebView-6WNxtfd7.js","assets/EmbeddedWebView-CvGGpVR8.css","assets/LogView-Dcvhg-9q.js","assets/LogView-CDMl6FPM.css","assets/GameTurboConfig-B12askhf.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EmbeddedWebView-CWXM9W6r.js","assets/EmbeddedWebView-CvGGpVR8.css","assets/LogView-DRiHaWZO.js","assets/LogView-CDMl6FPM.css","assets/GameTurboConfig-CQo6LjY6.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)}})();window._iconfont_svg_string_4809482='',(e=>{var t=(o=(o=document.getElementsByTagName("script"))[o.length-1]).getAttribute("data-injectcss"),o=o.getAttribute("data-disable-injectsvg");if(!o){var n,r,i,a,l,s=function(c,h){h.parentNode.insertBefore(c,h)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}n=function(){var c,h=document.createElement("div");h.innerHTML=e._iconfont_svg_string_4809482,(h=h.getElementsByTagName("svg")[0])&&(h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.width=0,h.style.height=0,h.style.overflow="hidden",h=h,(c=document.body).firstChild?s(h,c.firstChild):c.appendChild(h))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(r=function(){document.removeEventListener("DOMContentLoaded",r,!1),n()},document.addEventListener("DOMContentLoaded",r,!1)):document.attachEvent&&(i=n,a=e.document,l=!1,d(),a.onreadystatechange=function(){a.readyState=="complete"&&(a.onreadystatechange=null,u())})}function u(){l||(l=!0,i())}function d(){try{a.documentElement.doScroll("left")}catch{return void setTimeout(d,50)}u()}})(window);/** * @vue/shared v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function W1(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Ut={},Fa=[],Un=()=>{},Ob=()=>!1,vd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),j1=e=>e.startsWith("onUpdate:"),po=Object.assign,U1=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Lb=Object.prototype.hasOwnProperty,Ht=(e,t)=>Lb.call(e,t),pt=Array.isArray,Ea=e=>bd(e)==="[object Map]",q5=e=>bd(e)==="[object Set]",gt=e=>typeof e=="function",no=e=>typeof e=="string",oi=e=>typeof e=="symbol",Yt=e=>e!==null&&typeof e=="object",Z5=e=>(Yt(e)||gt(e))&>(e.then)&>(e.catch),X5=Object.prototype.toString,bd=e=>X5.call(e),Hb=e=>bd(e).slice(8,-1),Y5=e=>bd(e)==="[object Object]",K1=e=>no(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Al=W1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xd=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Nb=/-(\w)/g,vn=xd(e=>e.replace(Nb,(t,o)=>o?o.toUpperCase():"")),Vb=/\B([A-Z])/g,Ki=xd(e=>e.replace(Vb,"-$1").toLowerCase()),yd=xd(e=>e.charAt(0).toUpperCase()+e.slice(1)),wc=xd(e=>e?`on${yd(e)}`:""),Jr=(e,t)=>!Object.is(e,t),Sc=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},Wb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},jb=e=>{const t=no(e)?Number(e):NaN;return isNaN(t)?e:t};let P3;const J5=()=>P3||(P3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Cd(e){if(pt(e)){const t={};for(let o=0;o{if(o){const n=o.split(Kb);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function xe(e){let t="";if(no(e))t=e;else if(pt(e))for(let o=0;o!!(e&&e.__v_isRef===!0),et=e=>no(e)?e:e==null?"":pt(e)||Yt(e)&&(e.toString===X5||!gt(e.toString))?oh(e)?et(e.value):JSON.stringify(e,nh,2):String(e),nh=(e,t)=>oh(t)?nh(e,t.value):Ea(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,r],i)=>(o[Fc(n,i)+" =>"]=r,o),{})}:q5(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>Fc(o))}:oi(t)?Fc(t):Yt(t)&&!pt(t)&&!Y5(t)?String(t):t,Fc=(e,t="")=>{var o;return oi(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function W1(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Ut={},Fa=[],Un=()=>{},Ob=()=>!1,vd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),j1=e=>e.startsWith("onUpdate:"),po=Object.assign,U1=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Lb=Object.prototype.hasOwnProperty,Ht=(e,t)=>Lb.call(e,t),pt=Array.isArray,Ea=e=>bd(e)==="[object Map]",q5=e=>bd(e)==="[object Set]",gt=e=>typeof e=="function",no=e=>typeof e=="string",oi=e=>typeof e=="symbol",Yt=e=>e!==null&&typeof e=="object",Z5=e=>(Yt(e)||gt(e))&>(e.then)&>(e.catch),X5=Object.prototype.toString,bd=e=>X5.call(e),Hb=e=>bd(e).slice(8,-1),Y5=e=>bd(e)==="[object Object]",K1=e=>no(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Al=W1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xd=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Nb=/-(\w)/g,vn=xd(e=>e.replace(Nb,(t,o)=>o?o.toUpperCase():"")),Vb=/\B([A-Z])/g,Ki=xd(e=>e.replace(Vb,"-$1").toLowerCase()),yd=xd(e=>e.charAt(0).toUpperCase()+e.slice(1)),wc=xd(e=>e?`on${yd(e)}`:""),Jr=(e,t)=>!Object.is(e,t),Sc=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},Wb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},jb=e=>{const t=no(e)?Number(e):NaN;return isNaN(t)?e:t};let P3;const J5=()=>P3||(P3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Cd(e){if(pt(e)){const t={};for(let o=0;o{if(o){const n=o.split(Kb);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function xe(e){let t="";if(no(e))t=e;else if(pt(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Ye=e=>no(e)?e:e==null?"":pt(e)||Yt(e)&&(e.toString===X5||!gt(e.toString))?oh(e)?Ye(e.value):JSON.stringify(e,nh,2):String(e),nh=(e,t)=>oh(t)?nh(e,t.value):Ea(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,r],i)=>(o[Fc(n,i)+" =>"]=r,o),{})}:q5(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>Fc(o))}:oi(t)?Fc(t):Yt(t)&&!pt(t)&&!Y5(t)?String(t):t,Fc=(e,t="")=>{var o;return oi(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 @@ -11,7 +11,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EmbeddedWebView * @vue/runtime-core v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Ss(e,t,o,n){try{return n?e(...n):e()}catch(r){Ed(r,t,o)}}function An(e,t,o,n){if(gt(e)){const r=Ss(e,t,o,n);return r&&Z5(r)&&r.catch(i=>{Ed(i,t,o)}),r}if(pt(e)){const r=[];for(let i=0;i>>1,r=To[n],i=Jl(r);i=Jl(o)?To.push(e):To.splice(Rx(t),0,e),e.flags|=1,_h()}}function _h(){Ku||(Ku=kh.then(Rh))}function zx(e){pt(e)?ka.push(...e):Or&&e.id===-1?Or.splice(xa+1,0,e):e.flags&1||(ka.push(e),e.flags|=1),_h()}function L3(e,t,o=Nn+1){for(;oJl(o)-Jl(n));if(ka.length=0,Or){Or.push(...t);return}for(Or=t,xa=0;xae.id==null?e.flags&2?-1:1/0:e.id;function Rh(e){try{for(Nn=0;Nn{n._d&&Y3(-1);const i=Gu(t);let a;try{a=e(...r)}finally{Gu(i),n._d&&Y3(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function zo(e,t){if(xo===null)return e;const o=Ad(xo),n=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,$l=e=>e&&(e.disabled||e.disabled===""),Ax=e=>e&&(e.defer||e.defer===""),H3=e=>typeof SVGElement<"u"&&e instanceof SVGElement,N3=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,I0=(e,t)=>{const o=e&&e.to;return no(o)?t?t(o):null:o},Px={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=$l(t.props);let{shapeFlag:C,children:k,dynamicChildren:w}=t;if(e==null){const _=t.el=g(""),M=t.anchor=g("");f(_,o,n),f(M,o,n);const E=(z,$)=>{C&16&&(r&&r.isCE&&(r.ce._teleportTarget=z),d(k,z,$,r,i,a,l,s))},P=()=>{const z=t.target=I0(t.props,p),$=Bh(z,t,g,f);z&&(a!=="svg"&&H3(z)?a="svg":a!=="mathml"&&N3(z)&&(a="mathml"),b||(E(z,$),Au(t)))};b&&(E(o,M),Au(t)),Ax(t.props)?jo(P,i):P()}else{t.el=e.el,t.targetStart=e.targetStart;const _=t.anchor=e.anchor,M=t.target=e.target,E=t.targetAnchor=e.targetAnchor,P=$l(e.props),z=P?o:M,$=P?_:E;if(a==="svg"||H3(M)?a="svg":(a==="mathml"||N3(M))&&(a="mathml"),w?(h(e.dynamicChildren,w,z,r,i,a,l),l6(e,t,!0)):s||c(e,t,z,$,r,i,a,l,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ou(t,o,_,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=t.target=I0(t.props,p);G&&ou(t,G,null,u,0)}else P&&ou(t,M,E,u,1);Au(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||!$l(h);for(let p=0;p{e.isMounted=!0}),Jt(()=>{e.isUnmounting=!0}),e}const cn=[Function,Array],Dh={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},Th=e=>{const t=e.subTree;return t.component?Th(t.component):t},$x={name:"BaseTransition",props:Dh,setup(e,{slots:t}){const o=xr(),n=$h();return()=>{const r=t.default&&n6(t.default(),!0);if(!r||!r.length)return;const i=Ih(r),a=At(e),{mode:l}=a;if(n.isLeaving)return Mc(i);const s=V3(i);if(!s)return Mc(i);let u=es(s,a,n,o,h=>u=h);s.type!==bo&&Li(s,u);const d=o.subTree,c=d&&V3(d);if(c&&c.type!==bo&&!yi(s,c)&&Th(o).type!==bo){const h=es(c,a,n,o);if(Li(c,h),l==="out-in"&&s.type!==bo)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete h.afterLeave},Mc(i);l==="in-out"&&s.type!==bo&&(h.delayLeave=(f,p,g)=>{const v=Oh(n,c);v[String(c.key)]=c,f[Lr]=()=>{p(),f[Lr]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return i}}};function Ih(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==bo){t=o;break}}return t}const Dx=$x;function Oh(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 es(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:C,onAppearCancelled:k}=t,w=String(e.key),_=Oh(o,e),M=(z,$)=>{z&&An(z,n,9,$)},E=(z,$)=>{const G=$[1];M(z,$),pt(z)?z.every(H=>H.length<=1)&&G():z.length<=1&&G()},P={mode:a,persisted:l,beforeEnter(z){let $=s;if(!o.isMounted)if(i)$=v||s;else return;z[Lr]&&z[Lr](!0);const G=_[w];G&&yi(e,G)&&G.el[Lr]&&G.el[Lr](),M($,[z])},enter(z){let $=u,G=d,H=c;if(!o.isMounted)if(i)$=b||u,G=C||d,H=k||c;else return;let q=!1;const W=z[nu]=L=>{q||(q=!0,L?M(H,[z]):M(G,[z]),P.delayedLeave&&P.delayedLeave(),z[nu]=void 0)};$?E($,[z,W]):W()},leave(z,$){const G=String(e.key);if(z[nu]&&z[nu](!0),o.isUnmounting)return $();M(h,[z]);let H=!1;const q=z[Lr]=W=>{H||(H=!0,$(),W?M(g,[z]):M(p,[z]),z[Lr]=void 0,_[G]===e&&delete _[G])};_[G]=e,f?E(f,[z,q]):q()},clone(z){const $=es(z,t,o,n,r);return r&&r($),$}};return P}function Mc(e){if(kd(e))return e=qo(e),e.children=null,e}function V3(e){if(!kd(e))return Ph(e.type)&&e.children?Ih(e.children):e;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&>(o.default))return o.default()}}function Li(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Li(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 n6(e,t=!1,o){let n=[],r=0;for(let i=0;i1)for(let i=0;iO0(p,t&&(pt(t)?t[g]:t),o,n,r));return}if(_a(n)&&!r)return;const i=n.shapeFlag&4?Ad(n.component):n.el,a=r?null:i,{i:l,r:s}=e,u=t&&t.r,d=l.refs===Ut?l.refs={}:l.refs,c=l.setupState,h=At(c),f=c===Ut?()=>!1:p=>Ht(h,p);if(u!=null&&u!==s&&(no(u)?(d[u]=null,f(u)&&(c[u]=null)):lo(u)&&(u.value=null)),gt(s))Ss(s,l,12,[a,d]);else{const p=no(s),g=lo(s);if(p||g){const v=()=>{if(e.f){const b=p?f(s)?c[s]:d[s]:s.value;r?pt(b)&&U1(b,i):pt(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,jo(v,o)):v()}}}const _a=e=>!!e.type.__asyncLoader,kd=e=>e.type.__isKeepAlive;function r6(e,t){Hh(e,"a",t)}function _d(e,t){Hh(e,"da",t)}function Hh(e,t,o=wo){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Md(t,n,o),o){let r=o.parent;for(;r&&r.parent;)kd(r.parent.vnode)&&Ix(n,t,o,r),r=r.parent}}function Ix(e,t,o,n){const r=Md(t,e,n,!0);Go(()=>{U1(n[t],r)},o)}function Md(e,t,o=wo,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{ni();const l=_s(o),s=An(t,o,e,a);return l(),ri(),s});return n?r.unshift(i):r.push(i),i}}const br=e=>(t,o=wo)=>{(!zd||e==="sp")&&Md(e,(...n)=>t(...n),o)},ii=br("bm"),ut=br("m"),Nh=br("bu"),Vh=br("u"),Jt=br("bum"),Go=br("um"),Ox=br("sp"),Lx=br("rtg"),Hx=br("rtc");function Nx(e,t=wo){Md("ec",e,t)}const Wh="components";function rt(e,t){return Uh(Wh,e,!0,t)||e}const jh=Symbol.for("v-ndc");function ru(e){return no(e)?Uh(Wh,e,!1)||e:e||jh}function Uh(e,t,o=!0,n=!1){const r=xo||wo;if(r){const i=r.type;{const l=ky(i,!1);if(l&&(l===t||l===vn(t)||l===yd(vn(t))))return i}const a=W3(r[e]||i[e],t)||W3(r.appContext[e],t);return!a&&n?i:a}}function W3(e,t){return e&&(e[t]||e[vn(t)]||e[yd(vn(t))])}function wi(e,t,o,n){let r;const i=o,a=pt(e);if(a||no(e)){const l=a&&Gr(e);let s=!1;l&&(s=!gn(e),e=wd(e)),r=new Array(e.length);for(let u=0,d=e.length;ut(l,s,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let s=0,u=l.length;sPa(t)?!(t.type===bo||t.type===ft&&!Kh(t.children)):!0)?e:null}const L0=e=>e?dp(e)?Ad(e):L0(e.parent):null,Dl=po(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=>L0(e.parent),$root:e=>L0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>i6(e),$forceUpdate:e=>e.f||(e.f=()=>{o6(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>uy.bind(e)}),Rc=(e,t)=>e!==Ut&&!e.__isScriptSetup&&Ht(e,t),Vx={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(Rc(n,t))return a[t]=1,n[t];if(r!==Ut&&Ht(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&Ht(u,t))return a[t]=3,i[t];if(o!==Ut&&Ht(o,t))return a[t]=4,o[t];H0&&(a[t]=0)}}const d=Dl[t];let c,h;if(d)return t==="$attrs"&&Ro(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==Ut&&Ht(o,t))return a[t]=4,o[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Rc(r,t)?(r[t]=o,!0):n!==Ut&&Ht(n,t)?(n[t]=o,!0):Ht(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!==Ut&&Ht(e,a)||Rc(t,a)||(l=i[0])&&Ht(l,a)||Ht(n,a)||Ht(Dl,a)||Ht(r.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Ht(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function j3(e){return pt(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let H0=!0;function Wx(e){const t=i6(e),o=e.proxy,n=e.ctx;H0=!1,t.beforeCreate&&U3(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:C,destroyed:k,unmounted:w,render:_,renderTracked:M,renderTriggered:E,errorCaptured:P,serverPrefetch:z,expose:$,inheritAttrs:G,components:H,directives:q,filters:W}=t;if(u&&jx(u,n,null),a)for(const R in a){const O=a[R];gt(O)&&(n[R]=O.bind(o))}if(r){const R=r.call(o,o);Yt(R)&&(e.data=Nt(R))}if(H0=!0,i)for(const R in i){const O=i[R],oe=gt(O)?O.bind(o,o):gt(O.get)?O.get.bind(o,o):Un,y=!gt(O)&>(O.set)?O.set.bind(o):Un,j=D({get:oe,set:y});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>j.value,set:X=>j.value=X})}if(l)for(const R in l)Gh(l[R],n,o,R);if(s){const R=gt(s)?s.call(o):s;Reflect.ownKeys(R).forEach(O=>{tt(O,R[O])})}d&&U3(d,e,"c");function I(R,O){pt(O)?O.forEach(oe=>R(oe.bind(o))):O&&R(O.bind(o))}if(I(ii,c),I(ut,h),I(Nh,f),I(Vh,p),I(r6,g),I(_d,v),I(Nx,P),I(Hx,M),I(Lx,E),I(Jt,C),I(Go,w),I(Ox,z),pt($))if($.length){const R=e.exposed||(e.exposed={});$.forEach(O=>{Object.defineProperty(R,O,{get:()=>o[O],set:oe=>o[O]=oe})})}else e.exposed||(e.exposed={});_&&e.render===Un&&(e.render=_),G!=null&&(e.inheritAttrs=G),H&&(e.components=H),q&&(e.directives=q),z&&Lh(e)}function jx(e,t,o=Un){pt(e)&&(e=N0(e));for(const n in e){const r=e[n];let i;Yt(r)?"default"in r?i=He(r.from||n,r.default,!0):i=He(r.from||n):i=He(r),lo(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function U3(e,t,o){An(pt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function Gh(e,t,o,n){let r=n.includes(".")?ip(o,n):()=>o[n];if(no(e)){const i=t[e];gt(i)&<(r,i)}else if(gt(e))lt(r,e.bind(o));else if(Yt(e))if(pt(e))e.forEach(i=>Gh(i,t,o,n));else{const i=gt(e.handler)?e.handler.bind(o):t[e.handler];gt(i)&<(r,i,e)}}function i6(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=>qu(s,u,a,!0)),qu(s,t,a)),Yt(t)&&i.set(t,s),s}function qu(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&qu(e,i,o,!0),r&&r.forEach(a=>qu(e,a,o,!0));for(const a in t)if(!(n&&a==="expose")){const l=Ux[a]||o&&o[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const Ux={data:K3,props:G3,emits:G3,methods:El,computed:El,beforeCreate:$o,created:$o,beforeMount:$o,mounted:$o,beforeUpdate:$o,updated:$o,beforeDestroy:$o,beforeUnmount:$o,destroyed:$o,unmounted:$o,activated:$o,deactivated:$o,errorCaptured:$o,serverPrefetch:$o,components:El,directives:El,watch:Gx,provide:K3,inject:Kx};function K3(e,t){return t?e?function(){return po(gt(e)?e.call(this,this):e,gt(t)?t.call(this,this):t)}:t:e}function Kx(e,t){return El(N0(e),N0(t))}function N0(e){if(pt(e)){const t={};for(let o=0;o1)return o&>(t)?t.call(n&&n.proxy):t}}function Xx(){return!!(wo||xo||Ai)}const Zh={},Xh=()=>Object.create(Zh),Yh=e=>Object.getPrototypeOf(e)===Zh;function Yx(e,t,o,n=!1){const r={},i=Xh();e.propsDefaults=Object.create(null),Qh(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);o?e.props=n?r:Ch(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Qx(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,l=At(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{s=!0;const[h,f]=Jh(c,t,!0);po(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 Yt(e)&&n.set(e,Fa),Fa;if(pt(i))for(let d=0;de[0]==="_"||e==="$stable",a6=e=>pt(e)?e.map(Vn):[Vn(e)],ey=(e,t,o)=>{if(t._n)return t;const n=K((...r)=>a6(t(...r)),o);return n._c=!1,n},tp=(e,t,o)=>{const n=e._ctx;for(const r in e){if(ep(r))continue;const i=e[r];if(gt(i))t[r]=ey(r,i,n);else if(i!=null){const a=a6(i);t[r]=()=>a}}},op=(e,t)=>{const o=a6(t);e.slots.default=()=>o},np=(e,t,o)=>{for(const n in t)(o||n!=="_")&&(e[n]=t[n])},ty=(e,t,o)=>{const n=e.slots=Xh();if(e.vnode.shapeFlag&32){const r=t._;r?(np(n,t,o),o&&Q5(n,"_",r,!0)):tp(t,n)}else t&&op(e,t)},oy=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,a=Ut;if(n.shapeFlag&32){const l=t._;l?o&&l===1?i=!1:np(r,t,o):(i=!t.$stable,tp(t,r)),a=t}else t&&(op(e,t),a={default:1});if(i)for(const l in r)!ep(l)&&a[l]==null&&delete r[l]},jo=gy;function ny(e){return ry(e)}function ry(e,t){const o=J5();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,N,ge,Ce=null,se=null,te=null,ce=void 0,Q=null,re=!!N.dynamicChildren)=>{if(U===N)return;U&&!yi(U,N)&&(Ce=ue(U),X(U,se,te,!0),U=null),N.patchFlag===-2&&(re=!1,N.dynamicChildren=null);const{type:he,ref:ne,shapeFlag:Y}=N;switch(he){case ks:v(U,N,ge,Ce);break;case bo:b(U,N,ge,Ce);break;case Pu:U==null&&C(N,ge,Ce,ce);break;case ft:H(U,N,ge,Ce,se,te,ce,Q,re);break;default:Y&1?_(U,N,ge,Ce,se,te,ce,Q,re):Y&6?q(U,N,ge,Ce,se,te,ce,Q,re):(Y&64||Y&128)&&he.process(U,N,ge,Ce,se,te,ce,Q,re,be)}ne!=null&&se&&O0(ne,U&&U.ref,te,N||U,!N)},v=(U,N,ge,Ce)=>{if(U==null)n(N.el=l(N.children),ge,Ce);else{const se=N.el=U.el;N.children!==U.children&&u(se,N.children)}},b=(U,N,ge,Ce)=>{U==null?n(N.el=s(N.children||""),ge,Ce):N.el=U.el},C=(U,N,ge,Ce)=>{[U.el,U.anchor]=p(U.children,N,ge,Ce,U.el,U.anchor)},k=({el:U,anchor:N},ge,Ce)=>{let se;for(;U&&U!==N;)se=h(U),n(U,ge,Ce),U=se;n(N,ge,Ce)},w=({el:U,anchor:N})=>{let ge;for(;U&&U!==N;)ge=h(U),r(U),U=ge;r(N)},_=(U,N,ge,Ce,se,te,ce,Q,re)=>{N.type==="svg"?ce="svg":N.type==="math"&&(ce="mathml"),U==null?M(N,ge,Ce,se,te,ce,Q,re):z(U,N,se,te,ce,Q,re)},M=(U,N,ge,Ce,se,te,ce,Q)=>{let re,he;const{props:ne,shapeFlag:Y,transition:de,dirs:Ee}=U;if(re=U.el=a(U.type,te,ne&&ne.is,ne),Y&8?d(re,U.children):Y&16&&P(U.children,re,null,Ce,se,zc(U,te),ce,Q),Ee&&fi(U,null,Ce,"created"),E(re,U,U.scopeId,ce,Ce),ne){for(const $e in ne)$e!=="value"&&!Al($e)&&i(re,$e,null,ne[$e],te,Ce);"value"in ne&&i(re,"value",null,ne.value,te),(he=ne.onVnodeBeforeMount)&&In(he,Ce,U)}Ee&&fi(U,null,Ce,"beforeMount");const Ie=iy(se,de);Ie&&de.beforeEnter(re),n(re,N,ge),((he=ne&&ne.onVnodeMounted)||Ie||Ee)&&jo(()=>{he&&In(he,Ce,U),Ie&&de.enter(re),Ee&&fi(U,null,Ce,"mounted")},se)},E=(U,N,ge,Ce,se)=>{if(ge&&f(U,ge),Ce)for(let te=0;te{for(let he=re;he{const Q=N.el=U.el;let{patchFlag:re,dynamicChildren:he,dirs:ne}=N;re|=U.patchFlag&16;const Y=U.props||Ut,de=N.props||Ut;let Ee;if(ge&&hi(ge,!1),(Ee=de.onVnodeBeforeUpdate)&&In(Ee,ge,N,U),ne&&fi(N,U,ge,"beforeUpdate"),ge&&hi(ge,!0),(Y.innerHTML&&de.innerHTML==null||Y.textContent&&de.textContent==null)&&d(Q,""),he?$(U.dynamicChildren,he,Q,ge,Ce,zc(N,se),te):ce||O(U,N,Q,null,ge,Ce,zc(N,se),te,!1),re>0){if(re&16)G(Q,Y,de,ge,se);else if(re&2&&Y.class!==de.class&&i(Q,"class",null,de.class,se),re&4&&i(Q,"style",Y.style,de.style,se),re&8){const Ie=N.dynamicProps;for(let $e=0;$e{Ee&&In(Ee,ge,N,U),ne&&fi(N,U,ge,"updated")},Ce)},$=(U,N,ge,Ce,se,te,ce)=>{for(let Q=0;Q{if(N!==ge){if(N!==Ut)for(const te in N)!Al(te)&&!(te in ge)&&i(U,te,N[te],null,se,Ce);for(const te in ge){if(Al(te))continue;const ce=ge[te],Q=N[te];ce!==Q&&te!=="value"&&i(U,te,Q,ce,se,Ce)}"value"in ge&&i(U,"value",N.value,ge.value,se)}},H=(U,N,ge,Ce,se,te,ce,Q,re)=>{const he=N.el=U?U.el:l(""),ne=N.anchor=U?U.anchor:l("");let{patchFlag:Y,dynamicChildren:de,slotScopeIds:Ee}=N;Ee&&(Q=Q?Q.concat(Ee):Ee),U==null?(n(he,ge,Ce),n(ne,ge,Ce),P(N.children||[],ge,ne,se,te,ce,Q,re)):Y>0&&Y&64&&de&&U.dynamicChildren?($(U.dynamicChildren,de,ge,se,te,ce,Q),(N.key!=null||se&&N===se.subTree)&&l6(U,N,!0)):O(U,N,ge,ne,se,te,ce,Q,re)},q=(U,N,ge,Ce,se,te,ce,Q,re)=>{N.slotScopeIds=Q,U==null?N.shapeFlag&512?se.ctx.activate(N,ge,Ce,ce,re):W(N,ge,Ce,se,te,ce,re):L(U,N,re)},W=(U,N,ge,Ce,se,te,ce)=>{const Q=U.component=Cy(U,Ce,se);if(kd(U)&&(Q.ctx.renderer=be),wy(Q,!1,ce),Q.asyncDep){if(se&&se.registerDep(Q,I,ce),!U.el){const re=Q.subTree=x(bo);b(null,re,N,ge)}}else I(Q,U,N,ge,se,te,ce)},L=(U,N,ge)=>{const Ce=N.component=U.component;if(py(U,N,ge))if(Ce.asyncDep&&!Ce.asyncResolved){R(Ce,N,ge);return}else Ce.next=N,Ce.update();else N.el=U.el,Ce.vnode=N},I=(U,N,ge,Ce,se,te,ce)=>{const Q=()=>{if(U.isMounted){let{next:Y,bu:de,u:Ee,parent:Ie,vnode:$e}=U;{const Je=rp(U);if(Je){Y&&(Y.el=$e.el,R(U,Y,ce)),Je.asyncDep.then(()=>{U.isUnmounted||Q()});return}}let Ye=Y,st;hi(U,!1),Y?(Y.el=$e.el,R(U,Y,ce)):Y=$e,de&&Sc(de),(st=Y.props&&Y.props.onVnodeBeforeUpdate)&&In(st,Ie,Y,$e),hi(U,!0);const Qe=Ac(U),mt=U.subTree;U.subTree=Qe,g(mt,Qe,c(mt.el),ue(mt),U,se,te),Y.el=Qe.el,Ye===null&&my(U,Qe.el),Ee&&jo(Ee,se),(st=Y.props&&Y.props.onVnodeUpdated)&&jo(()=>In(st,Ie,Y,$e),se)}else{let Y;const{el:de,props:Ee}=N,{bm:Ie,m:$e,parent:Ye,root:st,type:Qe}=U,mt=_a(N);if(hi(U,!1),Ie&&Sc(Ie),!mt&&(Y=Ee&&Ee.onVnodeBeforeMount)&&In(Y,Ye,N),hi(U,!0),de&&pe){const Je=()=>{U.subTree=Ac(U),pe(de,U.subTree,U,se,null)};mt&&Qe.__asyncHydrate?Qe.__asyncHydrate(de,U,Je):Je()}else{st.ce&&st.ce._injectChildStyle(Qe);const Je=U.subTree=Ac(U);g(null,Je,ge,Ce,U,se,te),N.el=Je.el}if($e&&jo($e,se),!mt&&(Y=Ee&&Ee.onVnodeMounted)){const Je=N;jo(()=>In(Y,Ye,Je),se)}(N.shapeFlag&256||Ye&&_a(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&U.a&&jo(U.a,se),U.isMounted=!0,N=ge=Ce=null}};U.scope.on();const re=U.effect=new lh(Q);U.scope.off();const he=U.update=re.run.bind(re),ne=U.job=re.runIfDirty.bind(re);ne.i=U,ne.id=U.uid,re.scheduler=()=>o6(ne),hi(U,!0),he()},R=(U,N,ge)=>{N.component=U;const Ce=U.vnode.props;U.vnode=N,U.next=null,Qx(U,N.props,Ce,ge),oy(U,N.children,ge),ni(),L3(U),ri()},O=(U,N,ge,Ce,se,te,ce,Q,re=!1)=>{const he=U&&U.children,ne=U?U.shapeFlag:0,Y=N.children,{patchFlag:de,shapeFlag:Ee}=N;if(de>0){if(de&128){y(he,Y,ge,Ce,se,te,ce,Q,re);return}else if(de&256){oe(he,Y,ge,Ce,se,te,ce,Q,re);return}}Ee&8?(ne&16&&fe(he,se,te),Y!==he&&d(ge,Y)):ne&16?Ee&16?y(he,Y,ge,Ce,se,te,ce,Q,re):fe(he,se,te,!0):(ne&8&&d(ge,""),Ee&16&&P(Y,ge,Ce,se,te,ce,Q,re))},oe=(U,N,ge,Ce,se,te,ce,Q,re)=>{U=U||Fa,N=N||Fa;const he=U.length,ne=N.length,Y=Math.min(he,ne);let de;for(de=0;dene?fe(U,se,te,!0,!1,Y):P(N,ge,Ce,se,te,ce,Q,re,Y)},y=(U,N,ge,Ce,se,te,ce,Q,re)=>{let he=0;const ne=N.length;let Y=U.length-1,de=ne-1;for(;he<=Y&&he<=de;){const Ee=U[he],Ie=N[he]=re?Hr(N[he]):Vn(N[he]);if(yi(Ee,Ie))g(Ee,Ie,ge,null,se,te,ce,Q,re);else break;he++}for(;he<=Y&&he<=de;){const Ee=U[Y],Ie=N[de]=re?Hr(N[de]):Vn(N[de]);if(yi(Ee,Ie))g(Ee,Ie,ge,null,se,te,ce,Q,re);else break;Y--,de--}if(he>Y){if(he<=de){const Ee=de+1,Ie=Eede)for(;he<=Y;)X(U[he],se,te,!0),he++;else{const Ee=he,Ie=he,$e=new Map;for(he=Ie;he<=de;he++){const ee=N[he]=re?Hr(N[he]):Vn(N[he]);ee.key!=null&&$e.set(ee.key,he)}let Ye,st=0;const Qe=de-Ie+1;let mt=!1,Je=0;const Ne=new Array(Qe);for(he=0;he=Qe){X(ee,se,te,!0);continue}let me;if(ee.key!=null)me=$e.get(ee.key);else for(Ye=Ie;Ye<=de;Ye++)if(Ne[Ye-Ie]===0&&yi(ee,N[Ye])){me=Ye;break}me===void 0?X(ee,se,te,!0):(Ne[me-Ie]=he+1,me>=Je?Je=me:mt=!0,g(ee,N[me],ge,null,se,te,ce,Q,re),st++)}const ot=mt?ay(Ne):Fa;for(Ye=ot.length-1,he=Qe-1;he>=0;he--){const ee=Ie+he,me=N[ee],Pe=ee+1{const{el:te,type:ce,transition:Q,children:re,shapeFlag:he}=U;if(he&6){j(U.component.subTree,N,ge,Ce);return}if(he&128){U.suspense.move(N,ge,Ce);return}if(he&64){ce.move(U,N,ge,be);return}if(ce===ft){n(te,N,ge);for(let Y=0;YQ.enter(te),se);else{const{leave:Y,delayLeave:de,afterLeave:Ee}=Q,Ie=()=>n(te,N,ge),$e=()=>{Y(te,()=>{Ie(),Ee&&Ee()})};de?de(te,Ie,$e):$e()}else n(te,N,ge)},X=(U,N,ge,Ce=!1,se=!1)=>{const{type:te,props:ce,ref:Q,children:re,dynamicChildren:he,shapeFlag:ne,patchFlag:Y,dirs:de,cacheIndex:Ee}=U;if(Y===-2&&(se=!1),Q!=null&&O0(Q,null,ge,U,!0),Ee!=null&&(N.renderCache[Ee]=void 0),ne&256){N.ctx.deactivate(U);return}const Ie=ne&1&&de,$e=!_a(U);let Ye;if($e&&(Ye=ce&&ce.onVnodeBeforeUnmount)&&In(Ye,N,U),ne&6)Fe(U.component,ge,Ce);else{if(ne&128){U.suspense.unmount(ge,Ce);return}Ie&&fi(U,null,N,"beforeUnmount"),ne&64?U.type.remove(U,N,ge,be,Ce):he&&!he.hasOnce&&(te!==ft||Y>0&&Y&64)?fe(he,N,ge,!1,!0):(te===ft&&Y&384||!se&&ne&16)&&fe(re,N,ge),Ce&&le(U)}($e&&(Ye=ce&&ce.onVnodeUnmounted)||Ie)&&jo(()=>{Ye&&In(Ye,N,U),Ie&&fi(U,null,N,"unmounted")},ge)},le=U=>{const{type:N,el:ge,anchor:Ce,transition:se}=U;if(N===ft){ae(ge,Ce);return}if(N===Pu){w(U);return}const te=()=>{r(ge),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(U.shapeFlag&1&&se&&!se.persisted){const{leave:ce,delayLeave:Q}=se,re=()=>ce(ge,te);Q?Q(U.el,te,re):re()}else te()},ae=(U,N)=>{let ge;for(;U!==N;)ge=h(U),r(U),U=ge;r(N)},Fe=(U,N,ge)=>{const{bum:Ce,scope:se,job:te,subTree:ce,um:Q,m:re,a:he}=U;Z3(re),Z3(he),Ce&&Sc(Ce),se.stop(),te&&(te.flags|=8,X(ce,U,N,ge)),Q&&jo(Q,N),jo(()=>{U.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},fe=(U,N,ge,Ce=!1,se=!1,te=0)=>{for(let ce=te;ce{if(U.shapeFlag&6)return ue(U.component.subTree);if(U.shapeFlag&128)return U.suspense.next();const N=h(U.anchor||U.el),ge=N&&N[Ah];return ge?h(ge):N};let we=!1;const ie=(U,N,ge)=>{U==null?N._vnode&&X(N._vnode,null,null,!0):g(N._vnode||null,U,N,null,null,null,ge),N._vnode=U,we||(we=!0,L3(),Mh(),we=!1)},be={p:g,um:X,m:j,r:le,mt:W,mc:P,pc:O,pbc:$,n:ue,o:e};let ze,pe;return{render:ie,hydrate:ze,createApp:Zx(ie,ze)}}function zc({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 hi({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function iy(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function l6(e,t,o=!1){const n=e.children,r=t.children;if(pt(n)&&pt(r))for(let i=0;i>1,e[o[l]]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 rp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rp(t)}function Z3(e){if(e)for(let t=0;tHe(ly);function kt(e,t){return s6(e,null,t)}function lt(e,t,o){return s6(e,t,o)}function s6(e,t,o=Ut){const{immediate:n,deep:r,flush:i,once:a}=o,l=po({},o);let s;if(zd)if(i==="sync"){const h=sy();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=wo;l.call=(h,f,p)=>An(h,u,f,p);let d=!1;i==="post"?l.scheduler=h=>{jo(h,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(h,f)=>{f?h():o6(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=_x(e,t,l);return s&&s.push(c),c}function uy(e,t,o){const n=this.proxy,r=no(e)?e.includes(".")?ip(n,e):()=>n[e]:e.bind(n,n);let i;gt(t)?i=t:(i=t.handler,o=t);const a=_s(this),l=s6(r,i.bind(n),o);return a(),l}function ip(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vn(t)}Modifiers`]||e[`${Ki(t)}Modifiers`];function cy(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||Ut;let r=o;const i=t.startsWith("update:"),a=i&&dy(n,t.slice(7));a&&(a.trim&&(r=o.map(d=>no(d)?d.trim():d)),a.number&&(r=o.map(Wb)));let l,s=n[l=wc(t)]||n[l=wc(vn(t))];!s&&i&&(s=n[l=wc(Ki(t))]),s&&An(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,An(u,e,6,r)}}function ap(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(!gt(e)){const s=u=>{const d=ap(u,t,!0);d&&(l=!0,po(a,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(Yt(e)&&n.set(e,null),null):(pt(i)?i.forEach(s=>a[s]=null):po(a,i),Yt(e)&&n.set(e,a),a)}function Rd(e,t){return!e||!vd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,Ki(t))||Ht(e,t))}function Ac(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=Gu(e);let b,C;try{if(o.shapeFlag&4){const w=r||n,_=w;b=Vn(u.call(_,w,d,c,f,h,p)),C=l}else{const w=t;b=Vn(w.length>1?w(c,{attrs:l,slots:a,emit:s}):w(c,null)),C=t.props?l:fy(l)}}catch(w){Tl.length=0,Ed(w,e,1),b=x(bo)}let k=b;if(C&&g!==!1){const w=Object.keys(C),{shapeFlag:_}=k;w.length&&_&7&&(i&&w.some(j1)&&(C=hy(C,i)),k=qo(k,C,!1,!0))}return o.dirs&&(k=qo(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&Li(k,o.transition),b=k,Gu(v),b}const fy=e=>{let t;for(const o in e)(o==="class"||o==="style"||vd(o))&&((t||(t={}))[o]=e[o]);return t},hy=(e,t)=>{const o={};for(const n in e)(!j1(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function py(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?X3(n,a,u):!!a;if(s&8){const d=t.dynamicProps;for(let c=0;ce.__isSuspense;function gy(e,t){t&&t.pendingBranch?pt(e)?t.effects.push(...e):t.effects.push(e):zx(e)}const ft=Symbol.for("v-fgt"),ks=Symbol.for("v-txt"),bo=Symbol.for("v-cmt"),Pu=Symbol.for("v-stc"),Tl=[];let tn=null;function Re(e=!1){Tl.push(tn=e?null:[])}function vy(){Tl.pop(),tn=Tl[Tl.length-1]||null}let ts=1;function Y3(e){ts+=e,e<0&&tn&&(tn.hasOnce=!0)}function sp(e){return e.dynamicChildren=ts>0?tn||Fa:null,vy(),ts>0&&tn&&tn.push(e),e}function Oe(e,t,o,n,r,i){return sp(T(e,t,o,n,r,i,!0))}function Tt(e,t,o,n,r){return sp(x(e,t,o,n,r,!0))}function Pa(e){return e?e.__v_isVNode===!0:!1}function yi(e,t){return e.type===t.type&&e.key===t.key}const up=({key:e})=>e??null,Bu=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?no(e)||lo(e)||gt(e)?{i:xo,r:e,k:t,f:!!o}:e:null);function T(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&&up(t),ref:t&&Bu(t),scopeId:zh,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:xo};return l?(d6(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=no(o)?8:16),ts>0&&!a&&tn&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&tn.push(s),s}const x=by;function by(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===jh)&&(e=bo),Pa(e)){const l=qo(e,t,!0);return o&&d6(l,o),ts>0&&!i&&tn&&(l.shapeFlag&6?tn[tn.indexOf(e)]=l:tn.push(l)),l.patchFlag=-2,l}if(_y(e)&&(e=e.__vccOpts),t){t=u6(t);let{class:l,style:s}=t;l&&!no(l)&&(t.class=xe(l)),Yt(s)&&(e6(s)&&!pt(s)&&(s=po({},s)),t.style=Cd(s))}const a=no(e)?1:lp(e)?128:Ph(e)?64:Yt(e)?4:gt(e)?2:0;return T(e,t,o,n,r,a,i,!0)}function u6(e){return e?e6(e)||Yh(e)?po({},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?mo(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&up(u),ref:t&&t.ref?o&&i?pt(i)?i.concat(Bu(t)):[i,Bu(t)]:Bu(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&&Li(d,s.clone(d)),d}function F(e=" ",t=0){return x(ks,null,e,t)}function HX(e,t){const o=x(Pu,null,e);return o.staticCount=t,o}function Ge(e="",t=!1){return t?(Re(),Tt(bo,null,e)):x(bo,null,e)}function Vn(e){return e==null||typeof e=="boolean"?x(bo):pt(e)?x(ft,null,e.slice()):Pa(e)?Hr(e):x(ks,null,String(e))}function Hr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function d6(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(pt(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),d6(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!Yh(t)?t._ctx=xo:r===3&&xo&&(xo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else gt(t)?(t={default:t,_ctx:xo},o=32):(t=String(t),n&64?(o=16,t=[F(t)]):o=8);e.children=t,e.shapeFlag|=o}function mo(...e){const t={};for(let o=0;owo||xo;let Zu,W0;{const e=J5(),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)}};Zu=t("__VUE_INSTANCE_SETTERS__",o=>wo=o),W0=t("__VUE_SSR_SETTERS__",o=>zd=o)}const _s=e=>{const t=wo;return Zu(e),e.scope.on(),()=>{e.scope.off(),Zu(t)}},Q3=()=>{wo&&wo.scope.off(),Zu(null)};function dp(e){return e.vnode.shapeFlag&4}let zd=!1;function wy(e,t=!1,o=!1){t&&W0(t);const{props:n,children:r}=e.vnode,i=dp(e);Yx(e,n,i,t),ty(e,r,o);const a=i?Sy(e,t):void 0;return t&&W0(!1),a}function Sy(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vx);const{setup:n}=o;if(n){const r=e.setupContext=n.length>1?Ey(e):null,i=_s(e);ni();const a=Ss(n,e,0,[e.props,r]);if(ri(),i(),Z5(a)){if(_a(e)||Lh(e),a.then(Q3,Q3),t)return a.then(l=>{J3(e,l,t)}).catch(l=>{Ed(l,e,0)});e.asyncDep=a}else J3(e,a,t)}else cp(e,t)}function J3(e,t,o){gt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Yt(t)&&(e.setupState=Sh(t)),cp(e,o)}let e2;function cp(e,t,o){const n=e.type;if(!e.render){if(!t&&e2&&!n.render){const r=n.template||i6(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=n,u=po(po({isCustomElement:i,delimiters:l},a),s);n.render=e2(r,u)}}e.render=n.render||Un}{const r=_s(e);ni();try{Wx(e)}finally{ri(),r()}}}const Fy={get(e,t){return Ro(e,"get",""),e[t]}};function Ey(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,Fy),slots:e.slots,emit:e.emit,expose:t}}function Ad(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sh(Ql(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Dl)return Dl[o](e)},has(t,o){return o in t||o in Dl}})):e.proxy}function ky(e,t=!0){return gt(e)?e.displayName||e.name:e.name||t&&e.__name}function _y(e){return gt(e)&&"__vccOpts"in e}const D=(e,t)=>Ex(e,t,zd);function m(e,t,o){const n=arguments.length;return n===2?Yt(t)&&!pt(t)?Pa(t)?x(e,null,[t]):x(e,t):x(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&Pa(o)&&(o=[o]),x(e,t,o))}const My="3.5.11";/** +**/function Ss(e,t,o,n){try{return n?e(...n):e()}catch(r){Ed(r,t,o)}}function An(e,t,o,n){if(gt(e)){const r=Ss(e,t,o,n);return r&&Z5(r)&&r.catch(i=>{Ed(i,t,o)}),r}if(pt(e)){const r=[];for(let i=0;i>>1,r=To[n],i=Jl(r);i=Jl(o)?To.push(e):To.splice(Rx(t),0,e),e.flags|=1,_h()}}function _h(){Ku||(Ku=kh.then(Rh))}function zx(e){pt(e)?ka.push(...e):Or&&e.id===-1?Or.splice(xa+1,0,e):e.flags&1||(ka.push(e),e.flags|=1),_h()}function L3(e,t,o=Nn+1){for(;oJl(o)-Jl(n));if(ka.length=0,Or){Or.push(...t);return}for(Or=t,xa=0;xae.id==null?e.flags&2?-1:1/0:e.id;function Rh(e){try{for(Nn=0;Nn{n._d&&Y3(-1);const i=Gu(t);let a;try{a=e(...r)}finally{Gu(i),n._d&&Y3(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function zo(e,t){if(xo===null)return e;const o=Ad(xo),n=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,$l=e=>e&&(e.disabled||e.disabled===""),Ax=e=>e&&(e.defer||e.defer===""),H3=e=>typeof SVGElement<"u"&&e instanceof SVGElement,N3=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,I0=(e,t)=>{const o=e&&e.to;return no(o)?t?t(o):null:o},Px={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=$l(t.props);let{shapeFlag:C,children:k,dynamicChildren:w}=t;if(e==null){const _=t.el=g(""),M=t.anchor=g("");f(_,o,n),f(M,o,n);const E=(z,$)=>{C&16&&(r&&r.isCE&&(r.ce._teleportTarget=z),d(k,z,$,r,i,a,l,s))},P=()=>{const z=t.target=I0(t.props,p),$=Bh(z,t,g,f);z&&(a!=="svg"&&H3(z)?a="svg":a!=="mathml"&&N3(z)&&(a="mathml"),b||(E(z,$),Au(t)))};b&&(E(o,M),Au(t)),Ax(t.props)?jo(P,i):P()}else{t.el=e.el,t.targetStart=e.targetStart;const _=t.anchor=e.anchor,M=t.target=e.target,E=t.targetAnchor=e.targetAnchor,P=$l(e.props),z=P?o:M,$=P?_:E;if(a==="svg"||H3(M)?a="svg":(a==="mathml"||N3(M))&&(a="mathml"),w?(h(e.dynamicChildren,w,z,r,i,a,l),l6(e,t,!0)):s||c(e,t,z,$,r,i,a,l,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ou(t,o,_,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=t.target=I0(t.props,p);G&&ou(t,G,null,u,0)}else P&&ou(t,M,E,u,1);Au(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||!$l(h);for(let p=0;p{e.isMounted=!0}),Jt(()=>{e.isUnmounting=!0}),e}const cn=[Function,Array],Dh={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},Th=e=>{const t=e.subTree;return t.component?Th(t.component):t},$x={name:"BaseTransition",props:Dh,setup(e,{slots:t}){const o=xr(),n=$h();return()=>{const r=t.default&&n6(t.default(),!0);if(!r||!r.length)return;const i=Ih(r),a=At(e),{mode:l}=a;if(n.isLeaving)return Mc(i);const s=V3(i);if(!s)return Mc(i);let u=es(s,a,n,o,h=>u=h);s.type!==bo&&Li(s,u);const d=o.subTree,c=d&&V3(d);if(c&&c.type!==bo&&!yi(s,c)&&Th(o).type!==bo){const h=es(c,a,n,o);if(Li(c,h),l==="out-in"&&s.type!==bo)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete h.afterLeave},Mc(i);l==="in-out"&&s.type!==bo&&(h.delayLeave=(f,p,g)=>{const v=Oh(n,c);v[String(c.key)]=c,f[Lr]=()=>{p(),f[Lr]=void 0,delete u.delayedLeave},u.delayedLeave=g})}return i}}};function Ih(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==bo){t=o;break}}return t}const Dx=$x;function Oh(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 es(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:C,onAppearCancelled:k}=t,w=String(e.key),_=Oh(o,e),M=(z,$)=>{z&&An(z,n,9,$)},E=(z,$)=>{const G=$[1];M(z,$),pt(z)?z.every(H=>H.length<=1)&&G():z.length<=1&&G()},P={mode:a,persisted:l,beforeEnter(z){let $=s;if(!o.isMounted)if(i)$=v||s;else return;z[Lr]&&z[Lr](!0);const G=_[w];G&&yi(e,G)&&G.el[Lr]&&G.el[Lr](),M($,[z])},enter(z){let $=u,G=d,H=c;if(!o.isMounted)if(i)$=b||u,G=C||d,H=k||c;else return;let q=!1;const W=z[nu]=L=>{q||(q=!0,L?M(H,[z]):M(G,[z]),P.delayedLeave&&P.delayedLeave(),z[nu]=void 0)};$?E($,[z,W]):W()},leave(z,$){const G=String(e.key);if(z[nu]&&z[nu](!0),o.isUnmounting)return $();M(h,[z]);let H=!1;const q=z[Lr]=W=>{H||(H=!0,$(),W?M(g,[z]):M(p,[z]),z[Lr]=void 0,_[G]===e&&delete _[G])};_[G]=e,f?E(f,[z,q]):q()},clone(z){const $=es(z,t,o,n,r);return r&&r($),$}};return P}function Mc(e){if(kd(e))return e=qo(e),e.children=null,e}function V3(e){if(!kd(e))return Ph(e.type)&&e.children?Ih(e.children):e;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&>(o.default))return o.default()}}function Li(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Li(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 n6(e,t=!1,o){let n=[],r=0;for(let i=0;i1)for(let i=0;iO0(p,t&&(pt(t)?t[g]:t),o,n,r));return}if(_a(n)&&!r)return;const i=n.shapeFlag&4?Ad(n.component):n.el,a=r?null:i,{i:l,r:s}=e,u=t&&t.r,d=l.refs===Ut?l.refs={}:l.refs,c=l.setupState,h=At(c),f=c===Ut?()=>!1:p=>Ht(h,p);if(u!=null&&u!==s&&(no(u)?(d[u]=null,f(u)&&(c[u]=null)):lo(u)&&(u.value=null)),gt(s))Ss(s,l,12,[a,d]);else{const p=no(s),g=lo(s);if(p||g){const v=()=>{if(e.f){const b=p?f(s)?c[s]:d[s]:s.value;r?pt(b)&&U1(b,i):pt(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,jo(v,o)):v()}}}const _a=e=>!!e.type.__asyncLoader,kd=e=>e.type.__isKeepAlive;function r6(e,t){Hh(e,"a",t)}function _d(e,t){Hh(e,"da",t)}function Hh(e,t,o=wo){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Md(t,n,o),o){let r=o.parent;for(;r&&r.parent;)kd(r.parent.vnode)&&Ix(n,t,o,r),r=r.parent}}function Ix(e,t,o,n){const r=Md(t,e,n,!0);Go(()=>{U1(n[t],r)},o)}function Md(e,t,o=wo,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{ni();const l=_s(o),s=An(t,o,e,a);return l(),ri(),s});return n?r.unshift(i):r.push(i),i}}const br=e=>(t,o=wo)=>{(!zd||e==="sp")&&Md(e,(...n)=>t(...n),o)},ii=br("bm"),ut=br("m"),Nh=br("bu"),Vh=br("u"),Jt=br("bum"),Go=br("um"),Ox=br("sp"),Lx=br("rtg"),Hx=br("rtc");function Nx(e,t=wo){Md("ec",e,t)}const Wh="components";function rt(e,t){return Uh(Wh,e,!0,t)||e}const jh=Symbol.for("v-ndc");function ru(e){return no(e)?Uh(Wh,e,!1)||e:e||jh}function Uh(e,t,o=!0,n=!1){const r=xo||wo;if(r){const i=r.type;{const l=ky(i,!1);if(l&&(l===t||l===vn(t)||l===yd(vn(t))))return i}const a=W3(r[e]||i[e],t)||W3(r.appContext[e],t);return!a&&n?i:a}}function W3(e,t){return e&&(e[t]||e[vn(t)]||e[yd(vn(t))])}function wi(e,t,o,n){let r;const i=o,a=pt(e);if(a||no(e)){const l=a&&Gr(e);let s=!1;l&&(s=!gn(e),e=wd(e)),r=new Array(e.length);for(let u=0,d=e.length;ut(l,s,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let s=0,u=l.length;sPa(t)?!(t.type===bo||t.type===ft&&!Kh(t.children)):!0)?e:null}const L0=e=>e?dp(e)?Ad(e):L0(e.parent):null,Dl=po(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=>L0(e.parent),$root:e=>L0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>i6(e),$forceUpdate:e=>e.f||(e.f=()=>{o6(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>uy.bind(e)}),Rc=(e,t)=>e!==Ut&&!e.__isScriptSetup&&Ht(e,t),Vx={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(Rc(n,t))return a[t]=1,n[t];if(r!==Ut&&Ht(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&Ht(u,t))return a[t]=3,i[t];if(o!==Ut&&Ht(o,t))return a[t]=4,o[t];H0&&(a[t]=0)}}const d=Dl[t];let c,h;if(d)return t==="$attrs"&&Ro(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==Ut&&Ht(o,t))return a[t]=4,o[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Rc(r,t)?(r[t]=o,!0):n!==Ut&&Ht(n,t)?(n[t]=o,!0):Ht(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!==Ut&&Ht(e,a)||Rc(t,a)||(l=i[0])&&Ht(l,a)||Ht(n,a)||Ht(Dl,a)||Ht(r.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Ht(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function j3(e){return pt(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let H0=!0;function Wx(e){const t=i6(e),o=e.proxy,n=e.ctx;H0=!1,t.beforeCreate&&U3(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:C,destroyed:k,unmounted:w,render:_,renderTracked:M,renderTriggered:E,errorCaptured:P,serverPrefetch:z,expose:$,inheritAttrs:G,components:H,directives:q,filters:W}=t;if(u&&jx(u,n,null),a)for(const R in a){const O=a[R];gt(O)&&(n[R]=O.bind(o))}if(r){const R=r.call(o,o);Yt(R)&&(e.data=Nt(R))}if(H0=!0,i)for(const R in i){const O=i[R],oe=gt(O)?O.bind(o,o):gt(O.get)?O.get.bind(o,o):Un,y=!gt(O)&>(O.set)?O.set.bind(o):Un,j=D({get:oe,set:y});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>j.value,set:X=>j.value=X})}if(l)for(const R in l)Gh(l[R],n,o,R);if(s){const R=gt(s)?s.call(o):s;Reflect.ownKeys(R).forEach(O=>{tt(O,R[O])})}d&&U3(d,e,"c");function I(R,O){pt(O)?O.forEach(oe=>R(oe.bind(o))):O&&R(O.bind(o))}if(I(ii,c),I(ut,h),I(Nh,f),I(Vh,p),I(r6,g),I(_d,v),I(Nx,P),I(Hx,M),I(Lx,E),I(Jt,C),I(Go,w),I(Ox,z),pt($))if($.length){const R=e.exposed||(e.exposed={});$.forEach(O=>{Object.defineProperty(R,O,{get:()=>o[O],set:oe=>o[O]=oe})})}else e.exposed||(e.exposed={});_&&e.render===Un&&(e.render=_),G!=null&&(e.inheritAttrs=G),H&&(e.components=H),q&&(e.directives=q),z&&Lh(e)}function jx(e,t,o=Un){pt(e)&&(e=N0(e));for(const n in e){const r=e[n];let i;Yt(r)?"default"in r?i=He(r.from||n,r.default,!0):i=He(r.from||n):i=He(r),lo(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function U3(e,t,o){An(pt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function Gh(e,t,o,n){let r=n.includes(".")?ip(o,n):()=>o[n];if(no(e)){const i=t[e];gt(i)&<(r,i)}else if(gt(e))lt(r,e.bind(o));else if(Yt(e))if(pt(e))e.forEach(i=>Gh(i,t,o,n));else{const i=gt(e.handler)?e.handler.bind(o):t[e.handler];gt(i)&<(r,i,e)}}function i6(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=>qu(s,u,a,!0)),qu(s,t,a)),Yt(t)&&i.set(t,s),s}function qu(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&qu(e,i,o,!0),r&&r.forEach(a=>qu(e,a,o,!0));for(const a in t)if(!(n&&a==="expose")){const l=Ux[a]||o&&o[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const Ux={data:K3,props:G3,emits:G3,methods:El,computed:El,beforeCreate:$o,created:$o,beforeMount:$o,mounted:$o,beforeUpdate:$o,updated:$o,beforeDestroy:$o,beforeUnmount:$o,destroyed:$o,unmounted:$o,activated:$o,deactivated:$o,errorCaptured:$o,serverPrefetch:$o,components:El,directives:El,watch:Gx,provide:K3,inject:Kx};function K3(e,t){return t?e?function(){return po(gt(e)?e.call(this,this):e,gt(t)?t.call(this,this):t)}:t:e}function Kx(e,t){return El(N0(e),N0(t))}function N0(e){if(pt(e)){const t={};for(let o=0;o1)return o&>(t)?t.call(n&&n.proxy):t}}function Xx(){return!!(wo||xo||Ai)}const Zh={},Xh=()=>Object.create(Zh),Yh=e=>Object.getPrototypeOf(e)===Zh;function Yx(e,t,o,n=!1){const r={},i=Xh();e.propsDefaults=Object.create(null),Qh(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);o?e.props=n?r:Ch(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Qx(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,l=At(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{s=!0;const[h,f]=Jh(c,t,!0);po(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 Yt(e)&&n.set(e,Fa),Fa;if(pt(i))for(let d=0;de[0]==="_"||e==="$stable",a6=e=>pt(e)?e.map(Vn):[Vn(e)],ey=(e,t,o)=>{if(t._n)return t;const n=K((...r)=>a6(t(...r)),o);return n._c=!1,n},tp=(e,t,o)=>{const n=e._ctx;for(const r in e){if(ep(r))continue;const i=e[r];if(gt(i))t[r]=ey(r,i,n);else if(i!=null){const a=a6(i);t[r]=()=>a}}},op=(e,t)=>{const o=a6(t);e.slots.default=()=>o},np=(e,t,o)=>{for(const n in t)(o||n!=="_")&&(e[n]=t[n])},ty=(e,t,o)=>{const n=e.slots=Xh();if(e.vnode.shapeFlag&32){const r=t._;r?(np(n,t,o),o&&Q5(n,"_",r,!0)):tp(t,n)}else t&&op(e,t)},oy=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,a=Ut;if(n.shapeFlag&32){const l=t._;l?o&&l===1?i=!1:np(r,t,o):(i=!t.$stable,tp(t,r)),a=t}else t&&(op(e,t),a={default:1});if(i)for(const l in r)!ep(l)&&a[l]==null&&delete r[l]},jo=gy;function ny(e){return ry(e)}function ry(e,t){const o=J5();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,N,ge,Ce=null,se=null,te=null,ce=void 0,Q=null,re=!!N.dynamicChildren)=>{if(U===N)return;U&&!yi(U,N)&&(Ce=ue(U),X(U,se,te,!0),U=null),N.patchFlag===-2&&(re=!1,N.dynamicChildren=null);const{type:he,ref:ne,shapeFlag:Y}=N;switch(he){case ks:v(U,N,ge,Ce);break;case bo:b(U,N,ge,Ce);break;case Pu:U==null&&C(N,ge,Ce,ce);break;case ft:H(U,N,ge,Ce,se,te,ce,Q,re);break;default:Y&1?_(U,N,ge,Ce,se,te,ce,Q,re):Y&6?q(U,N,ge,Ce,se,te,ce,Q,re):(Y&64||Y&128)&&he.process(U,N,ge,Ce,se,te,ce,Q,re,be)}ne!=null&&se&&O0(ne,U&&U.ref,te,N||U,!N)},v=(U,N,ge,Ce)=>{if(U==null)n(N.el=l(N.children),ge,Ce);else{const se=N.el=U.el;N.children!==U.children&&u(se,N.children)}},b=(U,N,ge,Ce)=>{U==null?n(N.el=s(N.children||""),ge,Ce):N.el=U.el},C=(U,N,ge,Ce)=>{[U.el,U.anchor]=p(U.children,N,ge,Ce,U.el,U.anchor)},k=({el:U,anchor:N},ge,Ce)=>{let se;for(;U&&U!==N;)se=h(U),n(U,ge,Ce),U=se;n(N,ge,Ce)},w=({el:U,anchor:N})=>{let ge;for(;U&&U!==N;)ge=h(U),r(U),U=ge;r(N)},_=(U,N,ge,Ce,se,te,ce,Q,re)=>{N.type==="svg"?ce="svg":N.type==="math"&&(ce="mathml"),U==null?M(N,ge,Ce,se,te,ce,Q,re):z(U,N,se,te,ce,Q,re)},M=(U,N,ge,Ce,se,te,ce,Q)=>{let re,he;const{props:ne,shapeFlag:Y,transition:de,dirs:Ee}=U;if(re=U.el=a(U.type,te,ne&&ne.is,ne),Y&8?d(re,U.children):Y&16&&P(U.children,re,null,Ce,se,zc(U,te),ce,Q),Ee&&fi(U,null,Ce,"created"),E(re,U,U.scopeId,ce,Ce),ne){for(const $e in ne)$e!=="value"&&!Al($e)&&i(re,$e,null,ne[$e],te,Ce);"value"in ne&&i(re,"value",null,ne.value,te),(he=ne.onVnodeBeforeMount)&&In(he,Ce,U)}Ee&&fi(U,null,Ce,"beforeMount");const Ie=iy(se,de);Ie&&de.beforeEnter(re),n(re,N,ge),((he=ne&&ne.onVnodeMounted)||Ie||Ee)&&jo(()=>{he&&In(he,Ce,U),Ie&&de.enter(re),Ee&&fi(U,null,Ce,"mounted")},se)},E=(U,N,ge,Ce,se)=>{if(ge&&f(U,ge),Ce)for(let te=0;te{for(let he=re;he{const Q=N.el=U.el;let{patchFlag:re,dynamicChildren:he,dirs:ne}=N;re|=U.patchFlag&16;const Y=U.props||Ut,de=N.props||Ut;let Ee;if(ge&&hi(ge,!1),(Ee=de.onVnodeBeforeUpdate)&&In(Ee,ge,N,U),ne&&fi(N,U,ge,"beforeUpdate"),ge&&hi(ge,!0),(Y.innerHTML&&de.innerHTML==null||Y.textContent&&de.textContent==null)&&d(Q,""),he?$(U.dynamicChildren,he,Q,ge,Ce,zc(N,se),te):ce||O(U,N,Q,null,ge,Ce,zc(N,se),te,!1),re>0){if(re&16)G(Q,Y,de,ge,se);else if(re&2&&Y.class!==de.class&&i(Q,"class",null,de.class,se),re&4&&i(Q,"style",Y.style,de.style,se),re&8){const Ie=N.dynamicProps;for(let $e=0;$e{Ee&&In(Ee,ge,N,U),ne&&fi(N,U,ge,"updated")},Ce)},$=(U,N,ge,Ce,se,te,ce)=>{for(let Q=0;Q{if(N!==ge){if(N!==Ut)for(const te in N)!Al(te)&&!(te in ge)&&i(U,te,N[te],null,se,Ce);for(const te in ge){if(Al(te))continue;const ce=ge[te],Q=N[te];ce!==Q&&te!=="value"&&i(U,te,Q,ce,se,Ce)}"value"in ge&&i(U,"value",N.value,ge.value,se)}},H=(U,N,ge,Ce,se,te,ce,Q,re)=>{const he=N.el=U?U.el:l(""),ne=N.anchor=U?U.anchor:l("");let{patchFlag:Y,dynamicChildren:de,slotScopeIds:Ee}=N;Ee&&(Q=Q?Q.concat(Ee):Ee),U==null?(n(he,ge,Ce),n(ne,ge,Ce),P(N.children||[],ge,ne,se,te,ce,Q,re)):Y>0&&Y&64&&de&&U.dynamicChildren?($(U.dynamicChildren,de,ge,se,te,ce,Q),(N.key!=null||se&&N===se.subTree)&&l6(U,N,!0)):O(U,N,ge,ne,se,te,ce,Q,re)},q=(U,N,ge,Ce,se,te,ce,Q,re)=>{N.slotScopeIds=Q,U==null?N.shapeFlag&512?se.ctx.activate(N,ge,Ce,ce,re):W(N,ge,Ce,se,te,ce,re):L(U,N,re)},W=(U,N,ge,Ce,se,te,ce)=>{const Q=U.component=Cy(U,Ce,se);if(kd(U)&&(Q.ctx.renderer=be),wy(Q,!1,ce),Q.asyncDep){if(se&&se.registerDep(Q,I,ce),!U.el){const re=Q.subTree=x(bo);b(null,re,N,ge)}}else I(Q,U,N,ge,se,te,ce)},L=(U,N,ge)=>{const Ce=N.component=U.component;if(py(U,N,ge))if(Ce.asyncDep&&!Ce.asyncResolved){R(Ce,N,ge);return}else Ce.next=N,Ce.update();else N.el=U.el,Ce.vnode=N},I=(U,N,ge,Ce,se,te,ce)=>{const Q=()=>{if(U.isMounted){let{next:Y,bu:de,u:Ee,parent:Ie,vnode:$e}=U;{const et=rp(U);if(et){Y&&(Y.el=$e.el,R(U,Y,ce)),et.asyncDep.then(()=>{U.isUnmounted||Q()});return}}let Qe=Y,st;hi(U,!1),Y?(Y.el=$e.el,R(U,Y,ce)):Y=$e,de&&Sc(de),(st=Y.props&&Y.props.onVnodeBeforeUpdate)&&In(st,Ie,Y,$e),hi(U,!0);const Je=Ac(U),mt=U.subTree;U.subTree=Je,g(mt,Je,c(mt.el),ue(mt),U,se,te),Y.el=Je.el,Qe===null&&my(U,Je.el),Ee&&jo(Ee,se),(st=Y.props&&Y.props.onVnodeUpdated)&&jo(()=>In(st,Ie,Y,$e),se)}else{let Y;const{el:de,props:Ee}=N,{bm:Ie,m:$e,parent:Qe,root:st,type:Je}=U,mt=_a(N);if(hi(U,!1),Ie&&Sc(Ie),!mt&&(Y=Ee&&Ee.onVnodeBeforeMount)&&In(Y,Qe,N),hi(U,!0),de&&pe){const et=()=>{U.subTree=Ac(U),pe(de,U.subTree,U,se,null)};mt&&Je.__asyncHydrate?Je.__asyncHydrate(de,U,et):et()}else{st.ce&&st.ce._injectChildStyle(Je);const et=U.subTree=Ac(U);g(null,et,ge,Ce,U,se,te),N.el=et.el}if($e&&jo($e,se),!mt&&(Y=Ee&&Ee.onVnodeMounted)){const et=N;jo(()=>In(Y,Qe,et),se)}(N.shapeFlag&256||Qe&&_a(Qe.vnode)&&Qe.vnode.shapeFlag&256)&&U.a&&jo(U.a,se),U.isMounted=!0,N=ge=Ce=null}};U.scope.on();const re=U.effect=new lh(Q);U.scope.off();const he=U.update=re.run.bind(re),ne=U.job=re.runIfDirty.bind(re);ne.i=U,ne.id=U.uid,re.scheduler=()=>o6(ne),hi(U,!0),he()},R=(U,N,ge)=>{N.component=U;const Ce=U.vnode.props;U.vnode=N,U.next=null,Qx(U,N.props,Ce,ge),oy(U,N.children,ge),ni(),L3(U),ri()},O=(U,N,ge,Ce,se,te,ce,Q,re=!1)=>{const he=U&&U.children,ne=U?U.shapeFlag:0,Y=N.children,{patchFlag:de,shapeFlag:Ee}=N;if(de>0){if(de&128){y(he,Y,ge,Ce,se,te,ce,Q,re);return}else if(de&256){oe(he,Y,ge,Ce,se,te,ce,Q,re);return}}Ee&8?(ne&16&&fe(he,se,te),Y!==he&&d(ge,Y)):ne&16?Ee&16?y(he,Y,ge,Ce,se,te,ce,Q,re):fe(he,se,te,!0):(ne&8&&d(ge,""),Ee&16&&P(Y,ge,Ce,se,te,ce,Q,re))},oe=(U,N,ge,Ce,se,te,ce,Q,re)=>{U=U||Fa,N=N||Fa;const he=U.length,ne=N.length,Y=Math.min(he,ne);let de;for(de=0;dene?fe(U,se,te,!0,!1,Y):P(N,ge,Ce,se,te,ce,Q,re,Y)},y=(U,N,ge,Ce,se,te,ce,Q,re)=>{let he=0;const ne=N.length;let Y=U.length-1,de=ne-1;for(;he<=Y&&he<=de;){const Ee=U[he],Ie=N[he]=re?Hr(N[he]):Vn(N[he]);if(yi(Ee,Ie))g(Ee,Ie,ge,null,se,te,ce,Q,re);else break;he++}for(;he<=Y&&he<=de;){const Ee=U[Y],Ie=N[de]=re?Hr(N[de]):Vn(N[de]);if(yi(Ee,Ie))g(Ee,Ie,ge,null,se,te,ce,Q,re);else break;Y--,de--}if(he>Y){if(he<=de){const Ee=de+1,Ie=Eede)for(;he<=Y;)X(U[he],se,te,!0),he++;else{const Ee=he,Ie=he,$e=new Map;for(he=Ie;he<=de;he++){const ee=N[he]=re?Hr(N[he]):Vn(N[he]);ee.key!=null&&$e.set(ee.key,he)}let Qe,st=0;const Je=de-Ie+1;let mt=!1,et=0;const Ne=new Array(Je);for(he=0;he=Je){X(ee,se,te,!0);continue}let me;if(ee.key!=null)me=$e.get(ee.key);else for(Qe=Ie;Qe<=de;Qe++)if(Ne[Qe-Ie]===0&&yi(ee,N[Qe])){me=Qe;break}me===void 0?X(ee,se,te,!0):(Ne[me-Ie]=he+1,me>=et?et=me:mt=!0,g(ee,N[me],ge,null,se,te,ce,Q,re),st++)}const ot=mt?ay(Ne):Fa;for(Qe=ot.length-1,he=Je-1;he>=0;he--){const ee=Ie+he,me=N[ee],Pe=ee+1{const{el:te,type:ce,transition:Q,children:re,shapeFlag:he}=U;if(he&6){j(U.component.subTree,N,ge,Ce);return}if(he&128){U.suspense.move(N,ge,Ce);return}if(he&64){ce.move(U,N,ge,be);return}if(ce===ft){n(te,N,ge);for(let Y=0;YQ.enter(te),se);else{const{leave:Y,delayLeave:de,afterLeave:Ee}=Q,Ie=()=>n(te,N,ge),$e=()=>{Y(te,()=>{Ie(),Ee&&Ee()})};de?de(te,Ie,$e):$e()}else n(te,N,ge)},X=(U,N,ge,Ce=!1,se=!1)=>{const{type:te,props:ce,ref:Q,children:re,dynamicChildren:he,shapeFlag:ne,patchFlag:Y,dirs:de,cacheIndex:Ee}=U;if(Y===-2&&(se=!1),Q!=null&&O0(Q,null,ge,U,!0),Ee!=null&&(N.renderCache[Ee]=void 0),ne&256){N.ctx.deactivate(U);return}const Ie=ne&1&&de,$e=!_a(U);let Qe;if($e&&(Qe=ce&&ce.onVnodeBeforeUnmount)&&In(Qe,N,U),ne&6)Fe(U.component,ge,Ce);else{if(ne&128){U.suspense.unmount(ge,Ce);return}Ie&&fi(U,null,N,"beforeUnmount"),ne&64?U.type.remove(U,N,ge,be,Ce):he&&!he.hasOnce&&(te!==ft||Y>0&&Y&64)?fe(he,N,ge,!1,!0):(te===ft&&Y&384||!se&&ne&16)&&fe(re,N,ge),Ce&&le(U)}($e&&(Qe=ce&&ce.onVnodeUnmounted)||Ie)&&jo(()=>{Qe&&In(Qe,N,U),Ie&&fi(U,null,N,"unmounted")},ge)},le=U=>{const{type:N,el:ge,anchor:Ce,transition:se}=U;if(N===ft){ae(ge,Ce);return}if(N===Pu){w(U);return}const te=()=>{r(ge),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(U.shapeFlag&1&&se&&!se.persisted){const{leave:ce,delayLeave:Q}=se,re=()=>ce(ge,te);Q?Q(U.el,te,re):re()}else te()},ae=(U,N)=>{let ge;for(;U!==N;)ge=h(U),r(U),U=ge;r(N)},Fe=(U,N,ge)=>{const{bum:Ce,scope:se,job:te,subTree:ce,um:Q,m:re,a:he}=U;Z3(re),Z3(he),Ce&&Sc(Ce),se.stop(),te&&(te.flags|=8,X(ce,U,N,ge)),Q&&jo(Q,N),jo(()=>{U.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},fe=(U,N,ge,Ce=!1,se=!1,te=0)=>{for(let ce=te;ce{if(U.shapeFlag&6)return ue(U.component.subTree);if(U.shapeFlag&128)return U.suspense.next();const N=h(U.anchor||U.el),ge=N&&N[Ah];return ge?h(ge):N};let we=!1;const ie=(U,N,ge)=>{U==null?N._vnode&&X(N._vnode,null,null,!0):g(N._vnode||null,U,N,null,null,null,ge),N._vnode=U,we||(we=!0,L3(),Mh(),we=!1)},be={p:g,um:X,m:j,r:le,mt:W,mc:P,pc:O,pbc:$,n:ue,o:e};let ze,pe;return{render:ie,hydrate:ze,createApp:Zx(ie,ze)}}function zc({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 hi({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function iy(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function l6(e,t,o=!1){const n=e.children,r=t.children;if(pt(n)&&pt(r))for(let i=0;i>1,e[o[l]]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 rp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:rp(t)}function Z3(e){if(e)for(let t=0;tHe(ly);function kt(e,t){return s6(e,null,t)}function lt(e,t,o){return s6(e,t,o)}function s6(e,t,o=Ut){const{immediate:n,deep:r,flush:i,once:a}=o,l=po({},o);let s;if(zd)if(i==="sync"){const h=sy();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=wo;l.call=(h,f,p)=>An(h,u,f,p);let d=!1;i==="post"?l.scheduler=h=>{jo(h,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(h,f)=>{f?h():o6(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=_x(e,t,l);return s&&s.push(c),c}function uy(e,t,o){const n=this.proxy,r=no(e)?e.includes(".")?ip(n,e):()=>n[e]:e.bind(n,n);let i;gt(t)?i=t:(i=t.handler,o=t);const a=_s(this),l=s6(r,i.bind(n),o);return a(),l}function ip(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${vn(t)}Modifiers`]||e[`${Ki(t)}Modifiers`];function cy(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||Ut;let r=o;const i=t.startsWith("update:"),a=i&&dy(n,t.slice(7));a&&(a.trim&&(r=o.map(d=>no(d)?d.trim():d)),a.number&&(r=o.map(Wb)));let l,s=n[l=wc(t)]||n[l=wc(vn(t))];!s&&i&&(s=n[l=wc(Ki(t))]),s&&An(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,An(u,e,6,r)}}function ap(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(!gt(e)){const s=u=>{const d=ap(u,t,!0);d&&(l=!0,po(a,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(Yt(e)&&n.set(e,null),null):(pt(i)?i.forEach(s=>a[s]=null):po(a,i),Yt(e)&&n.set(e,a),a)}function Rd(e,t){return!e||!vd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,Ki(t))||Ht(e,t))}function Ac(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=Gu(e);let b,C;try{if(o.shapeFlag&4){const w=r||n,_=w;b=Vn(u.call(_,w,d,c,f,h,p)),C=l}else{const w=t;b=Vn(w.length>1?w(c,{attrs:l,slots:a,emit:s}):w(c,null)),C=t.props?l:fy(l)}}catch(w){Tl.length=0,Ed(w,e,1),b=x(bo)}let k=b;if(C&&g!==!1){const w=Object.keys(C),{shapeFlag:_}=k;w.length&&_&7&&(i&&w.some(j1)&&(C=hy(C,i)),k=qo(k,C,!1,!0))}return o.dirs&&(k=qo(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(o.dirs):o.dirs),o.transition&&Li(k,o.transition),b=k,Gu(v),b}const fy=e=>{let t;for(const o in e)(o==="class"||o==="style"||vd(o))&&((t||(t={}))[o]=e[o]);return t},hy=(e,t)=>{const o={};for(const n in e)(!j1(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function py(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?X3(n,a,u):!!a;if(s&8){const d=t.dynamicProps;for(let c=0;ce.__isSuspense;function gy(e,t){t&&t.pendingBranch?pt(e)?t.effects.push(...e):t.effects.push(e):zx(e)}const ft=Symbol.for("v-fgt"),ks=Symbol.for("v-txt"),bo=Symbol.for("v-cmt"),Pu=Symbol.for("v-stc"),Tl=[];let tn=null;function Re(e=!1){Tl.push(tn=e?null:[])}function vy(){Tl.pop(),tn=Tl[Tl.length-1]||null}let ts=1;function Y3(e){ts+=e,e<0&&tn&&(tn.hasOnce=!0)}function sp(e){return e.dynamicChildren=ts>0?tn||Fa:null,vy(),ts>0&&tn&&tn.push(e),e}function Oe(e,t,o,n,r,i){return sp(T(e,t,o,n,r,i,!0))}function Tt(e,t,o,n,r){return sp(x(e,t,o,n,r,!0))}function Pa(e){return e?e.__v_isVNode===!0:!1}function yi(e,t){return e.type===t.type&&e.key===t.key}const up=({key:e})=>e??null,Bu=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?no(e)||lo(e)||gt(e)?{i:xo,r:e,k:t,f:!!o}:e:null);function T(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&&up(t),ref:t&&Bu(t),scopeId:zh,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:xo};return l?(d6(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=no(o)?8:16),ts>0&&!a&&tn&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&tn.push(s),s}const x=by;function by(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===jh)&&(e=bo),Pa(e)){const l=qo(e,t,!0);return o&&d6(l,o),ts>0&&!i&&tn&&(l.shapeFlag&6?tn[tn.indexOf(e)]=l:tn.push(l)),l.patchFlag=-2,l}if(_y(e)&&(e=e.__vccOpts),t){t=u6(t);let{class:l,style:s}=t;l&&!no(l)&&(t.class=xe(l)),Yt(s)&&(e6(s)&&!pt(s)&&(s=po({},s)),t.style=Cd(s))}const a=no(e)?1:lp(e)?128:Ph(e)?64:Yt(e)?4:gt(e)?2:0;return T(e,t,o,n,r,a,i,!0)}function u6(e){return e?e6(e)||Yh(e)?po({},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?mo(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&up(u),ref:t&&t.ref?o&&i?pt(i)?i.concat(Bu(t)):[i,Bu(t)]:Bu(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&&Li(d,s.clone(d)),d}function F(e=" ",t=0){return x(ks,null,e,t)}function WX(e,t){const o=x(Pu,null,e);return o.staticCount=t,o}function Ge(e="",t=!1){return t?(Re(),Tt(bo,null,e)):x(bo,null,e)}function Vn(e){return e==null||typeof e=="boolean"?x(bo):pt(e)?x(ft,null,e.slice()):Pa(e)?Hr(e):x(ks,null,String(e))}function Hr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function d6(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(pt(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),d6(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!Yh(t)?t._ctx=xo:r===3&&xo&&(xo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else gt(t)?(t={default:t,_ctx:xo},o=32):(t=String(t),n&64?(o=16,t=[F(t)]):o=8);e.children=t,e.shapeFlag|=o}function mo(...e){const t={};for(let o=0;owo||xo;let Zu,W0;{const e=J5(),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)}};Zu=t("__VUE_INSTANCE_SETTERS__",o=>wo=o),W0=t("__VUE_SSR_SETTERS__",o=>zd=o)}const _s=e=>{const t=wo;return Zu(e),e.scope.on(),()=>{e.scope.off(),Zu(t)}},Q3=()=>{wo&&wo.scope.off(),Zu(null)};function dp(e){return e.vnode.shapeFlag&4}let zd=!1;function wy(e,t=!1,o=!1){t&&W0(t);const{props:n,children:r}=e.vnode,i=dp(e);Yx(e,n,i,t),ty(e,r,o);const a=i?Sy(e,t):void 0;return t&&W0(!1),a}function Sy(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vx);const{setup:n}=o;if(n){const r=e.setupContext=n.length>1?Ey(e):null,i=_s(e);ni();const a=Ss(n,e,0,[e.props,r]);if(ri(),i(),Z5(a)){if(_a(e)||Lh(e),a.then(Q3,Q3),t)return a.then(l=>{J3(e,l,t)}).catch(l=>{Ed(l,e,0)});e.asyncDep=a}else J3(e,a,t)}else cp(e,t)}function J3(e,t,o){gt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Yt(t)&&(e.setupState=Sh(t)),cp(e,o)}let e2;function cp(e,t,o){const n=e.type;if(!e.render){if(!t&&e2&&!n.render){const r=n.template||i6(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=n,u=po(po({isCustomElement:i,delimiters:l},a),s);n.render=e2(r,u)}}e.render=n.render||Un}{const r=_s(e);ni();try{Wx(e)}finally{ri(),r()}}}const Fy={get(e,t){return Ro(e,"get",""),e[t]}};function Ey(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,Fy),slots:e.slots,emit:e.emit,expose:t}}function Ad(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sh(Ql(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Dl)return Dl[o](e)},has(t,o){return o in t||o in Dl}})):e.proxy}function ky(e,t=!0){return gt(e)?e.displayName||e.name:e.name||t&&e.__name}function _y(e){return gt(e)&&"__vccOpts"in e}const D=(e,t)=>Ex(e,t,zd);function m(e,t,o){const n=arguments.length;return n===2?Yt(t)&&!pt(t)?Pa(t)?x(e,null,[t]):x(e,t):x(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&Pa(o)&&(o=[o]),x(e,t,o))}const My="3.5.11";/** * @vue/runtime-dom v3.5.11 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -30,7 +30,7 @@ ${r} `);return}l=$p(l),s!=null&&a.push(` ${l}${UC(s)}`)}),e&&a.push("}"),a.join(` `)}function r1(e,t,o){e&&e.forEach(n=>{if(Array.isArray(n))r1(n,t,o);else if(typeof n=="function"){const r=n(t);Array.isArray(r)?r1(r,t,o):r&&o(r)}else n&&o(n)})}function Dp(e,t,o,n,r){const i=e.$;let a="";if(!i||typeof i=="string")iu(i)?a=i:t.push(i);else if(typeof i=="function"){const u=i({context:n.context,props:r});iu(u)?a=u:t.push(u)}else if(i.before&&i.before(n.context),!i.$||typeof i.$=="string")iu(i.$)?a=i.$:t.push(i.$);else if(i.$){const u=i.$({context:n.context,props:r});iu(u)?a=u:t.push(u)}const l=VC(t),s=M2(l,e.props,n,r);a?o.push(`${a} {`):s.length&&o.push(s),e.children&&r1(e.children,{context:n.context,props:r},u=>{if(typeof u=="string"){const d=M2(l,{raw:u},n,r);o.push(d)}else Dp(u,t,o,n,r)}),t.pop(),a&&o.push("}"),i&&i.after&&i.after(n.context)}function GC(e,t,o){const n=[];return Dp(e,[],n,t,o),n.join(` -`)}function ns(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 qC(e,t,o,n){const{els:r}=t;if(o===void 0)r.forEach(_2),t.els=[];else{const i=Bd(o,n);i&&r.includes(i)&&(_2(i),t.els=r.filter(a=>a!==i))}}function R2(e,t){e.push(t)}function ZC(e,t,o,n,r,i,a,l,s){let u;if(o===void 0&&(u=t.render(n),o=ns(u)),s){s.adapter(o,u??t.render(n));return}l===void 0&&(l=document.head);const d=Bd(o,l);if(d!==null&&!i)return d;const c=d??WC(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),R2(t.els,c),c}return r?l.insertBefore(c,l.querySelector("style, link")):l.appendChild(c),R2(t.els,c),c}function XC(e){return GC(this,this.instance,e)}function YC(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:a,parent:l}=e;return ZC(this.instance,this,t,n,r,i,a,l,o)}function QC(e={}){const{id:t,parent:o}=e;qC(this.instance,this,t,o)}const au=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:XC,mount:YC,unmount:QC}},JC=function(e,t,o,n){return Array.isArray(t)?au(e,{$:null},null,t):Array.isArray(o)?au(e,t,null,o):Array.isArray(n)?au(e,t,o,n):au(e,t,o,null)};function Tp(e={}){const t={c:(...o)=>JC(t,...o),use:(o,...n)=>o.install(t,...n),find:Bd,context:{},config:e};return t}function ew(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return Bd(e)!==null}function tw(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:C}){return p=typeof p=="string"?p:p({context:b,props:C}),b.bem.b=p,`${(C==null?void 0:C.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(C=>C.trim()),v.bem.els.map(C=>`${(b==null?void 0:b.bPrefix)||t}${v.bem.b}${o}${C}`).join(", ")}}}function s(p){return{$({context:g,props:v}){p=typeof p=="string"?p:p({context:g,props:v});const b=p.split(",").map(w=>w.trim());function C(w){return b.map(_=>`&${(v==null?void 0:v.bPrefix)||t}${g.bem.b}${w!==void 0?`${o}${w}`:""}${n}${_}`).join(", ")}const k=g.bem.els;return k!==null?C(k[0]):C()}}}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 ow="n",rs=`.${ow}-`,nw="__",rw="--",Ip=Tp(),Op=tw({blockPrefix:rs,elementPrefix:nw,modifierPrefix:rw});Ip.use(Op);const{c:V,find:NX}=Ip,{cB:B,cE:Z,cM:J,cNotM:Mt}=Op;function Zi(e){return V(({props:{bPrefix:t}})=>`${t||rs}modal, ${t||rs}drawer`,[e])}function Wa(e){return V(({props:{bPrefix:t}})=>`${t||rs}popover`,[e])}function Lp(e){return V(({props:{bPrefix:t}})=>`&${t||rs}modal`,e)}const iw=(...e)=>V(">",[B(...e)]);function _e(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let Ic;function aw(){return Ic===void 0&&(Ic=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Ic}const wn=typeof document<"u"&&typeof window<"u",Hp=new WeakSet;function lw(e){Hp.add(e)}function Np(e){return!Hp.has(e)}function sw(e,t,o){const n=A(e.value);let r=null;return lt(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 Vp(e){const t=A(!!e.value);if(t.value)return Zn(t);const o=lt(e,n=>{n&&(t.value=!0,o())});return Zn(t)}function bt(e){const t=D(e),o=A(t.value);return lt(t,n=>{o.value=n}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(n){e.set(n)}}}function b6(){return xr()!==null}const $d=typeof window<"u";let Ra,Hl;const uw=()=>{var e,t;Ra=$d?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Hl=!1,Ra!==void 0?Ra.then(()=>{Hl=!0}):Hl=!0};uw();function x6(e){if(Hl)return;let t=!1;ut(()=>{Hl||Ra==null||Ra.then(()=>{t||e()})}),Jt(()=>{t=!0})}function Tu(e){return e.composedPath()[0]}const dw={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function cw(e,t,o){if(e==="mousemoveoutside"){const n=r=>{t.contains(Tu(r))||o(r)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const r=a=>{n=!t.contains(Tu(a))},i=a=>{n&&(t.contains(Tu(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 Wp(e,t,o){const n=dw[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=cw(e,t,o)),i}function fw(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Wp(e,t,o);return Object.keys(r).forEach(i=>{wt(i,document,r[i],n)}),!0}return!1}function hw(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Wp(e,t,o);return Object.keys(r).forEach(i=>{yt(i,document,r[i],n)}),!0}return!1}function pw(){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(E,P,z){const $=E[P];return E[P]=function(){return z.apply(E,arguments),$.apply(E,arguments)},E}function i(E,P){E[P]=Event.prototype[P]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var E;return(E=a.get(this))!==null&&E!==void 0?E:null}function u(E,P){l!==void 0&&Object.defineProperty(E,"currentTarget",{configurable:!0,enumerable:!0,get:P??l.get})}const d={bubble:{},capture:{}},c={};function h(){const E=function(P){const{type:z,eventPhase:$,bubbles:G}=P,H=Tu(P);if($===2)return;const q=$===1?"capture":"bubble";let W=H;const L=[];for(;W===null&&(W=window),L.push(W),W!==window;)W=W.parentNode||null;const I=d.capture[z],R=d.bubble[z];if(r(P,"stopPropagation",o),r(P,"stopImmediatePropagation",n),u(P,s),q==="capture"){if(I===void 0)return;for(let O=L.length-1;O>=0&&!e.has(P);--O){const oe=L[O],y=I.get(oe);if(y!==void 0){a.set(P,oe);for(const j of y){if(t.has(P))break;j(P)}}if(O===0&&!G&&R!==void 0){const j=R.get(oe);if(j!==void 0)for(const X of j){if(t.has(P))break;X(P)}}}}else if(q==="bubble"){if(R===void 0)return;for(let O=0;OH(P))};return E.displayName="evtdUnifiedWindowEventHandler",E}const p=h(),g=f();function v(E,P){const z=d[E];return z[P]===void 0&&(z[P]=new Map,window.addEventListener(P,p,E==="capture")),z[P]}function b(E){return c[E]===void 0&&(c[E]=new Set,window.addEventListener(E,g)),c[E]}function C(E,P){let z=E.get(P);return z===void 0&&E.set(P,z=new Set),z}function k(E,P,z,$){const G=d[P][z];if(G!==void 0){const H=G.get(E);if(H!==void 0&&H.has($))return!0}return!1}function w(E,P){const z=c[E];return!!(z!==void 0&&z.has(P))}function _(E,P,z,$){let G;if(typeof $=="object"&&$.once===!0?G=I=>{M(E,P,G,$),z(I)}:G=z,fw(E,P,G,$))return;const q=$===!0||typeof $=="object"&&$.capture===!0?"capture":"bubble",W=v(q,E),L=C(W,P);if(L.has(G)||L.add(G),P===window){const I=b(E);I.has(G)||I.add(G)}}function M(E,P,z,$){if(hw(E,P,z,$))return;const H=$===!0||typeof $=="object"&&$.capture===!0,q=H?"capture":"bubble",W=v(q,E),L=C(W,P);if(P===window&&!k(P,H?"bubble":"capture",E,z)&&w(E,z)){const R=c[E];R.delete(z),R.size===0&&(window.removeEventListener(E,g),c[E]=void 0)}L.has(z)&&L.delete(z),L.size===0&&W.delete(P),W.size===0&&(window.removeEventListener(E,p,q==="capture"),d[q][E]=void 0)}return{on:_,off:M}}const{on:wt,off:yt}=pw(),kl=A(null);function z2(e){if(e.clientX>0||e.clientY>0)kl.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?kl.value={x:o+r/2,y:n+i/2}:kl.value={x:0,y:0}}else kl.value=null}}let lu=0,A2=!0;function Ju(){if(!$d)return Zn(A(null));lu===0&&wt("click",document,z2,!0);const e=()=>{lu+=1};return A2&&(A2=b6())?(ii(e),Jt(()=>{lu-=1,lu===0&&yt("click",document,z2,!0)})):e(),Zn(kl)}const mw=A(void 0);let su=0;function P2(){mw.value=Date.now()}let B2=!0;function ed(e){if(!$d)return Zn(A(!1));const t=A(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}su===0&&wt("click",window,P2,!0);const i=()=>{su+=1,wt("click",window,r,!0)};return B2&&(B2=b6())?(ii(i),Jt(()=>{su-=1,su===0&&yt("click",window,P2,!0),yt("click",window,r,!0),n()})):i(),Zn(t)}function ro(e,t){return lt(e,o=>{o!==void 0&&(t.value=o)}),D(()=>e.value===void 0?t.value:e.value)}function Cr(){const e=A(!1);return ut(()=>{e.value=!0}),Zn(e)}function is(e,t){return D(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const gw=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function vw(){return gw}const bw={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function xw(e){return`(min-width: ${e}px)`}const ul={};function yw(e=bw){if(!$d)return D(()=>[]);if(typeof window.matchMedia!="function")return D(()=>[]);const t=A({}),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;ul[i]===void 0?(a=window.matchMedia(xw(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,ul[i]={mql:a,cbs:l}):(a=ul[i].mql,l=ul[i].cbs),l.add(n),a.matches&&l.forEach(s=>{s(a,r)})}),Jt(()=>{o.forEach(r=>{const{cbs:i}=ul[e[r]];i.has(n)&&i.delete(n)})}),D(()=>{const{value:r}=t;return o.filter(i=>r[i])})}function Cw(e={},t){const o=Nt({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)&&(wt("keydown",document,i),wt("keyup",document,a)),t!==void 0&<(t,s=>{s?(wt("keydown",document,i),wt("keyup",document,a)):(yt("keydown",document,i),yt("keyup",document,a))})};return b6()?(ii(l),Jt(()=>{(t===void 0||t.value)&&(yt("keydown",document,i),yt("keyup",document,a))})):l(),Zn(o)}const y6="n-internal-select-menu",jp="n-internal-select-menu-body",Rs="n-modal-body",ww="n-modal-provider",Up="n-modal",zs="n-drawer-body",C6="n-drawer",ja="n-popover-body",Kp="__disabled__";function Ao(e){const t=He(Rs,null),o=He(zs,null),n=He(ja,null),r=He(jp,null),i=A();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};ut(()=>{wt("fullscreenchange",document,a)}),Jt(()=>{yt("fullscreenchange",document,a)})}return bt(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Kp: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")})}Ao.tdkey=Kp;Ao.propTo={type:[String,Object,Boolean],default:void 0};let $2=!1;function Sw(){if(wn&&window.CSS&&!$2&&($2=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function i1(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function a1(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(F(String(n)));return}if(Array.isArray(n)){a1(n,t,o);return}if(n.type===ft){if(n.children===null)return;Array.isArray(n.children)&&a1(n.children,t,o)}else n.type!==bo&&o.push(n)}}),o}function D2(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=a1(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let Pr=null;function Gp(){if(Pr===null&&(Pr=document.getElementById("v-binder-view-measurer"),Pr===null)){Pr=document.createElement("div"),Pr.id="v-binder-view-measurer";const{style:e}=Pr;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Pr)}return Pr.getBoundingClientRect()}function Fw(e,t){const o=Gp();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Oc(e){const t=e.getBoundingClientRect(),o=Gp();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 Ew(e){return e.nodeType===9?null:e.parentNode}function qp(e){if(e===null)return null;const t=Ew(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 qp(t)}const As=ye({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;tt("VBinder",(t=xr())===null||t===void 0?void 0:t.proxy);const o=He("VBinder",null),n=A(null),r=b=>{n.value=b,o&&e.syncTargetWithParent&&o.setTargetRef(b)};let i=[];const a=()=>{let b=n.value;for(;b=qp(b),b!==null;)i.push(b);for(const C of i)wt("scroll",C,c,!0)},l=()=>{for(const b of i)yt("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=()=>{os(h)},h=()=>{s.forEach(b=>b())},f=new Set,p=b=>{f.size===0&&wt("resize",window,v),f.has(b)||f.add(b)},g=b=>{f.has(b)&&f.delete(b),f.size===0&&yt("resize",window,v)},v=()=>{f.forEach(b=>b())};return Jt(()=>{yt("resize",window,v),l()}),{targetRef:n,setTargetRef:r,addScrollListener:u,removeScrollListener:d,addResizeListener:p,removeResizeListener:g}},render(){return i1("binder",this.$slots)}}),Ps=ye({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=He("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?zo(D2("follower",this.$slots),[[t]]):D2("follower",this.$slots)}}),sa="@@mmoContext",kw={mounted(e,{value:t}){e[sa]={handler:void 0},typeof t=="function"&&(e[sa].handler=t,wt("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[sa];typeof t=="function"?o.handler?o.handler!==t&&(yt("mousemoveoutside",e,o.handler),o.handler=t,wt("mousemoveoutside",e,t)):(e[sa].handler=t,wt("mousemoveoutside",e,t)):o.handler&&(yt("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[sa];t&&yt("mousemoveoutside",e,t),e[sa].handler=void 0}},ua="@@coContext",Ni={mounted(e,{value:t,modifiers:o}){e[ua]={handler:void 0},typeof t=="function"&&(e[ua].handler=t,wt("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[ua];typeof t=="function"?n.handler?n.handler!==t&&(yt("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,wt("clickoutside",e,t,{capture:o.capture})):(e[ua].handler=t,wt("clickoutside",e,t,{capture:o.capture})):n.handler&&(yt("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[ua];o&&yt("clickoutside",e,o,{capture:t.capture}),e[ua].handler=void 0}};function _w(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Mw{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&&_w("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 Lc=new Mw,da="@@ziContext",Dd={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[da]={enabled:!!r,initialized:!1},r&&(Lc.ensureZIndex(e,n),e[da].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[da].enabled;r&&!i&&(Lc.ensureZIndex(e,n),e[da].initialized=!0),e[da].enabled=!!r},unmounted(e,t){if(!e[da].initialized)return;const{value:o={}}=t,{zIndex:n}=o;Lc.unregister(e,n)}},Rw="@css-render/vue3-ssr";function zw(e,t){return``}function Aw(e,t,o){const{styles:n,ids:r}=o;r.has(e)||n!==null&&(r.add(e),n.push(zw(e,t)))}const Pw=typeof document<"u";function li(){if(Pw)return;const e=He(Rw,null);if(e!==null)return{adapter:(t,o)=>Aw(t,o,e),context:e}}function T2(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:jn}=Tp(),Td="vueuc-style";function I2(e){return e&-e}class Zp{constructor(t,o){this.l=t,this.min=o;const n=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=o[t],t-=I2(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{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?i1("lazy-teleport",this.$slots):m(Fs,{disabled:this.disabled,to:this.mergedTo},i1("lazy-teleport",this.$slots)):null}}),uu={top:"bottom",bottom:"top",left:"right",right:"left"},L2={start:"end",center:"center",end:"start"},Hc={top:"height",bottom:"height",left:"width",right:"width"},Bw={"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"},$w={"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"},Dw={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},H2={top:!0,bottom:!1,left:!0,right:!1},N2={top:"end",bottom:"start",left:"end",right:"start"};function Tw(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 C=o[f]-t[p]-t[f];return C>0&&n&&(g?b=H2[p]?C:-C:v=H2[p]?C:-C),{left:v,top:b}},c=a==="left"||a==="right";if(s!=="center"){const f=Dw[e],p=uu[f],g=Hc[f];if(o[g]>t[g]){if(t[f]+t[g]t[p]&&(s=L2[l])}else{const f=a==="bottom"||a==="top"?"left":"top",p=uu[f],g=Hc[f],v=(o[g]-t[g])/2;(t[f]t[p]?(s=N2[f],u=d(g,f,c)):(s=N2[p],u=d(g,p,c)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Bs=ye({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=He("VBinder"),o=bt(()=>e.enabled!==void 0?e.enabled:e.show),n=A(null),r=A(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=li();Lw.mount({id:"vueuc/binder",head:!0,anchorMetaName:Td,ssr:l}),Jt(()=>{a()}),x6(()=>{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?Fw(p,g):Oc(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:C,minWidth:k,placement:w,internalShift:_,flip:M}=e;h.setAttribute("v-placement",w),v?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:E}=h;C==="target"?E.width=`${b.width}px`:C!==void 0?E.width=C:E.width="",k==="target"?E.minWidth=`${b.width}px`:k!==void 0?E.minWidth=k:E.minWidth="";const P=Oc(h),z=Oc(r.value),{left:$,top:G,placement:H}=Tw(w,b,P,_,M,v),q=Iw(H,v),{left:W,top:L,transform:I}=Ow(H,z,b,G,$,v);h.setAttribute("v-placement",H),h.style.setProperty("--v-offset-left",`${Math.round($)}px`),h.style.setProperty("--v-offset-top",`${Math.round(G)}px`),h.style.transform=`translateX(${W}) translateY(${L}) ${I}`,h.style.setProperty("--v-transform-origin",q),h.style.transformOrigin=q};lt(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=>{lt(Te(e,h),s)}),["teleportDisabled"].forEach(h=>{lt(Te(e,h),u)}),lt(Te(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=bt(()=>{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(w6,{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?zo(o,[[Dd,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Di=[],Hw=function(){return Di.some(function(e){return e.activeTargets.length>0})},Nw=function(){return Di.some(function(e){return e.skippedTargets.length>0})},V2="ResizeObserver loop completed with undelivered notifications.",Vw=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:V2}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=V2),window.dispatchEvent(e)},as;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(as||(as={}));var Ti=function(e){return Object.freeze(e)},Ww=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Ti(this)}return e}(),Xp=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,Ti(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}(),S6=function(e){return e instanceof SVGElement&&"getBBox"in e},Yp=function(e){if(S6(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)},W2=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)},jw=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},Nl=typeof window<"u"?window:{},du=new WeakMap,j2=/auto|scroll/,Uw=/^tb|vertical/,Kw=/msie|trident/i.test(Nl.navigator&&Nl.navigator.userAgent),On=function(e){return parseFloat(e||"0")},za=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Ww((o?t:e)||0,(o?e:t)||0)},U2=Ti({devicePixelContentBoxSize:za(),borderBoxSize:za(),contentBoxSize:za(),contentRect:new Xp(0,0,0,0)}),Qp=function(e,t){if(t===void 0&&(t=!1),du.has(e)&&!t)return du.get(e);if(Yp(e))return du.set(e,U2),U2;var o=getComputedStyle(e),n=S6(e)&&e.ownerSVGElement&&e.getBBox(),r=!Kw&&o.boxSizing==="border-box",i=Uw.test(o.writingMode||""),a=!n&&j2.test(o.overflowY||""),l=!n&&j2.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,C=g+f,k=h+p,w=l?e.offsetHeight-k-e.clientHeight:0,_=a?e.offsetWidth-C-e.clientWidth:0,M=r?v+C:0,E=r?b+k:0,P=n?n.width:On(o.width)-M-_,z=n?n.height:On(o.height)-E-w,$=P+v+_+C,G=z+b+w+k,H=Ti({devicePixelContentBoxSize:za(Math.round(P*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:za($,G,i),contentBoxSize:za(P,z,i),contentRect:new Xp(c,s,P,z)});return du.set(e,H),H},Jp=function(e,t,o){var n=Qp(e,o),r=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case as.DEVICE_PIXEL_CONTENT_BOX:return a;case as.BORDER_BOX:return r;default:return i}},Gw=function(){function e(t){var o=Qp(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Ti([o.borderBoxSize]),this.contentBoxSize=Ti([o.contentBoxSize]),this.devicePixelContentBoxSize=Ti([o.devicePixelContentBoxSize])}return e}(),e8=function(e){if(Yp(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},qw=function(){var e=1/0,t=[];Di.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(u){var d=new Gw(u.target),c=e8(u.target);l.push(d),u.lastReportedSize=Jp(u.target,u.observedBox),ce?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Zw=function(){var e=0;for(K2(e);Hw();)e=qw(),K2(e);return Nw()&&Vw(),e>0},Nc,t8=[],Xw=function(){return t8.splice(0).forEach(function(e){return e()})},Yw=function(e){if(!Nc){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Xw()}).observe(o,n),Nc=function(){o.textContent="".concat(t?t--:t++)}}t8.push(e),Nc()},Qw=function(e){Yw(function(){requestAnimationFrame(e)})},Iu=0,Jw=function(){return!!Iu},eS=250,tS={attributes:!0,characterData:!0,childList:!0,subtree:!0},G2=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],q2=function(e){return e===void 0&&(e=0),Date.now()+e},Vc=!1,oS=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=eS),!Vc){Vc=!0;var n=q2(t);Qw(function(){var r=!1;try{r=Zw()}finally{if(Vc=!1,t=n-q2(),!Jw())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,tS)};document.body?o():Nl.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),G2.forEach(function(o){return Nl.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),G2.forEach(function(o){return Nl.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),l1=new oS,Z2=function(e){!Iu&&e>0&&l1.start(),Iu+=e,!Iu&&l1.stop()},nS=function(e){return!S6(e)&&!jw(e)&&getComputedStyle(e).display==="inline"},rS=function(){function e(t,o){this.target=t,this.observedBox=o||as.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Jp(this.target,this.observedBox,!0);return nS(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),iS=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),cu=new WeakMap,X2=function(e,t){for(var o=0;o=0&&(i&&Di.splice(Di.indexOf(n),1),n.observationTargets.splice(r,1),Z2(-1))},e.disconnect=function(t){var o=this,n=cu.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),aS=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.");fu.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(!W2(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");fu.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(!W2(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");fu.unobserve(this,t)},e.prototype.disconnect=function(){fu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class lS{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||aS)(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 td=new lS,Rn=ye({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){T2("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){T2("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(td.registerHandler(r.nextElementSibling,n),t=!0)}),Jt(()=>{t&&td.unregisterHandler(o.$el.nextElementSibling)})},render(){return Es(this.$slots,"default")}});let hu;function sS(){return typeof document>"u"?!1:(hu===void 0&&("matchMedia"in window?hu=window.matchMedia("(pointer:coarse)").matches:hu=!1),hu)}let Wc;function Y2(){return typeof document>"u"?1:(Wc===void 0&&(Wc="chrome"in window?window.devicePixelRatio:1),Wc)}const o8="VVirtualListXScroll";function uS({columnsRef:e,renderColRef:t,renderItemWithColsRef:o}){const n=A(0),r=A(0),i=D(()=>{const u=e.value;if(u.length===0)return null;const d=new Zp(u.length,0);return u.forEach((c,h)=>{d.add(h,c.width)}),d}),a=bt(()=>{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=bt(()=>{const u=i.value;return u!==null?Math.min(u.getBound(r.value+n.value)+1,e.value.length-1):0});return tt(o8,{startIndexRef:a,endIndexRef:s,columnsRef:e,renderColRef:t,renderItemWithColsRef:o,getLeft:l}),{listWidthRef:n,scrollLeftRef:r}}const Q2=ye({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}=He(o8);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}}),dS=jn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[jn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[jn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),F6=ye({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=li();dS.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Td,ssr:t}),ut(()=>{const{defaultScrollIndex:q,defaultScrollKey:W}=e;q!=null?v({index:q}):W!=null&&v({key:W})});let o=!1,n=!1;r6(()=>{if(o=!1,!n){n=!0;return}v({top:f.value,left:a.value})}),_d(()=>{o=!0,n||(n=!0)});const r=bt(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let q=0;return e.columns.forEach(W=>{q+=W.width}),q}),i=D(()=>{const q=new Map,{keyField:W}=e;return e.items.forEach((L,I)=>{q.set(L[W],I)}),q}),{scrollLeftRef:a,listWidthRef:l}=uS({columnsRef:Te(e,"columns"),renderColRef:Te(e,"renderCol"),renderItemWithColsRef:Te(e,"renderItemWithCols")}),s=A(null),u=A(void 0),d=new Map,c=D(()=>{const{items:q,itemSize:W,keyField:L}=e,I=new Zp(q.length,W);return q.forEach((R,O)=>{const oe=R[L],y=d.get(oe);y!==void 0&&I.add(O,y)}),I}),h=A(0),f=A(0),p=bt(()=>Math.max(c.value.getBound(f.value-uo(e.paddingTop))-1,0)),g=D(()=>{const{value:q}=u;if(q===void 0)return[];const{items:W,itemSize:L}=e,I=p.value,R=Math.min(I+Math.ceil(q/L+1),W.length-1),O=[];for(let oe=I;oe<=R;++oe)O.push(W[oe]);return O}),v=(q,W)=>{if(typeof q=="number"){w(q,W,"auto");return}const{left:L,top:I,index:R,key:O,position:oe,behavior:y,debounce:j=!0}=q;if(L!==void 0||I!==void 0)w(L,I,y);else if(R!==void 0)k(R,y,j);else if(O!==void 0){const X=i.value.get(O);X!==void 0&&k(X,y,j)}else oe==="bottom"?w(0,Number.MAX_SAFE_INTEGER,y):oe==="top"&&w(0,0,y)};let b,C=null;function k(q,W,L){const{value:I}=c,R=I.sum(q)+uo(e.paddingTop);if(!L)s.value.scrollTo({left:0,top:R,behavior:W});else{b=q,C!==null&&window.clearTimeout(C),C=window.setTimeout(()=>{b=void 0,C=null},16);const{scrollTop:O,offsetHeight:oe}=s.value;if(R>O){const y=I.get(q);R+y<=O+oe||s.value.scrollTo({left:0,top:R+y-oe,behavior:W})}else s.value.scrollTo({left:0,top:R,behavior:W})}}function w(q,W,L){s.value.scrollTo({left:q,top:W,behavior:L})}function _(q,W){var L,I,R;if(o||e.ignoreItemResize||H(W.target))return;const{value:O}=c,oe=i.value.get(q),y=O.get(oe),j=(R=(I=(L=W.borderBoxSize)===null||L===void 0?void 0:L[0])===null||I===void 0?void 0:I.blockSize)!==null&&R!==void 0?R:W.contentRect.height;if(j===y)return;j-e.itemSize===0?d.delete(q):d.set(q,j-e.itemSize);const le=j-y;if(le===0)return;O.add(oe,le);const ae=s.value;if(ae!=null){if(b===void 0){const Fe=O.sum(oe);ae.scrollTop>Fe&&ae.scrollBy(0,le)}else if(oeae.scrollTop+ae.offsetHeight&&ae.scrollBy(0,le)}G()}h.value++}const M=!sS();let E=!1;function P(q){var W;(W=e.onScroll)===null||W===void 0||W.call(e,q),(!M||!E)&&G()}function z(q){var W;if((W=e.onWheel)===null||W===void 0||W.call(e,q),M){const L=s.value;if(L!=null){if(q.deltaX===0&&(L.scrollTop===0&&q.deltaY<=0||L.scrollTop+L.offsetHeight>=L.scrollHeight&&q.deltaY>=0))return;q.preventDefault(),L.scrollTop+=q.deltaY/Y2(),L.scrollLeft+=q.deltaX/Y2(),G(),E=!0,os(()=>{E=!1})}}}function $(q){if(o||H(q.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(q.contentRect.height===u.value)return}else if(q.contentRect.height===u.value&&q.contentRect.width===l.value)return;u.value=q.contentRect.height,l.value=q.contentRect.width;const{onResize:W}=e;W!==void 0&&W(q)}function G(){const{value:q}=s;q!=null&&(f.value=q.scrollTop,a.value=q.scrollLeft)}function H(q){let W=q;for(;W!==null;){if(W.style.display==="none")return!0;W=W.parentElement}return!1}return{listHeight:u,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:D(()=>{const{itemResizable:q}=e,W=jt(c.value.sum());return h.value,[e.itemsStyle,{boxSizing:"content-box",width:jt(r.value),height:q?"":W,minHeight:q?W:"",paddingTop:jt(e.paddingTop),paddingBottom:jt(e.paddingBottom)}]}),visibleItemsStyle:D(()=>(h.value,{transform:`translateY(${jt(c.value.sum(p.value))})`})),viewportItems:g,listElRef:s,itemsElRef:A(null),scrollTo:v,handleListResize:$,handleListScroll:P,handleListWheel:z,handleItemResize:_}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:n}=this;return m(Rn,{onResize:this.handleListResize},{default:()=>{var r,i;return m("div",mo(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(Q2,{index:d,item:s}):void 0,h=l!=null?m(Q2,{index:d,item:s}):void 0,f=this.$slots.default({item:s,renderedCols:c,renderedItemWithCols:h,index:d})[0];return e?m(Rn,{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)])}})}}),cS=jn(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[jn("&::-webkit-scrollbar",{width:0,height:0})]),fS=ye({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=A(null);function t(r){!(r.currentTarget.offsetWidthh){const{updateCounter:M}=e;for(let E=k;E>=0;--E){const P=b-1-E;M!==void 0?M(P):d.textContent=`${P}`;const z=d.offsetWidth;if(g-=f[E],g+z<=h||E===0){v=!0,k=E-1,p&&(k===-1?(p.style.maxWidth=`${h-z}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:$}=e;$&&$(P);break}}}}const{onUpdateOverflow:C}=e;v?C!==void 0&&C(!0):(C!==void 0&&C(!1),d.setAttribute(ar,""))}const i=li();return hS.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Td,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"},[Es(e,"default"),e.counter?e.counter():m("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function n8(e){return e instanceof HTMLElement}function r8(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(n8(o)&&(a8(o)||i8(o)))return!0}return!1}function a8(e){if(!pS(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function pS(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 dl=[];const E6=ye({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=ai(),o=A(null),n=A(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return dl[dl.length-1]===t}function s(v){var b;v.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,v))}ut(()=>{lt(()=>e.active,v=>{v?(c(),wt("keydown",document,s)):(yt("keydown",document,s),r&&h())},{immediate:!0})}),Jt(()=>{yt("keydown",document,s),r&&h()});function u(v){if(!i&&l()){const b=d();if(b===null||b.contains(Hi(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(dl.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?f("first"):(v=O2(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),dl=dl.filter(C=>C!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(v=O2(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,C=n.value;if(b!==null&&C!==null){const k=d();if(k==null||k===C){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const w=v==="first"?r8(k):i8(k);i=!1,w||(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 l8(e,t){t&&(ut(()=>{const{value:o}=e;o&&td.registerHandler(o,t)}),Jt(()=>{const{value:o}=e;o&&td.unregisterHandler(o)}))}let ca=0,ef="",tf="",of="",nf="";const s1=A("0px");function s8(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=ef,t.style.overflow=tf,t.style.overflowX=of,t.style.overflowY=nf,s1.value="0px"};ut(()=>{o=lt(e,i=>{if(i){if(!ca){const a=window.innerWidth-t.offsetWidth;a>0&&(ef=t.style.marginRight,t.style.marginRight=`${a}px`,s1.value=`${a}px`),tf=t.style.overflow,of=t.style.overflowX,nf=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,ca++}else ca--,ca||r(),n=!1},{immediate:!0})}),Jt(()=>{o==null||o(),n&&(ca--,ca||r(),n=!1)})}const k6=A(!1);function rf(){k6.value=!0}function af(){k6.value=!1}let cl=0;function u8(){return wn&&(ii(()=>{cl||(window.addEventListener("compositionstart",rf),window.addEventListener("compositionend",af)),cl++}),Jt(()=>{cl<=1?(window.removeEventListener("compositionstart",rf),window.removeEventListener("compositionend",af),cl=0):cl--})),k6}function mS(e){const t={isDeactivated:!1};let o=!1;return r6(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),_d(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function d8(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 lf="n-form-item";function $n(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=He(lf,null);tt(lf,null);const i=D(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=D(n?()=>n(r):()=>{const{disabled:s}=e;return s!==void 0?s:r?r.disabled.value:!1}),l=D(()=>{const{status:s}=e;return s||(r==null?void 0:r.mergedValidationStatus.value)});return Jt(()=>{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 c8=typeof global=="object"&&global&&global.Object===Object&&global,gS=typeof self=="object"&&self&&self.Object===Object&&self,Dn=c8||gS||Function("return this")(),yn=Dn.Symbol,f8=Object.prototype,vS=f8.hasOwnProperty,bS=f8.toString,fl=yn?yn.toStringTag:void 0;function xS(e){var t=vS.call(e,fl),o=e[fl];try{e[fl]=void 0;var n=!0}catch{}var r=bS.call(e);return n&&(t?e[fl]=o:delete e[fl]),r}var yS=Object.prototype,CS=yS.toString;function wS(e){return CS.call(e)}var SS="[object Null]",FS="[object Undefined]",sf=yn?yn.toStringTag:void 0;function Xi(e){return e==null?e===void 0?FS:SS:sf&&sf in Object(e)?xS(e):wS(e)}function Yn(e){return e!=null&&typeof e=="object"}var ES="[object Symbol]";function Id(e){return typeof e=="symbol"||Yn(e)&&Xi(e)==ES}function _6(e,t){for(var o=-1,n=e==null?0:e.length,r=Array(n);++o0){if(++t>=JS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function nF(e){return function(){return e}}var od=function(){try{var e=Qi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),rF=od?function(e,t){return od(e,"toString",{configurable:!0,enumerable:!1,value:nF(t),writable:!0})}:M6,m8=oF(rF);function iF(e,t){for(var o=-1,n=e==null?0:e.length;++o-1&&e%1==0&&e-1&&e%1==0&&e<=cF}function Ka(e){return e!=null&&A6(e.length)&&!R6(e)}function fF(e,t,o){if(!an(o))return!1;var n=typeof t;return(n=="number"?Ka(o)&&z6(t,o.length):n=="string"&&t in o)?Ds(o[t],e):!1}function hF(e){return dF(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&&fF(o[0],o[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++n-1}function SE(e,t){var o=this.__data__,n=Od(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();++tr?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=n?e:E8(e,t,o)}var GE="\\ud800-\\udfff",qE="\\u0300-\\u036f",ZE="\\ufe20-\\ufe2f",XE="\\u20d0-\\u20ff",YE=qE+ZE+XE,QE="\\ufe0e\\ufe0f",JE="\\u200d",ek=RegExp("["+JE+GE+YE+QE+"]");function k8(e){return ek.test(e)}function tk(e){return e.split("")}var _8="\\ud800-\\udfff",ok="\\u0300-\\u036f",nk="\\ufe20-\\ufe2f",rk="\\u20d0-\\u20ff",ik=ok+nk+rk,ak="\\ufe0e\\ufe0f",lk="["+_8+"]",c1="["+ik+"]",f1="\\ud83c[\\udffb-\\udfff]",sk="(?:"+c1+"|"+f1+")",M8="[^"+_8+"]",R8="(?:\\ud83c[\\udde6-\\uddff]){2}",z8="[\\ud800-\\udbff][\\udc00-\\udfff]",uk="\\u200d",A8=sk+"?",P8="["+ak+"]?",dk="(?:"+uk+"(?:"+[M8,R8,z8].join("|")+")"+P8+A8+")*",ck=P8+A8+dk,fk="(?:"+[M8+c1+"?",c1,R8,z8,lk].join("|")+")",hk=RegExp(f1+"(?="+f1+")|"+fk+ck,"g");function pk(e){return e.match(hk)||[]}function mk(e){return k8(e)?pk(e):tk(e)}function gk(e){return function(t){t=Os(t);var o=k8(t)?mk(t):void 0,n=o?o[0]:t.charAt(0),r=o?KE(o,1).join(""):t.slice(1);return n[e]()+r}}var vk=gk("toUpperCase");function bk(e,t,o,n){for(var r=-1,i=e==null?0:e.length;++rl))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&NM?new rd:void 0;for(i.set(e,t),i.set(t,e);++c=t||E<0||c&&P>=i}function b(){var M=Gc();if(v(M))return C(M);l=setTimeout(b,g(M))}function C(M){return l=void 0,h&&n?f(M):(n=r=void 0,a)}function k(){l!==void 0&&clearTimeout(l),u=0,n=s=r=l=void 0}function w(){return l===void 0?a:C(Gc())}function _(){var M=Gc(),E=v(M);if(n=arguments,r=this,s=M,E){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=w,_}function v1(e,t,o){(o!==void 0&&!Ds(e[t],o)||o===void 0&&!(t in e))&&$s(e,t,o)}function BR(e){return Yn(e)&&Ka(e)}function b1(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function $R(e){return Ua(e,Is(e))}function DR(e,t,o,n,r,i,a){var l=b1(e,o),s=b1(t,o),u=a.get(s);if(u){v1(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&&ss(s),p=!h&&!f&&$6(s);d=s,h||f||p?Oo(l)?d=l:BR(l)?d=p8(l):f?(c=!1,d=G8(s,!0)):p?(c=!1,d=Q8(s,!0)):d=[]:F8(s)||ls(s)?(d=l,ls(l)?d=$R(l):(!an(l)||R6(l))&&(d=J8(s))):c=!1}c&&(a.set(s,d),r(d,s,n,i,a),a.delete(s)),v1(e,o,d)}function d7(e,t,o,n,r){e!==t&&a7(t,function(i,a){if(r||(r=new zn),an(i))DR(e,t,a,o,d7,n,r);else{var l=n?n(b1(e,a),i,a+"",e,t,r):void 0;l===void 0&&(l=i),v1(e,a,l)}},Is)}function TR(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function IR(e,t){var o=-1,n=Ka(e)?Array(e.length):[];return s7(e,function(r,i,a){n[++o]=t(r,i,a)}),n}function OR(e,t){var o=Oo(e)?_6:IR;return o(e,V6(t))}function LR(e,t){return t.length<2?e:I6(e,E8(t,0,-1))}function fa(e,t){return Nd(e,t)}var HR=a_(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),NR=RR(function(e,t,o){$s(e,o,t)});function VR(e,t){var o={};return t=V6(t),l7(e,function(n,r,i){$s(o,r,t(n,r,i))}),o}var Ei=hF(function(e,t,o){d7(e,t,o)});function WR(e,t){return t=Hd(t,e),e=LR(e,t),e==null||delete e[Ls(TR(t))]}function jR(e){return F8(e)?void 0:e}var UR=1,KR=2,GR=4,qR=HE(function(e,t){var o={};if(e==null)return o;var n=!1;t=_6(t,function(i){return i=Hd(i,e),n||(n=i.length>1),i}),Ua(e,Y8(e),o),n&&(o=Wl(o,UR|KR|GR,jR));for(var r=t.length;r--;)WR(o,t[r]);return o}),ZR="Expected a function";function Ou(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(ZR);return an(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),u7(e,t,{leading:n,maxWait:t,trailing:r})}function Vf(e){return Os(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:XR,fontFamily:YR,lineHeight:QR}=sn,c7=V("body",` margin: 0; @@ -207,7 +207,7 @@ ${t} pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); - `,[Hs(),V("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),AA=Object.assign(Object.assign({},Le.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=ye({name:"Scrollbar",props:AA,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=it(e),r=Kt("Scrollbar",n,t),i=A(null),a=A(null),l=A(null),s=A(null),u=A(null),d=A(null),c=A(null),h=A(null),f=A(null),p=A(null),g=A(null),v=A(0),b=A(0),C=A(!1),k=A(!1);let w=!1,_=!1,M,E,P=0,z=0,$=0,G=0;const H=vw(),q=Le("Scrollbar","-scrollbar",zA,Lo,e,t),W=D(()=>{const{value:ee}=h,{value:me}=d,{value:Pe}=p;return ee===null||me===null||Pe===null?0:Math.min(ee,Pe*ee/me+uo(q.value.self.width)*1.5)}),L=D(()=>`${W.value}px`),I=D(()=>{const{value:ee}=f,{value:me}=c,{value:Pe}=g;return ee===null||me===null||Pe===null?0:Pe*ee/me+uo(q.value.self.height)*1.5}),R=D(()=>`${I.value}px`),O=D(()=>{const{value:ee}=h,{value:me}=v,{value:Pe}=d,{value:Ve}=p;if(ee===null||Pe===null||Ve===null)return 0;{const Ue=Pe-ee;return Ue?me/Ue*(Ve-W.value):0}}),oe=D(()=>`${O.value}px`),y=D(()=>{const{value:ee}=f,{value:me}=b,{value:Pe}=c,{value:Ve}=g;if(ee===null||Pe===null||Ve===null)return 0;{const Ue=Pe-ee;return Ue?me/Ue*(Ve-I.value):0}}),j=D(()=>`${y.value}px`),X=D(()=>{const{value:ee}=h,{value:me}=d;return ee!==null&&me!==null&&me>ee}),le=D(()=>{const{value:ee}=f,{value:me}=c;return ee!==null&&me!==null&&me>ee}),ae=D(()=>{const{trigger:ee}=e;return ee==="none"||C.value}),Fe=D(()=>{const{trigger:ee}=e;return ee==="none"||k.value}),fe=D(()=>{const{container:ee}=e;return ee?ee():a.value}),ue=D(()=>{const{content:ee}=e;return ee?ee():l.value}),we=(ee,me)=>{if(!e.scrollable)return;if(typeof ee=="number"){U(ee,me??0,0,!1,"auto");return}const{left:Pe,top:Ve,index:Ue,elSize:qe,position:Ze,behavior:nt,el:Ct,debounce:Ot=!0}=ee;(Pe!==void 0||Ve!==void 0)&&U(Pe??0,Ve??0,0,!1,nt),Ct!==void 0?U(0,Ct.offsetTop,Ct.offsetHeight,Ot,nt):Ue!==void 0&&qe!==void 0?U(0,Ue*qe,qe,Ot,nt):Ze==="bottom"?U(0,Number.MAX_SAFE_INTEGER,0,!1,nt):Ze==="top"&&U(0,0,0,!1,nt)},ie=mS(()=>{e.container||we({top:v.value,left:b.value})}),be=()=>{ie.isDeactivated||de()},ze=ee=>{if(ie.isDeactivated)return;const{onResize:me}=e;me&&me(ee),de()},pe=(ee,me)=>{if(!e.scrollable)return;const{value:Pe}=fe;Pe&&(typeof ee=="object"?Pe.scrollBy(ee):Pe.scrollBy(ee,me||0))};function U(ee,me,Pe,Ve,Ue){const{value:qe}=fe;if(qe){if(Ve){const{scrollTop:Ze,offsetHeight:nt}=qe;if(me>Ze){me+Pe<=Ze+nt||qe.scrollTo({left:ee,top:me+Pe-nt,behavior:Ue});return}}qe.scrollTo({left:ee,top:me,behavior:Ue})}}function N(){ce(),Q(),de()}function ge(){Ce()}function Ce(){se(),te()}function se(){E!==void 0&&window.clearTimeout(E),E=window.setTimeout(()=>{k.value=!1},e.duration)}function te(){M!==void 0&&window.clearTimeout(M),M=window.setTimeout(()=>{C.value=!1},e.duration)}function ce(){M!==void 0&&window.clearTimeout(M),C.value=!0}function Q(){E!==void 0&&window.clearTimeout(E),k.value=!0}function re(ee){const{onScroll:me}=e;me&&me(ee),he()}function he(){const{value:ee}=fe;ee&&(v.value=ee.scrollTop,b.value=ee.scrollLeft*(r!=null&&r.value?-1:1))}function ne(){const{value:ee}=ue;ee&&(d.value=ee.offsetHeight,c.value=ee.offsetWidth);const{value:me}=fe;me&&(h.value=me.offsetHeight,f.value=me.offsetWidth);const{value:Pe}=u,{value:Ve}=s;Pe&&(g.value=Pe.offsetWidth),Ve&&(p.value=Ve.offsetHeight)}function Y(){const{value:ee}=fe;ee&&(v.value=ee.scrollTop,b.value=ee.scrollLeft*(r!=null&&r.value?-1:1),h.value=ee.offsetHeight,f.value=ee.offsetWidth,d.value=ee.scrollHeight,c.value=ee.scrollWidth);const{value:me}=u,{value:Pe}=s;me&&(g.value=me.offsetWidth),Pe&&(p.value=Pe.offsetHeight)}function de(){e.scrollable&&(e.useUnifiedContainer?Y():(ne(),he()))}function Ee(ee){var me;return!(!((me=i.value)===null||me===void 0)&&me.contains(Hi(ee)))}function Ie(ee){ee.preventDefault(),ee.stopPropagation(),_=!0,wt("mousemove",window,$e,!0),wt("mouseup",window,Ye,!0),z=b.value,$=r!=null&&r.value?window.innerWidth-ee.clientX:ee.clientX}function $e(ee){if(!_)return;M!==void 0&&window.clearTimeout(M),E!==void 0&&window.clearTimeout(E);const{value:me}=f,{value:Pe}=c,{value:Ve}=I;if(me===null||Pe===null)return;const qe=(r!=null&&r.value?window.innerWidth-ee.clientX-$:ee.clientX-$)*(Pe-me)/(me-Ve),Ze=Pe-me;let nt=z+qe;nt=Math.min(Ze,nt),nt=Math.max(nt,0);const{value:Ct}=fe;if(Ct){Ct.scrollLeft=nt*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:Ot}=e;Ot&&Ot(nt)}}function Ye(ee){ee.preventDefault(),ee.stopPropagation(),yt("mousemove",window,$e,!0),yt("mouseup",window,Ye,!0),_=!1,de(),Ee(ee)&&Ce()}function st(ee){ee.preventDefault(),ee.stopPropagation(),w=!0,wt("mousemove",window,Qe,!0),wt("mouseup",window,mt,!0),P=v.value,G=ee.clientY}function Qe(ee){if(!w)return;M!==void 0&&window.clearTimeout(M),E!==void 0&&window.clearTimeout(E);const{value:me}=h,{value:Pe}=d,{value:Ve}=W;if(me===null||Pe===null)return;const qe=(ee.clientY-G)*(Pe-me)/(me-Ve),Ze=Pe-me;let nt=P+qe;nt=Math.min(Ze,nt),nt=Math.max(nt,0);const{value:Ct}=fe;Ct&&(Ct.scrollTop=nt)}function mt(ee){ee.preventDefault(),ee.stopPropagation(),yt("mousemove",window,Qe,!0),yt("mouseup",window,mt,!0),w=!1,de(),Ee(ee)&&Ce()}kt(()=>{const{value:ee}=le,{value:me}=X,{value:Pe}=t,{value:Ve}=u,{value:Ue}=s;Ve&&(ee?Ve.classList.remove(`${Pe}-scrollbar-rail--disabled`):Ve.classList.add(`${Pe}-scrollbar-rail--disabled`)),Ue&&(me?Ue.classList.remove(`${Pe}-scrollbar-rail--disabled`):Ue.classList.add(`${Pe}-scrollbar-rail--disabled`))}),ut(()=>{e.container||de()}),Jt(()=>{M!==void 0&&window.clearTimeout(M),E!==void 0&&window.clearTimeout(E),yt("mousemove",window,Qe,!0),yt("mouseup",window,mt,!0)});const Je=D(()=>{const{common:{cubicBezierEaseInOut:ee},self:{color:me,colorHover:Pe,height:Ve,width:Ue,borderRadius:qe,railInsetHorizontalTop:Ze,railInsetHorizontalBottom:nt,railInsetVerticalRight:Ct,railInsetVerticalLeft:Ot,railColor:_t}}=q.value;return{"--n-scrollbar-bezier":ee,"--n-scrollbar-color":me,"--n-scrollbar-color-hover":Pe,"--n-scrollbar-border-radius":qe,"--n-scrollbar-width":Ue,"--n-scrollbar-height":Ve,"--n-scrollbar-rail-inset-horizontal-top":Ze,"--n-scrollbar-rail-inset-horizontal-bottom":nt,"--n-scrollbar-rail-inset-vertical-right":r!=null&&r.value?k2(Ct):Ct,"--n-scrollbar-rail-inset-vertical-left":r!=null&&r.value?k2(Ot):Ot,"--n-scrollbar-rail-color":_t}}),Ne=o?vt("scrollbar",void 0,Je,e):void 0;return Object.assign(Object.assign({},{scrollTo:we,scrollBy:pe,sync:de,syncUnifiedContainer:Y,handleMouseEnterWrapper:N,handleMouseLeaveWrapper:ge}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:u,needYBar:X,needXBar:le,yBarSizePx:L,xBarSizePx:R,yBarTopPx:oe,xBarLeftPx:j,isShowXBar:ae,isShowYBar:Fe,isIos:H,handleScroll:re,handleContentResize:be,handleContainerResize:ze,handleYScrollMouseDown:st,handleXScrollMouseDown:Ie,cssVars:o?void 0:Je,themeClass:Ne==null?void 0:Ne.themeClass,onRender:Ne==null?void 0:Ne.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?n1:go,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",mo(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(Rn,{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?n1:go,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(Rn,{onResize:this.handleContainerResize},{default:c});return i?m(ft,null,h,d(this.themeClass,this.cssVars)):h}}),w7=or,PA={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 S7(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:C,heightLarge:k,heightHuge:w}=e;return Object.assign(Object.assign({},PA),{optionFontSizeTiny:c,optionFontSizeSmall:h,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:v,optionHeightSmall:b,optionHeightMedium:C,optionHeightLarge:k,optionHeightHuge:w,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 Za={name:"InternalSelectMenu",common:je,peers:{Scrollbar:Lo,Empty:tr},self:S7},Ns={name:"InternalSelectMenu",common:We,peers:{Scrollbar:Zo,Empty:ea},self:S7};function BA(e,t){return m(go,{name:"fade-in-scale-up-transition"},{default:()=>e?m(Xt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>m(Dz)}):null})}const Qf=ye({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}=He(y6),f=bt(()=>{const{value:b}=o;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:C}=e;C.disabled||c(b,C)}function g(b){const{tmNode:C}=e;C.disabled||h(b,C)}function v(b){const{tmNode:C}=e,{value:k}=f;C.disabled||k||h(b,C)}return{multiple:n,isGrouped:bt(()=>{const{tmNode:b}=e,{parent:C}=b;return C&&C.rawNode.type==="group"}),showCheckmark:u,nodeProps:d,isPending:f,isSelected:bt(()=>{const{value:b}=t,{value:C}=n;if(b===null)return!1;const k=e.tmNode.rawNode[s.value];if(C){const{value:w}=r;return w.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=BA(o,e),f=s?[s(t,o),i&&h]:[oo(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:Ll([u,p==null?void 0:p.onClick]),onMouseenter:Ll([d,p==null?void 0:p.onMouseenter]),onMousemove:Ll([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}}),Jf=ye({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=He(y6);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):oo(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:e4,cubicBezierEaseOut:t4}=sn;function Pn({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} ${e4}, transform ${t} ${e4} ${r&&`,${r}`}`}),V("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${t4}, transform ${t} ${t4} ${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 $A=B("base-select-menu",` + `,[Hs(),V("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),AA=Object.assign(Object.assign({},Le.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=ye({name:"Scrollbar",props:AA,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=it(e),r=Kt("Scrollbar",n,t),i=A(null),a=A(null),l=A(null),s=A(null),u=A(null),d=A(null),c=A(null),h=A(null),f=A(null),p=A(null),g=A(null),v=A(0),b=A(0),C=A(!1),k=A(!1);let w=!1,_=!1,M,E,P=0,z=0,$=0,G=0;const H=vw(),q=Le("Scrollbar","-scrollbar",zA,Lo,e,t),W=D(()=>{const{value:ee}=h,{value:me}=d,{value:Pe}=p;return ee===null||me===null||Pe===null?0:Math.min(ee,Pe*ee/me+uo(q.value.self.width)*1.5)}),L=D(()=>`${W.value}px`),I=D(()=>{const{value:ee}=f,{value:me}=c,{value:Pe}=g;return ee===null||me===null||Pe===null?0:Pe*ee/me+uo(q.value.self.height)*1.5}),R=D(()=>`${I.value}px`),O=D(()=>{const{value:ee}=h,{value:me}=v,{value:Pe}=d,{value:Ve}=p;if(ee===null||Pe===null||Ve===null)return 0;{const Ue=Pe-ee;return Ue?me/Ue*(Ve-W.value):0}}),oe=D(()=>`${O.value}px`),y=D(()=>{const{value:ee}=f,{value:me}=b,{value:Pe}=c,{value:Ve}=g;if(ee===null||Pe===null||Ve===null)return 0;{const Ue=Pe-ee;return Ue?me/Ue*(Ve-I.value):0}}),j=D(()=>`${y.value}px`),X=D(()=>{const{value:ee}=h,{value:me}=d;return ee!==null&&me!==null&&me>ee}),le=D(()=>{const{value:ee}=f,{value:me}=c;return ee!==null&&me!==null&&me>ee}),ae=D(()=>{const{trigger:ee}=e;return ee==="none"||C.value}),Fe=D(()=>{const{trigger:ee}=e;return ee==="none"||k.value}),fe=D(()=>{const{container:ee}=e;return ee?ee():a.value}),ue=D(()=>{const{content:ee}=e;return ee?ee():l.value}),we=(ee,me)=>{if(!e.scrollable)return;if(typeof ee=="number"){U(ee,me??0,0,!1,"auto");return}const{left:Pe,top:Ve,index:Ue,elSize:qe,position:Ze,behavior:nt,el:Ct,debounce:Ot=!0}=ee;(Pe!==void 0||Ve!==void 0)&&U(Pe??0,Ve??0,0,!1,nt),Ct!==void 0?U(0,Ct.offsetTop,Ct.offsetHeight,Ot,nt):Ue!==void 0&&qe!==void 0?U(0,Ue*qe,qe,Ot,nt):Ze==="bottom"?U(0,Number.MAX_SAFE_INTEGER,0,!1,nt):Ze==="top"&&U(0,0,0,!1,nt)},ie=mS(()=>{e.container||we({top:v.value,left:b.value})}),be=()=>{ie.isDeactivated||de()},ze=ee=>{if(ie.isDeactivated)return;const{onResize:me}=e;me&&me(ee),de()},pe=(ee,me)=>{if(!e.scrollable)return;const{value:Pe}=fe;Pe&&(typeof ee=="object"?Pe.scrollBy(ee):Pe.scrollBy(ee,me||0))};function U(ee,me,Pe,Ve,Ue){const{value:qe}=fe;if(qe){if(Ve){const{scrollTop:Ze,offsetHeight:nt}=qe;if(me>Ze){me+Pe<=Ze+nt||qe.scrollTo({left:ee,top:me+Pe-nt,behavior:Ue});return}}qe.scrollTo({left:ee,top:me,behavior:Ue})}}function N(){ce(),Q(),de()}function ge(){Ce()}function Ce(){se(),te()}function se(){E!==void 0&&window.clearTimeout(E),E=window.setTimeout(()=>{k.value=!1},e.duration)}function te(){M!==void 0&&window.clearTimeout(M),M=window.setTimeout(()=>{C.value=!1},e.duration)}function ce(){M!==void 0&&window.clearTimeout(M),C.value=!0}function Q(){E!==void 0&&window.clearTimeout(E),k.value=!0}function re(ee){const{onScroll:me}=e;me&&me(ee),he()}function he(){const{value:ee}=fe;ee&&(v.value=ee.scrollTop,b.value=ee.scrollLeft*(r!=null&&r.value?-1:1))}function ne(){const{value:ee}=ue;ee&&(d.value=ee.offsetHeight,c.value=ee.offsetWidth);const{value:me}=fe;me&&(h.value=me.offsetHeight,f.value=me.offsetWidth);const{value:Pe}=u,{value:Ve}=s;Pe&&(g.value=Pe.offsetWidth),Ve&&(p.value=Ve.offsetHeight)}function Y(){const{value:ee}=fe;ee&&(v.value=ee.scrollTop,b.value=ee.scrollLeft*(r!=null&&r.value?-1:1),h.value=ee.offsetHeight,f.value=ee.offsetWidth,d.value=ee.scrollHeight,c.value=ee.scrollWidth);const{value:me}=u,{value:Pe}=s;me&&(g.value=me.offsetWidth),Pe&&(p.value=Pe.offsetHeight)}function de(){e.scrollable&&(e.useUnifiedContainer?Y():(ne(),he()))}function Ee(ee){var me;return!(!((me=i.value)===null||me===void 0)&&me.contains(Hi(ee)))}function Ie(ee){ee.preventDefault(),ee.stopPropagation(),_=!0,wt("mousemove",window,$e,!0),wt("mouseup",window,Qe,!0),z=b.value,$=r!=null&&r.value?window.innerWidth-ee.clientX:ee.clientX}function $e(ee){if(!_)return;M!==void 0&&window.clearTimeout(M),E!==void 0&&window.clearTimeout(E);const{value:me}=f,{value:Pe}=c,{value:Ve}=I;if(me===null||Pe===null)return;const qe=(r!=null&&r.value?window.innerWidth-ee.clientX-$:ee.clientX-$)*(Pe-me)/(me-Ve),Ze=Pe-me;let nt=z+qe;nt=Math.min(Ze,nt),nt=Math.max(nt,0);const{value:Ct}=fe;if(Ct){Ct.scrollLeft=nt*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:Ot}=e;Ot&&Ot(nt)}}function Qe(ee){ee.preventDefault(),ee.stopPropagation(),yt("mousemove",window,$e,!0),yt("mouseup",window,Qe,!0),_=!1,de(),Ee(ee)&&Ce()}function st(ee){ee.preventDefault(),ee.stopPropagation(),w=!0,wt("mousemove",window,Je,!0),wt("mouseup",window,mt,!0),P=v.value,G=ee.clientY}function Je(ee){if(!w)return;M!==void 0&&window.clearTimeout(M),E!==void 0&&window.clearTimeout(E);const{value:me}=h,{value:Pe}=d,{value:Ve}=W;if(me===null||Pe===null)return;const qe=(ee.clientY-G)*(Pe-me)/(me-Ve),Ze=Pe-me;let nt=P+qe;nt=Math.min(Ze,nt),nt=Math.max(nt,0);const{value:Ct}=fe;Ct&&(Ct.scrollTop=nt)}function mt(ee){ee.preventDefault(),ee.stopPropagation(),yt("mousemove",window,Je,!0),yt("mouseup",window,mt,!0),w=!1,de(),Ee(ee)&&Ce()}kt(()=>{const{value:ee}=le,{value:me}=X,{value:Pe}=t,{value:Ve}=u,{value:Ue}=s;Ve&&(ee?Ve.classList.remove(`${Pe}-scrollbar-rail--disabled`):Ve.classList.add(`${Pe}-scrollbar-rail--disabled`)),Ue&&(me?Ue.classList.remove(`${Pe}-scrollbar-rail--disabled`):Ue.classList.add(`${Pe}-scrollbar-rail--disabled`))}),ut(()=>{e.container||de()}),Jt(()=>{M!==void 0&&window.clearTimeout(M),E!==void 0&&window.clearTimeout(E),yt("mousemove",window,Je,!0),yt("mouseup",window,mt,!0)});const et=D(()=>{const{common:{cubicBezierEaseInOut:ee},self:{color:me,colorHover:Pe,height:Ve,width:Ue,borderRadius:qe,railInsetHorizontalTop:Ze,railInsetHorizontalBottom:nt,railInsetVerticalRight:Ct,railInsetVerticalLeft:Ot,railColor:_t}}=q.value;return{"--n-scrollbar-bezier":ee,"--n-scrollbar-color":me,"--n-scrollbar-color-hover":Pe,"--n-scrollbar-border-radius":qe,"--n-scrollbar-width":Ue,"--n-scrollbar-height":Ve,"--n-scrollbar-rail-inset-horizontal-top":Ze,"--n-scrollbar-rail-inset-horizontal-bottom":nt,"--n-scrollbar-rail-inset-vertical-right":r!=null&&r.value?k2(Ct):Ct,"--n-scrollbar-rail-inset-vertical-left":r!=null&&r.value?k2(Ot):Ot,"--n-scrollbar-rail-color":_t}}),Ne=o?vt("scrollbar",void 0,et,e):void 0;return Object.assign(Object.assign({},{scrollTo:we,scrollBy:pe,sync:de,syncUnifiedContainer:Y,handleMouseEnterWrapper:N,handleMouseLeaveWrapper:ge}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:u,needYBar:X,needXBar:le,yBarSizePx:L,xBarSizePx:R,yBarTopPx:oe,xBarLeftPx:j,isShowXBar:ae,isShowYBar:Fe,isIos:H,handleScroll:re,handleContentResize:be,handleContainerResize:ze,handleYScrollMouseDown:st,handleXScrollMouseDown:Ie,cssVars:o?void 0:et,themeClass:Ne==null?void 0:Ne.themeClass,onRender:Ne==null?void 0:Ne.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?n1:go,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",mo(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(Rn,{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?n1:go,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(Rn,{onResize:this.handleContainerResize},{default:c});return i?m(ft,null,h,d(this.themeClass,this.cssVars)):h}}),w7=or,PA={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 S7(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:C,heightLarge:k,heightHuge:w}=e;return Object.assign(Object.assign({},PA),{optionFontSizeTiny:c,optionFontSizeSmall:h,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:v,optionHeightSmall:b,optionHeightMedium:C,optionHeightLarge:k,optionHeightHuge:w,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 Za={name:"InternalSelectMenu",common:je,peers:{Scrollbar:Lo,Empty:tr},self:S7},Ns={name:"InternalSelectMenu",common:We,peers:{Scrollbar:Zo,Empty:ea},self:S7};function BA(e,t){return m(go,{name:"fade-in-scale-up-transition"},{default:()=>e?m(Xt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>m(Dz)}):null})}const Qf=ye({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}=He(y6),f=bt(()=>{const{value:b}=o;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:C}=e;C.disabled||c(b,C)}function g(b){const{tmNode:C}=e;C.disabled||h(b,C)}function v(b){const{tmNode:C}=e,{value:k}=f;C.disabled||k||h(b,C)}return{multiple:n,isGrouped:bt(()=>{const{tmNode:b}=e,{parent:C}=b;return C&&C.rawNode.type==="group"}),showCheckmark:u,nodeProps:d,isPending:f,isSelected:bt(()=>{const{value:b}=t,{value:C}=n;if(b===null)return!1;const k=e.tmNode.rawNode[s.value];if(C){const{value:w}=r;return w.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=BA(o,e),f=s?[s(t,o),i&&h]:[oo(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:Ll([u,p==null?void 0:p.onClick]),onMouseenter:Ll([d,p==null?void 0:p.onMouseenter]),onMousemove:Ll([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}}),Jf=ye({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=He(y6);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):oo(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:e4,cubicBezierEaseOut:t4}=sn;function Pn({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} ${e4}, transform ${t} ${e4} ${r&&`,${r}`}`}),V("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${t4}, transform ${t} ${t4} ${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 $A=B("base-select-menu",` line-height: 1.5; outline: none; z-index: 0; @@ -731,7 +731,7 @@ ${t} line-height: 1.25; text-overflow: ellipsis; overflow: hidden; - `)])])]),XA=ye({name:"InternalSelection",props:Object.assign(Object.assign({},Le.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}=it(e),n=Kt("InternalSelection",o,t),r=A(null),i=A(null),a=A(null),l=A(null),s=A(null),u=A(null),d=A(null),c=A(null),h=A(null),f=A(null),p=A(!1),g=A(!1),v=A(!1),b=Le("InternalSelection","-internal-selection",ZA,Kd,e,Te(e,"clsPrefix")),C=D(()=>e.clearable&&!e.disabled&&(v.value||e.active)),k=D(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):oo(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),w=D(()=>{const Y=e.selectedOption;if(Y)return Y[e.labelField]}),_=D(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function M(){var Y;const{value:de}=r;if(de){const{value:Ee}=i;Ee&&(Ee.style.width=`${de.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Y=h.value)===null||Y===void 0||Y.sync({showAllItemsBeforeCalculate:!1})))}}function E(){const{value:Y}=f;Y&&(Y.style.display="none")}function P(){const{value:Y}=f;Y&&(Y.style.display="inline-block")}lt(Te(e,"active"),Y=>{Y||E()}),lt(Te(e,"pattern"),()=>{e.multiple&&Rt(M)});function z(Y){const{onFocus:de}=e;de&&de(Y)}function $(Y){const{onBlur:de}=e;de&&de(Y)}function G(Y){const{onDeleteOption:de}=e;de&&de(Y)}function H(Y){const{onClear:de}=e;de&&de(Y)}function q(Y){const{onPatternInput:de}=e;de&&de(Y)}function W(Y){var de;(!Y.relatedTarget||!(!((de=a.value)===null||de===void 0)&&de.contains(Y.relatedTarget)))&&z(Y)}function L(Y){var de;!((de=a.value)===null||de===void 0)&&de.contains(Y.relatedTarget)||$(Y)}function I(Y){H(Y)}function R(){v.value=!0}function O(){v.value=!1}function oe(Y){!e.active||!e.filterable||Y.target!==i.value&&Y.preventDefault()}function y(Y){G(Y)}const j=A(!1);function X(Y){if(Y.key==="Backspace"&&!j.value&&!e.pattern.length){const{selectedOptions:de}=e;de!=null&&de.length&&y(de[de.length-1])}}let le=null;function ae(Y){const{value:de}=r;if(de){const Ee=Y.target.value;de.textContent=Ee,M()}e.ignoreComposition&&j.value?le=Y:q(Y)}function Fe(){j.value=!0}function fe(){j.value=!1,e.ignoreComposition&&q(le),le=null}function ue(Y){var de;g.value=!0,(de=e.onPatternFocus)===null||de===void 0||de.call(e,Y)}function we(Y){var de;g.value=!1,(de=e.onPatternBlur)===null||de===void 0||de.call(e,Y)}function ie(){var Y,de;if(e.filterable)g.value=!1,(Y=u.value)===null||Y===void 0||Y.blur(),(de=i.value)===null||de===void 0||de.blur();else if(e.multiple){const{value:Ee}=l;Ee==null||Ee.blur()}else{const{value:Ee}=s;Ee==null||Ee.blur()}}function be(){var Y,de,Ee;e.filterable?(g.value=!1,(Y=u.value)===null||Y===void 0||Y.focus()):e.multiple?(de=l.value)===null||de===void 0||de.focus():(Ee=s.value)===null||Ee===void 0||Ee.focus()}function ze(){const{value:Y}=i;Y&&(P(),Y.focus())}function pe(){const{value:Y}=i;Y&&Y.blur()}function U(Y){const{value:de}=d;de&&de.setTextContent(`+${Y}`)}function N(){const{value:Y}=c;return Y}function ge(){return i.value}let Ce=null;function se(){Ce!==null&&window.clearTimeout(Ce)}function te(){e.active||(se(),Ce=window.setTimeout(()=>{_.value&&(p.value=!0)},100))}function ce(){se()}function Q(Y){Y||(se(),p.value=!1)}lt(_,Y=>{Y||(p.value=!1)}),ut(()=>{kt(()=>{const Y=u.value;Y&&(e.disabled?Y.removeAttribute("tabindex"):Y.tabIndex=g.value?-1:0)})}),l8(a,e.onResize);const{inlineThemeDisabled:re}=e,he=D(()=>{const{size:Y}=e,{common:{cubicBezierEaseInOut:de},self:{borderRadius:Ee,color:Ie,placeholderColor:$e,textColor:Ye,paddingSingle:st,paddingMultiple:Qe,caretColor:mt,colorDisabled:Je,textColorDisabled:Ne,placeholderColorDisabled:ot,colorActive:ee,boxShadowFocus:me,boxShadowActive:Pe,boxShadowHover:Ve,border:Ue,borderFocus:qe,borderHover:Ze,borderActive:nt,arrowColor:Ct,arrowColorDisabled:Ot,loadingColor:_t,colorActiveWarning:yo,boxShadowFocusWarning:Po,boxShadowActiveWarning:Bo,boxShadowHoverWarning:No,borderWarning:Vo,borderFocusWarning:un,borderHoverWarning:dn,borderActiveWarning:ve,colorActiveError:De,boxShadowFocusError:at,boxShadowActiveError:St,boxShadowHoverError:Vt,borderError:$t,borderFocusError:eo,borderHoverError:io,borderActiveError:Fn,clearColor:nr,clearColorHover:rr,clearColorPressed:ci,clearSize:ol,arrowSize:nl,[_e("height",Y)]:rl,[_e("fontSize",Y)]:il}}=b.value,Mr=Mo(st),Rr=Mo(Qe);return{"--n-bezier":de,"--n-border":Ue,"--n-border-active":nt,"--n-border-focus":qe,"--n-border-hover":Ze,"--n-border-radius":Ee,"--n-box-shadow-active":Pe,"--n-box-shadow-focus":me,"--n-box-shadow-hover":Ve,"--n-caret-color":mt,"--n-color":Ie,"--n-color-active":ee,"--n-color-disabled":Je,"--n-font-size":il,"--n-height":rl,"--n-padding-single-top":Mr.top,"--n-padding-multiple-top":Rr.top,"--n-padding-single-right":Mr.right,"--n-padding-multiple-right":Rr.right,"--n-padding-single-left":Mr.left,"--n-padding-multiple-left":Rr.left,"--n-padding-single-bottom":Mr.bottom,"--n-padding-multiple-bottom":Rr.bottom,"--n-placeholder-color":$e,"--n-placeholder-color-disabled":ot,"--n-text-color":Ye,"--n-text-color-disabled":Ne,"--n-arrow-color":Ct,"--n-arrow-color-disabled":Ot,"--n-loading-color":_t,"--n-color-active-warning":yo,"--n-box-shadow-focus-warning":Po,"--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":ve,"--n-color-active-error":De,"--n-box-shadow-focus-error":at,"--n-box-shadow-active-error":St,"--n-box-shadow-hover-error":Vt,"--n-border-error":$t,"--n-border-focus-error":eo,"--n-border-hover-error":io,"--n-border-active-error":Fn,"--n-clear-size":ol,"--n-clear-color":nr,"--n-clear-color-hover":rr,"--n-clear-color-pressed":ci,"--n-arrow-size":nl}}),ne=re?vt("internal-selection",D(()=>e.size[0]),he,e):void 0;return{mergedTheme:b,mergedClearable:C,mergedClsPrefix:t,rtlEnabled:n,patternInputFocused:g,filterablePlaceholder:k,label:w,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:oe,handleFocusin:W,handleClear:I,handleMouseEnter:R,handleMouseLeave:O,handleDeleteOption:y,handlePatternKeyDown:X,handlePatternInputInput:ae,handlePatternInputBlur:we,handlePatternInputFocus:ue,handleMouseEnterCounter:te,handleMouseLeaveCounter:ce,handleFocusout:L,handleCompositionEnd:fe,handleCompositionStart:Fe,onPopoverUpdateShow:Q,focus:be,focusInput:ze,blur:ie,blurInput:pe,updateCounter:U,getCounter:N,getTail:ge,renderLabel:e.renderLabel,cssVars:re?void 0:he,themeClass:ne==null?void 0:ne.themeClass,onRender:ne==null?void 0:ne.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(n1,null,{default:()=>m(P7,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,C;return(C=(b=this.$slots).arrow)===null||C===void 0?void 0:C.call(b)}})});let v;if(t){const{labelField:b}=this,C=q=>m("div",{class:`${l}-base-selection-tag-wrapper`,key:q.value},d?d({option:q,handleClose:()=>{this.handleDeleteOption(q)}}):m(Lu,{size:o,closable:!q.disabled,disabled:n,onClose:()=>{this.handleDeleteOption(q)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>c?c(q,!0):oo(q[b],q,!0)})),k=()=>(f?this.selectedOptions.slice(0,i):this.selectedOptions).map(C),w=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(Lu,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let M;if(f){const q=this.selectedOptions.length-i;q>0&&(M=m("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},m(Lu,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${q}`})))}const E=h?r?m(J2,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:k,counter:_,tail:()=>w}):m(J2,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:k,counter:_}):f&&M?k().concat(M):k(),P=p?()=>m("div",{class:`${l}-base-selection-popover`},h?k():this.selectedOptions.map(C)):void 0,z=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,G=(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,H=r?m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},E,h?null:w,g):m("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:n?void 0:0},E,g);v=m(ft,null,p?m(Xa,Object.assign({},z,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>H,default:P}):H,G)}else if(r){const b=this.pattern||this.isComposing,C=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:e1(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):oo(this.label,this.selectedOption,!0))):null,C?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:e1(this.label),key:"input"},m("div",{class:`${l}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):oo(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)}}),o4=ye({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=A(null),o=A(e.value),n=A(e.value),r=A("up"),i=A(!1),a=D(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${r.value}-scroll`:null),l=D(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${r.value}-scroll`:null);lt(Te(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 $7({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",` + `)])])]),XA=ye({name:"InternalSelection",props:Object.assign(Object.assign({},Le.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}=it(e),n=Kt("InternalSelection",o,t),r=A(null),i=A(null),a=A(null),l=A(null),s=A(null),u=A(null),d=A(null),c=A(null),h=A(null),f=A(null),p=A(!1),g=A(!1),v=A(!1),b=Le("InternalSelection","-internal-selection",ZA,Kd,e,Te(e,"clsPrefix")),C=D(()=>e.clearable&&!e.disabled&&(v.value||e.active)),k=D(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):oo(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),w=D(()=>{const Y=e.selectedOption;if(Y)return Y[e.labelField]}),_=D(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function M(){var Y;const{value:de}=r;if(de){const{value:Ee}=i;Ee&&(Ee.style.width=`${de.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Y=h.value)===null||Y===void 0||Y.sync({showAllItemsBeforeCalculate:!1})))}}function E(){const{value:Y}=f;Y&&(Y.style.display="none")}function P(){const{value:Y}=f;Y&&(Y.style.display="inline-block")}lt(Te(e,"active"),Y=>{Y||E()}),lt(Te(e,"pattern"),()=>{e.multiple&&Rt(M)});function z(Y){const{onFocus:de}=e;de&&de(Y)}function $(Y){const{onBlur:de}=e;de&&de(Y)}function G(Y){const{onDeleteOption:de}=e;de&&de(Y)}function H(Y){const{onClear:de}=e;de&&de(Y)}function q(Y){const{onPatternInput:de}=e;de&&de(Y)}function W(Y){var de;(!Y.relatedTarget||!(!((de=a.value)===null||de===void 0)&&de.contains(Y.relatedTarget)))&&z(Y)}function L(Y){var de;!((de=a.value)===null||de===void 0)&&de.contains(Y.relatedTarget)||$(Y)}function I(Y){H(Y)}function R(){v.value=!0}function O(){v.value=!1}function oe(Y){!e.active||!e.filterable||Y.target!==i.value&&Y.preventDefault()}function y(Y){G(Y)}const j=A(!1);function X(Y){if(Y.key==="Backspace"&&!j.value&&!e.pattern.length){const{selectedOptions:de}=e;de!=null&&de.length&&y(de[de.length-1])}}let le=null;function ae(Y){const{value:de}=r;if(de){const Ee=Y.target.value;de.textContent=Ee,M()}e.ignoreComposition&&j.value?le=Y:q(Y)}function Fe(){j.value=!0}function fe(){j.value=!1,e.ignoreComposition&&q(le),le=null}function ue(Y){var de;g.value=!0,(de=e.onPatternFocus)===null||de===void 0||de.call(e,Y)}function we(Y){var de;g.value=!1,(de=e.onPatternBlur)===null||de===void 0||de.call(e,Y)}function ie(){var Y,de;if(e.filterable)g.value=!1,(Y=u.value)===null||Y===void 0||Y.blur(),(de=i.value)===null||de===void 0||de.blur();else if(e.multiple){const{value:Ee}=l;Ee==null||Ee.blur()}else{const{value:Ee}=s;Ee==null||Ee.blur()}}function be(){var Y,de,Ee;e.filterable?(g.value=!1,(Y=u.value)===null||Y===void 0||Y.focus()):e.multiple?(de=l.value)===null||de===void 0||de.focus():(Ee=s.value)===null||Ee===void 0||Ee.focus()}function ze(){const{value:Y}=i;Y&&(P(),Y.focus())}function pe(){const{value:Y}=i;Y&&Y.blur()}function U(Y){const{value:de}=d;de&&de.setTextContent(`+${Y}`)}function N(){const{value:Y}=c;return Y}function ge(){return i.value}let Ce=null;function se(){Ce!==null&&window.clearTimeout(Ce)}function te(){e.active||(se(),Ce=window.setTimeout(()=>{_.value&&(p.value=!0)},100))}function ce(){se()}function Q(Y){Y||(se(),p.value=!1)}lt(_,Y=>{Y||(p.value=!1)}),ut(()=>{kt(()=>{const Y=u.value;Y&&(e.disabled?Y.removeAttribute("tabindex"):Y.tabIndex=g.value?-1:0)})}),l8(a,e.onResize);const{inlineThemeDisabled:re}=e,he=D(()=>{const{size:Y}=e,{common:{cubicBezierEaseInOut:de},self:{borderRadius:Ee,color:Ie,placeholderColor:$e,textColor:Qe,paddingSingle:st,paddingMultiple:Je,caretColor:mt,colorDisabled:et,textColorDisabled:Ne,placeholderColorDisabled:ot,colorActive:ee,boxShadowFocus:me,boxShadowActive:Pe,boxShadowHover:Ve,border:Ue,borderFocus:qe,borderHover:Ze,borderActive:nt,arrowColor:Ct,arrowColorDisabled:Ot,loadingColor:_t,colorActiveWarning:yo,boxShadowFocusWarning:Po,boxShadowActiveWarning:Bo,boxShadowHoverWarning:No,borderWarning:Vo,borderFocusWarning:un,borderHoverWarning:dn,borderActiveWarning:ve,colorActiveError:De,boxShadowFocusError:at,boxShadowActiveError:St,boxShadowHoverError:Vt,borderError:$t,borderFocusError:eo,borderHoverError:io,borderActiveError:Fn,clearColor:nr,clearColorHover:rr,clearColorPressed:ci,clearSize:ol,arrowSize:nl,[_e("height",Y)]:rl,[_e("fontSize",Y)]:il}}=b.value,Mr=Mo(st),Rr=Mo(Je);return{"--n-bezier":de,"--n-border":Ue,"--n-border-active":nt,"--n-border-focus":qe,"--n-border-hover":Ze,"--n-border-radius":Ee,"--n-box-shadow-active":Pe,"--n-box-shadow-focus":me,"--n-box-shadow-hover":Ve,"--n-caret-color":mt,"--n-color":Ie,"--n-color-active":ee,"--n-color-disabled":et,"--n-font-size":il,"--n-height":rl,"--n-padding-single-top":Mr.top,"--n-padding-multiple-top":Rr.top,"--n-padding-single-right":Mr.right,"--n-padding-multiple-right":Rr.right,"--n-padding-single-left":Mr.left,"--n-padding-multiple-left":Rr.left,"--n-padding-single-bottom":Mr.bottom,"--n-padding-multiple-bottom":Rr.bottom,"--n-placeholder-color":$e,"--n-placeholder-color-disabled":ot,"--n-text-color":Qe,"--n-text-color-disabled":Ne,"--n-arrow-color":Ct,"--n-arrow-color-disabled":Ot,"--n-loading-color":_t,"--n-color-active-warning":yo,"--n-box-shadow-focus-warning":Po,"--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":ve,"--n-color-active-error":De,"--n-box-shadow-focus-error":at,"--n-box-shadow-active-error":St,"--n-box-shadow-hover-error":Vt,"--n-border-error":$t,"--n-border-focus-error":eo,"--n-border-hover-error":io,"--n-border-active-error":Fn,"--n-clear-size":ol,"--n-clear-color":nr,"--n-clear-color-hover":rr,"--n-clear-color-pressed":ci,"--n-arrow-size":nl}}),ne=re?vt("internal-selection",D(()=>e.size[0]),he,e):void 0;return{mergedTheme:b,mergedClearable:C,mergedClsPrefix:t,rtlEnabled:n,patternInputFocused:g,filterablePlaceholder:k,label:w,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:oe,handleFocusin:W,handleClear:I,handleMouseEnter:R,handleMouseLeave:O,handleDeleteOption:y,handlePatternKeyDown:X,handlePatternInputInput:ae,handlePatternInputBlur:we,handlePatternInputFocus:ue,handleMouseEnterCounter:te,handleMouseLeaveCounter:ce,handleFocusout:L,handleCompositionEnd:fe,handleCompositionStart:Fe,onPopoverUpdateShow:Q,focus:be,focusInput:ze,blur:ie,blurInput:pe,updateCounter:U,getCounter:N,getTail:ge,renderLabel:e.renderLabel,cssVars:re?void 0:he,themeClass:ne==null?void 0:ne.themeClass,onRender:ne==null?void 0:ne.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(n1,null,{default:()=>m(P7,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,C;return(C=(b=this.$slots).arrow)===null||C===void 0?void 0:C.call(b)}})});let v;if(t){const{labelField:b}=this,C=q=>m("div",{class:`${l}-base-selection-tag-wrapper`,key:q.value},d?d({option:q,handleClose:()=>{this.handleDeleteOption(q)}}):m(Lu,{size:o,closable:!q.disabled,disabled:n,onClose:()=>{this.handleDeleteOption(q)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>c?c(q,!0):oo(q[b],q,!0)})),k=()=>(f?this.selectedOptions.slice(0,i):this.selectedOptions).map(C),w=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(Lu,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let M;if(f){const q=this.selectedOptions.length-i;q>0&&(M=m("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},m(Lu,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${q}`})))}const E=h?r?m(J2,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:k,counter:_,tail:()=>w}):m(J2,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:k,counter:_}):f&&M?k().concat(M):k(),P=p?()=>m("div",{class:`${l}-base-selection-popover`},h?k():this.selectedOptions.map(C)):void 0,z=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,G=(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,H=r?m("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},E,h?null:w,g):m("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:n?void 0:0},E,g);v=m(ft,null,p?m(Xa,Object.assign({},z,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>H,default:P}):H,G)}else if(r){const b=this.pattern||this.isComposing,C=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:e1(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):oo(this.label,this.selectedOption,!0))):null,C?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:e1(this.label),key:"input"},m("div",{class:`${l}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):c?c(this.selectedOption,!0):oo(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)}}),o4=ye({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=A(null),o=A(e.value),n=A(e.value),r=A("up"),i=A(!1),a=D(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${r.value}-scroll`:null),l=D(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${r.value}-scroll`:null);lt(Te(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 $7({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; @@ -1131,8 +1131,8 @@ ${t} border: var(--n-border-focus-${e}); `)])])]))]),vP=B("input",[J("disabled",[Z("input-el, textarea-el",` -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),bP=Object.assign(Object.assign({},Le.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=ye({name:"Input",props:bP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=it(e),i=Le("Input","-input",gP,Xo,e,t);H7&&Er("-input-safari",vP,t);const a=A(null),l=A(null),s=A(null),u=A(null),d=A(null),c=A(null),h=A(null),f=mP(h),p=A(null),{localeRef:g}=Fr("Input"),v=A(e.defaultValue),b=Te(e,"value"),C=ro(b,v),k=$n(e),{mergedSizeRef:w,mergedDisabledRef:_,mergedStatusRef:M}=k,E=A(!1),P=A(!1),z=A(!1),$=A(!1);let G=null;const H=D(()=>{const{placeholder:ve,pair:De}=e;return De?Array.isArray(ve)?ve:ve===void 0?["",""]:[ve,ve]:ve===void 0?[g.value.placeholder]:[ve]}),q=D(()=>{const{value:ve}=z,{value:De}=C,{value:at}=H;return!ve&&(mu(De)||Array.isArray(De)&&mu(De[0]))&&at[0]}),W=D(()=>{const{value:ve}=z,{value:De}=C,{value:at}=H;return!ve&&at[1]&&(mu(De)||Array.isArray(De)&&mu(De[1]))}),L=bt(()=>e.internalForceFocus||E.value),I=bt(()=>{if(_.value||e.readonly||!e.clearable||!L.value&&!P.value)return!1;const{value:ve}=C,{value:De}=L;return e.pair?!!(Array.isArray(ve)&&(ve[0]||ve[1]))&&(P.value||De):!!ve&&(P.value||De)}),R=D(()=>{const{showPasswordOn:ve}=e;if(ve)return ve;if(e.showPasswordToggle)return"click"}),O=A(!1),oe=D(()=>{const{textDecoration:ve}=e;return ve?Array.isArray(ve)?ve.map(De=>({textDecoration:De})):[{textDecoration:ve}]:["",""]}),y=A(void 0),j=()=>{var ve,De;if(e.type==="textarea"){const{autosize:at}=e;if(at&&(y.value=(De=(ve=p.value)===null||ve===void 0?void 0:ve.$el)===null||De===void 0?void 0:De.offsetWidth),!l.value||typeof at=="boolean")return;const{paddingTop:St,paddingBottom:Vt,lineHeight:$t}=window.getComputedStyle(l.value),eo=Number(St.slice(0,-2)),io=Number(Vt.slice(0,-2)),Fn=Number($t.slice(0,-2)),{value:nr}=s;if(!nr)return;if(at.minRows){const rr=Math.max(at.minRows,1),ci=`${eo+io+Fn*rr}px`;nr.style.minHeight=ci}if(at.maxRows){const rr=`${eo+io+Fn*at.maxRows}px`;nr.style.maxHeight=rr}}},X=D(()=>{const{maxlength:ve}=e;return ve===void 0?void 0:Number(ve)});ut(()=>{const{value:ve}=C;Array.isArray(ve)||Ct(ve)});const le=xr().proxy;function ae(ve,De){const{onUpdateValue:at,"onUpdate:value":St,onInput:Vt}=e,{nTriggerFormInput:$t}=k;at&&Ae(at,ve,De),St&&Ae(St,ve,De),Vt&&Ae(Vt,ve,De),v.value=ve,$t()}function Fe(ve,De){const{onChange:at}=e,{nTriggerFormChange:St}=k;at&&Ae(at,ve,De),v.value=ve,St()}function fe(ve){const{onBlur:De}=e,{nTriggerFormBlur:at}=k;De&&Ae(De,ve),at()}function ue(ve){const{onFocus:De}=e,{nTriggerFormFocus:at}=k;De&&Ae(De,ve),at()}function we(ve){const{onClear:De}=e;De&&Ae(De,ve)}function ie(ve){const{onInputBlur:De}=e;De&&Ae(De,ve)}function be(ve){const{onInputFocus:De}=e;De&&Ae(De,ve)}function ze(){const{onDeactivate:ve}=e;ve&&Ae(ve)}function pe(){const{onActivate:ve}=e;ve&&Ae(ve)}function U(ve){const{onClick:De}=e;De&&Ae(De,ve)}function N(ve){const{onWrapperFocus:De}=e;De&&Ae(De,ve)}function ge(ve){const{onWrapperBlur:De}=e;De&&Ae(De,ve)}function Ce(){z.value=!0}function se(ve){z.value=!1,ve.target===c.value?te(ve,1):te(ve,0)}function te(ve,De=0,at="input"){const St=ve.target.value;if(Ct(St),ve instanceof InputEvent&&!ve.isComposing&&(z.value=!1),e.type==="textarea"){const{value:$t}=p;$t&&$t.syncUnifiedContainer()}if(G=St,z.value)return;f.recordCursor();const Vt=ce(St);if(Vt)if(!e.pair)at==="input"?ae(St,{source:De}):Fe(St,{source:De});else{let{value:$t}=C;Array.isArray($t)?$t=[$t[0],$t[1]]:$t=["",""],$t[De]=St,at==="input"?ae($t,{source:De}):Fe($t,{source:De})}le.$forceUpdate(),Vt||Rt(f.restoreCursor)}function ce(ve){const{countGraphemes:De,maxlength:at,minlength:St}=e;if(De){let $t;if(at!==void 0&&($t===void 0&&($t=De(ve)),$t>Number(at))||St!==void 0&&($t===void 0&&($t=De(ve)),$t{St.preventDefault(),yt("mouseup",document,De)};if(wt("mouseup",document,De),R.value!=="mousedown")return;O.value=!0;const at=()=>{O.value=!1,yt("mouseup",document,at)};wt("mouseup",document,at)}function Ne(ve){e.onKeyup&&Ae(e.onKeyup,ve)}function ot(ve){switch(e.onKeydown&&Ae(e.onKeydown,ve),ve.key){case"Escape":me();break;case"Enter":ee(ve);break}}function ee(ve){var De,at;if(e.passivelyActivated){const{value:St}=$;if(St){e.internalDeactivateOnEnter&&me();return}ve.preventDefault(),e.type==="textarea"?(De=l.value)===null||De===void 0||De.focus():(at=d.value)===null||at===void 0||at.focus()}}function me(){e.passivelyActivated&&($.value=!1,Rt(()=>{var ve;(ve=a.value)===null||ve===void 0||ve.focus()}))}function Pe(){var ve,De,at;_.value||(e.passivelyActivated?(ve=a.value)===null||ve===void 0||ve.focus():((De=l.value)===null||De===void 0||De.focus(),(at=d.value)===null||at===void 0||at.focus()))}function Ve(){var ve;!((ve=a.value)===null||ve===void 0)&&ve.contains(document.activeElement)&&document.activeElement.blur()}function Ue(){var ve,De;(ve=l.value)===null||ve===void 0||ve.select(),(De=d.value)===null||De===void 0||De.select()}function qe(){_.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ze(){const{value:ve}=a;ve!=null&&ve.contains(document.activeElement)&&ve!==document.activeElement&&me()}function nt(ve){if(e.type==="textarea"){const{value:De}=l;De==null||De.scrollTo(ve)}else{const{value:De}=d;De==null||De.scrollTo(ve)}}function Ct(ve){const{type:De,pair:at,autosize:St}=e;if(!at&&St)if(De==="textarea"){const{value:Vt}=s;Vt&&(Vt.textContent=`${ve??""}\r -`)}else{const{value:Vt}=u;Vt&&(ve?Vt.textContent=ve:Vt.innerHTML=" ")}}function Ot(){j()}const _t=A({top:"0"});function yo(ve){var De;const{scrollTop:at}=ve.target;_t.value.top=`${-at}px`,(De=p.value)===null||De===void 0||De.syncUnifiedContainer()}let Po=null;kt(()=>{const{autosize:ve,type:De}=e;ve&&De==="textarea"?Po=lt(C,at=>{!Array.isArray(at)&&at!==G&&Ct(at)}):Po==null||Po()});let Bo=null;kt(()=>{e.type==="textarea"?Bo=lt(C,ve=>{var De;!Array.isArray(ve)&&ve!==G&&((De=p.value)===null||De===void 0||De.syncUnifiedContainer())}):Bo==null||Bo()}),tt(V7,{mergedValueRef:C,maxlengthRef:X,mergedClsPrefixRef:t,countGraphemesRef:Te(e,"countGraphemes")});const No={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:z,clear:$e,focus:Pe,blur:Ve,select:Ue,deactivate:Ze,activate:qe,scrollTo:nt},Vo=Kt("Input",r,t),un=D(()=>{const{value:ve}=w,{common:{cubicBezierEaseInOut:De},self:{color:at,borderRadius:St,textColor:Vt,caretColor:$t,caretColorError:eo,caretColorWarning:io,textDecorationColor:Fn,border:nr,borderDisabled:rr,borderHover:ci,borderFocus:ol,placeholderColor:nl,placeholderColorDisabled:rl,lineHeightTextarea:il,colorDisabled:Mr,colorFocus:Rr,textColorDisabled:dc,boxShadowFocus:cc,iconSize:fc,colorFocusWarning:hc,boxShadowFocusWarning:pc,borderWarning:mc,borderFocusWarning:gc,borderHoverWarning:vc,colorFocusError:bc,boxShadowFocusError:xc,borderError:yc,borderFocusError:Cc,borderHoverError:bb,clearSize:xb,clearColor:yb,clearColorHover:Cb,clearColorPressed:wb,iconColor:Sb,iconColorDisabled:Fb,suffixTextColor:Eb,countTextColor:kb,countTextColorDisabled:_b,iconColorHover:Mb,iconColorPressed:Rb,loadingColor:zb,loadingColorError:Ab,loadingColorWarning:Pb,[_e("padding",ve)]:Bb,[_e("fontSize",ve)]:$b,[_e("height",ve)]:Db}}=i.value,{left:Tb,right:Ib}=Mo(Bb);return{"--n-bezier":De,"--n-count-text-color":kb,"--n-count-text-color-disabled":_b,"--n-color":at,"--n-font-size":$b,"--n-border-radius":St,"--n-height":Db,"--n-padding-left":Tb,"--n-padding-right":Ib,"--n-text-color":Vt,"--n-caret-color":$t,"--n-text-decoration-color":Fn,"--n-border":nr,"--n-border-disabled":rr,"--n-border-hover":ci,"--n-border-focus":ol,"--n-placeholder-color":nl,"--n-placeholder-color-disabled":rl,"--n-icon-size":fc,"--n-line-height-textarea":il,"--n-color-disabled":Mr,"--n-color-focus":Rr,"--n-text-color-disabled":dc,"--n-box-shadow-focus":cc,"--n-loading-color":zb,"--n-caret-color-warning":io,"--n-color-focus-warning":hc,"--n-box-shadow-focus-warning":pc,"--n-border-warning":mc,"--n-border-focus-warning":gc,"--n-border-hover-warning":vc,"--n-loading-color-warning":Pb,"--n-caret-color-error":eo,"--n-color-focus-error":bc,"--n-box-shadow-focus-error":xc,"--n-border-error":yc,"--n-border-focus-error":Cc,"--n-border-hover-error":bb,"--n-loading-color-error":Ab,"--n-clear-color":yb,"--n-clear-size":xb,"--n-clear-color-hover":Cb,"--n-clear-color-pressed":wb,"--n-icon-color":Sb,"--n-icon-color-hover":Mb,"--n-icon-color-pressed":Rb,"--n-icon-color-disabled":Fb,"--n-suffix-text-color":Eb}}),dn=n?vt("input",D(()=>{const{value:ve}=w;return ve[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:C,passwordVisible:O,mergedPlaceholder:H,showPlaceholder1:q,showPlaceholder2:W,mergedFocus:L,isComposing:z,activated:$,showClearButton:I,mergedSize:w,mergedDisabled:_,textDecorationStyle:oe,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:R,placeholderStyle:_t,mergedStatus:M,textAreaScrollContainerWidth:y,handleTextAreaScroll:yo,handleCompositionStart:Ce,handleCompositionEnd:se,handleInput:te,handleInputBlur:Q,handleInputFocus:re,handleWrapperBlur:he,handleWrapperFocus:ne,handleMouseEnter:st,handleMouseLeave:Qe,handleMouseDown:Ye,handleChange:de,handleClick:Ee,handleClear:Ie,handlePasswordToggleClick:mt,handlePasswordToggleMousedown:Je,handleWrapperKeydown:ot,handleWrapperKeyup:Ne,handleTextAreaMirrorResize:Ot,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`},xt(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(Rn,{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&&xt(s.suffix,u=>u||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?m("div",{class:`${o}-input__suffix`},[xt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&m(y1,{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(P7,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?u:null,this.showCount&&this.type!=="textarea"?m(n4,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?So(s["password-visible-icon"],()=>[m(Xt,{clsPrefix:o},{default:()=>m(Oz,null)})]):So(s["password-invisible-icon"],()=>[m(Xt,{clsPrefix:o},{default:()=>m(Lz,null)})])):null]):null)),this.pair?m("span",{class:`${o}-input__separator`},So(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),xt(s.suffix,u=>(this.clearable||u)&&m("div",{class:`${o}-input__suffix`},[this.clearable&&m(y1,{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(n4,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)}}),xP=B("input-group",` + `)])]),bP=Object.assign(Object.assign({},Le.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=ye({name:"Input",props:bP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=it(e),i=Le("Input","-input",gP,Xo,e,t);H7&&Er("-input-safari",vP,t);const a=A(null),l=A(null),s=A(null),u=A(null),d=A(null),c=A(null),h=A(null),f=mP(h),p=A(null),{localeRef:g}=Fr("Input"),v=A(e.defaultValue),b=Te(e,"value"),C=ro(b,v),k=$n(e),{mergedSizeRef:w,mergedDisabledRef:_,mergedStatusRef:M}=k,E=A(!1),P=A(!1),z=A(!1),$=A(!1);let G=null;const H=D(()=>{const{placeholder:ve,pair:De}=e;return De?Array.isArray(ve)?ve:ve===void 0?["",""]:[ve,ve]:ve===void 0?[g.value.placeholder]:[ve]}),q=D(()=>{const{value:ve}=z,{value:De}=C,{value:at}=H;return!ve&&(mu(De)||Array.isArray(De)&&mu(De[0]))&&at[0]}),W=D(()=>{const{value:ve}=z,{value:De}=C,{value:at}=H;return!ve&&at[1]&&(mu(De)||Array.isArray(De)&&mu(De[1]))}),L=bt(()=>e.internalForceFocus||E.value),I=bt(()=>{if(_.value||e.readonly||!e.clearable||!L.value&&!P.value)return!1;const{value:ve}=C,{value:De}=L;return e.pair?!!(Array.isArray(ve)&&(ve[0]||ve[1]))&&(P.value||De):!!ve&&(P.value||De)}),R=D(()=>{const{showPasswordOn:ve}=e;if(ve)return ve;if(e.showPasswordToggle)return"click"}),O=A(!1),oe=D(()=>{const{textDecoration:ve}=e;return ve?Array.isArray(ve)?ve.map(De=>({textDecoration:De})):[{textDecoration:ve}]:["",""]}),y=A(void 0),j=()=>{var ve,De;if(e.type==="textarea"){const{autosize:at}=e;if(at&&(y.value=(De=(ve=p.value)===null||ve===void 0?void 0:ve.$el)===null||De===void 0?void 0:De.offsetWidth),!l.value||typeof at=="boolean")return;const{paddingTop:St,paddingBottom:Vt,lineHeight:$t}=window.getComputedStyle(l.value),eo=Number(St.slice(0,-2)),io=Number(Vt.slice(0,-2)),Fn=Number($t.slice(0,-2)),{value:nr}=s;if(!nr)return;if(at.minRows){const rr=Math.max(at.minRows,1),ci=`${eo+io+Fn*rr}px`;nr.style.minHeight=ci}if(at.maxRows){const rr=`${eo+io+Fn*at.maxRows}px`;nr.style.maxHeight=rr}}},X=D(()=>{const{maxlength:ve}=e;return ve===void 0?void 0:Number(ve)});ut(()=>{const{value:ve}=C;Array.isArray(ve)||Ct(ve)});const le=xr().proxy;function ae(ve,De){const{onUpdateValue:at,"onUpdate:value":St,onInput:Vt}=e,{nTriggerFormInput:$t}=k;at&&Ae(at,ve,De),St&&Ae(St,ve,De),Vt&&Ae(Vt,ve,De),v.value=ve,$t()}function Fe(ve,De){const{onChange:at}=e,{nTriggerFormChange:St}=k;at&&Ae(at,ve,De),v.value=ve,St()}function fe(ve){const{onBlur:De}=e,{nTriggerFormBlur:at}=k;De&&Ae(De,ve),at()}function ue(ve){const{onFocus:De}=e,{nTriggerFormFocus:at}=k;De&&Ae(De,ve),at()}function we(ve){const{onClear:De}=e;De&&Ae(De,ve)}function ie(ve){const{onInputBlur:De}=e;De&&Ae(De,ve)}function be(ve){const{onInputFocus:De}=e;De&&Ae(De,ve)}function ze(){const{onDeactivate:ve}=e;ve&&Ae(ve)}function pe(){const{onActivate:ve}=e;ve&&Ae(ve)}function U(ve){const{onClick:De}=e;De&&Ae(De,ve)}function N(ve){const{onWrapperFocus:De}=e;De&&Ae(De,ve)}function ge(ve){const{onWrapperBlur:De}=e;De&&Ae(De,ve)}function Ce(){z.value=!0}function se(ve){z.value=!1,ve.target===c.value?te(ve,1):te(ve,0)}function te(ve,De=0,at="input"){const St=ve.target.value;if(Ct(St),ve instanceof InputEvent&&!ve.isComposing&&(z.value=!1),e.type==="textarea"){const{value:$t}=p;$t&&$t.syncUnifiedContainer()}if(G=St,z.value)return;f.recordCursor();const Vt=ce(St);if(Vt)if(!e.pair)at==="input"?ae(St,{source:De}):Fe(St,{source:De});else{let{value:$t}=C;Array.isArray($t)?$t=[$t[0],$t[1]]:$t=["",""],$t[De]=St,at==="input"?ae($t,{source:De}):Fe($t,{source:De})}le.$forceUpdate(),Vt||Rt(f.restoreCursor)}function ce(ve){const{countGraphemes:De,maxlength:at,minlength:St}=e;if(De){let $t;if(at!==void 0&&($t===void 0&&($t=De(ve)),$t>Number(at))||St!==void 0&&($t===void 0&&($t=De(ve)),$t{St.preventDefault(),yt("mouseup",document,De)};if(wt("mouseup",document,De),R.value!=="mousedown")return;O.value=!0;const at=()=>{O.value=!1,yt("mouseup",document,at)};wt("mouseup",document,at)}function Ne(ve){e.onKeyup&&Ae(e.onKeyup,ve)}function ot(ve){switch(e.onKeydown&&Ae(e.onKeydown,ve),ve.key){case"Escape":me();break;case"Enter":ee(ve);break}}function ee(ve){var De,at;if(e.passivelyActivated){const{value:St}=$;if(St){e.internalDeactivateOnEnter&&me();return}ve.preventDefault(),e.type==="textarea"?(De=l.value)===null||De===void 0||De.focus():(at=d.value)===null||at===void 0||at.focus()}}function me(){e.passivelyActivated&&($.value=!1,Rt(()=>{var ve;(ve=a.value)===null||ve===void 0||ve.focus()}))}function Pe(){var ve,De,at;_.value||(e.passivelyActivated?(ve=a.value)===null||ve===void 0||ve.focus():((De=l.value)===null||De===void 0||De.focus(),(at=d.value)===null||at===void 0||at.focus()))}function Ve(){var ve;!((ve=a.value)===null||ve===void 0)&&ve.contains(document.activeElement)&&document.activeElement.blur()}function Ue(){var ve,De;(ve=l.value)===null||ve===void 0||ve.select(),(De=d.value)===null||De===void 0||De.select()}function qe(){_.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ze(){const{value:ve}=a;ve!=null&&ve.contains(document.activeElement)&&ve!==document.activeElement&&me()}function nt(ve){if(e.type==="textarea"){const{value:De}=l;De==null||De.scrollTo(ve)}else{const{value:De}=d;De==null||De.scrollTo(ve)}}function Ct(ve){const{type:De,pair:at,autosize:St}=e;if(!at&&St)if(De==="textarea"){const{value:Vt}=s;Vt&&(Vt.textContent=`${ve??""}\r +`)}else{const{value:Vt}=u;Vt&&(ve?Vt.textContent=ve:Vt.innerHTML=" ")}}function Ot(){j()}const _t=A({top:"0"});function yo(ve){var De;const{scrollTop:at}=ve.target;_t.value.top=`${-at}px`,(De=p.value)===null||De===void 0||De.syncUnifiedContainer()}let Po=null;kt(()=>{const{autosize:ve,type:De}=e;ve&&De==="textarea"?Po=lt(C,at=>{!Array.isArray(at)&&at!==G&&Ct(at)}):Po==null||Po()});let Bo=null;kt(()=>{e.type==="textarea"?Bo=lt(C,ve=>{var De;!Array.isArray(ve)&&ve!==G&&((De=p.value)===null||De===void 0||De.syncUnifiedContainer())}):Bo==null||Bo()}),tt(V7,{mergedValueRef:C,maxlengthRef:X,mergedClsPrefixRef:t,countGraphemesRef:Te(e,"countGraphemes")});const No={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:z,clear:$e,focus:Pe,blur:Ve,select:Ue,deactivate:Ze,activate:qe,scrollTo:nt},Vo=Kt("Input",r,t),un=D(()=>{const{value:ve}=w,{common:{cubicBezierEaseInOut:De},self:{color:at,borderRadius:St,textColor:Vt,caretColor:$t,caretColorError:eo,caretColorWarning:io,textDecorationColor:Fn,border:nr,borderDisabled:rr,borderHover:ci,borderFocus:ol,placeholderColor:nl,placeholderColorDisabled:rl,lineHeightTextarea:il,colorDisabled:Mr,colorFocus:Rr,textColorDisabled:dc,boxShadowFocus:cc,iconSize:fc,colorFocusWarning:hc,boxShadowFocusWarning:pc,borderWarning:mc,borderFocusWarning:gc,borderHoverWarning:vc,colorFocusError:bc,boxShadowFocusError:xc,borderError:yc,borderFocusError:Cc,borderHoverError:bb,clearSize:xb,clearColor:yb,clearColorHover:Cb,clearColorPressed:wb,iconColor:Sb,iconColorDisabled:Fb,suffixTextColor:Eb,countTextColor:kb,countTextColorDisabled:_b,iconColorHover:Mb,iconColorPressed:Rb,loadingColor:zb,loadingColorError:Ab,loadingColorWarning:Pb,[_e("padding",ve)]:Bb,[_e("fontSize",ve)]:$b,[_e("height",ve)]:Db}}=i.value,{left:Tb,right:Ib}=Mo(Bb);return{"--n-bezier":De,"--n-count-text-color":kb,"--n-count-text-color-disabled":_b,"--n-color":at,"--n-font-size":$b,"--n-border-radius":St,"--n-height":Db,"--n-padding-left":Tb,"--n-padding-right":Ib,"--n-text-color":Vt,"--n-caret-color":$t,"--n-text-decoration-color":Fn,"--n-border":nr,"--n-border-disabled":rr,"--n-border-hover":ci,"--n-border-focus":ol,"--n-placeholder-color":nl,"--n-placeholder-color-disabled":rl,"--n-icon-size":fc,"--n-line-height-textarea":il,"--n-color-disabled":Mr,"--n-color-focus":Rr,"--n-text-color-disabled":dc,"--n-box-shadow-focus":cc,"--n-loading-color":zb,"--n-caret-color-warning":io,"--n-color-focus-warning":hc,"--n-box-shadow-focus-warning":pc,"--n-border-warning":mc,"--n-border-focus-warning":gc,"--n-border-hover-warning":vc,"--n-loading-color-warning":Pb,"--n-caret-color-error":eo,"--n-color-focus-error":bc,"--n-box-shadow-focus-error":xc,"--n-border-error":yc,"--n-border-focus-error":Cc,"--n-border-hover-error":bb,"--n-loading-color-error":Ab,"--n-clear-color":yb,"--n-clear-size":xb,"--n-clear-color-hover":Cb,"--n-clear-color-pressed":wb,"--n-icon-color":Sb,"--n-icon-color-hover":Mb,"--n-icon-color-pressed":Rb,"--n-icon-color-disabled":Fb,"--n-suffix-text-color":Eb}}),dn=n?vt("input",D(()=>{const{value:ve}=w;return ve[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:C,passwordVisible:O,mergedPlaceholder:H,showPlaceholder1:q,showPlaceholder2:W,mergedFocus:L,isComposing:z,activated:$,showClearButton:I,mergedSize:w,mergedDisabled:_,textDecorationStyle:oe,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:R,placeholderStyle:_t,mergedStatus:M,textAreaScrollContainerWidth:y,handleTextAreaScroll:yo,handleCompositionStart:Ce,handleCompositionEnd:se,handleInput:te,handleInputBlur:Q,handleInputFocus:re,handleWrapperBlur:he,handleWrapperFocus:ne,handleMouseEnter:st,handleMouseLeave:Je,handleMouseDown:Qe,handleChange:de,handleClick:Ee,handleClear:Ie,handlePasswordToggleClick:mt,handlePasswordToggleMousedown:et,handleWrapperKeydown:ot,handleWrapperKeyup:Ne,handleTextAreaMirrorResize:Ot,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`},xt(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(Rn,{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&&xt(s.suffix,u=>u||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?m("div",{class:`${o}-input__suffix`},[xt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&m(y1,{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(P7,{clsPrefix:o,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?u:null,this.showCount&&this.type!=="textarea"?m(n4,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?So(s["password-visible-icon"],()=>[m(Xt,{clsPrefix:o},{default:()=>m(Oz,null)})]):So(s["password-invisible-icon"],()=>[m(Xt,{clsPrefix:o},{default:()=>m(Lz,null)})])):null]):null)),this.pair?m("span",{class:`${o}-input__separator`},So(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),xt(s.suffix,u=>(this.clearable||u)&&m("div",{class:`${o}-input__suffix`},[this.clearable&&m(y1,{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(n4,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)}}),xP=B("input-group",` display: inline-flex; width: 100%; flex-wrap: nowrap; @@ -1913,7 +1913,7 @@ ${t} `),B("select-menu",` margin: 4px 0; box-shadow: var(--n-menu-box-shadow); - `,[Pn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),d$=Object.assign(Object.assign({},Le.props),{to:Ao.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}),c$=ye({name:"Select",props:d$,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:n,inlineThemeDisabled:r}=it(e),i=Le("Select","-select",u$,t3,e,t),a=A(e.defaultValue),l=Te(e,"value"),s=ro(l,a),u=A(!1),d=A(""),c=is(e,["items","options"]),h=A([]),f=A([]),p=D(()=>f.value.concat(h.value).concat(c.value)),g=D(()=>{const{filter:ee}=e;if(ee)return ee;const{labelField:me,valueField:Pe}=e;return(Ve,Ue)=>{if(!Ue)return!1;const qe=Ue[me];if(typeof qe=="string")return e0(Ve,qe);const Ze=Ue[Pe];return typeof Ze=="string"?e0(Ve,Ze):typeof Ze=="number"?e0(Ve,String(Ze)):!1}}),v=D(()=>{if(e.remote)return c.value;{const{value:ee}=p,{value:me}=d;return!me.length||!e.filterable?ee:dP(ee,g.value,me,e.childrenField)}}),b=D(()=>{const{valueField:ee,childrenField:me}=e,Pe=L7(ee,me);return Ud(v.value,Pe)}),C=D(()=>cP(p.value,e.valueField,e.childrenField)),k=A(!1),w=ro(Te(e,"show"),k),_=A(null),M=A(null),E=A(null),{localeRef:P}=Fr("Select"),z=D(()=>{var ee;return(ee=e.placeholder)!==null&&ee!==void 0?ee:P.value.placeholder}),$=[],G=A(new Map),H=D(()=>{const{fallbackOption:ee}=e;if(ee===void 0){const{labelField:me,valueField:Pe}=e;return Ve=>({[me]:String(Ve),[Pe]:Ve})}return ee===!1?!1:me=>Object.assign(ee(me),{value:me})});function q(ee){const me=e.remote,{value:Pe}=G,{value:Ve}=C,{value:Ue}=H,qe=[];return ee.forEach(Ze=>{if(Ve.has(Ze))qe.push(Ve.get(Ze));else if(me&&Pe.has(Ze))qe.push(Pe.get(Ze));else if(Ue){const nt=Ue(Ze);nt&&qe.push(nt)}}),qe}const W=D(()=>{if(e.multiple){const{value:ee}=s;return Array.isArray(ee)?q(ee):[]}return null}),L=D(()=>{const{value:ee}=s;return!e.multiple&&!Array.isArray(ee)?ee===null?null:q([ee])[0]||null:null}),I=$n(e),{mergedSizeRef:R,mergedDisabledRef:O,mergedStatusRef:oe}=I;function y(ee,me){const{onChange:Pe,"onUpdate:value":Ve,onUpdateValue:Ue}=e,{nTriggerFormChange:qe,nTriggerFormInput:Ze}=I;Pe&&Ae(Pe,ee,me),Ue&&Ae(Ue,ee,me),Ve&&Ae(Ve,ee,me),a.value=ee,qe(),Ze()}function j(ee){const{onBlur:me}=e,{nTriggerFormBlur:Pe}=I;me&&Ae(me,ee),Pe()}function X(){const{onClear:ee}=e;ee&&Ae(ee)}function le(ee){const{onFocus:me,showOnFocus:Pe}=e,{nTriggerFormFocus:Ve}=I;me&&Ae(me,ee),Ve(),Pe&&we()}function ae(ee){const{onSearch:me}=e;me&&Ae(me,ee)}function Fe(ee){const{onScroll:me}=e;me&&Ae(me,ee)}function fe(){var ee;const{remote:me,multiple:Pe}=e;if(me){const{value:Ve}=G;if(Pe){const{valueField:Ue}=e;(ee=W.value)===null||ee===void 0||ee.forEach(qe=>{Ve.set(qe[Ue],qe)})}else{const Ue=L.value;Ue&&Ve.set(Ue[e.valueField],Ue)}}}function ue(ee){const{onUpdateShow:me,"onUpdate:show":Pe}=e;me&&Ae(me,ee),Pe&&Ae(Pe,ee),k.value=ee}function we(){O.value||(ue(!0),k.value=!0,e.filterable&&Qe())}function ie(){ue(!1)}function be(){d.value="",f.value=$}const ze=A(!1);function pe(){e.filterable&&(ze.value=!0)}function U(){e.filterable&&(ze.value=!1,w.value||be())}function N(){O.value||(w.value?e.filterable?Qe():ie():we())}function ge(ee){var me,Pe;!((Pe=(me=E.value)===null||me===void 0?void 0:me.selfRef)===null||Pe===void 0)&&Pe.contains(ee.relatedTarget)||(u.value=!1,j(ee),ie())}function Ce(ee){le(ee),u.value=!0}function se(){u.value=!0}function te(ee){var me;!((me=_.value)===null||me===void 0)&&me.$el.contains(ee.relatedTarget)||(u.value=!1,j(ee),ie())}function ce(){var ee;(ee=_.value)===null||ee===void 0||ee.focus(),ie()}function Q(ee){var me;w.value&&(!((me=_.value)===null||me===void 0)&&me.$el.contains(Hi(ee))||ie())}function re(ee){if(!Array.isArray(ee))return[];if(H.value)return Array.from(ee);{const{remote:me}=e,{value:Pe}=C;if(me){const{value:Ve}=G;return ee.filter(Ue=>Pe.has(Ue)||Ve.has(Ue))}else return ee.filter(Ve=>Pe.has(Ve))}}function he(ee){ne(ee.rawNode)}function ne(ee){if(O.value)return;const{tag:me,remote:Pe,clearFilterAfterSelect:Ve,valueField:Ue}=e;if(me&&!Pe){const{value:qe}=f,Ze=qe[0]||null;if(Ze){const nt=h.value;nt.length?nt.push(Ze):h.value=[Ze],f.value=$}}if(Pe&&G.value.set(ee[Ue],ee),e.multiple){const qe=re(s.value),Ze=qe.findIndex(nt=>nt===ee[Ue]);if(~Ze){if(qe.splice(Ze,1),me&&!Pe){const nt=Y(ee[Ue]);~nt&&(h.value.splice(nt,1),Ve&&(d.value=""))}}else qe.push(ee[Ue]),Ve&&(d.value="");y(qe,q(qe))}else{if(me&&!Pe){const qe=Y(ee[Ue]);~qe?h.value=[h.value[qe]]:h.value=$}st(),ie(),y(ee[Ue],ee)}}function Y(ee){return h.value.findIndex(Pe=>Pe[e.valueField]===ee)}function de(ee){w.value||we();const{value:me}=ee.target;d.value=me;const{tag:Pe,remote:Ve}=e;if(ae(me),Pe&&!Ve){if(!me){f.value=$;return}const{onCreate:Ue}=e,qe=Ue?Ue(me):{[e.labelField]:me,[e.valueField]:me},{valueField:Ze,labelField:nt}=e;c.value.some(Ct=>Ct[Ze]===qe[Ze]||Ct[nt]===qe[nt])||h.value.some(Ct=>Ct[Ze]===qe[Ze]||Ct[nt]===qe[nt])?f.value=$:f.value=[qe]}}function Ee(ee){ee.stopPropagation();const{multiple:me}=e;!me&&e.filterable&&ie(),X(),me?y([],[]):y(null,null)}function Ie(ee){!Ko(ee,"action")&&!Ko(ee,"empty")&&!Ko(ee,"header")&&ee.preventDefault()}function $e(ee){Fe(ee)}function Ye(ee){var me,Pe,Ve,Ue,qe;if(!e.keyboard){ee.preventDefault();return}switch(ee.key){case" ":if(e.filterable)break;ee.preventDefault();case"Enter":if(!(!((me=_.value)===null||me===void 0)&&me.isComposing)){if(w.value){const Ze=(Pe=E.value)===null||Pe===void 0?void 0:Pe.getPendingTmNode();Ze?he(Ze):e.filterable||(ie(),st())}else if(we(),e.tag&&ze.value){const Ze=f.value[0];if(Ze){const nt=Ze[e.valueField],{value:Ct}=s;e.multiple&&Array.isArray(Ct)&&Ct.includes(nt)||ne(Ze)}}}ee.preventDefault();break;case"ArrowUp":if(ee.preventDefault(),e.loading)return;w.value&&((Ve=E.value)===null||Ve===void 0||Ve.prev());break;case"ArrowDown":if(ee.preventDefault(),e.loading)return;w.value?(Ue=E.value)===null||Ue===void 0||Ue.next():we();break;case"Escape":w.value&&(lw(ee),ie()),(qe=_.value)===null||qe===void 0||qe.focus();break}}function st(){var ee;(ee=_.value)===null||ee===void 0||ee.focus()}function Qe(){var ee;(ee=_.value)===null||ee===void 0||ee.focusInput()}function mt(){var ee;w.value&&((ee=M.value)===null||ee===void 0||ee.syncPosition())}fe(),lt(Te(e,"options"),fe);const Je={focus:()=>{var ee;(ee=_.value)===null||ee===void 0||ee.focus()},focusInput:()=>{var ee;(ee=_.value)===null||ee===void 0||ee.focusInput()},blur:()=>{var ee;(ee=_.value)===null||ee===void 0||ee.blur()},blurInput:()=>{var ee;(ee=_.value)===null||ee===void 0||ee.blurInput()}},Ne=D(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),ot=r?vt("select",void 0,Ne,e):void 0;return Object.assign(Object.assign({},Je),{mergedStatus:oe,mergedClsPrefix:t,mergedBordered:o,namespace:n,treeMate:b,isMounted:Cr(),triggerRef:_,menuRef:E,pattern:d,uncontrolledShow:k,mergedShow:w,adjustedTo:Ao(e),uncontrolledValue:a,mergedValue:s,followerRef:M,localizedPlaceholder:z,selectedOption:L,selectedOptions:W,mergedSize:R,mergedDisabled:O,focused:u,activeWithoutMenuOpen:ze,inlineThemeDisabled:r,onTriggerInputFocus:pe,onTriggerInputBlur:U,handleTriggerOrMenuResize:mt,handleMenuFocus:se,handleMenuBlur:te,handleMenuTabOut:ce,handleTriggerClick:N,handleToggle:he,handleDeleteOption:ne,handlePatternInput:de,handleClear:Ee,handleTriggerBlur:ge,handleTriggerFocus:Ce,handleKeydown:Ye,handleMenuAfterLeave:be,handleMenuClickOutside:Q,handleMenuScroll:$e,handleMenuKeydown:Ye,handleMenuMousedown:Ie,mergedTheme:i,cssVars:r?void 0:Ne,themeClass:ot==null?void 0:ot.themeClass,onRender:ot==null?void 0:ot.onRender})},render(){return m("div",{class:`${this.mergedClsPrefix}-select`},m(As,null,{default:()=>[m(Ps,null,{default:()=>m(XA,{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(Bs,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ao.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>m(go,{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),zo(m(F7,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],[Ni,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Ni,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),f$={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 Fm(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({},f$),{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 o3={name:"Pagination",common:je,peers:{Select:t3,Input:Xo,Popselect:Zd},self:Fm},Em={name:"Pagination",common:We,peers:{Select:Sm,Input:Sn,Popselect:ym},self(e){const{primaryColor:t,opacity3:o}=e,n=Be(t,{alpha:Number(o)}),r=Fm(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},l4=` + `,[Pn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),d$=Object.assign(Object.assign({},Le.props),{to:Ao.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}),c$=ye({name:"Select",props:d$,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:n,inlineThemeDisabled:r}=it(e),i=Le("Select","-select",u$,t3,e,t),a=A(e.defaultValue),l=Te(e,"value"),s=ro(l,a),u=A(!1),d=A(""),c=is(e,["items","options"]),h=A([]),f=A([]),p=D(()=>f.value.concat(h.value).concat(c.value)),g=D(()=>{const{filter:ee}=e;if(ee)return ee;const{labelField:me,valueField:Pe}=e;return(Ve,Ue)=>{if(!Ue)return!1;const qe=Ue[me];if(typeof qe=="string")return e0(Ve,qe);const Ze=Ue[Pe];return typeof Ze=="string"?e0(Ve,Ze):typeof Ze=="number"?e0(Ve,String(Ze)):!1}}),v=D(()=>{if(e.remote)return c.value;{const{value:ee}=p,{value:me}=d;return!me.length||!e.filterable?ee:dP(ee,g.value,me,e.childrenField)}}),b=D(()=>{const{valueField:ee,childrenField:me}=e,Pe=L7(ee,me);return Ud(v.value,Pe)}),C=D(()=>cP(p.value,e.valueField,e.childrenField)),k=A(!1),w=ro(Te(e,"show"),k),_=A(null),M=A(null),E=A(null),{localeRef:P}=Fr("Select"),z=D(()=>{var ee;return(ee=e.placeholder)!==null&&ee!==void 0?ee:P.value.placeholder}),$=[],G=A(new Map),H=D(()=>{const{fallbackOption:ee}=e;if(ee===void 0){const{labelField:me,valueField:Pe}=e;return Ve=>({[me]:String(Ve),[Pe]:Ve})}return ee===!1?!1:me=>Object.assign(ee(me),{value:me})});function q(ee){const me=e.remote,{value:Pe}=G,{value:Ve}=C,{value:Ue}=H,qe=[];return ee.forEach(Ze=>{if(Ve.has(Ze))qe.push(Ve.get(Ze));else if(me&&Pe.has(Ze))qe.push(Pe.get(Ze));else if(Ue){const nt=Ue(Ze);nt&&qe.push(nt)}}),qe}const W=D(()=>{if(e.multiple){const{value:ee}=s;return Array.isArray(ee)?q(ee):[]}return null}),L=D(()=>{const{value:ee}=s;return!e.multiple&&!Array.isArray(ee)?ee===null?null:q([ee])[0]||null:null}),I=$n(e),{mergedSizeRef:R,mergedDisabledRef:O,mergedStatusRef:oe}=I;function y(ee,me){const{onChange:Pe,"onUpdate:value":Ve,onUpdateValue:Ue}=e,{nTriggerFormChange:qe,nTriggerFormInput:Ze}=I;Pe&&Ae(Pe,ee,me),Ue&&Ae(Ue,ee,me),Ve&&Ae(Ve,ee,me),a.value=ee,qe(),Ze()}function j(ee){const{onBlur:me}=e,{nTriggerFormBlur:Pe}=I;me&&Ae(me,ee),Pe()}function X(){const{onClear:ee}=e;ee&&Ae(ee)}function le(ee){const{onFocus:me,showOnFocus:Pe}=e,{nTriggerFormFocus:Ve}=I;me&&Ae(me,ee),Ve(),Pe&&we()}function ae(ee){const{onSearch:me}=e;me&&Ae(me,ee)}function Fe(ee){const{onScroll:me}=e;me&&Ae(me,ee)}function fe(){var ee;const{remote:me,multiple:Pe}=e;if(me){const{value:Ve}=G;if(Pe){const{valueField:Ue}=e;(ee=W.value)===null||ee===void 0||ee.forEach(qe=>{Ve.set(qe[Ue],qe)})}else{const Ue=L.value;Ue&&Ve.set(Ue[e.valueField],Ue)}}}function ue(ee){const{onUpdateShow:me,"onUpdate:show":Pe}=e;me&&Ae(me,ee),Pe&&Ae(Pe,ee),k.value=ee}function we(){O.value||(ue(!0),k.value=!0,e.filterable&&Je())}function ie(){ue(!1)}function be(){d.value="",f.value=$}const ze=A(!1);function pe(){e.filterable&&(ze.value=!0)}function U(){e.filterable&&(ze.value=!1,w.value||be())}function N(){O.value||(w.value?e.filterable?Je():ie():we())}function ge(ee){var me,Pe;!((Pe=(me=E.value)===null||me===void 0?void 0:me.selfRef)===null||Pe===void 0)&&Pe.contains(ee.relatedTarget)||(u.value=!1,j(ee),ie())}function Ce(ee){le(ee),u.value=!0}function se(){u.value=!0}function te(ee){var me;!((me=_.value)===null||me===void 0)&&me.$el.contains(ee.relatedTarget)||(u.value=!1,j(ee),ie())}function ce(){var ee;(ee=_.value)===null||ee===void 0||ee.focus(),ie()}function Q(ee){var me;w.value&&(!((me=_.value)===null||me===void 0)&&me.$el.contains(Hi(ee))||ie())}function re(ee){if(!Array.isArray(ee))return[];if(H.value)return Array.from(ee);{const{remote:me}=e,{value:Pe}=C;if(me){const{value:Ve}=G;return ee.filter(Ue=>Pe.has(Ue)||Ve.has(Ue))}else return ee.filter(Ve=>Pe.has(Ve))}}function he(ee){ne(ee.rawNode)}function ne(ee){if(O.value)return;const{tag:me,remote:Pe,clearFilterAfterSelect:Ve,valueField:Ue}=e;if(me&&!Pe){const{value:qe}=f,Ze=qe[0]||null;if(Ze){const nt=h.value;nt.length?nt.push(Ze):h.value=[Ze],f.value=$}}if(Pe&&G.value.set(ee[Ue],ee),e.multiple){const qe=re(s.value),Ze=qe.findIndex(nt=>nt===ee[Ue]);if(~Ze){if(qe.splice(Ze,1),me&&!Pe){const nt=Y(ee[Ue]);~nt&&(h.value.splice(nt,1),Ve&&(d.value=""))}}else qe.push(ee[Ue]),Ve&&(d.value="");y(qe,q(qe))}else{if(me&&!Pe){const qe=Y(ee[Ue]);~qe?h.value=[h.value[qe]]:h.value=$}st(),ie(),y(ee[Ue],ee)}}function Y(ee){return h.value.findIndex(Pe=>Pe[e.valueField]===ee)}function de(ee){w.value||we();const{value:me}=ee.target;d.value=me;const{tag:Pe,remote:Ve}=e;if(ae(me),Pe&&!Ve){if(!me){f.value=$;return}const{onCreate:Ue}=e,qe=Ue?Ue(me):{[e.labelField]:me,[e.valueField]:me},{valueField:Ze,labelField:nt}=e;c.value.some(Ct=>Ct[Ze]===qe[Ze]||Ct[nt]===qe[nt])||h.value.some(Ct=>Ct[Ze]===qe[Ze]||Ct[nt]===qe[nt])?f.value=$:f.value=[qe]}}function Ee(ee){ee.stopPropagation();const{multiple:me}=e;!me&&e.filterable&&ie(),X(),me?y([],[]):y(null,null)}function Ie(ee){!Ko(ee,"action")&&!Ko(ee,"empty")&&!Ko(ee,"header")&&ee.preventDefault()}function $e(ee){Fe(ee)}function Qe(ee){var me,Pe,Ve,Ue,qe;if(!e.keyboard){ee.preventDefault();return}switch(ee.key){case" ":if(e.filterable)break;ee.preventDefault();case"Enter":if(!(!((me=_.value)===null||me===void 0)&&me.isComposing)){if(w.value){const Ze=(Pe=E.value)===null||Pe===void 0?void 0:Pe.getPendingTmNode();Ze?he(Ze):e.filterable||(ie(),st())}else if(we(),e.tag&&ze.value){const Ze=f.value[0];if(Ze){const nt=Ze[e.valueField],{value:Ct}=s;e.multiple&&Array.isArray(Ct)&&Ct.includes(nt)||ne(Ze)}}}ee.preventDefault();break;case"ArrowUp":if(ee.preventDefault(),e.loading)return;w.value&&((Ve=E.value)===null||Ve===void 0||Ve.prev());break;case"ArrowDown":if(ee.preventDefault(),e.loading)return;w.value?(Ue=E.value)===null||Ue===void 0||Ue.next():we();break;case"Escape":w.value&&(lw(ee),ie()),(qe=_.value)===null||qe===void 0||qe.focus();break}}function st(){var ee;(ee=_.value)===null||ee===void 0||ee.focus()}function Je(){var ee;(ee=_.value)===null||ee===void 0||ee.focusInput()}function mt(){var ee;w.value&&((ee=M.value)===null||ee===void 0||ee.syncPosition())}fe(),lt(Te(e,"options"),fe);const et={focus:()=>{var ee;(ee=_.value)===null||ee===void 0||ee.focus()},focusInput:()=>{var ee;(ee=_.value)===null||ee===void 0||ee.focusInput()},blur:()=>{var ee;(ee=_.value)===null||ee===void 0||ee.blur()},blurInput:()=>{var ee;(ee=_.value)===null||ee===void 0||ee.blurInput()}},Ne=D(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),ot=r?vt("select",void 0,Ne,e):void 0;return Object.assign(Object.assign({},et),{mergedStatus:oe,mergedClsPrefix:t,mergedBordered:o,namespace:n,treeMate:b,isMounted:Cr(),triggerRef:_,menuRef:E,pattern:d,uncontrolledShow:k,mergedShow:w,adjustedTo:Ao(e),uncontrolledValue:a,mergedValue:s,followerRef:M,localizedPlaceholder:z,selectedOption:L,selectedOptions:W,mergedSize:R,mergedDisabled:O,focused:u,activeWithoutMenuOpen:ze,inlineThemeDisabled:r,onTriggerInputFocus:pe,onTriggerInputBlur:U,handleTriggerOrMenuResize:mt,handleMenuFocus:se,handleMenuBlur:te,handleMenuTabOut:ce,handleTriggerClick:N,handleToggle:he,handleDeleteOption:ne,handlePatternInput:de,handleClear:Ee,handleTriggerBlur:ge,handleTriggerFocus:Ce,handleKeydown:Qe,handleMenuAfterLeave:be,handleMenuClickOutside:Q,handleMenuScroll:$e,handleMenuKeydown:Qe,handleMenuMousedown:Ie,mergedTheme:i,cssVars:r?void 0:Ne,themeClass:ot==null?void 0:ot.themeClass,onRender:ot==null?void 0:ot.onRender})},render(){return m("div",{class:`${this.mergedClsPrefix}-select`},m(As,null,{default:()=>[m(Ps,null,{default:()=>m(XA,{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(Bs,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ao.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>m(go,{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),zo(m(F7,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],[Ni,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Ni,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),f$={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 Fm(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({},f$),{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 o3={name:"Pagination",common:je,peers:{Select:t3,Input:Xo,Popselect:Zd},self:Fm},Em={name:"Pagination",common:We,peers:{Select:Sm,Input:Sn,Popselect:ym},self(e){const{primaryColor:t,opacity3:o}=e,n=Be(t,{alpha:Number(o)}),r=Fm(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},l4=` background: var(--n-item-color-hover); color: var(--n-item-text-color-hover); border: var(--n-item-border-hover); @@ -2007,7 +2007,7 @@ ${t} flex-wrap: nowrap; `,[B("pagination-quick-jumper",[B("input",` margin: 0; - `)])])]);function km(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 p$(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=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?u4(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 u4(e,t){const o=[];for(let n=e;n<=t;++n)o.push({label:`${n}`,value:n});return o}const m$=Object.assign(Object.assign({},Le.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:Ao.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]}),g$=ye({name:"Pagination",props:m$,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=it(e),i=Le("Pagination","-pagination",h$,o3,e,o),{localeRef:a}=Fr("Pagination"),l=A(null),s=A(e.defaultPage),u=A(km(e)),d=ro(Te(e,"page"),s),c=ro(Te(e,"pageSize"),u),h=D(()=>{const{itemCount:ie}=e;if(ie!==void 0)return Math.max(1,Math.ceil(ie/c.value));const{pageCount:be}=e;return be!==void 0?Math.max(be,1):1}),f=A("");kt(()=>{e.simple,f.value=String(d.value)});const p=A(!1),g=A(!1),v=A(!1),b=A(!1),C=()=>{e.disabled||(p.value=!0,L())},k=()=>{e.disabled||(p.value=!1,L())},w=()=>{g.value=!0,L()},_=()=>{g.value=!1,L()},M=ie=>{I(ie)},E=D(()=>p$(d.value,h.value,e.pageSlot,e.showQuickJumpDropdown));kt(()=>{E.value.hasFastBackward?E.value.hasFastForward||(p.value=!1,v.value=!1):(g.value=!1,b.value=!1)});const P=D(()=>{const ie=a.value.selectionSuffix;return e.pageSizes.map(be=>typeof be=="number"?{label:`${be} / ${ie}`,value:be}:be)}),z=D(()=>{var ie,be;return((be=(ie=t==null?void 0:t.value)===null||ie===void 0?void 0:ie.Pagination)===null||be===void 0?void 0:be.inputSize)||F2(e.size)}),$=D(()=>{var ie,be;return((be=(ie=t==null?void 0:t.value)===null||ie===void 0?void 0:ie.Pagination)===null||be===void 0?void 0:be.selectSize)||F2(e.size)}),G=D(()=>(d.value-1)*c.value),H=D(()=>{const ie=d.value*c.value-1,{itemCount:be}=e;return be!==void 0&&ie>be-1?be-1:ie}),q=D(()=>{const{itemCount:ie}=e;return ie!==void 0?ie:(e.pageCount||1)*c.value}),W=Kt("Pagination",r,o);function L(){Rt(()=>{var ie;const{value:be}=l;be&&(be.classList.add("transition-disabled"),(ie=l.value)===null||ie===void 0||ie.offsetWidth,be.classList.remove("transition-disabled"))})}function I(ie){if(ie===d.value)return;const{"onUpdate:page":be,onUpdatePage:ze,onChange:pe,simple:U}=e;be&&Ae(be,ie),ze&&Ae(ze,ie),pe&&Ae(pe,ie),s.value=ie,U&&(f.value=String(ie))}function R(ie){if(ie===c.value)return;const{"onUpdate:pageSize":be,onUpdatePageSize:ze,onPageSizeChange:pe}=e;be&&Ae(be,ie),ze&&Ae(ze,ie),pe&&Ae(pe,ie),u.value=ie,h.value{d.value,c.value,L()});const ue=D(()=>{const{size:ie}=e,{self:{buttonBorder:be,buttonBorderHover:ze,buttonBorderPressed:pe,buttonIconColor:U,buttonIconColorHover:N,buttonIconColorPressed:ge,itemTextColor:Ce,itemTextColorHover:se,itemTextColorPressed:te,itemTextColorActive:ce,itemTextColorDisabled:Q,itemColor:re,itemColorHover:he,itemColorPressed:ne,itemColorActive:Y,itemColorActiveHover:de,itemColorDisabled:Ee,itemBorder:Ie,itemBorderHover:$e,itemBorderPressed:Ye,itemBorderActive:st,itemBorderDisabled:Qe,itemBorderRadius:mt,jumperTextColor:Je,jumperTextColorDisabled:Ne,buttonColor:ot,buttonColorHover:ee,buttonColorPressed:me,[_e("itemPadding",ie)]:Pe,[_e("itemMargin",ie)]:Ve,[_e("inputWidth",ie)]:Ue,[_e("selectWidth",ie)]:qe,[_e("inputMargin",ie)]:Ze,[_e("selectMargin",ie)]:nt,[_e("jumperFontSize",ie)]:Ct,[_e("prefixMargin",ie)]:Ot,[_e("suffixMargin",ie)]:_t,[_e("itemSize",ie)]:yo,[_e("buttonIconSize",ie)]:Po,[_e("itemFontSize",ie)]:Bo,[`${_e("itemMargin",ie)}Rtl`]:No,[`${_e("inputMargin",ie)}Rtl`]:Vo},common:{cubicBezierEaseInOut:un}}=i.value;return{"--n-prefix-margin":Ot,"--n-suffix-margin":_t,"--n-item-font-size":Bo,"--n-select-width":qe,"--n-select-margin":nt,"--n-input-width":Ue,"--n-input-margin":Ze,"--n-input-margin-rtl":Vo,"--n-item-size":yo,"--n-item-text-color":Ce,"--n-item-text-color-disabled":Q,"--n-item-text-color-hover":se,"--n-item-text-color-active":ce,"--n-item-text-color-pressed":te,"--n-item-color":re,"--n-item-color-hover":he,"--n-item-color-disabled":Ee,"--n-item-color-active":Y,"--n-item-color-active-hover":de,"--n-item-color-pressed":ne,"--n-item-border":Ie,"--n-item-border-hover":$e,"--n-item-border-disabled":Qe,"--n-item-border-active":st,"--n-item-border-pressed":Ye,"--n-item-padding":Pe,"--n-item-border-radius":mt,"--n-bezier":un,"--n-jumper-font-size":Ct,"--n-jumper-text-color":Je,"--n-jumper-text-color-disabled":Ne,"--n-item-margin":Ve,"--n-item-margin-rtl":No,"--n-button-icon-size":Po,"--n-button-icon-color":U,"--n-button-icon-color-hover":N,"--n-button-icon-color-pressed":ge,"--n-button-color-hover":ee,"--n-button-color":ot,"--n-button-color-pressed":me,"--n-button-border":be,"--n-button-border-hover":ze,"--n-button-border-pressed":pe}}),we=n?vt("pagination",D(()=>{let ie="";const{size:be}=e;return ie+=be[0],ie}),ue,e):void 0;return{rtlEnabled:W,mergedClsPrefix:o,locale:a,selfRef:l,mergedPage:d,pageItems:D(()=>E.value.items),mergedItemCount:q,jumperValue:f,pageSizeOptions:P,mergedPageSize:c,inputSize:z,selectSize:$,mergedTheme:i,mergedPageCount:h,startIndex:G,endIndex:H,showFastForwardMenu:v,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:M,handleFastForwardMouseenter:C,handleFastForwardMouseleave:k,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:_,handleJumperInput:fe,handleBackwardClick:oe,handleForwardClick:O,handlePageItemClick:Fe,handleSizePickerChange:X,handleQuickJumperChange:ae,cssVars:n?void 0:ue,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.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:C,prefix:k,suffix:w,label:_,goto:M,handleJumperInput:E,handleSizePickerChange:P,handleBackwardClick:z,handlePageItemClick:$,handleForwardClick:G,handleQuickJumperChange:H,onRender:q}=this;q==null||q();const W=e.prefix||k,L=e.suffix||w,I=b||e.prev,R=C||e.next,O=_||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},W?m("div",{class:`${t}-pagination-prefix`},W({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(oe=>{switch(oe){case"pages":return m(ft,null,m("div",{class:[`${t}-pagination-item`,!I&&`${t}-pagination-item--button`,(r<=1||r>i||o)&&`${t}-pagination-item--disabled`],onClick:z},I?I({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):m(Xt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Kf,null):m(Wf,null)})),v?m(ft,null,m("div",{class:`${t}-pagination-quick-jumper`},m(rn,{value:g,onUpdateValue:E,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:H}))," /"," ",i):a.map((y,j)=>{let X,le,ae;const{type:Fe}=y;switch(Fe){case"page":const ue=y.label;O?X=O({type:"page",node:ue,active:y.active}):X=ue;break;case"fast-forward":const we=this.fastForwardActive?m(Xt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(jf,null):m(Uf,null)}):m(Xt,{clsPrefix:t},{default:()=>m(Gf,null)});O?X=O({type:"fast-forward",node:we,active:this.fastForwardActive||this.showFastForwardMenu}):X=we,le=this.handleFastForwardMouseenter,ae=this.handleFastForwardMouseleave;break;case"fast-backward":const ie=this.fastBackwardActive?m(Xt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Uf,null):m(jf,null)}):m(Xt,{clsPrefix:t},{default:()=>m(Gf,null)});O?X=O({type:"fast-backward",node:ie,active:this.fastBackwardActive||this.showFastBackwardMenu}):X=ie,le=this.handleFastBackwardMouseenter,ae=this.handleFastBackwardMouseleave;break}const fe=m("div",{key:j,class:[`${t}-pagination-item`,y.active&&`${t}-pagination-item--active`,Fe!=="page"&&(Fe==="fast-backward"&&this.showFastBackwardMenu||Fe==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,Fe==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{$(y)},onMouseenter:le,onMouseleave:ae},X);if(Fe==="page"&&!y.mayBeFastBackward&&!y.mayBeFastForward)return fe;{const ue=y.type==="page"?y.mayBeFastBackward?"fast-backward":"fast-forward":y.type;return y.type!=="page"&&!y.options?fe:m(s$,{to:this.to,key:ue,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:Fe==="page"?!1:Fe==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:we=>{Fe!=="page"&&(we?Fe==="fast-backward"?this.showFastBackwardMenu=we:this.showFastForwardMenu=we:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:y.type!=="page"&&y.options?y.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>fe})}}),m("div",{class:[`${t}-pagination-item`,!R&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||o}],onClick:G},R?R({page:r,pageSize:f,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):m(Xt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Wf,null):m(Kf,null)})));case"size-picker":return!v&&l?m(c$,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:P})):null;case"quick-jumper":return!v&&s?m("div",{class:`${t}-pagination-quick-jumper`},M?M():So(this.$slots.goto,()=>[d.goto]),m(rn,{value:g,onUpdateValue:E,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:H})):null;default:return null}}),L?m("div",{class:`${t}-pagination-suffix`},L({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),_m={padding:"8px 14px"},Xd={name:"Tooltip",common:We,peers:{Popover:ta},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},_m),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function v$(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},_m),{borderRadius:t,boxShadow:o,color:Ke(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Vs={name:"Tooltip",common:je,peers:{Popover:ui},self:v$},Mm={name:"Ellipsis",common:We,peers:{Tooltip:Xd}},n3={name:"Ellipsis",common:je,peers:{Tooltip:Vs}},Rm={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},zm={name:"Radio",common:We,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({},Rm),{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 ${Be(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 ${Be(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}};function b$(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({},Rm),{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 ${Be(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 ${Be(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}const Yd={name:"Radio",common:je,self:b$},x$={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 Am(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({},x$),{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:Be(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 Qd={name:"Dropdown",common:je,peers:{Popover:ui},self:Am},r3={name:"Dropdown",common:We,peers:{Popover:ta},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=Am(e);return r.colorInverted=n,r.optionColorActive=Be(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},y$={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 Pm(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:C,tableColorStriped:k}=e;return Object.assign(Object.assign({},y$),{actionDividerColor:v,lineHeight:h,borderRadius:c,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ke(t,v),tdColorHover:Ke(t,l),tdColorSorting:Ke(t,l),tdColorStriped:Ke(t,k),thColor:Ke(t,a),thColorHover:Ke(Ke(t,a),l),thColorSorting:Ke(Ke(t,a),l),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:u,borderColorModal:Ke(o,v),tdColorHoverModal:Ke(o,l),tdColorSortingModal:Ke(o,l),tdColorStripedModal:Ke(o,k),thColorModal:Ke(o,a),thColorHoverModal:Ke(Ke(o,a),l),thColorSortingModal:Ke(Ke(o,a),l),tdColorModal:o,borderColorPopover:Ke(n,v),tdColorHoverPopover:Ke(n,l),tdColorSortingPopover:Ke(n,l),tdColorStripedPopover:Ke(n,k),thColorPopover:Ke(n,a),thColorHoverPopover:Ke(Ke(n,a),l),thColorSortingPopover:Ke(Ke(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:C})}const Bm={name:"DataTable",common:je,peers:{Button:Ho,Checkbox:oa,Radio:Yd,Pagination:o3,Scrollbar:Lo,Empty:tr,Popover:ui,Ellipsis:n3,Dropdown:Qd},self:Pm},C$={name:"DataTable",common:We,peers:{Button:Yo,Checkbox:Ya,Radio:zm,Pagination:Em,Scrollbar:Zo,Empty:ea,Popover:ta,Ellipsis:Mm,Dropdown:r3},self(e){const t=Pm(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}},w$=Object.assign(Object.assign({},Ia),Le.props),S$=ye({name:"Tooltip",props:w$,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=it(e),o=Le("Tooltip","-tooltip",void 0,Vs,e,t),n=A(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:D(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return m(Xa,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)}}),$m=B("ellipsis",{overflow:"hidden"},[Mt("line-clamp",` + `)])])]);function km(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 p$(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=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?u4(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 u4(e,t){const o=[];for(let n=e;n<=t;++n)o.push({label:`${n}`,value:n});return o}const m$=Object.assign(Object.assign({},Le.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:Ao.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]}),g$=ye({name:"Pagination",props:m$,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=it(e),i=Le("Pagination","-pagination",h$,o3,e,o),{localeRef:a}=Fr("Pagination"),l=A(null),s=A(e.defaultPage),u=A(km(e)),d=ro(Te(e,"page"),s),c=ro(Te(e,"pageSize"),u),h=D(()=>{const{itemCount:ie}=e;if(ie!==void 0)return Math.max(1,Math.ceil(ie/c.value));const{pageCount:be}=e;return be!==void 0?Math.max(be,1):1}),f=A("");kt(()=>{e.simple,f.value=String(d.value)});const p=A(!1),g=A(!1),v=A(!1),b=A(!1),C=()=>{e.disabled||(p.value=!0,L())},k=()=>{e.disabled||(p.value=!1,L())},w=()=>{g.value=!0,L()},_=()=>{g.value=!1,L()},M=ie=>{I(ie)},E=D(()=>p$(d.value,h.value,e.pageSlot,e.showQuickJumpDropdown));kt(()=>{E.value.hasFastBackward?E.value.hasFastForward||(p.value=!1,v.value=!1):(g.value=!1,b.value=!1)});const P=D(()=>{const ie=a.value.selectionSuffix;return e.pageSizes.map(be=>typeof be=="number"?{label:`${be} / ${ie}`,value:be}:be)}),z=D(()=>{var ie,be;return((be=(ie=t==null?void 0:t.value)===null||ie===void 0?void 0:ie.Pagination)===null||be===void 0?void 0:be.inputSize)||F2(e.size)}),$=D(()=>{var ie,be;return((be=(ie=t==null?void 0:t.value)===null||ie===void 0?void 0:ie.Pagination)===null||be===void 0?void 0:be.selectSize)||F2(e.size)}),G=D(()=>(d.value-1)*c.value),H=D(()=>{const ie=d.value*c.value-1,{itemCount:be}=e;return be!==void 0&&ie>be-1?be-1:ie}),q=D(()=>{const{itemCount:ie}=e;return ie!==void 0?ie:(e.pageCount||1)*c.value}),W=Kt("Pagination",r,o);function L(){Rt(()=>{var ie;const{value:be}=l;be&&(be.classList.add("transition-disabled"),(ie=l.value)===null||ie===void 0||ie.offsetWidth,be.classList.remove("transition-disabled"))})}function I(ie){if(ie===d.value)return;const{"onUpdate:page":be,onUpdatePage:ze,onChange:pe,simple:U}=e;be&&Ae(be,ie),ze&&Ae(ze,ie),pe&&Ae(pe,ie),s.value=ie,U&&(f.value=String(ie))}function R(ie){if(ie===c.value)return;const{"onUpdate:pageSize":be,onUpdatePageSize:ze,onPageSizeChange:pe}=e;be&&Ae(be,ie),ze&&Ae(ze,ie),pe&&Ae(pe,ie),u.value=ie,h.value{d.value,c.value,L()});const ue=D(()=>{const{size:ie}=e,{self:{buttonBorder:be,buttonBorderHover:ze,buttonBorderPressed:pe,buttonIconColor:U,buttonIconColorHover:N,buttonIconColorPressed:ge,itemTextColor:Ce,itemTextColorHover:se,itemTextColorPressed:te,itemTextColorActive:ce,itemTextColorDisabled:Q,itemColor:re,itemColorHover:he,itemColorPressed:ne,itemColorActive:Y,itemColorActiveHover:de,itemColorDisabled:Ee,itemBorder:Ie,itemBorderHover:$e,itemBorderPressed:Qe,itemBorderActive:st,itemBorderDisabled:Je,itemBorderRadius:mt,jumperTextColor:et,jumperTextColorDisabled:Ne,buttonColor:ot,buttonColorHover:ee,buttonColorPressed:me,[_e("itemPadding",ie)]:Pe,[_e("itemMargin",ie)]:Ve,[_e("inputWidth",ie)]:Ue,[_e("selectWidth",ie)]:qe,[_e("inputMargin",ie)]:Ze,[_e("selectMargin",ie)]:nt,[_e("jumperFontSize",ie)]:Ct,[_e("prefixMargin",ie)]:Ot,[_e("suffixMargin",ie)]:_t,[_e("itemSize",ie)]:yo,[_e("buttonIconSize",ie)]:Po,[_e("itemFontSize",ie)]:Bo,[`${_e("itemMargin",ie)}Rtl`]:No,[`${_e("inputMargin",ie)}Rtl`]:Vo},common:{cubicBezierEaseInOut:un}}=i.value;return{"--n-prefix-margin":Ot,"--n-suffix-margin":_t,"--n-item-font-size":Bo,"--n-select-width":qe,"--n-select-margin":nt,"--n-input-width":Ue,"--n-input-margin":Ze,"--n-input-margin-rtl":Vo,"--n-item-size":yo,"--n-item-text-color":Ce,"--n-item-text-color-disabled":Q,"--n-item-text-color-hover":se,"--n-item-text-color-active":ce,"--n-item-text-color-pressed":te,"--n-item-color":re,"--n-item-color-hover":he,"--n-item-color-disabled":Ee,"--n-item-color-active":Y,"--n-item-color-active-hover":de,"--n-item-color-pressed":ne,"--n-item-border":Ie,"--n-item-border-hover":$e,"--n-item-border-disabled":Je,"--n-item-border-active":st,"--n-item-border-pressed":Qe,"--n-item-padding":Pe,"--n-item-border-radius":mt,"--n-bezier":un,"--n-jumper-font-size":Ct,"--n-jumper-text-color":et,"--n-jumper-text-color-disabled":Ne,"--n-item-margin":Ve,"--n-item-margin-rtl":No,"--n-button-icon-size":Po,"--n-button-icon-color":U,"--n-button-icon-color-hover":N,"--n-button-icon-color-pressed":ge,"--n-button-color-hover":ee,"--n-button-color":ot,"--n-button-color-pressed":me,"--n-button-border":be,"--n-button-border-hover":ze,"--n-button-border-pressed":pe}}),we=n?vt("pagination",D(()=>{let ie="";const{size:be}=e;return ie+=be[0],ie}),ue,e):void 0;return{rtlEnabled:W,mergedClsPrefix:o,locale:a,selfRef:l,mergedPage:d,pageItems:D(()=>E.value.items),mergedItemCount:q,jumperValue:f,pageSizeOptions:P,mergedPageSize:c,inputSize:z,selectSize:$,mergedTheme:i,mergedPageCount:h,startIndex:G,endIndex:H,showFastForwardMenu:v,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:M,handleFastForwardMouseenter:C,handleFastForwardMouseleave:k,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:_,handleJumperInput:fe,handleBackwardClick:oe,handleForwardClick:O,handlePageItemClick:Fe,handleSizePickerChange:X,handleQuickJumperChange:ae,cssVars:n?void 0:ue,themeClass:we==null?void 0:we.themeClass,onRender:we==null?void 0:we.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:C,prefix:k,suffix:w,label:_,goto:M,handleJumperInput:E,handleSizePickerChange:P,handleBackwardClick:z,handlePageItemClick:$,handleForwardClick:G,handleQuickJumperChange:H,onRender:q}=this;q==null||q();const W=e.prefix||k,L=e.suffix||w,I=b||e.prev,R=C||e.next,O=_||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},W?m("div",{class:`${t}-pagination-prefix`},W({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(oe=>{switch(oe){case"pages":return m(ft,null,m("div",{class:[`${t}-pagination-item`,!I&&`${t}-pagination-item--button`,(r<=1||r>i||o)&&`${t}-pagination-item--disabled`],onClick:z},I?I({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):m(Xt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Kf,null):m(Wf,null)})),v?m(ft,null,m("div",{class:`${t}-pagination-quick-jumper`},m(rn,{value:g,onUpdateValue:E,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:H}))," /"," ",i):a.map((y,j)=>{let X,le,ae;const{type:Fe}=y;switch(Fe){case"page":const ue=y.label;O?X=O({type:"page",node:ue,active:y.active}):X=ue;break;case"fast-forward":const we=this.fastForwardActive?m(Xt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(jf,null):m(Uf,null)}):m(Xt,{clsPrefix:t},{default:()=>m(Gf,null)});O?X=O({type:"fast-forward",node:we,active:this.fastForwardActive||this.showFastForwardMenu}):X=we,le=this.handleFastForwardMouseenter,ae=this.handleFastForwardMouseleave;break;case"fast-backward":const ie=this.fastBackwardActive?m(Xt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Uf,null):m(jf,null)}):m(Xt,{clsPrefix:t},{default:()=>m(Gf,null)});O?X=O({type:"fast-backward",node:ie,active:this.fastBackwardActive||this.showFastBackwardMenu}):X=ie,le=this.handleFastBackwardMouseenter,ae=this.handleFastBackwardMouseleave;break}const fe=m("div",{key:j,class:[`${t}-pagination-item`,y.active&&`${t}-pagination-item--active`,Fe!=="page"&&(Fe==="fast-backward"&&this.showFastBackwardMenu||Fe==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,Fe==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{$(y)},onMouseenter:le,onMouseleave:ae},X);if(Fe==="page"&&!y.mayBeFastBackward&&!y.mayBeFastForward)return fe;{const ue=y.type==="page"?y.mayBeFastBackward?"fast-backward":"fast-forward":y.type;return y.type!=="page"&&!y.options?fe:m(s$,{to:this.to,key:ue,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:Fe==="page"?!1:Fe==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:we=>{Fe!=="page"&&(we?Fe==="fast-backward"?this.showFastBackwardMenu=we:this.showFastForwardMenu=we:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:y.type!=="page"&&y.options?y.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>fe})}}),m("div",{class:[`${t}-pagination-item`,!R&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||o}],onClick:G},R?R({page:r,pageSize:f,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):m(Xt,{clsPrefix:t},{default:()=>this.rtlEnabled?m(Wf,null):m(Kf,null)})));case"size-picker":return!v&&l?m(c$,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:P})):null;case"quick-jumper":return!v&&s?m("div",{class:`${t}-pagination-quick-jumper`},M?M():So(this.$slots.goto,()=>[d.goto]),m(rn,{value:g,onUpdateValue:E,size:c,placeholder:"",disabled:o,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:H})):null;default:return null}}),L?m("div",{class:`${t}-pagination-suffix`},L({page:r,pageSize:f,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),_m={padding:"8px 14px"},Xd={name:"Tooltip",common:We,peers:{Popover:ta},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},_m),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function v$(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},_m),{borderRadius:t,boxShadow:o,color:Ke(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Vs={name:"Tooltip",common:je,peers:{Popover:ui},self:v$},Mm={name:"Ellipsis",common:We,peers:{Tooltip:Xd}},n3={name:"Ellipsis",common:je,peers:{Tooltip:Vs}},Rm={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},zm={name:"Radio",common:We,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({},Rm),{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 ${Be(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 ${Be(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}};function b$(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({},Rm),{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 ${Be(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 ${Be(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}const Yd={name:"Radio",common:je,self:b$},x$={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 Am(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({},x$),{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:Be(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 Qd={name:"Dropdown",common:je,peers:{Popover:ui},self:Am},r3={name:"Dropdown",common:We,peers:{Popover:ta},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=Am(e);return r.colorInverted=n,r.optionColorActive=Be(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},y$={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 Pm(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:C,tableColorStriped:k}=e;return Object.assign(Object.assign({},y$),{actionDividerColor:v,lineHeight:h,borderRadius:c,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ke(t,v),tdColorHover:Ke(t,l),tdColorSorting:Ke(t,l),tdColorStriped:Ke(t,k),thColor:Ke(t,a),thColorHover:Ke(Ke(t,a),l),thColorSorting:Ke(Ke(t,a),l),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:u,borderColorModal:Ke(o,v),tdColorHoverModal:Ke(o,l),tdColorSortingModal:Ke(o,l),tdColorStripedModal:Ke(o,k),thColorModal:Ke(o,a),thColorHoverModal:Ke(Ke(o,a),l),thColorSortingModal:Ke(Ke(o,a),l),tdColorModal:o,borderColorPopover:Ke(n,v),tdColorHoverPopover:Ke(n,l),tdColorSortingPopover:Ke(n,l),tdColorStripedPopover:Ke(n,k),thColorPopover:Ke(n,a),thColorHoverPopover:Ke(Ke(n,a),l),thColorSortingPopover:Ke(Ke(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:C})}const Bm={name:"DataTable",common:je,peers:{Button:Ho,Checkbox:oa,Radio:Yd,Pagination:o3,Scrollbar:Lo,Empty:tr,Popover:ui,Ellipsis:n3,Dropdown:Qd},self:Pm},C$={name:"DataTable",common:We,peers:{Button:Yo,Checkbox:Ya,Radio:zm,Pagination:Em,Scrollbar:Zo,Empty:ea,Popover:ta,Ellipsis:Mm,Dropdown:r3},self(e){const t=Pm(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}},w$=Object.assign(Object.assign({},Ia),Le.props),S$=ye({name:"Tooltip",props:w$,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=it(e),o=Le("Tooltip","-tooltip",void 0,Vs,e,t),n=A(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:D(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return m(Xa,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)}}),$m=B("ellipsis",{overflow:"hidden"},[Mt("line-clamp",` white-space: nowrap; display: inline-block; vertical-align: bottom; @@ -2299,7 +2299,7 @@ ${t} padding: var(--n-padding); `),J("scrollable",[Z("content",` padding: var(--n-padding); - `)])]),oD={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]},nD=Object.keys(Ia),rD=Object.assign(Object.assign(Object.assign({},Ia),oD),Le.props),Ym=ye({name:"Dropdown",inheritAttrs:!1,props:rD,setup(e){const t=A(!1),o=ro(Te(e,"show"),t),n=D(()=>{const{keyField:H,childrenField:q}=e;return Ud(e.options,{getKey(W){return W[H]},getDisabled(W){return W.disabled===!0},getIgnored(W){return W.type==="divider"||W.type==="render"},getChildren(W){return W[q]}})}),r=D(()=>n.value.treeNodes),i=A(null),a=A(null),l=A(null),s=D(()=>{var H,q,W;return(W=(q=(H=i.value)!==null&&H!==void 0?H:a.value)!==null&&q!==void 0?q:l.value)!==null&&W!==void 0?W:null}),u=D(()=>n.value.getPath(s.value).keyPath),d=D(()=>n.value.getPath(e.value).keyPath),c=bt(()=>e.keyboard&&o.value);Cw({keydown:{ArrowUp:{prevent:!0,handler:_},ArrowRight:{prevent:!0,handler:w},ArrowDown:{prevent:!0,handler:M},ArrowLeft:{prevent:!0,handler:k},Enter:{prevent:!0,handler:E},Escape:C}},c);const{mergedClsPrefixRef:h,inlineThemeDisabled:f}=it(e),p=Le("Dropdown","-dropdown",tD,Qd,e,h);tt(Jd,{labelFieldRef:Te(e,"labelField"),childrenFieldRef:Te(e,"childrenField"),renderLabelRef:Te(e,"renderLabel"),renderIconRef:Te(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:u,activeKeyPathRef:d,animatedRef:Te(e,"animated"),mergedShowRef:o,nodePropsRef:Te(e,"nodeProps"),renderOptionRef:Te(e,"renderOption"),menuPropsRef:Te(e,"menuProps"),doSelect:g,doUpdateShow:v}),lt(o,H=>{!e.animated&&!H&&b()});function g(H,q){const{onSelect:W}=e;W&&Ae(W,H,q)}function v(H){const{"onUpdate:show":q,onUpdateShow:W}=e;q&&Ae(q,H),W&&Ae(W,H),t.value=H}function b(){i.value=null,a.value=null,l.value=null}function C(){v(!1)}function k(){z("left")}function w(){z("right")}function _(){z("up")}function M(){z("down")}function E(){const H=P();H!=null&&H.isLeaf&&o.value&&(g(H.key,H.rawNode),v(!1))}function P(){var H;const{value:q}=n,{value:W}=s;return!q||W===null?null:(H=q.getNode(W))!==null&&H!==void 0?H:null}function z(H){const{value:q}=s,{value:{getFirstAvailableNode:W}}=n;let L=null;if(q===null){const I=W();I!==null&&(L=I.key)}else{const I=P();if(I){let R;switch(H){case"down":R=I.getNext();break;case"up":R=I.getPrev();break;case"right":R=I.getChild();break;case"left":R=I.getParent();break}R&&(L=R.key)}}L!==null&&(i.value=null,a.value=L)}const $=D(()=>{const{size:H,inverted:q}=e,{common:{cubicBezierEaseInOut:W},self:L}=p.value,{padding:I,dividerColor:R,borderRadius:O,optionOpacityDisabled:oe,[_e("optionIconSuffixWidth",H)]:y,[_e("optionSuffixWidth",H)]:j,[_e("optionIconPrefixWidth",H)]:X,[_e("optionPrefixWidth",H)]:le,[_e("fontSize",H)]:ae,[_e("optionHeight",H)]:Fe,[_e("optionIconSize",H)]:fe}=L,ue={"--n-bezier":W,"--n-font-size":ae,"--n-padding":I,"--n-border-radius":O,"--n-option-height":Fe,"--n-option-prefix-width":le,"--n-option-icon-prefix-width":X,"--n-option-suffix-width":j,"--n-option-icon-suffix-width":y,"--n-option-icon-size":fe,"--n-divider-color":R,"--n-option-opacity-disabled":oe};return q?(ue["--n-color"]=L.colorInverted,ue["--n-option-color-hover"]=L.optionColorHoverInverted,ue["--n-option-color-active"]=L.optionColorActiveInverted,ue["--n-option-text-color"]=L.optionTextColorInverted,ue["--n-option-text-color-hover"]=L.optionTextColorHoverInverted,ue["--n-option-text-color-active"]=L.optionTextColorActiveInverted,ue["--n-option-text-color-child-active"]=L.optionTextColorChildActiveInverted,ue["--n-prefix-color"]=L.prefixColorInverted,ue["--n-suffix-color"]=L.suffixColorInverted,ue["--n-group-header-text-color"]=L.groupHeaderTextColorInverted):(ue["--n-color"]=L.color,ue["--n-option-color-hover"]=L.optionColorHover,ue["--n-option-color-active"]=L.optionColorActive,ue["--n-option-text-color"]=L.optionTextColor,ue["--n-option-text-color-hover"]=L.optionTextColorHover,ue["--n-option-text-color-active"]=L.optionTextColorActive,ue["--n-option-text-color-child-active"]=L.optionTextColorChildActive,ue["--n-prefix-color"]=L.prefixColor,ue["--n-suffix-color"]=L.suffixColor,ue["--n-group-header-text-color"]=L.groupHeaderTextColor),ue}),G=f?vt("dropdown",D(()=>`${e.size[0]}${e.inverted?"i":""}`),$,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:v,cssVars:f?void 0:$,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.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:Pp(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(Xm,mo(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(Xa,Object.assign({},ti(this.$props,nD),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),Qm="_n_all__",Jm="_n_none__";function iD(e,t,o,n){return e?r=>{for(const i of e)switch(r){case Qm:o(!0);return;case Jm:n(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function aD(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:Qm};case"none":return{label:t.uncheckTableAll,key:Jm};default:return o}}):[]}const lD=ye({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:n,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=He(Tn),l=D(()=>iD(n.value,r,i,a)),s=D(()=>aD(n.value,o.value));return()=>{var u,d,c,h;const{clsPrefix:f}=e;return m(Ym,{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(Xt,{clsPrefix:f,class:`${f}-data-table-check-extra`},{default:()=>m(m7,null)})})}}});function a0(e){return typeof e.title=="function"?e.title(e):e.title}const sD=ye({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))}}),eg=ye({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:C,handleTableHeaderScroll:k,deriveNextSorter:w,doUncheckAll:_,doCheckAll:M}=He(Tn),E=A(),P=A({});function z(L){const I=P.value[L];return I==null?void 0:I.getBoundingClientRect().width}function $(){i.value?_():M()}function G(L,I){if(Ko(L,"dataTableFilter")||Ko(L,"dataTableResizable")||!i0(I))return;const R=c.value.find(oe=>oe.columnKey===I.key)||null,O=L$(I,R);w(O)}const H=new Map;function q(L){H.set(L.key,z(L.key))}function W(L,I){const R=H.get(L.key);if(R===void 0)return;const O=R+I,oe=T$(O,L.minWidth,L.maxWidth);b(O,oe,L,z),C(L,oe)}return{cellElsRef:P,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:E,handleCheckboxUpdateChecked:$,handleColHeaderClick:G,handleTableHeaderScroll:k,handleColumnResizeStart:q,handleColumnResize:W}},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:C,handleColumnResizeStart:k,handleColumnResize:w}=this,_=(z,$,G)=>z.map(({column:H,colIndex:q,colSpan:W,rowSpan:L,isLast:I})=>{var R,O;const oe=En(H),{ellipsis:y}=H,j=()=>H.type==="selection"?H.multiple!==!1?m(ft,null,m(qd,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:C}),d?m(lD,{clsPrefix:t}):null):null:m(ft,null,m("div",{class:`${t}-data-table-th__title-wrapper`},m("div",{class:`${t}-data-table-th__title`},y===!0||y&&!y.tooltip?m("div",{class:`${t}-data-table-th__ellipsis`},a0(H)):y&&typeof y=="object"?m(i3,Object.assign({},y,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>a0(H)}):a0(H)),i0(H)?m(_$,{column:H}):null),f4(H)?m(U$,{column:H,options:H.filterOptions}):null,Wm(H)?m(K$,{onResizeStart:()=>{k(H)},onResize:Fe=>{w(H,Fe)}}):null),X=oe in o,le=oe in n,ae=$&&!H.fixed?"div":"th";return m(ae,{ref:Fe=>e[oe]=Fe,key:oe,style:[$&&!H.fixed?{position:"absolute",left:jt($(q)),top:0,bottom:0}:{left:jt((R=o[oe])===null||R===void 0?void 0:R.start),right:jt((O=n[oe])===null||O===void 0?void 0:O.start)},{width:jt(H.width),textAlign:H.titleAlign||H.align,height:G}],colspan:W,rowspan:L,"data-col-key":oe,class:[`${t}-data-table-th`,(X||le)&&`${t}-data-table-th--fixed-${X?"left":"right"}`,{[`${t}-data-table-th--sorting`]:jm(H,g),[`${t}-data-table-th--filterable`]:f4(H),[`${t}-data-table-th--sortable`]:i0(H),[`${t}-data-table-th--selection`]:H.type==="selection",[`${t}-data-table-th--last`]:I},H.className],onClick:H.type!=="selection"&&H.type!=="expand"&&!("children"in H)?Fe=>{b(Fe,H)}:void 0},j())});if(v){const{headerHeight:z}=this;let $=0,G=0;return s.forEach(H=>{H.column.fixed==="left"?$++:H.column.fixed==="right"&&G++}),m(F6,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:jt(z)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:z,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:sD,visibleItemsProps:{clsPrefix:t,id:c,cols:s,width:Fo(this.scrollX)},renderItemWithCols:({startColIndex:H,endColIndex:q,getLeft:W})=>{const L=s.map((R,O)=>({column:R.column,isLast:O===s.length-1,colIndex:R.index,colSpan:1,rowSpan:1})).filter(({column:R},O)=>!!(H<=O&&O<=q||R.fixed)),I=_(L,W,jt(z));return I.splice($,0,m("th",{colspan:s.length-$-G,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",{style:{position:"relative"}},I)}},{default:({renderedItemWithCols:H})=>H})}const M=m("thead",{class:`${t}-data-table-thead`,"data-n-id":c},l.map(z=>m("tr",{class:`${t}-data-table-tr`},_(z,null,void 0))));if(!h)return M;const{handleTableHeaderScroll:E,scrollX:P}=this;return m("div",{class:`${t}-data-table-base-table-header`,onScroll:E},m("table",{class:`${t}-data-table-table`,style:{minWidth:Fo(P),tableLayout:f}},m("colgroup",null,s.map(z=>m("col",{key:z.key,style:z.style}))),M))}}),uD=ye({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(d1(n,l),n,o):d1(n,l),s)if(typeof s=="object"){const{mergedTheme:u}=this;return o.ellipsisComponent==="performant-ellipsis"?m(F$,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i}):m(i3,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}}),m4=ye({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(Ji,null,{default:()=>this.loading?m(kr,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):m(Xt,{clsPrefix:e,key:"base-icon"},{default:()=>m(W6,null)})}))}}),dD=ye({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}=He(Tn);return()=>{const{rowKey:n}=e;return m(qd,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),cD=ye({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}=He(Tn);return()=>{const{rowKey:n}=e;return m(Lm,{name:o,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}});function fD(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 hD=ye({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))}}),pD=ye({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:C,hoverKeyRef:k,summaryRef:w,mergedSortStateRef:_,virtualScrollRef:M,virtualScrollXRef:E,heightForRowRef:P,minRowHeightRef:z,componentId:$,mergedTableLayoutRef:G,childTriggerColIndexRef:H,indentRef:q,rowPropsRef:W,maxHeightRef:L,stripedRef:I,loadingRef:R,onLoadRef:O,loadingKeySetRef:oe,expandableRef:y,stickyExpandedRowsRef:j,renderExpandIconRef:X,summaryPlacementRef:le,treeMateRef:ae,scrollbarPropsRef:Fe,setHeaderScrollLeft:fe,doUpdateExpandedRowKeys:ue,handleTableBodyScroll:we,doCheck:ie,doUncheck:be,renderCell:ze}=He(Tn),pe=He(ln),U=A(null),N=A(null),ge=A(null),Ce=bt(()=>s.value.length===0),se=bt(()=>e.showHeader||!Ce.value),te=bt(()=>e.showHeader||Ce.value);let ce="";const Q=D(()=>new Set(n.value));function re(Ne){var ot;return(ot=ae.value.getNode(Ne))===null||ot===void 0?void 0:ot.rawNode}function he(Ne,ot,ee){const me=re(Ne.key);if(!me){xn("data-table",`fail to get row data with key ${Ne.key}`);return}if(ee){const Pe=s.value.findIndex(Ve=>Ve.key===ce);if(Pe!==-1){const Ve=s.value.findIndex(nt=>nt.key===Ne.key),Ue=Math.min(Pe,Ve),qe=Math.max(Pe,Ve),Ze=[];s.value.slice(Ue,qe+1).forEach(nt=>{nt.disabled||Ze.push(nt.key)}),ot?ie(Ze,!1,me):be(Ze,me),ce=Ne.key;return}}ot?ie(Ne.key,!1,me):be(Ne.key,me),ce=Ne.key}function ne(Ne){const ot=re(Ne.key);if(!ot){xn("data-table",`fail to get row data with key ${Ne.key}`);return}ie(Ne.key,!0,ot)}function Y(){if(!se.value){const{value:ot}=ge;return ot||null}if(M.value)return Ie();const{value:Ne}=U;return Ne?Ne.containerRef:null}function de(Ne,ot){var ee;if(oe.value.has(Ne))return;const{value:me}=n,Pe=me.indexOf(Ne),Ve=Array.from(me);~Pe?(Ve.splice(Pe,1),ue(Ve)):ot&&!ot.isLeaf&&!ot.shallowLoaded?(oe.value.add(Ne),(ee=O.value)===null||ee===void 0||ee.call(O,ot.rawNode).then(()=>{const{value:Ue}=n,qe=Array.from(Ue);~qe.indexOf(Ne)||qe.push(Ne),ue(qe)}).finally(()=>{oe.value.delete(Ne)})):(Ve.push(Ne),ue(Ve))}function Ee(){k.value=null}function Ie(){const{value:Ne}=N;return(Ne==null?void 0:Ne.listElRef)||null}function $e(){const{value:Ne}=N;return(Ne==null?void 0:Ne.itemsElRef)||null}function Ye(Ne){var ot;we(Ne),(ot=U.value)===null||ot===void 0||ot.sync()}function st(Ne){var ot;const{onResize:ee}=e;ee&&ee(Ne),(ot=U.value)===null||ot===void 0||ot.sync()}const Qe={getScrollContainer:Y,scrollTo(Ne,ot){var ee,me;M.value?(ee=N.value)===null||ee===void 0||ee.scrollTo(Ne,ot):(me=U.value)===null||me===void 0||me.scrollTo(Ne,ot)}},mt=V([({props:Ne})=>{const ot=me=>me===null?null:V(`[data-n-id="${Ne.componentId}"] [data-col-key="${me}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),ee=me=>me===null?null:V(`[data-n-id="${Ne.componentId}"] [data-col-key="${me}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return V([ot(Ne.leftActiveFixedColKey),ee(Ne.rightActiveFixedColKey),Ne.leftActiveFixedChildrenColKeys.map(me=>ot(me)),Ne.rightActiveFixedChildrenColKeys.map(me=>ee(me))])}]);let Je=!1;return kt(()=>{const{value:Ne}=p,{value:ot}=g,{value:ee}=v,{value:me}=b;if(!Je&&Ne===null&&ee===null)return;const Pe={leftActiveFixedColKey:Ne,leftActiveFixedChildrenColKeys:ot,rightActiveFixedColKey:ee,rightActiveFixedChildrenColKeys:me,componentId:$};mt.mount({id:`n-${$}`,force:!0,props:Pe,anchorMetaName:Ta,parent:pe==null?void 0:pe.styleMountTarget}),Je=!0}),Go(()=>{mt.unmount({id:`n-${$}`,parent:pe==null?void 0:pe.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:le,dataTableSlots:t,componentId:$,scrollbarInstRef:U,virtualListRef:N,emptyElRef:ge,summary:w,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:l,loading:R,bodyShowHeaderOnly:te,shouldDisplaySomeTablePart:se,empty:Ce,paginatedDataAndInfo:D(()=>{const{value:Ne}=I;let ot=!1;return{data:s.value.map(Ne?(me,Pe)=>(me.isLeaf||(ot=!0),{tmNode:me,key:me.key,striped:Pe%2===1,index:Pe}):(me,Pe)=>(me.isLeaf||(ot=!0),{tmNode:me,key:me.key,striped:!1,index:Pe})),hasChildren:ot}}),rawPaginatedData:u,fixedColumnLeftMap:d,fixedColumnRightMap:c,currentPage:h,rowClassName:f,renderExpand:C,mergedExpandedRowKeySet:Q,hoverKey:k,mergedSortState:_,virtualScroll:M,virtualScrollX:E,heightForRow:P,minRowHeight:z,mergedTableLayout:G,childTriggerColIndex:H,indent:q,rowProps:W,maxHeight:L,loadingKeySet:oe,expandable:y,stickyExpandedRows:j,renderExpandIcon:X,scrollbarProps:Fe,setHeaderScrollLeft:fe,handleVirtualListScroll:Ye,handleVirtualListResize:st,handleMouseleaveTable:Ee,virtualListContainer:Ie,virtualListContent:$e,handleTableBodyScroll:we,handleCheckboxUpdateChecked:he,handleRadioUpdateChecked:ne,handleUpdateExpanded:de,renderCell:ze},Qe)},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:Fo(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:C,mergedTheme:k,fixedColumnLeftMap:w,fixedColumnRightMap:_,currentPage:M,rowClassName:E,mergedSortState:P,mergedExpandedRowKeySet:z,stickyExpandedRows:$,componentId:G,childTriggerColIndex:H,expandable:q,rowProps:W,handleMouseleaveTable:L,renderExpand:I,summary:R,handleCheckboxUpdateChecked:O,handleRadioUpdateChecked:oe,handleUpdateExpanded:y,heightForRow:j,minRowHeight:X,virtualScrollX:le}=this,{length:ae}=b;let Fe;const{data:fe,hasChildren:ue}=C,we=ue?fD(fe,z):fe;if(R){const ce=R(this.rawPaginatedData);if(Array.isArray(ce)){const Q=ce.map((re,he)=>({isSummaryRow:!0,key:`__n_summary__${he}`,tmNode:{rawNode:re,disabled:!0},index:-1}));Fe=this.summaryPlacement==="top"?[...Q,...we]:[...we,...Q]}else{const Q={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ce,disabled:!0},index:-1};Fe=this.summaryPlacement==="top"?[Q,...we]:[...we,Q]}}else Fe=we;const ie=ue?{width:jt(this.indent)}:void 0,be=[];Fe.forEach(ce=>{I&&z.has(ce.key)&&(!q||q(ce.tmNode.rawNode))?be.push(ce,{isExpandedRow:!0,key:`${ce.key}-expand`,tmNode:ce.tmNode,index:ce.index}):be.push(ce)});const{length:ze}=be,pe={};fe.forEach(({tmNode:ce},Q)=>{pe[Q]=ce.key});const U=$?this.bodyWidth:null,N=U===null?void 0:`${U}px`,ge=this.virtualScrollX?"div":"td";let Ce=0,se=0;le&&b.forEach(ce=>{ce.column.fixed==="left"?Ce++:ce.column.fixed==="right"&&se++});const te=({rowInfo:ce,displayedRowIndex:Q,isVirtual:re,isVirtualX:he,startColIndex:ne,endColIndex:Y,getLeft:de})=>{const{index:Ee}=ce;if("isExpandedRow"in ce){const{tmNode:{key:Ve,rawNode:Ue}}=ce;return m("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${Ve}__expand`},m("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,Q+1===ze&&`${o}-data-table-td--last-row`],colspan:ae},$?m("div",{class:`${o}-data-table-expand`,style:{width:N}},I(Ue,Ee)):I(Ue,Ee)))}const Ie="isSummaryRow"in ce,$e=!Ie&&ce.striped,{tmNode:Ye,key:st}=ce,{rawNode:Qe}=Ye,mt=z.has(st),Je=W?W(Qe,Ee):void 0,Ne=typeof E=="string"?E:O$(Qe,Ee,E),ot=he?b.filter((Ve,Ue)=>!!(ne<=Ue&&Ue<=Y||Ve.column.fixed)):b,ee=he?jt((j==null?void 0:j(Qe,Ee))||X):void 0,me=ot.map(Ve=>{var Ue,qe,Ze,nt,Ct;const Ot=Ve.index;if(Q in g){const eo=g[Q],io=eo.indexOf(Ot);if(~io)return eo.splice(io,1),null}const{column:_t}=Ve,yo=En(Ve),{rowSpan:Po,colSpan:Bo}=_t,No=Ie?((Ue=ce.tmNode.rawNode[yo])===null||Ue===void 0?void 0:Ue.colSpan)||1:Bo?Bo(Qe,Ee):1,Vo=Ie?((qe=ce.tmNode.rawNode[yo])===null||qe===void 0?void 0:qe.rowSpan)||1:Po?Po(Qe,Ee):1,un=Ot+No===ae,dn=Q+Vo===ze,ve=Vo>1;if(ve&&(v[Q]={[Ot]:[]}),No>1||ve)for(let eo=Q;eo{y(st,ce.tmNode)}})]:null,_t.type==="selection"?Ie?null:_t.multiple===!1?m(cD,{key:M,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:()=>{oe(ce.tmNode)}}):m(dD,{key:M,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:(eo,io)=>{O(ce.tmNode,eo,io.shiftKey)}}):_t.type==="expand"?Ie?null:!_t.expandable||!((Ct=_t.expandable)===null||Ct===void 0)&&Ct.call(_t,Qe)?m(m4,{clsPrefix:o,rowData:Qe,expanded:mt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{y(st,null)}}):null:m(uD,{clsPrefix:o,index:Ee,row:Qe,column:_t,isSummary:Ie,mergedTheme:k,renderCell:this.renderCell}))});return he&&Ce&&se&&me.splice(Ce,0,m("td",{colspan:b.length-Ce-se,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",Object.assign({},Je,{onMouseenter:Ve=>{var Ue;this.hoverKey=st,(Ue=Je==null?void 0:Je.onMouseenter)===null||Ue===void 0||Ue.call(Je,Ve)},key:st,class:[`${o}-data-table-tr`,Ie&&`${o}-data-table-tr--summary`,$e&&`${o}-data-table-tr--striped`,mt&&`${o}-data-table-tr--expanded`,Ne,Je==null?void 0:Je.class],style:[Je==null?void 0:Je.style,he&&{height:ee}]}),me)};return n?m(F6,{ref:"virtualListRef",items:be,itemSize:this.minRowHeight,visibleItemsTag:hD,visibleItemsProps:{clsPrefix:o,id:G,cols:b,onMouseleave:L},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:f,itemResizable:!le,columns:b,renderItemWithCols:le?({itemIndex:ce,item:Q,startColIndex:re,endColIndex:he,getLeft:ne})=>te({displayedRowIndex:ce,isVirtual:!0,isVirtualX:!0,rowInfo:Q,startColIndex:re,endColIndex:he,getLeft:ne}):void 0},{default:({item:ce,index:Q,renderedItemWithCols:re})=>re||te({rowInfo:ce,displayedRowIndex:Q,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(he){return 0}})}):m("table",{class:`${o}-data-table-table`,onMouseleave:L,style:{tableLayout:this.mergedTableLayout}},m("colgroup",null,b.map(ce=>m("col",{key:ce.key,style:ce.style}))),this.showHeader?m(eg,{discrete:!1}):null,this.empty?null:m("tbody",{"data-n-id":G,class:`${o}-data-table-tbody`},be.map((ce,Q)=>te({rowInfo:ce,displayedRowIndex:Q,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(re){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"},So(this.dataTableSlots.empty,()=>[m(U6,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?m(ft,null,p,g()):m(Rn,{onResize:this.onResize},{default:g})}return p}}),mD=ye({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:n,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,virtualScrollHeaderRef:l,syncScrollState:s}=He(Tn),u=A(null),d=A(null),c=A(null),h=A(!(o.value.length||t.value.length)),f=D(()=>({maxHeight:Fo(r.value),minHeight:Fo(i.value)}));function p(C){n.value=C.contentRect.width,s(),h.value||(h.value=!0)}function g(){var C;const{value:k}=u;return k?l.value?((C=k.virtualListRef)===null||C===void 0?void 0:C.listElRef)||null:k.$el:null}function v(){const{value:C}=d;return C?C.getScrollContainer():null}const b={getBodyElement:v,getHeaderElement:g,scrollTo(C,k){var w;(w=d.value)===null||w===void 0||w.scrollTo(C,k)}};return kt(()=>{const{value:C}=c;if(!C)return;const k=`${e.value}-data-table-base-table--transition-disabled`;h.value?setTimeout(()=>{C.classList.remove(k)},0):C.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(eg,{ref:"headerInstRef"}),m(pD,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:o,onResize:this.handleBodyResize}))}});function gD(e,t){const{paginatedDataRef:o,treeMateRef:n,selectionColumnRef:r}=t,i=A(e.defaultCheckedRowKeys),a=D(()=>{var _;const{checkedRowKeys:M}=e,E=M===void 0?i.value:M;return((_=r.value)===null||_===void 0?void 0:_.multiple)===!1?{checkedKeys:E.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(E,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=D(()=>a.value.checkedKeys),s=D(()=>a.value.indeterminateKeys),u=D(()=>new Set(l.value)),d=D(()=>new Set(s.value)),c=D(()=>{const{value:_}=u;return o.value.reduce((M,E)=>{const{key:P,disabled:z}=E;return M+(!z&&_.has(P)?1:0)},0)}),h=D(()=>o.value.filter(_=>_.disabled).length),f=D(()=>{const{length:_}=o.value,{value:M}=d;return c.value>0&&c.value<_-h.value||o.value.some(E=>M.has(E.key))}),p=D(()=>{const{length:_}=o.value;return c.value!==0&&c.value===_-h.value}),g=D(()=>o.value.length===0);function v(_,M,E){const{"onUpdate:checkedRowKeys":P,onUpdateCheckedRowKeys:z,onCheckedRowKeysChange:$}=e,G=[],{value:{getNode:H}}=n;_.forEach(q=>{var W;const L=(W=H(q))===null||W===void 0?void 0:W.rawNode;G.push(L)}),P&&Ae(P,_,G,{row:M,action:E}),z&&Ae(z,_,G,{row:M,action:E}),$&&Ae($,_,G,{row:M,action:E}),i.value=_}function b(_,M=!1,E){if(!e.loading){if(M){v(Array.isArray(_)?_.slice(0,1):[_],E,"check");return}v(n.value.check(_,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,E,"check")}}function C(_,M){e.loading||v(n.value.uncheck(_,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,M,"uncheck")}function k(_=!1){const{value:M}=r;if(!M||e.loading)return;const E=[];(_?n.value.treeNodes:o.value).forEach(P=>{P.disabled||E.push(P.key)}),v(n.value.check(E,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function w(_=!1){const{value:M}=r;if(!M||e.loading)return;const E=[];(_?n.value.treeNodes:o.value).forEach(P=>{P.disabled||E.push(P.key)}),v(n.value.uncheck(E,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:w,doCheck:b,doUncheck:C}}function xu(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function vD(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?bD(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function bD(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 xD(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=A(n),i=D(()=>{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=D(()=>{const f=i.value.slice().sort((p,g)=>{const v=xu(p.sorter)||0;return(xu(g.sorter)||0)-v});return f.length?o.value.slice().sort((g,v)=>{let b=0;return f.some(C=>{const{columnKey:k,sorter:w,order:_}=C,M=vD(w,k);return M&&_&&(b=M(g.rawNode,v.rawNode),b!==0)?(b=b*D$(_),!0):!1}),b}):o.value});function l(f){let p=i.value.slice();return f&&xu(f.sorter)!==!1?(p=p.filter(g=>xu(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&&Ae(p,f),g&&Ae(g,f),v&&Ae(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 yD(e,{dataRelatedColsRef:t}){const o=D(()=>{const j=X=>{for(let le=0;le{const{childrenKey:j}=e;return Ud(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:X=>X[j],getDisabled:X=>{var le,ae;return!!(!((ae=(le=o.value)===null||le===void 0?void 0:le.disabled)===null||ae===void 0)&&ae.call(le,X))}})}),r=bt(()=>{const{columns:j}=e,{length:X}=j;let le=null;for(let ae=0;ae{const j=t.value.filter(ae=>ae.filterOptionValues!==void 0||ae.filterOptionValue!==void 0),X={};return j.forEach(ae=>{var Fe;ae.type==="selection"||ae.type==="expand"||(ae.filterOptionValues===void 0?X[ae.key]=(Fe=ae.filterOptionValue)!==null&&Fe!==void 0?Fe:null:X[ae.key]=ae.filterOptionValues)}),Object.assign(c4(i.value),X)}),d=D(()=>{const j=u.value,{columns:X}=e;function le(fe){return(ue,we)=>!!~String(we[fe]).indexOf(String(ue))}const{value:{treeNodes:ae}}=n,Fe=[];return X.forEach(fe=>{fe.type==="selection"||fe.type==="expand"||"children"in fe||Fe.push([fe.key,fe])}),ae?ae.filter(fe=>{const{rawNode:ue}=fe;for(const[we,ie]of Fe){let be=j[we];if(be==null||(Array.isArray(be)||(be=[be]),!be.length))continue;const ze=ie.filter==="default"?le(we):ie.filter;if(ie&&typeof ze=="function")if(ie.filterMode==="and"){if(be.some(pe=>!ze(pe,ue)))return!1}else{if(be.some(pe=>ze(pe,ue)))continue;return!1}}return!0}):[]}),{sortedDataRef:c,deriveNextSorter:h,mergedSortStateRef:f,sort:p,clearSorter:g}=xD(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(j=>{var X;if(j.filter){const le=j.defaultFilterOptionValues;j.filterMultiple?i.value[j.key]=le||[]:le!==void 0?i.value[j.key]=le===null?[]:le:i.value[j.key]=(X=j.defaultFilterOptionValue)!==null&&X!==void 0?X:null}});const v=D(()=>{const{pagination:j}=e;if(j!==!1)return j.page}),b=D(()=>{const{pagination:j}=e;if(j!==!1)return j.pageSize}),C=ro(v,l),k=ro(b,s),w=bt(()=>{const j=C.value;return e.remote?j:Math.max(1,Math.min(Math.ceil(d.value.length/k.value),j))}),_=D(()=>{const{pagination:j}=e;if(j){const{pageCount:X}=j;if(X!==void 0)return X}}),M=D(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return c.value;const j=k.value,X=(w.value-1)*j;return c.value.slice(X,X+j)}),E=D(()=>M.value.map(j=>j.rawNode));function P(j){const{pagination:X}=e;if(X){const{onChange:le,"onUpdate:page":ae,onUpdatePage:Fe}=X;le&&Ae(le,j),Fe&&Ae(Fe,j),ae&&Ae(ae,j),H(j)}}function z(j){const{pagination:X}=e;if(X){const{onPageSizeChange:le,"onUpdate:pageSize":ae,onUpdatePageSize:Fe}=X;le&&Ae(le,j),Fe&&Ae(Fe,j),ae&&Ae(ae,j),q(j)}}const $=D(()=>{if(e.remote){const{pagination:j}=e;if(j){const{itemCount:X}=j;if(X!==void 0)return X}return}return d.value.length}),G=D(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":P,"onUpdate:pageSize":z,page:w.value,pageSize:k.value,pageCount:$.value===void 0?_.value:void 0,itemCount:$.value}));function H(j){const{"onUpdate:page":X,onPageChange:le,onUpdatePage:ae}=e;ae&&Ae(ae,j),X&&Ae(X,j),le&&Ae(le,j),l.value=j}function q(j){const{"onUpdate:pageSize":X,onPageSizeChange:le,onUpdatePageSize:ae}=e;le&&Ae(le,j),ae&&Ae(ae,j),X&&Ae(X,j),s.value=j}function W(j,X){const{onUpdateFilters:le,"onUpdate:filters":ae,onFiltersChange:Fe}=e;le&&Ae(le,j,X),ae&&Ae(ae,j,X),Fe&&Ae(Fe,j,X),i.value=j}function L(j,X,le,ae){var Fe;(Fe=e.onUnstableColumnResize)===null||Fe===void 0||Fe.call(e,j,X,le,ae)}function I(j){H(j)}function R(){O()}function O(){oe({})}function oe(j){y(j)}function y(j){j?j&&(i.value=c4(j)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:w,mergedPaginationRef:G,paginatedDataRef:M,rawPaginatedDataRef:E,mergedFilterStateRef:u,mergedSortStateRef:f,hoverKeyRef:A(null),selectionColumnRef:o,childTriggerColIndexRef:r,doUpdateFilters:W,deriveNextSorter:h,doUpdatePageSize:q,doUpdatePage:H,onUnstableColumnResize:L,filter:y,filters:oe,clearFilter:R,clearFilters:O,clearSorter:g,page:I,sort:p}}function CD(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:n}){let r=0;const i=A(),a=A(null),l=A([]),s=A(null),u=A([]),d=D(()=>Fo(e.scrollX)),c=D(()=>e.columns.filter(z=>z.fixed==="left")),h=D(()=>e.columns.filter(z=>z.fixed==="right")),f=D(()=>{const z={};let $=0;function G(H){H.forEach(q=>{const W={start:$,end:0};z[En(q)]=W,"children"in q?(G(q.children),W.end=$):($+=d4(q)||0,W.end=$)})}return G(c.value),z}),p=D(()=>{const z={};let $=0;function G(H){for(let q=H.length-1;q>=0;--q){const W=H[q],L={start:$,end:0};z[En(W)]=L,"children"in W?(G(W.children),L.end=$):($+=d4(W)||0,L.end=$)}}return G(h.value),z});function g(){var z,$;const{value:G}=c;let H=0;const{value:q}=f;let W=null;for(let L=0;L(((z=q[I])===null||z===void 0?void 0:z.start)||0)-H)W=I,H=(($=q[I])===null||$===void 0?void 0:$.end)||0;else break}a.value=W}function v(){l.value=[];let z=e.columns.find($=>En($)===a.value);for(;z&&"children"in z;){const $=z.children.length;if($===0)break;const G=z.children[$-1];l.value.push(En(G)),z=G}}function b(){var z,$;const{value:G}=h,H=Number(e.scrollX),{value:q}=n;if(q===null)return;let W=0,L=null;const{value:I}=p;for(let R=G.length-1;R>=0;--R){const O=En(G[R]);if(Math.round(r+(((z=I[O])===null||z===void 0?void 0:z.start)||0)+q-W)En($)===s.value);for(;z&&"children"in z&&z.children.length;){const $=z.children[0];u.value.push(En($)),z=$}}function k(){const z=t.value?t.value.getHeaderElement():null,$=t.value?t.value.getBodyElement():null;return{header:z,body:$}}function w(){const{body:z}=k();z&&(z.scrollTop=0)}function _(){i.value!=="body"?os(E):i.value=void 0}function M(z){var $;($=e.onScroll)===null||$===void 0||$.call(e,z),i.value!=="head"?os(E):i.value=void 0}function E(){const{header:z,body:$}=k();if(!$)return;const{value:G}=n;if(G!==null){if(e.maxHeight||e.flexHeight){if(!z)return;const H=r-z.scrollLeft;i.value=H!==0?"head":"body",i.value==="head"?(r=z.scrollLeft,$.scrollLeft=r):(r=$.scrollLeft,z.scrollLeft=r)}else r=$.scrollLeft;g(),v(),b(),C()}}function P(z){const{header:$}=k();$&&($.scrollLeft=z,E())}return lt(o,()=>{w()}),{styleScrollXRef:d,fixedColumnLeftMapRef:f,fixedColumnRightMapRef:p,leftFixedColumnsRef:c,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:u,syncScrollState:E,handleTableBodyScroll:M,handleTableHeaderScroll:_,setHeaderScrollLeft:P}}function wD(){const e=A({});function t(r){return e.value[r]}function o(r,i){Wm(r)&&"key"in r&&(e.value[r.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:n}}function SD(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:En(p),style:I$(p,v!==void 0?Fo(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,C={column:g,colIndex:d,colSpan:0,rowSpan:1,isLast:!1};c(g.children,f+1),g.children.forEach(k=>{var w,_;C.colSpan+=(_=(w=i.get(k))===null||w===void 0?void 0:w.colSpan)!==null&&_!==void 0?_:0}),b+C.colSpan===l&&(C.isLast=!0),i.set(g,C),o[f].push(C)}else{if(d1&&(p=d+b);const C=d+b===l,k={column:g,colSpan:b,colIndex:d,rowSpan:a-f+1,isLast:C};i.set(g,k),o[f].push(k),d+=1}})}return c(e,0),{hasEllipsis:s,rows:o,cols:n,dataRelatedCols:r}}function FD(e,t){const o=D(()=>SD(e.columns,t));return{rowsRef:D(()=>o.value.rows),colsRef:D(()=>o.value.cols),hasEllipsisRef:D(()=>o.value.hasEllipsis),dataRelatedColsRef:D(()=>o.value.dataRelatedCols)}}function ED(e,t){const o=bt(()=>{for(const u of e.columns)if(u.type==="expand")return u.renderExpand}),n=bt(()=>{let u;for(const d of e.columns)if(d.type==="expand"){u=d.expandable;break}return u}),r=A(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=Te(e,"expandedRowKeys"),a=Te(e,"stickyExpandedRows"),l=ro(i,r);function s(u){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":c}=e;d&&Ae(d,u),c&&Ae(c,u),r.value=u}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:n,doUpdateExpandedRowKeys:s}}const g4=_D(),kD=V([B("data-table",` + `)])]),oD={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]},nD=Object.keys(Ia),rD=Object.assign(Object.assign(Object.assign({},Ia),oD),Le.props),Ym=ye({name:"Dropdown",inheritAttrs:!1,props:rD,setup(e){const t=A(!1),o=ro(Te(e,"show"),t),n=D(()=>{const{keyField:H,childrenField:q}=e;return Ud(e.options,{getKey(W){return W[H]},getDisabled(W){return W.disabled===!0},getIgnored(W){return W.type==="divider"||W.type==="render"},getChildren(W){return W[q]}})}),r=D(()=>n.value.treeNodes),i=A(null),a=A(null),l=A(null),s=D(()=>{var H,q,W;return(W=(q=(H=i.value)!==null&&H!==void 0?H:a.value)!==null&&q!==void 0?q:l.value)!==null&&W!==void 0?W:null}),u=D(()=>n.value.getPath(s.value).keyPath),d=D(()=>n.value.getPath(e.value).keyPath),c=bt(()=>e.keyboard&&o.value);Cw({keydown:{ArrowUp:{prevent:!0,handler:_},ArrowRight:{prevent:!0,handler:w},ArrowDown:{prevent:!0,handler:M},ArrowLeft:{prevent:!0,handler:k},Enter:{prevent:!0,handler:E},Escape:C}},c);const{mergedClsPrefixRef:h,inlineThemeDisabled:f}=it(e),p=Le("Dropdown","-dropdown",tD,Qd,e,h);tt(Jd,{labelFieldRef:Te(e,"labelField"),childrenFieldRef:Te(e,"childrenField"),renderLabelRef:Te(e,"renderLabel"),renderIconRef:Te(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:u,activeKeyPathRef:d,animatedRef:Te(e,"animated"),mergedShowRef:o,nodePropsRef:Te(e,"nodeProps"),renderOptionRef:Te(e,"renderOption"),menuPropsRef:Te(e,"menuProps"),doSelect:g,doUpdateShow:v}),lt(o,H=>{!e.animated&&!H&&b()});function g(H,q){const{onSelect:W}=e;W&&Ae(W,H,q)}function v(H){const{"onUpdate:show":q,onUpdateShow:W}=e;q&&Ae(q,H),W&&Ae(W,H),t.value=H}function b(){i.value=null,a.value=null,l.value=null}function C(){v(!1)}function k(){z("left")}function w(){z("right")}function _(){z("up")}function M(){z("down")}function E(){const H=P();H!=null&&H.isLeaf&&o.value&&(g(H.key,H.rawNode),v(!1))}function P(){var H;const{value:q}=n,{value:W}=s;return!q||W===null?null:(H=q.getNode(W))!==null&&H!==void 0?H:null}function z(H){const{value:q}=s,{value:{getFirstAvailableNode:W}}=n;let L=null;if(q===null){const I=W();I!==null&&(L=I.key)}else{const I=P();if(I){let R;switch(H){case"down":R=I.getNext();break;case"up":R=I.getPrev();break;case"right":R=I.getChild();break;case"left":R=I.getParent();break}R&&(L=R.key)}}L!==null&&(i.value=null,a.value=L)}const $=D(()=>{const{size:H,inverted:q}=e,{common:{cubicBezierEaseInOut:W},self:L}=p.value,{padding:I,dividerColor:R,borderRadius:O,optionOpacityDisabled:oe,[_e("optionIconSuffixWidth",H)]:y,[_e("optionSuffixWidth",H)]:j,[_e("optionIconPrefixWidth",H)]:X,[_e("optionPrefixWidth",H)]:le,[_e("fontSize",H)]:ae,[_e("optionHeight",H)]:Fe,[_e("optionIconSize",H)]:fe}=L,ue={"--n-bezier":W,"--n-font-size":ae,"--n-padding":I,"--n-border-radius":O,"--n-option-height":Fe,"--n-option-prefix-width":le,"--n-option-icon-prefix-width":X,"--n-option-suffix-width":j,"--n-option-icon-suffix-width":y,"--n-option-icon-size":fe,"--n-divider-color":R,"--n-option-opacity-disabled":oe};return q?(ue["--n-color"]=L.colorInverted,ue["--n-option-color-hover"]=L.optionColorHoverInverted,ue["--n-option-color-active"]=L.optionColorActiveInverted,ue["--n-option-text-color"]=L.optionTextColorInverted,ue["--n-option-text-color-hover"]=L.optionTextColorHoverInverted,ue["--n-option-text-color-active"]=L.optionTextColorActiveInverted,ue["--n-option-text-color-child-active"]=L.optionTextColorChildActiveInverted,ue["--n-prefix-color"]=L.prefixColorInverted,ue["--n-suffix-color"]=L.suffixColorInverted,ue["--n-group-header-text-color"]=L.groupHeaderTextColorInverted):(ue["--n-color"]=L.color,ue["--n-option-color-hover"]=L.optionColorHover,ue["--n-option-color-active"]=L.optionColorActive,ue["--n-option-text-color"]=L.optionTextColor,ue["--n-option-text-color-hover"]=L.optionTextColorHover,ue["--n-option-text-color-active"]=L.optionTextColorActive,ue["--n-option-text-color-child-active"]=L.optionTextColorChildActive,ue["--n-prefix-color"]=L.prefixColor,ue["--n-suffix-color"]=L.suffixColor,ue["--n-group-header-text-color"]=L.groupHeaderTextColor),ue}),G=f?vt("dropdown",D(()=>`${e.size[0]}${e.inverted?"i":""}`),$,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:v,cssVars:f?void 0:$,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.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:Pp(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(Xm,mo(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(Xa,Object.assign({},ti(this.$props,nD),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),Qm="_n_all__",Jm="_n_none__";function iD(e,t,o,n){return e?r=>{for(const i of e)switch(r){case Qm:o(!0);return;case Jm:n(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function aD(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:Qm};case"none":return{label:t.uncheckTableAll,key:Jm};default:return o}}):[]}const lD=ye({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:n,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=He(Tn),l=D(()=>iD(n.value,r,i,a)),s=D(()=>aD(n.value,o.value));return()=>{var u,d,c,h;const{clsPrefix:f}=e;return m(Ym,{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(Xt,{clsPrefix:f,class:`${f}-data-table-check-extra`},{default:()=>m(m7,null)})})}}});function a0(e){return typeof e.title=="function"?e.title(e):e.title}const sD=ye({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))}}),eg=ye({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:C,handleTableHeaderScroll:k,deriveNextSorter:w,doUncheckAll:_,doCheckAll:M}=He(Tn),E=A(),P=A({});function z(L){const I=P.value[L];return I==null?void 0:I.getBoundingClientRect().width}function $(){i.value?_():M()}function G(L,I){if(Ko(L,"dataTableFilter")||Ko(L,"dataTableResizable")||!i0(I))return;const R=c.value.find(oe=>oe.columnKey===I.key)||null,O=L$(I,R);w(O)}const H=new Map;function q(L){H.set(L.key,z(L.key))}function W(L,I){const R=H.get(L.key);if(R===void 0)return;const O=R+I,oe=T$(O,L.minWidth,L.maxWidth);b(O,oe,L,z),C(L,oe)}return{cellElsRef:P,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:E,handleCheckboxUpdateChecked:$,handleColHeaderClick:G,handleTableHeaderScroll:k,handleColumnResizeStart:q,handleColumnResize:W}},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:C,handleColumnResizeStart:k,handleColumnResize:w}=this,_=(z,$,G)=>z.map(({column:H,colIndex:q,colSpan:W,rowSpan:L,isLast:I})=>{var R,O;const oe=En(H),{ellipsis:y}=H,j=()=>H.type==="selection"?H.multiple!==!1?m(ft,null,m(qd,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:C}),d?m(lD,{clsPrefix:t}):null):null:m(ft,null,m("div",{class:`${t}-data-table-th__title-wrapper`},m("div",{class:`${t}-data-table-th__title`},y===!0||y&&!y.tooltip?m("div",{class:`${t}-data-table-th__ellipsis`},a0(H)):y&&typeof y=="object"?m(i3,Object.assign({},y,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>a0(H)}):a0(H)),i0(H)?m(_$,{column:H}):null),f4(H)?m(U$,{column:H,options:H.filterOptions}):null,Wm(H)?m(K$,{onResizeStart:()=>{k(H)},onResize:Fe=>{w(H,Fe)}}):null),X=oe in o,le=oe in n,ae=$&&!H.fixed?"div":"th";return m(ae,{ref:Fe=>e[oe]=Fe,key:oe,style:[$&&!H.fixed?{position:"absolute",left:jt($(q)),top:0,bottom:0}:{left:jt((R=o[oe])===null||R===void 0?void 0:R.start),right:jt((O=n[oe])===null||O===void 0?void 0:O.start)},{width:jt(H.width),textAlign:H.titleAlign||H.align,height:G}],colspan:W,rowspan:L,"data-col-key":oe,class:[`${t}-data-table-th`,(X||le)&&`${t}-data-table-th--fixed-${X?"left":"right"}`,{[`${t}-data-table-th--sorting`]:jm(H,g),[`${t}-data-table-th--filterable`]:f4(H),[`${t}-data-table-th--sortable`]:i0(H),[`${t}-data-table-th--selection`]:H.type==="selection",[`${t}-data-table-th--last`]:I},H.className],onClick:H.type!=="selection"&&H.type!=="expand"&&!("children"in H)?Fe=>{b(Fe,H)}:void 0},j())});if(v){const{headerHeight:z}=this;let $=0,G=0;return s.forEach(H=>{H.column.fixed==="left"?$++:H.column.fixed==="right"&&G++}),m(F6,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:jt(z)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:z,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:sD,visibleItemsProps:{clsPrefix:t,id:c,cols:s,width:Fo(this.scrollX)},renderItemWithCols:({startColIndex:H,endColIndex:q,getLeft:W})=>{const L=s.map((R,O)=>({column:R.column,isLast:O===s.length-1,colIndex:R.index,colSpan:1,rowSpan:1})).filter(({column:R},O)=>!!(H<=O&&O<=q||R.fixed)),I=_(L,W,jt(z));return I.splice($,0,m("th",{colspan:s.length-$-G,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",{style:{position:"relative"}},I)}},{default:({renderedItemWithCols:H})=>H})}const M=m("thead",{class:`${t}-data-table-thead`,"data-n-id":c},l.map(z=>m("tr",{class:`${t}-data-table-tr`},_(z,null,void 0))));if(!h)return M;const{handleTableHeaderScroll:E,scrollX:P}=this;return m("div",{class:`${t}-data-table-base-table-header`,onScroll:E},m("table",{class:`${t}-data-table-table`,style:{minWidth:Fo(P),tableLayout:f}},m("colgroup",null,s.map(z=>m("col",{key:z.key,style:z.style}))),M))}}),uD=ye({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(d1(n,l),n,o):d1(n,l),s)if(typeof s=="object"){const{mergedTheme:u}=this;return o.ellipsisComponent==="performant-ellipsis"?m(F$,Object.assign({},s,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>i}):m(i3,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}}),m4=ye({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(Ji,null,{default:()=>this.loading?m(kr,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):m(Xt,{clsPrefix:e,key:"base-icon"},{default:()=>m(W6,null)})}))}}),dD=ye({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}=He(Tn);return()=>{const{rowKey:n}=e;return m(qd,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),cD=ye({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}=He(Tn);return()=>{const{rowKey:n}=e;return m(Lm,{name:o,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}});function fD(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 hD=ye({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))}}),pD=ye({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:C,hoverKeyRef:k,summaryRef:w,mergedSortStateRef:_,virtualScrollRef:M,virtualScrollXRef:E,heightForRowRef:P,minRowHeightRef:z,componentId:$,mergedTableLayoutRef:G,childTriggerColIndexRef:H,indentRef:q,rowPropsRef:W,maxHeightRef:L,stripedRef:I,loadingRef:R,onLoadRef:O,loadingKeySetRef:oe,expandableRef:y,stickyExpandedRowsRef:j,renderExpandIconRef:X,summaryPlacementRef:le,treeMateRef:ae,scrollbarPropsRef:Fe,setHeaderScrollLeft:fe,doUpdateExpandedRowKeys:ue,handleTableBodyScroll:we,doCheck:ie,doUncheck:be,renderCell:ze}=He(Tn),pe=He(ln),U=A(null),N=A(null),ge=A(null),Ce=bt(()=>s.value.length===0),se=bt(()=>e.showHeader||!Ce.value),te=bt(()=>e.showHeader||Ce.value);let ce="";const Q=D(()=>new Set(n.value));function re(Ne){var ot;return(ot=ae.value.getNode(Ne))===null||ot===void 0?void 0:ot.rawNode}function he(Ne,ot,ee){const me=re(Ne.key);if(!me){xn("data-table",`fail to get row data with key ${Ne.key}`);return}if(ee){const Pe=s.value.findIndex(Ve=>Ve.key===ce);if(Pe!==-1){const Ve=s.value.findIndex(nt=>nt.key===Ne.key),Ue=Math.min(Pe,Ve),qe=Math.max(Pe,Ve),Ze=[];s.value.slice(Ue,qe+1).forEach(nt=>{nt.disabled||Ze.push(nt.key)}),ot?ie(Ze,!1,me):be(Ze,me),ce=Ne.key;return}}ot?ie(Ne.key,!1,me):be(Ne.key,me),ce=Ne.key}function ne(Ne){const ot=re(Ne.key);if(!ot){xn("data-table",`fail to get row data with key ${Ne.key}`);return}ie(Ne.key,!0,ot)}function Y(){if(!se.value){const{value:ot}=ge;return ot||null}if(M.value)return Ie();const{value:Ne}=U;return Ne?Ne.containerRef:null}function de(Ne,ot){var ee;if(oe.value.has(Ne))return;const{value:me}=n,Pe=me.indexOf(Ne),Ve=Array.from(me);~Pe?(Ve.splice(Pe,1),ue(Ve)):ot&&!ot.isLeaf&&!ot.shallowLoaded?(oe.value.add(Ne),(ee=O.value)===null||ee===void 0||ee.call(O,ot.rawNode).then(()=>{const{value:Ue}=n,qe=Array.from(Ue);~qe.indexOf(Ne)||qe.push(Ne),ue(qe)}).finally(()=>{oe.value.delete(Ne)})):(Ve.push(Ne),ue(Ve))}function Ee(){k.value=null}function Ie(){const{value:Ne}=N;return(Ne==null?void 0:Ne.listElRef)||null}function $e(){const{value:Ne}=N;return(Ne==null?void 0:Ne.itemsElRef)||null}function Qe(Ne){var ot;we(Ne),(ot=U.value)===null||ot===void 0||ot.sync()}function st(Ne){var ot;const{onResize:ee}=e;ee&&ee(Ne),(ot=U.value)===null||ot===void 0||ot.sync()}const Je={getScrollContainer:Y,scrollTo(Ne,ot){var ee,me;M.value?(ee=N.value)===null||ee===void 0||ee.scrollTo(Ne,ot):(me=U.value)===null||me===void 0||me.scrollTo(Ne,ot)}},mt=V([({props:Ne})=>{const ot=me=>me===null?null:V(`[data-n-id="${Ne.componentId}"] [data-col-key="${me}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),ee=me=>me===null?null:V(`[data-n-id="${Ne.componentId}"] [data-col-key="${me}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return V([ot(Ne.leftActiveFixedColKey),ee(Ne.rightActiveFixedColKey),Ne.leftActiveFixedChildrenColKeys.map(me=>ot(me)),Ne.rightActiveFixedChildrenColKeys.map(me=>ee(me))])}]);let et=!1;return kt(()=>{const{value:Ne}=p,{value:ot}=g,{value:ee}=v,{value:me}=b;if(!et&&Ne===null&&ee===null)return;const Pe={leftActiveFixedColKey:Ne,leftActiveFixedChildrenColKeys:ot,rightActiveFixedColKey:ee,rightActiveFixedChildrenColKeys:me,componentId:$};mt.mount({id:`n-${$}`,force:!0,props:Pe,anchorMetaName:Ta,parent:pe==null?void 0:pe.styleMountTarget}),et=!0}),Go(()=>{mt.unmount({id:`n-${$}`,parent:pe==null?void 0:pe.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:le,dataTableSlots:t,componentId:$,scrollbarInstRef:U,virtualListRef:N,emptyElRef:ge,summary:w,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:l,loading:R,bodyShowHeaderOnly:te,shouldDisplaySomeTablePart:se,empty:Ce,paginatedDataAndInfo:D(()=>{const{value:Ne}=I;let ot=!1;return{data:s.value.map(Ne?(me,Pe)=>(me.isLeaf||(ot=!0),{tmNode:me,key:me.key,striped:Pe%2===1,index:Pe}):(me,Pe)=>(me.isLeaf||(ot=!0),{tmNode:me,key:me.key,striped:!1,index:Pe})),hasChildren:ot}}),rawPaginatedData:u,fixedColumnLeftMap:d,fixedColumnRightMap:c,currentPage:h,rowClassName:f,renderExpand:C,mergedExpandedRowKeySet:Q,hoverKey:k,mergedSortState:_,virtualScroll:M,virtualScrollX:E,heightForRow:P,minRowHeight:z,mergedTableLayout:G,childTriggerColIndex:H,indent:q,rowProps:W,maxHeight:L,loadingKeySet:oe,expandable:y,stickyExpandedRows:j,renderExpandIcon:X,scrollbarProps:Fe,setHeaderScrollLeft:fe,handleVirtualListScroll:Qe,handleVirtualListResize:st,handleMouseleaveTable:Ee,virtualListContainer:Ie,virtualListContent:$e,handleTableBodyScroll:we,handleCheckboxUpdateChecked:he,handleRadioUpdateChecked:ne,handleUpdateExpanded:de,renderCell:ze},Je)},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:Fo(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:C,mergedTheme:k,fixedColumnLeftMap:w,fixedColumnRightMap:_,currentPage:M,rowClassName:E,mergedSortState:P,mergedExpandedRowKeySet:z,stickyExpandedRows:$,componentId:G,childTriggerColIndex:H,expandable:q,rowProps:W,handleMouseleaveTable:L,renderExpand:I,summary:R,handleCheckboxUpdateChecked:O,handleRadioUpdateChecked:oe,handleUpdateExpanded:y,heightForRow:j,minRowHeight:X,virtualScrollX:le}=this,{length:ae}=b;let Fe;const{data:fe,hasChildren:ue}=C,we=ue?fD(fe,z):fe;if(R){const ce=R(this.rawPaginatedData);if(Array.isArray(ce)){const Q=ce.map((re,he)=>({isSummaryRow:!0,key:`__n_summary__${he}`,tmNode:{rawNode:re,disabled:!0},index:-1}));Fe=this.summaryPlacement==="top"?[...Q,...we]:[...we,...Q]}else{const Q={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ce,disabled:!0},index:-1};Fe=this.summaryPlacement==="top"?[Q,...we]:[...we,Q]}}else Fe=we;const ie=ue?{width:jt(this.indent)}:void 0,be=[];Fe.forEach(ce=>{I&&z.has(ce.key)&&(!q||q(ce.tmNode.rawNode))?be.push(ce,{isExpandedRow:!0,key:`${ce.key}-expand`,tmNode:ce.tmNode,index:ce.index}):be.push(ce)});const{length:ze}=be,pe={};fe.forEach(({tmNode:ce},Q)=>{pe[Q]=ce.key});const U=$?this.bodyWidth:null,N=U===null?void 0:`${U}px`,ge=this.virtualScrollX?"div":"td";let Ce=0,se=0;le&&b.forEach(ce=>{ce.column.fixed==="left"?Ce++:ce.column.fixed==="right"&&se++});const te=({rowInfo:ce,displayedRowIndex:Q,isVirtual:re,isVirtualX:he,startColIndex:ne,endColIndex:Y,getLeft:de})=>{const{index:Ee}=ce;if("isExpandedRow"in ce){const{tmNode:{key:Ve,rawNode:Ue}}=ce;return m("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${Ve}__expand`},m("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,Q+1===ze&&`${o}-data-table-td--last-row`],colspan:ae},$?m("div",{class:`${o}-data-table-expand`,style:{width:N}},I(Ue,Ee)):I(Ue,Ee)))}const Ie="isSummaryRow"in ce,$e=!Ie&&ce.striped,{tmNode:Qe,key:st}=ce,{rawNode:Je}=Qe,mt=z.has(st),et=W?W(Je,Ee):void 0,Ne=typeof E=="string"?E:O$(Je,Ee,E),ot=he?b.filter((Ve,Ue)=>!!(ne<=Ue&&Ue<=Y||Ve.column.fixed)):b,ee=he?jt((j==null?void 0:j(Je,Ee))||X):void 0,me=ot.map(Ve=>{var Ue,qe,Ze,nt,Ct;const Ot=Ve.index;if(Q in g){const eo=g[Q],io=eo.indexOf(Ot);if(~io)return eo.splice(io,1),null}const{column:_t}=Ve,yo=En(Ve),{rowSpan:Po,colSpan:Bo}=_t,No=Ie?((Ue=ce.tmNode.rawNode[yo])===null||Ue===void 0?void 0:Ue.colSpan)||1:Bo?Bo(Je,Ee):1,Vo=Ie?((qe=ce.tmNode.rawNode[yo])===null||qe===void 0?void 0:qe.rowSpan)||1:Po?Po(Je,Ee):1,un=Ot+No===ae,dn=Q+Vo===ze,ve=Vo>1;if(ve&&(v[Q]={[Ot]:[]}),No>1||ve)for(let eo=Q;eo{y(st,ce.tmNode)}})]:null,_t.type==="selection"?Ie?null:_t.multiple===!1?m(cD,{key:M,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:()=>{oe(ce.tmNode)}}):m(dD,{key:M,rowKey:st,disabled:ce.tmNode.disabled,onUpdateChecked:(eo,io)=>{O(ce.tmNode,eo,io.shiftKey)}}):_t.type==="expand"?Ie?null:!_t.expandable||!((Ct=_t.expandable)===null||Ct===void 0)&&Ct.call(_t,Je)?m(m4,{clsPrefix:o,rowData:Je,expanded:mt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{y(st,null)}}):null:m(uD,{clsPrefix:o,index:Ee,row:Je,column:_t,isSummary:Ie,mergedTheme:k,renderCell:this.renderCell}))});return he&&Ce&&se&&me.splice(Ce,0,m("td",{colspan:b.length-Ce-se,style:{pointerEvents:"none",visibility:"hidden",height:0}})),m("tr",Object.assign({},et,{onMouseenter:Ve=>{var Ue;this.hoverKey=st,(Ue=et==null?void 0:et.onMouseenter)===null||Ue===void 0||Ue.call(et,Ve)},key:st,class:[`${o}-data-table-tr`,Ie&&`${o}-data-table-tr--summary`,$e&&`${o}-data-table-tr--striped`,mt&&`${o}-data-table-tr--expanded`,Ne,et==null?void 0:et.class],style:[et==null?void 0:et.style,he&&{height:ee}]}),me)};return n?m(F6,{ref:"virtualListRef",items:be,itemSize:this.minRowHeight,visibleItemsTag:hD,visibleItemsProps:{clsPrefix:o,id:G,cols:b,onMouseleave:L},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:f,itemResizable:!le,columns:b,renderItemWithCols:le?({itemIndex:ce,item:Q,startColIndex:re,endColIndex:he,getLeft:ne})=>te({displayedRowIndex:ce,isVirtual:!0,isVirtualX:!0,rowInfo:Q,startColIndex:re,endColIndex:he,getLeft:ne}):void 0},{default:({item:ce,index:Q,renderedItemWithCols:re})=>re||te({rowInfo:ce,displayedRowIndex:Q,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(he){return 0}})}):m("table",{class:`${o}-data-table-table`,onMouseleave:L,style:{tableLayout:this.mergedTableLayout}},m("colgroup",null,b.map(ce=>m("col",{key:ce.key,style:ce.style}))),this.showHeader?m(eg,{discrete:!1}):null,this.empty?null:m("tbody",{"data-n-id":G,class:`${o}-data-table-tbody`},be.map((ce,Q)=>te({rowInfo:ce,displayedRowIndex:Q,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(re){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"},So(this.dataTableSlots.empty,()=>[m(U6,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?m(ft,null,p,g()):m(Rn,{onResize:this.onResize},{default:g})}return p}}),mD=ye({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:n,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,virtualScrollHeaderRef:l,syncScrollState:s}=He(Tn),u=A(null),d=A(null),c=A(null),h=A(!(o.value.length||t.value.length)),f=D(()=>({maxHeight:Fo(r.value),minHeight:Fo(i.value)}));function p(C){n.value=C.contentRect.width,s(),h.value||(h.value=!0)}function g(){var C;const{value:k}=u;return k?l.value?((C=k.virtualListRef)===null||C===void 0?void 0:C.listElRef)||null:k.$el:null}function v(){const{value:C}=d;return C?C.getScrollContainer():null}const b={getBodyElement:v,getHeaderElement:g,scrollTo(C,k){var w;(w=d.value)===null||w===void 0||w.scrollTo(C,k)}};return kt(()=>{const{value:C}=c;if(!C)return;const k=`${e.value}-data-table-base-table--transition-disabled`;h.value?setTimeout(()=>{C.classList.remove(k)},0):C.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(eg,{ref:"headerInstRef"}),m(pD,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:o,onResize:this.handleBodyResize}))}});function gD(e,t){const{paginatedDataRef:o,treeMateRef:n,selectionColumnRef:r}=t,i=A(e.defaultCheckedRowKeys),a=D(()=>{var _;const{checkedRowKeys:M}=e,E=M===void 0?i.value:M;return((_=r.value)===null||_===void 0?void 0:_.multiple)===!1?{checkedKeys:E.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(E,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=D(()=>a.value.checkedKeys),s=D(()=>a.value.indeterminateKeys),u=D(()=>new Set(l.value)),d=D(()=>new Set(s.value)),c=D(()=>{const{value:_}=u;return o.value.reduce((M,E)=>{const{key:P,disabled:z}=E;return M+(!z&&_.has(P)?1:0)},0)}),h=D(()=>o.value.filter(_=>_.disabled).length),f=D(()=>{const{length:_}=o.value,{value:M}=d;return c.value>0&&c.value<_-h.value||o.value.some(E=>M.has(E.key))}),p=D(()=>{const{length:_}=o.value;return c.value!==0&&c.value===_-h.value}),g=D(()=>o.value.length===0);function v(_,M,E){const{"onUpdate:checkedRowKeys":P,onUpdateCheckedRowKeys:z,onCheckedRowKeysChange:$}=e,G=[],{value:{getNode:H}}=n;_.forEach(q=>{var W;const L=(W=H(q))===null||W===void 0?void 0:W.rawNode;G.push(L)}),P&&Ae(P,_,G,{row:M,action:E}),z&&Ae(z,_,G,{row:M,action:E}),$&&Ae($,_,G,{row:M,action:E}),i.value=_}function b(_,M=!1,E){if(!e.loading){if(M){v(Array.isArray(_)?_.slice(0,1):[_],E,"check");return}v(n.value.check(_,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,E,"check")}}function C(_,M){e.loading||v(n.value.uncheck(_,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,M,"uncheck")}function k(_=!1){const{value:M}=r;if(!M||e.loading)return;const E=[];(_?n.value.treeNodes:o.value).forEach(P=>{P.disabled||E.push(P.key)}),v(n.value.check(E,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function w(_=!1){const{value:M}=r;if(!M||e.loading)return;const E=[];(_?n.value.treeNodes:o.value).forEach(P=>{P.disabled||E.push(P.key)}),v(n.value.uncheck(E,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:w,doCheck:b,doUncheck:C}}function xu(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function vD(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?bD(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function bD(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 xD(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=A(n),i=D(()=>{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=D(()=>{const f=i.value.slice().sort((p,g)=>{const v=xu(p.sorter)||0;return(xu(g.sorter)||0)-v});return f.length?o.value.slice().sort((g,v)=>{let b=0;return f.some(C=>{const{columnKey:k,sorter:w,order:_}=C,M=vD(w,k);return M&&_&&(b=M(g.rawNode,v.rawNode),b!==0)?(b=b*D$(_),!0):!1}),b}):o.value});function l(f){let p=i.value.slice();return f&&xu(f.sorter)!==!1?(p=p.filter(g=>xu(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&&Ae(p,f),g&&Ae(g,f),v&&Ae(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 yD(e,{dataRelatedColsRef:t}){const o=D(()=>{const j=X=>{for(let le=0;le{const{childrenKey:j}=e;return Ud(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:X=>X[j],getDisabled:X=>{var le,ae;return!!(!((ae=(le=o.value)===null||le===void 0?void 0:le.disabled)===null||ae===void 0)&&ae.call(le,X))}})}),r=bt(()=>{const{columns:j}=e,{length:X}=j;let le=null;for(let ae=0;ae{const j=t.value.filter(ae=>ae.filterOptionValues!==void 0||ae.filterOptionValue!==void 0),X={};return j.forEach(ae=>{var Fe;ae.type==="selection"||ae.type==="expand"||(ae.filterOptionValues===void 0?X[ae.key]=(Fe=ae.filterOptionValue)!==null&&Fe!==void 0?Fe:null:X[ae.key]=ae.filterOptionValues)}),Object.assign(c4(i.value),X)}),d=D(()=>{const j=u.value,{columns:X}=e;function le(fe){return(ue,we)=>!!~String(we[fe]).indexOf(String(ue))}const{value:{treeNodes:ae}}=n,Fe=[];return X.forEach(fe=>{fe.type==="selection"||fe.type==="expand"||"children"in fe||Fe.push([fe.key,fe])}),ae?ae.filter(fe=>{const{rawNode:ue}=fe;for(const[we,ie]of Fe){let be=j[we];if(be==null||(Array.isArray(be)||(be=[be]),!be.length))continue;const ze=ie.filter==="default"?le(we):ie.filter;if(ie&&typeof ze=="function")if(ie.filterMode==="and"){if(be.some(pe=>!ze(pe,ue)))return!1}else{if(be.some(pe=>ze(pe,ue)))continue;return!1}}return!0}):[]}),{sortedDataRef:c,deriveNextSorter:h,mergedSortStateRef:f,sort:p,clearSorter:g}=xD(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(j=>{var X;if(j.filter){const le=j.defaultFilterOptionValues;j.filterMultiple?i.value[j.key]=le||[]:le!==void 0?i.value[j.key]=le===null?[]:le:i.value[j.key]=(X=j.defaultFilterOptionValue)!==null&&X!==void 0?X:null}});const v=D(()=>{const{pagination:j}=e;if(j!==!1)return j.page}),b=D(()=>{const{pagination:j}=e;if(j!==!1)return j.pageSize}),C=ro(v,l),k=ro(b,s),w=bt(()=>{const j=C.value;return e.remote?j:Math.max(1,Math.min(Math.ceil(d.value.length/k.value),j))}),_=D(()=>{const{pagination:j}=e;if(j){const{pageCount:X}=j;if(X!==void 0)return X}}),M=D(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return c.value;const j=k.value,X=(w.value-1)*j;return c.value.slice(X,X+j)}),E=D(()=>M.value.map(j=>j.rawNode));function P(j){const{pagination:X}=e;if(X){const{onChange:le,"onUpdate:page":ae,onUpdatePage:Fe}=X;le&&Ae(le,j),Fe&&Ae(Fe,j),ae&&Ae(ae,j),H(j)}}function z(j){const{pagination:X}=e;if(X){const{onPageSizeChange:le,"onUpdate:pageSize":ae,onUpdatePageSize:Fe}=X;le&&Ae(le,j),Fe&&Ae(Fe,j),ae&&Ae(ae,j),q(j)}}const $=D(()=>{if(e.remote){const{pagination:j}=e;if(j){const{itemCount:X}=j;if(X!==void 0)return X}return}return d.value.length}),G=D(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":P,"onUpdate:pageSize":z,page:w.value,pageSize:k.value,pageCount:$.value===void 0?_.value:void 0,itemCount:$.value}));function H(j){const{"onUpdate:page":X,onPageChange:le,onUpdatePage:ae}=e;ae&&Ae(ae,j),X&&Ae(X,j),le&&Ae(le,j),l.value=j}function q(j){const{"onUpdate:pageSize":X,onPageSizeChange:le,onUpdatePageSize:ae}=e;le&&Ae(le,j),ae&&Ae(ae,j),X&&Ae(X,j),s.value=j}function W(j,X){const{onUpdateFilters:le,"onUpdate:filters":ae,onFiltersChange:Fe}=e;le&&Ae(le,j,X),ae&&Ae(ae,j,X),Fe&&Ae(Fe,j,X),i.value=j}function L(j,X,le,ae){var Fe;(Fe=e.onUnstableColumnResize)===null||Fe===void 0||Fe.call(e,j,X,le,ae)}function I(j){H(j)}function R(){O()}function O(){oe({})}function oe(j){y(j)}function y(j){j?j&&(i.value=c4(j)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:w,mergedPaginationRef:G,paginatedDataRef:M,rawPaginatedDataRef:E,mergedFilterStateRef:u,mergedSortStateRef:f,hoverKeyRef:A(null),selectionColumnRef:o,childTriggerColIndexRef:r,doUpdateFilters:W,deriveNextSorter:h,doUpdatePageSize:q,doUpdatePage:H,onUnstableColumnResize:L,filter:y,filters:oe,clearFilter:R,clearFilters:O,clearSorter:g,page:I,sort:p}}function CD(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:n}){let r=0;const i=A(),a=A(null),l=A([]),s=A(null),u=A([]),d=D(()=>Fo(e.scrollX)),c=D(()=>e.columns.filter(z=>z.fixed==="left")),h=D(()=>e.columns.filter(z=>z.fixed==="right")),f=D(()=>{const z={};let $=0;function G(H){H.forEach(q=>{const W={start:$,end:0};z[En(q)]=W,"children"in q?(G(q.children),W.end=$):($+=d4(q)||0,W.end=$)})}return G(c.value),z}),p=D(()=>{const z={};let $=0;function G(H){for(let q=H.length-1;q>=0;--q){const W=H[q],L={start:$,end:0};z[En(W)]=L,"children"in W?(G(W.children),L.end=$):($+=d4(W)||0,L.end=$)}}return G(h.value),z});function g(){var z,$;const{value:G}=c;let H=0;const{value:q}=f;let W=null;for(let L=0;L(((z=q[I])===null||z===void 0?void 0:z.start)||0)-H)W=I,H=(($=q[I])===null||$===void 0?void 0:$.end)||0;else break}a.value=W}function v(){l.value=[];let z=e.columns.find($=>En($)===a.value);for(;z&&"children"in z;){const $=z.children.length;if($===0)break;const G=z.children[$-1];l.value.push(En(G)),z=G}}function b(){var z,$;const{value:G}=h,H=Number(e.scrollX),{value:q}=n;if(q===null)return;let W=0,L=null;const{value:I}=p;for(let R=G.length-1;R>=0;--R){const O=En(G[R]);if(Math.round(r+(((z=I[O])===null||z===void 0?void 0:z.start)||0)+q-W)En($)===s.value);for(;z&&"children"in z&&z.children.length;){const $=z.children[0];u.value.push(En($)),z=$}}function k(){const z=t.value?t.value.getHeaderElement():null,$=t.value?t.value.getBodyElement():null;return{header:z,body:$}}function w(){const{body:z}=k();z&&(z.scrollTop=0)}function _(){i.value!=="body"?os(E):i.value=void 0}function M(z){var $;($=e.onScroll)===null||$===void 0||$.call(e,z),i.value!=="head"?os(E):i.value=void 0}function E(){const{header:z,body:$}=k();if(!$)return;const{value:G}=n;if(G!==null){if(e.maxHeight||e.flexHeight){if(!z)return;const H=r-z.scrollLeft;i.value=H!==0?"head":"body",i.value==="head"?(r=z.scrollLeft,$.scrollLeft=r):(r=$.scrollLeft,z.scrollLeft=r)}else r=$.scrollLeft;g(),v(),b(),C()}}function P(z){const{header:$}=k();$&&($.scrollLeft=z,E())}return lt(o,()=>{w()}),{styleScrollXRef:d,fixedColumnLeftMapRef:f,fixedColumnRightMapRef:p,leftFixedColumnsRef:c,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:u,syncScrollState:E,handleTableBodyScroll:M,handleTableHeaderScroll:_,setHeaderScrollLeft:P}}function wD(){const e=A({});function t(r){return e.value[r]}function o(r,i){Wm(r)&&"key"in r&&(e.value[r.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:n}}function SD(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:En(p),style:I$(p,v!==void 0?Fo(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,C={column:g,colIndex:d,colSpan:0,rowSpan:1,isLast:!1};c(g.children,f+1),g.children.forEach(k=>{var w,_;C.colSpan+=(_=(w=i.get(k))===null||w===void 0?void 0:w.colSpan)!==null&&_!==void 0?_:0}),b+C.colSpan===l&&(C.isLast=!0),i.set(g,C),o[f].push(C)}else{if(d1&&(p=d+b);const C=d+b===l,k={column:g,colSpan:b,colIndex:d,rowSpan:a-f+1,isLast:C};i.set(g,k),o[f].push(k),d+=1}})}return c(e,0),{hasEllipsis:s,rows:o,cols:n,dataRelatedCols:r}}function FD(e,t){const o=D(()=>SD(e.columns,t));return{rowsRef:D(()=>o.value.rows),colsRef:D(()=>o.value.cols),hasEllipsisRef:D(()=>o.value.hasEllipsis),dataRelatedColsRef:D(()=>o.value.dataRelatedCols)}}function ED(e,t){const o=bt(()=>{for(const u of e.columns)if(u.type==="expand")return u.renderExpand}),n=bt(()=>{let u;for(const d of e.columns)if(d.type==="expand"){u=d.expandable;break}return u}),r=A(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=Te(e,"expandedRowKeys"),a=Te(e,"stickyExpandedRows"),l=ro(i,r);function s(u){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":c}=e;d&&Ae(d,u),c&&Ae(c,u),r.value=u}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:o,expandableRef:n,doUpdateExpandedRowKeys:s}}const g4=_D(),kD=V([B("data-table",` width: 100%; font-size: var(--n-font-size); display: flex; @@ -2679,7 +2679,7 @@ ${t} bottom: -1px; transition: box-shadow .2s var(--n-bezier); left: -36px; - `)])]}const tg=ye({name:"DataTable",alias:["AdvancedTable"],props:E$,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=it(e),a=Kt("DataTable",i,n),l=D(()=>{const{bottomBordered:ee}=e;return o.value?!1:ee!==void 0?ee:!0}),s=Le("DataTable","-data-table",kD,Bm,e,n),u=A(null),d=A(null),{getResizableWidth:c,clearResizableWidth:h,doUpdateResizableWidth:f}=wD(),{rowsRef:p,colsRef:g,dataRelatedColsRef:v,hasEllipsisRef:b}=FD(e,c),{treeMateRef:C,mergedCurrentPageRef:k,paginatedDataRef:w,rawPaginatedDataRef:_,selectionColumnRef:M,hoverKeyRef:E,mergedPaginationRef:P,mergedFilterStateRef:z,mergedSortStateRef:$,childTriggerColIndexRef:G,doUpdatePage:H,doUpdateFilters:q,onUnstableColumnResize:W,deriveNextSorter:L,filter:I,filters:R,clearFilter:O,clearFilters:oe,clearSorter:y,page:j,sort:X}=yD(e,{dataRelatedColsRef:v}),le=ee=>{const{fileName:me="data.csv",keepOriginalData:Pe=!1}=ee||{},Ve=Pe?e.data:_.value,Ue=N$(e.columns,Ve),qe=new Blob([Ue],{type:"text/csv;charset=utf-8"}),Ze=URL.createObjectURL(qe);d8(Ze,me.endsWith(".csv")?me:`${me}.csv`),URL.revokeObjectURL(Ze)},{doCheckAll:ae,doUncheckAll:Fe,doCheck:fe,doUncheck:ue,headerCheckboxDisabledRef:we,someRowsCheckedRef:ie,allRowsCheckedRef:be,mergedCheckedRowKeySetRef:ze,mergedInderminateRowKeySetRef:pe}=gD(e,{selectionColumnRef:M,treeMateRef:C,paginatedDataRef:w}),{stickyExpandedRowsRef:U,mergedExpandedRowKeysRef:N,renderExpandRef:ge,expandableRef:Ce,doUpdateExpandedRowKeys:se}=ED(e,C),{handleTableBodyScroll:te,handleTableHeaderScroll:ce,syncScrollState:Q,setHeaderScrollLeft:re,leftActiveFixedColKeyRef:he,leftActiveFixedChildrenColKeysRef:ne,rightActiveFixedColKeyRef:Y,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:Ee,rightFixedColumnsRef:Ie,fixedColumnLeftMapRef:$e,fixedColumnRightMapRef:Ye}=CD(e,{bodyWidthRef:u,mainTableInstRef:d,mergedCurrentPageRef:k}),{localeRef:st}=Fr("DataTable"),Qe=D(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);tt(Tn,{props:e,treeMateRef:C,renderExpandIconRef:Te(e,"renderExpandIcon"),loadingKeySetRef:A(new Set),slots:t,indentRef:Te(e,"indent"),childTriggerColIndexRef:G,bodyWidthRef:u,componentId:ai(),hoverKeyRef:E,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:D(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:w,leftActiveFixedColKeyRef:he,leftActiveFixedChildrenColKeysRef:ne,rightActiveFixedColKeyRef:Y,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:Ee,rightFixedColumnsRef:Ie,fixedColumnLeftMapRef:$e,fixedColumnRightMapRef:Ye,mergedCurrentPageRef:k,someRowsCheckedRef:ie,allRowsCheckedRef:be,mergedSortStateRef:$,mergedFilterStateRef:z,loadingRef:Te(e,"loading"),rowClassNameRef:Te(e,"rowClassName"),mergedCheckedRowKeySetRef:ze,mergedExpandedRowKeysRef:N,mergedInderminateRowKeySetRef:pe,localeRef:st,expandableRef:Ce,stickyExpandedRowsRef:U,rowKeyRef:Te(e,"rowKey"),renderExpandRef:ge,summaryRef:Te(e,"summary"),virtualScrollRef:Te(e,"virtualScroll"),virtualScrollXRef:Te(e,"virtualScrollX"),heightForRowRef:Te(e,"heightForRow"),minRowHeightRef:Te(e,"minRowHeight"),virtualScrollHeaderRef:Te(e,"virtualScrollHeader"),headerHeightRef:Te(e,"headerHeight"),rowPropsRef:Te(e,"rowProps"),stripedRef:Te(e,"striped"),checkOptionsRef:D(()=>{const{value:ee}=M;return ee==null?void 0:ee.options}),rawPaginatedDataRef:_,filterMenuCssVarsRef:D(()=>{const{self:{actionDividerColor:ee,actionPadding:me,actionButtonMargin:Pe}}=s.value;return{"--n-action-padding":me,"--n-action-button-margin":Pe,"--n-action-divider-color":ee}}),onLoadRef:Te(e,"onLoad"),mergedTableLayoutRef:Qe,maxHeightRef:Te(e,"maxHeight"),minHeightRef:Te(e,"minHeight"),flexHeightRef:Te(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:Te(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Te(e,"summaryPlacement"),filterIconPopoverPropsRef:Te(e,"filterIconPopoverProps"),scrollbarPropsRef:Te(e,"scrollbarProps"),syncScrollState:Q,doUpdatePage:H,doUpdateFilters:q,getResizableWidth:c,onUnstableColumnResize:W,clearResizableWidth:h,doUpdateResizableWidth:f,deriveNextSorter:L,doCheck:fe,doUncheck:ue,doCheckAll:ae,doUncheckAll:Fe,doUpdateExpandedRowKeys:se,handleTableHeaderScroll:ce,handleTableBodyScroll:te,setHeaderScrollLeft:re,renderCell:Te(e,"renderCell")});const mt={filter:I,filters:R,clearFilters:oe,clearSorter:y,page:j,sort:X,clearFilter:O,downloadCsv:le,scrollTo:(ee,me)=>{var Pe;(Pe=d.value)===null||Pe===void 0||Pe.scrollTo(ee,me)}},Je=D(()=>{const{size:ee}=e,{common:{cubicBezierEaseInOut:me},self:{borderColor:Pe,tdColorHover:Ve,tdColorSorting:Ue,tdColorSortingModal:qe,tdColorSortingPopover:Ze,thColorSorting:nt,thColorSortingModal:Ct,thColorSortingPopover:Ot,thColor:_t,thColorHover:yo,tdColor:Po,tdTextColor:Bo,thTextColor:No,thFontWeight:Vo,thButtonColorHover:un,thIconColor:dn,thIconColorActive:ve,filterSize:De,borderRadius:at,lineHeight:St,tdColorModal:Vt,thColorModal:$t,borderColorModal:eo,thColorHoverModal:io,tdColorHoverModal:Fn,borderColorPopover:nr,thColorPopover:rr,tdColorPopover:ci,tdColorHoverPopover:ol,thColorHoverPopover:nl,paginationMargin:rl,emptyPadding:il,boxShadowAfter:Mr,boxShadowBefore:Rr,sorterSize:dc,resizableContainerSize:cc,resizableSize:fc,loadingColor:hc,loadingSize:pc,opacityLoading:mc,tdColorStriped:gc,tdColorStripedModal:vc,tdColorStripedPopover:bc,[_e("fontSize",ee)]:xc,[_e("thPadding",ee)]:yc,[_e("tdPadding",ee)]:Cc}}=s.value;return{"--n-font-size":xc,"--n-th-padding":yc,"--n-td-padding":Cc,"--n-bezier":me,"--n-border-radius":at,"--n-line-height":St,"--n-border-color":Pe,"--n-border-color-modal":eo,"--n-border-color-popover":nr,"--n-th-color":_t,"--n-th-color-hover":yo,"--n-th-color-modal":$t,"--n-th-color-hover-modal":io,"--n-th-color-popover":rr,"--n-th-color-hover-popover":nl,"--n-td-color":Po,"--n-td-color-hover":Ve,"--n-td-color-modal":Vt,"--n-td-color-hover-modal":Fn,"--n-td-color-popover":ci,"--n-td-color-hover-popover":ol,"--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":ve,"--n-filter-size":De,"--n-pagination-margin":rl,"--n-empty-padding":il,"--n-box-shadow-before":Rr,"--n-box-shadow-after":Mr,"--n-sorter-size":dc,"--n-resizable-container-size":cc,"--n-resizable-size":fc,"--n-loading-size":pc,"--n-loading-color":hc,"--n-opacity-loading":mc,"--n-td-color-striped":gc,"--n-td-color-striped-modal":vc,"--n-td-color-striped-popover":bc,"n-td-color-sorting":Ue,"n-td-color-sorting-modal":qe,"n-td-color-sorting-popover":Ze,"n-th-color-sorting":nt,"n-th-color-sorting-modal":Ct,"n-th-color-sorting-popover":Ot}}),Ne=r?vt("data-table",D(()=>e.size[0]),Je,e):void 0,ot=D(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const ee=P.value,{pageCount:me}=ee;return me!==void 0?me>1:ee.itemCount&&ee.pageSize&&ee.itemCount>ee.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:n,rtlEnabled:a,mergedTheme:s,paginatedData:w,mergedBordered:o,mergedBottomBordered:l,mergedPagination:P,mergedShowPagination:ot,cssVars:r?void 0:Je,themeClass:Ne==null?void 0:Ne.themeClass,onRender:Ne==null?void 0:Ne.onRender},mt)},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(mD,{ref:"mainTableInstRef"})),this.mergedShowPagination?m("div",{class:`${e}-data-table__pagination`},m(g$,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,m(go,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m("div",{class:`${e}-data-table-loading-wrapper`},So(n.loading,()=>[m(kr,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),MD={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function og(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({},MD),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:u,iconColorDisabled:d})}const ng={name:"TimePicker",common:je,peers:{Scrollbar:Lo,Button:Ho,Input:Xo},self:og},rg={name:"TimePicker",common:We,peers:{Scrollbar:Zo,Button:Yo,Input:Sn},self:og},RD={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 ig(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({},RD),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Be(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 zD={name:"DatePicker",common:je,peers:{Input:Xo,Button:Ho,TimePicker:ng,Scrollbar:Lo},self:ig},AD={name:"DatePicker",common:We,peers:{Input:Sn,Button:Yo,TimePicker:rg,Scrollbar:Zo},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=ig(e);return r.itemColorDisabled=Ke(t,o),r.itemColorIncluded=Be(n,{alpha:.15}),r.itemColorHover=Ke(t,o),r}},PD={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 ag(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({},PD),{lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f,titleTextColor:n,thColor:Ke(r,t),thColorModal:Ke(i,t),thColorPopover:Ke(a,t),thTextColor:n,thFontWeight:u,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ke(r,l),borderColorModal:Ke(i,l),borderColorPopover:Ke(a,l),borderRadius:s})}const BD={name:"Descriptions",common:je,self:ag},$D={name:"Descriptions",common:We,self:ag},DD={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 lg(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:C}=e;return Object.assign(Object.assign({},DD),{fontSize:C,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 l3={name:"Dialog",common:je,peers:{Button:Ho},self:lg},sg={name:"Dialog",common:We,peers:{Button:Yo},self:lg},ec={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},ug=Ms(ec),TD=V([B("dialog",` + `)])]}const tg=ye({name:"DataTable",alias:["AdvancedTable"],props:E$,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=it(e),a=Kt("DataTable",i,n),l=D(()=>{const{bottomBordered:ee}=e;return o.value?!1:ee!==void 0?ee:!0}),s=Le("DataTable","-data-table",kD,Bm,e,n),u=A(null),d=A(null),{getResizableWidth:c,clearResizableWidth:h,doUpdateResizableWidth:f}=wD(),{rowsRef:p,colsRef:g,dataRelatedColsRef:v,hasEllipsisRef:b}=FD(e,c),{treeMateRef:C,mergedCurrentPageRef:k,paginatedDataRef:w,rawPaginatedDataRef:_,selectionColumnRef:M,hoverKeyRef:E,mergedPaginationRef:P,mergedFilterStateRef:z,mergedSortStateRef:$,childTriggerColIndexRef:G,doUpdatePage:H,doUpdateFilters:q,onUnstableColumnResize:W,deriveNextSorter:L,filter:I,filters:R,clearFilter:O,clearFilters:oe,clearSorter:y,page:j,sort:X}=yD(e,{dataRelatedColsRef:v}),le=ee=>{const{fileName:me="data.csv",keepOriginalData:Pe=!1}=ee||{},Ve=Pe?e.data:_.value,Ue=N$(e.columns,Ve),qe=new Blob([Ue],{type:"text/csv;charset=utf-8"}),Ze=URL.createObjectURL(qe);d8(Ze,me.endsWith(".csv")?me:`${me}.csv`),URL.revokeObjectURL(Ze)},{doCheckAll:ae,doUncheckAll:Fe,doCheck:fe,doUncheck:ue,headerCheckboxDisabledRef:we,someRowsCheckedRef:ie,allRowsCheckedRef:be,mergedCheckedRowKeySetRef:ze,mergedInderminateRowKeySetRef:pe}=gD(e,{selectionColumnRef:M,treeMateRef:C,paginatedDataRef:w}),{stickyExpandedRowsRef:U,mergedExpandedRowKeysRef:N,renderExpandRef:ge,expandableRef:Ce,doUpdateExpandedRowKeys:se}=ED(e,C),{handleTableBodyScroll:te,handleTableHeaderScroll:ce,syncScrollState:Q,setHeaderScrollLeft:re,leftActiveFixedColKeyRef:he,leftActiveFixedChildrenColKeysRef:ne,rightActiveFixedColKeyRef:Y,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:Ee,rightFixedColumnsRef:Ie,fixedColumnLeftMapRef:$e,fixedColumnRightMapRef:Qe}=CD(e,{bodyWidthRef:u,mainTableInstRef:d,mergedCurrentPageRef:k}),{localeRef:st}=Fr("DataTable"),Je=D(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);tt(Tn,{props:e,treeMateRef:C,renderExpandIconRef:Te(e,"renderExpandIcon"),loadingKeySetRef:A(new Set),slots:t,indentRef:Te(e,"indent"),childTriggerColIndexRef:G,bodyWidthRef:u,componentId:ai(),hoverKeyRef:E,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:D(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:w,leftActiveFixedColKeyRef:he,leftActiveFixedChildrenColKeysRef:ne,rightActiveFixedColKeyRef:Y,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:Ee,rightFixedColumnsRef:Ie,fixedColumnLeftMapRef:$e,fixedColumnRightMapRef:Qe,mergedCurrentPageRef:k,someRowsCheckedRef:ie,allRowsCheckedRef:be,mergedSortStateRef:$,mergedFilterStateRef:z,loadingRef:Te(e,"loading"),rowClassNameRef:Te(e,"rowClassName"),mergedCheckedRowKeySetRef:ze,mergedExpandedRowKeysRef:N,mergedInderminateRowKeySetRef:pe,localeRef:st,expandableRef:Ce,stickyExpandedRowsRef:U,rowKeyRef:Te(e,"rowKey"),renderExpandRef:ge,summaryRef:Te(e,"summary"),virtualScrollRef:Te(e,"virtualScroll"),virtualScrollXRef:Te(e,"virtualScrollX"),heightForRowRef:Te(e,"heightForRow"),minRowHeightRef:Te(e,"minRowHeight"),virtualScrollHeaderRef:Te(e,"virtualScrollHeader"),headerHeightRef:Te(e,"headerHeight"),rowPropsRef:Te(e,"rowProps"),stripedRef:Te(e,"striped"),checkOptionsRef:D(()=>{const{value:ee}=M;return ee==null?void 0:ee.options}),rawPaginatedDataRef:_,filterMenuCssVarsRef:D(()=>{const{self:{actionDividerColor:ee,actionPadding:me,actionButtonMargin:Pe}}=s.value;return{"--n-action-padding":me,"--n-action-button-margin":Pe,"--n-action-divider-color":ee}}),onLoadRef:Te(e,"onLoad"),mergedTableLayoutRef:Je,maxHeightRef:Te(e,"maxHeight"),minHeightRef:Te(e,"minHeight"),flexHeightRef:Te(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:Te(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Te(e,"summaryPlacement"),filterIconPopoverPropsRef:Te(e,"filterIconPopoverProps"),scrollbarPropsRef:Te(e,"scrollbarProps"),syncScrollState:Q,doUpdatePage:H,doUpdateFilters:q,getResizableWidth:c,onUnstableColumnResize:W,clearResizableWidth:h,doUpdateResizableWidth:f,deriveNextSorter:L,doCheck:fe,doUncheck:ue,doCheckAll:ae,doUncheckAll:Fe,doUpdateExpandedRowKeys:se,handleTableHeaderScroll:ce,handleTableBodyScroll:te,setHeaderScrollLeft:re,renderCell:Te(e,"renderCell")});const mt={filter:I,filters:R,clearFilters:oe,clearSorter:y,page:j,sort:X,clearFilter:O,downloadCsv:le,scrollTo:(ee,me)=>{var Pe;(Pe=d.value)===null||Pe===void 0||Pe.scrollTo(ee,me)}},et=D(()=>{const{size:ee}=e,{common:{cubicBezierEaseInOut:me},self:{borderColor:Pe,tdColorHover:Ve,tdColorSorting:Ue,tdColorSortingModal:qe,tdColorSortingPopover:Ze,thColorSorting:nt,thColorSortingModal:Ct,thColorSortingPopover:Ot,thColor:_t,thColorHover:yo,tdColor:Po,tdTextColor:Bo,thTextColor:No,thFontWeight:Vo,thButtonColorHover:un,thIconColor:dn,thIconColorActive:ve,filterSize:De,borderRadius:at,lineHeight:St,tdColorModal:Vt,thColorModal:$t,borderColorModal:eo,thColorHoverModal:io,tdColorHoverModal:Fn,borderColorPopover:nr,thColorPopover:rr,tdColorPopover:ci,tdColorHoverPopover:ol,thColorHoverPopover:nl,paginationMargin:rl,emptyPadding:il,boxShadowAfter:Mr,boxShadowBefore:Rr,sorterSize:dc,resizableContainerSize:cc,resizableSize:fc,loadingColor:hc,loadingSize:pc,opacityLoading:mc,tdColorStriped:gc,tdColorStripedModal:vc,tdColorStripedPopover:bc,[_e("fontSize",ee)]:xc,[_e("thPadding",ee)]:yc,[_e("tdPadding",ee)]:Cc}}=s.value;return{"--n-font-size":xc,"--n-th-padding":yc,"--n-td-padding":Cc,"--n-bezier":me,"--n-border-radius":at,"--n-line-height":St,"--n-border-color":Pe,"--n-border-color-modal":eo,"--n-border-color-popover":nr,"--n-th-color":_t,"--n-th-color-hover":yo,"--n-th-color-modal":$t,"--n-th-color-hover-modal":io,"--n-th-color-popover":rr,"--n-th-color-hover-popover":nl,"--n-td-color":Po,"--n-td-color-hover":Ve,"--n-td-color-modal":Vt,"--n-td-color-hover-modal":Fn,"--n-td-color-popover":ci,"--n-td-color-hover-popover":ol,"--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":ve,"--n-filter-size":De,"--n-pagination-margin":rl,"--n-empty-padding":il,"--n-box-shadow-before":Rr,"--n-box-shadow-after":Mr,"--n-sorter-size":dc,"--n-resizable-container-size":cc,"--n-resizable-size":fc,"--n-loading-size":pc,"--n-loading-color":hc,"--n-opacity-loading":mc,"--n-td-color-striped":gc,"--n-td-color-striped-modal":vc,"--n-td-color-striped-popover":bc,"n-td-color-sorting":Ue,"n-td-color-sorting-modal":qe,"n-td-color-sorting-popover":Ze,"n-th-color-sorting":nt,"n-th-color-sorting-modal":Ct,"n-th-color-sorting-popover":Ot}}),Ne=r?vt("data-table",D(()=>e.size[0]),et,e):void 0,ot=D(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const ee=P.value,{pageCount:me}=ee;return me!==void 0?me>1:ee.itemCount&&ee.pageSize&&ee.itemCount>ee.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:n,rtlEnabled:a,mergedTheme:s,paginatedData:w,mergedBordered:o,mergedBottomBordered:l,mergedPagination:P,mergedShowPagination:ot,cssVars:r?void 0:et,themeClass:Ne==null?void 0:Ne.themeClass,onRender:Ne==null?void 0:Ne.onRender},mt)},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(mD,{ref:"mainTableInstRef"})),this.mergedShowPagination?m("div",{class:`${e}-data-table__pagination`},m(g$,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,m(go,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m("div",{class:`${e}-data-table-loading-wrapper`},So(n.loading,()=>[m(kr,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),MD={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function og(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({},MD),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:u,iconColorDisabled:d})}const ng={name:"TimePicker",common:je,peers:{Scrollbar:Lo,Button:Ho,Input:Xo},self:og},rg={name:"TimePicker",common:We,peers:{Scrollbar:Zo,Button:Yo,Input:Sn},self:og},RD={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 ig(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({},RD),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Be(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 zD={name:"DatePicker",common:je,peers:{Input:Xo,Button:Ho,TimePicker:ng,Scrollbar:Lo},self:ig},AD={name:"DatePicker",common:We,peers:{Input:Sn,Button:Yo,TimePicker:rg,Scrollbar:Zo},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=ig(e);return r.itemColorDisabled=Ke(t,o),r.itemColorIncluded=Be(n,{alpha:.15}),r.itemColorHover=Ke(t,o),r}},PD={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 ag(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({},PD),{lineHeight:d,fontSizeSmall:c,fontSizeMedium:h,fontSizeLarge:f,titleTextColor:n,thColor:Ke(r,t),thColorModal:Ke(i,t),thColorPopover:Ke(a,t),thTextColor:n,thFontWeight:u,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ke(r,l),borderColorModal:Ke(i,l),borderColorPopover:Ke(a,l),borderRadius:s})}const BD={name:"Descriptions",common:je,self:ag},$D={name:"Descriptions",common:We,self:ag},DD={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 lg(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:C}=e;return Object.assign(Object.assign({},DD),{fontSize:C,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 l3={name:"Dialog",common:je,peers:{Button:Ho},self:lg},sg={name:"Dialog",common:We,peers:{Button:Yo},self:lg},ec={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},ug=Ms(ec),TD=V([B("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); @@ -3516,7 +3516,7 @@ ${t} margin-top: 12px; `),J("left",` margin-right: 12px; - `),Pn()]),Zi(B("slider",[B("slider-dot","background-color: var(--n-dot-color-modal);")])),Wa(B("slider",[B("slider-dot","background-color: var(--n-dot-color-popover);")]))]),aL=0,lL=Object.assign(Object.assign({},Le.props),{to:Ao.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]}),sL=ye({name:"Slider",props:lL,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=it(e),r=Le("Slider","-slider",iL,Kg,e,t),i=A(null),[a,l]=S4(),[s,u]=S4(),d=A(new Set),c=$n(e),{mergedDisabledRef:h}=c,f=D(()=>{const{step:ne}=e;if(Number(ne)<=0||ne==="mark")return 0;const Y=ne.toString();let de=0;return Y.includes(".")&&(de=Y.length-Y.indexOf(".")-1),de}),p=A(e.defaultValue),g=Te(e,"value"),v=ro(g,p),b=D(()=>{const{value:ne}=v;return(e.range?ne:[ne]).map(X)}),C=D(()=>b.value.length>2),k=D(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),w=D(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(Number.parseFloat):null}),_=A(-1),M=A(-1),E=A(-1),P=A(!1),z=A(!1),$=D(()=>{const{vertical:ne,reverse:Y}=e;return ne?Y?"top":"bottom":Y?"right":"left"}),G=D(()=>{if(C.value)return;const ne=b.value,Y=le(e.range?Math.min(...ne):e.min),de=le(e.range?Math.max(...ne):ne[0]),{value:Ee}=$;return e.vertical?{[Ee]:`${Y}%`,height:`${de-Y}%`}:{[Ee]:`${Y}%`,width:`${de-Y}%`}}),H=D(()=>{const ne=[],{marks:Y}=e;if(Y){const de=b.value.slice();de.sort((st,Qe)=>st-Qe);const{value:Ee}=$,{value:Ie}=C,{range:$e}=e,Ye=Ie?()=>!1:st=>$e?st>=de[0]&&st<=de[de.length-1]:st<=de[0];for(const st of Object.keys(Y)){const Qe=Number(st);ne.push({active:Ye(Qe),key:Qe,label:Y[st],style:{[Ee]:`${le(Qe)}%`}})}}return ne});function q(ne,Y){const de=le(ne),{value:Ee}=$;return{[Ee]:`${de}%`,zIndex:Y===_.value?1:0}}function W(ne){return e.showTooltip||E.value===ne||_.value===ne&&P.value}function L(ne){return P.value?!(_.value===ne&&M.value===ne):!0}function I(ne){var Y;~ne&&(_.value=ne,(Y=a.get(ne))===null||Y===void 0||Y.focus())}function R(){s.forEach((ne,Y)=>{W(Y)&&ne.syncPosition()})}function O(ne){const{"onUpdate:value":Y,onUpdateValue:de}=e,{nTriggerFormInput:Ee,nTriggerFormChange:Ie}=c;de&&Ae(de,ne),Y&&Ae(Y,ne),p.value=ne,Ee(),Ie()}function oe(ne){const{range:Y}=e;if(Y){if(Array.isArray(ne)){const{value:de}=b;ne.join()!==de.join()&&O(ne)}}else Array.isArray(ne)||b.value[0]!==ne&&O(ne)}function y(ne,Y){if(e.range){const de=b.value.slice();de.splice(Y,1,ne),oe(de)}else oe(ne)}function j(ne,Y,de){const Ee=de!==void 0;de||(de=ne-Y>0?1:-1);const Ie=w.value||[],{step:$e}=e;if($e==="mark"){const Qe=fe(ne,Ie.concat(Y),Ee?de:void 0);return Qe?Qe.value:Y}if($e<=0)return Y;const{value:Ye}=f;let st;if(Ee){const Qe=Number((Y/$e).toFixed(Ye)),mt=Math.floor(Qe),Je=Qe>mt?mt:mt-1,Ne=Qe0)&&(Ee===null||Ye0?1:-1),Y)}function be(ne){var Y,de;if(h.value||!w4(ne)&&ne.button!==aL)return;const Ee=ue(ne);if(Ee===void 0)return;const Ie=b.value.slice(),$e=e.range?(de=(Y=fe(Ee,Ie))===null||Y===void 0?void 0:Y.index)!==null&&de!==void 0?de:-1:0;$e!==-1&&(ne.preventDefault(),I($e),ze(),y(j(Ee,b.value[$e]),$e))}function ze(){P.value||(P.value=!0,e.onDragstart&&Ae(e.onDragstart),wt("touchend",document,N),wt("mouseup",document,N),wt("touchmove",document,U),wt("mousemove",document,U))}function pe(){P.value&&(P.value=!1,e.onDragend&&Ae(e.onDragend),yt("touchend",document,N),yt("mouseup",document,N),yt("touchmove",document,U),yt("mousemove",document,U))}function U(ne){const{value:Y}=_;if(!P.value||Y===-1){pe();return}const de=ue(ne);de!==void 0&&y(j(de,b.value[Y]),Y)}function N(){pe()}function ge(ne){_.value=ne,h.value||(E.value=ne)}function Ce(ne){_.value===ne&&(_.value=-1,pe()),E.value===ne&&(E.value=-1)}function se(ne){E.value=ne}function te(ne){E.value===ne&&(E.value=-1)}lt(_,(ne,Y)=>void Rt(()=>M.value=Y)),lt(v,()=>{if(e.marks){if(z.value)return;z.value=!0,Rt(()=>{z.value=!1})}Rt(R)}),Jt(()=>{pe()});const ce=D(()=>{const{self:{markFontSize:ne,railColor:Y,railColorHover:de,fillColor:Ee,fillColorHover:Ie,handleColor:$e,opacityDisabled:Ye,dotColor:st,dotColorModal:Qe,handleBoxShadow:mt,handleBoxShadowHover:Je,handleBoxShadowActive:Ne,handleBoxShadowFocus:ot,dotBorder:ee,dotBoxShadow:me,railHeight:Pe,railWidthVertical:Ve,handleSize:Ue,dotHeight:qe,dotWidth:Ze,dotBorderRadius:nt,fontSize:Ct,dotBorderActive:Ot,dotColorPopover:_t},common:{cubicBezierEaseInOut:yo}}=r.value;return{"--n-bezier":yo,"--n-dot-border":ee,"--n-dot-border-active":Ot,"--n-dot-border-radius":nt,"--n-dot-box-shadow":me,"--n-dot-color":st,"--n-dot-color-modal":Qe,"--n-dot-color-popover":_t,"--n-dot-height":qe,"--n-dot-width":Ze,"--n-fill-color":Ee,"--n-fill-color-hover":Ie,"--n-font-size":Ct,"--n-handle-box-shadow":mt,"--n-handle-box-shadow-active":Ne,"--n-handle-box-shadow-focus":ot,"--n-handle-box-shadow-hover":Je,"--n-handle-color":$e,"--n-handle-size":Ue,"--n-opacity-disabled":Ye,"--n-rail-color":Y,"--n-rail-color-hover":de,"--n-rail-height":Pe,"--n-rail-width-vertical":Ve,"--n-mark-font-size":ne}}),Q=n?vt("slider",void 0,ce,e):void 0,re=D(()=>{const{self:{fontSize:ne,indicatorColor:Y,indicatorBoxShadow:de,indicatorTextColor:Ee,indicatorBorderRadius:Ie}}=r.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ie,"--n-indicator-box-shadow":de,"--n-indicator-color":Y,"--n-indicator-text-color":Ee}}),he=n?vt("slider-indicator",void 0,re,e):void 0;return{mergedClsPrefix:t,namespace:o,uncontrolledValue:p,mergedValue:v,mergedDisabled:h,mergedPlacement:k,isMounted:Cr(),adjustedTo:Ao(e),dotTransitionDisabled:z,markInfos:H,isShowTooltip:W,shouldKeepTooltipTransition:L,handleRailRef:i,setHandleRefs:l,setFollowerRefs:u,fillStyle:G,getHandleStyle:q,activeIndex:_,arrifiedValues:b,followerEnabledIndexSet:d,handleRailMouseDown:be,handleHandleFocus:ge,handleHandleBlur:Ce,handleHandleMouseEnter:se,handleHandleMouseLeave:te,handleRailKeyDown:we,indicatorCssVars:n?void 0:re,indicatorThemeClass:he==null?void 0:he.themeClass,indicatorOnRender:he==null?void 0:he.onRender,cssVars:n?void 0:ce,themeClass:Q==null?void 0:Q.themeClass,onRender:Q==null?void 0:Q.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(As,null,{default:()=>[m(Ps,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)}},So(this.$slots.thumb,()=>[m("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&m(Bs,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Ao.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>m(go,{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))}}),uL=V([V("@keyframes spin-rotate",` + `),Pn()]),Zi(B("slider",[B("slider-dot","background-color: var(--n-dot-color-modal);")])),Wa(B("slider",[B("slider-dot","background-color: var(--n-dot-color-popover);")]))]),aL=0,lL=Object.assign(Object.assign({},Le.props),{to:Ao.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]}),sL=ye({name:"Slider",props:lL,setup(e){const{mergedClsPrefixRef:t,namespaceRef:o,inlineThemeDisabled:n}=it(e),r=Le("Slider","-slider",iL,Kg,e,t),i=A(null),[a,l]=S4(),[s,u]=S4(),d=A(new Set),c=$n(e),{mergedDisabledRef:h}=c,f=D(()=>{const{step:ne}=e;if(Number(ne)<=0||ne==="mark")return 0;const Y=ne.toString();let de=0;return Y.includes(".")&&(de=Y.length-Y.indexOf(".")-1),de}),p=A(e.defaultValue),g=Te(e,"value"),v=ro(g,p),b=D(()=>{const{value:ne}=v;return(e.range?ne:[ne]).map(X)}),C=D(()=>b.value.length>2),k=D(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),w=D(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(Number.parseFloat):null}),_=A(-1),M=A(-1),E=A(-1),P=A(!1),z=A(!1),$=D(()=>{const{vertical:ne,reverse:Y}=e;return ne?Y?"top":"bottom":Y?"right":"left"}),G=D(()=>{if(C.value)return;const ne=b.value,Y=le(e.range?Math.min(...ne):e.min),de=le(e.range?Math.max(...ne):ne[0]),{value:Ee}=$;return e.vertical?{[Ee]:`${Y}%`,height:`${de-Y}%`}:{[Ee]:`${Y}%`,width:`${de-Y}%`}}),H=D(()=>{const ne=[],{marks:Y}=e;if(Y){const de=b.value.slice();de.sort((st,Je)=>st-Je);const{value:Ee}=$,{value:Ie}=C,{range:$e}=e,Qe=Ie?()=>!1:st=>$e?st>=de[0]&&st<=de[de.length-1]:st<=de[0];for(const st of Object.keys(Y)){const Je=Number(st);ne.push({active:Qe(Je),key:Je,label:Y[st],style:{[Ee]:`${le(Je)}%`}})}}return ne});function q(ne,Y){const de=le(ne),{value:Ee}=$;return{[Ee]:`${de}%`,zIndex:Y===_.value?1:0}}function W(ne){return e.showTooltip||E.value===ne||_.value===ne&&P.value}function L(ne){return P.value?!(_.value===ne&&M.value===ne):!0}function I(ne){var Y;~ne&&(_.value=ne,(Y=a.get(ne))===null||Y===void 0||Y.focus())}function R(){s.forEach((ne,Y)=>{W(Y)&&ne.syncPosition()})}function O(ne){const{"onUpdate:value":Y,onUpdateValue:de}=e,{nTriggerFormInput:Ee,nTriggerFormChange:Ie}=c;de&&Ae(de,ne),Y&&Ae(Y,ne),p.value=ne,Ee(),Ie()}function oe(ne){const{range:Y}=e;if(Y){if(Array.isArray(ne)){const{value:de}=b;ne.join()!==de.join()&&O(ne)}}else Array.isArray(ne)||b.value[0]!==ne&&O(ne)}function y(ne,Y){if(e.range){const de=b.value.slice();de.splice(Y,1,ne),oe(de)}else oe(ne)}function j(ne,Y,de){const Ee=de!==void 0;de||(de=ne-Y>0?1:-1);const Ie=w.value||[],{step:$e}=e;if($e==="mark"){const Je=fe(ne,Ie.concat(Y),Ee?de:void 0);return Je?Je.value:Y}if($e<=0)return Y;const{value:Qe}=f;let st;if(Ee){const Je=Number((Y/$e).toFixed(Qe)),mt=Math.floor(Je),et=Je>mt?mt:mt-1,Ne=Je0)&&(Ee===null||Qe0?1:-1),Y)}function be(ne){var Y,de;if(h.value||!w4(ne)&&ne.button!==aL)return;const Ee=ue(ne);if(Ee===void 0)return;const Ie=b.value.slice(),$e=e.range?(de=(Y=fe(Ee,Ie))===null||Y===void 0?void 0:Y.index)!==null&&de!==void 0?de:-1:0;$e!==-1&&(ne.preventDefault(),I($e),ze(),y(j(Ee,b.value[$e]),$e))}function ze(){P.value||(P.value=!0,e.onDragstart&&Ae(e.onDragstart),wt("touchend",document,N),wt("mouseup",document,N),wt("touchmove",document,U),wt("mousemove",document,U))}function pe(){P.value&&(P.value=!1,e.onDragend&&Ae(e.onDragend),yt("touchend",document,N),yt("mouseup",document,N),yt("touchmove",document,U),yt("mousemove",document,U))}function U(ne){const{value:Y}=_;if(!P.value||Y===-1){pe();return}const de=ue(ne);de!==void 0&&y(j(de,b.value[Y]),Y)}function N(){pe()}function ge(ne){_.value=ne,h.value||(E.value=ne)}function Ce(ne){_.value===ne&&(_.value=-1,pe()),E.value===ne&&(E.value=-1)}function se(ne){E.value=ne}function te(ne){E.value===ne&&(E.value=-1)}lt(_,(ne,Y)=>void Rt(()=>M.value=Y)),lt(v,()=>{if(e.marks){if(z.value)return;z.value=!0,Rt(()=>{z.value=!1})}Rt(R)}),Jt(()=>{pe()});const ce=D(()=>{const{self:{markFontSize:ne,railColor:Y,railColorHover:de,fillColor:Ee,fillColorHover:Ie,handleColor:$e,opacityDisabled:Qe,dotColor:st,dotColorModal:Je,handleBoxShadow:mt,handleBoxShadowHover:et,handleBoxShadowActive:Ne,handleBoxShadowFocus:ot,dotBorder:ee,dotBoxShadow:me,railHeight:Pe,railWidthVertical:Ve,handleSize:Ue,dotHeight:qe,dotWidth:Ze,dotBorderRadius:nt,fontSize:Ct,dotBorderActive:Ot,dotColorPopover:_t},common:{cubicBezierEaseInOut:yo}}=r.value;return{"--n-bezier":yo,"--n-dot-border":ee,"--n-dot-border-active":Ot,"--n-dot-border-radius":nt,"--n-dot-box-shadow":me,"--n-dot-color":st,"--n-dot-color-modal":Je,"--n-dot-color-popover":_t,"--n-dot-height":qe,"--n-dot-width":Ze,"--n-fill-color":Ee,"--n-fill-color-hover":Ie,"--n-font-size":Ct,"--n-handle-box-shadow":mt,"--n-handle-box-shadow-active":Ne,"--n-handle-box-shadow-focus":ot,"--n-handle-box-shadow-hover":et,"--n-handle-color":$e,"--n-handle-size":Ue,"--n-opacity-disabled":Qe,"--n-rail-color":Y,"--n-rail-color-hover":de,"--n-rail-height":Pe,"--n-rail-width-vertical":Ve,"--n-mark-font-size":ne}}),Q=n?vt("slider",void 0,ce,e):void 0,re=D(()=>{const{self:{fontSize:ne,indicatorColor:Y,indicatorBoxShadow:de,indicatorTextColor:Ee,indicatorBorderRadius:Ie}}=r.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ie,"--n-indicator-box-shadow":de,"--n-indicator-color":Y,"--n-indicator-text-color":Ee}}),he=n?vt("slider-indicator",void 0,re,e):void 0;return{mergedClsPrefix:t,namespace:o,uncontrolledValue:p,mergedValue:v,mergedDisabled:h,mergedPlacement:k,isMounted:Cr(),adjustedTo:Ao(e),dotTransitionDisabled:z,markInfos:H,isShowTooltip:W,shouldKeepTooltipTransition:L,handleRailRef:i,setHandleRefs:l,setFollowerRefs:u,fillStyle:G,getHandleStyle:q,activeIndex:_,arrifiedValues:b,followerEnabledIndexSet:d,handleRailMouseDown:be,handleHandleFocus:ge,handleHandleBlur:Ce,handleHandleMouseEnter:se,handleHandleMouseLeave:te,handleRailKeyDown:we,indicatorCssVars:n?void 0:re,indicatorThemeClass:he==null?void 0:he.themeClass,indicatorOnRender:he==null?void 0:he.onRender,cssVars:n?void 0:ce,themeClass:Q==null?void 0:Q.themeClass,onRender:Q==null?void 0:Q.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(As,null,{default:()=>[m(Ps,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)}},So(this.$slots.thumb,()=>[m("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&m(Bs,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Ao.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>m(go,{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))}}),uL=V([V("@keyframes spin-rotate",` from { transform: rotate(0); } @@ -4106,7 +4106,7 @@ ${t} border-top: 1px solid var(--n-tab-border-color); `),B("tabs-pad",` border-top: 1px solid var(--n-tab-border-color); - `)])])])]),ML=Object.assign(Object.assign({},Le.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]}),RL=ye({name:"Tabs",props:ML,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=it(e),s=Le("Tabs","-tabs",_L,nv,e,a),u=A(null),d=A(null),c=A(null),h=A(null),f=A(null),p=A(null),g=A(!0),v=A(!0),b=is(e,["labelSize","size"]),C=is(e,["activeName","value"]),k=A((n=(o=C.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),w=ro(C,k),_={id:0},M=D(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});lt(w,()=>{_.id=0,G(),H()});function E(){var Q;const{value:re}=w;return re===null?null:(Q=u.value)===null||Q===void 0?void 0:Q.querySelector(`[data-name="${re}"]`)}function P(Q){if(e.type==="card")return;const{value:re}=d;if(!re)return;const he=re.style.opacity==="0";if(Q){const ne=`${a.value}-tabs-bar--disabled`,{barWidth:Y,placement:de}=e;if(Q.dataset.disabled==="true"?re.classList.add(ne):re.classList.remove(ne),["top","bottom"].includes(de)){if($(["top","maxHeight","height"]),typeof Y=="number"&&Q.offsetWidth>=Y){const Ee=Math.floor((Q.offsetWidth-Y)/2)+Q.offsetLeft;re.style.left=`${Ee}px`,re.style.maxWidth=`${Y}px`}else re.style.left=`${Q.offsetLeft}px`,re.style.maxWidth=`${Q.offsetWidth}px`;re.style.width="8192px",he&&(re.style.transition="none"),re.offsetWidth,he&&(re.style.transition="",re.style.opacity="1")}else{if($(["left","maxWidth","width"]),typeof Y=="number"&&Q.offsetHeight>=Y){const Ee=Math.floor((Q.offsetHeight-Y)/2)+Q.offsetTop;re.style.top=`${Ee}px`,re.style.maxHeight=`${Y}px`}else re.style.top=`${Q.offsetTop}px`,re.style.maxHeight=`${Q.offsetHeight}px`;re.style.height="8192px",he&&(re.style.transition="none"),re.offsetHeight,he&&(re.style.transition="",re.style.opacity="1")}}}function z(){if(e.type==="card")return;const{value:Q}=d;Q&&(Q.style.opacity="0")}function $(Q){const{value:re}=d;if(re)for(const he of Q)re.style[he]=""}function G(){if(e.type==="card")return;const Q=E();Q?P(Q):z()}function H(){var Q;const re=(Q=f.value)===null||Q===void 0?void 0:Q.$el;if(!re)return;const he=E();if(!he)return;const{scrollLeft:ne,offsetWidth:Y}=re,{offsetLeft:de,offsetWidth:Ee}=he;ne>de?re.scrollTo({top:0,left:de,behavior:"smooth"}):de+Ee>ne+Y&&re.scrollTo({top:0,left:de+Ee-Y,behavior:"smooth"})}const q=A(null);let W=0,L=null;function I(Q){const re=q.value;if(re){W=Q.getBoundingClientRect().height;const he=`${W}px`,ne=()=>{re.style.height=he,re.style.maxHeight=he};L?(ne(),L(),L=null):L=ne}}function R(Q){const re=q.value;if(re){const he=Q.getBoundingClientRect().height,ne=()=>{document.body.offsetHeight,re.style.maxHeight=`${he}px`,re.style.height=`${Math.max(W,he)}px`};L?(L(),L=null,ne()):L=ne}}function O(){const Q=q.value;if(Q){Q.style.maxHeight="",Q.style.height="";const{paneWrapperStyle:re}=e;if(typeof re=="string")Q.style.cssText=re;else if(re){const{maxHeight:he,height:ne}=re;he!==void 0&&(Q.style.maxHeight=he),ne!==void 0&&(Q.style.height=ne)}}}const oe={value:[]},y=A("next");function j(Q){const re=w.value;let he="next";for(const ne of oe.value){if(ne===re)break;if(ne===Q){he="prev";break}}y.value=he,X(Q)}function X(Q){const{onActiveNameChange:re,onUpdateValue:he,"onUpdate:value":ne}=e;re&&Ae(re,Q),he&&Ae(he,Q),ne&&Ae(ne,Q),k.value=Q}function le(Q){const{onClose:re}=e;re&&Ae(re,Q)}function ae(){const{value:Q}=d;if(!Q)return;const re="transition-disabled";Q.classList.add(re),G(),Q.classList.remove(re)}const Fe=A(null);function fe({transitionDisabled:Q}){const re=u.value;if(!re)return;Q&&re.classList.add("transition-disabled");const he=E();he&&Fe.value&&(Fe.value.style.width=`${he.offsetWidth}px`,Fe.value.style.height=`${he.offsetHeight}px`,Fe.value.style.transform=`translateX(${he.offsetLeft-uo(getComputedStyle(re).paddingLeft)}px)`,Q&&Fe.value.offsetWidth),Q&&re.classList.remove("transition-disabled")}lt([w],()=>{e.type==="segment"&&Rt(()=>{fe({transitionDisabled:!1})})}),ut(()=>{e.type==="segment"&&fe({transitionDisabled:!0})});let ue=0;function we(Q){var re;if(Q.contentRect.width===0&&Q.contentRect.height===0||ue===Q.contentRect.width)return;ue=Q.contentRect.width;const{type:he}=e;if((he==="line"||he==="bar")&&ae(),he!=="segment"){const{placement:ne}=e;N((ne==="top"||ne==="bottom"?(re=f.value)===null||re===void 0?void 0:re.$el:p.value)||null)}}const ie=Ou(we,64);lt([()=>e.justifyContent,()=>e.size],()=>{Rt(()=>{const{type:Q}=e;(Q==="line"||Q==="bar")&&ae()})});const be=A(!1);function ze(Q){var re;const{target:he,contentRect:{width:ne,height:Y}}=Q,de=he.parentElement.parentElement.offsetWidth,Ee=he.parentElement.parentElement.offsetHeight,{placement:Ie}=e;if(!be.value)Ie==="top"||Ie==="bottom"?de$e.$el.offsetWidth&&(be.value=!1):Ee-Y>$e.$el.offsetHeight&&(be.value=!1)}N(((re=f.value)===null||re===void 0?void 0:re.$el)||null)}const pe=Ou(ze,64);function U(){const{onAdd:Q}=e;Q&&Q(),Rt(()=>{const re=E(),{value:he}=f;!re||!he||he.scrollTo({left:re.offsetLeft,top:0,behavior:"smooth"})})}function N(Q){if(!Q)return;const{placement:re}=e;if(re==="top"||re==="bottom"){const{scrollLeft:he,scrollWidth:ne,offsetWidth:Y}=Q;g.value=he<=0,v.value=he+Y>=ne}else{const{scrollTop:he,scrollHeight:ne,offsetHeight:Y}=Q;g.value=he<=0,v.value=he+Y>=ne}}const ge=Ou(Q=>{N(Q.target)},64);tt(f3,{triggerRef:Te(e,"trigger"),tabStyleRef:Te(e,"tabStyle"),tabClassRef:Te(e,"tabClass"),addTabStyleRef:Te(e,"addTabStyle"),addTabClassRef:Te(e,"addTabClass"),paneClassRef:Te(e,"paneClass"),paneStyleRef:Te(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:Te(e,"type"),closableRef:Te(e,"closable"),valueRef:w,tabChangeIdRef:_,onBeforeLeaveRef:Te(e,"onBeforeLeave"),activateTab:j,handleClose:le,handleAdd:U}),x6(()=>{G(),H()}),kt(()=>{const{value:Q}=c;if(!Q)return;const{value:re}=a,he=`${re}-tabs-nav-scroll-wrapper--shadow-start`,ne=`${re}-tabs-nav-scroll-wrapper--shadow-end`;g.value?Q.classList.remove(he):Q.classList.add(he),v.value?Q.classList.remove(ne):Q.classList.add(ne)});const Ce={syncBarPosition:()=>{G()}},se=()=>{fe({transitionDisabled:!0})},te=D(()=>{const{value:Q}=b,{type:re}=e,he={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[re],ne=`${Q}${he}`,{self:{barColor:Y,closeIconColor:de,closeIconColorHover:Ee,closeIconColorPressed:Ie,tabColor:$e,tabBorderColor:Ye,paneTextColor:st,tabFontWeight:Qe,tabBorderRadius:mt,tabFontWeightActive:Je,colorSegment:Ne,fontWeightStrong:ot,tabColorSegment:ee,closeSize:me,closeIconSize:Pe,closeColorHover:Ve,closeColorPressed:Ue,closeBorderRadius:qe,[_e("panePadding",Q)]:Ze,[_e("tabPadding",ne)]:nt,[_e("tabPaddingVertical",ne)]:Ct,[_e("tabGap",ne)]:Ot,[_e("tabGap",`${ne}Vertical`)]:_t,[_e("tabTextColor",re)]:yo,[_e("tabTextColorActive",re)]:Po,[_e("tabTextColorHover",re)]:Bo,[_e("tabTextColorDisabled",re)]:No,[_e("tabFontSize",Q)]:Vo},common:{cubicBezierEaseInOut:un}}=s.value;return{"--n-bezier":un,"--n-color-segment":Ne,"--n-bar-color":Y,"--n-tab-font-size":Vo,"--n-tab-text-color":yo,"--n-tab-text-color-active":Po,"--n-tab-text-color-disabled":No,"--n-tab-text-color-hover":Bo,"--n-pane-text-color":st,"--n-tab-border-color":Ye,"--n-tab-border-radius":mt,"--n-close-size":me,"--n-close-icon-size":Pe,"--n-close-color-hover":Ve,"--n-close-color-pressed":Ue,"--n-close-border-radius":qe,"--n-close-icon-color":de,"--n-close-icon-color-hover":Ee,"--n-close-icon-color-pressed":Ie,"--n-tab-color":$e,"--n-tab-font-weight":Qe,"--n-tab-font-weight-active":Je,"--n-tab-padding":nt,"--n-tab-padding-vertical":Ct,"--n-tab-gap":Ot,"--n-tab-gap-vertical":_t,"--n-pane-padding-left":Mo(Ze,"left"),"--n-pane-padding-right":Mo(Ze,"right"),"--n-pane-padding-top":Mo(Ze,"top"),"--n-pane-padding-bottom":Mo(Ze,"bottom"),"--n-font-weight-strong":ot,"--n-tab-color-segment":ee}}),ce=l?vt("tabs",D(()=>`${b.value[0]}${e.type[0]}`),te,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:w,renderedNames:new Set,segmentCapsuleElRef:Fe,tabsPaneWrapperRef:q,tabsElRef:u,barElRef:d,addTabInstRef:h,xScrollInstRef:f,scrollWrapperElRef:c,addTabFixed:be,tabWrapperStyle:M,handleNavResize:ie,mergedSize:b,handleScroll:ge,handleTabsResize:pe,cssVars:l?void 0:te,themeClass:ce==null?void 0:ce.themeClass,animationDirection:y,renderNameListRef:oe,yScrollElRef:p,handleSegmentResize:se,onAnimationBeforeLeave:I,onAnimationEnter:R,onAnimationAfterEnter:O,onRender:ce==null?void 0:ce.onRender},Ce)},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",C=!v&&!b&&this.justifyContent;a.value=[];const k=()=>{const _=m("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},C?null:m("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?f.map((M,E)=>(a.value.push(M.props.name),c0(m(ud,Object.assign({},M.props,{internalCreatedByPane:!0,internalLeftPadded:E!==0&&(!C||C==="center"||C==="start"||C==="end")}),M.children?{default:M.children.tab}:void 0)))):p.map((M,E)=>(a.value.push(M.props.name),c0(E!==0&&!C?k4(M):M))),!n&&r&&v?E4(r,(g?f.length:p.length)!==0):null,C?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(Rn,{onResize:this.handleTabsResize},{default:()=>_}):_,v?m("div",{class:`${e}-tabs-pad`}):null,v?null:m("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},w=b?"top":o;return m("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,C&&`${e}-tabs--flex`,`${e}-tabs--${w}`],style:this.cssVars},m("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${w}`,`${e}-tabs-nav`]},xt(c,_=>_&&m("div",{class:`${e}-tabs-nav__prefix`},_)),b?m(Rn,{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((_,M)=>(a.value.push(_.props.name),m(ud,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:M!==0}),_.children?{default:_.children.tab}:void 0))):p.map((_,M)=>(a.value.push(_.props.name),M===0?_:k4(_))))}):m(Rn,{onResize:this.handleNavResize},{default:()=>m("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(w)?m(fS,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:k}):m("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},k()))}),n&&r&&v?E4(r,!0):null,xt(h,_=>_&&m("div",{class:`${e}-tabs-nav__suffix`},_))),g&&(this.animated&&(w==="top"||w==="bottom")?m("div",{ref:"tabsPaneWrapperRef",style:u,class:[`${e}-tabs-pane-wrapper`,s]},F4(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):F4(f,this.mergedValue,this.renderedNames)))}});function F4(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?zo(s,[[bn,f]]):s)}}),a?m(c6,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>l}):l}function E4(e,t){return m(ud,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function k4(e){const t=qo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function c0(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const zL=V([B("watermark-container",` + `)])])])]),ML=Object.assign(Object.assign({},Le.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]}),RL=ye({name:"Tabs",props:ML,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=it(e),s=Le("Tabs","-tabs",_L,nv,e,a),u=A(null),d=A(null),c=A(null),h=A(null),f=A(null),p=A(null),g=A(!0),v=A(!0),b=is(e,["labelSize","size"]),C=is(e,["activeName","value"]),k=A((n=(o=C.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),w=ro(C,k),_={id:0},M=D(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});lt(w,()=>{_.id=0,G(),H()});function E(){var Q;const{value:re}=w;return re===null?null:(Q=u.value)===null||Q===void 0?void 0:Q.querySelector(`[data-name="${re}"]`)}function P(Q){if(e.type==="card")return;const{value:re}=d;if(!re)return;const he=re.style.opacity==="0";if(Q){const ne=`${a.value}-tabs-bar--disabled`,{barWidth:Y,placement:de}=e;if(Q.dataset.disabled==="true"?re.classList.add(ne):re.classList.remove(ne),["top","bottom"].includes(de)){if($(["top","maxHeight","height"]),typeof Y=="number"&&Q.offsetWidth>=Y){const Ee=Math.floor((Q.offsetWidth-Y)/2)+Q.offsetLeft;re.style.left=`${Ee}px`,re.style.maxWidth=`${Y}px`}else re.style.left=`${Q.offsetLeft}px`,re.style.maxWidth=`${Q.offsetWidth}px`;re.style.width="8192px",he&&(re.style.transition="none"),re.offsetWidth,he&&(re.style.transition="",re.style.opacity="1")}else{if($(["left","maxWidth","width"]),typeof Y=="number"&&Q.offsetHeight>=Y){const Ee=Math.floor((Q.offsetHeight-Y)/2)+Q.offsetTop;re.style.top=`${Ee}px`,re.style.maxHeight=`${Y}px`}else re.style.top=`${Q.offsetTop}px`,re.style.maxHeight=`${Q.offsetHeight}px`;re.style.height="8192px",he&&(re.style.transition="none"),re.offsetHeight,he&&(re.style.transition="",re.style.opacity="1")}}}function z(){if(e.type==="card")return;const{value:Q}=d;Q&&(Q.style.opacity="0")}function $(Q){const{value:re}=d;if(re)for(const he of Q)re.style[he]=""}function G(){if(e.type==="card")return;const Q=E();Q?P(Q):z()}function H(){var Q;const re=(Q=f.value)===null||Q===void 0?void 0:Q.$el;if(!re)return;const he=E();if(!he)return;const{scrollLeft:ne,offsetWidth:Y}=re,{offsetLeft:de,offsetWidth:Ee}=he;ne>de?re.scrollTo({top:0,left:de,behavior:"smooth"}):de+Ee>ne+Y&&re.scrollTo({top:0,left:de+Ee-Y,behavior:"smooth"})}const q=A(null);let W=0,L=null;function I(Q){const re=q.value;if(re){W=Q.getBoundingClientRect().height;const he=`${W}px`,ne=()=>{re.style.height=he,re.style.maxHeight=he};L?(ne(),L(),L=null):L=ne}}function R(Q){const re=q.value;if(re){const he=Q.getBoundingClientRect().height,ne=()=>{document.body.offsetHeight,re.style.maxHeight=`${he}px`,re.style.height=`${Math.max(W,he)}px`};L?(L(),L=null,ne()):L=ne}}function O(){const Q=q.value;if(Q){Q.style.maxHeight="",Q.style.height="";const{paneWrapperStyle:re}=e;if(typeof re=="string")Q.style.cssText=re;else if(re){const{maxHeight:he,height:ne}=re;he!==void 0&&(Q.style.maxHeight=he),ne!==void 0&&(Q.style.height=ne)}}}const oe={value:[]},y=A("next");function j(Q){const re=w.value;let he="next";for(const ne of oe.value){if(ne===re)break;if(ne===Q){he="prev";break}}y.value=he,X(Q)}function X(Q){const{onActiveNameChange:re,onUpdateValue:he,"onUpdate:value":ne}=e;re&&Ae(re,Q),he&&Ae(he,Q),ne&&Ae(ne,Q),k.value=Q}function le(Q){const{onClose:re}=e;re&&Ae(re,Q)}function ae(){const{value:Q}=d;if(!Q)return;const re="transition-disabled";Q.classList.add(re),G(),Q.classList.remove(re)}const Fe=A(null);function fe({transitionDisabled:Q}){const re=u.value;if(!re)return;Q&&re.classList.add("transition-disabled");const he=E();he&&Fe.value&&(Fe.value.style.width=`${he.offsetWidth}px`,Fe.value.style.height=`${he.offsetHeight}px`,Fe.value.style.transform=`translateX(${he.offsetLeft-uo(getComputedStyle(re).paddingLeft)}px)`,Q&&Fe.value.offsetWidth),Q&&re.classList.remove("transition-disabled")}lt([w],()=>{e.type==="segment"&&Rt(()=>{fe({transitionDisabled:!1})})}),ut(()=>{e.type==="segment"&&fe({transitionDisabled:!0})});let ue=0;function we(Q){var re;if(Q.contentRect.width===0&&Q.contentRect.height===0||ue===Q.contentRect.width)return;ue=Q.contentRect.width;const{type:he}=e;if((he==="line"||he==="bar")&&ae(),he!=="segment"){const{placement:ne}=e;N((ne==="top"||ne==="bottom"?(re=f.value)===null||re===void 0?void 0:re.$el:p.value)||null)}}const ie=Ou(we,64);lt([()=>e.justifyContent,()=>e.size],()=>{Rt(()=>{const{type:Q}=e;(Q==="line"||Q==="bar")&&ae()})});const be=A(!1);function ze(Q){var re;const{target:he,contentRect:{width:ne,height:Y}}=Q,de=he.parentElement.parentElement.offsetWidth,Ee=he.parentElement.parentElement.offsetHeight,{placement:Ie}=e;if(!be.value)Ie==="top"||Ie==="bottom"?de$e.$el.offsetWidth&&(be.value=!1):Ee-Y>$e.$el.offsetHeight&&(be.value=!1)}N(((re=f.value)===null||re===void 0?void 0:re.$el)||null)}const pe=Ou(ze,64);function U(){const{onAdd:Q}=e;Q&&Q(),Rt(()=>{const re=E(),{value:he}=f;!re||!he||he.scrollTo({left:re.offsetLeft,top:0,behavior:"smooth"})})}function N(Q){if(!Q)return;const{placement:re}=e;if(re==="top"||re==="bottom"){const{scrollLeft:he,scrollWidth:ne,offsetWidth:Y}=Q;g.value=he<=0,v.value=he+Y>=ne}else{const{scrollTop:he,scrollHeight:ne,offsetHeight:Y}=Q;g.value=he<=0,v.value=he+Y>=ne}}const ge=Ou(Q=>{N(Q.target)},64);tt(f3,{triggerRef:Te(e,"trigger"),tabStyleRef:Te(e,"tabStyle"),tabClassRef:Te(e,"tabClass"),addTabStyleRef:Te(e,"addTabStyle"),addTabClassRef:Te(e,"addTabClass"),paneClassRef:Te(e,"paneClass"),paneStyleRef:Te(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:Te(e,"type"),closableRef:Te(e,"closable"),valueRef:w,tabChangeIdRef:_,onBeforeLeaveRef:Te(e,"onBeforeLeave"),activateTab:j,handleClose:le,handleAdd:U}),x6(()=>{G(),H()}),kt(()=>{const{value:Q}=c;if(!Q)return;const{value:re}=a,he=`${re}-tabs-nav-scroll-wrapper--shadow-start`,ne=`${re}-tabs-nav-scroll-wrapper--shadow-end`;g.value?Q.classList.remove(he):Q.classList.add(he),v.value?Q.classList.remove(ne):Q.classList.add(ne)});const Ce={syncBarPosition:()=>{G()}},se=()=>{fe({transitionDisabled:!0})},te=D(()=>{const{value:Q}=b,{type:re}=e,he={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[re],ne=`${Q}${he}`,{self:{barColor:Y,closeIconColor:de,closeIconColorHover:Ee,closeIconColorPressed:Ie,tabColor:$e,tabBorderColor:Qe,paneTextColor:st,tabFontWeight:Je,tabBorderRadius:mt,tabFontWeightActive:et,colorSegment:Ne,fontWeightStrong:ot,tabColorSegment:ee,closeSize:me,closeIconSize:Pe,closeColorHover:Ve,closeColorPressed:Ue,closeBorderRadius:qe,[_e("panePadding",Q)]:Ze,[_e("tabPadding",ne)]:nt,[_e("tabPaddingVertical",ne)]:Ct,[_e("tabGap",ne)]:Ot,[_e("tabGap",`${ne}Vertical`)]:_t,[_e("tabTextColor",re)]:yo,[_e("tabTextColorActive",re)]:Po,[_e("tabTextColorHover",re)]:Bo,[_e("tabTextColorDisabled",re)]:No,[_e("tabFontSize",Q)]:Vo},common:{cubicBezierEaseInOut:un}}=s.value;return{"--n-bezier":un,"--n-color-segment":Ne,"--n-bar-color":Y,"--n-tab-font-size":Vo,"--n-tab-text-color":yo,"--n-tab-text-color-active":Po,"--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":mt,"--n-close-size":me,"--n-close-icon-size":Pe,"--n-close-color-hover":Ve,"--n-close-color-pressed":Ue,"--n-close-border-radius":qe,"--n-close-icon-color":de,"--n-close-icon-color-hover":Ee,"--n-close-icon-color-pressed":Ie,"--n-tab-color":$e,"--n-tab-font-weight":Je,"--n-tab-font-weight-active":et,"--n-tab-padding":nt,"--n-tab-padding-vertical":Ct,"--n-tab-gap":Ot,"--n-tab-gap-vertical":_t,"--n-pane-padding-left":Mo(Ze,"left"),"--n-pane-padding-right":Mo(Ze,"right"),"--n-pane-padding-top":Mo(Ze,"top"),"--n-pane-padding-bottom":Mo(Ze,"bottom"),"--n-font-weight-strong":ot,"--n-tab-color-segment":ee}}),ce=l?vt("tabs",D(()=>`${b.value[0]}${e.type[0]}`),te,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:w,renderedNames:new Set,segmentCapsuleElRef:Fe,tabsPaneWrapperRef:q,tabsElRef:u,barElRef:d,addTabInstRef:h,xScrollInstRef:f,scrollWrapperElRef:c,addTabFixed:be,tabWrapperStyle:M,handleNavResize:ie,mergedSize:b,handleScroll:ge,handleTabsResize:pe,cssVars:l?void 0:te,themeClass:ce==null?void 0:ce.themeClass,animationDirection:y,renderNameListRef:oe,yScrollElRef:p,handleSegmentResize:se,onAnimationBeforeLeave:I,onAnimationEnter:R,onAnimationAfterEnter:O,onRender:ce==null?void 0:ce.onRender},Ce)},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",C=!v&&!b&&this.justifyContent;a.value=[];const k=()=>{const _=m("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},C?null:m("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?f.map((M,E)=>(a.value.push(M.props.name),c0(m(ud,Object.assign({},M.props,{internalCreatedByPane:!0,internalLeftPadded:E!==0&&(!C||C==="center"||C==="start"||C==="end")}),M.children?{default:M.children.tab}:void 0)))):p.map((M,E)=>(a.value.push(M.props.name),c0(E!==0&&!C?k4(M):M))),!n&&r&&v?E4(r,(g?f.length:p.length)!==0):null,C?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(Rn,{onResize:this.handleTabsResize},{default:()=>_}):_,v?m("div",{class:`${e}-tabs-pad`}):null,v?null:m("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},w=b?"top":o;return m("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,C&&`${e}-tabs--flex`,`${e}-tabs--${w}`],style:this.cssVars},m("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${w}`,`${e}-tabs-nav`]},xt(c,_=>_&&m("div",{class:`${e}-tabs-nav__prefix`},_)),b?m(Rn,{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((_,M)=>(a.value.push(_.props.name),m(ud,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:M!==0}),_.children?{default:_.children.tab}:void 0))):p.map((_,M)=>(a.value.push(_.props.name),M===0?_:k4(_))))}):m(Rn,{onResize:this.handleNavResize},{default:()=>m("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(w)?m(fS,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:k}):m("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},k()))}),n&&r&&v?E4(r,!0):null,xt(h,_=>_&&m("div",{class:`${e}-tabs-nav__suffix`},_))),g&&(this.animated&&(w==="top"||w==="bottom")?m("div",{ref:"tabsPaneWrapperRef",style:u,class:[`${e}-tabs-pane-wrapper`,s]},F4(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):F4(f,this.mergedValue,this.renderedNames)))}});function F4(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?zo(s,[[bn,f]]):s)}}),a?m(c6,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>l}):l}function E4(e,t){return m(ud,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function k4(e){const t=qo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function c0(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const zL=V([B("watermark-container",` position: relative; `,[Mt("selectable",` user-select: none; @@ -4142,7 +4142,7 @@ ${t} */const Ca=typeof document<"u";function Rv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function GL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Rv(e.default)}const Wt=Object.assign;function f0(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 jl=()=>{},Bn=Array.isArray,zv=/#/g,qL=/&/g,ZL=/\//g,XL=/=/g,YL=/\?/g,Av=/\+/g,QL=/%5B/g,JL=/%5D/g,Pv=/%5E/g,eH=/%60/g,Bv=/%7B/g,tH=/%7C/g,$v=/%7D/g,oH=/%20/g;function h3(e){return encodeURI(""+e).replace(tH,"|").replace(QL,"[").replace(JL,"]")}function nH(e){return h3(e).replace(Bv,"{").replace($v,"}").replace(Pv,"^")}function F1(e){return h3(e).replace(Av,"%2B").replace(oH,"+").replace(zv,"%23").replace(qL,"%26").replace(eH,"`").replace(Bv,"{").replace($v,"}").replace(Pv,"^")}function rH(e){return F1(e).replace(XL,"%3D")}function iH(e){return h3(e).replace(zv,"%23").replace(YL,"%3F")}function aH(e){return e==null?"":iH(e).replace(ZL,"%2F")}function hs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const lH=/\/$/,sH=e=>e.replace(lH,"");function h0(e,t,o="/"){let n,r={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return 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=fH(n??t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:hs(a)}}function uH(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function _4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dH(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&Oa(t.matched[n],o.matched[r])&&Dv(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Oa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!cH(e[o],t[o]))return!1;return!0}function cH(e,t){return Bn(e)?M4(e,t):Bn(t)?M4(t,e):e===t}function M4(e,t){return Bn(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function fH(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;a1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(a).join("/")}const $r={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ps;(function(e){e.pop="pop",e.push="push"})(ps||(ps={}));var Ul;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ul||(Ul={}));function hH(e){if(!e)if(Ca){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sH(e)}const pH=/^[^#]+#/;function mH(e,t){return e.replace(pH,"#")+t}function gH(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 oc=()=>({left:window.scrollX,top:window.scrollY});function vH(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=gH(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 R4(e,t){return(history.state?history.state.position-t:-1)+e}const E1=new Map;function bH(e,t){E1.set(e,t)}function xH(e){const t=E1.get(e);return E1.delete(e),t}let yH=()=>location.protocol+"//"+location.host;function Tv(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),_4(s,"")}return _4(o,e)+n+r}function CH(e,t,o,n){let r=[],i=[],a=null;const l=({state:h})=>{const f=Tv(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:ps.pop,direction:v?v>0?Ul.forward:Ul.back:Ul.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(Wt({},h.state,{scroll:oc()}),"")}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 z4(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?oc():null}}function wH(e){const{history:t,location:o}=window,n={value:Tv(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:yH()+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=Wt({},t.state,z4(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=Wt({},r.value,t.state,{forward:s,scroll:oc()});i(d.current,d,!0);const c=Wt({},z4(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 SH(e){e=hH(e);const t=wH(e),o=CH(e,t.state,t.location,t.replace);function n(i,a=!0){a||o.pauseListeners(),history.go(i)}const r=Wt({location:"",base:e,go:n,createHref:mH.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 FH(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),SH(e)}function EH(e){return typeof e=="string"||e&&typeof e=="object"}function Iv(e){return typeof e=="string"||typeof e=="symbol"}const Ov=Symbol("");var A4;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(A4||(A4={}));function La(e,t){return Wt(new Error,{type:e,[Ov]:!0},t)}function sr(e,t){return e instanceof Error&&Ov in e&&(t==null||!!(e.type&t))}const P4="[^/]+?",kH={sensitive:!1,strict:!1,start:!0,end:!0},_H=/[.+*?^${}()[\]/\\]/g;function MH(e,t){const o=Wt({},kH,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;ct.length?t.length===1&&t[0]===80?1:-1:0}function Lv(e,t){let o=0;const n=e.score,r=t.score;for(;o0&&t[t.length-1]<0}const zH={type:0,value:""},AH=/[a-zA-Z0-9_]/;function PH(e){if(!e)return[[]];if(e==="/")return[[zH]];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{a(k)}:jl}function a(c){if(Iv(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=IH(c,o);o.splice(h,0,c),c.record.name&&!T4(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 La(1,{location:c});v=f.record.name,p=Wt($4(h.params,f.keys.filter(k=>!k.optional).concat(f.parent?f.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),c.params&&$4(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 La(1,{location:c,currentLocation:h});v=f.record.name,p=Wt({},h.params,c.params),g=f.stringify(p)}const b=[];let C=f;for(;C;)b.unshift(C.record),C=C.parent;return{name:v,path:g,params:p,matched:b,meta:TH(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 $4(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function D4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:DH(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 DH(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 T4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function TH(e){return e.reduce((t,o)=>Wt(t,o.meta),{})}function I4(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function IH(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;Lv(e,t[i])<0?n=i:o=i+1}const r=OH(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function OH(e){let t=e;for(;t=t.parent;)if(Hv(t)&&Lv(e,t)===0)return t}function Hv({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function LH(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&F1(i)):[n&&F1(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function HH(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 NH=Symbol(""),L4=Symbol(""),nc=Symbol(""),p3=Symbol(""),k1=Symbol("");function vl(){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 Nr(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(La(4,{from:o,to:t})):h instanceof Error?s(h):EH(h)?s(La(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 p0(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(Rv(s)){const d=(s.__vccOpts||s)[t];d&&i.push(Nr(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=GL(d)?d.default:d;a.mods[l]=d,a.components[l]=c;const f=(c.__vccOpts||c)[t];return f&&Nr(f,o,n,a,l,r)()}))}}return i}function H4(e){const t=He(nc),o=He(p3),n=D(()=>{const s=S(e.to);return t.resolve(s)}),r=D(()=>{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(Oa.bind(null,d));if(h>-1)return h;const f=N4(s[u-2]);return u>1&&N4(d)===f&&c[c.length-1].path!==f?c.findIndex(Oa.bind(null,s[u-2])):h}),i=D(()=>r.value>-1&&jH(o.params,n.value.params)),a=D(()=>r.value>-1&&r.value===o.matched.length-1&&Dv(o.params,n.value.params));function l(s={}){return WH(s)?t[S(e.replace)?"replace":"push"](S(e.to)).catch(jl):Promise.resolve()}return{route:n,href:D(()=>n.value.href),isActive:i,isExactActive:a,navigate:l}}const VH=ye({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:H4,setup(e,{slots:t}){const o=Nt(H4(e)),{options:n}=He(nc),r=D(()=>({[V4(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[V4(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)}}}),_l=VH;function WH(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 jH(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 N4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const V4=(e,t,o)=>e??t??o,UH=ye({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=He(k1),r=D(()=>e.route||n.value),i=He(L4,0),a=D(()=>{let u=S(i);const{matched:d}=r.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),l=D(()=>r.value.matched[a.value]);tt(L4,D(()=>a.value+1)),tt(NH,l),tt(k1,r);const s=A();return lt(()=>[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||!Oa(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 W4(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,Wt({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(c.instances[d]=null)},ref:s}));return W4(o.default,{Component:v,route:u})||v}}});function W4(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Nv=UH;function KH(e){const t=$H(e.routes,e),o=e.parseQuery||LH,n=e.stringifyQuery||O4,r=e.history,i=vl(),a=vl(),l=vl(),s=Fd($r);let u=$r;Ca&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=f0.bind(null,ue=>""+ue),c=f0.bind(null,aH),h=f0.bind(null,hs);function f(ue,we){let ie,be;return Iv(ue)?(ie=t.getRecordMatcher(ue),be=we):be=ue,t.addRoute(be,ie)}function p(ue){const we=t.getRecordMatcher(ue);we&&t.removeRoute(we)}function g(){return t.getRoutes().map(ue=>ue.record)}function v(ue){return!!t.getRecordMatcher(ue)}function b(ue,we){if(we=Wt({},we||s.value),typeof ue=="string"){const N=h0(o,ue,we.path),ge=t.resolve({path:N.path},we),Ce=r.createHref(N.fullPath);return Wt(N,ge,{params:h(ge.params),hash:hs(N.hash),redirectedFrom:void 0,href:Ce})}let ie;if(ue.path!=null)ie=Wt({},ue,{path:h0(o,ue.path,we.path).path});else{const N=Wt({},ue.params);for(const ge in N)N[ge]==null&&delete N[ge];ie=Wt({},ue,{params:c(N)}),we.params=c(we.params)}const be=t.resolve(ie,we),ze=ue.hash||"";be.params=d(h(be.params));const pe=uH(n,Wt({},ue,{hash:nH(ze),path:be.path})),U=r.createHref(pe);return Wt({fullPath:pe,hash:ze,query:n===O4?HH(ue.query):ue.query||{}},be,{redirectedFrom:void 0,href:U})}function C(ue){return typeof ue=="string"?h0(o,ue,s.value.path):Wt({},ue)}function k(ue,we){if(u!==ue)return La(8,{from:we,to:ue})}function w(ue){return E(ue)}function _(ue){return w(Wt(C(ue),{replace:!0}))}function M(ue){const we=ue.matched[ue.matched.length-1];if(we&&we.redirect){const{redirect:ie}=we;let be=typeof ie=="function"?ie(ue):ie;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=C(be):{path:be},be.params={}),Wt({query:ue.query,hash:ue.hash,params:be.path!=null?{}:ue.params},be)}}function E(ue,we){const ie=u=b(ue),be=s.value,ze=ue.state,pe=ue.force,U=ue.replace===!0,N=M(ie);if(N)return E(Wt(C(N),{state:typeof N=="object"?Wt({},ze,N.state):ze,force:pe,replace:U}),we||ie);const ge=ie;ge.redirectedFrom=we;let Ce;return!pe&&dH(n,be,ie)&&(Ce=La(16,{to:ge,from:be}),j(be,be,!0,!1)),(Ce?Promise.resolve(Ce):$(ge,be)).catch(se=>sr(se)?sr(se,2)?se:y(se):O(se,ge,be)).then(se=>{if(se){if(sr(se,2))return E(Wt({replace:U},C(se.to),{state:typeof se.to=="object"?Wt({},ze,se.to.state):ze,force:pe}),we||ge)}else se=H(ge,be,!0,U,ze);return G(ge,be,se),se})}function P(ue,we){const ie=k(ue,we);return ie?Promise.reject(ie):Promise.resolve()}function z(ue){const we=ae.values().next().value;return we&&typeof we.runWithContext=="function"?we.runWithContext(ue):ue()}function $(ue,we){let ie;const[be,ze,pe]=GH(ue,we);ie=p0(be.reverse(),"beforeRouteLeave",ue,we);for(const N of be)N.leaveGuards.forEach(ge=>{ie.push(Nr(ge,ue,we))});const U=P.bind(null,ue,we);return ie.push(U),fe(ie).then(()=>{ie=[];for(const N of i.list())ie.push(Nr(N,ue,we));return ie.push(U),fe(ie)}).then(()=>{ie=p0(ze,"beforeRouteUpdate",ue,we);for(const N of ze)N.updateGuards.forEach(ge=>{ie.push(Nr(ge,ue,we))});return ie.push(U),fe(ie)}).then(()=>{ie=[];for(const N of pe)if(N.beforeEnter)if(Bn(N.beforeEnter))for(const ge of N.beforeEnter)ie.push(Nr(ge,ue,we));else ie.push(Nr(N.beforeEnter,ue,we));return ie.push(U),fe(ie)}).then(()=>(ue.matched.forEach(N=>N.enterCallbacks={}),ie=p0(pe,"beforeRouteEnter",ue,we,z),ie.push(U),fe(ie))).then(()=>{ie=[];for(const N of a.list())ie.push(Nr(N,ue,we));return ie.push(U),fe(ie)}).catch(N=>sr(N,8)?N:Promise.reject(N))}function G(ue,we,ie){l.list().forEach(be=>z(()=>be(ue,we,ie)))}function H(ue,we,ie,be,ze){const pe=k(ue,we);if(pe)return pe;const U=we===$r,N=Ca?history.state:{};ie&&(be||U?r.replace(ue.fullPath,Wt({scroll:U&&N&&N.scroll},ze)):r.push(ue.fullPath,ze)),s.value=ue,j(ue,we,ie,U),y()}let q;function W(){q||(q=r.listen((ue,we,ie)=>{if(!Fe.listening)return;const be=b(ue),ze=M(be);if(ze){E(Wt(ze,{replace:!0}),be).catch(jl);return}u=be;const pe=s.value;Ca&&bH(R4(pe.fullPath,ie.delta),oc()),$(be,pe).catch(U=>sr(U,12)?U:sr(U,2)?(E(U.to,be).then(N=>{sr(N,20)&&!ie.delta&&ie.type===ps.pop&&r.go(-1,!1)}).catch(jl),Promise.reject()):(ie.delta&&r.go(-ie.delta,!1),O(U,be,pe))).then(U=>{U=U||H(be,pe,!1),U&&(ie.delta&&!sr(U,8)?r.go(-ie.delta,!1):ie.type===ps.pop&&sr(U,20)&&r.go(-1,!1)),G(be,pe,U)}).catch(jl)}))}let L=vl(),I=vl(),R;function O(ue,we,ie){y(ue);const be=I.list();return be.length?be.forEach(ze=>ze(ue,we,ie)):console.error(ue),Promise.reject(ue)}function oe(){return R&&s.value!==$r?Promise.resolve():new Promise((ue,we)=>{L.add([ue,we])})}function y(ue){return R||(R=!ue,W(),L.list().forEach(([we,ie])=>ue?ie(ue):we()),L.reset()),ue}function j(ue,we,ie,be){const{scrollBehavior:ze}=e;if(!Ca||!ze)return Promise.resolve();const pe=!ie&&xH(R4(ue.fullPath,0))||(be||!ie)&&history.state&&history.state.scroll||null;return Rt().then(()=>ze(ue,we,pe)).then(U=>U&&vH(U)).catch(U=>O(U,ue,we))}const X=ue=>r.go(ue);let le;const ae=new Set,Fe={currentRoute:s,listening:!0,addRoute:f,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:b,options:e,push:w,replace:_,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:I.add,isReady:oe,install(ue){const we=this;ue.component("RouterLink",_l),ue.component("RouterView",Nv),ue.config.globalProperties.$router=we,Object.defineProperty(ue.config.globalProperties,"$route",{enumerable:!0,get:()=>S(s)}),Ca&&!le&&s.value===$r&&(le=!0,w(r.location).catch(ze=>{}));const ie={};for(const ze in $r)Object.defineProperty(ie,ze,{get:()=>s.value[ze],enumerable:!0});ue.provide(nc,we),ue.provide(p3,Ch(ie)),ue.provide(k1,s);const be=ue.unmount;ae.add(ue),ue.unmount=function(){ae.delete(ue),ae.size<1&&(u=$r,q&&q(),q=null,s.value=$r,le=!1,R=!1),be()}}};function fe(ue){return ue.reduce((we,ie)=>we.then(()=>z(ie)),Promise.resolve())}return Fe}function GH(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aOa(u,l))?n.push(l):o.push(l));const s=e.matched[a];s&&(t.matched.find(u=>Oa(u,s))||r.push(s))}return[o,n,r]}function qH(){return He(nc)}function Vv(e){return He(p3)}function Me(e,t){return e.then(function(o){return[null,o]}).catch(function(o){return[o,void 0]})}let ZH=0;function XH(e){return`${e}_callback_${Date.now()}_${ZH++}`}function Se(e,t){return typeof t>"u"&&(t={}),new Promise((o,n)=>{const r=XH("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 di=Gi("logs",()=>{const e=A("");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}}),ke=(e,t="Uncaught")=>e.then(o=>(j4("Resolved",o,t),o)).catch(o=>{throw j4("Rejected",o,t),o}),j4=(e,t,o)=>{const n=di(),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)},YH=()=>{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 ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);if(i&&r(l),a)try{const s=JSON.parse(a);n(s)}catch(s){r(s)}else r(i)}}),o)},VX=()=>{const e="am start -n com.miui.securitycenter/com.miui.gamebooster.ui.SelectGameLandActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},WX=(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 ke(new Promise(async(a,l)=>{{const{errno:s,stdout:u,stderr:d}=await Se(i);s&&l(d),u&&a(u)}}),i)};function QH(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=A(0),a=A(0),l=A([{label:"关闭键盘",type:"error",key:0},{label:"连接键盘",type:"success",key:1},{label:"复位键盘",type:"warning",key:2}]),s=A({label:"关闭键盘",type:"error",key:0}),u=async()=>{n.create({title:"想启用该功能吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("该功能仅兼容")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("水龙(Amktiao)")])," ",F("的移植包,不兼容其他移植包作者,请确保当前使用的是水龙的移植包再启用该功能,确定要继续吗?")])]),positiveText:"确认启用",negativeText:"我再想想",onPositiveClick:()=>{e.showThirdPartySetting.amktiaoROMInterface=!0}})},d=async f=>{const[p,g]=await Me(new Promise((v,b)=>{f===1?n.create({title:"想切换为键盘链接模式吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("切换为")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("键盘连接状态")])," ",F("前,请确保设备先连接上键盘,否则会存在静电击穿 CPU 的风险,确定要继续吗?")])]),positiveText:"确定切换为键盘连接状态",negativeText:"我再想想",onPositiveClick:()=>{v("positiveClick")},onNegativeClick:()=>{b("negativeClick")}}):v("positiveClick")}));g&&fV(f).then(v=>{a.value=f,s.value=l.value[f]}).catch(v=>{n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"})})},c=async f=>{const[p,g]=await Me(rV(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await Me(iV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=1)}else{const[v,b]=await Me(aV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=0)}},h=async f=>{const[p,g]=await Me(sV(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await Me(uV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=1}else{const[v,b]=await Me(dV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=0}};return ut(async()=>{if(e.hasPenUpdateControl){const[,f]=await Me(nV());Number(f)&&(r.value=1)}if(e.hasPenEnableControl){const[,f]=await Me(lV());Number(f)&&(i.value=1)}if(e.hasKeyboardControl){const[,f]=await Me(cV());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 m3=e=>{const t=/([A-Za-z0-9+/=]{16,})/g,o=e.match(t);return o&&o.length>0?o[0]:null},Pt=(e,t)=>t?`${t}(${e})`:e,JH=e=>{const t={};return e.split(` +`}return{content:e,error:t,info:o,success:n}}),ke=(e,t="Uncaught")=>e.then(o=>(j4("Resolved",o,t),o)).catch(o=>{throw j4("Rejected",o,t),o}),j4=(e,t,o)=>{const n=di(),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)},YH=()=>{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 ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);if(i&&r(l),a)try{const s=JSON.parse(a);n(s)}catch(s){r(s)}else r(i)}}),o)},UX=()=>{const e="am start -n com.miui.securitycenter/com.miui.gamebooster.ui.SelectGameLandActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},KX=(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 ke(new Promise(async(a,l)=>{{const{errno:s,stdout:u,stderr:d}=await Se(i);s&&l(d),u&&a(u)}}),i)};function QH(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=A(0),a=A(0),l=A([{label:"关闭键盘",type:"error",key:0},{label:"连接键盘",type:"success",key:1},{label:"复位键盘",type:"warning",key:2}]),s=A({label:"关闭键盘",type:"error",key:0}),u=async()=>{n.create({title:"想启用该功能吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("该功能仅兼容")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("水龙(Amktiao)")])," ",F("的移植包,不兼容其他移植包作者,请确保当前使用的是水龙的移植包再启用该功能,确定要继续吗?")])]),positiveText:"确认启用",negativeText:"我再想想",onPositiveClick:()=>{e.showThirdPartySetting.amktiaoROMInterface=!0}})},d=async f=>{const[p,g]=await Me(new Promise((v,b)=>{f===1?n.create({title:"想切换为键盘链接模式吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("切换为")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("键盘连接状态")])," ",F("前,请确保设备先连接上键盘,否则会存在静电击穿 CPU 的风险,确定要继续吗?")])]),positiveText:"确定切换为键盘连接状态",negativeText:"我再想想",onPositiveClick:()=>{v("positiveClick")},onNegativeClick:()=>{b("negativeClick")}}):v("positiveClick")}));g&&fV(f).then(v=>{a.value=f,s.value=l.value[f]}).catch(v=>{n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"})})},c=async f=>{const[p,g]=await Me(rV(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await Me(iV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=1)}else{const[v,b]=await Me(aV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"切换成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("切换手写笔驱动成功,关闭屏幕再点亮屏幕即可更新固件~")]),positiveText:"确定"}),r.value=0)}},h=async f=>{const[p,g]=await Me(sV(f?1:0));if(p)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(f){const[v,b]=await Me(uV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=1}else{const[v,b]=await Me(dV());v?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):i.value=0}};return ut(async()=>{if(e.hasPenUpdateControl){const[,f]=await Me(nV());Number(f)&&(r.value=1)}if(e.hasPenEnableControl){const[,f]=await Me(lV());Number(f)&&(i.value=1)}if(e.hasKeyboardControl){const[,f]=await Me(cV());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 m3=e=>{const t=/([A-Za-z0-9+/=]{16,})/g,o=e.match(t);return o&&o.length>0?o[0]:null},Pt=(e,t)=>t?`${t}(${e})`:e,JH=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},eN=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",m0=(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},Wv=(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},Dr=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!")},g0=e=>e.trim().split(` `).reduce((t,o)=>{const[n,r]=o.split(":");return t[n]=Number(r),t},{}),bl=e=>Object.entries(e).map(([t,o])=>`${t}:${o}`).join(` `),xl=e=>Object.entries(e).map(([t,o])=>`cmd miui_embedding_window set-appMode ${t} ${o}`).join(` @@ -4153,16 +4153,16 @@ ${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,...jv(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?` <${o}> -${n(e)}`:n(e)},Kl=e=>qR(e,"name"),U4=(e,t,o,n={},r={},i={})=>{const a=ht(),l=[];return new Set([...Object.keys(e),...Object.keys(t),...Object.keys(n),...Object.keys(r)]).forEach(u=>{var E;const d=n[u]??e[u],c=r[u]??t[u],h=i[u]??o[u],f=(E=c==null?void 0:c.supportModes)==null?void 0:E.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,C=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=Wv(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 P=d.hasOwnProperty("defaultSettings")&&d.defaultSettings;(!d.hasOwnProperty("defaultSettings")||P)&&(p=d.fullRule?"fullScreen":"embedded")}const k=Kl(d),w=Kl(c),_=Kl(h),M={name:u,settingMode:p,isSupportEmbedded:g,isSupportFixedOrientation:v,isSupportFullScreen:b,ruleMode:C,embeddedRules:k||void 0,fixedOrientationRule:w||void 0,settingRule:_||void 0};l.push(M)}),l},K4=(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=Kl(l),d=Kl(a),c={name:i,ruleMode:s,settingMode:eN(a.activityRule||""),autoUIRule:d||void 0,settingRule:u||void 0};n.push(c)}),n},ht=Gi("device",()=>{const e=A(),t=A(),o=A(),n=Nt({socName:"",socModel:"",display0Panel:"",memoryInfo:""}),r=A(),i=A(!1),a=A(),l=A(!1),s=A(!1),u=A(!1),d=A(!1),c=A(window.innerWidth),h=A(!1),f=A(""),p=A([]),g=A({}),v=A(""),b=A(""),C=A("Magisk"),k=A(!1),w=Nt({installed:!1,mode:void 0}),_=Nt({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:""}),M=Nt({sohQcom:0,sohMTK:0,sohXMPower:0,chargeFullDesign:0,chargeFull:0,cycleCount:0}),E=Nt({OS2_PAD_EMBEDDED_APP_MANAGER:!0,Hyper_OS_DOT_BLACK_LIST_MANAGER:!0,GAME_BOOSTER_RADIO_MANAGER:!0,GAME_BOOSTER_CUSTOM_RATIO:!1}),P=A(),z=A(!1),$=A(!1),G=A(!1),H=A(!1),q=A("autoRhythm"),W=A(!0),L=Nt([]),I=Nt({GameMode:!1,MIUIContentExt:!1,lowWebViewVersion:!1,patchModeAlert:!1,needInstalledKsuWebUiApk:!1}),R=Nt({amktiaoROMInterface:!1}),O=D(()=>L.length>0);async function oe(){return new Promise(async(j,X)=>{const[le,ae]=await Me(WN());le?(L.push({type:"getAndroidApplicationPackageNameListErr",title:"获取用户已安装的应用包名",msg:le}),X(le)):(ae&&(p.value=ae==null?void 0:ae.split(",")),j(p.value))})}async function y(){const j=[Me(sN()),Me(vN()),Me(VN()),Me(YN()),Me(xN()),Me(MN()),Me(yN()),Me(CN()),Me(_N()),Me(wN()),Me(SN()),Me(FN()),Me(eV()),Me(tV()),Me(oV()),Me(hV()),Me(rN()),Me(iN()),Me(kV()),Me(EV())],X=await Promise.all(j),[[,le],[,ae],[,Fe],[,fe],[,ue],[,we],[,ie],[,be],[,ze],[,pe],[,U],[,N],[,ge],[,Ce],[,se],[,te],[,ce],[,Q],[,re],[,he]]=X;if(le!=null&&le.length||L.push({type:"moduleInfo",title:"模块信息",msg:"获取模块信息失败"}),le!=null&&le.length){const Je=jv({...JH(le),dir:"/data/adb/modules/MIUI_MagicWindow+"});Je.versionCode&&(r.value?r.value{const e="getprop ro.build.characteristics";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},oN=()=>{const e="getprop ro.build.version.sdk";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(Number(r))}}),e)},nN=()=>{const e="getprop ro.mi.os.version.code";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(Number(r))}}),e)},rN=()=>{const e="getprop ro.vendor.qti.soc_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},iN=()=>{const e="getprop ro.vendor.qti.soc_model";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},aN=()=>{const e="getprop ro.config.miui_compat_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},lN=()=>{const e="getprop ro.config.miui_appcompat_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},sN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/module.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},uN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},cN=()=>{const e="grep 'is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},fN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},hN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},pN=()=>{const e="grep 'is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},mN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},gN=()=>{const e=`grep -qxF "# 开启游戏显示布局" system.prop || echo -e " +${n(e)}`:n(e)},Kl=e=>qR(e,"name"),U4=(e,t,o,n={},r={},i={})=>{const a=ht(),l=[];return new Set([...Object.keys(e),...Object.keys(t),...Object.keys(n),...Object.keys(r)]).forEach(u=>{var E;const d=n[u]??e[u],c=r[u]??t[u],h=i[u]??o[u],f=(E=c==null?void 0:c.supportModes)==null?void 0:E.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,C=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=Wv(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 P=d.hasOwnProperty("defaultSettings")&&d.defaultSettings;(!d.hasOwnProperty("defaultSettings")||P)&&(p=d.fullRule?"fullScreen":"embedded")}const k=Kl(d),w=Kl(c),_=Kl(h),M={name:u,settingMode:p,isSupportEmbedded:g,isSupportFixedOrientation:v,isSupportFullScreen:b,ruleMode:C,embeddedRules:k||void 0,fixedOrientationRule:w||void 0,settingRule:_||void 0};l.push(M)}),l},K4=(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=Kl(l),d=Kl(a),c={name:i,ruleMode:s,settingMode:eN(a.activityRule||""),autoUIRule:d||void 0,settingRule:u||void 0};n.push(c)}),n},ht=Gi("device",()=>{const e=A(),t=A(),o=A(),n=Nt({socName:"",socModel:"",display0Panel:"",memoryInfo:""}),r=A(),i=A(!1),a=A(),l=A(!1),s=A(!1),u=A(!1),d=A(!1),c=A(window.innerWidth),h=A(!1),f=A(""),p=A([]),g=A({}),v=A(""),b=A(""),C=A("Magisk"),k=A(!1),w=Nt({installed:!1,mode:void 0}),_=Nt({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:""}),M=Nt({sohQcom:0,sohMTK:0,sohXMPower:0,chargeFullDesign:0,chargeFull:0,cycleCount:0}),E=Nt({OS2_PAD_EMBEDDED_APP_MANAGER:!0,Hyper_OS_DOT_BLACK_LIST_MANAGER:!0,GAME_BOOSTER_RADIO_MANAGER:!0,GAME_BOOSTER_CUSTOM_RATIO:!1}),P=A(),z=A(!1),$=A(!1),G=A(!1),H=A(!1),q=A("autoRhythm"),W=A(!0),L=Nt([]),I=Nt({GameMode:!1,MIUIContentExt:!1,lowWebViewVersion:!1,patchModeAlert:!1,needInstalledKsuWebUiApk:!1}),R=Nt({amktiaoROMInterface:!1}),O=D(()=>L.length>0);async function oe(){return new Promise(async(j,X)=>{const[le,ae]=await Me(WN());le?(L.push({type:"getAndroidApplicationPackageNameListErr",title:"获取用户已安装的应用包名",msg:le}),X(le)):(ae&&(p.value=ae==null?void 0:ae.split(",")),j(p.value))})}async function y(){const j=[Me(sN()),Me(vN()),Me(VN()),Me(YN()),Me(xN()),Me(MN()),Me(yN()),Me(CN()),Me(_N()),Me(wN()),Me(SN()),Me(FN()),Me(eV()),Me(tV()),Me(oV()),Me(hV()),Me(rN()),Me(iN()),Me(kV()),Me(EV())],X=await Promise.all(j),[[,le],[,ae],[,Fe],[,fe],[,ue],[,we],[,ie],[,be],[,ze],[,pe],[,U],[,N],[,ge],[,Ce],[,se],[,te],[,ce],[,Q],[,re],[,he]]=X;if(le!=null&&le.length||L.push({type:"moduleInfo",title:"模块信息",msg:"获取模块信息失败"}),le!=null&&le.length){const et=jv({...JH(le),dir:"/data/adb/modules/MIUI_MagicWindow+"});et.versionCode&&(r.value?r.value{const e="getprop ro.build.characteristics";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},oN=()=>{const e="getprop ro.build.version.sdk";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(Number(r))}}),e)},nN=()=>{const e="getprop ro.mi.os.version.code";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(Number(r))}}),e)},rN=()=>{const e="getprop ro.vendor.qti.soc_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},iN=()=>{const e="getprop ro.vendor.qti.soc_model";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},aN=()=>{const e="getprop ro.config.miui_compat_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},lN=()=>{const e="getprop ro.config.miui_appcompat_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},sN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/module.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},uN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},cN=()=>{const e="grep 'is_patch_mode=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},fN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},hN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},pN=()=>{const e="grep 'is_disabled_os2_system_app_optimize=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},mN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},gN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},vN=()=>{const e="settings get global device_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},bN=()=>{const e="settings get secure show_rotation_suggestions";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},xN=()=>{const e="settings get global miui_version_name";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},yN=()=>{const e="cat /sys/class/qcom-battery/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},CN=()=>{const e="cat /sys/class/power_supply/bms/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},wN=()=>{const e="cat /sys/class/power_supply/battery/charge_full_design";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},SN=()=>{const e="cat /sys/class/power_supply/battery/charge_full";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},FN=()=>{const e="cat /sys/class/power_supply/battery/cycle_count";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},EN=()=>{const e="cat /sys/class/qcom-battery/fg1_rsoc";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},kN=()=>{const e="cat /sys/class/power_supply/bms/capacity_raw";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},_N=()=>{const e="cat /sys/class/xm_power/fg_master/soh";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},MN=()=>{const e="settings get global miui_pre_version";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},RN=e=>{const t=`settings put secure show_rotation_suggestions ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},zN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},AN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},PN=e=>{const t=`settings put global hide_gesture_line ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},BN=()=>{const e="settings get global hide_gesture_line";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},$N=e=>{const t=`settings put secure key_invisible_mode_state ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},DN=()=>{const e="settings get secure key_invisible_mode_state";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},TN=()=>{const e="am start -n com.miui.securitycenter/com.miui.permcenter.settings.InvisibleModeActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},IN=e=>{const t=`settings put system miui_cursor_style ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},ON=()=>{const e="settings get system miui_cursor_style";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},LN=e=>{const t=`settings put secure mouse_gesture_naturalscroll ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},HN=()=>{const e="settings get secure mouse_gesture_naturalscroll";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},Uv=e=>{const t=`settings put system pointer_speed ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i==="null"?"":i)}}),t)},NN=()=>{const e="settings get system pointer_speed";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},VN=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/temp/root_manager_info.txt";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},WN=()=>{const e=`pm list packages -a | awk -F':' '{print $2}' | tr ' ' ',' | sed 's/,$/ -/'`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},jN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},UN=()=>{const e='ls /system/product/priv-app/MIUIContentExtension/MIUIContentExtension.apk &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},KN=()=>{const e="am start -n com.miui.contentextension/.setting.activity.MainSettingsActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Kv=()=>{const e='reboot && echo "Reboot command executed successfully." || echo "Reboot command failed."';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Reboot command executed successfully."?t(r):o(r)}}),e)},jX=(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 Se(o);i?r(l):n("save command executed successfully.")}})},UX=()=>{const e='pkill -9 -f com.android.systemui && echo "kill command executed successfully." || echo "kill command failed."';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="kill command executed successfully."?t(r):o(r)}}),e)},GN=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 ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},qN=e=>{const t=`cmd activity ${e}service -n com.miui.powerkeeper/.ui.framerate.FrameRateService`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},ZN=e=>{const t=ht(),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,p,g]=a,v={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),vsync:parseInt(h),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)}else{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)}}),o},XN=()=>{const e="dumpsys display | grep 'DisplayModeRecord'";return ke(new Promise(async(t,o)=>{try{const{errno:n,stdout:r,stderr:i}=await Se(e);if(n){o(i);return}const a=ZN(r);t(a)}catch(n){o(n)}}),e)},rc=e=>ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(`sh /data/adb/modules/MIUI_MagicWindow+/common/source/update_rule/update_rule.sh${e?` ${e}`:""}`);n?o(i):t(r)}}),"updateMiuiEmbeddingWindowRule"),YN=()=>{const e='ls -d /data/adb/shamiko/ &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},QN=()=>{const e='ls /data/adb/shamiko/whitelist &>/dev/null && echo "whitelist" || echo "blacklist"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},JN=e=>{const t=e==="whitelist"?"touch /data/adb/shamiko/whitelist":"rm -rf /data/adb/shamiko/whitelist";return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},eV=()=>{const e='ls /sys/touchpanel/pen_update &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},tV=()=>{const e='ls /sys/touchpanel/pen_enable &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},oV=()=>{const e='ls /sys/touchpanel/keyboard &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},nV=()=>{const e="cat /sys/touchpanel/pen_update";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},rV=e=>{const t=`echo ${e} > /sys/touchpanel/pen_update`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},iV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},aV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},lV=()=>{const e="cat /sys/touchpanel/pen_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},sV=e=>{const t=`echo ${e} > /sys/touchpanel/pen_enable`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},uV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},cV=()=>{const e="cat /sys/touchpanel/keyboard | head -n 1";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},fV=e=>{const t=`echo ${e} > /sys/touchpanel/keyboard`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},hV=()=>{const e="getprop ro.config.miui_desktop_mode_enabled";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},pV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},mV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},gV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},vV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},bV=()=>{const e="settings get system miui_dkt_mode";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},xV=e=>{const t=`settings put system miui_dkt_mode ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},yV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},G4=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},CV=()=>{const e="grep 'is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},wV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},SV=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 ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},FV=e=>{const t=`settings put system status_bar_show_notification_icon ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},EV=()=>{const e="cat /proc/mv";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},kV=()=>{const e="cat /sys/class/mi_display/disp-DSI-0/panel_info";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);if(n)o(i);else{r==="null"&&t("");const a=r.split("=");Array.isArray(a)&&a.length===2?t(a[1]):t("")}}}),e)},_V=e=>{const t=`service call SurfaceFlinger 1035 i32 ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},q4=e=>{const t=`service call SurfaceFlinger 1034 i32 ${e?1:0}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},Gv=()=>{const e="am start com.miui.voiceassist/com.xiaomi.voiceassistant.CTAAlertActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},MV=()=>{const e="am startservice -n com.xiaomi.aiasst.vision/.control.translation.AiTranslateService --es from systemui.plugin.tile.aisubtitles --es floatingWindowType startAiSubtitlesWindow";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},RV=()=>{const e="am start -n com.miui.mediaeditor/com.miui.gallery.vlog.template2.VlogTemplateActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},zV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$ReduceBrightColorsSettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(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.settings/.Settings$AccessibilityInversionSettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},PV=()=>{const e='am start -n com.android.phone/com.android.phone.EmergencyDialer -e shortcut "volume_down_up_three_time"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},BV=()=>{const e="am start -a android.intent.action.VIEW -n com.android.settings/.RunningServices -f 0x10000000";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(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.settings/.Settings$NotificationStationActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},DV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$MemorySettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},TV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.ai.AiWallpaperListActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},IV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeClientActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},OV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeServerActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},LV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.AiWallpaperGuideActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},HV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},NV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},VV=()=>{const e="am start -n com.google.android.gms/com.google.android.gms.googlesettings.ui.GoogleSettingsActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},WV=()=>{const e="am start -n com.miui.securitycenter/com.miui.autotask.activity.TaskManagerActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},jV=()=>{const e="am broadcast -a android.telephony.action.SECRET_CODE -d android_secret_code://5776733 android";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},UV=()=>{const e="am start -n com.android.thememanager/com.android.thememanager.activity.ThemeTabActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},qv=()=>{const e="am start -n com.miui.securitycenter/com.miui.apppredict.activity.AppClassificationActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},KV=()=>{const e="am start -n com.hyperos.aitoolbox/com.xiaomi.windowsgame.ui.GameEngineLauncherActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},GV=()=>{const e='ls /data/data/com.miui.securitycenter/databases/gamebooster.db &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},qV=()=>{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 ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):(l&&r(l),n(a))}}),o)},Z4=e=>{const t=`chmod ${e} /data/user/0/com.miui.contentextension/files/blacklistConfig`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},ZV=()=>{const e="getprop persist.sys.stability.smartfocusio";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},XV=()=>{const e="grep 'is_auto_start_miui_cursor_style_type=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},X4=()=>{const e=`sed -i '/^is_auto_start_miui_cursor_style_type=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_auto_start_miui_cursor_style_type successfully." || echo "Remove is_auto_start_miui_cursor_style_type failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},YV=e=>{const t=`grep -q '^is_auto_start_miui_cursor_style_type=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_auto_start_miui_cursor_style_type=${e}" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},QV=()=>{const e="getprop persist.miui.extm.dm_opt.enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},JV=()=>{const e="echo $(awk '{print int($3 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},eW=()=>{const e="echo $(awk '{print int($2 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},tW=()=>{const e="echo $(awk '{print int($1 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Zv=Gi("gameBooster",()=>{const e=A([]),t=D(()=>{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=D(()=>a.length>0);D(()=>e.value.length);const n=A(""),r=A(!0),i=A(!1),a=Nt([]),l=D(()=>new Set([...e.value]));async function s(){r.value=!0;const[u,d]=await Me(GV());if(u&&(r.value=!1,i.value=!1),d){i.value=!0;const[c,h]=await Me(YH());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 g3(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ws(){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 g3(()=>{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=Ws();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 Y4;let oW=Symbol("headlessui.useid"),nW=0;const v3=(Y4=Tx)!=null?Y4:function(){return He(oW,()=>`${++nW}`)()};function ho(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 rW=Object.defineProperty,iW=(e,t,o)=>t in e?rW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Q4=(e,t,o)=>(iW(e,typeof t!="symbol"?t+"":t,o),o);let aW=class{constructor(){Q4(this,"current",this.detect()),Q4(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"}},js=new aW;function Qa(e){if(js.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ho(e);if(t)return t.ownerDocument}return document}let _1=["[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 Wr=(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))(Wr||{}),Xv=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Xv||{}),lW=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(lW||{});function sW(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(_1)).sort((t,o)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var Yv=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Yv||{});function uW(e,t=0){var o;return e===((o=Qa(e))==null?void 0:o.body)?!1:Qn(t,{0(){return e.matches(_1)},1(){let n=e;for(;n!==null;){if(n.matches(_1))return!0;n=n.parentElement}return!1}})}var dW=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(dW||{});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 Ii(e){e==null||e.focus({preventScroll:!0})}let cW=["textarea","input"].join(",");function fW(e){var t,o;return(o=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,cW))!=null?o:!1}function hW(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 Nu(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?hW(e):e:sW(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&&fW(f)&&f.select(),2}function Qv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function pW(){return/Android/gi.test(window.navigator.userAgent)}function mW(){return Qv()||pW()}function Su(e,t,o){js.isServer||kt(n=>{document.addEventListener(e,t,o),n(()=>document.removeEventListener(e,t,o))})}function Jv(e,t,o){js.isServer||kt(n=>{window.addEventListener(e,t,o),n(()=>window.removeEventListener(e,t,o))})}function gW(e,t,o=D(()=>!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:ho(u);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!uW(l,Yv.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=A(null);Su("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),Su("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),Su("click",i=>{mW()||r.value&&(n(i,()=>r.value),r.value=null)},!0),Su("touchend",i=>n(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Jv("blur",i=>n(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var dd=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dd||{}),Ur=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ur||{});function _r({visible:e=!0,features:t=0,ourProps:o,theirProps:n,...r}){var i;let a=t9(n,o),l=Object.assign(r,{props:a});if(e||t&2&&a.static)return v0(l);if(t&1){let s=(i=a.unmount)==null||i?0:1;return Qn(s,{0(){return null},1(){return v0({...r,props:{...a,hidden:!0,style:{display:"none"}}})}})}return v0(l)}function v0({props:e,attrs:t,slots:o,slot:n,name:r}){var i,a;let{as:l,...s}=o9(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=e9(u??[]),Object.keys(s).length>0||Object.keys(t).length>0){let[c,...h]=u??[];if(!vW(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(` +/'`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},jN=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},UN=()=>{const e='ls /system/product/priv-app/MIUIContentExtension/MIUIContentExtension.apk &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},KN=()=>{const e="am start -n com.miui.contentextension/.setting.activity.MainSettingsActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Kv=()=>{const e='reboot && echo "Reboot command executed successfully." || echo "Reboot command failed."';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Reboot command executed successfully."?t(r):o(r)}}),e)},GX=(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 Se(o);i?r(l):n("save command executed successfully.")}})},qX=()=>{const e='pkill -9 -f com.android.systemui && echo "kill command executed successfully." || echo "kill command failed."';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="kill command executed successfully."?t(r):o(r)}}),e)},GN=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 ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},qN=e=>{const t=`cmd activity ${e}service -n com.miui.powerkeeper/.ui.framerate.FrameRateService`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},ZN=e=>{const t=ht(),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,p,g]=a,v={id:parseInt(s,10),width:parseInt(u,10),height:parseInt(d,10),fps:parseFloat(c),vsync:parseInt(h),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)}else{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)}}),o},XN=()=>{const e="dumpsys display | grep 'DisplayModeRecord'";return ke(new Promise(async(t,o)=>{try{const{errno:n,stdout:r,stderr:i}=await Se(e);if(n){o(i);return}const a=ZN(r);t(a)}catch(n){o(n)}}),e)},rc=e=>ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(`sh /data/adb/modules/MIUI_MagicWindow+/common/source/update_rule/update_rule.sh${e?` ${e}`:""}`);n?o(i):t(r)}}),"updateMiuiEmbeddingWindowRule"),YN=()=>{const e='ls -d /data/adb/shamiko/ &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},QN=()=>{const e='ls /data/adb/shamiko/whitelist &>/dev/null && echo "whitelist" || echo "blacklist"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},JN=e=>{const t=e==="whitelist"?"touch /data/adb/shamiko/whitelist":"rm -rf /data/adb/shamiko/whitelist";return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},eV=()=>{const e='ls /sys/touchpanel/pen_update &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},tV=()=>{const e='ls /sys/touchpanel/pen_enable &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},oV=()=>{const e='ls /sys/touchpanel/keyboard &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},nV=()=>{const e="cat /sys/touchpanel/pen_update";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},rV=e=>{const t=`echo ${e} > /sys/touchpanel/pen_update`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},iV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},aV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},lV=()=>{const e="cat /sys/touchpanel/pen_enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},sV=e=>{const t=`echo ${e} > /sys/touchpanel/pen_enable`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},uV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},dV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},cV=()=>{const e="cat /sys/touchpanel/keyboard | head -n 1";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},fV=e=>{const t=`echo ${e} > /sys/touchpanel/keyboard`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},hV=()=>{const e="getprop ro.config.miui_desktop_mode_enabled";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},pV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},mV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},gV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},vV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},bV=()=>{const e="settings get system miui_dkt_mode";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},xV=e=>{const t=`settings put system miui_dkt_mode ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},yV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="Command executed successfully."?t(r):o(r)}}),e)},G4=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},CV=()=>{const e="grep 'is_enable_show_notification_icon_num=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},wV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},SV=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 ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},FV=e=>{const t=`settings put system status_bar_show_notification_icon ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},EV=()=>{const e="cat /proc/mv";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r==="null"?"":r)}}),e)},kV=()=>{const e="cat /sys/class/mi_display/disp-DSI-0/panel_info";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);if(n)o(i);else{r==="null"&&t("");const a=r.split("=");Array.isArray(a)&&a.length===2?t(a[1]):t("")}}}),e)},_V=e=>{const t=`service call SurfaceFlinger 1035 i32 ${e}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},q4=e=>{const t=`service call SurfaceFlinger 1034 i32 ${e?1:0}`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},Gv=()=>{const e="am start com.miui.voiceassist/com.xiaomi.voiceassistant.CTAAlertActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},MV=()=>{const e="am startservice -n com.xiaomi.aiasst.vision/.control.translation.AiTranslateService --es from systemui.plugin.tile.aisubtitles --es floatingWindowType startAiSubtitlesWindow";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},RV=()=>{const e="am start -n com.miui.mediaeditor/com.miui.gallery.vlog.template2.VlogTemplateActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},zV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$ReduceBrightColorsSettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(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.settings/.Settings$AccessibilityInversionSettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},PV=()=>{const e='am start -n com.android.phone/com.android.phone.EmergencyDialer -e shortcut "volume_down_up_three_time"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},BV=()=>{const e="am start -a android.intent.action.VIEW -n com.android.settings/.RunningServices -f 0x10000000";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(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.settings/.Settings$NotificationStationActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},DV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.settings/.Settings$MemorySettingsActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},TV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.ai.AiWallpaperListActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},IV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeClientActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},OV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.xiaomi.aicr/.dist.client.activity.DistComputeServerActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},LV=()=>{const e="am start 'intent://settings/#Intent;action=android.intent.action.VIEW;launchFlags=0x14400000;component=com.android.thememanager/.activity.AiWallpaperGuideActivity;end'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},HV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},NV=()=>{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 ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},VV=()=>{const e="am start -n com.google.android.gms/com.google.android.gms.googlesettings.ui.GoogleSettingsActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},WV=()=>{const e="am start -n com.miui.securitycenter/com.miui.autotask.activity.TaskManagerActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},jV=()=>{const e="am broadcast -a android.telephony.action.SECRET_CODE -d android_secret_code://5776733 android";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},UV=()=>{const e="am start -n com.android.thememanager/com.android.thememanager.activity.ThemeTabActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},qv=()=>{const e="am start -n com.miui.securitycenter/com.miui.apppredict.activity.AppClassificationActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},KV=()=>{const e="am start -n com.hyperos.aitoolbox/com.xiaomi.windowsgame.ui.GameEngineLauncherActivity";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},GV=()=>{const e='ls /data/data/com.miui.securitycenter/databases/gamebooster.db &>/dev/null && echo "exists" || echo "not exists"';return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):r==="exists"?t(r):o(r)}}),e)},qV=()=>{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 ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):(l&&r(l),n(a))}}),o)},Z4=e=>{const t=`chmod ${e} /data/user/0/com.miui.contentextension/files/blacklistConfig`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):o(i)}}),t)},ZV=()=>{const e="getprop persist.sys.stability.smartfocusio";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},XV=()=>{const e="grep 'is_auto_start_miui_cursor_style_type=' /data/adb/MIUI_MagicWindow+/config.prop | awk -F'=' '{print $2}'";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},X4=()=>{const e=`sed -i '/^is_auto_start_miui_cursor_style_type=/d' //data/adb/MIUI_MagicWindow+/config.prop && echo "Remove is_auto_start_miui_cursor_style_type successfully." || echo "Remove is_auto_start_miui_cursor_style_type failed."`;return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},YV=e=>{const t=`grep -q '^is_auto_start_miui_cursor_style_type=' /data/adb/MIUI_MagicWindow+/config.prop || (echo "is_auto_start_miui_cursor_style_type=${e}" | tee -a /data/adb/MIUI_MagicWindow+/config.prop > /dev/null && echo "Command executed successfully." || echo "Command failed.")`;return ke(new Promise(async(o,n)=>{{const{errno:r,stdout:i,stderr:a}=await Se(t);r?n(a):i==="Command executed successfully."?o(i):n(i)}}),t)},QV=()=>{const e="cat /sys/block/zram0/backing_dev";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},JV=()=>{const e="getprop persist.miui.extm.dm_opt.enable";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},eW=()=>{const e="echo $(awk '{print int($3 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},tW=()=>{const e="echo $(awk '{print int($2 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},oW=()=>{const e="echo $(awk '{print int($1 * 4096 / 1024 / 1024)}' /sys/block/zram0/bd_stat)";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Zv=Gi("gameBooster",()=>{const e=A([]),t=D(()=>{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=D(()=>a.length>0);D(()=>e.value.length);const n=A(""),r=A(!0),i=A(!1),a=Nt([]),l=D(()=>new Set([...e.value]));async function s(){r.value=!0;const[u,d]=await Me(GV());if(u&&(r.value=!1,i.value=!1),d){i.value=!0;const[c,h]=await Me(YH());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 g3(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ws(){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 g3(()=>{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=Ws();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 Y4;let nW=Symbol("headlessui.useid"),rW=0;const v3=(Y4=Tx)!=null?Y4:function(){return He(nW,()=>`${++rW}`)()};function ho(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 iW=Object.defineProperty,aW=(e,t,o)=>t in e?iW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Q4=(e,t,o)=>(aW(e,typeof t!="symbol"?t+"":t,o),o);let lW=class{constructor(){Q4(this,"current",this.detect()),Q4(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"}},js=new lW;function Qa(e){if(js.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ho(e);if(t)return t.ownerDocument}return document}let _1=["[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 Wr=(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))(Wr||{}),Xv=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Xv||{}),sW=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(sW||{});function uW(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(_1)).sort((t,o)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var Yv=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Yv||{});function dW(e,t=0){var o;return e===((o=Qa(e))==null?void 0:o.body)?!1:Qn(t,{0(){return e.matches(_1)},1(){let n=e;for(;n!==null;){if(n.matches(_1))return!0;n=n.parentElement}return!1}})}var cW=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(cW||{});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 Ii(e){e==null||e.focus({preventScroll:!0})}let fW=["textarea","input"].join(",");function hW(e){var t,o;return(o=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,fW))!=null?o:!1}function pW(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 Nu(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?pW(e):e:uW(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&&hW(f)&&f.select(),2}function Qv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function mW(){return/Android/gi.test(window.navigator.userAgent)}function gW(){return Qv()||mW()}function Su(e,t,o){js.isServer||kt(n=>{document.addEventListener(e,t,o),n(()=>document.removeEventListener(e,t,o))})}function Jv(e,t,o){js.isServer||kt(n=>{window.addEventListener(e,t,o),n(()=>window.removeEventListener(e,t,o))})}function vW(e,t,o=D(()=>!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:ho(u);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!dW(l,Yv.Loose)&&l.tabIndex!==-1&&i.preventDefault(),t(i,l)}let r=A(null);Su("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),Su("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),Su("click",i=>{gW()||r.value&&(n(i,()=>r.value),r.value=null)},!0),Su("touchend",i=>n(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Jv("blur",i=>n(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var dd=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dd||{}),Ur=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ur||{});function _r({visible:e=!0,features:t=0,ourProps:o,theirProps:n,...r}){var i;let a=t9(n,o),l=Object.assign(r,{props:a});if(e||t&2&&a.static)return v0(l);if(t&1){let s=(i=a.unmount)==null||i?0:1;return Qn(s,{0(){return null},1(){return v0({...r,props:{...a,hidden:!0,style:{display:"none"}}})}})}return v0(l)}function v0({props:e,attrs:t,slots:o,slot:n,name:r}){var i,a;let{as:l,...s}=o9(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=e9(u??[]),Object.keys(s).length>0||Object.keys(t).length>0){let[c,...h]=u??[];if(!bW(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=t9((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 e9(e){return e.flatMap(t=>t.type===ft?e9(t.children):[t])}function t9(...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 o9(e,t=[]){let o=Object.assign({},e);for(let n of t)n in o&&delete o[n];return o}function vW(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var cd=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(cd||{});let M1=ye({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 _r({ourProps:a,theirProps:i,slot:{},attrs:o,slots:t,name:"Hidden"})}}}),n9=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 bW(){return b3()!==null}function b3(){return He(n9,null)}function xW(e){tt(n9,e)}var r9=(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))(r9||{});function yW(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ci=[];yW(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ci[0]!==t.target&&(Ci.unshift(t.target),Ci=Ci.filter(o=>o!=null&&o.isConnected),Ci.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 i9(e,t,o,n){js.isServer||kt(r=>{e=e??window,e.addEventListener(t,o,n),r(()=>e.removeEventListener(t,o,n))})}var Ml=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ml||{});function CW(){let e=A(0);return Jv("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function a9(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=ho(o);n instanceof HTMLElement&&t.add(n)}return t}var l9=(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))(l9||{});let yl=Object.assign(ye({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:A(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:o,expose:n}){let r=A(null);n({el:r,$el:r});let i=D(()=>Qa(r)),a=A(!1);ut(()=>a.value=!0),Go(()=>a.value=!1),SW({ownerDocument:i},D(()=>a.value&&!!(e.features&16)));let l=FW({ownerDocument:i,container:r,initialFocus:D(()=>e.initialFocus)},D(()=>a.value&&!!(e.features&2)));EW({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},D(()=>a.value&&!!(e.features&8)));let s=CW();function u(f){let p=ho(r);p&&(g=>g())(()=>{Qn(s.value,{[Ml.Forwards]:()=>{Nu(p,Wr.First,{skipElements:[f.relatedTarget]})},[Ml.Backwards]:()=>{Nu(p,Wr.Last,{skipElements:[f.relatedTarget]})}})})}let d=A(!1);function c(f){f.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function h(f){if(!a.value)return;let p=a9(e.containers);ho(r)instanceof HTMLElement&&p.add(ho(r));let g=f.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(s9(p,g)||(d.value?Nu(ho(r),Qn(s.value,{[Ml.Forwards]:()=>Wr.Next,[Ml.Backwards]:()=>Wr.Previous})|Wr.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&Ii(f.target)))}return()=>{let f={},p={ref:r,onKeydown:c,onFocusout:h},{features:g,initialFocus:v,containers:b,...C}=e;return m(ft,[!!(g&4)&&m(M1,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:cd.Focusable}),_r({ourProps:p,theirProps:{...t,...C},slot:f,attrs:t,slots:o,name:"FocusTrap"}),!!(g&4)&&m(M1,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:cd.Focusable})])}}}),{features:l9});function wW(e){let t=A(Ci.slice());return lt([e],([o],[n])=>{n===!0&&o===!1?g3(()=>{t.value.splice(0)}):n===!1&&o===!0&&(t.value=Ci.slice())},{flush:"post"}),()=>{var o;return(o=t.value.find(n=>n!=null&&n.isConnected))!=null?o:null}}function SW({ownerDocument:e},t){let o=wW(t);ut(()=>{kt(()=>{var n,r;t.value||((n=e.value)==null?void 0:n.activeElement)===((r=e.value)==null?void 0:r.body)&&Ii(o())},{flush:"post"})}),Go(()=>{t.value&&Ii(o())})}function FW({ownerDocument:e,container:t,initialFocus:o},n){let r=A(null),i=A(!1);return ut(()=>i.value=!0),Go(()=>i.value=!1),ut(()=>{lt([t,o,n],(a,l)=>{if(a.every((u,d)=>(l==null?void 0:l[d])===u)||!n.value)return;let s=ho(t);s&&g3(()=>{var u,d;if(!i.value)return;let c=ho(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?Ii(c):Nu(s,Wr.First|Wr.NoScroll)===Xv.Error&&console.warn("There are no focusable elements inside the "),r.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),r}function EW({ownerDocument:e,container:t,containers:o,previousActiveElement:n},r){var i;i9((i=e.value)==null?void 0:i.defaultView,"focus",a=>{if(!r.value)return;let l=a9(o);ho(t)instanceof HTMLElement&&l.add(ho(t));let s=n.value;if(!s)return;let u=a.target;u&&u instanceof HTMLElement?s9(l,u)?(n.value=u,Ii(u)):(a.preventDefault(),a.stopPropagation(),Ii(s)):Ii(n.value)},!0)}function s9(e,t){for(let o of e)if(o.contains(t))return!0;return!1}function kW(e){let t=Fd(e.getSnapshot());return Go(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function _W(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 MW(){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 RW(){return Qv()?{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=Ws();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 zW(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function AW(e){let t={};for(let o of e)Object.assign(t,o(t));return t}let ki=_W(()=>new Map,{PUSH(e,t){var o;let n=(o=this.get(e))!=null?o:{doc:e,count:0,d:Ws(),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:AW(o)},r=[RW(),MW(),zW()];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)}});ki.subscribe(()=>{let e=ki.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)&&ki.dispatch(o.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",o),o.count===0&&ki.dispatch("TEARDOWN",o)}});function PW(e,t,o){let n=kW(ki),r=D(()=>{let i=e.value?n.value.get(e.value):void 0;return i?i.count>0:!1});return lt([e,t],([i,a],[l],s)=>{if(!i||!a)return;ki.dispatch("PUSH",i,o);let u=!1;s(()=>{u||(ki.dispatch("POP",l??i,o),u=!0)})},{immediate:!0}),r}let b0=new Map,Cl=new Map;function J4(e,t=A(!0)){kt(o=>{var n;if(!t.value)return;let r=ho(e);if(!r)return;o(function(){var a;if(!r)return;let l=(a=Cl.get(r))!=null?a:1;if(l===1?Cl.delete(r):Cl.set(r,l-1),l!==1)return;let s=b0.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,b0.delete(r))});let i=(n=Cl.get(r))!=null?n:0;Cl.set(r,i+1),i===0&&(b0.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function BW({defaultContainers:e=[],portals:t,mainTreeNodeRef:o}={}){let n=A(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(ho(n))||d.contains((s=(l=ho(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(M1,{features:cd.Hidden,ref:n})}}}let u9=Symbol("ForcePortalRootContext");function $W(){return He(u9,!1)}let e5=ye({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o}){return tt(u9,e.force),()=>{let{force:n,...r}=e;return _r({theirProps:r,ourProps:{},slot:{},slots:t,attrs:o,name:"ForcePortalRoot"})}}}),d9=Symbol("StackContext");var R1=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(R1||{});function DW(){return He(d9,()=>{})}function TW({type:e,enabled:t,element:o,onUpdate:n}){let r=DW();function i(...a){n==null||n(...a),r(...a)}ut(()=>{lt(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)}),tt(d9,i)}let IW=Symbol("DescriptionContext");function OW({slot:e=A({}),name:t="Description",props:o={}}={}){let n=A([]);function r(i){return n.value.push(i),()=>{let a=n.value.indexOf(i);a!==-1&&n.value.splice(a,1)}}return tt(IW,{register:r,slot:e,name:t,props:o}),D(()=>n.value.length>0?n.value.join(" "):void 0)}function LW(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 z1=new WeakMap;function HW(e){var t;return(t=z1.get(e))!=null?t:0}function t5(e,t){let o=t(HW(e));return o<=0?z1.delete(e):z1.set(e,o),o}let NW=ye({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:o}){let n=A(null),r=D(()=>Qa(n)),i=$W(),a=He(c9,null),l=A(i===!0||a==null?LW(n.value):a.resolveTarget());l.value&&t5(l.value,h=>h+1);let s=A(!1);ut(()=>{s.value=!0}),kt(()=>{i||a!=null&&(l.value=a.resolveTarget())});let u=He(A1,null),d=!1,c=xr();return lt(n,()=>{if(d||!u)return;let h=ho(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||t5(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(Fs,{to:l.value},_r({ourProps:h,theirProps:e,slot:{},attrs:o,slots:t,name:"Portal"}))}}}),A1=Symbol("PortalParentContext");function VW(){let e=He(A1,null),t=A([]);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,ye({name:"PortalWrapper",setup(i,{slots:a}){return tt(A1,r),()=>{var l;return(l=a.default)==null?void 0:l.call(a)}}})]}let c9=Symbol("PortalGroupContext"),WW=ye({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:o}){let n=Nt({resolveTarget(){return e.target}});return tt(c9,n),()=>{let{target:r,...i}=e;return _r({theirProps:i,ourProps:{},slot:{},attrs:t,slots:o,name:"PortalGroup"})}}});var jW=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(jW||{});let P1=Symbol("DialogContext");function f9(e){let t=He(P1,null);if(t===null){let o=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,f9),o}return t}let Fu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",UW=ye({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:Fu},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-${v3()}`,s=A(!1);ut(()=>{s.value=!0});let u=!1,d=D(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(u||(u=!0,console.warn(`Invalid role [${d}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),c=A(0),h=b3(),f=D(()=>e.open===Fu&&h!==null?(h.value&Jo.Open)===Jo.Open:e.open),p=A(null),g=D(()=>Qa(p));if(r({el:p,$el:p}),!(e.open!==Fu||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===Fu?void 0:e.open}`);let v=D(()=>s.value&&f.value?0:1),b=D(()=>v.value===0),C=D(()=>c.value>1),k=He(P1,null)!==null,[w,_]=VW(),{resolveContainers:M,mainTreeNodeRef:E,MainTreeNode:P}=BW({portals:w,defaultContainers:[D(()=>{var j;return(j=R.panelRef.value)!=null?j:p.value})]}),z=D(()=>C.value?"parent":"leaf"),$=D(()=>h!==null?(h.value&Jo.Closing)===Jo.Closing:!1),G=D(()=>k||$.value?!1:b.value),H=D(()=>{var j,X,le;return(le=Array.from((X=(j=g.value)==null?void 0:j.querySelectorAll("body > *"))!=null?X:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ho(E))&&ae instanceof HTMLElement))!=null?le:null});J4(H,G);let q=D(()=>C.value?!0:b.value),W=D(()=>{var j,X,le;return(le=Array.from((X=(j=g.value)==null?void 0:j.querySelectorAll("[data-headlessui-portal]"))!=null?X:[]).find(ae=>ae.contains(ho(E))&&ae instanceof HTMLElement))!=null?le:null});J4(W,q),TW({type:"Dialog",enabled:D(()=>v.value===0),element:p,onUpdate:(j,X)=>{if(X==="Dialog")return Qn(j,{[R1.Add]:()=>c.value+=1,[R1.Remove]:()=>c.value-=1})}});let L=OW({name:"DialogDescription",slot:D(()=>({open:f.value}))}),I=A(null),R={titleId:I,panelRef:A(null),dialogState:v,setTitleId(j){I.value!==j&&(I.value=j)},close(){t("close",!1)}};tt(P1,R);let O=D(()=>!(!b.value||C.value));gW(M,(j,X)=>{j.preventDefault(),R.close(),Rt(()=>X==null?void 0:X.focus())},O);let oe=D(()=>!(C.value||v.value!==0));i9((a=g.value)==null?void 0:a.defaultView,"keydown",j=>{oe.value&&(j.defaultPrevented||j.key===r9.Escape&&(j.preventDefault(),j.stopPropagation(),R.close()))});let y=D(()=>!($.value||v.value!==0||k));return PW(g,y,j=>{var X;return{containers:[...(X=j.containers)!=null?X:[],M]}}),kt(j=>{if(v.value!==0)return;let X=ho(p);if(!X)return;let le=new ResizeObserver(ae=>{for(let Fe of ae){let fe=Fe.target.getBoundingClientRect();fe.x===0&&fe.y===0&&fe.width===0&&fe.height===0&&R.close()}});le.observe(X),j(()=>le.disconnect())}),()=>{let{open:j,initialFocus:X,...le}=e,ae={...o,ref:p,id:l,role:d.value,"aria-modal":v.value===0?!0:void 0,"aria-labelledby":I.value,"aria-describedby":L.value},Fe={open:v.value===0};return m(e5,{force:!0},()=>[m(NW,()=>m(WW,{target:p.value},()=>m(e5,{force:!1},()=>m(yl,{initialFocus:X,containers:M,features:b.value?Qn(z.value,{parent:yl.features.RestoreFocus,leaf:yl.features.All&~yl.features.FocusLock}):yl.features.None},()=>m(_,{},()=>_r({ourProps:ae,theirProps:{...le,...o},slot:Fe,attrs:o,slots:n,visible:v.value===0,features:dd.RenderStrategy|dd.Static,name:"Dialog"})))))),m(P)])}}}),KW=ye({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-${v3()}`,a=f9("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 _r({ourProps:u,theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:o,name:"DialogPanel"})}}});function GW(e){let t={called:!1};return(...o)=>{if(!t.called)return t.called=!0,e(...o)}}function x0(e,...t){e&&t.length>0&&e.classList.add(...t)}function Eu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var B1=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(B1||{});function qW(e,t){let o=Ws();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 o5(e,t,o,n,r,i){let a=Ws(),l=i!==void 0?GW(i):()=>{};return Eu(e,...r),x0(e,...t,...o),a.nextFrame(()=>{Eu(e,...o),x0(e,...n),a.add(qW(e,s=>(Eu(e,...n,...t),x0(e,...r),l(s))))}),a.add(()=>Eu(e,...t,...o,...n,...r)),a.add(()=>l("cancelled")),a.dispose}function bi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let x3=Symbol("TransitionContext");var ZW=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ZW||{});function XW(){return He(x3,null)!==null}function YW(){let e=He(x3,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function QW(){let e=He(y3,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let y3=Symbol("NestingContext");function ic(e){return"children"in e?ic(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function h9(e){let t=A([]),o=A(!1);ut(()=>o.value=!0),Go(()=>o.value=!1);function n(i,a=Ur.Hidden){let l=t.value.findIndex(({id:s})=>s===i);l!==-1&&(Qn(a,{[Ur.Unmount](){t.value.splice(l,1)},[Ur.Hidden](){t.value[l].state="hidden"}}),!ic(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,Ur.Unmount)}return{children:t,register:r,unregister:n}}let p9=dd.RenderStrategy,Vu=ye({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=A(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(!XW()&&bW())return()=>m(m9,{...e,onBeforeEnter:a,onAfterEnter:l,onBeforeLeave:s,onAfterLeave:u},n);let d=A(null),c=D(()=>e.unmount?Ur.Unmount:Ur.Hidden);r({el:d,$el:d});let{show:h,appear:f}=YW(),{register:p,unregister:g}=QW(),v=A(h.value?"visible":"hidden"),b={value:!0},C=v3(),k={value:!1},w=h9(()=>{!k.value&&v.value!=="hidden"&&(v.value="hidden",g(C),u())});ut(()=>{let q=p(C);Go(q)}),kt(()=>{if(c.value===Ur.Hidden&&C){if(h.value&&v.value!=="visible"){v.value="visible";return}Qn(v.value,{hidden:()=>g(C),visible:()=>p(C)})}});let _=bi(e.enter),M=bi(e.enterFrom),E=bi(e.enterTo),P=bi(e.entered),z=bi(e.leave),$=bi(e.leaveFrom),G=bi(e.leaveTo);ut(()=>{kt(()=>{if(v.value==="visible"){let q=ho(d);if(q instanceof Comment&&q.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function H(q){let W=b.value&&!f.value,L=ho(d);!L||!(L instanceof HTMLElement)||W||(k.value=!0,h.value&&a(),h.value||s(),q(h.value?o5(L,_,M,E,P,I=>{k.value=!1,I===B1.Finished&&l()}):o5(L,z,$,G,P,I=>{k.value=!1,I===B1.Finished&&(ic(w)||(v.value="hidden",g(C),u()))})))}return ut(()=>{lt([h],(q,W,L)=>{H(L),b.value=!1},{immediate:!0})}),tt(y3,w),xW(D(()=>Qn(v.value,{visible:Jo.Open,hidden:Jo.Closed})|i.value)),()=>{let{appear:q,show:W,enter:L,enterFrom:I,enterTo:R,entered:O,leave:oe,leaveFrom:y,leaveTo:j,...X}=e,le={ref:d},ae={...X,...f.value&&h.value&&js.isServer?{class:xe([o.class,X.class,..._,...M])}:{}};return _r({theirProps:ae,ourProps:le,slot:{},slots:n,attrs:o,features:p9,visible:v.value==="visible",name:"TransitionChild"})}}}),JW=Vu,m9=ye({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=b3(),i=D(()=>e.show===null&&r!==null?(r.value&Jo.Open)===Jo.Open:e.show);kt(()=>{if(![!0,!1].includes(i.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let a=A(i.value?"visible":"hidden"),l=h9(()=>{a.value="hidden"}),s=A(!0),u={show:i,appear:D(()=>e.appear||!s.value)};return ut(()=>{kt(()=>{s.value=!1,i.value?a.value="visible":ic(l)||(a.value="hidden")})}),tt(y3,l),tt(x3,u),()=>{let d=o9(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),c={unmount:e.unmount};return _r({ourProps:{...c,as:"template"},theirProps:{},slot:{},slots:{...n,default:()=>[m(JW,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...o,...c,...d},n.default)]},attrs:{},features:p9,visible:a.value==="visible",name:"Transition"})}}});function g9(e,t){return Re(),Oe("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"},[T("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 ej(e,t){return Re(),Oe("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"},[T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function v9(e,t){return Re(),Oe("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"},[T("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 b9(e,t){return Re(),Oe("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"},[T("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 x9(e,t){return Re(),Oe("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"},[T("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 y9(e,t){return Re(),Oe("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"},[T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function tj(e,t){return Re(),Oe("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"},[T("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 fd(e,t){return Re(),Oe("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"},[T("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 C9(e,t){return Re(),Oe("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"},[T("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 w9(e,t){return Re(),Oe("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"},[T("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 S9(e,t){return Re(),Oe("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"},[T("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 oj(e,t){return Re(),Oe("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"},[T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function F9(){const e=D(()=>t.miuiCompatEnable&&t.miuiAppCompatEnable&&t.androidTargetSdk&&t.androidTargetSdk>31),t=ht();return ut(()=>{}),{isSupportGameMode:e}}function E9(){const e=ht(),t=di(),o=A(!1),n=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:r,modal:i}=It(["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:()=>x("div",null,[x("p",null,[F("未检测到系统存在传送门,请先通过模块修补传送门再进入~")]),x("p",null,[F("已经复制模块下载链接到剪切板了,请务必选择固化并修复传送门~")]),x("p",null,[F("下载链接:https://caiyun.139.com/m/i?135CdxVMTx4nf")])]),negativeText:"确定"});return}i.create({title:"确认打开传送门吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("即将打开")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("传送门")])," ",F("管理界面,确定要继续吗?")])]),positiveText:"确定打开",negativeText:"我再想想",onPositiveClick:async()=>{KN().then(d=>{i.create({title:"已开启",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("好耶OwO~")]),x("p",null,[F("已经成功开启")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("传送门")])," ",F("的管理界面了~")])]),positiveText:"确定"})},d=>{i.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>x("p",null,[F("出现异常,无法正常打开传送门QwQ,详细问题可浏览日志记录~")]),negativeText:"确定"})})}})},l=async()=>{const[d,c]=await Me(qV());if(d){t.error("修复传送门失败",d),console.log("进来了修复失败",d);return}console.log("进来了修复成功",c),t.success("修复传送门成功",c),i.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,已经成功修复传送门~实际生效还需要重启")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板/手机管家")])," ",F("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){GN("com.miui.contentextension").then(async h=>{i.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(h=>{i.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}})},s=async()=>{i.create({title:"确认固化应用黑名单吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("固化")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用黑名单")])," ",F("后可以避免被系统异常重置,但是后续添加")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用黑名单")])," ",F("需要先解除固化,确定要继续吗?")])]),positiveText:"确定固化",negativeText:"我再想想",onPositiveClick:async()=>{Z4(400)}})},u=async()=>{i.create({title:"确认解除应用黑名单的固化吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("解除")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用黑名单")])," ",F("固化后可以修改应用黑名单列表,修改完毕后建议重新固化")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用黑名单")])," ",F(",以避免被系统异常重置,确定要继续吗?")])]),positiveText:"确定解除",negativeText:"我再想想",onPositiveClick:async()=>{Z4(600)}})};return ut(()=>{UN().then(d=>{d==="exists"&&(o.value=!0)})}),{open:a,fix:l,isInstallMIUIContentExtension:o,setAuthIsOnlyRead:s,setAuthIsReadAndWrite:u}}const nj={class:"fixed inset-0 flex"},rj={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},ij={class:"flex flex-1 flex-col"},aj={role:"list",class:"flex flex-1 flex-col gap-y-7"},lj={role:"list",class:"-mx-2 space-y-1"},sj={role:"list",class:"-mx-2 mt-2 space-y-1"},uj={class:"truncate"},dj={class:"mt-auto"},cj={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col"},fj={class:"flex flex-1 flex-col"},hj={role:"list",class:"flex flex-1 flex-col gap-y-7"},pj={role:"list",class:"-mx-2 space-y-1"},mj={role:"list",class:"-mx-2 mt-2 space-y-1"},gj={class:"truncate"},vj={class:"mt-auto"},bj={class:"min-h-screen lg:pl-72"},xj={class:"sticky top-0 z-40 backdrop-blur-md lg:mx-auto"},yj={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},Cj={class:"flex h-full w-full content-center items-center justify-center"},wj={class:"flex items-center gap-x-4 lg:gap-x-6"},Sj={class:"mx-auto max-w-7xl px-4 pb-1 sm:px-6 lg:px-8"},Fj=ye({__name:"Sidebar",setup(e){const t=Vv();F9();const o=ht(),n=Zv();E9();const r=D(()=>({theme:o.isDarkMode?Bt:Ft})),{message:i,modal:a}=It(["message","modal"],{configProviderProps:r}),l=Nt([{name:"应用横屏布局",routeName:"home",href:"/",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-putong"},null)])},{name:"应用布局优化",routeName:"autoui",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=33)},href:"/autoui",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-yingyong2"},null)])},{name:"游戏显示布局",routeName:"game-booster",href:"/game-booster",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=32&&n.hasGameBoosterDataBase)},icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-youxi7"},null)])},{name:"窗口控制器",routeName:"dot-black-list",href:"/dot-black-list",isShow(){return!!(o.MIOSVersion&&o.MIOSVersion>=1)},icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-kongzhitai"},null)])},{name:"外设按键映射",routeName:"magic-control",href:"/magic-control",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-youxi8"},null)]),isShow(){return o.deviceCharacteristics==="tablet"}},{name:"精选应用",routeName:"appStore",href:"/appStore",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-linggan"},null)])},{name:"日志记录",routeName:"logs",href:"/logs",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-biaoji"},null)])},{name:"新春彩蛋",routeName:"eggs",href:"/eggs",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-chunjie"},null)])}]),s=[{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}],u=A(!1),d=()=>{o.windowWidth=window.innerWidth};return ut(()=>{window.addEventListener("resize",d)}),Jt(()=>{window.removeEventListener("resize",d)}),(c,h)=>(rt("n-badge"),Re(),Oe("div",null,[x(S(m9),{as:"template",show:u.value},{default:K(()=>[x(S(UW),{as:"div",class:"relative z-50 lg:hidden",onClose:h[1]||(h[1]=f=>u.value=!1)},{default:K(()=>[x(S(Vu),{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:K(()=>h[4]||(h[4]=[T("div",{class:"fixed inset-0 bg-zinc-900/80"},null,-1)])),_:1}),T("div",nj,[x(S(Vu),{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:K(()=>[x(S(KW),{class:xe(["relative mr-16 flex w-full max-w-xs flex-1",S(o).isDarkMode?"bg-zinc-900":"bg-white"])},{default:K(()=>[x(S(Vu),{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:K(()=>[T("div",rj,[T("button",{type:"button",class:"-m-2.5 p-2.5",onClick:h[0]||(h[0]=f=>u.value=!1)},[h[5]||(h[5]=T("span",{class:"sr-only"},"Close sidebar",-1)),x(S(oj),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),T("div",{class:xe(["flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-4",S(o).isDarkMode?"bg-[#151515]":"bg-[#f6f6f6]"])},[h[7]||(h[7]=T("div",{class:"flex h-2 shrink-0 items-center"},null,-1)),T("nav",ij,[T("ul",aj,[T("li",null,[T("ul",lj,[(Re(!0),Oe(ft,null,wi(l,f=>(Re(),Oe("li",{key:f.name},[zo((Re(),Tt(ru(f.href&&f.routeName?"RouterLink":"a"),mo({ref_for:!0},f.href&&f.routeName?{to:f.href}:{href:"javascript:void(0)"},{onClick:p=>f.click&&f.click(),class:[f.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:K(()=>[(Re(),Tt(ru(f.icon),{class:xe([f.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"])),F(" "+et(f.name),1)]),_:2},1040,["onClick","class"])),[[bn,f.isShow?f.isShow():!0]])]))),128))])]),T("li",null,[T("div",{class:xe(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),T("ul",sj,[(Re(),Oe(ft,null,wi(s,f=>T("li",{key:f.name},[x(S(_l),{to:f.href,class:xe([f.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:K(()=>[T("span",{class:xe([f.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"])},et(f.initial),3),T("span",uj,et(f.name),1)]),_:2},1032,["to","class"])])),64))])]),T("li",dj,[x(S(_l),{to:"/settings",class:xe([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:K(()=>h[6]||(h[6]=[T("svg",{class:"icon h-6 w-6 shrink-0","aria-hidden":"true"},[T("use",{"xlink:href":"#icon-shezhi"})],-1),F(" 模块设置 ")])),_:1},8,["class"])])])])],2)]),_:1},8,["class"])]),_:1})])]),_:1})]),_:1},8,["show"]),T("div",cj,[T("div",{class:xe(["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"])},[h[9]||(h[9]=T("div",{class:"flex h-10 shrink-0 items-center"},null,-1)),T("nav",fj,[T("ul",hj,[T("li",null,[T("ul",pj,[(Re(!0),Oe(ft,null,wi(l,f=>(Re(),Oe("li",{key:f.name},[!f.isShow||f.isShow()?(Re(),Tt(ru(f.href&&f.routeName?"RouterLink":"a"),mo({key:0,ref_for:!0},f.href&&f.routeName?{to:f.href}:{href:"javascript:void(0)"},{onClick:p=>f.click&&f.click(),class:[f.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:K(()=>[(Re(),Tt(ru(f.icon),{class:xe([f.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"])),F(" "+et(f.name),1)]),_:2},1040,["onClick","class"])):Ge("",!0)]))),128))])]),T("li",null,[T("div",{class:xe(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),T("ul",mj,[(Re(),Oe(ft,null,wi(s,f=>T("li",{key:f.name},[x(S(_l),{to:f.href,class:xe([f.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:K(()=>[T("span",{class:xe([f.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"])},et(f.initial),3),T("span",gj,et(f.name),1)]),_:2},1032,["to","class"])])),64))])]),T("li",vj,[x(S(_l),{to:"/settings",class:xe([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:K(()=>h[8]||(h[8]=[T("svg",{class:"icon h-6 w-6 shrink-0","aria-hidden":"true"},[T("use",{"xlink:href":"#icon-shezhi"})],-1),F(" 模块设置 ")])),_:1},8,["class"])])])])],2)]),T("div",bj,[T("div",xj,[T("div",{class:xe(["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"])},[T("button",{type:"button",class:"m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:h[2]||(h[2]=f=>u.value=!0)},[h[10]||(h[10]=T("span",{class:"sr-only"},"Open sidebar",-1)),x(S(ej),{class:"h-6 w-6","aria-hidden":"true"})]),T("div",yj,[T("div",Cj,[T("h1",{class:xe([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 +`));let f=t9((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 e9(e){return e.flatMap(t=>t.type===ft?e9(t.children):[t])}function t9(...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 o9(e,t=[]){let o=Object.assign({},e);for(let n of t)n in o&&delete o[n];return o}function bW(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var cd=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(cd||{});let M1=ye({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 _r({ourProps:a,theirProps:i,slot:{},attrs:o,slots:t,name:"Hidden"})}}}),n9=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 xW(){return b3()!==null}function b3(){return He(n9,null)}function yW(e){tt(n9,e)}var r9=(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))(r9||{});function CW(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ci=[];CW(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ci[0]!==t.target&&(Ci.unshift(t.target),Ci=Ci.filter(o=>o!=null&&o.isConnected),Ci.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 i9(e,t,o,n){js.isServer||kt(r=>{e=e??window,e.addEventListener(t,o,n),r(()=>e.removeEventListener(t,o,n))})}var Ml=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ml||{});function wW(){let e=A(0);return Jv("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function a9(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=ho(o);n instanceof HTMLElement&&t.add(n)}return t}var l9=(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))(l9||{});let yl=Object.assign(ye({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:A(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:o,expose:n}){let r=A(null);n({el:r,$el:r});let i=D(()=>Qa(r)),a=A(!1);ut(()=>a.value=!0),Go(()=>a.value=!1),FW({ownerDocument:i},D(()=>a.value&&!!(e.features&16)));let l=EW({ownerDocument:i,container:r,initialFocus:D(()=>e.initialFocus)},D(()=>a.value&&!!(e.features&2)));kW({ownerDocument:i,container:r,containers:e.containers,previousActiveElement:l},D(()=>a.value&&!!(e.features&8)));let s=wW();function u(f){let p=ho(r);p&&(g=>g())(()=>{Qn(s.value,{[Ml.Forwards]:()=>{Nu(p,Wr.First,{skipElements:[f.relatedTarget]})},[Ml.Backwards]:()=>{Nu(p,Wr.Last,{skipElements:[f.relatedTarget]})}})})}let d=A(!1);function c(f){f.key==="Tab"&&(d.value=!0,requestAnimationFrame(()=>{d.value=!1}))}function h(f){if(!a.value)return;let p=a9(e.containers);ho(r)instanceof HTMLElement&&p.add(ho(r));let g=f.relatedTarget;g instanceof HTMLElement&&g.dataset.headlessuiFocusGuard!=="true"&&(s9(p,g)||(d.value?Nu(ho(r),Qn(s.value,{[Ml.Forwards]:()=>Wr.Next,[Ml.Backwards]:()=>Wr.Previous})|Wr.WrapAround,{relativeTo:f.target}):f.target instanceof HTMLElement&&Ii(f.target)))}return()=>{let f={},p={ref:r,onKeydown:c,onFocusout:h},{features:g,initialFocus:v,containers:b,...C}=e;return m(ft,[!!(g&4)&&m(M1,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:cd.Focusable}),_r({ourProps:p,theirProps:{...t,...C},slot:f,attrs:t,slots:o,name:"FocusTrap"}),!!(g&4)&&m(M1,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:u,features:cd.Focusable})])}}}),{features:l9});function SW(e){let t=A(Ci.slice());return lt([e],([o],[n])=>{n===!0&&o===!1?g3(()=>{t.value.splice(0)}):n===!1&&o===!0&&(t.value=Ci.slice())},{flush:"post"}),()=>{var o;return(o=t.value.find(n=>n!=null&&n.isConnected))!=null?o:null}}function FW({ownerDocument:e},t){let o=SW(t);ut(()=>{kt(()=>{var n,r;t.value||((n=e.value)==null?void 0:n.activeElement)===((r=e.value)==null?void 0:r.body)&&Ii(o())},{flush:"post"})}),Go(()=>{t.value&&Ii(o())})}function EW({ownerDocument:e,container:t,initialFocus:o},n){let r=A(null),i=A(!1);return ut(()=>i.value=!0),Go(()=>i.value=!1),ut(()=>{lt([t,o,n],(a,l)=>{if(a.every((u,d)=>(l==null?void 0:l[d])===u)||!n.value)return;let s=ho(t);s&&g3(()=>{var u,d;if(!i.value)return;let c=ho(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?Ii(c):Nu(s,Wr.First|Wr.NoScroll)===Xv.Error&&console.warn("There are no focusable elements inside the "),r.value=(d=e.value)==null?void 0:d.activeElement})},{immediate:!0,flush:"post"})}),r}function kW({ownerDocument:e,container:t,containers:o,previousActiveElement:n},r){var i;i9((i=e.value)==null?void 0:i.defaultView,"focus",a=>{if(!r.value)return;let l=a9(o);ho(t)instanceof HTMLElement&&l.add(ho(t));let s=n.value;if(!s)return;let u=a.target;u&&u instanceof HTMLElement?s9(l,u)?(n.value=u,Ii(u)):(a.preventDefault(),a.stopPropagation(),Ii(s)):Ii(n.value)},!0)}function s9(e,t){for(let o of e)if(o.contains(t))return!0;return!1}function _W(e){let t=Fd(e.getSnapshot());return Go(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function MW(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 RW(){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 zW(){return Qv()?{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=Ws();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 AW(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function PW(e){let t={};for(let o of e)Object.assign(t,o(t));return t}let ki=MW(()=>new Map,{PUSH(e,t){var o;let n=(o=this.get(e))!=null?o:{doc:e,count:0,d:Ws(),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:PW(o)},r=[zW(),RW(),AW()];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)}});ki.subscribe(()=>{let e=ki.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)&&ki.dispatch(o.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",o),o.count===0&&ki.dispatch("TEARDOWN",o)}});function BW(e,t,o){let n=_W(ki),r=D(()=>{let i=e.value?n.value.get(e.value):void 0;return i?i.count>0:!1});return lt([e,t],([i,a],[l],s)=>{if(!i||!a)return;ki.dispatch("PUSH",i,o);let u=!1;s(()=>{u||(ki.dispatch("POP",l??i,o),u=!0)})},{immediate:!0}),r}let b0=new Map,Cl=new Map;function J4(e,t=A(!0)){kt(o=>{var n;if(!t.value)return;let r=ho(e);if(!r)return;o(function(){var a;if(!r)return;let l=(a=Cl.get(r))!=null?a:1;if(l===1?Cl.delete(r):Cl.set(r,l-1),l!==1)return;let s=b0.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,b0.delete(r))});let i=(n=Cl.get(r))!=null?n:0;Cl.set(r,i+1),i===0&&(b0.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function $W({defaultContainers:e=[],portals:t,mainTreeNodeRef:o}={}){let n=A(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(ho(n))||d.contains((s=(l=ho(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(M1,{features:cd.Hidden,ref:n})}}}let u9=Symbol("ForcePortalRootContext");function DW(){return He(u9,!1)}let e5=ye({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o}){return tt(u9,e.force),()=>{let{force:n,...r}=e;return _r({theirProps:r,ourProps:{},slot:{},slots:t,attrs:o,name:"ForcePortalRoot"})}}}),d9=Symbol("StackContext");var R1=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(R1||{});function TW(){return He(d9,()=>{})}function IW({type:e,enabled:t,element:o,onUpdate:n}){let r=TW();function i(...a){n==null||n(...a),r(...a)}ut(()=>{lt(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)}),tt(d9,i)}let OW=Symbol("DescriptionContext");function LW({slot:e=A({}),name:t="Description",props:o={}}={}){let n=A([]);function r(i){return n.value.push(i),()=>{let a=n.value.indexOf(i);a!==-1&&n.value.splice(a,1)}}return tt(OW,{register:r,slot:e,name:t,props:o}),D(()=>n.value.length>0?n.value.join(" "):void 0)}function HW(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 z1=new WeakMap;function NW(e){var t;return(t=z1.get(e))!=null?t:0}function t5(e,t){let o=t(NW(e));return o<=0?z1.delete(e):z1.set(e,o),o}let VW=ye({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:o}){let n=A(null),r=D(()=>Qa(n)),i=DW(),a=He(c9,null),l=A(i===!0||a==null?HW(n.value):a.resolveTarget());l.value&&t5(l.value,h=>h+1);let s=A(!1);ut(()=>{s.value=!0}),kt(()=>{i||a!=null&&(l.value=a.resolveTarget())});let u=He(A1,null),d=!1,c=xr();return lt(n,()=>{if(d||!u)return;let h=ho(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||t5(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(Fs,{to:l.value},_r({ourProps:h,theirProps:e,slot:{},attrs:o,slots:t,name:"Portal"}))}}}),A1=Symbol("PortalParentContext");function WW(){let e=He(A1,null),t=A([]);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,ye({name:"PortalWrapper",setup(i,{slots:a}){return tt(A1,r),()=>{var l;return(l=a.default)==null?void 0:l.call(a)}}})]}let c9=Symbol("PortalGroupContext"),jW=ye({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:o}){let n=Nt({resolveTarget(){return e.target}});return tt(c9,n),()=>{let{target:r,...i}=e;return _r({theirProps:i,ourProps:{},slot:{},attrs:t,slots:o,name:"PortalGroup"})}}});var UW=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(UW||{});let P1=Symbol("DialogContext");function f9(e){let t=He(P1,null);if(t===null){let o=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,f9),o}return t}let Fu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",KW=ye({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:Fu},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-${v3()}`,s=A(!1);ut(()=>{s.value=!0});let u=!1,d=D(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(u||(u=!0,console.warn(`Invalid role [${d}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),c=A(0),h=b3(),f=D(()=>e.open===Fu&&h!==null?(h.value&Jo.Open)===Jo.Open:e.open),p=A(null),g=D(()=>Qa(p));if(r({el:p,$el:p}),!(e.open!==Fu||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===Fu?void 0:e.open}`);let v=D(()=>s.value&&f.value?0:1),b=D(()=>v.value===0),C=D(()=>c.value>1),k=He(P1,null)!==null,[w,_]=WW(),{resolveContainers:M,mainTreeNodeRef:E,MainTreeNode:P}=$W({portals:w,defaultContainers:[D(()=>{var j;return(j=R.panelRef.value)!=null?j:p.value})]}),z=D(()=>C.value?"parent":"leaf"),$=D(()=>h!==null?(h.value&Jo.Closing)===Jo.Closing:!1),G=D(()=>k||$.value?!1:b.value),H=D(()=>{var j,X,le;return(le=Array.from((X=(j=g.value)==null?void 0:j.querySelectorAll("body > *"))!=null?X:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ho(E))&&ae instanceof HTMLElement))!=null?le:null});J4(H,G);let q=D(()=>C.value?!0:b.value),W=D(()=>{var j,X,le;return(le=Array.from((X=(j=g.value)==null?void 0:j.querySelectorAll("[data-headlessui-portal]"))!=null?X:[]).find(ae=>ae.contains(ho(E))&&ae instanceof HTMLElement))!=null?le:null});J4(W,q),IW({type:"Dialog",enabled:D(()=>v.value===0),element:p,onUpdate:(j,X)=>{if(X==="Dialog")return Qn(j,{[R1.Add]:()=>c.value+=1,[R1.Remove]:()=>c.value-=1})}});let L=LW({name:"DialogDescription",slot:D(()=>({open:f.value}))}),I=A(null),R={titleId:I,panelRef:A(null),dialogState:v,setTitleId(j){I.value!==j&&(I.value=j)},close(){t("close",!1)}};tt(P1,R);let O=D(()=>!(!b.value||C.value));vW(M,(j,X)=>{j.preventDefault(),R.close(),Rt(()=>X==null?void 0:X.focus())},O);let oe=D(()=>!(C.value||v.value!==0));i9((a=g.value)==null?void 0:a.defaultView,"keydown",j=>{oe.value&&(j.defaultPrevented||j.key===r9.Escape&&(j.preventDefault(),j.stopPropagation(),R.close()))});let y=D(()=>!($.value||v.value!==0||k));return BW(g,y,j=>{var X;return{containers:[...(X=j.containers)!=null?X:[],M]}}),kt(j=>{if(v.value!==0)return;let X=ho(p);if(!X)return;let le=new ResizeObserver(ae=>{for(let Fe of ae){let fe=Fe.target.getBoundingClientRect();fe.x===0&&fe.y===0&&fe.width===0&&fe.height===0&&R.close()}});le.observe(X),j(()=>le.disconnect())}),()=>{let{open:j,initialFocus:X,...le}=e,ae={...o,ref:p,id:l,role:d.value,"aria-modal":v.value===0?!0:void 0,"aria-labelledby":I.value,"aria-describedby":L.value},Fe={open:v.value===0};return m(e5,{force:!0},()=>[m(VW,()=>m(jW,{target:p.value},()=>m(e5,{force:!1},()=>m(yl,{initialFocus:X,containers:M,features:b.value?Qn(z.value,{parent:yl.features.RestoreFocus,leaf:yl.features.All&~yl.features.FocusLock}):yl.features.None},()=>m(_,{},()=>_r({ourProps:ae,theirProps:{...le,...o},slot:Fe,attrs:o,slots:n,visible:v.value===0,features:dd.RenderStrategy|dd.Static,name:"Dialog"})))))),m(P)])}}}),GW=ye({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-${v3()}`,a=f9("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 _r({ourProps:u,theirProps:s,slot:{open:a.dialogState.value===0},attrs:t,slots:o,name:"DialogPanel"})}}});function qW(e){let t={called:!1};return(...o)=>{if(!t.called)return t.called=!0,e(...o)}}function x0(e,...t){e&&t.length>0&&e.classList.add(...t)}function Eu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var B1=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(B1||{});function ZW(e,t){let o=Ws();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 o5(e,t,o,n,r,i){let a=Ws(),l=i!==void 0?qW(i):()=>{};return Eu(e,...r),x0(e,...t,...o),a.nextFrame(()=>{Eu(e,...o),x0(e,...n),a.add(ZW(e,s=>(Eu(e,...n,...t),x0(e,...r),l(s))))}),a.add(()=>Eu(e,...t,...o,...n,...r)),a.add(()=>l("cancelled")),a.dispose}function bi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let x3=Symbol("TransitionContext");var XW=(e=>(e.Visible="visible",e.Hidden="hidden",e))(XW||{});function YW(){return He(x3,null)!==null}function QW(){let e=He(x3,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function JW(){let e=He(y3,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let y3=Symbol("NestingContext");function ic(e){return"children"in e?ic(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function h9(e){let t=A([]),o=A(!1);ut(()=>o.value=!0),Go(()=>o.value=!1);function n(i,a=Ur.Hidden){let l=t.value.findIndex(({id:s})=>s===i);l!==-1&&(Qn(a,{[Ur.Unmount](){t.value.splice(l,1)},[Ur.Hidden](){t.value[l].state="hidden"}}),!ic(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,Ur.Unmount)}return{children:t,register:r,unregister:n}}let p9=dd.RenderStrategy,Vu=ye({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=A(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(!YW()&&xW())return()=>m(m9,{...e,onBeforeEnter:a,onAfterEnter:l,onBeforeLeave:s,onAfterLeave:u},n);let d=A(null),c=D(()=>e.unmount?Ur.Unmount:Ur.Hidden);r({el:d,$el:d});let{show:h,appear:f}=QW(),{register:p,unregister:g}=JW(),v=A(h.value?"visible":"hidden"),b={value:!0},C=v3(),k={value:!1},w=h9(()=>{!k.value&&v.value!=="hidden"&&(v.value="hidden",g(C),u())});ut(()=>{let q=p(C);Go(q)}),kt(()=>{if(c.value===Ur.Hidden&&C){if(h.value&&v.value!=="visible"){v.value="visible";return}Qn(v.value,{hidden:()=>g(C),visible:()=>p(C)})}});let _=bi(e.enter),M=bi(e.enterFrom),E=bi(e.enterTo),P=bi(e.entered),z=bi(e.leave),$=bi(e.leaveFrom),G=bi(e.leaveTo);ut(()=>{kt(()=>{if(v.value==="visible"){let q=ho(d);if(q instanceof Comment&&q.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function H(q){let W=b.value&&!f.value,L=ho(d);!L||!(L instanceof HTMLElement)||W||(k.value=!0,h.value&&a(),h.value||s(),q(h.value?o5(L,_,M,E,P,I=>{k.value=!1,I===B1.Finished&&l()}):o5(L,z,$,G,P,I=>{k.value=!1,I===B1.Finished&&(ic(w)||(v.value="hidden",g(C),u()))})))}return ut(()=>{lt([h],(q,W,L)=>{H(L),b.value=!1},{immediate:!0})}),tt(y3,w),yW(D(()=>Qn(v.value,{visible:Jo.Open,hidden:Jo.Closed})|i.value)),()=>{let{appear:q,show:W,enter:L,enterFrom:I,enterTo:R,entered:O,leave:oe,leaveFrom:y,leaveTo:j,...X}=e,le={ref:d},ae={...X,...f.value&&h.value&&js.isServer?{class:xe([o.class,X.class,..._,...M])}:{}};return _r({theirProps:ae,ourProps:le,slot:{},slots:n,attrs:o,features:p9,visible:v.value==="visible",name:"TransitionChild"})}}}),ej=Vu,m9=ye({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=b3(),i=D(()=>e.show===null&&r!==null?(r.value&Jo.Open)===Jo.Open:e.show);kt(()=>{if(![!0,!1].includes(i.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let a=A(i.value?"visible":"hidden"),l=h9(()=>{a.value="hidden"}),s=A(!0),u={show:i,appear:D(()=>e.appear||!s.value)};return ut(()=>{kt(()=>{s.value=!1,i.value?a.value="visible":ic(l)||(a.value="hidden")})}),tt(y3,l),tt(x3,u),()=>{let d=o9(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),c={unmount:e.unmount};return _r({ourProps:{...c,as:"template"},theirProps:{},slot:{},slots:{...n,default:()=>[m(ej,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...o,...c,...d},n.default)]},attrs:{},features:p9,visible:a.value==="visible",name:"Transition"})}}});function g9(e,t){return Re(),Oe("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"},[T("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 tj(e,t){return Re(),Oe("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"},[T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function v9(e,t){return Re(),Oe("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"},[T("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 b9(e,t){return Re(),Oe("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"},[T("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 x9(e,t){return Re(),Oe("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"},[T("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 y9(e,t){return Re(),Oe("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"},[T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function oj(e,t){return Re(),Oe("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"},[T("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 fd(e,t){return Re(),Oe("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"},[T("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 C9(e,t){return Re(),Oe("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"},[T("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 w9(e,t){return Re(),Oe("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"},[T("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 S9(e,t){return Re(),Oe("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"},[T("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 nj(e,t){return Re(),Oe("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"},[T("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function F9(){const e=D(()=>t.miuiCompatEnable&&t.miuiAppCompatEnable&&t.androidTargetSdk&&t.androidTargetSdk>31),t=ht();return ut(()=>{}),{isSupportGameMode:e}}function E9(){const e=ht(),t=di(),o=A(!1),n=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:r,modal:i}=It(["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:()=>x("div",null,[x("p",null,[F("未检测到系统存在传送门,请先通过模块修补传送门再进入~")]),x("p",null,[F("已经复制模块下载链接到剪切板了,请务必选择固化并修复传送门~")]),x("p",null,[F("下载链接:https://caiyun.139.com/m/i?135CdxVMTx4nf")])]),negativeText:"确定"});return}i.create({title:"确认打开传送门吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("即将打开")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("传送门")])," ",F("管理界面,确定要继续吗?")])]),positiveText:"确定打开",negativeText:"我再想想",onPositiveClick:async()=>{KN().then(d=>{i.create({title:"已开启",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("好耶OwO~")]),x("p",null,[F("已经成功开启")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("传送门")])," ",F("的管理界面了~")])]),positiveText:"确定"})},d=>{i.create({title:"无法打开传送门",type:"error",preset:"dialog",content:()=>x("p",null,[F("出现异常,无法正常打开传送门QwQ,详细问题可浏览日志记录~")]),negativeText:"确定"})})}})},l=async()=>{const[d,c]=await Me(qV());if(d){t.error("修复传送门失败",d),console.log("进来了修复失败",d);return}console.log("进来了修复成功",c),t.success("修复传送门成功",c),i.create({title:"更新设置成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,已经成功修复传送门~实际生效还需要重启")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板/手机管家")])," ",F("的作用域,确定要继续吗?")]),positiveText:"确定重启作用域",negativeText:"稍后手动重启",onPositiveClick(){GN("com.miui.contentextension").then(async h=>{i.create({title:"重启作用域成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("已经成功为你重启对应的作用域,请查看是否生效~")])})}).catch(h=>{i.create({title:"重启作用域失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,重启系统界面作用域失败QwQ,详细错误请查看日志~")])})})}})},s=async()=>{i.create({title:"确认固化应用黑名单吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("固化")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用黑名单")])," ",F("后可以避免被系统异常重置,但是后续添加")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用黑名单")])," ",F("需要先解除固化,确定要继续吗?")])]),positiveText:"确定固化",negativeText:"我再想想",onPositiveClick:async()=>{Z4(400)}})},u=async()=>{i.create({title:"确认解除应用黑名单的固化吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("解除")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用黑名单")])," ",F("固化后可以修改应用黑名单列表,修改完毕后建议重新固化")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用黑名单")])," ",F(",以避免被系统异常重置,确定要继续吗?")])]),positiveText:"确定解除",negativeText:"我再想想",onPositiveClick:async()=>{Z4(600)}})};return ut(()=>{UN().then(d=>{d==="exists"&&(o.value=!0)})}),{open:a,fix:l,isInstallMIUIContentExtension:o,setAuthIsOnlyRead:s,setAuthIsReadAndWrite:u}}const rj={class:"fixed inset-0 flex"},ij={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},aj={class:"flex flex-1 flex-col"},lj={role:"list",class:"flex flex-1 flex-col gap-y-7"},sj={role:"list",class:"-mx-2 space-y-1"},uj={role:"list",class:"-mx-2 mt-2 space-y-1"},dj={class:"truncate"},cj={class:"mt-auto"},fj={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col"},hj={class:"flex flex-1 flex-col"},pj={role:"list",class:"flex flex-1 flex-col gap-y-7"},mj={role:"list",class:"-mx-2 space-y-1"},gj={role:"list",class:"-mx-2 mt-2 space-y-1"},vj={class:"truncate"},bj={class:"mt-auto"},xj={class:"min-h-screen lg:pl-72"},yj={class:"sticky top-0 z-40 backdrop-blur-md lg:mx-auto"},Cj={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},wj={class:"flex h-full w-full content-center items-center justify-center"},Sj={class:"flex items-center gap-x-4 lg:gap-x-6"},Fj={class:"mx-auto max-w-7xl px-4 pb-1 sm:px-6 lg:px-8"},Ej=ye({__name:"Sidebar",setup(e){const t=Vv();F9();const o=ht(),n=Zv();E9();const r=D(()=>({theme:o.isDarkMode?Bt:Ft})),{message:i,modal:a}=It(["message","modal"],{configProviderProps:r}),l=Nt([{name:"应用横屏布局",routeName:"home",href:"/",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-putong"},null)])},{name:"应用布局优化",routeName:"autoui",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=33)},href:"/autoui",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-yingyong2"},null)])},{name:"游戏显示布局",routeName:"game-booster",href:"/game-booster",isShow(){return!!(o.androidTargetSdk&&o.androidTargetSdk>=32&&n.hasGameBoosterDataBase)},icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-youxi7"},null)])},{name:"窗口控制器",routeName:"dot-black-list",href:"/dot-black-list",isShow(){return!!(o.MIOSVersion&&o.MIOSVersion>=1)},icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-kongzhitai"},null)])},{name:"外设按键映射",routeName:"magic-control",href:"/magic-control",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-youxi8"},null)]),isShow(){return o.deviceCharacteristics==="tablet"}},{name:"精选应用",routeName:"appStore",href:"/appStore",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-linggan"},null)])},{name:"日志记录",routeName:"logs",href:"/logs",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-biaoji"},null)])},{name:"新春彩蛋",routeName:"eggs",href:"/eggs",icon:()=>x("svg",{class:"icon","aria-hidden":"true"},[x("use",{"xlink:href":"#icon-chunjie"},null)])}]),s=[{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}],u=A(!1),d=()=>{o.windowWidth=window.innerWidth};return ut(()=>{window.addEventListener("resize",d)}),Jt(()=>{window.removeEventListener("resize",d)}),(c,h)=>(rt("n-badge"),Re(),Oe("div",null,[x(S(m9),{as:"template",show:u.value},{default:K(()=>[x(S(KW),{as:"div",class:"relative z-50 lg:hidden",onClose:h[1]||(h[1]=f=>u.value=!1)},{default:K(()=>[x(S(Vu),{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:K(()=>h[4]||(h[4]=[T("div",{class:"fixed inset-0 bg-zinc-900/80"},null,-1)])),_:1}),T("div",rj,[x(S(Vu),{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:K(()=>[x(S(GW),{class:xe(["relative mr-16 flex w-full max-w-xs flex-1",S(o).isDarkMode?"bg-zinc-900":"bg-white"])},{default:K(()=>[x(S(Vu),{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:K(()=>[T("div",ij,[T("button",{type:"button",class:"-m-2.5 p-2.5",onClick:h[0]||(h[0]=f=>u.value=!1)},[h[5]||(h[5]=T("span",{class:"sr-only"},"Close sidebar",-1)),x(S(nj),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),T("div",{class:xe(["flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-4",S(o).isDarkMode?"bg-[#151515]":"bg-[#f6f6f6]"])},[h[7]||(h[7]=T("div",{class:"flex h-2 shrink-0 items-center"},null,-1)),T("nav",aj,[T("ul",lj,[T("li",null,[T("ul",sj,[(Re(!0),Oe(ft,null,wi(l,f=>(Re(),Oe("li",{key:f.name},[zo((Re(),Tt(ru(f.href&&f.routeName?"RouterLink":"a"),mo({ref_for:!0},f.href&&f.routeName?{to:f.href}:{href:"javascript:void(0)"},{onClick:p=>f.click&&f.click(),class:[f.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:K(()=>[(Re(),Tt(ru(f.icon),{class:xe([f.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"])),F(" "+Ye(f.name),1)]),_:2},1040,["onClick","class"])),[[bn,f.isShow?f.isShow():!0]])]))),128))])]),T("li",null,[T("div",{class:xe(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),T("ul",uj,[(Re(),Oe(ft,null,wi(s,f=>T("li",{key:f.name},[x(S(_l),{to:f.href,class:xe([f.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:K(()=>[T("span",{class:xe([f.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"])},Ye(f.initial),3),T("span",dj,Ye(f.name),1)]),_:2},1032,["to","class"])])),64))])]),T("li",cj,[x(S(_l),{to:"/settings",class:xe([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:K(()=>h[6]||(h[6]=[T("svg",{class:"icon h-6 w-6 shrink-0","aria-hidden":"true"},[T("use",{"xlink:href":"#icon-shezhi"})],-1),F(" 模块设置 ")])),_:1},8,["class"])])])])],2)]),_:1},8,["class"])]),_:1})])]),_:1})]),_:1},8,["show"]),T("div",fj,[T("div",{class:xe(["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"])},[h[9]||(h[9]=T("div",{class:"flex h-10 shrink-0 items-center"},null,-1)),T("nav",hj,[T("ul",pj,[T("li",null,[T("ul",mj,[(Re(!0),Oe(ft,null,wi(l,f=>(Re(),Oe("li",{key:f.name},[!f.isShow||f.isShow()?(Re(),Tt(ru(f.href&&f.routeName?"RouterLink":"a"),mo({key:0,ref_for:!0},f.href&&f.routeName?{to:f.href}:{href:"javascript:void(0)"},{onClick:p=>f.click&&f.click(),class:[f.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:K(()=>[(Re(),Tt(ru(f.icon),{class:xe([f.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"])),F(" "+Ye(f.name),1)]),_:2},1040,["onClick","class"])):Ge("",!0)]))),128))])]),T("li",null,[T("div",{class:xe(["text-xs font-semibold leading-6",S(o).isDarkMode?"text-gray-500":"text-gray-400"])},"快捷入口",2),T("ul",gj,[(Re(),Oe(ft,null,wi(s,f=>T("li",{key:f.name},[x(S(_l),{to:f.href,class:xe([f.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:K(()=>[T("span",{class:xe([f.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"])},Ye(f.initial),3),T("span",vj,Ye(f.name),1)]),_:2},1032,["to","class"])])),64))])]),T("li",bj,[x(S(_l),{to:"/settings",class:xe([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:K(()=>h[8]||(h[8]=[T("svg",{class:"icon h-6 w-6 shrink-0","aria-hidden":"true"},[T("use",{"xlink:href":"#icon-shezhi"})],-1),F(" 模块设置 ")])),_:1},8,["class"])])])])],2)]),T("div",xj,[T("div",yj,[T("div",{class:xe(["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"])},[T("button",{type:"button",class:"m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:h[2]||(h[2]=f=>u.value=!0)},[h[10]||(h[10]=T("span",{class:"sr-only"},"Open sidebar",-1)),x(S(tj),{class:"h-6 w-6","aria-hidden":"true"})]),T("div",Cj,[T("div",wj,[T("h1",{class:xe([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 @@ -4170,12 +4170,12 @@ ro.config.miui_appcompat_enable=true" >> /data/adb/modules/MIUI_MagicWindow+/sys 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),Ge("",!0)]),T("div",wj,[T("button",{onClick:h[3]||(h[3]=()=>S(i).warning("此区域尚未开放,请以后再来探索吧~")),type:"button",class:"m-2.5 p-2.5 text-gray-400 hover:text-gray-500"},h[11]||(h[11]=[T("span",{class:"sr-only"},"消息中心",-1),T("svg",{class:"icon h-7 w-7","aria-hidden":"true"},[T("use",{"xlink:href":"#icon-xiaoxi"})],-1)]))])])],2)]),T("main",null,[T("div",Sj,[Es(c.$slots,"default")])])])]))}}),k9=ye({__name:"ErrorModal",props:{modelValue:{type:Boolean},errorLogging:{}},setup(e,{emit:t}){const o=e;A(!1);const n=t,r=A(o.modelValue);lt(()=>o.modelValue,a=>{r.value=a});const i=()=>{n("update:modelValue",!1)};return(a,l)=>{const s=rt("n-alert"),u=rt("n-card"),d=rt("n-modal");return Re(),Tt(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:K(()=>[x(u,{bordered:!1},{default:K(()=>[(Re(!0),Oe(ft,null,wi(o.errorLogging,c=>(Re(),Tt(s,{title:`[发生错误] ${c.type}`,class:"mb-5",type:"error"},{default:K(()=>[T("p",null,"错误描述:无法获取"+et(c.title),1),T("p",null,"错误详情:"+et(c.msg),1)]),_:2},1032,["title"]))),256))]),_:1})]),_:1},8,["show"])}}}),Ej={class:"splash-screen"},kj=ye({__name:"SplashScreen",setup(e){return ht(),(t,o)=>(Re(),Oe("div",Ej,o[0]||(o[0]=[T("div",{class:"flex h-full flex-col items-center justify-center"},[T("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]"},"完美横屏应用计划"),T("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)])))}}),_9=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},_j=_9(kj,[["__scopeId","data-v-1cac3c56"]]),Mj="modulepreload",Rj=function(e){return"/"+e},n5={},kn=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=Rj(s),s in n5)return;n5[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":Mj,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)})},zj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Aj=()=>{const e="cat /product/etc/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Pj=(e,t)=>{const o=`cmd miui_embedding_window set-appMode ${e} ${t}`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):n(a)}}),o)},Bj=(e,t)=>{const o=`cmd miui_embedding_window ${t} ${e}`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):n(a)}}),o)},$j=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Dj=()=>{const e="cat /product/etc/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Tj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Ij=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Oj=()=>{const e="cat /data/system/users/0/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Lj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Hj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Nj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/os2_third_party_app_optimize/third_party_app_optimize.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Vj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/os2_system_app_optimize/system_app_optimize.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Wj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/third_party_app_optimize.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},M9=e=>ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(`am compat reset-all ${e}`);n?o(i):t(r)}}),"resetApplicationCompats"),wa=e=>ke(new Promise(async(t,o)=>{{const n=[],r=[],i=ht();if(i.MIOSVersion&&i.MIOSVersion>=2){if(e.customThirdPartyAppOptimizeConfigProp){const{errno:p,stdout:g,stderr:v}=await Se(`echo '${e.customThirdPartyAppOptimizeConfigProp}' > /data/adb/MIUI_MagicWindow+/config/third_party_app_optimize.prop`);p?n.push({type:"customThirdPartyAppOptimizeConfigProp",name:"[第三方应用横屏优化]第三方应用横屏优化配置文件",message:v}):r.push({type:"customThirdPartyAppOptimizeConfigProp",name:"[第三方应用横屏优化]第三方应用横屏优化配置文件",message:"更新成功"})}if(e.thirdPartyAppOptimizeConfigRunnerShell){const{errno:p,stdout:g,stderr:v}=await Se(`echo '${e.thirdPartyAppOptimizeConfigRunnerShell}' > /data/adb/MIUI_MagicWindow+/config/third_party_app_optimize_runner.sh`);p?n.push({type:"thirdPartyAppOptimizeConfigRunnerShell",name:"[第三方应用横屏优化]第三方应用横屏优化运行脚本",message:v}):r.push({type:"thirdPartyAppOptimizeConfigRunnerShell",name:"[第三方应用横屏优化]第三方应用横屏优化运行脚本",message:"更新成功"})}}if(e.isPatchMode){const{errno:p,stdout:g,stderr:v}=await Se(`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:C,stderr:k}=await Se(`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:w,stdout:_,stderr:M}=await Se(`echo '${e.patchEmbeddedSettingConfigXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_setting_config.xml`);w?n.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:M}):r.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:"更新成功"})}}const{errno:a,stdout:l,stderr:s}=await Se(`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 Se(`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 Se(`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 Se(`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 Me(M9(e.setAppMode.name));p&&n.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:p}),g&&r.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:g})}const[h,f]=await Me(rc("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 Se(`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 Se(`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})}})),jj={"com.lbe.security.miui":1,"com.miui.player":1,"com.miui.fm":1,"com.miui.hybrid":1,"com.miui.securitycenter":1,"com.miui.compass":1,"com.miui.contentextension":1,"com.miui.misound":1,"com.miui.voiceassist":1,"com.miui.securityadd":1},Uj={"com.miui.touchassistant":1,"com.miui.whitenoise":1,"com.tencent.mobileqq":1,"com.tencent.mm":1,"com.alibaba.android.rimet":1,"com.coolapk.market":1,"com.sina.weibo":1,"com.baidu.tieba":1,"com.xuetangx.ykt":1,"io.github.vvb2060.magisk":1,"com.topjohnwu.magisk":1,"io.github.huskydg.magisk":1,"io.github.a13e300.ksuwebui":1,"me.weishu.kernelsu":1,"me.bmax.apatch":1,"com.dna.tools":1,"com.sevtinge.hyperceiler":1,"com.github.kr328.clash.foss":1,"com.github.kr328.clash":1,"com.github.metacubex.clash.meta":1,"com.rocket.e5b382b19324e0a":1,"dev.miuiicons.pedroz":1,"com.tencent.androidqqmail":1,"com.jingdong.app.mall":1,"com.tencent.wework":1,"com.tencent.weworkenterprise":1,"com.taobao.trip":1,"com.fenbi.android.leo":1,"com.duokan.reader":1,"com.xiaomi.shop":1,"com.xiaomi.smarthome":1,"com.youdao.dict":1,"com.netease.uu":1,"com.lemon.lv":1,"com.valvesoftware.android.steam.community":1,"com.douban.book.reader":1,"com.amazon.kindlefc":1,"com.alicloud.databox":1,"com.huawei.appmarket":1,"com.huawei.smarthome":1,"mark.via":1,"com.fenbi.android.servant":1,"com.fenbi.android.zhaojiao":1,"com.eusoft.eudic":1,"com.eusoft.ting.en":1,"com.cnki.android.cnkimobile":1,"com.zui.calculator":1,"com.jd.app.reader":1,"com.huajiao":1,"com.youku.phone":1,"com.tencent.qqlive":1,"com.xiaomi.gamecenter":1,"com.kugou.android":1,"com.ss.android.ugc.aweme":1,"com.ss.android.ugc.live":1,"com.ss.android.ugc.aweme.lite":1,"com.smile.gifmaker":1,"com.kuaishou.nebula":1,"com.bdatu.geography":1,"com.ubestkid.beilehu.android":1,"youqu.android.todesk":1,"com.tencent.docs":1,"com.tencent.pao":1,"com.estrongs.android.pop":1,"com.adobe.reader":1,"com.microsoft.skydrive":1,"cn.com.langeasy.LangEasyLexis":1,"cn.ticktick.task":1,"com.google.earth":1,"com.omarea.vtools":1,"com.plan.kot32.tomatotime":1,"com.farplace.qingzhuo":1,"com.xiachufang":1,"com.happyteam.dubbingshow":1,"czh.mindnode":1,"com.chrissen.card":1,"top.onepix.timeblock":1,"www.imxiaoyu.com.musiceditor":1,"com.mmbox.xbrowser":1,"com.flyersoft.moonreader":1,"com.flyersoft.moonreaderp":1,"com.yikaobang.yixue":1,"com.kwai.m2u":1,"com.qiyi.video.pad":1,"com.baidu.baidutranslate":1,"org.zwanoo.android.speedtest":1,"com.xiwang.zaixian":1,"com.yozo.office":1,"com.taobao.taobao":1,"cn.canva.editor":1,"com.singularity.tiangong":1,"com.mubu.app":1,"chuxin.shimo.shimowendang":1,"com.roblox.client":1,"com.netease.cloudmusic":1,"com.netease.mc.mi":1,"com.netease.x19":1,"com.netease.mc.huawei":1,"com.netease.mc.vivo":1,"com.netease.mc.oppo":1,"com.netease.mc.honor":1,"com.netease.mc.bilibili":1,"com.netease.mc.nearme.gamecenter":1,"com.netease.mc":1,"com.netease.mctest":1,"com.hicloud.browser":1,"com.hihonor.health":1,"com.ss.android.ugc.livelite":1,"com.oray.sunlogin":1,"com.microsoft.todos":1,"com.jdjdc.jdfastjdc":1,"com.google.android.apps.translate":1,"com.adsk.sketchbook":1,"com.pick.sketchbook":1,"com.ihuman.recite":1,"com.ctfile":1,"com.quark.scanking":1,"com.hunantv.imgo.activity":1,"com.sohu.sohuvideo":1,"com.wuba.town.client":1,"com.yhqx.player":1,"com.lixiangdong.mediaplayer":1,"cn.ylkj.zmjh":1,"com.yixinli.muse":1,"com.antutu.ABenchMark":1,"cn.honor.qinxuan":1,"com.fenbi.android.zenglish.hd":1,"com.huawei.videoeditor":1,"com.huawei.genexcloud.speedtest":1,"com.huawei.ch18":1,"com.hihonor.dz.reader":1,"com.hihonor.vmall":1,"com.hihonor.magichome":1,"com.hihonor.heartstudy":1,"cn.ieway.evcapture":1,"cn.ieway.evplayer2":1,"com.aliyun.wuying.enterprise":1,"com.jingdong.app.reader.campus":1,"com.UCMobile":1,"com.quark.browser":1,"com.smzdm.client.android":1,"com.baidu.netdisk":1,"com.mfcloudcalculate.networkdisk":1,"com.chinamobile.mcloud":1,"info.muge.appshare":1,"com.x7890.shortcutcreator":1,"org.kde.kdeconnect_tp":1,"com.tencent.weread":1,"com.larus.nova":1,"com.moonshot.kimichat":1,"com.baidu.newapp":1,"com.tencent.hunyuan.app.chat":1,"jp.pokemon.pokemonsleep":1,"com.heytap.headset":1,"com.twitter.android":1,"cn.jagat.main":1,"com.furrybar.chat.app":1,"me.ele":1,"com.max.xiaoheihe":1,"com.ruanmei.ithome":1,"com.youdao.translator":1,"com.netflix.NGP.MonumentValley3":1,"com.ophone.reader.ui":1,"studio.fountainhead.habicat":1,"com.hihonor.appmarket":1,"cn.wenyu.bodian":1,"com.zte.smarthome":1,"com.phoenix.read":1,"com.bilibili.app.in":1,"com.bilibili.app.blue":1,"com.joey.colors.simple.c":1,"com.hanfuhui":1,"com.hurantech.cherrysleep":1,"tech.caicheng.youshi":1,"org.panda.words":1,"com.tencent.phoenix":1,"com.tencent.wetype":1,"com.tencent.wehear":1,"com.tencent.weishi":1,"com.ctg.itrdc.clouddesk":1,"com.oppo.store":1,"com.pupumall.customer":1,"me.tangke.gamecores":1,"com.xunmeng.pinduoduo":1,"com.vblast.flipaclip":1,"com.gstarmc.android":1,"com.quickview3d":1,"com.aihuishou.opt":1,"com.duolingo":1,"cn.etouch.ecalendar.life":1,"cn.etouch.ecalendar":1,"com.gamestar.pianoperfect":1,"me.yoopu.app.songbook":1,"com.autonavi.minimap":1,"com.tencent.map":1,"com.baidu.BaiduMap":1,"com.yuzebin.pokemon":1,"com.CDA.StructureMaster":1,"com.cxincx.xxjz":1},y0={...jj,...Uj},Us=Gi("embedded",()=>{const e=A(!1),t=A(!1),o=A({}),n=A(!1),r=A({}),i=A({}),a=A({}),l=A({}),s=A({}),u=A({}),d=A({}),c=A({}),h=A({}),f=A({}),p=A({}),g=A({}),v=D(()=>{const O={...p.value};for(const oe in g.value){const y=g.value[oe];y===-1?delete O[oe]:O[oe]=y}return O}),b=D(()=>{const O=ht(),oe=new Set([...Object.keys(i.value),...Object.keys(s.value),...O.installedAndroidApplicationPackageNameList,...Object.keys(y0)]),y=Object.entries(r.value).filter(([j])=>oe.has(j));return Object.fromEntries(y)}),C=D(()=>{const O=ht(),oe=new Set([...Object.keys(i.value),...Object.keys(s.value),...O.installedAndroidApplicationPackageNameList,...Object.keys(y0)]),y=Object.entries(l.value).filter(([j])=>oe.has(j));return Object.fromEntries(y)}),k=D(()=>{const O=ht(),oe=new Set([...Object.keys(i.value),...Object.keys(s.value),...O.installedAndroidApplicationPackageNameList,...Object.keys(y0)]),y=Object.entries(c.value).filter(([j])=>oe.has(j));return Object.fromEntries(y)}),w=A([]),_=D(()=>{const O=ht(),oe=new Set(O.installedAndroidApplicationPackageNameList);return w.value.reduce((j,X)=>(oe.has(X.name)&&j.push(X.name),j),[])}),M=D(()=>{const O=ht(),oe=new Set(O.installedAndroidApplicationPackageNameList);return w.value.reduce((j,X)=>{var le;return oe.has(X.name)&&(le=X.fixedOrientationRule)!=null&&le.compatChange&&j.push(X.name),j},[])}),E=A(""),P=A(""),z=u7(O=>{E.value=O.trim().toLowerCase()},500);lt(P,O=>{z(O)});const $=D(()=>{const O=w.value,oe=ht(),y=new Set(oe.installedAndroidApplicationPackageNameList),j=t.value,X=E.value,le=o.value,ae=v.value,Fe=oe.installedAppNameList;return O.reduce((fe,ue)=>{const we=ue.name.trim().toLowerCase();Fe[ue.name]&&!ue.applicationName&&(ue.applicationName=Fe[ue.name]),le[ue.name]&&!ue.applicationName&&(ue.applicationName=le[ue.name]),ae[ue.name]?ue.thirdPartyAppOptimize=!0:ue.thirdPartyAppOptimize=!1;const ie=ue.applicationName?ue.applicationName.toLowerCase():"";return!we.includes(X)&&!ie.includes(X)||j&&!y.has(ue.name)||fe.push(ue),fe},[]).sort((fe,ue)=>fe.ruleMode==="custom"&&ue.ruleMode!=="custom"?-1:fe.ruleMode!=="custom"&&ue.ruleMode==="custom"?1:fe.name.localeCompare(ue.name))}),G=D(()=>W.length>0),H=D(()=>w.value.length),q=A(!0),W=Nt([]),L=D(()=>new Set([...e.value?Object.keys(b.value):Object.keys(r.value),...e.value?Object.keys(C.value):Object.keys(l.value),...Object.keys(a.value),...Object.keys(u.value)]));function I(){const O=ht();w.value=U4(e.value?b.value:r.value,e.value?C.value:l.value,O.MIOSVersion&&O.MIOSVersion>=2?e.value?k.value:c.value:d.value,a.value,u.value,h.value)}async function R(){const O=ht();q.value=!0;const y=(await kn(()=>import("./applicationName-exrf0CFH.js"),[])).default;o.value=y;const[j,X]=await Me(cN());j?W.push({type:"getIsPatchModeErr",title:"补丁模式",msg:j}):X==="true"?e.value=!0:e.value=!1;const le=[zj(),Aj(),Tj(),$j(),Dj(),Ij(),Lj(),Oj(),Hj(),Nj(),Wj(),Vj()],[[ae,Fe],[fe,ue],[we,ie],[be,ze],[pe,U],[N,ge],[Ce,se],[te,ce],[Q,re],[he,ne],[Y,de],[Ee,Ie]]=await Promise.all(le.map(Ye=>Me(Ye)));ae&&(r.value={},W.push({type:"sourceEmbeddedRulesList",title:"[模块]平行窗口配置文件",msg:ae})),Fe&&(r.value=hn(Fe,"package_config","package")),fe&&(i.value={},W.push({type:"SystemEmbeddedRulesList",title:"[系统]平行窗口配置文件",msg:fe})),ue&&(i.value=hn(ue,"package_config","package")),we&&(a.value={}),ie&&(a.value=hn(ie,"package_config","package",!0),console.log(a.value,"customConfigEmbeddedRulesList.value")),be&&(l.value={},W.push({type:"sourceFixedOrientationList",title:"[模块]信箱模式配置文件",msg:be})),ze&&(l.value=hn(ze,"package_config","package")),pe&&(s.value={}),U&&(s.value=hn(U,"package_config","package")),N&&(u.value={}),ge&&(u.value=hn(ge,"package_config","package",!0)),Ce&&(c.value={}),se&&(c.value=hn(se,"setting_rule","setting")),te&&(d.value={}),ce&&(d.value=hn(ce,"setting_rule","setting")),Q&&(h.value={}),re&&(h.value=hn(re,"setting_rule","setting",!0)),he&&(p.value={}),ne&&(p.value=g0(ne)),Y&&(g.value={}),de&&(g.value=g0(de)),Ee&&(f.value={}),Ie&&(f.value=g0(Ie)),di().info("deviceStore.MIOSVersion",O.MIOSVersion),w.value=U4(e.value?b.value:r.value,e.value?C.value:l.value,O.MIOSVersion&&O.MIOSVersion>=2?e.value?k.value:c.value:d.value,a.value,u.value,h.value),W.length||(q.value=!1,O.needReloadData&&e.value&&(n.value=!0))}return{sourceEmbeddedRulesList:r,sourceFixedOrientationList:l,patchEmbeddedRulesList:b,patchFixedOrientationList:C,patchEmbeddedSettingConfig:k,customConfigEmbeddedRulesList:a,customConfigFixedOrientationList:u,customConfigEmbeddedSettingConfig:h,sourceThirdPartyAppOptimizeConfig:p,customThirdPartyAppOptimizeConfig:g,mergeThirdPartyAppOptimizeConfig:v,systemAppOptimizeConfig:f,filterSetAppModeAppList:_,filterResetAppCompatAppList:M,systemEmbeddedSettingConfig:d,systemEmbeddedRulesList:i,systemFixedOrientationList:s,mergeRuleList:w,filterInstalledApps:t,filterMergeRuleList:$,searchKeyWord:P,errorLogging:W,isNeedShowErrorModal:G,loading:q,ruleCount:H,allPackageName:L,applicationName:o,isPatchMode:e,initDefault:R,updateMergeRuleList:I,isNeedShowReloadPathModeDialog:n}},{persist:{pick:["filterInstalledApps"]}}),R9=Gi("font",()=>{const e=A("MiSans"),t=D(()=>`${e.value}, system-ui, sans-serif`);return{currentFont:e,setFont:n=>{e.value=n},currentFontFamily:t}},{persist:{pick:["currentFont"]}}),Kj=()=>{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 Se(o);if(i&&r(l),a)try{const s=a.split(` -`);n(s)}catch(s){r(s)}}})},Gj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/dot_black_list.json";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(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)},qj=()=>{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 Me(Kj());if(r){const i=async s=>{const u=`echo "$(${e} ${t} "SELECT productData FROM cloud_all_data WHERE dataId='${s}';")"`;return ke(new Promise(async(d,c)=>{const{errno:h,stdout:f,stderr:p}=await Se(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 Me(Promise.all(r.map(s=>i(s))));a&&n(a),l&&o(l)}}})},Zj=()=>{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 Se(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 ke(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 ke(new Promise(async(f,p)=>{const{errno:g,stdout:v,stderr:b}=await Se(h);g?(n.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:b}),p(b)):(r.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:"更新成功"}),f(v))}),h)},[u,d]=await Me(s(l));if(u)a(u);else{const c=e.sourceDotBlackList.map(g=>{const v=Sa(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 ke(new Promise(async(C,k)=>{const{errno:w,stdout:_,stderr:M}=await Se(b);w?k(M):_==="1"?C(_):k(_)}),b)},[f,p]=await Me(Promise.all(c.map(g=>h(g.dataId,g.productData))));f&&a(f),p&&i({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}}}),"updateDotBlackList")},Xj=Gi("dotBlackList",()=>{const e=A(!1),t=A([]),o=D(()=>{if(t.value.length===0)return[];const v=t.value[0].dataList,b=new Set(v);return t.value.slice(1).forEach(C=>{const k=new Set(C.dataList);for(const w of b)k.has(w)||b.delete(w)}),v.filter(C=>b.has(C))}),n=A([]),r=D(()=>{const b=ht().installedAppNameList,C=o.value.map(M=>{const E=n.value.includes(M),P=b[M]||a.value[M];return{name:M,applicationName:P,ruleMode:E?"custom":"system",status:!0}}),k=n.value.filter(M=>!o.value.includes(M)).map(M=>{const E=b[M]||a.value[M];return{name:M,applicationName:E,ruleMode:"custom",status:!1}}),w=Math.floor(C.length/2);return[...C.slice(0,w),...k,...C.slice(w)]}),i=D(()=>{const v=d.value.trim().toLowerCase(),b=r.value,C=ht();return b.reduce((k,w)=>{const _=w.name.trim().toLowerCase(),M=w.applicationName?w.applicationName.toLowerCase():"";if(!_.includes(v)&&!M.includes(v))return k;const E=new Set(C.installedAndroidApplicationPackageNameList);return e.value&&!E.has(w.name)||k.push(w),k},[]).sort((k,w)=>k.ruleMode==="custom"&&w.ruleMode!=="custom"?-1:k.ruleMode!=="custom"&&w.ruleMode==="custom"?1:k.name.localeCompare(w.name))}),a=A({}),l=A([]),s=D(()=>f.length>0),u=D(()=>l.value.length),d=A(""),c=A(!0),h=A(!1),f=Nt([]),p=D(()=>new Set([...n.value,...o.value]));async function g(){c.value=!0;const b=(await kn(()=>import("./applicationName-exrf0CFH.js"),[])).default;a.value=b;const[C,k]=await Me(Zj());if(C&&(h.value=!1),k){h.value=!0;const[w,_]=await Me(qj());w&&(t.value=[]),_&&(t.value=_);const[M,E]=await Me(Gj());M&&(n.value=[]),E&&(n.value=E),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"]}}),Yj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/autoui_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Qj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/autoui_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Jj=()=>{const e="cat /data/system/users/0/autoui_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},wl=e=>ke(new Promise(async(t,o)=>{{const n=[],r=[],{errno:i,stdout:a,stderr:l}=await Se(`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 Se(`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 Me(rc("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 Se(`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})}})),C3=Gi("autoui",()=>{const e=A(!1),t=A({}),o=A({}),n=A({}),r=A({}),i=A([]),a=D(()=>{const g=u.value.trim().toLowerCase(),v=i.value,b=ht(),C=b.installedAppNameList;return v.reduce((k,w)=>{const _=w.name.trim().toLowerCase();C[w.name]&&!w.applicationName&&(w.applicationName=C[w.name]),n.value[w.name]&&!w.applicationName&&(w.applicationName=n.value[w.name]);const M=w.applicationName?w.applicationName.toLowerCase():"";if(!_.includes(g)&&!M.includes(g))return k;const E=new Set(b.installedAndroidApplicationPackageNameList);return e.value&&!E.has(w.name)||k.push(w),k},[]).sort((k,w)=>k.ruleMode==="custom"&&w.ruleMode!=="custom"?-1:k.ruleMode!=="custom"&&w.ruleMode==="custom"?1:k.name.localeCompare(w.name))}),l=D(()=>c.length>0),s=D(()=>i.value.length),u=A(""),d=A(!0),c=Nt([]),h=D(()=>new Set([...Object.keys(t.value),...Object.keys(o.value)]));function f(){i.value=K4(t.value,o.value,r.value)}async function p(){d.value=!0;const v=(await kn(()=>import("./applicationName-exrf0CFH.js"),[])).default;n.value=v;const[b,C]=await Me(Yj());b&&c.push({type:"sourceAutoUIList",title:"[模块]应用布局优化配置文件",msg:b}),C&&(t.value=hn(C,"packageRules","package"));const[k,w]=await Me(Qj());k||(o.value=hn(w,"packageRules","package",!0));const[_,M]=await Me(Jj());_&&(r.value={}),M&&(r.value=hn(M,"setting_config","setting")),i.value=K4(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"]}}),eU=ye({__name:"App",setup(e){const t=ht(),o=di(),n=Zv(),r=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:i,modal:a}=It(["message","modal"],{configProviderProps:r}),l=Us(),s=R9(),u=C3(),d=Xj(),c=A(!1),h=A(!0);kt(p=>{!t.loading&&!l.loading&&(h.value=!1),(t.errorLogging.length||l.errorLogging.length)&&(h.value=!1),p(()=>{})}),lt(()=>s.currentFont,(p,g)=>{p&&document.documentElement.style.setProperty("--global-font-family",s.currentFontFamily)},{immediate:!0}),lt(()=>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,C){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:()=>x("p",null,[F("Web UI 未对Android 11做适配,无法使用~")]),negativeText:"确定"}):(t.androidTargetSdk&&t.androidTargetSdk<=33&&!t.skipConfirm.lowWebViewVersion&&a.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("Web UI 强依赖部分较新内核的JavaScript API实现,为了确保模块正常工作,Android 13/12的小米设备可能需要升级系统内置WebView版本,请通过Google Play商店升级!")]),x("p",null,[F("下载地址:https://play.google.com/store/apps/details?id=com.google.android.webview")]),x("p",null,[F("如果下载的是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}}),["KernelSU","APatch"].includes(t.currentRootManager)&&!t.skipConfirm.needInstalledKsuWebUiApk&&a.create({title:"Web UI 升级提醒",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("KernelSU/APatch 自带的 Web UI 存在部分问题,可能导致模块功能显示不全,建议可以安装波奇大佬提取制作的 「KsuWebUI」,取代自带的 Web UI,这不是必选项,您可以选择忽略此条建议,但可能导致模块部分功能无法正常工作。")]),x("p",null,[F("下载地址:https://caiyun.139.com/m/i?135Ce7C7omgXj")])]),positiveText:"复制下载链接到剪切板",negativeText:"已安装,不再提醒",onPositiveClick:()=>{navigator.clipboard.writeText("https://caiyun.139.com/m/i?135Ce7C7omgXj")},onNegativeClick:()=>{t.skipConfirm.needInstalledKsuWebUiApk=!0}}),l.initDefault(),u.initDefault(),n.initDefault(),t.MIOSVersion&&t.MIOSVersion>=1&&d.initDefault())}),(p,g)=>{const v=rt("n-config-provider");return Re(),Oe("div",{class:xe(["app-container h-full",`${S(t).isDarkMode?"bg-zinc-900 theme-dark-mode":"bg-white"}`])},[x(v,{theme:S(t).isDarkMode?S(Bt):S(Ft)},{default:K(()=>[x(S(Fj),null,{default:K(()=>[x(S(Nv))]),_:1}),x(k9,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=b=>c.value=b),errorLogging:S(t).errorLogging},null,8,["modelValue","errorLogging"]),h.value?(Re(),Tt(_j,{key:0})):Ge("",!0)]),_:1},8,["theme"])],2)}}}),tU=_9(eU,[["__scopeId","data-v-de76c51d"]]),z9="/images/icons/all_app.png",hd="/images/icons/ai_icon.png";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const oU=4,r5=0,i5=1,nU=2;function Ja(e){let t=e.length;for(;--t>=0;)e[t]=0}const rU=0,A9=1,iU=2,aU=3,lU=258,w3=29,Ks=256,ms=Ks+1+w3,Aa=30,S3=19,P9=2*ms+1,_i=15,C0=16,sU=7,F3=256,B9=16,$9=17,D9=18,$1=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]),Wu=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]),uU=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),T9=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),dU=512,fr=new Array((ms+2)*2);Ja(fr);const Gl=new Array(Aa*2);Ja(Gl);const gs=new Array(dU);Ja(gs);const vs=new Array(lU-aU+1);Ja(vs);const E3=new Array(w3);Ja(E3);const pd=new Array(Aa);Ja(pd);function w0(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 I9,O9,L9;function S0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const H9=e=>e<256?gs[e]:gs[256+(e>>>7)],bs=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Uo=(e,t,o)=>{e.bi_valid>C0-o?(e.bi_buf|=t<>C0-e.bi_valid,e.bi_valid+=o-C0):(e.bi_buf|=t<{Uo(e,o[t*2],o[t*2+1])},N9=(e,t)=>{let o=0;do o|=e&1,e>>>=1,o<<=1;while(--t>0);return o>>>1},cU=e=>{e.bi_valid===16?(bs(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)},fU=(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<=_i;h++)e.bl_count[h]=0;for(o[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;us&&(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--)}},V9=(e,t,o)=>{const n=new Array(_i+1);let r=0,i,a;for(i=1;i<=_i;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]=N9(n[l]++,l))}},hU=()=>{let e,t,o,n,r;const i=new Array(_i+1);for(o=0,n=0;n>=7;n{let t;for(t=0;t{e.bi_valid>8?bs(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},a5=(e,t,o,n)=>{const r=t*2,i=o*2;return e[r]{const n=e.heap[o];let r=o<<1;for(;r<=e.heap_len&&(r{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?Wn(e,r,t):(a=vs[r],Wn(e,a+Ks+1,t),l=$1[a],l!==0&&(r-=E3[a],Uo(e,r,l)),n--,a=H9(n),Wn(e,a,o),l=Wu[a],l!==0&&(n-=pd[a],Uo(e,n,l)));while(i{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=P9,a=0;a>1;a>=1;a--)F0(e,o,a);u=i;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],F0(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++,F0(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],fU(e,t),V9(o,s,e.bl_count)},s5=(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{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{let t;for(s5(e,e.dyn_ltree,e.l_desc.max_code),s5(e,e.dyn_dtree,e.d_desc.max_code),D1(e,e.bl_desc),t=S3-1;t>=3&&e.bl_tree[T9[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},mU=(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{let t=4093624447,o;for(o=0;o<=31;o++,t>>>=1)if(t&1&&e.dyn_ltree[o*2]!==0)return r5;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return i5;for(o=32;o{d5||(hU(),d5=!0),e.l_desc=new S0(e.dyn_ltree,I9),e.d_desc=new S0(e.dyn_dtree,O9),e.bl_desc=new S0(e.bl_tree,L9),e.bi_buf=0,e.bi_valid=0,W9(e)},U9=(e,t,o,n)=>{Uo(e,(rU<<1)+(n?1:0),3),j9(e),bs(e,o),bs(e,~o),o&&e.pending_buf.set(e.window.subarray(t,t+o),e.pending),e.pending+=o},bU=e=>{Uo(e,A9<<1,3),Wn(e,F3,fr),cU(e)},xU=(e,t,o,n)=>{let r,i,a=0;e.level>0?(e.strm.data_type===nU&&(e.strm.data_type=gU(e)),D1(e,e.l_desc),D1(e,e.d_desc),a=pU(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?U9(e,t,o,n):e.strategy===oU||i===r?(Uo(e,(A9<<1)+(n?1:0),3),l5(e,fr,Gl)):(Uo(e,(iU<<1)+(n?1:0),3),mU(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),l5(e,e.dyn_ltree,e.dyn_dtree)),W9(e),n&&j9(e)},yU=(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[(vs[o]+Ks+1)*2]++,e.dyn_dtree[H9(t)*2]++),e.sym_next===e.sym_end);var CU=vU,wU=U9,SU=xU,FU=yU,EU=bU,kU={_tr_init:CU,_tr_stored_block:wU,_tr_flush_block:SU,_tr_tally:FU,_tr_align:EU};const _U=(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 xs=_U;const MU=()=>{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},RU=new Uint32Array(MU()),zU=(e,t,o,n)=>{const r=RU,i=n+o;e^=-1;for(let a=n;a>>8^r[(e^t[a])&255];return e^-1};var Co=zU,Wi={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"},na={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:AU,_tr_stored_block:T1,_tr_flush_block:PU,_tr_tally:Xr,_tr_align:BU}=kU,{Z_NO_FLUSH:Yr,Z_PARTIAL_FLUSH:$U,Z_FULL_FLUSH:DU,Z_FINISH:mn,Z_BLOCK:c5,Z_OK:Eo,Z_STREAM_END:f5,Z_STREAM_ERROR:Gn,Z_DATA_ERROR:TU,Z_BUF_ERROR:E0,Z_DEFAULT_COMPRESSION:IU,Z_FILTERED:OU,Z_HUFFMAN_ONLY:ku,Z_RLE:LU,Z_FIXED:HU,Z_DEFAULT_STRATEGY:NU,Z_UNKNOWN:VU,Z_DEFLATED:ac}=na,WU=9,jU=15,UU=8,KU=29,GU=256,I1=GU+1+KU,qU=30,ZU=19,XU=2*I1+1,YU=15,zt=3,Kr=258,qn=Kr+zt+1,QU=32,Ha=42,k3=57,O1=69,L1=73,H1=91,N1=103,Mi=113,Rl=666,Io=1,el=2,ji=3,tl=4,JU=3,Ri=(e,t)=>(e.msg=Wi[t],t),h5=e=>e*2-(e>4?9:0),jr=e=>{let t=e.length;for(;--t>=0;)e[t]=0},eK=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 tK=(e,t,o)=>(t<{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)=>{PU(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Qo(e.strm)},Lt=(e,t)=>{e.pending_buf[e.pending++]=t},Sl=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},V1=(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=xs(e.adler,t,r,o):e.state.wrap===2&&(e.adler=Co(e.adler,t,r,o)),e.next_in+=r,e.total_in+=r,r)},K9=(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+Kr;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]&&na){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},Na=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),eK(e),n+=t),e.strm.avail_in===0)break;if(o=V1(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=o,e.lookahead+e.insert>=zt)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=Qr(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=Qr(e,e.ins_h,e.window[r+zt-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{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_outr+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),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&&(V1(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_wateri&&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&&(V1(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>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!==Yr&&e.strm.avail_in===0&&r<=i)&&(n=r>i?i:r,a=t===mn&&e.strm.avail_in===0&&n===r?1:0,T1(e,e.block_start,n,a),e.block_start+=n,Qo(e.strm)),a?ji:Io)},k0=(e,t)=>{let o,n;for(;;){if(e.lookahead=zt&&(e.ins_h=Qr(e,e.ins_h,e.window[e.strstart+zt-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=K9(e,o)),e.match_length>=zt)if(n=Xr(e,e.strstart-e.match_start,e.match_length-zt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=zt){e.match_length--;do e.strstart++,e.ins_h=Qr(e,e.ins_h,e.window[e.strstart+zt-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=Qr(e,e.ins_h,e.window[e.strstart+1]);else n=Xr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=e.strstart{let o,n,r;for(;;){if(e.lookahead=zt&&(e.ins_h=Qr(e,e.ins_h,e.window[e.strstart+zt-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=zt-1,o!==0&&e.prev_length4096)&&(e.match_length=zt-1)),e.prev_length>=zt&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-zt,n=Xr(e,e.strstart-1-e.prev_match,e.prev_length-zt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=Qr(e,e.ins_h,e.window[e.strstart+zt-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=zt-1,e.strstart++,n&&(nn(e,!1),e.strm.avail_out===0))return Io}else if(e.match_available){if(n=Xr(e,0,e.window[e.strstart-1]),n&&nn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Io}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Xr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let o,n,r,i;const a=e.window;for(;;){if(e.lookahead<=Kr){if(Na(e),e.lookahead<=Kr&&t===Yr)return Io;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=zt&&e.strstart>0&&(r=e.strstart-1,n=a[r],n===a[++r]&&n===a[++r]&&n===a[++r])){i=e.strstart+Kr;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]&&re.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=zt?(o=Xr(e,1,e.match_length-zt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(o=Xr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),o&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?ji:tl):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?Io:el},nK=(e,t)=>{let o;for(;;){if(e.lookahead===0&&(Na(e),e.lookahead===0)){if(t===Yr)return Io;break}if(e.match_length=0,o=Xr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,o&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?ji:tl):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?Io:el};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 zl=[new Hn(0,0,0,0,G9),new Hn(4,4,8,4,k0),new Hn(4,5,16,8,k0),new Hn(4,6,32,32,k0),new Hn(4,4,16,16,ma),new Hn(8,16,32,32,ma),new Hn(8,16,128,128,ma),new Hn(8,32,128,256,ma),new Hn(32,128,258,1024,ma),new Hn(32,258,258,4096,ma)],rK=e=>{e.window_size=2*e.w_size,jr(e.head),e.max_lazy_match=zl[e.level].max_lazy,e.good_match=zl[e.level].good_length,e.nice_match=zl[e.level].nice_length,e.max_chain_length=zl[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=zt-1,e.match_available=0,e.ins_h=0};function iK(){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=ac,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(XU*2),this.dyn_dtree=new Uint16Array((2*qU+1)*2),this.bl_tree=new Uint16Array((2*ZU+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(YU+1),this.heap=new Uint16Array(2*I1+1),jr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*I1+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 Gs=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ha&&t.status!==k3&&t.status!==O1&&t.status!==L1&&t.status!==H1&&t.status!==N1&&t.status!==Mi&&t.status!==Rl?1:0},q9=e=>{if(Gs(e))return Ri(e,Gn);e.total_in=e.total_out=0,e.data_type=VU;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?k3:t.wrap?Ha:Mi,e.adler=t.wrap===2?0:1,t.last_flush=-2,AU(t),Eo},Z9=e=>{const t=q9(e);return t===Eo&&rK(e.state),t},aK=(e,t)=>Gs(e)||e.state.wrap!==2?Gn:(e.state.gzhead=t,Eo),X9=(e,t,o,n,r,i)=>{if(!e)return Gn;let a=1;if(t===IU&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),r<1||r>WU||o!==ac||n<8||n>15||t<0||t>9||i<0||i>HU||n===8&&a!==1)return Ri(e,Gn);n===8&&(n=9);const l=new iK;return e.state=l,l.strm=e,l.status=Ha,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<X9(e,t,ac,jU,UU,NU),sK=(e,t)=>{if(Gs(e)||t>c5||t<0)return e?Ri(e,Gn):Gn;const o=e.state;if(!e.output||e.avail_in!==0&&!e.input||o.status===Rl&&t!==mn)return Ri(e,e.avail_out===0?E0: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&&h5(t)<=h5(n)&&t!==mn)return Ri(e,E0);if(o.status===Rl&&e.avail_in!==0)return Ri(e,E0);if(o.status===Ha&&o.wrap===0&&(o.status=Mi),o.status===Ha){let r=ac+(o.w_bits-8<<4)<<8,i=-1;if(o.strategy>=ku||o.level<2?i=0:o.level<6?i=1:o.level===6?i=2:i=3,r|=i<<6,o.strstart!==0&&(r|=QU),r+=31-r%31,Sl(o,r),o.strstart!==0&&(Sl(o,e.adler>>>16),Sl(o,e.adler&65535)),e.adler=1,o.status=Mi,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(o.status===k3){if(e.adler=0,Lt(o,31),Lt(o,139),Lt(o,8),o.gzhead)Lt(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)),Lt(o,o.gzhead.time&255),Lt(o,o.gzhead.time>>8&255),Lt(o,o.gzhead.time>>16&255),Lt(o,o.gzhead.time>>24&255),Lt(o,o.level===9?2:o.strategy>=ku||o.level<2?4:0),Lt(o,o.gzhead.os&255),o.gzhead.extra&&o.gzhead.extra.length&&(Lt(o,o.gzhead.extra.length&255),Lt(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=Co(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=O1;else if(Lt(o,0),Lt(o,0),Lt(o,0),Lt(o,0),Lt(o,0),Lt(o,o.level===9?2:o.strategy>=ku||o.level<2?4:0),Lt(o,JU),o.status=Mi,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(o.status===O1){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=Co(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=Co(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=L1}if(o.status===L1){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=Co(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0}o.gzindexr&&(e.adler=Co(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=H1}if(o.status===H1){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=Co(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0}o.gzindexr&&(e.adler=Co(e.adler,o.pending_buf,o.pending-r,r))}o.status=N1}if(o.status===N1){if(o.gzhead.hcrc){if(o.pending+2>o.pending_buf_size&&(Qo(e),o.pending!==0))return o.last_flush=-1,Eo;Lt(o,e.adler&255),Lt(o,e.adler>>8&255),e.adler=0}if(o.status=Mi,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(e.avail_in!==0||o.lookahead!==0||t!==Yr&&o.status!==Rl){let r=o.level===0?G9(o,t):o.strategy===ku?nK(o,t):o.strategy===LU?oK(o,t):zl[o.level].func(o,t);if((r===ji||r===tl)&&(o.status=Rl),r===Io||r===ji)return e.avail_out===0&&(o.last_flush=-1),Eo;if(r===el&&(t===$U?BU(o):t!==c5&&(T1(o,0,0,!1),t===DU&&(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?f5:(o.wrap===2?(Lt(o,e.adler&255),Lt(o,e.adler>>8&255),Lt(o,e.adler>>16&255),Lt(o,e.adler>>24&255),Lt(o,e.total_in&255),Lt(o,e.total_in>>8&255),Lt(o,e.total_in>>16&255),Lt(o,e.total_in>>24&255)):(Sl(o,e.adler>>>16),Sl(o,e.adler&65535)),Qo(e),o.wrap>0&&(o.wrap=-o.wrap),o.pending!==0?Eo:f5)},uK=e=>{if(Gs(e))return Gn;const t=e.state.status;return e.state=null,t===Mi?Ri(e,TU):Eo},dK=(e,t)=>{let o=t.length;if(Gs(e))return Gn;const n=e.state,r=n.wrap;if(r===2||r===1&&n.status!==Ha||n.lookahead)return Gn;if(r===1&&(e.adler=xs(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,Na(n);n.lookahead>=zt;){let s=n.strstart,u=n.lookahead-(zt-1);do n.ins_h=Qr(n,n.ins_h,n.window[s+zt-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=zt-1,Na(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=zt-1,n.match_available=0,e.next_in=a,e.input=l,e.avail_in=i,n.wrap=r,Eo};var cK=lK,fK=X9,hK=Z9,pK=q9,mK=aK,gK=sK,vK=uK,bK=dK,xK="pako deflate (from Nodeca project)",ql={deflateInit:cK,deflateInit2:fK,deflateReset:hK,deflateResetKeep:pK,deflateSetHeader:mK,deflate:gK,deflateEnd:vK,deflateSetDictionary:bK,deflateInfo:xK};const yK=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var CK=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)yK(o,n)&&(e[n]=o[n])}}return e},wK=e=>{let t=0;for(let n=0,r=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ys[254]=ys[254]=1;var SK=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>>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 FK=(e,t)=>{if(t<65534&&e.subarray&&Y9)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let o="";for(let n=0;n{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;n4){i[r++]=65533,n+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&n1){i[r++]=65533;continue}a<65536?i[r++]=a:(a-=65536,i[r++]=55296|a>>10&1023,i[r++]=56320|a&1023)}return FK(i,r)},kK=(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+ys[e[o]]>t?o:t},Cs={string2buf:SK,buf2string:EK,utf8border:kK};function _K(){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 Q9=_K;const J9=Object.prototype.toString,{Z_NO_FLUSH:MK,Z_SYNC_FLUSH:RK,Z_FULL_FLUSH:zK,Z_FINISH:AK,Z_OK:md,Z_STREAM_END:PK,Z_DEFAULT_COMPRESSION:BK,Z_DEFAULT_STRATEGY:$K,Z_DEFLATED:DK}=na;function qs(e){this.options=lc.assign({level:BK,method:DK,chunkSize:16384,windowBits:15,memLevel:8,strategy:$K},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 Q9,this.strm.avail_out=0;let o=ql.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(o!==md)throw new Error(Wi[o]);if(t.header&&ql.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=Cs.string2buf(t.dictionary):J9.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,o=ql.deflateSetDictionary(this.strm,n),o!==md)throw new Error(Wi[o]);this._dict_set=!0}}qs.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?AK:MK,typeof e=="string"?o.input=Cs.string2buf(e):J9.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===RK||i===zK)&&o.avail_out<=6){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(r=ql.deflate(o,i),r===PK)return o.next_out>0&&this.onData(o.output.subarray(0,o.next_out)),r=ql.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===md;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};qs.prototype.onData=function(e){this.chunks.push(e)};qs.prototype.onEnd=function(e){e===md&&(this.result=lc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _3(e,t){const o=new qs(t);if(o.push(e,!0),o.err)throw o.msg||Wi[o.err];return o.result}function TK(e,t){return t=t||{},t.raw=!0,_3(e,t)}function IK(e,t){return t=t||{},t.gzip=!0,_3(e,t)}var OK=qs,LK=_3,HK=TK,NK=IK,VK=na,WK={Deflate:OK,deflate:LK,deflateRaw:HK,gzip:NK,constants:VK};const _u=16209,jK=16191;var UK=function(t,o){let n,r,i,a,l,s,u,d,c,h,f,p,g,v,b,C,k,w,_,M,E,P,z,$;const G=t.state;n=t.next_in,z=t.input,r=n+(t.avail_in-5),i=t.next_out,$=t.output,a=i-(o-t.avail_out),l=i+(t.avail_out-257),s=G.dmax,u=G.wsize,d=G.whave,c=G.wnext,h=G.window,f=G.hold,p=G.bits,g=G.lencode,v=G.distcode,b=(1<>>24,f>>>=w,p-=w,w=k>>>16&255,w===0)$[i++]=k&65535;else if(w&16){_=k&65535,w&=15,w&&(p>>=w,p-=w),p<15&&(f+=z[n++]<>>24,f>>>=w,p-=w,w=k>>>16&255,w&16){if(M=k&65535,w&=15,ps){t.msg="invalid distance too far back",G.mode=_u;break e}if(f>>>=w,p-=w,w=i-a,M>w){if(w=M-w,w>d&&G.sane){t.msg="invalid distance too far back",G.mode=_u;break e}if(E=0,P=h,c===0){if(E+=u-w,w<_){_-=w;do $[i++]=h[E++];while(--w);E=i-M,P=$}}else if(c2;)$[i++]=P[E++],$[i++]=P[E++],$[i++]=P[E++],_-=3;_&&($[i++]=P[E++],_>1&&($[i++]=P[E++]))}else{E=i-M;do $[i++]=$[E++],$[i++]=$[E++],$[i++]=$[E++],_-=3;while(_>2);_&&($[i++]=$[E++],_>1&&($[i++]=$[E++]))}}else if(w&64){t.msg="invalid distance code",G.mode=_u;break e}else{k=v[(k&65535)+(f&(1<>3,n-=_,p-=_<<3,f&=(1<{const s=l.bits;let u=0,d=0,c=0,h=0,f=0,p=0,g=0,v=0,b=0,C=0,k,w,_,M,E,P=null,z;const $=new Uint16Array(ga+1),G=new Uint16Array(ga+1);let H=null,q,W,L;for(u=0;u<=ga;u++)$[u]=0;for(d=0;d=1&&$[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;c0&&(e===g5||h!==1))return-1;for(G[1]=0,u=1;up5||e===v5&&b>m5)return 1;for(;;){q=u-g,a[d]+1=z?(W=H[a[d]-z],L=P[a[d]-z]):(W=96,L=0),k=1<>g)+w]=q<<24|W<<16|L|0;while(w!==0);for(k=1<>=1;if(k!==0?(C&=k-1,C+=k):C=0,d++,--$[u]===0){if(u===h)break;u=t[o+a[d]]}if(u>f&&(C&M)!==_){for(g===0&&(g=f),E+=c,p=u-g,v=1<p5||e===v5&&b>m5)return 1;_=C&M,r[_]=f<<24|p<<16|E-i|0}}return C!==0&&(r[E+C]=u-g<<24|64<<16|0),l.bits=f,0};var Zl=XK;const YK=0,eb=1,tb=2,{Z_FINISH:b5,Z_BLOCK:QK,Z_TREES:Mu,Z_OK:Ui,Z_STREAM_END:JK,Z_NEED_DICT:eG,Z_STREAM_ERROR:Cn,Z_DATA_ERROR:ob,Z_MEM_ERROR:nb,Z_BUF_ERROR:tG,Z_DEFLATED:x5}=na,sc=16180,y5=16181,C5=16182,w5=16183,S5=16184,F5=16185,E5=16186,k5=16187,_5=16188,M5=16189,gd=16190,ur=16191,M0=16192,R5=16193,R0=16194,z5=16195,A5=16196,P5=16197,B5=16198,Ru=16199,zu=16200,$5=16201,D5=16202,T5=16203,I5=16204,O5=16205,z0=16206,L5=16207,H5=16208,to=16209,rb=16210,ib=16211,oG=852,nG=592,rG=15,iG=rG,N5=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function aG(){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 ra=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeib?1:0},ab=e=>{if(ra(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=sc,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(oG),t.distcode=t.distdyn=new Int32Array(nG),t.sane=1,t.back=-1,Ui},lb=e=>{if(ra(e))return Cn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,ab(e)},sb=(e,t)=>{let o;if(ra(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,lb(e))},ub=(e,t)=>{if(!e)return Cn;const o=new aG;e.state=o,o.strm=e,o.window=null,o.mode=sc;const n=sb(e,t);return n!==Ui&&(e.state=null),n},lG=e=>ub(e,iG);let V5=!0,A0,P0;const sG=e=>{if(V5){A0=new Int32Array(512),P0=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(Zl(eb,e.lens,0,288,A0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Zl(tb,e.lens,0,32,P0,0,e.work,{bits:5}),V5=!1}e.lencode=A0,e.lenbits=9,e.distcode=P0,e.distbits=5},db=(e,t,o,n)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<=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{let o,n,r,i,a,l,s,u,d,c,h,f,p,g,v=0,b,C,k,w,_,M,E,P;const z=new Uint8Array(4);let $,G;const H=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ra(e)||!e.output||!e.input&&e.avail_in!==0)return Cn;o=e.state,o.mode===ur&&(o.mode=M0),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,P=Ui;e:for(;;)switch(o.mode){case sc:if(o.wrap===0){o.mode=M0;break}for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>>8&255,o.check=Co(o.check,z,2,0),u=0,d=0,o.mode=y5;break}if(o.head&&(o.head.done=!1),!(o.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",o.mode=to;break}if((u&15)!==x5){e.msg="unknown compression method",o.mode=to;break}if(u>>>=4,d-=4,E=(u&15)+8,o.wbits===0&&(o.wbits=E),E>15||E>o.wbits){e.msg="invalid window size",o.mode=to;break}o.dmax=1<>8&1),o.flags&512&&o.wrap&4&&(z[0]=u&255,z[1]=u>>>8&255,o.check=Co(o.check,z,2,0)),u=0,d=0,o.mode=C5;case C5:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<>>8&255,z[2]=u>>>16&255,z[3]=u>>>24&255,o.check=Co(o.check,z,4,0)),u=0,d=0,o.mode=w5;case w5:for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>8),o.flags&512&&o.wrap&4&&(z[0]=u&255,z[1]=u>>>8&255,o.check=Co(o.check,z,2,0)),u=0,d=0,o.mode=S5;case S5:if(o.flags&1024){for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>>8&255,o.check=Co(o.check,z,2,0)),u=0,d=0}else o.head&&(o.head.extra=null);o.mode=F5;case F5:if(o.flags&1024&&(f=o.length,f>l&&(f=l),f&&(o.head&&(E=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),E)),o.flags&512&&o.wrap&4&&(o.check=Co(o.check,n,f,i)),l-=f,i+=f,o.length-=f),o.length))break e;o.length=0,o.mode=E5;case E5:if(o.flags&2048){if(l===0)break e;f=0;do E=n[i+f++],o.head&&E&&o.length<65536&&(o.head.name+=String.fromCharCode(E));while(E&&f>9&1,o.head.done=!0),e.adler=o.check=0,o.mode=ur;break;case M5:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<>>=d&7,d-=d&7,o.mode=z0;break}for(;d<3;){if(l===0)break e;l--,u+=n[i++]<>>=1,d-=1,u&3){case 0:o.mode=R5;break;case 1:if(sG(o),o.mode=Ru,t===Mu){u>>>=2,d-=2;break e}break;case 2:o.mode=A5;break;case 3:e.msg="invalid block type",o.mode=to}u>>>=2,d-=2;break;case R5:for(u>>>=d&7,d-=d&7;d<32;){if(l===0)break e;l--,u+=n[i++]<>>16^65535)){e.msg="invalid stored block lengths",o.mode=to;break}if(o.length=u&65535,u=0,d=0,o.mode=R0,t===Mu)break e;case R0:o.mode=z5;case z5: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 A5:for(;d<14;){if(l===0)break e;l--,u+=n[i++]<>>=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=to;break}o.have=0,o.mode=P5;case P5:for(;o.have>>=3,d-=3}for(;o.have<19;)o.lens[H[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,$={bits:o.lenbits},P=Zl(YK,o.lens,0,19,o.lencode,0,o.work,$),o.lenbits=$.bits,P){e.msg="invalid code lengths set",o.mode=to;break}o.have=0,o.mode=B5;case B5:for(;o.have>>24,C=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=b,d-=b,o.lens[o.have++]=k;else{if(k===16){for(G=b+2;d>>=b,d-=b,o.have===0){e.msg="invalid bit length repeat",o.mode=to;break}E=o.lens[o.have-1],f=3+(u&3),u>>>=2,d-=2}else if(k===17){for(G=b+3;d>>=b,d-=b,E=0,f=3+(u&7),u>>>=3,d-=3}else{for(G=b+7;d>>=b,d-=b,E=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=to;break}for(;f--;)o.lens[o.have++]=E}}if(o.mode===to)break;if(o.lens[256]===0){e.msg="invalid code -- missing end-of-block",o.mode=to;break}if(o.lenbits=9,$={bits:o.lenbits},P=Zl(eb,o.lens,0,o.nlen,o.lencode,0,o.work,$),o.lenbits=$.bits,P){e.msg="invalid literal/lengths set",o.mode=to;break}if(o.distbits=6,o.distcode=o.distdyn,$={bits:o.distbits},P=Zl(tb,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,$),o.distbits=$.bits,P){e.msg="invalid distances set",o.mode=to;break}if(o.mode=Ru,t===Mu)break e;case Ru:o.mode=zu;case zu: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,UK(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<>>24,C=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>w)],b=v>>>24,C=v>>>16&255,k=v&65535,!(w+b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=w,d-=w,o.back+=w}if(u>>>=b,d-=b,o.back+=b,o.length=k,C===0){o.mode=O5;break}if(C&32){o.back=-1,o.mode=ur;break}if(C&64){e.msg="invalid literal/length code",o.mode=to;break}o.extra=C&15,o.mode=$5;case $5:if(o.extra){for(G=o.extra;d>>=o.extra,d-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=D5;case D5:for(;v=o.distcode[u&(1<>>24,C=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>w)],b=v>>>24,C=v>>>16&255,k=v&65535,!(w+b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=w,d-=w,o.back+=w}if(u>>>=b,d-=b,o.back+=b,C&64){e.msg="invalid distance code",o.mode=to;break}o.offset=k,o.extra=C&15,o.mode=T5;case T5:if(o.extra){for(G=o.extra;d>>=o.extra,d-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){e.msg="invalid distance too far back",o.mode=to;break}o.mode=I5;case I5: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=to;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=zu);break;case O5:if(s===0)break e;r[a++]=o.length,s--,o.mode=zu;break;case z0:if(o.wrap){for(;d<32;){if(l===0)break e;l--,u|=n[i++]<{if(ra(e))return Cn;let t=e.state;return t.window&&(t.window=null),e.state=null,Ui},cG=(e,t)=>{if(ra(e))return Cn;const o=e.state;return o.wrap&2?(o.head=t,t.done=!1,Ui):Cn},fG=(e,t)=>{const o=t.length;let n,r,i;return ra(e)||(n=e.state,n.wrap!==0&&n.mode!==gd)?Cn:n.mode===gd&&(r=1,r=xs(r,t,o,0),r!==n.check)?ob:(i=db(e,t,o,o),i?(n.mode=rb,nb):(n.havedict=1,Ui))};var hG=lb,pG=sb,mG=ab,gG=lG,vG=ub,bG=uG,xG=dG,yG=cG,CG=fG,wG="pako inflate (from Nodeca project)",hr={inflateReset:hG,inflateReset2:pG,inflateResetKeep:mG,inflateInit:gG,inflateInit2:vG,inflate:bG,inflateEnd:xG,inflateGetHeader:yG,inflateSetDictionary:CG,inflateInfo:wG};function SG(){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 FG=SG;const cb=Object.prototype.toString,{Z_NO_FLUSH:EG,Z_FINISH:kG,Z_OK:ws,Z_STREAM_END:B0,Z_NEED_DICT:$0,Z_STREAM_ERROR:_G,Z_DATA_ERROR:W5,Z_MEM_ERROR:MG}=na;function Zs(e){this.options=lc.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 Q9,this.strm.avail_out=0;let o=hr.inflateInit2(this.strm,t.windowBits);if(o!==ws)throw new Error(Wi[o]);if(this.header=new FG,hr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Cs.string2buf(t.dictionary):cb.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(o=hr.inflateSetDictionary(this.strm,t.dictionary),o!==ws)))throw new Error(Wi[o])}Zs.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?kG:EG,cb.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===$0&&r&&(i=hr.inflateSetDictionary(o,r),i===ws?i=hr.inflate(o,a):i===W5&&(i=$0));o.avail_in>0&&i===B0&&o.state.wrap>0&&e[o.next_in]!==0;)hr.inflateReset(o),i=hr.inflate(o,a);switch(i){case _G:case W5:case $0:case MG:return this.onEnd(i),this.ended=!0,!1}if(l=o.avail_out,o.next_out&&(o.avail_out===0||i===B0))if(this.options.to==="string"){let s=Cs.utf8border(o.output,o.next_out),u=o.next_out-s,d=Cs.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===ws&&l===0)){if(i===B0)return i=hr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(o.avail_in===0)break}}return!0};Zs.prototype.onData=function(e){this.chunks.push(e)};Zs.prototype.onEnd=function(e){e===ws&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=lc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function M3(e,t){const o=new Zs(t);if(o.push(e),o.err)throw o.msg||Wi[o.err];return o.result}function RG(e,t){return t=t||{},t.raw=!0,M3(e,t)}var zG=Zs,AG=M3,PG=RG,BG=M3,$G=na,DG={Inflate:zG,inflate:AG,inflateRaw:PG,ungzip:BG,constants:$G};const{Deflate:TG,deflate:IG,deflateRaw:OG,gzip:LG}=WK,{Inflate:HG,inflate:NG,inflateRaw:VG,ungzip:WG}=DG;var jG=TG,UG=IG,KG=OG,GG=LG,qG=HG,ZG=NG,XG=VG,YG=WG,QG=na,Va={Deflate:jG,deflate:UG,deflateRaw:KG,gzip:GG,Inflate:qG,inflate:ZG,inflateRaw:XG,ungzip:YG,constants:QG};function Fl(e){const t=Us(),o=Nt({moduleEmbeddedRules:Sa(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]),currentEmbeddedRules:Sa(t.customConfigEmbeddedRulesList[e]||(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]))||{},moduleFixedOrientation:Sa(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]),currentFixedOrientation:Sa(t.customConfigFixedOrientationList[e]||(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]))||{}});return{...Fh(o)}}const fb=e=>{const t=/^[a-zA-Z0-9_.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},JG=e=>{const t=/^[a-zA-Z0-9_:,.*-]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},eq=e=>{const t=/^[a-zA-Z0-9_,.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},tq={class:"mb-4"},oq={class:"mb-4"},nq={class:"mb-4"},rq={class:"mb-4"},iq={class:"mb-4"},aq={class:"mb-4"},lq={class:"mb-4"},j5=ye({__name:"EmbeddedAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=A(null),r=e,i=A(!1),a=ht(),l=Us(),s=di(),u=D(()=>({theme:a.isDarkMode?Bt:Ft})),{message:d,modal:c}=It(["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=D(()=>{const ze=[{label:"默认横屏规则",key:"fullScreen_default",rule:""}];return a.MIOSVersion&&a.MIOSVersion>=2?[...ze,...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=A(g.value[0]),C=A(),k=A(!0),w=A(),_=A(),M=A(v[1]),E=A(),P=A(.5),z=A(!1),$=A(!1),G=A([]),H=ze=>{const pe=document.querySelector(".n-drawer-content");pe instanceof HTMLElement&&(s.info("resizeDrawerContent",ze),pe.style.height=ze?"calc(100% + 200px)":"100%")},q=ze=>{var pe;H(!0),(pe=n.value)==null||pe.$el.scrollIntoView({behavior:"smooth",block:"start"})},W=ze=>{var pe;H(!1),(pe=n.value)==null||pe.$el.scrollIntoView({behavior:"smooth",block:"start"})},L=async ze=>{if(ze&&a.MIOSVersion&&a.MIOSVersion>=2){const[pe]=await Me(new Promise((U,N)=>{c.create({title:"确认启用第三方横屏优化吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("由于小米的BUG,部分应用即使配置了横屏,在系统重启后仍然会丢失横屏配置,开启此项可以保证该应用的横屏规则不会丢失,但每次设备重启或修改模块规则,该应用都将被强制重启,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{U("positiveClick")},onNegativeClick:()=>{N("negativeClick")}})}));if(pe)return}X.value=ze},I=A({openDrawer:ze=>new Promise((pe,U)=>{var N,ge,Ce,se,te,ce,Q;if(r.type==="update"&&!ze){U(new Error("更新模式下必须传入初始化参数")),d.error("初始化参数不能为空");return}h=pe,f=U,r.type==="add"&&(_.value="add",b.value=g.value[0],fe.value="",C.value=a.MIOSVersion&&a.MIOSVersion>=2?"":"nra:cr:rcr:nr",G.value=["fullScreen","fixedOrientation","disabled"],ae.value=!1,Fe.value=!1,z.value=!1),r.type==="update"&&ze&&(_.value="update",$.value=!1,P.value=.5,w.value=ze.ruleMode,fe.value=ze.name,we.value=ze.isSupportEmbedded,ze.embeddedRules&&ze.embeddedRules.hasOwnProperty("splitRatio")&&(P.value=ze.embeddedRules.splitRatio??.5),ze.embeddedRules&&ze.embeddedRules.hasOwnProperty("relaunch")?ae.value=!!ze.embeddedRules.relaunch:ae.value=!0,y.value=ze.settingMode,a.MIOSVersion&&a.MIOSVersion>=2&&(X.value=ze.thirdPartyAppOptimize??!1),(!a.MIOSVersion||a.MIOSVersion&&a.MIOSVersion<2)&&(j.value=((N=ze.fixedOrientationRule)==null?void 0:N.disable)??!1),le.value=((ge=ze.fixedOrientationRule)==null?void 0:ge.isShowDivider)??!1,C.value=((Ce=ze.embeddedRules)==null?void 0:Ce.fullRule)??void 0,z.value=((te=(se=ze.fixedOrientationRule)==null?void 0:se.compatChange)==null?void 0:te.split(",").includes("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"))??!1,C.value==="nra:cr:rcr:nr"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[1]:g.value[0]:ze.embeddedRules&&!ze.embeddedRules.hasOwnProperty("fullRule")?(C.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]):C.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=((ce=ze.embeddedRules)==null?void 0:ce.supportFullSize)??!1,ze.fixedOrientationRule&&ze.fixedOrientationRule.hasOwnProperty("relaunch")?ae.value=!!ze.fixedOrientationRule.relaunch:ae.value=!1,E.value=((Q=ze.fixedOrientationRule)==null?void 0:Q.ratio)??void 0,E.value?E.value===1.1?M.value=v[0]:E.value===1.5?M.value=v[2]:E.value===1.8?M.value=v[3]:M.value=v[4]:M.value=v[1]),i.value=!0}),closeDrawer:()=>{i.value=!1,f("Drawer closed without submission")}}),R=(ze,pe)=>{b.value=pe,C.value=["fullScreen_nra:cr:rcr:nr","fullScreen_*"].includes(ze)?pe.rule:void 0},O=(ze,pe)=>{M.value=pe,E.value=["ratio_11_10","ratio_15_10","ratio_18:10"].includes(ze)?pe.ratio:ze==="ratio_custom"?1.5:void 0},oe=({focused:ze,checked:pe})=>{const U={};return pe?(U.background="#2080f0",ze&&(U.boxShadow="0 0 0 2px #2080f040")):(U.background="#d03050",ze&&(U.boxShadow="0 0 0 2px #d0305040")),U},y=A("fullScreen"),j=A(!1),X=A(!1),le=A(!0),ae=A(!0),Fe=A(!1),fe=A(""),ue=A(""),we=A(!1),ie=async()=>{if(!fe.value){c.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?应用包名不能为空(敲")])});return}if(y.value==="fullScreen"&&!C.value&&(!a.MIOSVersion||a.MIOSVersion<2)){c.create({title:"应用全屏规则不能为空",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?应用全屏规则不能为空(敲")])});return}if(r.type==="add"&&l.allPackageName.has(fe.value)){c.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?这个应用包名已经存在列表中了(敲")])});return}if(r.type==="update"&&we.value&&y.value==="fullScreen"){const[N]=await Me(new Promise((ge,Ce)=>{c.create({title:"确认使用全屏规则吗?",type:"warning",preset:"dialog",content:()=>w.value==="custom"?x("p",null,[F("当前应用已存在")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的自定义规则")])," ",F(",继续提交可能导致")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的自定义规则")])," ",F("丢失。确定要继续吗?")]):x("p",null,[F("当前应用已存在")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的模块规则")])," ",F(",继续更新将会被更替为")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("全屏规则")])," ",F(",如后续需要改回")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的模块规则")])," ",F("可能需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{ge("positiveClick")},onNegativeClick:()=>{Ce("negativeClick")}})}));if(N)return}if(r.type==="update"&&w.value==="module"&&$.value){const[N]=await Me(new Promise((ge,Ce)=>{c.create({title:"确认使用平行窗口自定义规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("当前应用已存在")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的模块规则")])," ",F(",继续更新将会被更替为")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的自定义规则")])," ",F(",且该应用规则不再随模块版本更新,如后续需要改回")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的模块规则")])," ",F("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{ge("positiveClick")},onNegativeClick:()=>{Ce("negativeClick")}})}));if(N)return}be.value=!0;const ze=()=>{be.value=!1,i.value=!1},pe=()=>{be.value=!1},U={name:fe.value,settingMode:y.value,...a.MIOSVersion&&a.MIOSVersion>=2&&{thirdPartyAppOptimize:!!(X.value&&y.value==="fullScreen")},modePayload:{...y.value==="fullScreen"&&{fullRule:C.value},...y.value==="fullScreen"&&(!a.MIOSVersion||a.MIOSVersion&&a.MIOSVersion<2)&&{skipSelfAdaptive:j.value},...y.value==="fullScreen"&&{isShowDivider:le.value},...y.value==="fullScreen"&&{supportFullSize:k.value},...y.value==="fixedOrientation"&&{ratio:E.value},...y.value==="fixedOrientation"&&{foRelaunch:ae.value},...y.value==="fixedOrientation"&&a.MIOSVersion&&a.MIOSVersion>=2&&{forceFixedOrientation:z.value},...y.value==="embedded"&&(w.value==="custom"||w.value==="module"&&$.value)&&{splitRatio:P.value},...y.value==="embedded"&&(w.value==="custom"||w.value==="module"&&$.value)&&{emRelaunch:Fe.value}},loadingCallback:pe,closeCallback:ze};h(U)},be=A(!1);return t({openDrawer:I.value.openDrawer}),(ze,pe)=>{const U=rt("n-input-group-label"),N=rt("n-input"),ge=rt("n-input-group"),Ce=rt("n-tag"),se=rt("n-alert"),te=rt("n-switch"),ce=rt("n-card"),Q=rt("n-slider"),re=rt("n-input-number"),he=rt("n-tab-pane"),ne=rt("n-button"),Y=rt("n-dropdown"),de=rt("n-tabs"),Ee=rt("n-drawer-content"),Ie=rt("n-drawer");return Re(),Oe(ft,null,[Es(ze.$slots,"default",eh(u6({openDrawer:I.value.openDrawer}))),x(Ie,{show:i.value,"onUpdate:show":pe[22]||(pe[22]=$e=>i.value=$e),width:S(a).windowWidth>=640?"450px":"100%",placement:"right"},{default:K(()=>[x(Ee,{title:r.title,closable:""},{footer:K(()=>[x(ne,{type:"info",loading:be.value,"onUpdate:loading":pe[20]||(pe[20]=$e=>be.value=$e),onClick:pe[21]||(pe[21]=()=>ie())},{default:K(()=>pe[58]||(pe[58]=[F(" 提交 ")])),_:1},8,["loading"])]),default:K(()=>[x(ge,null,{default:K(()=>[x(U,{size:"large"},{default:K(()=>pe[23]||(pe[23]=[F("应用包名")])),_:1}),x(N,{size:"large",status:ue.value,value:fe.value,"onUpdate:value":pe[0]||(pe[0]=$e=>fe.value=$e),"allow-input":$e=>fb($e),readonly:r.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),w.value==="custom"?(Re(),Tt(se,{key:0,type:"info",class:"mt-5"},{default:K(()=>[pe[26]||(pe[26]=F(" 当前应用已被 ")),x(Ce,{bordered:!1,type:"info"},{default:K(()=>pe[24]||(pe[24]=[F("自定义规则")])),_:1}),pe[27]||(pe[27]=F(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),x(Ce,{bordered:!1,type:"info"},{default:K(()=>pe[25]||(pe[25]=[F("自定义规则")])),_:1}),pe[28]||(pe[28]=F(" 。 "))]),_:1})):Ge("",!0),x(de,{class:"my-3",type:"segment",animated:"",value:y.value,"onUpdate:value":pe[19]||(pe[19]=$e=>y.value=$e)},{default:K(()=>[r.type==="update"&&we.value?(Re(),Tt(he,{key:0,name:"embedded",tab:"平行窗口"},{default:K(()=>[x(se,{"show-icon":!1,bordered:!1,title:"应用分屏显示",type:"success"},{default:K(()=>pe[29]||(pe[29]=[F(" 开启后,未适配横屏应用界面将通过平行窗口显示 ")])),_:1}),w.value==="module"?(Re(),Tt(ce,{key:0,bordered:!1,title:"切换自定义规则",size:"small"},{default:K(()=>[T("div",tq,[x(Ce,{bordered:!1,type:"info"},{default:K(()=>pe[30]||(pe[30]=[F(" 切换为自定义规则后该应用不再随模块更新 ")])),_:1})]),x(te,{"rail-style":oe,value:$.value,"onUpdate:value":pe[1]||(pe[1]=$e=>$.value=$e),size:"large"},{checked:K(()=>pe[31]||(pe[31]=[F("使用自定义规则")])),unchecked:K(()=>pe[32]||(pe[32]=[F("不使用自定义规则")])),_:1},8,["value"])]),_:1})):Ge("",!0),w.value==="custom"||$.value?(Re(),Tt(ce,{key:1,bordered:!1,title:"平行窗口默认分屏比例",size:"small"},{default:K(()=>[x(Q,{value:P.value,"onUpdate:value":pe[2]||(pe[2]=$e=>P.value=$e),size:"small",min:.01,max:.99,step:.01},null,8,["value"]),x(re,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入平行窗口默认分屏比例",value:P.value,"onUpdate:value":pe[3]||(pe[3]=$e=>P.value=$e),min:.01,max:.99,step:.01},null,8,["value"])]),_:1})):Ge("",!0),w.value==="custom"||$.value?(Re(),Tt(ce,{key:2,bordered:!1,title:"平行窗口显示比例发生变化时是否重载",size:"small"},{default:K(()=>[T("div",oq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[33]||(pe[33]=[F(" 适用于开启 "),T("span",{class:"font-bold"},"平行窗口滑动条",-1),F(" 的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:Fe.value,"onUpdate:value":pe[4]||(pe[4]=$e=>Fe.value=$e),size:"large"},{checked:K(()=>pe[34]||(pe[34]=[F("平行窗口显示比例变化时重载")])),unchecked:K(()=>pe[35]||(pe[35]=[F("平行窗口显示比例变化时不重载")])),_:1},8,["value"])]),_:1})):Ge("",!0)]),_:1})):Ge("",!0),x(he,{name:"fullScreen",tab:"全屏"},{default:K(()=>[x(se,{"show-icon":!1,bordered:!1,title:"应用横屏显示",type:"info"},{default:K(()=>pe[36]||(pe[36]=[F(" 开启后,未适配横屏应用界面将全屏显示,并可更改显示规则 ")])),_:1}),x(ce,{bordered:!1,title:"横屏显示规则",size:"small"},{default:K(()=>[x(Y,{modelValue:b.value,"onUpdate:modelValue":pe[5]||(pe[5]=$e=>b.value=$e),size:"large",trigger:"click",options:g.value,onSelect:R},{default:K(()=>[x(ne,{block:"",type:"info",dashed:""},{default:K(()=>[F(et(b.value.label),1)]),_:1})]),_:1},8,["modelValue","options"])]),_:1}),b.value.key==="fullScreen_custom"?(Re(),Tt(ce,{key:0,bordered:!1,title:"自定义横屏规则",size:"small"},{default:K(()=>[x(ge,null,{default:K(()=>[x(N,{ref_key:"currentFullRuleRef",ref:n,onFocus:pe[6]||(pe[6]=()=>q("currentFullRuleRef")),onBlur:pe[7]||(pe[7]=()=>W("currentFullRuleRef")),value:C.value,"onUpdate:value":pe[8]||(pe[8]=$e=>C.value=$e),placeholder:"请输入横屏规则"},null,8,["value"])]),_:1})]),_:1})):Ge("",!0),x(ce,{bordered:!1,title:"平行窗口滑动条",size:"small"},{default:K(()=>[T("div",nq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[37]||(pe[37]=[F(" 适用于原生适配 "),T("span",{class:"font-bold"},"Android Embedded",-1),F(" 的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:le.value,"onUpdate:value":pe[9]||(pe[9]=$e=>le.value=$e),size:"large"},{checked:K(()=>pe[38]||(pe[38]=[F("启用平行窗口滑动条")])),unchecked:K(()=>pe[39]||(pe[39]=[F("关闭平行窗口滑动条")])),_:1},8,["value"])]),_:1}),le.value?(Re(),Tt(ce,{key:1,bordered:!1,title:"平行窗口可滑动至全屏",size:"small"},{default:K(()=>[T("div",rq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[40]||(pe[40]=[F(" 适用于原生适配 "),T("span",{class:"font-bold"},"Android Embedded",-1),F(" 的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:k.value,"onUpdate:value":pe[10]||(pe[10]=$e=>k.value=$e),size:"large"},{checked:K(()=>pe[41]||(pe[41]=[F("平行窗口可滑动至全屏")])),unchecked:K(()=>pe[42]||(pe[42]=[F("平行窗口不可滑动至全屏")])),_:1},8,["value"])]),_:1})):Ge("",!0),!S(a).MIOSVersion||S(a).MIOSVersion&&S(a).MIOSVersion<2?(Re(),Tt(ce,{key:2,class:"",bordered:!1,title:"跳过应用自适配声明",size:"small"},{default:K(()=>[T("div",iq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[43]||(pe[43]=[F(" 适用于即使设置了 "),T("span",{class:"font-bold"},"横屏规则",-1),F(" 仍无法横屏的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:j.value,"onUpdate:value":pe[11]||(pe[11]=$e=>j.value=$e),size:"large"},{checked:K(()=>pe[44]||(pe[44]=[F("跳过自适配声明")])),unchecked:K(()=>pe[45]||(pe[45]=[F("不跳过自适配声明")])),_:1},8,["value"])]),_:1})):Ge("",!0),S(a).MIOSVersion&&S(a).MIOSVersion>=2?(Re(),Tt(ce,{key:3,class:"",bordered:!1,title:"第三方应用横屏优化",size:"small"},{default:K(()=>[T("div",aq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[46]||(pe[46]=[F(" 适用于即使设置了 "),T("span",{class:"font-bold"},"横屏规则",-1),F(" 仍无法横屏的应用 ")])),_:1})]),x(te,{"rail-style":oe,"onUpdate:value":pe[12]||(pe[12]=$e=>L($e)),value:X.value,size:"large"},{checked:K(()=>pe[47]||(pe[47]=[F("已开启第三方应用横屏优化")])),unchecked:K(()=>pe[48]||(pe[48]=[F("未开启第三方应用横屏优化")])),_:1},8,["value"])]),_:1})):Ge("",!0)]),_:1}),x(he,{name:"fixedOrientation",tab:"居中布局"},{default:K(()=>[x(se,{"show-icon":!1,bordered:!1,title:"应用居中显示",type:"warning"},{default:K(()=>pe[49]||(pe[49]=[F(" 开启后,未适配横屏应用界面将居中显示,并可更改显示比例 ")])),_:1}),x(ce,{bordered:!1,title:"居中显示比例",size:"small"},{default:K(()=>[x(Y,{value:M.value,"onUpdate:value":pe[13]||(pe[13]=$e=>M.value=$e),size:"large",trigger:"click",options:v,onSelect:O},{default:K(()=>[x(ne,{block:"",type:"error",dashed:""},{default:K(()=>[F(et(M.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),M.value.key==="ratio_custom"?(Re(),Tt(ce,{key:0,bordered:!1,title:"自定义显示比例",size:"small"},{default:K(()=>[x(Q,{size:"small",value:E.value,"onUpdate:value":pe[14]||(pe[14]=$e=>E.value=$e),min:1.01,max:1.99,step:.01},null,8,["value"]),x(re,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入自定义显示比例",value:E.value,"onUpdate:value":pe[15]||(pe[15]=$e=>E.value=$e),min:1.01,max:1.99,step:.01},null,8,["value"])]),_:1})):Ge("",!0),x(ce,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:K(()=>[x(te,{"rail-style":oe,value:ae.value,"onUpdate:value":pe[16]||(pe[16]=$e=>ae.value=$e),size:"large"},{checked:K(()=>pe[50]||(pe[50]=[F("应用比例变化时重载应用")])),unchecked:K(()=>pe[51]||(pe[51]=[F("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1}),S(a).MIOSVersion&&S(a).MIOSVersion>=2?(Re(),Tt(ce,{key:1,class:"",bordered:!1,title:"强制应用居中显示",size:"small"},{default:K(()=>[T("div",lq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[52]||(pe[52]=[F(" 适用于即使设置了 "),T("span",{class:"font-bold"},"居中布局",-1),F(" 仍无法居中显示的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:z.value,"onUpdate:value":pe[17]||(pe[17]=$e=>z.value=$e),size:"large"},{checked:K(()=>pe[53]||(pe[53]=[F("强制应用居中显示")])),unchecked:K(()=>pe[54]||(pe[54]=[F("不强制应用居中显示")])),_:1},8,["value"])]),_:1})):Ge("",!0)]),_:1}),x(he,{name:"disabled",tab:"原始布局"},{default:K(()=>[x(se,{"show-icon":!1,bordered:!1,title:"应用原始布局",type:"error"},{default:K(()=>pe[55]||(pe[55]=[F(" 开启后,将禁用任何系统规则干预,应用会根据自身的适配规则进行显示,大多数应用仅竖屏显示 ")])),_:1}),x(ce,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:K(()=>[x(te,{"rail-style":oe,value:ae.value,"onUpdate:value":pe[18]||(pe[18]=$e=>ae.value=$e),size:"large"},{checked:K(()=>pe[56]||(pe[56]=[F("应用比例变化时重载应用")])),unchecked:K(()=>pe[57]||(pe[57]=[F("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["value"])]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function hb(){const e=ht(),t=A(!1),o=()=>new Promise(async(n,r)=>{if(t.value)r("已经有存在的任务了!");else{t.value=!0;const[i,a]=await Me(jN());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 sq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 uq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("path",{d:"M12 7.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z"}),T("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"}),T("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 dq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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 cq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 fq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 pb(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 hq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("path",{d:"M16.5 7.5h-9v9h9v-9Z"}),T("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 mb(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 pq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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"}),T("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 mq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 gb(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 gq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 R3(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 vq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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 bq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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 xq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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 yq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 Cq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 z3(e){let t="",o=new Uint8Array(e),n=o.byteLength;for(let r=0;r{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o});r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("p",null,[F("经过多轮测试,")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏设备体验不佳,模块无法对其进行很好的适配,不推荐在大屏设备下使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("~")]),positiveText:"已了解该应用可能不兼容"})},"com.qiyi.video":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135ClWdvL9xtB";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("爱奇艺PAD(com.qiyi.video.pad)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.hunantv.imgo.activity":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135CmUTZaefoj";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("芒果TV HD(com.imgo.pad)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.taobao.idlefish":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o});r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏设备体验不佳,模块无法对其进行很好的适配,模块更推荐在")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("居中布局")])," ",F("下使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("~")]),positiveText:"已了解该应用可能不兼容"})},"cn.cntv":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135CmUTNrzYNh";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("央视影音 HD(cn.cntvhd)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.sohu.sohuvideo":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135ClWdevpbAN";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("搜狐视频 HD(com.sohu.tv)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.sinyee.babybus.recommendapp":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135ClqWyzHNVM";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("宝宝巴士 HD(com.bb.happykids)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.CDA.StructureMaster":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135ClqS1uhW8p";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("结构大师 HD(com.CDAStudio.StructureMasterHD)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})}},ba={"com.coolapk.market":{isShow(){const e=ht();return!!(e.deviceCharacteristics==="tablet"&&e.MIOSVersion&&e.MIOSVersion===2)},onClick(e){const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="eNqtVk1zGjEM/S977GQ8mfZC6IlC6SWkBBJ61noFq8Fre2wvDM3kv1deEj5mgDVpLra8q2dZsp6sl0xDhVk3k6YS0hgFdikqcEsM2U0mKxuy7tebDKus+3JR1S/JTlHNewXYQCvWC65G/m4VhQkEMln3Vnx7+zAGcpNand5NrAjXLJMWIx56kvejsOl+uTmnW3t0qzvxzNPUgsTZXQJImwLFYMNOkXxgeQwLTIB5BCdLMa0tG2vkCfpahQRoDh7FlCqrsKdsCQmQOWIhhjwMMACpd8SscwED1lag2Rsnnu3CQYGj7TLR3qojKnaIpnVeURCjvZywwYHxnrXphuMVNhcYnb0nn2JLGh1ABjF0hPpqEGifCNmfzShl1uxXSiBUXlcNqhela0yNNgNaUHiC/AB1AbQwpvCM+hXnY1SSW2OSoXaYCCs2JWfIYFMm6ucgl7WNyuLHTkzAVeg9J4/olxAC6cU1bJmgVZtjyrQn/TbHI3zWSaofgeYkY2nT4uFgkXrQ5pB7ZS6i8La4tjSetbMGpSxwpWr+WpKizzPf93FsPl5K/rOQXBGg8wXZKvBckJspVXtYKzWVDlH3ilbMigo0YhbHbdwOM7gtAjGffurgQPO71GlF2dIEIx4nfX6RUk2cStw2zGONPibrEwXVbqipMA2F+w4h4LDWTyVz0rf7g64i7yNHxo5WINsvdI15M9+bRUKKK242xD0PrZrnCsqHykkLyLg1uHjvrPoOYYLHNPAU4x4p7j+F45/AtGtz6GORTKPzpaBzBMlPS7MeUOSk2zWZtbXGhYbU9HfXe84VLGKMHfJTN3bYj08/aXTdy+wbx3HG69bDSm4IUMb73JJjt+RWmIV3/Pfsre8dkf5DRSiz7t3t7Suf0LT11Sf9LchDrrDF/dMtOVsNGxvtYZVjUWDBVgpckYzfLMRlxcXnWCGU5IoxOM5ma3/zdlVjaA7K4+s/HRabjA==";r.create({title:"应用规则感知",type:"info",preset:"dialog",content(){const l=s=>m(sd,{code:s,class:"my-5 overflow-y-auto line-clamp-6",language:"Base64",wordWrap:!0});return x("div",null,[x("p",null,[F("模块已为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," "," ",F("进行了更详尽的应用规则适配,您可以将此自定义规则通过")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("[应用横屏布局-从分享规则导入]")])," ",F("进行导入~")]),x(rt("n-button"),null,{default:()=>[F("223")]}),x("p",null,[F("Tips: 此规则需要搭配最新版的Hyper OS 2.0,老版本的 OS 2 可能由于小米BUG存在崩溃的问题。")]),l&&l(a)])},positiveText:"复制自定义规则到剪贴板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(a)},onNegativeClick:()=>{}})}},"tv.danmaku.bili":{isShow(){const e=ht();return!!(e.deviceCharacteristics==="tablet"&&e.MIOSVersion&&e.MIOSVersion===2)},onClick(e){const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="eNqVVd1v2kAM/1/StwndVjRpU95SUKtJoFFSdc9H4oDFfe3uAmNV//fZR4BCC13zkrPP/tnnz6fMSA1ZnsWVqKXRctmKGSrMelmlXczyfi8DneVP5+VqDHKmoAQTrM/y6FvoZcEpjCM0MLCKudnVbfryq+tv19+vi6wTmcqINsu/iK+9DEO5sOshrrCGA1DrnPXxtlWqxL9whD+R6KetesMtMZZoiioSVtw89vNPvcrqdJNuA0hfLYQmIXFDDJYuE2+nc6oxc6oNorFK2TWaucIQxe8Wq6WorAmtBnHP1GBLvEA5daxFwe+ztV0bZWUtHpkadtSIcM+5QD/WvgMDXqrLJhq5sh4jiNvucGP/XNbgWPTFLxmrxUhG8B/24khKOiechwY8mApCCvLkQF9Sk21cWB+crIANFYksmTyntc1m/3I6qeBkR/xXyRybqKxqtWF/aogSlUAt5yAGif2Dz48I60PUThyMbY1WVGAosKmQCGiQqAlRLw2/DnaytEroYgw1youWbIVSUZ+IsJAeyG+foshRKZkzBAVzyu/H1O/vixBelGbSipxKE7kBDFT819oa8YbkHp96mV6hbU0ZEJwfXNG/ExXFlvEA2u3UKWvRSxOQpoThvIX3E3d6HXQQpQ4jO0czpOfZ+bksRwBDwfaBPEzvftgxxsQ41n2rh8hRzlKRflvxB/a+OZeu3UFxHAjAW7ol4x6CbT01wI1CsyTj044xohlB4+cDaAlhSqdzj+Yaa2SIi83MYy1mytuWClOUxRCpC2kenPP+RJPqgFqDxoK4o1Ux2FE73S+Uy0bJOWfQQxuA5sFeKH932Drut5m360AG6HEjnC/izZY+PI1tWIrThFaGl7gvw9dV8/nivArRejaY+mZ7HstUCnvEZzZ1cTF2q4trhx/d0ArrkQpdLNGVoJqilo7QuqVGgHHjGAr0DOoaal6u1PoV85xkkgvzWCAu0NcT6eOmcO4nwem0JRupAjz/AySS7HI=";r.create({title:"应用规则感知",type:"info",preset:"dialog",content(){const l=s=>m(sd,{code:s,class:"my-5 overflow-y-auto line-clamp-6",language:"Base64",wordWrap:!0});return x("div",null,[x("p",null,[F("小米已为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," "," ",F("适配了应用布局优化,您可以将此自定义规则通过")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("[应用横屏布局-从分享规则导入]")])," ",F("进行导入并开启")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用布局优化")])," ",F("的开关,即可体验~")]),x("p",null,[F("Tips: 此规则需要搭配最新版的Hyper OS 2.0,老版本的 OS 2 可能由于小米BUG存在较为严重的内存泄露问题,会导致系统越来越卡顿。")]),l&&l(a)])},positiveText:"复制自定义规则到剪贴板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(a)},onNegativeClick:()=>{}})}}},wq={class:"mb-10"},Sq={class:"mt-3"},Fq={class:"mb-3 px-4 sm:px-0"},Eq={class:"flex flex-wrap"},kq={class:"flex"},_q={class:"flex"},Mq=ye({__name:"HomeView",setup(e){const t=A(""),o=hb(),n=ht(),r=Us(),i=di(),a=A(!1),l=A(!1),s=A(null),u=A(null),d=A(null),c=D(()=>({theme:n.isDarkMode?Bt:Ft})),{message:h,modal:f,notification:p}=It(["message","modal","notification"],{configProviderProps:c}),g=L(),v=A(!1),b=A(null);function C(I){return()=>m(Zt,null,{default:()=>m(I)})}const k=async()=>{const[I,R]=await Me(o.getList());I&&f.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>x("p",null,[F("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),R&&f.create({title:"获取成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},w=()=>{r.filterInstalledApps=!r.filterInstalledApps};lt(()=>r.isNeedShowErrorModal,(I,R)=>{I&&(v.value=!0)},{immediate:!1});const _=async()=>{await n.getAndroidApplicationPackageNameList(),await r.initDefault()},M=async()=>{t.value="";const[,I]=await Me(new Promise((R,O)=>{f.create({title:"请粘贴分享规则口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:t.value,"onUpdate:value":oe=>{t.value=oe},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){R("positiveClick")}})}));if(I){a.value=!0;const R=t.value,O=m3(R);if(!(O!=null&&O.length)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,解析")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("口令发生错误,无法正常解析。")]),negativeText:"确定"}),a.value=!1;return}try{const oe=A3(O),y=Va.inflate(oe,{to:"string"}),j=JSON.parse(y);if(j.type!=="embedded"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,该")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("不适用于应用横屏布局。")]),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:()=>x("p",null,[F("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),a.value=!1;return}if(j.comp===1&&n.MIOSVersion&&n.MIOSVersion>1){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,该")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("仅兼容Android 13 - 14 的小米机型。")]),negativeText:"确定"}),a.value=!1;return}if(j.comp===2&&(!n.MIOSVersion||n.MIOSVersion<2)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,该")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("仅兼容Hyper OS 2+的小米机型。")]),negativeText:"确定"}),a.value=!1;return}r.customConfigEmbeddedRulesList[j.name]=j.em,r.customConfigFixedOrientationList[j.name]=j.fo,n.MIOSVersion&&n.MIOSVersion>=2?(j.thirdPartyAppOptimize?r.customThirdPartyAppOptimizeConfig[j.name]=Dr(j.mode):r.sourceThirdPartyAppOptimizeConfig[j.name]?r.customThirdPartyAppOptimizeConfig[j.name]=-1:delete r.customThirdPartyAppOptimizeConfig[j.name],r.customConfigEmbeddedSettingConfig[j.name]={name:j.name,...m0(r.customConfigEmbeddedRulesList[j.name],r.customConfigFixedOrientationList[j.name],j.mode)}):r.systemEmbeddedSettingConfig[j.name]={name:j.name,embeddedEnable:!!["embedded","fullScreen"].includes(j.mode)};const[X,le]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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:Dr(j.mode)}}:{switchAction:{name:j.name,action:["embedded","fullScreen"].includes(j.mode)?"enable":"disable"}}}));X?(f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),a.value=!1):(r.updateMergeRuleList(),await _(),a.value=!1,f.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>n.MIOSVersion&&n.MIOSVersion>=2?x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(j.name,n.installedAppNameList[j.name]||r.applicationName[j.name])])," ",F("的应用导入成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]):x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(j.name,n.installedAppNameList[j.name]||r.applicationName[j.name])])," ",F("的应用导入成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板专区-平行窗口")])," ",F("内")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(j.mode)?"打开":"关闭"])," ",F("该应用的开关再做尝试~")]),positiveText:"确定"}))}catch{f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),a.value=!1}}},E=Nt({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:I=>{E.page=I},onUpdatePageSize:I=>{E.pageSize=I,E.page=1}}),P=A(!1),z=async()=>{l.value=!0,await _();const[I,R]=await Me(rc("miui_embedding_window"));I&&(f.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),l.value=!1),R&&(f.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),l.value=!1)},$=async()=>{await n.getAndroidApplicationPackageNameList(),P.value=!0;const[I,R]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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")}}));I?(f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),P.value=!1):(r.updateMergeRuleList(),P.value=!1,f.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("好耶w,已根据您设备当前的整体应用情况重新")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("修剪模块应用适配列表")])," ",F(",后续每次更新模块或者安装新的应用后,建议重新操作")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("生成定制应用数据")])," ",F("。")])]),negativeText:"确定"}))},G=async()=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(u.value){const[I,R]=await Me(u.value.openDrawer());if(I)console.log("操作取消:",I);else{n.MIOSVersion&&n.MIOSVersion>=2&&(R.thirdPartyAppOptimize?r.customThirdPartyAppOptimizeConfig[R.name]=Dr(R.settingMode):r.sourceThirdPartyAppOptimizeConfig[R.name]?r.customThirdPartyAppOptimizeConfig[R.name]=-1:delete r.customThirdPartyAppOptimizeConfig[R.name]),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,...m0(r.customConfigEmbeddedRulesList[R.name],r.customConfigFixedOrientationList[R.name],R.settingMode)}:r.systemEmbeddedSettingConfig[R.name]={name:R.name,embeddedEnable:!!["embedded","fullScreen"].includes(R.settingMode)};const[O,oe]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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:Dr(R.settingMode)}}:{switchAction:{name:R.name,action:["embedded","fullScreen"].includes(R.settingMode)?"enable":"disable"}}}));O?(f.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(f.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>n.MIOSVersion&&n.MIOSVersion>=2?x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(R.name,n.installedAppNameList[R.name]||r.applicationName[R.name])])," ",F("的应用配置添加成功了OwO~如果应用添加后的规则不生效,可以尝试重启平板再做尝试~")]):x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(R.name,n.installedAppNameList[R.name]||r.applicationName[R.name])])," ",F("的应用配置添加成功了OwO~如果应用添加后的规则不生效,可以尝试重启平板并且在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板专区-平行窗口")])," ",F("内")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(R.settingMode)?"打开":"关闭"])," ",F("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},H=async(I,R)=>{var O;if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(r.systemAppOptimizeConfig[I.name]&&n.MIOSVersion&&n.MIOSVersion>=2){f.create({title:"该应用已受模块保护",type:"warning",preset:"dialog",content:()=>x("p",null,[F("为确保")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("正常横屏工作,模块已保护该应用不允许修改任何配置,如需修改请先前往")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("模块设置")])," ",F("禁用")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("系统应用横屏优化")])," ",F("。")])});return}if(va[I.name]&&va[I.name]&&va[I.name](I),d.value){const[oe,y]=await Me(d.value.openDrawer(I));if(oe)console.log("操作取消:",oe);else{if(n.MIOSVersion&&n.MIOSVersion>=2&&(y.thirdPartyAppOptimize?r.customThirdPartyAppOptimizeConfig[y.name]=Dr(y.settingMode):r.sourceThirdPartyAppOptimizeConfig[y.name]?r.customThirdPartyAppOptimizeConfig[y.name]=-1:delete r.customThirdPartyAppOptimizeConfig[y.name]),y.settingMode==="fullScreen"){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);ae.value?(y.modePayload.fullRule&&(ae.value.fullRule=y.modePayload.fullRule,ae.value.skipSelfAdaptive=!0),n.MIOSVersion&&n.MIOSVersion>=2&&!y.modePayload.fullRule&&ae.value.fullRule&&delete ae.value.fullRule,fa(le.value,ae.value)||(r.customConfigEmbeddedRulesList[I.name]={name:I.name,...ae.value})):y.modePayload.fullRule?r.customConfigEmbeddedRulesList[I.name]={name:I.name,fullRule:y.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}:n.MIOSVersion&&n.MIOSVersion>=2&&(r.customConfigEmbeddedRulesList[I.name]={name:I.name,skipSelfAdaptive:!0}),fe.value?(y.modePayload.hasOwnProperty("isShowDivider")&&(fe.value.isShowDivider=y.modePayload.isShowDivider),y.modePayload.hasOwnProperty("supportFullSize")&&(fe.value.supportFullSize=y.modePayload.supportFullSize),n.MIOSVersion&&n.MIOSVersion>=2?(fe.value.hasOwnProperty("disable")&&(delete fe.value.disable,fe.value.supportModes="full,fo",fe.value.defaultSettings="full"),fe.value.hasOwnProperty("compatChange")&&delete fe.value.compatChange):y.modePayload.hasOwnProperty("skipSelfAdaptive")&&(fe.value.disable=y.modePayload.skipSelfAdaptive),fa(Fe.value,fe.value)||(r.customConfigFixedOrientationList[I.name]={name:I.name,...fe.value})):r.customConfigFixedOrientationList[I.name]={name:I.name,...y.modePayload.isShowDivider?{isShowDivider:!0}:{},...y.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...y.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(y.settingMode==="fixedOrientation"){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);if(fe.value){if(fe.value.hasOwnProperty("disable")&&delete fe.value.disable,fe.value.hasOwnProperty("isScale")&&delete fe.value.isScale,y.modePayload.ratio!==void 0?fe.value.ratio=y.modePayload.ratio:delete fe.value.ratio,y.modePayload.foRelaunch!==void 0?fe.value.relaunch=y.modePayload.foRelaunch:delete fe.value.relaunch,n.MIOSVersion&&n.MIOSVersion>=2)if(fe.value.supportModes="full,fo",fe.value.defaultSettings="fo",fe.value.skipSelfAdaptive=!0,y.modePayload.hasOwnProperty("forceFixedOrientation")&&y.modePayload.forceFixedOrientation)if(fe.value.compatChange){const ie=new Set((O=fe.value.compatChange)==null?void 0:O.split(","));ie.add("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"),fe.value.compatChange=[...ie].join(",")}else fe.value.compatChange="OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT";else fe.value.hasOwnProperty("compatChange")&&delete fe.value.compatChange;fa(Fe.value,fe.value)||(r.customConfigFixedOrientationList[I.name]={name:I.name,...fe.value})}else r.customConfigFixedOrientationList[I.name]={name:I.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&&y.modePayload.forceFixedOrientation?{compatChange:"OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"}:{},...y.modePayload.ratio!==void 0?{ratio:y.modePayload.ratio}:{},...y.modePayload.foRelaunch!==void 0?{relaunch:y.modePayload.foRelaunch}:{}}}if(y.settingMode==="disabled"&&I.settingMode!==y.settingMode){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);fe.value?(fe.value.skipSelfAdaptive=!0,fe.value.disable=!0,fe.value.hasOwnProperty("compatChange")&&delete fe.value.compatChange,fa(Fe.value,fe.value)||(r.customConfigFixedOrientationList[I.name]={name:I.name,...fe.value})):r.customConfigFixedOrientationList[I.name]={name:I.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(y.settingMode==="embedded"){if(I.settingMode!==y.settingMode&&I.ruleMode==="custom"&&I.isSupportEmbedded&&delete r.customConfigEmbeddedRulesList[I.name],r.customConfigEmbeddedRulesList[I.name])y.modePayload.hasOwnProperty("splitRatio")&&(r.customConfigEmbeddedRulesList[I.name].splitRatio=y.modePayload.splitRatio),y.modePayload.hasOwnProperty("relaunch")&&(r.customConfigEmbeddedRulesList[I.name].relaunch=y.modePayload.emRelaunch);else{let le=!1;y.modePayload.hasOwnProperty("splitRatio")&&(le=!0),y.modePayload.hasOwnProperty("emRelaunch")&&(le=!0),le&&(r.customConfigEmbeddedRulesList[I.name]={...r.isPatchMode?r.patchEmbeddedRulesList[I.name]:r.sourceEmbeddedRulesList[I.name],...y.modePayload.hasOwnProperty("splitRatio")&&{splitRatio:y.modePayload.splitRatio},...y.modePayload.hasOwnProperty("emRelaunch")&&{relaunch:y.modePayload.emRelaunch}})}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);fe.value&&(fe.hasOwnProperty("disable")&&delete fe.value.disable,fe.hasOwnProperty("defaultSettings")&&delete fe.value.defaultSettings,fe.hasOwnProperty("skipSelfAdaptive")||(fe.value.skipSelfAdaptive=!0),fe.hasOwnProperty("compatChange")&&delete fe.value.compatChange),fe.value&&(ae.hasOwnProperty("skipSelfAdaptive")||(ae.value.skipSelfAdaptive=!0)),fa(le.value,ae.value)||(r.customConfigFixedOrientationList[I.name]={name:I.name,...fe.value}),fa(Fe.value,fe.value)||(r.customConfigEmbeddedRulesList[I.name]={name:I.name,...ae.value})}}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);I.settingMode!==y.settingMode&&(r.customConfigEmbeddedSettingConfig[I.name]={name:I.name,...m0(ae.value,fe.value,y.settingMode)})}else r.systemEmbeddedSettingConfig[I.name]={name:I.name,embeddedEnable:!!["embedded","fullScreen"].includes(y.settingMode)};const[j,X]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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:I.name,action:Dr(y.settingMode)}}:{switchAction:{name:I.name,action:["embedded","fullScreen"].includes(y.settingMode)?"enable":"disable"}}}));j?(f.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),y.loadingCallback&&y.loadingCallback()):(f.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>n.MIOSVersion&&n.MIOSVersion>=2?x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("的应用配置更新成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]):x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("的应用配置更新成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板专区-平行窗口")])," ",F("内")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(y.settingMode)?"打开":"关闭"])," ",F("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),y.loadingCallback&&y.loadingCallback(),y.closeCallback&&y.closeCallback())}}},q=async(I,R,O,oe)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,不兼容折叠屏设备!");return}if(I==="cleanCustomRule"){const y=f.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("清除自定义规则后,你对")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(O.name,O.applicationName)])," ",F("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("模块规则")])," ",F(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{y.loading=!0,r.customConfigEmbeddedRulesList[O.name]&&delete r.customConfigEmbeddedRulesList[O.name],r.customConfigFixedOrientationList[O.name]&&delete r.customConfigFixedOrientationList[O.name],r.customConfigEmbeddedSettingConfig[O.name]&&delete r.customConfigEmbeddedSettingConfig[O.name],r.customThirdPartyAppOptimizeConfig[O.name]&&delete r.customThirdPartyAppOptimizeConfig[O.name];const[j,X]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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:Dr(Wv(r.isPatchMode?r.patchEmbeddedRulesList[O.name]:r.sourceEmbeddedRulesList[O.name],r.isPatchMode?r.patchFixedOrientationList[O.name]:r.sourceFixedOrientationList[O.name]))}}:{switchAction:{name:O.name,action:(r.isPatchMode?r.patchEmbeddedRulesList[O.name]:r.sourceEmbeddedRulesList[O.name])?"enable":"disable"}}}));j?(f.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),y.loading=!1):(f.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),y.loading=!1,r.updateMergeRuleList())}})}if(I==="shareCustomRule"){const y={name:O.name,cmpt:n.MIOSVersion&&n.MIOSVersion>=2?2:1,em:{name:O.name,...O.embeddedRules},fo:{name:O.name,...O.fixedOrientationRule},type:"embedded",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:O.settingMode,...n.MIOSVersion&&n.MIOSVersion>=2?{thirdPartyAppOptimize:O.thirdPartyAppOptimize}:void 0},j=JSON.stringify(y),X=Va.deflate(j,{level:9,memLevel:9,windowBits:15}),le=new Uint8Array(X),ae=z3(le),[Fe]=await Me(navigator.clipboard.writeText(`我分享了一个[应用横屏布局]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: -${ae}`));if(Fe){f.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("复制")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(O.name,O.applicationName)])," ",F("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("长度过大。")]),negativeText:"确定"});return}else f.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("好耶w,复制")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(O.name,O.applicationName)])," ",F("分享口令成功了~")]),x("p",null,[F("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("长度过大。")]),x("p",null,[F("分享口令导入入口位于")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局- 从分享口令导入")])," ",F("。")])]),positiveText:"确定"})}},W=(I,R)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}f.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("模块已对")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})};function L(){return[{title:"应用名称",minWidth:250,key:"name",render(I,R){return x("div",null,[I.applicationName&&x("p",null,[I.applicationName]),I.name&&x("p",null,[x("span",{class:{hidden:!I.applicationName}},[F("(")]),I.name,x("span",{class:{hidden:!I.applicationName}},[F(")")])]),va[I.name]&&x(rt("n-button"),{class:"mt-1",size:"tiny",ghost:!0,type:"warning",onClick:()=>va[I.name]&&va[I.name](I)},{default:()=>[F("应用不兼容感知")]}),ba[I.name]&&ba[I.name].isShow&&ba[I.name].isShow()&&x(rt("n-button"),{class:"mt-1",size:"tiny",ghost:!0,type:"info",onClick:()=>ba[I.name]&&ba[I.name].onClick&&ba[I.name].onClick(I)},{default:()=>[F("应用规则感知")]})])}},{title:"规则来源",minWidth:100,key:"ruleMode",render(I,R){const O={icon:I.ruleMode==="custom"?mb:R3};if(I.ruleMode==="custom"){const oe=[{label:"分享自定义规则",key:"shareCustomRule",icon:C(fd)},{label:"清除自定义规则",key:"cleanCustomRule",icon:C(w9)}];return x(rt("n-dropdown"),{onSelect:(y,j)=>q(y,j,I),size:"large",trigger:"click",options:oe},{default:()=>[x(rt("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[F("自定义规则")],...O})]})}return x(rt("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>W(I)},{default:()=>[F("模块规则")],...O})}},{title:"规则修复",minWidth:100,key:"setting",render(I,R){const O={icon:Cq},oe=(y,j)=>{f.create({title:"想修复应用规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("由于系统BUG,部分情况下会导致应用当前适配与实际不符,模块可以主动修复")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(y.name,y.applicationName)])," ",F("由于系统错误的兼容性配置导致应用布局异常的问题,确定要继续吗?")]),positiveText:"确定修复",negativeText:"我再想想",onPositiveClick:async()=>{const[X,le]=await Me(M9(y.name));if(X)f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])});else{if(n.MIOSVersion&&n.MIOSVersion>=2){const[ae,Fe]=await Me(Pj(y.name,Dr(y.settingMode)));ae&&(i.error("SetAppModeErr",ae),f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])}))}else{const[ae,Fe]=await Me(Bj(y.name,["embedded","fullScreen"].includes(y.settingMode)?"enable":"disable"));ae&&(i.error("SwitchActionErr",ae),f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])}))}f.create({title:"修复应用规则成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,修复")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(y.name,y.applicationName)])," ",F("的应用规则成功了OwO~")])})}}})};return x("div",null,[x(rt("n-button"),{size:"small",dashed:!0,type:"warning",onClick:()=>oe(I)},{default:()=>[F("规则修复")],...O})])}},{title:"当前规则",minWidth:100,key:"settingMode",render(I,R){const O={icon:pb},oe={embedded:{type:"success",name:"平行窗口",onClick(y,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}},fullScreen:{type:"info",name:"全屏",onClick(y,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备不兼容折叠屏设备!")])});return}H(y)}},fixedOrientation:{type:"warning",name:"居中布局",onClick(y,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}},disabled:{type:"error",name:"原始布局",onClick(y,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}}};return x(rt("n-button"),{size:"small",strong:!0,dashed:!0,type:oe[I.settingMode].type,onClick:()=>oe[I.settingMode].onClick(I,R)},{default:()=>[oe[I.settingMode].name],...O})}}]}return ut(()=>{kt(()=>{r.isNeedShowReloadPathModeDialog&&Rt(async()=>{const[,I]=await Me(new Promise((R,O)=>{f.create({title:"是否需要重新生成定制应用数据?",type:"info",preset:"dialog",content:()=>x("p",null,[F("检测到您最近已经更新了模块版本并且开启了")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("定制模式")])," ",F(",模块需要重新操作")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("生成定制应用数据")])," ",F(",确定要继续吗?")]),positiveText:"确定",negativeText:"取消",onPositiveClick(){R("success")},onNegativeClick(){O("cancel")},onMaskClick(){O("cancel")},onClose(){O("cancel")}})}));I&&$(),r.isNeedShowReloadPathModeDialog=!1,n.needReloadData=!1})})}),(I,R)=>{const O=rt("n-alert"),oe=rt("n-input-group"),y=rt("n-card");return Re(),Oe(ft,null,[T("main",wq,[T("div",Sq,[T("div",Fq,[R[12]||(R[12]=T("h3",{class:xe("text-base font-semibold leading-7")},[T("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient( + )`}},"完美横屏应用计划 For Web UI",2),Ge("",!0)]),T("div",Sj,[T("button",{onClick:h[3]||(h[3]=()=>S(i).warning("此区域尚未开放,请以后再来探索吧~")),type:"button",class:"m-2.5 p-2.5 text-gray-400 hover:text-gray-500"},h[11]||(h[11]=[T("span",{class:"sr-only"},"消息中心",-1),T("svg",{class:"icon h-7 w-7","aria-hidden":"true"},[T("use",{"xlink:href":"#icon-xiaoxi"})],-1)]))])])],2)]),T("main",null,[T("div",Fj,[Es(c.$slots,"default")])])])]))}}),k9=ye({__name:"ErrorModal",props:{modelValue:{type:Boolean},errorLogging:{}},setup(e,{emit:t}){const o=e;A(!1);const n=t,r=A(o.modelValue);lt(()=>o.modelValue,a=>{r.value=a});const i=()=>{n("update:modelValue",!1)};return(a,l)=>{const s=rt("n-alert"),u=rt("n-card"),d=rt("n-modal");return Re(),Tt(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:K(()=>[x(u,{bordered:!1},{default:K(()=>[(Re(!0),Oe(ft,null,wi(o.errorLogging,c=>(Re(),Tt(s,{title:`[发生错误] ${c.type}`,class:"mb-5",type:"error"},{default:K(()=>[T("p",null,"错误描述:无法获取"+Ye(c.title),1),T("p",null,"错误详情:"+Ye(c.msg),1)]),_:2},1032,["title"]))),256))]),_:1})]),_:1},8,["show"])}}}),kj={class:"splash-screen"},_j=ye({__name:"SplashScreen",setup(e){return ht(),(t,o)=>(Re(),Oe("div",kj,o[0]||(o[0]=[T("div",{class:"flex h-full flex-col items-center justify-center"},[T("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]"},"完美横屏应用计划"),T("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)])))}}),_9=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Mj=_9(_j,[["__scopeId","data-v-1cac3c56"]]),Rj="modulepreload",zj=function(e){return"/"+e},n5={},kn=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=zj(s),s in n5)return;n5[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":Rj,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)})},Aj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Pj=()=>{const e="cat /product/etc/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Bj=(e,t)=>{const o=`cmd miui_embedding_window set-appMode ${e} ${t}`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):n(a)}}),o)},$j=(e,t)=>{const o=`cmd miui_embedding_window ${t} ${e}`;return ke(new Promise(async(n,r)=>{{const{errno:i,stdout:a,stderr:l}=await Se(o);i?r(l):n(a)}}),o)},Dj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Tj=()=>{const e="cat /product/etc/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Ij=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_rules_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Oj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/fixed_orientation_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Lj=()=>{const e="cat /data/system/users/0/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Hj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Nj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/embedded_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Vj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/os2_third_party_app_optimize/third_party_app_optimize.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Wj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/os2_system_app_optimize/system_app_optimize.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},jj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/third_party_app_optimize.prop";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},M9=e=>ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(`am compat reset-all ${e}`);n?o(i):t(r)}}),"resetApplicationCompats"),wa=e=>ke(new Promise(async(t,o)=>{{const n=[],r=[],i=ht();if(i.MIOSVersion&&i.MIOSVersion>=2){if(e.customThirdPartyAppOptimizeConfigProp){const{errno:p,stdout:g,stderr:v}=await Se(`echo '${e.customThirdPartyAppOptimizeConfigProp}' > /data/adb/MIUI_MagicWindow+/config/third_party_app_optimize.prop`);p?n.push({type:"customThirdPartyAppOptimizeConfigProp",name:"[第三方应用横屏优化]第三方应用横屏优化配置文件",message:v}):r.push({type:"customThirdPartyAppOptimizeConfigProp",name:"[第三方应用横屏优化]第三方应用横屏优化配置文件",message:"更新成功"})}if(e.thirdPartyAppOptimizeConfigRunnerShell){const{errno:p,stdout:g,stderr:v}=await Se(`echo '${e.thirdPartyAppOptimizeConfigRunnerShell}' > /data/adb/MIUI_MagicWindow+/config/third_party_app_optimize_runner.sh`);p?n.push({type:"thirdPartyAppOptimizeConfigRunnerShell",name:"[第三方应用横屏优化]第三方应用横屏优化运行脚本",message:v}):r.push({type:"thirdPartyAppOptimizeConfigRunnerShell",name:"[第三方应用横屏优化]第三方应用横屏优化运行脚本",message:"更新成功"})}}if(e.isPatchMode){const{errno:p,stdout:g,stderr:v}=await Se(`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:C,stderr:k}=await Se(`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:w,stdout:_,stderr:M}=await Se(`echo '${e.patchEmbeddedSettingConfigXML}' > /data/adb/MIUI_MagicWindow+/patch_rule/embedded_setting_config.xml`);w?n.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:M}):r.push({type:"patchEmbeddedSettingConfigXML",name:"[定制模式]应用横屏布局配置文件",message:"更新成功"})}}const{errno:a,stdout:l,stderr:s}=await Se(`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 Se(`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 Se(`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 Se(`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 Me(M9(e.setAppMode.name));p&&n.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:p}),g&&r.push({type:"resetApplicationCompat",name:"[模块]重置应用兼容性",message:g})}const[h,f]=await Me(rc("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 Se(`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 Se(`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})}})),Uj={"com.lbe.security.miui":1,"com.miui.player":1,"com.miui.fm":1,"com.miui.hybrid":1,"com.miui.securitycenter":1,"com.miui.compass":1,"com.miui.contentextension":1,"com.miui.misound":1,"com.miui.voiceassist":1,"com.miui.securityadd":1},Kj={"com.miui.touchassistant":1,"com.miui.whitenoise":1,"com.tencent.mobileqq":1,"com.tencent.mm":1,"com.alibaba.android.rimet":1,"com.coolapk.market":1,"com.sina.weibo":1,"com.baidu.tieba":1,"com.xuetangx.ykt":1,"io.github.vvb2060.magisk":1,"com.topjohnwu.magisk":1,"io.github.huskydg.magisk":1,"io.github.a13e300.ksuwebui":1,"me.weishu.kernelsu":1,"me.bmax.apatch":1,"com.dna.tools":1,"com.sevtinge.hyperceiler":1,"com.github.kr328.clash.foss":1,"com.github.kr328.clash":1,"com.github.metacubex.clash.meta":1,"com.rocket.e5b382b19324e0a":1,"dev.miuiicons.pedroz":1,"com.tencent.androidqqmail":1,"com.jingdong.app.mall":1,"com.tencent.wework":1,"com.tencent.weworkenterprise":1,"com.taobao.trip":1,"com.fenbi.android.leo":1,"com.duokan.reader":1,"com.xiaomi.shop":1,"com.xiaomi.smarthome":1,"com.youdao.dict":1,"com.netease.uu":1,"com.lemon.lv":1,"com.valvesoftware.android.steam.community":1,"com.douban.book.reader":1,"com.amazon.kindlefc":1,"com.alicloud.databox":1,"com.huawei.appmarket":1,"com.huawei.smarthome":1,"mark.via":1,"com.fenbi.android.servant":1,"com.fenbi.android.zhaojiao":1,"com.eusoft.eudic":1,"com.eusoft.ting.en":1,"com.cnki.android.cnkimobile":1,"com.zui.calculator":1,"com.jd.app.reader":1,"com.huajiao":1,"com.youku.phone":1,"com.tencent.qqlive":1,"com.xiaomi.gamecenter":1,"com.kugou.android":1,"com.ss.android.ugc.aweme":1,"com.ss.android.ugc.live":1,"com.ss.android.ugc.aweme.lite":1,"com.smile.gifmaker":1,"com.kuaishou.nebula":1,"com.bdatu.geography":1,"com.ubestkid.beilehu.android":1,"youqu.android.todesk":1,"com.tencent.docs":1,"com.tencent.pao":1,"com.estrongs.android.pop":1,"com.adobe.reader":1,"com.microsoft.skydrive":1,"cn.com.langeasy.LangEasyLexis":1,"cn.ticktick.task":1,"com.google.earth":1,"com.omarea.vtools":1,"com.plan.kot32.tomatotime":1,"com.farplace.qingzhuo":1,"com.xiachufang":1,"com.happyteam.dubbingshow":1,"czh.mindnode":1,"com.chrissen.card":1,"top.onepix.timeblock":1,"www.imxiaoyu.com.musiceditor":1,"com.mmbox.xbrowser":1,"com.flyersoft.moonreader":1,"com.flyersoft.moonreaderp":1,"com.yikaobang.yixue":1,"com.kwai.m2u":1,"com.qiyi.video.pad":1,"com.baidu.baidutranslate":1,"org.zwanoo.android.speedtest":1,"com.xiwang.zaixian":1,"com.yozo.office":1,"com.taobao.taobao":1,"cn.canva.editor":1,"com.singularity.tiangong":1,"com.mubu.app":1,"chuxin.shimo.shimowendang":1,"com.roblox.client":1,"com.netease.cloudmusic":1,"com.netease.mc.mi":1,"com.netease.x19":1,"com.netease.mc.huawei":1,"com.netease.mc.vivo":1,"com.netease.mc.oppo":1,"com.netease.mc.honor":1,"com.netease.mc.bilibili":1,"com.netease.mc.nearme.gamecenter":1,"com.netease.mc":1,"com.netease.mctest":1,"com.hicloud.browser":1,"com.hihonor.health":1,"com.ss.android.ugc.livelite":1,"com.oray.sunlogin":1,"com.microsoft.todos":1,"com.jdjdc.jdfastjdc":1,"com.google.android.apps.translate":1,"com.adsk.sketchbook":1,"com.pick.sketchbook":1,"com.ihuman.recite":1,"com.ctfile":1,"com.quark.scanking":1,"com.hunantv.imgo.activity":1,"com.sohu.sohuvideo":1,"com.wuba.town.client":1,"com.yhqx.player":1,"com.lixiangdong.mediaplayer":1,"cn.ylkj.zmjh":1,"com.yixinli.muse":1,"com.antutu.ABenchMark":1,"cn.honor.qinxuan":1,"com.fenbi.android.zenglish.hd":1,"com.huawei.videoeditor":1,"com.huawei.genexcloud.speedtest":1,"com.huawei.ch18":1,"com.hihonor.dz.reader":1,"com.hihonor.vmall":1,"com.hihonor.magichome":1,"com.hihonor.heartstudy":1,"cn.ieway.evcapture":1,"cn.ieway.evplayer2":1,"com.aliyun.wuying.enterprise":1,"com.jingdong.app.reader.campus":1,"com.UCMobile":1,"com.quark.browser":1,"com.smzdm.client.android":1,"com.baidu.netdisk":1,"com.mfcloudcalculate.networkdisk":1,"com.chinamobile.mcloud":1,"info.muge.appshare":1,"com.x7890.shortcutcreator":1,"org.kde.kdeconnect_tp":1,"com.tencent.weread":1,"com.larus.nova":1,"com.moonshot.kimichat":1,"com.baidu.newapp":1,"com.tencent.hunyuan.app.chat":1,"jp.pokemon.pokemonsleep":1,"com.heytap.headset":1,"com.twitter.android":1,"cn.jagat.main":1,"com.furrybar.chat.app":1,"me.ele":1,"com.max.xiaoheihe":1,"com.ruanmei.ithome":1,"com.youdao.translator":1,"com.netflix.NGP.MonumentValley3":1,"com.ophone.reader.ui":1,"studio.fountainhead.habicat":1,"com.hihonor.appmarket":1,"cn.wenyu.bodian":1,"com.zte.smarthome":1,"com.phoenix.read":1,"com.bilibili.app.in":1,"com.bilibili.app.blue":1,"com.joey.colors.simple.c":1,"com.hanfuhui":1,"com.hurantech.cherrysleep":1,"tech.caicheng.youshi":1,"org.panda.words":1,"com.tencent.phoenix":1,"com.tencent.wetype":1,"com.tencent.wehear":1,"com.tencent.weishi":1,"com.ctg.itrdc.clouddesk":1,"com.oppo.store":1,"com.pupumall.customer":1,"me.tangke.gamecores":1,"com.xunmeng.pinduoduo":1,"com.vblast.flipaclip":1,"com.gstarmc.android":1,"com.quickview3d":1,"com.aihuishou.opt":1,"com.duolingo":1,"cn.etouch.ecalendar.life":1,"cn.etouch.ecalendar":1,"com.gamestar.pianoperfect":1,"me.yoopu.app.songbook":1,"com.autonavi.minimap":1,"com.tencent.map":1,"com.baidu.BaiduMap":1,"com.yuzebin.pokemon":1,"com.CDA.StructureMaster":1,"com.cxincx.xxjz":1},y0={...Uj,...Kj},Us=Gi("embedded",()=>{const e=A(!1),t=A(!1),o=A({}),n=A(!1),r=A({}),i=A({}),a=A({}),l=A({}),s=A({}),u=A({}),d=A({}),c=A({}),h=A({}),f=A({}),p=A({}),g=A({}),v=D(()=>{const O={...p.value};for(const oe in g.value){const y=g.value[oe];y===-1?delete O[oe]:O[oe]=y}return O}),b=D(()=>{const O=ht(),oe=new Set([...Object.keys(i.value),...Object.keys(s.value),...O.installedAndroidApplicationPackageNameList,...Object.keys(y0)]),y=Object.entries(r.value).filter(([j])=>oe.has(j));return Object.fromEntries(y)}),C=D(()=>{const O=ht(),oe=new Set([...Object.keys(i.value),...Object.keys(s.value),...O.installedAndroidApplicationPackageNameList,...Object.keys(y0)]),y=Object.entries(l.value).filter(([j])=>oe.has(j));return Object.fromEntries(y)}),k=D(()=>{const O=ht(),oe=new Set([...Object.keys(i.value),...Object.keys(s.value),...O.installedAndroidApplicationPackageNameList,...Object.keys(y0)]),y=Object.entries(c.value).filter(([j])=>oe.has(j));return Object.fromEntries(y)}),w=A([]),_=D(()=>{const O=ht(),oe=new Set(O.installedAndroidApplicationPackageNameList);return w.value.reduce((j,X)=>(oe.has(X.name)&&j.push(X.name),j),[])}),M=D(()=>{const O=ht(),oe=new Set(O.installedAndroidApplicationPackageNameList);return w.value.reduce((j,X)=>{var le;return oe.has(X.name)&&(le=X.fixedOrientationRule)!=null&&le.compatChange&&j.push(X.name),j},[])}),E=A(""),P=A(""),z=u7(O=>{E.value=O.trim().toLowerCase()},500);lt(P,O=>{z(O)});const $=D(()=>{const O=w.value,oe=ht(),y=new Set(oe.installedAndroidApplicationPackageNameList),j=t.value,X=E.value,le=o.value,ae=v.value,Fe=oe.installedAppNameList;return O.reduce((fe,ue)=>{const we=ue.name.trim().toLowerCase();Fe[ue.name]&&!ue.applicationName&&(ue.applicationName=Fe[ue.name]),le[ue.name]&&!ue.applicationName&&(ue.applicationName=le[ue.name]),ae[ue.name]?ue.thirdPartyAppOptimize=!0:ue.thirdPartyAppOptimize=!1;const ie=ue.applicationName?ue.applicationName.toLowerCase():"";return!we.includes(X)&&!ie.includes(X)||j&&!y.has(ue.name)||fe.push(ue),fe},[]).sort((fe,ue)=>fe.ruleMode==="custom"&&ue.ruleMode!=="custom"?-1:fe.ruleMode!=="custom"&&ue.ruleMode==="custom"?1:fe.name.localeCompare(ue.name))}),G=D(()=>W.length>0),H=D(()=>w.value.length),q=A(!0),W=Nt([]),L=D(()=>new Set([...e.value?Object.keys(b.value):Object.keys(r.value),...e.value?Object.keys(C.value):Object.keys(l.value),...Object.keys(a.value),...Object.keys(u.value)]));function I(){const O=ht();w.value=U4(e.value?b.value:r.value,e.value?C.value:l.value,O.MIOSVersion&&O.MIOSVersion>=2?e.value?k.value:c.value:d.value,a.value,u.value,h.value)}async function R(){const O=ht();q.value=!0;const y=(await kn(()=>import("./applicationName-exrf0CFH.js"),[])).default;o.value=y;const[j,X]=await Me(cN());j?W.push({type:"getIsPatchModeErr",title:"补丁模式",msg:j}):X==="true"?e.value=!0:e.value=!1;const le=[Aj(),Pj(),Ij(),Dj(),Tj(),Oj(),Hj(),Lj(),Nj(),Vj(),jj(),Wj()],[[ae,Fe],[fe,ue],[we,ie],[be,ze],[pe,U],[N,ge],[Ce,se],[te,ce],[Q,re],[he,ne],[Y,de],[Ee,Ie]]=await Promise.all(le.map(Qe=>Me(Qe)));ae&&(r.value={},W.push({type:"sourceEmbeddedRulesList",title:"[模块]平行窗口配置文件",msg:ae})),Fe&&(r.value=hn(Fe,"package_config","package")),fe&&(i.value={},W.push({type:"SystemEmbeddedRulesList",title:"[系统]平行窗口配置文件",msg:fe})),ue&&(i.value=hn(ue,"package_config","package")),we&&(a.value={}),ie&&(a.value=hn(ie,"package_config","package",!0),console.log(a.value,"customConfigEmbeddedRulesList.value")),be&&(l.value={},W.push({type:"sourceFixedOrientationList",title:"[模块]信箱模式配置文件",msg:be})),ze&&(l.value=hn(ze,"package_config","package")),pe&&(s.value={}),U&&(s.value=hn(U,"package_config","package")),N&&(u.value={}),ge&&(u.value=hn(ge,"package_config","package",!0)),Ce&&(c.value={}),se&&(c.value=hn(se,"setting_rule","setting")),te&&(d.value={}),ce&&(d.value=hn(ce,"setting_rule","setting")),Q&&(h.value={}),re&&(h.value=hn(re,"setting_rule","setting",!0)),he&&(p.value={}),ne&&(p.value=g0(ne)),Y&&(g.value={}),de&&(g.value=g0(de)),Ee&&(f.value={}),Ie&&(f.value=g0(Ie)),di().info("deviceStore.MIOSVersion",O.MIOSVersion),w.value=U4(e.value?b.value:r.value,e.value?C.value:l.value,O.MIOSVersion&&O.MIOSVersion>=2?e.value?k.value:c.value:d.value,a.value,u.value,h.value),W.length||(q.value=!1,O.needReloadData&&e.value&&(n.value=!0))}return{sourceEmbeddedRulesList:r,sourceFixedOrientationList:l,patchEmbeddedRulesList:b,patchFixedOrientationList:C,patchEmbeddedSettingConfig:k,customConfigEmbeddedRulesList:a,customConfigFixedOrientationList:u,customConfigEmbeddedSettingConfig:h,sourceThirdPartyAppOptimizeConfig:p,customThirdPartyAppOptimizeConfig:g,mergeThirdPartyAppOptimizeConfig:v,systemAppOptimizeConfig:f,filterSetAppModeAppList:_,filterResetAppCompatAppList:M,systemEmbeddedSettingConfig:d,systemEmbeddedRulesList:i,systemFixedOrientationList:s,mergeRuleList:w,filterInstalledApps:t,filterMergeRuleList:$,searchKeyWord:P,errorLogging:W,isNeedShowErrorModal:G,loading:q,ruleCount:H,allPackageName:L,applicationName:o,isPatchMode:e,initDefault:R,updateMergeRuleList:I,isNeedShowReloadPathModeDialog:n}},{persist:{pick:["filterInstalledApps"]}}),R9=Gi("font",()=>{const e=A("MiSans"),t=D(()=>`${e.value}, system-ui, sans-serif`);return{currentFont:e,setFont:n=>{e.value=n},currentFontFamily:t}},{persist:{pick:["currentFont"]}}),Gj=()=>{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 Se(o);if(i&&r(l),a)try{const s=a.split(` +`);n(s)}catch(s){r(s)}}})},qj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/dot_black_list.json";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(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)},Zj=()=>{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 Me(Gj());if(r){const i=async s=>{const u=`echo "$(${e} ${t} "SELECT productData FROM cloud_all_data WHERE dataId='${s}';")"`;return ke(new Promise(async(d,c)=>{const{errno:h,stdout:f,stderr:p}=await Se(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 Me(Promise.all(r.map(s=>i(s))));a&&n(a),l&&o(l)}}})},Xj=()=>{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 Se(e);n?o(i):r==="exists"?t(r):o(r)}})},XX=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 ke(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 ke(new Promise(async(f,p)=>{const{errno:g,stdout:v,stderr:b}=await Se(h);g?(n.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:b}),p(b)):(r.push({type:"updateCustomDotBlackListJSON",name:"[自定义规则]窗口控制器配置文件",message:"更新成功"}),f(v))}),h)},[u,d]=await Me(s(l));if(u)a(u);else{const c=e.sourceDotBlackList.map(g=>{const v=Sa(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 ke(new Promise(async(C,k)=>{const{errno:w,stdout:_,stderr:M}=await Se(b);w?k(M):_==="1"?C(_):k(_)}),b)},[f,p]=await Me(Promise.all(c.map(g=>h(g.dataId,g.productData))));f&&a(f),p&&i({type:"success",message:"更新成功",errorLogging:n,successLogging:r})}}}),"updateDotBlackList")},Yj=Gi("dotBlackList",()=>{const e=A(!1),t=A([]),o=D(()=>{if(t.value.length===0)return[];const v=t.value[0].dataList,b=new Set(v);return t.value.slice(1).forEach(C=>{const k=new Set(C.dataList);for(const w of b)k.has(w)||b.delete(w)}),v.filter(C=>b.has(C))}),n=A([]),r=D(()=>{const b=ht().installedAppNameList,C=o.value.map(M=>{const E=n.value.includes(M),P=b[M]||a.value[M];return{name:M,applicationName:P,ruleMode:E?"custom":"system",status:!0}}),k=n.value.filter(M=>!o.value.includes(M)).map(M=>{const E=b[M]||a.value[M];return{name:M,applicationName:E,ruleMode:"custom",status:!1}}),w=Math.floor(C.length/2);return[...C.slice(0,w),...k,...C.slice(w)]}),i=D(()=>{const v=d.value.trim().toLowerCase(),b=r.value,C=ht();return b.reduce((k,w)=>{const _=w.name.trim().toLowerCase(),M=w.applicationName?w.applicationName.toLowerCase():"";if(!_.includes(v)&&!M.includes(v))return k;const E=new Set(C.installedAndroidApplicationPackageNameList);return e.value&&!E.has(w.name)||k.push(w),k},[]).sort((k,w)=>k.ruleMode==="custom"&&w.ruleMode!=="custom"?-1:k.ruleMode!=="custom"&&w.ruleMode==="custom"?1:k.name.localeCompare(w.name))}),a=A({}),l=A([]),s=D(()=>f.length>0),u=D(()=>l.value.length),d=A(""),c=A(!0),h=A(!1),f=Nt([]),p=D(()=>new Set([...n.value,...o.value]));async function g(){c.value=!0;const b=(await kn(()=>import("./applicationName-exrf0CFH.js"),[])).default;a.value=b;const[C,k]=await Me(Xj());if(C&&(h.value=!1),k){h.value=!0;const[w,_]=await Me(Zj());w&&(t.value=[]),_&&(t.value=_);const[M,E]=await Me(qj());M&&(n.value=[]),E&&(n.value=E),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"]}}),Qj=()=>{const e="cat /data/adb/modules/MIUI_MagicWindow+/common/source/autoui_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},Jj=()=>{const e="cat /data/adb/MIUI_MagicWindow+/config/autoui_list.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},eU=()=>{const e="cat /data/system/users/0/autoui_setting_config.xml";return ke(new Promise(async(t,o)=>{{const{errno:n,stdout:r,stderr:i}=await Se(e);n?o(i):t(r)}}),e)},wl=e=>ke(new Promise(async(t,o)=>{{const n=[],r=[],{errno:i,stdout:a,stderr:l}=await Se(`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 Se(`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 Me(rc("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 Se(`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})}})),C3=Gi("autoui",()=>{const e=A(!1),t=A({}),o=A({}),n=A({}),r=A({}),i=A([]),a=D(()=>{const g=u.value.trim().toLowerCase(),v=i.value,b=ht(),C=b.installedAppNameList;return v.reduce((k,w)=>{const _=w.name.trim().toLowerCase();C[w.name]&&!w.applicationName&&(w.applicationName=C[w.name]),n.value[w.name]&&!w.applicationName&&(w.applicationName=n.value[w.name]);const M=w.applicationName?w.applicationName.toLowerCase():"";if(!_.includes(g)&&!M.includes(g))return k;const E=new Set(b.installedAndroidApplicationPackageNameList);return e.value&&!E.has(w.name)||k.push(w),k},[]).sort((k,w)=>k.ruleMode==="custom"&&w.ruleMode!=="custom"?-1:k.ruleMode!=="custom"&&w.ruleMode==="custom"?1:k.name.localeCompare(w.name))}),l=D(()=>c.length>0),s=D(()=>i.value.length),u=A(""),d=A(!0),c=Nt([]),h=D(()=>new Set([...Object.keys(t.value),...Object.keys(o.value)]));function f(){i.value=K4(t.value,o.value,r.value)}async function p(){d.value=!0;const v=(await kn(()=>import("./applicationName-exrf0CFH.js"),[])).default;n.value=v;const[b,C]=await Me(Qj());b&&c.push({type:"sourceAutoUIList",title:"[模块]应用布局优化配置文件",msg:b}),C&&(t.value=hn(C,"packageRules","package"));const[k,w]=await Me(Jj());k||(o.value=hn(w,"packageRules","package",!0));const[_,M]=await Me(eU());_&&(r.value={}),M&&(r.value=hn(M,"setting_config","setting")),i.value=K4(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"]}}),tU=ye({__name:"App",setup(e){const t=ht(),o=di(),n=Zv(),r=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:i,modal:a}=It(["message","modal"],{configProviderProps:r}),l=Us(),s=R9(),u=C3(),d=Yj(),c=A(!1),h=A(!0);kt(p=>{!t.loading&&!l.loading&&(h.value=!1),(t.errorLogging.length||l.errorLogging.length)&&(h.value=!1),p(()=>{})}),lt(()=>s.currentFont,(p,g)=>{p&&document.documentElement.style.setProperty("--global-font-family",s.currentFontFamily)},{immediate:!0}),lt(()=>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,C){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:()=>x("p",null,[F("Web UI 未对Android 11做适配,无法使用~")]),negativeText:"确定"}):(t.androidTargetSdk&&t.androidTargetSdk<=33&&!t.skipConfirm.lowWebViewVersion&&a.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("Web UI 强依赖部分较新内核的JavaScript API实现,为了确保模块正常工作,Android 13/12的小米设备可能需要升级系统内置WebView版本,请通过Google Play商店升级!")]),x("p",null,[F("下载地址:https://play.google.com/store/apps/details?id=com.google.android.webview")]),x("p",null,[F("如果下载的是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}}),["KernelSU","APatch"].includes(t.currentRootManager)&&!t.skipConfirm.needInstalledKsuWebUiApk&&a.create({title:"Web UI 升级提醒",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("KernelSU/APatch 自带的 Web UI 存在部分问题,可能导致模块功能显示不全,建议可以安装波奇大佬提取制作的 「KsuWebUI」,取代自带的 Web UI,这不是必选项,您可以选择忽略此条建议,但可能导致模块部分功能无法正常工作。")]),x("p",null,[F("下载地址:https://caiyun.139.com/m/i?135Ce7C7omgXj")])]),positiveText:"复制下载链接到剪切板",negativeText:"已安装,不再提醒",onPositiveClick:()=>{navigator.clipboard.writeText("https://caiyun.139.com/m/i?135Ce7C7omgXj")},onNegativeClick:()=>{t.skipConfirm.needInstalledKsuWebUiApk=!0}}),l.initDefault(),u.initDefault(),n.initDefault(),t.MIOSVersion&&t.MIOSVersion>=1&&d.initDefault())}),(p,g)=>{const v=rt("n-config-provider");return Re(),Oe("div",{class:xe(["app-container h-full",`${S(t).isDarkMode?"bg-zinc-900 theme-dark-mode":"bg-white"}`])},[x(v,{theme:S(t).isDarkMode?S(Bt):S(Ft)},{default:K(()=>[x(S(Ej),null,{default:K(()=>[x(S(Nv))]),_:1}),x(k9,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=b=>c.value=b),errorLogging:S(t).errorLogging},null,8,["modelValue","errorLogging"]),h.value?(Re(),Tt(Mj,{key:0})):Ge("",!0)]),_:1},8,["theme"])],2)}}}),oU=_9(tU,[["__scopeId","data-v-de76c51d"]]),z9="/images/icons/all_app.png",hd="/images/icons/ai_icon.png";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const nU=4,r5=0,i5=1,rU=2;function Ja(e){let t=e.length;for(;--t>=0;)e[t]=0}const iU=0,A9=1,aU=2,lU=3,sU=258,w3=29,Ks=256,ms=Ks+1+w3,Aa=30,S3=19,P9=2*ms+1,_i=15,C0=16,uU=7,F3=256,B9=16,$9=17,D9=18,$1=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]),Wu=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]),dU=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),T9=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cU=512,fr=new Array((ms+2)*2);Ja(fr);const Gl=new Array(Aa*2);Ja(Gl);const gs=new Array(cU);Ja(gs);const vs=new Array(sU-lU+1);Ja(vs);const E3=new Array(w3);Ja(E3);const pd=new Array(Aa);Ja(pd);function w0(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 I9,O9,L9;function S0(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const H9=e=>e<256?gs[e]:gs[256+(e>>>7)],bs=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Uo=(e,t,o)=>{e.bi_valid>C0-o?(e.bi_buf|=t<>C0-e.bi_valid,e.bi_valid+=o-C0):(e.bi_buf|=t<{Uo(e,o[t*2],o[t*2+1])},N9=(e,t)=>{let o=0;do o|=e&1,e>>>=1,o<<=1;while(--t>0);return o>>>1},fU=e=>{e.bi_valid===16?(bs(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)},hU=(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<=_i;h++)e.bl_count[h]=0;for(o[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;us&&(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--)}},V9=(e,t,o)=>{const n=new Array(_i+1);let r=0,i,a;for(i=1;i<=_i;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]=N9(n[l]++,l))}},pU=()=>{let e,t,o,n,r;const i=new Array(_i+1);for(o=0,n=0;n>=7;n{let t;for(t=0;t{e.bi_valid>8?bs(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},a5=(e,t,o,n)=>{const r=t*2,i=o*2;return e[r]{const n=e.heap[o];let r=o<<1;for(;r<=e.heap_len&&(r{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?Wn(e,r,t):(a=vs[r],Wn(e,a+Ks+1,t),l=$1[a],l!==0&&(r-=E3[a],Uo(e,r,l)),n--,a=H9(n),Wn(e,a,o),l=Wu[a],l!==0&&(n-=pd[a],Uo(e,n,l)));while(i{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=P9,a=0;a>1;a>=1;a--)F0(e,o,a);u=i;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],F0(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++,F0(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],hU(e,t),V9(o,s,e.bl_count)},s5=(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{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{let t;for(s5(e,e.dyn_ltree,e.l_desc.max_code),s5(e,e.dyn_dtree,e.d_desc.max_code),D1(e,e.bl_desc),t=S3-1;t>=3&&e.bl_tree[T9[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},gU=(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{let t=4093624447,o;for(o=0;o<=31;o++,t>>>=1)if(t&1&&e.dyn_ltree[o*2]!==0)return r5;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return i5;for(o=32;o{d5||(pU(),d5=!0),e.l_desc=new S0(e.dyn_ltree,I9),e.d_desc=new S0(e.dyn_dtree,O9),e.bl_desc=new S0(e.bl_tree,L9),e.bi_buf=0,e.bi_valid=0,W9(e)},U9=(e,t,o,n)=>{Uo(e,(iU<<1)+(n?1:0),3),j9(e),bs(e,o),bs(e,~o),o&&e.pending_buf.set(e.window.subarray(t,t+o),e.pending),e.pending+=o},xU=e=>{Uo(e,A9<<1,3),Wn(e,F3,fr),fU(e)},yU=(e,t,o,n)=>{let r,i,a=0;e.level>0?(e.strm.data_type===rU&&(e.strm.data_type=vU(e)),D1(e,e.l_desc),D1(e,e.d_desc),a=mU(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?U9(e,t,o,n):e.strategy===nU||i===r?(Uo(e,(A9<<1)+(n?1:0),3),l5(e,fr,Gl)):(Uo(e,(aU<<1)+(n?1:0),3),gU(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),l5(e,e.dyn_ltree,e.dyn_dtree)),W9(e),n&&j9(e)},CU=(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[(vs[o]+Ks+1)*2]++,e.dyn_dtree[H9(t)*2]++),e.sym_next===e.sym_end);var wU=bU,SU=U9,FU=yU,EU=CU,kU=xU,_U={_tr_init:wU,_tr_stored_block:SU,_tr_flush_block:FU,_tr_tally:EU,_tr_align:kU};const MU=(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 xs=MU;const RU=()=>{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},zU=new Uint32Array(RU()),AU=(e,t,o,n)=>{const r=zU,i=n+o;e^=-1;for(let a=n;a>>8^r[(e^t[a])&255];return e^-1};var Co=AU,Wi={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"},na={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:T1,_tr_flush_block:BU,_tr_tally:Xr,_tr_align:$U}=_U,{Z_NO_FLUSH:Yr,Z_PARTIAL_FLUSH:DU,Z_FULL_FLUSH:TU,Z_FINISH:mn,Z_BLOCK:c5,Z_OK:Eo,Z_STREAM_END:f5,Z_STREAM_ERROR:Gn,Z_DATA_ERROR:IU,Z_BUF_ERROR:E0,Z_DEFAULT_COMPRESSION:OU,Z_FILTERED:LU,Z_HUFFMAN_ONLY:ku,Z_RLE:HU,Z_FIXED:NU,Z_DEFAULT_STRATEGY:VU,Z_UNKNOWN:WU,Z_DEFLATED:ac}=na,jU=9,UU=15,KU=8,GU=29,qU=256,I1=qU+1+GU,ZU=30,XU=19,YU=2*I1+1,QU=15,zt=3,Kr=258,qn=Kr+zt+1,JU=32,Ha=42,k3=57,O1=69,L1=73,H1=91,N1=103,Mi=113,Rl=666,Io=1,el=2,ji=3,tl=4,eK=3,Ri=(e,t)=>(e.msg=Wi[t],t),h5=e=>e*2-(e>4?9:0),jr=e=>{let t=e.length;for(;--t>=0;)e[t]=0},tK=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 oK=(e,t,o)=>(t<{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)=>{BU(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Qo(e.strm)},Lt=(e,t)=>{e.pending_buf[e.pending++]=t},Sl=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},V1=(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=xs(e.adler,t,r,o):e.state.wrap===2&&(e.adler=Co(e.adler,t,r,o)),e.next_in+=r,e.total_in+=r,r)},K9=(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+Kr;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]&&na){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},Na=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),tK(e),n+=t),e.strm.avail_in===0)break;if(o=V1(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=o,e.lookahead+e.insert>=zt)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=Qr(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=Qr(e,e.ins_h,e.window[r+zt-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{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_outr+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),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&&(V1(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_wateri&&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&&(V1(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>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!==Yr&&e.strm.avail_in===0&&r<=i)&&(n=r>i?i:r,a=t===mn&&e.strm.avail_in===0&&n===r?1:0,T1(e,e.block_start,n,a),e.block_start+=n,Qo(e.strm)),a?ji:Io)},k0=(e,t)=>{let o,n;for(;;){if(e.lookahead=zt&&(e.ins_h=Qr(e,e.ins_h,e.window[e.strstart+zt-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=K9(e,o)),e.match_length>=zt)if(n=Xr(e,e.strstart-e.match_start,e.match_length-zt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=zt){e.match_length--;do e.strstart++,e.ins_h=Qr(e,e.ins_h,e.window[e.strstart+zt-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=Qr(e,e.ins_h,e.window[e.strstart+1]);else n=Xr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=e.strstart{let o,n,r;for(;;){if(e.lookahead=zt&&(e.ins_h=Qr(e,e.ins_h,e.window[e.strstart+zt-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=zt-1,o!==0&&e.prev_length4096)&&(e.match_length=zt-1)),e.prev_length>=zt&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-zt,n=Xr(e,e.strstart-1-e.prev_match,e.prev_length-zt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=Qr(e,e.ins_h,e.window[e.strstart+zt-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=zt-1,e.strstart++,n&&(nn(e,!1),e.strm.avail_out===0))return Io}else if(e.match_available){if(n=Xr(e,0,e.window[e.strstart-1]),n&&nn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Io}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Xr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let o,n,r,i;const a=e.window;for(;;){if(e.lookahead<=Kr){if(Na(e),e.lookahead<=Kr&&t===Yr)return Io;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=zt&&e.strstart>0&&(r=e.strstart-1,n=a[r],n===a[++r]&&n===a[++r]&&n===a[++r])){i=e.strstart+Kr;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]&&re.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=zt?(o=Xr(e,1,e.match_length-zt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(o=Xr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),o&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?ji:tl):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?Io:el},rK=(e,t)=>{let o;for(;;){if(e.lookahead===0&&(Na(e),e.lookahead===0)){if(t===Yr)return Io;break}if(e.match_length=0,o=Xr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,o&&(nn(e,!1),e.strm.avail_out===0))return Io}return e.insert=0,t===mn?(nn(e,!0),e.strm.avail_out===0?ji:tl):e.sym_next&&(nn(e,!1),e.strm.avail_out===0)?Io:el};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 zl=[new Hn(0,0,0,0,G9),new Hn(4,4,8,4,k0),new Hn(4,5,16,8,k0),new Hn(4,6,32,32,k0),new Hn(4,4,16,16,ma),new Hn(8,16,32,32,ma),new Hn(8,16,128,128,ma),new Hn(8,32,128,256,ma),new Hn(32,128,258,1024,ma),new Hn(32,258,258,4096,ma)],iK=e=>{e.window_size=2*e.w_size,jr(e.head),e.max_lazy_match=zl[e.level].max_lazy,e.good_match=zl[e.level].good_length,e.nice_match=zl[e.level].nice_length,e.max_chain_length=zl[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=zt-1,e.match_available=0,e.ins_h=0};function aK(){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=ac,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(YU*2),this.dyn_dtree=new Uint16Array((2*ZU+1)*2),this.bl_tree=new Uint16Array((2*XU+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(QU+1),this.heap=new Uint16Array(2*I1+1),jr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*I1+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 Gs=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ha&&t.status!==k3&&t.status!==O1&&t.status!==L1&&t.status!==H1&&t.status!==N1&&t.status!==Mi&&t.status!==Rl?1:0},q9=e=>{if(Gs(e))return Ri(e,Gn);e.total_in=e.total_out=0,e.data_type=WU;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?k3:t.wrap?Ha:Mi,e.adler=t.wrap===2?0:1,t.last_flush=-2,PU(t),Eo},Z9=e=>{const t=q9(e);return t===Eo&&iK(e.state),t},lK=(e,t)=>Gs(e)||e.state.wrap!==2?Gn:(e.state.gzhead=t,Eo),X9=(e,t,o,n,r,i)=>{if(!e)return Gn;let a=1;if(t===OU&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),r<1||r>jU||o!==ac||n<8||n>15||t<0||t>9||i<0||i>NU||n===8&&a!==1)return Ri(e,Gn);n===8&&(n=9);const l=new aK;return e.state=l,l.strm=e,l.status=Ha,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<X9(e,t,ac,UU,KU,VU),uK=(e,t)=>{if(Gs(e)||t>c5||t<0)return e?Ri(e,Gn):Gn;const o=e.state;if(!e.output||e.avail_in!==0&&!e.input||o.status===Rl&&t!==mn)return Ri(e,e.avail_out===0?E0: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&&h5(t)<=h5(n)&&t!==mn)return Ri(e,E0);if(o.status===Rl&&e.avail_in!==0)return Ri(e,E0);if(o.status===Ha&&o.wrap===0&&(o.status=Mi),o.status===Ha){let r=ac+(o.w_bits-8<<4)<<8,i=-1;if(o.strategy>=ku||o.level<2?i=0:o.level<6?i=1:o.level===6?i=2:i=3,r|=i<<6,o.strstart!==0&&(r|=JU),r+=31-r%31,Sl(o,r),o.strstart!==0&&(Sl(o,e.adler>>>16),Sl(o,e.adler&65535)),e.adler=1,o.status=Mi,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(o.status===k3){if(e.adler=0,Lt(o,31),Lt(o,139),Lt(o,8),o.gzhead)Lt(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)),Lt(o,o.gzhead.time&255),Lt(o,o.gzhead.time>>8&255),Lt(o,o.gzhead.time>>16&255),Lt(o,o.gzhead.time>>24&255),Lt(o,o.level===9?2:o.strategy>=ku||o.level<2?4:0),Lt(o,o.gzhead.os&255),o.gzhead.extra&&o.gzhead.extra.length&&(Lt(o,o.gzhead.extra.length&255),Lt(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=Co(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=O1;else if(Lt(o,0),Lt(o,0),Lt(o,0),Lt(o,0),Lt(o,0),Lt(o,o.level===9?2:o.strategy>=ku||o.level<2?4:0),Lt(o,eK),o.status=Mi,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(o.status===O1){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=Co(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=Co(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=L1}if(o.status===L1){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=Co(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0}o.gzindexr&&(e.adler=Co(e.adler,o.pending_buf,o.pending-r,r)),o.gzindex=0}o.status=H1}if(o.status===H1){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=Co(e.adler,o.pending_buf,o.pending-r,r)),Qo(e),o.pending!==0)return o.last_flush=-1,Eo;r=0}o.gzindexr&&(e.adler=Co(e.adler,o.pending_buf,o.pending-r,r))}o.status=N1}if(o.status===N1){if(o.gzhead.hcrc){if(o.pending+2>o.pending_buf_size&&(Qo(e),o.pending!==0))return o.last_flush=-1,Eo;Lt(o,e.adler&255),Lt(o,e.adler>>8&255),e.adler=0}if(o.status=Mi,Qo(e),o.pending!==0)return o.last_flush=-1,Eo}if(e.avail_in!==0||o.lookahead!==0||t!==Yr&&o.status!==Rl){let r=o.level===0?G9(o,t):o.strategy===ku?rK(o,t):o.strategy===HU?nK(o,t):zl[o.level].func(o,t);if((r===ji||r===tl)&&(o.status=Rl),r===Io||r===ji)return e.avail_out===0&&(o.last_flush=-1),Eo;if(r===el&&(t===DU?$U(o):t!==c5&&(T1(o,0,0,!1),t===TU&&(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?f5:(o.wrap===2?(Lt(o,e.adler&255),Lt(o,e.adler>>8&255),Lt(o,e.adler>>16&255),Lt(o,e.adler>>24&255),Lt(o,e.total_in&255),Lt(o,e.total_in>>8&255),Lt(o,e.total_in>>16&255),Lt(o,e.total_in>>24&255)):(Sl(o,e.adler>>>16),Sl(o,e.adler&65535)),Qo(e),o.wrap>0&&(o.wrap=-o.wrap),o.pending!==0?Eo:f5)},dK=e=>{if(Gs(e))return Gn;const t=e.state.status;return e.state=null,t===Mi?Ri(e,IU):Eo},cK=(e,t)=>{let o=t.length;if(Gs(e))return Gn;const n=e.state,r=n.wrap;if(r===2||r===1&&n.status!==Ha||n.lookahead)return Gn;if(r===1&&(e.adler=xs(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,Na(n);n.lookahead>=zt;){let s=n.strstart,u=n.lookahead-(zt-1);do n.ins_h=Qr(n,n.ins_h,n.window[s+zt-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=zt-1,Na(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=zt-1,n.match_available=0,e.next_in=a,e.input=l,e.avail_in=i,n.wrap=r,Eo};var fK=sK,hK=X9,pK=Z9,mK=q9,gK=lK,vK=uK,bK=dK,xK=cK,yK="pako deflate (from Nodeca project)",ql={deflateInit:fK,deflateInit2:hK,deflateReset:pK,deflateResetKeep:mK,deflateSetHeader:gK,deflate:vK,deflateEnd:bK,deflateSetDictionary:xK,deflateInfo:yK};const CK=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var wK=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)CK(o,n)&&(e[n]=o[n])}}return e},SK=e=>{let t=0;for(let n=0,r=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ys[254]=ys[254]=1;var FK=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>>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 EK=(e,t)=>{if(t<65534&&e.subarray&&Y9)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let o="";for(let n=0;n{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;n4){i[r++]=65533,n+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&n1){i[r++]=65533;continue}a<65536?i[r++]=a:(a-=65536,i[r++]=55296|a>>10&1023,i[r++]=56320|a&1023)}return EK(i,r)},_K=(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+ys[e[o]]>t?o:t},Cs={string2buf:FK,buf2string:kK,utf8border:_K};function MK(){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 Q9=MK;const J9=Object.prototype.toString,{Z_NO_FLUSH:RK,Z_SYNC_FLUSH:zK,Z_FULL_FLUSH:AK,Z_FINISH:PK,Z_OK:md,Z_STREAM_END:BK,Z_DEFAULT_COMPRESSION:$K,Z_DEFAULT_STRATEGY:DK,Z_DEFLATED:TK}=na;function qs(e){this.options=lc.assign({level:$K,method:TK,chunkSize:16384,windowBits:15,memLevel:8,strategy:DK},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 Q9,this.strm.avail_out=0;let o=ql.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(o!==md)throw new Error(Wi[o]);if(t.header&&ql.deflateSetHeader(this.strm,t.header),t.dictionary){let n;if(typeof t.dictionary=="string"?n=Cs.string2buf(t.dictionary):J9.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,o=ql.deflateSetDictionary(this.strm,n),o!==md)throw new Error(Wi[o]);this._dict_set=!0}}qs.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:RK,typeof e=="string"?o.input=Cs.string2buf(e):J9.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===zK||i===AK)&&o.avail_out<=6){this.onData(o.output.subarray(0,o.next_out)),o.avail_out=0;continue}if(r=ql.deflate(o,i),r===BK)return o.next_out>0&&this.onData(o.output.subarray(0,o.next_out)),r=ql.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===md;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};qs.prototype.onData=function(e){this.chunks.push(e)};qs.prototype.onEnd=function(e){e===md&&(this.result=lc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _3(e,t){const o=new qs(t);if(o.push(e,!0),o.err)throw o.msg||Wi[o.err];return o.result}function IK(e,t){return t=t||{},t.raw=!0,_3(e,t)}function OK(e,t){return t=t||{},t.gzip=!0,_3(e,t)}var LK=qs,HK=_3,NK=IK,VK=OK,WK=na,jK={Deflate:LK,deflate:HK,deflateRaw:NK,gzip:VK,constants:WK};const _u=16209,UK=16191;var KK=function(t,o){let n,r,i,a,l,s,u,d,c,h,f,p,g,v,b,C,k,w,_,M,E,P,z,$;const G=t.state;n=t.next_in,z=t.input,r=n+(t.avail_in-5),i=t.next_out,$=t.output,a=i-(o-t.avail_out),l=i+(t.avail_out-257),s=G.dmax,u=G.wsize,d=G.whave,c=G.wnext,h=G.window,f=G.hold,p=G.bits,g=G.lencode,v=G.distcode,b=(1<>>24,f>>>=w,p-=w,w=k>>>16&255,w===0)$[i++]=k&65535;else if(w&16){_=k&65535,w&=15,w&&(p>>=w,p-=w),p<15&&(f+=z[n++]<>>24,f>>>=w,p-=w,w=k>>>16&255,w&16){if(M=k&65535,w&=15,ps){t.msg="invalid distance too far back",G.mode=_u;break e}if(f>>>=w,p-=w,w=i-a,M>w){if(w=M-w,w>d&&G.sane){t.msg="invalid distance too far back",G.mode=_u;break e}if(E=0,P=h,c===0){if(E+=u-w,w<_){_-=w;do $[i++]=h[E++];while(--w);E=i-M,P=$}}else if(c2;)$[i++]=P[E++],$[i++]=P[E++],$[i++]=P[E++],_-=3;_&&($[i++]=P[E++],_>1&&($[i++]=P[E++]))}else{E=i-M;do $[i++]=$[E++],$[i++]=$[E++],$[i++]=$[E++],_-=3;while(_>2);_&&($[i++]=$[E++],_>1&&($[i++]=$[E++]))}}else if(w&64){t.msg="invalid distance code",G.mode=_u;break e}else{k=v[(k&65535)+(f&(1<>3,n-=_,p-=_<<3,f&=(1<{const s=l.bits;let u=0,d=0,c=0,h=0,f=0,p=0,g=0,v=0,b=0,C=0,k,w,_,M,E,P=null,z;const $=new Uint16Array(ga+1),G=new Uint16Array(ga+1);let H=null,q,W,L;for(u=0;u<=ga;u++)$[u]=0;for(d=0;d=1&&$[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;c0&&(e===g5||h!==1))return-1;for(G[1]=0,u=1;up5||e===v5&&b>m5)return 1;for(;;){q=u-g,a[d]+1=z?(W=H[a[d]-z],L=P[a[d]-z]):(W=96,L=0),k=1<>g)+w]=q<<24|W<<16|L|0;while(w!==0);for(k=1<>=1;if(k!==0?(C&=k-1,C+=k):C=0,d++,--$[u]===0){if(u===h)break;u=t[o+a[d]]}if(u>f&&(C&M)!==_){for(g===0&&(g=f),E+=c,p=u-g,v=1<p5||e===v5&&b>m5)return 1;_=C&M,r[_]=f<<24|p<<16|E-i|0}}return C!==0&&(r[E+C]=u-g<<24|64<<16|0),l.bits=f,0};var Zl=YK;const QK=0,eb=1,tb=2,{Z_FINISH:b5,Z_BLOCK:JK,Z_TREES:Mu,Z_OK:Ui,Z_STREAM_END:eG,Z_NEED_DICT:tG,Z_STREAM_ERROR:Cn,Z_DATA_ERROR:ob,Z_MEM_ERROR:nb,Z_BUF_ERROR:oG,Z_DEFLATED:x5}=na,sc=16180,y5=16181,C5=16182,w5=16183,S5=16184,F5=16185,E5=16186,k5=16187,_5=16188,M5=16189,gd=16190,ur=16191,M0=16192,R5=16193,R0=16194,z5=16195,A5=16196,P5=16197,B5=16198,Ru=16199,zu=16200,$5=16201,D5=16202,T5=16203,I5=16204,O5=16205,z0=16206,L5=16207,H5=16208,to=16209,rb=16210,ib=16211,nG=852,rG=592,iG=15,aG=iG,N5=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function lG(){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 ra=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeib?1:0},ab=e=>{if(ra(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=sc,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(nG),t.distcode=t.distdyn=new Int32Array(rG),t.sane=1,t.back=-1,Ui},lb=e=>{if(ra(e))return Cn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,ab(e)},sb=(e,t)=>{let o;if(ra(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,lb(e))},ub=(e,t)=>{if(!e)return Cn;const o=new lG;e.state=o,o.strm=e,o.window=null,o.mode=sc;const n=sb(e,t);return n!==Ui&&(e.state=null),n},sG=e=>ub(e,aG);let V5=!0,A0,P0;const uG=e=>{if(V5){A0=new Int32Array(512),P0=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(Zl(eb,e.lens,0,288,A0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Zl(tb,e.lens,0,32,P0,0,e.work,{bits:5}),V5=!1}e.lencode=A0,e.lenbits=9,e.distcode=P0,e.distbits=5},db=(e,t,o,n)=>{let r;const i=e.state;return i.window===null&&(i.wsize=1<=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{let o,n,r,i,a,l,s,u,d,c,h,f,p,g,v=0,b,C,k,w,_,M,E,P;const z=new Uint8Array(4);let $,G;const H=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ra(e)||!e.output||!e.input&&e.avail_in!==0)return Cn;o=e.state,o.mode===ur&&(o.mode=M0),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,P=Ui;e:for(;;)switch(o.mode){case sc:if(o.wrap===0){o.mode=M0;break}for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>>8&255,o.check=Co(o.check,z,2,0),u=0,d=0,o.mode=y5;break}if(o.head&&(o.head.done=!1),!(o.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",o.mode=to;break}if((u&15)!==x5){e.msg="unknown compression method",o.mode=to;break}if(u>>>=4,d-=4,E=(u&15)+8,o.wbits===0&&(o.wbits=E),E>15||E>o.wbits){e.msg="invalid window size",o.mode=to;break}o.dmax=1<>8&1),o.flags&512&&o.wrap&4&&(z[0]=u&255,z[1]=u>>>8&255,o.check=Co(o.check,z,2,0)),u=0,d=0,o.mode=C5;case C5:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<>>8&255,z[2]=u>>>16&255,z[3]=u>>>24&255,o.check=Co(o.check,z,4,0)),u=0,d=0,o.mode=w5;case w5:for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>8),o.flags&512&&o.wrap&4&&(z[0]=u&255,z[1]=u>>>8&255,o.check=Co(o.check,z,2,0)),u=0,d=0,o.mode=S5;case S5:if(o.flags&1024){for(;d<16;){if(l===0)break e;l--,u+=n[i++]<>>8&255,o.check=Co(o.check,z,2,0)),u=0,d=0}else o.head&&(o.head.extra=null);o.mode=F5;case F5:if(o.flags&1024&&(f=o.length,f>l&&(f=l),f&&(o.head&&(E=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),E)),o.flags&512&&o.wrap&4&&(o.check=Co(o.check,n,f,i)),l-=f,i+=f,o.length-=f),o.length))break e;o.length=0,o.mode=E5;case E5:if(o.flags&2048){if(l===0)break e;f=0;do E=n[i+f++],o.head&&E&&o.length<65536&&(o.head.name+=String.fromCharCode(E));while(E&&f>9&1,o.head.done=!0),e.adler=o.check=0,o.mode=ur;break;case M5:for(;d<32;){if(l===0)break e;l--,u+=n[i++]<>>=d&7,d-=d&7,o.mode=z0;break}for(;d<3;){if(l===0)break e;l--,u+=n[i++]<>>=1,d-=1,u&3){case 0:o.mode=R5;break;case 1:if(uG(o),o.mode=Ru,t===Mu){u>>>=2,d-=2;break e}break;case 2:o.mode=A5;break;case 3:e.msg="invalid block type",o.mode=to}u>>>=2,d-=2;break;case R5:for(u>>>=d&7,d-=d&7;d<32;){if(l===0)break e;l--,u+=n[i++]<>>16^65535)){e.msg="invalid stored block lengths",o.mode=to;break}if(o.length=u&65535,u=0,d=0,o.mode=R0,t===Mu)break e;case R0:o.mode=z5;case z5: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 A5:for(;d<14;){if(l===0)break e;l--,u+=n[i++]<>>=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=to;break}o.have=0,o.mode=P5;case P5:for(;o.have>>=3,d-=3}for(;o.have<19;)o.lens[H[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,$={bits:o.lenbits},P=Zl(QK,o.lens,0,19,o.lencode,0,o.work,$),o.lenbits=$.bits,P){e.msg="invalid code lengths set",o.mode=to;break}o.have=0,o.mode=B5;case B5:for(;o.have>>24,C=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=b,d-=b,o.lens[o.have++]=k;else{if(k===16){for(G=b+2;d>>=b,d-=b,o.have===0){e.msg="invalid bit length repeat",o.mode=to;break}E=o.lens[o.have-1],f=3+(u&3),u>>>=2,d-=2}else if(k===17){for(G=b+3;d>>=b,d-=b,E=0,f=3+(u&7),u>>>=3,d-=3}else{for(G=b+7;d>>=b,d-=b,E=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=to;break}for(;f--;)o.lens[o.have++]=E}}if(o.mode===to)break;if(o.lens[256]===0){e.msg="invalid code -- missing end-of-block",o.mode=to;break}if(o.lenbits=9,$={bits:o.lenbits},P=Zl(eb,o.lens,0,o.nlen,o.lencode,0,o.work,$),o.lenbits=$.bits,P){e.msg="invalid literal/lengths set",o.mode=to;break}if(o.distbits=6,o.distcode=o.distdyn,$={bits:o.distbits},P=Zl(tb,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,$),o.distbits=$.bits,P){e.msg="invalid distances set",o.mode=to;break}if(o.mode=Ru,t===Mu)break e;case Ru:o.mode=zu;case zu: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,KK(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<>>24,C=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>w)],b=v>>>24,C=v>>>16&255,k=v&65535,!(w+b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=w,d-=w,o.back+=w}if(u>>>=b,d-=b,o.back+=b,o.length=k,C===0){o.mode=O5;break}if(C&32){o.back=-1,o.mode=ur;break}if(C&64){e.msg="invalid literal/length code",o.mode=to;break}o.extra=C&15,o.mode=$5;case $5:if(o.extra){for(G=o.extra;d>>=o.extra,d-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=D5;case D5:for(;v=o.distcode[u&(1<>>24,C=v>>>16&255,k=v&65535,!(b<=d);){if(l===0)break e;l--,u+=n[i++]<>w)],b=v>>>24,C=v>>>16&255,k=v&65535,!(w+b<=d);){if(l===0)break e;l--,u+=n[i++]<>>=w,d-=w,o.back+=w}if(u>>>=b,d-=b,o.back+=b,C&64){e.msg="invalid distance code",o.mode=to;break}o.offset=k,o.extra=C&15,o.mode=T5;case T5:if(o.extra){for(G=o.extra;d>>=o.extra,d-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){e.msg="invalid distance too far back",o.mode=to;break}o.mode=I5;case I5: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=to;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=zu);break;case O5:if(s===0)break e;r[a++]=o.length,s--,o.mode=zu;break;case z0:if(o.wrap){for(;d<32;){if(l===0)break e;l--,u|=n[i++]<{if(ra(e))return Cn;let t=e.state;return t.window&&(t.window=null),e.state=null,Ui},fG=(e,t)=>{if(ra(e))return Cn;const o=e.state;return o.wrap&2?(o.head=t,t.done=!1,Ui):Cn},hG=(e,t)=>{const o=t.length;let n,r,i;return ra(e)||(n=e.state,n.wrap!==0&&n.mode!==gd)?Cn:n.mode===gd&&(r=1,r=xs(r,t,o,0),r!==n.check)?ob:(i=db(e,t,o,o),i?(n.mode=rb,nb):(n.havedict=1,Ui))};var pG=lb,mG=sb,gG=ab,vG=sG,bG=ub,xG=dG,yG=cG,CG=fG,wG=hG,SG="pako inflate (from Nodeca project)",hr={inflateReset:pG,inflateReset2:mG,inflateResetKeep:gG,inflateInit:vG,inflateInit2:bG,inflate:xG,inflateEnd:yG,inflateGetHeader:CG,inflateSetDictionary:wG,inflateInfo:SG};function FG(){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 EG=FG;const cb=Object.prototype.toString,{Z_NO_FLUSH:kG,Z_FINISH:_G,Z_OK:ws,Z_STREAM_END:B0,Z_NEED_DICT:$0,Z_STREAM_ERROR:MG,Z_DATA_ERROR:W5,Z_MEM_ERROR:RG}=na;function Zs(e){this.options=lc.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 Q9,this.strm.avail_out=0;let o=hr.inflateInit2(this.strm,t.windowBits);if(o!==ws)throw new Error(Wi[o]);if(this.header=new EG,hr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Cs.string2buf(t.dictionary):cb.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(o=hr.inflateSetDictionary(this.strm,t.dictionary),o!==ws)))throw new Error(Wi[o])}Zs.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?_G:kG,cb.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===$0&&r&&(i=hr.inflateSetDictionary(o,r),i===ws?i=hr.inflate(o,a):i===W5&&(i=$0));o.avail_in>0&&i===B0&&o.state.wrap>0&&e[o.next_in]!==0;)hr.inflateReset(o),i=hr.inflate(o,a);switch(i){case MG:case W5:case $0:case RG:return this.onEnd(i),this.ended=!0,!1}if(l=o.avail_out,o.next_out&&(o.avail_out===0||i===B0))if(this.options.to==="string"){let s=Cs.utf8border(o.output,o.next_out),u=o.next_out-s,d=Cs.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===ws&&l===0)){if(i===B0)return i=hr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(o.avail_in===0)break}}return!0};Zs.prototype.onData=function(e){this.chunks.push(e)};Zs.prototype.onEnd=function(e){e===ws&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=lc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function M3(e,t){const o=new Zs(t);if(o.push(e),o.err)throw o.msg||Wi[o.err];return o.result}function zG(e,t){return t=t||{},t.raw=!0,M3(e,t)}var AG=Zs,PG=M3,BG=zG,$G=M3,DG=na,TG={Inflate:AG,inflate:PG,inflateRaw:BG,ungzip:$G,constants:DG};const{Deflate:IG,deflate:OG,deflateRaw:LG,gzip:HG}=jK,{Inflate:NG,inflate:VG,inflateRaw:WG,ungzip:jG}=TG;var UG=IG,KG=OG,GG=LG,qG=HG,ZG=NG,XG=VG,YG=WG,QG=jG,JG=na,Va={Deflate:UG,deflate:KG,deflateRaw:GG,gzip:qG,Inflate:ZG,inflate:XG,inflateRaw:YG,ungzip:QG,constants:JG};function Fl(e){const t=Us(),o=Nt({moduleEmbeddedRules:Sa(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]),currentEmbeddedRules:Sa(t.customConfigEmbeddedRulesList[e]||(t.isPatchMode?t.patchEmbeddedRulesList[e]:t.sourceEmbeddedRulesList[e]))||{},moduleFixedOrientation:Sa(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]),currentFixedOrientation:Sa(t.customConfigFixedOrientationList[e]||(t.isPatchMode?t.patchFixedOrientationList[e]:t.sourceFixedOrientationList[e]))||{}});return{...Fh(o)}}const fb=e=>{const t=/^[a-zA-Z0-9_.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},eq=e=>{const t=/^[a-zA-Z0-9_:,.*-]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},tq=e=>{const t=/^[a-zA-Z0-9_,.]+$/;return e===""?!0:!(/\s/.test(e)||!t.test(e))},oq={class:"mb-4"},nq={class:"mb-4"},rq={class:"mb-4"},iq={class:"mb-4"},aq={class:"mb-4"},lq={class:"mb-4"},sq={class:"mb-4"},j5=ye({__name:"EmbeddedAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=A(null),r=e,i=A(!1),a=ht(),l=Us(),s=di(),u=D(()=>({theme:a.isDarkMode?Bt:Ft})),{message:d,modal:c}=It(["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=D(()=>{const ze=[{label:"默认横屏规则",key:"fullScreen_default",rule:""}];return a.MIOSVersion&&a.MIOSVersion>=2?[...ze,...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=A(g.value[0]),C=A(),k=A(!0),w=A(),_=A(),M=A(v[1]),E=A(),P=A(.5),z=A(!1),$=A(!1),G=A([]),H=ze=>{const pe=document.querySelector(".n-drawer-content");pe instanceof HTMLElement&&(s.info("resizeDrawerContent",ze),pe.style.height=ze?"calc(100% + 200px)":"100%")},q=ze=>{var pe;H(!0),(pe=n.value)==null||pe.$el.scrollIntoView({behavior:"smooth",block:"start"})},W=ze=>{var pe;H(!1),(pe=n.value)==null||pe.$el.scrollIntoView({behavior:"smooth",block:"start"})},L=async ze=>{if(ze&&a.MIOSVersion&&a.MIOSVersion>=2){const[pe]=await Me(new Promise((U,N)=>{c.create({title:"确认启用第三方横屏优化吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("由于小米的BUG,部分应用即使配置了横屏,在系统重启后仍然会丢失横屏配置,开启此项可以保证该应用的横屏规则不会丢失,但每次设备重启或修改模块规则,该应用都将被强制重启,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{U("positiveClick")},onNegativeClick:()=>{N("negativeClick")}})}));if(pe)return}X.value=ze},I=A({openDrawer:ze=>new Promise((pe,U)=>{var N,ge,Ce,se,te,ce,Q;if(r.type==="update"&&!ze){U(new Error("更新模式下必须传入初始化参数")),d.error("初始化参数不能为空");return}h=pe,f=U,r.type==="add"&&(_.value="add",b.value=g.value[0],fe.value="",C.value=a.MIOSVersion&&a.MIOSVersion>=2?"":"nra:cr:rcr:nr",G.value=["fullScreen","fixedOrientation","disabled"],ae.value=!1,Fe.value=!1,z.value=!1),r.type==="update"&&ze&&(_.value="update",$.value=!1,P.value=.5,w.value=ze.ruleMode,fe.value=ze.name,we.value=ze.isSupportEmbedded,ze.embeddedRules&&ze.embeddedRules.hasOwnProperty("splitRatio")&&(P.value=ze.embeddedRules.splitRatio??.5),ze.embeddedRules&&ze.embeddedRules.hasOwnProperty("relaunch")?ae.value=!!ze.embeddedRules.relaunch:ae.value=!0,y.value=ze.settingMode,a.MIOSVersion&&a.MIOSVersion>=2&&(X.value=ze.thirdPartyAppOptimize??!1),(!a.MIOSVersion||a.MIOSVersion&&a.MIOSVersion<2)&&(j.value=((N=ze.fixedOrientationRule)==null?void 0:N.disable)??!1),le.value=((ge=ze.fixedOrientationRule)==null?void 0:ge.isShowDivider)??!1,C.value=((Ce=ze.embeddedRules)==null?void 0:Ce.fullRule)??void 0,z.value=((te=(se=ze.fixedOrientationRule)==null?void 0:se.compatChange)==null?void 0:te.split(",").includes("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"))??!1,C.value==="nra:cr:rcr:nr"?b.value=a.MIOSVersion&&a.MIOSVersion>=2?g.value[1]:g.value[0]:ze.embeddedRules&&!ze.embeddedRules.hasOwnProperty("fullRule")?(C.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]):C.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=((ce=ze.embeddedRules)==null?void 0:ce.supportFullSize)??!1,ze.fixedOrientationRule&&ze.fixedOrientationRule.hasOwnProperty("relaunch")?ae.value=!!ze.fixedOrientationRule.relaunch:ae.value=!1,E.value=((Q=ze.fixedOrientationRule)==null?void 0:Q.ratio)??void 0,E.value?E.value===1.1?M.value=v[0]:E.value===1.5?M.value=v[2]:E.value===1.8?M.value=v[3]:M.value=v[4]:M.value=v[1]),i.value=!0}),closeDrawer:()=>{i.value=!1,f("Drawer closed without submission")}}),R=(ze,pe)=>{b.value=pe,C.value=["fullScreen_nra:cr:rcr:nr","fullScreen_*"].includes(ze)?pe.rule:void 0},O=(ze,pe)=>{M.value=pe,E.value=["ratio_11_10","ratio_15_10","ratio_18:10"].includes(ze)?pe.ratio:ze==="ratio_custom"?1.5:void 0},oe=({focused:ze,checked:pe})=>{const U={};return pe?(U.background="#2080f0",ze&&(U.boxShadow="0 0 0 2px #2080f040")):(U.background="#d03050",ze&&(U.boxShadow="0 0 0 2px #d0305040")),U},y=A("fullScreen"),j=A(!1),X=A(!1),le=A(!0),ae=A(!0),Fe=A(!1),fe=A(""),ue=A(""),we=A(!1),ie=async()=>{if(!fe.value){c.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?应用包名不能为空(敲")])});return}if(y.value==="fullScreen"&&!C.value&&(!a.MIOSVersion||a.MIOSVersion<2)){c.create({title:"应用全屏规则不能为空",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?应用全屏规则不能为空(敲")])});return}if(r.type==="add"&&l.allPackageName.has(fe.value)){c.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?这个应用包名已经存在列表中了(敲")])});return}if(r.type==="update"&&we.value&&y.value==="fullScreen"){const[N]=await Me(new Promise((ge,Ce)=>{c.create({title:"确认使用全屏规则吗?",type:"warning",preset:"dialog",content:()=>w.value==="custom"?x("p",null,[F("当前应用已存在")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的自定义规则")])," ",F(",继续提交可能导致")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的自定义规则")])," ",F("丢失。确定要继续吗?")]):x("p",null,[F("当前应用已存在")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的模块规则")])," ",F(",继续更新将会被更替为")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("全屏规则")])," ",F(",如后续需要改回")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的模块规则")])," ",F("可能需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{ge("positiveClick")},onNegativeClick:()=>{Ce("negativeClick")}})}));if(N)return}if(r.type==="update"&&w.value==="module"&&$.value){const[N]=await Me(new Promise((ge,Ce)=>{c.create({title:"确认使用平行窗口自定义规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("当前应用已存在")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的模块规则")])," ",F(",继续更新将会被更替为")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的自定义规则")])," ",F(",且该应用规则不再随模块版本更新,如后续需要改回")," ",x("span",{class:`font-bold ${a.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平行窗口的模块规则")])," ",F("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{ge("positiveClick")},onNegativeClick:()=>{Ce("negativeClick")}})}));if(N)return}be.value=!0;const ze=()=>{be.value=!1,i.value=!1},pe=()=>{be.value=!1},U={name:fe.value,settingMode:y.value,...a.MIOSVersion&&a.MIOSVersion>=2&&{thirdPartyAppOptimize:!!(X.value&&y.value==="fullScreen")},modePayload:{...y.value==="fullScreen"&&{fullRule:C.value},...y.value==="fullScreen"&&(!a.MIOSVersion||a.MIOSVersion&&a.MIOSVersion<2)&&{skipSelfAdaptive:j.value},...y.value==="fullScreen"&&{isShowDivider:le.value},...y.value==="fullScreen"&&{supportFullSize:k.value},...y.value==="fixedOrientation"&&{ratio:E.value},...y.value==="fixedOrientation"&&{foRelaunch:ae.value},...y.value==="fixedOrientation"&&a.MIOSVersion&&a.MIOSVersion>=2&&{forceFixedOrientation:z.value},...y.value==="embedded"&&(w.value==="custom"||w.value==="module"&&$.value)&&{splitRatio:P.value},...y.value==="embedded"&&(w.value==="custom"||w.value==="module"&&$.value)&&{emRelaunch:Fe.value}},loadingCallback:pe,closeCallback:ze};h(U)},be=A(!1);return t({openDrawer:I.value.openDrawer}),(ze,pe)=>{const U=rt("n-input-group-label"),N=rt("n-input"),ge=rt("n-input-group"),Ce=rt("n-tag"),se=rt("n-alert"),te=rt("n-switch"),ce=rt("n-card"),Q=rt("n-slider"),re=rt("n-input-number"),he=rt("n-tab-pane"),ne=rt("n-button"),Y=rt("n-dropdown"),de=rt("n-tabs"),Ee=rt("n-drawer-content"),Ie=rt("n-drawer");return Re(),Oe(ft,null,[Es(ze.$slots,"default",eh(u6({openDrawer:I.value.openDrawer}))),x(Ie,{show:i.value,"onUpdate:show":pe[22]||(pe[22]=$e=>i.value=$e),width:S(a).windowWidth>=640?"450px":"100%",placement:"right"},{default:K(()=>[x(Ee,{title:r.title,closable:""},{footer:K(()=>[x(ne,{type:"info",loading:be.value,"onUpdate:loading":pe[20]||(pe[20]=$e=>be.value=$e),onClick:pe[21]||(pe[21]=()=>ie())},{default:K(()=>pe[58]||(pe[58]=[F(" 提交 ")])),_:1},8,["loading"])]),default:K(()=>[x(ge,null,{default:K(()=>[x(U,{size:"large"},{default:K(()=>pe[23]||(pe[23]=[F("应用包名")])),_:1}),x(N,{size:"large",status:ue.value,value:fe.value,"onUpdate:value":pe[0]||(pe[0]=$e=>fe.value=$e),"allow-input":$e=>fb($e),readonly:r.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1}),w.value==="custom"?(Re(),Tt(se,{key:0,type:"info",class:"mt-5"},{default:K(()=>[pe[26]||(pe[26]=F(" 当前应用已被 ")),x(Ce,{bordered:!1,type:"info"},{default:K(()=>pe[24]||(pe[24]=[F("自定义规则")])),_:1}),pe[27]||(pe[27]=F(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),x(Ce,{bordered:!1,type:"info"},{default:K(()=>pe[25]||(pe[25]=[F("自定义规则")])),_:1}),pe[28]||(pe[28]=F(" 。 "))]),_:1})):Ge("",!0),x(de,{class:"my-3",type:"segment",animated:"",value:y.value,"onUpdate:value":pe[19]||(pe[19]=$e=>y.value=$e)},{default:K(()=>[r.type==="update"&&we.value?(Re(),Tt(he,{key:0,name:"embedded",tab:"平行窗口"},{default:K(()=>[x(se,{"show-icon":!1,bordered:!1,title:"应用分屏显示",type:"success"},{default:K(()=>pe[29]||(pe[29]=[F(" 开启后,未适配横屏应用界面将通过平行窗口显示 ")])),_:1}),w.value==="module"?(Re(),Tt(ce,{key:0,bordered:!1,title:"切换自定义规则",size:"small"},{default:K(()=>[T("div",oq,[x(Ce,{bordered:!1,type:"info"},{default:K(()=>pe[30]||(pe[30]=[F(" 切换为自定义规则后该应用不再随模块更新 ")])),_:1})]),x(te,{"rail-style":oe,value:$.value,"onUpdate:value":pe[1]||(pe[1]=$e=>$.value=$e),size:"large"},{checked:K(()=>pe[31]||(pe[31]=[F("使用自定义规则")])),unchecked:K(()=>pe[32]||(pe[32]=[F("不使用自定义规则")])),_:1},8,["value"])]),_:1})):Ge("",!0),w.value==="custom"||$.value?(Re(),Tt(ce,{key:1,bordered:!1,title:"平行窗口默认分屏比例",size:"small"},{default:K(()=>[x(Q,{value:P.value,"onUpdate:value":pe[2]||(pe[2]=$e=>P.value=$e),size:"small",min:.01,max:.99,step:.01},null,8,["value"]),x(re,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入平行窗口默认分屏比例",value:P.value,"onUpdate:value":pe[3]||(pe[3]=$e=>P.value=$e),min:.01,max:.99,step:.01},null,8,["value"])]),_:1})):Ge("",!0),w.value==="custom"||$.value?(Re(),Tt(ce,{key:2,bordered:!1,title:"平行窗口显示比例发生变化时是否重载",size:"small"},{default:K(()=>[T("div",nq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[33]||(pe[33]=[F(" 适用于开启 "),T("span",{class:"font-bold"},"平行窗口滑动条",-1),F(" 的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:Fe.value,"onUpdate:value":pe[4]||(pe[4]=$e=>Fe.value=$e),size:"large"},{checked:K(()=>pe[34]||(pe[34]=[F("平行窗口显示比例变化时重载")])),unchecked:K(()=>pe[35]||(pe[35]=[F("平行窗口显示比例变化时不重载")])),_:1},8,["value"])]),_:1})):Ge("",!0)]),_:1})):Ge("",!0),x(he,{name:"fullScreen",tab:"全屏"},{default:K(()=>[x(se,{"show-icon":!1,bordered:!1,title:"应用横屏显示",type:"info"},{default:K(()=>pe[36]||(pe[36]=[F(" 开启后,未适配横屏应用界面将全屏显示,并可更改显示规则 ")])),_:1}),x(ce,{bordered:!1,title:"横屏显示规则",size:"small"},{default:K(()=>[x(Y,{modelValue:b.value,"onUpdate:modelValue":pe[5]||(pe[5]=$e=>b.value=$e),size:"large",trigger:"click",options:g.value,onSelect:R},{default:K(()=>[x(ne,{block:"",type:"info",dashed:""},{default:K(()=>[F(Ye(b.value.label),1)]),_:1})]),_:1},8,["modelValue","options"])]),_:1}),b.value.key==="fullScreen_custom"?(Re(),Tt(ce,{key:0,bordered:!1,title:"自定义横屏规则",size:"small"},{default:K(()=>[x(ge,null,{default:K(()=>[x(N,{ref_key:"currentFullRuleRef",ref:n,onFocus:pe[6]||(pe[6]=()=>q("currentFullRuleRef")),onBlur:pe[7]||(pe[7]=()=>W("currentFullRuleRef")),value:C.value,"onUpdate:value":pe[8]||(pe[8]=$e=>C.value=$e),placeholder:"请输入横屏规则"},null,8,["value"])]),_:1})]),_:1})):Ge("",!0),x(ce,{bordered:!1,title:"平行窗口滑动条",size:"small"},{default:K(()=>[T("div",rq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[37]||(pe[37]=[F(" 适用于原生适配 "),T("span",{class:"font-bold"},"Android Embedded",-1),F(" 的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:le.value,"onUpdate:value":pe[9]||(pe[9]=$e=>le.value=$e),size:"large"},{checked:K(()=>pe[38]||(pe[38]=[F("启用平行窗口滑动条")])),unchecked:K(()=>pe[39]||(pe[39]=[F("关闭平行窗口滑动条")])),_:1},8,["value"])]),_:1}),le.value?(Re(),Tt(ce,{key:1,bordered:!1,title:"平行窗口可滑动至全屏",size:"small"},{default:K(()=>[T("div",iq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[40]||(pe[40]=[F(" 适用于原生适配 "),T("span",{class:"font-bold"},"Android Embedded",-1),F(" 的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:k.value,"onUpdate:value":pe[10]||(pe[10]=$e=>k.value=$e),size:"large"},{checked:K(()=>pe[41]||(pe[41]=[F("平行窗口可滑动至全屏")])),unchecked:K(()=>pe[42]||(pe[42]=[F("平行窗口不可滑动至全屏")])),_:1},8,["value"])]),_:1})):Ge("",!0),!S(a).MIOSVersion||S(a).MIOSVersion&&S(a).MIOSVersion<2?(Re(),Tt(ce,{key:2,class:"",bordered:!1,title:"跳过应用自适配声明",size:"small"},{default:K(()=>[T("div",aq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[43]||(pe[43]=[F(" 适用于即使设置了 "),T("span",{class:"font-bold"},"横屏规则",-1),F(" 仍无法横屏的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:j.value,"onUpdate:value":pe[11]||(pe[11]=$e=>j.value=$e),size:"large"},{checked:K(()=>pe[44]||(pe[44]=[F("跳过自适配声明")])),unchecked:K(()=>pe[45]||(pe[45]=[F("不跳过自适配声明")])),_:1},8,["value"])]),_:1})):Ge("",!0),S(a).MIOSVersion&&S(a).MIOSVersion>=2?(Re(),Tt(ce,{key:3,class:"",bordered:!1,title:"第三方应用横屏优化",size:"small"},{default:K(()=>[T("div",lq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[46]||(pe[46]=[F(" 适用于即使设置了 "),T("span",{class:"font-bold"},"横屏规则",-1),F(" 仍无法横屏的应用 ")])),_:1})]),x(te,{"rail-style":oe,"onUpdate:value":pe[12]||(pe[12]=$e=>L($e)),value:X.value,size:"large"},{checked:K(()=>pe[47]||(pe[47]=[F("已开启第三方应用横屏优化")])),unchecked:K(()=>pe[48]||(pe[48]=[F("未开启第三方应用横屏优化")])),_:1},8,["value"])]),_:1})):Ge("",!0)]),_:1}),x(he,{name:"fixedOrientation",tab:"居中布局"},{default:K(()=>[x(se,{"show-icon":!1,bordered:!1,title:"应用居中显示",type:"warning"},{default:K(()=>pe[49]||(pe[49]=[F(" 开启后,未适配横屏应用界面将居中显示,并可更改显示比例 ")])),_:1}),x(ce,{bordered:!1,title:"居中显示比例",size:"small"},{default:K(()=>[x(Y,{value:M.value,"onUpdate:value":pe[13]||(pe[13]=$e=>M.value=$e),size:"large",trigger:"click",options:v,onSelect:O},{default:K(()=>[x(ne,{block:"",type:"error",dashed:""},{default:K(()=>[F(Ye(M.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),M.value.key==="ratio_custom"?(Re(),Tt(ce,{key:0,bordered:!1,title:"自定义显示比例",size:"small"},{default:K(()=>[x(Q,{size:"small",value:E.value,"onUpdate:value":pe[14]||(pe[14]=$e=>E.value=$e),min:1.01,max:1.99,step:.01},null,8,["value"]),x(re,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入自定义显示比例",value:E.value,"onUpdate:value":pe[15]||(pe[15]=$e=>E.value=$e),min:1.01,max:1.99,step:.01},null,8,["value"])]),_:1})):Ge("",!0),x(ce,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:K(()=>[x(te,{"rail-style":oe,value:ae.value,"onUpdate:value":pe[16]||(pe[16]=$e=>ae.value=$e),size:"large"},{checked:K(()=>pe[50]||(pe[50]=[F("应用比例变化时重载应用")])),unchecked:K(()=>pe[51]||(pe[51]=[F("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1}),S(a).MIOSVersion&&S(a).MIOSVersion>=2?(Re(),Tt(ce,{key:1,class:"",bordered:!1,title:"强制应用居中显示",size:"small"},{default:K(()=>[T("div",sq,[x(Ce,{bordered:!1,type:"success"},{default:K(()=>pe[52]||(pe[52]=[F(" 适用于即使设置了 "),T("span",{class:"font-bold"},"居中布局",-1),F(" 仍无法居中显示的应用 ")])),_:1})]),x(te,{"rail-style":oe,value:z.value,"onUpdate:value":pe[17]||(pe[17]=$e=>z.value=$e),size:"large"},{checked:K(()=>pe[53]||(pe[53]=[F("强制应用居中显示")])),unchecked:K(()=>pe[54]||(pe[54]=[F("不强制应用居中显示")])),_:1},8,["value"])]),_:1})):Ge("",!0)]),_:1}),x(he,{name:"disabled",tab:"原始布局"},{default:K(()=>[x(se,{"show-icon":!1,bordered:!1,title:"应用原始布局",type:"error"},{default:K(()=>pe[55]||(pe[55]=[F(" 开启后,将禁用任何系统规则干预,应用会根据自身的适配规则进行显示,大多数应用仅竖屏显示 ")])),_:1}),x(ce,{bordered:!1,title:"应用比例变化时是否重载应用",size:"small"},{default:K(()=>[x(te,{"rail-style":oe,value:ae.value,"onUpdate:value":pe[18]||(pe[18]=$e=>ae.value=$e),size:"large"},{checked:K(()=>pe[56]||(pe[56]=[F("应用比例变化时重载应用")])),unchecked:K(()=>pe[57]||(pe[57]=[F("应用比例变化时不重载应用")])),_:1},8,["value"])]),_:1})]),_:1})]),_:1},8,["value"])]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function hb(){const e=ht(),t=A(!1),o=()=>new Promise(async(n,r)=>{if(t.value)r("已经有存在的任务了!");else{t.value=!0;const[i,a]=await Me(jN());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 uq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 dq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("path",{d:"M12 7.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z"}),T("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"}),T("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 cq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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 fq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 hq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 pb(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 pq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("path",{d:"M16.5 7.5h-9v9h9v-9Z"}),T("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 mb(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 mq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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"}),T("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 gq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 gb(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 vq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 R3(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 bq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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 xq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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 yq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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"}),T("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 Cq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 wq(e,t){return Re(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[T("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 z3(e){let t="",o=new Uint8Array(e),n=o.byteLength;for(let r=0;r{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o});r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("p",null,[F("经过多轮测试,")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏设备体验不佳,模块无法对其进行很好的适配,不推荐在大屏设备下使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("~")]),positiveText:"已了解该应用可能不兼容"})},"com.qiyi.video":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135ClWdvL9xtB";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("爱奇艺PAD(com.qiyi.video.pad)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.hunantv.imgo.activity":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135CmUTZaefoj";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("芒果TV HD(com.imgo.pad)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.taobao.idlefish":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o});r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏设备体验不佳,模块无法对其进行很好的适配,模块更推荐在")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("居中布局")])," ",F("下使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("~")]),positiveText:"已了解该应用可能不兼容"})},"cn.cntv":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135CmUTNrzYNh";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("央视影音 HD(cn.cntvhd)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.sohu.sohuvideo":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135ClWdevpbAN";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("搜狐视频 HD(com.sohu.tv)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.sinyee.babybus.recommendapp":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135ClqWyzHNVM";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("宝宝巴士 HD(com.bb.happykids)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})},"com.CDA.StructureMaster":e=>{const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="https://caiyun.139.com/m/i?135ClqS1uhW8p";r.create({title:"应用不兼容感知",type:"warning",preset:"dialog",content:()=>x("div",null,[x("p",null,[" ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在大屏体验下欠佳,在大屏设备下更推荐使用")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("结构大师 HD(com.CDAStudio.StructureMasterHD)")])," ",F("~")]),x("p",null,[F("下载地址:")]),x("p",null,[a])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${a}`)},onNegativeClick:()=>{}})}},ba={"com.coolapk.market":{isShow(){const e=ht();return!!(e.deviceCharacteristics==="tablet"&&e.MIOSVersion&&e.MIOSVersion===2)},onClick(e){const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="eNqtVk1zGjEM/S977GQ8mfZC6IlC6SWkBBJ61noFq8Fre2wvDM3kv1deEj5mgDVpLra8q2dZsp6sl0xDhVk3k6YS0hgFdikqcEsM2U0mKxuy7tebDKus+3JR1S/JTlHNewXYQCvWC65G/m4VhQkEMln3Vnx7+zAGcpNand5NrAjXLJMWIx56kvejsOl+uTmnW3t0qzvxzNPUgsTZXQJImwLFYMNOkXxgeQwLTIB5BCdLMa0tG2vkCfpahQRoDh7FlCqrsKdsCQmQOWIhhjwMMACpd8SscwED1lag2Rsnnu3CQYGj7TLR3qojKnaIpnVeURCjvZywwYHxnrXphuMVNhcYnb0nn2JLGh1ABjF0hPpqEGifCNmfzShl1uxXSiBUXlcNqhela0yNNgNaUHiC/AB1AbQwpvCM+hXnY1SSW2OSoXaYCCs2JWfIYFMm6ucgl7WNyuLHTkzAVeg9J4/olxAC6cU1bJmgVZtjyrQn/TbHI3zWSaofgeYkY2nT4uFgkXrQ5pB7ZS6i8La4tjSetbMGpSxwpWr+WpKizzPf93FsPl5K/rOQXBGg8wXZKvBckJspVXtYKzWVDlH3ilbMigo0YhbHbdwOM7gtAjGffurgQPO71GlF2dIEIx4nfX6RUk2cStw2zGONPibrEwXVbqipMA2F+w4h4LDWTyVz0rf7g64i7yNHxo5WINsvdI15M9+bRUKKK242xD0PrZrnCsqHykkLyLg1uHjvrPoOYYLHNPAU4x4p7j+F45/AtGtz6GORTKPzpaBzBMlPS7MeUOSk2zWZtbXGhYbU9HfXe84VLGKMHfJTN3bYj08/aXTdy+wbx3HG69bDSm4IUMb73JJjt+RWmIV3/Pfsre8dkf5DRSiz7t3t7Suf0LT11Sf9LchDrrDF/dMtOVsNGxvtYZVjUWDBVgpckYzfLMRlxcXnWCGU5IoxOM5ma3/zdlVjaA7K4+s/HRabjA==";r.create({title:"应用规则感知",type:"info",preset:"dialog",content(){const l=s=>m(sd,{code:s,class:"my-5 overflow-y-auto line-clamp-6",language:"Base64",wordWrap:!0});return x("div",null,[x("p",null,[F("模块已为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," "," ",F("进行了更详尽的应用规则适配,您可以将此自定义规则通过")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("[应用横屏布局-从分享口令导入]")])," ",F("进行导入~")]),x(rt("n-button"),null,{default:()=>[F("223")]}),x("p",null,[F("Tips: 此规则需要搭配最新版的Hyper OS 2.0,老版本的 OS 2 可能由于小米BUG存在崩溃的问题。")]),l&&l(a)])},positiveText:"复制自定义规则到剪贴板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(a)},onNegativeClick:()=>{}})}},"tv.danmaku.bili":{isShow(){const e=ht();return!!(e.deviceCharacteristics==="tablet"&&e.MIOSVersion&&e.MIOSVersion===2)},onClick(e){const t=ht(),o=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:n,modal:r,notification:i}=It(["message","modal","notification"],{configProviderProps:o}),a="eNqVVd1v2kAM/1/StwndVjRpU95SUKtJoFFSdc9H4oDFfe3uAmNV//fZR4BCC13zkrPP/tnnz6fMSA1ZnsWVqKXRctmKGSrMelmlXczyfi8DneVP5+VqDHKmoAQTrM/y6FvoZcEpjCM0MLCKudnVbfryq+tv19+vi6wTmcqINsu/iK+9DEO5sOshrrCGA1DrnPXxtlWqxL9whD+R6KetesMtMZZoiioSVtw89vNPvcrqdJNuA0hfLYQmIXFDDJYuE2+nc6oxc6oNorFK2TWaucIQxe8Wq6WorAmtBnHP1GBLvEA5daxFwe+ztV0bZWUtHpkadtSIcM+5QD/WvgMDXqrLJhq5sh4jiNvucGP/XNbgWPTFLxmrxUhG8B/24khKOiechwY8mApCCvLkQF9Sk21cWB+crIANFYksmTyntc1m/3I6qeBkR/xXyRybqKxqtWF/aogSlUAt5yAGif2Dz48I60PUThyMbY1WVGAosKmQCGiQqAlRLw2/DnaytEroYgw1youWbIVSUZ+IsJAeyG+foshRKZkzBAVzyu/H1O/vixBelGbSipxKE7kBDFT819oa8YbkHp96mV6hbU0ZEJwfXNG/ExXFlvEA2u3UKWvRSxOQpoThvIX3E3d6HXQQpQ4jO0czpOfZ+bksRwBDwfaBPEzvftgxxsQ41n2rh8hRzlKRflvxB/a+OZeu3UFxHAjAW7ol4x6CbT01wI1CsyTj044xohlB4+cDaAlhSqdzj+Yaa2SIi83MYy1mytuWClOUxRCpC2kenPP+RJPqgFqDxoK4o1Ux2FE73S+Uy0bJOWfQQxuA5sFeKH932Drut5m360AG6HEjnC/izZY+PI1tWIrThFaGl7gvw9dV8/nivArRejaY+mZ7HstUCnvEZzZ1cTF2q4trhx/d0ArrkQpdLNGVoJqilo7QuqVGgHHjGAr0DOoaal6u1PoV85xkkgvzWCAu0NcT6eOmcO4nwem0JRupAjz/AySS7HI=";r.create({title:"应用规则感知",type:"info",preset:"dialog",content(){const l=s=>m(sd,{code:s,class:"my-5 overflow-y-auto line-clamp-6",language:"Base64",wordWrap:!0});return x("div",null,[x("p",null,[F("小米已为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," "," ",F("适配了应用布局优化,您可以将此自定义规则通过")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("[应用横屏布局-从分享口令导入]")])," ",F("进行导入并开启")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(e.name,e.applicationName)])," ",F("在")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用布局优化")])," ",F("的开关,即可体验~")]),x("p",null,[F("Tips: 此规则需要搭配最新版的Hyper OS 2.0,老版本的 OS 2 可能由于小米BUG存在较为严重的内存泄露问题,会导致系统越来越卡顿。")]),l&&l(a)])},positiveText:"复制自定义规则到剪贴板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(a)},onNegativeClick:()=>{}})}}},Sq={class:"mb-10"},Fq={class:"mt-3"},Eq={class:"mb-3 px-4 sm:px-0"},kq={class:"flex flex-wrap"},_q={class:"flex"},Mq={class:"flex"},Rq=ye({__name:"HomeView",setup(e){const t=A(""),o=hb(),n=ht(),r=Us(),i=di(),a=A(!1),l=A(!1),s=A(null),u=A(null),d=A(null),c=D(()=>({theme:n.isDarkMode?Bt:Ft})),{message:h,modal:f,notification:p}=It(["message","modal","notification"],{configProviderProps:c}),g=L(),v=A(!1),b=A(null);function C(I){return()=>m(Zt,null,{default:()=>m(I)})}const k=async()=>{const[I,R]=await Me(o.getList());I&&f.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>x("p",null,[F("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),R&&f.create({title:"获取成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},w=()=>{r.filterInstalledApps=!r.filterInstalledApps};lt(()=>r.isNeedShowErrorModal,(I,R)=>{I&&(v.value=!0)},{immediate:!1});const _=async()=>{await n.getAndroidApplicationPackageNameList(),await r.initDefault()},M=async()=>{t.value="";const[,I]=await Me(new Promise((R,O)=>{f.create({title:"请粘贴分享规则口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:t.value,"onUpdate:value":oe=>{t.value=oe},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴分享规则口令"}),positiveText:"确定提交",negativeText:"取消导入",onPositiveClick(){R("positiveClick")}})}));if(I){a.value=!0;const R=t.value,O=m3(R);if(!(O!=null&&O.length)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,解析")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("口令发生错误,无法正常解析。")]),negativeText:"确定"}),a.value=!1;return}try{const oe=A3(O),y=Va.inflate(oe,{to:"string"}),j=JSON.parse(y);if(j.type!=="embedded"){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,该")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("不适用于应用横屏布局。")]),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:()=>x("p",null,[F("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),a.value=!1;return}if(j.comp===1&&n.MIOSVersion&&n.MIOSVersion>1){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,该")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("仅兼容Android 13 - 14 的小米机型。")]),negativeText:"确定"}),a.value=!1;return}if(j.comp===2&&(!n.MIOSVersion||n.MIOSVersion<2)){f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,该")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("仅兼容Hyper OS 2+的小米机型。")]),negativeText:"确定"}),a.value=!1;return}r.customConfigEmbeddedRulesList[j.name]=j.em,r.customConfigFixedOrientationList[j.name]=j.fo,n.MIOSVersion&&n.MIOSVersion>=2?(j.thirdPartyAppOptimize?r.customThirdPartyAppOptimizeConfig[j.name]=Dr(j.mode):r.sourceThirdPartyAppOptimizeConfig[j.name]?r.customThirdPartyAppOptimizeConfig[j.name]=-1:delete r.customThirdPartyAppOptimizeConfig[j.name],r.customConfigEmbeddedSettingConfig[j.name]={name:j.name,...m0(r.customConfigEmbeddedRulesList[j.name],r.customConfigFixedOrientationList[j.name],j.mode)}):r.systemEmbeddedSettingConfig[j.name]={name:j.name,embeddedEnable:!!["embedded","fullScreen"].includes(j.mode)};const[X,le]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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:Dr(j.mode)}}:{switchAction:{name:j.name,action:["embedded","fullScreen"].includes(j.mode)?"enable":"disable"}}}));X?(f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),a.value=!1):(r.updateMergeRuleList(),await _(),a.value=!1,f.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>n.MIOSVersion&&n.MIOSVersion>=2?x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(j.name,n.installedAppNameList[j.name]||r.applicationName[j.name])])," ",F("的应用导入成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]):x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(j.name,n.installedAppNameList[j.name]||r.applicationName[j.name])])," ",F("的应用导入成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板专区-平行窗口")])," ",F("内")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(j.mode)?"打开":"关闭"])," ",F("该应用的开关再做尝试~")]),positiveText:"确定"}))}catch{f.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),a.value=!1}}},E=Nt({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:I=>{E.page=I},onUpdatePageSize:I=>{E.pageSize=I,E.page=1}}),P=A(!1),z=async()=>{l.value=!0,await _();const[I,R]=await Me(rc("miui_embedding_window"));I&&(f.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),l.value=!1),R&&(f.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),l.value=!1)},$=async()=>{await n.getAndroidApplicationPackageNameList(),P.value=!0;const[I,R]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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")}}));I?(f.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),P.value=!1):(r.updateMergeRuleList(),P.value=!1,f.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("好耶w,已根据您设备当前的整体应用情况重新")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("修剪模块应用适配列表")])," ",F(",后续每次更新模块或者安装新的应用后,建议重新操作")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("生成定制应用数据")])," ",F("。")])]),negativeText:"确定"}))},G=async()=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(u.value){const[I,R]=await Me(u.value.openDrawer());if(I)console.log("操作取消:",I);else{n.MIOSVersion&&n.MIOSVersion>=2&&(R.thirdPartyAppOptimize?r.customThirdPartyAppOptimizeConfig[R.name]=Dr(R.settingMode):r.sourceThirdPartyAppOptimizeConfig[R.name]?r.customThirdPartyAppOptimizeConfig[R.name]=-1:delete r.customThirdPartyAppOptimizeConfig[R.name]),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,...m0(r.customConfigEmbeddedRulesList[R.name],r.customConfigFixedOrientationList[R.name],R.settingMode)}:r.systemEmbeddedSettingConfig[R.name]={name:R.name,embeddedEnable:!!["embedded","fullScreen"].includes(R.settingMode)};const[O,oe]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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:Dr(R.settingMode)}}:{switchAction:{name:R.name,action:["embedded","fullScreen"].includes(R.settingMode)?"enable":"disable"}}}));O?(f.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(f.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>n.MIOSVersion&&n.MIOSVersion>=2?x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(R.name,n.installedAppNameList[R.name]||r.applicationName[R.name])])," ",F("的应用配置添加成功了OwO~如果应用添加后的规则不生效,可以尝试重启平板再做尝试~")]):x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(R.name,n.installedAppNameList[R.name]||r.applicationName[R.name])])," ",F("的应用配置添加成功了OwO~如果应用添加后的规则不生效,可以尝试重启平板并且在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板专区-平行窗口")])," ",F("内")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(R.settingMode)?"打开":"关闭"])," ",F("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},H=async(I,R)=>{var O;if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,暂时不兼容折叠屏设备,请等待后续更新情况!");return}if(r.systemAppOptimizeConfig[I.name]&&n.MIOSVersion&&n.MIOSVersion>=2){f.create({title:"该应用已受模块保护",type:"warning",preset:"dialog",content:()=>x("p",null,[F("为确保")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("正常横屏工作,模块已保护该应用不允许修改任何配置,如需修改请先前往")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("模块设置")])," ",F("禁用")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("系统应用横屏优化")])," ",F("。")])});return}if(va[I.name]&&va[I.name]&&va[I.name](I),d.value){const[oe,y]=await Me(d.value.openDrawer(I));if(oe)console.log("操作取消:",oe);else{if(n.MIOSVersion&&n.MIOSVersion>=2&&(y.thirdPartyAppOptimize?r.customThirdPartyAppOptimizeConfig[y.name]=Dr(y.settingMode):r.sourceThirdPartyAppOptimizeConfig[y.name]?r.customThirdPartyAppOptimizeConfig[y.name]=-1:delete r.customThirdPartyAppOptimizeConfig[y.name]),y.settingMode==="fullScreen"){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);ae.value?(y.modePayload.fullRule&&(ae.value.fullRule=y.modePayload.fullRule,ae.value.skipSelfAdaptive=!0),n.MIOSVersion&&n.MIOSVersion>=2&&!y.modePayload.fullRule&&ae.value.fullRule&&delete ae.value.fullRule,fa(le.value,ae.value)||(r.customConfigEmbeddedRulesList[I.name]={name:I.name,...ae.value})):y.modePayload.fullRule?r.customConfigEmbeddedRulesList[I.name]={name:I.name,fullRule:y.modePayload.fullRule,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}:n.MIOSVersion&&n.MIOSVersion>=2&&(r.customConfigEmbeddedRulesList[I.name]={name:I.name,skipSelfAdaptive:!0}),fe.value?(y.modePayload.hasOwnProperty("isShowDivider")&&(fe.value.isShowDivider=y.modePayload.isShowDivider),y.modePayload.hasOwnProperty("supportFullSize")&&(fe.value.supportFullSize=y.modePayload.supportFullSize),n.MIOSVersion&&n.MIOSVersion>=2?(fe.value.hasOwnProperty("disable")&&(delete fe.value.disable,fe.value.supportModes="full,fo",fe.value.defaultSettings="full"),fe.value.hasOwnProperty("compatChange")&&delete fe.value.compatChange):y.modePayload.hasOwnProperty("skipSelfAdaptive")&&(fe.value.disable=y.modePayload.skipSelfAdaptive),fa(Fe.value,fe.value)||(r.customConfigFixedOrientationList[I.name]={name:I.name,...fe.value})):r.customConfigFixedOrientationList[I.name]={name:I.name,...y.modePayload.isShowDivider?{isShowDivider:!0}:{},...y.modePayload.skipSelfAdaptive&&(!n.MIOSVersion||n.MIOSVersion<2)?{disable:!0}:{},...y.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(y.settingMode==="fixedOrientation"){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);if(fe.value){if(fe.value.hasOwnProperty("disable")&&delete fe.value.disable,fe.value.hasOwnProperty("isScale")&&delete fe.value.isScale,y.modePayload.ratio!==void 0?fe.value.ratio=y.modePayload.ratio:delete fe.value.ratio,y.modePayload.foRelaunch!==void 0?fe.value.relaunch=y.modePayload.foRelaunch:delete fe.value.relaunch,n.MIOSVersion&&n.MIOSVersion>=2)if(fe.value.supportModes="full,fo",fe.value.defaultSettings="fo",fe.value.skipSelfAdaptive=!0,y.modePayload.hasOwnProperty("forceFixedOrientation")&&y.modePayload.forceFixedOrientation)if(fe.value.compatChange){const ie=new Set((O=fe.value.compatChange)==null?void 0:O.split(","));ie.add("OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"),fe.value.compatChange=[...ie].join(",")}else fe.value.compatChange="OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT";else fe.value.hasOwnProperty("compatChange")&&delete fe.value.compatChange;fa(Fe.value,fe.value)||(r.customConfigFixedOrientationList[I.name]={name:I.name,...fe.value})}else r.customConfigFixedOrientationList[I.name]={name:I.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&&y.modePayload.forceFixedOrientation?{compatChange:"OVERRIDE_UNDEFINED_ORIENTATION_TO_PORTRAIT"}:{},...y.modePayload.ratio!==void 0?{ratio:y.modePayload.ratio}:{},...y.modePayload.foRelaunch!==void 0?{relaunch:y.modePayload.foRelaunch}:{}}}if(y.settingMode==="disabled"&&I.settingMode!==y.settingMode){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);fe.value?(fe.value.skipSelfAdaptive=!0,fe.value.disable=!0,fe.value.hasOwnProperty("compatChange")&&delete fe.value.compatChange,fa(Fe.value,fe.value)||(r.customConfigFixedOrientationList[I.name]={name:I.name,...fe.value})):r.customConfigFixedOrientationList[I.name]={name:I.name,disable:!0,...n.MIOSVersion&&n.MIOSVersion>=2?{skipSelfAdaptive:!0}:{}}}if(y.settingMode==="embedded"){if(I.settingMode!==y.settingMode&&I.ruleMode==="custom"&&I.isSupportEmbedded&&delete r.customConfigEmbeddedRulesList[I.name],r.customConfigEmbeddedRulesList[I.name])y.modePayload.hasOwnProperty("splitRatio")&&(r.customConfigEmbeddedRulesList[I.name].splitRatio=y.modePayload.splitRatio),y.modePayload.hasOwnProperty("relaunch")&&(r.customConfigEmbeddedRulesList[I.name].relaunch=y.modePayload.emRelaunch);else{let le=!1;y.modePayload.hasOwnProperty("splitRatio")&&(le=!0),y.modePayload.hasOwnProperty("emRelaunch")&&(le=!0),le&&(r.customConfigEmbeddedRulesList[I.name]={...r.isPatchMode?r.patchEmbeddedRulesList[I.name]:r.sourceEmbeddedRulesList[I.name],...y.modePayload.hasOwnProperty("splitRatio")&&{splitRatio:y.modePayload.splitRatio},...y.modePayload.hasOwnProperty("emRelaunch")&&{relaunch:y.modePayload.emRelaunch}})}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);fe.value&&(fe.hasOwnProperty("disable")&&delete fe.value.disable,fe.hasOwnProperty("defaultSettings")&&delete fe.value.defaultSettings,fe.hasOwnProperty("skipSelfAdaptive")||(fe.value.skipSelfAdaptive=!0),fe.hasOwnProperty("compatChange")&&delete fe.value.compatChange),fe.value&&(ae.hasOwnProperty("skipSelfAdaptive")||(ae.value.skipSelfAdaptive=!0)),fa(le.value,ae.value)||(r.customConfigFixedOrientationList[I.name]={name:I.name,...fe.value}),fa(Fe.value,fe.value)||(r.customConfigEmbeddedRulesList[I.name]={name:I.name,...ae.value})}}if(n.MIOSVersion&&n.MIOSVersion>=2){const{moduleEmbeddedRules:le,currentEmbeddedRules:ae,moduleFixedOrientation:Fe,currentFixedOrientation:fe}=Fl(I.name);I.settingMode!==y.settingMode&&(r.customConfigEmbeddedSettingConfig[I.name]={name:I.name,...m0(ae.value,fe.value,y.settingMode)})}else r.systemEmbeddedSettingConfig[I.name]={name:I.name,embeddedEnable:!!["embedded","fullScreen"].includes(y.settingMode)};const[j,X]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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:I.name,action:Dr(y.settingMode)}}:{switchAction:{name:I.name,action:["embedded","fullScreen"].includes(y.settingMode)?"enable":"disable"}}}));j?(f.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),y.loadingCallback&&y.loadingCallback()):(f.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>n.MIOSVersion&&n.MIOSVersion>=2?x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("的应用配置更新成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]):x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("的应用配置更新成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板并且在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板专区-平行窗口")])," ",F("内")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[["embedded","fullScreen"].includes(y.settingMode)?"打开":"关闭"])," ",F("该应用的开关再做尝试~")])}),r.updateMergeRuleList(),y.loadingCallback&&y.loadingCallback(),y.closeCallback&&y.closeCallback())}}},q=async(I,R,O,oe)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])}),i.info("应用横屏布局-添加应用","该功能仅兼容平板设备,不兼容折叠屏设备!");return}if(I==="cleanCustomRule"){const y=f.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("清除自定义规则后,你对")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(O.name,O.applicationName)])," ",F("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("模块规则")])," ",F(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{y.loading=!0,r.customConfigEmbeddedRulesList[O.name]&&delete r.customConfigEmbeddedRulesList[O.name],r.customConfigFixedOrientationList[O.name]&&delete r.customConfigFixedOrientationList[O.name],r.customConfigEmbeddedSettingConfig[O.name]&&delete r.customConfigEmbeddedSettingConfig[O.name],r.customThirdPartyAppOptimizeConfig[O.name]&&delete r.customThirdPartyAppOptimizeConfig[O.name];const[j,X]=await Me(wa({...n.MIOSVersion&&n.MIOSVersion>=2?{customThirdPartyAppOptimizeConfigProp:bl(r.customThirdPartyAppOptimizeConfig),thirdPartyAppOptimizeConfigRunnerShell:xl(r.mergeThirdPartyAppOptimizeConfig)}:void 0,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:Dr(Wv(r.isPatchMode?r.patchEmbeddedRulesList[O.name]:r.sourceEmbeddedRulesList[O.name],r.isPatchMode?r.patchFixedOrientationList[O.name]:r.sourceFixedOrientationList[O.name]))}}:{switchAction:{name:O.name,action:(r.isPatchMode?r.patchEmbeddedRulesList[O.name]:r.sourceEmbeddedRulesList[O.name])?"enable":"disable"}}}));j?(f.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),y.loading=!1):(f.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),y.loading=!1,r.updateMergeRuleList())}})}if(I==="shareCustomRule"){const y={name:O.name,cmpt:n.MIOSVersion&&n.MIOSVersion>=2?2:1,em:{name:O.name,...O.embeddedRules},fo:{name:O.name,...O.fixedOrientationRule},type:"embedded",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:O.settingMode,...n.MIOSVersion&&n.MIOSVersion>=2?{thirdPartyAppOptimize:O.thirdPartyAppOptimize}:void 0},j=JSON.stringify(y),X=Va.deflate(j,{level:9,memLevel:9,windowBits:15}),le=new Uint8Array(X),ae=z3(le),[Fe]=await Me(navigator.clipboard.writeText(`我分享了一个[应用横屏布局]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +${ae}`));if(Fe){f.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("复制")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(O.name,O.applicationName)])," ",F("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("长度过大。")]),negativeText:"确定"});return}else f.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("好耶w,复制")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(O.name,O.applicationName)])," ",F("分享口令成功了~")]),x("p",null,[F("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("长度过大。")]),x("p",null,[F("分享口令导入入口位于")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局- 从分享口令导入")])," ",F("。")])]),positiveText:"确定"})}},W=(I,R)=>{if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}f.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("模块已对")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})};function L(){return[{title:"应用名称",minWidth:250,key:"name",render(I,R){return x("div",null,[I.applicationName&&x("p",null,[I.applicationName]),I.name&&x("p",null,[x("span",{class:{hidden:!I.applicationName}},[F("(")]),I.name,x("span",{class:{hidden:!I.applicationName}},[F(")")])]),va[I.name]&&x(rt("n-button"),{class:"mt-1",size:"tiny",ghost:!0,type:"warning",onClick:()=>va[I.name]&&va[I.name](I)},{default:()=>[F("应用不兼容感知")]}),ba[I.name]&&ba[I.name].isShow&&ba[I.name].isShow()&&x(rt("n-button"),{class:"mt-1",size:"tiny",ghost:!0,type:"info",onClick:()=>ba[I.name]&&ba[I.name].onClick&&ba[I.name].onClick(I)},{default:()=>[F("应用规则感知")]})])}},{title:"规则来源",minWidth:100,key:"ruleMode",render(I,R){const O={icon:I.ruleMode==="custom"?mb:R3};if(I.ruleMode==="custom"){const oe=[{label:"分享自定义规则",key:"shareCustomRule",icon:C(fd)},{label:"清除自定义规则",key:"cleanCustomRule",icon:C(w9)}];return x(rt("n-dropdown"),{onSelect:(y,j)=>q(y,j,I),size:"large",trigger:"click",options:oe},{default:()=>[x(rt("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[F("自定义规则")],...O})]})}return x(rt("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>W(I)},{default:()=>[F("模块规则")],...O})}},{title:"规则修复",minWidth:100,key:"setting",render(I,R){const O={icon:wq},oe=(y,j)=>{f.create({title:"想修复应用规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("由于系统BUG,部分情况下会导致应用当前适配与实际不符,模块可以主动修复")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(y.name,y.applicationName)])," ",F("由于系统错误的兼容性配置导致应用布局异常的问题,确定要继续吗?")]),positiveText:"确定修复",negativeText:"我再想想",onPositiveClick:async()=>{const[X,le]=await Me(M9(y.name));if(X)f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])});else{if(n.MIOSVersion&&n.MIOSVersion>=2){const[ae,Fe]=await Me(Bj(y.name,Dr(y.settingMode)));ae&&(i.error("SetAppModeErr",ae),f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])}))}else{const[ae,Fe]=await Me($j(y.name,["embedded","fullScreen"].includes(y.settingMode)?"enable":"disable"));ae&&(i.error("SwitchActionErr",ae),f.create({title:"修复应用规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,修复应用规则失败了QwQ,详细错误请查看错误日志~")])}))}f.create({title:"修复应用规则成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,修复")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(y.name,y.applicationName)])," ",F("的应用规则成功了OwO~")])})}}})};return x("div",null,[x(rt("n-button"),{size:"small",dashed:!0,type:"warning",onClick:()=>oe(I)},{default:()=>[F("规则修复")],...O})])}},{title:"当前规则",minWidth:100,key:"settingMode",render(I,R){const O={icon:pb},oe={embedded:{type:"success",name:"平行窗口",onClick(y,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}},fullScreen:{type:"info",name:"全屏",onClick(y,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备不兼容折叠屏设备!")])});return}H(y)}},fixedOrientation:{type:"warning",name:"居中布局",onClick(y,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}},disabled:{type:"error",name:"原始布局",onClick(y,j){if(n.deviceCharacteristics!=="tablet"){f.create({title:"不兼容说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("该功能仅兼容平板设备,不兼容折叠屏设备!")])});return}H(y)}}};return x(rt("n-button"),{size:"small",strong:!0,dashed:!0,type:oe[I.settingMode].type,onClick:()=>oe[I.settingMode].onClick(I,R)},{default:()=>[oe[I.settingMode].name],...O})}}]}return ut(()=>{kt(()=>{r.isNeedShowReloadPathModeDialog&&Rt(async()=>{const[,I]=await Me(new Promise((R,O)=>{f.create({title:"是否需要重新生成定制应用数据?",type:"info",preset:"dialog",content:()=>x("p",null,[F("检测到您最近已经更新了模块版本并且开启了")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("定制模式")])," ",F(",模块需要重新操作")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("生成定制应用数据")])," ",F(",确定要继续吗?")]),positiveText:"确定",negativeText:"取消",onPositiveClick(){R("success")},onNegativeClick(){O("cancel")},onMaskClick(){O("cancel")},onClose(){O("cancel")}})}));I&&$(),r.isNeedShowReloadPathModeDialog=!1,n.needReloadData=!1})})}),(I,R)=>{const O=rt("n-alert"),oe=rt("n-input-group"),y=rt("n-card");return Re(),Oe(ft,null,[T("main",Sq,[T("div",Fq,[T("div",Eq,[R[12]||(R[12]=T("h3",{class:xe("text-base font-semibold leading-7")},[T("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%, @@ -4183,8 +4183,8 @@ ${ae}`));if(Fe){f.create({title:"复制分享口令失败",type:"error",preset:" rgb(135, 148, 255) 70.98%, rgb(60, 112, 255) 91.35%, rgb(60, 112, 255) 110.17% - )`}},"应用横屏布局")],-1)),T("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用横屏布局,优化应用在横屏下的体验。 ",2)])]),x(y,{size:"small"},{default:K(()=>[S(n).skipConfirm.patchModeAlert?Ge("",!0):(Re(),Tt(O,{key:0,type:"info",class:"mb-3",closable:"",onClose:R[0]||(R[0]=()=>{S(n).skipConfirm.patchModeAlert=!0})},{default:K(()=>R[13]||(R[13]=[F(" 由于小米系统优化不佳的原因,大量的应用适配规则可能导致系统出现卡顿、掉帧等问题,建议老机型可以前往开启模块的定制模式,详情可以前往模块设置中了解。 ")])),_:1})),T("div",Eq,[x(S(Et),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(r).loading,onClick:G},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(y9))]),_:1})]),default:K(()=>[R[14]||(R[14]=F(" 添加应用 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(r).loading,onClick:R[1]||(R[1]=()=>_())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(g9))]),_:1})]),default:K(()=>[R[15]||(R[15]=F(" 刷新应用列表 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(r).loading||l.value,onClick:R[2]||(R[2]=()=>z())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(C9))]),_:1})]),default:K(()=>[R[16]||(R[16]=F(" 热重载应用数据 "))]),_:1},8,["loading"]),S(r).isPatchMode?(Re(),Tt(S(Et),{key:0,class:"mb-3 mr-3",type:"error",loading:S(n).loading||S(r).loading||P.value,onClick:R[3]||(R[3]=()=>$())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(tj))]),_:1})]),default:K(()=>[R[17]||(R[17]=F(" 生成定制应用数据 "))]),_:1},8,["loading"])):Ge("",!0),x(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]=j=>k())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(v9))]),_:1})]),default:K(()=>[R[18]||(R[18]=F(" 获取已安装应用名称 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(r).loading||a.value,onClick:R[5]||(R[5]=j=>M())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(fd))]),_:1})]),default:K(()=>[R[19]||(R[19]=F(" 从分享口令导入 "))]),_:1},8,["loading"])]),T("div",kq,[x(S(Et),{class:"mb-3 mr-3",type:S(r).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(r).loading,secondary:"",onClick:w},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[S(r).filterInstalledApps?(Re(),Tt(S(gb),{key:0})):(Re(),Tt(S(b9),{key:1}))]),_:1})]),default:K(()=>[F(" "+et(S(r).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),x(S(Et),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[6]||(R[6]=()=>qv())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>R[20]||(R[20]=[T("img",{src:z9},null,-1)])),_:1})]),default:K(()=>[R[21]||(R[21]=F(" 应用抽屉 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[7]||(R[7]=()=>Gv())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>R[22]||(R[22]=[T("img",{src:hd},null,-1)])),_:1})]),default:K(()=>[R[23]||(R[23]=F(" 超级小爱 "))]),_:1},8,["loading"])]),T("div",_q,[x(oe,null,{default:K(()=>[x(S(rn),{size:"large",clearable:"",value:S(r).searchKeyWord,"onUpdate:value":R[8]||(R[8]=j=>S(r).searchKeyWord=j),ref_key:"searchKeyWordInput",ref:s,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),x(S(Et),{size:"large",type:"primary",onClick:R[9]||(R[9]=()=>{var j;(j=s.value)==null||j.blur()})},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(x9))]),_:1})]),default:K(()=>[R[24]||(R[24]=F(" 搜索 "))]),_:1}),x(S(Et),{size:"large",bordered:"",onClick:R[10]||(R[10]=()=>{S(r).searchKeyWord=""})},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(S9))]),_:1})]),default:K(()=>[R[25]||(R[25]=F(" 清空 "))]),_:1})]),_:1})])]),_:1}),x(S(tg),{ref_key:"embeddedTableRef",ref:b,loading:S(n).loading||S(r).loading,columns:S(g),class:"mt-3",data:S(r).filterMergeRuleList,pagination:E},null,8,["loading","columns","data","pagination"])]),x(k9,{modelValue:v.value,"onUpdate:modelValue":R[11]||(R[11]=j=>v.value=j),errorLogging:S(r).errorLogging},null,8,["modelValue","errorLogging"]),x(j5,{ref_key:"addEmbeddedApp",ref:u,type:"add",title:"添加应用"},null,512),x(j5,{ref_key:"updateEmbeddedApp",ref:d,type:"update",title:"更新应用"},null,512)],64)}}}),U5=ye({__name:"AutoUIAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=A(null),r=A(null),i=e,a=A(!1),l=ht(),s=C3(),u=di(),d=D(()=>({theme:l.isDarkMode?Bt:Ft})),{message:c,modal:h}=It(["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=A(g[0]),b=A(""),C=A(""),k=A(),w=A(!1),_=A(!1),M=A(),E=A({openDrawer:R=>new Promise((O,oe)=>{var y,j,X,le;if(i.type==="update"&&!R){oe(new Error("更新模式下必须传入初始化参数")),c.error("初始化参数不能为空");return}if(f=O,p=oe,i.type==="add"&&(M.value="add",q.value="",b.value="",v.value=g[0],C.value="",_.value=!1,w.value=!0),i.type==="update"&&R){switch(M.value="update",q.value=R.name,k.value=R.ruleMode,b.value=((y=R.autoUIRule)==null?void 0:y.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}}C.value=((j=R.autoUIRule)==null?void 0:j.skippedActivityRule)||"",_.value=((X=R.autoUIRule)==null?void 0:X.skippedAppConfigChange)||!1,w.value=((le=R.autoUIRule)==null?void 0:le.optimizeWebView)||!1}a.value=!0}),closeDrawer:()=>{a.value=!1,p("Drawer closed without submission")}}),P=(R,O)=>{v.value=O,b.value=O.rule||""},z=({focused:R,checked:O})=>{const oe={};return O?(oe.background="#2080f0",R&&(oe.boxShadow="0 0 0 2px #2080f040")):(oe.background="#d03050",R&&(oe.boxShadow="0 0 0 2px #d0305040")),oe},$=R=>{const O=document.querySelector(".n-drawer-content");O instanceof HTMLElement&&(u.info("resizeDrawerContent",R),O.style.height=R?"calc(100% + 200px)":"100%")},G=R=>{var O,oe;R==="currentActivityRuleRef"&&($(!0),(O=r.value)==null||O.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&($(!0),(oe=n.value)==null||oe.$el.scrollIntoView({behavior:"smooth",block:"start"}))},H=R=>{var O,oe;R==="currentActivityRuleRef"&&($(!1),(O=r.value)==null||O.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&($(!1),(oe=n.value)==null||oe.$el.scrollIntoView({behavior:"smooth",block:"start"}))},q=A(""),W=A(""),L=async()=>{if(!q.value){h.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?应用包名不能为空(敲")])});return}if(i.type==="add"&&s.allPackageName.has(q.value)){h.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?这个应用包名已经存在列表中了(敲")])});return}I.value=!0;const R=()=>{I.value=!1,a.value=!1},O=()=>{I.value=!1},oe={name:q.value,modePayload:{optimizeWebView:w.value,skippedAppConfigChange:_.value,...v.value.key!=="UNDEFINED_VIEW_POLICY"&&b.value?{activityRule:b.value}:{},...b.value&&C.value?{skippedActivityRule:C.value}:{}},loadingCallback:O,closeCallback:R};h.create({title:"确认应用布局优化规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("应用布局优化的规则仅在应用横屏全屏场景下才会生效,建议将应用的横屏配置修改为")," ",x("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("全屏")]),F(",规则效果以应用个体差异而异,建议多多尝试。继续更新将会被更替为")," ",x("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F(",且该应用规则不再随模块版本更新,如后续需要改回")," ",x("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("模块规则")])," ",F("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定应用",negativeText:"我再想想",onPositiveClick:async()=>{f(oe)},onNegativeClick(){O()},onMaskClick(){O()},onClose(){O()}})},I=A(!1);return A(0),t({openDrawer:E.value.openDrawer}),(R,O)=>{const oe=rt("n-input-group-label"),y=rt("n-input"),j=rt("n-input-group"),X=rt("n-tag"),le=rt("n-alert"),ae=rt("n-button"),Fe=rt("n-dropdown"),fe=rt("n-card"),ue=rt("n-switch"),we=rt("n-drawer-content"),ie=rt("n-drawer");return Re(),Oe(ft,null,[Es(R.$slots,"default",eh(u6({openDrawer:E.value.openDrawer}))),x(ie,{show:a.value,"onUpdate:show":O[12]||(O[12]=be=>a.value=be),width:S(l).windowWidth>=640?"450px":"100%",placement:"right"},{default:K(()=>[x(we,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:i.title,closable:""},{footer:K(()=>[x(ae,{type:"info",loading:I.value,"onUpdate:loading":O[10]||(O[10]=be=>I.value=be),onClick:O[11]||(O[11]=()=>L())},{default:K(()=>O[23]||(O[23]=[F(" 提交 ")])),_:1},8,["loading"])]),default:K(()=>[x(j,{class:xe(S(l).MIOSVersion&&S(l).MIOSVersion>=2?"":"mb-5")},{default:K(()=>[x(oe,{size:"large"},{default:K(()=>O[13]||(O[13]=[F("应用包名")])),_:1}),x(y,{size:"large",status:W.value,value:q.value,"onUpdate:value":O[0]||(O[0]=be=>q.value=be),"allow-input":be=>fb(be),readonly:i.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1},8,["class"]),k.value==="custom"?(Re(),Tt(le,{key:0,type:"info",class:"mb-2"},{default:K(()=>[O[16]||(O[16]=F(" 当前应用已被 ")),x(X,{bordered:!1,type:"info"},{default:K(()=>O[14]||(O[14]=[F("自定义规则")])),_:1}),O[17]||(O[17]=F(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),x(X,{bordered:!1,type:"info"},{default:K(()=>O[15]||(O[15]=[F("自定义规则")])),_:1}),O[18]||(O[18]=F(" 。 "))]),_:1})):Ge("",!0),x(fe,{bordered:!1,title:"应用布局优化规则",size:"small"},{default:K(()=>[x(Fe,{value:v.value,"onUpdate:value":O[1]||(O[1]=be=>v.value=be),size:"large",trigger:"click",options:g,onSelect:P},{default:K(()=>[x(ae,{block:"",type:"info",dashed:""},{default:K(()=>[F(et(v.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),v.value.key==="CUSTOM_VIEW_POLICY"?(Re(),Tt(fe,{key:1,bordered:!1,title:"自定义应用布局优化规则",size:"small"},{default:K(()=>[x(j,null,{default:K(()=>[x(y,{"display-directive":"show",ref_key:"currentActivityRuleRef",ref:r,onFocus:O[2]||(O[2]=()=>G("currentActivityRuleRef")),onBlur:O[3]||(O[3]=()=>H("currentActivityRuleRef")),"allow-input":be=>JG(be),type:"textarea",autosize:{minRows:3,maxRows:3},value:b.value,"onUpdate:value":O[4]||(O[4]=be=>b.value=be),placeholder:"请输入自定义应用布局优化规则"},null,8,["allow-input","value"])]),_:1})]),_:1})):Ge("",!0),x(fe,{bordered:!1,title:"跳过应用布局优化的Activity规则",size:"small"},{default:K(()=>[x(j,null,{default:K(()=>[x(y,{"display-directive":"show",ref_key:"currentSkippedActivityRuleRef",ref:n,onFocus:O[5]||(O[5]=()=>G("currentSkippedActivityRuleRef")),onBlur:O[6]||(O[6]=()=>H("currentSkippedActivityRuleRef")),"allow-input":be=>eq(be),type:"textarea",autosize:{minRows:3,maxRows:3},value:C.value,"onUpdate:value":O[7]||(O[7]=be=>C.value=be),placeholder:"请输入跳过应用布局优化的Activity规则"},null,8,["allow-input","value"])]),_:1})]),_:1}),x(fe,{bordered:!1,title:"优化WebView页面",size:"small"},{default:K(()=>[x(ue,{"rail-style":z,value:w.value,"onUpdate:value":O[8]||(O[8]=be=>w.value=be),size:"large"},{checked:K(()=>O[19]||(O[19]=[F("优化WebView页面")])),unchecked:K(()=>O[20]||(O[20]=[F("不优化WebView页面")])),_:1},8,["value"])]),_:1}),x(fe,{bordered:!1,title:"跳过应用配置改变",size:"small"},{default:K(()=>[x(ue,{"rail-style":z,value:_.value,"onUpdate:value":O[9]||(O[9]=be=>_.value=be),size:"large"},{checked:K(()=>O[21]||(O[21]=[F("跳过应用配置改变")])),unchecked:K(()=>O[22]||(O[22]=[F("不跳过应用配置改变")])),_:1},8,["value"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function Rq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft}));It(["message","modal"],{configProviderProps:t});const o=()=>{},n=()=>{};return ut(()=>{}),{add:o,update:n}}const zq={class:"autoui-view mb-10"},Aq={class:"mt-3"},Pq={class:"mb-3 px-4 sm:px-0"},Bq={class:"flex flex-wrap"},$q={class:"flex flex-wrap"},Dq=ye({__name:"AutoUIView",setup(e){const t=A(null),o=q(),n=ht(),r=hb(),i=D(()=>({theme:n.isDarkMode?Bt:Ft})),{message:a,modal:l,notification:s}=It(["message","modal","notification"],{configProviderProps:i}),u=C3(),d=A(!1),c=A(!1);Rq();const h=A(null),f=A(null);qH(),di(),Vv();const p=A("");function g(W){return()=>m(Zt,null,{default:()=>m(W)})}const v=async()=>{await n.getAndroidApplicationPackageNameList(),await u.initDefault()},b=async()=>{const[W,L]=await Me(r.getList());W&&l.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>x("p",null,[F("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),L&&l.create({title:"获取成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},C=()=>{u.filterInstalledApps=!u.filterInstalledApps},k=async()=>{c.value=!0,await v();const[W,L]=await Me(rc("miui_auto_ui"));W&&(l.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),c.value=!1),L&&(l.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),c.value=!1)},w=async()=>{p.value="";const[,W]=await Me(new Promise((L,I)=>{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(){L("positiveClick")}})}));if(W){d.value=!0;const L=p.value,I=m3(L);if(!(I!=null&&I.length)){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,解析")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("口令发生错误,无法正常解析。")]),negativeText:"确定"}),d.value=!1;return}console.log(I,"getBase64String");try{const R=A3(I),O=Va.inflate(R,{to:"string"}),oe=JSON.parse(O);if(oe.type!=="autoui"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,该")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("不适用于应用布局优化。")]),negativeText:"确定"}),d.value=!1;return}if(oe.device==="pad"&&n.deviceCharacteristics!=="tablet"||oe.device==="fold"&&n.deviceCharacteristics==="tablet"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),d.value=!1;return}u.customConfigAutoUIList[oe.name]=oe.rules,u.autoUISettingConfig[oe.name]={name:oe.name,enable:!0};const[y,j]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:oe.name,action:"enable"}}));y?(l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),d.value=!1):(u.updateMergeRuleList(),await v(),d.value=!1,l.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(oe.name,n.installedAppNameList[oe.name]||u.applicationName[oe.name])])," ",F("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]),positiveText:"确定"}))}catch(R){console.log(R,"error"),l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),d.value=!1}}},_=async(W,L,I,R)=>{if(W==="cleanCustomRule"){const O=l.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("清除自定义规则后,你对")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("模块规则")])," ",F(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{O.loading=!0,u.customConfigAutoUIList[I.name]&&delete u.customConfigAutoUIList[I.name];const[oe,y]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config")}));oe?(l.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),O.loading=!1):(l.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),O.loading=!1,u.updateMergeRuleList())}})}if(W==="shareCustomRule"){const O={name:I.name,cmpt:1,rules:{name:I.name,...I.autoUIRule},type:"autoui",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:I.settingMode};console.log(O,"shareContent");const oe=JSON.stringify(O),y=Va.deflate(oe,{level:9,memLevel:9,windowBits:15}),j=new Uint8Array(y),X=z3(j),[le]=await Me(navigator.clipboard.writeText(`我分享了一个[应用布局优化]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: -${X}`));if(le){l.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("复制")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("长度过大。")]),negativeText:"确定"});return}else l.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("好耶w,复制")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("分享口令成功了~")]),x("p",null,[F("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("长度过大。")]),x("p",null,[F("分享口令导入入口位于")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用布局优化- 从分享口令导入")])," ",F("。")])]),positiveText:"确定"})}},M=(W,L)=>{W.ruleMode==="module"&&l.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("模块已对")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(W.name,W.applicationName)])," ",F("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})},E=async(W,L,I)=>{const R=l.create({title:`想${I?"开启":"关闭"}该应用的应用布局优化吗?`,type:"warning",preset:"dialog",content:()=>x("p",null,[F("即将"),I?"开启":"关闭",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(W.name,W.applicationName)])," ",F("的应用布局优化适配规则。确定要继续吗?")]),positiveText:"确定",negativeText:"我再想想",onPositiveClick:async()=>{R.loading=!0,u.autoUISettingConfig[W.name]?u.autoUISettingConfig[W.name].enable=I:u.autoUISettingConfig[W.name]={name:W.name,enable:I};const[O,oe]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:W.name,action:I?"enable":"disable"}}));O?(l.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loading=!1):(l.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,操作成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),R.loading=!1,u.updateMergeRuleList())}})},P=async()=>{if(h.value){const[W,L]=await Me(h.value.openDrawer());if(W)console.log("操作取消:",W);else{u.customConfigAutoUIList[L.name]={name:L.name,enable:!0,...L!=null&&L.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...L!=null&&L.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...L!=null&&L.modePayload.hasOwnProperty("activityRule")?{activityRule:L==null?void 0:L.modePayload.activityRule}:{},...L!=null&&L.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:L==null?void 0:L.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[L.name]={name:L.name,enable:!0};const[I,R]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:L.name,action:"enable"}}));I?(l.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),L.loadingCallback&&L.loadingCallback()):(l.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(L.name,n.installedAppNameList[L.name]||u.applicationName[L.name])])," ",F("的应用配置添加成功了OwO~应用布局优化仅在应用全屏场景下生效,如果应用添加后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),L.loadingCallback&&L.loadingCallback(),L.closeCallback&&L.closeCallback())}}},z=async(W,L)=>{if(f&&f.value){const[I,R]=await Me(f.value.openDrawer(W));if(I)console.log("操作取消:",I);else{u.customConfigAutoUIList[W.name]?(u.customConfigAutoUIList[W.name].enable=!0,u.customConfigAutoUIList[W.name].name=W.name,R!=null&&R.modePayload.hasOwnProperty("activityRule")&&(u.customConfigAutoUIList[W.name].activityRule=R==null?void 0:R.modePayload.activityRule),R!=null&&R.modePayload.hasOwnProperty("skippedActivityRule")&&(u.customConfigAutoUIList[W.name].skippedActivityRule=R==null?void 0:R.modePayload.skippedActivityRule),R!=null&&R.modePayload.hasOwnProperty("optimizeWebView")&&(u.customConfigAutoUIList[W.name].optimizeWebView=R==null?void 0:R.modePayload.optimizeWebView),R!=null&&R.modePayload.hasOwnProperty("skippedAppConfigChange")&&(u.customConfigAutoUIList[W.name].skippedAppConfigChange=R==null?void 0:R.modePayload.skippedAppConfigChange)):u.customConfigAutoUIList[W.name]={name:W.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[W.name]?u.autoUISettingConfig[W.name].enable=!0:u.autoUISettingConfig[W.name]={name:W.name,enable:!0},console.log("loadingCallback:",R.loadingCallback);const[O,oe]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:W.name,action:"enable"}}));O?(l.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(l.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(W.name,W.applicationName)])," ",F("的应用配置更新成功了OwO~,如果应用更新后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},$=Nt({UNDEFINED_VIEW_POLICY:{type:"default",color:"",name:"空白规则"},VIEW_POLICY_DEFAULT:{type:"success",color:"",name:"全局缩放",onClick(W,L){}},VIEW_POLICY_STRETCH:{type:"info",color:"",name:"全局拉伸",onClick(W,L){}},VIEW_POLICY_AUTO_COLUMNS:{type:"warning",color:"",name:"全局栅格",onClick(W,L){}},VIEW_POLICY_FLOAT:{type:"error",color:"",name:"全局浮动",onClick(W,L){}},CUSTOM_VIEW_POLICY:{type:"",color:"#8a2be2",name:"详细适配",onClick(W,L){}}}),G=Nt({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:W=>{G.page=W},onUpdatePageSize:W=>{G.pageSize=W,G.page=1}}),H=({focused:W,checked:L})=>{const I={};return L?(I.background="#2080f0",W&&(I.boxShadow="0 0 0 2px #2080f040")):(I.background="#d03050",W&&(I.boxShadow="0 0 0 2px #d0305040")),I};function q(){return[{title:"应用名称",width:250,key:"name",render(W,L){return x("div",null,[W.applicationName&&x("p",null,[W.applicationName]),W.name&&x("p",null,[x("span",{class:{hidden:!W.applicationName}},[F("(")]),W.name,x("span",{class:{hidden:!W.applicationName}},[F(")")])])])}},{title:"规则来源",key:"ruleMode",render(W,L){const I={icon:W.ruleMode==="custom"?mb:R3};if(W.ruleMode==="custom"){const R=[{label:"分享自定义规则",key:"shareCustomRule",icon:g(fd)},{label:"清除自定义规则",key:"cleanCustomRule",icon:g(w9)}];return x(rt("n-dropdown"),{onSelect:(O,oe)=>_(O,oe,W),size:"large",trigger:"click",options:R},{default:()=>[x(rt("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[F("自定义规则")],...I})]})}return x(rt("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>M(W)},{default:()=>[F("模块规则")],...I})}},{title:"WebView优化",minWidth:110,key:"isOptimizeWebView",render(W,L){var I;return(I=W.autoUIRule)!=null&&I.optimizeWebView?x(rt("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[F("已启用")]}):x(rt("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[F("未启用")]})}},{title:"布局规则",key:"settingMode",render(W,L){const I={icon:pb};return x(rt("n-button"),{size:"small",strong:!0,dashed:!0,type:$[W.settingMode].type,color:$[W.settingMode].color,onClick:()=>z(W)},{default:()=>[$[W.settingMode].name],...I})}},{title:"操作",minWidth:100,key:"setting",render(W,L){const I={checked:()=>x("span",null,[F("开启")]),unchecked:()=>x("span",null,[F("关闭")])},R=O=>O.settingRule&&O.settingRule.hasOwnProperty("enable")?O.settingRule.enable:O.autoUIRule&&O.autoUIRule.hasOwnProperty("enable")?O.autoUIRule.enable:!0;return x(rt("n-switch"),{railStyle:H,onUpdateValue:O=>E(W,L,O),size:"medium",value:R&&R(W)},I)}}]}return(W,L)=>{const I=rt("n-input-group"),R=rt("n-card"),O=rt("n-data-table");return Re(),Oe("main",zq,[T("div",Aq,[T("div",Pq,[L[9]||(L[9]=T("h3",{class:xe("text-base font-semibold leading-7")},[T("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r + )`}},"应用横屏布局")],-1)),T("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用横屏布局,优化应用在横屏下的体验。 ",2)])]),x(y,{size:"small"},{default:K(()=>[S(n).skipConfirm.patchModeAlert?Ge("",!0):(Re(),Tt(O,{key:0,type:"info",class:"mb-3",closable:"",onClose:R[0]||(R[0]=()=>{S(n).skipConfirm.patchModeAlert=!0})},{default:K(()=>R[13]||(R[13]=[F(" 由于小米系统优化不佳的原因,大量的应用适配规则可能导致系统出现卡顿、掉帧等问题,建议老机型可以前往开启模块的定制模式,详情可以前往模块设置中了解。 ")])),_:1})),T("div",kq,[x(S(Et),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(r).loading,onClick:G},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(y9))]),_:1})]),default:K(()=>[R[14]||(R[14]=F(" 添加应用 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(r).loading,onClick:R[1]||(R[1]=()=>_())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(g9))]),_:1})]),default:K(()=>[R[15]||(R[15]=F(" 刷新应用列表 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(r).loading||l.value,onClick:R[2]||(R[2]=()=>z())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(C9))]),_:1})]),default:K(()=>[R[16]||(R[16]=F(" 热重载应用数据 "))]),_:1},8,["loading"]),S(r).isPatchMode?(Re(),Tt(S(Et),{key:0,class:"mb-3 mr-3",type:"error",loading:S(n).loading||S(r).loading||P.value,onClick:R[3]||(R[3]=()=>$())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(oj))]),_:1})]),default:K(()=>[R[17]||(R[17]=F(" 生成定制应用数据 "))]),_:1},8,["loading"])):Ge("",!0),x(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]=j=>k())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(v9))]),_:1})]),default:K(()=>[R[18]||(R[18]=F(" 获取已安装应用名称 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(r).loading||a.value,onClick:R[5]||(R[5]=j=>M())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(fd))]),_:1})]),default:K(()=>[R[19]||(R[19]=F(" 从分享口令导入 "))]),_:1},8,["loading"])]),T("div",_q,[x(S(Et),{class:"mb-3 mr-3",type:S(r).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(r).loading,secondary:"",onClick:w},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[S(r).filterInstalledApps?(Re(),Tt(S(gb),{key:0})):(Re(),Tt(S(b9),{key:1}))]),_:1})]),default:K(()=>[F(" "+Ye(S(r).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),x(S(Et),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[6]||(R[6]=()=>qv())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>R[20]||(R[20]=[T("img",{src:z9},null,-1)])),_:1})]),default:K(()=>[R[21]||(R[21]=F(" 应用抽屉 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(r).loading,onClick:R[7]||(R[7]=()=>Gv())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>R[22]||(R[22]=[T("img",{src:hd},null,-1)])),_:1})]),default:K(()=>[R[23]||(R[23]=F(" 超级小爱 "))]),_:1},8,["loading"])]),T("div",Mq,[x(oe,null,{default:K(()=>[x(S(rn),{size:"large",clearable:"",value:S(r).searchKeyWord,"onUpdate:value":R[8]||(R[8]=j=>S(r).searchKeyWord=j),ref_key:"searchKeyWordInput",ref:s,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),x(S(Et),{size:"large",type:"primary",onClick:R[9]||(R[9]=()=>{var j;(j=s.value)==null||j.blur()})},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(x9))]),_:1})]),default:K(()=>[R[24]||(R[24]=F(" 搜索 "))]),_:1}),x(S(Et),{size:"large",bordered:"",onClick:R[10]||(R[10]=()=>{S(r).searchKeyWord=""})},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(S9))]),_:1})]),default:K(()=>[R[25]||(R[25]=F(" 清空 "))]),_:1})]),_:1})])]),_:1}),x(S(tg),{ref_key:"embeddedTableRef",ref:b,loading:S(n).loading||S(r).loading,columns:S(g),class:"mt-3",data:S(r).filterMergeRuleList,pagination:E},null,8,["loading","columns","data","pagination"])]),x(k9,{modelValue:v.value,"onUpdate:modelValue":R[11]||(R[11]=j=>v.value=j),errorLogging:S(r).errorLogging},null,8,["modelValue","errorLogging"]),x(j5,{ref_key:"addEmbeddedApp",ref:u,type:"add",title:"添加应用"},null,512),x(j5,{ref_key:"updateEmbeddedApp",ref:d,type:"update",title:"更新应用"},null,512)],64)}}}),U5=ye({__name:"AutoUIAppDrawer",props:{type:{},title:{}},emits:["submit"],setup(e,{expose:t,emit:o}){const n=A(null),r=A(null),i=e,a=A(!1),l=ht(),s=C3(),u=di(),d=D(()=>({theme:l.isDarkMode?Bt:Ft})),{message:c,modal:h}=It(["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=A(g[0]),b=A(""),C=A(""),k=A(),w=A(!1),_=A(!1),M=A(),E=A({openDrawer:R=>new Promise((O,oe)=>{var y,j,X,le;if(i.type==="update"&&!R){oe(new Error("更新模式下必须传入初始化参数")),c.error("初始化参数不能为空");return}if(f=O,p=oe,i.type==="add"&&(M.value="add",q.value="",b.value="",v.value=g[0],C.value="",_.value=!1,w.value=!0),i.type==="update"&&R){switch(M.value="update",q.value=R.name,k.value=R.ruleMode,b.value=((y=R.autoUIRule)==null?void 0:y.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}}C.value=((j=R.autoUIRule)==null?void 0:j.skippedActivityRule)||"",_.value=((X=R.autoUIRule)==null?void 0:X.skippedAppConfigChange)||!1,w.value=((le=R.autoUIRule)==null?void 0:le.optimizeWebView)||!1}a.value=!0}),closeDrawer:()=>{a.value=!1,p("Drawer closed without submission")}}),P=(R,O)=>{v.value=O,b.value=O.rule||""},z=({focused:R,checked:O})=>{const oe={};return O?(oe.background="#2080f0",R&&(oe.boxShadow="0 0 0 2px #2080f040")):(oe.background="#d03050",R&&(oe.boxShadow="0 0 0 2px #d0305040")),oe},$=R=>{const O=document.querySelector(".n-drawer-content");O instanceof HTMLElement&&(u.info("resizeDrawerContent",R),O.style.height=R?"calc(100% + 200px)":"100%")},G=R=>{var O,oe;R==="currentActivityRuleRef"&&($(!0),(O=r.value)==null||O.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&($(!0),(oe=n.value)==null||oe.$el.scrollIntoView({behavior:"smooth",block:"start"}))},H=R=>{var O,oe;R==="currentActivityRuleRef"&&($(!1),(O=r.value)==null||O.$el.scrollIntoView({behavior:"smooth",block:"start"})),R==="currentSkippedActivityRuleRef"&&($(!1),(oe=n.value)==null||oe.$el.scrollIntoView({behavior:"smooth",block:"start"}))},q=A(""),W=A(""),L=async()=>{if(!q.value){h.create({title:"应用包名不能为空",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?应用包名不能为空(敲")])});return}if(i.type==="add"&&s.allPackageName.has(q.value)){h.create({title:"应用包名已存在",type:"error",preset:"dialog",content:()=>x("p",null,[F("噫?这个应用包名已经存在列表中了(敲")])});return}I.value=!0;const R=()=>{I.value=!1,a.value=!1},O=()=>{I.value=!1},oe={name:q.value,modePayload:{optimizeWebView:w.value,skippedAppConfigChange:_.value,...v.value.key!=="UNDEFINED_VIEW_POLICY"&&b.value?{activityRule:b.value}:{},...b.value&&C.value?{skippedActivityRule:C.value}:{}},loadingCallback:O,closeCallback:R};h.create({title:"确认应用布局优化规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("应用布局优化的规则仅在应用横屏全屏场景下才会生效,建议将应用的横屏配置修改为")," ",x("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("全屏")]),F(",规则效果以应用个体差异而异,建议多多尝试。继续更新将会被更替为")," ",x("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F(",且该应用规则不再随模块版本更新,如后续需要改回")," ",x("span",{class:`font-bold ${l.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("模块规则")])," ",F("则需要先清除自定义规则,确定要继续吗?")]),positiveText:"确定应用",negativeText:"我再想想",onPositiveClick:async()=>{f(oe)},onNegativeClick(){O()},onMaskClick(){O()},onClose(){O()}})},I=A(!1);return A(0),t({openDrawer:E.value.openDrawer}),(R,O)=>{const oe=rt("n-input-group-label"),y=rt("n-input"),j=rt("n-input-group"),X=rt("n-tag"),le=rt("n-alert"),ae=rt("n-button"),Fe=rt("n-dropdown"),fe=rt("n-card"),ue=rt("n-switch"),we=rt("n-drawer-content"),ie=rt("n-drawer");return Re(),Oe(ft,null,[Es(R.$slots,"default",eh(u6({openDrawer:E.value.openDrawer}))),x(ie,{show:a.value,"onUpdate:show":O[12]||(O[12]=be=>a.value=be),width:S(l).windowWidth>=640?"450px":"100%",placement:"right"},{default:K(()=>[x(we,{"body-content-class":"auto-ui-drawer-content","scrollbar-props":{trigger:"none"},title:i.title,closable:""},{footer:K(()=>[x(ae,{type:"info",loading:I.value,"onUpdate:loading":O[10]||(O[10]=be=>I.value=be),onClick:O[11]||(O[11]=()=>L())},{default:K(()=>O[23]||(O[23]=[F(" 提交 ")])),_:1},8,["loading"])]),default:K(()=>[x(j,{class:xe(S(l).MIOSVersion&&S(l).MIOSVersion>=2?"":"mb-5")},{default:K(()=>[x(oe,{size:"large"},{default:K(()=>O[13]||(O[13]=[F("应用包名")])),_:1}),x(y,{size:"large",status:W.value,value:q.value,"onUpdate:value":O[0]||(O[0]=be=>q.value=be),"allow-input":be=>fb(be),readonly:i.type==="update",placeholder:"请输入应用包名"},null,8,["status","value","allow-input","readonly"])]),_:1},8,["class"]),k.value==="custom"?(Re(),Tt(le,{key:0,type:"info",class:"mb-2"},{default:K(()=>[O[16]||(O[16]=F(" 当前应用已被 ")),x(X,{bordered:!1,type:"info"},{default:K(()=>O[14]||(O[14]=[F("自定义规则")])),_:1}),O[17]||(O[17]=F(" 覆盖,该应用规则不再随模块版本更新,如需恢复模块规则,请先清除 ")),x(X,{bordered:!1,type:"info"},{default:K(()=>O[15]||(O[15]=[F("自定义规则")])),_:1}),O[18]||(O[18]=F(" 。 "))]),_:1})):Ge("",!0),x(fe,{bordered:!1,title:"应用布局优化规则",size:"small"},{default:K(()=>[x(Fe,{value:v.value,"onUpdate:value":O[1]||(O[1]=be=>v.value=be),size:"large",trigger:"click",options:g,onSelect:P},{default:K(()=>[x(ae,{block:"",type:"info",dashed:""},{default:K(()=>[F(Ye(v.value.label),1)]),_:1})]),_:1},8,["value"])]),_:1}),v.value.key==="CUSTOM_VIEW_POLICY"?(Re(),Tt(fe,{key:1,bordered:!1,title:"自定义应用布局优化规则",size:"small"},{default:K(()=>[x(j,null,{default:K(()=>[x(y,{"display-directive":"show",ref_key:"currentActivityRuleRef",ref:r,onFocus:O[2]||(O[2]=()=>G("currentActivityRuleRef")),onBlur:O[3]||(O[3]=()=>H("currentActivityRuleRef")),"allow-input":be=>eq(be),type:"textarea",autosize:{minRows:3,maxRows:3},value:b.value,"onUpdate:value":O[4]||(O[4]=be=>b.value=be),placeholder:"请输入自定义应用布局优化规则"},null,8,["allow-input","value"])]),_:1})]),_:1})):Ge("",!0),x(fe,{bordered:!1,title:"跳过应用布局优化的Activity规则",size:"small"},{default:K(()=>[x(j,null,{default:K(()=>[x(y,{"display-directive":"show",ref_key:"currentSkippedActivityRuleRef",ref:n,onFocus:O[5]||(O[5]=()=>G("currentSkippedActivityRuleRef")),onBlur:O[6]||(O[6]=()=>H("currentSkippedActivityRuleRef")),"allow-input":be=>tq(be),type:"textarea",autosize:{minRows:3,maxRows:3},value:C.value,"onUpdate:value":O[7]||(O[7]=be=>C.value=be),placeholder:"请输入跳过应用布局优化的Activity规则"},null,8,["allow-input","value"])]),_:1})]),_:1}),x(fe,{bordered:!1,title:"优化WebView页面",size:"small"},{default:K(()=>[x(ue,{"rail-style":z,value:w.value,"onUpdate:value":O[8]||(O[8]=be=>w.value=be),size:"large"},{checked:K(()=>O[19]||(O[19]=[F("优化WebView页面")])),unchecked:K(()=>O[20]||(O[20]=[F("不优化WebView页面")])),_:1},8,["value"])]),_:1}),x(fe,{bordered:!1,title:"跳过应用配置改变",size:"small"},{default:K(()=>[x(ue,{"rail-style":z,value:_.value,"onUpdate:value":O[9]||(O[9]=be=>_.value=be),size:"large"},{checked:K(()=>O[21]||(O[21]=[F("跳过应用配置改变")])),unchecked:K(()=>O[22]||(O[22]=[F("不跳过应用配置改变")])),_:1},8,["value"])]),_:1})]),_:1},8,["title"])]),_:1},8,["show","width"])],64)}}});function zq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft}));It(["message","modal"],{configProviderProps:t});const o=()=>{},n=()=>{};return ut(()=>{}),{add:o,update:n}}const Aq={class:"autoui-view mb-10"},Pq={class:"mt-3"},Bq={class:"mb-3 px-4 sm:px-0"},$q={class:"flex flex-wrap"},Dq={class:"flex flex-wrap"},Tq=ye({__name:"AutoUIView",setup(e){const t=A(null),o=q(),n=ht(),r=hb(),i=D(()=>({theme:n.isDarkMode?Bt:Ft})),{message:a,modal:l,notification:s}=It(["message","modal","notification"],{configProviderProps:i}),u=C3(),d=A(!1),c=A(!1);zq();const h=A(null),f=A(null);qH(),di(),Vv();const p=A("");function g(W){return()=>m(Zt,null,{default:()=>m(W)})}const v=async()=>{await n.getAndroidApplicationPackageNameList(),await u.initDefault()},b=async()=>{const[W,L]=await Me(r.getList());W&&l.create({title:"获取失败",type:"warning",preset:"dialog",content:()=>x("p",null,[F("您的系统环境暂不支持该功能,获取失败~")]),negativeText:"确定"}),L&&l.create({title:"获取成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶OwO,已重新获取当前已安装的应用名称~")]),negativeText:"确定"})},C=()=>{u.filterInstalledApps=!u.filterInstalledApps},k=async()=>{c.value=!0,await v();const[W,L]=await Me(rc("miui_auto_ui"));W&&(l.create({title:"热重载应用数据失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("热重载应用数据失败了QwQ,详情请查看错误日志~")]),negativeText:"确定"}),c.value=!1),L&&(l.create({title:"热重载应用数据成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,已经重新为你载入包括自定义规则在内的应用数据~")]),positiveText:"确定"}),c.value=!1)},w=async()=>{p.value="";const[,W]=await Me(new Promise((L,I)=>{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(){L("positiveClick")}})}));if(W){d.value=!0;const L=p.value,I=m3(L);if(!(I!=null&&I.length)){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,解析")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("口令发生错误,无法正常解析。")]),negativeText:"确定"}),d.value=!1;return}console.log(I,"getBase64String");try{const R=A3(I),O=Va.inflate(R,{to:"string"}),oe=JSON.parse(O);if(oe.type!=="autoui"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,该")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("不适用于应用布局优化。")]),negativeText:"确定"}),d.value=!1;return}if(oe.device==="pad"&&n.deviceCharacteristics!=="tablet"||oe.device==="fold"&&n.deviceCharacteristics==="tablet"){l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入分享规则失败了QwQ,平板和折叠屏的适配规则不能混用哦~")]),negativeText:"确定"}),d.value=!1;return}u.customConfigAutoUIList[oe.name]=oe.rules,u.autoUISettingConfig[oe.name]={name:oe.name,enable:!0};const[y,j]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:oe.name,action:"enable"}}));y?(l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,导入失败了QwQ,详细错误请查看错误日志~")])}),d.value=!1):(u.updateMergeRuleList(),await v(),d.value=!1,l.create({title:"导入分享规则成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(oe.name,n.installedAppNameList[oe.name]||u.applicationName[oe.name])])," ",F("的应用配置成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再做尝试~")]),positiveText:"确定"}))}catch(R){console.log(R,"error"),l.create({title:"导入分享规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("解析分享规则失败了QwQ,请检查导入口令是否有误")]),negativeText:"确定"}),d.value=!1}}},_=async(W,L,I,R)=>{if(W==="cleanCustomRule"){const O=l.create({title:"想清除自定义规则吗?",type:"warning",preset:"dialog",content:()=>x("p",null,[F("清除自定义规则后,你对")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("所做的所有自定义配置将丢失,如果该应用同时还存在")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("模块规则")])," ",F(",将会还原回模块自身的适配规则。确定要继续吗?")]),positiveText:"确定清除",negativeText:"我再想想",onPositiveClick:async()=>{O.loading=!0,u.customConfigAutoUIList[I.name]&&delete u.customConfigAutoUIList[I.name];const[oe,y]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config")}));oe?(l.create({title:"清除自定义规则失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),O.loading=!1):(l.create({title:"清除自定义规则成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,清除自定义规则成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),O.loading=!1,u.updateMergeRuleList())}})}if(W==="shareCustomRule"){const O={name:I.name,cmpt:1,rules:{name:I.name,...I.autoUIRule},type:"autoui",device:n.deviceCharacteristics==="tablet"?"pad":"fold",mode:I.settingMode};console.log(O,"shareContent");const oe=JSON.stringify(O),y=Va.deflate(oe,{level:9,memLevel:9,windowBits:15}),j=new Uint8Array(y),X=z3(j),[le]=await Me(navigator.clipboard.writeText(`我分享了一个[应用布局优化]的自定义规则,可以前往[完美横屏应用计划 For Web UI]导入: +${X}`));if(le){l.create({title:"复制分享口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("复制")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("的分享口令失败了QwQ,可能由于没有读取/写入剪切板的权限或")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("长度过大。")]),negativeText:"确定"});return}else l.create({title:"复制分享口令成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("好耶w,复制")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(I.name,I.applicationName)])," ",F("分享口令成功了~")]),x("p",null,[F("如果没有复制成功,请确认是否给予了读取/写入剪切板的权限或")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("自定义规则")])," ",F("长度过大。")]),x("p",null,[F("分享口令导入入口位于")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用布局优化- 从分享口令导入")])," ",F("。")])]),positiveText:"确定"})}},M=(W,L)=>{W.ruleMode==="module"&&l.create({title:"模块规则说明",type:"warning",preset:"dialog",content:()=>x("p",null,[F("模块已对")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(W.name,W.applicationName)])," ",F("配置了合适的适配规则,且不可被移除,仅有自定义规则可以被移除哦~")])})},E=async(W,L,I)=>{const R=l.create({title:`想${I?"开启":"关闭"}该应用的应用布局优化吗?`,type:"warning",preset:"dialog",content:()=>x("p",null,[F("即将"),I?"开启":"关闭",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(W.name,W.applicationName)])," ",F("的应用布局优化适配规则。确定要继续吗?")]),positiveText:"确定",negativeText:"我再想想",onPositiveClick:async()=>{R.loading=!0,u.autoUISettingConfig[W.name]?u.autoUISettingConfig[W.name].enable=I:u.autoUISettingConfig[W.name]={name:W.name,enable:I};const[O,oe]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:W.name,action:I?"enable":"disable"}}));O?(l.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),R.loading=!1):(l.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,操作成功了OwO~如果应用更新后的规则不生效,可以尝试重启平板再试试~")])}),R.loading=!1,u.updateMergeRuleList())}})},P=async()=>{if(h.value){const[W,L]=await Me(h.value.openDrawer());if(W)console.log("操作取消:",W);else{u.customConfigAutoUIList[L.name]={name:L.name,enable:!0,...L!=null&&L.modePayload.skippedAppConfigChange?{skippedAppConfigChange:!0}:{},...L!=null&&L.modePayload.optimizeWebView?{optimizeWebView:!0}:{},...L!=null&&L.modePayload.hasOwnProperty("activityRule")?{activityRule:L==null?void 0:L.modePayload.activityRule}:{},...L!=null&&L.modePayload.hasOwnProperty("skippedActivityRule")?{skippedActivityRule:L==null?void 0:L.modePayload.skippedActivityRule}:{}},u.autoUISettingConfig[L.name]={name:L.name,enable:!0};const[I,R]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:L.name,action:"enable"}}));I?(l.create({title:"应用添加失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),L.loadingCallback&&L.loadingCallback()):(l.create({title:"应用添加成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(L.name,n.installedAppNameList[L.name]||u.applicationName[L.name])])," ",F("的应用配置添加成功了OwO~应用布局优化仅在应用全屏场景下生效,如果应用添加后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),L.loadingCallback&&L.loadingCallback(),L.closeCallback&&L.closeCallback())}}},z=async(W,L)=>{if(f&&f.value){const[I,R]=await Me(f.value.openDrawer(W));if(I)console.log("操作取消:",I);else{u.customConfigAutoUIList[W.name]?(u.customConfigAutoUIList[W.name].enable=!0,u.customConfigAutoUIList[W.name].name=W.name,R!=null&&R.modePayload.hasOwnProperty("activityRule")&&(u.customConfigAutoUIList[W.name].activityRule=R==null?void 0:R.modePayload.activityRule),R!=null&&R.modePayload.hasOwnProperty("skippedActivityRule")&&(u.customConfigAutoUIList[W.name].skippedActivityRule=R==null?void 0:R.modePayload.skippedActivityRule),R!=null&&R.modePayload.hasOwnProperty("optimizeWebView")&&(u.customConfigAutoUIList[W.name].optimizeWebView=R==null?void 0:R.modePayload.optimizeWebView),R!=null&&R.modePayload.hasOwnProperty("skippedAppConfigChange")&&(u.customConfigAutoUIList[W.name].skippedAppConfigChange=R==null?void 0:R.modePayload.skippedAppConfigChange)):u.customConfigAutoUIList[W.name]={name:W.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[W.name]?u.autoUISettingConfig[W.name].enable=!0:u.autoUISettingConfig[W.name]={name:W.name,enable:!0},console.log("loadingCallback:",R.loadingCallback);const[O,oe]=await Me(wl({customAutoUIListXML:ct(u.customConfigAutoUIList,"package",void 0),settingConfigXML:ct(u.autoUISettingConfig,"setting","setting_config"),reloadRuleAction:{name:W.name,action:"enable"}}));O?(l.create({title:"应用更新失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,添加失败了QwQ,详细错误请查看错误日志~")])}),R.loadingCallback&&R.loadingCallback()):(l.create({title:"应用更新成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w,")," ",x("span",{class:`font-bold ${n.isDarkMode?"text-teal-400":"text-gray-600"}`},[Pt(W.name,W.applicationName)])," ",F("的应用配置更新成功了OwO~,如果应用更新后的规则不生效,可以尝试重启平再做尝试~")])}),u.updateMergeRuleList(),R.loadingCallback&&R.loadingCallback(),R.closeCallback&&R.closeCallback())}}},$=Nt({UNDEFINED_VIEW_POLICY:{type:"default",color:"",name:"空白规则"},VIEW_POLICY_DEFAULT:{type:"success",color:"",name:"全局缩放",onClick(W,L){}},VIEW_POLICY_STRETCH:{type:"info",color:"",name:"全局拉伸",onClick(W,L){}},VIEW_POLICY_AUTO_COLUMNS:{type:"warning",color:"",name:"全局栅格",onClick(W,L){}},VIEW_POLICY_FLOAT:{type:"error",color:"",name:"全局浮动",onClick(W,L){}},CUSTOM_VIEW_POLICY:{type:"",color:"#8a2be2",name:"详细适配",onClick(W,L){}}}),G=Nt({page:1,pageSize:10,simple:!0,showSizePicker:!0,onChange:W=>{G.page=W},onUpdatePageSize:W=>{G.pageSize=W,G.page=1}}),H=({focused:W,checked:L})=>{const I={};return L?(I.background="#2080f0",W&&(I.boxShadow="0 0 0 2px #2080f040")):(I.background="#d03050",W&&(I.boxShadow="0 0 0 2px #d0305040")),I};function q(){return[{title:"应用名称",width:250,key:"name",render(W,L){return x("div",null,[W.applicationName&&x("p",null,[W.applicationName]),W.name&&x("p",null,[x("span",{class:{hidden:!W.applicationName}},[F("(")]),W.name,x("span",{class:{hidden:!W.applicationName}},[F(")")])])])}},{title:"规则来源",key:"ruleMode",render(W,L){const I={icon:W.ruleMode==="custom"?mb:R3};if(W.ruleMode==="custom"){const R=[{label:"分享自定义规则",key:"shareCustomRule",icon:g(fd)},{label:"清除自定义规则",key:"cleanCustomRule",icon:g(w9)}];return x(rt("n-dropdown"),{onSelect:(O,oe)=>_(O,oe,W),size:"large",trigger:"click",options:R},{default:()=>[x(rt("n-button"),{size:"small",dashed:!0,type:"info"},{default:()=>[F("自定义规则")],...I})]})}return x(rt("n-button"),{size:"small",dashed:!0,type:"error",onClick:()=>M(W)},{default:()=>[F("模块规则")],...I})}},{title:"WebView优化",minWidth:110,key:"isOptimizeWebView",render(W,L){var I;return(I=W.autoUIRule)!=null&&I.optimizeWebView?x(rt("n-tag"),{bordered:!1,dashed:!0,type:"success"},{default:()=>[F("已启用")]}):x(rt("n-tag"),{bordered:!1,dashed:!0,type:"info"},{default:()=>[F("未启用")]})}},{title:"布局规则",key:"settingMode",render(W,L){const I={icon:pb};return x(rt("n-button"),{size:"small",strong:!0,dashed:!0,type:$[W.settingMode].type,color:$[W.settingMode].color,onClick:()=>z(W)},{default:()=>[$[W.settingMode].name],...I})}},{title:"操作",minWidth:100,key:"setting",render(W,L){const I={checked:()=>x("span",null,[F("开启")]),unchecked:()=>x("span",null,[F("关闭")])},R=O=>O.settingRule&&O.settingRule.hasOwnProperty("enable")?O.settingRule.enable:O.autoUIRule&&O.autoUIRule.hasOwnProperty("enable")?O.autoUIRule.enable:!0;return x(rt("n-switch"),{railStyle:H,onUpdateValue:O=>E(W,L,O),size:"medium",value:R&&R(W)},I)}}]}return(W,L)=>{const I=rt("n-input-group"),R=rt("n-card"),O=rt("n-data-table");return Re(),Oe("main",Aq,[T("div",Pq,[T("div",Bq,[L[9]||(L[9]=T("h3",{class:xe("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 @@ -4192,7 +4192,7 @@ ${X}`));if(le){l.create({title:"复制分享口令失败",type:"error",preset:"d rgb(135, 148, 255) 70.98%,\r rgb(60, 112, 255) 91.35%,\r rgb(60, 112, 255) 110.17%\r - )`}},"应用布局优化")],-1)),T("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用布局优化,自动优化应用内图文布局,提升视觉体验。 ",2)])]),x(R,{size:"small"},{default:K(()=>[T("div",Bq,[x(S(Et),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(u).loading,onClick:P},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(y9))]),_:1})]),default:K(()=>[L[10]||(L[10]=F(" 添加应用 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(u).loading,onClick:L[0]||(L[0]=()=>v())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(g9))]),_:1})]),default:K(()=>[L[11]||(L[11]=F(" 刷新应用列表 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(u).loading,onClick:L[1]||(L[1]=()=>k())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(C9))]),_:1})]),default:K(()=>[L[12]||(L[12]=F(" 热重载应用数据 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",color:"#69b2b6",loading:S(n).loading||S(u).loading||S(r).loading.value,onClick:L[2]||(L[2]=oe=>b())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(v9))]),_:1})]),default:K(()=>[L[13]||(L[13]=F(" 获取已安装应用名称 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(u).loading||d.value,onClick:L[3]||(L[3]=oe=>w())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(fd))]),_:1})]),default:K(()=>[L[14]||(L[14]=F(" 从分享口令导入 "))]),_:1},8,["loading"])]),T("div",$q,[x(S(Et),{class:"mb-3 mr-3",type:S(u).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(u).loading,secondary:"",onClick:C},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[S(u).filterInstalledApps?(Re(),Tt(S(gb),{key:0})):(Re(),Tt(S(b9),{key:1}))]),_:1})]),default:K(()=>[F(" "+et(S(u).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),x(S(Et),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(u).loading,onClick:L[4]||(L[4]=()=>qv())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>L[15]||(L[15]=[T("img",{src:z9},null,-1)])),_:1})]),default:K(()=>[L[16]||(L[16]=F(" 应用抽屉 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(u).loading,onClick:L[5]||(L[5]=()=>Gv())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>L[17]||(L[17]=[T("img",{src:hd},null,-1)])),_:1})]),default:K(()=>[L[18]||(L[18]=F(" 超级小爱 "))]),_:1},8,["loading"])]),x(I,null,{default:K(()=>[x(S(rn),{size:"large",clearable:"",value:S(u).searchKeyWord,"onUpdate:value":L[6]||(L[6]=oe=>S(u).searchKeyWord=oe),ref_key:"searchKeyWordInput",ref:t,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),x(S(Et),{size:"large",type:"primary",onClick:L[7]||(L[7]=()=>{var oe;(oe=t.value)==null||oe.blur()})},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(x9))]),_:1})]),default:K(()=>[L[19]||(L[19]=F(" 搜索 "))]),_:1}),x(S(Et),{size:"large",bordered:"",onClick:L[8]||(L[8]=()=>{S(u).searchKeyWord=""})},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(S9))]),_:1})]),default:K(()=>[L[20]||(L[20]=F(" 清空 "))]),_:1})]),_:1})]),_:1}),x(O,{loading:S(n).loading||S(u).loading,columns:S(o),class:"mt-3",data:S(u).filterMergeRuleList,pagination:G},null,8,["loading","columns","data","pagination"]),x(U5,{ref_key:"addAutoUIApp",ref:h,type:"add",title:"添加应用"},null,512),x(U5,{ref_key:"updateAutoUIApp",ref:f,type:"update",title:"更新应用"},null,512)])}}}),Tq="/images/icons/miui_content_extension_app.webp",Iq="/images/icons/win_play_mobile.webp",K5="/images/apps/mi_theme.webp",G5="/images/icons/aicr.png",Oq="/images/icons/google.png";function Lq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(!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:()=>x("div",null,[x("p",null,[F("已成功参与OS2")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局 For Web UI")])," ",F("的Beta测试w。由于小米在OS2新开发的")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局")])," ",F("存在较多BUG,模块强制劫持了所有配置,仅能通过Web UI去调整应用横屏适配,在")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板专区")])," ",F("所做的相关修改会在重启后丢失。")]),x("p",null,[F("开发Hyper OS 2.0模块的Web UI真的消耗了我大量的个人时间和精力QwQ(特别是在小米的BUG加持下),如果对")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完美横屏应用计划感到满意")])," ",F(",求个随缘打赏。(打赏入口在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:()=>x("div",null,[x("p",null,[F("已成功参与Hyper OS")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("窗口控制器 For Web UI")])," ",F("的Beta测试w。该功能可能会随")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("小米云控")])," ",F("下发导致失效,失效时可以前往界面查看失效状态,并且选择")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("热重载应用配置")])," ",F("来恢复模块对窗口控制器的控制权。")]),x("p",null,[F("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完美横屏应用计划感到满意")])," ",F(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_RADIO_MANAGER?(e.ABTestInfo.GAME_BOOSTER_RADIO_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("已成功参与")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("游戏显示布局 2.0")])," ",F("的Beta测试w。该功能调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。")]),x("p",null,[F("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完美横屏应用计划感到满意")])," ",F(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_CUSTOM_RATIO?(e.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("已成功激活")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("游戏显示布局 2.0")])," ",F("的自定义游戏比例。自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封,激活该功能即认可并了解这些须知。")]),x("p",null,[F("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完美横屏应用计划感到满意")])," ",F(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):n.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),r.value=!1}return{activateABTest:i,loading:r}}function Hq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(!1),i=async l=>{const[s,u]=await Me(xV(l?1:"null"));s?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=l},a=async()=>{const[l,s]=await Me(new Promise((u,d)=>{n.create({title:"想激活工作台模式吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("激活")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("工作台模式")])," ",F("后需要设备重启才会生效~")]),x("p",null,[F("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{u("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(s){const[u,d]=await Me(mV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[c,h]=await Me(pV());if(c){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[f,p]=await Me(vV());if(f){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[g,v]=await Me(gV());if(g){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[b]=await Me(Kv());if(b){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}};return ut(async()=>{if(e.enabledMiuiDesktopMode){const[,l]=await Me(bV());Number(l)===1&&(r.value=!0)}}),{currentMiuiDktMode:r,changeMiuiDktMode:i,changeMiuiDesktopModeEnabled:a}}function Nq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(3),i=async l=>{if(l){const[s]=await Me(G4());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await Me(yV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!0}else{const[s]=await Me(G4());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!1}},a=async l=>{const[s]=await Me(wV());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await Me(SV(l));u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});const[d]=await Me(FV(l));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"})};return ut(async()=>{if(e.isEnableShowNotificationIconNum){const[,l]=await Me(CV());if(l&&!Number.isNaN(Number(l))){const s=Number(l);r.value=s}}}),{currentNum:r,changeNum:a,changeEnableMode:i}}function Vq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft}));It(["message","modal"],{configProviderProps:t});const o=Nt({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await Me(EN());i&&(o.current=Number(i))},interval:null}),n=Nt({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await Me(kN());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 Wq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=async a=>{const[l,s]=await Me(PN(a?1:0));if(l)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(a){const[u,d]=await Me(zN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w!隐藏手势提示线(小白条)成功,请知晓,隐藏手势提示线(小白条)的情况下,旋转建议提示按钮也将变成不可用的状态~")]),positiveText:"确定"}),r.value=1)}else{const[u,d]=await Me(AN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w!已经将手势提示线(小白条)调整为显示状态~")]),positiveText:"确定"}),r.value=0)}};return ut(async()=>{const[,a]=await Me(BN());Number(a)&&(r.value=1)}),{currentIsHideGestureLine:r,changeIsHideGestureLine:i}}function jq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=async a=>{const[l,s]=await Me($N(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await Me(DN());Number(a)&&(r.value=1)}),{currentIsInVisibleMode:r,changeIsInvisibleMode:i}}function Uq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(!1),i=async a=>{const[l,s]=await Me(hN());if(l){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}if(a){const[u,d]=await Me(fN());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}}r.value=a};return ut(async()=>{if(e.MIOSVersion&&e.MIOSVersion>=2){const[,a]=await Me(pN());a==="true"&&(r.value=!0)}}),{status:r,change:i}}function Kq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft}));It(["message","modal"],{configProviderProps:t});const o=A(!1),n=A(0),r=A(0),i=A(0);return ut(async()=>{const[,a]=await Me(QV());if(a==="true"){o.value=!0;const[,l]=await Me(JV());Number(l)&&Number(l)>0&&(n.value=Number(l));const[,s]=await Me(eW());Number(s)&&Number(s)>0&&(i.value=Number(s));const[,u]=await Me(tW());Number(u)&&Number(u)>0&&(r.value=Number(u))}}),{miuiExtmDmOptEnable:o,totalWriteBack:n,hasWriteBack:r,totalRead:i}}function Gq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A([]),i=D(()=>Array.isArray(r.value)&&r.value.length?r.value[0].supportedHdrTypes:[]),a=D(()=>r.value.map(u=>({...u,fps:Math.round(u.fps),alternativeRefreshRates:u.alternativeRefreshRates.map(d=>Math.round(d))}))),l=async u=>{n.create({title:"想应用该配置吗?",type:"info",preset:"dialog",content:()=>x("p",null,[F("应用后设备分辨率将配置为"),u.width,F("x"),u.height,F(",刷新率将配置为"),u.fps,F("Hz,在设备下次重启前将一直维持该配置,该功能可能受触控笔和其他第三方模块影响不一定生效,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。"),e.deviceCharacteristics==="tablet"&&x("span",null,[F("连接触控笔蓝牙期间,为了确保触控笔正常工作,系统也会强行重置该配置,断开触控笔蓝牙后需要重新配置,")]),F("确定要继续应用该配置么?")]),negativeText:"取消",positiveText:"确定",onPositiveClick(){s(u.id-1)}})},s=async u=>{const[d,c]=await Me(_V(u));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),c&&n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("已成功应用该分辨率及刷新率配置,在设备下次重启前将一直维持该配置,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。")]),negativeText:"确定"})};return ut(async()=>{const[u,d]=await Me(XN());u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),d&&(r.value=d)}),{displayModeList:r,supportHDRTypes:i,formatDisplayModeList:a,setDisplayMode:s,selectDisplayMode:l}}function qq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(3),i=A(),a=async s=>{const[u,d]=await Me(IN(s));u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=s},l=async s=>{if(s){const[u,d]=await Me(X4());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}else{const[c,h]=await Me(YV(r.value));c?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"添加自启动成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("添加「鼠标光标样式」开机自启动配置成功,后续请通过模块 Web UI 修改「鼠标光标样式」,系统设置内的修改会在重启后失效~")]),positiveText:"确定"}),i.value=r.value)}}else{const[u,d]=await Me(X4());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"取消自启动成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("取消「鼠标光标样式」开机自启动配置成功~")]),positiveText:"确定"}),i.value=void 0)}};return ut(async()=>{const[,s]=await Me(ON());s&&Number(s)&&(r.value=Number(s));const[,u]=await Me(XV());u&&Number(u)&&(i.value=Number(u))}),{currentMiuiCursorStyleType:r,changeMiuiCursorStyleType:a,currentAutoStartMiuiCursorStyleType:i,changeAutoStartMiuiCursorStyleType:l}}function Zq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=async a=>{const[l,s]=await Me(LN(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await Me(HN());Number(a)&&(r.value=1)}),{currentMouseGestureNaturalscroll:r,changeMouseGestureNaturalscroll:i}}function Xq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=async a=>{const[l,s]=await Me(Uv(a));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a};return ut(async()=>{const[,a]=await Me(NN());Number(a)&&(r.value=Number(a))}),{changePointerSpeed:i,currentPointerSpeed:r}}const Yq={class:"setting"},Qq={class:"mt-3"},Jq={class:"px-3 sm:px-0"},eZ={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tZ={key:1,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oZ={key:2,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nZ={key:3,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"},iZ={key:4,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"},lZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},sZ={class:"mb-3"},uZ={class:"mb-3"},dZ={key:5,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:6,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},hZ={key:7,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},pZ={key:8,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},mZ={key:9,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gZ={key:10,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},vZ={key:11,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},bZ={key:12,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={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:13,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"},FZ={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"},kZ={key:0,class:"mt-2"},_Z={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},MZ={class:"mt-5"},RZ={key:15,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},zZ={key:16,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},AZ={key:0,class:"mt-2"},PZ={key:17,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},BZ={key:0,class:"mt-2"},$Z={key:18,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},DZ={key:0,class:"mt-2"},TZ={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"},OZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},LZ={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"},NZ={key:20,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},VZ={key:21,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"},jZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},UZ={id:"gameModeSettings",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"},GZ={key:22,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},qZ={key:0,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"},XZ={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"},QZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},JZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},rX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iX={key:23,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},aX={key:24,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},lX={key:25,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},sX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},uX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},dX={key:26,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},cX={key:27,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},fX={key:28,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},hX={key:29,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},pX={class:"whitespace-pre"},mX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},vX={key:30,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},bX={class:"mr-3"},xX={class:"mr-3"},yX={class:"mr-3"},CX={key:31,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},wX={key:0,class:"mr-3"},SX={key:1,class:"mr-3"},FX={key:2,class:"mr-3"},EX={key:3,class:"mr-3"},kX={key:32,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},_X={key:0},MX={key:33,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},RX={key:0},zX={key:34,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},AX={key:35,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},PX={key:36,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},BX={key:37,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},$X={key:38,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},DX={key:39,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},TX={key:40,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},IX=ye({__name:"SettingsView",setup(e){const t=ht(),o=Us(),n=Hq();Nq();const r=E9(),i=Vq(),a=Gq(),l=Wq();jq();const s=qq(),u=Zq(),d=Xq(),c=Uq(),h=Kq(),{activateABTest:f,loading:p}=Lq(),g=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:v,modal:b}=It(["message","modal"],{configProviderProps:g}),C=F9(),k=R9(),w=QH(),_=[{label:"跟随系统",key:"autoRhythm"},{label:"浅色模式",key:"lightMode"},{label:"深色模式",key:"dartMode"}],M=A([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]),E=D(()=>NR(M.value,"key")),P=oe=>{k.currentFont=oe},z=oe=>{t.rhythmMode=oe,oe==="lightMode"&&(t.isDarkMode=!1),oe==="dartMode"&&(t.isDarkMode=!0)},$=A(""),G=async()=>{const y=JSON.stringify({GAME_BOOSTER_CUSTOM_RATIO:!0}),j=Va.deflate(y,{level:9,memLevel:9,windowBits:15}),X=new Uint8Array(j),le=z3(X);console.log(le,"base64String"),$.value="";const[ae,Fe]=await Me(new Promise((fe,ue)=>{b.create({title:"请粘贴激活口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:$.value,"onUpdate:value":we=>{$.value=we},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴激活口令"}),positiveText:"确定提交",negativeText:"取消",onPositiveClick(){fe("positiveClick")}})}));if(Fe){p.value=!0;const fe=$.value,ue=m3(fe);if(!(ue!=null&&ue.length)){b.create({title:"导入激活口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入激活口令失败了QwQ,解析口令发生错误,无法正常解析。")]),negativeText:"确定"}),p.value=!1;return}try{const we=A3(ue),ie=Va.inflate(we,{to:"string"}),be=JSON.parse(ie);f(be)}catch{b.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),p.value=!1}}},H=A(!1),q=async oe=>{const[y]=await Me(RN(oe?1:0));if(y){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法 "),oe?"开启":"关闭",F(" 旋转建议提示按钮,详情请查看日志记录~")]),negativeText:"确定"});return}t.showRotationSuggestions=oe},W=async oe=>{JN(oe?"whitelist":"blacklist").then(y=>{t.shamikoInfo.mode=oe?"whitelist":"blacklist",b.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[oe&&x("p",null,[F("好耶w,Shamiko的工作模式已成功切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("白名单模式")])," "]),!oe&&x("p",null,[F("好耶w,Shamiko的工作模式已成功切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("黑名单模式")])," "])]),negativeText:"确定"})}).catch(y=>{b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法切换Shamiko的工作模式,详情请查看日志记录~")]),negativeText:"确定"})})},L=async(oe,y,j)=>{b.create({title:`获取${oe}`,type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("确定要下载"),oe,F("么?请注意核对部分应用的兼容性。"),j==="system",j==="revision",j==="magisk"]),x("p",null,[F("下载地址:")]),x("p",null,[y])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${y}`)},onNegativeClick:()=>{}})},I=async oe=>{const[y,j]=await Me(new Promise((X,le)=>{b.create({title:oe?"想切换为定制模式吗?":"想切换为完整模式吗?",type:"info",preset:"dialog",content:()=>x("div",null,[oe&&x("p",null,[F("切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("定制模式")])," ",F("后,模块会以您设备的整体应用情况")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("修剪模块应用适配列表")])," ",F(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,后续每次更新模块或者安装新的应用后,建议前往")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局")])," ",F("重新")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("生成定制应用数据")])," ",F(",确定要继续吗?")]),!oe&&x("p",null,[F("切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完整模式")])," ",F("后,可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题,确定要继续吗?")])]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{X("positiveClick")},onNegativeClick:()=>{le("negativeClick")}})}));if(j){H.value=!0;const[X]=await Me(dN());if(X){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法移除定制模式的配置项,详情请查看日志记录~")]),negativeText:"确定"}),H.value=!1;return}if(oe){const[Fe]=await Me(uN());if(Fe){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法切换为定制模式,详情请查看日志记录~")]),negativeText:"确定"}),H.value=!1;return}o.isPatchMode=!0}else H.value=!1,o.isPatchMode=!1;await t.getAndroidApplicationPackageNameList();const[le,ae]=await Me(wa({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")}}));le?(b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),o.isPatchMode=!o.isPatchMode,H.value=!1):(b.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[oe&&x("p",null,[F("好耶w,已成功切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("定制模式")])," ",F(",模块已根据您设备当前的整体应用情况")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("修剪模块应用适配列表")])," ",F(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,建议每次更新模块或者安装新的应用后,均需要在前往")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局")])," ",F("界面重新生成")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("生成定制应用数据")])," ",F("。")]),!oe&&x("p",null,[F("好耶w,已成功切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完整模式")])," ",F(",可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题。")])]),negativeText:"确定"}),H.value=!1,o.updateMergeRuleList())}},R=async oe=>{const[y,j]=await Me(new Promise((le,ae)=>{b.create({title:oe?"想开启游戏显示布局吗?":"想关闭游戏显示布局吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[oe?"开启":"关闭"," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("游戏显示布局")])," ",F("后需要设备重启才会生效~")]),oe&&t.deviceCharacteristics==="tablet"&&t.MIOSVersion&&t.MIOSVersion>=2&&x("p",null,[F("从Hyper OS 2.0开始,小米平板需要搭配配套的")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("修改版平板/手机管家")])," ",F("才能使用游戏显示布局,详情请前往模块首页了解~")]),x("p",null,[F("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{le("positiveClick")},onNegativeClick:()=>{ae("negativeClick")}})})),[X]=await Me(mN());if(X){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}if(oe){const[le]=await Me(gN());if(le){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}}if(j){const[le]=await Me(Kv());if(le){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},O=({focused:oe,checked:y})=>{const j={};return y?(j.background="#d03050",oe&&(j.boxShadow="0 0 0 2px #d0305040")):(j.background="#2080f0",oe&&(j.boxShadow="0 0 0 2px #2080f040")),j};return(oe,y)=>{var be,ze,pe,U;const j=rt("n-switch"),X=rt("n-alert"),le=rt("n-tag"),ae=rt("n-button"),Fe=rt("n-dropdown"),fe=rt("n-icon"),ue=rt("n-slider"),we=rt("n-input-number"),ie=rt("n-watermark");return Re(),Oe("div",Yq,[T("div",Qq,[T("div",Jq,[y[55]||(y[55]=T("h3",{class:xe("text-base font-semibold leading-7")},[T("span",{class:"animated-bg bg-clip-text font-semibold text-transparent",style:{"background-image":`linear-gradient(\r + )`}},"应用布局优化")],-1)),T("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(n).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 应用布局优化,自动优化应用内图文布局,提升视觉体验。 ",2)])]),x(R,{size:"small"},{default:K(()=>[T("div",$q,[x(S(Et),{class:"mb-3 mr-3",type:"info",loading:S(n).loading||S(u).loading,onClick:P},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(y9))]),_:1})]),default:K(()=>[L[10]||(L[10]=F(" 添加应用 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"success",loading:S(n).loading||S(u).loading,onClick:L[0]||(L[0]=()=>v())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(g9))]),_:1})]),default:K(()=>[L[11]||(L[11]=F(" 刷新应用列表 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",color:"#8a2be2",loading:S(n).loading||S(u).loading,onClick:L[1]||(L[1]=()=>k())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(C9))]),_:1})]),default:K(()=>[L[12]||(L[12]=F(" 热重载应用数据 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",color:"#69b2b6",loading:S(n).loading||S(u).loading||S(r).loading.value,onClick:L[2]||(L[2]=oe=>b())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(v9))]),_:1})]),default:K(()=>[L[13]||(L[13]=F(" 获取已安装应用名称 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"warning",loading:S(n).loading||S(u).loading||d.value,onClick:L[3]||(L[3]=oe=>w())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(fd))]),_:1})]),default:K(()=>[L[14]||(L[14]=F(" 从分享口令导入 "))]),_:1},8,["loading"])]),T("div",Dq,[x(S(Et),{class:"mb-3 mr-3",type:S(u).filterInstalledApps?"success":"info",strong:"",loading:S(n).loading||S(u).loading,secondary:"",onClick:C},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[S(u).filterInstalledApps?(Re(),Tt(S(gb),{key:0})):(Re(),Tt(S(b9),{key:1}))]),_:1})]),default:K(()=>[F(" "+Ye(S(u).filterInstalledApps?"已安装应用":"全部应用"),1)]),_:1},8,["type","loading"]),x(S(Et),{class:"mb-3 mr-3",type:"warning",secondary:"",loading:S(n).loading||S(u).loading,onClick:L[4]||(L[4]=()=>qv())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>L[15]||(L[15]=[T("img",{src:z9},null,-1)])),_:1})]),default:K(()=>[L[16]||(L[16]=F(" 应用抽屉 "))]),_:1},8,["loading"]),x(S(Et),{class:"mb-3 mr-3",type:"error",secondary:"",loading:S(n).loading||S(u).loading,onClick:L[5]||(L[5]=()=>Gv())},{icon:K(()=>[x(S(Zt),null,{default:K(()=>L[17]||(L[17]=[T("img",{src:hd},null,-1)])),_:1})]),default:K(()=>[L[18]||(L[18]=F(" 超级小爱 "))]),_:1},8,["loading"])]),x(I,null,{default:K(()=>[x(S(rn),{size:"large",clearable:"",value:S(u).searchKeyWord,"onUpdate:value":L[6]||(L[6]=oe=>S(u).searchKeyWord=oe),ref_key:"searchKeyWordInput",ref:t,placeholder:"搜索应用名称/应用包名",autosize:"",style:{width:"80%"}},null,8,["value"]),x(S(Et),{size:"large",type:"primary",onClick:L[7]||(L[7]=()=>{var oe;(oe=t.value)==null||oe.blur()})},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(x9))]),_:1})]),default:K(()=>[L[19]||(L[19]=F(" 搜索 "))]),_:1}),x(S(Et),{size:"large",bordered:"",onClick:L[8]||(L[8]=()=>{S(u).searchKeyWord=""})},{icon:K(()=>[x(S(Zt),null,{default:K(()=>[x(S(S9))]),_:1})]),default:K(()=>[L[20]||(L[20]=F(" 清空 "))]),_:1})]),_:1})]),_:1}),x(O,{loading:S(n).loading||S(u).loading,columns:S(o),class:"mt-3",data:S(u).filterMergeRuleList,pagination:G},null,8,["loading","columns","data","pagination"]),x(U5,{ref_key:"addAutoUIApp",ref:h,type:"add",title:"添加应用"},null,512),x(U5,{ref_key:"updateAutoUIApp",ref:f,type:"update",title:"更新应用"},null,512)])}}}),Iq="/images/icons/miui_content_extension_app.webp",Oq="/images/icons/win_play_mobile.webp",K5="/images/apps/mi_theme.webp",G5="/images/icons/aicr.png",Lq="/images/icons/google.png";function Hq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(!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:()=>x("div",null,[x("p",null,[F("已成功参与OS2")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局 For Web UI")])," ",F("的Beta测试w。由于小米在OS2新开发的")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局")])," ",F("存在较多BUG,模块强制劫持了所有配置,仅能通过Web UI去调整应用横屏适配,在")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("平板专区")])," ",F("所做的相关修改会在重启后丢失。")]),x("p",null,[F("开发Hyper OS 2.0模块的Web UI真的消耗了我大量的个人时间和精力QwQ(特别是在小米的BUG加持下),如果对")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完美横屏应用计划感到满意")])," ",F(",求个随缘打赏。(打赏入口在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:()=>x("div",null,[x("p",null,[F("已成功参与Hyper OS")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("窗口控制器 For Web UI")])," ",F("的Beta测试w。该功能可能会随")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("小米云控")])," ",F("下发导致失效,失效时可以前往界面查看失效状态,并且选择")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("热重载应用配置")])," ",F("来恢复模块对窗口控制器的控制权。")]),x("p",null,[F("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完美横屏应用计划感到满意")])," ",F(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_RADIO_MANAGER?(e.ABTestInfo.GAME_BOOSTER_RADIO_MANAGER=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("已成功参与")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("游戏显示布局 2.0")])," ",F("的Beta测试w。该功能调整后会改变游戏的显示比例,获得更大的游戏视野,但并非所有游戏都兼容游戏显示比例调整,且部分游戏可能会对游戏显示比例的修改作为风控管理,可能导致游戏账号被封禁,调整游戏显示布局前,即认可并了解这些须知。")]),x("p",null,[F("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完美横屏应用计划感到满意")])," ",F(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):a.GAME_BOOSTER_CUSTOM_RATIO?(e.ABTestInfo.GAME_BOOSTER_CUSTOM_RATIO=!0,n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("已成功激活")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("游戏显示布局 2.0")])," ",F("的自定义游戏比例。自定义游戏比例存在使用风险,如果配置了不恰当的自定义游戏比例,可能会触发部分游戏风控导致游戏账号被封,激活该功能即认可并了解这些须知。")]),x("p",null,[F("开发Hyper OS 模块的Web UI真的消耗了我大量的个人时间和精力QwQ,如果对")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完美横屏应用计划感到满意")])," ",F(",求个随缘打赏。(打赏入口在Web UI侧边栏)")])]),negativeText:"确定"})):n.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),r.value=!1}return{activateABTest:i,loading:r}}function Nq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(!1),i=async l=>{const[s,u]=await Me(xV(l?1:"null"));s?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=l},a=async()=>{const[l,s]=await Me(new Promise((u,d)=>{n.create({title:"想激活工作台模式吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("激活")," ",x("span",{class:`font-bold ${e.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("工作台模式")])," ",F("后需要设备重启才会生效~")]),x("p",null,[F("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{u("positiveClick")},onNegativeClick:()=>{d("negativeClick")}})}));if(s){const[u,d]=await Me(mV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[c,h]=await Me(pV());if(c){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[f,p]=await Me(vV());if(f){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[g,v]=await Me(gV());if(g){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[b]=await Me(Kv());if(b){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}};return ut(async()=>{if(e.enabledMiuiDesktopMode){const[,l]=await Me(bV());Number(l)===1&&(r.value=!0)}}),{currentMiuiDktMode:r,changeMiuiDktMode:i,changeMiuiDesktopModeEnabled:a}}function Vq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(3),i=async l=>{if(l){const[s]=await Me(G4());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await Me(yV());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!0}else{const[s]=await Me(G4());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}e.isEnableShowNotificationIconNum=!1}},a=async l=>{const[s]=await Me(wV());if(s){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}const[u]=await Me(SV(l));u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});const[d]=await Me(FV(l));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"})};return ut(async()=>{if(e.isEnableShowNotificationIconNum){const[,l]=await Me(CV());if(l&&!Number.isNaN(Number(l))){const s=Number(l);r.value=s}}}),{currentNum:r,changeNum:a,changeEnableMode:i}}function Wq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft}));It(["message","modal"],{configProviderProps:t});const o=Nt({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await Me(EN());i&&(o.current=Number(i))},interval:null}),n=Nt({current:0,autoReload:!1,timer:3,reload:async()=>{const[,i]=await Me(kN());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 jq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=async a=>{const[l,s]=await Me(PN(a?1:0));if(l)n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});else if(a){const[u,d]=await Me(zN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w!隐藏手势提示线(小白条)成功,请知晓,隐藏手势提示线(小白条)的情况下,旋转建议提示按钮也将变成不可用的状态~")]),positiveText:"确定"}),r.value=1)}else{const[u,d]=await Me(AN());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"修改成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("好耶w!已经将手势提示线(小白条)调整为显示状态~")]),positiveText:"确定"}),r.value=0)}};return ut(async()=>{const[,a]=await Me(BN());Number(a)&&(r.value=1)}),{currentIsHideGestureLine:r,changeIsHideGestureLine:i}}function Uq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=async a=>{const[l,s]=await Me($N(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await Me(DN());Number(a)&&(r.value=1)}),{currentIsInVisibleMode:r,changeIsInvisibleMode:i}}function Kq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(!1),i=async a=>{const[l,s]=await Me(hN());if(l){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}if(a){const[u,d]=await Me(fN());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}}r.value=a};return ut(async()=>{if(e.MIOSVersion&&e.MIOSVersion>=2){const[,a]=await Me(pN());a==="true"&&(r.value=!0)}}),{status:r,change:i}}function Gq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft}));It(["message","modal"],{configProviderProps:t});const o=A(""),n=A(!1),r=A(0),i=A(0),a=A(0);return ut(async()=>{const[,l]=await Me(JV());l==="true"&&(n.value=!0);const[,s]=await Me(QV());s&&(o.value=s);const[,u]=await Me(eW());Number(u)&&Number(u)>0&&(r.value=Number(u));const[,d]=await Me(tW());Number(d)&&Number(d)>0&&(a.value=Number(d));const[,c]=await Me(oW());Number(c)&&Number(c)>0&&(i.value=Number(c))}),{backingDev:o,miuiExtmDmOptEnable:n,totalWriteBack:r,hasWriteBack:i,totalRead:a}}function qq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A([]),i=D(()=>Array.isArray(r.value)&&r.value.length?r.value[0].supportedHdrTypes:[]),a=D(()=>r.value.map(u=>({...u,fps:Math.round(u.fps),alternativeRefreshRates:u.alternativeRefreshRates.map(d=>Math.round(d))}))),l=async u=>{n.create({title:"想应用该配置吗?",type:"info",preset:"dialog",content:()=>x("p",null,[F("应用后设备分辨率将配置为"),u.width,F("x"),u.height,F(",刷新率将配置为"),u.fps,F("Hz,在设备下次重启前将一直维持该配置,该功能可能受触控笔和其他第三方模块影响不一定生效,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。"),e.deviceCharacteristics==="tablet"&&x("span",null,[F("连接触控笔蓝牙期间,为了确保触控笔正常工作,系统也会强行重置该配置,断开触控笔蓝牙后需要重新配置,")]),F("确定要继续应用该配置么?")]),negativeText:"取消",positiveText:"确定",onPositiveClick(){s(u.id-1)}})},s=async u=>{const[d,c]=await Me(_V(u));d&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),c&&n.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("已成功应用该分辨率及刷新率配置,在设备下次重启前将一直维持该配置,如需恢复系统设置内的默认分辨率及刷新率配置,请手动重启设备。")]),negativeText:"确定"})};return ut(async()=>{const[u,d]=await Me(XN());u&&n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}),d&&(r.value=d)}),{displayModeList:r,supportHDRTypes:i,formatDisplayModeList:a,setDisplayMode:s,selectDisplayMode:l}}function Zq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(3),i=A(),a=async s=>{const[u,d]=await Me(IN(s));u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=s},l=async s=>{if(s){const[u,d]=await Me(X4());if(u){n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"});return}else{const[c,h]=await Me(YV(r.value));c?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"添加自启动成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("添加「鼠标光标样式」开机自启动配置成功,后续请通过模块 Web UI 修改「鼠标光标样式」,系统设置内的修改会在重启后失效~")]),positiveText:"确定"}),i.value=r.value)}}else{const[u,d]=await Me(X4());u?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):(n.create({title:"取消自启动成功",type:"success",preset:"dialog",content:()=>x("p",null,[F("取消「鼠标光标样式」开机自启动配置成功~")]),positiveText:"确定"}),i.value=void 0)}};return ut(async()=>{const[,s]=await Me(ON());s&&Number(s)&&(r.value=Number(s));const[,u]=await Me(XV());u&&Number(u)&&(i.value=Number(u))}),{currentMiuiCursorStyleType:r,changeMiuiCursorStyleType:a,currentAutoStartMiuiCursorStyleType:i,changeAutoStartMiuiCursorStyleType:l}}function Xq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=async a=>{const[l,s]=await Me(LN(a?1:0));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a?1:0};return ut(async()=>{const[,a]=await Me(HN());Number(a)&&(r.value=1)}),{currentMouseGestureNaturalscroll:r,changeMouseGestureNaturalscroll:i}}function Yq(){const e=ht(),t=D(()=>({theme:e.isDarkMode?Bt:Ft})),{message:o,modal:n}=It(["message","modal"],{configProviderProps:t}),r=A(0),i=async a=>{const[l,s]=await Me(Uv(a));l?n.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("修改失败,详情请查看日志记录~")]),negativeText:"确定"}):r.value=a};return ut(async()=>{const[,a]=await Me(NN());Number(a)&&(r.value=Number(a))}),{changePointerSpeed:i,currentPointerSpeed:r}}const Qq={class:"setting"},Jq={class:"mt-3"},eZ={class:"px-3 sm:px-0"},tZ={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oZ={key:1,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nZ={key:2,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},rZ={key:3,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"},aZ={key:4,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},lZ={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"},uZ={key:0,class:"mb-3"},dZ={class:"mb-3"},cZ={class:"mb-3"},fZ={class:"mb-3"},hZ={key:5,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:6,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gZ={key:7,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},vZ={key:8,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},bZ={key:9,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},xZ={key:10,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},yZ={key:11,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},CZ={key:12,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"},FZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},EZ={key:13,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"},MZ={key:14,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},RZ={key:0,class:"mt-2"},zZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},AZ={class:"mt-5"},PZ={key:15,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},BZ={key:16,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},$Z={key:0,class:"mt-2"},DZ={key:17,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},TZ={key:0,class:"mt-2"},IZ={key:18,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},OZ={key:0,class:"mt-2"},LZ={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"},NZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},VZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},WZ={key:19,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},jZ={key:20,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},UZ={key:21,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"},GZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},qZ={id:"gameModeSettings",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"},XZ={key:22,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},YZ={key:0,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},QZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},JZ={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},eX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},tX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},oX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},nX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},rX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},iX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},aX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},lX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},sX={key:23,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},uX={key:24,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},dX={key:25,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},cX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},fX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},hX={key:26,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},pX={key:27,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},mX={key:28,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},gX={key:29,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},vX={class:"whitespace-pre"},bX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},xX={class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},yX={key:30,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},CX={class:"mr-3"},wX={class:"mr-3"},SX={class:"mr-3"},FX={key:31,id:"displayModeSettings",class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},EX={key:0,class:"mr-3"},kX={key:1,class:"mr-3"},_X={key:2,class:"mr-3"},MX={key:3,class:"mr-3"},RX={key:32,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},zX={key:0},AX={key:33,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},PX={key:0},BX={key:34,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},$X={key:35,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},DX={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"},IX={key:38,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},OX={key:39,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},LX={key:40,class:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"},HX=ye({__name:"SettingsView",setup(e){const t=ht(),o=Us(),n=Nq();Vq();const r=E9(),i=Wq(),a=qq(),l=jq();Uq();const s=Zq(),u=Xq(),d=Yq(),c=Kq(),h=Gq(),{activateABTest:f,loading:p}=Hq(),g=D(()=>({theme:t.isDarkMode?Bt:Ft})),{message:v,modal:b}=It(["message","modal"],{configProviderProps:g}),C=F9(),k=R9(),w=QH(),_=[{label:"跟随系统",key:"autoRhythm"},{label:"浅色模式",key:"lightMode"},{label:"深色模式",key:"dartMode"}],M=A([{label:"MiSans",key:"MiSans",type:"info"},{label:"HarmonyOS Sans",key:"HarmonyOS Sans",type:"error"},{label:"OPPO Sans",key:"OPPO Sans",type:"success"}]),E=D(()=>NR(M.value,"key")),P=oe=>{k.currentFont=oe},z=oe=>{t.rhythmMode=oe,oe==="lightMode"&&(t.isDarkMode=!1),oe==="dartMode"&&(t.isDarkMode=!0)},$=A(""),G=async()=>{const y=JSON.stringify({GAME_BOOSTER_CUSTOM_RATIO:!0}),j=Va.deflate(y,{level:9,memLevel:9,windowBits:15}),X=new Uint8Array(j),le=z3(X);console.log(le,"base64String"),$.value="";const[ae,Fe]=await Me(new Promise((fe,ue)=>{b.create({title:"请粘贴激活口令",preset:"dialog",style:"min-width:500px; width:50%;",content:()=>m(rn,{type:"textarea",value:$.value,"onUpdate:value":we=>{$.value=we},autosize:{minRows:8,maxRows:8},placeholder:"在此处粘贴激活口令"}),positiveText:"确定提交",negativeText:"取消",onPositiveClick(){fe("positiveClick")}})}));if(Fe){p.value=!0;const fe=$.value,ue=m3(fe);if(!(ue!=null&&ue.length)){b.create({title:"导入激活口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("导入激活口令失败了QwQ,解析口令发生错误,无法正常解析。")]),negativeText:"确定"}),p.value=!1;return}try{const we=A3(ue),ie=Va.inflate(we,{to:"string"}),be=JSON.parse(ie);f(be)}catch{b.create({title:"解析激活口令失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("解析激活口令失败了QwQ,请检查激活口令是否有误")]),negativeText:"确定"}),p.value=!1}}},H=A(!1),q=async oe=>{const[y]=await Me(RN(oe?1:0));if(y){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法 "),oe?"开启":"关闭",F(" 旋转建议提示按钮,详情请查看日志记录~")]),negativeText:"确定"});return}t.showRotationSuggestions=oe},W=async oe=>{JN(oe?"whitelist":"blacklist").then(y=>{t.shamikoInfo.mode=oe?"whitelist":"blacklist",b.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[oe&&x("p",null,[F("好耶w,Shamiko的工作模式已成功切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("白名单模式")])," "]),!oe&&x("p",null,[F("好耶w,Shamiko的工作模式已成功切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("黑名单模式")])," "])]),negativeText:"确定"})}).catch(y=>{b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法切换Shamiko的工作模式,详情请查看日志记录~")]),negativeText:"确定"})})},L=async(oe,y,j)=>{b.create({title:`获取${oe}`,type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[F("确定要下载"),oe,F("么?请注意核对部分应用的兼容性。"),j==="system",j==="revision",j==="magisk"]),x("p",null,[F("下载地址:")]),x("p",null,[y])]),positiveText:"复制下载链接到剪切板",negativeText:"取消",onPositiveClick:()=>{navigator.clipboard.writeText(`${y}`)},onNegativeClick:()=>{}})},I=async oe=>{const[y,j]=await Me(new Promise((X,le)=>{b.create({title:oe?"想切换为定制模式吗?":"想切换为完整模式吗?",type:"info",preset:"dialog",content:()=>x("div",null,[oe&&x("p",null,[F("切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("定制模式")])," ",F("后,模块会以您设备的整体应用情况")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("修剪模块应用适配列表")])," ",F(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,后续每次更新模块或者安装新的应用后,建议前往")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局")])," ",F("重新")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("生成定制应用数据")])," ",F(",确定要继续吗?")]),!oe&&x("p",null,[F("切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完整模式")])," ",F("后,可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题,确定要继续吗?")])]),positiveText:"确定继续",negativeText:"我再想想",onPositiveClick:()=>{X("positiveClick")},onNegativeClick:()=>{le("negativeClick")}})}));if(j){H.value=!0;const[X]=await Me(dN());if(X){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法移除定制模式的配置项,详情请查看日志记录~")]),negativeText:"确定"}),H.value=!1;return}if(oe){const[Fe]=await Me(uN());if(Fe){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法切换为定制模式,详情请查看日志记录~")]),negativeText:"确定"}),H.value=!1;return}o.isPatchMode=!0}else H.value=!1,o.isPatchMode=!1;await t.getAndroidApplicationPackageNameList();const[le,ae]=await Me(wa({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")}}));le?(b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("发生异常错误,更新失败了QwQ,详细错误请查看错误日志~")])}),o.isPatchMode=!o.isPatchMode,H.value=!1):(b.create({title:"操作成功",type:"success",preset:"dialog",content:()=>x("div",null,[oe&&x("p",null,[F("好耶w,已成功切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("定制模式")])," ",F(",模块已根据您设备当前的整体应用情况")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("修剪模块应用适配列表")])," ",F(",以解决老机型由于系统优化不佳而导致的卡顿、掉帧等问题,建议每次更新模块或者安装新的应用后,均需要在前往")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("应用横屏布局")])," ",F("界面重新生成")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("生成定制应用数据")])," ",F("。")]),!oe&&x("p",null,[F("好耶w,已成功切换为")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("完整模式")])," ",F(",可以获得模块提供的大量应用适配,同时可能会导致部分老机型由于系统优化不佳而导致的卡顿、掉帧等问题。")])]),negativeText:"确定"}),H.value=!1,o.updateMergeRuleList())}},R=async oe=>{const[y,j]=await Me(new Promise((le,ae)=>{b.create({title:oe?"想开启游戏显示布局吗?":"想关闭游戏显示布局吗?",type:"info",preset:"dialog",content:()=>x("div",null,[x("p",null,[oe?"开启":"关闭"," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("游戏显示布局")])," ",F("后需要设备重启才会生效~")]),oe&&t.deviceCharacteristics==="tablet"&&t.MIOSVersion&&t.MIOSVersion>=2&&x("p",null,[F("从Hyper OS 2.0开始,小米平板需要搭配配套的")," ",x("span",{class:`font-bold ${t.isDarkMode?"text-teal-400":"text-gray-600"}`},[F("修改版平板/手机管家")])," ",F("才能使用游戏显示布局,详情请前往模块首页了解~")]),x("p",null,[F("是否立即重启?")])]),positiveText:"确认并立即重启",negativeText:"取消",onPositiveClick:()=>{le("positiveClick")},onNegativeClick:()=>{ae("negativeClick")}})})),[X]=await Me(mN());if(X){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}if(oe){const[le]=await Me(gN());if(le){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法修改模块配置文件,详情请查看日志记录~")]),negativeText:"确定"});return}}if(j){const[le]=await Me(Kv());if(le){b.create({title:"操作失败",type:"error",preset:"dialog",content:()=>x("p",null,[F("无法重启设备,详情请查看日志记录~")]),negativeText:"确定"});return}}},O=({focused:oe,checked:y})=>{const j={};return y?(j.background="#d03050",oe&&(j.boxShadow="0 0 0 2px #d0305040")):(j.background="#2080f0",oe&&(j.boxShadow="0 0 0 2px #2080f040")),j};return(oe,y)=>{var be,ze,pe,U;const j=rt("n-switch"),X=rt("n-alert"),le=rt("n-tag"),ae=rt("n-button"),Fe=rt("n-dropdown"),fe=rt("n-icon"),ue=rt("n-slider"),we=rt("n-input-number"),ie=rt("n-watermark");return Re(),Oe("div",Qq,[T("div",Jq,[T("div",eZ,[y[55]||(y[55]=T("h3",{class:xe("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 @@ -4200,6 +4200,6 @@ ${X}`));if(le){l.create({title:"复制分享口令失败",type:"error",preset:"d rgb(135, 148, 255) 70.98%,\r rgb(60, 112, 255) 91.35%,\r rgb(60, 112, 255) 110.17%\r - )`}},"模块设置")],-1)),T("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 模块设置,让功能在自定义中完美契合。 ",2)]),T("div",{class:xe(`mt-3 border-t ${S(t).isDarkMode?"divide-sothx-gray-color border-sothx-gray-color":"divide-gray-200 border-gray-200"}`)},[T("dl",{class:xe(`divide-y ${S(t).isDarkMode?"divide-sothx-gray-color":"divide-gray-200"}`)},[(be=S(t).moduleInfo)!=null&&be.id?(Re(),Oe("div",eZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块ID ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).moduleInfo.id||"获取失败"),3)])):Ge("",!0),(ze=S(t).moduleInfo)!=null&&ze.dir?(Re(),Oe("div",tZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块路径 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).moduleInfo.dir||"获取失败"),3)])):Ge("",!0),(pe=S(t).moduleInfo)!=null&&pe.version?(Re(),Oe("div",oZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本名 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).moduleInfo.version||"获取失败"),3)])):Ge("",!0),(U=S(t).moduleInfo)!=null&&U.versionCode?(Re(),Oe("div",nZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).moduleInfo.versionCode||"获取失败"),3)])):Ge("",!0),T("div",rZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块工作模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[0]||(y[0]=N=>I(N)),"rail-style":O,value:S(o).isPatchMode,loading:H.value,disabled:S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:K(()=>y[56]||(y[56]=[F("定制模式")])),unchecked:K(()=>y[57]||(y[57]=[F("完整模式")])),_:1},8,["value","loading","disabled"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("div",iZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统应用横屏优化 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[1]||(y[1]=N=>S(c).change(N)),"rail-style":O,value:S(c).status,loading:S(t).loading},{checked:K(()=>y[58]||(y[58]=[F("已禁用系统应用横屏优化")])),unchecked:K(()=>y[59]||(y[59]=[F("已启用系统应用横屏优化")])),_:1},8,["value","loading"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[60]||(y[60]=[T("p",null,"由于小米「应用横屏布局」BUG,Hyper OS 2 下部分系统应用可无法完全横屏工作,模块可以修复这个问题,但每次设备重启或修改模块规则,这些系统应用都将被强制重启,该功能默认启用,如「启用」将代表已接纳并知晓此副作用影响。 ",-1),T("p",null,"受此影响的系统应用:",-1),T("p",null,"超级小爱(com.miui.voiceassist)",-1),T("p",null,"小米浏览器(com.android.browser)",-1),T("p",null,"平板/手机管家(com.miui.securitycenter)",-1)])),_:1})],2)])):Ge("",!0),T("div",aZ,[S(t).MIOSVersion&&S(t).MIOSVersion>=1?(Re(),Oe("dt",{key:0,class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},"智能IO调度",2)):Ge("",!0),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(t).smartFocusIO==="on"?(Re(),Tt(le,{key:0,type:"success"},{default:K(()=>y[61]||(y[61]=[F("已启用智能IO调度")])),_:1})):(Re(),Tt(le,{key:1,type:"info"},{default:K(()=>y[62]||(y[62]=[F("已启用系统默认调度")])),_:1})),S(t).deviceInfo.socModel==="SM8475"&&S(t).androidTargetSdk&&S(t).androidTargetSdk>=34&&S(t).smartFocusIO!=="on"?(Re(),Tt(X,{key:2,class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>[y[64]||(y[64]=T("p",null,"您当前未启用「智能IO调度」,由于小米「磁盘IO调度」BUG,骁龙8+Gen1机型存在IO调度异常的问题,容易导致系统卡顿或者无响应,您可以通过安装「小米平板系统功能补全模块」来启用「智能IO调度」,提升系统IO性能体验。",-1)),x(ae,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:y[2]||(y[2]=()=>L("小米平板系统功能补全模块","https://caiyun.139.com/m/i?135CmUuWuqGsk","original"))},{default:K(()=>y[63]||(y[63]=[F("获取小米平板系统功能补全模块")])),_:1})]),_:1})):Ge("",!0)],2)]),T("div",lZ,[S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("dt",{key:0,class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},"dm设备映射器",2)):Ge("",!0),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("div",sZ,[x(le,{type:"success"},{default:K(()=>[F("已回写: "+et(S(h).hasWriteBack)+" MB",1)]),_:1})]),T("div",uZ,[x(le,{type:"info"},{default:K(()=>[F("总读取: "+et(S(h).totalRead)+" MB",1)]),_:1})]),T("div",null,[x(le,{type:"warning"},{default:K(()=>[F("总回写: "+et(S(h).totalWriteBack)+" MB",1)]),_:1})]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[65]||(y[65]=[T("p",null,"通常用于将设备上的冷数据压缩并迁移到磁盘上,是基于「内存扩展」的回写块,该功能依赖「内存扩展」,请确保已经开启「内存扩展」",-1),T("p",null,"初始状态下显示 0 MB是正常现象,请持续使用一段时间再观察是否有变化",-1)])),_:1})],2)]),S(t).deviceName?(Re(),Oe("div",dZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备名称 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).deviceName||""),3)])):Ge("",!0),T("div",cZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," ROOT管理器 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).currentRootManager||"获取失败"),3)]),S(t).currentRootManager==="KernelSU"?(Re(),Oe("div",fZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 版本 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).rootManagerInfo.KSU_VER||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="KernelSU"?(Re(),Oe("div",hZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 用户空间版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).rootManagerInfo.KSU_VER_CODE||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="KernelSU"?(Re(),Oe("div",pZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 内核空间版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).rootManagerInfo.KSU_KERNEL_VER_CODE||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="APatch"?(Re(),Oe("div",mZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本名 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).rootManagerInfo.APATCH_VER||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="APatch"?(Re(),Oe("div",gZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).rootManagerInfo.APATCH_VER_CODE||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="Magisk"?(Re(),Oe("div",vZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).rootManagerInfo.MAGISK_VER||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="Magisk"?(Re(),Oe("div",bZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).rootManagerInfo.MAGISK_VER_CODE||"获取失败"),3)])):Ge("",!0),T("div",xZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 外观模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:_,onSelect:z},{default:K(()=>[x(ae,{size:"small",strong:"",secondary:"",type:S(t).rhythmMode==="autoRhythm"?"error":"success"},{default:K(()=>[F(et(S(t).rhythmMode==="autoRhythm"&&"跟随系统"||S(t).rhythmMode==="lightMode"&&"浅色模式"||S(t).rhythmMode==="dartMode"&&"深色模式"),1)]),_:1},8,["type"])]),_:1})],2)]),T("div",yZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 应用字体 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:M.value,onSelect:P},{default:K(()=>[x(ae,{size:"small",strong:"",secondary:"",type:E.value[S(k).currentFont].type},{default:K(()=>[F(et(S(k).currentFont),1)]),_:1},8,["type"])]),_:1},8,["options"])],2)]),T("div",CZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 激活口令 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"warning",secondary:"",loading:S(t).loading||S(o).loading||S(p),onClick:y[3]||(y[3]=N=>G())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(sq))]),_:1})]),default:K(()=>[y[66]||(y[66]=F(" 导入激活口令 "))]),_:1},8,["loading"])],2)]),S(t).shamikoInfo.installed?(Re(),Oe("div",wZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Shamiko 工作模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[4]||(y[4]=N=>W(N)),"rail-style":O,value:S(t).shamikoInfo.mode==="whitelist",loading:S(t).loading},{checked:K(()=>y[67]||(y[67]=[F("白名单模式")])),unchecked:K(()=>y[68]||(y[68]=[F("黑名单模式")])),_:1},8,["value","loading"])],2)])):Ge("",!0),T("div",SZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 暗码拨号盘 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[5]||(y[5]=()=>PV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(gq))]),_:1})]),default:K(()=>[y[69]||(y[69]=F(" 暗码拨号盘 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:K(()=>y[70]||(y[70]=[T("p",null,"Tips: 暗码必须以*#*#开头,且以#*#*结尾",-1),T("p",null,"eg: 开启 LSPosed 管理器的暗码:*#*#5776733#*#*",-1),T("p",null,"「安全警示: 暗码拨号盘是面向开发者调试的功能,用于打开一些隐藏设定,如果您不了解暗码作用与功能建议不要轻易尝试,可能会导致您的设备数据丢失!」",-1)])),_:1})],2)]),T("div",FZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," LSPosed 管理器 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[6]||(y[6]=()=>jV())},{default:K(()=>y[71]||(y[71]=[F(" LSPosed 管理器 ")])),_:1},8,["loading"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=1&&S(t).deviceCharacteristics==="tablet"?(Re(),Oe("div",EZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[73]||(y[73]=T("p",null,"工作台模式",-1)),S(t).enabledMiuiDesktopMode?Ge("",!0):(Re(),Oe("p",kZ,[x(ae,{strong:"",secondary:"",size:"small",onClick:y[7]||(y[7]=()=>S(n).changeMiuiDesktopModeEnabled()),type:"warning"},{default:K(()=>y[72]||(y[72]=[F(" 启用功能 ")])),_:1})]))],2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[8]||(y[8]=N=>S(n).changeMiuiDktMode(N)),"rail-style":O,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:K(()=>y[74]||(y[74]=[F("工作台模式")])),unchecked:K(()=>y[75]||(y[75]=[F("默认桌面模式")])),_:1},8,["disabled","value","loading"])],2)])):Ge("",!0),T("div",_Z,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},y[76]||(y[76]=[T("p",null,"传送门",-1)]),2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("div",null,[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[9]||(y[9]=()=>S(r).open())},{icon:K(()=>y[77]||(y[77]=[T("img",{src:Tq},null,-1)])),default:K(()=>[y[78]||(y[78]=F(" 传送门 "))]),_:1},8,["loading"])]),S(r).isInstallMIUIContentExtension.value&&S(t).deviceCharacteristics==="tablet"?(Re(),Tt(X,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>[T("p",null,[y[80]||(y[80]=F("模块安装后可能会导致「传送门」被异常添加到「游戏工具箱」,您可以通过 ")),x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[10]||(y[10]=()=>S(r).fix())},{default:K(()=>y[79]||(y[79]=[F(" 传送门异常修复 ")])),_:1},8,["loading"]),y[81]||(y[81]=F(" 移除「游戏工具箱」内的「传送门」"))]),T("p",MZ,[y[83]||(y[83]=F("由于小米「传送门」存在「应用黑名单」不定期重置的BUG,您可以通过 ")),x(Fe,{size:"large",trigger:"click",options:[{label:"应用黑名单固化",key:"onlyRead"},{label:"解除应用黑名单固化",key:"readAndWrite"}],onSelect:y[11]||(y[11]=N=>{N==="onlyRead"?S(r).setAuthIsOnlyRead():S(r).setAuthIsReadAndWrite()})},{default:K(()=>[x(ae,{size:"small",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{default:K(()=>y[82]||(y[82]=[F(" 应用黑名单固化管理 ")])),_:1},8,["loading"])]),_:1}),y[84]||(y[84]=F(" 来固化「应用黑名单」的权限,避免被系统重置。"))])]),_:1})):Ge("",!0)],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(Re(),Oe("div",RZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},y[85]||(y[85]=[T("p",null,"WinPlay Mobile",-1)]),2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("div",null,[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[12]||(y[12]=()=>KV())},{icon:K(()=>y[86]||(y[86]=[T("img",{src:Iq},null,-1)])),default:K(()=>[y[87]||(y[87]=F(" WinPlay Mobile "))]),_:1},8,["loading"])]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[88]||(y[88]=[T("p",null,"「WinPlay Mobile」是为小米平板量身定做的「游戏虚拟机」,可以运行市面上常见的 Windows 游戏。",-1),T("p",null,"目前尚处于测试阶段,暂时仅支持小米平板6S Pro ~",-1),T("p",null,"该功能依赖「AI百宝箱」和「WAE Display」,请确保已经安装这两个系统应用。",-1)])),_:1})],2)])):Ge("",!0),S(t).hasPenEnableControl?(Re(),Oe("div",zZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[90]||(y[90]=F(" 第三方触控笔管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ge("",!0):(Re(),Oe("p",AZ,[x(ae,{strong:"",secondary:"",size:"small",onClick:y[13]||(y[13]=()=>S(w).enableSetting()),type:"warning"},{default:K(()=>y[89]||(y[89]=[F(" 启用功能 ")])),_:1})]))],2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[14]||(y[14]=N=>S(w).changePenEnableMode(N)),"rail-style":O,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(w).currentPenEnable.value,loading:S(t).loading},{checked:K(()=>y[91]||(y[91]=[F("已启用")])),unchecked:K(()=>y[92]||(y[92]=[F("未启用")])),_:1},8,["disabled","value","loading"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[93]||(y[93]=[F("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_enable 开关映射时生效")])),_:1})],2)])):Ge("",!0),S(t).hasPenUpdateControl?(Re(),Oe("div",PZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[95]||(y[95]=F(" 手写笔驱动管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ge("",!0):(Re(),Oe("p",BZ,[x(ae,{strong:"",secondary:"",size:"small",onClick:y[15]||(y[15]=()=>S(w).enableSetting()),type:"warning"},{default:K(()=>y[94]||(y[94]=[F(" 启用功能 ")])),_:1})]))],2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[16]||(y[16]=N=>S(w).changePenUpdateMode(N)),"rail-style":O,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(w).currentPenUpdate.value,loading:S(t).loading},{checked:K(()=>y[96]||(y[96]=[F("二代笔驱动")])),unchecked:K(()=>y[97]||(y[97]=[F("一代笔驱动")])),_:1},8,["disabled","value","loading"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[98]||(y[98]=[T("p",null,"Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_update 开关映射时生效",-1)])),_:1})],2)])):Ge("",!0),S(t).hasKeyboardControl?(Re(),Oe("div",$Z,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[100]||(y[100]=F(" 键盘连接器管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ge("",!0):(Re(),Oe("p",DZ,[x(ae,{strong:"",secondary:"",size:"small",onClick:y[17]||(y[17]=()=>S(w).enableSetting()),type:"warning"},{default:K(()=>y[99]||(y[99]=[F(" 启用功能 ")])),_:1})]))],2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{value:S(w).currentKeyboardModeSelect,size:"large",trigger:"click",options:S(w).keyboardModeOptions.value,onSelect:S(w).changeKeyboardMode},{default:K(()=>[x(ae,{strong:"",secondary:"",disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,size:"small",type:S(w).currentKeyboardModeSelect.value.type},{default:K(()=>[F(et(S(w).currentKeyboardModeSelect.value.label),1)]),_:1},8,["disabled","type"])]),_:1},8,["value","options","onSelect"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[101]||(y[101]=[F("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/keyboard 开关映射时生效")])),_:1})],2)])):Ge("",!0),T("div",TZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标光标样式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:[{label:"箭头",key:3},{label:"圆点",key:1},{label:"空心圆",key:0}],onSelect:y[18]||(y[18]=N=>{S(s).changeMiuiCursorStyleType(N)})},{default:K(()=>[x(ae,{size:"small",class:"mb-3 mr-3",type:"success",secondary:"",loading:S(t).loading},{default:K(()=>[F(et(S(s).currentMiuiCursorStyleType.value===3&&"箭头"||"")+" "+et(S(s).currentMiuiCursorStyleType.value===1&&"圆点"||"")+" "+et(S(s).currentMiuiCursorStyleType.value===0&&"空心圆"||""),1)]),_:1},8,["loading"])]),_:1}),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>[T("div",null,[y[104]||(y[104]=T("p",null,"由于小米BUG,部分系统存在开机后「鼠标光标样式」被异常重置的问题,模块提供「鼠标光标样式开机自配置」来解决这个问题,开启后每次开机会被配置为指定的「鼠标光标样式」,系统设置内的修改会在重启后失效。",-1)),x(j,{"onUpdate:value":y[19]||(y[19]=N=>S(s).changeAutoStartMiuiCursorStyleType(N)),"rail-style":O,class:"mt-5",value:!!S(s).currentAutoStartMiuiCursorStyleType.value,loading:S(t).loading},{checked:K(()=>y[102]||(y[102]=[F("已启用开机自配置")])),unchecked:K(()=>y[103]||(y[103]=[F("未启用开机自配置")])),_:1},8,["value","loading"])])]),_:1})],2)]),T("div",IZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标自然滚动 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[20]||(y[20]=N=>S(u).changeMouseGestureNaturalscroll(N)),"rail-style":O,value:S(u).currentMouseGestureNaturalscroll.value===1},{checked:K(()=>y[105]||(y[105]=[F("已开启鼠标自然滚动")])),unchecked:K(()=>y[106]||(y[106]=[F("未开启鼠标自然滚动")])),_:1},8,["value"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[107]||(y[107]=[T("p",null,"开启后内容随手指移动",-1)])),_:1})],2)]),T("div",OZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标指针速度 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ue,{size:"small",min:-7,"onUpdate:value":[y[21]||(y[21]=N=>Uv(N)),y[22]||(y[22]=N=>S(d).currentPointerSpeed.value=N)],max:7,value:S(d).currentPointerSpeed.value,step:1},null,8,["value"]),x(we,{"show-button":!1,class:"pt-3",readonly:"",value:S(d).currentPointerSpeed.value,"onUpdate:value":y[23]||(y[23]=N=>S(d).currentPointerSpeed.value=N),placeholder:"请输入鼠标指针速度",min:-7,max:7,step:1},null,8,["value"])],2)]),T("div",LZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 个性化主题导入 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"warning",secondary:"",loading:S(t).loading,onClick:y[24]||(y[24]=()=>UV())},{icon:K(()=>y[108]||(y[108]=[T("img",{src:K5},null,-1)])),default:K(()=>[y[109]||(y[109]=F(" 导入个性化主题 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>[y[111]||(y[111]=T("p",null,"需要搭配 LSPosed 模块[主题破解],才能够正常导入[个性化主题],导入按钮位于界面最底部[从SD卡导入]~",-1)),x(ae,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:y[25]||(y[25]=()=>L("主题破解","https://caiyun.139.com/m/i?135CmXA9aKh8Y","original"))},{default:K(()=>y[110]||(y[110]=[F("获取主题破解")])),_:1})]),_:1})],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("div",HZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 动态壁纸 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[26]||(y[26]=()=>TV())},{icon:K(()=>y[112]||(y[112]=[T("img",{src:K5},null,-1)])),default:K(()=>[y[113]||(y[113]=F(" AI 动态壁纸 "))]),_:1},8,["loading"]),x(ae,{strong:"",secondary:"",size:"small",circle:"",type:"error",class:"ml-2",onClick:y[27]||(y[27]=()=>LV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(R3))]),_:1})]),_:1})],2)])):Ge("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(Re(),Oe("div",NZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[28]||(y[28]=()=>IV())},{icon:K(()=>y[114]||(y[114]=[T("img",{src:G5},null,-1)])),default:K(()=>[y[115]||(y[115]=F(" 算力共享 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[116]||(y[116]=[T("p",null,"在附近高算力设备提供的算力支持下,平板获得部分 AI 功能",-1)])),_:1})],2)])):Ge("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics!=="tablet"?(Re(),Oe("div",VZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[29]||(y[29]=()=>OV())},{icon:K(()=>y[117]||(y[117]=[T("img",{src:G5},null,-1)])),default:K(()=>[y[118]||(y[118]=F(" 算力共享 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[119]||(y[119]=[T("p",null,"将设备的 AI 算力共享给平板设备,让平板设备获得部分 AI 功能",-1)])),_:1})],2)])):Ge("",!0),T("div",WZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 超级小爱翻译 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[30]||(y[30]=()=>HV())},{icon:K(()=>y[120]||(y[120]=[T("img",{src:hd},null,-1)])),default:K(()=>[y[121]||(y[121]=F(" 超级小爱翻译 "))]),_:1},8,["loading"])],2)]),T("div",jZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 同声传译 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[31]||(y[31]=()=>NV())},{icon:K(()=>y[122]||(y[122]=[T("img",{src:hd},null,-1)])),default:K(()=>[y[123]||(y[123]=F(" AI 同声传译 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:K(()=>y[124]||(y[124]=[T("p",null,'打电话或开会时,打开"AI同声传译",可以将双方的说话内容实时翻译给对方,帮助跨语言聊天。',-1),T("p",null,'Tips: 如无法打开请将"小爱翻译"和"超级小爱"升级到最新版',-1)])),_:1})],2)]),T("div",UZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏显示布局 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[32]||(y[32]=N=>R(N)),value:S(C).isSupportGameMode,"rail-style":O,disabled:S(t).deviceCharacteristics!=="tablet"||S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:K(()=>y[125]||(y[125]=[F("已开启游戏显示布局")])),unchecked:K(()=>[F(et(S(t).androidTargetSdk&&S(t).androidTargetSdk<32?"不支持游戏显示布局":"未开启游戏显示布局"),1)]),_:1},8,["value","disabled"])],2)]),T("div",KZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 旋转建议提示按钮 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[33]||(y[33]=N=>q(N)),"rail-style":O,value:S(t).showRotationSuggestions},{checked:K(()=>y[126]||(y[126]=[F("已启用旋转建议提示按钮")])),unchecked:K(()=>y[127]||(y[127]=[F("已关闭旋转建议提示按钮")])),_:1},8,["value"])],2)]),S(t).deviceCharacteristics==="tablet"&&S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("div",GZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 手势提示线(小白条) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[34]||(y[34]=N=>S(l).changeIsHideGestureLine(N)),"rail-style":O,value:S(l).currentIsHideGestureLine.value===1},{checked:K(()=>y[128]||(y[128]=[F("隐藏手势提示线")])),unchecked:K(()=>y[129]||(y[129]=[F("显示手势提示线")])),_:1},8,["value"])],2)])):Ge("",!0),x(ie,{content:"开发中,未上线",cross:"",selectable:"","font-size":16,"line-height":16,width:192,height:128,"x-offset":12,"y-offset":28,rotate:-15},{default:K(()=>[S(t).shamikoInfo.installed?(Re(),Oe("div",qZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 焕新存储 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>{}},{default:K(()=>y[130]||(y[130]=[F(" 打开 焕新存储信息面板 ")])),_:1},8,["loading"]),x(X,{class:"mb-5 mt-5",type:"success","show-icon":!1,bordered:!1},{default:K(()=>[T("div",null,[T("p",null,[y[132]||(y[132]=F("焕新存储启用状态:")),x(le,{size:"small",class:"ml-3",type:"success",loading:S(t).loading,onClick:()=>{}},{default:K(()=>y[131]||(y[131]=[F(" 已启用 ")])),_:1},8,["loading"])]),y[135]||(y[135]=T("p",null,"启用状态通常由小米云控控制,模块支持强制启用焕新存储,但该功能受系统底层支持情况而异,不支持的设备即使启用也不会生效。",-1)),x(j,{"onUpdate:value":()=>{},"rail-style":O,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:K(()=>y[133]||(y[133]=[F("已强制启用焕新存储")])),unchecked:K(()=>y[134]||(y[134]=[F("跟随系统默认云控规则")])),_:1},8,["disabled","value","loading"])])]),_:1}),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>[T("p",null,[y[137]||(y[137]=F("焕新存储激活状态: ")),x(ae,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:()=>{}},{default:K(()=>y[136]||(y[136]=[F(" 已激活 ")])),_:1},8,["loading"])]),y[138]||(y[138]=T("p",null,"激活后仍然需要满足以下条件才会在特定时间触发焕新存储:",-1)),y[139]||(y[139]=T("p",null,"①夜间12点半-凌晨5点",-1)),y[140]||(y[140]=T("p",null,"②息屏状态",-1)),y[141]||(y[141]=T("p",null,"③电量大于75%(或保持手机充电)",-1)),y[142]||(y[142]=T("p",null,"④电池温度小于40℃",-1)),y[143]||(y[143]=T("p",null,"进行焕新存储期间检测到其中任意条件不满足,焕新存储会被中断,待满足后继续执行。",-1)),y[144]||(y[144]=T("p",null,"(焕新存储流程结束后,激活状态会被关闭,您可以前往Web UI 重新激活。)",-1))]),_:1})],2)])):Ge("",!0)]),_:1}),T("div",ZZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Google 服务 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[35]||(y[35]=()=>VV())},{icon:K(()=>y[145]||(y[145]=[T("img",{src:Oq},null,-1)])),default:K(()=>[y[146]||(y[146]=F(" Google 服务 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[147]||(y[147]=[T("p",null,"仅在开启 Google 基础服务 下生效",-1)])),_:1})],2)]),T("div",XZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 隐身模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[36]||(y[36]=()=>TN())},{icon:K(()=>[x(S(pq))]),default:K(()=>[y[148]||(y[148]=F(" 隐身模式 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[149]||(y[149]=[T("p",null,"开启后系统将拒绝所有应用录音、定位和拍照,保护您的隐私安全",-1)])),_:1})],2)]),T("div",YZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 自动任务 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:y[37]||(y[37]=()=>WV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(fq))]),_:1})]),default:K(()=>[y[150]||(y[150]=F(" 自动任务 "))]),_:1},8,["loading"])],2)]),T("div",QZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 实时字幕 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[38]||(y[38]=()=>MV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(mq))]),_:1})]),default:K(()=>[y[151]||(y[151]=F(" 实时字幕 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[152]||(y[152]=[T("p",null,'Tips: 部分设备需要安装最新版"小爱翻译"或者强开「实时字幕」才能够正常使用!',-1)])),_:1})],2)]),T("div",JZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Mi剪辑 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[39]||(y[39]=()=>RV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(vq))]),_:1})]),default:K(()=>[y[153]||(y[153]=F(" Mi剪辑 "))]),_:1},8,["loading"])],2)]),T("div",eX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 极暗模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[40]||(y[40]=()=>zV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(uq))]),_:1})]),default:K(()=>[y[154]||(y[154]=F(" 极暗模式 "))]),_:1},8,["loading"])],2)]),T("div",tX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 颜色反转 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[41]||(y[41]=()=>AV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(yq))]),_:1})]),default:K(()=>[y[155]||(y[155]=F(" 颜色反转 "))]),_:1},8,["loading"])],2)]),T("div",oX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 正在运行的服务 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[42]||(y[42]=()=>BV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(xq))]),_:1})]),default:K(()=>[y[156]||(y[156]=F(" 正在运行的服务 "))]),_:1},8,["loading"])],2)]),T("div",nX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 内存使用量 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[43]||(y[43]=()=>DV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(bq))]),_:1})]),default:K(()=>[y[157]||(y[157]=F(" 内存使用量 "))]),_:1},8,["loading"])],2)]),T("div",rX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 通知日志 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[44]||(y[44]=()=>$V())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(dq))]),_:1})]),default:K(()=>[y[158]||(y[158]=F(" 通知日志 "))]),_:1},8,["loading"])],2)]),S(t).MIOSVersion?(Re(),Oe("div",iX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Xiaomi Hyper OS 版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).MIOSVersion?`Xiaomi - Hyper OS ${S(t).MIOSVersion}`:"当前为MIUI"),3)])):Ge("",!0),S(t).systemVersion?(Re(),Oe("div",aX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统版本 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).systemVersion||""),3)])):Ge("",!0),S(t).systemPreVersion?(Re(),Oe("div",lX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 上次更新的系统版本 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).systemPreVersion||""),3)])):Ge("",!0),T("div",sX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Android Target Version ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).androidTargetSdk||"非Android设备环境"),3)]),T("div",uX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备类型 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).deviceCharacteristics==="tablet"?"平板(Pad)":"折叠屏(Fold)"),3)]),S(t).deviceInfo.socModel?(Re(),Oe("div",dX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc类型 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).deviceInfo.socModel||"获取失败"),3)])):Ge("",!0),S(t).deviceInfo.socName?(Re(),Oe("div",cX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc名称 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},et(S(t).deviceInfo.socName||"获取失败"),3)])):Ge("",!0),S(t).deviceInfo.display0Panel?(Re(),Oe("div",fX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备显示器信息(display0) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,et(S(t).deviceInfo.display0Panel),1)],2)])):Ge("",!0),S(t).deviceInfo.memoryInfo?(Re(),Oe("div",hX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备DDR和UFS信息 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("div",pX,et(S(t).deviceInfo.memoryInfo||"获取失败"),1)],2)])):Ge("",!0),T("div",mX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 性能监视器 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:[{label:"打开性能监视器",key:"start"},{label:"关闭性能监视器",key:"stop"}],onSelect:y[45]||(y[45]=N=>{qN(N)})},{default:K(()=>[x(ae,{size:"small",class:"mb-3 mr-3",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(hq))]),_:1})]),default:K(()=>[y[159]||(y[159]=F(" 性能监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),T("div",gX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 帧率监视器 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:[{label:"打开帧率监视器",key:"open"},{label:"关闭帧率监视器",key:"close"}],onSelect:y[46]||(y[46]=N=>{q4(N==="open")})},{default:K(()=>[x(ae,{size:"small",class:"mb-3 mr-3",type:"info",secondary:"",loading:S(t).loading},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(cq))]),_:1})]),default:K(()=>[y[160]||(y[160]=F(" 帧率监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),S(a).formatDisplayModeList.value.length?(Re(),Oe("div",vX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 分辨率及刷新率 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(Re(!0),Oe(ft,null,wi(S(a).formatDisplayModeList.value,N=>(Re(),Oe("div",{class:"mb-3 flex",key:N.id},[T("p",bX,"ID: "+et(N.id),1),T("p",xX,"分辨率: "+et(`${N.width}x${N.height}`),1),T("p",yX,"刷新率: "+et(`${N.fps} Hz`),1),x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>S(a).selectDisplayMode(N)},{default:K(()=>y[161]||(y[161]=[F(" 应用该配置 ")])),_:2},1032,["loading","onClick"])]))),128))],2)])):Ge("",!0),S(a).supportHDRTypes.value.length?(Re(),Oe("div",CX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 支持的 HDR 类型 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(Re(!0),Oe(ft,null,wi(S(a).supportHDRTypes.value,(N,ge)=>(Re(),Oe("div",{class:"mb-3 flex",key:ge},[N===1?(Re(),Oe("p",wX,et("HLG"))):Ge("",!0),N===2?(Re(),Oe("p",SX,et("HDR10"))):Ge("",!0),N===3?(Re(),Oe("p",FX,et("HDR10+"))):Ge("",!0),N===4?(Re(),Oe("p",EX,et("Dolby Vision"))):Ge("",!0)]))),128))],2)])):Ge("",!0),S(i).qcomBatteryFg1RSocInfo.current?(Re(),Oe("div",kX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量(高通) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,[F(et(`${S(i).qcomBatteryFg1RSocInfo.current} %`)+" ",1),x(ae,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:y[47]||(y[47]=N=>S(i).qcomBatteryFg1RSocInfo.reload())},{default:K(()=>y[162]||(y[162]=[F("手动刷新")])),_:1}),x(j,{class:"ml-2",value:S(i).qcomBatteryFg1RSocInfo.autoReload,"onUpdate:value":y[48]||(y[48]=N=>S(i).qcomBatteryFg1RSocInfo.autoReload=N),"rail-style":O},{checked:K(()=>y[163]||(y[163]=[F("开启自动刷新")])),unchecked:K(()=>y[164]||(y[164]=[F("未开启自动刷新")])),_:1},8,["value"])]),S(i).qcomBatteryFg1RSocInfo.autoReload?(Re(),Oe("div",_X,[y[165]||(y[165]=T("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),T("p",null,[x(ue,{value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":y[49]||(y[49]=N=>S(i).qcomBatteryFg1RSocInfo.timer=N),size:"small",min:1,max:30,step:1},null,8,["value"]),x(we,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":y[50]||(y[50]=N=>S(i).qcomBatteryFg1RSocInfo.timer=N),min:0,max:30,step:1},null,8,["value"])])])):Ge("",!0)],2)])):Ge("",!0),S(i).capacityRawInfo.current?(Re(),Oe("div",MX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,[F(et(`${S(i).capacityRawInfo.current/100} %`)+" ",1),x(ae,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:y[51]||(y[51]=N=>S(i).capacityRawInfo.reload())},{default:K(()=>y[166]||(y[166]=[F("手动刷新")])),_:1}),x(j,{class:"ml-2",value:S(i).capacityRawInfo.autoReload,"onUpdate:value":y[52]||(y[52]=N=>S(i).capacityRawInfo.autoReload=N),"rail-style":O},{checked:K(()=>y[167]||(y[167]=[F("开启自动刷新")])),unchecked:K(()=>y[168]||(y[168]=[F("未开启自动刷新")])),_:1},8,["value"])]),S(i).capacityRawInfo.autoReload?(Re(),Oe("div",RX,[y[169]||(y[169]=T("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),T("p",null,[x(ue,{value:S(i).capacityRawInfo.timer,"onUpdate:value":y[53]||(y[53]=N=>S(i).capacityRawInfo.timer=N),size:"small",min:1,max:30,step:1},null,8,["value"]),x(we,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).capacityRawInfo.timer,"onUpdate:value":y[54]||(y[54]=N=>S(i).capacityRawInfo.timer=N),min:0,max:30,step:1},null,8,["value"])])])):Ge("",!0)],2)])):Ge("",!0),S(t).batteryInfo.chargeFullDesign?(Re(),Oe("div",zX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池出厂设计容量 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,et(`${S(t).batteryInfo.chargeFullDesign/1e3} mAh`),1)],2)])):Ge("",!0),S(t).batteryInfo.chargeFull?(Re(),Oe("div",AX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池当前预估容量 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,et(`${S(t).batteryInfo.chargeFull/1e3} mAh`),1)],2)])):Ge("",!0),S(t).batteryInfo.cycleCount?(Re(),Oe("div",PX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池循环充电次数 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,et(`${S(t).batteryInfo.cycleCount} 次`),1)],2)])):Ge("",!0),S(t).batteryInfo.chargeFullDesign&&S(t).batteryInfo.chargeFull?(Re(),Oe("div",BX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池预估健康度 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,et(`${(S(t).batteryInfo.chargeFull/S(t).batteryInfo.chargeFullDesign*100).toFixed(2)} %`),1)],2)])):Ge("",!0),S(t).batteryInfo.sohQcom?(Re(),Oe("div",$X,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(高通) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,et(`${S(t).batteryInfo.sohQcom} %`),1),T("p",null,et(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohQcom/100)/1e3)} mAh`),1),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[170]||(y[170]=[T("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ge("",!0),S(t).batteryInfo.sohMTK?(Re(),Oe("div",DX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,et(`${S(t).batteryInfo.sohMTK} %`),1),T("p",null,et(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohMTK/100)/1e3)} - mAh`),1),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[171]||(y[171]=[T("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ge("",!0),S(t).batteryInfo.sohXMPower?(Re(),Oe("div",TX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(小米) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,et(`${S(t).batteryInfo.sohXMPower} %`),1),T("p",null,et(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohXMPower/100)/1e3)} mAh`),1),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[172]||(y[172]=[T("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ge("",!0)],2)],2)])])}}}),OX=KH({history:FH(),routes:[{path:"/",redirect:"/home"},{path:"/home",name:"home",component:Mq},{path:"/autoui",name:"autoui",component:Dq},{path:"/settings",name:"settings",component:IX},{path:"/embedded-webview",name:"embedded-webview",component:()=>kn(()=>import("./EmbeddedWebView-6WNxtfd7.js"),__vite__mapDeps([0,1]))},{path:"/appStore",name:"appStore",component:()=>kn(()=>import("./AppStore-myjg0Efs.js"),[])},{path:"/logs",name:"logs",component:()=>kn(()=>import("./LogView-Dcvhg-9q.js"),__vite__mapDeps([2,3]))},{path:"/game-booster",name:"game-booster",component:()=>kn(()=>import("./GameBooster-CCGqR_Io.js"),[])},{path:"/game-turbo-config",name:"game-turbo-config",component:()=>kn(()=>import("./GameTurboConfig-B12askhf.js"),__vite__mapDeps([4,3]))},{path:"/dot-black-list",name:"dot-black-list",component:()=>kn(()=>import("./DotBlackListView-A_lq1lIC.js"),[])},{path:"/magic-control",name:"magic-control",component:()=>kn(()=>import("./MagicControlView-C9yle6ik.js"),[])},{path:"/eggs",name:"eggs",component:()=>kn(()=>import("./HappyNewYearEgg-Cailm8tl.js"),[])}],scrollBehavior(e,t,o){return{top:0}}}),LX=OL({components:[Et,pT,gT,FL,tg,XO,Sv,Ym,CL,Lu,W7,rn,fL,bL,Hu,u3,aP,am,ud,RL,EL,Hm,B$,SP,fO,Bt,sL,KL,PP,GP,XP,J6,BL,cm,EO,qd,rL,Mg,pv,Zt,VP,gm,vm,o$,sd]}),uc=Cp(tU),vb=lC();vb.use(wC);uc.use(vb);uc.use(LX);uc.use(OX);uc.mount("#app");export{y9 as $,di as A,kt as B,w9 as C,jX as D,Rt as E,l7 as F,nF as G,M6 as H,V6 as I,$s as J,Sa as K,Xj as L,C3 as M,Es as N,eh as O,u6 as P,et as Q,ft as R,hb as S,Zv as T,Gq as U,F9 as V,Nt as W,qH as X,Et as Y,Zt as Z,_9 as _,Jt as a,g9 as a0,qN as a1,hq as a2,q4 as a3,cq as a4,qv as a5,z9 as a6,Gv as a7,rn as a8,x9 as a9,Us as aA,Hq as aB,Nq as aC,Vq as aD,Lq as aE,R9 as aF,QH as aG,NR as aH,HX as aI,S9 as aa,Me as ab,VX as ac,WX as ad,GN as ae,pb as af,ke as ag,Se as ah,fb as ai,Rq as aj,C9 as ak,v9 as al,fd as am,gb as an,b9 as ao,GX as ap,UX as aq,Kv as ar,m as as,m3 as at,A3 as au,Va as av,Pt as aw,mb as ax,R3 as ay,z3 as az,K as b,Tt as c,ye as d,rt as e,Re as f,T as g,ht as h,D as i,It as j,Oe as k,S as l,x as m,xe as n,ut as o,Ge as p,hd as q,A as r,F as s,Tq as t,Vv as u,Iq as v,lt as w,K5 as x,Bt as y,Ft as z}; + )`}},"模块设置")],-1)),T("p",{class:xe(`mt-1 max-w-2xl text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-500"}`)}," 模块设置,让功能在自定义中完美契合。 ",2)]),T("div",{class:xe(`mt-3 border-t ${S(t).isDarkMode?"divide-sothx-gray-color border-sothx-gray-color":"divide-gray-200 border-gray-200"}`)},[T("dl",{class:xe(`divide-y ${S(t).isDarkMode?"divide-sothx-gray-color":"divide-gray-200"}`)},[(be=S(t).moduleInfo)!=null&&be.id?(Re(),Oe("div",tZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块ID ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).moduleInfo.id||"获取失败"),3)])):Ge("",!0),(ze=S(t).moduleInfo)!=null&&ze.dir?(Re(),Oe("div",oZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块路径 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).moduleInfo.dir||"获取失败"),3)])):Ge("",!0),(pe=S(t).moduleInfo)!=null&&pe.version?(Re(),Oe("div",nZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本名 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).moduleInfo.version||"获取失败"),3)])):Ge("",!0),(U=S(t).moduleInfo)!=null&&U.versionCode?(Re(),Oe("div",rZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).moduleInfo.versionCode||"获取失败"),3)])):Ge("",!0),T("div",iZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 模块工作模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[0]||(y[0]=N=>I(N)),"rail-style":O,value:S(o).isPatchMode,loading:H.value,disabled:S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:K(()=>y[56]||(y[56]=[F("定制模式")])),unchecked:K(()=>y[57]||(y[57]=[F("完整模式")])),_:1},8,["value","loading","disabled"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("div",aZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统应用横屏优化 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[1]||(y[1]=N=>S(c).change(N)),"rail-style":O,value:S(c).status,loading:S(t).loading},{checked:K(()=>y[58]||(y[58]=[F("已禁用系统应用横屏优化")])),unchecked:K(()=>y[59]||(y[59]=[F("已启用系统应用横屏优化")])),_:1},8,["value","loading"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[60]||(y[60]=[T("p",null,"由于小米「应用横屏布局」BUG,Hyper OS 2 下部分系统应用可无法完全横屏工作,模块可以修复这个问题,但每次设备重启或修改模块规则,这些系统应用都将被强制重启,该功能默认启用,如「启用」将代表已接纳并知晓此副作用影响。 ",-1),T("p",null,"受此影响的系统应用:",-1),T("p",null,"超级小爱(com.miui.voiceassist)",-1),T("p",null,"小米浏览器(com.android.browser)",-1),T("p",null,"平板/手机管家(com.miui.securitycenter)",-1)])),_:1})],2)])):Ge("",!0),T("div",lZ,[S(t).MIOSVersion&&S(t).MIOSVersion>=1?(Re(),Oe("dt",{key:0,class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},"智能IO调度",2)):Ge("",!0),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(t).smartFocusIO==="on"?(Re(),Tt(le,{key:0,type:"success"},{default:K(()=>y[61]||(y[61]=[F("已启用智能IO调度")])),_:1})):(Re(),Tt(le,{key:1,type:"info"},{default:K(()=>y[62]||(y[62]=[F("已启用系统默认调度")])),_:1})),S(t).deviceInfo.socModel==="SM8475"&&S(t).androidTargetSdk&&S(t).androidTargetSdk>=34&&S(t).smartFocusIO!=="on"?(Re(),Tt(X,{key:2,class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>[y[64]||(y[64]=T("p",null,"您当前未启用「智能IO调度」,由于小米「磁盘IO调度」BUG,骁龙8+Gen1机型存在IO调度异常的问题,容易导致系统卡顿或者无响应,您可以通过安装「小米平板系统功能补全模块」来启用「智能IO调度」,提升系统IO性能体验。",-1)),x(ae,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:y[2]||(y[2]=()=>L("小米平板系统功能补全模块","https://caiyun.139.com/m/i?135CmUuWuqGsk","original"))},{default:K(()=>y[63]||(y[63]=[F("获取小米平板系统功能补全模块")])),_:1})]),_:1})):Ge("",!0)],2)]),T("div",sZ,[S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("dt",{key:0,class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},"ZRAM Writeback",2)):Ge("",!0),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("div",uZ,[x(le,null,{default:K(()=>[F("dm设备映射器: "+Ye(S(h).miuiExtmDmOptEnable?"启用":"未启用"),1)]),_:1})])):Ge("",!0),T("div",dZ,[x(le,{type:"error"},{default:K(()=>[F("回写块: "+Ye(S(h).backingDev),1)]),_:1})]),T("div",cZ,[x(le,{type:"success"},{default:K(()=>[F("已回写: "+Ye(S(h).hasWriteBack)+" MB",1)]),_:1})]),T("div",fZ,[x(le,{type:"info"},{default:K(()=>[F("总读取: "+Ye(S(h).totalRead)+" MB",1)]),_:1})]),T("div",null,[x(le,{type:"warning"},{default:K(()=>[F("总回写: "+Ye(S(h).totalWriteBack)+" MB",1)]),_:1})]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[65]||(y[65]=[T("p",null,"通常用于将设备上的冷数据压缩并迁移到磁盘上,是基于「内存扩展」的回写块,该功能依赖「内存扩展」,请确保已经开启「内存扩展」,初始状态下显示 0 MB是正常现象,请持续使用一段时间再观察是否有变化",-1)])),_:1})],2)]),S(t).deviceName?(Re(),Oe("div",hZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备名称 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).deviceName||""),3)])):Ge("",!0),T("div",pZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," ROOT管理器 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).currentRootManager||"获取失败"),3)]),S(t).currentRootManager==="KernelSU"?(Re(),Oe("div",mZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 版本 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).rootManagerInfo.KSU_VER||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="KernelSU"?(Re(),Oe("div",gZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 用户空间版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).rootManagerInfo.KSU_VER_CODE||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="KernelSU"?(Re(),Oe("div",vZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," KernelSU 内核空间版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).rootManagerInfo.KSU_KERNEL_VER_CODE||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="APatch"?(Re(),Oe("div",bZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本名 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).rootManagerInfo.APATCH_VER||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="APatch"?(Re(),Oe("div",xZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," APatch 版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).rootManagerInfo.APATCH_VER_CODE||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="Magisk"?(Re(),Oe("div",yZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).rootManagerInfo.MAGISK_VER||"获取失败"),3)])):Ge("",!0),S(t).currentRootManager==="Magisk"?(Re(),Oe("div",CZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Magisk 版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).rootManagerInfo.MAGISK_VER_CODE||"获取失败"),3)])):Ge("",!0),T("div",wZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 外观模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:_,onSelect:z},{default:K(()=>[x(ae,{size:"small",strong:"",secondary:"",type:S(t).rhythmMode==="autoRhythm"?"error":"success"},{default:K(()=>[F(Ye(S(t).rhythmMode==="autoRhythm"&&"跟随系统"||S(t).rhythmMode==="lightMode"&&"浅色模式"||S(t).rhythmMode==="dartMode"&&"深色模式"),1)]),_:1},8,["type"])]),_:1})],2)]),T("div",SZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 应用字体 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:M.value,onSelect:P},{default:K(()=>[x(ae,{size:"small",strong:"",secondary:"",type:E.value[S(k).currentFont].type},{default:K(()=>[F(Ye(S(k).currentFont),1)]),_:1},8,["type"])]),_:1},8,["options"])],2)]),T("div",FZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 激活口令 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"warning",secondary:"",loading:S(t).loading||S(o).loading||S(p),onClick:y[3]||(y[3]=N=>G())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(uq))]),_:1})]),default:K(()=>[y[66]||(y[66]=F(" 导入激活口令 "))]),_:1},8,["loading"])],2)]),S(t).shamikoInfo.installed?(Re(),Oe("div",EZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Shamiko 工作模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[4]||(y[4]=N=>W(N)),"rail-style":O,value:S(t).shamikoInfo.mode==="whitelist",loading:S(t).loading},{checked:K(()=>y[67]||(y[67]=[F("白名单模式")])),unchecked:K(()=>y[68]||(y[68]=[F("黑名单模式")])),_:1},8,["value","loading"])],2)])):Ge("",!0),T("div",kZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 暗码拨号盘 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[5]||(y[5]=()=>PV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(vq))]),_:1})]),default:K(()=>[y[69]||(y[69]=F(" 暗码拨号盘 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:K(()=>y[70]||(y[70]=[T("p",null,"Tips: 暗码必须以*#*#开头,且以#*#*结尾",-1),T("p",null,"eg: 开启 LSPosed 管理器的暗码:*#*#5776733#*#*",-1),T("p",null,"「安全警示: 暗码拨号盘是面向开发者调试的功能,用于打开一些隐藏设定,如果您不了解暗码作用与功能建议不要轻易尝试,可能会导致您的设备数据丢失!」",-1)])),_:1})],2)]),T("div",_Z,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," LSPosed 管理器 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[6]||(y[6]=()=>jV())},{default:K(()=>y[71]||(y[71]=[F(" LSPosed 管理器 ")])),_:1},8,["loading"])],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=1&&S(t).deviceCharacteristics==="tablet"?(Re(),Oe("div",MZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[73]||(y[73]=T("p",null,"工作台模式",-1)),S(t).enabledMiuiDesktopMode?Ge("",!0):(Re(),Oe("p",RZ,[x(ae,{strong:"",secondary:"",size:"small",onClick:y[7]||(y[7]=()=>S(n).changeMiuiDesktopModeEnabled()),type:"warning"},{default:K(()=>y[72]||(y[72]=[F(" 启用功能 ")])),_:1})]))],2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[8]||(y[8]=N=>S(n).changeMiuiDktMode(N)),"rail-style":O,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:K(()=>y[74]||(y[74]=[F("工作台模式")])),unchecked:K(()=>y[75]||(y[75]=[F("默认桌面模式")])),_:1},8,["disabled","value","loading"])],2)])):Ge("",!0),T("div",zZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},y[76]||(y[76]=[T("p",null,"传送门",-1)]),2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("div",null,[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[9]||(y[9]=()=>S(r).open())},{icon:K(()=>y[77]||(y[77]=[T("img",{src:Iq},null,-1)])),default:K(()=>[y[78]||(y[78]=F(" 传送门 "))]),_:1},8,["loading"])]),S(r).isInstallMIUIContentExtension.value&&S(t).deviceCharacteristics==="tablet"?(Re(),Tt(X,{key:0,class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>[T("p",null,[y[80]||(y[80]=F("模块安装后可能会导致「传送门」被异常添加到「游戏工具箱」,您可以通过 ")),x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[10]||(y[10]=()=>S(r).fix())},{default:K(()=>y[79]||(y[79]=[F(" 传送门异常修复 ")])),_:1},8,["loading"]),y[81]||(y[81]=F(" 移除「游戏工具箱」内的「传送门」"))]),T("p",AZ,[y[83]||(y[83]=F("由于小米「传送门」存在「应用黑名单」不定期重置的BUG,您可以通过 ")),x(Fe,{size:"large",trigger:"click",options:[{label:"应用黑名单固化",key:"onlyRead"},{label:"解除应用黑名单固化",key:"readAndWrite"}],onSelect:y[11]||(y[11]=N=>{N==="onlyRead"?S(r).setAuthIsOnlyRead():S(r).setAuthIsReadAndWrite()})},{default:K(()=>[x(ae,{size:"small",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{default:K(()=>y[82]||(y[82]=[F(" 应用黑名单固化管理 ")])),_:1},8,["loading"])]),_:1}),y[84]||(y[84]=F(" 来固化「应用黑名单」的权限,避免被系统重置。"))])]),_:1})):Ge("",!0)],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(Re(),Oe("div",PZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},y[85]||(y[85]=[T("p",null,"WinPlay Mobile",-1)]),2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("div",null,[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[12]||(y[12]=()=>KV())},{icon:K(()=>y[86]||(y[86]=[T("img",{src:Oq},null,-1)])),default:K(()=>[y[87]||(y[87]=F(" WinPlay Mobile "))]),_:1},8,["loading"])]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[88]||(y[88]=[T("p",null,"「WinPlay Mobile」是为小米平板量身定做的「游戏虚拟机」,可以运行市面上常见的 Windows 游戏。",-1),T("p",null,"目前尚处于测试阶段,暂时仅支持小米平板6S Pro ~",-1),T("p",null,"该功能依赖「AI百宝箱」和「WAE Display」,请确保已经安装这两个系统应用。",-1)])),_:1})],2)])):Ge("",!0),S(t).hasPenEnableControl?(Re(),Oe("div",BZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[90]||(y[90]=F(" 第三方触控笔管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ge("",!0):(Re(),Oe("p",$Z,[x(ae,{strong:"",secondary:"",size:"small",onClick:y[13]||(y[13]=()=>S(w).enableSetting()),type:"warning"},{default:K(()=>y[89]||(y[89]=[F(" 启用功能 ")])),_:1})]))],2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[14]||(y[14]=N=>S(w).changePenEnableMode(N)),"rail-style":O,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(w).currentPenEnable.value,loading:S(t).loading},{checked:K(()=>y[91]||(y[91]=[F("已启用")])),unchecked:K(()=>y[92]||(y[92]=[F("未启用")])),_:1},8,["disabled","value","loading"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[93]||(y[93]=[F("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_enable 开关映射时生效")])),_:1})],2)])):Ge("",!0),S(t).hasPenUpdateControl?(Re(),Oe("div",DZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[95]||(y[95]=F(" 手写笔驱动管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ge("",!0):(Re(),Oe("p",TZ,[x(ae,{strong:"",secondary:"",size:"small",onClick:y[15]||(y[15]=()=>S(w).enableSetting()),type:"warning"},{default:K(()=>y[94]||(y[94]=[F(" 启用功能 ")])),_:1})]))],2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[16]||(y[16]=N=>S(w).changePenUpdateMode(N)),"rail-style":O,disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,value:!!S(w).currentPenUpdate.value,loading:S(t).loading},{checked:K(()=>y[96]||(y[96]=[F("二代笔驱动")])),unchecked:K(()=>y[97]||(y[97]=[F("一代笔驱动")])),_:1},8,["disabled","value","loading"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[98]||(y[98]=[T("p",null,"Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/pen_update 开关映射时生效",-1)])),_:1})],2)])):Ge("",!0),S(t).hasKeyboardControl?(Re(),Oe("div",IZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)},[y[100]||(y[100]=F(" 键盘连接器管理(水龙) ")),S(t).showThirdPartySetting.amktiaoROMInterface?Ge("",!0):(Re(),Oe("p",OZ,[x(ae,{strong:"",secondary:"",size:"small",onClick:y[17]||(y[17]=()=>S(w).enableSetting()),type:"warning"},{default:K(()=>y[99]||(y[99]=[F(" 启用功能 ")])),_:1})]))],2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{value:S(w).currentKeyboardModeSelect,size:"large",trigger:"click",options:S(w).keyboardModeOptions.value,onSelect:S(w).changeKeyboardMode},{default:K(()=>[x(ae,{strong:"",secondary:"",disabled:!S(t).showThirdPartySetting.amktiaoROMInterface,size:"small",type:S(w).currentKeyboardModeSelect.value.type},{default:K(()=>[F(Ye(S(w).currentKeyboardModeSelect.value.label),1)]),_:1},8,["disabled","type"])]),_:1},8,["value","options","onSelect"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>y[101]||(y[101]=[F("Tips:仅兼容水龙(Amktiao)的移植包,存在 /sys/touchpanel/keyboard 开关映射时生效")])),_:1})],2)])):Ge("",!0),T("div",LZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标光标样式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:[{label:"箭头",key:3},{label:"圆点",key:1},{label:"空心圆",key:0}],onSelect:y[18]||(y[18]=N=>{S(s).changeMiuiCursorStyleType(N)})},{default:K(()=>[x(ae,{size:"small",class:"mb-3 mr-3",type:"success",secondary:"",loading:S(t).loading},{default:K(()=>[F(Ye(S(s).currentMiuiCursorStyleType.value===3&&"箭头"||"")+" "+Ye(S(s).currentMiuiCursorStyleType.value===1&&"圆点"||"")+" "+Ye(S(s).currentMiuiCursorStyleType.value===0&&"空心圆"||""),1)]),_:1},8,["loading"])]),_:1}),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>[T("div",null,[y[104]||(y[104]=T("p",null,"由于小米BUG,部分系统存在开机后「鼠标光标样式」被异常重置的问题,模块提供「鼠标光标样式开机自配置」来解决这个问题,开启后每次开机会被配置为指定的「鼠标光标样式」,系统设置内的修改会在重启后失效。",-1)),x(j,{"onUpdate:value":y[19]||(y[19]=N=>S(s).changeAutoStartMiuiCursorStyleType(N)),"rail-style":O,class:"mt-5",value:!!S(s).currentAutoStartMiuiCursorStyleType.value,loading:S(t).loading},{checked:K(()=>y[102]||(y[102]=[F("已启用开机自配置")])),unchecked:K(()=>y[103]||(y[103]=[F("未启用开机自配置")])),_:1},8,["value","loading"])])]),_:1})],2)]),T("div",HZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标自然滚动 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[20]||(y[20]=N=>S(u).changeMouseGestureNaturalscroll(N)),"rail-style":O,value:S(u).currentMouseGestureNaturalscroll.value===1},{checked:K(()=>y[105]||(y[105]=[F("已开启鼠标自然滚动")])),unchecked:K(()=>y[106]||(y[106]=[F("未开启鼠标自然滚动")])),_:1},8,["value"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[107]||(y[107]=[T("p",null,"开启后内容随手指移动",-1)])),_:1})],2)]),T("div",NZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 鼠标指针速度 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ue,{size:"small",min:-7,"onUpdate:value":[y[21]||(y[21]=N=>Uv(N)),y[22]||(y[22]=N=>S(d).currentPointerSpeed.value=N)],max:7,value:S(d).currentPointerSpeed.value,step:1},null,8,["value"]),x(we,{"show-button":!1,class:"pt-3",readonly:"",value:S(d).currentPointerSpeed.value,"onUpdate:value":y[23]||(y[23]=N=>S(d).currentPointerSpeed.value=N),placeholder:"请输入鼠标指针速度",min:-7,max:7,step:1},null,8,["value"])],2)]),T("div",VZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 个性化主题导入 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"warning",secondary:"",loading:S(t).loading,onClick:y[24]||(y[24]=()=>UV())},{icon:K(()=>y[108]||(y[108]=[T("img",{src:K5},null,-1)])),default:K(()=>[y[109]||(y[109]=F(" 导入个性化主题 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"warning","show-icon":!1,bordered:!1},{default:K(()=>[y[111]||(y[111]=T("p",null,"需要搭配 LSPosed 模块[主题破解],才能够正常导入[个性化主题],导入按钮位于界面最底部[从SD卡导入]~",-1)),x(ae,{class:"mt-2",strong:"",size:"small",secondary:"",type:"warning",onClick:y[25]||(y[25]=()=>L("主题破解","https://caiyun.139.com/m/i?135CmXA9aKh8Y","original"))},{default:K(()=>y[110]||(y[110]=[F("获取主题破解")])),_:1})]),_:1})],2)]),S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("div",WZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 动态壁纸 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[26]||(y[26]=()=>TV())},{icon:K(()=>y[112]||(y[112]=[T("img",{src:K5},null,-1)])),default:K(()=>[y[113]||(y[113]=F(" AI 动态壁纸 "))]),_:1},8,["loading"]),x(ae,{strong:"",secondary:"",size:"small",circle:"",type:"error",class:"ml-2",onClick:y[27]||(y[27]=()=>LV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(R3))]),_:1})]),_:1})],2)])):Ge("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics==="tablet"?(Re(),Oe("div",jZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[28]||(y[28]=()=>IV())},{icon:K(()=>y[114]||(y[114]=[T("img",{src:G5},null,-1)])),default:K(()=>[y[115]||(y[115]=F(" 算力共享 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[116]||(y[116]=[T("p",null,"在附近高算力设备提供的算力支持下,平板获得部分 AI 功能",-1)])),_:1})],2)])):Ge("",!0),S(t).MIOSVersion&&S(t).MIOSVersion>=2&&S(t).deviceCharacteristics!=="tablet"?(Re(),Oe("div",UZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 算力共享 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[29]||(y[29]=()=>OV())},{icon:K(()=>y[117]||(y[117]=[T("img",{src:G5},null,-1)])),default:K(()=>[y[118]||(y[118]=F(" 算力共享 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[119]||(y[119]=[T("p",null,"将设备的 AI 算力共享给平板设备,让平板设备获得部分 AI 功能",-1)])),_:1})],2)])):Ge("",!0),T("div",KZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 超级小爱翻译 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[30]||(y[30]=()=>HV())},{icon:K(()=>y[120]||(y[120]=[T("img",{src:hd},null,-1)])),default:K(()=>[y[121]||(y[121]=F(" 超级小爱翻译 "))]),_:1},8,["loading"])],2)]),T("div",GZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," AI 同声传译 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[31]||(y[31]=()=>NV())},{icon:K(()=>y[122]||(y[122]=[T("img",{src:hd},null,-1)])),default:K(()=>[y[123]||(y[123]=F(" AI 同声传译 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"error","show-icon":!1,bordered:!1},{default:K(()=>y[124]||(y[124]=[T("p",null,'打电话或开会时,打开"AI同声传译",可以将双方的说话内容实时翻译给对方,帮助跨语言聊天。',-1),T("p",null,'Tips: 如无法打开请将"小爱翻译"和"超级小爱"升级到最新版',-1)])),_:1})],2)]),T("div",qZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 游戏显示布局 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[32]||(y[32]=N=>R(N)),value:S(C).isSupportGameMode,"rail-style":O,disabled:S(t).deviceCharacteristics!=="tablet"||S(t).androidTargetSdk&&S(t).androidTargetSdk<32},{checked:K(()=>y[125]||(y[125]=[F("已开启游戏显示布局")])),unchecked:K(()=>[F(Ye(S(t).androidTargetSdk&&S(t).androidTargetSdk<32?"不支持游戏显示布局":"未开启游戏显示布局"),1)]),_:1},8,["value","disabled"])],2)]),T("div",ZZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 旋转建议提示按钮 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[33]||(y[33]=N=>q(N)),"rail-style":O,value:S(t).showRotationSuggestions},{checked:K(()=>y[126]||(y[126]=[F("已启用旋转建议提示按钮")])),unchecked:K(()=>y[127]||(y[127]=[F("已关闭旋转建议提示按钮")])),_:1},8,["value"])],2)]),S(t).deviceCharacteristics==="tablet"&&S(t).MIOSVersion&&S(t).MIOSVersion>=2?(Re(),Oe("div",XZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 手势提示线(小白条) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(j,{"onUpdate:value":y[34]||(y[34]=N=>S(l).changeIsHideGestureLine(N)),"rail-style":O,value:S(l).currentIsHideGestureLine.value===1},{checked:K(()=>y[128]||(y[128]=[F("隐藏手势提示线")])),unchecked:K(()=>y[129]||(y[129]=[F("显示手势提示线")])),_:1},8,["value"])],2)])):Ge("",!0),x(ie,{content:"开发中,未上线",cross:"",selectable:"","font-size":16,"line-height":16,width:192,height:128,"x-offset":12,"y-offset":28,rotate:-15},{default:K(()=>[S(t).shamikoInfo.installed?(Re(),Oe("div",YZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 焕新存储 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>{}},{default:K(()=>y[130]||(y[130]=[F(" 打开 焕新存储信息面板 ")])),_:1},8,["loading"]),x(X,{class:"mb-5 mt-5",type:"success","show-icon":!1,bordered:!1},{default:K(()=>[T("div",null,[T("p",null,[y[132]||(y[132]=F("焕新存储启用状态:")),x(le,{size:"small",class:"ml-3",type:"success",loading:S(t).loading,onClick:()=>{}},{default:K(()=>y[131]||(y[131]=[F(" 已启用 ")])),_:1},8,["loading"])]),y[135]||(y[135]=T("p",null,"启用状态通常由小米云控控制,模块支持强制启用焕新存储,但该功能受系统底层支持情况而异,不支持的设备即使启用也不会生效。",-1)),x(j,{"onUpdate:value":()=>{},"rail-style":O,disabled:!S(t).enabledMiuiDesktopMode,value:S(n).currentMiuiDktMode,loading:S(t).loading},{checked:K(()=>y[133]||(y[133]=[F("已强制启用焕新存储")])),unchecked:K(()=>y[134]||(y[134]=[F("跟随系统默认云控规则")])),_:1},8,["disabled","value","loading"])])]),_:1}),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>[T("p",null,[y[137]||(y[137]=F("焕新存储激活状态: ")),x(ae,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:()=>{}},{default:K(()=>y[136]||(y[136]=[F(" 已激活 ")])),_:1},8,["loading"])]),y[138]||(y[138]=T("p",null,"激活后仍然需要满足以下条件才会在特定时间触发焕新存储:",-1)),y[139]||(y[139]=T("p",null,"①夜间12点半-凌晨5点",-1)),y[140]||(y[140]=T("p",null,"②息屏状态",-1)),y[141]||(y[141]=T("p",null,"③电量大于75%(或保持手机充电)",-1)),y[142]||(y[142]=T("p",null,"④电池温度小于40℃",-1)),y[143]||(y[143]=T("p",null,"进行焕新存储期间检测到其中任意条件不满足,焕新存储会被中断,待满足后继续执行。",-1)),y[144]||(y[144]=T("p",null,"(焕新存储流程结束后,激活状态会被关闭,您可以前往Web UI 重新激活。)",-1))]),_:1})],2)])):Ge("",!0)]),_:1}),T("div",QZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Google 服务 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[35]||(y[35]=()=>VV())},{icon:K(()=>y[145]||(y[145]=[T("img",{src:Lq},null,-1)])),default:K(()=>[y[146]||(y[146]=F(" Google 服务 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[147]||(y[147]=[T("p",null,"仅在开启 Google 基础服务 下生效",-1)])),_:1})],2)]),T("div",JZ,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 隐身模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[36]||(y[36]=()=>TN())},{icon:K(()=>[x(S(mq))]),default:K(()=>[y[148]||(y[148]=F(" 隐身模式 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[149]||(y[149]=[T("p",null,"开启后系统将拒绝所有应用录音、定位和拍照,保护您的隐私安全",-1)])),_:1})],2)]),T("div",eX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 自动任务 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"success",secondary:"",loading:S(t).loading,onClick:y[37]||(y[37]=()=>WV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(hq))]),_:1})]),default:K(()=>[y[150]||(y[150]=F(" 自动任务 "))]),_:1},8,["loading"])],2)]),T("div",tX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 实时字幕 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[38]||(y[38]=()=>MV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(gq))]),_:1})]),default:K(()=>[y[151]||(y[151]=F(" 实时字幕 "))]),_:1},8,["loading"]),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[152]||(y[152]=[T("p",null,'Tips: 部分设备需要安装最新版"小爱翻译"或者强开「实时字幕」才能够正常使用!',-1)])),_:1})],2)]),T("div",oX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Mi剪辑 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"error",secondary:"",loading:S(t).loading,onClick:y[39]||(y[39]=()=>RV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(bq))]),_:1})]),default:K(()=>[y[153]||(y[153]=F(" Mi剪辑 "))]),_:1},8,["loading"])],2)]),T("div",nX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 极暗模式 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[40]||(y[40]=()=>zV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(dq))]),_:1})]),default:K(()=>[y[154]||(y[154]=F(" 极暗模式 "))]),_:1},8,["loading"])],2)]),T("div",rX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 颜色反转 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[41]||(y[41]=()=>AV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(Cq))]),_:1})]),default:K(()=>[y[155]||(y[155]=F(" 颜色反转 "))]),_:1},8,["loading"])],2)]),T("div",iX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 正在运行的服务 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[42]||(y[42]=()=>BV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(yq))]),_:1})]),default:K(()=>[y[156]||(y[156]=F(" 正在运行的服务 "))]),_:1},8,["loading"])],2)]),T("div",aX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 内存使用量 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[43]||(y[43]=()=>DV())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(xq))]),_:1})]),default:K(()=>[y[157]||(y[157]=F(" 内存使用量 "))]),_:1},8,["loading"])],2)]),T("div",lX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 通知日志 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:y[44]||(y[44]=()=>$V())},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(cq))]),_:1})]),default:K(()=>[y[158]||(y[158]=F(" 通知日志 "))]),_:1},8,["loading"])],2)]),S(t).MIOSVersion?(Re(),Oe("div",sX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Xiaomi Hyper OS 版本号 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).MIOSVersion?`Xiaomi + Hyper OS ${S(t).MIOSVersion}`:"当前为MIUI"),3)])):Ge("",!0),S(t).systemVersion?(Re(),Oe("div",uX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 系统版本 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).systemVersion||""),3)])):Ge("",!0),S(t).systemPreVersion?(Re(),Oe("div",dX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 上次更新的系统版本 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).systemPreVersion||""),3)])):Ge("",!0),T("div",cX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," Android Target Version ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).androidTargetSdk||"非Android设备环境"),3)]),T("div",fX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备类型 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).deviceCharacteristics==="tablet"?"平板(Pad)":"折叠屏(Fold)"),3)]),S(t).deviceInfo.socModel?(Re(),Oe("div",hX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc类型 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).deviceInfo.socModel||"获取失败"),3)])):Ge("",!0),S(t).deviceInfo.socName?(Re(),Oe("div",pX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备Soc名称 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},Ye(S(t).deviceInfo.socName||"获取失败"),3)])):Ge("",!0),S(t).deviceInfo.display0Panel?(Re(),Oe("div",mX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备显示器信息(display0) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,Ye(S(t).deviceInfo.display0Panel),1)],2)])):Ge("",!0),S(t).deviceInfo.memoryInfo?(Re(),Oe("div",gX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 设备DDR和UFS信息 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("div",vX,Ye(S(t).deviceInfo.memoryInfo||"获取失败"),1)],2)])):Ge("",!0),T("div",bX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 性能监视器 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:[{label:"打开性能监视器",key:"start"},{label:"关闭性能监视器",key:"stop"}],onSelect:y[45]||(y[45]=N=>{qN(N)})},{default:K(()=>[x(ae,{size:"small",class:"mb-3 mr-3",type:"info",color:"#8a2be2",secondary:"",loading:S(t).loading},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(pq))]),_:1})]),default:K(()=>[y[159]||(y[159]=F(" 性能监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),T("div",xX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 帧率监视器 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[x(Fe,{size:"large",trigger:"click",options:[{label:"打开帧率监视器",key:"open"},{label:"关闭帧率监视器",key:"close"}],onSelect:y[46]||(y[46]=N=>{q4(N==="open")})},{default:K(()=>[x(ae,{size:"small",class:"mb-3 mr-3",type:"info",secondary:"",loading:S(t).loading},{icon:K(()=>[x(fe,null,{default:K(()=>[x(S(fq))]),_:1})]),default:K(()=>[y[160]||(y[160]=F(" 帧率监视器 "))]),_:1},8,["loading"])]),_:1})],2)]),S(a).formatDisplayModeList.value.length?(Re(),Oe("div",yX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 分辨率及刷新率 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(Re(!0),Oe(ft,null,wi(S(a).formatDisplayModeList.value,N=>(Re(),Oe("div",{class:"mb-3 flex",key:N.id},[T("p",CX,"ID: "+Ye(N.id),1),T("p",wX,"分辨率: "+Ye(`${N.width}x${N.height}`),1),T("p",SX,"刷新率: "+Ye(`${N.fps} Hz`),1),x(ae,{size:"small",type:"info",secondary:"",loading:S(t).loading,onClick:()=>S(a).selectDisplayMode(N)},{default:K(()=>y[161]||(y[161]=[F(" 应用该配置 ")])),_:2},1032,["loading","onClick"])]))),128))],2)])):Ge("",!0),S(a).supportHDRTypes.value.length?(Re(),Oe("div",FX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 支持的 HDR 类型 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[(Re(!0),Oe(ft,null,wi(S(a).supportHDRTypes.value,(N,ge)=>(Re(),Oe("div",{class:"mb-3 flex",key:ge},[N===1?(Re(),Oe("p",EX,Ye("HLG"))):Ge("",!0),N===2?(Re(),Oe("p",kX,Ye("HDR10"))):Ge("",!0),N===3?(Re(),Oe("p",_X,Ye("HDR10+"))):Ge("",!0),N===4?(Re(),Oe("p",MX,Ye("Dolby Vision"))):Ge("",!0)]))),128))],2)])):Ge("",!0),S(i).qcomBatteryFg1RSocInfo.current?(Re(),Oe("div",RX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量(高通) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,[F(Ye(`${S(i).qcomBatteryFg1RSocInfo.current} %`)+" ",1),x(ae,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:y[47]||(y[47]=N=>S(i).qcomBatteryFg1RSocInfo.reload())},{default:K(()=>y[162]||(y[162]=[F("手动刷新")])),_:1}),x(j,{class:"ml-2",value:S(i).qcomBatteryFg1RSocInfo.autoReload,"onUpdate:value":y[48]||(y[48]=N=>S(i).qcomBatteryFg1RSocInfo.autoReload=N),"rail-style":O},{checked:K(()=>y[163]||(y[163]=[F("开启自动刷新")])),unchecked:K(()=>y[164]||(y[164]=[F("未开启自动刷新")])),_:1},8,["value"])]),S(i).qcomBatteryFg1RSocInfo.autoReload?(Re(),Oe("div",zX,[y[165]||(y[165]=T("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),T("p",null,[x(ue,{value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":y[49]||(y[49]=N=>S(i).qcomBatteryFg1RSocInfo.timer=N),size:"small",min:1,max:30,step:1},null,8,["value"]),x(we,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).qcomBatteryFg1RSocInfo.timer,"onUpdate:value":y[50]||(y[50]=N=>S(i).qcomBatteryFg1RSocInfo.timer=N),min:0,max:30,step:1},null,8,["value"])])])):Ge("",!0)],2)])):Ge("",!0),S(i).capacityRawInfo.current?(Re(),Oe("div",AX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 真实电量 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,[F(Ye(`${S(i).capacityRawInfo.current/100} %`)+" ",1),x(ae,{class:"ml-1",strong:"",secondary:"",size:"small",type:"success",onClick:y[51]||(y[51]=N=>S(i).capacityRawInfo.reload())},{default:K(()=>y[166]||(y[166]=[F("手动刷新")])),_:1}),x(j,{class:"ml-2",value:S(i).capacityRawInfo.autoReload,"onUpdate:value":y[52]||(y[52]=N=>S(i).capacityRawInfo.autoReload=N),"rail-style":O},{checked:K(()=>y[167]||(y[167]=[F("开启自动刷新")])),unchecked:K(()=>y[168]||(y[168]=[F("未开启自动刷新")])),_:1},8,["value"])]),S(i).capacityRawInfo.autoReload?(Re(),Oe("div",PX,[y[169]||(y[169]=T("p",{class:"my-2"}," 隔多少秒刷新一次 ",-1)),T("p",null,[x(ue,{value:S(i).capacityRawInfo.timer,"onUpdate:value":y[53]||(y[53]=N=>S(i).capacityRawInfo.timer=N),size:"small",min:1,max:30,step:1},null,8,["value"]),x(we,{"show-button":!1,class:"pt-3",readonly:"",placeholder:"请输入刷新频率间隔时间",value:S(i).capacityRawInfo.timer,"onUpdate:value":y[54]||(y[54]=N=>S(i).capacityRawInfo.timer=N),min:0,max:30,step:1},null,8,["value"])])])):Ge("",!0)],2)])):Ge("",!0),S(t).batteryInfo.chargeFullDesign?(Re(),Oe("div",BX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池出厂设计容量 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,Ye(`${S(t).batteryInfo.chargeFullDesign/1e3} mAh`),1)],2)])):Ge("",!0),S(t).batteryInfo.chargeFull?(Re(),Oe("div",$X,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池当前预估容量 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,Ye(`${S(t).batteryInfo.chargeFull/1e3} mAh`),1)],2)])):Ge("",!0),S(t).batteryInfo.cycleCount?(Re(),Oe("div",DX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池循环充电次数 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,Ye(`${S(t).batteryInfo.cycleCount} 次`),1)],2)])):Ge("",!0),S(t).batteryInfo.chargeFullDesign&&S(t).batteryInfo.chargeFull?(Re(),Oe("div",TX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池预估健康度 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,Ye(`${(S(t).batteryInfo.chargeFull/S(t).batteryInfo.chargeFullDesign*100).toFixed(2)} %`),1)],2)])):Ge("",!0),S(t).batteryInfo.sohQcom?(Re(),Oe("div",IX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(高通) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,Ye(`${S(t).batteryInfo.sohQcom} %`),1),T("p",null,Ye(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohQcom/100)/1e3)} mAh`),1),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[170]||(y[170]=[T("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ge("",!0),S(t).batteryInfo.sohMTK?(Re(),Oe("div",OX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度 ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,Ye(`${S(t).batteryInfo.sohMTK} %`),1),T("p",null,Ye(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohMTK/100)/1e3)} + mAh`),1),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[171]||(y[171]=[T("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ge("",!0),S(t).batteryInfo.sohXMPower?(Re(),Oe("div",LX,[T("dt",{class:xe(`text-sm font-medium leading-6 ${S(t).isDarkMode?"text-white":"text-gray-900"}`)}," 电池售后健康度(小米) ",2),T("dd",{class:xe(`mt-1 text-sm leading-6 ${S(t).isDarkMode?"text-gray-300":"text-gray-700"} sm:col-span-2 sm:mt-0`)},[T("p",null,Ye(`${S(t).batteryInfo.sohXMPower} %`),1),T("p",null,Ye(`≈ ${Math.round(S(t).batteryInfo.chargeFullDesign*(S(t).batteryInfo.sohXMPower/100)/1e3)} mAh`),1),x(X,{class:"mt-5",type:"info","show-icon":!1,bordered:!1},{default:K(()=>y[172]||(y[172]=[T("p",null,"Tips:在设备保修期内健康度低于80%可以申请电池质保",-1)])),_:1})],2)])):Ge("",!0)],2)],2)])])}}}),NX=KH({history:FH(),routes:[{path:"/",redirect:"/home"},{path:"/home",name:"home",component:Rq},{path:"/autoui",name:"autoui",component:Tq},{path:"/settings",name:"settings",component:HX},{path:"/embedded-webview",name:"embedded-webview",component:()=>kn(()=>import("./EmbeddedWebView-CWXM9W6r.js"),__vite__mapDeps([0,1]))},{path:"/appStore",name:"appStore",component:()=>kn(()=>import("./AppStore-BuJDF3ID.js"),[])},{path:"/logs",name:"logs",component:()=>kn(()=>import("./LogView-DRiHaWZO.js"),__vite__mapDeps([2,3]))},{path:"/game-booster",name:"game-booster",component:()=>kn(()=>import("./GameBooster-BrGqqyKs.js"),[])},{path:"/game-turbo-config",name:"game-turbo-config",component:()=>kn(()=>import("./GameTurboConfig-CQo6LjY6.js"),__vite__mapDeps([4,3]))},{path:"/dot-black-list",name:"dot-black-list",component:()=>kn(()=>import("./DotBlackListView-DP7Lvogy.js"),[])},{path:"/magic-control",name:"magic-control",component:()=>kn(()=>import("./MagicControlView-YT1mq4bs.js"),[])},{path:"/eggs",name:"eggs",component:()=>kn(()=>import("./HappyNewYearEgg-BVtnqtKV.js"),[])}],scrollBehavior(e,t,o){return{top:0}}}),VX=OL({components:[Et,pT,gT,FL,tg,XO,Sv,Ym,CL,Lu,W7,rn,fL,bL,Hu,u3,aP,am,ud,RL,EL,Hm,B$,SP,fO,Bt,sL,KL,PP,GP,XP,J6,BL,cm,EO,qd,rL,Mg,pv,Zt,VP,gm,vm,o$,sd]}),uc=Cp(oU),vb=lC();vb.use(wC);uc.use(vb);uc.use(VX);uc.use(NX);uc.mount("#app");export{y9 as $,di as A,kt as B,w9 as C,GX as D,Rt as E,l7 as F,nF as G,M6 as H,V6 as I,$s as J,Sa as K,Yj as L,C3 as M,Es as N,eh as O,u6 as P,Ye as Q,ft as R,hb as S,Zv as T,qq as U,F9 as V,Nt as W,qH as X,Et as Y,Zt as Z,_9 as _,Jt as a,g9 as a0,qN as a1,pq as a2,q4 as a3,fq as a4,qv as a5,z9 as a6,Gv as a7,rn as a8,x9 as a9,Us as aA,Nq as aB,Vq as aC,Wq as aD,Hq as aE,R9 as aF,QH as aG,NR as aH,WX as aI,S9 as aa,Me as ab,UX as ac,KX as ad,GN as ae,pb as af,ke as ag,Se as ah,fb as ai,zq as aj,C9 as ak,v9 as al,fd as am,gb as an,b9 as ao,XX as ap,qX as aq,Kv as ar,m as as,m3 as at,A3 as au,Va as av,Pt as aw,mb as ax,R3 as ay,z3 as az,K as b,Tt as c,ye as d,rt as e,Re as f,T as g,ht as h,D as i,It as j,Oe as k,S as l,x as m,xe as n,ut as o,Ge as p,hd as q,A as r,F as s,Iq as t,Vv as u,Oq as v,lt as w,K5 as x,Bt as y,Ft as z}; diff --git a/module_src/webroot/index.html b/module_src/webroot/index.html index 03bfd3c4..6b99388f 100644 --- a/module_src/webroot/index.html +++ b/module_src/webroot/index.html @@ -5,7 +5,7 @@ 完美横屏应用计划 For Web UI - +