import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Ye}from"./DropDown.js";import{ap as Xe,an as He,aq as Ge,aM as Qe,B as de,H as s,bi as Le,z as Je,c as Ce,r as M,j as O,s as Me,w as je,b as ce,as as ne,ar as ie,au as r,ay as ue,ax as Fe,D as Re,aC as Ne,b8 as Ze,aD as et,n as $e,l as Se,bg as Be,av as I,at as Te,bF as tt,aI as ot,aE as we,aG as Y,aY as X,bA as xe,bj as D,bh as nt,aL as ye,bm as he,br as lt,bc as at,bC as L,by as u,bo as t,bu as A,bx as W,bw as R,bv as w,i as rt,bG as it,b3 as st,bt as m,E as ct,aA as dt,F as Q,bD as ze,k as ke,aX as ut,bE as J}from"./_plugin-vue_export-helper.js";import{c as ht,f as ft,t as gt,u as mt,s as Ve,a as bt}from"./main.js";import{a as pt,_ as vt}from"./Play.js";import{_ as _t}from"./Scrollbar.js";import{_ as wt}from"./op_select.js";import{u as xt}from"./use-locale.js";import"./Select.js";import"./Tag.js";import"./Input.js";import"./VirtualList.js";import"./Forward.js";import"./utils.js";import"./download.js";import"./get-slot.js";import"./index.js";import"./Avatar.js";function yt(e){const{textColor2:l,modalColor:a,borderColor:i,fontSize:c,primaryColor:x}=e;return{loaderFontSize:c,loaderTextColor:l,loaderColor:a,loaderBorder:`1px solid ${i}`,loadingColor:x}}const kt=Xe({name:"Log",common:He,peers:{Scrollbar:Ge,Code:Ae},self:yt});function Ct(e){const{primaryColor:l,opacityDisabled:a,borderRadius:i,textColor3:c}=e;return Object.assign(Object.assign({},ht),{iconColor:c,textColor:"white",loadingColor:l,opacityDisabled:a,railColor:"rgba(0, 0, 0, .14)",railColorActive:l,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:i,railBorderRadiusMedium:i,railBorderRadiusLarge:i,buttonBorderRadiusSmall:i,buttonBorderRadiusMedium:i,buttonBorderRadiusLarge:i,boxShadowFocus:`0 0 0 2px ${Qe(l,{alpha:.2})}`})}const Rt={name:"Switch",common:He,self:Ct},$t=de({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:xt("Log").localeRef}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-log-loader`},s(Le,{clsPrefix:e,strokeWidth:24,scale:.85}),s("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),Pe=Je("n-log"),St=de({props:{line:{type:String,default:""}},setup(e){const{trimRef:l,highlightRef:a,languageRef:i,mergedHljsRef:c}=Ce(Pe),x=M(null),y=O(()=>l.value?e.line.trim():e.line);function h(){x.value&&(x.value.innerHTML=H(i.value,y.value))}function H(p,B){const{value:v}=c;return v&&p&&v.getLanguage(p)?v.highlight(B,{language:p}).value:B}return Me(()=>{a.value&&h()}),je(ce(e,"line"),()=>{a.value&&h()}),{highlight:a,selfRef:x,maybeTrimmedLines:y}},render(){const{highlight:e,maybeTrimmedLines:l}=this;return s("pre",{ref:"selfRef"},e?null:l)}}),Bt=ne("log",`
 position: relative;
 box-sizing: border-box;
 transition: border-color .3s var(--n-bezier);
`,[ie("pre",`
 white-space: pre-wrap;
 word-break: break-word;
 margin: 0;
 `),ne("log-loader",`
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 box-sizing: border-box;
 position: absolute;
 right: 16px;
 top: 8px;
 height: 34px;
 border-radius: 17px;
 line-height: 34px;
 white-space: nowrap;
 overflow: hidden;
 border: var(--n-loader-border);
 color: var(--n-loader-text-color);
 background-color: var(--n-loader-color);
 font-size: var(--n-loader-font-size);
 `,[ft(),r("content",`
 display: inline-block;
 vertical-align: bottom;
 line-height: 34px;
 padding-left: 40px;
 padding-right: 20px;
 white-space: nowrap;
 `),ne("base-loading",`
 color: var(--n-loading-color);
 position: absolute;
 left: 12px;
 top: calc(50% - 10px);
 font-size: 20px;
 width: 20px;
 height: 20px;
 display: inline-block;
 `)])]),Tt=Object.assign(Object.assign({},ue.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),zt=de({name:"Log",props:Tt,setup(e){const{mergedClsPrefixRef:l,inlineThemeDisabled:a}=Fe(e),i=M(!1),c=O(()=>e.language!==void 0),x=O(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),y=O(()=>{const{log:d}=e;return d?d.split(`
`):e.lines}),h=M(null),H=ue("Log","-log",Bt,kt,e,l);function p(d){const b=d.target,z=b.firstElementChild;if(i.value){$e(()=>{i.value=!1});return}const V=b.offsetHeight,_=b.scrollTop,$=z.offsetHeight,n=_,F=$-_-V;if(n<=e.offsetTop){const{onReachTop:C,onRequireMore:f}=e;f&&f("top"),C&&C()}if(F<=e.offsetBottom){const{onReachBottom:C,onRequireMore:f}=e;f&&f("bottom"),C&&C()}}const B=gt(v,300);function v(d){if(i.value){$e(()=>{i.value=!1});return}if(h.value){const{containerRef:b,contentRef:z}=h.value;if(b&&z){const V=b.offsetHeight,_=b.scrollTop,$=z.offsetHeight,n=_,F=$-_-V,C=d.deltaY;if(n===0&&C<0){const{onRequireMore:f}=e;f&&f("top")}if(F<=0&&C>0){const{onRequireMore:f}=e;f&&f("bottom")}}}}function o(d){const{value:b}=h;if(!b)return;const{silent:z,top:V,position:_}=d;z&&(i.value=!0),V!==void 0?b.scrollTo({left:0,top:V}):(_==="bottom"||_==="top")&&b.scrollTo({position:_})}function k(d=!1){Se("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),o({position:"top",silent:d})}function T(d=!1){Se("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),o({position:"bottom",silent:d})}Re(Pe,{languageRef:ce(e,"language"),mergedHljsRef:Ue(e),trimRef:ce(e,"trim"),highlightRef:c});const Z={scrollTo:o},G=O(()=>{const{self:{loaderFontSize:d,loaderTextColor:b,loaderColor:z,loaderBorder:V,loadingColor:_},common:{cubicBezierEaseInOut:$}}=H.value;return{"--n-bezier":$,"--n-loader-font-size":d,"--n-loader-border":V,"--n-loader-color":z,"--n-loader-text-color":b,"--n-loading-color":_}}),j=a?Ne("log",void 0,G,e):void 0;return Object.assign(Object.assign({},Z),{mergedClsPrefix:l,scrollbarRef:h,mergedTheme:H,styleHeight:x,mergedLines:y,scrollToTop:k,scrollToBottom:T,handleWheel:B,handleScroll:p,cssVars:a?void 0:G,themeClass:j==null?void 0:j.themeClass,onRender:j==null?void 0:j.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:l,onRender:a}=this;return a==null||a(),s("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[s(Ze,{ref:"scrollbarRef",theme:l.peers.Scrollbar,themeOverrides:l.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>s(qe,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:l.peers.Code,themeOverrides:l.peerOverrides.Code},{default:()=>this.mergedLines.map((i,c)=>s(St,{key:c,line:i}))})}),s(et,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?s($t,{clsPrefix:e}):null})])}}),Vt=ne("switch",`
 height: var(--n-height);
 min-width: var(--n-width);
 vertical-align: middle;
 user-select: none;
 -webkit-user-select: none;
 display: inline-flex;
 outline: none;
 justify-content: center;
 align-items: center;
`,[r("children-placeholder",`
 height: var(--n-rail-height);
 display: flex;
 flex-direction: column;
 overflow: hidden;
 pointer-events: none;
 visibility: hidden;
 `),r("rail-placeholder",`
 display: flex;
 flex-wrap: none;
 `),r("button-placeholder",`
 width: calc(1.75 * var(--n-rail-height));
 height: var(--n-rail-height);
 `),ne("base-loading",`
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translateX(-50%) translateY(-50%);
 font-size: calc(var(--n-button-width) - 4px);
 color: var(--n-loading-color);
 transition: color .3s var(--n-bezier);
 `,[Be({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),r("checked, unchecked",`
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 box-sizing: border-box;
 position: absolute;
 white-space: nowrap;
 top: 0;
 bottom: 0;
 display: flex;
 align-items: center;
 line-height: 1;
 `),r("checked",`
 right: 0;
 padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),r("unchecked",`
 left: 0;
 justify-content: flex-end;
 padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),ie("&:focus",[r("rail",`
 box-shadow: var(--n-box-shadow-focus);
 `)]),I("round",[r("rail","border-radius: calc(var(--n-rail-height) / 2);",[r("button","border-radius: calc(var(--n-button-height) / 2);")])]),Te("disabled",[Te("icon",[I("rubber-band",[I("pressed",[r("rail",[r("button","max-width: var(--n-button-width-pressed);")])]),r("rail",[ie("&:active",[r("button","max-width: var(--n-button-width-pressed);")])]),I("active",[I("pressed",[r("rail",[r("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),r("rail",[ie("&:active",[r("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),I("active",[r("rail",[r("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),r("rail",`
 overflow: hidden;
 height: var(--n-rail-height);
 min-width: var(--n-rail-width);
 border-radius: var(--n-rail-border-radius);
 cursor: pointer;
 position: relative;
 transition:
 opacity .3s var(--n-bezier),
 background .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 background-color: var(--n-rail-color);
 `,[r("button-icon",`
 color: var(--n-icon-color);
 transition: color .3s var(--n-bezier);
 font-size: calc(var(--n-button-height) - 4px);
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 display: flex;
 justify-content: center;
 align-items: center;
 line-height: 1;
 `,[Be()]),r("button",`
 align-items: center; 
 top: var(--n-offset);
 left: var(--n-offset);
 height: var(--n-button-height);
 width: var(--n-button-width-pressed);
 max-width: var(--n-button-width);
 border-radius: var(--n-button-border-radius);
 background-color: var(--n-button-color);
 box-shadow: var(--n-button-box-shadow);
 box-sizing: border-box;
 cursor: inherit;
 content: "";
 position: absolute;
 transition:
 background-color .3s var(--n-bezier),
 left .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 max-width .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 `)]),I("active",[r("rail","background-color: var(--n-rail-color-active);")]),I("loading",[r("rail",`
 cursor: wait;
 `)]),I("disabled",[r("rail",`
 cursor: not-allowed;
 opacity: .5;
 `)])]),Ht=Object.assign(Object.assign({},ue.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let oe;const Lt=de({name:"Switch",props:Ht,setup(e){oe===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?oe=CSS.supports("width","max(1px)"):oe=!1:oe=!0);const{mergedClsPrefixRef:l,inlineThemeDisabled:a}=Fe(e),i=ue("Switch","-switch",Vt,Rt,e,l),c=tt(e),{mergedSizeRef:x,mergedDisabledRef:y}=c,h=M(e.defaultValue),H=ce(e,"value"),p=ot(H,h),B=O(()=>p.value===e.checkedValue),v=M(!1),o=M(!1),k=O(()=>{const{railStyle:n}=e;if(n)return n({focused:o.value,checked:B.value})});function T(n){const{"onUpdate:value":F,onChange:C,onUpdateValue:f}=e,{nTriggerFormInput:N,nTriggerFormChange:g}=c;F&&ye(F,n),f&&ye(f,n),C&&ye(C,n),h.value=n,N(),g()}function Z(){const{nTriggerFormFocus:n}=c;n()}function G(){const{nTriggerFormBlur:n}=c;n()}function j(){e.loading||y.value||(p.value!==e.checkedValue?T(e.checkedValue):T(e.uncheckedValue))}function d(){o.value=!0,Z()}function b(){o.value=!1,G(),v.value=!1}function z(n){e.loading||y.value||n.key===" "&&(p.value!==e.checkedValue?T(e.checkedValue):T(e.uncheckedValue),v.value=!1)}function V(n){e.loading||y.value||n.key===" "&&(n.preventDefault(),v.value=!0)}const _=O(()=>{const{value:n}=x,{self:{opacityDisabled:F,railColor:C,railColorActive:f,buttonBoxShadow:N,buttonColor:g,boxShadowFocus:fe,loadingColor:U,textColor:q,iconColor:ge,[X("buttonHeight",n)]:P,[X("buttonWidth",n)]:me,[X("buttonWidthPressed",n)]:be,[X("railHeight",n)]:E,[X("railWidth",n)]:K,[X("railBorderRadius",n)]:S,[X("buttonBorderRadius",n)]:pe},common:{cubicBezierEaseInOut:ve}}=i.value;let ee,te,_e;return oe?(ee=`calc((${E} - ${P}) / 2)`,te=`max(${E}, ${P})`,_e=`max(${K}, calc(${K} + ${P} - ${E}))`):(ee=xe((D(E)-D(P))/2),te=xe(Math.max(D(E),D(P))),_e=D(E)>D(P)?K:xe(D(K)+D(P)-D(E))),{"--n-bezier":ve,"--n-button-border-radius":pe,"--n-button-box-shadow":N,"--n-button-color":g,"--n-button-width":me,"--n-button-width-pressed":be,"--n-button-height":P,"--n-height":te,"--n-offset":ee,"--n-opacity-disabled":F,"--n-rail-border-radius":S,"--n-rail-color":C,"--n-rail-color-active":f,"--n-rail-height":E,"--n-rail-width":K,"--n-width":_e,"--n-box-shadow-focus":fe,"--n-loading-color":U,"--n-text-color":q,"--n-icon-color":ge}}),$=a?Ne("switch",O(()=>x.value[0]),_,e):void 0;return{handleClick:j,handleBlur:b,handleFocus:d,handleKeyup:z,handleKeydown:V,mergedRailStyle:k,pressed:v,mergedClsPrefix:l,mergedValue:p,checked:B,mergedDisabled:y,cssVars:a?void 0:_,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:l,checked:a,mergedRailStyle:i,onRender:c,$slots:x}=this;c==null||c();const{checked:y,unchecked:h,icon:H,"checked-icon":p,"unchecked-icon":B}=x,v=!(we(H)&&we(p)&&we(B));return s("div",{role:"switch","aria-checked":a,class:[`${e}-switch`,this.themeClass,v&&`${e}-switch--icon`,a&&`${e}-switch--active`,l&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},s("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:i},Y(y,o=>Y(h,k=>o||k?s("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},s("div",{class:`${e}-switch__rail-placeholder`},s("div",{class:`${e}-switch__button-placeholder`}),o),s("div",{class:`${e}-switch__rail-placeholder`},s("div",{class:`${e}-switch__button-placeholder`}),k)):null)),s("div",{class:`${e}-switch__button`},Y(H,o=>Y(p,k=>Y(B,T=>s(nt,null,{default:()=>this.loading?s(Le,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(k||o)?s("div",{class:`${e}-switch__button-icon`,key:k?"checked-icon":"icon"},k||o):!this.checked&&(T||o)?s("div",{class:`${e}-switch__button-icon`,key:T?"unchecked-icon":"icon"},T||o):null})))),Y(y,o=>o&&s("div",{key:"checked",class:`${e}-switch__checked`},o)),Y(h,o=>o&&s("div",{key:"unchecked",class:`${e}-switch__unchecked`},o)))))}});var Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});const le=he,Mt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},jt=(0,le.createElementVNode)("g",{fill:"none"},[(0,le.createElementVNode)("path",{d:"M10.5 3l6.043.002l.085.015l.063.02l.076.04l.055.04l.06.06l.03.038l.041.074l.03.083l.015.082L17 3.5v6a.5.5 0 0 1-.992.09L16 9.5V4.706L4.706 16H9.5a.5.5 0 0 1 .492.41l.008.09a.5.5 0 0 1-.41.492L9.5 17H3.48l-.069-.008l-.102-.03l-.076-.04l-.055-.04l-.06-.06l-.03-.037l-.041-.074l-.03-.083l-.006-.023A.499.499 0 0 1 3 16.5l.005.074l-.003-.031L3 10.5a.5.5 0 0 1 .992-.09L4 10.5v4.792L15.292 4H10.5a.5.5 0 0 1-.492-.41L10 3.5a.5.5 0 0 1 .5-.5z",fill:"currentColor"})],-1),Ft=[jt];var Nt=Ee.default=(0,le.defineComponent)({name:"ArrowMaximize20Regular",render:function(l,a){return(0,le.openBlock)(),(0,le.createElementBlock)("svg",Mt,Ft)}}),Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});const ae=he,Pt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},Et=(0,ae.createElementVNode)("g",{fill:"none"},[(0,ae.createElementVNode)("path",{d:"M10.5 8.826l.874.998a.5.5 0 0 0 .752-.658l-1.75-2a.5.5 0 0 0-.752 0l-1.75 2a.5.5 0 0 0 .752.658l.874-.998v3.679a.5.5 0 0 0 1 0v-3.68zM4 16a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4zm-1-2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9h-3.834a1.495 1.495 0 0 0-.287-.493L12.435 8H17V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v2h4.565l-.444.507c-.13.15-.226.317-.287.493H3v5z",fill:"currentColor"})],-1),Ot=[Et];var It=Oe.default=(0,ae.defineComponent)({name:"PanelTopContract20Regular",render:function(l,a){return(0,ae.openBlock)(),(0,ae.createElementBlock)("svg",Pt,Ot)}}),Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});const re=he,Dt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},Wt=(0,re.createElementVNode)("g",{fill:"none"},[(0,re.createElementVNode)("path",{d:"M10.5 11.174l.874-.998a.5.5 0 0 1 .752.658l-1.75 2a.5.5 0 0 1-.752 0l-1.75-2a.5.5 0 1 1 .752-.658l.874.998V7.495a.5.5 0 0 1 1 0v3.68zM4 16a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4zm-1-2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9h-5.5V8H17V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v2h5.5v1H3v5z",fill:"currentColor"})],-1),At=[Wt];var Ut=Ie.default=(0,re.defineComponent)({name:"PanelTopExpand20Regular",render:function(l,a){return(0,re.openBlock)(),(0,re.createElementBlock)("svg",Dt,At)}}),De={};Object.defineProperty(De,"__esModule",{value:!0});const se=he,qt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Kt=(0,se.createElementVNode)("path",{d:"M392 432H120a40 40 0 0 1-40-40V120a40 40 0 0 1 40-40h272a40 40 0 0 1 40 40v272a40 40 0 0 1-40 40z",fill:"currentColor"},null,-1),Yt=[Kt];var Xt=De.default=(0,se.defineComponent)({name:"Stop",render:function(l,a){return(0,se.openBlock)(),(0,se.createElementBlock)("svg",qt,Yt)}});const Gt={class:"home-container"},Qt=["rowspan"],Jt={key:1},Zt={colspan:2},eo={class:"action-container"},to={class:"scroll-container"},oo={key:0,class:"scroll-label"},no={__name:"Log",setup(e){it(N=>({"55f59a8a":t($)}));const l=mt(),{log:a,log_mobile:i,running:c,log_lines:x,task_list:y,waiting:h,get_task_id:H,sc_uri:p}=Ve(l),{get_tasks:B}=l,v=Ce("axios"),o=Ce("mobile"),k=M(!0);function T(){$e(()=>{var N;(N=document.querySelector("pre:last-child"))==null||N.scrollIntoView()})}function Z(){k.value&&T()}je(()=>[a,y],()=>{Z()},{deep:!0}),Me(()=>{B()}),at(()=>{clearTimeout(H.value)});function G(){c.value=!0,x.value=[],v.get("/start"),B()}function j(){h.value=!0,v.get("/stop").then(N=>{c.value=!N.data,h.value=!1})}const d=M(!0),b=M(!1),z=M(!0);Re("show_task",b),Re("add_task",z);const V=bt(),{conf:_}=Ve(V),$=O(()=>_.value.theme=="light"?.2:.3);function n(){v.get("/stop-maa")}const F=[{label:"停止Maa",key:"maa"}];function C(){document.documentElement.requestFullscreen()}const f=M(!0);return(N,g)=>{const fe=_t,U=ut,q=st,ge=wt,P=zt,me=Ke,be=Ye,E=We,K=Lt;return m(),L("div",Gt,[g[7]||(g[7]=u("div",{class:"log-bg"},null,-1)),t(f)?(m(),A(fe,{key:0,"preview-disabled":"",width:"100%",class:"sc",src:t(p)==""?"/black.jpg":t(p),"object-fit":"scale-down"},null,8,["src"])):W("",!0),R(ge,{class:"task-table",size:"small","single-line":!1},{default:w(()=>[u("thead",{onClick:g[0]||(g[0]=S=>f.value=!t(f))},g[4]||(g[4]=[u("tr",null,[u("th",null,"时间"),u("th",{colspan:2},"任务")],-1)])),ct(u("tbody",null,[(m(!0),L(Q,null,ze(t(y),S=>(m(),L(Q,null,[Object.keys(S.plan).length?(m(!0),L(Q,{key:0},ze(S.plan,(pe,ve,ee)=>(m(),L("tr",null,[ee==0?(m(),L("td",{key:0,rowspan:Object.keys(S.plan).length},J(S.time.split("T")[1].split(".")[0]),9,Qt)):W("",!0),u("td",null,J(ve),1),u("td",null,J(pe.map(te=>te||"_").join(", ")),1)]))),256)):(m(),L("tr",Jt,[u("td",null,J(S.time.split("T")[1].split(".")[0]),1),u("td",Zt,J(S.meta_data)+J(S.type.display_value),1)]))],64))),256))],512),[[dt,!t(o)||t(d)]]),t(o)?(m(),A(q,{key:0,class:"toggle-table-collapse-btn",size:"small",onClick:g[1]||(g[1]=S=>d.value=!t(d)),focusable:!1},{icon:w(()=>[R(U,null,{default:w(()=>[t(d)?(m(),A(t(It),{key:0})):(m(),A(t(Ut),{key:1}))]),_:1})]),_:1})):W("",!0),t(o)?(m(),A(q,{key:1,class:"toggle-fullscreen-btn",size:"small",onClick:C,focusable:!1},{icon:w(()=>[R(U,null,{default:w(()=>[R(t(Nt))]),_:1})]),_:1})):W("",!0)]),_:1}),R(P,{class:"log",log:t(o)?t(i):t(a),language:"mower",style:{"user-select":"text"}},null,8,["log"]),u("div",eo,[t(c)?(m(),A(me,{key:0,select:n,options:F,type:"error",up:!0},{default:w(()=>[R(q,{type:"error",onClick:j,loading:t(h),disabled:t(h)},{icon:w(()=>[R(U,null,{default:w(()=>[R(t(Xt))]),_:1})]),default:w(()=>[t(o)?W("",!0):(m(),L(Q,{key:0},[ke("立即停止")],64))]),_:1},8,["loading","disabled"])]),_:1})):(m(),A(q,{key:1,type:"primary",onClick:G,loading:t(h),disabled:t(h)},{icon:w(()=>[R(U,null,{default:w(()=>[R(t(pt))]),_:1})]),default:w(()=>[t(o)?W("",!0):(m(),L(Q,{key:0},[ke("开始执行")],64))]),_:1},8,["loading","disabled"])),R(be),R(q,{type:"warning",onClick:g[2]||(g[2]=S=>b.value=!0)},{icon:w(()=>[R(U,null,{default:w(()=>[R(t(vt))]),_:1})]),default:w(()=>[t(o)?W("",!0):(m(),L(Q,{key:0},[ke("新增任务")],64))]),_:1}),t(o)?W("",!0):(m(),A(E,{key:2},{default:w(()=>g[5]||(g[5]=[u("div",null,"目前只糊了一个勉强能用的版本，其他功能敬请期待",-1),u("div",null,"只开放了空任务/专精任务",-1),u("div",null,"只能增，不能删！！谨慎填写任务",-1),u("div",null,"如果 mower 休息到 00:30，新增的 00:15 的任务是不会被执行的，因为此时在休息",-1),u("div",null,"所以最好在 00:00 mower运行的时候添加 00:15 的任务了，考验手速的时候到了",-1),u("div",null,"空任务，请确保任务房间名字，干员数量正确（没有判定）",-1),u("div",null,"专精任务，UI有详细说明；新增完毕，UI上面的表会实时反馈",-1),u("div",null,"在Q群或者频道提以上问题，看心情踢人",-1)])),_:1})),g[6]||(g[6]=u("div",{class:"expand"},null,-1)),u("div",to,[R(K,{value:t(k),"onUpdate:value":g[3]||(g[3]=S=>rt(k)?k.value=S:null)},null,8,["value"]),t(o)?W("",!0):(m(),L("span",oo,"自动滚动"))])])])}}},ko=lt(no,[["__scopeId","data-v-c4feeca6"]]);export{ko as default};
