From 381a133a5aabb4bc36b1c3f0db4faeb7cddfd307 Mon Sep 17 00:00:00 2001 From: EightyDollars Date: Fri, 6 Dec 2024 00:52:58 +0800 Subject: [PATCH 01/30] =?UTF-8?q?=E5=8F=B3=E6=BB=91=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E5=90=91=E4=B8=8A=E6=BB=91=E4=B8=80=E4=B8=8B&fix:=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=BB=91=E5=8A=A8=E6=98=AF=E5=90=A6=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/infra/base_choose.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/mower/solvers/infra/base_choose.py b/mower/solvers/infra/base_choose.py index 1bc375d..8451a76 100644 --- a/mower/solvers/infra/base_choose.py +++ b/mower/solvers/infra/base_choose.py @@ -84,11 +84,9 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): return if self.tmp_swipe: - logger.debug( - f"tmp_swipe:{self.tmp_swipe[-1][1][0][0]}, {agents[-1][1][0][0]}" - ) if self.tmp_swipe[-1][0] == agents[-1][0]: - if abs(self.tmp_swipe[-1][1][0][0] - agents[-1][1][0][0]) > 30: + if self.tmp_swipe[-1][1][0][0] != agents[-1][1][0][0]: + logger.debug(f"滑动未停: {self.tmp_swipe[-1]}, {agents[-1]}") self.tmp_swipe = agents return self.tmp_swipe = None @@ -138,13 +136,11 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): # 右滑 self.before_swipe = agents - self.tmp_swipe = self.swipe_update( - [(1000, 540), (-2500, 0)], - [600], - self.interval, - interval=self.interval, - func=operator_room_select, + self.swipe_update( + [(1000, 540), (-2500, 0)], [500], self.interval, interval=self.interval ) + self.swipe_update([(1000, 540), (1000, 500)], [10], 0, interval=self.interval) + self.tmp_swipe = operator_room_select(config.recog.img) logger.debug(f"右滑 {self.before_swipe},{self.tmp_swipe}") if self.tmp_swipe: if self.tmp_swipe[-1][0] == self.before_swipe[-1][0]: @@ -171,7 +167,7 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): [scope[0][0] + 1, scope[1][1] + 213], ], )[0][0][0] - logger.debug(f"is_choosed: {up_pt}{down_pt}") + logger.debug(f"is_choosed: {up_pt},{down_pt}") if (up_pt < 50) and down_pt < 50: return True return False From d63942efa2e517dba3d4aa4f00dc2f0d410eee99 Mon Sep 17 00:00:00 2001 From: EightyDollars Date: Fri, 6 Dec 2024 01:39:40 +0800 Subject: [PATCH 02/30] =?UTF-8?q?fix:=E5=88=A4=E6=96=AD=E6=88=98=E6=96=97?= =?UTF-8?q?=E9=80=89=E4=BA=BAs=E6=BB=91=E5=8A=A8=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=81=9C=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/fight/battle_choose/battle_agent_choose.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mower/solvers/fight/battle_choose/battle_agent_choose.py b/mower/solvers/fight/battle_choose/battle_agent_choose.py index 1ccf13c..c4dca57 100644 --- a/mower/solvers/fight/battle_choose/battle_agent_choose.py +++ b/mower/solvers/fight/battle_choose/battle_agent_choose.py @@ -62,7 +62,7 @@ class BattleAgentChooseSolver(SceneGraphSolver): f"tmp_swipe:{self.tmp_swipe[-1][1][0][0]}, {agents[-1][1][0][0]}" ) if self.tmp_swipe[-1][0] == agents[-1][0]: - if abs(self.tmp_swipe[-1][1][0][0] - agents[-1][1][0][0]) > 30: + if self.tmp_swipe[-1][1][0][0] != agents[-1][1][0][0]: self.tmp_swipe = agents return self.tmp_swipe = None @@ -121,13 +121,14 @@ class BattleAgentChooseSolver(SceneGraphSolver): # 右滑 self.before_swipe = agents - self.tmp_swipe = self.swipe_update( + self.swipe_update( [(1000, 540), (-2500, 0)], [600], self.interval, interval=self.interval, - func=operator_team_select, ) + + self.tmp_swipe = operator_team_select(config.recog.img) logger.debug(f"右滑 {self.before_swipe},{self.tmp_swipe}") if self.tmp_swipe: if self.tmp_swipe[-1][0] == self.before_swipe[-1][0]: From 0f36631d86b4a8d13104ae60157f6cdcebe88511 Mon Sep 17 00:00:00 2001 From: zhbaor Date: Fri, 6 Dec 2024 17:11:04 +0800 Subject: [PATCH 03/30] =?UTF-8?q?swipe=5Fupdate=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/device/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mower/utils/device/device.py b/mower/utils/device/device.py index a2564c3..0b6c630 100644 --- a/mower/utils/device/device.py +++ b/mower/utils/device/device.py @@ -150,7 +150,7 @@ class Device: Any: func的返回值 """ logger.debug(f"{points=} {durations=} {update=} {interval=} {func=}") - self.control.swipe_ext(points, durations, update, interval, func) + return self.control.swipe_ext(points, durations, update, interval, func) def check_current_focus(self) -> bool: """check if the application is in the foreground""" From 30afa2f919141c31bf21cef52dbab23a56d565fe Mon Sep 17 00:00:00 2001 From: zhbaor Date: Fri, 6 Dec 2024 18:49:26 +0800 Subject: [PATCH 04/30] =?UTF-8?q?scrcpy=E5=86=85=E7=BD=AE0.1s=E5=BB=B6?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/device/method/scrcpy/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mower/utils/device/method/scrcpy/core.py b/mower/utils/device/method/scrcpy/core.py index 9c2280d..0cc80f4 100644 --- a/mower/utils/device/method/scrcpy/core.py +++ b/mower/utils/device/method/scrcpy/core.py @@ -95,6 +95,7 @@ class Client: @retry_scrcpy def capture_display(self): + time.sleep(0.1) while not self.frame_queue.empty(): self.frame_queue.get() frame = self.frame_queue.get(timeout=5) From f59277a4ee5868c1d45c84380807082f09e97d58 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Fri, 6 Dec 2024 18:58:07 +0800 Subject: [PATCH 05/30] =?UTF-8?q?mumuipc=E8=A7=A6=E6=8E=A7=E4=BC=98?= =?UTF-8?q?=E5=8C=96(=E9=80=89=E4=BA=BA=E4=B8=8D=E8=A1=8C=EF=BC=8C?= =?UTF-8?q?=E5=88=AB=E7=94=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/device/method/mumu_ipc.py | 58 ++++++++++++++------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/mower/utils/device/method/mumu_ipc.py b/mower/utils/device/method/mumu_ipc.py index f3f52c1..1d3293b 100644 --- a/mower/utils/device/method/mumu_ipc.py +++ b/mower/utils/device/method/mumu_ipc.py @@ -14,12 +14,20 @@ from mower.utils.device.emulator import restart_emulator from mower.utils.device.exception import EmulatorError, GameError from mower.utils.device.method.mumumanager import MuMuManager from mower.utils.log import logger +from mower.utils.vector import sm, va class NemuIpcIncompatible(Exception): pass +def recog_start(func: Callable[[tp.Image], Any] = lambda _: None): + time.sleep(0.1) + config.recog.update() + global swipe_update_result + swipe_update_result = func(config.recog.img) + + def retry_mumuipc(func): @wraps(func) def retry_wrapper(self, *args, **kwargs): @@ -234,7 +242,7 @@ class MuMu12IPC: def finger_touch_down(self, finger_id: int, x: int, y: int): self.check_status() result = self.external_renderer.nemu_input_event_finger_touch_down( - self.connection, self.display_id, finger_id, x, y + self.connection, self.display_id, finger_id, int(1080 - y), int(x) ) if result != 0: self.connection = 0 @@ -300,42 +308,36 @@ class MuMu12IPC: interval (float): 滑动完成后的等待时间,单位为秒,默认 0 func (Callable[[np.ndarray], Any]): 截图后处理的函数,默认空函数 """ - frame_time = 1 / 30 # 模拟帧率为 30 FPS - steps = max(int(duration / frame_time), 1) # 计算滑动的总步数 - time_per_step = duration / steps # 每步所需时间 + frame_time = 1 / 30 - # 可选截图功能 - if update: - initial_image = self.capture_display() # 截图 - thread = threading.Thread(target=func, args=(initial_image,)) + start_time = time.perf_counter() + fall and self.touch_down(x0, y0) + + if update and config.recog: + thread = threading.Thread(target=recog_start, args=(func,)) thread.start() - # 按下起点 - if fall: - self.touch_down(x0, y0) + if (down_time := time.perf_counter()) < start_time + frame_time: + time.sleep(start_time + frame_time - down_time) + down_time = start_time + frame_time - # 滑动过程 - for step in range(steps): - progress = (step + 1) / steps - x = int(x0 + (x1 - x0) * progress) - y = int(y0 + (y1 - y0) * progress) - - # 确保每步保持固定帧时间 - step_start = time.perf_counter() + while (progress := (time.perf_counter() - down_time) / duration) <= 1: + x, y = va(sm(1 - progress, (x0, y0)), sm(progress, (x1, y1))) + start_time = time.perf_counter() self.touch_down(x, y) - elapsed = time.perf_counter() - step_start - if elapsed < time_per_step: - time.sleep(time_per_step - elapsed) + if (move_time := time.perf_counter() - start_time) < frame_time: + time.sleep(frame_time - move_time) + self.touch_down(x1, y1) - # 到达终点 - if lift: - self.touch_up() + lift and self.touch_up() - # 等待截图线程完成 - if update: + if update and config.recog: + start_time = time.perf_counter() thread.join() + if (stop_time := time.perf_counter()) < start_time + interval: + time.sleep(start_time + interval - stop_time) + return swipe_update_result - # 滑动完成后的等待时间 if interval > 0: time.sleep(interval) From b27187cc573e27ee673acbefca23fef34d4cd7c2 Mon Sep 17 00:00:00 2001 From: zhbaor Date: Fri, 6 Dec 2024 19:08:27 +0800 Subject: [PATCH 06/30] =?UTF-8?q?swipe=5Fupdate=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/device/method/mumu_ipc.py | 12 +++--------- mower/utils/device/method/scrcpy/core.py | 18 +++--------------- mower/utils/device/swipe_update.py | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 24 deletions(-) create mode 100644 mower/utils/device/swipe_update.py diff --git a/mower/utils/device/method/mumu_ipc.py b/mower/utils/device/method/mumu_ipc.py index 1d3293b..d8a50c6 100644 --- a/mower/utils/device/method/mumu_ipc.py +++ b/mower/utils/device/method/mumu_ipc.py @@ -10,6 +10,7 @@ import numpy as np from mower.utils import config from mower.utils import typealias as tp from mower.utils.csleep import MowerExit +from mower.utils.device import swipe_update from mower.utils.device.emulator import restart_emulator from mower.utils.device.exception import EmulatorError, GameError from mower.utils.device.method.mumumanager import MuMuManager @@ -21,13 +22,6 @@ class NemuIpcIncompatible(Exception): pass -def recog_start(func: Callable[[tp.Image], Any] = lambda _: None): - time.sleep(0.1) - config.recog.update() - global swipe_update_result - swipe_update_result = func(config.recog.img) - - def retry_mumuipc(func): @wraps(func) def retry_wrapper(self, *args, **kwargs): @@ -314,7 +308,7 @@ class MuMu12IPC: fall and self.touch_down(x0, y0) if update and config.recog: - thread = threading.Thread(target=recog_start, args=(func,)) + thread = threading.Thread(target=swipe_update.start, args=(func,)) thread.start() if (down_time := time.perf_counter()) < start_time + frame_time: @@ -336,7 +330,7 @@ class MuMu12IPC: thread.join() if (stop_time := time.perf_counter()) < start_time + interval: time.sleep(start_time + interval - stop_time) - return swipe_update_result + return swipe_update.result if interval > 0: time.sleep(interval) diff --git a/mower/utils/device/method/scrcpy/core.py b/mower/utils/device/method/scrcpy/core.py index 0cc80f4..bd37913 100644 --- a/mower/utils/device/method/scrcpy/core.py +++ b/mower/utils/device/method/scrcpy/core.py @@ -1,5 +1,3 @@ -from __future__ import annotations - import socket import struct import threading @@ -14,6 +12,7 @@ from adbutils import AdbConnection, Network from mower.utils import config from mower.utils import typealias as tp from mower.utils.csleep import MowerExit +from mower.utils.device import swipe_update from mower.utils.device.method.adb import ADB from mower.utils.device.method.adb.const import KeyCode from mower.utils.log import logger @@ -27,16 +26,6 @@ SCR_PATH = "/data/local/tmp/scrcpy-server.jar" SCR_VER = "3.0.2" -swipe_update_result = None - - -def recog_start(func: Callable[[tp.Image], Any] = lambda _: None): - time.sleep(0.1) - config.recog.update() - global swipe_update_result - swipe_update_result = func(config.recog.img) - - def retry_scrcpy(func): @wraps(func) def retry_wrapper(self, *args, **kwargs): @@ -95,7 +84,6 @@ class Client: @retry_scrcpy def capture_display(self): - time.sleep(0.1) while not self.frame_queue.empty(): self.frame_queue.get() frame = self.frame_queue.get(timeout=5) @@ -239,7 +227,7 @@ class Client: fall and self.control.touch(x0, y0, const.ACTION_DOWN) if update and config.recog: - thread = threading.Thread(target=recog_start, args=(func,)) + thread = threading.Thread(target=swipe_update.start, args=(func,)) thread.start() if (down_time := time.perf_counter()) < start_time + frame_time: @@ -261,7 +249,7 @@ class Client: thread.join() if (stop_time := time.perf_counter()) < start_time + interval: time.sleep(start_time + interval - stop_time) - return swipe_update_result + return swipe_update.result if interval > 0: time.sleep(interval) diff --git a/mower/utils/device/swipe_update.py b/mower/utils/device/swipe_update.py new file mode 100644 index 0000000..fcd7a7a --- /dev/null +++ b/mower/utils/device/swipe_update.py @@ -0,0 +1,17 @@ +import time +from typing import Any, Callable + +from mower.utils import config +from mower.utils import typealias as tp + +result = None + + +def start(func: Callable[[tp.Image], Any] = lambda _: None): + if config.conf.screencap_strategy == "scrcpy": + time.sleep(config.conf.screenshot_interval / 500) + else: + time.sleep(0.1) + config.recog.update() + global result + result = func(config.recog.img) From 28243b0e1fe35e048ed1ae9181156c3bc48fd998 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Fri, 6 Dec 2024 22:01:57 +0800 Subject: [PATCH 07/30] =?UTF-8?q?=E8=AF=BB=E5=8F=96conf=E6=97=B6=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E4=B8=8D=E5=AF=B9=E7=9A=84Literal=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/config/conf.py | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/mower/utils/config/conf.py b/mower/utils/config/conf.py index 8f65114..b11ab98 100644 --- a/mower/utils/config/conf.py +++ b/mower/utils/config/conf.py @@ -1,4 +1,4 @@ -from typing import Literal +from typing import Literal, get_args, get_origin from pydantic import BaseModel, model_validator from pydantic_core import PydanticUndefined @@ -14,6 +14,30 @@ class ConfModel(BaseModel): data[name] = field.annotation() else: data[name] = field.default + else: + value = data[name] + expected_type = field.annotation + + # 处理嵌套的 BaseModel + if isinstance(field.annotation, type) and issubclass( + field.annotation, BaseModel + ): + if not isinstance(value, dict): # 确保嵌套类型为字典 + value = {} + # 递归调用嵌套模型的验证器 + data[name] = field.annotation(**value) + + # 检查 Literal 类型并修正 + elif get_origin(expected_type) is Literal: + valid_literals = get_args(expected_type) + if value not in valid_literals: + # 修正为默认值 + data[name] = ( + field.default + if field.default is not PydanticUndefined + else None + ) + return data From 389c1834b4c0ee278b5b1d732ac297f9e503cf0e Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sat, 7 Dec 2024 10:27:10 +0800 Subject: [PATCH 08/30] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/config/__init__.py | 2 +- mower/utils/log.py | 1 + server.py | 24 ++++++ ui/dist/assets/DebugConsole.js | 20 ++--- ui/dist/assets/DropDown.js | 2 +- ui/dist/assets/Image.js | 59 ------------- ui/dist/assets/Log.css | 2 +- ui/dist/assets/Log.js | 42 +++++----- ui/dist/assets/Plan.js | 4 +- ui/dist/assets/Scrollbar.js | 116 +++++++++++++++++++------- ui/dist/assets/Settings.js | 4 +- ui/dist/assets/SlickOperatorSelect.js | 2 +- ui/dist/assets/main.js | 38 ++++----- ui/dist/assets/op_select.js | 2 +- ui/public/black.jpg | Bin 0 -> 2766 bytes ui/src/pages/Log.vue | 95 ++++++++++++--------- ui/src/stores/mower.js | 5 ++ 17 files changed, 233 insertions(+), 185 deletions(-) delete mode 100644 ui/dist/assets/Image.js create mode 100644 ui/public/black.jpg diff --git a/mower/utils/config/__init__.py b/mower/utils/config/__init__.py index 69f6e55..e4c9a5f 100644 --- a/mower/utils/config/__init__.py +++ b/mower/utils/config/__init__.py @@ -110,7 +110,7 @@ operators = {} # 日志 log_queue = Queue() -wh = None +sc_queue = Queue() screenshot_time: datetime = datetime.now() - timedelta( milliseconds=conf.screenshot_interval diff --git a/mower/utils/log.py b/mower/utils/log.py index 3fc88ca..0b6a4e3 100644 --- a/mower/utils/log.py +++ b/mower/utils/log.py @@ -137,3 +137,4 @@ def save_screenshot(img: tp.Image) -> None: filename = f"{time.time_ns()}.jpg" logger.debug(filename) screenshot_queue.put((img, filename)) + config.sc_queue.put(img) diff --git a/server.py b/server.py index b822dee..9119394 100755 --- a/server.py +++ b/server.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +import base64 import json import mimetypes import os @@ -41,6 +42,8 @@ def read_log(): msg = config.log_queue.get() log_lines.append(msg) log_lines = log_lines[-100:] + if not ws_connections: + continue data = json.dumps({"type": "log", "data": msg}) for ws in ws_connections: ws.send(data) @@ -49,6 +52,8 @@ def read_log(): def push_config(): while True: config.push_conf.wait() + if not ws_connections: + continue data = json.dumps( { "type": "conf", @@ -61,8 +66,27 @@ def push_config(): config.push_conf.clear() +def push_sc(): + import cv2 + + from mower.utils.image import img2bytes + + while True: + img = config.sc_queue.get() + if not ws_connections: + continue + img = cv2.resize(img, (480, 270)) + img = img2bytes(img) + img = base64.b64encode(img).decode("utf-8") + img = f"data:image/jpeg;base64,{img}" + data = json.dumps({"type": "sc", "data": img}) + for ws in ws_connections: + ws.send(data) + + Thread(target=read_log, daemon=True).start() Thread(target=push_config, daemon=True).start() +Thread(target=push_sc, daemon=True).start() @sock.route("/ws") diff --git a/ui/dist/assets/DebugConsole.js b/ui/dist/assets/DebugConsole.js index 9f7b5e9..653322c 100644 --- a/ui/dist/assets/DebugConsole.js +++ b/ui/dist/assets/DebugConsole.js @@ -1,4 +1,4 @@ -import{_ as U,a as X}from"./IosArrowForward.js";import{ar as z,as as v,av as C,au as p,a_ as q,bT as A,ay as S,B as O,ax as G,b0 as J,D as Q,b as W,j as L,aC as Y,H as b,z as Z,c as F,bH as ee,r as k,s as oe,w as re,bu as V,bv as i,bt as _,bw as s,bC as H,bD as M,bo as r,F as T,by as N,bE as I,bx as te,i as le,aX as ne,b3 as se,k as ie}from"./_plugin-vue_export-helper.js";import{ak as ae}from"./main.js";import{S as de,_ as ce}from"./Scrollbar.js";import{_ as ue}from"./Flex.js";import{_ as me}from"./Image.js";import{_ as ve}from"./Slider.js";import"./get-slot.js";import"./utils.js";import"./use-locale.js";import"./download.js";const pe=z([v("list",` +import{_ as U,a as X}from"./IosArrowForward.js";import{ar as z,as as v,av as C,au as b,a_ as q,bT as A,ay as S,B as O,ax as G,b0 as J,D as Q,b as W,j as L,aC as Y,H as p,z as Z,c as F,bH as ee,r as k,s as oe,w as re,bu as V,bv as i,bt as _,bw as s,bC as H,bD as M,bo as r,F as T,by as N,bE as I,bx as te,i as le,aX as ne,b3 as se,k as ie}from"./_plugin-vue_export-helper.js";import{ak as ae}from"./main.js";import{S as de,_ as ce,a as ue}from"./Scrollbar.js";import{_ as me}from"./Flex.js";import{_ as ve}from"./Slider.js";import"./utils.js";import"./use-locale.js";import"./download.js";import"./get-slot.js";const be=z([v("list",` --n-merged-border-color: var(--n-border-color); --n-merged-color: var(--n-color); --n-merged-color-hover: var(--n-color-hover); @@ -12,7 +12,7 @@ import{_ as U,a as X}from"./IosArrowForward.js";import{ar as z,as as v,av as C,a list-style-type: none; color: var(--n-text-color); background-color: var(--n-merged-color); - `,[C("show-divider",[v("list-item",[z("&:not(:last-child)",[p("divider",` + `,[C("show-divider",[v("list-item",[z("&:not(:last-child)",[b("divider",` background-color: var(--n-merged-border-color); `)])])]),C("clickable",[v("list-item",` cursor: pointer; @@ -23,13 +23,13 @@ import{_ as U,a as X}from"./IosArrowForward.js";import{ar as z,as as v,av as C,a border-radius: var(--n-border-radius); `,[z("&:hover",` background-color: var(--n-merged-color-hover); - `,[p("divider",` + `,[b("divider",` background-color: transparent; `)])])]),C("bordered, hoverable",[v("list-item",` padding: 12px 20px; - `),p("header, footer",` + `),b("header, footer",` padding: 12px 20px; - `)]),p("header, footer",` + `)]),b("header, footer",` padding: 12px 0; box-sizing: border-box; transition: border-color .3s var(--n-bezier); @@ -45,15 +45,15 @@ import{_ as U,a as X}from"./IosArrowForward.js";import{ar as z,as as v,av as C,a transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[p("prefix",` + `,[b("prefix",` margin-right: 20px; flex: 0; - `),p("suffix",` + `),b("suffix",` margin-left: 20px; flex: 0; - `),p("main",` + `),b("main",` flex: 1; - `),p("divider",` + `),b("divider",` height: 1px; position: absolute; bottom: 0; @@ -70,4 +70,4 @@ import{_ as U,a as X}from"./IosArrowForward.js";import{ar as z,as as v,av as C,a --n-merged-color-hover: var(--n-color-hover-popover); --n-merged-color: var(--n-color-popover); --n-merged-border-color: var(--n-border-color-popover); - `))]),be=Object.assign(Object.assign({},S.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),K=Z("n-list"),_e=O({name:"List",props:be,setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:t,mergedRtlRef:m}=G(e),c=J("List",m,o),l=S("List","-list",pe,ae,e,o);Q(K,{showDividerRef:W(e,"showDivider"),mergedClsPrefixRef:o});const f=L(()=>{const{common:{cubicBezierEaseInOut:g},self:{fontSize:R,textColor:n,color:d,colorModal:B,colorPopover:D,borderColor:w,borderColorModal:P,borderColorPopover:j,borderRadius:y,colorHover:$,colorHoverModal:E,colorHoverPopover:h}}=l.value;return{"--n-font-size":R,"--n-bezier":g,"--n-text-color":n,"--n-color":d,"--n-border-radius":y,"--n-border-color":w,"--n-border-color-modal":P,"--n-border-color-popover":j,"--n-color-modal":B,"--n-color-popover":D,"--n-color-hover":$,"--n-color-hover-modal":E,"--n-color-hover-popover":h}}),u=t?Y("list",void 0,f,e):void 0;return{mergedClsPrefix:o,rtlEnabled:c,cssVars:t?void 0:f,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{$slots:o,mergedClsPrefix:t,onRender:m}=this;return m==null||m(),b("ul",{class:[`${t}-list`,this.rtlEnabled&&`${t}-list--rtl`,this.bordered&&`${t}-list--bordered`,this.showDivider&&`${t}-list--show-divider`,this.hoverable&&`${t}-list--hoverable`,this.clickable&&`${t}-list--clickable`,this.themeClass],style:this.cssVars},o.header?b("div",{class:`${t}-list__header`},o.header()):null,(e=o.default)===null||e===void 0?void 0:e.call(o),o.footer?b("div",{class:`${t}-list__footer`},o.footer()):null)}}),fe=O({name:"ListItem",setup(){const e=F(K,null);return e||ee("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:o}=this;return b("li",{class:`${o}-list-item`},e.prefix?b("div",{class:`${o}-list-item__prefix`},e.prefix()):null,e.default?b("div",{class:`${o}-list-item__main`},e):null,e.suffix?b("div",{class:`${o}-list-item__suffix`},e.suffix()):null,this.showDivider&&b("div",{class:`${o}-list-item__divider`}))}}),ge={style:{"text-align":"center",margin:"0"}},Pe={__name:"DebugConsole",setup(e){const o=F("axios"),t=k([]),m=k(""),c=k([]),l=k(0),f=k(null);oe(()=>{o.get("/debug/log").then(({data:n})=>{t.value=n}),u("runtime.log")});function u(n){m.value=n,o.get(`/debug/log/${n}`).then(({data:d})=>{l.value=0,c.value=d,l.value=c.value.length-1})}const g=L(()=>{var n;return(n=c.value[l.value])==null?void 0:n.screenshot}),R=L(()=>`/debug/screenshot/${g.value}`);return re(l,()=>{var n;(n=f.value)==null||n.scrollTo({top:0})}),(n,d)=>{const B=fe,D=_e,w=de,P=me,j=ve,y=ne,$=se,E=ce,h=ue;return _(),V(h,{style:{width:"100%",height:"100%",gap:"0","overflow-y":"hidden"}},{default:i(()=>[s(w,{style:{width:"220px"}},{default:i(()=>[s(D,{hoverable:"",clickable:"",bordered:""},{default:i(()=>[(_(!0),H(T,null,M(r(t),a=>(_(),V(B,{onClick:x=>u(a)},{default:i(()=>[ie(I(a),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),_:1}),s(h,{vertical:"",style:{flex:"1",height:"100%",overflow:"hidden"}},{default:i(()=>[N("h2",ge,I(r(m)),1),r(g)?(_(),V(P,{key:0,src:r(R),alt:r(g),width:"100%",style:{"max-height":"50%"},"object-fit":"scale-down"},null,8,["src","alt"])):te("",!0),s(w,{ref_key:"log_scroll",ref:f,style:{width:"100%"},"content-style":"font-size: 16px; user-select: text; padding: 0 12px"},{default:i(()=>{var a;return[(_(!0),H(T,null,M((a=r(c)[r(l)])==null?void 0:a.log,x=>(_(),H("div",null,[N("code",null,I(x),1)]))),256))]}),_:1},512),s(h,{align:"center",style:{padding:"0 12px 6px"}},{default:i(()=>[s(j,{style:{flex:"1"},"show-tooltip":"",value:r(l),"onUpdate:value":d[0]||(d[0]=a=>le(l)?l.value=a:null),min:0,max:r(c).length-1,"format-tooltip":a=>{var x;return(x=r(c)[a])==null?void 0:x.time}},null,8,["value","max","format-tooltip"]),s(E,null,{default:i(()=>[s($,{disabled:r(l)==0,onClick:d[1]||(d[1]=a=>l.value--)},{icon:i(()=>[s(y,null,{default:i(()=>[s(r(U))]),_:1})]),_:1},8,["disabled"]),s($,{disabled:r(l)==r(c).length-1,onClick:d[2]||(d[2]=a=>l.value++)},{icon:i(()=>[s(y,null,{default:i(()=>[s(r(X))]),_:1})]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1})]),_:1})}}};export{Pe as default}; + `))]),pe=Object.assign(Object.assign({},S.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),K=Z("n-list"),_e=O({name:"List",props:pe,setup(e){const{mergedClsPrefixRef:o,inlineThemeDisabled:t,mergedRtlRef:m}=G(e),c=J("List",m,o),l=S("List","-list",be,ae,e,o);Q(K,{showDividerRef:W(e,"showDivider"),mergedClsPrefixRef:o});const f=L(()=>{const{common:{cubicBezierEaseInOut:g},self:{fontSize:R,textColor:n,color:d,colorModal:B,colorPopover:D,borderColor:w,borderColorModal:P,borderColorPopover:j,borderRadius:y,colorHover:$,colorHoverModal:E,colorHoverPopover:h}}=l.value;return{"--n-font-size":R,"--n-bezier":g,"--n-text-color":n,"--n-color":d,"--n-border-radius":y,"--n-border-color":w,"--n-border-color-modal":P,"--n-border-color-popover":j,"--n-color-modal":B,"--n-color-popover":D,"--n-color-hover":$,"--n-color-hover-modal":E,"--n-color-hover-popover":h}}),u=t?Y("list",void 0,f,e):void 0;return{mergedClsPrefix:o,rtlEnabled:c,cssVars:t?void 0:f,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;const{$slots:o,mergedClsPrefix:t,onRender:m}=this;return m==null||m(),p("ul",{class:[`${t}-list`,this.rtlEnabled&&`${t}-list--rtl`,this.bordered&&`${t}-list--bordered`,this.showDivider&&`${t}-list--show-divider`,this.hoverable&&`${t}-list--hoverable`,this.clickable&&`${t}-list--clickable`,this.themeClass],style:this.cssVars},o.header?p("div",{class:`${t}-list__header`},o.header()):null,(e=o.default)===null||e===void 0?void 0:e.call(o),o.footer?p("div",{class:`${t}-list__footer`},o.footer()):null)}}),fe=O({name:"ListItem",setup(){const e=F(K,null);return e||ee("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:o}=this;return p("li",{class:`${o}-list-item`},e.prefix?p("div",{class:`${o}-list-item__prefix`},e.prefix()):null,e.default?p("div",{class:`${o}-list-item__main`},e):null,e.suffix?p("div",{class:`${o}-list-item__suffix`},e.suffix()):null,this.showDivider&&p("div",{class:`${o}-list-item__divider`}))}}),ge={style:{"text-align":"center",margin:"0"}},De={__name:"DebugConsole",setup(e){const o=F("axios"),t=k([]),m=k(""),c=k([]),l=k(0),f=k(null);oe(()=>{o.get("/debug/log").then(({data:n})=>{t.value=n}),u("runtime.log")});function u(n){m.value=n,o.get(`/debug/log/${n}`).then(({data:d})=>{l.value=0,c.value=d,l.value=c.value.length-1})}const g=L(()=>{var n;return(n=c.value[l.value])==null?void 0:n.screenshot}),R=L(()=>`/debug/screenshot/${g.value}`);return re(l,()=>{var n;(n=f.value)==null||n.scrollTo({top:0})}),(n,d)=>{const B=fe,D=_e,w=de,P=ce,j=ve,y=ne,$=se,E=ue,h=me;return _(),V(h,{style:{width:"100%",height:"100%",gap:"0","overflow-y":"hidden"}},{default:i(()=>[s(w,{style:{width:"220px"}},{default:i(()=>[s(D,{hoverable:"",clickable:"",bordered:""},{default:i(()=>[(_(!0),H(T,null,M(r(t),a=>(_(),V(B,{onClick:x=>u(a)},{default:i(()=>[ie(I(a),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),_:1}),s(h,{vertical:"",style:{flex:"1",height:"100%",overflow:"hidden"}},{default:i(()=>[N("h2",ge,I(r(m)),1),r(g)?(_(),V(P,{key:0,src:r(R),alt:r(g),width:"100%",style:{"max-height":"50%"},"object-fit":"scale-down"},null,8,["src","alt"])):te("",!0),s(w,{ref_key:"log_scroll",ref:f,style:{width:"100%"},"content-style":"font-size: 16px; user-select: text; padding: 0 12px"},{default:i(()=>{var a;return[(_(!0),H(T,null,M((a=r(c)[r(l)])==null?void 0:a.log,x=>(_(),H("div",null,[N("code",null,I(x),1)]))),256))]}),_:1},512),s(h,{align:"center",style:{padding:"0 12px 6px"}},{default:i(()=>[s(j,{style:{flex:"1"},"show-tooltip":"",value:r(l),"onUpdate:value":d[0]||(d[0]=a=>le(l)?l.value=a:null),min:0,max:r(c).length-1,"format-tooltip":a=>{var x;return(x=r(c)[a])==null?void 0:x.time}},null,8,["value","max","format-tooltip"]),s(E,null,{default:i(()=>[s($,{disabled:r(l)==0,onClick:d[1]||(d[1]=a=>l.value--)},{icon:i(()=>[s(y,null,{default:i(()=>[s(r(U))]),_:1})]),_:1},8,["disabled"]),s($,{disabled:r(l)==r(c).length-1,onClick:d[2]||(d[2]=a=>l.value++)},{icon:i(()=>[s(y,null,{default:i(()=>[s(r(X))]),_:1})]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1})]),_:1})}}};export{De as default}; diff --git a/ui/dist/assets/DropDown.js b/ui/dist/assets/DropDown.js index 9bff135..c2badd9 100644 --- a/ui/dist/assets/DropDown.js +++ b/ui/dist/assets/DropDown.js @@ -1,4 +1,4 @@ -import{_ as fn}from"./HelpText.js";import{m as mn,n as pn,o as gn,B as At,V as Vt,h as Mt,i as jt,f as yn,b as it,p as bn,q as _t,r as Cn,A as _n,j as kn,s as kt,u as wn,k as Dn,v as Sn,_ as Rn,w as xn}from"./main.js";import{c as zt,g as wt,d as Dt,e as St,f as ne,h as ot,m as st,y as dt,q as ut,i as $n,j as Fe,k as qe,l as D,n as me,o as oe,t as ie,u as Ee,v as za,w as Rt,x as xt,z as be,A as Bt,B as Qe,C as On,D as ct,E as Et,F as It,G as Ut,H as Yt,I as ht,J as ra,K as Tn,a as Pn,p as $t,r as rt,L as Fn,b as An}from"./op_select.js";import{c as ea,j as y,aR as Vn,ai as Nt,H as t,an as Lt,ar as P,as as K,av as H,au as fe,B as Ie,ax as mt,r as R,s as pt,w as Ae,b as Ce,ay as va,aC as Ea,z as Mn,n as qt,bL as Ge,bM as _e,b3 as pe,b8 as oa,aD as Ht,E as Kt,M as Wt,b4 as W,K as Qt,at as Ra,bF as Jt,aI as vt,az as jn,l as zn,D as Bn,aY as Ot,J as En,b2 as Ba,aL as Pe,ap as In,aO as Un,aV as Yn,br as Gt,bt as xe,bu as Je,bv as re,bo as Y,bC as xa,bw as te,i as ia,bx as Xe,by as ae,k as Te,F as Tt,bE as Pt,b9 as Nn,bm as Zt,bG as Ln,aX as qn}from"./_plugin-vue_export-helper.js";import{F as fa,_ as Hn,a as Kn}from"./Select.js";import{u as Ia}from"./use-locale.js";import{V as ft}from"./VirtualList.js";import{F as sa,B as da,a as ua,b as ca,s as Wn}from"./Forward.js";import{_ as aa}from"./Input.js";import{t as Qn,c as Jn,_ as Gn}from"./Tag.js";import{S as Zn,_ as Xn}from"./Scrollbar.js";function el(e,l){const u=ea(Vn,null);return y(()=>e.hljs||(u==null?void 0:u.mergedHljsRef.value))}const Ft=Nt("date",t("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},t("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},t("g",{"fill-rule":"nonzero"},t("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),al=Nt("to",t("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},t("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},t("g",{fill:"currentColor","fill-rule":"nonzero"},t("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})))));function tl(e,l){const u=mn(e),a=Math.trunc(u.getMonth()/3)+1,i=l-a;return zt(u,u.getMonth()+i*3)}function nl(e){const{textColor2:l,fontSize:u,fontWeightStrong:a,textColor3:i}=e;return{textColor:l,fontSize:u,fontWeightStrong:a,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:i}}const ll={name:"Code",common:Lt,self:nl},rl=P([K("code",` +import{_ as fn}from"./HelpText.js";import{m as mn,n as pn,o as gn,B as At,V as Vt,h as Mt,i as jt,f as yn,b as it,p as bn,q as _t,r as Cn,A as _n,j as kn,s as kt,u as wn,k as Dn,v as Sn,_ as Rn,w as xn}from"./main.js";import{c as zt,g as wt,d as Dt,e as St,f as ne,h as ot,m as st,y as dt,q as ut,i as $n,j as Fe,k as qe,l as D,n as me,o as oe,t as ie,u as Ee,v as za,w as Rt,x as xt,z as be,A as Bt,B as Qe,C as On,D as ct,E as Et,F as It,G as Ut,H as Yt,I as ht,J as ra,K as Tn,a as Pn,p as $t,r as rt,L as Fn,b as An}from"./op_select.js";import{c as ea,j as y,aR as Vn,ai as Nt,H as t,an as Lt,ar as P,as as K,av as H,au as fe,B as Ie,ax as mt,r as R,s as pt,w as Ae,b as Ce,ay as va,aC as Ea,z as Mn,n as qt,bL as Ge,bM as _e,b3 as pe,b8 as oa,aD as Ht,E as Kt,M as Wt,b4 as W,K as Qt,at as Ra,bF as Jt,aI as vt,az as jn,l as zn,D as Bn,aY as Ot,J as En,b2 as Ba,aL as Pe,ap as In,aO as Un,aV as Yn,br as Gt,bt as xe,bu as Je,bv as re,bo as Y,bC as xa,bw as te,i as ia,bx as Xe,by as ae,k as Te,F as Tt,bE as Pt,b9 as Nn,bm as Zt,bG as Ln,aX as qn}from"./_plugin-vue_export-helper.js";import{F as fa,_ as Hn,a as Kn}from"./Select.js";import{u as Ia}from"./use-locale.js";import{V as ft}from"./VirtualList.js";import{F as sa,B as da,a as ua,b as ca,s as Wn}from"./Forward.js";import{_ as aa}from"./Input.js";import{t as Qn,c as Jn,_ as Gn}from"./Tag.js";import{S as Zn,a as Xn}from"./Scrollbar.js";function el(e,l){const u=ea(Vn,null);return y(()=>e.hljs||(u==null?void 0:u.mergedHljsRef.value))}const Ft=Nt("date",t("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},t("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},t("g",{"fill-rule":"nonzero"},t("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),al=Nt("to",t("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},t("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},t("g",{fill:"currentColor","fill-rule":"nonzero"},t("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"})))));function tl(e,l){const u=mn(e),a=Math.trunc(u.getMonth()/3)+1,i=l-a;return zt(u,u.getMonth()+i*3)}function nl(e){const{textColor2:l,fontSize:u,fontWeightStrong:a,textColor3:i}=e;return{textColor:l,fontSize:u,fontWeightStrong:a,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:i}}const ll={name:"Code",common:Lt,self:nl},rl=P([K("code",` font-size: var(--n-font-size); font-family: var(--n-font-family); `,[H("show-line-numbers",` diff --git a/ui/dist/assets/Image.js b/ui/dist/assets/Image.js deleted file mode 100644 index 9092089..0000000 --- a/ui/dist/assets/Image.js +++ /dev/null @@ -1,59 +0,0 @@ -import{o as Je,i as Ke}from"./utils.js";import{Z as he,ai as $,H as n,B as H,ay as ge,z as we,ap as qe,an as Qe,ar as W,as as k,bb as ae,at as eo,b as F,r as R,w as oo,v as V,y as N,u as me,c as pe,j as to,ax as G,aC as no,J as ro,b2 as M,E as le,aD as Y,F as X,aA as io,bJ as ao,L as lo,D as xe,q as so,s as se,az as ue}from"./_plugin-vue_export-helper.js";import{am as uo,f as co,an as fo,ao as vo,a5 as ho,a7 as go}from"./main.js";import{u as wo}from"./use-locale.js";import{d as mo}from"./download.js";function po(e,u,a,d){for(var l=-1,g=e==null?0:e.length;++l",[k("image-container","position: fixed;")]),k("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),k("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[ae()]),k("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[k("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),ae()]),k("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[co()]),k("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),k("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[eo("preview-disabled",` - cursor: pointer; - `),W("img",` - border-radius: inherit; - `)])]),_=32,De=H({name:"ImagePreview",props:Object.assign(Object.assign({},J),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const u=ge("Image","-image",x1,g1,e,F(e,"clsPrefix"));let a=null;const d=R(null),l=R(null),g=R(void 0),w=R(!1),m=R(!1),{localeRef:v}=wo("Image");function r(){const{value:o}=l;if(!a||!o)return;const{style:i}=o,t=a.getBoundingClientRect(),c=t.left+t.width/2,f=t.top+t.height/2;i.transformOrigin=`${c}px ${f}px`}function s(o){var i,t;switch(o.key){case" ":o.preventDefault();break;case"ArrowLeft":(i=e.onPrev)===null||i===void 0||i.call(e);break;case"ArrowRight":(t=e.onNext)===null||t===void 0||t.call(e);break;case"Escape":ne();break}}oo(w,o=>{o?V("keydown",document,s):N("keydown",document,s)}),me(()=>{N("keydown",document,s)});let h=0,L=0,b=0,S=0,y=0,Z=0,K=0,q=0,B=!1;function Q(o){const{clientX:i,clientY:t}=o;b=i-h,S=t-L,go(I)}function $e(o){const{mouseUpClientX:i,mouseUpClientY:t,mouseDownClientX:c,mouseDownClientY:f}=o,C=c-i,O=f-t,P=`vertical${O>0?"Top":"Bottom"}`,z=`horizontal${C>0?"Left":"Right"}`;return{moveVerticalDirection:P,moveHorizontalDirection:z,deltaHorizontal:C,deltaVertical:O}}function ee(o){const{value:i}=d;if(!i)return{offsetX:0,offsetY:0};const t=i.getBoundingClientRect(),{moveVerticalDirection:c,moveHorizontalDirection:f,deltaHorizontal:C,deltaVertical:O}=o||{};let P=0,z=0;return t.width<=window.innerWidth?P=0:t.left>0?P=(t.width-window.innerWidth)/2:t.right0?z=(t.height-window.innerHeight)/2:t.bottom.5){const o=x;T-=1,x=Math.max(.5,Math.pow(j,T));const i=o-x;I(!1);const t=ee();x+=i,I(!1),x-=i,b=t.offsetX,S=t.offsetY,I()}}function Ye(){const o=g.value;o&&mo(o,void 0)}function I(o=!0){var i;const{value:t}=d;if(!t)return;const{style:c}=t,f=ao((i=p==null?void 0:p.previewedImgPropsRef.value)===null||i===void 0?void 0:i.style);let C="";if(typeof f=="string")C=`${f};`;else for(const P in f)C+=`${l1(P)}: ${f[P]};`;const O=`transform-origin: center; transform: translateX(${b}px) translateY(${S}px) rotate(${A}deg) scale(${x});`;B?c.cssText=`${C}cursor: grabbing; transition: none;${O}`:c.cssText=`${C}cursor: grab;${O}${o?"":"transition: none;"}`,o||t.offsetHeight}function ne(){w.value=!w.value,m.value=!0}function Xe(){x=te(),T=Math.ceil(Math.log(x)/Math.log(j)),b=0,S=0,I()}const Fe={setPreviewSrc:o=>{g.value=o},setThumbnailEl:o=>{a=o},toggleShow:ne};function Ge(o,i){if(e.showToolbarTooltip){const{value:t}=u;return n(ho,{to:!1,theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>v.value[i],trigger:()=>o})}else return o}const re=to(()=>{const{common:{cubicBezierEaseInOut:o},self:{toolbarIconColor:i,toolbarBorderRadius:t,toolbarBoxShadow:c,toolbarColor:f}}=u.value;return{"--n-bezier":o,"--n-toolbar-icon-color":i,"--n-toolbar-color":f,"--n-toolbar-border-radius":t,"--n-toolbar-box-shadow":c}}),{inlineThemeDisabled:ie}=G(),D=ie?no("image-preview",void 0,re,e):void 0;return Object.assign({previewRef:d,previewWrapperRef:l,previewSrc:g,show:w,appear:ro(),displayed:m,previewedImgProps:p==null?void 0:p.previewedImgPropsRef,handleWheel(o){o.preventDefault()},handlePreviewMousedown:Ne,handlePreviewDblclick:_e,syncTransformOrigin:r,handleAfterLeave:()=>{U(),A=0,m.value=!1},handleDragStart:o=>{var i,t;(t=(i=p==null?void 0:p.previewedImgPropsRef.value)===null||i===void 0?void 0:i.onDragstart)===null||t===void 0||t.call(i,o),o.preventDefault()},zoomIn:We,zoomOut:Ve,handleDownloadClick:Ye,rotateCounterclockwise:Be,rotateClockwise:je,handleSwitchPrev:He,handleSwitchNext:Ze,withTooltip:Ge,resizeToOrignalImageSize:Xe,cssVars:ie?void 0:re,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender},Fe)},render(){var e,u;const{clsPrefix:a,renderToolbar:d,withTooltip:l}=this,g=l(n(M,{clsPrefix:a,onClick:this.handleSwitchPrev},{default:()=>w1}),"tipPrevious"),w=l(n(M,{clsPrefix:a,onClick:this.handleSwitchNext},{default:()=>m1}),"tipNext"),m=l(n(M,{clsPrefix:a,onClick:this.rotateCounterclockwise},{default:()=>n(d1,null)}),"tipCounterclockwise"),v=l(n(M,{clsPrefix:a,onClick:this.rotateClockwise},{default:()=>n(u1,null)}),"tipClockwise"),r=l(n(M,{clsPrefix:a,onClick:this.resizeToOrignalImageSize},{default:()=>n(v1,null)}),"tipOriginalSize"),s=l(n(M,{clsPrefix:a,onClick:this.zoomOut},{default:()=>n(f1,null)}),"tipZoomOut"),h=l(n(M,{clsPrefix:a,onClick:this.handleDownloadClick},{default:()=>n(s1,null)}),"tipDownload"),L=l(n(M,{clsPrefix:a,onClick:this.toggleShow},{default:()=>p1}),"tipClose"),b=l(n(M,{clsPrefix:a,onClick:this.zoomIn},{default:()=>n(c1,null)}),"tipZoomIn");return n(X,null,(u=(e=this.$slots).default)===null||u===void 0?void 0:u.call(e),n(fo,{show:this.show},{default:()=>{var S;return this.show||this.displayed?((S=this.onRender)===null||S===void 0||S.call(this),le(n("div",{class:[`${a}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},n(Y,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?n("div",{class:`${a}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?n(Y,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?n("div",{class:`${a}-image-preview-toolbar`},d?d({nodes:{prev:g,next:w,rotateCounterclockwise:m,rotateClockwise:v,resizeToOriginalSize:r,zoomOut:s,zoomIn:b,download:h,close:L}}):n(X,null,this.onPrev?n(X,null,g,w):null,m,v,r,s,b,h,L)):null}):null,n(Y,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:y={}}=this;return le(n("div",{class:`${a}-image-preview-wrapper`,ref:"previewWrapperRef"},n("img",Object.assign({},y,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${a}-image-preview`,y.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[io,this.show]])}})),[[vo,{enabled:this.show}]])):null}}))}}),Ee=we("n-image-group"),C1=J,R1=H({name:"ImageGroup",props:C1,setup(e){let u;const{mergedClsPrefixRef:a}=G(e),d=`c${lo()}`,l=so(),g=R(null),w=v=>{var r;u=v,(r=g.value)===null||r===void 0||r.setPreviewSrc(v)};function m(v){var r,s;if(!(l!=null&&l.proxy))return;const L=l.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${d}]:not([data-error=true])`);if(!L.length)return;const b=Array.from(L).findIndex(S=>S.dataset.previewSrc===u);~b?w(L[(b+v+L.length)%L.length].dataset.previewSrc):w(L[0].dataset.previewSrc),v===1?(r=e.onPreviewNext)===null||r===void 0||r.call(e):(s=e.onPreviewPrev)===null||s===void 0||s.call(e)}return xe(Ee,{mergedClsPrefixRef:a,setPreviewSrc:w,setThumbnailEl:v=>{var r;(r=g.value)===null||r===void 0||r.setThumbnailEl(v)},toggleShow:()=>{var v;(v=g.value)===null||v===void 0||v.toggleShow()},groupId:d,renderToolbarRef:F(e,"renderToolbar")}),{mergedClsPrefix:a,previewInstRef:g,next:()=>{m(1)},prev:()=>{m(-1)}}},render(){return n(De,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},this.$slots)}}),b1=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},J),M1=H({name:"Image",props:b1,inheritAttrs:!1,setup(e){const u=R(null),a=R(!1),d=R(null),l=pe(Ee,null),{mergedClsPrefixRef:g}=l||G(e),w={click:()=>{if(e.previewDisabled||a.value)return;const r=e.previewSrc||e.src;if(l){l.setPreviewSrc(r),l.setThumbnailEl(u.value),l.toggleShow();return}const{value:s}=d;s&&(s.setPreviewSrc(r),s.setThumbnailEl(u.value),s.toggleShow())}},m=R(!e.lazy);se(()=>{var r;(r=u.value)===null||r===void 0||r.setAttribute("data-group-id",(l==null?void 0:l.groupId)||"")}),se(()=>{if(e.lazy&&e.intersectionObserverOptions){let r;const s=ue(()=>{r==null||r(),r=void 0,r=Je(u.value,e.intersectionObserverOptions,m)});me(()=>{s(),r==null||r()})}}),ue(()=>{var r;e.src||((r=e.imgProps)===null||r===void 0||r.src),a.value=!1});const v=R(!1);return xe(Ae,{previewedImgPropsRef:F(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:g,groupId:l==null?void 0:l.groupId,previewInstRef:d,imageRef:u,showError:a,shouldStartLoading:m,loaded:v,mergedOnClick:r=>{var s,h;w.click(),(h=(s=e.imgProps)===null||s===void 0?void 0:s.onClick)===null||h===void 0||h.call(s,r)},mergedOnError:r=>{if(!m.value)return;a.value=!0;const{onError:s,imgProps:{onError:h}={}}=e;s==null||s(r),h==null||h(r)},mergedOnLoad:r=>{const{onLoad:s,imgProps:{onLoad:h}={}}=e;s==null||s(r),h==null||h(r),v.value=!0}},w)},render(){var e,u;const{mergedClsPrefix:a,imgProps:d={},loaded:l,$attrs:g,lazy:w}=this,m=(u=(e=this.$slots).placeholder)===null||u===void 0?void 0:u.call(e),v=this.src||d.src,r=n("img",Object.assign(Object.assign({},d),{ref:"imageRef",width:this.width||d.width,height:this.height||d.height,src:this.showError?this.fallbackSrc:w&&this.intersectionObserverOptions?this.shouldStartLoading?v:void 0:v,alt:this.alt||d.alt,"aria-label":this.alt||d.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Ke&&w&&!this.intersectionObserverOptions?"lazy":"eager",style:[d.style||"",m&&!l?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return n("div",Object.assign({},g,{role:"none",class:[g.class,`${a}-image`,(this.previewDisabled||this.showError)&&`${a}-image--preview-disabled`]}),this.groupId?r:n(De,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:a,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>r,toolbar:()=>{var s,h;return(h=(s=this.$slots).toolbar)===null||h===void 0?void 0:h.call(s)}}),!l&&m)}});export{s1 as D,R1 as N,M1 as _}; diff --git a/ui/dist/assets/Log.css b/ui/dist/assets/Log.css index 78c0ada..ce5c18d 100644 --- a/ui/dist/assets/Log.css +++ b/ui/dist/assets/Log.css @@ -1 +1 @@ -.log[data-v-b6949d6f]{overflow:hidden;flex:1}.task-table[data-v-b6949d6f]{max-width:600px}.task-table th[data-v-b6949d6f]{padding:2px 16px}.task-table td[data-v-b6949d6f]{height:24px;padding:2px 8px}.task-table td[data-v-b6949d6f]:last-child{width:100%}.action-container[data-v-b6949d6f]{display:flex;align-items:center;gap:12px}.scroll-container[data-v-b6949d6f]{display:flex;align-items:center;gap:4px}.expand[data-v-b6949d6f]{flex-grow:1}.toggle-table-collapse-btn[data-v-b6949d6f]{position:absolute;top:12px;right:12px}.toggle-fullscreen-btn[data-v-b6949d6f]{position:absolute;top:12px;right:50px}.log-bg[data-v-b6949d6f]{content:"";width:100%;height:100%;position:absolute;top:0;left:0;opacity:var(--15833a31);background-image:url(/bg.webp);background-repeat:no-repeat;background-size:cover;background-position:65% 50%;pointer-events:none}.hljs-date{color:#f0a020!important;font-weight:700}.hljs-time{color:#2080f0!important;font-weight:700}.hljs-room{color:#18a058!important;font-weight:700}.hljs-operator{color:#d03050!important}.hljs-info{font-weight:700}.hljs-warning{color:#f0a020!important;font-weight:700}.hljs-error{color:#d03050!important;font-weight:700}.hljs-scene{font-style:italic} +.log[data-v-18e9594d]{overflow:hidden;flex:1}.task-table[data-v-18e9594d]{position:relative;max-width:600px}.task-table th[data-v-18e9594d]{padding:2px 16px}.task-table td[data-v-18e9594d]{height:24px;padding:2px 8px}.task-table td[data-v-18e9594d]:last-child{width:100%}.action-container[data-v-18e9594d]{display:flex;align-items:center;gap:12px}.scroll-container[data-v-18e9594d]{display:flex;align-items:center;gap:4px}.expand[data-v-18e9594d]{flex-grow:1}.toggle-table-collapse-btn[data-v-18e9594d]{position:absolute;top:0;right:0}.toggle-fullscreen-btn[data-v-18e9594d]{position:absolute;top:0;right:38px}.log-bg[data-v-18e9594d]{content:"";width:100%;height:100%;position:absolute;top:0;left:0;opacity:var(--66c01514);background-image:url(/bg.webp);background-repeat:no-repeat;background-size:cover;background-position:65% 50%;pointer-events:none;z-index:14}.sc[data-v-18e9594d]{max-width:480px;max-height:270px;border-radius:4px;z-index:15}.hljs-date{color:#f0a020!important;font-weight:700}.hljs-time{color:#2080f0!important;font-weight:700}.hljs-room{color:#18a058!important;font-weight:700}.hljs-operator{color:#d03050!important}.hljs-info{font-weight:700}.hljs-warning{color:#f0a020!important;font-weight:700}.hljs-error{color:#d03050!important;font-weight:700}.hljs-scene{font-style:italic} diff --git a/ui/dist/assets/Log.js b/ui/dist/assets/Log.js index 67a0758..715da4b 100644 --- a/ui/dist/assets/Log.js +++ b/ui/dist/assets/Log.js @@ -1,12 +1,12 @@ -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 Ve,aq as Ge,aM as Qe,B as se,H as c,bi as He,z as Je,c as ke,r as N,j as P,s as Le,w as Me,b as ie,as as te,ar as ae,au as i,ay as ce,ax as je,D as Ce,aC as Fe,b8 as Ze,aD as et,n as Re,l as $e,bg as Se,av as E,at as Be,bF as tt,aI as ot,aE as _e,aG as U,aY as q,bA as we,bj as O,bh as nt,aL as xe,bm as de,br as lt,bc as at,bC as L,by as h,bw as k,bv as w,bo as l,bu as K,bx as I,i as rt,bG as it,b3 as st,bt as m,E as ct,aA as dt,F as X,bD as Te,k as ye,aX as ut,bE as G}from"./_plugin-vue_export-helper.js";import{c as ht,f as ft,t as gt,u as bt,s as ze,a as mt}from"./main.js";import{a as pt,_ as vt}from"./Play.js";import{_ as _t}from"./op_select.js";import{u as wt}from"./use-locale.js";import"./Select.js";import"./Tag.js";import"./Input.js";import"./VirtualList.js";import"./Forward.js";import"./Scrollbar.js";import"./get-slot.js";import"./index.js";import"./Avatar.js";import"./utils.js";function xt(e){const{textColor2:n,modalColor:a,borderColor:s,fontSize:d,primaryColor:x}=e;return{loaderFontSize:d,loaderTextColor:n,loaderColor:a,loaderBorder:`1px solid ${s}`,loadingColor:x}}const yt=Xe({name:"Log",common:Ve,peers:{Scrollbar:Ge,Code:Ae},self:xt});function kt(e){const{primaryColor:n,opacityDisabled:a,borderRadius:s,textColor3:d}=e;return Object.assign(Object.assign({},ht),{iconColor:d,textColor:"white",loadingColor:n,opacityDisabled:a,railColor:"rgba(0, 0, 0, .14)",railColorActive:n,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:s,railBorderRadiusMedium:s,railBorderRadiusLarge:s,buttonBorderRadiusSmall:s,buttonBorderRadiusMedium:s,buttonBorderRadiusLarge:s,boxShadowFocus:`0 0 0 2px ${Qe(n,{alpha:.2})}`})}const Ct={name:"Switch",common:Ve,self:kt},Rt=se({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:wt("Log").localeRef}},render(){const{clsPrefix:e}=this;return c("div",{class:`${e}-log-loader`},c(He,{clsPrefix:e,strokeWidth:24,scale:.85}),c("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),Ne=Je("n-log"),$t=se({props:{line:{type:String,default:""}},setup(e){const{trimRef:n,highlightRef:a,languageRef:s,mergedHljsRef:d}=ke(Ne),x=N(null),y=P(()=>n.value?e.line.trim():e.line);function f(){x.value&&(x.value.innerHTML=H(s.value,y.value))}function H(v,C){const{value:u}=d;return u&&v&&u.getLanguage(v)?u.highlight(C,{language:v}).value:C}return Le(()=>{a.value&&f()}),Me(ie(e,"line"),()=>{a.value&&f()}),{highlight:a,selfRef:x,maybeTrimmedLines:y}},render(){const{highlight:e,maybeTrimmedLines:n}=this;return c("pre",{ref:"selfRef"},e?null:n)}}),St=te("log",` +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 o,bu as A,bx as W,bw as R,bv as _,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:w}=e;return{loaderFontSize:c,loaderTextColor:l,loaderColor:a,loaderBorder:`1px solid ${i}`,loadingColor:w}}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),w=M(null),x=O(()=>l.value?e.line.trim():e.line);function h(){w.value&&(w.value.innerHTML=H(i.value,x.value))}function H(y,B){const{value:p}=c;return p&&y&&p.getLanguage(y)?p.highlight(B,{language:y}).value:B}return Me(()=>{a.value&&h()}),je(ce(e,"line"),()=>{a.value&&h()}),{highlight:a,selfRef:w,maybeTrimmedLines:x}},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); -`,[ae("pre",` +`,[ie("pre",` white-space: pre-wrap; word-break: break-word; margin: 0; - `),te("log-loader",` + `),ne("log-loader",` transition: color .3s var(--n-bezier), background-color .3s var(--n-bezier), @@ -24,14 +24,14 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y color: var(--n-loader-text-color); background-color: var(--n-loader-color); font-size: var(--n-loader-font-size); - `,[ft(),i("content",` + `,[ft(),r("content",` display: inline-block; vertical-align: bottom; line-height: 34px; padding-left: 40px; padding-right: 20px; white-space: nowrap; - `),te("base-loading",` + `),ne("base-loading",` color: var(--n-loading-color); position: absolute; left: 12px; @@ -40,8 +40,8 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y width: 20px; height: 20px; display: inline-block; - `)])]),Bt=Object.assign(Object.assign({},ce.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}),Tt=se({name:"Log",props:Bt,setup(e){const{mergedClsPrefixRef:n,inlineThemeDisabled:a}=je(e),s=N(!1),d=P(()=>e.language!==void 0),x=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),y=P(()=>{const{log:b}=e;return b?b.split(` -`):e.lines}),f=N(null),H=ce("Log","-log",St,yt,e,n);function v(b){const p=b.target,z=p.firstElementChild;if(s.value){Re(()=>{s.value=!1});return}const V=p.offsetHeight,_=p.scrollTop,R=z.offsetHeight,o=_,M=R-_-V;if(o<=e.offsetTop){const{onReachTop:g,onRequireMore:t}=e;t&&t("top"),g&&g()}if(M<=e.offsetBottom){const{onReachBottom:g,onRequireMore:t}=e;t&&t("bottom"),g&&g()}}const C=gt(u,300);function u(b){if(s.value){Re(()=>{s.value=!1});return}if(f.value){const{containerRef:p,contentRef:z}=f.value;if(p&&z){const V=p.offsetHeight,_=p.scrollTop,R=z.offsetHeight,o=_,M=R-_-V,g=b.deltaY;if(o===0&&g<0){const{onRequireMore:t}=e;t&&t("top")}if(M<=0&&g>0){const{onRequireMore:t}=e;t&&t("bottom")}}}}function r(b){const{value:p}=f;if(!p)return;const{silent:z,top:V,position:_}=b;z&&(s.value=!0),V!==void 0?p.scrollTo({left:0,top:V}):(_==="bottom"||_==="top")&&p.scrollTo({position:_})}function B(b=!1){$e("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),r({position:"top",silent:b})}function T(b=!1){$e("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),r({position:"bottom",silent:b})}Ce(Ne,{languageRef:ie(e,"language"),mergedHljsRef:Ue(e),trimRef:ie(e,"trim"),highlightRef:d});const Q={scrollTo:r},Y=P(()=>{const{self:{loaderFontSize:b,loaderTextColor:p,loaderColor:z,loaderBorder:V,loadingColor:_},common:{cubicBezierEaseInOut:R}}=H.value;return{"--n-bezier":R,"--n-loader-font-size":b,"--n-loader-border":V,"--n-loader-color":z,"--n-loader-text-color":p,"--n-loading-color":_}}),$=a?Fe("log",void 0,Y,e):void 0;return Object.assign(Object.assign({},Q),{mergedClsPrefix:n,scrollbarRef:f,mergedTheme:H,styleHeight:x,mergedLines:y,scrollToTop:B,scrollToBottom:T,handleWheel:C,handleScroll:v,cssVars:a?void 0:Y,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:n,onRender:a}=this;return a==null||a(),c("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[c(Ze,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>c(qe,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:n.peers.Code,themeOverrides:n.peerOverrides.Code},{default:()=>this.mergedLines.map((s,d)=>c($t,{key:d,line:s}))})}),c(et,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?c(Rt,{clsPrefix:e}):null})])}}),zt=te("switch",` + `)])]),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),w=O(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),x=O(()=>{const{log:d}=e;return d?d.split(` +`):e.lines}),h=M(null),H=ue("Log","-log",Bt,kt,e,l);function y(d){const b=d.target,z=b.firstElementChild;if(i.value){$e(()=>{i.value=!1});return}const V=b.offsetHeight,v=b.scrollTop,$=z.offsetHeight,n=v,F=$-v-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(p,300);function p(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,v=b.scrollTop,$=z.offsetHeight,n=v,F=$-v-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 t(d){const{value:b}=h;if(!b)return;const{silent:z,top:V,position:v}=d;z&&(i.value=!0),V!==void 0?b.scrollTo({left:0,top:V}):(v==="bottom"||v==="top")&&b.scrollTo({position:v})}function k(d=!1){Se("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),t({position:"top",silent:d})}function T(d=!1){Se("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),t({position:"bottom",silent:d})}Re(Pe,{languageRef:ce(e,"language"),mergedHljsRef:Ue(e),trimRef:ce(e,"trim"),highlightRef:c});const Z={scrollTo:t},G=O(()=>{const{self:{loaderFontSize:d,loaderTextColor:b,loaderColor:z,loaderBorder:V,loadingColor:v},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":v}}),j=a?Ne("log",void 0,G,e):void 0;return Object.assign(Object.assign({},Z),{mergedClsPrefix:l,scrollbarRef:h,mergedTheme:H,styleHeight:w,mergedLines:x,scrollToTop:k,scrollToBottom:T,handleWheel:B,handleScroll:y,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; @@ -51,20 +51,20 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y outline: none; justify-content: center; align-items: center; -`,[i("children-placeholder",` +`,[r("children-placeholder",` height: var(--n-rail-height); display: flex; flex-direction: column; overflow: hidden; pointer-events: none; visibility: hidden; - `),i("rail-placeholder",` + `),r("rail-placeholder",` display: flex; flex-wrap: none; - `),i("button-placeholder",` + `),r("button-placeholder",` width: calc(1.75 * var(--n-rail-height)); height: var(--n-rail-height); - `),te("base-loading",` + `),ne("base-loading",` position: absolute; top: 50%; left: 50%; @@ -72,7 +72,7 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y font-size: calc(var(--n-button-width) - 4px); color: var(--n-loading-color); transition: color .3s var(--n-bezier); - `,[Se({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),i("checked, unchecked",` + `,[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; @@ -83,16 +83,16 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y display: flex; align-items: center; line-height: 1; - `),i("checked",` + `),r("checked",` right: 0; padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),i("unchecked",` + `),r("unchecked",` left: 0; justify-content: flex-end; padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),ae("&:focus",[i("rail",` + `),ie("&:focus",[r("rail",` box-shadow: var(--n-box-shadow-focus); - `)]),E("round",[i("rail","border-radius: calc(var(--n-rail-height) / 2);",[i("button","border-radius: calc(var(--n-button-height) / 2);")])]),Be("disabled",[Be("icon",[E("rubber-band",[E("pressed",[i("rail",[i("button","max-width: var(--n-button-width-pressed);")])]),i("rail",[ae("&:active",[i("button","max-width: var(--n-button-width-pressed);")])]),E("active",[E("pressed",[i("rail",[i("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),i("rail",[ae("&:active",[i("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),E("active",[i("rail",[i("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),i("rail",` + `)]),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); @@ -104,7 +104,7 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y background .3s var(--n-bezier), box-shadow .3s var(--n-bezier); background-color: var(--n-rail-color); - `,[i("button-icon",` + `,[r("button-icon",` color: var(--n-icon-color); transition: color .3s var(--n-bezier); font-size: calc(var(--n-button-height) - 4px); @@ -117,7 +117,7 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y justify-content: center; align-items: center; line-height: 1; - `,[Se()]),i("button",` + `,[Be()]),r("button",` align-items: center; top: var(--n-offset); left: var(--n-offset); @@ -137,9 +137,9 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y opacity .3s var(--n-bezier), max-width .3s var(--n-bezier), box-shadow .3s var(--n-bezier); - `)]),E("active",[i("rail","background-color: var(--n-rail-color-active);")]),E("loading",[i("rail",` + `)]),I("active",[r("rail","background-color: var(--n-rail-color-active);")]),I("loading",[r("rail",` cursor: wait; - `)]),E("disabled",[i("rail",` + `)]),I("disabled",[r("rail",` cursor: not-allowed; opacity: .5; - `)])]),Vt=Object.assign(Object.assign({},ce.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 ee;const Ht=se({name:"Switch",props:Vt,setup(e){ee===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ee=CSS.supports("width","max(1px)"):ee=!1:ee=!0);const{mergedClsPrefixRef:n,inlineThemeDisabled:a}=je(e),s=ce("Switch","-switch",zt,Ct,e,n),d=tt(e),{mergedSizeRef:x,mergedDisabledRef:y}=d,f=N(e.defaultValue),H=ie(e,"value"),v=ot(H,f),C=P(()=>v.value===e.checkedValue),u=N(!1),r=N(!1),B=P(()=>{const{railStyle:o}=e;if(o)return o({focused:r.value,checked:C.value})});function T(o){const{"onUpdate:value":M,onChange:g,onUpdateValue:t}=e,{nTriggerFormInput:J,nTriggerFormChange:Z}=d;M&&xe(M,o),t&&xe(t,o),g&&xe(g,o),f.value=o,J(),Z()}function Q(){const{nTriggerFormFocus:o}=d;o()}function Y(){const{nTriggerFormBlur:o}=d;o()}function $(){e.loading||y.value||(v.value!==e.checkedValue?T(e.checkedValue):T(e.uncheckedValue))}function b(){r.value=!0,Q()}function p(){r.value=!1,Y(),u.value=!1}function z(o){e.loading||y.value||o.key===" "&&(v.value!==e.checkedValue?T(e.checkedValue):T(e.uncheckedValue),u.value=!1)}function V(o){e.loading||y.value||o.key===" "&&(o.preventDefault(),u.value=!0)}const _=P(()=>{const{value:o}=x,{self:{opacityDisabled:M,railColor:g,railColorActive:t,buttonBoxShadow:J,buttonColor:Z,boxShadowFocus:D,loadingColor:W,textColor:ue,iconColor:he,[q("buttonHeight",o)]:j,[q("buttonWidth",o)]:fe,[q("buttonWidthPressed",o)]:S,[q("railHeight",o)]:F,[q("railWidth",o)]:A,[q("railBorderRadius",o)]:ge,[q("buttonBorderRadius",o)]:be},common:{cubicBezierEaseInOut:De}}=s.value;let me,pe,ve;return ee?(me=`calc((${F} - ${j}) / 2)`,pe=`max(${F}, ${j})`,ve=`max(${A}, calc(${A} + ${j} - ${F}))`):(me=we((O(F)-O(j))/2),pe=we(Math.max(O(F),O(j))),ve=O(F)>O(j)?A:we(O(A)+O(j)-O(F))),{"--n-bezier":De,"--n-button-border-radius":be,"--n-button-box-shadow":J,"--n-button-color":Z,"--n-button-width":fe,"--n-button-width-pressed":S,"--n-button-height":j,"--n-height":pe,"--n-offset":me,"--n-opacity-disabled":M,"--n-rail-border-radius":ge,"--n-rail-color":g,"--n-rail-color-active":t,"--n-rail-height":F,"--n-rail-width":A,"--n-width":ve,"--n-box-shadow-focus":D,"--n-loading-color":W,"--n-text-color":ue,"--n-icon-color":he}}),R=a?Fe("switch",P(()=>x.value[0]),_,e):void 0;return{handleClick:$,handleBlur:p,handleFocus:b,handleKeyup:z,handleKeydown:V,mergedRailStyle:B,pressed:u,mergedClsPrefix:n,mergedValue:v,checked:C,mergedDisabled:y,cssVars:a?void 0:_,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:n,checked:a,mergedRailStyle:s,onRender:d,$slots:x}=this;d==null||d();const{checked:y,unchecked:f,icon:H,"checked-icon":v,"unchecked-icon":C}=x,u=!(_e(H)&&_e(v)&&_e(C));return c("div",{role:"switch","aria-checked":a,class:[`${e}-switch`,this.themeClass,u&&`${e}-switch--icon`,a&&`${e}-switch--active`,n&&`${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},c("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:s},U(y,r=>U(f,B=>r||B?c("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},c("div",{class:`${e}-switch__rail-placeholder`},c("div",{class:`${e}-switch__button-placeholder`}),r),c("div",{class:`${e}-switch__rail-placeholder`},c("div",{class:`${e}-switch__button-placeholder`}),B)):null)),c("div",{class:`${e}-switch__button`},U(H,r=>U(v,B=>U(C,T=>c(nt,null,{default:()=>this.loading?c(He,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(B||r)?c("div",{class:`${e}-switch__button-icon`,key:B?"checked-icon":"icon"},B||r):!this.checked&&(T||r)?c("div",{class:`${e}-switch__button-icon`,key:T?"unchecked-icon":"icon"},T||r):null})))),U(y,r=>r&&c("div",{key:"checked",class:`${e}-switch__checked`},r)),U(f,r=>r&&c("div",{key:"unchecked",class:`${e}-switch__unchecked`},r)))))}});var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});const re=de,Lt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Mt=(0,re.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),jt=[Mt];var Ft=Pe.default=(0,re.defineComponent)({name:"Stop",render:function(n,a){return(0,re.openBlock)(),(0,re.createElementBlock)("svg",Lt,jt)}}),Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});const oe=de,Nt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},Pt=(0,oe.createElementVNode)("g",{fill:"none"},[(0,oe.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),Et=[Pt];var Ot=Ee.default=(0,oe.defineComponent)({name:"PanelTopContract20Regular",render:function(n,a){return(0,oe.openBlock)(),(0,oe.createElementBlock)("svg",Nt,Et)}}),Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});const ne=de,It={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},Dt=(0,ne.createElementVNode)("g",{fill:"none"},[(0,ne.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),Wt=[Dt];var At=Oe.default=(0,ne.defineComponent)({name:"PanelTopExpand20Regular",render:function(n,a){return(0,ne.openBlock)(),(0,ne.createElementBlock)("svg",It,Wt)}}),Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});const le=de,Ut={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},qt=(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),Kt=[qt];var Yt=Ie.default=(0,le.defineComponent)({name:"ArrowMaximize20Regular",render:function(n,a){return(0,le.openBlock)(),(0,le.createElementBlock)("svg",Ut,Kt)}});const Xt={class:"home-container"},Gt=["rowspan"],Qt={key:1},Jt={colspan:2},Zt={class:"action-container"},eo={class:"scroll-container"},to={key:0,class:"scroll-label"},oo={__name:"Log",setup(e){it(g=>({"15833a31":l(_)}));const n=bt(),{log:a,log_mobile:s,running:d,log_lines:x,task_list:y,waiting:f,get_task_id:H}=ze(n),{get_tasks:v}=n,C=ke("axios"),u=ke("mobile"),r=N(!0);function B(){Re(()=>{var g;(g=document.querySelector("pre:last-child"))==null||g.scrollIntoView()})}function T(){r.value&&B()}Me(()=>[a,y],()=>{T()},{deep:!0}),Le(()=>{v()}),at(()=>{clearTimeout(H.value)});function Q(){d.value=!0,x.value=[],C.get("/start"),v()}function Y(){f.value=!0,C.get("/stop").then(g=>{d.value=!g.data,f.value=!1})}const $=N(!0),b=N(!1),p=N(!0);Ce("show_task",b),Ce("add_task",p);const z=mt(),{conf:V}=ze(z),_=P(()=>V.value.theme=="light"?.2:.3);function R(){C.get("/stop-maa")}const o=[{label:"停止Maa",key:"maa"}];function M(){document.documentElement.requestFullscreen()}return(g,t)=>{const J=_t,Z=Tt,D=ut,W=st,ue=Ke,he=Ye,j=We,fe=Ht;return m(),L("div",Xt,[t[6]||(t[6]=h("div",{class:"log-bg"},null,-1)),k(J,{class:"task-table",size:"small","single-line":!1},{default:w(()=>[t[3]||(t[3]=h("thead",null,[h("tr",null,[h("th",null,"时间"),h("th",{colspan:2},"任务")])],-1)),ct(h("tbody",null,[(m(!0),L(X,null,Te(l(y),S=>(m(),L(X,null,[Object.keys(S.plan).length?(m(!0),L(X,{key:0},Te(S.plan,(F,A,ge)=>(m(),L("tr",null,[ge==0?(m(),L("td",{key:0,rowspan:Object.keys(S.plan).length},G(S.time.split("T")[1].split(".")[0]),9,Gt)):I("",!0),h("td",null,G(A),1),h("td",null,G(F.map(be=>be||"_").join(", ")),1)]))),256)):(m(),L("tr",Qt,[h("td",null,G(S.time.split("T")[1].split(".")[0]),1),h("td",Jt,G(S.meta_data)+G(S.type.display_value),1)]))],64))),256))],512),[[dt,!l(u)||l($)]])]),_:1}),k(Z,{class:"log",log:l(u)?l(s):l(a),language:"mower",style:{"user-select":"text"}},null,8,["log"]),h("div",Zt,[l(d)?(m(),K(ue,{key:0,select:R,options:o,type:"error",up:!0},{default:w(()=>[k(W,{type:"error",onClick:Y,loading:l(f),disabled:l(f)},{icon:w(()=>[k(D,null,{default:w(()=>[k(l(Ft))]),_:1})]),default:w(()=>[l(u)?I("",!0):(m(),L(X,{key:0},[ye("立即停止")],64))]),_:1},8,["loading","disabled"])]),_:1})):(m(),K(W,{key:1,type:"primary",onClick:Q,loading:l(f),disabled:l(f)},{icon:w(()=>[k(D,null,{default:w(()=>[k(l(pt))]),_:1})]),default:w(()=>[l(u)?I("",!0):(m(),L(X,{key:0},[ye("开始执行")],64))]),_:1},8,["loading","disabled"])),k(he),k(W,{type:"warning",onClick:t[0]||(t[0]=S=>b.value=!0)},{icon:w(()=>[k(D,null,{default:w(()=>[k(l(vt))]),_:1})]),default:w(()=>[l(u)?I("",!0):(m(),L(X,{key:0},[ye("新增任务")],64))]),_:1}),l(u)?I("",!0):(m(),K(j,{key:2},{default:w(()=>t[4]||(t[4]=[h("div",null,"目前只糊了一个勉强能用的版本,其他功能敬请期待",-1),h("div",null,"只开放了空任务/专精任务",-1),h("div",null,"只能增,不能删!!谨慎填写任务",-1),h("div",null,"如果 mower 休息到 00:30,新增的 00:15 的任务是不会被执行的,因为此时在休息",-1),h("div",null,"所以最好在 00:00 mower运行的时候添加 00:15 的任务了,考验手速的时候到了",-1),h("div",null,"空任务,请确保任务房间名字,干员数量正确(没有判定)",-1),h("div",null,"专精任务,UI有详细说明;新增完毕,UI上面的表会实时反馈",-1),h("div",null,"在Q群或者频道提以上问题,看心情踢人",-1)])),_:1})),t[5]||(t[5]=h("div",{class:"expand"},null,-1)),h("div",eo,[k(fe,{value:l(r),"onUpdate:value":t[1]||(t[1]=S=>rt(r)?r.value=S:null)},null,8,["value"]),l(u)?I("",!0):(m(),L("span",to,"自动滚动"))])]),l(u)?(m(),K(W,{key:0,class:"toggle-table-collapse-btn",size:"small",onClick:t[2]||(t[2]=S=>$.value=!l($)),focusable:!1},{icon:w(()=>[k(D,null,{default:w(()=>[l($)?(m(),K(l(Ot),{key:0})):(m(),K(l(At),{key:1}))]),_:1})]),_:1})):I("",!0),l(u)?(m(),K(W,{key:1,class:"toggle-fullscreen-btn",size:"small",onClick:M,focusable:!1},{icon:w(()=>[k(D,null,{default:w(()=>[k(l(Yt))]),_:1})]),_:1})):I("",!0)])}}},xo=lt(oo,[["__scopeId","data-v-b6949d6f"]]);export{xo as default}; + `)])]),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:w,mergedDisabledRef:x}=c,h=M(e.defaultValue),H=ce(e,"value"),y=ot(H,h),B=O(()=>y.value===e.checkedValue),p=M(!1),t=M(!1),k=O(()=>{const{railStyle:n}=e;if(n)return n({focused:t.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||x.value||(y.value!==e.checkedValue?T(e.checkedValue):T(e.uncheckedValue))}function d(){t.value=!0,Z()}function b(){t.value=!1,G(),p.value=!1}function z(n){e.loading||x.value||n.key===" "&&(y.value!==e.checkedValue?T(e.checkedValue):T(e.uncheckedValue),p.value=!1)}function V(n){e.loading||x.value||n.key===" "&&(n.preventDefault(),p.value=!0)}const v=O(()=>{const{value:n}=w,{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(()=>w.value[0]),v,e):void 0;return{handleClick:j,handleBlur:b,handleFocus:d,handleKeyup:z,handleKeydown:V,mergedRailStyle:k,pressed:p,mergedClsPrefix:l,mergedValue:y,checked:B,mergedDisabled:x,cssVars:a?void 0:v,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:l,checked:a,mergedRailStyle:i,onRender:c,$slots:w}=this;c==null||c();const{checked:x,unchecked:h,icon:H,"checked-icon":y,"unchecked-icon":B}=w,p=!(we(H)&&we(y)&&we(B));return s("div",{role:"switch","aria-checked":a,class:[`${e}-switch`,this.themeClass,p&&`${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(x,t=>Y(h,k=>t||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`}),t),s("div",{class:`${e}-switch__rail-placeholder`},s("div",{class:`${e}-switch__button-placeholder`}),k)):null)),s("div",{class:`${e}-switch__button`},Y(H,t=>Y(y,k=>Y(B,T=>s(nt,null,{default:()=>this.loading?s(Le,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(k||t)?s("div",{class:`${e}-switch__button-icon`,key:k?"checked-icon":"icon"},k||t):!this.checked&&(T||t)?s("div",{class:`${e}-switch__button-icon`,key:T?"unchecked-icon":"icon"},T||t):null})))),Y(x,t=>t&&s("div",{key:"checked",class:`${e}-switch__checked`},t)),Y(h,t=>t&&s("div",{key:"unchecked",class:`${e}-switch__unchecked`},t)))))}});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=>({"66c01514":o($)}));const l=mt(),{log:a,log_mobile:i,running:c,log_lines:w,task_list:x,waiting:h,get_task_id:H,sc_uri:y}=Ve(l),{get_tasks:B}=l,p=Ce("axios"),t=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,x],()=>{Z()},{deep:!0}),Me(()=>{B()}),at(()=>{clearTimeout(H.value)});function G(){c.value=!0,w.value=[],p.get("/start"),B()}function j(){h.value=!0,p.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:v}=Ve(V),$=O(()=>v.value.theme=="light"?.2:.3);function n(){p.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)),o(f)?(m(),A(fe,{key:0,"preview-disabled":"",width:"100%",class:"sc",src:o(y),"object-fit":"scale-down"},null,8,["src"])):W("",!0),R(ge,{class:"task-table",size:"small","single-line":!1},{default:_(()=>[u("thead",{onClick:g[0]||(g[0]=S=>f.value=!o(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(o(x),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,!o(t)||o(d)]]),o(t)?(m(),A(q,{key:0,class:"toggle-table-collapse-btn",size:"small",onClick:g[1]||(g[1]=S=>d.value=!o(d)),focusable:!1},{icon:_(()=>[R(U,null,{default:_(()=>[o(d)?(m(),A(o(It),{key:0})):(m(),A(o(Ut),{key:1}))]),_:1})]),_:1})):W("",!0),o(t)?(m(),A(q,{key:1,class:"toggle-fullscreen-btn",size:"small",onClick:C,focusable:!1},{icon:_(()=>[R(U,null,{default:_(()=>[R(o(Nt))]),_:1})]),_:1})):W("",!0)]),_:1}),R(P,{class:"log",log:o(t)?o(i):o(a),language:"mower",style:{"user-select":"text"}},null,8,["log"]),u("div",eo,[o(c)?(m(),A(me,{key:0,select:n,options:F,type:"error",up:!0},{default:_(()=>[R(q,{type:"error",onClick:j,loading:o(h),disabled:o(h)},{icon:_(()=>[R(U,null,{default:_(()=>[R(o(Xt))]),_:1})]),default:_(()=>[o(t)?W("",!0):(m(),L(Q,{key:0},[ke("立即停止")],64))]),_:1},8,["loading","disabled"])]),_:1})):(m(),A(q,{key:1,type:"primary",onClick:G,loading:o(h),disabled:o(h)},{icon:_(()=>[R(U,null,{default:_(()=>[R(o(pt))]),_:1})]),default:_(()=>[o(t)?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:_(()=>[R(U,null,{default:_(()=>[R(o(vt))]),_:1})]),default:_(()=>[o(t)?W("",!0):(m(),L(Q,{key:0},[ke("新增任务")],64))]),_:1}),o(t)?W("",!0):(m(),A(E,{key:2},{default:_(()=>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:o(k),"onUpdate:value":g[3]||(g[3]=S=>rt(k)?k.value=S:null)},null,8,["value"]),o(t)?W("",!0):(m(),L("span",oo,"自动滚动"))])])])}}},ko=lt(no,[["__scopeId","data-v-18e9594d"]]);export{ko as default}; diff --git a/ui/dist/assets/Plan.js b/ui/dist/assets/Plan.js index 9946144..bd2e17e 100644 --- a/ui/dist/assets/Plan.js +++ b/ui/dist/assets/Plan.js @@ -1,4 +1,4 @@ -import{_ as lt,a as ut,u as Tt,b as Vt,c as Lt}from"./SlickOperatorSelect.js";import{_ as ze}from"./HelpText.js";import{ar as It,as as Ge,ay as ct,B as Dt,ax as Nt,bF as Ut,r as N,b as zt,aI as jt,j as I,aC as Wt,J as qt,H as te,aD as Ht,E as De,M as Gt,aL as de,c as me,bH as Kt,br as je,bG as Qt,bo as o,w as We,bt as w,bC as x,by as d,F as V,bD as K,bI as Jt,bJ as X,bx as ne,aA as Ke,bK as Qe,bE as Je,bw as f,bv as h,bu as re,k as P,n as Xt,b3 as dt,i as Te,bs as Zt,b9 as Yt,bm as Fe,az as Xe,D as Be,aX as en}from"./_plugin-vue_export-helper.js";import{f as tn,b as Ne,d as nn,e as rn,B as sn,V as on,g as an,h as ln,i as un,l as cn,a as ft,j as Ve,s as ge,_ as dn,k as fe}from"./main.js";import{p as mt,r as pt,s as Ze,a as gt,_ as fn,b as mn}from"./op_select.js";import{_ as pn}from"./Avatar.js";import{c as gn,N as hn,_ as Ee}from"./Select.js";import{_ as ht}from"./Input.js";import{_ as vn,a as _n,b as bn}from"./DropDown.js";import{S as wn,_ as yn}from"./Scrollbar.js";import{_ as Sn,a as xn}from"./IosArrowForward.js";import{_ as kn}from"./TrashOutline.js";import{_ as Mn,a as Cn}from"./RadioGroup.js";import"./Image.js";import"./utils.js";import"./use-locale.js";import"./download.js";import"./index.js";import"./get-slot.js";import"./Tag.js";import"./VirtualList.js";import"./Forward.js";function Fn(t){return t.map(vt)}function vt(t){var e,n;return typeof t=="string"?{label:t,value:t}:t.type==="group"?{type:"group",label:(e=t.label)!==null&&e!==void 0?e:t.name,value:(n=t.value)!==null&&n!==void 0?n:t.name,key:t.key||t.name,children:t.children.map(s=>vt(s))}:t}const En=It([Ge("auto-complete",` +import{_ as lt,a as ut,u as Tt,b as Vt,c as Lt}from"./SlickOperatorSelect.js";import{_ as ze}from"./HelpText.js";import{ar as It,as as Ge,ay as ct,B as Dt,ax as Nt,bF as Ut,r as N,b as zt,aI as jt,j as I,aC as Wt,J as qt,H as te,aD as Ht,E as De,M as Gt,aL as de,c as me,bH as Kt,br as je,bG as Qt,bo as o,w as We,bt as w,bC as x,by as d,F as V,bD as K,bI as Jt,bJ as X,bx as ne,aA as Ke,bK as Qe,bE as Je,bw as f,bv as h,bu as re,k as P,n as Xt,b3 as dt,i as Te,bs as Zt,b9 as Yt,bm as Fe,az as Xe,D as Be,aX as en}from"./_plugin-vue_export-helper.js";import{f as tn,b as Ne,d as nn,e as rn,B as sn,V as on,g as an,h as ln,i as un,l as cn,a as ft,j as Ve,s as ge,_ as dn,k as fe}from"./main.js";import{p as mt,r as pt,s as Ze,a as gt,_ as fn,b as mn}from"./op_select.js";import{_ as pn}from"./Avatar.js";import{c as gn,N as hn,_ as Ee}from"./Select.js";import{_ as ht}from"./Input.js";import{_ as vn,a as _n,b as bn}from"./DropDown.js";import{S as wn,a as yn}from"./Scrollbar.js";import{_ as Sn,a as xn}from"./IosArrowForward.js";import{_ as kn}from"./TrashOutline.js";import{_ as Mn,a as Cn}from"./RadioGroup.js";import"./download.js";import"./index.js";import"./use-locale.js";import"./get-slot.js";import"./Tag.js";import"./utils.js";import"./VirtualList.js";import"./Forward.js";function Fn(t){return t.map(vt)}function vt(t){var e,n;return typeof t=="string"?{label:t,value:t}:t.type==="group"?{type:"group",label:(e=t.label)!==null&&e!==void 0?e:t.name,value:(n=t.value)!==null&&n!==void 0?n:t.name,key:t.key||t.name,children:t.children.map(s=>vt(s))}:t}const En=It([Ge("auto-complete",` z-index: auto; position: relative; display: inline-flex; @@ -12,4 +12,4 @@ import{_ as lt,a as ut,u as Tt,b as Vt,c as Lt}from"./SlickOperatorSelect.js";im * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 - */class Ps{static getParser(e,n=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new at(e,n)}static parse(e){return new at(e).getResult()}static get BROWSER_MAP(){return Mt}static get ENGINE_MAP(){return ae}static get OS_MAP(){return W}static get PLATFORMS_MAP(){return T}}var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});const Me=Fe,As={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},Os=(0,Me.createElementVNode)("path",{d:"M13 21h13.17l-2.58 2.59L25 25l5-5l-5-5l-1.41 1.41L26.17 19H13v2z",fill:"currentColor"},null,-1),Ts=(0,Me.createElementVNode)("path",{d:"M22 14v-4a1 1 0 0 0-.29-.71l-7-7A1 1 0 0 0 14 2H4a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2h-2v2H4V4h8v6a2 2 0 0 0 2 2h6v2zm-8-4V4.41L19.59 10z",fill:"currentColor"},null,-1),Vs=[Os,Ts];var Ls=Ct.default=(0,Me.defineComponent)({name:"DocumentExport",render:function(e,n){return(0,Me.openBlock)(),(0,Me.createElementBlock)("svg",As,Vs)}}),Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});const Ce=Fe,Is={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},Ds=(0,Ce.createElementVNode)("path",{d:"M28 19H14.83l2.58-2.59L16 15l-5 5l5 5l1.41-1.41L14.83 21H28v-2z",fill:"currentColor"},null,-1),Ns=(0,Ce.createElementVNode)("path",{d:"M24 14v-4a1 1 0 0 0-.29-.71l-7-7A1 1 0 0 0 16 2H6a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2h-2v2H6V4h8v6a2 2 0 0 0 2 2h6v2zm-8-4V4.41L21.59 10z",fill:"currentColor"},null,-1),Us=[Ds,Ns];var zs=Ft.default=(0,Ce.defineComponent)({name:"DocumentImport",render:function(e,n){return(0,Ce.openBlock)(),(0,Ce.createElementBlock)("svg",Is,Us)}}),Et={};Object.defineProperty(Et,"__esModule",{value:!0});const pe=Fe,js={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ws=(0,pe.createElementVNode)("path",{d:"M160 389a20.91 20.91 0 0 1-13.82-5.2l-128-112a21 21 0 0 1 0-31.6l128-112a21 21 0 0 1 27.66 31.61L63.89 256l109.94 96.19A21 21 0 0 1 160 389z",fill:"currentColor"},null,-1),qs=(0,pe.createElementVNode)("path",{d:"M352 389a21 21 0 0 1-13.84-36.81L448.11 256l-109.94-96.19a21 21 0 0 1 27.66-31.61l128 112a21 21 0 0 1 0 31.6l-128 112A20.89 20.89 0 0 1 352 389z",fill:"currentColor"},null,-1),Hs=(0,pe.createElementVNode)("path",{d:"M208 437a21 21 0 0 1-20.12-27l96-320a21 21 0 1 1 40.23 12l-96 320A21 21 0 0 1 208 437z",fill:"currentColor"},null,-1),Gs=[Ws,qs,Hs];var Ks=Et.default=(0,pe.defineComponent)({name:"CodeSlash",render:function(e,n){return(0,pe.openBlock)(),(0,pe.createElementBlock)("svg",js,Gs)}}),Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});const $e=Fe,Qs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Js=(0,$e.createElementVNode)("path",{d:"M21.29 5.89l-10 10a.996.996 0 0 1-1.41 0l-2.83-2.83a.996.996 0 1 1 1.41-1.41l2.12 2.12l9.29-9.29a.996.996 0 0 1 1.41 0c.4.39.4 1.02.01 1.41zM12 20c-4.71 0-8.48-4.09-7.95-8.9c.39-3.52 3.12-6.41 6.61-6.99c1.81-.3 3.53.02 4.99.78a1.003 1.003 0 0 0 .93-1.78c-1.47-.75-3.13-1.16-4.9-1.11c-5.14.16-9.41 4.34-9.67 9.47C1.72 17.24 6.3 22 12 22c1.2 0 2.34-.21 3.41-.6c.68-.25.87-1.13.35-1.65a.98.98 0 0 0-1.04-.23c-.85.31-1.77.48-2.72.48zm7-5h-2c-.55 0-1 .45-1 1s.45 1 1 1h2v2c0 .55.45 1 1 1s1-.45 1-1v-2h2c.55 0 1-.45 1-1s-.45-1-1-1h-2v-2c0-.55-.45-1-1-1s-1 .45-1 1v2z",fill:"currentColor"},null,-1),Xs=[Js];var Zs=Bt.default=(0,$e.defineComponent)({name:"AddTaskRound",render:function(e,n){return(0,$e.openBlock)(),(0,$e.createElementBlock)("svg",Qs,Xs)}}),Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});const Pe=Fe,Ys={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},eo=(0,Pe.createElementVNode)("path",{d:"M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2z",fill:"currentColor"},null,-1),to=[eo];var no=Rt.default=(0,Pe.defineComponent)({name:"PlusRound",render:function(e,n){return(0,Pe.openBlock)(),(0,Pe.createElementBlock)("svg",Ys,to)}});const ro={class:"plan-bar w-980 mx-auto mt-12 mw-980"},so={__name:"Plan",setup(t){const e=ft(),{conf:n}=ge(e),r=Ve(),{ling_xi:s,max_resting_count:a,resting_priority:i,exhaust_require:m,rest_in_full:p,workaholic:M,backup_plans:S,sub_plan:b,refresh_trading:R}=ge(r),{load_plan:j,fill_empty:g}=r,q=me("axios"),y=N("");Be("facility",y);const F=N(null),D=N(!1),ee=Tt(),Z=Rn();async function Y(){D.value=!0,Z.start(),y.value!=""&&(y.value="",await Or(500));const A=Ps.getParser(window.navigator.userAgent);let l;A.getEngine().name=="WebKit"&&(l=await it(F.value.outer)),l=await it(F.value.outer,{pixelRatio:3,backgroundColor:n.value.theme=="light"?"#ffffff":"#000000",style:{margin:0,padding:"8px 0"}}),D.value=!1,Z.finish();const c=new FormData;c.append("img",l);const{data:k}=await q.post("/dialog/save/img",c,{responseType:"blob"}),L=window.URL.createObjectURL(k),v=document.createElement("a");v.href=L,v.setAttribute("download","plan.jpg"),document.body.appendChild(v),v.click(),document.body.removeChild(v),window.URL.revokeObjectURL(L)}const he=me("mobile"),ve=I(()=>{const A=[{label:"主表",value:"main"}];for(let l=0;l{b.value=="main"?E.value={ling_xi:s.value,max_resting_count:a.value,rest_in_full:p.value,resting_priority:i.value,workaholic:M.value,exhaust_require:m.value,refresh_trading:R.value}:E.value=S.value[b.value].conf}),Xe(()=>{b.value=="main"?(s.value=E.value.ling_xi,a.value=E.value.max_resting_count,p.value=E.value.rest_in_full,m.value=E.value.exhaust_require,i.value=E.value.resting_priority,M.value=E.value.workaholic,R.value=E.value.refresh_trading):S.value[b.value].conf=E.value});const ue=N(!1);Be("show_trigger_editor",ue);const le=N(!1),be=N(!1);Be("show_task",le),Be("add_task",be);function we({event:A}){const l=A.target.response;l=="排班已加载"?(b.value="main",j(),ee.success("成功导入排班表!")):ee.error(l)}const ye="/import",Se=me("token"),xe=[{label:"导出JSON文件",key:"json"}];async function ke(){const{data:A}=await q.get("/export-json",{responseType:"blob"}),l=window.URL.createObjectURL(A),c=document.createElement("a");c.href=l,c.setAttribute("download","plan.json"),document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l)}return(A,l)=>{const c=Ar,k=bn,L=en,v=dt,C=yn,U=Ee,J=Vt,oe=_n,_=xr,$=ze,z=Mn,$t=gt,Pt=Cn,ie=ut,At=mn,ce=lt,Ot=Lt;return w(),x(V,null,[f(c),f(k),d("div",ro,[f(C,null,{default:h(()=>[f(v,{disabled:o(b)=="main",onClick:l[0]||(l[0]=O=>b.value=o(b)==0?"main":o(b)-1)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(Sn))]),_:1})]),_:1},8,["disabled"]),f(v,{disabled:o(b)==o(S).length-1||o(S).length==0,onClick:l[1]||(l[1]=O=>b.value=o(b)=="main"?0:o(b)+1)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(xn))]),_:1})]),_:1},8,["disabled"])]),_:1}),f(U,{value:o(b),"onUpdate:value":l[2]||(l[2]=O=>Te(b)?b.value=O:null),options:o(ve)},null,8,["value","options"]),f(C,null,{default:h(()=>[f(v,{onClick:_e},{icon:h(()=>[f(L,{size:22},{default:h(()=>[f(o(no))]),_:1})]),default:h(()=>[l[13]||(l[13]=P(" 新建副表 "))]),_:1}),f(v,{disabled:o(b)=="main",onClick:l[3]||(l[3]=O=>ue.value=!0)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(Ks))]),_:1})]),default:h(()=>[l[14]||(l[14]=P(" 编辑触发条件 "))]),_:1},8,["disabled"]),f(v,{disabled:o(b)=="main",onClick:l[4]||(l[4]=O=>le.value=!0)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(Zs))]),_:1})]),default:h(()=>[l[15]||(l[15]=P(" 编辑任务 "))]),_:1},8,["disabled"]),f(v,{disabled:o(b)=="main",onClick:H},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(kn))]),_:1})]),default:h(()=>[l[16]||(l[16]=P(" 删除此副表 "))]),_:1},8,["disabled"])]),_:1}),f(J,{style:{width:"auto","margin-left":"8px"},action:ye,headers:{token:o(Se)},"show-file-list":!1,name:"img",onFinish:we},{default:h(()=>[f(v,null,{icon:h(()=>[f(L,null,{default:h(()=>[f(o(zs))]),_:1})]),default:h(()=>[l[17]||(l[17]=P(" 导入排班 "))]),_:1})]),_:1},8,["headers"]),f(oe,{select:ke,options:xe},{default:h(()=>[f(v,{onClick:Y,loading:o(D),disabled:o(D)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(Ls))]),_:1})]),default:h(()=>[l[18]||(l[18]=P(" 导出图片 "))]),_:1},8,["loading","disabled"])]),_:1})]),f(_,{ref_key:"plan_editor",ref:F,class:"w-980 mx-auto mw-980 px-12"},null,512),f(Ot,{class:"w-980 mx-auto mb-12 px-12 mw-980","label-placement":o(he)?"top":"left","show-feedback":!1,"label-width":"160","label-align":"left"},{default:h(()=>[f(ie,null,{label:h(()=>[l[20]||(l[20]=d("span",null,"令夕模式",-1)),f($,null,{default:h(()=>l[19]||(l[19]=[d("div",null,"令夕上班时起作用",-1),d("div",null,"需要手动对齐心情",-1),d("div",null,"感知:夕心情-令心情=12",-1),d("div",null,"烟火:令心情-夕心情=12",-1),d("div",null,"均衡:夕令心情一样",-1)])),_:1})]),default:h(()=>[f(Pt,{value:o(E).ling_xi,"onUpdate:value":l[5]||(l[5]=O=>o(E).ling_xi=O)},{default:h(()=>[f($t,null,{default:h(()=>[f(z,{value:1},{default:h(()=>l[21]||(l[21]=[P("感知信息")])),_:1}),f(z,{value:2},{default:h(()=>l[22]||(l[22]=[P("人间烟火")])),_:1}),f(z,{value:3},{default:h(()=>l[23]||(l[23]=[P("均衡模式")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),f(ie,{label:"宿舍单回位数量"},{default:h(()=>[f(At,{value:o(E).max_resting_count,"onUpdate:value":l[6]||(l[6]=O=>o(E).max_resting_count=O)},{suffix:h(()=>l[24]||(l[24]=[P("人")])),_:1},8,["value"])]),_:1}),f(ie,{label:"需要回满心情的干员"},{default:h(()=>[f(ce,{modelValue:o(E).rest_in_full,"onUpdate:modelValue":l[7]||(l[7]=O=>o(E).rest_in_full=O)},null,8,["modelValue"])]),_:1}),f(ie,{label:"需要用尽心情的干员"},{default:h(()=>[f(ce,{modelValue:o(E).exhaust_require,"onUpdate:modelValue":l[8]||(l[8]=O=>o(E).exhaust_require=O)},null,8,["modelValue"])]),_:1}),f(ie,{label:"宿舍黑名单(主力)"},{default:h(()=>[f(ce,{modelValue:o(E).workaholic,"onUpdate:modelValue":l[9]||(l[9]=O=>o(E).workaholic=O)},null,8,["modelValue"])]),_:1}),f(ie,{label:"在群回位休息的干员"},{default:h(()=>[f(ce,{modelValue:o(E).resting_priority,"onUpdate:modelValue":l[10]||(l[10]=O=>o(E).resting_priority=O)},null,8,["modelValue"])]),_:1}),f(ie,null,{label:h(()=>[l[26]||(l[26]=d("span",null,"跑单时间刷新干员",-1)),f($,null,{default:h(()=>l[25]||(l[25]=[d("p",null,"贸易站外影响贸易效率的干员",-1),d("p",null,[P(" 默认情况下,mower-ng 只在贸易站内干员换班后重读其所在贸易站的订单剩余时间。"),d("br"),P(" 若有贸易站外的干员影响贸易效率,且与贸易站内的干员不在一组,则需写入此选项中。 ")],-1)])),_:1})]),default:h(()=>[f(ce,{modelValue:o(E).refresh_trading,"onUpdate:modelValue":l[11]||(l[11]=O=>o(E).refresh_trading=O),select_placeholder:"填入在贸易站外影响贸易效率的干员"},null,8,["modelValue"])]),_:1}),o(b)!="main"?(w(),re(ie,{key:0,label:"宿舍黑名单(非主力)"},{default:h(()=>[f(ce,{modelValue:o(E).free_blacklist,"onUpdate:modelValue":l[12]||(l[12]=O=>o(E).free_blacklist=O)},null,8,["modelValue"])]),_:1})):ne("",!0)]),_:1},8,["label-placement"])],64)}}},Eo=je(so,[["__scopeId","data-v-d1aa1a36"]]);export{Eo as default}; + */class Ps{static getParser(e,n=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new at(e,n)}static parse(e){return new at(e).getResult()}static get BROWSER_MAP(){return Mt}static get ENGINE_MAP(){return ae}static get OS_MAP(){return W}static get PLATFORMS_MAP(){return T}}var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});const Me=Fe,As={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},Os=(0,Me.createElementVNode)("path",{d:"M13 21h13.17l-2.58 2.59L25 25l5-5l-5-5l-1.41 1.41L26.17 19H13v2z",fill:"currentColor"},null,-1),Ts=(0,Me.createElementVNode)("path",{d:"M22 14v-4a1 1 0 0 0-.29-.71l-7-7A1 1 0 0 0 14 2H4a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2h-2v2H4V4h8v6a2 2 0 0 0 2 2h6v2zm-8-4V4.41L19.59 10z",fill:"currentColor"},null,-1),Vs=[Os,Ts];var Ls=Ct.default=(0,Me.defineComponent)({name:"DocumentExport",render:function(e,n){return(0,Me.openBlock)(),(0,Me.createElementBlock)("svg",As,Vs)}}),Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});const Ce=Fe,Is={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},Ds=(0,Ce.createElementVNode)("path",{d:"M28 19H14.83l2.58-2.59L16 15l-5 5l5 5l1.41-1.41L14.83 21H28v-2z",fill:"currentColor"},null,-1),Ns=(0,Ce.createElementVNode)("path",{d:"M24 14v-4a1 1 0 0 0-.29-.71l-7-7A1 1 0 0 0 16 2H6a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2h-2v2H6V4h8v6a2 2 0 0 0 2 2h6v2zm-8-4V4.41L21.59 10z",fill:"currentColor"},null,-1),Us=[Ds,Ns];var zs=Ft.default=(0,Ce.defineComponent)({name:"DocumentImport",render:function(e,n){return(0,Ce.openBlock)(),(0,Ce.createElementBlock)("svg",Is,Us)}}),Et={};Object.defineProperty(Et,"__esModule",{value:!0});const pe=Fe,js={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ws=(0,pe.createElementVNode)("path",{d:"M160 389a20.91 20.91 0 0 1-13.82-5.2l-128-112a21 21 0 0 1 0-31.6l128-112a21 21 0 0 1 27.66 31.61L63.89 256l109.94 96.19A21 21 0 0 1 160 389z",fill:"currentColor"},null,-1),qs=(0,pe.createElementVNode)("path",{d:"M352 389a21 21 0 0 1-13.84-36.81L448.11 256l-109.94-96.19a21 21 0 0 1 27.66-31.61l128 112a21 21 0 0 1 0 31.6l-128 112A20.89 20.89 0 0 1 352 389z",fill:"currentColor"},null,-1),Hs=(0,pe.createElementVNode)("path",{d:"M208 437a21 21 0 0 1-20.12-27l96-320a21 21 0 1 1 40.23 12l-96 320A21 21 0 0 1 208 437z",fill:"currentColor"},null,-1),Gs=[Ws,qs,Hs];var Ks=Et.default=(0,pe.defineComponent)({name:"CodeSlash",render:function(e,n){return(0,pe.openBlock)(),(0,pe.createElementBlock)("svg",js,Gs)}}),Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});const $e=Fe,Qs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Js=(0,$e.createElementVNode)("path",{d:"M21.29 5.89l-10 10a.996.996 0 0 1-1.41 0l-2.83-2.83a.996.996 0 1 1 1.41-1.41l2.12 2.12l9.29-9.29a.996.996 0 0 1 1.41 0c.4.39.4 1.02.01 1.41zM12 20c-4.71 0-8.48-4.09-7.95-8.9c.39-3.52 3.12-6.41 6.61-6.99c1.81-.3 3.53.02 4.99.78a1.003 1.003 0 0 0 .93-1.78c-1.47-.75-3.13-1.16-4.9-1.11c-5.14.16-9.41 4.34-9.67 9.47C1.72 17.24 6.3 22 12 22c1.2 0 2.34-.21 3.41-.6c.68-.25.87-1.13.35-1.65a.98.98 0 0 0-1.04-.23c-.85.31-1.77.48-2.72.48zm7-5h-2c-.55 0-1 .45-1 1s.45 1 1 1h2v2c0 .55.45 1 1 1s1-.45 1-1v-2h2c.55 0 1-.45 1-1s-.45-1-1-1h-2v-2c0-.55-.45-1-1-1s-1 .45-1 1v2z",fill:"currentColor"},null,-1),Xs=[Js];var Zs=Bt.default=(0,$e.defineComponent)({name:"AddTaskRound",render:function(e,n){return(0,$e.openBlock)(),(0,$e.createElementBlock)("svg",Qs,Xs)}}),Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});const Pe=Fe,Ys={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},eo=(0,Pe.createElementVNode)("path",{d:"M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2z",fill:"currentColor"},null,-1),to=[eo];var no=Rt.default=(0,Pe.defineComponent)({name:"PlusRound",render:function(e,n){return(0,Pe.openBlock)(),(0,Pe.createElementBlock)("svg",Ys,to)}});const ro={class:"plan-bar w-980 mx-auto mt-12 mw-980"},so={__name:"Plan",setup(t){const e=ft(),{conf:n}=ge(e),r=Ve(),{ling_xi:s,max_resting_count:a,resting_priority:i,exhaust_require:m,rest_in_full:p,workaholic:M,backup_plans:S,sub_plan:b,refresh_trading:R}=ge(r),{load_plan:j,fill_empty:g}=r,q=me("axios"),y=N("");Be("facility",y);const F=N(null),D=N(!1),ee=Tt(),Z=Rn();async function Y(){D.value=!0,Z.start(),y.value!=""&&(y.value="",await Or(500));const A=Ps.getParser(window.navigator.userAgent);let l;A.getEngine().name=="WebKit"&&(l=await it(F.value.outer)),l=await it(F.value.outer,{pixelRatio:3,backgroundColor:n.value.theme=="light"?"#ffffff":"#000000",style:{margin:0,padding:"8px 0"}}),D.value=!1,Z.finish();const c=new FormData;c.append("img",l);const{data:k}=await q.post("/dialog/save/img",c,{responseType:"blob"}),L=window.URL.createObjectURL(k),v=document.createElement("a");v.href=L,v.setAttribute("download","plan.jpg"),document.body.appendChild(v),v.click(),document.body.removeChild(v),window.URL.revokeObjectURL(L)}const he=me("mobile"),ve=I(()=>{const A=[{label:"主表",value:"main"}];for(let l=0;l{b.value=="main"?E.value={ling_xi:s.value,max_resting_count:a.value,rest_in_full:p.value,resting_priority:i.value,workaholic:M.value,exhaust_require:m.value,refresh_trading:R.value}:E.value=S.value[b.value].conf}),Xe(()=>{b.value=="main"?(s.value=E.value.ling_xi,a.value=E.value.max_resting_count,p.value=E.value.rest_in_full,m.value=E.value.exhaust_require,i.value=E.value.resting_priority,M.value=E.value.workaholic,R.value=E.value.refresh_trading):S.value[b.value].conf=E.value});const ue=N(!1);Be("show_trigger_editor",ue);const le=N(!1),be=N(!1);Be("show_task",le),Be("add_task",be);function we({event:A}){const l=A.target.response;l=="排班已加载"?(b.value="main",j(),ee.success("成功导入排班表!")):ee.error(l)}const ye="/import",Se=me("token"),xe=[{label:"导出JSON文件",key:"json"}];async function ke(){const{data:A}=await q.get("/export-json",{responseType:"blob"}),l=window.URL.createObjectURL(A),c=document.createElement("a");c.href=l,c.setAttribute("download","plan.json"),document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l)}return(A,l)=>{const c=Ar,k=bn,L=en,v=dt,C=yn,U=Ee,J=Vt,oe=_n,_=xr,$=ze,z=Mn,$t=gt,Pt=Cn,ie=ut,At=mn,ce=lt,Ot=Lt;return w(),x(V,null,[f(c),f(k),d("div",ro,[f(C,null,{default:h(()=>[f(v,{disabled:o(b)=="main",onClick:l[0]||(l[0]=O=>b.value=o(b)==0?"main":o(b)-1)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(Sn))]),_:1})]),_:1},8,["disabled"]),f(v,{disabled:o(b)==o(S).length-1||o(S).length==0,onClick:l[1]||(l[1]=O=>b.value=o(b)=="main"?0:o(b)+1)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(xn))]),_:1})]),_:1},8,["disabled"])]),_:1}),f(U,{value:o(b),"onUpdate:value":l[2]||(l[2]=O=>Te(b)?b.value=O:null),options:o(ve)},null,8,["value","options"]),f(C,null,{default:h(()=>[f(v,{onClick:_e},{icon:h(()=>[f(L,{size:22},{default:h(()=>[f(o(no))]),_:1})]),default:h(()=>[l[13]||(l[13]=P(" 新建副表 "))]),_:1}),f(v,{disabled:o(b)=="main",onClick:l[3]||(l[3]=O=>ue.value=!0)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(Ks))]),_:1})]),default:h(()=>[l[14]||(l[14]=P(" 编辑触发条件 "))]),_:1},8,["disabled"]),f(v,{disabled:o(b)=="main",onClick:l[4]||(l[4]=O=>le.value=!0)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(Zs))]),_:1})]),default:h(()=>[l[15]||(l[15]=P(" 编辑任务 "))]),_:1},8,["disabled"]),f(v,{disabled:o(b)=="main",onClick:H},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(kn))]),_:1})]),default:h(()=>[l[16]||(l[16]=P(" 删除此副表 "))]),_:1},8,["disabled"])]),_:1}),f(J,{style:{width:"auto","margin-left":"8px"},action:ye,headers:{token:o(Se)},"show-file-list":!1,name:"img",onFinish:we},{default:h(()=>[f(v,null,{icon:h(()=>[f(L,null,{default:h(()=>[f(o(zs))]),_:1})]),default:h(()=>[l[17]||(l[17]=P(" 导入排班 "))]),_:1})]),_:1},8,["headers"]),f(oe,{select:ke,options:xe},{default:h(()=>[f(v,{onClick:Y,loading:o(D),disabled:o(D)},{icon:h(()=>[f(L,null,{default:h(()=>[f(o(Ls))]),_:1})]),default:h(()=>[l[18]||(l[18]=P(" 导出图片 "))]),_:1},8,["loading","disabled"])]),_:1})]),f(_,{ref_key:"plan_editor",ref:F,class:"w-980 mx-auto mw-980 px-12"},null,512),f(Ot,{class:"w-980 mx-auto mb-12 px-12 mw-980","label-placement":o(he)?"top":"left","show-feedback":!1,"label-width":"160","label-align":"left"},{default:h(()=>[f(ie,null,{label:h(()=>[l[20]||(l[20]=d("span",null,"令夕模式",-1)),f($,null,{default:h(()=>l[19]||(l[19]=[d("div",null,"令夕上班时起作用",-1),d("div",null,"需要手动对齐心情",-1),d("div",null,"感知:夕心情-令心情=12",-1),d("div",null,"烟火:令心情-夕心情=12",-1),d("div",null,"均衡:夕令心情一样",-1)])),_:1})]),default:h(()=>[f(Pt,{value:o(E).ling_xi,"onUpdate:value":l[5]||(l[5]=O=>o(E).ling_xi=O)},{default:h(()=>[f($t,null,{default:h(()=>[f(z,{value:1},{default:h(()=>l[21]||(l[21]=[P("感知信息")])),_:1}),f(z,{value:2},{default:h(()=>l[22]||(l[22]=[P("人间烟火")])),_:1}),f(z,{value:3},{default:h(()=>l[23]||(l[23]=[P("均衡模式")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),f(ie,{label:"宿舍单回位数量"},{default:h(()=>[f(At,{value:o(E).max_resting_count,"onUpdate:value":l[6]||(l[6]=O=>o(E).max_resting_count=O)},{suffix:h(()=>l[24]||(l[24]=[P("人")])),_:1},8,["value"])]),_:1}),f(ie,{label:"需要回满心情的干员"},{default:h(()=>[f(ce,{modelValue:o(E).rest_in_full,"onUpdate:modelValue":l[7]||(l[7]=O=>o(E).rest_in_full=O)},null,8,["modelValue"])]),_:1}),f(ie,{label:"需要用尽心情的干员"},{default:h(()=>[f(ce,{modelValue:o(E).exhaust_require,"onUpdate:modelValue":l[8]||(l[8]=O=>o(E).exhaust_require=O)},null,8,["modelValue"])]),_:1}),f(ie,{label:"宿舍黑名单(主力)"},{default:h(()=>[f(ce,{modelValue:o(E).workaholic,"onUpdate:modelValue":l[9]||(l[9]=O=>o(E).workaholic=O)},null,8,["modelValue"])]),_:1}),f(ie,{label:"在群回位休息的干员"},{default:h(()=>[f(ce,{modelValue:o(E).resting_priority,"onUpdate:modelValue":l[10]||(l[10]=O=>o(E).resting_priority=O)},null,8,["modelValue"])]),_:1}),f(ie,null,{label:h(()=>[l[26]||(l[26]=d("span",null,"跑单时间刷新干员",-1)),f($,null,{default:h(()=>l[25]||(l[25]=[d("p",null,"贸易站外影响贸易效率的干员",-1),d("p",null,[P(" 默认情况下,mower-ng 只在贸易站内干员换班后重读其所在贸易站的订单剩余时间。"),d("br"),P(" 若有贸易站外的干员影响贸易效率,且与贸易站内的干员不在一组,则需写入此选项中。 ")],-1)])),_:1})]),default:h(()=>[f(ce,{modelValue:o(E).refresh_trading,"onUpdate:modelValue":l[11]||(l[11]=O=>o(E).refresh_trading=O),select_placeholder:"填入在贸易站外影响贸易效率的干员"},null,8,["modelValue"])]),_:1}),o(b)!="main"?(w(),re(ie,{key:0,label:"宿舍黑名单(非主力)"},{default:h(()=>[f(ce,{modelValue:o(E).free_blacklist,"onUpdate:modelValue":l[12]||(l[12]=O=>o(E).free_blacklist=O)},null,8,["modelValue"])]),_:1})):ne("",!0)]),_:1},8,["label-placement"])],64)}}},Fo=je(so,[["__scopeId","data-v-d1aa1a36"]]);export{Fo as default}; diff --git a/ui/dist/assets/Scrollbar.js b/ui/dist/assets/Scrollbar.js index 2e58eb2..4a3a3e7 100644 --- a/ui/dist/assets/Scrollbar.js +++ b/ui/dist/assets/Scrollbar.js @@ -1,32 +1,90 @@ -import{as as a,at as u,ar as o,av as s,au as d,B as b,ax as f,bW as m,D as h,b0 as $,H as p,c1 as y,ay as v,r as S,b8 as x}from"./_plugin-vue_export-helper.js";const t="0!important",g="-1px!important";function i(r){return s(`${r}-type`,[o("& +",[a("button",{},[s(`${r}-type`,[d("border",{borderLeftWidth:t}),d("state-border",{left:g})])])])])}function l(r){return s(`${r}-type`,[o("& +",[a("button",[s(`${r}-type`,[d("border",{borderTopWidth:t}),d("state-border",{top:g})])])])])}const B=a("button-group",` +import{Z as Se,ai as Z,H as t,B as j,as as O,at as ee,ar as M,av as T,au as V,ax as Y,bW as ro,D as oe,b0 as no,c1 as io,ay as te,z as Le,ap as ao,an as lo,bb as ve,b as re,r as y,w as so,u as Oe,y as W,c as Re,j as uo,aC as co,J as fo,b2 as z,E as ge,aD as K,F as q,aA as ho,v as Q,bJ as vo,L as go,q as mo,s as me,az as pe,b8 as po}from"./_plugin-vue_export-helper.js";import{i as wo,o as bo}from"./utils.js";import{am as xo,f as Co,an as So,ao as Lo,a5 as Oo,a7 as Ro}from"./main.js";import{u as Po}from"./use-locale.js";import{d as yo}from"./download.js";function Io(e,l,i,d){for(var s=-1,m=e==null?0:e.length;++s{var e;(e=r.value)===null||e===void 0||e.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var e;(e=r.value)===null||e===void 0||e.scrollBy(n[0],n[1])}}),{scrollbarInstRef:r})},render(){return p(x,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}});export{C as S,_}; +`,[ee("vertical",{flexDirection:"row"},[ee("rtl",[O("button",[M("&:first-child:not(:last-child)",` + margin-right: ${h}; + border-top-right-radius: ${h}; + border-bottom-right-radius: ${h}; + `),M("&:last-child:not(:first-child)",` + margin-left: ${h}; + border-top-left-radius: ${h}; + border-bottom-left-radius: ${h}; + `),M("&:not(:first-child):not(:last-child)",` + margin-left: ${h}; + margin-right: ${h}; + border-radius: ${h}; + `),N("default"),T("ghost",[N("primary"),N("info"),N("success"),N("warning"),N("error")])])])]),T("vertical",{flexDirection:"column"},[O("button",[M("&:first-child:not(:last-child)",` + margin-bottom: ${h}; + margin-left: ${h}; + margin-right: ${h}; + border-bottom-left-radius: ${h}; + border-bottom-right-radius: ${h}; + `),M("&:last-child:not(:first-child)",` + margin-top: ${h}; + margin-left: ${h}; + margin-right: ${h}; + border-top-left-radius: ${h}; + border-top-right-radius: ${h}; + `),M("&:not(:first-child):not(:last-child)",` + margin: ${h}; + border-radius: ${h}; + `),B("default"),T("ghost",[B("primary"),B("info"),B("success"),B("warning"),B("error")])])])]),Rt={size:{type:String,default:void 0},vertical:Boolean},Ht=j({name:"ButtonGroup",props:Rt,setup(e){const{mergedClsPrefixRef:l,mergedRtlRef:i}=Y(e);return ro("-button-group",Ot,l),oe(io,e),{rtlEnabled:no("ButtonGroup",i,l),mergedClsPrefix:l}},render(){const{mergedClsPrefix:e}=this;return t("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),ne=Object.assign(Object.assign({},te.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),He=Le("n-image");function Pt(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const yt=ao({name:"Image",common:lo,peers:{Tooltip:xo},self:Pt}),It=t("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),$t=t("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),Mt=t("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),zt=M([M("body >",[O("image-container","position: fixed;")]),O("image-preview-container",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + `),O("image-preview-overlay",` + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + background: rgba(0, 0, 0, .3); + `,[ve()]),O("image-preview-toolbar",` + z-index: 1; + position: absolute; + left: 50%; + transform: translateX(-50%); + border-radius: var(--n-toolbar-border-radius); + height: 48px; + bottom: 40px; + padding: 0 12px; + background: var(--n-toolbar-color); + box-shadow: var(--n-toolbar-box-shadow); + color: var(--n-toolbar-icon-color); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[O("base-icon",` + padding: 0 8px; + font-size: 28px; + cursor: pointer; + `),ve()]),O("image-preview-wrapper",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + pointer-events: none; + `,[Co()]),O("image-preview",` + user-select: none; + -webkit-user-select: none; + pointer-events: all; + margin: auto; + max-height: calc(100vh - 32px); + max-width: calc(100vw - 32px); + transition: transform .3s var(--n-bezier); + `),O("image",` + display: inline-flex; + max-height: 100%; + max-width: 100%; + `,[ee("preview-disabled",` + cursor: pointer; + `),M("img",` + border-radius: inherit; + `)])]),U=32,je=j({name:"ImagePreview",props:Object.assign(Object.assign({},ne),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const l=te("Image","-image",zt,yt,e,re(e,"clsPrefix"));let i=null;const d=y(null),s=y(null),m=y(void 0),p=y(!1),w=y(!1),{localeRef:v}=Po("Image");function n(){const{value:o}=s;if(!i||!o)return;const{style:a}=o,r=i.getBoundingClientRect(),c=r.left+r.width/2,f=r.top+r.height/2;a.transformOrigin=`${c}px ${f}px`}function u(o){var a,r;switch(o.key){case" ":o.preventDefault();break;case"ArrowLeft":(a=e.onPrev)===null||a===void 0||a.call(e);break;case"ArrowRight":(r=e.onNext)===null||r===void 0||r.call(e);break;case"Escape":ce();break}}so(p,o=>{o?Q("keydown",document,u):W("keydown",document,u)}),Oe(()=>{W("keydown",document,u)});let g=0,R=0,S=0,L=0,E=0,X=0,ie=0,ae=0,F=!1;function le(o){const{clientX:a,clientY:r}=o;S=a-g,L=r-R,Ro(I)}function We(o){const{mouseUpClientX:a,mouseUpClientY:r,mouseDownClientX:c,mouseDownClientY:f}=o,C=c-a,P=f-r,$=`vertical${P>0?"Top":"Bottom"}`,k=`horizontal${C>0?"Left":"Right"}`;return{moveVerticalDirection:$,moveHorizontalDirection:k,deltaHorizontal:C,deltaVertical:P}}function se(o){const{value:a}=d;if(!a)return{offsetX:0,offsetY:0};const r=a.getBoundingClientRect(),{moveVerticalDirection:c,moveHorizontalDirection:f,deltaHorizontal:C,deltaVertical:P}=o||{};let $=0,k=0;return r.width<=window.innerWidth?$=0:r.left>0?$=(r.width-window.innerWidth)/2:r.right0?k=(r.height-window.innerHeight)/2:r.bottom.5){const o=x;D-=1,x=Math.max(.5,Math.pow(G,D));const a=o-x;I(!1);const r=se();x+=a,I(!1),x-=a,S=r.offsetX,L=r.offsetY,I()}}function Qe(){const o=m.value;o&&yo(o,void 0)}function I(o=!0){var a;const{value:r}=d;if(!r)return;const{style:c}=r,f=vo((a=b==null?void 0:b.previewedImgPropsRef.value)===null||a===void 0?void 0:a.style);let C="";if(typeof f=="string")C=`${f};`;else for(const $ in f)C+=`${pt($)}: ${f[$]};`;const P=`transform-origin: center; transform: translateX(${S}px) translateY(${L}px) rotate(${A}deg) scale(${x});`;F?c.cssText=`${C}cursor: grabbing; transition: none;${P}`:c.cssText=`${C}cursor: grab;${P}${o?"":"transition: none;"}`,o||r.offsetHeight}function ce(){p.value=!p.value,w.value=!0}function eo(){x=de(),D=Math.ceil(Math.log(x)/Math.log(G)),S=0,L=0,I()}const oo={setPreviewSrc:o=>{m.value=o},setThumbnailEl:o=>{i=o},toggleShow:ce};function to(o,a){if(e.showToolbarTooltip){const{value:r}=l;return t(Oo,{to:!1,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>v.value[a],trigger:()=>o})}else return o}const fe=uo(()=>{const{common:{cubicBezierEaseInOut:o},self:{toolbarIconColor:a,toolbarBorderRadius:r,toolbarBoxShadow:c,toolbarColor:f}}=l.value;return{"--n-bezier":o,"--n-toolbar-icon-color":a,"--n-toolbar-color":f,"--n-toolbar-border-radius":r,"--n-toolbar-box-shadow":c}}),{inlineThemeDisabled:he}=Y(),_=he?co("image-preview",void 0,fe,e):void 0;return Object.assign({previewRef:d,previewWrapperRef:s,previewSrc:m,show:p,appear:fo(),displayed:w,previewedImgProps:b==null?void 0:b.previewedImgPropsRef,handleWheel(o){o.preventDefault()},handlePreviewMousedown:Ue,handlePreviewDblclick:Ve,syncTransformOrigin:n,handleAfterLeave:()=>{J(),A=0,w.value=!1},handleDragStart:o=>{var a,r;(r=(a=b==null?void 0:b.previewedImgPropsRef.value)===null||a===void 0?void 0:a.onDragstart)===null||r===void 0||r.call(a,o),o.preventDefault()},zoomIn:Ke,zoomOut:qe,handleDownloadClick:Qe,rotateCounterclockwise:Fe,rotateClockwise:Ge,handleSwitchPrev:Ye,handleSwitchNext:Xe,withTooltip:to,resizeToOrignalImageSize:eo,cssVars:he?void 0:fe,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender},oo)},render(){var e,l;const{clsPrefix:i,renderToolbar:d,withTooltip:s}=this,m=s(t(z,{clsPrefix:i,onClick:this.handleSwitchPrev},{default:()=>It}),"tipPrevious"),p=s(t(z,{clsPrefix:i,onClick:this.handleSwitchNext},{default:()=>$t}),"tipNext"),w=s(t(z,{clsPrefix:i,onClick:this.rotateCounterclockwise},{default:()=>t(xt,null)}),"tipCounterclockwise"),v=s(t(z,{clsPrefix:i,onClick:this.rotateClockwise},{default:()=>t(bt,null)}),"tipClockwise"),n=s(t(z,{clsPrefix:i,onClick:this.resizeToOrignalImageSize},{default:()=>t(Lt,null)}),"tipOriginalSize"),u=s(t(z,{clsPrefix:i,onClick:this.zoomOut},{default:()=>t(St,null)}),"tipZoomOut"),g=s(t(z,{clsPrefix:i,onClick:this.handleDownloadClick},{default:()=>t(wt,null)}),"tipDownload"),R=s(t(z,{clsPrefix:i,onClick:this.toggleShow},{default:()=>Mt}),"tipClose"),S=s(t(z,{clsPrefix:i,onClick:this.zoomIn},{default:()=>t(Ct,null)}),"tipZoomIn");return t(q,null,(l=(e=this.$slots).default)===null||l===void 0?void 0:l.call(e),t(So,{show:this.show},{default:()=>{var L;return this.show||this.displayed?((L=this.onRender)===null||L===void 0||L.call(this),ge(t("div",{class:[`${i}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},t(K,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?t("div",{class:`${i}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?t(K,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?t("div",{class:`${i}-image-preview-toolbar`},d?d({nodes:{prev:m,next:p,rotateCounterclockwise:w,rotateClockwise:v,resizeToOriginalSize:n,zoomOut:u,zoomIn:S,download:g,close:R}}):t(q,null,this.onPrev?t(q,null,m,p):null,w,v,n,u,S,g,R)):null}):null,t(K,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:E={}}=this;return ge(t("div",{class:`${i}-image-preview-wrapper`,ref:"previewWrapperRef"},t("img",Object.assign({},E,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${i}-image-preview`,E.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[ho,this.show]])}})),[[Lo,{enabled:this.show}]])):null}}))}}),Ze=Le("n-image-group"),kt=ne,jt=j({name:"ImageGroup",props:kt,setup(e){let l;const{mergedClsPrefixRef:i}=Y(e),d=`c${go()}`,s=mo(),m=y(null),p=v=>{var n;l=v,(n=m.value)===null||n===void 0||n.setPreviewSrc(v)};function w(v){var n,u;if(!(s!=null&&s.proxy))return;const R=s.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${d}]:not([data-error=true])`);if(!R.length)return;const S=Array.from(R).findIndex(L=>L.dataset.previewSrc===l);~S?p(R[(S+v+R.length)%R.length].dataset.previewSrc):p(R[0].dataset.previewSrc),v===1?(n=e.onPreviewNext)===null||n===void 0||n.call(e):(u=e.onPreviewPrev)===null||u===void 0||u.call(e)}return oe(Ze,{mergedClsPrefixRef:i,setPreviewSrc:p,setThumbnailEl:v=>{var n;(n=m.value)===null||n===void 0||n.setThumbnailEl(v)},toggleShow:()=>{var v;(v=m.value)===null||v===void 0||v.toggleShow()},groupId:d,renderToolbarRef:re(e,"renderToolbar")}),{mergedClsPrefix:i,previewInstRef:m,next:()=>{w(1)},prev:()=>{w(-1)}}},render(){return t(je,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},this.$slots)}}),Tt=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},ne),Zt=j({name:"Image",props:Tt,inheritAttrs:!1,setup(e){const l=y(null),i=y(!1),d=y(null),s=Re(Ze,null),{mergedClsPrefixRef:m}=s||Y(e),p={click:()=>{if(e.previewDisabled||i.value)return;const n=e.previewSrc||e.src;if(s){s.setPreviewSrc(n),s.setThumbnailEl(l.value),s.toggleShow();return}const{value:u}=d;u&&(u.setPreviewSrc(n),u.setThumbnailEl(l.value),u.toggleShow())}},w=y(!e.lazy);me(()=>{var n;(n=l.value)===null||n===void 0||n.setAttribute("data-group-id",(s==null?void 0:s.groupId)||"")}),me(()=>{if(e.lazy&&e.intersectionObserverOptions){let n;const u=pe(()=>{n==null||n(),n=void 0,n=bo(l.value,e.intersectionObserverOptions,w)});Oe(()=>{u(),n==null||n()})}}),pe(()=>{var n;e.src||((n=e.imgProps)===null||n===void 0||n.src),i.value=!1});const v=y(!1);return oe(He,{previewedImgPropsRef:re(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:m,groupId:s==null?void 0:s.groupId,previewInstRef:d,imageRef:l,showError:i,shouldStartLoading:w,loaded:v,mergedOnClick:n=>{var u,g;p.click(),(g=(u=e.imgProps)===null||u===void 0?void 0:u.onClick)===null||g===void 0||g.call(u,n)},mergedOnError:n=>{if(!w.value)return;i.value=!0;const{onError:u,imgProps:{onError:g}={}}=e;u==null||u(n),g==null||g(n)},mergedOnLoad:n=>{const{onLoad:u,imgProps:{onLoad:g}={}}=e;u==null||u(n),g==null||g(n),v.value=!0}},p)},render(){var e,l;const{mergedClsPrefix:i,imgProps:d={},loaded:s,$attrs:m,lazy:p}=this,w=(l=(e=this.$slots).placeholder)===null||l===void 0?void 0:l.call(e),v=this.src||d.src,n=t("img",Object.assign(Object.assign({},d),{ref:"imageRef",width:this.width||d.width,height:this.height||d.height,src:this.showError?this.fallbackSrc:p&&this.intersectionObserverOptions?this.shouldStartLoading?v:void 0:v,alt:this.alt||d.alt,"aria-label":this.alt||d.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:wo&&p&&!this.intersectionObserverOptions?"lazy":"eager",style:[d.style||"",w&&!s?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return t("div",Object.assign({},m,{role:"none",class:[m.class,`${i}-image`,(this.previewDisabled||this.showError)&&`${i}-image--preview-disabled`]}),this.groupId?n:t(je,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:i,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar},{default:()=>n,toolbar:()=>{var u,g;return(g=(u=this.$slots).toolbar)===null||g===void 0?void 0:g.call(u)}}),!s&&w)}}),Et=Object.assign(Object.assign({},te.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Wt=j({name:"Scrollbar",props:Et,setup(){const e=y(null);return Object.assign(Object.assign({},{scrollTo:(...i)=>{var d;(d=e.value)===null||d===void 0||d.scrollTo(i[0],i[1])},scrollBy:(...i)=>{var d;(d=e.value)===null||d===void 0||d.scrollBy(i[0],i[1])}}),{scrollbarInstRef:e})},render(){return t(po,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}});export{wt as D,jt as N,Wt as S,Zt as _,Ht as a}; diff --git a/ui/dist/assets/Settings.js b/ui/dist/assets/Settings.js index 72ba4d5..2d31b73 100644 --- a/ui/dist/assets/Settings.js +++ b/ui/dist/assets/Settings.js @@ -1,4 +1,4 @@ -import{x as et,y as $t,z as Tt,C as zt,D as Pt,E as At,a as te,s as Z,v as ut,j as Qe,k as tt}from"./main.js";import{B as ve,H as T,aG as Ot,r as j,ap as Bt,an as It,aq as Ft,aO as Mt,aV as Dt,am as Vt,z as Lt,c as G,b3 as ce,A as Nt,b5 as Et,b8 as We,b2 as jt,aI as qt,b as Me,j as L,as as se,av as me,au as ae,ar as lt,at as Ht,ay as Ve,ax as dt,bF as Gt,aY as Ce,bj as Kt,D as Wt,J as Yt,aL as Ke,aC as Qt,bt as g,bu as O,bv as l,bw as e,bo as t,k as d,br as be,s as pt,by as s,bC as B,F as X,i as _t,bE as J,bD as ye,n as Xt,bx as E,b9 as pe,bm as Jt,bG as Zt,bI as nt,bK as ot,aX as el}from"./_plugin-vue_export-helper.js";import{b as xe,p as Xe,r as De,I as tl,a as Je,L as ft,_ as ll}from"./op_select.js";import{f as nl,d as ol,a as re,c as ie,b as al,u as sl,_ as rl}from"./SlickOperatorSelect.js";import{g as il,a as ue,b as ul,_ as ge}from"./Select.js";import{_ as mt}from"./Alert.js";import{_ as Te}from"./Flex.js";import{S as dl}from"./Scrollbar.js";import{r as pl,s as _l,_ as ze,a as Pe}from"./RadioGroup.js";import{_ as Ae}from"./Input.js";import{_ as Ye}from"./Avatar.js";import{_ as Ue}from"./Divider.js";import{N as Ze}from"./headers.js";import{_ as _e}from"./HelpText.js";import{g as fl,a as ml,_ as cl,b as vl}from"./Grid.js";import{_ as ct}from"./Tag.js";import{_ as vt}from"./Image.js";import{u as bl}from"./use-locale.js";import{V as gl}from"./VirtualList.js";import{_ as kl}from"./Slider.js";import"./get-slot.js";import"./index.js";import"./download.js";import"./utils.js";const yl=ve({name:"Search",render(){return T("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},T("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 +import{x as et,y as $t,z as Tt,C as zt,D as Pt,E as At,a as te,s as Z,v as ut,j as Qe,k as tt}from"./main.js";import{B as ve,H as T,aG as Ot,r as j,ap as Bt,an as It,aq as Ft,aO as Mt,aV as Dt,am as Vt,z as Lt,c as G,b3 as ce,A as Nt,b5 as Et,b8 as We,b2 as jt,aI as qt,b as Me,j as L,as as se,av as me,au as ae,ar as lt,at as Ht,ay as Ve,ax as dt,bF as Gt,aY as Ce,bj as Kt,D as Wt,J as Yt,aL as Ke,aC as Qt,bt as g,bu as O,bv as l,bw as e,bo as t,k as d,br as be,s as pt,by as s,bC as B,F as X,i as _t,bE as J,bD as ye,n as Xt,bx as E,b9 as pe,bm as Jt,bG as Zt,bI as nt,bK as ot,aX as el}from"./_plugin-vue_export-helper.js";import{b as xe,p as Xe,r as De,I as tl,a as Je,L as ft,_ as ll}from"./op_select.js";import{f as nl,d as ol,a as re,c as ie,b as al,u as sl,_ as rl}from"./SlickOperatorSelect.js";import{g as il,a as ue,b as ul,_ as ge}from"./Select.js";import{_ as mt}from"./Alert.js";import{_ as Te}from"./Flex.js";import{S as dl,_ as ct}from"./Scrollbar.js";import{r as pl,s as _l,_ as ze,a as Pe}from"./RadioGroup.js";import{_ as Ae}from"./Input.js";import{_ as Ye}from"./Avatar.js";import{_ as Ue}from"./Divider.js";import{N as Ze}from"./headers.js";import{_ as _e}from"./HelpText.js";import{g as fl,a as ml,_ as cl,b as vl}from"./Grid.js";import{_ as vt}from"./Tag.js";import{u as bl}from"./use-locale.js";import{V as gl}from"./VirtualList.js";import{_ as kl}from"./Slider.js";import"./get-slot.js";import"./index.js";import"./download.js";import"./utils.js";const yl=ve({name:"Search",render(){return T("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},T("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),xl=ve({name:"RadioButton",props:pl,setup:_l,render(){const{mergedClsPrefix:p}=this;return T("label",{class:[`${p}-radio-button`,this.mergedDisabled&&`${p}-radio-button--disabled`,this.renderSafeChecked&&`${p}-radio-button--checked`,this.focus&&[`${p}-radio-button--focus`]]},T("input",{ref:"inputRef",type:"radio",class:`${p}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),T("div",{class:`${p}-radio-button__state-border`}),Ot(this.$slots.default,y=>!y&&!this.label?null:T("div",{ref:"labelRef",class:`${p}-radio__label`},y||this.label)))}}),hl=Object.assign(Object.assign({},fl),nl),wl=ve({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:hl,setup(){const p=j(null);return{formItemInstRef:p,validate:(...u)=>{const{value:r}=p;if(r)return r.validate(...u)},restoreValidation:()=>{const{value:u}=p;u&&u.restoreValidation()}}},render(){return T(cl,et(this.$.vnode.props||{},ml),{default:()=>{const p=et(this.$props,ol);return T(re,Object.assign({ref:"formItemInstRef"},p),this.$slots)}})}});function Cl(p){const{fontWeight:y,fontSizeLarge:n,fontSizeMedium:u,fontSizeSmall:r,heightLarge:a,heightMedium:i,borderRadius:v,cardColor:h,tableHeaderColor:f,textColor1:P,textColorDisabled:c,textColor2:C,textColor3:w,borderColor:m,hoverColor:x,closeColorHover:b,closeColorPressed:F,closeIconColor:D,closeIconColorHover:R,closeIconColorPressed:S}=p;return Object.assign(Object.assign({},zt),{itemHeightSmall:i,itemHeightMedium:i,itemHeightLarge:a,fontSizeSmall:r,fontSizeMedium:u,fontSizeLarge:n,borderRadius:v,dividerColor:m,borderColor:m,listColor:h,headerColor:Vt(h,f),titleTextColor:P,titleTextColorDisabled:c,extraTextColor:w,extraTextColorDisabled:c,itemTextColor:C,itemTextColorDisabled:c,itemColorPending:x,titleFontWeight:y,closeColorHover:b,closeColorPressed:F,closeIconColor:D,closeIconColorHover:R,closeIconColorPressed:S})}const Ul=Bt({name:"Transfer",common:It,peers:{Checkbox:$t,Scrollbar:Ft,Input:Mt,Empty:Tt,Button:Dt},self:Cl}),Oe=Lt("n-transfer"),at=ve({name:"TransferHeader",props:{size:{type:String,required:!0},selectAllText:String,clearText:String,source:Boolean,onCheckedAll:Function,onClearAll:Function,title:[String,Function]},setup(p){const{targetOptionsRef:y,canNotSelectAnythingRef:n,canBeClearedRef:u,allCheckedRef:r,mergedThemeRef:a,disabledRef:i,mergedClsPrefixRef:v,srcOptionsLengthRef:h}=G(Oe),{localeRef:f}=bl("Transfer");return()=>{const{source:P,onClearAll:c,onCheckedAll:C,selectAllText:w,clearText:m}=p,{value:x}=a,{value:b}=v,{value:F}=f,D=p.size==="large"?"small":"tiny",{title:R}=p;return T("div",{class:`${b}-transfer-list-header`},R&&T("div",{class:`${b}-transfer-list-header__title`},typeof R=="function"?R():R),P&&T(ce,{class:`${b}-transfer-list-header__button`,theme:x.peers.Button,themeOverrides:x.peerOverrides.Button,size:D,tertiary:!0,onClick:r.value?c:C,disabled:n.value||i.value},{default:()=>r.value?m||F.unselectAll:w||F.selectAll}),!P&&u.value&&T(ce,{class:`${b}-transfer-list-header__button`,theme:x.peers.Button,themeOverrides:x.peerOverrides.Button,size:D,tertiary:!0,onClick:c,disabled:i.value},{default:()=>F.clearAll}),T("div",{class:`${b}-transfer-list-header__extra`},P?F.total(h.value):F.selected(y.value.length)))}}}),st=ve({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(p){const{targetValueSetRef:y,mergedClsPrefixRef:n,mergedThemeRef:u,handleItemCheck:r,renderSourceLabelRef:a,renderTargetLabelRef:i,showSelectedRef:v}=G(Oe),h=Nt(()=>y.value.has(p.value));function f(){p.disabled||r(!h.value,p.value)}return{mergedClsPrefix:n,mergedTheme:u,checked:h,showSelected:v,renderSourceLabel:a,renderTargetLabel:i,handleClick:f}},render(){const{disabled:p,mergedTheme:y,mergedClsPrefix:n,label:u,checked:r,source:a,renderSourceLabel:i,renderTargetLabel:v}=this;return T("div",{class:[`${n}-transfer-list-item`,p&&`${n}-transfer-list-item--disabled`,a?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:a?this.handleClick:void 0},T("div",{class:`${n}-transfer-list-item__background`}),a&&this.showSelected&&T("div",{class:`${n}-transfer-list-item__checkbox`},T(ue,{theme:y.peers.Checkbox,themeOverrides:y.peerOverrides.Checkbox,disabled:p,checked:r})),T("div",{class:`${n}-transfer-list-item__label`,title:il(u)},a?i?i({option:this.option}):u:v?v({option:this.option}):u),!a&&!p&&T(Et,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),rt=ve({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:p,mergedClsPrefixRef:y}=G(Oe),n=j(null),u=j(null);function r(){var v;(v=n.value)===null||v===void 0||v.sync()}function a(){const{value:v}=u;if(!v)return null;const{listElRef:h}=v;return h}function i(){const{value:v}=u;if(!v)return null;const{itemsElRef:h}=v;return h}return{mergedTheme:p,mergedClsPrefix:y,scrollerInstRef:n,vlInstRef:u,syncVLScroller:r,scrollContainer:a,scrollContent:i}},render(){const{mergedTheme:p,options:y}=this;if(y.length===0)return T(ul,{theme:p.peers.Empty,themeOverrides:p.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:u,source:r,disabled:a,syncVLScroller:i}=this;return T(We,{ref:"scrollerInstRef",theme:p.peers.Scrollbar,themeOverrides:p.peerOverrides.Scrollbar,container:u?this.scrollContainer:void 0,content:u?this.scrollContent:void 0},{default:()=>u?T(gl,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:i,onScroll:i,keyField:"value"},{default:({item:v})=>{const{source:h,disabled:f}=this;return T(st,{source:h,key:v.value,value:v.value,disabled:v.disabled||f,label:v.label,option:v})}}):T("div",{class:`${n}-transfer-list-content`},y.map(v=>T(st,{source:r,key:v.value,value:v.value,disabled:v.disabled||a,label:v.label,option:v})))})}}),it=ve({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:p,mergedClsPrefixRef:y}=G(Oe);return{mergedClsPrefix:y,mergedTheme:p}},render(){const{mergedTheme:p,mergedClsPrefix:y}=this;return T("div",{class:`${y}-transfer-filter`},T(Ae,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:p.peers.Input,themeOverrides:p.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>T(jt,{clsPrefix:y},{default:()=>T(yl,null)})}))}});function Sl(p){const y=j(p.defaultValue),n=qt(Me(p,"value"),y),u=L(()=>{const S=new Map;return(p.options||[]).forEach(A=>S.set(A.value,A)),S}),r=L(()=>new Set(n.value||[])),a=L(()=>{const S=u.value,A=[];return(n.value||[]).forEach(Y=>{const N=S.get(Y);N&&A.push(N)}),A}),i=j(""),v=j(""),h=L(()=>p.sourceFilterable||!!p.filterable),f=L(()=>{const{showSelected:S,options:A,filter:Y}=p;return h.value?A.filter(N=>Y(i.value,N,"source")&&(S||!r.value.has(N.value))):S?A:A.filter(N=>!r.value.has(N.value))}),P=L(()=>{if(!p.targetFilterable)return a.value;const{filter:S}=p;return a.value.filter(A=>S(v.value,A,"target"))}),c=L(()=>{const{value:S}=n;return S===null?new Set:new Set(S)}),C=L(()=>{const S=new Set(c.value);return f.value.forEach(A=>{!A.disabled&&!S.has(A.value)&&S.add(A.value)}),S}),w=L(()=>{const S=new Set(c.value);return f.value.forEach(A=>{!A.disabled&&S.has(A.value)&&S.delete(A.value)}),S}),m=L(()=>{const S=new Set(c.value);return P.value.forEach(A=>{A.disabled||S.delete(A.value)}),S}),x=L(()=>f.value.every(S=>S.disabled)),b=L(()=>{if(!f.value.length)return!1;const S=c.value;return f.value.every(A=>A.disabled||S.has(A.value))}),F=L(()=>P.value.some(S=>!S.disabled));function D(S){i.value=S??""}function R(S){v.value=S??""}return{uncontrolledValueRef:y,mergedValueRef:n,targetValueSetRef:r,valueSetForCheckAllRef:C,valueSetForUncheckAllRef:w,valueSetForClearRef:m,filteredTgtOptionsRef:P,filteredSrcOptionsRef:f,targetOptionsRef:a,canNotSelectAnythingRef:x,canBeClearedRef:F,allCheckedRef:b,srcPatternRef:i,tgtPatternRef:v,mergedSrcFilterableRef:h,handleSrcFilterUpdateValue:D,handleTgtFilterUpdateValue:R}}const Rl=se("transfer",` @@ -163,4 +163,4 @@ import{x as et,y as $t,z as Tt,C as zt,D as Pt,E as At,a as te,s as Z,v as ut,j color: var(--n-code-text-color); background-color: var(--n-code-color); border: var(--n-code-border); - `)]),Pl=Object.assign(Object.assign({},Ve.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),Al=ve({name:"Text",props:Pl,setup(p){const{mergedClsPrefixRef:y,inlineThemeDisabled:n}=dt(p),u=Ve("Typography","-text",zl,Pt,p,y),r=L(()=>{const{depth:i,type:v}=p,h=v==="default"?i===void 0?"textColor":`textColor${i}Depth`:Ce("textColor",v),{common:{fontWeightStrong:f,fontFamilyMono:P,cubicBezierEaseInOut:c},self:{codeTextColor:C,codeBorderRadius:w,codeColor:m,codeBorder:x,[h]:b}}=u.value;return{"--n-bezier":c,"--n-text-color":b,"--n-font-weight-strong":f,"--n-font-famliy-mono":P,"--n-code-border-radius":w,"--n-code-text-color":C,"--n-code-color":m,"--n-code-border":x}}),a=n?Qt("text",L(()=>`${p.type[0]}${p.depth||""}`),r,p):void 0;return{mergedClsPrefix:y,compitableTag:At(p,["as","tag"]),cssVars:n?void 0:r,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var p,y,n;const{mergedClsPrefix:u}=this;(p=this.onRender)===null||p===void 0||p.call(this);const r=[`${u}-text`,this.themeClass,{[`${u}-text--code`]:this.code,[`${u}-text--delete`]:this.delete,[`${u}-text--strong`]:this.strong,[`${u}-text--italic`]:this.italic,[`${u}-text--underline`]:this.underline}],a=(n=(y=this.$slots).default)===null||n===void 0?void 0:n.call(y);return this.code?T("code",{class:r,style:this.cssVars},this.delete?T("del",null,a):a):this.delete?T("del",{class:r,style:this.cssVars},a):T(this.compitableTag||"span",{class:r,style:this.cssVars},a)}}),Ol={__name:"SecretFront",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=[{label:"1A→2A→3A→结局A",value:"结局A"},{label:"1A→2A→3A→结局B",value:"结局B"},{label:"1A→2A→3B→结局C",value:"结局C"},{label:"1A→2B→3C→结局D",value:"结局D"},{label:"1A→2B→3C→结局E",value:"结局E"}];return(a,i)=>{const v=xe,h=re,f=ge,P=ie;return g(),O(P,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(h,{label:"超时时长"},{default:l(()=>[e(v,{value:t(u).reclamation_algorithm.timeout,"onUpdate:value":i[0]||(i[0]=c=>t(u).reclamation_algorithm.timeout=c)},{suffix:l(()=>i[2]||(i[2]=[d("秒")])),_:1},8,["value"])]),_:1}),e(h,{label:"选择路线"},{default:l(()=>[e(f,{value:t(u).secret_front.target,"onUpdate:value":i[1]||(i[1]=c=>t(u).secret_front.target=c),options:r},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])}}},Bl={__name:"ReclamationAlgorithm",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n);return(r,a)=>{const i=xe,v=re,h=ie;return g(),O(h,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(v,{label:"超时时长"},{default:l(()=>[e(i,{value:t(u).reclamation_algorithm.timeout,"onUpdate:value":a[0]||(a[0]=f=>t(u).reclamation_algorithm.timeout=f)},{suffix:l(()=>a[1]||(a[1]=[d("秒")])),_:1},8,["value"])]),_:1})]),_:1},8,["label-placement"])}}},Il={class:"sss-container"},Fl={key:0,class:"wrapper"},Ml={class:"title"},Dl={key:1},Vl={__name:"Sss",setup(p){const y=G("mobile"),n=G("axios"),u="/sss-copilot",r=j({exists:!1});pt(async()=>{const{data:x}=await n.get(u);r.value=x});function a({event:x}){r.value=JSON.parse(x.target.response)}const i=G("token"),v=j(!1),h=j(""),f=j(!1),P=j(null);function c(){h.value="",v.value=!0,Xt(()=>P.value.focus())}async function C(){f.value=!0;const x=h.value.replace("maa://",""),{data:b}=await n.get(`https://prts.maa.plus/copilot/get/${x}`,{transformRequest:[(R,S)=>(delete S.token,JSON.stringify(R))]}),F=new FormData;F.append("copilot",new Blob([b.data.content],{type:"application/json"}));const D=await n.post(u,F);r.value=D.data,v.value=!1,f.value=!1}const w=te(),{conf:m}=Z(w);return(x,b)=>{const F=mt,D=ze,R=Te,S=Pe,A=re,Y=ue,N=Ae,U=ce,k=al,V=dl,M=Ye,H=ie;return g(),O(R,{vertical:""},{default:l(()=>[e(F,{title:"请检查作业并修正其中的错误!",type:"warning"}),e(H,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(A,{label:"难度选择"},{default:l(()=>[e(S,{value:t(m).sss.mode,"onUpdate:value":b[0]||(b[0]=z=>t(m).sss.mode=z)},{default:l(()=>[e(R,null,{default:l(()=>[e(D,{value:"normal"},{default:l(()=>b[5]||(b[5]=[d("标准补给模式")])),_:1}),e(D,{value:"ex"},{default:l(()=>b[6]||(b[6]=[d("应急补给模式")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(A,{"show-label":!1},{default:l(()=>[e(Y,{checked:t(m).sss.choose_agent,"onUpdate:checked":b[1]||(b[1]=z=>t(m).sss.choose_agent=z)},{default:l(()=>b[7]||(b[7]=[d(" 自动编队(缺人时自动借助战) ")])),_:1},8,["checked"])]),_:1}),e(A,{"show-label":!1},{default:l(()=>[e(Y,{checked:t(m).sss.finish_while_full,"onUpdate:checked":b[2]||(b[2]=z=>t(m).sss.finish_while_full=z)},{default:l(()=>b[8]||(b[8]=[d("模组刷满时直接结束")])),_:1},8,["checked"])]),_:1}),e(A,{label:"导入作业"},{default:l(()=>[s("div",Il,[t(v)?(g(),B(X,{key:0},[e(N,{ref_key:"code",ref:P,value:t(h),"onUpdate:value":b[3]||(b[3]=z=>_t(h)?h.value=z:null),type:"text",placeholder:"maa://114514",disabled:t(f)},null,8,["value","disabled"]),e(U,{onClick:C,loading:t(f),disabled:t(f)},{default:l(()=>b[9]||(b[9]=[d(" 下载 ")])),_:1},8,["loading","disabled"]),e(U,{onClick:b[4]||(b[4]=z=>v.value=!1)},{default:l(()=>b[10]||(b[10]=[d("取消")])),_:1})],64)):(g(),B(X,{key:1},[e(U,{style:{"flex-grow":"1"},onClick:c},{default:l(()=>b[11]||(b[11]=[d("输入“神秘代码”")])),_:1}),e(k,{style:{width:"auto","flex-grow":"1"},"trigger-style":"width: 100%",action:u,headers:{token:t(i)},"show-file-list":!1,name:"copilot",onFinish:a},{default:l(()=>[e(U,{style:{width:"100%"}},{default:l(()=>b[12]||(b[12]=[d("选择作业文件")])),_:1})]),_:1},8,["headers"])],64))])]),_:1}),e(A,{label:"作业信息"},{default:l(()=>[e(R,{vertical:""},{default:l(()=>[t(r).exists?(g(),B("div",Fl,[s("div",Ml,J(t(r).title),1),e(V,{style:{"max-height":"240px"},"content-style":"padding-right: 12px",trigger:"none"},{default:l(()=>[d(J(t(r).details),1)]),_:1})])):(g(),B("div",Dl,"未选择作业")),(g(!0),B(X,null,ye(t(r).operators,z=>(g(),O(R,{align:"center"},{default:l(()=>[e(M,{src:`avatar/${z.name}.webp`},null,8,["src"]),s("div",null,J(z.name)+"("+J(z.skill)+"技能)",1)]),_:2},1024))),256))]),_:1})]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},Ll=be(Vl,[["__scopeId","data-v-2dffb781"]]);async function Nl(){return(await ut.get("/dialog/file")).data}async function bt(){return(await ut.get("/dialog/folder")).data}const El={class:"misc-container"},jl={__name:"MaaBasic",setup(p){const y=G("axios"),n=G("mobile"),u=te(),{conf:r}=Z(u);async function a(){const c=await bt();c&&(r.value.maa_path=c)}const i=j("");async function v(){i.value="正在测试……";const c=await y.get("/check-maa");i.value=c.data}const h=j([]);async function f(){const c=await y.get("/maa-conn-preset");r.value.maa_conn_presets=c.data.map(C=>({label:C,value:C}))}const P=["maatouch","minitouch","adb"].map(c=>({label:c,value:c}));return(c,C)=>{const w=Ue,m=Ze,x=Ae,b=ce,F=re,D=ge,R=ie;return g(),B(X,null,[e(w),e(m,{class:"header"},{default:l(()=>C[3]||(C[3]=[d("Maa设置")])),_:1}),e(R,{"label-placement":t(n)?"top":"left","show-feedback":!1,"label-width":"96","label-align":"left"},{default:l(()=>[e(F,{label:"Maa目录"},{default:l(()=>[e(x,{type:"textarea",autosize:!0,value:t(r).maa_path,"onUpdate:value":C[0]||(C[0]=S=>t(r).maa_path=S)},null,8,["value"]),e(b,{onClick:a,class:"dialog-btn"},{default:l(()=>C[4]||(C[4]=[d("...")])),_:1})]),_:1}),e(F,{label:"连接配置"},{default:l(()=>[e(D,{options:t(h),value:t(r).maa_conn_preset,"onUpdate:value":C[1]||(C[1]=S=>t(r).maa_conn_preset=S)},null,8,["options","value"]),e(b,{onClick:f,class:"dialog-btn"},{default:l(()=>C[5]||(C[5]=[d("刷新")])),_:1})]),_:1}),e(F,{label:"触控模式"},{default:l(()=>[e(D,{value:t(r).maa_touch_option,"onUpdate:value":C[2]||(C[2]=S=>t(r).maa_touch_option=S),options:t(P)},null,8,["value","options"])]),_:1})]),_:1},8,["label-placement"]),e(w),s("div",El,[e(b,{onClick:v},{default:l(()=>C[6]||(C[6]=[d("测试设置")])),_:1}),s("div",null,J(t(i)),1)]),e(w,{style:{margin:"12px 0 16px"}})],64)}}},ql=be(jl,[["__scopeId","data-v-d479d5bf"]]),Hl={__name:"MaaRogue",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=Qe(),{operators:a}=Z(r),i=[{label:"傀影与猩红孤钻",value:"Phantom"},{label:"水月与深蓝之树",value:"Mizuki"},{label:"探索者的银凇止境",value:"Sami"},{label:"萨卡兹的无终奇语",value:"Sarkaz"}],v={Phantom:["研究","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Mizuki:["心胜于物","物尽其用","以人为本","研究","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Sami:["永恒狩猎","生活至上","科学主义","特训","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Sarkaz:["因地制宜","魂灵护送","博闻广记","蓝图测绘","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"]};for(const C in v)v[C]=v[C].map(w=>({label:w+"分队",value:w+"分队"}));const h=[{label:"先手必胜(先锋、狙击、特种)",value:"先手必胜"},{label:"稳扎稳打(重装、术师、狙击)",value:"稳扎稳打"},{label:"取长补短(近卫、辅助、医疗)",value:"取长补短"},{label:"随心所欲(随机)",value:"随心所欲"}],f=[{label:"刷蜡烛,尽可能稳定地打更多层数",value:0},{label:"刷源石锭,第一层投资完就退出",value:1},{label:"【即将弃用】兼顾",value:2},{label:"刷开局,到达第三层后直接退出",value:4},{label:"刷坍缩范式",value:5}],P=["去量化","去量深化","实质性坍缩","蔓延性坍缩","非线性移动","非线性行动","情绪实体","恐怖实体","泛社会悖论","泛文明悖论","气压异常","气压失序","触发性损伤","触发性危殆","趋同性消耗","趋同性缺失","目空一些","睁眼瞎","图像损坏","一抹黑"],c=[];for(const C of P)c.push({label:C,value:C});return(C,w)=>{const m=ql,x=ge,b=re,F=ue,D=ie;return g(),B(X,null,[e(m),e(D,{"label-placement":t(y)?"top":"left","show-feedback":!1,class:"conf.rogue"},{default:l(()=>[e(b,{label:"主题"},{default:l(()=>[e(x,{value:t(u).maa_rg_theme,"onUpdate:value":w[0]||(w[0]=R=>t(u).maa_rg_theme=R),options:i},null,8,["value"])]),_:1}),e(b,{label:"分队"},{default:l(()=>[e(x,{value:t(u).rogue.squad,"onUpdate:value":w[1]||(w[1]=R=>t(u).rogue.squad=R),options:v[t(u).maa_rg_theme]},null,8,["value","options"])]),_:1}),e(b,{label:"职业"},{default:l(()=>[e(x,{value:t(u).rogue.roles,"onUpdate:value":w[2]||(w[2]=R=>t(u).rogue.roles=R),options:h},null,8,["value"])]),_:1}),e(b,{label:"干员"},{default:l(()=>[e(x,{filterable:"",options:t(a),value:t(u).rogue.core_char,"onUpdate:value":w[3]||(w[3]=R=>t(u).rogue.core_char=R),filter:(R,S)=>t(Xe)(S.label,R),"render-label":t(De)},null,8,["options","value","filter","render-label"])]),_:1}),e(b,{"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.use_support,"onUpdate:checked":w[4]||(w[4]=R=>t(u).rogue.use_support=R)},{default:l(()=>w[9]||(w[9]=[d("开局干员使用助战")])),_:1},8,["checked"])]),_:1}),t(u).rogue.use_support?(g(),O(b,{key:0,"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.use_nonfriend_support,"onUpdate:checked":w[5]||(w[5]=R=>t(u).rogue.use_nonfriend_support=R)},{default:l(()=>w[10]||(w[10]=[d("开局干员使用非好友助战")])),_:1},8,["checked"])]),_:1})):E("",!0),e(b,{label:"策略"},{default:l(()=>[e(x,{options:f,value:t(u).rogue.mode,"onUpdate:value":w[6]||(w[6]=R=>t(u).rogue.mode=R)},null,8,["value"])]),_:1}),e(b,{"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.refresh_trader_with_dice,"onUpdate:checked":w[7]||(w[7]=R=>t(u).rogue.refresh_trader_with_dice=R)},{default:l(()=>w[11]||(w[11]=[d("刷新商店(指路鳞)")])),_:1},8,["checked"])]),_:1}),e(b,{label:"坍缩范式"},{default:l(()=>[e(x,{multiple:"",options:c,value:t(u).rogue.expected_collapsal_paradigms,"onUpdate:value":w[8]||(w[8]=R=>t(u).rogue.expected_collapsal_paradigms=R)},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])],64)}}},Gl={key:0},Kl={__name:"LongTasks",setup(p){const y=te(),{conf:n}=Z(y),u=G("mobile"),r=[{label:"集成战略 (Maa)",value:"rogue"},{label:"保全派驻",value:"sss"},{label:"生息演算",value:"ra"},{label:"隐秘战线",value:"sf"}];return(a,i)=>{const v=ue,h=_e,f=ge,P=tl,c=wl,C=vl,w=ie,m=Hl,x=Ll,b=Bl,F=Ol,D=pe;return g(),O(D,null,{header:l(()=>[e(v,{checked:t(n).maa_rg_enable,"onUpdate:checked":i[0]||(i[0]=R=>t(n).maa_rg_enable=R),disabled:!t(n).maa_enable},{default:l(()=>i[4]||(i[4]=[s("div",{class:"card-title"},"大型任务",-1)])),_:1},8,["checked","disabled"]),e(h,null,{default:l(()=>[t(n).maa_enable?(g(),B(X,{key:1},[i[5]||(i[5]=s("div",null,"开始与结束时间设置为相同值时全天开启。",-1)),i[6]||(i[6]=s("div",null,"若结束时间早于开始时间,则表示开启至次日。例如:",-1)),i[7]||(i[7]=s("ul",null,[s("li",null,"23:00开始、8:00结束:表示从23:00至次日8:00执行大型任务;"),s("li",null,"10:00开始、14:00结束:表示从10:00至当日14:00执行大型任务。")],-1))],64)):(g(),B("div",Gl,"需开启日常任务"))]),_:1}),e(f,{value:t(n).maa_long_task_type,"onUpdate:value":i[1]||(i[1]=R=>t(n).maa_long_task_type=R),options:r},null,8,["value"])]),default:l(()=>[e(w,{"label-placement":t(u)?"top":"left","show-feedback":!1,style:{"margin-bottom":"12px"}},{default:l(()=>[e(C,{cols:"2"},{default:l(()=>[e(c,{label:"开始时间"},{default:l(()=>[e(P,{format:"H:mm","formatted-value":t(n).maa_rg_sleep_max,"onUpdate:formattedValue":i[2]||(i[2]=R=>t(n).maa_rg_sleep_max=R)},null,8,["formatted-value"])]),_:1}),e(c,{label:"停止时间"},{default:l(()=>[e(P,{format:"H:mm","formatted-value":t(n).maa_rg_sleep_min,"onUpdate:formattedValue":i[3]||(i[3]=R=>t(n).maa_rg_sleep_min=R)},null,8,["formatted-value"])]),_:1})]),_:1})]),_:1},8,["label-placement"]),t(n).maa_long_task_type=="rogue"?(g(),O(m,{key:0})):t(n).maa_long_task_type=="sss"?(g(),O(x,{key:1})):t(n).maa_long_task_type=="ra"?(g(),O(b,{key:2})):t(n).maa_long_task_type=="sf"?(g(),O(F,{key:3})):E("",!0)]),_:1})}}};var gt={};Object.defineProperty(gt,"__esModule",{value:!0});const $e=Jt,Wl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Yl=(0,$e.createElementVNode)("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[(0,$e.createElementVNode)("path",{d:"M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4"}),(0,$e.createElementVNode)("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})],-1),Ql=[Yl];var Xl=gt.default=(0,$e.defineComponent)({name:"Refresh",render:function(y,n){return(0,$e.openBlock)(),(0,$e.createElementBlock)("svg",Wl,Ql)}});const Jl={key:0},Zl={key:1},en={class:"tasktable"},tn={key:0,class:"today"},ln={key:1},nn={__name:"WeeklyPlan",setup(p){Zt(U=>({"06f96d6a":t(x),"292d8683":t(b),"6d545694":t(N)}));const y=te(),{conf:n}=Z(y);function u(){const U=new Date().getDay();return U==0?6:U-1}const r=["一","二","三","四","五","六","日"],a=["","Annihilation"],i=["1-7","LS-6","CE-6","AP-5","SK-5","CA-5","PR-A-2","PR-A-1","PR-B-2","PR-B-1","PR-C-2","PR-C-1","PR-D-2","PR-D-1"],v={CE:[1,3,5,6],AP:[0,3,5,6],SK:[0,2,4,5],CA:[1,2,4,6],"PR-A":[0,3,4,6],"PR-B":[0,1,4,5],"PR-C":[2,3,5,6],"PR-D":[1,2,5,6]};function h(U){switch(U){case"":return"上次作战";case"Annihilation":return"当期剿灭";case"LS-6":return"经验书";case"CE-6":return"龙门币";case"AP-5":return"红票";case"SK-5":return"碳本";case"CA-5":return"技能书";case"PR-A-1":return"医疗重装1";case"PR-A-2":return"医疗重装2";case"PR-B-1":return"狙击术师1";case"PR-B-2":return"狙击术师2";case"PR-C-1":return"先锋辅助1";case"PR-C-2":return"先锋辅助2";case"PR-D-1":return"近卫特种1";case"PR-D-2":return"近卫特种2";default:return U}}const f=L(()=>{const U=[];for(const k of a){const V=[];for(let M=0;M<7;++M)V.push({available:!0,enable:n.value.weekly_plan[M].general.includes(k)});U.push({stage:k,week:V})}for(const k of n.value.custom_stages){const V=[];for(let M=0;M<7;++M)V.push({available:!0,enable:n.value.weekly_plan[M].custom.includes(k)});U.push({stage:k,week:V})}for(const k of i){let V=[0,1,2,3,4,5,6];for(const[H,z]of Object.entries(v))if(k.includes(H)){V=z;break}const M=[];for(let H=0;H<7;++H)M.push({available:V.includes(H),enable:n.value.weekly_plan[H].general.includes(k)});U.push({stage:k,week:M})}return U});function P(U){const k=[];for(let V=0;V<7;++V){const M={general:[],custom:[]};for(const{stage:H,week:z}of U)z[V].enable&&H!=null&&(n.value.custom_stages.includes(H)?M.custom.push(H):M.general.push(H));k.push(M)}n.value.weekly_plan=k}function c(U){const k=tt(f.value);let V=!1;for(const M of k[U].week)M.enable!=M.available&&(V=!0,M.enable=M.available);if(!V)for(const M of k[U].week)M.enable=!1;P(k)}function C(U,k){const V=tt(f.value);V[U].week[k].enable=!V[U].week[k].enable,P(V)}function w(U){return U=U.toUpperCase(),U==" "||U=="上次作战"?{label:"上次作战",value:""}:U=="当期剿灭"?{label:"当期剿灭",value:"Annihilation"}:U.endsWith("磨难")||U.endsWith("标准")?(U=U.slice(0,-2),{label:U,value:U}):{label:U,value:U}}const m=G("mobile"),x=L(()=>n.value.theme=="light"?"hsl(33, 30%, 91%)":"hsl(33, 15%, 50%)"),b=L(()=>n.value.theme=="light"?"hsl(200, 90%, 65%)":"hsl(200, 80%, 30%)"),F="/activity",D=j([]),R=G("axios");async function S(){const{data:U}=await R.get(F);D.value=U.reverse()}pt(()=>{S()});function A(U,k){k.dataTransfer.setData("text",U)}function Y(U,k){k.preventDefault();const V=k.dataTransfer.getData("text");n.value.custom_stages[U-2]=V}const N=L(()=>n.value.theme=="light"?"rgba(194, 194, 194, 1)":"rgba(255, 255, 255, 0.38)");return(U,k)=>{const V=_e,M=ue,H=re,z=Te,q=ie,le=ct,de=el,I=ce,o=ge,ne=pe;return g(),O(ne,null,{header:l(()=>[s("div",{class:nt(["card-title",{disabled:!t(n).maa_enable}])},"刷理智周计划",2),e(V,null,{default:l(()=>[t(n).maa_enable?(g(),B(X,{key:1},[k[5]||(k[5]=s("div",null,"支持所有主线关卡;",-1)),k[6]||(k[6]=s("div",null,"含磨难的主线关卡仅需填写关卡名,会自动选择难度。",-1))],64)):(g(),B("div",Jl,"需开启日常任务"))]),_:1})]),default:l(()=>[e(q,{"label-placement":t(m)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left",style:{"margin-bottom":"16px"}},{default:l(()=>[e(H,{class:"form-item","show-label":!1},{default:l(()=>[e(M,{checked:t(n).use_all_medicine,"onUpdate:checked":k[0]||(k[0]=$=>t(n).use_all_medicine=$)},{default:l(()=>k[7]||(k[7]=[d("自动使用全部理智药")])),_:1},8,["checked"])]),_:1}),e(H,{class:"form-item","show-label":!1},{default:l(()=>[e(z,null,{default:l(()=>[e(M,{checked:t(n).maa_expiring_medicine,"onUpdate:checked":k[1]||(k[1]=$=>t(n).maa_expiring_medicine=$),disabled:t(n).use_all_medicine},{default:l(()=>k[8]||(k[8]=[d(" 自动使用将要过期(约3天)的理智药 ")])),_:1},8,["checked","disabled"]),e(M,{checked:t(n).exipring_medicine_on_weekend,"onUpdate:checked":k[2]||(k[2]=$=>t(n).exipring_medicine_on_weekend=$),disabled:t(n).use_all_medicine||!t(n).maa_expiring_medicine},{default:l(()=>k[9]||(k[9]=[d(" 仅在周末使用 ")])),_:1},8,["checked","disabled"])]),_:1})]),_:1})]),_:1},8,["label-placement"]),e(z,{class:"activity"},{default:l(()=>[t(D).length>0?(g(!0),B(X,{key:0},ye(t(D),$=>(g(),O(le,{draggable:"true",onDragstart:K=>A($,K)},{default:l(()=>[d(J($),1)]),_:2},1032,["onDragstart"]))),256)):(g(),B("div",Zl,"当前暂无活动开放")),e(I,{text:"",type:"primary",onClick:S},{icon:l(()=>[e(de,null,{default:l(()=>[e(t(Xl))]),_:1})]),_:1})]),_:1}),s("div",en,[s("table",null,[s("thead",null,[s("tr",null,[k[10]||(k[10]=s("th",null,"全选",-1)),k[11]||(k[11]=s("th",null,"关卡",-1)),(g(),B(X,null,ye(7,$=>s("th",{key:$},[d(J(r[$-1])+" ",1),u()==$-1?(g(),B("div",tn,"今天")):E("",!0)])),64))])]),s("tbody",null,[(g(!0),B(X,null,ye(t(f),({stage:$,week:K},Q)=>(g(),B("tr",{key:Q},[s("td",null,[e(I,{quaternary:"",class:"class1",onClick:W=>c(Q),style:{width:"100%",height:"100%"}},null,8,["onClick"])]),s("td",null,[2<=Q&&Q<5?(g(),B(X,{key:0},[$==null?(g(),O(o,{key:0,placeholder:"关卡",value:t(n).custom_stages[Q-2],"onUpdate:value":[W=>t(n).custom_stages[Q-2]=W,W=>{t(n).custom_stages[Q-2]=W[0]}],filterable:"",multiple:"",tag:"",show:!1,"show-arrow":!1,"on-create":w,onDragover:k[3]||(k[3]=ot(()=>{},["prevent"])),onDrop:W=>Y(Q,W)},null,8,["value","onUpdate:value","onDrop"])):(g(),O(le,{key:1,closable:"",class:"custom-tag",onClose:()=>{t(n).custom_stages[Q-2]=null,P(t(f))},onDragover:k[4]||(k[4]=ot(()=>{},["prevent"])),onDrop:W=>Y(Q,W)},{default:l(()=>[d(J($),1)]),_:2},1032,["onClose","onDrop"]))],64)):(g(),B("span",ln,J(h($)),1))]),(g(!0),B(X,null,ye(K,(W,ee)=>(g(),B("td",{class:nt({class2:W.enable,class1:W.available})},[W.available?(g(),O(I,{key:0,quaternary:"",style:{width:"100%",height:"100%"},onClick:ke=>C(Q,ee)},{default:l(()=>[s("span",null,[W.enable?(g(),B(X,{key:0},[d("打")],64)):E("",!0)])]),_:2},1032,["onClick"])):E("",!0)],2))),256))]))),128))])])])]),_:1})}}},on=be(nn,[["__scopeId","data-v-6e42e723"]]),an={key:0},sn={key:1},rn={__name:"Clue",setup(p){const y=te(),{conf:n,shop_list:u}=Z(y),r=Qe(),{operators:a}=Z(r),i=G("mobile");function v({option:w,handleClose:m}){return T(ct,{type:w.type,closable:!0,onMousedown:x=>{x.preventDefault()},onClose:x=>{x.stopPropagation(),m()}},{default:()=>w.label,avatar:()=>T(Ye,{src:`/shop/${w.label}.png`})})}function h(w){return T("div",{style:{display:"flex","align-items":"center",gap:"6px",padding:"2px 0"}},[T(Ye,{src:`/shop/${w.label}.png`}),w.label])}const f=[{label:"向上",value:"Up"},{label:"向下",value:"Down"},{label:"向左",value:"Left"},{label:"向右",value:"Right"}],P=[{label:"第一编队",value:1},{label:"第二编队",value:2},{label:"第三编队",value:3},{label:"第四编队",value:4}],c=[{label:"一技能",value:1},{label:"二技能",value:2},{label:"三技能",value:3}],C=j(!1);return(w,m)=>{const x=ue,b=Ue,F=ce,D=_e,R=Ze,S=ze,A=Je,Y=Pe,N=re,U=ge,k=xe,V=vt,M=ie,H=pe;return g(),O(H,null,{header:l(()=>[e(x,{checked:t(n).enable_party,"onUpdate:checked":m[0]||(m[0]=z=>t(n).enable_party=z)},{default:l(()=>m[14]||(m[14]=[s("div",{class:"card-title"},"线索收集与信用",-1)])),_:1},8,["checked"])]),default:l(()=>[e(x,{checked:t(n).leifeng_mode,"onUpdate:checked":m[1]||(m[1]=z=>t(n).leifeng_mode=z)},{default:l(()=>m[15]||(m[15]=[d("赠送多余的线索")])),_:1},8,["checked"]),e(b),e(R,null,{default:l(()=>[m[19]||(m[19]=d(" 信用商店购物 ")),e(D,null,{default:l(()=>[m[17]||(m[17]=s("span",null,"性价比参考:",-1)),e(F,{text:"",tag:"a",href:"https://github.com/Bidgecfah/Rhodes-Island-Bureau-of-Price",target:"_blank",type:"primary"},{default:l(()=>m[16]||(m[16]=[d(" 罗德岛物价局 ")])),_:1}),m[18]||(m[18]=s("p",null,"注意:跑单时赤金与作战记录均大幅升值",-1))]),_:1})]),_:1}),e(M,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(N,{label:"信用溢出"},{default:l(()=>[e(Y,{value:t(n).maa_mall_ignore_blacklist_when_full,"onUpdate:value":m[2]||(m[2]=z=>t(n).maa_mall_ignore_blacklist_when_full=z)},{default:l(()=>[e(A,null,{default:l(()=>[e(S,{value:!1},{default:l(()=>m[20]||(m[20]=[d("停止购买")])),_:1}),e(S,{value:!0},{default:l(()=>m[21]||(m[21]=[d("无视黑名单继续购买,直至不再溢出")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(N,{label:"优先购买"},{default:l(()=>[e(Y,{value:t(n).maa_mall_ignore_blacklist_when_full,"onUpdate:value":m[4]||(m[4]=z=>t(n).maa_mall_ignore_blacklist_when_full=z)},{default:l(()=>[e(U,{multiple:"",filterable:"",tag:"",options:t(u),value:t(n).maa_mall_buy,"onUpdate:value":m[3]||(m[3]=z=>t(n).maa_mall_buy=z),"render-tag":v,"render-label":h},null,8,["options","value"])]),_:1},8,["value"])]),_:1}),e(N,{label:"黑名单"},{default:l(()=>[e(U,{multiple:"",filterable:"",tag:"",options:t(u),value:t(n).maa_mall_blacklist,"onUpdate:value":m[5]||(m[5]=z=>t(n).maa_mall_blacklist=z),"render-tag":v,"render-label":h},null,8,["options","value"])]),_:1}),e(b),e(M,{"label-placement":t(i)?"top":"left","show-feedback":!1,class:"rogue"},{default:l(()=>[e(N,{"show-label":!1},{default:l(()=>[e(x,{checked:t(n).maa_credit_fight,"onUpdate:checked":m[6]||(m[6]=z=>t(n).maa_credit_fight=z),disabled:!t(n).maa_enable},{default:l(()=>m[22]||(m[22]=[s("div",{class:"item"},"信用作战",-1)])),_:1},8,["checked","disabled"]),e(D,null,{default:l(()=>[t(n).maa_enable?(g(),B("div",sn,"借助战打OF-1")):(g(),B("div",an,"需开启日常任务"))]),_:1})]),_:1}),e(N,{label:"编队"},{default:l(()=>[e(U,{options:P,value:t(n).credit_fight.squad,"onUpdate:value":m[7]||(m[7]=z=>t(n).credit_fight.squad=z)},null,8,["value"])]),_:1}),e(N,{label:"干员"},{default:l(()=>[e(U,{style:{flex:"3","margin-right":"8px"},filterable:"",options:t(a),value:t(n).credit_fight.operator,"onUpdate:value":m[8]||(m[8]=z=>t(n).credit_fight.operator=z),filter:(z,q)=>t(Xe)(q.label,z),"render-label":t(De)},null,8,["options","value","filter","render-label"]),e(U,{style:{flex:"2"},options:c,value:t(n).credit_fight.skill,"onUpdate:value":m[9]||(m[9]=z=>t(n).credit_fight.skill=z)},null,8,["value"])]),_:1}),e(N,{label:"部署"},{default:l(()=>[m[23]||(m[23]=s("div",{style:{width:"40px","text-align":"right"}},"X",-1)),e(k,{style:{margin:"0 8px"},value:t(n).credit_fight.x,"onUpdate:value":m[10]||(m[10]=z=>t(n).credit_fight.x=z),"show-button":!1},null,8,["value"]),m[24]||(m[24]=s("div",{style:{width:"40px","text-align":"right"}},"Y",-1)),e(k,{style:{margin:"0 8px"},value:t(n).credit_fight.y,"onUpdate:value":m[11]||(m[11]=z=>t(n).credit_fight.y=z),"show-button":!1},null,8,["value"]),e(U,{style:{width:"250px","margin-right":"8px"},options:f,value:t(n).credit_fight.direction,"onUpdate:value":m[12]||(m[12]=z=>t(n).credit_fight.direction=z)},null,8,["value"]),e(F,{onClick:m[13]||(m[13]=z=>C.value=!t(C))},{default:l(()=>[d(J(t(C)?"隐藏":"显示")+"OF-1地图",1)]),_:1})]),_:1}),t(C)?(g(),O(N,{key:0,"show-label":!1},{default:l(()=>[e(V,{src:"/map-OF-1.webp",width:"100%"})]),_:1})):E("",!0)]),_:1},8,["label-placement"])]),_:1},8,["label-placement"])]),_:1})}}},un=be(rn,[["__scopeId","data-v-748f667d"]]),dn={style:{display:"flex","align-items":"center",width:"100%"}},pn={style:{"margin-right":"24px"}},_n={__name:"Depotswitch",setup(p){const y=te(),{conf:n}=Z(y);return(u,r)=>{const a=ue,i=_e,v=ze,h=Te,f=Pe,P=pe;return g(),O(P,null,{header:l(()=>[e(a,{checked:t(n).maa_depot_enable,"onUpdate:checked":r[0]||(r[0]=c=>t(n).maa_depot_enable=c)},{default:l(()=>r[1]||(r[1]=[s("div",{class:"card-title"},"仓库物品混合读取",-1)])),_:1},8,["checked"]),e(i,null,{default:l(()=>r[2]||(r[2]=[d("请调整森空岛账号顺序,仅读取"),s("strong",null,"第一个",-1),d("账户"),s("strong",null,"指定服务器",-1),d("的材料")])),_:1})]),default:l(()=>[(g(!0),B(X,null,ye(t(n).skland_info,c=>(g(),B("div",{key:c.account},[s("div",dn,[s("div",pn,"森空岛账号:"+J(c.account),1),e(f,{value:c.cultivate_select,"onUpdate:value":C=>c.cultivate_select=C},{default:l(()=>[e(h,null,{default:l(()=>[e(v,{value:!0},{default:l(()=>r[3]||(r[3]=[d("官服")])),_:1}),e(v,{value:!1},{default:l(()=>r[4]||(r[4]=[d("B服")])),_:1})]),_:1})]),_:2},1032,["value","onUpdate:value"])])]))),128))]),_:1})}}},fn={__name:"Recruit",setup(p){const y=te(),{conf:n}=Z(y),u=G("mobile");return(r,a)=>{const i=ue,v=_e,h=xe,f=re,P=ze,c=Je,C=Pe,w=ie,m=pe;return g(),O(m,null,{header:l(()=>[e(i,{checked:t(n).recruit_enable,"onUpdate:checked":a[0]||(a[0]=x=>t(n).recruit_enable=x)},{default:l(()=>a[6]||(a[6]=[s("div",{class:"card-title"},"公开招募",-1)])),_:1},8,["checked"])]),default:l(()=>[e(w,{"label-placement":t(u)?"top":"left","show-feedback":!1,"label-width":"140","label-align":"left"},{default:l(()=>[e(f,null,{label:l(()=>[a[8]||(a[8]=s("span",null,"启动间隔",-1)),e(v,null,{default:l(()=>a[7]||(a[7]=[d("可填小数")])),_:1})]),default:l(()=>[e(h,{value:t(n).recruit_gap,"onUpdate:value":a[1]||(a[1]=x=>t(n).recruit_gap=x)},{suffix:l(()=>a[9]||(a[9]=[d("小时")])),_:1},8,["value"])]),_:1}),e(f,null,{label:l(()=>[a[11]||(a[11]=s("span",null,"三星招募阈值",-1)),e(v,null,{default:l(()=>a[10]||(a[10]=[d("剩余公招券大于此阈值时招募三星干员")])),_:1})]),default:l(()=>[e(h,{value:t(n).recruitment_permit,"onUpdate:value":a[2]||(a[2]=x=>t(n).recruitment_permit=x)},{suffix:l(()=>a[12]||(a[12]=[d("张")])),_:1},8,["value"])]),_:1}),e(f,{label:"五星招募策略"},{default:l(()=>[e(C,{value:t(n).recruit_auto_5,"onUpdate:value":a[3]||(a[3]=x=>t(n).recruit_auto_5=x)},{default:l(()=>[e(c,{justify:"start"},{default:l(()=>[e(P,{value:1},{default:l(()=>a[13]||(a[13]=[d("自动选择")])),_:1}),e(P,{value:2},{default:l(()=>a[14]||(a[14]=[d("手动选择")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(n).recruit_auto_5===2?(g(),O(f,{key:0,"show-label":!1},{default:l(()=>[e(i,{checked:t(n).recruit_auto_only5,"onUpdate:checked":a[4]||(a[4]=x=>t(n).recruit_auto_only5=x)},{default:l(()=>a[15]||(a[15]=[d("五星词条组合唯一时自动选择")])),_:1},8,["checked"])]),_:1})):E("",!0),e(f,{"show-label":!1},{default:l(()=>[e(i,{checked:t(n).recruit_robot,"onUpdate:checked":a[5]||(a[5]=x=>t(n).recruit_robot=x)},{default:l(()=>a[16]||(a[16]=[d("保留支援机械标签")])),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},mn=be(fn,[["__scopeId","data-v-707c6f48"]]),cn={__name:"DailyMission",setup(p){const y=te(),{conf:n}=Z(y);return(u,r)=>{const a=ue,i=Te,v=Ue,h=_e,f=xe,P=pe;return g(),O(P,{title:"每日任务"},{default:l(()=>[e(i,{vertical:""},{default:l(()=>[e(a,{checked:t(n).skland_enable,"onUpdate:checked":r[0]||(r[0]=c=>t(n).skland_enable=c)},{default:l(()=>r[9]||(r[9]=[s("div",{class:"item"},"森空岛签到",-1)])),_:1},8,["checked"]),(g(!0),B(X,null,ye(t(n).skland_info,c=>(g(),B("div",{key:c.account},[e(i,null,{default:l(()=>[e(a,{checked:c.isCheck,"onUpdate:checked":C=>c.isCheck=C,style:{"margin-right":"12px"}},{default:l(()=>[d(" 森空岛账号:"+J(c.account),1)]),_:2},1032,["checked","onUpdate:checked"]),e(a,{checked:c.sign_in_official,"onUpdate:checked":C=>c.sign_in_official=C,style:{"margin-right":"12px"}},{default:l(()=>r[10]||(r[10]=[d(" 官服签到 ")])),_:2},1032,["checked","onUpdate:checked"]),e(a,{checked:c.sign_in_bilibili,"onUpdate:checked":C=>c.sign_in_bilibili=C,style:{"margin-right":"12px"}},{default:l(()=>r[11]||(r[11]=[d(" B服签到 ")])),_:2},1032,["checked","onUpdate:checked"])]),_:2},1024)]))),128)),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).check_mail_enable,"onUpdate:checked":r[1]||(r[1]=c=>t(n).check_mail_enable=c)},{default:l(()=>r[12]||(r[12]=[s("div",{class:"item"},"领取邮件",-1)])),_:1},8,["checked"]),e(a,{checked:t(n).delete_read_mail,"onUpdate:checked":r[2]||(r[2]=c=>t(n).delete_read_mail=c)},{default:l(()=>r[13]||(r[13]=[d("删除已读邮件")])),_:1},8,["checked"])]),_:1}),e(v),e(a,{checked:t(n).visit_friend,"onUpdate:checked":r[3]||(r[3]=c=>t(n).visit_friend=c)},{default:l(()=>r[14]||(r[14]=[s("div",{class:"item"},"访问好友",-1)])),_:1},8,["checked"]),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).report_enable,"onUpdate:checked":r[4]||(r[4]=c=>t(n).report_enable=c)},{default:l(()=>r[15]||(r[15]=[s("div",{class:"item"},"读取基报",-1)])),_:1},8,["checked"])]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).sign_in.enable,"onUpdate:checked":r[5]||(r[5]=c=>t(n).sign_in.enable=c)},{default:l(()=>r[16]||(r[16]=[s("div",{class:"item"},"签到活动",-1)])),_:1},8,["checked"]),e(h,null,{default:l(()=>r[17]||(r[17]=[d("游戏内签到、矿区、限定池每日单抽等")])),_:1})]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).switch_assistants,"onUpdate:checked":r[6]||(r[6]=c=>t(n).switch_assistants=c)},{default:l(()=>r[18]||(r[18]=[s("div",{class:"item"},"基建副手",-1)])),_:1},8,["checked"]),e(f,{style:{"max-width":"220px"},value:t(n).trust_limit,"onUpdate:value":r[7]||(r[7]=c=>t(n).trust_limit=c),min:100,max:200,precision:0},{prefix:l(()=>r[19]||(r[19]=[d("信赖值阈值(≥)")])),suffix:l(()=>r[20]||(r[20]=[d("%")])),_:1},8,["value"])]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).trade_token,"onUpdate:checked":r[8]||(r[8]=c=>t(n).trade_token=c)},{default:l(()=>r[21]||(r[21]=[s("div",{class:"item"},"信物兑换",-1)])),_:1},8,["checked"])]),_:1})]),_:1})]),_:1})}}},vn=be(cn,[["__scopeId","data-v-e95953da"]]),bn={__name:"AutoFight",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=[{label:"精零",value:0},{label:"精一",value:1},{label:"精二",value:2}];return(a,i)=>{const v=ue,h=re,f=_e,P=xe,c=Ue,C=Ze,w=ge,m=ie,x=pe;return g(),O(x,{title:"自动战斗设置"},{default:l(()=>[e(m,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"110","label-align":"left"},{default:l(()=>[e(h,{"show-label":!1},{default:l(()=>[e(v,{checked:t(u).avatar_recog_pause,"onUpdate:checked":i[0]||(i[0]=b=>t(u).avatar_recog_pause=b)},{default:l(()=>i[6]||(i[6]=[d("识别干员时暂停")])),_:1},8,["checked"])]),_:1}),e(h,null,{label:l(()=>[i[8]||(i[8]=s("span",null,"第一段滑动",-1)),e(f,null,{default:l(()=>i[7]||(i[7]=[s("div",null,"把干员从待部署区域拖到地图上的对应位置",-1),s("div",null,"默认值:400毫秒",-1)])),_:1})]),default:l(()=>[e(P,{value:t(u).first_swipe_duration,"onUpdate:value":i[1]||(i[1]=b=>t(u).first_swipe_duration=b),precision:0},{suffix:l(()=>i[9]||(i[9]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e(h,null,{label:l(()=>[i[11]||(i[11]=s("span",null,"第二段滑动",-1)),e(f,null,{default:l(()=>i[10]||(i[10]=[s("div",null,"确认部署方向",-1),s("div",null,"默认值:200毫秒",-1)])),_:1})]),default:l(()=>[e(P,{value:t(u).second_swipe_duration,"onUpdate:value":i[2]||(i[2]=b=>t(u).second_swipe_duration=b),precision:0},{suffix:l(()=>i[12]||(i[12]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e(c),e(C,{class:"subtitle"},{default:l(()=>i[13]||(i[13]=[d("借助战")])),_:1}),e(h,{label:"精英化限制"},{default:l(()=>[e(w,{value:t(u).support.elite,"onUpdate:value":i[3]||(i[3]=b=>t(u).support.elite=b),options:r},null,8,["value"])]),_:1}),e(h,{label:"等级限制"},{default:l(()=>[e(P,{value:t(u).support.level,"onUpdate:value":i[4]||(i[4]=b=>t(u).support.level=b),min:1,max:90},null,8,["value"])]),_:1}),e(h,{label:"最大刷新次数"},{default:l(()=>[e(P,{value:t(u).support.refresh,"onUpdate:value":i[5]||(i[5]=b=>t(u).support.refresh=b),min:1},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},gn=be(bn,[["__scopeId","data-v-31c5d919"]]),kn={style:{display:"flex","align-items":"center",width:"100%"}},yn={class:"misc-container"},xn={__name:"SKLand",setup(p){const y=G("axios"),n=te(),{conf:u}=Z(n);function r(){return{isCheck:!0,account:"",password:"",sign_in_official:!0,sign_in_bilibili:!0,cultivate_select:!0}}const a=j("");async function i(){a.value="正在测试……";const v=await y.get("/check-skland");a.value=v.data}return(v,h)=>{const f=_e,P=Ae,c=ft,C=Ue,w=ce,m=pe;return g(),O(m,null,{header:l(()=>[h[2]||(h[2]=s("div",{class:"card-title"},"森空岛账号",-1)),e(f,null,{default:l(()=>h[1]||(h[1]=[s("div",null,"连接失败时,请尝试:",-1),s("ol",{style:{margin:"0"}},[s("li",null,"同步系统时间后再试;"),s("li",null,"检查账号密码是否正确;"),s("li",null,"关闭代理软件或设置分流规则;"),s("li",null,"登录森空岛App,查看是否需要人机验证。")],-1)])),_:1})]),default:l(()=>[e(c,{value:t(u).skland_info,"onUpdate:value":h[0]||(h[0]=x=>t(u).skland_info=x),"on-create":r,"show-sort-button":""},{default:l(({value:x})=>[s("div",kn,[e(P,{style:{"margin-right":"10px"},value:x.account,"onUpdate:value":b=>x.account=b,type:"text",placeholder:"账号"},null,8,["value","onUpdate:value"]),e(P,{value:x.password,"onUpdate:value":b=>x.password=b,type:"password","show-password-on":"click",placeholder:"密码"},null,8,["value","onUpdate:value"])])]),_:1},8,["value"]),e(C),s("div",yn,[e(w,{onClick:i},{default:l(()=>h[3]||(h[3]=[d("测试设置")])),_:1}),s("div",null,J(t(a)),1)])]),_:1})}}},hn={key:0},wn={key:1},Cn={key:0},Un={class:"email-test mt-16"},Sn={__name:"Email",setup(p){const y=te(),n=G("axios"),u=G("mobile"),r=j(""),{conf:a}=Z(y);async function i(){r.value="正在发送……";const h=await n.get("/test-email");r.value=h.data}const v=[{label:"INFO - 基建任务、刷理智、公招汇总、基报、活动签到等",value:"INFO"},{label:"WARNING - 版本过旧、组内心情差过大、漏单、公招稀有标签等",value:"WARNING"},{label:"ERROR - 无法排班、专精失败、Maa调用出错、森空岛签到失败、活动签到超时、OF-1失败等",value:"ERROR"}];return(h,f)=>{const P=ue,c=ce,C=xl,w=Pe,m=Ae,x=re,b=ze,F=Te,D=xe,R=_e,S=ge,A=ft,Y=ie,N=Ue,U=pe;return g(),O(U,null,{header:l(()=>[e(P,{checked:t(a).mail_enable,"onUpdate:checked":f[0]||(f[0]=k=>t(a).mail_enable=k),class:"email-title"},{default:l(()=>f[11]||(f[11]=[s("div",{class:"card-title"},"邮件提醒",-1),s("div",{class:"expand"},null,-1)])),_:1},8,["checked"]),t(u)?(g(),O(c,{key:0,onClick:f[1]||(f[1]=k=>t(a).custom_smtp_server.enable=!t(a).custom_smtp_server.enable),type:"primary",ghost:""},{default:l(()=>[d(J(t(a).custom_smtp_server.enable?"自定义邮箱":"QQ邮箱"),1)]),_:1})):(g(),O(w,{key:1,class:"email-mode",value:t(a).custom_smtp_server.enable,"onUpdate:value":f[2]||(f[2]=k=>t(a).custom_smtp_server.enable=k)},{default:l(()=>[e(C,{value:!1,label:"QQ邮箱"}),e(C,{value:!0,label:"自定义邮箱"})]),_:1},8,["value"]))]),default:l(()=>[e(Y,{"label-placement":t(u)?"top":"left","show-feedback":!1,"label-width":"96","label-align":"left"},{default:l(()=>[t(a).custom_smtp_server.enable?(g(),O(x,{key:0,label:"SMTP服务器"},{default:l(()=>[e(m,{value:t(a).custom_smtp_server.server,"onUpdate:value":f[3]||(f[3]=k=>t(a).custom_smtp_server.server=k)},null,8,["value"])]),_:1})):E("",!0),t(a).custom_smtp_server.enable?(g(),O(x,{key:1,label:"加密方式"},{default:l(()=>[e(w,{value:t(a).custom_smtp_server.encryption,"onUpdate:value":f[4]||(f[4]=k=>t(a).custom_smtp_server.encryption=k)},{default:l(()=>[e(F,null,{default:l(()=>[e(b,{value:"tls",label:"SSL/TLS"}),e(b,{value:"starttls",label:"STARTTLS"})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0),t(a).custom_smtp_server.enable?(g(),O(x,{key:2,label:"端口号"},{default:l(()=>[e(D,{value:t(a).custom_smtp_server.ssl_port,"onUpdate:value":f[5]||(f[5]=k=>t(a).custom_smtp_server.ssl_port=k)},null,8,["value"])]),_:1})):E("",!0),e(x,null,{label:l(()=>[t(a).custom_smtp_server.enable?(g(),B("span",hn,"账号")):(g(),B("span",wn,"QQ邮箱"))]),default:l(()=>[e(m,{value:t(a).account,"onUpdate:value":f[6]||(f[6]=k=>t(a).account=k)},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[t(a).custom_smtp_server.enable?(g(),B("span",Cn,"密码")):(g(),B(X,{key:1},[f[13]||(f[13]=s("span",null,"授权码",-1)),e(R,null,{default:l(()=>[e(c,{text:"",tag:"a",href:"https://service.mail.qq.com/detail/0/75",target:"_blank",type:"primary"},{default:l(()=>f[12]||(f[12]=[d(" https://service.mail.qq.com/detail/0/75 ")])),_:1})]),_:1})],64))]),default:l(()=>[e(m,{value:t(a).pass_code,"onUpdate:value":f[7]||(f[7]=k=>t(a).pass_code=k),type:"password","show-password-on":"click"},null,8,["value"])]),_:1}),e(x,{label:"通知等级"},{default:l(()=>[e(S,{value:t(a).notification_level,"onUpdate:value":f[8]||(f[8]=k=>t(a).notification_level=k),options:v},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[f[15]||(f[15]=s("span",null,"标题前缀",-1)),e(R,null,{default:l(()=>f[14]||(f[14]=[d("可用于区分来自多个Mower的邮件")])),_:1})]),default:l(()=>[e(m,{value:t(a).mail_subject,"onUpdate:value":f[9]||(f[9]=k=>t(a).mail_subject=k)},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[f[17]||(f[17]=s("span",null,"收件人",-1)),e(R,null,{default:l(()=>f[16]||(f[16]=[d("不填时将邮件发给自己")])),_:1})]),default:l(()=>[e(A,{value:t(a).recipient,"onUpdate:value":f[10]||(f[10]=k=>t(a).recipient=k)},null,8,["value"])]),_:1})]),_:1},8,["label-placement"]),e(N),s("div",Un,[e(c,{onClick:i},{default:l(()=>f[18]||(f[18]=[d("发送测试邮件")])),_:1}),s("div",null,J(t(r)),1)])]),_:1})}}},Rn=be(Sn,[["__scopeId","data-v-7cbc22ce"]]),$n={class:"grid-two"},Tn={class:"grid-left"},zn={key:0},Pn={class:"threshold"},An={class:"grid-right"},On={__name:"Settings",setup(p){const y=te(),{conf:n}=Z(y),u=Qe(),{operators:r}=Z(u),{left_side_facility:a}=u,i=G("mobile"),v=L(()=>[{label:"(加速任意贸易站)",value:""}].concat(a)),h=[{label:"夜神",value:"夜神"},{label:"MuMu模拟器12",value:"MuMu12"},{label:"Waydroid",value:"Waydroid"},{label:"雷电模拟器9",value:"雷电9"},{label:"ReDroid",value:"ReDroid"},{label:"MuMu模拟器Pro",value:"MuMuPro"},{label:"Genymotion",value:"Genymotion"},{label:"其它",value:""}],f=[{label:"使用adb命令启动",value:"adb"},{label:"点击屏幕启动",value:"tap"}],P=[{label:"什么都不做",value:"do_nothing"},{label:"返回桌面",value:"switch_to_home"},{label:"退出游戏",value:"exit_game"},{label:"退出模拟器",value:"close_emulator"}];async function c(){const I=await bt();I&&(n.value.emulator.emulator_folder=I)}const C={},w=[.5,1,1.5,2,3];for(let I=.5;I<=3;I+=.25)C[I]=w.includes(I)?`${I*100}%`:"";const m=j(n.value.webview.scale);async function x(){const I=await Nl();I&&(n.value.maa_adb_path=I)}const b=L(()=>{const I=[{label:"DroidCast_raw(主动,无损,较快)",value:"droidcast_raw"},{label:"ADB+Gzip(主动,无损,很慢)",value:"adb"},{label:"DroidCast(主动,有损,较快)",value:"droidcast"},{label:"scrcpy(被动,有损,特殊)",value:"scrcpy"},{label:"自定义(以下命令需要向STDOUT打印截图文件)",value:"diy"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12截图API(主动,无损,超快)",value:"mumuipc"}),I}),F=L(()=>{const I=[{label:"scrcpy",value:"scrcpy"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12触控API",value:"mumuipc"}),I}),D=L(()=>{const I=[{label:"ADB",value:"adb"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12应用管理器",value:"mumumanager"}),I}),R=j(!1),S=j(""),A=j(0),Y=j(!0),N=j(""),U=j(!1),k=G("axios");async function V(){U.value=!0,R.value=!1;try{const{data:I}=await k.get("/test-screenshot");Y.value=I.success,Y.value?(S.value=I.screenshot,A.value=I.elapsed):N.value=I.reason}finally{U.value=!1,R.value=!0}}const M={CONNECTING:"正在提交反馈至神经",UNKNOWN:"未知",UNKNOWN_WITH_NAVBAR:"有导航栏的未知场景",LOADING:"场景跳转时的等待界面",LOGIN_LOADING:"登录中",LOGIN_MAIN_NOENTRY:"登录页面(无按钮入口)",OPERATOR_ONGOING:"代理作战"},H=L(()=>A.value<=50?"success":A.value<=200?"default":A.value<=500?"warning":"error"),z=L(()=>["夜神","MuMu12","雷电9","ReDroid","Waydroid"].includes(n.value.emulator.name)),q=j(!1);async function le(){q.value=!0;const[I,o]=await Promise.all([k.get("/auto-get-path"),k.get("/get-adb-serial")]);q.value=!1,o.data!="OK"?de.error("请填写正确的多开编号!"):de.success("自动填写成功!")}const de=sl();return(I,o)=>{const ne=ge,$=re,K=_e,Q=Ae,W=ce,ee=xe,ke=Ue,Le=mt,oe=ze,he=Te,we=Pe,Be=Al,Ne=vt,Ie=Je,fe=ue,Se=ie,Re=pe,Ee=Tl,je=rl,Fe=kl,qe=Rn,kt=xn,yt=gn,xt=ll,ht=vn,wt=mn,Ct=_n,Ut=un,St=on,Rt=Kl;return g(),B("div",$n,[s("div",Tn,[s("div",null,[e(Re,{title:"设备与游戏设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"120","label-align":"left"},{default:l(()=>[e($,{label:"模拟器"},{default:l(()=>[e(ne,{value:t(n).emulator.name,"onUpdate:value":o[0]||(o[0]=_=>t(n).emulator.name=_),options:h},null,8,["value"])]),_:1}),t(n).emulator.name?(g(),O($,{key:0},{label:l(()=>[o[43]||(o[43]=s("span",null,"多开编号",-1)),e(K,null,{default:l(()=>o[42]||(o[42]=[s("div",null,"MuMu模拟器12的多开器中,第一个实例(锁形图标)的序号为0",-1),s("div",null,"夜神模拟器单开请填写-1",-1),s("div",null,"其它模拟器请填写多开器中的序号",-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.index,"onUpdate:value":o[1]||(o[1]=_=>t(n).emulator.index=_)},null,8,["value"]),t(z)?(g(),O(W,{key:0,class:"dialog-btn",onClick:le,loading:t(q)},{default:l(()=>o[44]||(o[44]=[d(" 自动填写设置 ")])),_:1},8,["loading"])):E("",!0)]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:1},{label:l(()=>[o[46]||(o[46]=s("span",null,"模拟器文件夹",-1)),e(K,null,{default:l(()=>o[45]||(o[45]=[s("div",null,"夜神:写到bin文件夹",-1),s("div",null,"MuMu12: 写到shell文件夹",-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.emulator_folder,"onUpdate:value":o[2]||(o[2]=_=>t(n).emulator.emulator_folder=_),type:"textarea",autosize:!0},null,8,["value"]),e(W,{onClick:c,class:"dialog-btn"},{default:l(()=>o[47]||(o[47]=[d("...")])),_:1})]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:2,label:"模拟器启动时间"},{default:l(()=>[e(ee,{value:t(n).emulator.wait_time,"onUpdate:value":o[3]||(o[3]=_=>t(n).emulator.wait_time=_)},{suffix:l(()=>o[48]||(o[48]=[d("秒")])),_:1},8,["value"])]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:3},{label:l(()=>[o[54]||(o[54]=s("span",null,"模拟器老板键",-1)),e(K,null,{default:l(()=>[o[51]||(o[51]=s("div",null,"启动模拟器后按此快捷键",-1)),o[52]||(o[52]=s("div",null,"若不需要此功能,请留空",-1)),o[53]||(o[53]=s("div",null,"加号分隔按键,不要空格",-1)),s("div",null,[o[50]||(o[50]=d(" 按键名参考 ")),e(W,{text:"",tag:"a",href:"https://pyautogui.readthedocs.io/en/latest/keyboard.html#keyboard-keys",target:"_blank",type:"primary"},{default:l(()=>o[49]||(o[49]=[d(" KEYBOARD_KEYS ")])),_:1})])]),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.hotkey,"onUpdate:value":o[4]||(o[4]=_=>t(n).emulator.hotkey=_),placeholder:"留空停用;组合键用加号分隔"},null,8,["value"])]),_:1})):E("",!0),e(ke),e($,{label:"ADB路径"},{default:l(()=>[e(Q,{type:"textarea",autosize:!0,value:t(n).maa_adb_path,"onUpdate:value":o[5]||(o[5]=_=>t(n).maa_adb_path=_)},null,8,["value"]),e(W,{onClick:x,class:"dialog-btn"},{default:l(()=>o[55]||(o[55]=[d("...")])),_:1})]),_:1}),e($,null,{label:l(()=>[o[57]||(o[57]=s("span",null,"ADB连接地址",-1)),e(K,null,{default:l(()=>o[56]||(o[56]=[s("div",null,"不同模拟器adb地址不同。如不填,系统会自动去寻找adb device中的第一个。",-1),s("div",null,[d("夜神:"),s("code",null,"127.0.0.1:62001")],-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).adb,"onUpdate:value":o[6]||(o[6]=_=>t(n).adb=_)},null,8,["value"])]),_:1}),e(ke),e($,{label:"截图方案"},{default:l(()=>[e(ne,{value:t(n).screencap_strategy,"onUpdate:value":o[7]||(o[7]=_=>t(n).screencap_strategy=_),options:t(b)},null,8,["value","options"])]),_:1}),t(n).emulator.name=="MuMu12"&&t(n).screencap_strategy!="mumuipc"?(g(),O(Le,{key:4,title:"推荐使用MuMu模拟器12专属截图",closable:"",style:{margin:"8px 0"},type:"success"},{default:l(()=>o[58]||(o[58]=[d(" 通过共享内存的方式直接获取无损截图,避免了编码、解码、跨进程传输等环节的开销,截图速度远高于通用截图方案。 ")])),_:1})):E("",!0),e($,{label:"触控方案"},{default:l(()=>[e(ne,{value:t(n).control_strategy,"onUpdate:value":o[8]||(o[8]=_=>t(n).control_strategy=_),options:t(F)},null,8,["value","options"])]),_:1}),e($,{label:"应用控制方案"},{default:l(()=>[e(ne,{value:t(n).app_control_strategy,"onUpdate:value":o[9]||(o[9]=_=>t(n).app_control_strategy=_),options:t(D)},null,8,["value","options"])]),_:1}),t(n).screencap_strategy=="droidcast"?(g(),O($,{key:5,label:"旋转截图"},{default:l(()=>[e(we,{value:t(n).droidcast.rotate,"onUpdate:value":o[10]||(o[10]=_=>t(n).droidcast.rotate=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:!1},{default:l(()=>o[59]||(o[59]=[d("不旋转")])),_:1}),e(oe,{value:!0},{default:l(()=>o[60]||(o[60]=[d("旋转180度")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0),t(n).screencap_strategy=="droidcast_raw"?(g(),B(X,{key:6},[e($,{label:"屏幕朝向"},{default:l(()=>[e(we,{value:t(n).droidcast_raw.orientation,"onUpdate:value":o[11]||(o[11]=_=>t(n).droidcast_raw.orientation=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:"portrait"},{default:l(()=>o[61]||(o[61]=[d("竖屏")])),_:1}),e(oe,{value:"landscape"},{default:l(()=>o[62]||(o[62]=[d("横屏")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(n).screencap_strategy=="droidcast_raw"?(g(),O($,{key:0,label:"旋转截图"},{default:l(()=>[e(we,{value:t(n).droidcast_raw.rotate,"onUpdate:value":o[12]||(o[12]=_=>t(n).droidcast_raw.rotate=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:0},{default:l(()=>o[63]||(o[63]=[d("不旋转")])),_:1}),e(oe,{value:90},{default:l(()=>o[64]||(o[64]=[d("旋转90度")])),_:1}),e(oe,{value:180},{default:l(()=>o[65]||(o[65]=[d("旋转180度")])),_:1}),e(oe,{value:270},{default:l(()=>o[66]||(o[66]=[d("旋转270度")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0)],64)):E("",!0),t(n).screencap_strategy=="diy"?(g(),O($,{key:7,label:"截图命令"},{default:l(()=>[e(Q,{value:t(n).custom_screenshot.command,"onUpdate:value":o[13]||(o[13]=_=>t(n).custom_screenshot.command=_),type:"textarea",autosize:!0},null,8,["value"])]),_:1})):E("",!0),e($,{"show-label":!1},{default:l(()=>[e(he,{vertical:"",style:{gap:"12px"}},{default:l(()=>[e(he,{align:"center",style:{gap:"12px"}},{default:l(()=>[e(W,{onClick:V,loading:t(U)},{default:l(()=>o[67]||(o[67]=[d("测试截图设置")])),_:1},8,["loading"]),t(R)?(g(),B(X,{key:0},[t(Y)?(g(),B("div",zn,[o[68]||(o[68]=d(" 截图用时:")),e(Be,{strong:"",type:t(H)},{default:l(()=>[d(J(t(A))+"ms",1)]),_:1},8,["type"])])):(g(),B(X,{key:1},[e(Be,{type:"error"},{default:l(()=>o[69]||(o[69]=[d("截图失败!")])),_:1}),s("div",null,J(t(N)),1)],64))],64)):E("",!0)]),_:1}),t(R)&&t(Y)?(g(),O(Ne,{key:0,src:"data:image/jpeg;base64,"+t(S),width:"100%"},null,8,["src"])):E("",!0)]),_:1})]),_:1}),e(ke),e($,{label:"游戏服务器"},{default:l(()=>[e(we,{value:t(n).package_type,"onUpdate:value":o[14]||(o[14]=_=>t(n).package_type=_)},{default:l(()=>[e(Ie,null,{default:l(()=>[e(oe,{value:"official"},{default:l(()=>o[70]||(o[70]=[d("官服")])),_:1}),e(oe,{value:"bilibili"},{default:l(()=>o[71]||(o[71]=[d("BiliBili服")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e($,{label:"启动游戏"},{default:l(()=>[e(ne,{value:t(n).tap_to_launch_game.enable,"onUpdate:value":o[15]||(o[15]=_=>t(n).tap_to_launch_game.enable=_),options:f},null,8,["value"])]),_:1}),t(n).tap_to_launch_game.enable=="tap"?(g(),O($,{key:8,label:"点击坐标"},{default:l(()=>[o[72]||(o[72]=s("span",{class:"coord-label"},"X:",-1)),e(ee,{value:t(n).tap_to_launch_game.x,"onUpdate:value":o[16]||(o[16]=_=>t(n).tap_to_launch_game.x=_)},null,8,["value"]),o[73]||(o[73]=s("span",{class:"coord-label"},"Y:",-1)),e(ee,{value:t(n).tap_to_launch_game.y,"onUpdate:value":o[17]||(o[17]=_=>t(n).tap_to_launch_game.y=_)},null,8,["value"])]),_:1})):E("",!0),e($,{label:"任务结束"},{default:l(()=>[e(ne,{value:t(n).strategy_when_idle,"onUpdate:value":o[18]||(o[18]=_=>t(n).strategy_when_idle=_),options:P},null,8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).kill_server_when_idle,"onUpdate:checked":o[19]||(o[19]=_=>t(n).kill_server_when_idle=_)},{default:l(()=>[o[75]||(o[75]=s("span",null,"任务结束时关闭ADB Server",-1)),e(K,null,{default:l(()=>o[74]||(o[74]=[d("建议开启,多开不受影响")])),_:1})]),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(Re,{title:"基建设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"160","label-align":"left"},{default:l(()=>[e($,{label:"宿舍黑名单(非主力)"},{default:l(()=>[t(i)?(g(),O(Ee,{key:0,"virtual-scroll":"","source-filterable":"","target-filterable":"",options:t(r),value:t(n).free_blacklist,"onUpdate:value":o[20]||(o[20]=_=>t(n).free_blacklist=_),"render-source-label":_=>t(De)(_.option),"render-target-label":_=>t(De)(_.option),filter:(_,He)=>_?t(Xe)(He.label,_):!0},null,8,["options","value","render-source-label","render-target-label","filter"])):(g(),O(je,{key:1,modelValue:t(n).free_blacklist,"onUpdate:modelValue":o[21]||(o[21]=_=>t(n).free_blacklist=_)},null,8,["modelValue"]))]),_:1}),e($,null,{label:l(()=>[o[77]||(o[77]=s("span",null,"跑单前置延时",-1)),e(K,null,{default:l(()=>o[76]||(o[76]=[s("div",null,"推荐范围5-10",-1),s("div",null,"可填小数",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).run_order_delay,"onUpdate:value":o[22]||(o[22]=_=>t(n).run_order_delay=_)},{suffix:l(()=>o[78]||(o[78]=[d("分钟")])),_:1},8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).run_order_grandet_mode.enable,"onUpdate:checked":o[23]||(o[23]=_=>t(n).run_order_grandet_mode.enable=_)},{default:l(()=>o[79]||(o[79]=[d("葛朗台跑单")])),_:1},8,["checked"])]),_:1}),t(n).run_order_grandet_mode.enable?(g(),O($,{key:0},{label:l(()=>[o[81]||(o[81]=s("span",null,"葛朗台缓冲时间",-1)),e(K,null,{default:l(()=>o[80]||(o[80]=[d("推荐范围:15-30")])),_:1})]),default:l(()=>[e(ee,{value:t(n).run_order_grandet_mode.buffer_time,"onUpdate:value":o[24]||(o[24]=_=>t(n).run_order_grandet_mode.buffer_time=_)},{suffix:l(()=>o[82]||(o[82]=[d("秒")])),_:1},8,["value"])]),_:1})):E("",!0),t(n).run_order_grandet_mode.enable?(g(),O($,{key:1,"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).run_order_grandet_mode.back_to_index,"onUpdate:checked":o[25]||(o[25]=_=>t(n).run_order_grandet_mode.back_to_index=_)},{default:l(()=>o[83]||(o[83]=[d(" 跑单前返回主界面以保持登录状态 ")])),_:1},8,["checked"])]),_:1})):E("",!0),e($,null,{label:l(()=>[o[85]||(o[85]=s("span",null,"无人机使用房间",-1)),e(K,null,{default:l(()=>o[84]||(o[84]=[s("div",null,"加速制造站为指定制造站加速",-1),s("div",null,"(加速任意贸易站)只会加速有跑单人员作备班的站",-1),s("div",null,"例:没填龙舌兰但书的卖玉站 (加速任意贸易站) 不会被加速",-1),s("div",null,"如需要加速特定某个贸易站请指定对应房间",-1)])),_:1})]),default:l(()=>[e(ne,{options:t(v),value:t(n).drone_room,"onUpdate:value":o[26]||(o[26]=_=>t(n).drone_room=_)},null,8,["options","value"])]),_:1}),e($,null,{label:l(()=>[o[87]||(o[87]=s("span",null,"无人机使用阈值",-1)),e(K,null,{default:l(()=>o[86]||(o[86]=[s("div",null,"如加速贸易,推荐大于 贸易站数*x + 92",-1),s("div",null,"如加速制造,推荐大于 贸易站数*x",-1),s("div",null,"葛朗台跑单模式下x=0,非葛朗台推荐x=10",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).drone_count_limit,"onUpdate:value":o[27]||(o[27]=_=>t(n).drone_count_limit=_)},null,8,["value"])]),_:1}),e($,null,{label:l(()=>[o[89]||(o[89]=s("span",null,"无人机加速间隔",-1)),e(K,null,{default:l(()=>o[88]||(o[88]=[s("div",null,"可填小数",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).drone_interval,"onUpdate:value":o[28]||(o[28]=_=>t(n).drone_interval=_)},{suffix:l(()=>o[90]||(o[90]=[d("小时")])),_:1},8,["value"])]),_:1}),e($,{label:"搓玉补货房间"},{default:l(()=>[e(ne,{multiple:"",filterable:"",tag:"",options:t(a),value:t(n).reload_room,"onUpdate:value":o[29]||(o[29]=_=>t(n).reload_room=_)},null,8,["options","value"])]),_:1}),e($,null,{label:l(()=>[o[92]||(o[92]=s("span",null,"心情阈值",-1)),e(K,null,{default:l(()=>o[91]||(o[91]=[s("div",null,"2电站推荐不低于65%",-1),s("div",null,"3电站推荐不低于50%",-1),s("div",null,"即将大更新推荐设置成80%",-1)])),_:1})]),default:l(()=>[s("div",Pn,[e(Fe,{value:t(n).resting_threshold,"onUpdate:value":o[30]||(o[30]=_=>t(n).resting_threshold=_),step:5,min:50,max:80,"format-tooltip":_=>`${_}%`},null,8,["value","format-tooltip"]),e(ee,{value:t(n).resting_threshold,"onUpdate:value":o[31]||(o[31]=_=>t(n).resting_threshold=_),step:5,min:50,max:80},{suffix:l(()=>o[93]||(o[93]=[d("%")])),_:1},8,["value"])])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).free_room,"onUpdate:checked":o[32]||(o[32]=_=>t(n).free_room=_)},{default:l(()=>[o[95]||(o[95]=d(" 宿舍不养闲人 ")),e(K,null,{default:l(()=>o[94]||(o[94]=[d("干员心情回满后,立即释放宿舍空位")])),_:1})]),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(qe)]),s("div",null,[e(kt)]),s("div",null,[e(yt)]),s("div",null,[e(Re,{title:"外观、性能与其它设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"120","label-align":"left"},{default:l(()=>[e($,{label:"界面缩放"},{default:l(()=>[e(Fe,{value:t(m),"onUpdate:value":o[33]||(o[33]=_=>_t(m)?m.value=_:null),step:.25,min:.5,max:3,marks:C,"format-tooltip":_=>`${_*100}%`},null,8,["value","format-tooltip"]),e(W,{class:"scale-apply",disabled:t(m)==t(n).webview.scale,onClick:o[34]||(o[34]=_=>t(n).webview.scale=t(m))},{default:l(()=>o[96]||(o[96]=[d(" 应用 ")])),_:1},8,["disabled"])]),_:1}),e($,{label:"显示主题"},{default:l(()=>[e(we,{value:t(n).theme,"onUpdate:value":o[35]||(o[35]=_=>t(n).theme=_)},{default:l(()=>[e(Ie,null,{default:l(()=>[e(oe,{value:"light"},{default:l(()=>o[97]||(o[97]=[d("亮色")])),_:1}),e(oe,{value:"dark"},{default:l(()=>o[98]||(o[98]=[d("暗色")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).webview.tray,"onUpdate:checked":o[36]||(o[36]=_=>t(n).webview.tray=_)},{default:l(()=>[o[100]||(o[100]=d(" 使用托盘图标 ")),e(K,null,{default:l(()=>o[99]||(o[99]=[d("重启生效")])),_:1})]),_:1},8,["checked"])]),_:1}),e(ke),e($,{label:"截图最短间隔"},{default:l(()=>[e(ee,{value:t(n).screenshot_interval,"onUpdate:value":o[37]||(o[37]=_=>t(n).screenshot_interval=_),precision:0},{suffix:l(()=>o[101]||(o[101]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e($,null,{label:l(()=>[o[103]||(o[103]=s("span",null,"截图保存时间",-1)),e(K,null,{default:l(()=>o[102]||(o[102]=[d("可填小数")])),_:1})]),default:l(()=>[e(ee,{value:t(n).screenshot,"onUpdate:value":o[38]||(o[38]=_=>t(n).screenshot=_)},{suffix:l(()=>o[104]||(o[104]=[d("小时")])),_:1},8,["value"])]),_:1}),e($,{label:"等待时间"},{default:l(()=>[e(xt,{size:"small",class:"waiting-table"},{default:l(()=>[o[107]||(o[107]=s("thead",null,[s("tr",null,[s("th",null,"场景"),s("th",null,"截图间隔"),s("th",null,"超时时长")])],-1)),s("tbody",null,[(g(!0),B(X,null,ye(t(n).waiting_scene_v2,(_,He)=>(g(),B("tr",null,[s("td",null,J(M[He]),1),s("td",null,[e(ee,{value:_[0],"onUpdate:value":Ge=>_[0]=Ge,"show-button":!1,precision:0},{suffix:l(()=>o[105]||(o[105]=[d("毫秒")])),_:2},1032,["value","onUpdate:value"])]),s("td",null,[e(ee,{value:_[1],"onUpdate:value":Ge=>_[1]=Ge,"show-button":!1,precision:0},{suffix:l(()=>o[106]||(o[106]=[d("秒")])),_:2},1032,["value","onUpdate:value"])])]))),256))])]),_:1})]),_:1}),e(ke),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).start_automatically,"onUpdate:checked":o[39]||(o[39]=_=>t(n).start_automatically=_)},{default:l(()=>o[108]||(o[108]=[d("启动mower-ng后直接开始运行")])),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})])]),s("div",An,[s("div",null,[e(ht)]),s("div",null,[e(wt)]),s("div",null,[e(Ct)]),s("div",null,[e(Re,null,{header:l(()=>[e(fe,{checked:t(n).maa_enable,"onUpdate:checked":o[40]||(o[40]=_=>t(n).maa_enable=_)},{default:l(()=>o[109]||(o[109]=[s("div",{class:"card-title"},"日常任务",-1)])),_:1},8,["checked"]),e(K,null,{default:l(()=>o[110]||(o[110]=[s("div",null,"刷理智周计划、每日/每周任务、信用作战",-1)])),_:1})]),default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"100","label-align":"left"},{default:l(()=>[e($,null,{label:l(()=>[o[112]||(o[112]=s("span",null,"任务间隔",-1)),e(K,null,{default:l(()=>o[111]||(o[111]=[s("div",null,"可填小数",-1),s("div",null,"清理智、日常/周常任务领取、借助战打OF-1",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).maa_gap,"onUpdate:value":o[41]||(o[41]=_=>t(n).maa_gap=_)},{suffix:l(()=>o[113]||(o[113]=[d("小时")])),_:1},8,["value"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(Ut)]),s("div",null,[e(St)]),s("div",null,[e(Rt)])])])}}},oo=be(On,[["__scopeId","data-v-7e026566"]]);export{oo as default}; + `)]),Pl=Object.assign(Object.assign({},Ve.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),Al=ve({name:"Text",props:Pl,setup(p){const{mergedClsPrefixRef:y,inlineThemeDisabled:n}=dt(p),u=Ve("Typography","-text",zl,Pt,p,y),r=L(()=>{const{depth:i,type:v}=p,h=v==="default"?i===void 0?"textColor":`textColor${i}Depth`:Ce("textColor",v),{common:{fontWeightStrong:f,fontFamilyMono:P,cubicBezierEaseInOut:c},self:{codeTextColor:C,codeBorderRadius:w,codeColor:m,codeBorder:x,[h]:b}}=u.value;return{"--n-bezier":c,"--n-text-color":b,"--n-font-weight-strong":f,"--n-font-famliy-mono":P,"--n-code-border-radius":w,"--n-code-text-color":C,"--n-code-color":m,"--n-code-border":x}}),a=n?Qt("text",L(()=>`${p.type[0]}${p.depth||""}`),r,p):void 0;return{mergedClsPrefix:y,compitableTag:At(p,["as","tag"]),cssVars:n?void 0:r,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var p,y,n;const{mergedClsPrefix:u}=this;(p=this.onRender)===null||p===void 0||p.call(this);const r=[`${u}-text`,this.themeClass,{[`${u}-text--code`]:this.code,[`${u}-text--delete`]:this.delete,[`${u}-text--strong`]:this.strong,[`${u}-text--italic`]:this.italic,[`${u}-text--underline`]:this.underline}],a=(n=(y=this.$slots).default)===null||n===void 0?void 0:n.call(y);return this.code?T("code",{class:r,style:this.cssVars},this.delete?T("del",null,a):a):this.delete?T("del",{class:r,style:this.cssVars},a):T(this.compitableTag||"span",{class:r,style:this.cssVars},a)}}),Ol={__name:"SecretFront",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=[{label:"1A→2A→3A→结局A",value:"结局A"},{label:"1A→2A→3A→结局B",value:"结局B"},{label:"1A→2A→3B→结局C",value:"结局C"},{label:"1A→2B→3C→结局D",value:"结局D"},{label:"1A→2B→3C→结局E",value:"结局E"}];return(a,i)=>{const v=xe,h=re,f=ge,P=ie;return g(),O(P,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(h,{label:"超时时长"},{default:l(()=>[e(v,{value:t(u).reclamation_algorithm.timeout,"onUpdate:value":i[0]||(i[0]=c=>t(u).reclamation_algorithm.timeout=c)},{suffix:l(()=>i[2]||(i[2]=[d("秒")])),_:1},8,["value"])]),_:1}),e(h,{label:"选择路线"},{default:l(()=>[e(f,{value:t(u).secret_front.target,"onUpdate:value":i[1]||(i[1]=c=>t(u).secret_front.target=c),options:r},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])}}},Bl={__name:"ReclamationAlgorithm",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n);return(r,a)=>{const i=xe,v=re,h=ie;return g(),O(h,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(v,{label:"超时时长"},{default:l(()=>[e(i,{value:t(u).reclamation_algorithm.timeout,"onUpdate:value":a[0]||(a[0]=f=>t(u).reclamation_algorithm.timeout=f)},{suffix:l(()=>a[1]||(a[1]=[d("秒")])),_:1},8,["value"])]),_:1})]),_:1},8,["label-placement"])}}},Il={class:"sss-container"},Fl={key:0,class:"wrapper"},Ml={class:"title"},Dl={key:1},Vl={__name:"Sss",setup(p){const y=G("mobile"),n=G("axios"),u="/sss-copilot",r=j({exists:!1});pt(async()=>{const{data:x}=await n.get(u);r.value=x});function a({event:x}){r.value=JSON.parse(x.target.response)}const i=G("token"),v=j(!1),h=j(""),f=j(!1),P=j(null);function c(){h.value="",v.value=!0,Xt(()=>P.value.focus())}async function C(){f.value=!0;const x=h.value.replace("maa://",""),{data:b}=await n.get(`https://prts.maa.plus/copilot/get/${x}`,{transformRequest:[(R,S)=>(delete S.token,JSON.stringify(R))]}),F=new FormData;F.append("copilot",new Blob([b.data.content],{type:"application/json"}));const D=await n.post(u,F);r.value=D.data,v.value=!1,f.value=!1}const w=te(),{conf:m}=Z(w);return(x,b)=>{const F=mt,D=ze,R=Te,S=Pe,A=re,Y=ue,N=Ae,U=ce,k=al,V=dl,M=Ye,H=ie;return g(),O(R,{vertical:""},{default:l(()=>[e(F,{title:"请检查作业并修正其中的错误!",type:"warning"}),e(H,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(A,{label:"难度选择"},{default:l(()=>[e(S,{value:t(m).sss.mode,"onUpdate:value":b[0]||(b[0]=z=>t(m).sss.mode=z)},{default:l(()=>[e(R,null,{default:l(()=>[e(D,{value:"normal"},{default:l(()=>b[5]||(b[5]=[d("标准补给模式")])),_:1}),e(D,{value:"ex"},{default:l(()=>b[6]||(b[6]=[d("应急补给模式")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(A,{"show-label":!1},{default:l(()=>[e(Y,{checked:t(m).sss.choose_agent,"onUpdate:checked":b[1]||(b[1]=z=>t(m).sss.choose_agent=z)},{default:l(()=>b[7]||(b[7]=[d(" 自动编队(缺人时自动借助战) ")])),_:1},8,["checked"])]),_:1}),e(A,{"show-label":!1},{default:l(()=>[e(Y,{checked:t(m).sss.finish_while_full,"onUpdate:checked":b[2]||(b[2]=z=>t(m).sss.finish_while_full=z)},{default:l(()=>b[8]||(b[8]=[d("模组刷满时直接结束")])),_:1},8,["checked"])]),_:1}),e(A,{label:"导入作业"},{default:l(()=>[s("div",Il,[t(v)?(g(),B(X,{key:0},[e(N,{ref_key:"code",ref:P,value:t(h),"onUpdate:value":b[3]||(b[3]=z=>_t(h)?h.value=z:null),type:"text",placeholder:"maa://114514",disabled:t(f)},null,8,["value","disabled"]),e(U,{onClick:C,loading:t(f),disabled:t(f)},{default:l(()=>b[9]||(b[9]=[d(" 下载 ")])),_:1},8,["loading","disabled"]),e(U,{onClick:b[4]||(b[4]=z=>v.value=!1)},{default:l(()=>b[10]||(b[10]=[d("取消")])),_:1})],64)):(g(),B(X,{key:1},[e(U,{style:{"flex-grow":"1"},onClick:c},{default:l(()=>b[11]||(b[11]=[d("输入“神秘代码”")])),_:1}),e(k,{style:{width:"auto","flex-grow":"1"},"trigger-style":"width: 100%",action:u,headers:{token:t(i)},"show-file-list":!1,name:"copilot",onFinish:a},{default:l(()=>[e(U,{style:{width:"100%"}},{default:l(()=>b[12]||(b[12]=[d("选择作业文件")])),_:1})]),_:1},8,["headers"])],64))])]),_:1}),e(A,{label:"作业信息"},{default:l(()=>[e(R,{vertical:""},{default:l(()=>[t(r).exists?(g(),B("div",Fl,[s("div",Ml,J(t(r).title),1),e(V,{style:{"max-height":"240px"},"content-style":"padding-right: 12px",trigger:"none"},{default:l(()=>[d(J(t(r).details),1)]),_:1})])):(g(),B("div",Dl,"未选择作业")),(g(!0),B(X,null,ye(t(r).operators,z=>(g(),O(R,{align:"center"},{default:l(()=>[e(M,{src:`avatar/${z.name}.webp`},null,8,["src"]),s("div",null,J(z.name)+"("+J(z.skill)+"技能)",1)]),_:2},1024))),256))]),_:1})]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},Ll=be(Vl,[["__scopeId","data-v-2dffb781"]]);async function Nl(){return(await ut.get("/dialog/file")).data}async function bt(){return(await ut.get("/dialog/folder")).data}const El={class:"misc-container"},jl={__name:"MaaBasic",setup(p){const y=G("axios"),n=G("mobile"),u=te(),{conf:r}=Z(u);async function a(){const c=await bt();c&&(r.value.maa_path=c)}const i=j("");async function v(){i.value="正在测试……";const c=await y.get("/check-maa");i.value=c.data}const h=j([]);async function f(){const c=await y.get("/maa-conn-preset");r.value.maa_conn_presets=c.data.map(C=>({label:C,value:C}))}const P=["maatouch","minitouch","adb"].map(c=>({label:c,value:c}));return(c,C)=>{const w=Ue,m=Ze,x=Ae,b=ce,F=re,D=ge,R=ie;return g(),B(X,null,[e(w),e(m,{class:"header"},{default:l(()=>C[3]||(C[3]=[d("Maa设置")])),_:1}),e(R,{"label-placement":t(n)?"top":"left","show-feedback":!1,"label-width":"96","label-align":"left"},{default:l(()=>[e(F,{label:"Maa目录"},{default:l(()=>[e(x,{type:"textarea",autosize:!0,value:t(r).maa_path,"onUpdate:value":C[0]||(C[0]=S=>t(r).maa_path=S)},null,8,["value"]),e(b,{onClick:a,class:"dialog-btn"},{default:l(()=>C[4]||(C[4]=[d("...")])),_:1})]),_:1}),e(F,{label:"连接配置"},{default:l(()=>[e(D,{options:t(h),value:t(r).maa_conn_preset,"onUpdate:value":C[1]||(C[1]=S=>t(r).maa_conn_preset=S)},null,8,["options","value"]),e(b,{onClick:f,class:"dialog-btn"},{default:l(()=>C[5]||(C[5]=[d("刷新")])),_:1})]),_:1}),e(F,{label:"触控模式"},{default:l(()=>[e(D,{value:t(r).maa_touch_option,"onUpdate:value":C[2]||(C[2]=S=>t(r).maa_touch_option=S),options:t(P)},null,8,["value","options"])]),_:1})]),_:1},8,["label-placement"]),e(w),s("div",El,[e(b,{onClick:v},{default:l(()=>C[6]||(C[6]=[d("测试设置")])),_:1}),s("div",null,J(t(i)),1)]),e(w,{style:{margin:"12px 0 16px"}})],64)}}},ql=be(jl,[["__scopeId","data-v-d479d5bf"]]),Hl={__name:"MaaRogue",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=Qe(),{operators:a}=Z(r),i=[{label:"傀影与猩红孤钻",value:"Phantom"},{label:"水月与深蓝之树",value:"Mizuki"},{label:"探索者的银凇止境",value:"Sami"},{label:"萨卡兹的无终奇语",value:"Sarkaz"}],v={Phantom:["研究","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Mizuki:["心胜于物","物尽其用","以人为本","研究","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Sami:["永恒狩猎","生活至上","科学主义","特训","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Sarkaz:["因地制宜","魂灵护送","博闻广记","蓝图测绘","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"]};for(const C in v)v[C]=v[C].map(w=>({label:w+"分队",value:w+"分队"}));const h=[{label:"先手必胜(先锋、狙击、特种)",value:"先手必胜"},{label:"稳扎稳打(重装、术师、狙击)",value:"稳扎稳打"},{label:"取长补短(近卫、辅助、医疗)",value:"取长补短"},{label:"随心所欲(随机)",value:"随心所欲"}],f=[{label:"刷蜡烛,尽可能稳定地打更多层数",value:0},{label:"刷源石锭,第一层投资完就退出",value:1},{label:"【即将弃用】兼顾",value:2},{label:"刷开局,到达第三层后直接退出",value:4},{label:"刷坍缩范式",value:5}],P=["去量化","去量深化","实质性坍缩","蔓延性坍缩","非线性移动","非线性行动","情绪实体","恐怖实体","泛社会悖论","泛文明悖论","气压异常","气压失序","触发性损伤","触发性危殆","趋同性消耗","趋同性缺失","目空一些","睁眼瞎","图像损坏","一抹黑"],c=[];for(const C of P)c.push({label:C,value:C});return(C,w)=>{const m=ql,x=ge,b=re,F=ue,D=ie;return g(),B(X,null,[e(m),e(D,{"label-placement":t(y)?"top":"left","show-feedback":!1,class:"conf.rogue"},{default:l(()=>[e(b,{label:"主题"},{default:l(()=>[e(x,{value:t(u).maa_rg_theme,"onUpdate:value":w[0]||(w[0]=R=>t(u).maa_rg_theme=R),options:i},null,8,["value"])]),_:1}),e(b,{label:"分队"},{default:l(()=>[e(x,{value:t(u).rogue.squad,"onUpdate:value":w[1]||(w[1]=R=>t(u).rogue.squad=R),options:v[t(u).maa_rg_theme]},null,8,["value","options"])]),_:1}),e(b,{label:"职业"},{default:l(()=>[e(x,{value:t(u).rogue.roles,"onUpdate:value":w[2]||(w[2]=R=>t(u).rogue.roles=R),options:h},null,8,["value"])]),_:1}),e(b,{label:"干员"},{default:l(()=>[e(x,{filterable:"",options:t(a),value:t(u).rogue.core_char,"onUpdate:value":w[3]||(w[3]=R=>t(u).rogue.core_char=R),filter:(R,S)=>t(Xe)(S.label,R),"render-label":t(De)},null,8,["options","value","filter","render-label"])]),_:1}),e(b,{"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.use_support,"onUpdate:checked":w[4]||(w[4]=R=>t(u).rogue.use_support=R)},{default:l(()=>w[9]||(w[9]=[d("开局干员使用助战")])),_:1},8,["checked"])]),_:1}),t(u).rogue.use_support?(g(),O(b,{key:0,"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.use_nonfriend_support,"onUpdate:checked":w[5]||(w[5]=R=>t(u).rogue.use_nonfriend_support=R)},{default:l(()=>w[10]||(w[10]=[d("开局干员使用非好友助战")])),_:1},8,["checked"])]),_:1})):E("",!0),e(b,{label:"策略"},{default:l(()=>[e(x,{options:f,value:t(u).rogue.mode,"onUpdate:value":w[6]||(w[6]=R=>t(u).rogue.mode=R)},null,8,["value"])]),_:1}),e(b,{"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.refresh_trader_with_dice,"onUpdate:checked":w[7]||(w[7]=R=>t(u).rogue.refresh_trader_with_dice=R)},{default:l(()=>w[11]||(w[11]=[d("刷新商店(指路鳞)")])),_:1},8,["checked"])]),_:1}),e(b,{label:"坍缩范式"},{default:l(()=>[e(x,{multiple:"",options:c,value:t(u).rogue.expected_collapsal_paradigms,"onUpdate:value":w[8]||(w[8]=R=>t(u).rogue.expected_collapsal_paradigms=R)},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])],64)}}},Gl={key:0},Kl={__name:"LongTasks",setup(p){const y=te(),{conf:n}=Z(y),u=G("mobile"),r=[{label:"集成战略 (Maa)",value:"rogue"},{label:"保全派驻",value:"sss"},{label:"生息演算",value:"ra"},{label:"隐秘战线",value:"sf"}];return(a,i)=>{const v=ue,h=_e,f=ge,P=tl,c=wl,C=vl,w=ie,m=Hl,x=Ll,b=Bl,F=Ol,D=pe;return g(),O(D,null,{header:l(()=>[e(v,{checked:t(n).maa_rg_enable,"onUpdate:checked":i[0]||(i[0]=R=>t(n).maa_rg_enable=R),disabled:!t(n).maa_enable},{default:l(()=>i[4]||(i[4]=[s("div",{class:"card-title"},"大型任务",-1)])),_:1},8,["checked","disabled"]),e(h,null,{default:l(()=>[t(n).maa_enable?(g(),B(X,{key:1},[i[5]||(i[5]=s("div",null,"开始与结束时间设置为相同值时全天开启。",-1)),i[6]||(i[6]=s("div",null,"若结束时间早于开始时间,则表示开启至次日。例如:",-1)),i[7]||(i[7]=s("ul",null,[s("li",null,"23:00开始、8:00结束:表示从23:00至次日8:00执行大型任务;"),s("li",null,"10:00开始、14:00结束:表示从10:00至当日14:00执行大型任务。")],-1))],64)):(g(),B("div",Gl,"需开启日常任务"))]),_:1}),e(f,{value:t(n).maa_long_task_type,"onUpdate:value":i[1]||(i[1]=R=>t(n).maa_long_task_type=R),options:r},null,8,["value"])]),default:l(()=>[e(w,{"label-placement":t(u)?"top":"left","show-feedback":!1,style:{"margin-bottom":"12px"}},{default:l(()=>[e(C,{cols:"2"},{default:l(()=>[e(c,{label:"开始时间"},{default:l(()=>[e(P,{format:"H:mm","formatted-value":t(n).maa_rg_sleep_max,"onUpdate:formattedValue":i[2]||(i[2]=R=>t(n).maa_rg_sleep_max=R)},null,8,["formatted-value"])]),_:1}),e(c,{label:"停止时间"},{default:l(()=>[e(P,{format:"H:mm","formatted-value":t(n).maa_rg_sleep_min,"onUpdate:formattedValue":i[3]||(i[3]=R=>t(n).maa_rg_sleep_min=R)},null,8,["formatted-value"])]),_:1})]),_:1})]),_:1},8,["label-placement"]),t(n).maa_long_task_type=="rogue"?(g(),O(m,{key:0})):t(n).maa_long_task_type=="sss"?(g(),O(x,{key:1})):t(n).maa_long_task_type=="ra"?(g(),O(b,{key:2})):t(n).maa_long_task_type=="sf"?(g(),O(F,{key:3})):E("",!0)]),_:1})}}};var gt={};Object.defineProperty(gt,"__esModule",{value:!0});const $e=Jt,Wl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Yl=(0,$e.createElementVNode)("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[(0,$e.createElementVNode)("path",{d:"M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4"}),(0,$e.createElementVNode)("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})],-1),Ql=[Yl];var Xl=gt.default=(0,$e.defineComponent)({name:"Refresh",render:function(y,n){return(0,$e.openBlock)(),(0,$e.createElementBlock)("svg",Wl,Ql)}});const Jl={key:0},Zl={key:1},en={class:"tasktable"},tn={key:0,class:"today"},ln={key:1},nn={__name:"WeeklyPlan",setup(p){Zt(U=>({"06f96d6a":t(x),"292d8683":t(b),"6d545694":t(N)}));const y=te(),{conf:n}=Z(y);function u(){const U=new Date().getDay();return U==0?6:U-1}const r=["一","二","三","四","五","六","日"],a=["","Annihilation"],i=["1-7","LS-6","CE-6","AP-5","SK-5","CA-5","PR-A-2","PR-A-1","PR-B-2","PR-B-1","PR-C-2","PR-C-1","PR-D-2","PR-D-1"],v={CE:[1,3,5,6],AP:[0,3,5,6],SK:[0,2,4,5],CA:[1,2,4,6],"PR-A":[0,3,4,6],"PR-B":[0,1,4,5],"PR-C":[2,3,5,6],"PR-D":[1,2,5,6]};function h(U){switch(U){case"":return"上次作战";case"Annihilation":return"当期剿灭";case"LS-6":return"经验书";case"CE-6":return"龙门币";case"AP-5":return"红票";case"SK-5":return"碳本";case"CA-5":return"技能书";case"PR-A-1":return"医疗重装1";case"PR-A-2":return"医疗重装2";case"PR-B-1":return"狙击术师1";case"PR-B-2":return"狙击术师2";case"PR-C-1":return"先锋辅助1";case"PR-C-2":return"先锋辅助2";case"PR-D-1":return"近卫特种1";case"PR-D-2":return"近卫特种2";default:return U}}const f=L(()=>{const U=[];for(const k of a){const V=[];for(let M=0;M<7;++M)V.push({available:!0,enable:n.value.weekly_plan[M].general.includes(k)});U.push({stage:k,week:V})}for(const k of n.value.custom_stages){const V=[];for(let M=0;M<7;++M)V.push({available:!0,enable:n.value.weekly_plan[M].custom.includes(k)});U.push({stage:k,week:V})}for(const k of i){let V=[0,1,2,3,4,5,6];for(const[H,z]of Object.entries(v))if(k.includes(H)){V=z;break}const M=[];for(let H=0;H<7;++H)M.push({available:V.includes(H),enable:n.value.weekly_plan[H].general.includes(k)});U.push({stage:k,week:M})}return U});function P(U){const k=[];for(let V=0;V<7;++V){const M={general:[],custom:[]};for(const{stage:H,week:z}of U)z[V].enable&&H!=null&&(n.value.custom_stages.includes(H)?M.custom.push(H):M.general.push(H));k.push(M)}n.value.weekly_plan=k}function c(U){const k=tt(f.value);let V=!1;for(const M of k[U].week)M.enable!=M.available&&(V=!0,M.enable=M.available);if(!V)for(const M of k[U].week)M.enable=!1;P(k)}function C(U,k){const V=tt(f.value);V[U].week[k].enable=!V[U].week[k].enable,P(V)}function w(U){return U=U.toUpperCase(),U==" "||U=="上次作战"?{label:"上次作战",value:""}:U=="当期剿灭"?{label:"当期剿灭",value:"Annihilation"}:U.endsWith("磨难")||U.endsWith("标准")?(U=U.slice(0,-2),{label:U,value:U}):{label:U,value:U}}const m=G("mobile"),x=L(()=>n.value.theme=="light"?"hsl(33, 30%, 91%)":"hsl(33, 15%, 50%)"),b=L(()=>n.value.theme=="light"?"hsl(200, 90%, 65%)":"hsl(200, 80%, 30%)"),F="/activity",D=j([]),R=G("axios");async function S(){const{data:U}=await R.get(F);D.value=U.reverse()}pt(()=>{S()});function A(U,k){k.dataTransfer.setData("text",U)}function Y(U,k){k.preventDefault();const V=k.dataTransfer.getData("text");n.value.custom_stages[U-2]=V}const N=L(()=>n.value.theme=="light"?"rgba(194, 194, 194, 1)":"rgba(255, 255, 255, 0.38)");return(U,k)=>{const V=_e,M=ue,H=re,z=Te,q=ie,le=vt,de=el,I=ce,o=ge,ne=pe;return g(),O(ne,null,{header:l(()=>[s("div",{class:nt(["card-title",{disabled:!t(n).maa_enable}])},"刷理智周计划",2),e(V,null,{default:l(()=>[t(n).maa_enable?(g(),B(X,{key:1},[k[5]||(k[5]=s("div",null,"支持所有主线关卡;",-1)),k[6]||(k[6]=s("div",null,"含磨难的主线关卡仅需填写关卡名,会自动选择难度。",-1))],64)):(g(),B("div",Jl,"需开启日常任务"))]),_:1})]),default:l(()=>[e(q,{"label-placement":t(m)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left",style:{"margin-bottom":"16px"}},{default:l(()=>[e(H,{class:"form-item","show-label":!1},{default:l(()=>[e(M,{checked:t(n).use_all_medicine,"onUpdate:checked":k[0]||(k[0]=$=>t(n).use_all_medicine=$)},{default:l(()=>k[7]||(k[7]=[d("自动使用全部理智药")])),_:1},8,["checked"])]),_:1}),e(H,{class:"form-item","show-label":!1},{default:l(()=>[e(z,null,{default:l(()=>[e(M,{checked:t(n).maa_expiring_medicine,"onUpdate:checked":k[1]||(k[1]=$=>t(n).maa_expiring_medicine=$),disabled:t(n).use_all_medicine},{default:l(()=>k[8]||(k[8]=[d(" 自动使用将要过期(约3天)的理智药 ")])),_:1},8,["checked","disabled"]),e(M,{checked:t(n).exipring_medicine_on_weekend,"onUpdate:checked":k[2]||(k[2]=$=>t(n).exipring_medicine_on_weekend=$),disabled:t(n).use_all_medicine||!t(n).maa_expiring_medicine},{default:l(()=>k[9]||(k[9]=[d(" 仅在周末使用 ")])),_:1},8,["checked","disabled"])]),_:1})]),_:1})]),_:1},8,["label-placement"]),e(z,{class:"activity"},{default:l(()=>[t(D).length>0?(g(!0),B(X,{key:0},ye(t(D),$=>(g(),O(le,{draggable:"true",onDragstart:K=>A($,K)},{default:l(()=>[d(J($),1)]),_:2},1032,["onDragstart"]))),256)):(g(),B("div",Zl,"当前暂无活动开放")),e(I,{text:"",type:"primary",onClick:S},{icon:l(()=>[e(de,null,{default:l(()=>[e(t(Xl))]),_:1})]),_:1})]),_:1}),s("div",en,[s("table",null,[s("thead",null,[s("tr",null,[k[10]||(k[10]=s("th",null,"全选",-1)),k[11]||(k[11]=s("th",null,"关卡",-1)),(g(),B(X,null,ye(7,$=>s("th",{key:$},[d(J(r[$-1])+" ",1),u()==$-1?(g(),B("div",tn,"今天")):E("",!0)])),64))])]),s("tbody",null,[(g(!0),B(X,null,ye(t(f),({stage:$,week:K},Q)=>(g(),B("tr",{key:Q},[s("td",null,[e(I,{quaternary:"",class:"class1",onClick:W=>c(Q),style:{width:"100%",height:"100%"}},null,8,["onClick"])]),s("td",null,[2<=Q&&Q<5?(g(),B(X,{key:0},[$==null?(g(),O(o,{key:0,placeholder:"关卡",value:t(n).custom_stages[Q-2],"onUpdate:value":[W=>t(n).custom_stages[Q-2]=W,W=>{t(n).custom_stages[Q-2]=W[0]}],filterable:"",multiple:"",tag:"",show:!1,"show-arrow":!1,"on-create":w,onDragover:k[3]||(k[3]=ot(()=>{},["prevent"])),onDrop:W=>Y(Q,W)},null,8,["value","onUpdate:value","onDrop"])):(g(),O(le,{key:1,closable:"",class:"custom-tag",onClose:()=>{t(n).custom_stages[Q-2]=null,P(t(f))},onDragover:k[4]||(k[4]=ot(()=>{},["prevent"])),onDrop:W=>Y(Q,W)},{default:l(()=>[d(J($),1)]),_:2},1032,["onClose","onDrop"]))],64)):(g(),B("span",ln,J(h($)),1))]),(g(!0),B(X,null,ye(K,(W,ee)=>(g(),B("td",{class:nt({class2:W.enable,class1:W.available})},[W.available?(g(),O(I,{key:0,quaternary:"",style:{width:"100%",height:"100%"},onClick:ke=>C(Q,ee)},{default:l(()=>[s("span",null,[W.enable?(g(),B(X,{key:0},[d("打")],64)):E("",!0)])]),_:2},1032,["onClick"])):E("",!0)],2))),256))]))),128))])])])]),_:1})}}},on=be(nn,[["__scopeId","data-v-6e42e723"]]),an={key:0},sn={key:1},rn={__name:"Clue",setup(p){const y=te(),{conf:n,shop_list:u}=Z(y),r=Qe(),{operators:a}=Z(r),i=G("mobile");function v({option:w,handleClose:m}){return T(vt,{type:w.type,closable:!0,onMousedown:x=>{x.preventDefault()},onClose:x=>{x.stopPropagation(),m()}},{default:()=>w.label,avatar:()=>T(Ye,{src:`/shop/${w.label}.png`})})}function h(w){return T("div",{style:{display:"flex","align-items":"center",gap:"6px",padding:"2px 0"}},[T(Ye,{src:`/shop/${w.label}.png`}),w.label])}const f=[{label:"向上",value:"Up"},{label:"向下",value:"Down"},{label:"向左",value:"Left"},{label:"向右",value:"Right"}],P=[{label:"第一编队",value:1},{label:"第二编队",value:2},{label:"第三编队",value:3},{label:"第四编队",value:4}],c=[{label:"一技能",value:1},{label:"二技能",value:2},{label:"三技能",value:3}],C=j(!1);return(w,m)=>{const x=ue,b=Ue,F=ce,D=_e,R=Ze,S=ze,A=Je,Y=Pe,N=re,U=ge,k=xe,V=ct,M=ie,H=pe;return g(),O(H,null,{header:l(()=>[e(x,{checked:t(n).enable_party,"onUpdate:checked":m[0]||(m[0]=z=>t(n).enable_party=z)},{default:l(()=>m[14]||(m[14]=[s("div",{class:"card-title"},"线索收集与信用",-1)])),_:1},8,["checked"])]),default:l(()=>[e(x,{checked:t(n).leifeng_mode,"onUpdate:checked":m[1]||(m[1]=z=>t(n).leifeng_mode=z)},{default:l(()=>m[15]||(m[15]=[d("赠送多余的线索")])),_:1},8,["checked"]),e(b),e(R,null,{default:l(()=>[m[19]||(m[19]=d(" 信用商店购物 ")),e(D,null,{default:l(()=>[m[17]||(m[17]=s("span",null,"性价比参考:",-1)),e(F,{text:"",tag:"a",href:"https://github.com/Bidgecfah/Rhodes-Island-Bureau-of-Price",target:"_blank",type:"primary"},{default:l(()=>m[16]||(m[16]=[d(" 罗德岛物价局 ")])),_:1}),m[18]||(m[18]=s("p",null,"注意:跑单时赤金与作战记录均大幅升值",-1))]),_:1})]),_:1}),e(M,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(N,{label:"信用溢出"},{default:l(()=>[e(Y,{value:t(n).maa_mall_ignore_blacklist_when_full,"onUpdate:value":m[2]||(m[2]=z=>t(n).maa_mall_ignore_blacklist_when_full=z)},{default:l(()=>[e(A,null,{default:l(()=>[e(S,{value:!1},{default:l(()=>m[20]||(m[20]=[d("停止购买")])),_:1}),e(S,{value:!0},{default:l(()=>m[21]||(m[21]=[d("无视黑名单继续购买,直至不再溢出")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(N,{label:"优先购买"},{default:l(()=>[e(Y,{value:t(n).maa_mall_ignore_blacklist_when_full,"onUpdate:value":m[4]||(m[4]=z=>t(n).maa_mall_ignore_blacklist_when_full=z)},{default:l(()=>[e(U,{multiple:"",filterable:"",tag:"",options:t(u),value:t(n).maa_mall_buy,"onUpdate:value":m[3]||(m[3]=z=>t(n).maa_mall_buy=z),"render-tag":v,"render-label":h},null,8,["options","value"])]),_:1},8,["value"])]),_:1}),e(N,{label:"黑名单"},{default:l(()=>[e(U,{multiple:"",filterable:"",tag:"",options:t(u),value:t(n).maa_mall_blacklist,"onUpdate:value":m[5]||(m[5]=z=>t(n).maa_mall_blacklist=z),"render-tag":v,"render-label":h},null,8,["options","value"])]),_:1}),e(b),e(M,{"label-placement":t(i)?"top":"left","show-feedback":!1,class:"rogue"},{default:l(()=>[e(N,{"show-label":!1},{default:l(()=>[e(x,{checked:t(n).maa_credit_fight,"onUpdate:checked":m[6]||(m[6]=z=>t(n).maa_credit_fight=z),disabled:!t(n).maa_enable},{default:l(()=>m[22]||(m[22]=[s("div",{class:"item"},"信用作战",-1)])),_:1},8,["checked","disabled"]),e(D,null,{default:l(()=>[t(n).maa_enable?(g(),B("div",sn,"借助战打OF-1")):(g(),B("div",an,"需开启日常任务"))]),_:1})]),_:1}),e(N,{label:"编队"},{default:l(()=>[e(U,{options:P,value:t(n).credit_fight.squad,"onUpdate:value":m[7]||(m[7]=z=>t(n).credit_fight.squad=z)},null,8,["value"])]),_:1}),e(N,{label:"干员"},{default:l(()=>[e(U,{style:{flex:"3","margin-right":"8px"},filterable:"",options:t(a),value:t(n).credit_fight.operator,"onUpdate:value":m[8]||(m[8]=z=>t(n).credit_fight.operator=z),filter:(z,q)=>t(Xe)(q.label,z),"render-label":t(De)},null,8,["options","value","filter","render-label"]),e(U,{style:{flex:"2"},options:c,value:t(n).credit_fight.skill,"onUpdate:value":m[9]||(m[9]=z=>t(n).credit_fight.skill=z)},null,8,["value"])]),_:1}),e(N,{label:"部署"},{default:l(()=>[m[23]||(m[23]=s("div",{style:{width:"40px","text-align":"right"}},"X",-1)),e(k,{style:{margin:"0 8px"},value:t(n).credit_fight.x,"onUpdate:value":m[10]||(m[10]=z=>t(n).credit_fight.x=z),"show-button":!1},null,8,["value"]),m[24]||(m[24]=s("div",{style:{width:"40px","text-align":"right"}},"Y",-1)),e(k,{style:{margin:"0 8px"},value:t(n).credit_fight.y,"onUpdate:value":m[11]||(m[11]=z=>t(n).credit_fight.y=z),"show-button":!1},null,8,["value"]),e(U,{style:{width:"250px","margin-right":"8px"},options:f,value:t(n).credit_fight.direction,"onUpdate:value":m[12]||(m[12]=z=>t(n).credit_fight.direction=z)},null,8,["value"]),e(F,{onClick:m[13]||(m[13]=z=>C.value=!t(C))},{default:l(()=>[d(J(t(C)?"隐藏":"显示")+"OF-1地图",1)]),_:1})]),_:1}),t(C)?(g(),O(N,{key:0,"show-label":!1},{default:l(()=>[e(V,{src:"/map-OF-1.webp",width:"100%"})]),_:1})):E("",!0)]),_:1},8,["label-placement"])]),_:1},8,["label-placement"])]),_:1})}}},un=be(rn,[["__scopeId","data-v-748f667d"]]),dn={style:{display:"flex","align-items":"center",width:"100%"}},pn={style:{"margin-right":"24px"}},_n={__name:"Depotswitch",setup(p){const y=te(),{conf:n}=Z(y);return(u,r)=>{const a=ue,i=_e,v=ze,h=Te,f=Pe,P=pe;return g(),O(P,null,{header:l(()=>[e(a,{checked:t(n).maa_depot_enable,"onUpdate:checked":r[0]||(r[0]=c=>t(n).maa_depot_enable=c)},{default:l(()=>r[1]||(r[1]=[s("div",{class:"card-title"},"仓库物品混合读取",-1)])),_:1},8,["checked"]),e(i,null,{default:l(()=>r[2]||(r[2]=[d("请调整森空岛账号顺序,仅读取"),s("strong",null,"第一个",-1),d("账户"),s("strong",null,"指定服务器",-1),d("的材料")])),_:1})]),default:l(()=>[(g(!0),B(X,null,ye(t(n).skland_info,c=>(g(),B("div",{key:c.account},[s("div",dn,[s("div",pn,"森空岛账号:"+J(c.account),1),e(f,{value:c.cultivate_select,"onUpdate:value":C=>c.cultivate_select=C},{default:l(()=>[e(h,null,{default:l(()=>[e(v,{value:!0},{default:l(()=>r[3]||(r[3]=[d("官服")])),_:1}),e(v,{value:!1},{default:l(()=>r[4]||(r[4]=[d("B服")])),_:1})]),_:1})]),_:2},1032,["value","onUpdate:value"])])]))),128))]),_:1})}}},fn={__name:"Recruit",setup(p){const y=te(),{conf:n}=Z(y),u=G("mobile");return(r,a)=>{const i=ue,v=_e,h=xe,f=re,P=ze,c=Je,C=Pe,w=ie,m=pe;return g(),O(m,null,{header:l(()=>[e(i,{checked:t(n).recruit_enable,"onUpdate:checked":a[0]||(a[0]=x=>t(n).recruit_enable=x)},{default:l(()=>a[6]||(a[6]=[s("div",{class:"card-title"},"公开招募",-1)])),_:1},8,["checked"])]),default:l(()=>[e(w,{"label-placement":t(u)?"top":"left","show-feedback":!1,"label-width":"140","label-align":"left"},{default:l(()=>[e(f,null,{label:l(()=>[a[8]||(a[8]=s("span",null,"启动间隔",-1)),e(v,null,{default:l(()=>a[7]||(a[7]=[d("可填小数")])),_:1})]),default:l(()=>[e(h,{value:t(n).recruit_gap,"onUpdate:value":a[1]||(a[1]=x=>t(n).recruit_gap=x)},{suffix:l(()=>a[9]||(a[9]=[d("小时")])),_:1},8,["value"])]),_:1}),e(f,null,{label:l(()=>[a[11]||(a[11]=s("span",null,"三星招募阈值",-1)),e(v,null,{default:l(()=>a[10]||(a[10]=[d("剩余公招券大于此阈值时招募三星干员")])),_:1})]),default:l(()=>[e(h,{value:t(n).recruitment_permit,"onUpdate:value":a[2]||(a[2]=x=>t(n).recruitment_permit=x)},{suffix:l(()=>a[12]||(a[12]=[d("张")])),_:1},8,["value"])]),_:1}),e(f,{label:"五星招募策略"},{default:l(()=>[e(C,{value:t(n).recruit_auto_5,"onUpdate:value":a[3]||(a[3]=x=>t(n).recruit_auto_5=x)},{default:l(()=>[e(c,{justify:"start"},{default:l(()=>[e(P,{value:1},{default:l(()=>a[13]||(a[13]=[d("自动选择")])),_:1}),e(P,{value:2},{default:l(()=>a[14]||(a[14]=[d("手动选择")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(n).recruit_auto_5===2?(g(),O(f,{key:0,"show-label":!1},{default:l(()=>[e(i,{checked:t(n).recruit_auto_only5,"onUpdate:checked":a[4]||(a[4]=x=>t(n).recruit_auto_only5=x)},{default:l(()=>a[15]||(a[15]=[d("五星词条组合唯一时自动选择")])),_:1},8,["checked"])]),_:1})):E("",!0),e(f,{"show-label":!1},{default:l(()=>[e(i,{checked:t(n).recruit_robot,"onUpdate:checked":a[5]||(a[5]=x=>t(n).recruit_robot=x)},{default:l(()=>a[16]||(a[16]=[d("保留支援机械标签")])),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},mn=be(fn,[["__scopeId","data-v-707c6f48"]]),cn={__name:"DailyMission",setup(p){const y=te(),{conf:n}=Z(y);return(u,r)=>{const a=ue,i=Te,v=Ue,h=_e,f=xe,P=pe;return g(),O(P,{title:"每日任务"},{default:l(()=>[e(i,{vertical:""},{default:l(()=>[e(a,{checked:t(n).skland_enable,"onUpdate:checked":r[0]||(r[0]=c=>t(n).skland_enable=c)},{default:l(()=>r[9]||(r[9]=[s("div",{class:"item"},"森空岛签到",-1)])),_:1},8,["checked"]),(g(!0),B(X,null,ye(t(n).skland_info,c=>(g(),B("div",{key:c.account},[e(i,null,{default:l(()=>[e(a,{checked:c.isCheck,"onUpdate:checked":C=>c.isCheck=C,style:{"margin-right":"12px"}},{default:l(()=>[d(" 森空岛账号:"+J(c.account),1)]),_:2},1032,["checked","onUpdate:checked"]),e(a,{checked:c.sign_in_official,"onUpdate:checked":C=>c.sign_in_official=C,style:{"margin-right":"12px"}},{default:l(()=>r[10]||(r[10]=[d(" 官服签到 ")])),_:2},1032,["checked","onUpdate:checked"]),e(a,{checked:c.sign_in_bilibili,"onUpdate:checked":C=>c.sign_in_bilibili=C,style:{"margin-right":"12px"}},{default:l(()=>r[11]||(r[11]=[d(" B服签到 ")])),_:2},1032,["checked","onUpdate:checked"])]),_:2},1024)]))),128)),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).check_mail_enable,"onUpdate:checked":r[1]||(r[1]=c=>t(n).check_mail_enable=c)},{default:l(()=>r[12]||(r[12]=[s("div",{class:"item"},"领取邮件",-1)])),_:1},8,["checked"]),e(a,{checked:t(n).delete_read_mail,"onUpdate:checked":r[2]||(r[2]=c=>t(n).delete_read_mail=c)},{default:l(()=>r[13]||(r[13]=[d("删除已读邮件")])),_:1},8,["checked"])]),_:1}),e(v),e(a,{checked:t(n).visit_friend,"onUpdate:checked":r[3]||(r[3]=c=>t(n).visit_friend=c)},{default:l(()=>r[14]||(r[14]=[s("div",{class:"item"},"访问好友",-1)])),_:1},8,["checked"]),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).report_enable,"onUpdate:checked":r[4]||(r[4]=c=>t(n).report_enable=c)},{default:l(()=>r[15]||(r[15]=[s("div",{class:"item"},"读取基报",-1)])),_:1},8,["checked"])]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).sign_in.enable,"onUpdate:checked":r[5]||(r[5]=c=>t(n).sign_in.enable=c)},{default:l(()=>r[16]||(r[16]=[s("div",{class:"item"},"签到活动",-1)])),_:1},8,["checked"]),e(h,null,{default:l(()=>r[17]||(r[17]=[d("游戏内签到、矿区、限定池每日单抽等")])),_:1})]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).switch_assistants,"onUpdate:checked":r[6]||(r[6]=c=>t(n).switch_assistants=c)},{default:l(()=>r[18]||(r[18]=[s("div",{class:"item"},"基建副手",-1)])),_:1},8,["checked"]),e(f,{style:{"max-width":"220px"},value:t(n).trust_limit,"onUpdate:value":r[7]||(r[7]=c=>t(n).trust_limit=c),min:100,max:200,precision:0},{prefix:l(()=>r[19]||(r[19]=[d("信赖值阈值(≥)")])),suffix:l(()=>r[20]||(r[20]=[d("%")])),_:1},8,["value"])]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).trade_token,"onUpdate:checked":r[8]||(r[8]=c=>t(n).trade_token=c)},{default:l(()=>r[21]||(r[21]=[s("div",{class:"item"},"信物兑换",-1)])),_:1},8,["checked"])]),_:1})]),_:1})]),_:1})}}},vn=be(cn,[["__scopeId","data-v-e95953da"]]),bn={__name:"AutoFight",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=[{label:"精零",value:0},{label:"精一",value:1},{label:"精二",value:2}];return(a,i)=>{const v=ue,h=re,f=_e,P=xe,c=Ue,C=Ze,w=ge,m=ie,x=pe;return g(),O(x,{title:"自动战斗设置"},{default:l(()=>[e(m,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"110","label-align":"left"},{default:l(()=>[e(h,{"show-label":!1},{default:l(()=>[e(v,{checked:t(u).avatar_recog_pause,"onUpdate:checked":i[0]||(i[0]=b=>t(u).avatar_recog_pause=b)},{default:l(()=>i[6]||(i[6]=[d("识别干员时暂停")])),_:1},8,["checked"])]),_:1}),e(h,null,{label:l(()=>[i[8]||(i[8]=s("span",null,"第一段滑动",-1)),e(f,null,{default:l(()=>i[7]||(i[7]=[s("div",null,"把干员从待部署区域拖到地图上的对应位置",-1),s("div",null,"默认值:400毫秒",-1)])),_:1})]),default:l(()=>[e(P,{value:t(u).first_swipe_duration,"onUpdate:value":i[1]||(i[1]=b=>t(u).first_swipe_duration=b),precision:0},{suffix:l(()=>i[9]||(i[9]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e(h,null,{label:l(()=>[i[11]||(i[11]=s("span",null,"第二段滑动",-1)),e(f,null,{default:l(()=>i[10]||(i[10]=[s("div",null,"确认部署方向",-1),s("div",null,"默认值:200毫秒",-1)])),_:1})]),default:l(()=>[e(P,{value:t(u).second_swipe_duration,"onUpdate:value":i[2]||(i[2]=b=>t(u).second_swipe_duration=b),precision:0},{suffix:l(()=>i[12]||(i[12]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e(c),e(C,{class:"subtitle"},{default:l(()=>i[13]||(i[13]=[d("借助战")])),_:1}),e(h,{label:"精英化限制"},{default:l(()=>[e(w,{value:t(u).support.elite,"onUpdate:value":i[3]||(i[3]=b=>t(u).support.elite=b),options:r},null,8,["value"])]),_:1}),e(h,{label:"等级限制"},{default:l(()=>[e(P,{value:t(u).support.level,"onUpdate:value":i[4]||(i[4]=b=>t(u).support.level=b),min:1,max:90},null,8,["value"])]),_:1}),e(h,{label:"最大刷新次数"},{default:l(()=>[e(P,{value:t(u).support.refresh,"onUpdate:value":i[5]||(i[5]=b=>t(u).support.refresh=b),min:1},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},gn=be(bn,[["__scopeId","data-v-31c5d919"]]),kn={style:{display:"flex","align-items":"center",width:"100%"}},yn={class:"misc-container"},xn={__name:"SKLand",setup(p){const y=G("axios"),n=te(),{conf:u}=Z(n);function r(){return{isCheck:!0,account:"",password:"",sign_in_official:!0,sign_in_bilibili:!0,cultivate_select:!0}}const a=j("");async function i(){a.value="正在测试……";const v=await y.get("/check-skland");a.value=v.data}return(v,h)=>{const f=_e,P=Ae,c=ft,C=Ue,w=ce,m=pe;return g(),O(m,null,{header:l(()=>[h[2]||(h[2]=s("div",{class:"card-title"},"森空岛账号",-1)),e(f,null,{default:l(()=>h[1]||(h[1]=[s("div",null,"连接失败时,请尝试:",-1),s("ol",{style:{margin:"0"}},[s("li",null,"同步系统时间后再试;"),s("li",null,"检查账号密码是否正确;"),s("li",null,"关闭代理软件或设置分流规则;"),s("li",null,"登录森空岛App,查看是否需要人机验证。")],-1)])),_:1})]),default:l(()=>[e(c,{value:t(u).skland_info,"onUpdate:value":h[0]||(h[0]=x=>t(u).skland_info=x),"on-create":r,"show-sort-button":""},{default:l(({value:x})=>[s("div",kn,[e(P,{style:{"margin-right":"10px"},value:x.account,"onUpdate:value":b=>x.account=b,type:"text",placeholder:"账号"},null,8,["value","onUpdate:value"]),e(P,{value:x.password,"onUpdate:value":b=>x.password=b,type:"password","show-password-on":"click",placeholder:"密码"},null,8,["value","onUpdate:value"])])]),_:1},8,["value"]),e(C),s("div",yn,[e(w,{onClick:i},{default:l(()=>h[3]||(h[3]=[d("测试设置")])),_:1}),s("div",null,J(t(a)),1)])]),_:1})}}},hn={key:0},wn={key:1},Cn={key:0},Un={class:"email-test mt-16"},Sn={__name:"Email",setup(p){const y=te(),n=G("axios"),u=G("mobile"),r=j(""),{conf:a}=Z(y);async function i(){r.value="正在发送……";const h=await n.get("/test-email");r.value=h.data}const v=[{label:"INFO - 基建任务、刷理智、公招汇总、基报、活动签到等",value:"INFO"},{label:"WARNING - 版本过旧、组内心情差过大、漏单、公招稀有标签等",value:"WARNING"},{label:"ERROR - 无法排班、专精失败、Maa调用出错、森空岛签到失败、活动签到超时、OF-1失败等",value:"ERROR"}];return(h,f)=>{const P=ue,c=ce,C=xl,w=Pe,m=Ae,x=re,b=ze,F=Te,D=xe,R=_e,S=ge,A=ft,Y=ie,N=Ue,U=pe;return g(),O(U,null,{header:l(()=>[e(P,{checked:t(a).mail_enable,"onUpdate:checked":f[0]||(f[0]=k=>t(a).mail_enable=k),class:"email-title"},{default:l(()=>f[11]||(f[11]=[s("div",{class:"card-title"},"邮件提醒",-1),s("div",{class:"expand"},null,-1)])),_:1},8,["checked"]),t(u)?(g(),O(c,{key:0,onClick:f[1]||(f[1]=k=>t(a).custom_smtp_server.enable=!t(a).custom_smtp_server.enable),type:"primary",ghost:""},{default:l(()=>[d(J(t(a).custom_smtp_server.enable?"自定义邮箱":"QQ邮箱"),1)]),_:1})):(g(),O(w,{key:1,class:"email-mode",value:t(a).custom_smtp_server.enable,"onUpdate:value":f[2]||(f[2]=k=>t(a).custom_smtp_server.enable=k)},{default:l(()=>[e(C,{value:!1,label:"QQ邮箱"}),e(C,{value:!0,label:"自定义邮箱"})]),_:1},8,["value"]))]),default:l(()=>[e(Y,{"label-placement":t(u)?"top":"left","show-feedback":!1,"label-width":"96","label-align":"left"},{default:l(()=>[t(a).custom_smtp_server.enable?(g(),O(x,{key:0,label:"SMTP服务器"},{default:l(()=>[e(m,{value:t(a).custom_smtp_server.server,"onUpdate:value":f[3]||(f[3]=k=>t(a).custom_smtp_server.server=k)},null,8,["value"])]),_:1})):E("",!0),t(a).custom_smtp_server.enable?(g(),O(x,{key:1,label:"加密方式"},{default:l(()=>[e(w,{value:t(a).custom_smtp_server.encryption,"onUpdate:value":f[4]||(f[4]=k=>t(a).custom_smtp_server.encryption=k)},{default:l(()=>[e(F,null,{default:l(()=>[e(b,{value:"tls",label:"SSL/TLS"}),e(b,{value:"starttls",label:"STARTTLS"})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0),t(a).custom_smtp_server.enable?(g(),O(x,{key:2,label:"端口号"},{default:l(()=>[e(D,{value:t(a).custom_smtp_server.ssl_port,"onUpdate:value":f[5]||(f[5]=k=>t(a).custom_smtp_server.ssl_port=k)},null,8,["value"])]),_:1})):E("",!0),e(x,null,{label:l(()=>[t(a).custom_smtp_server.enable?(g(),B("span",hn,"账号")):(g(),B("span",wn,"QQ邮箱"))]),default:l(()=>[e(m,{value:t(a).account,"onUpdate:value":f[6]||(f[6]=k=>t(a).account=k)},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[t(a).custom_smtp_server.enable?(g(),B("span",Cn,"密码")):(g(),B(X,{key:1},[f[13]||(f[13]=s("span",null,"授权码",-1)),e(R,null,{default:l(()=>[e(c,{text:"",tag:"a",href:"https://service.mail.qq.com/detail/0/75",target:"_blank",type:"primary"},{default:l(()=>f[12]||(f[12]=[d(" https://service.mail.qq.com/detail/0/75 ")])),_:1})]),_:1})],64))]),default:l(()=>[e(m,{value:t(a).pass_code,"onUpdate:value":f[7]||(f[7]=k=>t(a).pass_code=k),type:"password","show-password-on":"click"},null,8,["value"])]),_:1}),e(x,{label:"通知等级"},{default:l(()=>[e(S,{value:t(a).notification_level,"onUpdate:value":f[8]||(f[8]=k=>t(a).notification_level=k),options:v},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[f[15]||(f[15]=s("span",null,"标题前缀",-1)),e(R,null,{default:l(()=>f[14]||(f[14]=[d("可用于区分来自多个Mower的邮件")])),_:1})]),default:l(()=>[e(m,{value:t(a).mail_subject,"onUpdate:value":f[9]||(f[9]=k=>t(a).mail_subject=k)},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[f[17]||(f[17]=s("span",null,"收件人",-1)),e(R,null,{default:l(()=>f[16]||(f[16]=[d("不填时将邮件发给自己")])),_:1})]),default:l(()=>[e(A,{value:t(a).recipient,"onUpdate:value":f[10]||(f[10]=k=>t(a).recipient=k)},null,8,["value"])]),_:1})]),_:1},8,["label-placement"]),e(N),s("div",Un,[e(c,{onClick:i},{default:l(()=>f[18]||(f[18]=[d("发送测试邮件")])),_:1}),s("div",null,J(t(r)),1)])]),_:1})}}},Rn=be(Sn,[["__scopeId","data-v-7cbc22ce"]]),$n={class:"grid-two"},Tn={class:"grid-left"},zn={key:0},Pn={class:"threshold"},An={class:"grid-right"},On={__name:"Settings",setup(p){const y=te(),{conf:n}=Z(y),u=Qe(),{operators:r}=Z(u),{left_side_facility:a}=u,i=G("mobile"),v=L(()=>[{label:"(加速任意贸易站)",value:""}].concat(a)),h=[{label:"夜神",value:"夜神"},{label:"MuMu模拟器12",value:"MuMu12"},{label:"Waydroid",value:"Waydroid"},{label:"雷电模拟器9",value:"雷电9"},{label:"ReDroid",value:"ReDroid"},{label:"MuMu模拟器Pro",value:"MuMuPro"},{label:"Genymotion",value:"Genymotion"},{label:"其它",value:""}],f=[{label:"使用adb命令启动",value:"adb"},{label:"点击屏幕启动",value:"tap"}],P=[{label:"什么都不做",value:"do_nothing"},{label:"返回桌面",value:"switch_to_home"},{label:"退出游戏",value:"exit_game"},{label:"退出模拟器",value:"close_emulator"}];async function c(){const I=await bt();I&&(n.value.emulator.emulator_folder=I)}const C={},w=[.5,1,1.5,2,3];for(let I=.5;I<=3;I+=.25)C[I]=w.includes(I)?`${I*100}%`:"";const m=j(n.value.webview.scale);async function x(){const I=await Nl();I&&(n.value.maa_adb_path=I)}const b=L(()=>{const I=[{label:"DroidCast_raw(主动,无损,较快)",value:"droidcast_raw"},{label:"ADB+Gzip(主动,无损,很慢)",value:"adb"},{label:"DroidCast(主动,有损,较快)",value:"droidcast"},{label:"scrcpy(被动,有损,特殊)",value:"scrcpy"},{label:"自定义(以下命令需要向STDOUT打印截图文件)",value:"diy"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12截图API(主动,无损,超快)",value:"mumuipc"}),I}),F=L(()=>{const I=[{label:"scrcpy",value:"scrcpy"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12触控API",value:"mumuipc"}),I}),D=L(()=>{const I=[{label:"ADB",value:"adb"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12应用管理器",value:"mumumanager"}),I}),R=j(!1),S=j(""),A=j(0),Y=j(!0),N=j(""),U=j(!1),k=G("axios");async function V(){U.value=!0,R.value=!1;try{const{data:I}=await k.get("/test-screenshot");Y.value=I.success,Y.value?(S.value=I.screenshot,A.value=I.elapsed):N.value=I.reason}finally{U.value=!1,R.value=!0}}const M={CONNECTING:"正在提交反馈至神经",UNKNOWN:"未知",UNKNOWN_WITH_NAVBAR:"有导航栏的未知场景",LOADING:"场景跳转时的等待界面",LOGIN_LOADING:"登录中",LOGIN_MAIN_NOENTRY:"登录页面(无按钮入口)",OPERATOR_ONGOING:"代理作战"},H=L(()=>A.value<=50?"success":A.value<=200?"default":A.value<=500?"warning":"error"),z=L(()=>["夜神","MuMu12","雷电9","ReDroid","Waydroid"].includes(n.value.emulator.name)),q=j(!1);async function le(){q.value=!0;const[I,o]=await Promise.all([k.get("/auto-get-path"),k.get("/get-adb-serial")]);q.value=!1,o.data!="OK"?de.error("请填写正确的多开编号!"):de.success("自动填写成功!")}const de=sl();return(I,o)=>{const ne=ge,$=re,K=_e,Q=Ae,W=ce,ee=xe,ke=Ue,Le=mt,oe=ze,he=Te,we=Pe,Be=Al,Ne=ct,Ie=Je,fe=ue,Se=ie,Re=pe,Ee=Tl,je=rl,Fe=kl,qe=Rn,kt=xn,yt=gn,xt=ll,ht=vn,wt=mn,Ct=_n,Ut=un,St=on,Rt=Kl;return g(),B("div",$n,[s("div",Tn,[s("div",null,[e(Re,{title:"设备与游戏设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"120","label-align":"left"},{default:l(()=>[e($,{label:"模拟器"},{default:l(()=>[e(ne,{value:t(n).emulator.name,"onUpdate:value":o[0]||(o[0]=_=>t(n).emulator.name=_),options:h},null,8,["value"])]),_:1}),t(n).emulator.name?(g(),O($,{key:0},{label:l(()=>[o[43]||(o[43]=s("span",null,"多开编号",-1)),e(K,null,{default:l(()=>o[42]||(o[42]=[s("div",null,"MuMu模拟器12的多开器中,第一个实例(锁形图标)的序号为0",-1),s("div",null,"夜神模拟器单开请填写-1",-1),s("div",null,"其它模拟器请填写多开器中的序号",-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.index,"onUpdate:value":o[1]||(o[1]=_=>t(n).emulator.index=_)},null,8,["value"]),t(z)?(g(),O(W,{key:0,class:"dialog-btn",onClick:le,loading:t(q)},{default:l(()=>o[44]||(o[44]=[d(" 自动填写设置 ")])),_:1},8,["loading"])):E("",!0)]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:1},{label:l(()=>[o[46]||(o[46]=s("span",null,"模拟器文件夹",-1)),e(K,null,{default:l(()=>o[45]||(o[45]=[s("div",null,"夜神:写到bin文件夹",-1),s("div",null,"MuMu12: 写到shell文件夹",-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.emulator_folder,"onUpdate:value":o[2]||(o[2]=_=>t(n).emulator.emulator_folder=_),type:"textarea",autosize:!0},null,8,["value"]),e(W,{onClick:c,class:"dialog-btn"},{default:l(()=>o[47]||(o[47]=[d("...")])),_:1})]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:2,label:"模拟器启动时间"},{default:l(()=>[e(ee,{value:t(n).emulator.wait_time,"onUpdate:value":o[3]||(o[3]=_=>t(n).emulator.wait_time=_)},{suffix:l(()=>o[48]||(o[48]=[d("秒")])),_:1},8,["value"])]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:3},{label:l(()=>[o[54]||(o[54]=s("span",null,"模拟器老板键",-1)),e(K,null,{default:l(()=>[o[51]||(o[51]=s("div",null,"启动模拟器后按此快捷键",-1)),o[52]||(o[52]=s("div",null,"若不需要此功能,请留空",-1)),o[53]||(o[53]=s("div",null,"加号分隔按键,不要空格",-1)),s("div",null,[o[50]||(o[50]=d(" 按键名参考 ")),e(W,{text:"",tag:"a",href:"https://pyautogui.readthedocs.io/en/latest/keyboard.html#keyboard-keys",target:"_blank",type:"primary"},{default:l(()=>o[49]||(o[49]=[d(" KEYBOARD_KEYS ")])),_:1})])]),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.hotkey,"onUpdate:value":o[4]||(o[4]=_=>t(n).emulator.hotkey=_),placeholder:"留空停用;组合键用加号分隔"},null,8,["value"])]),_:1})):E("",!0),e(ke),e($,{label:"ADB路径"},{default:l(()=>[e(Q,{type:"textarea",autosize:!0,value:t(n).maa_adb_path,"onUpdate:value":o[5]||(o[5]=_=>t(n).maa_adb_path=_)},null,8,["value"]),e(W,{onClick:x,class:"dialog-btn"},{default:l(()=>o[55]||(o[55]=[d("...")])),_:1})]),_:1}),e($,null,{label:l(()=>[o[57]||(o[57]=s("span",null,"ADB连接地址",-1)),e(K,null,{default:l(()=>o[56]||(o[56]=[s("div",null,"不同模拟器adb地址不同。如不填,系统会自动去寻找adb device中的第一个。",-1),s("div",null,[d("夜神:"),s("code",null,"127.0.0.1:62001")],-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).adb,"onUpdate:value":o[6]||(o[6]=_=>t(n).adb=_)},null,8,["value"])]),_:1}),e(ke),e($,{label:"截图方案"},{default:l(()=>[e(ne,{value:t(n).screencap_strategy,"onUpdate:value":o[7]||(o[7]=_=>t(n).screencap_strategy=_),options:t(b)},null,8,["value","options"])]),_:1}),t(n).emulator.name=="MuMu12"&&t(n).screencap_strategy!="mumuipc"?(g(),O(Le,{key:4,title:"推荐使用MuMu模拟器12专属截图",closable:"",style:{margin:"8px 0"},type:"success"},{default:l(()=>o[58]||(o[58]=[d(" 通过共享内存的方式直接获取无损截图,避免了编码、解码、跨进程传输等环节的开销,截图速度远高于通用截图方案。 ")])),_:1})):E("",!0),e($,{label:"触控方案"},{default:l(()=>[e(ne,{value:t(n).control_strategy,"onUpdate:value":o[8]||(o[8]=_=>t(n).control_strategy=_),options:t(F)},null,8,["value","options"])]),_:1}),e($,{label:"应用控制方案"},{default:l(()=>[e(ne,{value:t(n).app_control_strategy,"onUpdate:value":o[9]||(o[9]=_=>t(n).app_control_strategy=_),options:t(D)},null,8,["value","options"])]),_:1}),t(n).screencap_strategy=="droidcast"?(g(),O($,{key:5,label:"旋转截图"},{default:l(()=>[e(we,{value:t(n).droidcast.rotate,"onUpdate:value":o[10]||(o[10]=_=>t(n).droidcast.rotate=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:!1},{default:l(()=>o[59]||(o[59]=[d("不旋转")])),_:1}),e(oe,{value:!0},{default:l(()=>o[60]||(o[60]=[d("旋转180度")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0),t(n).screencap_strategy=="droidcast_raw"?(g(),B(X,{key:6},[e($,{label:"屏幕朝向"},{default:l(()=>[e(we,{value:t(n).droidcast_raw.orientation,"onUpdate:value":o[11]||(o[11]=_=>t(n).droidcast_raw.orientation=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:"portrait"},{default:l(()=>o[61]||(o[61]=[d("竖屏")])),_:1}),e(oe,{value:"landscape"},{default:l(()=>o[62]||(o[62]=[d("横屏")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(n).screencap_strategy=="droidcast_raw"?(g(),O($,{key:0,label:"旋转截图"},{default:l(()=>[e(we,{value:t(n).droidcast_raw.rotate,"onUpdate:value":o[12]||(o[12]=_=>t(n).droidcast_raw.rotate=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:0},{default:l(()=>o[63]||(o[63]=[d("不旋转")])),_:1}),e(oe,{value:90},{default:l(()=>o[64]||(o[64]=[d("旋转90度")])),_:1}),e(oe,{value:180},{default:l(()=>o[65]||(o[65]=[d("旋转180度")])),_:1}),e(oe,{value:270},{default:l(()=>o[66]||(o[66]=[d("旋转270度")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0)],64)):E("",!0),t(n).screencap_strategy=="diy"?(g(),O($,{key:7,label:"截图命令"},{default:l(()=>[e(Q,{value:t(n).custom_screenshot.command,"onUpdate:value":o[13]||(o[13]=_=>t(n).custom_screenshot.command=_),type:"textarea",autosize:!0},null,8,["value"])]),_:1})):E("",!0),e($,{"show-label":!1},{default:l(()=>[e(he,{vertical:"",style:{gap:"12px"}},{default:l(()=>[e(he,{align:"center",style:{gap:"12px"}},{default:l(()=>[e(W,{onClick:V,loading:t(U)},{default:l(()=>o[67]||(o[67]=[d("测试截图设置")])),_:1},8,["loading"]),t(R)?(g(),B(X,{key:0},[t(Y)?(g(),B("div",zn,[o[68]||(o[68]=d(" 截图用时:")),e(Be,{strong:"",type:t(H)},{default:l(()=>[d(J(t(A))+"ms",1)]),_:1},8,["type"])])):(g(),B(X,{key:1},[e(Be,{type:"error"},{default:l(()=>o[69]||(o[69]=[d("截图失败!")])),_:1}),s("div",null,J(t(N)),1)],64))],64)):E("",!0)]),_:1}),t(R)&&t(Y)?(g(),O(Ne,{key:0,src:"data:image/jpeg;base64,"+t(S),width:"100%"},null,8,["src"])):E("",!0)]),_:1})]),_:1}),e(ke),e($,{label:"游戏服务器"},{default:l(()=>[e(we,{value:t(n).package_type,"onUpdate:value":o[14]||(o[14]=_=>t(n).package_type=_)},{default:l(()=>[e(Ie,null,{default:l(()=>[e(oe,{value:"official"},{default:l(()=>o[70]||(o[70]=[d("官服")])),_:1}),e(oe,{value:"bilibili"},{default:l(()=>o[71]||(o[71]=[d("BiliBili服")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e($,{label:"启动游戏"},{default:l(()=>[e(ne,{value:t(n).tap_to_launch_game.enable,"onUpdate:value":o[15]||(o[15]=_=>t(n).tap_to_launch_game.enable=_),options:f},null,8,["value"])]),_:1}),t(n).tap_to_launch_game.enable=="tap"?(g(),O($,{key:8,label:"点击坐标"},{default:l(()=>[o[72]||(o[72]=s("span",{class:"coord-label"},"X:",-1)),e(ee,{value:t(n).tap_to_launch_game.x,"onUpdate:value":o[16]||(o[16]=_=>t(n).tap_to_launch_game.x=_)},null,8,["value"]),o[73]||(o[73]=s("span",{class:"coord-label"},"Y:",-1)),e(ee,{value:t(n).tap_to_launch_game.y,"onUpdate:value":o[17]||(o[17]=_=>t(n).tap_to_launch_game.y=_)},null,8,["value"])]),_:1})):E("",!0),e($,{label:"任务结束"},{default:l(()=>[e(ne,{value:t(n).strategy_when_idle,"onUpdate:value":o[18]||(o[18]=_=>t(n).strategy_when_idle=_),options:P},null,8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).kill_server_when_idle,"onUpdate:checked":o[19]||(o[19]=_=>t(n).kill_server_when_idle=_)},{default:l(()=>[o[75]||(o[75]=s("span",null,"任务结束时关闭ADB Server",-1)),e(K,null,{default:l(()=>o[74]||(o[74]=[d("建议开启,多开不受影响")])),_:1})]),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(Re,{title:"基建设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"160","label-align":"left"},{default:l(()=>[e($,{label:"宿舍黑名单(非主力)"},{default:l(()=>[t(i)?(g(),O(Ee,{key:0,"virtual-scroll":"","source-filterable":"","target-filterable":"",options:t(r),value:t(n).free_blacklist,"onUpdate:value":o[20]||(o[20]=_=>t(n).free_blacklist=_),"render-source-label":_=>t(De)(_.option),"render-target-label":_=>t(De)(_.option),filter:(_,He)=>_?t(Xe)(He.label,_):!0},null,8,["options","value","render-source-label","render-target-label","filter"])):(g(),O(je,{key:1,modelValue:t(n).free_blacklist,"onUpdate:modelValue":o[21]||(o[21]=_=>t(n).free_blacklist=_)},null,8,["modelValue"]))]),_:1}),e($,null,{label:l(()=>[o[77]||(o[77]=s("span",null,"跑单前置延时",-1)),e(K,null,{default:l(()=>o[76]||(o[76]=[s("div",null,"推荐范围5-10",-1),s("div",null,"可填小数",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).run_order_delay,"onUpdate:value":o[22]||(o[22]=_=>t(n).run_order_delay=_)},{suffix:l(()=>o[78]||(o[78]=[d("分钟")])),_:1},8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).run_order_grandet_mode.enable,"onUpdate:checked":o[23]||(o[23]=_=>t(n).run_order_grandet_mode.enable=_)},{default:l(()=>o[79]||(o[79]=[d("葛朗台跑单")])),_:1},8,["checked"])]),_:1}),t(n).run_order_grandet_mode.enable?(g(),O($,{key:0},{label:l(()=>[o[81]||(o[81]=s("span",null,"葛朗台缓冲时间",-1)),e(K,null,{default:l(()=>o[80]||(o[80]=[d("推荐范围:15-30")])),_:1})]),default:l(()=>[e(ee,{value:t(n).run_order_grandet_mode.buffer_time,"onUpdate:value":o[24]||(o[24]=_=>t(n).run_order_grandet_mode.buffer_time=_)},{suffix:l(()=>o[82]||(o[82]=[d("秒")])),_:1},8,["value"])]),_:1})):E("",!0),t(n).run_order_grandet_mode.enable?(g(),O($,{key:1,"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).run_order_grandet_mode.back_to_index,"onUpdate:checked":o[25]||(o[25]=_=>t(n).run_order_grandet_mode.back_to_index=_)},{default:l(()=>o[83]||(o[83]=[d(" 跑单前返回主界面以保持登录状态 ")])),_:1},8,["checked"])]),_:1})):E("",!0),e($,null,{label:l(()=>[o[85]||(o[85]=s("span",null,"无人机使用房间",-1)),e(K,null,{default:l(()=>o[84]||(o[84]=[s("div",null,"加速制造站为指定制造站加速",-1),s("div",null,"(加速任意贸易站)只会加速有跑单人员作备班的站",-1),s("div",null,"例:没填龙舌兰但书的卖玉站 (加速任意贸易站) 不会被加速",-1),s("div",null,"如需要加速特定某个贸易站请指定对应房间",-1)])),_:1})]),default:l(()=>[e(ne,{options:t(v),value:t(n).drone_room,"onUpdate:value":o[26]||(o[26]=_=>t(n).drone_room=_)},null,8,["options","value"])]),_:1}),e($,null,{label:l(()=>[o[87]||(o[87]=s("span",null,"无人机使用阈值",-1)),e(K,null,{default:l(()=>o[86]||(o[86]=[s("div",null,"如加速贸易,推荐大于 贸易站数*x + 92",-1),s("div",null,"如加速制造,推荐大于 贸易站数*x",-1),s("div",null,"葛朗台跑单模式下x=0,非葛朗台推荐x=10",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).drone_count_limit,"onUpdate:value":o[27]||(o[27]=_=>t(n).drone_count_limit=_)},null,8,["value"])]),_:1}),e($,null,{label:l(()=>[o[89]||(o[89]=s("span",null,"无人机加速间隔",-1)),e(K,null,{default:l(()=>o[88]||(o[88]=[s("div",null,"可填小数",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).drone_interval,"onUpdate:value":o[28]||(o[28]=_=>t(n).drone_interval=_)},{suffix:l(()=>o[90]||(o[90]=[d("小时")])),_:1},8,["value"])]),_:1}),e($,{label:"搓玉补货房间"},{default:l(()=>[e(ne,{multiple:"",filterable:"",tag:"",options:t(a),value:t(n).reload_room,"onUpdate:value":o[29]||(o[29]=_=>t(n).reload_room=_)},null,8,["options","value"])]),_:1}),e($,null,{label:l(()=>[o[92]||(o[92]=s("span",null,"心情阈值",-1)),e(K,null,{default:l(()=>o[91]||(o[91]=[s("div",null,"2电站推荐不低于65%",-1),s("div",null,"3电站推荐不低于50%",-1),s("div",null,"即将大更新推荐设置成80%",-1)])),_:1})]),default:l(()=>[s("div",Pn,[e(Fe,{value:t(n).resting_threshold,"onUpdate:value":o[30]||(o[30]=_=>t(n).resting_threshold=_),step:5,min:50,max:80,"format-tooltip":_=>`${_}%`},null,8,["value","format-tooltip"]),e(ee,{value:t(n).resting_threshold,"onUpdate:value":o[31]||(o[31]=_=>t(n).resting_threshold=_),step:5,min:50,max:80},{suffix:l(()=>o[93]||(o[93]=[d("%")])),_:1},8,["value"])])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).free_room,"onUpdate:checked":o[32]||(o[32]=_=>t(n).free_room=_)},{default:l(()=>[o[95]||(o[95]=d(" 宿舍不养闲人 ")),e(K,null,{default:l(()=>o[94]||(o[94]=[d("干员心情回满后,立即释放宿舍空位")])),_:1})]),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(qe)]),s("div",null,[e(kt)]),s("div",null,[e(yt)]),s("div",null,[e(Re,{title:"外观、性能与其它设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"120","label-align":"left"},{default:l(()=>[e($,{label:"界面缩放"},{default:l(()=>[e(Fe,{value:t(m),"onUpdate:value":o[33]||(o[33]=_=>_t(m)?m.value=_:null),step:.25,min:.5,max:3,marks:C,"format-tooltip":_=>`${_*100}%`},null,8,["value","format-tooltip"]),e(W,{class:"scale-apply",disabled:t(m)==t(n).webview.scale,onClick:o[34]||(o[34]=_=>t(n).webview.scale=t(m))},{default:l(()=>o[96]||(o[96]=[d(" 应用 ")])),_:1},8,["disabled"])]),_:1}),e($,{label:"显示主题"},{default:l(()=>[e(we,{value:t(n).theme,"onUpdate:value":o[35]||(o[35]=_=>t(n).theme=_)},{default:l(()=>[e(Ie,null,{default:l(()=>[e(oe,{value:"light"},{default:l(()=>o[97]||(o[97]=[d("亮色")])),_:1}),e(oe,{value:"dark"},{default:l(()=>o[98]||(o[98]=[d("暗色")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).webview.tray,"onUpdate:checked":o[36]||(o[36]=_=>t(n).webview.tray=_)},{default:l(()=>[o[100]||(o[100]=d(" 使用托盘图标 ")),e(K,null,{default:l(()=>o[99]||(o[99]=[d("重启生效")])),_:1})]),_:1},8,["checked"])]),_:1}),e(ke),e($,{label:"截图最短间隔"},{default:l(()=>[e(ee,{value:t(n).screenshot_interval,"onUpdate:value":o[37]||(o[37]=_=>t(n).screenshot_interval=_),precision:0},{suffix:l(()=>o[101]||(o[101]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e($,null,{label:l(()=>[o[103]||(o[103]=s("span",null,"截图保存时间",-1)),e(K,null,{default:l(()=>o[102]||(o[102]=[d("可填小数")])),_:1})]),default:l(()=>[e(ee,{value:t(n).screenshot,"onUpdate:value":o[38]||(o[38]=_=>t(n).screenshot=_)},{suffix:l(()=>o[104]||(o[104]=[d("小时")])),_:1},8,["value"])]),_:1}),e($,{label:"等待时间"},{default:l(()=>[e(xt,{size:"small",class:"waiting-table"},{default:l(()=>[o[107]||(o[107]=s("thead",null,[s("tr",null,[s("th",null,"场景"),s("th",null,"截图间隔"),s("th",null,"超时时长")])],-1)),s("tbody",null,[(g(!0),B(X,null,ye(t(n).waiting_scene_v2,(_,He)=>(g(),B("tr",null,[s("td",null,J(M[He]),1),s("td",null,[e(ee,{value:_[0],"onUpdate:value":Ge=>_[0]=Ge,"show-button":!1,precision:0},{suffix:l(()=>o[105]||(o[105]=[d("毫秒")])),_:2},1032,["value","onUpdate:value"])]),s("td",null,[e(ee,{value:_[1],"onUpdate:value":Ge=>_[1]=Ge,"show-button":!1,precision:0},{suffix:l(()=>o[106]||(o[106]=[d("秒")])),_:2},1032,["value","onUpdate:value"])])]))),256))])]),_:1})]),_:1}),e(ke),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).start_automatically,"onUpdate:checked":o[39]||(o[39]=_=>t(n).start_automatically=_)},{default:l(()=>o[108]||(o[108]=[d("启动mower-ng后直接开始运行")])),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})])]),s("div",An,[s("div",null,[e(ht)]),s("div",null,[e(wt)]),s("div",null,[e(Ct)]),s("div",null,[e(Re,null,{header:l(()=>[e(fe,{checked:t(n).maa_enable,"onUpdate:checked":o[40]||(o[40]=_=>t(n).maa_enable=_)},{default:l(()=>o[109]||(o[109]=[s("div",{class:"card-title"},"日常任务",-1)])),_:1},8,["checked"]),e(K,null,{default:l(()=>o[110]||(o[110]=[s("div",null,"刷理智周计划、每日/每周任务、信用作战",-1)])),_:1})]),default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"100","label-align":"left"},{default:l(()=>[e($,null,{label:l(()=>[o[112]||(o[112]=s("span",null,"任务间隔",-1)),e(K,null,{default:l(()=>o[111]||(o[111]=[s("div",null,"可填小数",-1),s("div",null,"清理智、日常/周常任务领取、借助战打OF-1",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).maa_gap,"onUpdate:value":o[41]||(o[41]=_=>t(n).maa_gap=_)},{suffix:l(()=>o[113]||(o[113]=[d("小时")])),_:1},8,["value"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(Ut)]),s("div",null,[e(St)]),s("div",null,[e(Rt)])])])}}},no=be(On,[["__scopeId","data-v-7e026566"]]);export{no as default}; diff --git a/ui/dist/assets/SlickOperatorSelect.js b/ui/dist/assets/SlickOperatorSelect.js index 9888c30..613eda4 100644 --- a/ui/dist/assets/SlickOperatorSelect.js +++ b/ui/dist/assets/SlickOperatorSelect.js @@ -1,4 +1,4 @@ -import{c as Q,q as kt,w as lt,u as Ct,ai as qe,H as c,as as b,av as O,ar as E,z as Ue,ay as le,B as Z,ax as Te,r as K,D as Oe,aZ as Ie,j as _,aB as ne,ak as St,au as G,b as D,L as Be,bN as Pt,s as $t,aY as re,aC as Ve,aD as _t,aG as Ft,l as Le,bH as be,b2 as J,N as Ot,bO as We,b4 as Bt,be as st,A as qt,az as Tt,b3 as Se,bh as zt,bg as It,bF as Lt,aI as jt,T as At,F as Dt,aL as He,n as Et,br as Mt,bP as Nt,bQ as Ut,bt as Vt,bu as Wt,bv as Ht,bw as Gt,bo as Pe}from"./_plugin-vue_export-helper.js";import{F as dt,G as ut,H as Xt,S as ct,I as ft,W as gt,J as ht,K as Yt,A as Kt,L as Ge,M as Zt,s as Jt,j as Qt,N as er,O as tr}from"./main.js";import{_ as rr,D as nr,N as ir}from"./Image.js";import{E as ar}from"./Input.js";import{d as or}from"./download.js";import{m as lr}from"./index.js";import{r as sr,M as dr}from"./op_select.js";import{_ as ur}from"./Select.js";function cr(t,e,r){var n;const i=Q(t,null);if(i===null)return;const a=(n=kt())===null||n===void 0?void 0:n.proxy;lt(r,o),o(r.value),Ct(()=>{o(void 0,r.value)});function o(u,s){if(!i)return;const f=i[e];s!==void 0&&l(f,s),u!==void 0&&d(f,u)}function l(u,s){u[s]||(u[s]=[]),u[s].splice(u[s].findIndex(f=>f===a),1)}function d(u,s){u[s]||(u[s]=[]),~u[s].findIndex(f=>f===a)||u[s].push(a)}}const fr=qe("attach",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),gr=qe("trash",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),hr=qe("cancel",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),pr=qe("retry",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),c("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),mr=b("form",[O("inline",` +import{c as Q,q as kt,w as lt,u as Ct,ai as qe,H as c,as as b,av as O,ar as E,z as Ue,ay as le,B as Z,ax as Te,r as K,D as Oe,aZ as Ie,j as _,aB as ne,ak as St,au as G,b as D,L as Be,bN as Pt,s as $t,aY as re,aC as Ve,aD as _t,aG as Ft,l as Le,bH as be,b2 as J,N as Ot,bO as We,b4 as Bt,be as st,A as qt,az as Tt,b3 as Se,bh as zt,bg as It,bF as Lt,aI as jt,T as At,F as Dt,aL as He,n as Et,br as Mt,bP as Nt,bQ as Ut,bt as Vt,bu as Wt,bv as Ht,bw as Gt,bo as Pe}from"./_plugin-vue_export-helper.js";import{F as dt,G as ut,H as Xt,S as ct,I as ft,W as gt,J as ht,K as Yt,A as Kt,L as Ge,M as Zt,s as Jt,j as Qt,N as er,O as tr}from"./main.js";import{_ as rr,D as nr,N as ir}from"./Scrollbar.js";import{E as ar}from"./Input.js";import{d as or}from"./download.js";import{m as lr}from"./index.js";import{r as sr,M as dr}from"./op_select.js";import{_ as ur}from"./Select.js";function cr(t,e,r){var n;const i=Q(t,null);if(i===null)return;const a=(n=kt())===null||n===void 0?void 0:n.proxy;lt(r,o),o(r.value),Ct(()=>{o(void 0,r.value)});function o(u,s){if(!i)return;const f=i[e];s!==void 0&&l(f,s),u!==void 0&&d(f,u)}function l(u,s){u[s]||(u[s]=[]),u[s].splice(u[s].findIndex(f=>f===a),1)}function d(u,s){u[s]||(u[s]=[]),~u[s].findIndex(f=>f===a)||u[s].push(a)}}const fr=qe("attach",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),gr=qe("trash",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),c("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),hr=qe("cancel",c("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},c("g",{fill:"currentColor","fill-rule":"nonzero"},c("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),pr=qe("retry",c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),c("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),mr=b("form",[O("inline",` width: 100%; display: inline-flex; align-items: flex-start; diff --git a/ui/dist/assets/main.js b/ui/dist/assets/main.js index eb3b275..d02f477 100644 --- a/ui/dist/assets/main.js +++ b/ui/dist/assets/main.js @@ -1,9 +1,9 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Log.js","assets/HelpText.js","assets/_plugin-vue_export-helper.js","assets/HelpText.css","assets/DropDown.js","assets/op_select.js","assets/use-locale.js","assets/Select.js","assets/Tag.js","assets/Input.js","assets/VirtualList.js","assets/Scrollbar.js","assets/get-slot.js","assets/index.js","assets/Avatar.js","assets/utils.js","assets/Forward.js","assets/DropDown.css","assets/Play.js","assets/Log.css","assets/Plan.js","assets/SlickOperatorSelect.js","assets/Image.js","assets/download.js","assets/SlickOperatorSelect.css","assets/IosArrowForward.js","assets/TrashOutline.js","assets/RadioGroup.js","assets/Plan.css","assets/Settings.js","assets/Alert.js","assets/Flex.js","assets/Divider.js","assets/headers.js","assets/Grid.js","assets/Slider.js","assets/Settings.css","assets/Material_all_in_one.js","assets/Doc.js","assets/Doc.css","assets/BasementSkill.js","assets/BasementSkill.css","assets/DebugConsole.js","assets/RecordLine.js","assets/record.js","assets/RecordLine.css","assets/depot.js","assets/RecordPie.js","assets/RecordPie.css","assets/report.js","assets/report.css","assets/NotFound.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Log.js","assets/HelpText.js","assets/_plugin-vue_export-helper.js","assets/HelpText.css","assets/DropDown.js","assets/op_select.js","assets/use-locale.js","assets/Select.js","assets/Tag.js","assets/Input.js","assets/VirtualList.js","assets/Scrollbar.js","assets/utils.js","assets/download.js","assets/get-slot.js","assets/index.js","assets/Avatar.js","assets/Forward.js","assets/DropDown.css","assets/Play.js","assets/Log.css","assets/Plan.js","assets/SlickOperatorSelect.js","assets/SlickOperatorSelect.css","assets/IosArrowForward.js","assets/TrashOutline.js","assets/RadioGroup.js","assets/Plan.css","assets/Settings.js","assets/Alert.js","assets/Flex.js","assets/Divider.js","assets/headers.js","assets/Grid.js","assets/Slider.js","assets/Settings.css","assets/Material_all_in_one.js","assets/Doc.js","assets/Doc.css","assets/BasementSkill.js","assets/BasementSkill.css","assets/DebugConsole.js","assets/RecordLine.js","assets/record.js","assets/RecordLine.css","assets/depot.js","assets/RecordPie.js","assets/RecordPie.css","assets/report.js","assets/report.css","assets/NotFound.js"])))=>i.map(i=>d[i]); import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d as Zo,h as ju,g as Wu,o as Vu,n as qe,f as Uu,j as F,k as tt,F as mt,C as ls,l as Wo,p as Gt,q as ss,s as wt,u as ut,v as Ue,x as Jo,y as He,z as ze,A as Ye,B as se,D as ve,E as Ct,G as Ku,H as b,T as mi,I as gi,J as Wn,K as Gu,L as Vn,M as An,N as cs,O as vi,P as Vo,Q as Un,R as Qo,S as qu,U as Xu,V as bi,W as Yu,X as It,Y as xi,Z as Zu,_ as vo,$ as Br,a0 as ds,a1 as sa,a2 as Ju,a3 as ca,a4 as da,a5 as wn,a6 as Qu,a7 as ua,a8 as ef,a9 as tf,aa as of,ab as nf,ac as rf,ad as af,ae as fr,af as _o,ag as lf,ah as Eo,ai as Kn,aj as us,ak as yi,al as Ve,am as ie,an as xe,ao as sf,ap as We,aq as bo,ar as K,as as T,at,au as j,av as N,aw as cf,ax as Xe,ay as ke,az as At,aA as Uo,aB as ao,aC as ft,aD as en,aE as fa,aF as xo,aG as $t,aH as fs,aI as fo,aJ as Ci,aK as df,aL as Oe,aM as J,aN as uf,aO as Gn,aP as ff,aQ as hf,aR as Hr,aS as hs,aT as ha,aU as pa,aV as tn,aW as pf,aX as Bt,aY as Re,aZ as on,a_ as mf,a$ as gf,b0 as ps,b1 as Oo,b2 as nn,b3 as Dr,b4 as ma,b5 as wi,b6 as vf,b7 as bf,b8 as Si,b9 as ms,ba as xf,bb as gs,bc as yf,bd as vs,be as bs,bf as Sn,bg as Cf,bh as wf,bi as Sf,bj as _f,bk as Ef,bl as Pf,bm as nt,bn as kf,bo as Te,bp as Tf,bq as Rf,br as Of,bs as $f,bt as un,bu as fn,bv as Me,bw as $e,bx as hr,by as gt,bz as If}from"./_plugin-vue_export-helper.js";var Af=!1;/*! * pinia v2.2.6 * (c) 2024 Eduardo San Martin Morote * @license MIT - */let xs;const qn=e=>xs=e,ys=Symbol();function Nr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ao;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ao||(Ao={}));function zf(){const e=is(!0),t=e.run(()=>B({}));let o=[],n=[];const r=In({install(i){qn(r),r._a=i,i.provide(ys,r),i.config.globalProperties.$pinia=r,n.forEach(a=>o.push(a)),n=[]},use(i){return!this._a&&!Af?n.push(i):o.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const Cs=()=>{};function ga(e,t,o,n=Cs){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!o&&Wu()&&Vu(r),r}function Qt(e,...t){e.slice().forEach(o=>{o(...t)})}const Mf=e=>e(),va=Symbol(),pr=Symbol();function Fr(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,n)=>e.set(n,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const n=t[o],r=e[o];Nr(r)&&Nr(n)&&e.hasOwnProperty(o)&&!uo(n)&&!pi(n)?e[o]=Fr(r,n):e[o]=n}return e}const Lf=Symbol();function Bf(e){return!Nr(e)||!e.hasOwnProperty(Lf)}const{assign:kt}=Object;function Hf(e){return!!(uo(e)&&e.effect)}function Df(e,t,o,n){const{state:r,actions:i,getters:a}=t,s=o.state.value[e];let l;function c(){s||(o.state.value[e]=r?r():{});const d=Uu(o.state.value[e]);return kt(d,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=In(F(()=>{qn(o);const h=o._s.get(e);return a[f].call(h,h)})),u),{}))}return l=ws(e,c,t,o,n,!0),l}function ws(e,t,o={},n,r,i){let a;const s=kt({actions:{}},o),l={deep:!0};let c,d,u=[],f=[],h;const m=n.state.value[e];!i&&!m&&(n.state.value[e]={}),B({});let p;function g(A){let S;c=d=!1,typeof A=="function"?(A(n.state.value[e]),S={type:Ao.patchFunction,storeId:e,events:h}):(Fr(n.state.value[e],A),S={type:Ao.patchObject,payload:A,storeId:e,events:h});const R=p=Symbol();qe().then(()=>{p===R&&(c=!0)}),d=!0,Qt(u,S,n.state.value[e])}const v=i?function(){const{state:S}=o,R=S?S():{};this.$patch(z=>{kt(z,R)})}:Cs;function y(){a.stop(),u=[],f=[],n._s.delete(e)}const P=(A,S="")=>{if(va in A)return A[pr]=S,A;const R=function(){qn(n);const z=Array.from(arguments),$=[],Q=[];function ne(w){$.push(w)}function L(w){Q.push(w)}Qt(f,{args:z,name:R[pr],store:x,after:ne,onError:L});let le;try{le=A.apply(this&&this.$id===e?this:x,z)}catch(w){throw Qt(Q,w),w}return le instanceof Promise?le.then(w=>(Qt($,w),w)).catch(w=>(Qt(Q,w),Promise.reject(w))):(Qt($,le),le)};return R[va]=!0,R[pr]=S,R},E={_p:n,$id:e,$onAction:ga.bind(null,f),$patch:g,$reset:v,$subscribe(A,S={}){const R=ga(u,A,S.detached,()=>z()),z=a.run(()=>Le(()=>n.state.value[e],$=>{(S.flush==="sync"?d:c)&&A({storeId:e,type:Ao.direct,events:h},$)},kt({},l,S)));return R},$dispose:y},x=Zo(E);n._s.set(e,x);const C=(n._a&&n._a.runWithContext||Mf)(()=>n._e.run(()=>(a=is()).run(()=>t({action:P}))));for(const A in C){const S=C[A];if(uo(S)&&!Hf(S)||pi(S))i||(m&&Bf(S)&&(uo(S)?S.value=m[A]:Fr(S,m[A])),n.state.value[e][A]=S);else if(typeof S=="function"){const R=P(S,A);C[A]=R,s.actions[A]=S}}return kt(x,C),kt(as(x),C),Object.defineProperty(x,"$state",{get:()=>n.state.value[e],set:A=>{g(S=>{kt(S,A)})}}),n._p.forEach(A=>{kt(x,a.run(()=>A({store:x,app:n._a,pinia:n,options:s})))}),m&&i&&o.hydrate&&o.hydrate(x.$state,m),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function Xn(e,t,o){let n,r;const i=typeof t=="function";typeof e=="string"?(n=e,r=i?o:t):(r=e,n=e.id);function a(s,l){const c=ju();return s=s||(c?me(ys,null):null),s&&qn(s),s=xs,s._s.has(n)||(i?ws(n,t,r,s):Df(n,r,s)),s._s.get(n)}return a.$id=n,a}function _n(e){{const t=as(e),o={};for(const n in t){const r=t[n];(uo(r)||pi(r))&&(o[n]=be(e,n))}return o}}let zn=[];const Ss=new WeakMap;function Nf(){zn.forEach(e=>e(...Ss.get(e))),zn=[]}function Ff(e,...t){Ss.set(e,t),!zn.includes(e)&&zn.push(e)===1&&requestAnimationFrame(Nf)}function ba(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function yt(e,t=[],o){const n={};return t.forEach(r=>{n[r]=e[r]}),Object.assign(n,o)}function _i(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function lo(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(tt(String(n)));return}if(Array.isArray(n)){lo(n,t,o);return}if(n.type===mt){if(n.children===null)return;Array.isArray(n.children)&&lo(n.children,t,o)}else{if(n.type===ls&&t)return;o.push(n)}}}),o}function je(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?tt(e):typeof e=="number"?tt(String(e)):null}function jr(e,t="default",o=void 0){const n=e[t];if(!n)return Wo("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=lo(n(o));return r.length===1?r[0]:(Wo("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function jf(e){return t=>{t?e.value=t.$el:e.value=null}}let mr;function Wf(){return mr===void 0&&(mr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),mr}const _s=new WeakSet;function FS(e){_s.add(e)}function Vf(e){return!_s.has(e)}function Uf(e,t,o){const n=B(e.value);let r=null;return Le(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 Kf(e){const t=B(!!e.value);if(t.value)return Gt(t);const o=Le(e,n=>{n&&(t.value=!0,o())});return Gt(t)}function Ei(){return ss()!==null}const Pi=typeof window<"u";let so,zo;const Gf=()=>{var e,t;so=Pi?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,zo=!1,so!==void 0?so.then(()=>{zo=!0}):zo=!0};Gf();function ki(e){if(zo)return;let t=!1;wt(()=>{zo||so==null||so.then(()=>{t||e()})}),ut(()=>{t=!0})}const $o=B(null);function xa(e){if(e.clientX>0||e.clientY>0)$o.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?$o.value={x:o+r/2,y:n+i/2}:$o.value={x:0,y:0}}else $o.value=null}}let hn=0,ya=!0;function Es(){if(!Pi)return Gt(B(null));hn===0&&Ue("click",document,xa,!0);const e=()=>{hn+=1};return ya&&(ya=Ei())?(Jo(e),ut(()=>{hn-=1,hn===0&&He("click",document,xa,!0)})):e(),Gt($o)}const qf=B(void 0);let pn=0;function Ca(){qf.value=Date.now()}let wa=!0;function Ps(e){if(!Pi)return Gt(B(!1));const t=B(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}pn===0&&Ue("click",window,Ca,!0);const i=()=>{pn+=1,Ue("click",window,r,!0)};return wa&&(wa=Ei())?(Jo(i),ut(()=>{pn-=1,pn===0&&He("click",window,Ca,!0),He("click",window,r,!0),n()})):i(),Gt(t)}function Mn(e,t){return F(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}function Xf(e={},t){const o=Zo({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=l=>{switch(l.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(c=>{if(c!==l.key)return;const d=n[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},a=l=>{switch(l.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(c=>{if(c!==l.key)return;const d=r[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},s=()=>{(t===void 0||t.value)&&(Ue("keydown",document,i),Ue("keyup",document,a)),t!==void 0&&Le(t,l=>{l?(Ue("keydown",document,i),Ue("keyup",document,a)):(He("keydown",document,i),He("keyup",document,a))})};return Ei()?(Jo(s),ut(()=>{(t===void 0||t.value)&&(He("keydown",document,i),He("keyup",document,a))})):s(),Gt(o)}const jS=ze("n-internal-select-menu"),Yf=ze("n-internal-select-menu-body"),Yn=ze("n-modal-body"),Zf=ze("n-modal-provider"),ks=ze("n-modal"),Zn=ze("n-drawer-body"),rn=ze("n-popover-body"),Ts="__disabled__";function ho(e){const t=me(Yn,null),o=me(Zn,null),n=me(rn,null),r=me(Yf,null),i=B();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};wt(()=>{Ue("fullscreenchange",document,a)}),ut(()=>{He("fullscreenchange",document,a)})}return Ye(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?Ts:s===!0?i.value||"body":s: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:s??(i.value||"body")})}ho.tdkey=Ts;ho.propTo={type:[String,Object,Boolean],default:void 0};function Wr(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function Vr(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(tt(String(n)));return}if(Array.isArray(n)){Vr(n,t,o);return}if(n.type===mt){if(n.children===null)return;Array.isArray(n.children)&&Vr(n.children,t,o)}else n.type!==ls&&o.push(n)}}),o}function Sa(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=Vr(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let St=null;function Rs(){if(St===null&&(St=document.getElementById("v-binder-view-measurer"),St===null)){St=document.createElement("div"),St.id="v-binder-view-measurer";const{style:e}=St;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(St)}return St.getBoundingClientRect()}function Jf(e,t){const o=Rs();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function gr(e){const t=e.getBoundingClientRect(),o=Rs();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 Qf(e){return e.nodeType===9?null:e.parentNode}function Os(e){if(e===null)return null;const t=Qf(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 Os(t)}const $s=se({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ve("VBinder",(t=ss())===null||t===void 0?void 0:t.proxy);const o=me("VBinder",null),n=B(null),r=v=>{n.value=v,o&&e.syncTargetWithParent&&o.setTargetRef(v)};let i=[];const a=()=>{let v=n.value;for(;v=Os(v),v!==null;)i.push(v);for(const y of i)Ue("scroll",y,u,!0)},s=()=>{for(const v of i)He("scroll",v,u,!0);i=[]},l=new Set,c=v=>{l.size===0&&a(),l.has(v)||l.add(v)},d=v=>{l.has(v)&&l.delete(v),l.size===0&&s()},u=()=>{Ff(f)},f=()=>{l.forEach(v=>v())},h=new Set,m=v=>{h.size===0&&Ue("resize",window,g),h.has(v)||h.add(v)},p=v=>{h.has(v)&&h.delete(v),h.size===0&&He("resize",window,g)},g=()=>{h.forEach(v=>v())};return ut(()=>{He("resize",window,g),s()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:d,addResizeListener:m,removeResizeListener:p}},render(){return Wr("binder",this.$slots)}}),Is=se({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=me("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ct(Sa("follower",this.$slots),[[t]]):Sa("follower",this.$slots)}}),eo="@@mmoContext",eh={mounted(e,{value:t}){e[eo]={handler:void 0},typeof t=="function"&&(e[eo].handler=t,Ue("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[eo];typeof t=="function"?o.handler?o.handler!==t&&(He("mousemoveoutside",e,o.handler),o.handler=t,Ue("mousemoveoutside",e,t)):(e[eo].handler=t,Ue("mousemoveoutside",e,t)):o.handler&&(He("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[eo];t&&He("mousemoveoutside",e,t),e[eo].handler=void 0}},to="@@coContext",Ur={mounted(e,{value:t,modifiers:o}){e[to]={handler:void 0},typeof t=="function"&&(e[to].handler=t,Ue("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[to];typeof t=="function"?n.handler?n.handler!==t&&(He("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,Ue("clickoutside",e,t,{capture:o.capture})):(e[to].handler=t,Ue("clickoutside",e,t,{capture:o.capture})):n.handler&&(He("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[to];o&&He("clickoutside",e,o,{capture:t.capture}),e[to].handler=void 0}};function th(e,t){console.error(`[vdirs/${e}]: ${t}`)}class oh{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&&th("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 vr=new oh,oo="@@ziContext",Ti={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[oo]={enabled:!!r,initialized:!1},r&&(vr.ensureZIndex(e,n),e[oo].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[oo].enabled;r&&!i&&(vr.ensureZIndex(e,n),e[oo].initialized=!0),e[oo].enabled=!!r},unmounted(e,t){if(!e[oo].initialized)return;const{value:o={}}=t,{zIndex:n}=o;vr.unregister(e,n)}},{c:Dt}=Ku(),Ri="vueuc-style";function _a(e){return typeof e=="string"?document.querySelector(e):e()}const As=se({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Kf(be(e,"show")),mergedTo:F(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Wr("lazy-teleport",this.$slots):b(mi,{disabled:this.disabled,to:this.mergedTo},Wr("lazy-teleport",this.$slots)):null}}),mn={top:"bottom",bottom:"top",left:"right",right:"left"},Ea={start:"end",center:"center",end:"start"},br={top:"height",bottom:"height",left:"width",right:"width"},nh={"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"},rh={"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"},ih={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Pa={top:!0,bottom:!1,left:!0,right:!1},ka={top:"end",bottom:"start",left:"end",right:"start"};function ah(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const d=(h,m,p)=>{let g=0,v=0;const y=o[h]-t[m]-t[h];return y>0&&n&&(p?v=Pa[m]?y:-y:g=Pa[m]?y:-y),{left:g,top:v}},u=a==="left"||a==="right";if(l!=="center"){const h=ih[e],m=mn[h],p=br[h];if(o[p]>t[p]){if(t[h]+t[p]t[m]&&(l=Ea[s])}else{const h=a==="bottom"||a==="top"?"left":"top",m=mn[h],p=br[h],g=(o[p]-t[p])/2;(t[h]t[m]?(l=ka[h],c=d(p,h,u)):(l=ka[m],c=d(p,m,u)))}let f=a;return t[a] *",{pointerEvents:"all"})])]),zs=se({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=me("VBinder"),o=Ye(()=>e.enabled!==void 0?e.enabled:e.show),n=B(null),r=B(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};wt(()=>{o.value&&(l(),i())});const s=gi();ch.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ri,ssr:s}),ut(()=>{a()}),ki(()=>{o.value&&l()});const l=()=>{if(!o.value)return;const f=n.value;if(f===null)return;const h=t.targetRef,{x:m,y:p,overlap:g}=e,v=m!==void 0&&p!==void 0?Jf(m,p):gr(h);f.style.setProperty("--v-target-width",`${Math.round(v.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(v.height)}px`);const{width:y,minWidth:P,placement:E,internalShift:x,flip:_}=e;f.setAttribute("v-placement",E),g?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:C}=f;y==="target"?C.width=`${v.width}px`:y!==void 0?C.width=y:C.width="",P==="target"?C.minWidth=`${v.width}px`:P!==void 0?C.minWidth=P:C.minWidth="";const A=gr(f),S=gr(r.value),{left:R,top:z,placement:$}=ah(E,v,A,x,_,g),Q=lh($,g),{left:ne,top:L,transform:le}=sh($,S,v,z,R,g);f.setAttribute("v-placement",$),f.style.setProperty("--v-offset-left",`${Math.round(R)}px`),f.style.setProperty("--v-offset-top",`${Math.round(z)}px`),f.style.transform=`translateX(${ne}) translateY(${L}) ${le}`,f.style.setProperty("--v-transform-origin",Q),f.style.transformOrigin=Q};Le(o,f=>{f?(i(),c()):a()});const c=()=>{qe().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{Le(be(e,f),l)}),["teleportDisabled"].forEach(f=>{Le(be(e,f),c)}),Le(be(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const d=Wn(),u=Ye(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:u,syncPosition:l}},render(){return b(As,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=b("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[b("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?Ct(o,[[Ti,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}}),dh=Dt(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Dt("&::-webkit-scrollbar",{width:0,height:0})]),uh=se({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=B(null);function t(r){!(r.currentTarget.offsetWidthf){const{updateCounter:_}=e;for(let C=P;C>=0;--C){const A=v-1-C;_!==void 0?_(A):d.textContent=`${A}`;const S=d.offsetWidth;if(p-=h[C],p+S<=f||C===0){g=!0,P=C-1,m&&(P===-1?(m.style.maxWidth=`${f-S}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:R}=e;R&&R(A);break}}}}const{onUpdateOverflow:y}=e;g?y!==void 0&&y(!0):(y!==void 0&&y(!1),d.setAttribute(vt,""))}const i=gi();return fh.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Ri,ssr:i}),wt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return qe(()=>this.sync({showAllItemsBeforeCalculate:!1})),b("div",{class:"v-overflow",ref:"selfRef"},[Gu(e,"default"),e.counter?e.counter():b("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Ms(e){return e instanceof HTMLElement}function Ls(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(Ms(o)&&(Hs(o)||Bs(o)))return!0}return!1}function Hs(e){if(!ph(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function ph(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 Po=[];const Ds=se({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=Vn(),o=B(null),n=B(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return Po[Po.length-1]===t}function l(g){var v;g.code==="Escape"&&s()&&((v=e.onEsc)===null||v===void 0||v.call(e,g))}wt(()=>{Le(()=>e.active,g=>{g?(u(),Ue("keydown",document,l)):(He("keydown",document,l),r&&f())},{immediate:!0})}),ut(()=>{He("keydown",document,l),r&&f()});function c(g){if(!i&&s()){const v=d();if(v===null||v.contains(An(g)))return;h("first")}}function d(){const g=o.value;if(g===null)return null;let v=g;for(;v=v.nextSibling,!(v===null||v instanceof Element&&v.tagName==="DIV"););return v}function u(){var g;if(!e.disabled){if(Po.push(t),e.autoFocus){const{initialFocusTo:v}=e;v===void 0?h("first"):(g=_a(v))===null||g===void 0||g.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function f(){var g;if(e.disabled||(document.removeEventListener("focus",c,!0),Po=Po.filter(y=>y!==t),s()))return;const{finalFocusTo:v}=e;v!==void 0?(g=_a(v))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function h(g){if(s()&&e.active){const v=o.value,y=n.value;if(v!==null&&y!==null){const P=d();if(P==null||P===y){i=!0,v.focus({preventScroll:!0}),i=!1;return}i=!0;const E=g==="first"?Ls(P):Bs(P);i=!1,E||(i=!0,v.focus({preventScroll:!0}),i=!1)}}}function m(g){if(i)return;const v=d();v!==null&&(g.relatedTarget!==null&&v.contains(g.relatedTarget)?h("last"):h("first"))}function p(g){i||(g.relatedTarget!==null&&g.relatedTarget===o.value?h("last"):h("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:p}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return b(mt,null,[b("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),b("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let no=0,Ta="",Ra="",Oa="",$a="";const Ia=B("0px");function mh(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=Ta,t.style.overflow=Ra,t.style.overflowX=Oa,t.style.overflowY=$a,Ia.value="0px"};wt(()=>{o=Le(e,i=>{if(i){if(!no){const a=window.innerWidth-t.offsetWidth;a>0&&(Ta=t.style.marginRight,t.style.marginRight=`${a}px`,Ia.value=`${a}px`),Ra=t.style.overflow,Oa=t.style.overflowX,$a=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,no++}else no--,no||r(),n=!1},{immediate:!0})}),ut(()=>{o==null||o(),n&&(no--,no||r(),n=!1)})}const Oi=B(!1);function Aa(){Oi.value=!0}function za(){Oi.value=!1}let ko=0;function gh(){return cs&&(Jo(()=>{ko||(window.addEventListener("compositionstart",Aa),window.addEventListener("compositionend",za)),ko++}),ut(()=>{ko<=1?(window.removeEventListener("compositionstart",Aa),window.removeEventListener("compositionend",za),ko=0):ko--})),Oi}var vh=/\s/;function bh(e){for(var t=e.length;t--&&vh.test(e.charAt(t)););return t}var xh=/^\s+/;function yh(e){return e&&e.slice(0,bh(e)+1).replace(xh,"")}var Ma=NaN,Ch=/^[-+]0x[0-9a-f]+$/i,wh=/^0b[01]+$/i,Sh=/^0o[0-7]+$/i,_h=parseInt;function La(e){if(typeof e=="number")return e;if(vi(e))return Ma;if(Vo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yh(e);var o=wh.test(e);return o||Sh.test(e)?_h(e.slice(2),o?2:8):Ch.test(e)?Ma:+e}var Kr=Un(Qo,"WeakMap"),Eh=qu(Object.keys,Object),Ph=Object.prototype,kh=Ph.hasOwnProperty;function Th(e){if(!Xu(e))return Eh(e);var t=[];for(var o in Object(e))kh.call(e,o)&&o!="constructor"&&t.push(o);return t}function $i(e){return bi(e)?Yu(e):Th(e)}var Rh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oh=/^\w*$/;function Ii(e,t){if(It(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||vi(e)?!0:Oh.test(e)||!Rh.test(e)||t!=null&&e in Object(t)}var $h="Expected a function";function Ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($h);var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return o.cache=i.set(r,a)||i,a};return o.cache=new(Ai.Cache||xi),o}Ai.Cache=xi;var Ih=500;function Ah(e){var t=Ai(e,function(n){return o.size===Ih&&o.clear(),n}),o=t.cache;return t}var zh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mh=/\\(\\)?/g,Lh=Ah(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zh,function(o,n,r,i){t.push(r?i.replace(Mh,"$1"):n||o)}),t});function Ns(e,t){return It(e)?e:Ii(e,t)?[e]:Lh(Zu(e))}var Bh=1/0;function Jn(e){if(typeof e=="string"||vi(e))return e;var t=e+"";return t=="0"&&1/e==-Bh?"-0":t}function Fs(e,t){t=Ns(t,e);for(var o=0,n=t.length;e!=null&&os))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,h=o&rp?new Ln:void 0;for(i.set(e,t),i.set(t,e);++u=t||C<0||u&&A>=i}function v(){var _=yr();if(g(_))return y(_);s=setTimeout(v,p(_))}function y(_){return s=void 0,f&&n?h(_):(n=r=void 0,a)}function P(){s!==void 0&&clearTimeout(s),c=0,n=l=r=s=void 0}function E(){return s===void 0?a:y(yr())}function x(){var _=yr(),C=g(_);if(n=arguments,r=this,l=_,C){if(s===void 0)return m(l);if(u)return clearTimeout(s),s=setTimeout(v,t),h(l)}return s===void 0&&(s=setTimeout(v,t)),a}return x.cancel=P,x.flush=E,x}function Yp(e,t){var o=-1,n=bi(e)?Array(e.length):[];return Up(e,function(r,i,a){n[++o]=t(r,i,a)}),n}function Zp(e,t){var o=It(e)?af:Yp;return o(e,jp(t))}var Jp="Expected a function";function Cr(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(Jp);return Vo(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),Xp(e,t,{leading:n,maxWait:t,trailing:r})}const Qp={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}};function em(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}let tm={};function om(){return tm}function qa(e,t){var s,l,c,d;const o=om(),n=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??o.weekStartsOn??((d=(c=o.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,r=em(e),i=r.getDay(),a=(i{let n;const r=rm[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",String(t)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?n+"内":n+"前":n},am={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},lm={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},sm={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},cm={date:fr({formats:am,defaultWidth:"full"}),time:fr({formats:lm,defaultWidth:"full"}),dateTime:fr({formats:sm,defaultWidth:"full"})};function Xa(e,t,o){const n="eeee p";return nm(e,t,o)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}const dm={lastWeek:Xa,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Xa,other:"PP p"},um=(e,t,o,n)=>{const r=dm[e];return typeof r=="function"?r(t,o,n):r},fm={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},hm={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},pm={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},mm={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},gm={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},vm={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},bm=(e,t)=>{const o=Number(e);switch(t==null?void 0:t.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},xm={ordinalNumber:bm,era:_o({values:fm,defaultWidth:"wide"}),quarter:_o({values:hm,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_o({values:pm,defaultWidth:"wide"}),day:_o({values:mm,defaultWidth:"wide"}),dayPeriod:_o({values:gm,defaultWidth:"wide",formattingValues:vm,defaultFormattingWidth:"wide"})},ym=/^(第\s*)?\d+(日|时|分|秒)?/i,Cm=/\d+/i,wm={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Sm={any:[/^(前)/i,/^(公元)/i]},_m={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Em={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Pm={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},km={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Tm={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Rm={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Om={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},$m={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Im={ordinalNumber:lf({matchPattern:ym,parsePattern:Cm,valueCallback:e=>parseInt(e,10)}),era:Eo({matchPatterns:wm,defaultMatchWidth:"wide",parsePatterns:Sm,defaultParseWidth:"any"}),quarter:Eo({matchPatterns:_m,defaultMatchWidth:"wide",parsePatterns:Em,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Eo({matchPatterns:Pm,defaultMatchWidth:"wide",parsePatterns:km,defaultParseWidth:"any"}),day:Eo({matchPatterns:Tm,defaultMatchWidth:"wide",parsePatterns:Rm,defaultParseWidth:"any"}),dayPeriod:Eo({matchPatterns:Om,defaultMatchWidth:"any",parsePatterns:$m,defaultParseWidth:"any"})},Am={code:"zh-CN",formatDistance:im,formatLong:cm,formatRelative:um,localize:xm,match:Im,options:{weekStartsOn:1,firstWeekContainsDate:4}},zm={name:"zh-CN",locale:Am},Mm=se({name:"Add",render(){return b("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Us=se({name:"ChevronRight",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),Ks=Kn("error",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Yr=Kn("info",b("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Gs=Kn("success",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),qs=Kn("warning",b("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),Lm=se({name:"ChevronDownFilled",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}});function Ya(e){return Array.isArray(e)?e:[e]}const Zr={STOP:"STOP"};function Xs(e,t){const o=t(e);e.children!==void 0&&o!==Zr.STOP&&e.children.forEach(n=>Xs(n,t))}function Bm(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?a=>{a.isLeaf||(n.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||n.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),n}function Hm(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function Dm(e){return e.children}function Nm(e){return e.key}function Fm(){return!1}function jm(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function Wm(e){return e.disabled===!0}function Vm(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function wr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Sr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Um(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function Km(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function Gm(e){return(e==null?void 0:e.type)==="group"}function WS(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class qm extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Xm(e,t,o,n){return Bn(t.concat(e),o,n,!1)}function Ym(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function Zm(e,t,o,n){const r=Bn(t,o,n,!1),i=Bn(e,o,n,!0),a=Ym(e,o),s=[];return r.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>r.delete(l)),r}function _r(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return n!==void 0?{checkedKeys:Um(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:Km(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;r!==void 0?u=Zm(r,o,t,c):n!==void 0?u=Xm(n,o,t,c):u=Bn(o,t,c,!1);const f=l==="parent",h=l==="child"||s,m=u,p=new Set,g=Math.max.apply(null,Array.from(d.keys()));for(let v=g;v>=0;v-=1){const y=v===0,P=d.get(v);for(const E of P){if(E.isLeaf)continue;const{key:x,shallowLoaded:_}=E;if(h&&_&&E.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&m.has(R.key)&&m.delete(R.key)}),E.disabled||!_)continue;let C=!0,A=!1,S=!0;for(const R of E.children){const z=R.key;if(!R.disabled){if(S&&(S=!1),m.has(z))A=!0;else if(p.has(z)){A=!0,C=!1;break}else if(C=!1,A)break}}C&&!S?(f&&E.children.forEach(R=>{!R.disabled&&m.has(R.key)&&m.delete(R.key)}),m.add(x)):A&&p.add(x),y&&h&&m.has(x)&&m.delete(x)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(p)}}function Bn(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach(l=>{const c=r.get(l);c!==void 0&&Xs(c,d=>{if(d.disabled)return Zr.STOP;const{key:u}=d;if(!a.has(u)&&(a.add(u),s.add(u),Vm(d.rawNode,i))){if(n)return Zr.STOP;if(!o)throw new qm}})}),s}function Jm(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return s.treeNode=null,s;for(;a;)!a.ignored&&(t||!a.isGroup)&&s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),o||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function Qm(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function eg(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function Za(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?tg:eg,i={reverse:t==="prev"};let a=!1,s=null;function l(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!c.disabled||n)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const d=Mi(c,i);d!==null?s=d:l(r(c,o))}else{const d=r(c,!1);if(d!==null)l(d);else{const u=og(c);u!=null&&u.isGroup?l(r(u,o)):o&&l(r(c,!0))}}}}return l(e),s}function tg(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function og(e){return e.parent}function Mi(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,a=o?-1:r,s=o?-1:1;for(let l=i;l!==a;l+=s){const c=n[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=Mi(c,t);if(d!==null)return d}else return c}}return null}const ng={getChild(){return this.ignored?null:Mi(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Za(this,"next",e)},getPrev(e={}){return Za(this,"prev",e)}};function rg(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(a=>{n.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||o===void 0||o.has(a.key))&&r(a.children)})}return r(e),n}function ig(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function Ys(e,t,o,n,r,i=null,a=0){const s=[];return e.forEach((l,c)=>{var d;const u=Object.create(n);if(u.rawNode=l,u.siblings=s,u.level=a,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=r(l);Array.isArray(f)&&(u.children=Ys(f,t,o,n,r,u,a+1))}s.push(u),t.set(u.key,u),o.has(a)||o.set(a,[]),(d=o.get(a))===null||d===void 0||d.push(u)}),s}function En(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=Wm,getIgnored:a=Fm,getIsGroup:s=Gm,getKey:l=Nm}=t,c=(o=t.getChildren)!==null&&o!==void 0?o:Dm,d=t.ignoreEmptyChildren?E=>{const x=c(E);return Array.isArray(x)?x.length?x:null:x}:c,u=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return Hm(this.rawNode,d)},get shallowLoaded(){return jm(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(E){return ig(this,E)}},ng),f=Ys(e,n,r,u,d);function h(E){if(E==null)return null;const x=n.get(E);return x&&!x.isGroup&&!x.ignored?x:null}function m(E){if(E==null)return null;const x=n.get(E);return x&&!x.ignored?x:null}function p(E,x){const _=m(E);return _?_.getPrev(x):null}function g(E,x){const _=m(E);return _?_.getNext(x):null}function v(E){const x=m(E);return x?x.getParent():null}function y(E){const x=m(E);return x?x.getChild():null}const P={treeNodes:f,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(E){return rg(f,E)},getNode:h,getPrev:p,getNext:g,getParent:v,getChild:y,getFirstAvailableNode(){return Qm(f)},getPath(E,x={}){return Jm(E,x,P)},getCheckedKeys(E,x={}){const{cascade:_=!0,leafOnly:C=!1,checkStrategy:A="all",allowNotLoaded:S=!1}=x;return _r({checkedKeys:wr(E),indeterminateKeys:Sr(E),cascade:_,leafOnly:C,checkStrategy:A,allowNotLoaded:S},P)},check(E,x,_={}){const{cascade:C=!0,leafOnly:A=!1,checkStrategy:S="all",allowNotLoaded:R=!1}=_;return _r({checkedKeys:wr(x),indeterminateKeys:Sr(x),keysToCheck:E==null?[]:Ya(E),cascade:C,leafOnly:A,checkStrategy:S,allowNotLoaded:R},P)},uncheck(E,x,_={}){const{cascade:C=!0,leafOnly:A=!1,checkStrategy:S="all",allowNotLoaded:R=!1}=_;return _r({checkedKeys:wr(x),indeterminateKeys:Sr(x),keysToUncheck:E==null?[]:Ya(E),cascade:C,leafOnly:A,checkStrategy:S,allowNotLoaded:R},P)},getNonLeafKeys(E={}){return Bm(f,E)}};return P}const ee={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},ag=us(ee.neutralBase),Zs=us(ee.neutralInvertBase),lg=`rgba(${Zs.slice(0,3).join(", ")}, `;function ye(e){return`${lg+String(e)})`}function sg(e){const t=Array.from(Zs);return t[3]=Number(e),ie(ag,t)}const V=Object.assign(Object.assign({name:"common"},yi),{baseColor:ee.neutralBase,primaryColor:ee.primaryDefault,primaryColorHover:ee.primaryHover,primaryColorPressed:ee.primaryActive,primaryColorSuppl:ee.primarySuppl,infoColor:ee.infoDefault,infoColorHover:ee.infoHover,infoColorPressed:ee.infoActive,infoColorSuppl:ee.infoSuppl,successColor:ee.successDefault,successColorHover:ee.successHover,successColorPressed:ee.successActive,successColorSuppl:ee.successSuppl,warningColor:ee.warningDefault,warningColorHover:ee.warningHover,warningColorPressed:ee.warningActive,warningColorSuppl:ee.warningSuppl,errorColor:ee.errorDefault,errorColorHover:ee.errorHover,errorColorPressed:ee.errorActive,errorColorSuppl:ee.errorSuppl,textColorBase:ee.neutralTextBase,textColor1:ye(ee.alpha1),textColor2:ye(ee.alpha2),textColor3:ye(ee.alpha3),textColorDisabled:ye(ee.alpha4),placeholderColor:ye(ee.alpha4),placeholderColorDisabled:ye(ee.alpha5),iconColor:ye(ee.alpha4),iconColorDisabled:ye(ee.alpha5),iconColorHover:ye(Number(ee.alpha4)*1.25),iconColorPressed:ye(Number(ee.alpha4)*.8),opacity1:ee.alpha1,opacity2:ee.alpha2,opacity3:ee.alpha3,opacity4:ee.alpha4,opacity5:ee.alpha5,dividerColor:ye(ee.alphaDivider),borderColor:ye(ee.alphaBorder),closeIconColorHover:ye(Number(ee.alphaClose)),closeIconColor:ye(Number(ee.alphaClose)),closeIconColorPressed:ye(Number(ee.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:ye(ee.alpha4),clearColorHover:Ve(ye(ee.alpha4),{alpha:1.25}),clearColorPressed:Ve(ye(ee.alpha4),{alpha:.8}),scrollbarColor:ye(ee.alphaScrollbar),scrollbarColorHover:ye(ee.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ye(ee.alphaProgressRail),railColor:ye(ee.alphaRail),popoverColor:ee.neutralPopover,tableColor:ee.neutralCard,cardColor:ee.neutralCard,modalColor:ee.neutralModal,bodyColor:ee.neutralBody,tagColor:sg(ee.alphaTag),avatarColor:ye(ee.alphaAvatar),invertedColor:ee.neutralBase,inputColor:ye(ee.alphaInput),codeColor:ye(ee.alphaCode),tabColor:ye(ee.alphaTab),actionColor:ye(ee.alphaAction),tableHeaderColor:ye(ee.alphaAction),hoverColor:ye(ee.alphaPending),tableColorHover:ye(ee.alphaTablePending),tableColorStriped:ye(ee.alphaTableStriped),pressedColor:ye(ee.alphaPressed),opacityDisabled:ee.alphaDisabled,inputColorDisabled:ye(ee.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),cg={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Js(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l}=e;return Object.assign(Object.assign({},cg),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l,textColor:t,iconColor:o,extraTextColor:n})}const Li={name:"Empty",common:xe,self:Js},Xt={name:"Empty",common:V,self:Js},Qe={name:"Scrollbar",common:V,self:sf},dg={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 Qs(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:d,fontSizeTiny:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m,fontSizeHuge:p,heightTiny:g,heightSmall:v,heightMedium:y,heightLarge:P,heightHuge:E}=e;return Object.assign(Object.assign({},dg),{optionFontSizeTiny:u,optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:m,optionFontSizeHuge:p,optionHeightTiny:g,optionHeightSmall:v,optionHeightMedium:y,optionHeightLarge:P,optionHeightHuge:E,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:l})}const Bi=We({name:"InternalSelectMenu",common:xe,peers:{Scrollbar:bo,Empty:Li},self:Qs}),an={name:"InternalSelectMenu",common:V,peers:{Scrollbar:Qe,Empty:Xt},self:Qs},{cubicBezierEaseIn:Ja,cubicBezierEaseOut:Qa}=yi;function ec({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[K("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Ja}, transform ${t} ${Ja} ${r&&`,${r}`}`}),K("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Qa}, transform ${t} ${Qa} ${r&&`,${r}`}`}),K("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),K("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const ug={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function tc(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},ug),{fontSize:i,borderRadius:r,color:o,dividerColor:a,textColor:n,boxShadow:t})}const yo={name:"Popover",common:xe,self:tc},Yt={name:"Popover",common:V,self:tc},Er={top:"bottom",bottom:"top",left:"right",right:"left"},Be="var(--n-arrow-height) * 1.414",fg=K([T("popover",` + */let xs;const qn=e=>xs=e,ys=Symbol();function Nr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ao;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ao||(Ao={}));function zf(){const e=is(!0),t=e.run(()=>B({}));let o=[],n=[];const r=In({install(i){qn(r),r._a=i,i.provide(ys,r),i.config.globalProperties.$pinia=r,n.forEach(a=>o.push(a)),n=[]},use(i){return!this._a&&!Af?n.push(i):o.push(i),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return r}const Cs=()=>{};function ga(e,t,o,n=Cs){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!o&&Wu()&&Vu(r),r}function Qt(e,...t){e.slice().forEach(o=>{o(...t)})}const Mf=e=>e(),va=Symbol(),pr=Symbol();function Fr(e,t){e instanceof Map&&t instanceof Map?t.forEach((o,n)=>e.set(n,o)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const n=t[o],r=e[o];Nr(r)&&Nr(n)&&e.hasOwnProperty(o)&&!uo(n)&&!pi(n)?e[o]=Fr(r,n):e[o]=n}return e}const Lf=Symbol();function Bf(e){return!Nr(e)||!e.hasOwnProperty(Lf)}const{assign:kt}=Object;function Hf(e){return!!(uo(e)&&e.effect)}function Df(e,t,o,n){const{state:r,actions:i,getters:a}=t,s=o.state.value[e];let l;function c(){s||(o.state.value[e]=r?r():{});const d=Uu(o.state.value[e]);return kt(d,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=In(F(()=>{qn(o);const h=o._s.get(e);return a[f].call(h,h)})),u),{}))}return l=ws(e,c,t,o,n,!0),l}function ws(e,t,o={},n,r,i){let a;const s=kt({actions:{}},o),l={deep:!0};let c,d,u=[],f=[],h;const m=n.state.value[e];!i&&!m&&(n.state.value[e]={}),B({});let p;function g(A){let S;c=d=!1,typeof A=="function"?(A(n.state.value[e]),S={type:Ao.patchFunction,storeId:e,events:h}):(Fr(n.state.value[e],A),S={type:Ao.patchObject,payload:A,storeId:e,events:h});const R=p=Symbol();qe().then(()=>{p===R&&(c=!0)}),d=!0,Qt(u,S,n.state.value[e])}const v=i?function(){const{state:S}=o,R=S?S():{};this.$patch(z=>{kt(z,R)})}:Cs;function y(){a.stop(),u=[],f=[],n._s.delete(e)}const P=(A,S="")=>{if(va in A)return A[pr]=S,A;const R=function(){qn(n);const z=Array.from(arguments),$=[],Q=[];function ne(w){$.push(w)}function L(w){Q.push(w)}Qt(f,{args:z,name:R[pr],store:x,after:ne,onError:L});let le;try{le=A.apply(this&&this.$id===e?this:x,z)}catch(w){throw Qt(Q,w),w}return le instanceof Promise?le.then(w=>(Qt($,w),w)).catch(w=>(Qt(Q,w),Promise.reject(w))):(Qt($,le),le)};return R[va]=!0,R[pr]=S,R},_={_p:n,$id:e,$onAction:ga.bind(null,f),$patch:g,$reset:v,$subscribe(A,S={}){const R=ga(u,A,S.detached,()=>z()),z=a.run(()=>Le(()=>n.state.value[e],$=>{(S.flush==="sync"?d:c)&&A({storeId:e,type:Ao.direct,events:h},$)},kt({},l,S)));return R},$dispose:y},x=Zo(_);n._s.set(e,x);const C=(n._a&&n._a.runWithContext||Mf)(()=>n._e.run(()=>(a=is()).run(()=>t({action:P}))));for(const A in C){const S=C[A];if(uo(S)&&!Hf(S)||pi(S))i||(m&&Bf(S)&&(uo(S)?S.value=m[A]:Fr(S,m[A])),n.state.value[e][A]=S);else if(typeof S=="function"){const R=P(S,A);C[A]=R,s.actions[A]=S}}return kt(x,C),kt(as(x),C),Object.defineProperty(x,"$state",{get:()=>n.state.value[e],set:A=>{g(S=>{kt(S,A)})}}),n._p.forEach(A=>{kt(x,a.run(()=>A({store:x,app:n._a,pinia:n,options:s})))}),m&&i&&o.hydrate&&o.hydrate(x.$state,m),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function Xn(e,t,o){let n,r;const i=typeof t=="function";typeof e=="string"?(n=e,r=i?o:t):(r=e,n=e.id);function a(s,l){const c=ju();return s=s||(c?me(ys,null):null),s&&qn(s),s=xs,s._s.has(n)||(i?ws(n,t,r,s):Df(n,r,s)),s._s.get(n)}return a.$id=n,a}function _n(e){{const t=as(e),o={};for(const n in t){const r=t[n];(uo(r)||pi(r))&&(o[n]=be(e,n))}return o}}let zn=[];const Ss=new WeakMap;function Nf(){zn.forEach(e=>e(...Ss.get(e))),zn=[]}function Ff(e,...t){Ss.set(e,t),!zn.includes(e)&&zn.push(e)===1&&requestAnimationFrame(Nf)}function ba(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function yt(e,t=[],o){const n={};return t.forEach(r=>{n[r]=e[r]}),Object.assign(n,o)}function _i(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function lo(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(tt(String(n)));return}if(Array.isArray(n)){lo(n,t,o);return}if(n.type===mt){if(n.children===null)return;Array.isArray(n.children)&&lo(n.children,t,o)}else{if(n.type===ls&&t)return;o.push(n)}}}),o}function je(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?tt(e):typeof e=="number"?tt(String(e)):null}function jr(e,t="default",o=void 0){const n=e[t];if(!n)return Wo("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=lo(n(o));return r.length===1?r[0]:(Wo("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function jf(e){return t=>{t?e.value=t.$el:e.value=null}}let mr;function Wf(){return mr===void 0&&(mr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),mr}const _s=new WeakSet;function FS(e){_s.add(e)}function Vf(e){return!_s.has(e)}function Uf(e,t,o){const n=B(e.value);let r=null;return Le(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 Kf(e){const t=B(!!e.value);if(t.value)return Gt(t);const o=Le(e,n=>{n&&(t.value=!0,o())});return Gt(t)}function Ei(){return ss()!==null}const Pi=typeof window<"u";let so,zo;const Gf=()=>{var e,t;so=Pi?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,zo=!1,so!==void 0?so.then(()=>{zo=!0}):zo=!0};Gf();function ki(e){if(zo)return;let t=!1;wt(()=>{zo||so==null||so.then(()=>{t||e()})}),ut(()=>{t=!0})}const $o=B(null);function xa(e){if(e.clientX>0||e.clientY>0)$o.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?$o.value={x:o+r/2,y:n+i/2}:$o.value={x:0,y:0}}else $o.value=null}}let hn=0,ya=!0;function Es(){if(!Pi)return Gt(B(null));hn===0&&Ue("click",document,xa,!0);const e=()=>{hn+=1};return ya&&(ya=Ei())?(Jo(e),ut(()=>{hn-=1,hn===0&&He("click",document,xa,!0)})):e(),Gt($o)}const qf=B(void 0);let pn=0;function Ca(){qf.value=Date.now()}let wa=!0;function Ps(e){if(!Pi)return Gt(B(!1));const t=B(!1);let o=null;function n(){o!==null&&window.clearTimeout(o)}function r(){n(),t.value=!0,o=window.setTimeout(()=>{t.value=!1},e)}pn===0&&Ue("click",window,Ca,!0);const i=()=>{pn+=1,Ue("click",window,r,!0)};return wa&&(wa=Ei())?(Jo(i),ut(()=>{pn-=1,pn===0&&He("click",window,Ca,!0),He("click",window,r,!0),n()})):i(),Gt(t)}function Mn(e,t){return F(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}function Xf(e={},t){const o=Zo({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=l=>{switch(l.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(c=>{if(c!==l.key)return;const d=n[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},a=l=>{switch(l.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(c=>{if(c!==l.key)return;const d=r[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},s=()=>{(t===void 0||t.value)&&(Ue("keydown",document,i),Ue("keyup",document,a)),t!==void 0&&Le(t,l=>{l?(Ue("keydown",document,i),Ue("keyup",document,a)):(He("keydown",document,i),He("keyup",document,a))})};return Ei()?(Jo(s),ut(()=>{(t===void 0||t.value)&&(He("keydown",document,i),He("keyup",document,a))})):s(),Gt(o)}const jS=ze("n-internal-select-menu"),Yf=ze("n-internal-select-menu-body"),Yn=ze("n-modal-body"),Zf=ze("n-modal-provider"),ks=ze("n-modal"),Zn=ze("n-drawer-body"),rn=ze("n-popover-body"),Ts="__disabled__";function ho(e){const t=me(Yn,null),o=me(Zn,null),n=me(rn,null),r=me(Yf,null),i=B();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};wt(()=>{Ue("fullscreenchange",document,a)}),ut(()=>{He("fullscreenchange",document,a)})}return Ye(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?Ts:s===!0?i.value||"body":s: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:s??(i.value||"body")})}ho.tdkey=Ts;ho.propTo={type:[String,Object,Boolean],default:void 0};function Wr(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function Vr(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(tt(String(n)));return}if(Array.isArray(n)){Vr(n,t,o);return}if(n.type===mt){if(n.children===null)return;Array.isArray(n.children)&&Vr(n.children,t,o)}else n.type!==ls&&o.push(n)}}),o}function Sa(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=Vr(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let St=null;function Rs(){if(St===null&&(St=document.getElementById("v-binder-view-measurer"),St===null)){St=document.createElement("div"),St.id="v-binder-view-measurer";const{style:e}=St;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(St)}return St.getBoundingClientRect()}function Jf(e,t){const o=Rs();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function gr(e){const t=e.getBoundingClientRect(),o=Rs();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 Qf(e){return e.nodeType===9?null:e.parentNode}function Os(e){if(e===null)return null;const t=Qf(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 Os(t)}const $s=se({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ve("VBinder",(t=ss())===null||t===void 0?void 0:t.proxy);const o=me("VBinder",null),n=B(null),r=v=>{n.value=v,o&&e.syncTargetWithParent&&o.setTargetRef(v)};let i=[];const a=()=>{let v=n.value;for(;v=Os(v),v!==null;)i.push(v);for(const y of i)Ue("scroll",y,u,!0)},s=()=>{for(const v of i)He("scroll",v,u,!0);i=[]},l=new Set,c=v=>{l.size===0&&a(),l.has(v)||l.add(v)},d=v=>{l.has(v)&&l.delete(v),l.size===0&&s()},u=()=>{Ff(f)},f=()=>{l.forEach(v=>v())},h=new Set,m=v=>{h.size===0&&Ue("resize",window,g),h.has(v)||h.add(v)},p=v=>{h.has(v)&&h.delete(v),h.size===0&&He("resize",window,g)},g=()=>{h.forEach(v=>v())};return ut(()=>{He("resize",window,g),s()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:d,addResizeListener:m,removeResizeListener:p}},render(){return Wr("binder",this.$slots)}}),Is=se({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=me("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ct(Sa("follower",this.$slots),[[t]]):Sa("follower",this.$slots)}}),eo="@@mmoContext",eh={mounted(e,{value:t}){e[eo]={handler:void 0},typeof t=="function"&&(e[eo].handler=t,Ue("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[eo];typeof t=="function"?o.handler?o.handler!==t&&(He("mousemoveoutside",e,o.handler),o.handler=t,Ue("mousemoveoutside",e,t)):(e[eo].handler=t,Ue("mousemoveoutside",e,t)):o.handler&&(He("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[eo];t&&He("mousemoveoutside",e,t),e[eo].handler=void 0}},to="@@coContext",Ur={mounted(e,{value:t,modifiers:o}){e[to]={handler:void 0},typeof t=="function"&&(e[to].handler=t,Ue("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[to];typeof t=="function"?n.handler?n.handler!==t&&(He("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,Ue("clickoutside",e,t,{capture:o.capture})):(e[to].handler=t,Ue("clickoutside",e,t,{capture:o.capture})):n.handler&&(He("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[to];o&&He("clickoutside",e,o,{capture:t.capture}),e[to].handler=void 0}};function th(e,t){console.error(`[vdirs/${e}]: ${t}`)}class oh{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&&th("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 vr=new oh,oo="@@ziContext",Ti={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[oo]={enabled:!!r,initialized:!1},r&&(vr.ensureZIndex(e,n),e[oo].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[oo].enabled;r&&!i&&(vr.ensureZIndex(e,n),e[oo].initialized=!0),e[oo].enabled=!!r},unmounted(e,t){if(!e[oo].initialized)return;const{value:o={}}=t,{zIndex:n}=o;vr.unregister(e,n)}},{c:Dt}=Ku(),Ri="vueuc-style";function _a(e){return typeof e=="string"?document.querySelector(e):e()}const As=se({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Kf(be(e,"show")),mergedTo:F(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Wr("lazy-teleport",this.$slots):b(mi,{disabled:this.disabled,to:this.mergedTo},Wr("lazy-teleport",this.$slots)):null}}),mn={top:"bottom",bottom:"top",left:"right",right:"left"},Ea={start:"end",center:"center",end:"start"},br={top:"height",bottom:"height",left:"width",right:"width"},nh={"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"},rh={"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"},ih={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Pa={top:!0,bottom:!1,left:!0,right:!1},ka={top:"end",bottom:"start",left:"end",right:"start"};function ah(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const d=(h,m,p)=>{let g=0,v=0;const y=o[h]-t[m]-t[h];return y>0&&n&&(p?v=Pa[m]?y:-y:g=Pa[m]?y:-y),{left:g,top:v}},u=a==="left"||a==="right";if(l!=="center"){const h=ih[e],m=mn[h],p=br[h];if(o[p]>t[p]){if(t[h]+t[p]t[m]&&(l=Ea[s])}else{const h=a==="bottom"||a==="top"?"left":"top",m=mn[h],p=br[h],g=(o[p]-t[p])/2;(t[h]t[m]?(l=ka[h],c=d(p,h,u)):(l=ka[m],c=d(p,m,u)))}let f=a;return t[a] *",{pointerEvents:"all"})])]),zs=se({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=me("VBinder"),o=Ye(()=>e.enabled!==void 0?e.enabled:e.show),n=B(null),r=B(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};wt(()=>{o.value&&(l(),i())});const s=gi();ch.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ri,ssr:s}),ut(()=>{a()}),ki(()=>{o.value&&l()});const l=()=>{if(!o.value)return;const f=n.value;if(f===null)return;const h=t.targetRef,{x:m,y:p,overlap:g}=e,v=m!==void 0&&p!==void 0?Jf(m,p):gr(h);f.style.setProperty("--v-target-width",`${Math.round(v.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(v.height)}px`);const{width:y,minWidth:P,placement:_,internalShift:x,flip:E}=e;f.setAttribute("v-placement",_),g?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:C}=f;y==="target"?C.width=`${v.width}px`:y!==void 0?C.width=y:C.width="",P==="target"?C.minWidth=`${v.width}px`:P!==void 0?C.minWidth=P:C.minWidth="";const A=gr(f),S=gr(r.value),{left:R,top:z,placement:$}=ah(_,v,A,x,E,g),Q=lh($,g),{left:ne,top:L,transform:le}=sh($,S,v,z,R,g);f.setAttribute("v-placement",$),f.style.setProperty("--v-offset-left",`${Math.round(R)}px`),f.style.setProperty("--v-offset-top",`${Math.round(z)}px`),f.style.transform=`translateX(${ne}) translateY(${L}) ${le}`,f.style.setProperty("--v-transform-origin",Q),f.style.transformOrigin=Q};Le(o,f=>{f?(i(),c()):a()});const c=()=>{qe().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{Le(be(e,f),l)}),["teleportDisabled"].forEach(f=>{Le(be(e,f),c)}),Le(be(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const d=Wn(),u=Ye(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:u,syncPosition:l}},render(){return b(As,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=b("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[b("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?Ct(o,[[Ti,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}}),dh=Dt(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Dt("&::-webkit-scrollbar",{width:0,height:0})]),uh=se({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=B(null);function t(r){!(r.currentTarget.offsetWidthf){const{updateCounter:E}=e;for(let C=P;C>=0;--C){const A=v-1-C;E!==void 0?E(A):d.textContent=`${A}`;const S=d.offsetWidth;if(p-=h[C],p+S<=f||C===0){g=!0,P=C-1,m&&(P===-1?(m.style.maxWidth=`${f-S}px`,m.style.boxSizing="border-box"):m.style.maxWidth="");const{onUpdateCount:R}=e;R&&R(A);break}}}}const{onUpdateOverflow:y}=e;g?y!==void 0&&y(!0):(y!==void 0&&y(!1),d.setAttribute(vt,""))}const i=gi();return fh.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Ri,ssr:i}),wt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return qe(()=>this.sync({showAllItemsBeforeCalculate:!1})),b("div",{class:"v-overflow",ref:"selfRef"},[Gu(e,"default"),e.counter?e.counter():b("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Ms(e){return e instanceof HTMLElement}function Ls(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(Ms(o)&&(Hs(o)||Bs(o)))return!0}return!1}function Hs(e){if(!ph(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function ph(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 Po=[];const Ds=se({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=Vn(),o=B(null),n=B(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return Po[Po.length-1]===t}function l(g){var v;g.code==="Escape"&&s()&&((v=e.onEsc)===null||v===void 0||v.call(e,g))}wt(()=>{Le(()=>e.active,g=>{g?(u(),Ue("keydown",document,l)):(He("keydown",document,l),r&&f())},{immediate:!0})}),ut(()=>{He("keydown",document,l),r&&f()});function c(g){if(!i&&s()){const v=d();if(v===null||v.contains(An(g)))return;h("first")}}function d(){const g=o.value;if(g===null)return null;let v=g;for(;v=v.nextSibling,!(v===null||v instanceof Element&&v.tagName==="DIV"););return v}function u(){var g;if(!e.disabled){if(Po.push(t),e.autoFocus){const{initialFocusTo:v}=e;v===void 0?h("first"):(g=_a(v))===null||g===void 0||g.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function f(){var g;if(e.disabled||(document.removeEventListener("focus",c,!0),Po=Po.filter(y=>y!==t),s()))return;const{finalFocusTo:v}=e;v!==void 0?(g=_a(v))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function h(g){if(s()&&e.active){const v=o.value,y=n.value;if(v!==null&&y!==null){const P=d();if(P==null||P===y){i=!0,v.focus({preventScroll:!0}),i=!1;return}i=!0;const _=g==="first"?Ls(P):Bs(P);i=!1,_||(i=!0,v.focus({preventScroll:!0}),i=!1)}}}function m(g){if(i)return;const v=d();v!==null&&(g.relatedTarget!==null&&v.contains(g.relatedTarget)?h("last"):h("first"))}function p(g){i||(g.relatedTarget!==null&&g.relatedTarget===o.value?h("last"):h("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:p}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return b(mt,null,[b("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),b("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let no=0,Ta="",Ra="",Oa="",$a="";const Ia=B("0px");function mh(e){if(typeof document>"u")return;const t=document.documentElement;let o,n=!1;const r=()=>{t.style.marginRight=Ta,t.style.overflow=Ra,t.style.overflowX=Oa,t.style.overflowY=$a,Ia.value="0px"};wt(()=>{o=Le(e,i=>{if(i){if(!no){const a=window.innerWidth-t.offsetWidth;a>0&&(Ta=t.style.marginRight,t.style.marginRight=`${a}px`,Ia.value=`${a}px`),Ra=t.style.overflow,Oa=t.style.overflowX,$a=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}n=!0,no++}else no--,no||r(),n=!1},{immediate:!0})}),ut(()=>{o==null||o(),n&&(no--,no||r(),n=!1)})}const Oi=B(!1);function Aa(){Oi.value=!0}function za(){Oi.value=!1}let ko=0;function gh(){return cs&&(Jo(()=>{ko||(window.addEventListener("compositionstart",Aa),window.addEventListener("compositionend",za)),ko++}),ut(()=>{ko<=1?(window.removeEventListener("compositionstart",Aa),window.removeEventListener("compositionend",za),ko=0):ko--})),Oi}var vh=/\s/;function bh(e){for(var t=e.length;t--&&vh.test(e.charAt(t)););return t}var xh=/^\s+/;function yh(e){return e&&e.slice(0,bh(e)+1).replace(xh,"")}var Ma=NaN,Ch=/^[-+]0x[0-9a-f]+$/i,wh=/^0b[01]+$/i,Sh=/^0o[0-7]+$/i,_h=parseInt;function La(e){if(typeof e=="number")return e;if(vi(e))return Ma;if(Vo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yh(e);var o=wh.test(e);return o||Sh.test(e)?_h(e.slice(2),o?2:8):Ch.test(e)?Ma:+e}var Kr=Un(Qo,"WeakMap"),Eh=qu(Object.keys,Object),Ph=Object.prototype,kh=Ph.hasOwnProperty;function Th(e){if(!Xu(e))return Eh(e);var t=[];for(var o in Object(e))kh.call(e,o)&&o!="constructor"&&t.push(o);return t}function $i(e){return bi(e)?Yu(e):Th(e)}var Rh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oh=/^\w*$/;function Ii(e,t){if(It(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||vi(e)?!0:Oh.test(e)||!Rh.test(e)||t!=null&&e in Object(t)}var $h="Expected a function";function Ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($h);var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=e.apply(this,n);return o.cache=i.set(r,a)||i,a};return o.cache=new(Ai.Cache||xi),o}Ai.Cache=xi;var Ih=500;function Ah(e){var t=Ai(e,function(n){return o.size===Ih&&o.clear(),n}),o=t.cache;return t}var zh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mh=/\\(\\)?/g,Lh=Ah(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(zh,function(o,n,r,i){t.push(r?i.replace(Mh,"$1"):n||o)}),t});function Ns(e,t){return It(e)?e:Ii(e,t)?[e]:Lh(Zu(e))}var Bh=1/0;function Jn(e){if(typeof e=="string"||vi(e))return e;var t=e+"";return t=="0"&&1/e==-Bh?"-0":t}function Fs(e,t){t=Ns(t,e);for(var o=0,n=t.length;e!=null&&os))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,h=o&rp?new Ln:void 0;for(i.set(e,t),i.set(t,e);++u=t||C<0||u&&A>=i}function v(){var E=yr();if(g(E))return y(E);s=setTimeout(v,p(E))}function y(E){return s=void 0,f&&n?h(E):(n=r=void 0,a)}function P(){s!==void 0&&clearTimeout(s),c=0,n=l=r=s=void 0}function _(){return s===void 0?a:y(yr())}function x(){var E=yr(),C=g(E);if(n=arguments,r=this,l=E,C){if(s===void 0)return m(l);if(u)return clearTimeout(s),s=setTimeout(v,t),h(l)}return s===void 0&&(s=setTimeout(v,t)),a}return x.cancel=P,x.flush=_,x}function Yp(e,t){var o=-1,n=bi(e)?Array(e.length):[];return Up(e,function(r,i,a){n[++o]=t(r,i,a)}),n}function Zp(e,t){var o=It(e)?af:Yp;return o(e,jp(t))}var Jp="Expected a function";function Cr(e,t,o){var n=!0,r=!0;if(typeof e!="function")throw new TypeError(Jp);return Vo(o)&&(n="leading"in o?!!o.leading:n,r="trailing"in o?!!o.trailing:r),Xp(e,t,{leading:n,maxWait:t,trailing:r})}const Qp={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}};function em(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}let tm={};function om(){return tm}function qa(e,t){var s,l,c,d;const o=om(),n=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??o.weekStartsOn??((d=(c=o.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,r=em(e),i=r.getDay(),a=(i{let n;const r=rm[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",String(t)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?n+"内":n+"前":n},am={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},lm={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},sm={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},cm={date:fr({formats:am,defaultWidth:"full"}),time:fr({formats:lm,defaultWidth:"full"}),dateTime:fr({formats:sm,defaultWidth:"full"})};function Xa(e,t,o){const n="eeee p";return nm(e,t,o)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}const dm={lastWeek:Xa,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Xa,other:"PP p"},um=(e,t,o,n)=>{const r=dm[e];return typeof r=="function"?r(t,o,n):r},fm={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},hm={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},pm={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},mm={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},gm={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},vm={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},bm=(e,t)=>{const o=Number(e);switch(t==null?void 0:t.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},xm={ordinalNumber:bm,era:_o({values:fm,defaultWidth:"wide"}),quarter:_o({values:hm,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_o({values:pm,defaultWidth:"wide"}),day:_o({values:mm,defaultWidth:"wide"}),dayPeriod:_o({values:gm,defaultWidth:"wide",formattingValues:vm,defaultFormattingWidth:"wide"})},ym=/^(第\s*)?\d+(日|时|分|秒)?/i,Cm=/\d+/i,wm={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Sm={any:[/^(前)/i,/^(公元)/i]},_m={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Em={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Pm={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},km={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Tm={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Rm={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Om={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},$m={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Im={ordinalNumber:lf({matchPattern:ym,parsePattern:Cm,valueCallback:e=>parseInt(e,10)}),era:Eo({matchPatterns:wm,defaultMatchWidth:"wide",parsePatterns:Sm,defaultParseWidth:"any"}),quarter:Eo({matchPatterns:_m,defaultMatchWidth:"wide",parsePatterns:Em,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Eo({matchPatterns:Pm,defaultMatchWidth:"wide",parsePatterns:km,defaultParseWidth:"any"}),day:Eo({matchPatterns:Tm,defaultMatchWidth:"wide",parsePatterns:Rm,defaultParseWidth:"any"}),dayPeriod:Eo({matchPatterns:Om,defaultMatchWidth:"any",parsePatterns:$m,defaultParseWidth:"any"})},Am={code:"zh-CN",formatDistance:im,formatLong:cm,formatRelative:um,localize:xm,match:Im,options:{weekStartsOn:1,firstWeekContainsDate:4}},zm={name:"zh-CN",locale:Am},Mm=se({name:"Add",render(){return b("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Us=se({name:"ChevronRight",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),Ks=Kn("error",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Yr=Kn("info",b("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Gs=Kn("success",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),qs=Kn("warning",b("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),Lm=se({name:"ChevronDownFilled",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}});function Ya(e){return Array.isArray(e)?e:[e]}const Zr={STOP:"STOP"};function Xs(e,t){const o=t(e);e.children!==void 0&&o!==Zr.STOP&&e.children.forEach(n=>Xs(n,t))}function Bm(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?a=>{a.isLeaf||(n.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||n.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),n}function Hm(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function Dm(e){return e.children}function Nm(e){return e.key}function Fm(){return!1}function jm(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function Wm(e){return e.disabled===!0}function Vm(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function wr(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Sr(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function Um(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function Km(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function Gm(e){return(e==null?void 0:e.type)==="group"}function WS(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class qm extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Xm(e,t,o,n){return Bn(t.concat(e),o,n,!1)}function Ym(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function Zm(e,t,o,n){const r=Bn(t,o,n,!1),i=Bn(e,o,n,!0),a=Ym(e,o),s=[];return r.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>r.delete(l)),r}function _r(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return n!==void 0?{checkedKeys:Um(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:Km(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;r!==void 0?u=Zm(r,o,t,c):n!==void 0?u=Xm(n,o,t,c):u=Bn(o,t,c,!1);const f=l==="parent",h=l==="child"||s,m=u,p=new Set,g=Math.max.apply(null,Array.from(d.keys()));for(let v=g;v>=0;v-=1){const y=v===0,P=d.get(v);for(const _ of P){if(_.isLeaf)continue;const{key:x,shallowLoaded:E}=_;if(h&&E&&_.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&m.has(R.key)&&m.delete(R.key)}),_.disabled||!E)continue;let C=!0,A=!1,S=!0;for(const R of _.children){const z=R.key;if(!R.disabled){if(S&&(S=!1),m.has(z))A=!0;else if(p.has(z)){A=!0,C=!1;break}else if(C=!1,A)break}}C&&!S?(f&&_.children.forEach(R=>{!R.disabled&&m.has(R.key)&&m.delete(R.key)}),m.add(x)):A&&p.add(x),y&&h&&m.has(x)&&m.delete(x)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(p)}}function Bn(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach(l=>{const c=r.get(l);c!==void 0&&Xs(c,d=>{if(d.disabled)return Zr.STOP;const{key:u}=d;if(!a.has(u)&&(a.add(u),s.add(u),Vm(d.rawNode,i))){if(n)return Zr.STOP;if(!o)throw new qm}})}),s}function Jm(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return s.treeNode=null,s;for(;a;)!a.ignored&&(t||!a.isGroup)&&s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),o||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function Qm(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function eg(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function Za(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?tg:eg,i={reverse:t==="prev"};let a=!1,s=null;function l(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!c.disabled||n)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const d=Mi(c,i);d!==null?s=d:l(r(c,o))}else{const d=r(c,!1);if(d!==null)l(d);else{const u=og(c);u!=null&&u.isGroup?l(r(u,o)):o&&l(r(c,!0))}}}}return l(e),s}function tg(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function og(e){return e.parent}function Mi(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,a=o?-1:r,s=o?-1:1;for(let l=i;l!==a;l+=s){const c=n[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=Mi(c,t);if(d!==null)return d}else return c}}return null}const ng={getChild(){return this.ignored?null:Mi(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Za(this,"next",e)},getPrev(e={}){return Za(this,"prev",e)}};function rg(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(a=>{n.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||o===void 0||o.has(a.key))&&r(a.children)})}return r(e),n}function ig(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function Ys(e,t,o,n,r,i=null,a=0){const s=[];return e.forEach((l,c)=>{var d;const u=Object.create(n);if(u.rawNode=l,u.siblings=s,u.level=a,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=r(l);Array.isArray(f)&&(u.children=Ys(f,t,o,n,r,u,a+1))}s.push(u),t.set(u.key,u),o.has(a)||o.set(a,[]),(d=o.get(a))===null||d===void 0||d.push(u)}),s}function En(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=Wm,getIgnored:a=Fm,getIsGroup:s=Gm,getKey:l=Nm}=t,c=(o=t.getChildren)!==null&&o!==void 0?o:Dm,d=t.ignoreEmptyChildren?_=>{const x=c(_);return Array.isArray(x)?x.length?x:null:x}:c,u=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return Hm(this.rawNode,d)},get shallowLoaded(){return jm(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(_){return ig(this,_)}},ng),f=Ys(e,n,r,u,d);function h(_){if(_==null)return null;const x=n.get(_);return x&&!x.isGroup&&!x.ignored?x:null}function m(_){if(_==null)return null;const x=n.get(_);return x&&!x.ignored?x:null}function p(_,x){const E=m(_);return E?E.getPrev(x):null}function g(_,x){const E=m(_);return E?E.getNext(x):null}function v(_){const x=m(_);return x?x.getParent():null}function y(_){const x=m(_);return x?x.getChild():null}const P={treeNodes:f,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(_){return rg(f,_)},getNode:h,getPrev:p,getNext:g,getParent:v,getChild:y,getFirstAvailableNode(){return Qm(f)},getPath(_,x={}){return Jm(_,x,P)},getCheckedKeys(_,x={}){const{cascade:E=!0,leafOnly:C=!1,checkStrategy:A="all",allowNotLoaded:S=!1}=x;return _r({checkedKeys:wr(_),indeterminateKeys:Sr(_),cascade:E,leafOnly:C,checkStrategy:A,allowNotLoaded:S},P)},check(_,x,E={}){const{cascade:C=!0,leafOnly:A=!1,checkStrategy:S="all",allowNotLoaded:R=!1}=E;return _r({checkedKeys:wr(x),indeterminateKeys:Sr(x),keysToCheck:_==null?[]:Ya(_),cascade:C,leafOnly:A,checkStrategy:S,allowNotLoaded:R},P)},uncheck(_,x,E={}){const{cascade:C=!0,leafOnly:A=!1,checkStrategy:S="all",allowNotLoaded:R=!1}=E;return _r({checkedKeys:wr(x),indeterminateKeys:Sr(x),keysToUncheck:_==null?[]:Ya(_),cascade:C,leafOnly:A,checkStrategy:S,allowNotLoaded:R},P)},getNonLeafKeys(_={}){return Bm(f,_)}};return P}const ee={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},ag=us(ee.neutralBase),Zs=us(ee.neutralInvertBase),lg=`rgba(${Zs.slice(0,3).join(", ")}, `;function ye(e){return`${lg+String(e)})`}function sg(e){const t=Array.from(Zs);return t[3]=Number(e),ie(ag,t)}const V=Object.assign(Object.assign({name:"common"},yi),{baseColor:ee.neutralBase,primaryColor:ee.primaryDefault,primaryColorHover:ee.primaryHover,primaryColorPressed:ee.primaryActive,primaryColorSuppl:ee.primarySuppl,infoColor:ee.infoDefault,infoColorHover:ee.infoHover,infoColorPressed:ee.infoActive,infoColorSuppl:ee.infoSuppl,successColor:ee.successDefault,successColorHover:ee.successHover,successColorPressed:ee.successActive,successColorSuppl:ee.successSuppl,warningColor:ee.warningDefault,warningColorHover:ee.warningHover,warningColorPressed:ee.warningActive,warningColorSuppl:ee.warningSuppl,errorColor:ee.errorDefault,errorColorHover:ee.errorHover,errorColorPressed:ee.errorActive,errorColorSuppl:ee.errorSuppl,textColorBase:ee.neutralTextBase,textColor1:ye(ee.alpha1),textColor2:ye(ee.alpha2),textColor3:ye(ee.alpha3),textColorDisabled:ye(ee.alpha4),placeholderColor:ye(ee.alpha4),placeholderColorDisabled:ye(ee.alpha5),iconColor:ye(ee.alpha4),iconColorDisabled:ye(ee.alpha5),iconColorHover:ye(Number(ee.alpha4)*1.25),iconColorPressed:ye(Number(ee.alpha4)*.8),opacity1:ee.alpha1,opacity2:ee.alpha2,opacity3:ee.alpha3,opacity4:ee.alpha4,opacity5:ee.alpha5,dividerColor:ye(ee.alphaDivider),borderColor:ye(ee.alphaBorder),closeIconColorHover:ye(Number(ee.alphaClose)),closeIconColor:ye(Number(ee.alphaClose)),closeIconColorPressed:ye(Number(ee.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:ye(ee.alpha4),clearColorHover:Ve(ye(ee.alpha4),{alpha:1.25}),clearColorPressed:Ve(ye(ee.alpha4),{alpha:.8}),scrollbarColor:ye(ee.alphaScrollbar),scrollbarColorHover:ye(ee.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ye(ee.alphaProgressRail),railColor:ye(ee.alphaRail),popoverColor:ee.neutralPopover,tableColor:ee.neutralCard,cardColor:ee.neutralCard,modalColor:ee.neutralModal,bodyColor:ee.neutralBody,tagColor:sg(ee.alphaTag),avatarColor:ye(ee.alphaAvatar),invertedColor:ee.neutralBase,inputColor:ye(ee.alphaInput),codeColor:ye(ee.alphaCode),tabColor:ye(ee.alphaTab),actionColor:ye(ee.alphaAction),tableHeaderColor:ye(ee.alphaAction),hoverColor:ye(ee.alphaPending),tableColorHover:ye(ee.alphaTablePending),tableColorStriped:ye(ee.alphaTableStriped),pressedColor:ye(ee.alphaPressed),opacityDisabled:ee.alphaDisabled,inputColorDisabled:ye(ee.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),cg={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Js(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l}=e;return Object.assign(Object.assign({},cg),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:s,fontSizeHuge:l,textColor:t,iconColor:o,extraTextColor:n})}const Li={name:"Empty",common:xe,self:Js},Xt={name:"Empty",common:V,self:Js},Qe={name:"Scrollbar",common:V,self:sf},dg={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 Qs(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:d,fontSizeTiny:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m,fontSizeHuge:p,heightTiny:g,heightSmall:v,heightMedium:y,heightLarge:P,heightHuge:_}=e;return Object.assign(Object.assign({},dg),{optionFontSizeTiny:u,optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:m,optionFontSizeHuge:p,optionHeightTiny:g,optionHeightSmall:v,optionHeightMedium:y,optionHeightLarge:P,optionHeightHuge:_,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:l})}const Bi=We({name:"InternalSelectMenu",common:xe,peers:{Scrollbar:bo,Empty:Li},self:Qs}),an={name:"InternalSelectMenu",common:V,peers:{Scrollbar:Qe,Empty:Xt},self:Qs},{cubicBezierEaseIn:Ja,cubicBezierEaseOut:Qa}=yi;function ec({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[K("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Ja}, transform ${t} ${Ja} ${r&&`,${r}`}`}),K("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Qa}, transform ${t} ${Qa} ${r&&`,${r}`}`}),K("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),K("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const ug={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function tc(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},ug),{fontSize:i,borderRadius:r,color:o,dividerColor:a,textColor:n,boxShadow:t})}const yo={name:"Popover",common:xe,self:tc},Yt={name:"Popover",common:V,self:tc},Er={top:"bottom",bottom:"top",left:"right",right:"left"},Be="var(--n-arrow-height) * 1.414",fg=K([T("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), @@ -119,7 +119,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d ${o}: 100%; ${Er[o]}: auto; ${n} - `,[T("popover-arrow",t)])])])}const oc=Object.assign(Object.assign({},ke.props),{to:ho.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function nc({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return b("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},b("div",{class:[`${r}-popover-arrow`,e],style:t}))}const hg=se({name:"PopoverBody",inheritAttrs:!1,props:oc,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i}=Xe(e),a=ke("Popover","-popover",fg,yo,e,r),s=B(null),l=me("NPopover"),c=B(null),d=B(e.show),u=B(!1);At(()=>{const{show:C}=e;C&&!Wf()&&!e.internalDeactivateImmediately&&(u.value=!0)});const f=F(()=>{const{trigger:C,onClickoutside:A}=e,S=[],{positionManuallyRef:{value:R}}=l;return R||(C==="click"&&!A&&S.push([Ur,E,void 0,{capture:!0}]),C==="hover"&&S.push([eh,P])),A&&S.push([Ur,E,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&u.value)&&S.push([Uo,e.show]),S}),h=F(()=>{const{common:{cubicBezierEaseInOut:C,cubicBezierEaseIn:A,cubicBezierEaseOut:S},self:{space:R,spaceArrow:z,padding:$,fontSize:Q,textColor:ne,dividerColor:L,color:le,boxShadow:w,borderRadius:D,arrowHeight:q,arrowOffset:te,arrowOffsetVertical:U}}=a.value;return{"--n-box-shadow":w,"--n-bezier":C,"--n-bezier-ease-in":A,"--n-bezier-ease-out":S,"--n-font-size":Q,"--n-text-color":ne,"--n-color":le,"--n-divider-color":L,"--n-border-radius":D,"--n-arrow-height":q,"--n-arrow-offset":te,"--n-arrow-offset-vertical":U,"--n-padding":$,"--n-space":R,"--n-space-arrow":z}}),m=F(()=>{const C=e.width==="trigger"?void 0:ao(e.width),A=[];C&&A.push({width:C});const{maxWidth:S,minWidth:R}=e;return S&&A.push({maxWidth:ao(S)}),R&&A.push({maxWidth:ao(R)}),i||A.push(h.value),A}),p=i?ft("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:g}),ut(()=>{l.setBodyInstance(null)}),Le(be(e,"show"),C=>{e.animated||(C?d.value=!0:d.value=!1)});function g(){var C;(C=s.value)===null||C===void 0||C.syncPosition()}function v(C){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(C)}function y(C){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(C)}function P(C){e.trigger==="hover"&&!x().contains(An(C))&&l.handleMouseMoveOutside(C)}function E(C){(e.trigger==="click"&&!x().contains(An(C))||e.onClickoutside)&&l.handleClickOutside(C)}function x(){return l.getTriggerElement()}ve(rn,c),ve(Zn,null),ve(Yn,null);function _(){if(p==null||p.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&u.value))return null;let A;const S=l.internalRenderBodyRef.value,{value:R}=r;if(S)A=S([`${R}-popover-shared`,p==null?void 0:p.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,m.value,v,y);else{const{value:z}=l.extraClassRef,{internalTrapFocus:$}=e,Q=!fa(t.header)||!fa(t.footer),ne=()=>{var L,le;const w=Q?b(mt,null,$t(t.header,te=>te?b("div",{class:[`${R}-popover__header`,e.headerClass],style:e.headerStyle},te):null),$t(t.default,te=>te?b("div",{class:[`${R}-popover__content`,e.contentClass],style:e.contentStyle},t):null),$t(t.footer,te=>te?b("div",{class:[`${R}-popover__footer`,e.footerClass],style:e.footerStyle},te):null)):e.scrollable?(L=t.default)===null||L===void 0?void 0:L.call(t):b("div",{class:[`${R}-popover__content`,e.contentClass],style:e.contentStyle},t),D=e.scrollable?b(fs,{contentClass:Q?void 0:`${R}-popover__content ${(le=e.contentClass)!==null&&le!==void 0?le:""}`,contentStyle:Q?void 0:e.contentStyle},{default:()=>w}):w,q=e.showArrow?nc({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:R}):null;return[D,q]};A=b("div",xo({class:[`${R}-popover`,`${R}-popover-shared`,p==null?void 0:p.themeClass.value,z.map(L=>`${R}-${L}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:Q,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:m.value,onKeydown:l.handleKeydown,onMouseenter:v,onMouseleave:y},o),$?b(Ds,{active:e.show,autoFocus:!0},{default:ne}):ne())}return Ct(A,f.value)}return{displayed:u,namespace:n,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:ho(e),followerEnabled:d,renderContentNode:_}},render(){return b(zs,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===ho.tdkey},{default:()=>this.animated?b(en,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),pg=Object.keys(oc),mg={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function gg(e,t,o){mg[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...a)=>{r(...a),i(...a)}:e.props[n]=i})}const Qn={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:ho.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},vg=Object.assign(Object.assign(Object.assign({},ke.props),Qn),{internalOnAfterLeave:Function,internalRenderBody:Function}),rc=se({name:"Popover",inheritAttrs:!1,props:vg,__popover__:!0,setup(e){const t=Wn(),o=B(null),n=F(()=>e.show),r=B(e.defaultShow),i=fo(n,r),a=Ye(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},l=()=>s()?!1:i.value,c=Mn(e,["arrow","showArrow"]),d=F(()=>e.overlap?!1:c.value);let u=null;const f=B(null),h=B(null),m=Ye(()=>e.x!==void 0&&e.y!==void 0);function p(L){const{"onUpdate:show":le,onUpdateShow:w,onShow:D,onHide:q}=e;r.value=L,le&&Oe(le,L),w&&Oe(w,L),L&&D&&Oe(D,!0),L&&q&&Oe(q,!1)}function g(){u&&u.syncPosition()}function v(){const{value:L}=f;L&&(window.clearTimeout(L),f.value=null)}function y(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function P(){const L=s();if(e.trigger==="focus"&&!L){if(l())return;p(!0)}}function E(){const L=s();if(e.trigger==="focus"&&!L){if(!l())return;p(!1)}}function x(){const L=s();if(e.trigger==="hover"&&!L){if(y(),f.value!==null||l())return;const le=()=>{p(!0),f.value=null},{delay:w}=e;w===0?le():f.value=window.setTimeout(le,w)}}function _(){const L=s();if(e.trigger==="hover"&&!L){if(v(),h.value!==null||!l())return;const le=()=>{p(!1),h.value=null},{duration:w}=e;w===0?le():h.value=window.setTimeout(le,w)}}function C(){_()}function A(L){var le;l()&&(e.trigger==="click"&&(v(),y(),p(!1)),(le=e.onClickoutside)===null||le===void 0||le.call(e,L))}function S(){if(e.trigger==="click"&&!s()){v(),y();const L=!l();p(L)}}function R(L){e.internalTrapFocus&&L.key==="Escape"&&(v(),y(),p(!1))}function z(L){r.value=L}function $(){var L;return(L=o.value)===null||L===void 0?void 0:L.targetRef}function Q(L){u=L}return ve("NPopover",{getTriggerElement:$,handleKeydown:R,handleMouseEnter:x,handleMouseLeave:_,handleClickOutside:A,handleMouseMoveOutside:C,setBodyInstance:Q,positionManuallyRef:m,isMountedRef:t,zIndexRef:be(e,"zIndex"),extraClassRef:be(e,"internalExtraClass"),internalRenderBodyRef:be(e,"internalRenderBody")}),At(()=>{i.value&&s()&&p(!1)}),{binderInstRef:o,positionManually:m,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:l,setShow:z,handleClick:S,handleMouseEnter:x,handleMouseLeave:_,handleFocus:P,handleBlur:E,syncPosition:g}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(o.activator?n=jr(o,"activator"):n=jr(o,"trigger"),n)){n=Ci(n),n=n.type===df?b("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(d=>{d.onBlur(c)})},onFocus:c=>{s.forEach(d=>{d.onFocus(c)})},onClick:c=>{s.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{s.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{s.forEach(d=>{d.onMouseleave(c)})}};gg(n,a?"nested":t?"manual":this.trigger,l)}}return b($s,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?Ct(b("div",{style:{position:"fixed",inset:0}}),[[Ti,{enabled:i,zIndex:this.zIndex}]]):null,t?null:b(Is,null,{default:()=>n}),b(hg,yt(this.$props,pg,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),bg={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},ic={name:"Tag",common:V,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:d,tagColor:u,opacityDisabled:f,closeIconColor:h,closeIconColorHover:m,closeIconColorPressed:p,closeColorHover:g,closeColorPressed:v,borderRadiusSmall:y,fontSizeMini:P,fontSizeTiny:E,fontSizeSmall:x,fontSizeMedium:_,heightMini:C,heightTiny:A,heightSmall:S,heightMedium:R,buttonColor2Hover:z,buttonColor2Pressed:$,fontWeightStrong:Q}=e;return Object.assign(Object.assign({},bg),{closeBorderRadius:y,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R,borderRadius:y,opacityDisabled:f,fontSizeTiny:P,fontSizeSmall:E,fontSizeMedium:x,fontSizeLarge:_,fontWeightStrong:Q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:z,colorPressedCheckable:$,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:m,closeIconColorPressed:p,closeColorHover:g,closeColorPressed:v,borderPrimary:`1px solid ${J(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:J(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Ve(r,{lightness:.7}),closeIconColorHoverPrimary:Ve(r,{lightness:.7}),closeIconColorPressedPrimary:Ve(r,{lightness:.7}),closeColorHoverPrimary:J(r,{alpha:.16}),closeColorPressedPrimary:J(r,{alpha:.12}),borderInfo:`1px solid ${J(i,{alpha:.3})}`,textColorInfo:i,colorInfo:J(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Ve(i,{alpha:.7}),closeIconColorHoverInfo:Ve(i,{alpha:.7}),closeIconColorPressedInfo:Ve(i,{alpha:.7}),closeColorHoverInfo:J(i,{alpha:.16}),closeColorPressedInfo:J(i,{alpha:.12}),borderSuccess:`1px solid ${J(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:J(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Ve(a,{alpha:.7}),closeIconColorHoverSuccess:Ve(a,{alpha:.7}),closeIconColorPressedSuccess:Ve(a,{alpha:.7}),closeColorHoverSuccess:J(a,{alpha:.16}),closeColorPressedSuccess:J(a,{alpha:.12}),borderWarning:`1px solid ${J(s,{alpha:.3})}`,textColorWarning:s,colorWarning:J(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Ve(s,{alpha:.7}),closeIconColorHoverWarning:Ve(s,{alpha:.7}),closeIconColorPressedWarning:Ve(s,{alpha:.7}),closeColorHoverWarning:J(s,{alpha:.16}),closeColorPressedWarning:J(s,{alpha:.11}),borderError:`1px solid ${J(l,{alpha:.3})}`,textColorError:l,colorError:J(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Ve(l,{alpha:.7}),closeIconColorHoverError:Ve(l,{alpha:.7}),closeIconColorPressedError:Ve(l,{alpha:.7}),closeColorHoverError:J(l,{alpha:.16}),closeColorPressedError:J(l,{alpha:.12})})}},ac={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function xg(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderColor:f,iconColor:h,iconColorDisabled:m,clearColor:p,clearColorHover:g,clearColorPressed:v,placeholderColor:y,placeholderColorDisabled:P,fontSizeTiny:E,fontSizeSmall:x,fontSizeMedium:_,fontSizeLarge:C,heightTiny:A,heightSmall:S,heightMedium:R,heightLarge:z}=e;return Object.assign(Object.assign({},ac),{fontSizeTiny:E,fontSizeSmall:x,fontSizeMedium:_,fontSizeLarge:C,heightTiny:A,heightSmall:S,heightMedium:R,heightLarge:z,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:y,placeholderColorDisabled:P,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${J(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${J(a,{alpha:.2})}`,caretColor:a,arrowColor:h,arrowColorDisabled:m,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${J(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${J(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${J(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${J(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:p,clearColorHover:g,clearColorPressed:v})}const yg=We({name:"InternalSelection",common:xe,peers:{Popover:yo},self:xg}),Hi={name:"InternalSelection",common:V,peers:{Popover:Yt},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,iconColor:f,iconColorDisabled:h,clearColor:m,clearColorHover:p,clearColorPressed:g,placeholderColor:v,placeholderColorDisabled:y,fontSizeTiny:P,fontSizeSmall:E,fontSizeMedium:x,fontSizeLarge:_,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R}=e;return Object.assign(Object.assign({},ac),{fontSizeTiny:P,fontSizeSmall:E,fontSizeMedium:x,fontSizeLarge:_,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:v,placeholderColorDisabled:y,color:r,colorDisabled:i,colorActive:J(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${J(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${J(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${J(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${J(l,{alpha:.4})}`,colorActiveWarning:J(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${J(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${J(d,{alpha:.4})}`,colorActiveError:J(d,{alpha:.1}),caretColorError:d,clearColor:m,clearColorHover:p,clearColorPressed:g})}},Cg={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},wg={name:"Alert",common:V,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,dividerColor:r,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:m,warningColorSuppl:p,errorColorSuppl:g,fontSize:v}=e;return Object.assign(Object.assign({},Cg),{fontSize:v,lineHeight:t,titleFontWeight:n,borderRadius:o,border:`1px solid ${r}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:o,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${J(h,{alpha:.35})}`,colorInfo:J(h,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:h,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${J(m,{alpha:.35})}`,colorSuccess:J(m,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${J(p,{alpha:.35})}`,colorWarning:J(p,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:p,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${J(g,{alpha:.35})}`,colorError:J(g,{alpha:.25}),titleTextColorError:a,iconColorError:g,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:u,closeIconColorPressedError:f})}},{cubicBezierEaseInOut:pt,cubicBezierEaseOut:Sg,cubicBezierEaseIn:_g}=yi;function lc({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:n="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[K(`&.fade-in-height-expand-transition-${c}-from, + `,[T("popover-arrow",t)])])])}const oc=Object.assign(Object.assign({},ke.props),{to:ho.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function nc({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return b("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},b("div",{class:[`${r}-popover-arrow`,e],style:t}))}const hg=se({name:"PopoverBody",inheritAttrs:!1,props:oc,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i}=Xe(e),a=ke("Popover","-popover",fg,yo,e,r),s=B(null),l=me("NPopover"),c=B(null),d=B(e.show),u=B(!1);At(()=>{const{show:C}=e;C&&!Wf()&&!e.internalDeactivateImmediately&&(u.value=!0)});const f=F(()=>{const{trigger:C,onClickoutside:A}=e,S=[],{positionManuallyRef:{value:R}}=l;return R||(C==="click"&&!A&&S.push([Ur,_,void 0,{capture:!0}]),C==="hover"&&S.push([eh,P])),A&&S.push([Ur,_,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&u.value)&&S.push([Uo,e.show]),S}),h=F(()=>{const{common:{cubicBezierEaseInOut:C,cubicBezierEaseIn:A,cubicBezierEaseOut:S},self:{space:R,spaceArrow:z,padding:$,fontSize:Q,textColor:ne,dividerColor:L,color:le,boxShadow:w,borderRadius:D,arrowHeight:q,arrowOffset:te,arrowOffsetVertical:U}}=a.value;return{"--n-box-shadow":w,"--n-bezier":C,"--n-bezier-ease-in":A,"--n-bezier-ease-out":S,"--n-font-size":Q,"--n-text-color":ne,"--n-color":le,"--n-divider-color":L,"--n-border-radius":D,"--n-arrow-height":q,"--n-arrow-offset":te,"--n-arrow-offset-vertical":U,"--n-padding":$,"--n-space":R,"--n-space-arrow":z}}),m=F(()=>{const C=e.width==="trigger"?void 0:ao(e.width),A=[];C&&A.push({width:C});const{maxWidth:S,minWidth:R}=e;return S&&A.push({maxWidth:ao(S)}),R&&A.push({maxWidth:ao(R)}),i||A.push(h.value),A}),p=i?ft("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:g}),ut(()=>{l.setBodyInstance(null)}),Le(be(e,"show"),C=>{e.animated||(C?d.value=!0:d.value=!1)});function g(){var C;(C=s.value)===null||C===void 0||C.syncPosition()}function v(C){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(C)}function y(C){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(C)}function P(C){e.trigger==="hover"&&!x().contains(An(C))&&l.handleMouseMoveOutside(C)}function _(C){(e.trigger==="click"&&!x().contains(An(C))||e.onClickoutside)&&l.handleClickOutside(C)}function x(){return l.getTriggerElement()}ve(rn,c),ve(Zn,null),ve(Yn,null);function E(){if(p==null||p.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&u.value))return null;let A;const S=l.internalRenderBodyRef.value,{value:R}=r;if(S)A=S([`${R}-popover-shared`,p==null?void 0:p.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,m.value,v,y);else{const{value:z}=l.extraClassRef,{internalTrapFocus:$}=e,Q=!fa(t.header)||!fa(t.footer),ne=()=>{var L,le;const w=Q?b(mt,null,$t(t.header,te=>te?b("div",{class:[`${R}-popover__header`,e.headerClass],style:e.headerStyle},te):null),$t(t.default,te=>te?b("div",{class:[`${R}-popover__content`,e.contentClass],style:e.contentStyle},t):null),$t(t.footer,te=>te?b("div",{class:[`${R}-popover__footer`,e.footerClass],style:e.footerStyle},te):null)):e.scrollable?(L=t.default)===null||L===void 0?void 0:L.call(t):b("div",{class:[`${R}-popover__content`,e.contentClass],style:e.contentStyle},t),D=e.scrollable?b(fs,{contentClass:Q?void 0:`${R}-popover__content ${(le=e.contentClass)!==null&&le!==void 0?le:""}`,contentStyle:Q?void 0:e.contentStyle},{default:()=>w}):w,q=e.showArrow?nc({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:R}):null;return[D,q]};A=b("div",xo({class:[`${R}-popover`,`${R}-popover-shared`,p==null?void 0:p.themeClass.value,z.map(L=>`${R}-${L}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:Q,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:m.value,onKeydown:l.handleKeydown,onMouseenter:v,onMouseleave:y},o),$?b(Ds,{active:e.show,autoFocus:!0},{default:ne}):ne())}return Ct(A,f.value)}return{displayed:u,namespace:n,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:ho(e),followerEnabled:d,renderContentNode:E}},render(){return b(zs,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===ho.tdkey},{default:()=>this.animated?b(en,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),pg=Object.keys(oc),mg={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function gg(e,t,o){mg[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...a)=>{r(...a),i(...a)}:e.props[n]=i})}const Qn={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:ho.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},vg=Object.assign(Object.assign(Object.assign({},ke.props),Qn),{internalOnAfterLeave:Function,internalRenderBody:Function}),rc=se({name:"Popover",inheritAttrs:!1,props:vg,__popover__:!0,setup(e){const t=Wn(),o=B(null),n=F(()=>e.show),r=B(e.defaultShow),i=fo(n,r),a=Ye(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},l=()=>s()?!1:i.value,c=Mn(e,["arrow","showArrow"]),d=F(()=>e.overlap?!1:c.value);let u=null;const f=B(null),h=B(null),m=Ye(()=>e.x!==void 0&&e.y!==void 0);function p(L){const{"onUpdate:show":le,onUpdateShow:w,onShow:D,onHide:q}=e;r.value=L,le&&Oe(le,L),w&&Oe(w,L),L&&D&&Oe(D,!0),L&&q&&Oe(q,!1)}function g(){u&&u.syncPosition()}function v(){const{value:L}=f;L&&(window.clearTimeout(L),f.value=null)}function y(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function P(){const L=s();if(e.trigger==="focus"&&!L){if(l())return;p(!0)}}function _(){const L=s();if(e.trigger==="focus"&&!L){if(!l())return;p(!1)}}function x(){const L=s();if(e.trigger==="hover"&&!L){if(y(),f.value!==null||l())return;const le=()=>{p(!0),f.value=null},{delay:w}=e;w===0?le():f.value=window.setTimeout(le,w)}}function E(){const L=s();if(e.trigger==="hover"&&!L){if(v(),h.value!==null||!l())return;const le=()=>{p(!1),h.value=null},{duration:w}=e;w===0?le():h.value=window.setTimeout(le,w)}}function C(){E()}function A(L){var le;l()&&(e.trigger==="click"&&(v(),y(),p(!1)),(le=e.onClickoutside)===null||le===void 0||le.call(e,L))}function S(){if(e.trigger==="click"&&!s()){v(),y();const L=!l();p(L)}}function R(L){e.internalTrapFocus&&L.key==="Escape"&&(v(),y(),p(!1))}function z(L){r.value=L}function $(){var L;return(L=o.value)===null||L===void 0?void 0:L.targetRef}function Q(L){u=L}return ve("NPopover",{getTriggerElement:$,handleKeydown:R,handleMouseEnter:x,handleMouseLeave:E,handleClickOutside:A,handleMouseMoveOutside:C,setBodyInstance:Q,positionManuallyRef:m,isMountedRef:t,zIndexRef:be(e,"zIndex"),extraClassRef:be(e,"internalExtraClass"),internalRenderBodyRef:be(e,"internalRenderBody")}),At(()=>{i.value&&s()&&p(!1)}),{binderInstRef:o,positionManually:m,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:l,setShow:z,handleClick:S,handleMouseEnter:x,handleMouseLeave:E,handleFocus:P,handleBlur:_,syncPosition:g}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(o.activator?n=jr(o,"activator"):n=jr(o,"trigger"),n)){n=Ci(n),n=n.type===df?b("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(d=>{d.onBlur(c)})},onFocus:c=>{s.forEach(d=>{d.onFocus(c)})},onClick:c=>{s.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{s.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{s.forEach(d=>{d.onMouseleave(c)})}};gg(n,a?"nested":t?"manual":this.trigger,l)}}return b($s,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?Ct(b("div",{style:{position:"fixed",inset:0}}),[[Ti,{enabled:i,zIndex:this.zIndex}]]):null,t?null:b(Is,null,{default:()=>n}),b(hg,yt(this.$props,pg,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),bg={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},ic={name:"Tag",common:V,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:d,tagColor:u,opacityDisabled:f,closeIconColor:h,closeIconColorHover:m,closeIconColorPressed:p,closeColorHover:g,closeColorPressed:v,borderRadiusSmall:y,fontSizeMini:P,fontSizeTiny:_,fontSizeSmall:x,fontSizeMedium:E,heightMini:C,heightTiny:A,heightSmall:S,heightMedium:R,buttonColor2Hover:z,buttonColor2Pressed:$,fontWeightStrong:Q}=e;return Object.assign(Object.assign({},bg),{closeBorderRadius:y,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R,borderRadius:y,opacityDisabled:f,fontSizeTiny:P,fontSizeSmall:_,fontSizeMedium:x,fontSizeLarge:E,fontWeightStrong:Q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:z,colorPressedCheckable:$,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:m,closeIconColorPressed:p,closeColorHover:g,closeColorPressed:v,borderPrimary:`1px solid ${J(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:J(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:Ve(r,{lightness:.7}),closeIconColorHoverPrimary:Ve(r,{lightness:.7}),closeIconColorPressedPrimary:Ve(r,{lightness:.7}),closeColorHoverPrimary:J(r,{alpha:.16}),closeColorPressedPrimary:J(r,{alpha:.12}),borderInfo:`1px solid ${J(i,{alpha:.3})}`,textColorInfo:i,colorInfo:J(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:Ve(i,{alpha:.7}),closeIconColorHoverInfo:Ve(i,{alpha:.7}),closeIconColorPressedInfo:Ve(i,{alpha:.7}),closeColorHoverInfo:J(i,{alpha:.16}),closeColorPressedInfo:J(i,{alpha:.12}),borderSuccess:`1px solid ${J(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:J(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:Ve(a,{alpha:.7}),closeIconColorHoverSuccess:Ve(a,{alpha:.7}),closeIconColorPressedSuccess:Ve(a,{alpha:.7}),closeColorHoverSuccess:J(a,{alpha:.16}),closeColorPressedSuccess:J(a,{alpha:.12}),borderWarning:`1px solid ${J(s,{alpha:.3})}`,textColorWarning:s,colorWarning:J(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:Ve(s,{alpha:.7}),closeIconColorHoverWarning:Ve(s,{alpha:.7}),closeIconColorPressedWarning:Ve(s,{alpha:.7}),closeColorHoverWarning:J(s,{alpha:.16}),closeColorPressedWarning:J(s,{alpha:.11}),borderError:`1px solid ${J(l,{alpha:.3})}`,textColorError:l,colorError:J(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:Ve(l,{alpha:.7}),closeIconColorHoverError:Ve(l,{alpha:.7}),closeIconColorPressedError:Ve(l,{alpha:.7}),closeColorHoverError:J(l,{alpha:.16}),closeColorPressedError:J(l,{alpha:.12})})}},ac={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function xg(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderColor:f,iconColor:h,iconColorDisabled:m,clearColor:p,clearColorHover:g,clearColorPressed:v,placeholderColor:y,placeholderColorDisabled:P,fontSizeTiny:_,fontSizeSmall:x,fontSizeMedium:E,fontSizeLarge:C,heightTiny:A,heightSmall:S,heightMedium:R,heightLarge:z}=e;return Object.assign(Object.assign({},ac),{fontSizeTiny:_,fontSizeSmall:x,fontSizeMedium:E,fontSizeLarge:C,heightTiny:A,heightSmall:S,heightMedium:R,heightLarge:z,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:y,placeholderColorDisabled:P,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${J(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${J(a,{alpha:.2})}`,caretColor:a,arrowColor:h,arrowColorDisabled:m,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${J(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${J(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${J(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${J(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:p,clearColorHover:g,clearColorPressed:v})}const yg=We({name:"InternalSelection",common:xe,peers:{Popover:yo},self:xg}),Hi={name:"InternalSelection",common:V,peers:{Popover:Yt},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,iconColor:f,iconColorDisabled:h,clearColor:m,clearColorHover:p,clearColorPressed:g,placeholderColor:v,placeholderColorDisabled:y,fontSizeTiny:P,fontSizeSmall:_,fontSizeMedium:x,fontSizeLarge:E,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R}=e;return Object.assign(Object.assign({},ac),{fontSizeTiny:P,fontSizeSmall:_,fontSizeMedium:x,fontSizeLarge:E,heightTiny:C,heightSmall:A,heightMedium:S,heightLarge:R,borderRadius:t,textColor:o,textColorDisabled:n,placeholderColor:v,placeholderColorDisabled:y,color:r,colorDisabled:i,colorActive:J(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${J(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${J(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${J(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${J(l,{alpha:.4})}`,colorActiveWarning:J(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${J(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${J(d,{alpha:.4})}`,colorActiveError:J(d,{alpha:.1}),caretColorError:d,clearColor:m,clearColorHover:p,clearColorPressed:g})}},Cg={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},wg={name:"Alert",common:V,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:n,dividerColor:r,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:m,warningColorSuppl:p,errorColorSuppl:g,fontSize:v}=e;return Object.assign(Object.assign({},Cg),{fontSize:v,lineHeight:t,titleFontWeight:n,borderRadius:o,border:`1px solid ${r}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:o,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${J(h,{alpha:.35})}`,colorInfo:J(h,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:h,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${J(m,{alpha:.35})}`,colorSuccess:J(m,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${J(p,{alpha:.35})}`,colorWarning:J(p,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:p,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${J(g,{alpha:.35})}`,colorError:J(g,{alpha:.25}),titleTextColorError:a,iconColorError:g,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:u,closeIconColorPressedError:f})}},{cubicBezierEaseInOut:pt,cubicBezierEaseOut:Sg,cubicBezierEaseIn:_g}=yi;function lc({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:n="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[K(`&.fade-in-height-expand-transition-${c}-from, &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),K(`&.fade-in-height-expand-transition-${c}-to, &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),K(`&.fade-in-height-expand-transition-${c}-active`,` overflow: ${e}; @@ -141,7 +141,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d padding-top ${t} ${pt}, padding-bottom ${t} ${pt} ${o?`,${o}`:""} - `)]}const Eg={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function Pg(e){const{borderRadius:t,railColor:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},Eg),{borderRadius:t,railColor:o,railColorActive:n,linkColor:J(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:n})}const kg={name:"Anchor",common:V,self:Pg},lt={name:"Input",common:V,self(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderRadius:f,lineHeight:h,fontSizeTiny:m,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:v,heightTiny:y,heightSmall:P,heightMedium:E,heightLarge:x,clearColor:_,clearColorHover:C,clearColorPressed:A,placeholderColor:S,placeholderColorDisabled:R,iconColor:z,iconColorDisabled:$,iconColorHover:Q,iconColorPressed:ne}=e;return Object.assign(Object.assign({},uf),{countTextColorDisabled:n,countTextColor:o,heightTiny:y,heightSmall:P,heightMedium:E,heightLarge:x,fontSizeTiny:m,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:v,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:S,placeholderColorDisabled:R,color:a,colorDisabled:s,colorFocus:J(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${J(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:J(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${J(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,colorFocusError:J(d,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${J(d,{alpha:.3})}`,caretColorError:d,clearColor:_,clearColorHover:C,clearColorPressed:A,iconColor:z,iconColorDisabled:$,iconColorHover:Q,iconColorPressed:ne,suffixTextColor:t})}};function sc(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const VS=We({name:"AutoComplete",common:xe,peers:{InternalSelectMenu:Bi,Input:Gn},self:sc}),Tg={name:"AutoComplete",common:V,peers:{InternalSelectMenu:an,Input:lt},self:sc};function cc(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:ie(n,o),colorModal:ie(d,o),colorPopover:ie(u,o)}}const US={name:"Avatar",common:xe,self:cc},dc={name:"Avatar",common:V,self:cc};function Rg(){return{gap:"-12px"}}const Og={name:"AvatarGroup",common:V,peers:{Avatar:dc},self:Rg},$g={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Ig={name:"BackTop",common:V,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},$g),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Ag={name:"Badge",common:V,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:n,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},zg={fontWeightActive:"400"};function Mg(e){const{fontSize:t,textColor3:o,textColor2:n,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},zg),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const Lg={name:"Breadcrumb",common:V,self:Mg},et={name:"Button",common:V,self(e){const t=ff(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Bg={titleFontSize:"22px"};function Hg(e){const{borderRadius:t,fontSize:o,lineHeight:n,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:d,hoverColor:u,cardColor:f,modalColor:h,popoverColor:m}=e;return Object.assign(Object.assign({},Bg),{borderRadius:t,borderColor:ie(f,s),borderColorModal:ie(h,s),borderColorPopover:ie(m,s),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:n,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ie(f,u),cellColorHoverModal:ie(h,u),cellColorHoverPopover:ie(m,u),cellColor:f,cellColorModal:h,cellColorPopover:m,barColor:c})}const Dg={name:"Calendar",common:V,peers:{Button:et},self:Hg};function Ng(e){const{fontSize:t,boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:o,color:n,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}}const Fg={name:"ColorPicker",common:V,peers:{Input:lt,Button:et},self:Ng},uc={name:"Card",common:V,self(e){const t=hf(e),{cardColor:o,modalColor:n,popoverColor:r}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=r,t}};function jg(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const Wg={name:"Carousel",common:V,self:jg},Vg={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function fc(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:m}=e;return Object.assign(Object.assign({},Vg),{labelLineHeight:m,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:l,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${J(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const Ug={name:"Checkbox",common:xe,self:fc},Co={name:"Checkbox",common:V,self(e){const{cardColor:t}=e,o=fc(e);return o.color="#0000",o.checkMarkColor=t,o}};function Kg(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:d,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:d,optionColorHover:c,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const Gg={name:"Cascader",common:V,peers:{InternalSelectMenu:an,InternalSelection:Hi,Scrollbar:Qe,Checkbox:Co,Empty:Li},self:Kg},hc={name:"Code",common:V,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:r}}};function qg(e){const{fontWeight:t,textColor1:o,textColor2:n,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:r,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const Xg={name:"Collapse",common:V,self:qg};function Yg(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const Zg={name:"CollapseTransition",common:V,self:Yg},Jg={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Wo("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},Qg=se({name:"ConfigProvider",alias:["App"],props:Jg,setup(e){const t=me(Hr,null),o=F(()=>{const{theme:p}=e;if(p===null)return;const g=t==null?void 0:t.mergedThemeRef.value;return p===void 0?g:g===void 0?p:Object.assign({},g,p)}),n=F(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const g=t==null?void 0:t.mergedThemeOverridesRef.value;return g===void 0?p:hs({},g,p)}}}),r=Ye(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=Ye(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=F(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),s=F(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),l=F(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:ha}),c=F(()=>{var p;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const y of g)v[y.name]=In(y),(p=y.peers)===null||p===void 0||p.forEach(P=>{P.name in v||(v[P.name]=In(P))});return v}),d=F(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),u=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),h=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),m=F(()=>{const{value:p}=o,{value:g}=n,v=g&&Object.keys(g).length!==0,y=p==null?void 0:p.name;return y?v?`${y}-${pa(JSON.stringify(n.value))}`:y:v?pa(JSON.stringify(n.value)):""});return ve(Hr,{mergedThemeHashRef:m,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:F(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:F(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:F(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:F(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:o,mergedThemeOverridesRef:n,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1,styleMountTarget:h}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:o,mergedThemeOverrides:n}},render(){var e,t,o,n;return this.abstract?(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o):b(this.as||this.tag,{class:`${this.mergedClsPrefix||ha}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),pc={name:"Popselect",common:V,peers:{Popover:Yt,InternalSelectMenu:an}};function ev(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const tv=We({name:"Popselect",common:xe,peers:{Popover:yo,InternalSelectMenu:Bi},self:ev});function mc(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ov=We({name:"Select",common:xe,peers:{InternalSelection:yg,InternalSelectMenu:Bi},self:mc}),gc={name:"Select",common:V,peers:{InternalSelection:Hi,InternalSelectMenu:an},self:mc},nv={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 vc(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:h,heightMedium:m}=e;return Object.assign(Object.assign({},nv),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,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 ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:m,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:a})}const rv=We({name:"Pagination",common:xe,peers:{Select:ov,Input:Gn,Popselect:tv},self:vc}),bc={name:"Pagination",common:V,peers:{Select:gc,Input:lt,Popselect:pc},self(e){const{primaryColor:t,opacity3:o}=e,n=J(t,{alpha:Number(o)}),r=vc(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},xc={padding:"8px 14px"},er={name:"Tooltip",common:V,peers:{Popover:Yt},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},xc),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function iv(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},xc),{borderRadius:t,boxShadow:o,color:ie(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Di=We({name:"Tooltip",common:xe,peers:{Popover:yo},self:iv}),yc={name:"Ellipsis",common:V,peers:{Tooltip:er}},av=We({name:"Ellipsis",common:xe,peers:{Tooltip:Di}}),Cc={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},wc={name:"Radio",common:V,self(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:m,lineHeight:p}=e;return Object.assign(Object.assign({},Cc),{labelLineHeight:p,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:m,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,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 ${J(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:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}};function lv(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:m,lineHeight:p}=e;return Object.assign(Object.assign({},Cc),{labelLineHeight:p,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:m,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,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 ${J(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:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}const sv={name:"Radio",common:xe,self:lv},cv={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 Sc(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:h,heightLarge:m,heightHuge:p,textColor3:g,opacityDisabled:v}=e;return Object.assign(Object.assign({},cv),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:m,optionHeightHuge:p,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:J(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:v})}const Ni=We({name:"Dropdown",common:xe,peers:{Popover:yo},self:Sc}),Fi={name:"Dropdown",common:V,peers:{Popover:Yt},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=Sc(e);return r.colorInverted=n,r.optionColorActive=J(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},dv={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 _c(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:h,fontSizeMedium:m,fontSizeLarge:p,dividerColor:g,heightSmall:v,opacityDisabled:y,tableColorStriped:P}=e;return Object.assign(Object.assign({},dv),{actionDividerColor:g,lineHeight:f,borderRadius:u,fontSizeSmall:h,fontSizeMedium:m,fontSizeLarge:p,borderColor:ie(t,g),tdColorHover:ie(t,s),tdColorSorting:ie(t,s),tdColorStriped:ie(t,P),thColor:ie(t,a),thColorHover:ie(ie(t,a),s),thColorSorting:ie(ie(t,a),s),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:ie(o,g),tdColorHoverModal:ie(o,s),tdColorSortingModal:ie(o,s),tdColorStripedModal:ie(o,P),thColorModal:ie(o,a),thColorHoverModal:ie(ie(o,a),s),thColorSortingModal:ie(ie(o,a),s),tdColorModal:o,borderColorPopover:ie(n,g),tdColorHoverPopover:ie(n,s),tdColorSortingPopover:ie(n,s),tdColorStripedPopover:ie(n,P),thColorPopover:ie(n,a),thColorHoverPopover:ie(ie(n,a),s),thColorSortingPopover:ie(ie(n,a),s),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:c,loadingSize:v,opacityLoading:y})}const KS=We({name:"DataTable",common:xe,peers:{Button:tn,Checkbox:Ug,Radio:sv,Pagination:rv,Scrollbar:bo,Empty:Li,Popover:yo,Ellipsis:av,Dropdown:Ni},self:_c}),uv={name:"DataTable",common:V,peers:{Button:et,Checkbox:Co,Radio:wc,Pagination:bc,Scrollbar:Qe,Empty:Xt,Popover:Yt,Ellipsis:yc,Dropdown:Fi},self(e){const t=_c(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}},fv=Object.assign(Object.assign({},Qn),ke.props),hv=se({name:"Tooltip",props:fv,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Xe(e),o=ke("Tooltip","-tooltip",void 0,Di,e,t),n=B(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:F(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return b(rc,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)}}),Ec=se({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return b("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),pv={name:"Icon",common:V,self:pf},ji=ze("n-dropdown-menu"),tr=ze("n-dropdown"),el=ze("n-dropdown-option");function Jr(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function mv(e){return e.type==="group"}function Pc(e){return e.type==="divider"}function gv(e){return e.type==="render"}const kc=se({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=me(tr),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:m,menuPropsRef:p}=t,g=me(el,null),v=me(ji),y=me(rn),P=F(()=>e.tmNode.rawNode),E=F(()=>{const{value:w}=f;return Jr(e.tmNode.rawNode,w)}),x=F(()=>{const{disabled:w}=e.tmNode;return w}),_=F(()=>{if(!E.value)return!1;const{key:w,disabled:D}=e.tmNode;if(D)return!1;const{value:q}=o,{value:te}=n,{value:U}=r,{value:oe}=i;return q!==null?oe.includes(w):te!==null?oe.includes(w)&&oe[oe.length-1]!==w:U!==null?oe.includes(w):!1}),C=F(()=>n.value===null&&!s.value),A=Uf(_,300,C),S=F(()=>!!(g!=null&&g.enteringSubmenuRef.value)),R=B(!1);ve(el,{enteringSubmenuRef:R});function z(){R.value=!0}function $(){R.value=!1}function Q(){const{parentKey:w,tmNode:D}=e;D.disabled||l.value&&(r.value=w,n.value=null,o.value=D.key)}function ne(){const{tmNode:w}=e;w.disabled||l.value&&o.value!==w.key&&Q()}function L(w){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:D}=w;D&&!ba({target:D},"dropdownOption")&&!ba({target:D},"scrollbarRail")&&(o.value=null)}function le(){const{value:w}=E,{tmNode:D}=e;l.value&&!w&&!D.disabled&&(t.doSelect(D.key,D.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:v.showIconRef,siblingHasSubmenu:v.hasSubmenuRef,menuProps:p,popoverBody:y,animated:s,mergedShowSubmenu:F(()=>A.value&&!S.value),rawNode:P,hasSubmenu:E,pending:Ye(()=>{const{value:w}=i,{key:D}=e.tmNode;return w.includes(D)}),childActive:Ye(()=>{const{value:w}=a,{key:D}=e.tmNode,q=w.findIndex(te=>D===te);return q===-1?!1:q{const{value:w}=a,{key:D}=e.tmNode,q=w.findIndex(te=>D===te);return q===-1?!1:q===w.length-1}),mergedDisabled:x,renderOption:h,nodeProps:m,handleClick:le,handleMouseMove:ne,handleMouseEnter:Q,handleMouseLeave:L,handleSubmenuBeforeEnter:z,handleSubmenuAfterEnter:$}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:h}=this;let m=null;if(r){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);m=b(Tc,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const p={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},g=u==null?void 0:u(n),v=b("div",Object.assign({class:[`${i}-dropdown-option`,g==null?void 0:g.class],"data-dropdown-option":!0},g),b("div",xo(p,f),[b("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(n):je(n.icon)]),b("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(n):je((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),b("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?b(Bt,null,{default:()=>b(Us,null)}):null)]),this.hasSubmenu?b($s,null,{default:()=>[b(Is,null,{default:()=>b("div",{class:`${i}-dropdown-offset-container`},b(zs,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>b("div",{class:`${i}-dropdown-menu-wrapper`},o?b(en,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>m}):m)}))})]}):null);return d?d({node:v,option:n}):v}}),vv=se({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=me(ji),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=me(tr);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=b("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(s)),b("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},b("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},je(s.icon)),b("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):je((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),b("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),bv=se({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:n}=e;return b(mt,null,b(vv,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Pc(i)?b(Ec,{clsPrefix:o,key:r.key}):r.isGroup?(Wo("dropdown","`group` node is not allowed to be put in `group` node."),null):b(kc,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),xv=se({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return b("div",t,[e==null?void 0:e()])}}),Tc=se({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=me(tr);ve(ji,{showIconRef:F(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>r?r(l):l.icon);const{rawNode:s}=i;return r?r(s):s.icon})}),hasSubmenuRef:F(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>Jr(l,r));const{rawNode:s}=i;return Jr(s,r)})})});const n=B(null);return ve(Yn,null),ve(Zn,null),ve(rn,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:gv(i)?b(xv,{tmNode:r,key:r.key}):Pc(i)?b(Ec,{clsPrefix:t,key:r.key}):mv(i)?b(bv,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):b(kc,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return b("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?b(fs,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?nc({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),yv=T("dropdown-menu",` + `)]}const Eg={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function Pg(e){const{borderRadius:t,railColor:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},Eg),{borderRadius:t,railColor:o,railColorActive:n,linkColor:J(n,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:n})}const kg={name:"Anchor",common:V,self:Pg},lt={name:"Input",common:V,self(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderRadius:f,lineHeight:h,fontSizeTiny:m,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:v,heightTiny:y,heightSmall:P,heightMedium:_,heightLarge:x,clearColor:E,clearColorHover:C,clearColorPressed:A,placeholderColor:S,placeholderColorDisabled:R,iconColor:z,iconColorDisabled:$,iconColorHover:Q,iconColorPressed:ne}=e;return Object.assign(Object.assign({},uf),{countTextColorDisabled:n,countTextColor:o,heightTiny:y,heightSmall:P,heightMedium:_,heightLarge:x,fontSizeTiny:m,fontSizeSmall:p,fontSizeMedium:g,fontSizeLarge:v,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:n,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:S,placeholderColorDisabled:R,color:a,colorDisabled:s,colorFocus:J(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${J(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:J(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${J(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,colorFocusError:J(d,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${J(d,{alpha:.3})}`,caretColorError:d,clearColor:E,clearColorHover:C,clearColorPressed:A,iconColor:z,iconColorDisabled:$,iconColorHover:Q,iconColorPressed:ne,suffixTextColor:t})}};function sc(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const VS=We({name:"AutoComplete",common:xe,peers:{InternalSelectMenu:Bi,Input:Gn},self:sc}),Tg={name:"AutoComplete",common:V,peers:{InternalSelectMenu:an,Input:lt},self:sc};function cc(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:ie(n,o),colorModal:ie(d,o),colorPopover:ie(u,o)}}const US={name:"Avatar",common:xe,self:cc},dc={name:"Avatar",common:V,self:cc};function Rg(){return{gap:"-12px"}}const Og={name:"AvatarGroup",common:V,peers:{Avatar:dc},self:Rg},$g={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Ig={name:"BackTop",common:V,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:n,primaryColorPressed:r}=e;return Object.assign(Object.assign({},$g),{color:t,textColor:o,iconColor:o,iconColorHover:n,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Ag={name:"Badge",common:V,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:n,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:n,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},zg={fontWeightActive:"400"};function Mg(e){const{fontSize:t,textColor3:o,textColor2:n,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},zg),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:n,itemTextColorPressed:n,itemTextColorActive:n,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const Lg={name:"Breadcrumb",common:V,self:Mg},et={name:"Button",common:V,self(e){const t=ff(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Bg={titleFontSize:"22px"};function Hg(e){const{borderRadius:t,fontSize:o,lineHeight:n,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:d,hoverColor:u,cardColor:f,modalColor:h,popoverColor:m}=e;return Object.assign(Object.assign({},Bg),{borderRadius:t,borderColor:ie(f,s),borderColorModal:ie(h,s),borderColorPopover:ie(m,s),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:n,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ie(f,u),cellColorHoverModal:ie(h,u),cellColorHoverPopover:ie(m,u),cellColor:f,cellColorModal:h,cellColorPopover:m,barColor:c})}const Dg={name:"Calendar",common:V,peers:{Button:et},self:Hg};function Ng(e){const{fontSize:t,boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:o,color:n,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:h}}const Fg={name:"ColorPicker",common:V,peers:{Input:lt,Button:et},self:Ng},uc={name:"Card",common:V,self(e){const t=hf(e),{cardColor:o,modalColor:n,popoverColor:r}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=n,t.colorEmbeddedPopover=r,t}};function jg(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const Wg={name:"Carousel",common:V,self:jg},Vg={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function fc(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:m}=e;return Object.assign(Object.assign({},Vg),{labelLineHeight:m,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:l,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${J(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const Ug={name:"Checkbox",common:xe,self:fc},Co={name:"Checkbox",common:V,self(e){const{cardColor:t}=e,o=fc(e);return o.color="#0000",o.checkMarkColor=t,o}};function Kg(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:d,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:d,optionColorHover:c,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const Gg={name:"Cascader",common:V,peers:{InternalSelectMenu:an,InternalSelection:Hi,Scrollbar:Qe,Checkbox:Co,Empty:Li},self:Kg},hc={name:"Code",common:V,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:n,textColor3:r}=e;return{textColor:t,fontSize:o,fontWeightStrong:n,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:r}}};function qg(e){const{fontWeight:t,textColor1:o,textColor2:n,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:r,fontSize:a,textColor:n,arrowColor:n,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const Xg={name:"Collapse",common:V,self:qg};function Yg(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const Zg={name:"CollapseTransition",common:V,self:Yg},Jg={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Wo("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},Qg=se({name:"ConfigProvider",alias:["App"],props:Jg,setup(e){const t=me(Hr,null),o=F(()=>{const{theme:p}=e;if(p===null)return;const g=t==null?void 0:t.mergedThemeRef.value;return p===void 0?g:g===void 0?p:Object.assign({},g,p)}),n=F(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const g=t==null?void 0:t.mergedThemeOverridesRef.value;return g===void 0?p:hs({},g,p)}}}),r=Ye(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=Ye(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=F(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),s=F(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),l=F(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:ha}),c=F(()=>{var p;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const y of g)v[y.name]=In(y),(p=y.peers)===null||p===void 0||p.forEach(P=>{P.name in v||(v[P.name]=In(P))});return v}),d=F(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),u=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),h=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),m=F(()=>{const{value:p}=o,{value:g}=n,v=g&&Object.keys(g).length!==0,y=p==null?void 0:p.name;return y?v?`${y}-${pa(JSON.stringify(n.value))}`:y:v?pa(JSON.stringify(n.value)):""});return ve(Hr,{mergedThemeHashRef:m,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:F(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:F(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:F(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:F(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:o,mergedThemeOverridesRef:n,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1,styleMountTarget:h}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:o,mergedThemeOverrides:n}},render(){var e,t,o,n;return this.abstract?(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o):b(this.as||this.tag,{class:`${this.mergedClsPrefix||ha}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),pc={name:"Popselect",common:V,peers:{Popover:Yt,InternalSelectMenu:an}};function ev(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const tv=We({name:"Popselect",common:xe,peers:{Popover:yo,InternalSelectMenu:Bi},self:ev});function mc(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const ov=We({name:"Select",common:xe,peers:{InternalSelection:yg,InternalSelectMenu:Bi},self:mc}),gc={name:"Select",common:V,peers:{InternalSelection:Hi,InternalSelectMenu:an},self:mc},nv={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 vc(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:h,heightMedium:m}=e;return Object.assign(Object.assign({},nv),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,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 ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:m,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:a})}const rv=We({name:"Pagination",common:xe,peers:{Select:ov,Input:Gn,Popselect:tv},self:vc}),bc={name:"Pagination",common:V,peers:{Select:gc,Input:lt,Popselect:pc},self(e){const{primaryColor:t,opacity3:o}=e,n=J(t,{alpha:Number(o)}),r=vc(e);return r.itemBorderActive=`1px solid ${n}`,r.itemBorderDisabled="1px solid #0000",r}},xc={padding:"8px 14px"},er={name:"Tooltip",common:V,peers:{Popover:Yt},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r}=e;return Object.assign(Object.assign({},xc),{borderRadius:t,boxShadow:o,color:n,textColor:r})}};function iv(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},xc),{borderRadius:t,boxShadow:o,color:ie(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Di=We({name:"Tooltip",common:xe,peers:{Popover:yo},self:iv}),yc={name:"Ellipsis",common:V,peers:{Tooltip:er}},av=We({name:"Ellipsis",common:xe,peers:{Tooltip:Di}}),Cc={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},wc={name:"Radio",common:V,self(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:m,lineHeight:p}=e;return Object.assign(Object.assign({},Cc),{labelLineHeight:p,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:m,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,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 ${J(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:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}};function lv(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:m,lineHeight:p}=e;return Object.assign(Object.assign({},Cc),{labelLineHeight:p,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:m,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,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 ${J(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:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${J(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}const sv={name:"Radio",common:xe,self:lv},cv={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 Sc(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:h,heightLarge:m,heightHuge:p,textColor3:g,opacityDisabled:v}=e;return Object.assign(Object.assign({},cv),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:m,optionHeightHuge:p,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:J(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:v})}const Ni=We({name:"Dropdown",common:xe,peers:{Popover:yo},self:Sc}),Fi={name:"Dropdown",common:V,peers:{Popover:Yt},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:n}=e,r=Sc(e);return r.colorInverted=n,r.optionColorActive=J(o,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},dv={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 _c(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:h,fontSizeMedium:m,fontSizeLarge:p,dividerColor:g,heightSmall:v,opacityDisabled:y,tableColorStriped:P}=e;return Object.assign(Object.assign({},dv),{actionDividerColor:g,lineHeight:f,borderRadius:u,fontSizeSmall:h,fontSizeMedium:m,fontSizeLarge:p,borderColor:ie(t,g),tdColorHover:ie(t,s),tdColorSorting:ie(t,s),tdColorStriped:ie(t,P),thColor:ie(t,a),thColorHover:ie(ie(t,a),s),thColorSorting:ie(ie(t,a),s),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:ie(o,g),tdColorHoverModal:ie(o,s),tdColorSortingModal:ie(o,s),tdColorStripedModal:ie(o,P),thColorModal:ie(o,a),thColorHoverModal:ie(ie(o,a),s),thColorSortingModal:ie(ie(o,a),s),tdColorModal:o,borderColorPopover:ie(n,g),tdColorHoverPopover:ie(n,s),tdColorSortingPopover:ie(n,s),tdColorStripedPopover:ie(n,P),thColorPopover:ie(n,a),thColorHoverPopover:ie(ie(n,a),s),thColorSortingPopover:ie(ie(n,a),s),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:c,loadingSize:v,opacityLoading:y})}const KS=We({name:"DataTable",common:xe,peers:{Button:tn,Checkbox:Ug,Radio:sv,Pagination:rv,Scrollbar:bo,Empty:Li,Popover:yo,Ellipsis:av,Dropdown:Ni},self:_c}),uv={name:"DataTable",common:V,peers:{Button:et,Checkbox:Co,Radio:wc,Pagination:bc,Scrollbar:Qe,Empty:Xt,Popover:Yt,Ellipsis:yc,Dropdown:Fi},self(e){const t=_c(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}},fv=Object.assign(Object.assign({},Qn),ke.props),hv=se({name:"Tooltip",props:fv,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Xe(e),o=ke("Tooltip","-tooltip",void 0,Di,e,t),n=B(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:F(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return b(rc,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)}}),Ec=se({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return b("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),pv={name:"Icon",common:V,self:pf},ji=ze("n-dropdown-menu"),tr=ze("n-dropdown"),el=ze("n-dropdown-option");function Jr(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function mv(e){return e.type==="group"}function Pc(e){return e.type==="divider"}function gv(e){return e.type==="render"}const kc=se({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=me(tr),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:m,menuPropsRef:p}=t,g=me(el,null),v=me(ji),y=me(rn),P=F(()=>e.tmNode.rawNode),_=F(()=>{const{value:w}=f;return Jr(e.tmNode.rawNode,w)}),x=F(()=>{const{disabled:w}=e.tmNode;return w}),E=F(()=>{if(!_.value)return!1;const{key:w,disabled:D}=e.tmNode;if(D)return!1;const{value:q}=o,{value:te}=n,{value:U}=r,{value:oe}=i;return q!==null?oe.includes(w):te!==null?oe.includes(w)&&oe[oe.length-1]!==w:U!==null?oe.includes(w):!1}),C=F(()=>n.value===null&&!s.value),A=Uf(E,300,C),S=F(()=>!!(g!=null&&g.enteringSubmenuRef.value)),R=B(!1);ve(el,{enteringSubmenuRef:R});function z(){R.value=!0}function $(){R.value=!1}function Q(){const{parentKey:w,tmNode:D}=e;D.disabled||l.value&&(r.value=w,n.value=null,o.value=D.key)}function ne(){const{tmNode:w}=e;w.disabled||l.value&&o.value!==w.key&&Q()}function L(w){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:D}=w;D&&!ba({target:D},"dropdownOption")&&!ba({target:D},"scrollbarRail")&&(o.value=null)}function le(){const{value:w}=_,{tmNode:D}=e;l.value&&!w&&!D.disabled&&(t.doSelect(D.key,D.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:v.showIconRef,siblingHasSubmenu:v.hasSubmenuRef,menuProps:p,popoverBody:y,animated:s,mergedShowSubmenu:F(()=>A.value&&!S.value),rawNode:P,hasSubmenu:_,pending:Ye(()=>{const{value:w}=i,{key:D}=e.tmNode;return w.includes(D)}),childActive:Ye(()=>{const{value:w}=a,{key:D}=e.tmNode,q=w.findIndex(te=>D===te);return q===-1?!1:q{const{value:w}=a,{key:D}=e.tmNode,q=w.findIndex(te=>D===te);return q===-1?!1:q===w.length-1}),mergedDisabled:x,renderOption:h,nodeProps:m,handleClick:le,handleMouseMove:ne,handleMouseEnter:Q,handleMouseLeave:L,handleSubmenuBeforeEnter:z,handleSubmenuAfterEnter:$}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:h}=this;let m=null;if(r){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);m=b(Tc,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const p={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},g=u==null?void 0:u(n),v=b("div",Object.assign({class:[`${i}-dropdown-option`,g==null?void 0:g.class],"data-dropdown-option":!0},g),b("div",xo(p,f),[b("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(n):je(n.icon)]),b("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(n):je((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),b("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?b(Bt,null,{default:()=>b(Us,null)}):null)]),this.hasSubmenu?b($s,null,{default:()=>[b(Is,null,{default:()=>b("div",{class:`${i}-dropdown-offset-container`},b(zs,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>b("div",{class:`${i}-dropdown-menu-wrapper`},o?b(en,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>m}):m)}))})]}):null);return d?d({node:v,option:n}):v}}),vv=se({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=me(ji),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=me(tr);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=b("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(s)),b("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},b("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},je(s.icon)),b("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):je((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),b("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),bv=se({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:n}=e;return b(mt,null,b(vv,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Pc(i)?b(Ec,{clsPrefix:o,key:r.key}):r.isGroup?(Wo("dropdown","`group` node is not allowed to be put in `group` node."),null):b(kc,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),xv=se({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return b("div",t,[e==null?void 0:e()])}}),Tc=se({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=me(tr);ve(ji,{showIconRef:F(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>r?r(l):l.icon);const{rawNode:s}=i;return r?r(s):s.icon})}),hasSubmenuRef:F(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>Jr(l,r));const{rawNode:s}=i;return Jr(s,r)})})});const n=B(null);return ve(Yn,null),ve(Zn,null),ve(rn,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:gv(i)?b(xv,{tmNode:r,key:r.key}):Pc(i)?b(Ec,{clsPrefix:t,key:r.key}):mv(i)?b(bv,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):b(kc,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return b("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?b(fs,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?nc({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),yv=T("dropdown-menu",` transform-origin: var(--v-transform-origin); background-color: var(--n-color); border-radius: var(--n-border-radius); @@ -257,7 +257,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d padding: var(--n-padding); `),N("scrollable",[j("content",` padding: var(--n-padding); - `)])]),Cv={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]},wv=Object.keys(Qn),Sv=Object.assign(Object.assign(Object.assign({},Qn),Cv),ke.props),_v=se({name:"Dropdown",inheritAttrs:!1,props:Sv,setup(e){const t=B(!1),o=fo(be(e,"show"),t),n=F(()=>{const{keyField:$,childrenField:Q}=e;return En(e.options,{getKey(ne){return ne[$]},getDisabled(ne){return ne.disabled===!0},getIgnored(ne){return ne.type==="divider"||ne.type==="render"},getChildren(ne){return ne[Q]}})}),r=F(()=>n.value.treeNodes),i=B(null),a=B(null),s=B(null),l=F(()=>{var $,Q,ne;return(ne=(Q=($=i.value)!==null&&$!==void 0?$:a.value)!==null&&Q!==void 0?Q:s.value)!==null&&ne!==void 0?ne:null}),c=F(()=>n.value.getPath(l.value).keyPath),d=F(()=>n.value.getPath(e.value).keyPath),u=Ye(()=>e.keyboard&&o.value);Xf({keydown:{ArrowUp:{prevent:!0,handler:x},ArrowRight:{prevent:!0,handler:E},ArrowDown:{prevent:!0,handler:_},ArrowLeft:{prevent:!0,handler:P},Enter:{prevent:!0,handler:C},Escape:y}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=Xe(e),m=ke("Dropdown","-dropdown",yv,Ni,e,f);ve(tr,{labelFieldRef:be(e,"labelField"),childrenFieldRef:be(e,"childrenField"),renderLabelRef:be(e,"renderLabel"),renderIconRef:be(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:be(e,"animated"),mergedShowRef:o,nodePropsRef:be(e,"nodeProps"),renderOptionRef:be(e,"renderOption"),menuPropsRef:be(e,"menuProps"),doSelect:p,doUpdateShow:g}),Le(o,$=>{!e.animated&&!$&&v()});function p($,Q){const{onSelect:ne}=e;ne&&Oe(ne,$,Q)}function g($){const{"onUpdate:show":Q,onUpdateShow:ne}=e;Q&&Oe(Q,$),ne&&Oe(ne,$),t.value=$}function v(){i.value=null,a.value=null,s.value=null}function y(){g(!1)}function P(){S("left")}function E(){S("right")}function x(){S("up")}function _(){S("down")}function C(){const $=A();$!=null&&$.isLeaf&&o.value&&(p($.key,$.rawNode),g(!1))}function A(){var $;const{value:Q}=n,{value:ne}=l;return!Q||ne===null?null:($=Q.getNode(ne))!==null&&$!==void 0?$:null}function S($){const{value:Q}=l,{value:{getFirstAvailableNode:ne}}=n;let L=null;if(Q===null){const le=ne();le!==null&&(L=le.key)}else{const le=A();if(le){let w;switch($){case"down":w=le.getNext();break;case"up":w=le.getPrev();break;case"right":w=le.getChild();break;case"left":w=le.getParent();break}w&&(L=w.key)}}L!==null&&(i.value=null,a.value=L)}const R=F(()=>{const{size:$,inverted:Q}=e,{common:{cubicBezierEaseInOut:ne},self:L}=m.value,{padding:le,dividerColor:w,borderRadius:D,optionOpacityDisabled:q,[Re("optionIconSuffixWidth",$)]:te,[Re("optionSuffixWidth",$)]:U,[Re("optionIconPrefixWidth",$)]:oe,[Re("optionPrefixWidth",$)]:M,[Re("fontSize",$)]:ae,[Re("optionHeight",$)]:ce,[Re("optionIconSize",$)]:Pe}=L,O={"--n-bezier":ne,"--n-font-size":ae,"--n-padding":le,"--n-border-radius":D,"--n-option-height":ce,"--n-option-prefix-width":M,"--n-option-icon-prefix-width":oe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":te,"--n-option-icon-size":Pe,"--n-divider-color":w,"--n-option-opacity-disabled":q};return Q?(O["--n-color"]=L.colorInverted,O["--n-option-color-hover"]=L.optionColorHoverInverted,O["--n-option-color-active"]=L.optionColorActiveInverted,O["--n-option-text-color"]=L.optionTextColorInverted,O["--n-option-text-color-hover"]=L.optionTextColorHoverInverted,O["--n-option-text-color-active"]=L.optionTextColorActiveInverted,O["--n-option-text-color-child-active"]=L.optionTextColorChildActiveInverted,O["--n-prefix-color"]=L.prefixColorInverted,O["--n-suffix-color"]=L.suffixColorInverted,O["--n-group-header-text-color"]=L.groupHeaderTextColorInverted):(O["--n-color"]=L.color,O["--n-option-color-hover"]=L.optionColorHover,O["--n-option-color-active"]=L.optionColorActive,O["--n-option-text-color"]=L.optionTextColor,O["--n-option-text-color-hover"]=L.optionTextColorHover,O["--n-option-text-color-active"]=L.optionTextColorActive,O["--n-option-text-color-child-active"]=L.optionTextColorChildActive,O["--n-prefix-color"]=L.prefixColor,O["--n-suffix-color"]=L.suffixColor,O["--n-group-header-text-color"]=L.groupHeaderTextColor),O}),z=h?ft("dropdown",F(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:f,mergedTheme:m,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&v()},doUpdateShow:g,cssVars:h?void 0:R,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender}},render(){const e=(n,r,i,a,s)=>{var l;const{mergedClsPrefix:c,menuProps:d}=this;(l=this.onRender)===null||l===void 0||l.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:jf(r),class:[n,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:s};return b(Tc,xo(this.$attrs,f,u))},{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 b(rc,Object.assign({},yt(this.$props,wv),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),Ev={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Rc(e){const{popoverColor:t,textColor2:o,primaryColor:n,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},Ev),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:d})}const Pv=We({name:"TimePicker",common:xe,peers:{Scrollbar:bo,Button:tn,Input:Gn},self:Rc}),Oc={name:"TimePicker",common:V,peers:{Scrollbar:Qe,Button:et,Input:lt},self:Rc},kv={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 $c(e){const{hoverColor:t,fontSize:o,textColor2:n,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:d,dividerColor:u,boxShadow2:f,borderRadius:h,fontWeightStrong:m}=e;return Object.assign(Object.assign({},kv),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:J(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:n,arrowColor:l,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:m,scrollItemBorderRadius:h,iconColor:l,iconColorDisabled:c})}const GS=We({name:"DatePicker",common:xe,peers:{Input:Gn,Button:tn,TimePicker:Pv,Scrollbar:bo},self:$c}),Tv={name:"DatePicker",common:V,peers:{Input:lt,Button:et,TimePicker:Oc,Scrollbar:Qe},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=$c(e);return r.itemColorDisabled=ie(t,o),r.itemColorIncluded=J(n,{alpha:.15}),r.itemColorHover=ie(t,o),r}},Rv={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 Ov(e){const{tableHeaderColor:t,textColor2:o,textColor1:n,cardColor:r,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h}=e;return Object.assign(Object.assign({},Rv),{lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:n,thColor:ie(r,t),thColorModal:ie(i,t),thColorPopover:ie(a,t),thTextColor:n,thFontWeight:c,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:ie(r,s),borderColorModal:ie(i,s),borderColorPopover:ie(a,s),borderRadius:l})}const $v={name:"Descriptions",common:V,self:Ov},Iv={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 Ic(e){const{textColor1:t,textColor2:o,modalColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:d,warningColor:u,errorColor:f,primaryColor:h,dividerColor:m,borderRadius:p,fontWeightStrong:g,lineHeight:v,fontSize:y}=e;return Object.assign(Object.assign({},Iv),{fontSize:y,lineHeight:v,border:`1px solid ${m}`,titleTextColor:t,textColor:o,color:n,closeColorHover:s,closeColorPressed:l,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:p,iconColor:h,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:u,iconColorError:f,borderRadius:p,titleFontWeight:g})}const Ac=We({name:"Dialog",common:xe,peers:{Button:tn},self:Ic}),zc={name:"Dialog",common:V,peers:{Button:et},self:Ic},or={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},Mc=on(or),Av=K([T("dialog",` + `)])]),Cv={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]},wv=Object.keys(Qn),Sv=Object.assign(Object.assign(Object.assign({},Qn),Cv),ke.props),_v=se({name:"Dropdown",inheritAttrs:!1,props:Sv,setup(e){const t=B(!1),o=fo(be(e,"show"),t),n=F(()=>{const{keyField:$,childrenField:Q}=e;return En(e.options,{getKey(ne){return ne[$]},getDisabled(ne){return ne.disabled===!0},getIgnored(ne){return ne.type==="divider"||ne.type==="render"},getChildren(ne){return ne[Q]}})}),r=F(()=>n.value.treeNodes),i=B(null),a=B(null),s=B(null),l=F(()=>{var $,Q,ne;return(ne=(Q=($=i.value)!==null&&$!==void 0?$:a.value)!==null&&Q!==void 0?Q:s.value)!==null&&ne!==void 0?ne:null}),c=F(()=>n.value.getPath(l.value).keyPath),d=F(()=>n.value.getPath(e.value).keyPath),u=Ye(()=>e.keyboard&&o.value);Xf({keydown:{ArrowUp:{prevent:!0,handler:x},ArrowRight:{prevent:!0,handler:_},ArrowDown:{prevent:!0,handler:E},ArrowLeft:{prevent:!0,handler:P},Enter:{prevent:!0,handler:C},Escape:y}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=Xe(e),m=ke("Dropdown","-dropdown",yv,Ni,e,f);ve(tr,{labelFieldRef:be(e,"labelField"),childrenFieldRef:be(e,"childrenField"),renderLabelRef:be(e,"renderLabel"),renderIconRef:be(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:be(e,"animated"),mergedShowRef:o,nodePropsRef:be(e,"nodeProps"),renderOptionRef:be(e,"renderOption"),menuPropsRef:be(e,"menuProps"),doSelect:p,doUpdateShow:g}),Le(o,$=>{!e.animated&&!$&&v()});function p($,Q){const{onSelect:ne}=e;ne&&Oe(ne,$,Q)}function g($){const{"onUpdate:show":Q,onUpdateShow:ne}=e;Q&&Oe(Q,$),ne&&Oe(ne,$),t.value=$}function v(){i.value=null,a.value=null,s.value=null}function y(){g(!1)}function P(){S("left")}function _(){S("right")}function x(){S("up")}function E(){S("down")}function C(){const $=A();$!=null&&$.isLeaf&&o.value&&(p($.key,$.rawNode),g(!1))}function A(){var $;const{value:Q}=n,{value:ne}=l;return!Q||ne===null?null:($=Q.getNode(ne))!==null&&$!==void 0?$:null}function S($){const{value:Q}=l,{value:{getFirstAvailableNode:ne}}=n;let L=null;if(Q===null){const le=ne();le!==null&&(L=le.key)}else{const le=A();if(le){let w;switch($){case"down":w=le.getNext();break;case"up":w=le.getPrev();break;case"right":w=le.getChild();break;case"left":w=le.getParent();break}w&&(L=w.key)}}L!==null&&(i.value=null,a.value=L)}const R=F(()=>{const{size:$,inverted:Q}=e,{common:{cubicBezierEaseInOut:ne},self:L}=m.value,{padding:le,dividerColor:w,borderRadius:D,optionOpacityDisabled:q,[Re("optionIconSuffixWidth",$)]:te,[Re("optionSuffixWidth",$)]:U,[Re("optionIconPrefixWidth",$)]:oe,[Re("optionPrefixWidth",$)]:M,[Re("fontSize",$)]:ae,[Re("optionHeight",$)]:ce,[Re("optionIconSize",$)]:Pe}=L,O={"--n-bezier":ne,"--n-font-size":ae,"--n-padding":le,"--n-border-radius":D,"--n-option-height":ce,"--n-option-prefix-width":M,"--n-option-icon-prefix-width":oe,"--n-option-suffix-width":U,"--n-option-icon-suffix-width":te,"--n-option-icon-size":Pe,"--n-divider-color":w,"--n-option-opacity-disabled":q};return Q?(O["--n-color"]=L.colorInverted,O["--n-option-color-hover"]=L.optionColorHoverInverted,O["--n-option-color-active"]=L.optionColorActiveInverted,O["--n-option-text-color"]=L.optionTextColorInverted,O["--n-option-text-color-hover"]=L.optionTextColorHoverInverted,O["--n-option-text-color-active"]=L.optionTextColorActiveInverted,O["--n-option-text-color-child-active"]=L.optionTextColorChildActiveInverted,O["--n-prefix-color"]=L.prefixColorInverted,O["--n-suffix-color"]=L.suffixColorInverted,O["--n-group-header-text-color"]=L.groupHeaderTextColorInverted):(O["--n-color"]=L.color,O["--n-option-color-hover"]=L.optionColorHover,O["--n-option-color-active"]=L.optionColorActive,O["--n-option-text-color"]=L.optionTextColor,O["--n-option-text-color-hover"]=L.optionTextColorHover,O["--n-option-text-color-active"]=L.optionTextColorActive,O["--n-option-text-color-child-active"]=L.optionTextColorChildActive,O["--n-prefix-color"]=L.prefixColor,O["--n-suffix-color"]=L.suffixColor,O["--n-group-header-text-color"]=L.groupHeaderTextColor),O}),z=h?ft("dropdown",F(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:f,mergedTheme:m,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&v()},doUpdateShow:g,cssVars:h?void 0:R,themeClass:z==null?void 0:z.themeClass,onRender:z==null?void 0:z.onRender}},render(){const e=(n,r,i,a,s)=>{var l;const{mergedClsPrefix:c,menuProps:d}=this;(l=this.onRender)===null||l===void 0||l.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:jf(r),class:[n,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:s};return b(Tc,xo(this.$attrs,f,u))},{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 b(rc,Object.assign({},yt(this.$props,wv),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),Ev={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function Rc(e){const{popoverColor:t,textColor2:o,primaryColor:n,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},Ev),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:o,itemTextColorActive:n,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:d})}const Pv=We({name:"TimePicker",common:xe,peers:{Scrollbar:bo,Button:tn,Input:Gn},self:Rc}),Oc={name:"TimePicker",common:V,peers:{Scrollbar:Qe,Button:et,Input:lt},self:Rc},kv={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 $c(e){const{hoverColor:t,fontSize:o,textColor2:n,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:d,dividerColor:u,boxShadow2:f,borderRadius:h,fontWeightStrong:m}=e;return Object.assign(Object.assign({},kv),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:n,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:J(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:n,arrowColor:l,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:n,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:m,scrollItemBorderRadius:h,iconColor:l,iconColorDisabled:c})}const GS=We({name:"DatePicker",common:xe,peers:{Input:Gn,Button:tn,TimePicker:Pv,Scrollbar:bo},self:$c}),Tv={name:"DatePicker",common:V,peers:{Input:lt,Button:et,TimePicker:Oc,Scrollbar:Qe},self(e){const{popoverColor:t,hoverColor:o,primaryColor:n}=e,r=$c(e);return r.itemColorDisabled=ie(t,o),r.itemColorIncluded=J(n,{alpha:.15}),r.itemColorHover=ie(t,o),r}},Rv={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 Ov(e){const{tableHeaderColor:t,textColor2:o,textColor1:n,cardColor:r,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h}=e;return Object.assign(Object.assign({},Rv),{lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:n,thColor:ie(r,t),thColorModal:ie(i,t),thColorPopover:ie(a,t),thTextColor:n,thFontWeight:c,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:ie(r,s),borderColorModal:ie(i,s),borderColorPopover:ie(a,s),borderRadius:l})}const $v={name:"Descriptions",common:V,self:Ov},Iv={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 Ic(e){const{textColor1:t,textColor2:o,modalColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:d,warningColor:u,errorColor:f,primaryColor:h,dividerColor:m,borderRadius:p,fontWeightStrong:g,lineHeight:v,fontSize:y}=e;return Object.assign(Object.assign({},Iv),{fontSize:y,lineHeight:v,border:`1px solid ${m}`,titleTextColor:t,textColor:o,color:n,closeColorHover:s,closeColorPressed:l,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:p,iconColor:h,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:u,iconColorError:f,borderRadius:p,titleFontWeight:g})}const Ac=We({name:"Dialog",common:xe,peers:{Button:tn},self:Ic}),zc={name:"Dialog",common:V,peers:{Button:et},self:Ic},or={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},Mc=on(or),Av=K([T("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); @@ -312,7 +312,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d `)),T("dialog",[gf(` width: 446px; max-width: calc(100vw - 32px); - `)])]),zv={default:()=>b(Yr,null),info:()=>b(Yr,null),success:()=>b(Gs,null),warning:()=>b(qs,null),error:()=>b(Ks,null)},Lc=se({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},ke.props),or),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=Xe(e),i=ps("Dialog",r,o),a=F(()=>{var h,m;const{iconPlacement:p}=e;return p||((m=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||m===void 0?void 0:m.iconPlacement)||"left"});function s(h){const{onPositiveClick:m}=e;m&&m(h)}function l(h){const{onNegativeClick:m}=e;m&&m(h)}function c(){const{onClose:h}=e;h&&h()}const d=ke("Dialog","-dialog",Av,Ac,e,o),u=F(()=>{const{type:h}=e,m=a.value,{common:{cubicBezierEaseInOut:p},self:{fontSize:g,lineHeight:v,border:y,titleTextColor:P,textColor:E,color:x,closeBorderRadius:_,closeColorHover:C,closeColorPressed:A,closeIconColor:S,closeIconColorHover:R,closeIconColorPressed:z,closeIconSize:$,borderRadius:Q,titleFontWeight:ne,titleFontSize:L,padding:le,iconSize:w,actionSpace:D,contentMargin:q,closeSize:te,[m==="top"?"iconMarginIconTop":"iconMargin"]:U,[m==="top"?"closeMarginIconTop":"closeMargin"]:oe,[Re("iconColor",h)]:M}}=d.value,ae=Oo(U);return{"--n-font-size":g,"--n-icon-color":M,"--n-bezier":p,"--n-close-margin":oe,"--n-icon-margin-top":ae.top,"--n-icon-margin-right":ae.right,"--n-icon-margin-bottom":ae.bottom,"--n-icon-margin-left":ae.left,"--n-icon-size":w,"--n-close-size":te,"--n-close-icon-size":$,"--n-close-border-radius":_,"--n-close-color-hover":C,"--n-close-color-pressed":A,"--n-close-icon-color":S,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":z,"--n-color":x,"--n-text-color":E,"--n-border-radius":Q,"--n-padding":le,"--n-line-height":v,"--n-border":y,"--n-content-margin":q,"--n-title-font-size":L,"--n-title-font-weight":ne,"--n-title-text-color":P,"--n-action-space":D}}),f=n?ft("dialog",F(()=>`${e.type[0]}${a.value[0]}`),u,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:s,handleNegativeClick:l,handleCloseClick:c,cssVars:n?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:n,closable:r,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:d,positiveButtonProps:u,negativeButtonProps:f,handlePositiveClick:h,handleNegativeClick:m,mergedTheme:p,loading:g,type:v,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const P=i?b(nn,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>$t(this.$slots.icon,x=>x||(this.icon?je(this.icon):zv[this.type]()))}):null,E=$t(this.$slots.action,x=>x||d||c||l?b("div",{class:[`${y}-dialog__action`,this.actionClass],style:this.actionStyle},x||(l?[je(l)]:[this.negativeText&&b(Dr,Object.assign({theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,ghost:!0,size:"small",onClick:m},f),{default:()=>je(this.negativeText)}),this.positiveText&&b(Dr,Object.assign({theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:"small",type:v==="default"?"primary":v,disabled:g,loading:g,onClick:h},u),{default:()=>je(this.positiveText)})])):null);return b("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${o}`,t&&`${y}-dialog--bordered`,this.rtlEnabled&&`${y}-dialog--rtl`],style:n,role:"dialog"},r?$t(this.$slots.close,x=>{const _=[`${y}-dialog__close`,this.rtlEnabled&&`${y}-dialog--rtl`];return x?b("div",{class:_},x):b(wi,{clsPrefix:y,class:_,onClick:this.handleCloseClick})}):null,i&&o==="top"?b("div",{class:`${y}-dialog-icon-container`},P):null,b("div",{class:[`${y}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?P:null,ma(this.$slots.header,()=>[je(a)])),b("div",{class:[`${y}-dialog__content`,E?"":`${y}-dialog__content--last`,this.contentClass],style:this.contentStyle},ma(this.$slots.default,()=>[je(s)])),E)}}),Bc=ze("n-dialog-provider"),Mv=ze("n-dialog-api"),Lv=ze("n-dialog-reactive-list");function Hc(e){const{modalColor:t,textColor2:o,boxShadow3:n}=e;return{color:t,textColor:o,boxShadow:n}}const Bv=We({name:"Modal",common:xe,peers:{Scrollbar:bo,Dialog:Ac,Card:vf},self:Hc}),Hv={name:"Modal",common:V,peers:{Scrollbar:Qe,Dialog:zc,Card:uc},self:Hc},Wi=Object.assign(Object.assign({},bf),or),Dv=on(Wi),Nv=se({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Wi),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=B(null),o=B(null),n=B(e.show),r=B(null),i=B(null);Le(be(e,"show"),g=>{g&&(n.value=!0)}),mh(F(()=>e.blockScroll&&n.value));const a=me(ks);function s(){if(a.transformOriginRef.value==="center")return"";const{value:g}=r,{value:v}=i;if(g===null||v===null)return"";if(o.value){const y=o.value.containerScrollTop;return`${g}px ${v+y}px`}return""}function l(g){if(a.transformOriginRef.value==="center")return;const v=a.getMousePosition();if(!v||!o.value)return;const y=o.value.containerScrollTop,{offsetLeft:P,offsetTop:E}=g;if(v){const x=v.y,_=v.x;r.value=-(P-_),i.value=-(E-x-y)}g.style.transformOrigin=s()}function c(g){qe(()=>{l(g)})}function d(g){g.style.transformOrigin=s(),e.onBeforeLeave()}function u(){n.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:g}=e;g&&g()}function h(){e.onNegativeClick()}function m(){e.onPositiveClick()}const p=B(null);return Le(p,g=>{g&&qe(()=>{const v=g.el;v&&t.value!==v&&(t.value=v)})}),ve(Yn,t),ve(Zn,null),ve(rn,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:n,childNodeRef:p,handlePositiveClick:m,handleNegativeClick:h,handleCloseClick:f,handleAfterLeave:u,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:n,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=jr(e),!s){Wo("modal","default slot is empty");return}s=Ci(s),s.props=xo({class:`${a}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?Ct(b("div",{role:"none",class:`${a}-modal-body-wrapper`},b(Si,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),b(Ds,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return b(en,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:r},{default:()=>{const d=[[Uo,this.show]],{onClickoutside:u}=this;return u&&d.push([Ur,this.onClickoutside,void 0,{capture:!0}]),Ct(this.preset==="confirm"||this.preset==="dialog"?b(Lc,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},yt(this.$props,Mc),{"aria-modal":"true"}),e):this.preset==="card"?b(ms,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},yt(this.$props,xf),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,d)}})}})]}})),[[Uo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Fv=K([T("modal-container",` + `)])]),zv={default:()=>b(Yr,null),info:()=>b(Yr,null),success:()=>b(Gs,null),warning:()=>b(qs,null),error:()=>b(Ks,null)},Lc=se({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},ke.props),or),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=Xe(e),i=ps("Dialog",r,o),a=F(()=>{var h,m;const{iconPlacement:p}=e;return p||((m=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||m===void 0?void 0:m.iconPlacement)||"left"});function s(h){const{onPositiveClick:m}=e;m&&m(h)}function l(h){const{onNegativeClick:m}=e;m&&m(h)}function c(){const{onClose:h}=e;h&&h()}const d=ke("Dialog","-dialog",Av,Ac,e,o),u=F(()=>{const{type:h}=e,m=a.value,{common:{cubicBezierEaseInOut:p},self:{fontSize:g,lineHeight:v,border:y,titleTextColor:P,textColor:_,color:x,closeBorderRadius:E,closeColorHover:C,closeColorPressed:A,closeIconColor:S,closeIconColorHover:R,closeIconColorPressed:z,closeIconSize:$,borderRadius:Q,titleFontWeight:ne,titleFontSize:L,padding:le,iconSize:w,actionSpace:D,contentMargin:q,closeSize:te,[m==="top"?"iconMarginIconTop":"iconMargin"]:U,[m==="top"?"closeMarginIconTop":"closeMargin"]:oe,[Re("iconColor",h)]:M}}=d.value,ae=Oo(U);return{"--n-font-size":g,"--n-icon-color":M,"--n-bezier":p,"--n-close-margin":oe,"--n-icon-margin-top":ae.top,"--n-icon-margin-right":ae.right,"--n-icon-margin-bottom":ae.bottom,"--n-icon-margin-left":ae.left,"--n-icon-size":w,"--n-close-size":te,"--n-close-icon-size":$,"--n-close-border-radius":E,"--n-close-color-hover":C,"--n-close-color-pressed":A,"--n-close-icon-color":S,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":z,"--n-color":x,"--n-text-color":_,"--n-border-radius":Q,"--n-padding":le,"--n-line-height":v,"--n-border":y,"--n-content-margin":q,"--n-title-font-size":L,"--n-title-font-weight":ne,"--n-title-text-color":P,"--n-action-space":D}}),f=n?ft("dialog",F(()=>`${e.type[0]}${a.value[0]}`),u,e):void 0;return{mergedClsPrefix:o,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:s,handleNegativeClick:l,handleCloseClick:c,cssVars:n?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:o,cssVars:n,closable:r,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:d,positiveButtonProps:u,negativeButtonProps:f,handlePositiveClick:h,handleNegativeClick:m,mergedTheme:p,loading:g,type:v,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const P=i?b(nn,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>$t(this.$slots.icon,x=>x||(this.icon?je(this.icon):zv[this.type]()))}):null,_=$t(this.$slots.action,x=>x||d||c||l?b("div",{class:[`${y}-dialog__action`,this.actionClass],style:this.actionStyle},x||(l?[je(l)]:[this.negativeText&&b(Dr,Object.assign({theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,ghost:!0,size:"small",onClick:m},f),{default:()=>je(this.negativeText)}),this.positiveText&&b(Dr,Object.assign({theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:"small",type:v==="default"?"primary":v,disabled:g,loading:g,onClick:h},u),{default:()=>je(this.positiveText)})])):null);return b("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${o}`,t&&`${y}-dialog--bordered`,this.rtlEnabled&&`${y}-dialog--rtl`],style:n,role:"dialog"},r?$t(this.$slots.close,x=>{const E=[`${y}-dialog__close`,this.rtlEnabled&&`${y}-dialog--rtl`];return x?b("div",{class:E},x):b(wi,{clsPrefix:y,class:E,onClick:this.handleCloseClick})}):null,i&&o==="top"?b("div",{class:`${y}-dialog-icon-container`},P):null,b("div",{class:[`${y}-dialog__title`,this.titleClass],style:this.titleStyle},i&&o==="left"?P:null,ma(this.$slots.header,()=>[je(a)])),b("div",{class:[`${y}-dialog__content`,_?"":`${y}-dialog__content--last`,this.contentClass],style:this.contentStyle},ma(this.$slots.default,()=>[je(s)])),_)}}),Bc=ze("n-dialog-provider"),Mv=ze("n-dialog-api"),Lv=ze("n-dialog-reactive-list");function Hc(e){const{modalColor:t,textColor2:o,boxShadow3:n}=e;return{color:t,textColor:o,boxShadow:n}}const Bv=We({name:"Modal",common:xe,peers:{Scrollbar:bo,Dialog:Ac,Card:vf},self:Hc}),Hv={name:"Modal",common:V,peers:{Scrollbar:Qe,Dialog:zc,Card:uc},self:Hc},Wi=Object.assign(Object.assign({},bf),or),Dv=on(Wi),Nv=se({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Wi),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=B(null),o=B(null),n=B(e.show),r=B(null),i=B(null);Le(be(e,"show"),g=>{g&&(n.value=!0)}),mh(F(()=>e.blockScroll&&n.value));const a=me(ks);function s(){if(a.transformOriginRef.value==="center")return"";const{value:g}=r,{value:v}=i;if(g===null||v===null)return"";if(o.value){const y=o.value.containerScrollTop;return`${g}px ${v+y}px`}return""}function l(g){if(a.transformOriginRef.value==="center")return;const v=a.getMousePosition();if(!v||!o.value)return;const y=o.value.containerScrollTop,{offsetLeft:P,offsetTop:_}=g;if(v){const x=v.y,E=v.x;r.value=-(P-E),i.value=-(_-x-y)}g.style.transformOrigin=s()}function c(g){qe(()=>{l(g)})}function d(g){g.style.transformOrigin=s(),e.onBeforeLeave()}function u(){n.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:g}=e;g&&g()}function h(){e.onNegativeClick()}function m(){e.onPositiveClick()}const p=B(null);return Le(p,g=>{g&&qe(()=>{const v=g.el;v&&t.value!==v&&(t.value=v)})}),ve(Yn,t),ve(Zn,null),ve(rn,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:o,displayed:n,childNodeRef:p,handlePositiveClick:m,handleNegativeClick:h,handleCloseClick:f,handleAfterLeave:u,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:o,handleAfterLeave:n,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=jr(e),!s){Wo("modal","default slot is empty");return}s=Ci(s),s.props=xo({class:`${a}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?Ct(b("div",{role:"none",class:`${a}-modal-body-wrapper`},b(Si,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),b(Ds,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return b(en,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:o,onAfterEnter:this.onAfterEnter,onAfterLeave:n,onBeforeLeave:r},{default:()=>{const d=[[Uo,this.show]],{onClickoutside:u}=this;return u&&d.push([Ur,this.onClickoutside,void 0,{capture:!0}]),Ct(this.preset==="confirm"||this.preset==="dialog"?b(Lc,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},yt(this.$props,Mc),{"aria-modal":"true"}),e):this.preset==="card"?b(ms,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},yt(this.$props,xf),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,d)}})}})]}})),[[Uo,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Fv=K([T("modal-container",` position: fixed; left: 0; top: 0; @@ -343,7 +343,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d color: var(--n-text-color); margin: auto; box-shadow: var(--n-box-shadow); - `,[ec({duration:".25s",enterScale:".5"})])]),jv=Object.assign(Object.assign(Object.assign(Object.assign({},ke.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Wi),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),Dc=se({name:"Modal",inheritAttrs:!1,props:jv,setup(e){const t=B(null),{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=Xe(e),i=ke("Modal","-modal",Fv,Bv,e,o),a=Ps(64),s=Es(),l=Wn(),c=e.internalDialog?me(Bc,null):null,d=e.internalModal?me(Zf,null):null,u=gh();function f(_){const{onUpdateShow:C,"onUpdate:show":A,onHide:S}=e;C&&Oe(C,_),A&&Oe(A,_),S&&!_&&S(_)}function h(){const{onClose:_}=e;_?Promise.resolve(_()).then(C=>{C!==!1&&f(!1)}):f(!1)}function m(){const{onPositiveClick:_}=e;_?Promise.resolve(_()).then(C=>{C!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:_}=e;_?Promise.resolve(_()).then(C=>{C!==!1&&f(!1)}):f(!1)}function g(){const{onBeforeLeave:_,onBeforeHide:C}=e;_&&Oe(_),C&&C()}function v(){const{onAfterLeave:_,onAfterHide:C}=e;_&&Oe(_),C&&C()}function y(_){var C;const{onMaskClick:A}=e;A&&A(_),e.maskClosable&&!((C=t.value)===null||C===void 0)&&C.contains(An(_))&&f(!1)}function P(_){var C;(C=e.onEsc)===null||C===void 0||C.call(e),e.show&&e.closeOnEsc&&Vf(_)&&(u.value||f(!1))}ve(ks,{getMousePosition:()=>{const _=c||d;if(_){const{clickedRef:C,clickedPositionRef:A}=_;if(C.value&&A.value)return A.value}return a.value?s.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:l,appearRef:be(e,"internalAppear"),transformOriginRef:be(e,"transformOrigin")});const E=F(()=>{const{common:{cubicBezierEaseOut:_},self:{boxShadow:C,color:A,textColor:S}}=i.value;return{"--n-bezier-ease-out":_,"--n-box-shadow":C,"--n-color":A,"--n-text-color":S}}),x=r?ft("theme-class",void 0,E,e):void 0;return{mergedClsPrefix:o,namespace:n,isMounted:l,containerRef:t,presetProps:F(()=>yt(e,Dv)),handleEsc:P,handleAfterLeave:v,handleClickoutside:y,handleBeforeLeave:g,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:m,handleCloseClick:h,cssVars:r?void 0:E,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return b(As,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return Ct(b("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},b(Nv,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var n;return b(en,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?b("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Ti,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Wv=Object.assign(Object.assign({},or),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),Vv=se({name:"DialogEnvironment",props:Object.assign(Object.assign({},Wv),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function o(){const{onInternalAfterLeave:d,internalKey:u,onAfterLeave:f}=e;d&&d(u),f&&f()}function n(d){const{onPositiveClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&l()}):l()}function r(d){const{onNegativeClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(u=>{u!==!1&&l()}):l()}function a(d){const{onMaskClick:u,maskClosable:f}=e;u&&(u(d),f&&l())}function s(){const{onEsc:d}=e;d&&d()}function l(){t.value=!1}function c(d){t.value=d}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:n,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return b(Dc,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>b(Lc,Object.assign({},yt(this.$props,Mc),{style:this.internalStyle,onClose:n,onNegativeClick:o,onPositiveClick:e}))})}}),Uv={injectionKey:String,to:[String,Object]},Kv=se({name:"DialogProvider",props:Uv,setup(){const e=B([]),t={};function o(s={}){const l=Vn(),c=Zo(Object.assign(Object.assign({},s),{key:l,destroy:()=>{var d;(d=t[`n-dialog-${l}`])===null||d===void 0||d.hide()}}));return e.value.push(c),c}const n=["info","success","warning","error"].map(s=>l=>o(Object.assign(Object.assign({},l),{type:s})));function r(s){const{value:l}=e;l.splice(l.findIndex(c=>c.key===s),1)}function i(){Object.values(t).forEach(s=>{s==null||s.hide()})}const a={create:o,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return ve(Mv,a),ve(Bc,{clickedRef:Ps(64),clickedPositionRef:Es()}),ve(Lv,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return b(mt,null,[this.dialogList.map(o=>b(Vv,_i(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function Nc(e){const{textColor1:t,dividerColor:o,fontWeightStrong:n}=e;return{textColor:t,color:o,fontWeight:n}}const qS={name:"Divider",common:xe,self:Nc},Gv={name:"Divider",common:V,self:Nc};function qv(e){const{modalColor:t,textColor1:o,textColor2:n,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:m}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:o,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:h,resizableTriggerColorHover:m}}const Xv={name:"Drawer",common:V,peers:{Scrollbar:Qe},self:qv},Yv={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},Zv={name:"DynamicInput",common:V,peers:{Input:lt,Button:et},self(){return Yv}},Jv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Fc={name:"Space",self(){return Jv}},Qv={name:"DynamicTags",common:V,peers:{Input:lt,Button:et,Tag:ic,Space:Fc},self(){return{inputWidth:"64px"}}},eb={name:"Element",common:V},tb={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},ob={name:"Flex",self(){return tb}},nb={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function jc(e){const{heightSmall:t,heightMedium:o,heightLarge:n,textColor1:r,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},nb),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:n,lineHeight:s,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})}const XS={name:"Form",common:xe,self:jc},rb={name:"Form",common:V,self:jc},ib={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function ab(e){const{textColor2:t,successColor:o,infoColor:n,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:u,textColor1:f,textColor3:h,borderRadius:m,fontWeightStrong:p,boxShadow2:g,lineHeight:v,fontSize:y}=e;return Object.assign(Object.assign({},ib),{borderRadius:m,lineHeight:v,fontSize:y,headerFontWeight:p,iconColor:t,iconColorSuccess:o,iconColorInfo:n,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:m,closeColorHover:d,closeColorPressed:u,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:g})}const lb={name:"Notification",common:V,peers:{Scrollbar:Qe},self:ab},sb={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function Wc(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:f,borderRadius:h,closeColorHover:m,closeColorPressed:p}=e;return Object.assign(Object.assign({},sb),{closeBorderRadius:h,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:u,closeColorHover:m,closeColorPressed:p,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,closeColorHoverInfo:m,closeColorPressedInfo:p,closeIconColorInfo:o,closeIconColorHoverInfo:n,closeIconColorPressedInfo:r,closeColorHoverSuccess:m,closeColorPressedSuccess:p,closeIconColorSuccess:o,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:r,closeColorHoverError:m,closeColorPressedError:p,closeIconColorError:o,closeIconColorHoverError:n,closeIconColorPressedError:r,closeColorHoverWarning:m,closeColorPressedWarning:p,closeIconColorWarning:o,closeIconColorHoverWarning:n,closeIconColorPressedWarning:r,closeColorHoverLoading:m,closeColorPressedLoading:p,closeIconColorLoading:o,closeIconColorHoverLoading:n,closeIconColorPressedLoading:r,loadingColor:u,lineHeight:f,borderRadius:h})}const cb={name:"Message",common:xe,self:Wc},db={name:"Message",common:V,self:Wc},ub={name:"ButtonGroup",common:V},fb={name:"GradientText",common:V,self(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:n,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:o,colorEndSuccess:s}}},hb={name:"InputNumber",common:V,peers:{Button:et,Input:lt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},pb={name:"Layout",common:V,peers:{Scrollbar:Qe},self(e){const{textColor2:t,bodyColor:o,popoverColor:n,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:ie(o,a),siderToggleBarColorHover:ie(o,s),__invertScrollbar:"false"}}};function mb(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:r,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:r,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:ie(n,s),siderToggleBarColorHover:ie(n,l),__invertScrollbar:"true"}}const Vi=We({name:"Layout",common:xe,peers:{Scrollbar:bo},self:mb});function Vc(e){const{textColor2:t,cardColor:o,modalColor:n,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:o,colorHover:l,colorModal:n,colorHoverModal:ie(n,l),colorPopover:r,colorHoverPopover:ie(r,l),borderColor:i,borderColorModal:ie(n,i),borderColorPopover:ie(r,i),borderRadius:a,fontSize:s}}const YS={name:"List",common:xe,self:Vc},gb={name:"List",common:V,self:Vc},vb={name:"LoadingBar",common:V,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function bb(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const xb={name:"LoadingBar",common:xe,self:bb},yb={name:"Log",common:V,peers:{Scrollbar:Qe,Code:hc},self(e){const{textColor2:t,inputColor:o,fontSize:n,primaryColor:r}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:r}}},Cb={name:"Mention",common:V,peers:{InternalSelectMenu:an,Input:lt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function wb(e,t,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function Uc(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:l,itemColorActive:J(n,{alpha:.1}),itemColorActiveHover:J(n,{alpha:.1}),itemColorActiveCollapsed:J(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},wb("#BBB",n,"#FFF","#AAA"))}const Sb=We({name:"Menu",common:xe,peers:{Tooltip:Di,Dropdown:Ni},self:Uc}),_b={name:"Menu",common:V,peers:{Tooltip:er,Dropdown:Fi},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,n=Uc(e);return n.itemColorActive=J(t,{alpha:.15}),n.itemColorActiveHover=J(t,{alpha:.15}),n.itemColorActiveCollapsed=J(t,{alpha:.15}),n.itemColorActiveInverted=o,n.itemColorActiveHoverInverted=o,n.itemColorActiveCollapsedInverted=o,n}},Eb={titleFontSize:"18px",backSize:"22px"};function Pb(e){const{textColor1:t,textColor2:o,textColor3:n,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},Eb),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:s,subtitleTextColor:n})}const kb={name:"PageHeader",common:V,self:Pb},Tb={iconSize:"22px"};function Rb(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},Tb),{fontSize:t,iconColor:o})}const Ob={name:"Popconfirm",common:V,peers:{Button:et,Popover:Yt},self:Rb};function Kc(e){const{infoColor:t,successColor:o,warningColor:n,errorColor:r,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:n,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:n,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const $b={name:"Progress",common:xe,self:Kc},Gc={name:"Progress",common:V,self(e){const t=Kc(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},Ib={name:"Rate",common:V,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Ab={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function zb(e){const{textColor2:t,textColor1:o,errorColor:n,successColor:r,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},Ab),{lineHeight:s,titleFontWeight:l,titleTextColor:o,textColor:t,iconColorError:n,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const Mb={name:"Result",common:V,self:zb},Lb={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},Bb={name:"Slider",common:V,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},Lb),{fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:r,fillColorHover:r,opacityDisabled:d,handleColor:"#FFF",dotColor:s,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}};function Hb(e){const{opacityDisabled:t,heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:o,sizeSmall:n,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}}const Db={name:"Spin",common:V,self:Hb};function Nb(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const Fb={name:"Statistic",common:V,self:Nb},jb={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Wb(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:n,primaryColor:r,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},jb),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:n,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:n,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:r,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})}const Vb={name:"Steps",common:V,self:Wb},Ub={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},Kb={name:"Switch",common:V,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:n,primaryColor:r,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},Ub),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${J(r,{alpha:.3})}`})}},Gb={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function qc(e){const{dividerColor:t,cardColor:o,modalColor:n,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:d,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Gb),{fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m,lineHeight:u,borderRadius:c,borderColor:ie(o,t),borderColorModal:ie(n,t),borderColorPopover:ie(r,t),tdColor:o,tdColorModal:n,tdColorPopover:r,tdColorStriped:ie(o,a),tdColorStripedModal:ie(n,a),tdColorStripedPopover:ie(r,a),thColor:ie(o,i),thColorModal:ie(n,i),thColorPopover:ie(r,i),thTextColor:s,tdTextColor:l,thFontWeight:d})}const ZS={name:"Table",common:xe,self:qc},qb={name:"Table",common:V,self:qc},Xb={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Xc(e){const{textColor2:t,primaryColor:o,textColorDisabled:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:d,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:m,fontSize:p,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Xb),{colorSegment:c,tabFontSizeCard:p,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:n,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:n,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:n,barColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:m,tabColor:c,tabColorSegment:d,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}const Yb={name:"Tabs",common:xe,self:Xc},Zb={name:"Tabs",common:V,self(e){const t=Xc(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Yc(e){const{textColor1:t,textColor2:o,fontWeightStrong:n,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:o,titleFontWeight:n}}const JS={name:"Thing",common:xe,self:Yc},Jb={name:"Thing",common:V,self:Yc},Qb={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},e0={name:"Timeline",common:V,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},Qb),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},t0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},o0={name:"Transfer",common:V,peers:{Checkbox:Co,Scrollbar:Qe,Input:lt,Empty:Xt,Button:et},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:d,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:m,closeColorHover:p,closeColorPressed:g,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:P,dividerColor:E}=e;return Object.assign(Object.assign({},t0),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:s,dividerColor:E,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:d,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:m,titleFontWeight:t,closeColorHover:p,closeColorPressed:g,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:P})}};function n0(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:n,pressedColor:r,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:J(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:o}}const Zc={name:"Tree",common:V,peers:{Checkbox:Co,Scrollbar:Qe,Empty:Xt},self(e){const{primaryColor:t}=e,o=n0(e);return o.nodeColorActive=J(t,{alpha:.15}),o}},r0={name:"TreeSelect",common:V,peers:{Tree:Zc,Empty:Xt,InternalSelection:Hi}},i0={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Jc(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:h,successColor:m,codeColor:p}=e;return Object.assign(Object.assign({},i0),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:m,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:p,codeBorder:"1px solid #0000"})}const QS={name:"Typography",common:xe,self:Jc},a0={name:"Typography",common:V,self:Jc};function Qc(e){const{iconColor:t,primaryColor:o,errorColor:n,textColor2:r,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:d,borderRadius:u,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:J(n,{alpha:.06}),itemTextColor:r,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}}const e2=We({name:"Upload",common:xe,peers:{Button:tn,Progress:$b},self:Qc}),l0={name:"Upload",common:V,peers:{Button:et,Progress:Gc},self(e){const{errorColor:t}=e,o=Qc(e);return o.itemColorHoverError=J(t,{alpha:.09}),o}},s0={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},c0=We({name:"Watermark",common:xe,self(e){const{fontFamily:t}=e;return{fontFamily:t}}}),d0={name:"Row",common:V},u0={name:"FloatButton",common:V,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,baseColor:l,borderRadius:c}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColorPrimary:l,borderRadiusSquare:c}}},f0=se({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=me(Hr,null),{body:t}=document,{style:o}=t;let n=!1,r=!0;Jo(()=>{At(()=>{var i,a;const{textColor2:s,fontSize:l,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:u,lineHeight:f}=e?hs({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||xe,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):xe;if(n||!t.hasAttribute("n-styled")){o.setProperty("-webkit-text-size-adjust","100%"),o.setProperty("-webkit-tap-highlight-color","transparent"),o.padding="0",o.margin="0",o.backgroundColor=d,o.color=s,o.fontSize=l,o.fontFamily=c,o.lineHeight=f;const h=`color .3s ${u}, background-color .3s ${u}`;r?setTimeout(()=>{o.transition=h},0):o.transition=h,t.setAttribute("n-styled",""),n=!0,r=!1}})}),yf(()=>{n&&t.removeAttribute("n-styled")})},render(){return null}});function h0(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const p0={name:"IconWrapper",common:V,self:h0},m0={name:"Image",common:V,peers:{Tooltip:er},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},ed=ze("n-layout-sider"),Ui={type:String,default:"static"},g0=T("layout",` + `,[ec({duration:".25s",enterScale:".5"})])]),jv=Object.assign(Object.assign(Object.assign(Object.assign({},ke.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Wi),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),Dc=se({name:"Modal",inheritAttrs:!1,props:jv,setup(e){const t=B(null),{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=Xe(e),i=ke("Modal","-modal",Fv,Bv,e,o),a=Ps(64),s=Es(),l=Wn(),c=e.internalDialog?me(Bc,null):null,d=e.internalModal?me(Zf,null):null,u=gh();function f(E){const{onUpdateShow:C,"onUpdate:show":A,onHide:S}=e;C&&Oe(C,E),A&&Oe(A,E),S&&!E&&S(E)}function h(){const{onClose:E}=e;E?Promise.resolve(E()).then(C=>{C!==!1&&f(!1)}):f(!1)}function m(){const{onPositiveClick:E}=e;E?Promise.resolve(E()).then(C=>{C!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:E}=e;E?Promise.resolve(E()).then(C=>{C!==!1&&f(!1)}):f(!1)}function g(){const{onBeforeLeave:E,onBeforeHide:C}=e;E&&Oe(E),C&&C()}function v(){const{onAfterLeave:E,onAfterHide:C}=e;E&&Oe(E),C&&C()}function y(E){var C;const{onMaskClick:A}=e;A&&A(E),e.maskClosable&&!((C=t.value)===null||C===void 0)&&C.contains(An(E))&&f(!1)}function P(E){var C;(C=e.onEsc)===null||C===void 0||C.call(e),e.show&&e.closeOnEsc&&Vf(E)&&(u.value||f(!1))}ve(ks,{getMousePosition:()=>{const E=c||d;if(E){const{clickedRef:C,clickedPositionRef:A}=E;if(C.value&&A.value)return A.value}return a.value?s.value:null},mergedClsPrefixRef:o,mergedThemeRef:i,isMountedRef:l,appearRef:be(e,"internalAppear"),transformOriginRef:be(e,"transformOrigin")});const _=F(()=>{const{common:{cubicBezierEaseOut:E},self:{boxShadow:C,color:A,textColor:S}}=i.value;return{"--n-bezier-ease-out":E,"--n-box-shadow":C,"--n-color":A,"--n-text-color":S}}),x=r?ft("theme-class",void 0,_,e):void 0;return{mergedClsPrefix:o,namespace:n,isMounted:l,containerRef:t,presetProps:F(()=>yt(e,Dv)),handleEsc:P,handleAfterLeave:v,handleClickoutside:y,handleBeforeLeave:g,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:m,handleCloseClick:h,cssVars:r?void 0:_,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return b(As,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:o}=this;return Ct(b("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},b(Nv,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:o?void 0:this.handleClickoutside,renderMask:o?()=>{var n;return b(en,{name:"fade-in-transition",key:"mask",appear:(n=this.internalAppear)!==null&&n!==void 0?n:this.isMounted},{default:()=>this.show?b("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Ti,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Wv=Object.assign(Object.assign({},or),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),Vv=se({name:"DialogEnvironment",props:Object.assign(Object.assign({},Wv),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function o(){const{onInternalAfterLeave:d,internalKey:u,onAfterLeave:f}=e;d&&d(u),f&&f()}function n(d){const{onPositiveClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&l()}):l()}function r(d){const{onNegativeClick:u}=e;u?Promise.resolve(u(d)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(u=>{u!==!1&&l()}):l()}function a(d){const{onMaskClick:u,maskClosable:f}=e;u&&(u(d),f&&l())}function s(){const{onEsc:d}=e;d&&d()}function l(){t.value=!1}function c(d){t.value=d}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:o,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:n,handleMaskClick:a,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:o,handleCloseClick:n,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return b(Dc,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>b(Lc,Object.assign({},yt(this.$props,Mc),{style:this.internalStyle,onClose:n,onNegativeClick:o,onPositiveClick:e}))})}}),Uv={injectionKey:String,to:[String,Object]},Kv=se({name:"DialogProvider",props:Uv,setup(){const e=B([]),t={};function o(s={}){const l=Vn(),c=Zo(Object.assign(Object.assign({},s),{key:l,destroy:()=>{var d;(d=t[`n-dialog-${l}`])===null||d===void 0||d.hide()}}));return e.value.push(c),c}const n=["info","success","warning","error"].map(s=>l=>o(Object.assign(Object.assign({},l),{type:s})));function r(s){const{value:l}=e;l.splice(l.findIndex(c=>c.key===s),1)}function i(){Object.values(t).forEach(s=>{s==null||s.hide()})}const a={create:o,destroyAll:i,info:n[0],success:n[1],warning:n[2],error:n[3]};return ve(Mv,a),ve(Bc,{clickedRef:Ps(64),clickedPositionRef:Es()}),ve(Lv,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return b(mt,null,[this.dialogList.map(o=>b(Vv,_i(o,["destroy","style"],{internalStyle:o.style,to:this.to,ref:n=>{n===null?delete this.dialogInstRefs[`n-dialog-${o.key}`]:this.dialogInstRefs[`n-dialog-${o.key}`]=n},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function Nc(e){const{textColor1:t,dividerColor:o,fontWeightStrong:n}=e;return{textColor:t,color:o,fontWeight:n}}const qS={name:"Divider",common:xe,self:Nc},Gv={name:"Divider",common:V,self:Nc};function qv(e){const{modalColor:t,textColor1:o,textColor2:n,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:h,primaryColorHover:m}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:n,titleTextColor:o,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:h,resizableTriggerColorHover:m}}const Xv={name:"Drawer",common:V,peers:{Scrollbar:Qe},self:qv},Yv={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},Zv={name:"DynamicInput",common:V,peers:{Input:lt,Button:et},self(){return Yv}},Jv={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Fc={name:"Space",self(){return Jv}},Qv={name:"DynamicTags",common:V,peers:{Input:lt,Button:et,Tag:ic,Space:Fc},self(){return{inputWidth:"64px"}}},eb={name:"Element",common:V},tb={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},ob={name:"Flex",self(){return tb}},nb={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function jc(e){const{heightSmall:t,heightMedium:o,heightLarge:n,textColor1:r,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},nb),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:n,lineHeight:s,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})}const XS={name:"Form",common:xe,self:jc},rb={name:"Form",common:V,self:jc},ib={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function ab(e){const{textColor2:t,successColor:o,infoColor:n,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:u,textColor1:f,textColor3:h,borderRadius:m,fontWeightStrong:p,boxShadow2:g,lineHeight:v,fontSize:y}=e;return Object.assign(Object.assign({},ib),{borderRadius:m,lineHeight:v,fontSize:y,headerFontWeight:p,iconColor:t,iconColorSuccess:o,iconColorInfo:n,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:m,closeColorHover:d,closeColorPressed:u,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:g})}const lb={name:"Notification",common:V,peers:{Scrollbar:Qe},self:ab},sb={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function Wc(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:f,borderRadius:h,closeColorHover:m,closeColorPressed:p}=e;return Object.assign(Object.assign({},sb),{closeBorderRadius:h,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:u,closeColorHover:m,closeColorPressed:p,closeIconColor:o,closeIconColorHover:n,closeIconColorPressed:r,closeColorHoverInfo:m,closeColorPressedInfo:p,closeIconColorInfo:o,closeIconColorHoverInfo:n,closeIconColorPressedInfo:r,closeColorHoverSuccess:m,closeColorPressedSuccess:p,closeIconColorSuccess:o,closeIconColorHoverSuccess:n,closeIconColorPressedSuccess:r,closeColorHoverError:m,closeColorPressedError:p,closeIconColorError:o,closeIconColorHoverError:n,closeIconColorPressedError:r,closeColorHoverWarning:m,closeColorPressedWarning:p,closeIconColorWarning:o,closeIconColorHoverWarning:n,closeIconColorPressedWarning:r,closeColorHoverLoading:m,closeColorPressedLoading:p,closeIconColorLoading:o,closeIconColorHoverLoading:n,closeIconColorPressedLoading:r,loadingColor:u,lineHeight:f,borderRadius:h})}const cb={name:"Message",common:xe,self:Wc},db={name:"Message",common:V,self:Wc},ub={name:"ButtonGroup",common:V},fb={name:"GradientText",common:V,self(e){const{primaryColor:t,successColor:o,warningColor:n,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:n,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:o,colorEndSuccess:s}}},hb={name:"InputNumber",common:V,peers:{Button:et,Input:lt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},pb={name:"Layout",common:V,peers:{Scrollbar:Qe},self(e){const{textColor2:t,bodyColor:o,popoverColor:n,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:n,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:ie(o,a),siderToggleBarColorHover:ie(o,s),__invertScrollbar:"false"}}};function mb(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:a,headerColor:r,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:r,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:ie(n,s),siderToggleBarColorHover:ie(n,l),__invertScrollbar:"true"}}const Vi=We({name:"Layout",common:xe,peers:{Scrollbar:bo},self:mb});function Vc(e){const{textColor2:t,cardColor:o,modalColor:n,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:o,colorHover:l,colorModal:n,colorHoverModal:ie(n,l),colorPopover:r,colorHoverPopover:ie(r,l),borderColor:i,borderColorModal:ie(n,i),borderColorPopover:ie(r,i),borderRadius:a,fontSize:s}}const YS={name:"List",common:xe,self:Vc},gb={name:"List",common:V,self:Vc},vb={name:"LoadingBar",common:V,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};function bb(e){const{primaryColor:t,errorColor:o}=e;return{colorError:o,colorLoading:t,height:"2px"}}const xb={name:"LoadingBar",common:xe,self:bb},yb={name:"Log",common:V,peers:{Scrollbar:Qe,Code:hc},self(e){const{textColor2:t,inputColor:o,fontSize:n,primaryColor:r}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:r}}},Cb={name:"Mention",common:V,peers:{InternalSelectMenu:an,Input:lt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function wb(e,t,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function Uc(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:l,itemColorActive:J(n,{alpha:.1}),itemColorActiveHover:J(n,{alpha:.1}),itemColorActiveCollapsed:J(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},wb("#BBB",n,"#FFF","#AAA"))}const Sb=We({name:"Menu",common:xe,peers:{Tooltip:Di,Dropdown:Ni},self:Uc}),_b={name:"Menu",common:V,peers:{Tooltip:er,Dropdown:Fi},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,n=Uc(e);return n.itemColorActive=J(t,{alpha:.15}),n.itemColorActiveHover=J(t,{alpha:.15}),n.itemColorActiveCollapsed=J(t,{alpha:.15}),n.itemColorActiveInverted=o,n.itemColorActiveHoverInverted=o,n.itemColorActiveCollapsedInverted=o,n}},Eb={titleFontSize:"18px",backSize:"22px"};function Pb(e){const{textColor1:t,textColor2:o,textColor3:n,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},Eb),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:s,subtitleTextColor:n})}const kb={name:"PageHeader",common:V,self:Pb},Tb={iconSize:"22px"};function Rb(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},Tb),{fontSize:t,iconColor:o})}const Ob={name:"Popconfirm",common:V,peers:{Button:et,Popover:Yt},self:Rb};function Kc(e){const{infoColor:t,successColor:o,warningColor:n,errorColor:r,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:n,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:n,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const $b={name:"Progress",common:xe,self:Kc},Gc={name:"Progress",common:V,self(e){const t=Kc(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},Ib={name:"Rate",common:V,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Ab={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function zb(e){const{textColor2:t,textColor1:o,errorColor:n,successColor:r,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},Ab),{lineHeight:s,titleFontWeight:l,titleTextColor:o,textColor:t,iconColorError:n,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const Mb={name:"Result",common:V,self:zb},Lb={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},Bb={name:"Slider",common:V,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},Lb),{fontSize:c,markFontSize:c,railColor:o,railColorHover:o,fillColor:r,fillColorHover:r,opacityDisabled:d,handleColor:"#FFF",dotColor:s,dotColorModal:n,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}};function Hb(e){const{opacityDisabled:t,heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:o,sizeSmall:n,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}}const Db={name:"Spin",common:V,self:Hb};function Nb(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const Fb={name:"Statistic",common:V,self:Nb},jb={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function Wb(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:n,primaryColor:r,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},jb),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:n,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:n,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:n,splitorColorWait:n,splitorColorFinish:r,splitorColorError:n,headerTextColorProcess:a,headerTextColorWait:n,headerTextColorFinish:n,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:n,descriptionTextColorFinish:n,descriptionTextColorError:i})}const Vb={name:"Steps",common:V,self:Wb},Ub={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},Kb={name:"Switch",common:V,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:n,primaryColor:r,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},Ub),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:n,railBorderRadiusMedium:n,railBorderRadiusLarge:n,buttonBorderRadiusSmall:n,buttonBorderRadiusMedium:n,buttonBorderRadiusLarge:n,boxShadowFocus:`0 0 8px 0 ${J(r,{alpha:.3})}`})}},Gb={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function qc(e){const{dividerColor:t,cardColor:o,modalColor:n,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:d,lineHeight:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Gb),{fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:m,lineHeight:u,borderRadius:c,borderColor:ie(o,t),borderColorModal:ie(n,t),borderColorPopover:ie(r,t),tdColor:o,tdColorModal:n,tdColorPopover:r,tdColorStriped:ie(o,a),tdColorStripedModal:ie(n,a),tdColorStripedPopover:ie(r,a),thColor:ie(o,i),thColorModal:ie(n,i),thColorPopover:ie(r,i),thTextColor:s,tdTextColor:l,thFontWeight:d})}const ZS={name:"Table",common:xe,self:qc},qb={name:"Table",common:V,self:qc},Xb={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function Xc(e){const{textColor2:t,primaryColor:o,textColorDisabled:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:d,dividerColor:u,fontWeight:f,textColor1:h,borderRadius:m,fontSize:p,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Xb),{colorSegment:c,tabFontSizeCard:p,tabTextColorLine:h,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:n,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:n,tabTextColorBar:h,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:n,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:o,tabTextColorDisabledCard:n,barColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:m,tabColor:c,tabColorSegment:d,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}const Yb={name:"Tabs",common:xe,self:Xc},Zb={name:"Tabs",common:V,self(e){const t=Xc(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function Yc(e){const{textColor1:t,textColor2:o,fontWeightStrong:n,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:o,titleFontWeight:n}}const JS={name:"Thing",common:xe,self:Yc},Jb={name:"Thing",common:V,self:Yc},Qb={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},e0={name:"Timeline",common:V,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},Qb),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${n}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:n,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},t0={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},o0={name:"Transfer",common:V,peers:{Checkbox:Co,Scrollbar:Qe,Input:lt,Empty:Xt,Button:et},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:n,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:d,textColorDisabled:u,textColor2:f,textColor3:h,hoverColor:m,closeColorHover:p,closeColorPressed:g,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:P,dividerColor:_}=e;return Object.assign(Object.assign({},t0),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o,borderRadius:s,dividerColor:_,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:d,titleTextColorDisabled:u,extraTextColor:h,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:m,titleFontWeight:t,closeColorHover:p,closeColorPressed:g,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:P})}};function n0(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:n,pressedColor:r,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:J(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:o}}const Zc={name:"Tree",common:V,peers:{Checkbox:Co,Scrollbar:Qe,Empty:Xt},self(e){const{primaryColor:t}=e,o=n0(e);return o.nodeColorActive=J(t,{alpha:.15}),o}},r0={name:"TreeSelect",common:V,peers:{Tree:Zc,Empty:Xt,InternalSelection:Hi}},i0={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function Jc(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:h,successColor:m,codeColor:p}=e;return Object.assign(Object.assign({},i0),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:m,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:p,codeBorder:"1px solid #0000"})}const QS={name:"Typography",common:xe,self:Jc},a0={name:"Typography",common:V,self:Jc};function Qc(e){const{iconColor:t,primaryColor:o,errorColor:n,textColor2:r,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:d,borderRadius:u,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:c,itemColorHoverError:J(n,{alpha:.06}),itemTextColor:r,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}}const e2=We({name:"Upload",common:xe,peers:{Button:tn,Progress:$b},self:Qc}),l0={name:"Upload",common:V,peers:{Button:et,Progress:Gc},self(e){const{errorColor:t}=e,o=Qc(e);return o.itemColorHoverError=J(t,{alpha:.09}),o}},s0={name:"Watermark",common:V,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},c0=We({name:"Watermark",common:xe,self(e){const{fontFamily:t}=e;return{fontFamily:t}}}),d0={name:"Row",common:V},u0={name:"FloatButton",common:V,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:n,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,baseColor:l,borderRadius:c}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:n,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColorPrimary:l,borderRadiusSquare:c}}},f0=se({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=me(Hr,null),{body:t}=document,{style:o}=t;let n=!1,r=!0;Jo(()=>{At(()=>{var i,a;const{textColor2:s,fontSize:l,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:u,lineHeight:f}=e?hs({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||xe,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):xe;if(n||!t.hasAttribute("n-styled")){o.setProperty("-webkit-text-size-adjust","100%"),o.setProperty("-webkit-tap-highlight-color","transparent"),o.padding="0",o.margin="0",o.backgroundColor=d,o.color=s,o.fontSize=l,o.fontFamily=c,o.lineHeight=f;const h=`color .3s ${u}, background-color .3s ${u}`;r?setTimeout(()=>{o.transition=h},0):o.transition=h,t.setAttribute("n-styled",""),n=!0,r=!1}})}),yf(()=>{n&&t.removeAttribute("n-styled")})},render(){return null}});function h0(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const p0={name:"IconWrapper",common:V,self:h0},m0={name:"Image",common:V,peers:{Tooltip:er},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},ed=ze("n-layout-sider"),Ui={type:String,default:"static"},g0=T("layout",` color: var(--n-text-color); background-color: var(--n-color); box-sizing: border-box; @@ -489,7 +489,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d left: 0; top: 0; bottom: 0; - `)]),_0=se({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return b("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},b(nn,{clsPrefix:e},{default:()=>b(Us,null)}))}}),E0=se({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return b("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},b("div",{class:`${e}-layout-toggle-bar__top`}),b("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),P0={position:Ui,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},k0=se({name:"LayoutSider",props:Object.assign(Object.assign({},ke.props),P0),setup(e){const t=me(td),o=B(null),n=B(null),r=B(e.defaultCollapsed),i=fo(be(e,"collapsed"),r),a=F(()=>ao(i.value?e.collapsedWidth:e.width)),s=F(()=>e.collapseMode!=="transform"?{}:{minWidth:ao(e.width)}),l=F(()=>t?t.siderPlacement:"left");function c(x,_){if(e.nativeScrollbar){const{value:C}=o;C&&(_===void 0?C.scrollTo(x):C.scrollTo(x,_))}else{const{value:C}=n;C&&C.scrollTo(x,_)}}function d(){const{"onUpdate:collapsed":x,onUpdateCollapsed:_,onExpand:C,onCollapse:A}=e,{value:S}=i;_&&Oe(_,!S),x&&Oe(x,!S),r.value=!S,S?C&&Oe(C):A&&Oe(A)}let u=0,f=0;const h=x=>{var _;const C=x.target;u=C.scrollLeft,f=C.scrollTop,(_=e.onScroll)===null||_===void 0||_.call(e,x)};vs(()=>{if(e.nativeScrollbar){const x=o.value;x&&(x.scrollTop=f,x.scrollLeft=u)}}),ve(ed,{collapsedRef:i,collapseModeRef:be(e,"collapseMode")});const{mergedClsPrefixRef:m,inlineThemeDisabled:p}=Xe(e),g=ke("Layout","-layout-sider",S0,Vi,e,m);function v(x){var _,C;x.propertyName==="max-width"&&(i.value?(_=e.onAfterLeave)===null||_===void 0||_.call(e):(C=e.onAfterEnter)===null||C===void 0||C.call(e))}const y={scrollTo:c},P=F(()=>{const{common:{cubicBezierEaseInOut:x},self:_}=g.value,{siderToggleButtonColor:C,siderToggleButtonBorder:A,siderToggleBarColor:S,siderToggleBarColorHover:R}=_,z={"--n-bezier":x,"--n-toggle-button-color":C,"--n-toggle-button-border":A,"--n-toggle-bar-color":S,"--n-toggle-bar-color-hover":R};return e.inverted?(z["--n-color"]=_.siderColorInverted,z["--n-text-color"]=_.textColorInverted,z["--n-border-color"]=_.siderBorderColorInverted,z["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColorInverted,z.__invertScrollbar=_.__invertScrollbar):(z["--n-color"]=_.siderColor,z["--n-text-color"]=_.textColor,z["--n-border-color"]=_.siderBorderColor,z["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColor),z}),E=p?ft("layout-sider",F(()=>e.inverted?"a":"b"),P,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:n,mergedClsPrefix:m,mergedTheme:g,styleMaxWidth:a,mergedCollapsed:i,scrollContainerStyle:s,siderPlacement:l,handleNativeElScroll:h,handleTransitionend:v,handleTriggerClick:d,inlineThemeDisabled:p,cssVars:P,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,o&&`${t}-layout-sider--collapsed`,(!o||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:ao(this.width)}]},this.nativeScrollbar?b("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):b(Si,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),n?n==="bar"?b(E0,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):b(_0,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?b("div",{class:`${t}-layout-sider__border`}):null)}}),T0={extraFontSize:"12px",width:"440px"},R0={name:"Transfer",common:V,peers:{Checkbox:Co,Scrollbar:Qe,Input:lt,Empty:Xt,Button:et},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:d,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:m,textColor2:p,hoverColor:g}=e;return Object.assign(Object.assign({},T0),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:m,extraTextColor:p,filterDividerColor:"#0000",itemTextColor:p,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:n,iconColor:o,iconColorDisabled:t})}},nd=ze("n-loading-bar"),O0=ze("n-loading-bar-api"),$0=T("loading-bar-container",` + `)]),_0=se({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return b("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},b(nn,{clsPrefix:e},{default:()=>b(Us,null)}))}}),E0=se({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return b("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},b("div",{class:`${e}-layout-toggle-bar__top`}),b("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),P0={position:Ui,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},k0=se({name:"LayoutSider",props:Object.assign(Object.assign({},ke.props),P0),setup(e){const t=me(td),o=B(null),n=B(null),r=B(e.defaultCollapsed),i=fo(be(e,"collapsed"),r),a=F(()=>ao(i.value?e.collapsedWidth:e.width)),s=F(()=>e.collapseMode!=="transform"?{}:{minWidth:ao(e.width)}),l=F(()=>t?t.siderPlacement:"left");function c(x,E){if(e.nativeScrollbar){const{value:C}=o;C&&(E===void 0?C.scrollTo(x):C.scrollTo(x,E))}else{const{value:C}=n;C&&C.scrollTo(x,E)}}function d(){const{"onUpdate:collapsed":x,onUpdateCollapsed:E,onExpand:C,onCollapse:A}=e,{value:S}=i;E&&Oe(E,!S),x&&Oe(x,!S),r.value=!S,S?C&&Oe(C):A&&Oe(A)}let u=0,f=0;const h=x=>{var E;const C=x.target;u=C.scrollLeft,f=C.scrollTop,(E=e.onScroll)===null||E===void 0||E.call(e,x)};vs(()=>{if(e.nativeScrollbar){const x=o.value;x&&(x.scrollTop=f,x.scrollLeft=u)}}),ve(ed,{collapsedRef:i,collapseModeRef:be(e,"collapseMode")});const{mergedClsPrefixRef:m,inlineThemeDisabled:p}=Xe(e),g=ke("Layout","-layout-sider",S0,Vi,e,m);function v(x){var E,C;x.propertyName==="max-width"&&(i.value?(E=e.onAfterLeave)===null||E===void 0||E.call(e):(C=e.onAfterEnter)===null||C===void 0||C.call(e))}const y={scrollTo:c},P=F(()=>{const{common:{cubicBezierEaseInOut:x},self:E}=g.value,{siderToggleButtonColor:C,siderToggleButtonBorder:A,siderToggleBarColor:S,siderToggleBarColorHover:R}=E,z={"--n-bezier":x,"--n-toggle-button-color":C,"--n-toggle-button-border":A,"--n-toggle-bar-color":S,"--n-toggle-bar-color-hover":R};return e.inverted?(z["--n-color"]=E.siderColorInverted,z["--n-text-color"]=E.textColorInverted,z["--n-border-color"]=E.siderBorderColorInverted,z["--n-toggle-button-icon-color"]=E.siderToggleButtonIconColorInverted,z.__invertScrollbar=E.__invertScrollbar):(z["--n-color"]=E.siderColor,z["--n-text-color"]=E.textColor,z["--n-border-color"]=E.siderBorderColor,z["--n-toggle-button-icon-color"]=E.siderToggleButtonIconColor),z}),_=p?ft("layout-sider",F(()=>e.inverted?"a":"b"),P,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:n,mergedClsPrefix:m,mergedTheme:g,styleMaxWidth:a,mergedCollapsed:i,scrollContainerStyle:s,siderPlacement:l,handleNativeElScroll:h,handleTransitionend:v,handleTriggerClick:d,inlineThemeDisabled:p,cssVars:P,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,o&&`${t}-layout-sider--collapsed`,(!o||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:ao(this.width)}]},this.nativeScrollbar?b("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):b(Si,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),n?n==="bar"?b(E0,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):b(_0,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?b("div",{class:`${t}-layout-sider__border`}):null)}}),T0={extraFontSize:"12px",width:"440px"},R0={name:"Transfer",common:V,peers:{Checkbox:Co,Scrollbar:Qe,Input:lt,Empty:Xt,Button:et},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:n,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:d,inputColor:u,tableHeaderColor:f,textColor1:h,textColorDisabled:m,textColor2:p,hoverColor:g}=e;return Object.assign(Object.assign({},T0),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:h,titleTextColorDisabled:m,extraTextColor:p,filterDividerColor:"#0000",itemTextColor:p,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:n,iconColor:o,iconColorDisabled:t})}},nd=ze("n-loading-bar"),O0=ze("n-loading-bar-api"),$0=T("loading-bar-container",` z-index: 5999; position: fixed; top: 0; @@ -514,7 +514,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d transition: max-width .2s linear, background .2s linear; - `)])]);var vn=function(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return new(o||(o=Promise))(function(i,a){function s(d){try{c(n.next(d))}catch(u){a(u)}}function l(d){try{c(n.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):r(d.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};function bn(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const I0=se({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Xe(),{props:t,mergedClsPrefixRef:o}=me(nd),n=B(null),r=B(!1),i=B(!1),a=B(!1),s=B(!1);let l=!1;const c=B(!1),d=F(()=>{const{loadingBarStyle:x}=t;return x?x[c.value?"error":"loading"]:""});function u(){return vn(this,void 0,void 0,function*(){r.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield qe(),s.value=!1})}function f(){return vn(this,arguments,void 0,function*(x=0,_=80,C="starting"){if(i.value=!0,yield u(),l)return;a.value=!0,yield qe();const A=n.value;A&&(A.style.maxWidth=`${x}%`,A.style.transition="none",A.offsetWidth,A.className=bn(C,o.value),A.style.transition="",A.style.maxWidth=`${_}%`)})}function h(){return vn(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield qe()),l=!0;const x=n.value;x&&(x.className=bn("finishing",o.value),x.style.maxWidth="100%",x.offsetWidth,a.value=!1)})}function m(){if(!(l||c.value))if(!a.value)f(100,100,"error").then(()=>{c.value=!0;const x=n.value;x&&(x.className=bn("error",o.value),x.offsetWidth,a.value=!1)});else{c.value=!0;const x=n.value;if(!x)return;x.className=bn("error",o.value),x.style.maxWidth="100%",x.offsetWidth,a.value=!1}}function p(){r.value=!0}function g(){r.value=!1}function v(){return vn(this,void 0,void 0,function*(){yield u()})}const y=ke("LoadingBar","-loading-bar",$0,xb,t,o),P=F(()=>{const{self:{height:x,colorError:_,colorLoading:C}}=y.value;return{"--n-height":x,"--n-color-loading":C,"--n-color-error":_}}),E=e?ft("loading-bar",void 0,P,t):void 0;return{mergedClsPrefix:o,loadingBarRef:n,started:i,loading:a,entering:r,transitionDisabled:s,start:f,error:m,finish:h,handleEnter:p,handleAfterEnter:g,handleAfterLeave:v,mergedLoadingBarStyle:d,cssVars:e?void 0:P,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return b(en,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),Ct(b("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},b("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Uo,this.loading||!this.loading&&this.entering]])}})}}),A0=Object.assign(Object.assign({},ke.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),z0=se({name:"LoadingBarProvider",props:A0,setup(e){const t=Wn(),o=B(null),n={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():qe(()=>{var a;(a=o.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():qe(()=>{var a;(a=o.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():qe(()=>{var a;(a=o.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=Xe(e);return ve(O0,n),ve(nd,{props:e,mergedClsPrefixRef:r}),Object.assign(n,{loadingBarRef:o})},render(){var e,t;return b(mt,null,b(mi,{disabled:this.to===!1,to:this.to||"body"},b(I0,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),ln=ze("n-menu"),Ki=ze("n-submenu"),Gi=ze("n-menu-item-group"),xn=8;function qi(e){const t=me(ln),{props:o,mergedCollapsedRef:n}=t,r=me(Ki,null),i=me(Gi,null),a=F(()=>o.mode==="horizontal"),s=F(()=>a.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=F(()=>{var f;return Math.max((f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize,o.iconSize)}),c=F(()=>{var f;return!a.value&&e.root&&n.value&&(f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize}),d=F(()=>{if(a.value)return;const{collapsedWidth:f,indent:h,rootIndent:m}=o,{root:p,isGroup:g}=e,v=m===void 0?h:m;return p?n.value?f/2-l.value/2:v:i&&typeof i.paddingLeftRef.value=="number"?h/2+i.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(g?h/2:h)+r.paddingLeftRef.value:0}),u=F(()=>{const{collapsedWidth:f,indent:h,rootIndent:m}=o,{value:p}=l,{root:g}=e;return a.value||!g||!n.value?xn:(m===void 0?h:m)+p+xn-(f+p)/2});return{dropdownPlacement:s,activeIconSize:c,maxIconSize:l,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:r}}const Xi={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},rd=Object.assign(Object.assign({},Xi),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),M0=se({name:"MenuOptionGroup",props:rd,setup(e){ve(Ki,null);const t=qi(e);ve(Gi,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:o,props:n}=me(ln);return function(){const{value:r}=o,i=t.paddingLeft.value,{nodeProps:a}=n,s=a==null?void 0:a(e.tmNode.rawNode);return b("div",{class:`${r}-menu-item-group`,role:"group"},b("div",Object.assign({},s,{class:[`${r}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),je(e.title),e.extra?b(mt,null," ",je(e.extra)):null),b("div",null,e.tmNodes.map(l=>Yi(l,n))))}}}),id=se({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=me(ln);return{menuProps:t,style:F(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:F(()=>{const{maxIconSize:o,activeIconSize:n,iconMarginRight:r}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${n}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:n,renderExtra:r,expandIcon:i}}=this,a=o?o(t.rawNode):je(this.icon);return b("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&b("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),b("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:n?n(t.rawNode):je(this.title),this.extra||r?b("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):je(this.extra)):null),this.showArrow?b(nn,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):b(Lm,null)}):null)}}),ad=Object.assign(Object.assign({},Xi),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),Qr=se({name:"Submenu",props:ad,setup(e){const t=qi(e),{NMenu:o,NSubmenu:n}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:a}=o,s=F(()=>{const{disabled:f}=e;return n!=null&&n.mergedDisabledRef.value||r.disabled?!0:f}),l=B(!1);ve(Ki,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),ve(Gi,null);function c(){const{onClick:f}=e;f&&f()}function d(){s.value||(i.value||o.toggleExpand(e.internalKey),c())}function u(f){l.value=f}return{menuProps:r,mergedTheme:a,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:o.mergedValueRef,childActive:Ye(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:o.activePathRef.value.includes(e.internalKey)}),collapsed:F(()=>r.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:F(()=>!s.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:u,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:n}}=this,r=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:f,childActive:h,icon:m,handleClick:p,menuProps:{nodeProps:g},dropdownShow:v,iconMarginRight:y,tmNode:P,mergedClsPrefix:E,isEllipsisPlaceholder:x,extra:_}=this,C=g==null?void 0:g(P.rawNode);return b("div",Object.assign({},C,{class:[`${E}-menu-item`,C==null?void 0:C.class],role:"menuitem"}),b(id,{tmNode:P,paddingLeft:s,collapsed:l,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:u,title:f,extra:_,showArrow:!a,childActive:h,clsPrefix:E,icon:m,hover:v,onClick:p,isEllipsisPlaceholder:x}))},i=()=>b(bs,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:b("div",{class:`${t}-submenu-children`,role:"menu"},a.map(l=>Yi(l,this.menuProps)))}});return this.root?b(_v,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:n}),{default:()=>b("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):b("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),ld=Object.assign(Object.assign({},Xi),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),L0=se({name:"MenuOption",props:ld,setup(e){const t=qi(e),{NSubmenu:o,NMenu:n}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:a}=n,s=o?o.mergedDisabledRef:{value:!1},l=F(()=>s.value||e.disabled);function c(u){const{onClick:f}=e;f&&f(u)}function d(u){l.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),c(u))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:r,dropdownEnabled:Ye(()=>e.root&&a.value&&r.mode!=="horizontal"&&!l.value),selected:Ye(()=>n.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:n,nodeProps:r}}=this,i=r==null?void 0:r(o.rawNode);return b("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),b(hv,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>n?n(o.rawNode):je(this.title),trigger:()=>b(id,{tmNode:o,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),B0=se({name:"MenuDivider",setup(){const e=me(ln),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:b("div",{class:`${t.value}-menu-divider`})}}),H0=on(rd),D0=on(ld),N0=on(ad);function ei(e){return e.type==="divider"||e.type==="render"}function F0(e){return e.type==="divider"}function Yi(e,t){const{rawNode:o}=e,{show:n}=o;if(n===!1)return null;if(ei(o))return F0(o)?b(B0,Object.assign({key:e.key},o.props)):null;const{labelField:r}=t,{key:i,level:a,isGroup:s}=e,l=Object.assign(Object.assign({},o),{title:o.title||o[r],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s});return e.children?e.isGroup?b(M0,yt(l,H0,{tmNode:e,tmNodes:e.children,key:i})):b(Qr,yt(l,N0,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):b(L0,yt(l,D0,{key:i,tmNode:e}))}const tl=[K("&::before","background-color: var(--n-item-color-hover);"),j("arrow",` + `)])]);var vn=function(e,t,o,n){function r(i){return i instanceof o?i:new o(function(a){a(i)})}return new(o||(o=Promise))(function(i,a){function s(d){try{c(n.next(d))}catch(u){a(u)}}function l(d){try{c(n.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):r(d.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};function bn(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const I0=se({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Xe(),{props:t,mergedClsPrefixRef:o}=me(nd),n=B(null),r=B(!1),i=B(!1),a=B(!1),s=B(!1);let l=!1;const c=B(!1),d=F(()=>{const{loadingBarStyle:x}=t;return x?x[c.value?"error":"loading"]:""});function u(){return vn(this,void 0,void 0,function*(){r.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield qe(),s.value=!1})}function f(){return vn(this,arguments,void 0,function*(x=0,E=80,C="starting"){if(i.value=!0,yield u(),l)return;a.value=!0,yield qe();const A=n.value;A&&(A.style.maxWidth=`${x}%`,A.style.transition="none",A.offsetWidth,A.className=bn(C,o.value),A.style.transition="",A.style.maxWidth=`${E}%`)})}function h(){return vn(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield qe()),l=!0;const x=n.value;x&&(x.className=bn("finishing",o.value),x.style.maxWidth="100%",x.offsetWidth,a.value=!1)})}function m(){if(!(l||c.value))if(!a.value)f(100,100,"error").then(()=>{c.value=!0;const x=n.value;x&&(x.className=bn("error",o.value),x.offsetWidth,a.value=!1)});else{c.value=!0;const x=n.value;if(!x)return;x.className=bn("error",o.value),x.style.maxWidth="100%",x.offsetWidth,a.value=!1}}function p(){r.value=!0}function g(){r.value=!1}function v(){return vn(this,void 0,void 0,function*(){yield u()})}const y=ke("LoadingBar","-loading-bar",$0,xb,t,o),P=F(()=>{const{self:{height:x,colorError:E,colorLoading:C}}=y.value;return{"--n-height":x,"--n-color-loading":C,"--n-color-error":E}}),_=e?ft("loading-bar",void 0,P,t):void 0;return{mergedClsPrefix:o,loadingBarRef:n,started:i,loading:a,entering:r,transitionDisabled:s,start:f,error:m,finish:h,handleEnter:p,handleAfterEnter:g,handleAfterLeave:v,mergedLoadingBarStyle:d,cssVars:e?void 0:P,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return b(en,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),Ct(b("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},b("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Uo,this.loading||!this.loading&&this.entering]])}})}}),A0=Object.assign(Object.assign({},ke.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),z0=se({name:"LoadingBarProvider",props:A0,setup(e){const t=Wn(),o=B(null),n={start(){var i;t.value?(i=o.value)===null||i===void 0||i.start():qe(()=>{var a;(a=o.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=o.value)===null||i===void 0||i.error():qe(()=>{var a;(a=o.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=o.value)===null||i===void 0||i.finish():qe(()=>{var a;(a=o.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=Xe(e);return ve(O0,n),ve(nd,{props:e,mergedClsPrefixRef:r}),Object.assign(n,{loadingBarRef:o})},render(){var e,t;return b(mt,null,b(mi,{disabled:this.to===!1,to:this.to||"body"},b(I0,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),ln=ze("n-menu"),Ki=ze("n-submenu"),Gi=ze("n-menu-item-group"),xn=8;function qi(e){const t=me(ln),{props:o,mergedCollapsedRef:n}=t,r=me(Ki,null),i=me(Gi,null),a=F(()=>o.mode==="horizontal"),s=F(()=>a.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=F(()=>{var f;return Math.max((f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize,o.iconSize)}),c=F(()=>{var f;return!a.value&&e.root&&n.value&&(f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize}),d=F(()=>{if(a.value)return;const{collapsedWidth:f,indent:h,rootIndent:m}=o,{root:p,isGroup:g}=e,v=m===void 0?h:m;return p?n.value?f/2-l.value/2:v:i&&typeof i.paddingLeftRef.value=="number"?h/2+i.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(g?h/2:h)+r.paddingLeftRef.value:0}),u=F(()=>{const{collapsedWidth:f,indent:h,rootIndent:m}=o,{value:p}=l,{root:g}=e;return a.value||!g||!n.value?xn:(m===void 0?h:m)+p+xn-(f+p)/2});return{dropdownPlacement:s,activeIconSize:c,maxIconSize:l,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:r}}const Xi={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},rd=Object.assign(Object.assign({},Xi),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),M0=se({name:"MenuOptionGroup",props:rd,setup(e){ve(Ki,null);const t=qi(e);ve(Gi,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:o,props:n}=me(ln);return function(){const{value:r}=o,i=t.paddingLeft.value,{nodeProps:a}=n,s=a==null?void 0:a(e.tmNode.rawNode);return b("div",{class:`${r}-menu-item-group`,role:"group"},b("div",Object.assign({},s,{class:[`${r}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),je(e.title),e.extra?b(mt,null," ",je(e.extra)):null),b("div",null,e.tmNodes.map(l=>Yi(l,n))))}}}),id=se({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=me(ln);return{menuProps:t,style:F(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:F(()=>{const{maxIconSize:o,activeIconSize:n,iconMarginRight:r}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${n}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:n,renderExtra:r,expandIcon:i}}=this,a=o?o(t.rawNode):je(this.icon);return b("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&b("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),b("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:n?n(t.rawNode):je(this.title),this.extra||r?b("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):je(this.extra)):null),this.showArrow?b(nn,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):b(Lm,null)}):null)}}),ad=Object.assign(Object.assign({},Xi),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),Qr=se({name:"Submenu",props:ad,setup(e){const t=qi(e),{NMenu:o,NSubmenu:n}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:a}=o,s=F(()=>{const{disabled:f}=e;return n!=null&&n.mergedDisabledRef.value||r.disabled?!0:f}),l=B(!1);ve(Ki,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),ve(Gi,null);function c(){const{onClick:f}=e;f&&f()}function d(){s.value||(i.value||o.toggleExpand(e.internalKey),c())}function u(f){l.value=f}return{menuProps:r,mergedTheme:a,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:o.mergedValueRef,childActive:Ye(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:o.activePathRef.value.includes(e.internalKey)}),collapsed:F(()=>r.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:F(()=>!s.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:u,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:n}}=this,r=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:f,childActive:h,icon:m,handleClick:p,menuProps:{nodeProps:g},dropdownShow:v,iconMarginRight:y,tmNode:P,mergedClsPrefix:_,isEllipsisPlaceholder:x,extra:E}=this,C=g==null?void 0:g(P.rawNode);return b("div",Object.assign({},C,{class:[`${_}-menu-item`,C==null?void 0:C.class],role:"menuitem"}),b(id,{tmNode:P,paddingLeft:s,collapsed:l,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:u,title:f,extra:E,showArrow:!a,childActive:h,clsPrefix:_,icon:m,hover:v,onClick:p,isEllipsisPlaceholder:x}))},i=()=>b(bs,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:b("div",{class:`${t}-submenu-children`,role:"menu"},a.map(l=>Yi(l,this.menuProps)))}});return this.root?b(_v,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:n}),{default:()=>b("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):b("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),ld=Object.assign(Object.assign({},Xi),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),L0=se({name:"MenuOption",props:ld,setup(e){const t=qi(e),{NSubmenu:o,NMenu:n}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:a}=n,s=o?o.mergedDisabledRef:{value:!1},l=F(()=>s.value||e.disabled);function c(u){const{onClick:f}=e;f&&f(u)}function d(u){l.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),c(u))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:r,dropdownEnabled:Ye(()=>e.root&&a.value&&r.mode!=="horizontal"&&!l.value),selected:Ye(()=>n.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:n,nodeProps:r}}=this,i=r==null?void 0:r(o.rawNode);return b("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),b(hv,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>n?n(o.rawNode):je(this.title),trigger:()=>b(id,{tmNode:o,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),B0=se({name:"MenuDivider",setup(){const e=me(ln),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:b("div",{class:`${t.value}-menu-divider`})}}),H0=on(rd),D0=on(ld),N0=on(ad);function ei(e){return e.type==="divider"||e.type==="render"}function F0(e){return e.type==="divider"}function Yi(e,t){const{rawNode:o}=e,{show:n}=o;if(n===!1)return null;if(ei(o))return F0(o)?b(B0,Object.assign({key:e.key},o.props)):null;const{labelField:r}=t,{key:i,level:a,isGroup:s}=e,l=Object.assign(Object.assign({},o),{title:o.title||o[r],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s});return e.children?e.isGroup?b(M0,yt(l,H0,{tmNode:e,tmNodes:e.children,key:i})):b(Qr,yt(l,N0,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):b(L0,yt(l,D0,{key:i,tmNode:e}))}const tl=[K("&::before","background-color: var(--n-item-color-hover);"),j("arrow",` color: var(--n-arrow-color-hover); `),j("icon",` color: var(--n-item-icon-color-hover); @@ -693,7 +693,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d background-color: var(--n-divider-color); height: 1px; margin: 6px 18px; - `)]);function Mt(e,t){return[N("hover",e,t),K("&:hover",e,t)]}const W0=Object.assign(Object.assign({},ke.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),V0=se({name:"Menu",inheritAttrs:!1,props:W0,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Xe(e),n=ke("Menu","-menu",j0,Sb,e,t),r=me(ed,null),i=F(()=>{var U;const{collapsed:oe}=e;if(oe!==void 0)return oe;if(r){const{collapseModeRef:M,collapsedRef:ae}=r;if(M.value==="width")return(U=ae.value)!==null&&U!==void 0?U:!1}return!1}),a=F(()=>{const{keyField:U,childrenField:oe,disabledField:M}=e;return En(e.items||e.options,{getIgnored(ae){return ei(ae)},getChildren(ae){return ae[oe]},getDisabled(ae){return ae[M]},getKey(ae){var ce;return(ce=ae[U])!==null&&ce!==void 0?ce:ae.name}})}),s=F(()=>new Set(a.value.treeNodes.map(U=>U.key))),{watchProps:l}=e,c=B(null);l!=null&&l.includes("defaultValue")?At(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=be(e,"value"),u=fo(d,c),f=B([]),h=()=>{f.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(u.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?At(h):h();const m=Mn(e,["expandedNames","expandedKeys"]),p=fo(m,f),g=F(()=>a.value.treeNodes),v=F(()=>a.value.getPath(u.value).keyPath);ve(ln,{props:e,mergedCollapsedRef:i,mergedThemeRef:n,mergedValueRef:u,mergedExpandedKeysRef:p,activePathRef:v,mergedClsPrefixRef:t,isHorizontalRef:F(()=>e.mode==="horizontal"),invertedRef:be(e,"inverted"),doSelect:y,toggleExpand:E});function y(U,oe){const{"onUpdate:value":M,onUpdateValue:ae,onSelect:ce}=e;ae&&Oe(ae,U,oe),M&&Oe(M,U,oe),ce&&Oe(ce,U,oe),c.value=U}function P(U){const{"onUpdate:expandedKeys":oe,onUpdateExpandedKeys:M,onExpandedNamesChange:ae,onOpenNamesChange:ce}=e;oe&&Oe(oe,U),M&&Oe(M,U),ae&&Oe(ae,U),ce&&Oe(ce,U),f.value=U}function E(U){const oe=Array.from(p.value),M=oe.findIndex(ae=>ae===U);if(~M)oe.splice(M,1);else{if(e.accordion&&s.value.has(U)){const ae=oe.findIndex(ce=>s.value.has(ce));ae>-1&&oe.splice(ae,1)}oe.push(U)}P(oe)}const x=U=>{const oe=a.value.getPath(U??u.value,{includeSelf:!1}).keyPath;if(!oe.length)return;const M=Array.from(p.value),ae=new Set([...M,...oe]);e.accordion&&s.value.forEach(ce=>{ae.has(ce)&&!oe.includes(ce)&&ae.delete(ce)}),P(Array.from(ae))},_=F(()=>{const{inverted:U}=e,{common:{cubicBezierEaseInOut:oe},self:M}=n.value,{borderRadius:ae,borderColorHorizontal:ce,fontSize:Pe,itemHeight:O,dividerColor:Y}=M,k={"--n-divider-color":Y,"--n-bezier":oe,"--n-font-size":Pe,"--n-border-color-horizontal":ce,"--n-border-radius":ae,"--n-item-height":O};return U?(k["--n-group-text-color"]=M.groupTextColorInverted,k["--n-color"]=M.colorInverted,k["--n-item-text-color"]=M.itemTextColorInverted,k["--n-item-text-color-hover"]=M.itemTextColorHoverInverted,k["--n-item-text-color-active"]=M.itemTextColorActiveInverted,k["--n-item-text-color-child-active"]=M.itemTextColorChildActiveInverted,k["--n-item-text-color-child-active-hover"]=M.itemTextColorChildActiveInverted,k["--n-item-text-color-active-hover"]=M.itemTextColorActiveHoverInverted,k["--n-item-icon-color"]=M.itemIconColorInverted,k["--n-item-icon-color-hover"]=M.itemIconColorHoverInverted,k["--n-item-icon-color-active"]=M.itemIconColorActiveInverted,k["--n-item-icon-color-active-hover"]=M.itemIconColorActiveHoverInverted,k["--n-item-icon-color-child-active"]=M.itemIconColorChildActiveInverted,k["--n-item-icon-color-child-active-hover"]=M.itemIconColorChildActiveHoverInverted,k["--n-item-icon-color-collapsed"]=M.itemIconColorCollapsedInverted,k["--n-item-text-color-horizontal"]=M.itemTextColorHorizontalInverted,k["--n-item-text-color-hover-horizontal"]=M.itemTextColorHoverHorizontalInverted,k["--n-item-text-color-active-horizontal"]=M.itemTextColorActiveHorizontalInverted,k["--n-item-text-color-child-active-horizontal"]=M.itemTextColorChildActiveHorizontalInverted,k["--n-item-text-color-child-active-hover-horizontal"]=M.itemTextColorChildActiveHoverHorizontalInverted,k["--n-item-text-color-active-hover-horizontal"]=M.itemTextColorActiveHoverHorizontalInverted,k["--n-item-icon-color-horizontal"]=M.itemIconColorHorizontalInverted,k["--n-item-icon-color-hover-horizontal"]=M.itemIconColorHoverHorizontalInverted,k["--n-item-icon-color-active-horizontal"]=M.itemIconColorActiveHorizontalInverted,k["--n-item-icon-color-active-hover-horizontal"]=M.itemIconColorActiveHoverHorizontalInverted,k["--n-item-icon-color-child-active-horizontal"]=M.itemIconColorChildActiveHorizontalInverted,k["--n-item-icon-color-child-active-hover-horizontal"]=M.itemIconColorChildActiveHoverHorizontalInverted,k["--n-arrow-color"]=M.arrowColorInverted,k["--n-arrow-color-hover"]=M.arrowColorHoverInverted,k["--n-arrow-color-active"]=M.arrowColorActiveInverted,k["--n-arrow-color-active-hover"]=M.arrowColorActiveHoverInverted,k["--n-arrow-color-child-active"]=M.arrowColorChildActiveInverted,k["--n-arrow-color-child-active-hover"]=M.arrowColorChildActiveHoverInverted,k["--n-item-color-hover"]=M.itemColorHoverInverted,k["--n-item-color-active"]=M.itemColorActiveInverted,k["--n-item-color-active-hover"]=M.itemColorActiveHoverInverted,k["--n-item-color-active-collapsed"]=M.itemColorActiveCollapsedInverted):(k["--n-group-text-color"]=M.groupTextColor,k["--n-color"]=M.color,k["--n-item-text-color"]=M.itemTextColor,k["--n-item-text-color-hover"]=M.itemTextColorHover,k["--n-item-text-color-active"]=M.itemTextColorActive,k["--n-item-text-color-child-active"]=M.itemTextColorChildActive,k["--n-item-text-color-child-active-hover"]=M.itemTextColorChildActiveHover,k["--n-item-text-color-active-hover"]=M.itemTextColorActiveHover,k["--n-item-icon-color"]=M.itemIconColor,k["--n-item-icon-color-hover"]=M.itemIconColorHover,k["--n-item-icon-color-active"]=M.itemIconColorActive,k["--n-item-icon-color-active-hover"]=M.itemIconColorActiveHover,k["--n-item-icon-color-child-active"]=M.itemIconColorChildActive,k["--n-item-icon-color-child-active-hover"]=M.itemIconColorChildActiveHover,k["--n-item-icon-color-collapsed"]=M.itemIconColorCollapsed,k["--n-item-text-color-horizontal"]=M.itemTextColorHorizontal,k["--n-item-text-color-hover-horizontal"]=M.itemTextColorHoverHorizontal,k["--n-item-text-color-active-horizontal"]=M.itemTextColorActiveHorizontal,k["--n-item-text-color-child-active-horizontal"]=M.itemTextColorChildActiveHorizontal,k["--n-item-text-color-child-active-hover-horizontal"]=M.itemTextColorChildActiveHoverHorizontal,k["--n-item-text-color-active-hover-horizontal"]=M.itemTextColorActiveHoverHorizontal,k["--n-item-icon-color-horizontal"]=M.itemIconColorHorizontal,k["--n-item-icon-color-hover-horizontal"]=M.itemIconColorHoverHorizontal,k["--n-item-icon-color-active-horizontal"]=M.itemIconColorActiveHorizontal,k["--n-item-icon-color-active-hover-horizontal"]=M.itemIconColorActiveHoverHorizontal,k["--n-item-icon-color-child-active-horizontal"]=M.itemIconColorChildActiveHorizontal,k["--n-item-icon-color-child-active-hover-horizontal"]=M.itemIconColorChildActiveHoverHorizontal,k["--n-arrow-color"]=M.arrowColor,k["--n-arrow-color-hover"]=M.arrowColorHover,k["--n-arrow-color-active"]=M.arrowColorActive,k["--n-arrow-color-active-hover"]=M.arrowColorActiveHover,k["--n-arrow-color-child-active"]=M.arrowColorChildActive,k["--n-arrow-color-child-active-hover"]=M.arrowColorChildActiveHover,k["--n-item-color-hover"]=M.itemColorHover,k["--n-item-color-active"]=M.itemColorActive,k["--n-item-color-active-hover"]=M.itemColorActiveHover,k["--n-item-color-active-collapsed"]=M.itemColorActiveCollapsed),k}),C=o?ft("menu",F(()=>e.inverted?"a":"b"),_,e):void 0,A=Vn(),S=B(null),R=B(null);let z=!0;const $=()=>{var U;z?z=!1:(U=S.value)===null||U===void 0||U.sync({showAllItemsBeforeCalculate:!0})};function Q(){return document.getElementById(A)}const ne=B(-1);function L(U){ne.value=e.options.length-U}function le(U){U||(ne.value=-1)}const w=F(()=>{const U=ne.value;return{children:U===-1?[]:e.options.slice(U)}}),D=F(()=>{const{childrenField:U,disabledField:oe,keyField:M}=e;return En([w.value],{getIgnored(ae){return ei(ae)},getChildren(ae){return ae[U]},getDisabled(ae){return ae[oe]},getKey(ae){var ce;return(ce=ae[M])!==null&&ce!==void 0?ce:ae.name}})}),q=F(()=>En([{}]).treeNodes[0]);function te(){var U;if(ne.value===-1)return b(Qr,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:q.value,domId:A,isEllipsisPlaceholder:!0});const oe=D.value.treeNodes[0],M=v.value,ae=!!(!((U=oe.children)===null||U===void 0)&&U.some(ce=>M.includes(ce.key)));return b(Qr,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:ae,tmNode:oe,domId:A,rawNodes:oe.rawNode.children||[],tmNodes:oe.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:m,uncontrolledExpanededKeys:f,mergedExpandedKeys:p,uncontrolledValue:c,mergedValue:u,activePath:v,tmNodes:g,mergedTheme:n,mergedCollapsed:i,cssVars:o?void 0:_,themeClass:C==null?void 0:C.themeClass,overflowRef:S,counterRef:R,updateCounter:()=>{},onResize:$,onUpdateOverflow:le,onUpdateCount:L,renderCounter:te,getCounter:Q,onRender:C==null?void 0:C.onRender,showOption:x,deriveResponsiveState:$}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:n}=this;n==null||n();const r=()=>this.tmNodes.map(l=>Yi(l,this.$props)),a=t==="horizontal"&&this.responsive,s=()=>b("div",xo(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),a?b(hh,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:this.renderCounter}):r());return a?b(Sn,{onResize:this.onResize},{default:s}):s()}}),sd={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},U0=ze("n-message-api"),cd=ze("n-message-provider"),K0=K([T("message-wrapper",` + `)]);function Mt(e,t){return[N("hover",e,t),K("&:hover",e,t)]}const W0=Object.assign(Object.assign({},ke.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),V0=se({name:"Menu",inheritAttrs:!1,props:W0,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Xe(e),n=ke("Menu","-menu",j0,Sb,e,t),r=me(ed,null),i=F(()=>{var U;const{collapsed:oe}=e;if(oe!==void 0)return oe;if(r){const{collapseModeRef:M,collapsedRef:ae}=r;if(M.value==="width")return(U=ae.value)!==null&&U!==void 0?U:!1}return!1}),a=F(()=>{const{keyField:U,childrenField:oe,disabledField:M}=e;return En(e.items||e.options,{getIgnored(ae){return ei(ae)},getChildren(ae){return ae[oe]},getDisabled(ae){return ae[M]},getKey(ae){var ce;return(ce=ae[U])!==null&&ce!==void 0?ce:ae.name}})}),s=F(()=>new Set(a.value.treeNodes.map(U=>U.key))),{watchProps:l}=e,c=B(null);l!=null&&l.includes("defaultValue")?At(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=be(e,"value"),u=fo(d,c),f=B([]),h=()=>{f.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(u.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?At(h):h();const m=Mn(e,["expandedNames","expandedKeys"]),p=fo(m,f),g=F(()=>a.value.treeNodes),v=F(()=>a.value.getPath(u.value).keyPath);ve(ln,{props:e,mergedCollapsedRef:i,mergedThemeRef:n,mergedValueRef:u,mergedExpandedKeysRef:p,activePathRef:v,mergedClsPrefixRef:t,isHorizontalRef:F(()=>e.mode==="horizontal"),invertedRef:be(e,"inverted"),doSelect:y,toggleExpand:_});function y(U,oe){const{"onUpdate:value":M,onUpdateValue:ae,onSelect:ce}=e;ae&&Oe(ae,U,oe),M&&Oe(M,U,oe),ce&&Oe(ce,U,oe),c.value=U}function P(U){const{"onUpdate:expandedKeys":oe,onUpdateExpandedKeys:M,onExpandedNamesChange:ae,onOpenNamesChange:ce}=e;oe&&Oe(oe,U),M&&Oe(M,U),ae&&Oe(ae,U),ce&&Oe(ce,U),f.value=U}function _(U){const oe=Array.from(p.value),M=oe.findIndex(ae=>ae===U);if(~M)oe.splice(M,1);else{if(e.accordion&&s.value.has(U)){const ae=oe.findIndex(ce=>s.value.has(ce));ae>-1&&oe.splice(ae,1)}oe.push(U)}P(oe)}const x=U=>{const oe=a.value.getPath(U??u.value,{includeSelf:!1}).keyPath;if(!oe.length)return;const M=Array.from(p.value),ae=new Set([...M,...oe]);e.accordion&&s.value.forEach(ce=>{ae.has(ce)&&!oe.includes(ce)&&ae.delete(ce)}),P(Array.from(ae))},E=F(()=>{const{inverted:U}=e,{common:{cubicBezierEaseInOut:oe},self:M}=n.value,{borderRadius:ae,borderColorHorizontal:ce,fontSize:Pe,itemHeight:O,dividerColor:Y}=M,k={"--n-divider-color":Y,"--n-bezier":oe,"--n-font-size":Pe,"--n-border-color-horizontal":ce,"--n-border-radius":ae,"--n-item-height":O};return U?(k["--n-group-text-color"]=M.groupTextColorInverted,k["--n-color"]=M.colorInverted,k["--n-item-text-color"]=M.itemTextColorInverted,k["--n-item-text-color-hover"]=M.itemTextColorHoverInverted,k["--n-item-text-color-active"]=M.itemTextColorActiveInverted,k["--n-item-text-color-child-active"]=M.itemTextColorChildActiveInverted,k["--n-item-text-color-child-active-hover"]=M.itemTextColorChildActiveInverted,k["--n-item-text-color-active-hover"]=M.itemTextColorActiveHoverInverted,k["--n-item-icon-color"]=M.itemIconColorInverted,k["--n-item-icon-color-hover"]=M.itemIconColorHoverInverted,k["--n-item-icon-color-active"]=M.itemIconColorActiveInverted,k["--n-item-icon-color-active-hover"]=M.itemIconColorActiveHoverInverted,k["--n-item-icon-color-child-active"]=M.itemIconColorChildActiveInverted,k["--n-item-icon-color-child-active-hover"]=M.itemIconColorChildActiveHoverInverted,k["--n-item-icon-color-collapsed"]=M.itemIconColorCollapsedInverted,k["--n-item-text-color-horizontal"]=M.itemTextColorHorizontalInverted,k["--n-item-text-color-hover-horizontal"]=M.itemTextColorHoverHorizontalInverted,k["--n-item-text-color-active-horizontal"]=M.itemTextColorActiveHorizontalInverted,k["--n-item-text-color-child-active-horizontal"]=M.itemTextColorChildActiveHorizontalInverted,k["--n-item-text-color-child-active-hover-horizontal"]=M.itemTextColorChildActiveHoverHorizontalInverted,k["--n-item-text-color-active-hover-horizontal"]=M.itemTextColorActiveHoverHorizontalInverted,k["--n-item-icon-color-horizontal"]=M.itemIconColorHorizontalInverted,k["--n-item-icon-color-hover-horizontal"]=M.itemIconColorHoverHorizontalInverted,k["--n-item-icon-color-active-horizontal"]=M.itemIconColorActiveHorizontalInverted,k["--n-item-icon-color-active-hover-horizontal"]=M.itemIconColorActiveHoverHorizontalInverted,k["--n-item-icon-color-child-active-horizontal"]=M.itemIconColorChildActiveHorizontalInverted,k["--n-item-icon-color-child-active-hover-horizontal"]=M.itemIconColorChildActiveHoverHorizontalInverted,k["--n-arrow-color"]=M.arrowColorInverted,k["--n-arrow-color-hover"]=M.arrowColorHoverInverted,k["--n-arrow-color-active"]=M.arrowColorActiveInverted,k["--n-arrow-color-active-hover"]=M.arrowColorActiveHoverInverted,k["--n-arrow-color-child-active"]=M.arrowColorChildActiveInverted,k["--n-arrow-color-child-active-hover"]=M.arrowColorChildActiveHoverInverted,k["--n-item-color-hover"]=M.itemColorHoverInverted,k["--n-item-color-active"]=M.itemColorActiveInverted,k["--n-item-color-active-hover"]=M.itemColorActiveHoverInverted,k["--n-item-color-active-collapsed"]=M.itemColorActiveCollapsedInverted):(k["--n-group-text-color"]=M.groupTextColor,k["--n-color"]=M.color,k["--n-item-text-color"]=M.itemTextColor,k["--n-item-text-color-hover"]=M.itemTextColorHover,k["--n-item-text-color-active"]=M.itemTextColorActive,k["--n-item-text-color-child-active"]=M.itemTextColorChildActive,k["--n-item-text-color-child-active-hover"]=M.itemTextColorChildActiveHover,k["--n-item-text-color-active-hover"]=M.itemTextColorActiveHover,k["--n-item-icon-color"]=M.itemIconColor,k["--n-item-icon-color-hover"]=M.itemIconColorHover,k["--n-item-icon-color-active"]=M.itemIconColorActive,k["--n-item-icon-color-active-hover"]=M.itemIconColorActiveHover,k["--n-item-icon-color-child-active"]=M.itemIconColorChildActive,k["--n-item-icon-color-child-active-hover"]=M.itemIconColorChildActiveHover,k["--n-item-icon-color-collapsed"]=M.itemIconColorCollapsed,k["--n-item-text-color-horizontal"]=M.itemTextColorHorizontal,k["--n-item-text-color-hover-horizontal"]=M.itemTextColorHoverHorizontal,k["--n-item-text-color-active-horizontal"]=M.itemTextColorActiveHorizontal,k["--n-item-text-color-child-active-horizontal"]=M.itemTextColorChildActiveHorizontal,k["--n-item-text-color-child-active-hover-horizontal"]=M.itemTextColorChildActiveHoverHorizontal,k["--n-item-text-color-active-hover-horizontal"]=M.itemTextColorActiveHoverHorizontal,k["--n-item-icon-color-horizontal"]=M.itemIconColorHorizontal,k["--n-item-icon-color-hover-horizontal"]=M.itemIconColorHoverHorizontal,k["--n-item-icon-color-active-horizontal"]=M.itemIconColorActiveHorizontal,k["--n-item-icon-color-active-hover-horizontal"]=M.itemIconColorActiveHoverHorizontal,k["--n-item-icon-color-child-active-horizontal"]=M.itemIconColorChildActiveHorizontal,k["--n-item-icon-color-child-active-hover-horizontal"]=M.itemIconColorChildActiveHoverHorizontal,k["--n-arrow-color"]=M.arrowColor,k["--n-arrow-color-hover"]=M.arrowColorHover,k["--n-arrow-color-active"]=M.arrowColorActive,k["--n-arrow-color-active-hover"]=M.arrowColorActiveHover,k["--n-arrow-color-child-active"]=M.arrowColorChildActive,k["--n-arrow-color-child-active-hover"]=M.arrowColorChildActiveHover,k["--n-item-color-hover"]=M.itemColorHover,k["--n-item-color-active"]=M.itemColorActive,k["--n-item-color-active-hover"]=M.itemColorActiveHover,k["--n-item-color-active-collapsed"]=M.itemColorActiveCollapsed),k}),C=o?ft("menu",F(()=>e.inverted?"a":"b"),E,e):void 0,A=Vn(),S=B(null),R=B(null);let z=!0;const $=()=>{var U;z?z=!1:(U=S.value)===null||U===void 0||U.sync({showAllItemsBeforeCalculate:!0})};function Q(){return document.getElementById(A)}const ne=B(-1);function L(U){ne.value=e.options.length-U}function le(U){U||(ne.value=-1)}const w=F(()=>{const U=ne.value;return{children:U===-1?[]:e.options.slice(U)}}),D=F(()=>{const{childrenField:U,disabledField:oe,keyField:M}=e;return En([w.value],{getIgnored(ae){return ei(ae)},getChildren(ae){return ae[U]},getDisabled(ae){return ae[oe]},getKey(ae){var ce;return(ce=ae[M])!==null&&ce!==void 0?ce:ae.name}})}),q=F(()=>En([{}]).treeNodes[0]);function te(){var U;if(ne.value===-1)return b(Qr,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:q.value,domId:A,isEllipsisPlaceholder:!0});const oe=D.value.treeNodes[0],M=v.value,ae=!!(!((U=oe.children)===null||U===void 0)&&U.some(ce=>M.includes(ce.key)));return b(Qr,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:ae,tmNode:oe,domId:A,rawNodes:oe.rawNode.children||[],tmNodes:oe.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:m,uncontrolledExpanededKeys:f,mergedExpandedKeys:p,uncontrolledValue:c,mergedValue:u,activePath:v,tmNodes:g,mergedTheme:n,mergedCollapsed:i,cssVars:o?void 0:E,themeClass:C==null?void 0:C.themeClass,overflowRef:S,counterRef:R,updateCounter:()=>{},onResize:$,onUpdateOverflow:le,onUpdateCount:L,renderCounter:te,getCounter:Q,onRender:C==null?void 0:C.onRender,showOption:x,deriveResponsiveState:$}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:n}=this;n==null||n();const r=()=>this.tmNodes.map(l=>Yi(l,this.$props)),a=t==="horizontal"&&this.responsive,s=()=>b("div",xo(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),a?b(hh,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:this.renderCounter}):r());return a?b(Sn,{onResize:this.onResize},{default:s}):s()}}),sd={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},U0=ze("n-message-api"),cd=ze("n-message-provider"),K0=K([T("message-wrapper",` margin: var(--n-margin); z-index: 0; transform-origin: top center; @@ -786,7 +786,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),G0={info:()=>b(Yr,null),success:()=>b(Gs,null),warning:()=>b(qs,null),error:()=>b(Ks,null),default:()=>null},q0=se({name:"Message",props:Object.assign(Object.assign({},sd),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Xe(e),{props:n,mergedClsPrefixRef:r}=me(cd),i=ps("Message",o,r),a=ke("Message","-message",K0,cb,n,r),s=F(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:u,margin:f,maxWidth:h,iconMargin:m,closeMargin:p,closeSize:g,iconSize:v,fontSize:y,lineHeight:P,borderRadius:E,iconColorInfo:x,iconColorSuccess:_,iconColorWarning:C,iconColorError:A,iconColorLoading:S,closeIconSize:R,closeBorderRadius:z,[Re("textColor",c)]:$,[Re("boxShadow",c)]:Q,[Re("color",c)]:ne,[Re("closeColorHover",c)]:L,[Re("closeColorPressed",c)]:le,[Re("closeIconColor",c)]:w,[Re("closeIconColorPressed",c)]:D,[Re("closeIconColorHover",c)]:q}}=a.value;return{"--n-bezier":d,"--n-margin":f,"--n-padding":u,"--n-max-width":h,"--n-font-size":y,"--n-icon-margin":m,"--n-icon-size":v,"--n-close-icon-size":R,"--n-close-border-radius":z,"--n-close-size":g,"--n-close-margin":p,"--n-text-color":$,"--n-color":ne,"--n-box-shadow":Q,"--n-icon-color-info":x,"--n-icon-color-success":_,"--n-icon-color-warning":C,"--n-icon-color-error":A,"--n-icon-color-loading":S,"--n-close-color-hover":L,"--n-close-color-pressed":le,"--n-close-icon-color":w,"--n-close-icon-color-pressed":D,"--n-close-icon-color-hover":q,"--n-line-height":P,"--n-border-radius":E}}),l=t?ft("message",F(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:n,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:o,content:n,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:d}=this;s==null||s();let u;return b("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):b("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(u=X0(l,t,r))&&d?b("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},b(wf,null,{default:()=>u})):null,b("div",{class:`${r}-message__content`},je(n)),o?b(wi,{clsPrefix:r,class:`${r}-message__close`,onClick:c,absolute:!0}):null))}});function X0(e,t,o){if(typeof e=="function")return e();{const n=t==="loading"?b(Sf,{clsPrefix:o,strokeWidth:24,scale:.85}):G0[t]();return n?b(nn,{clsPrefix:o,key:t},{default:()=>n}):null}}const Y0=se({name:"MessageEnvironment",props:Object.assign(Object.assign({},sd),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=B(!0);wt(()=>{n()});function n(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function r(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&n()}function a(){const{onHide:d}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function s(){const{onClose:d}=e;d&&d(),a()}function l(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:f,internalKey:h}=e;d&&d(),u&&u(h),f&&f()}function c(){a()}return{show:o,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:r,deactivate:c}},render(){return b(bs,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?b(q0,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Z0=Object.assign(Object.assign({},ke.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),J0=se({name:"MessageProvider",props:Z0,setup(e){const{mergedClsPrefixRef:t}=Xe(e),o=B([]),n=B({}),r={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};ve(cd,{props:e,mergedClsPrefixRef:t}),ve(U0,r);function i(l,c){const d=Vn(),u=Zo(Object.assign(Object.assign({},c),{content:l,key:d,destroy:()=>{var h;(h=n.value[d])===null||h===void 0||h.hide()}})),{max:f}=e;return f&&o.value.length>=f&&o.value.shift(),o.value.push(u),u}function a(l){o.value.splice(o.value.findIndex(c=>c.key===l),1),delete n.value[l]}function s(){Object.values(n.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:o,handleAfterLeave:a},r)},render(){var e,t,o;return b(mt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?b(mi,{to:(o=this.to)!==null&&o!==void 0?o:"body"},b("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>b(Y0,Object.assign({ref:r=>{r&&(this.messageRefs[n.key]=r)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},_i(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}}),Q0={name:"QrCode",common:V,self:e=>({borderRadius:e.borderRadius})},ex={name:"Skeleton",common:V,self(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}},tx={name:"Split",common:V},dd=ze("n-tabs"),ox={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},nx=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},_i(ox,["displayDirective"])),Hn=se({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:nx,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:n,closableRef:r,tabStyleRef:i,addTabStyleRef:a,tabClassRef:s,addTabClassRef:l,tabChangeIdRef:c,onBeforeLeaveRef:d,triggerRef:u,handleAdd:f,activateTab:h,handleClose:m}=me(dd);return{trigger:u,mergedClosable:F(()=>{if(e.internalAddable)return!1;const{closable:p}=e;return p===void 0?r.value:p}),style:i,addStyle:a,tabClass:s,addTabClass:l,clsPrefix:t,value:o,type:n,handleClose(p){p.stopPropagation(),!e.disabled&&m(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}const{name:p}=e,g=++c.id;if(p!==o.value){const{value:v}=d;v?Promise.resolve(v(e.name,o.value)).then(y=>{y&&c.id===g&&h(p)}):h(p)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:n,label:r,tab:i,value:a,mergedClosable:s,trigger:l,$slots:{default:c}}=this,d=r??i;return b("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?b("div",{class:`${t}-tabs-tab-pad`}):null,b("div",Object.assign({key:o,"data-name":o,"data-disabled":n?!0:void 0},xo({class:[`${t}-tabs-tab`,a===o&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:l==="click"?this.activateTab:void 0,onMouseenter:l==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),b("span",{class:`${t}-tabs-tab__label`},e?b(mt,null,b("div",{class:`${t}-tabs-tab__height-placeholder`}," "),b(nn,{clsPrefix:t},{default:()=>b(Mm,null)})):c?c():typeof d=="object"?d:je(d??o)),s&&this.type==="card"?b(wi,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),rx=T("tabs",` + `)])]),G0={info:()=>b(Yr,null),success:()=>b(Gs,null),warning:()=>b(qs,null),error:()=>b(Ks,null),default:()=>null},q0=se({name:"Message",props:Object.assign(Object.assign({},sd),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=Xe(e),{props:n,mergedClsPrefixRef:r}=me(cd),i=ps("Message",o,r),a=ke("Message","-message",K0,cb,n,r),s=F(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:u,margin:f,maxWidth:h,iconMargin:m,closeMargin:p,closeSize:g,iconSize:v,fontSize:y,lineHeight:P,borderRadius:_,iconColorInfo:x,iconColorSuccess:E,iconColorWarning:C,iconColorError:A,iconColorLoading:S,closeIconSize:R,closeBorderRadius:z,[Re("textColor",c)]:$,[Re("boxShadow",c)]:Q,[Re("color",c)]:ne,[Re("closeColorHover",c)]:L,[Re("closeColorPressed",c)]:le,[Re("closeIconColor",c)]:w,[Re("closeIconColorPressed",c)]:D,[Re("closeIconColorHover",c)]:q}}=a.value;return{"--n-bezier":d,"--n-margin":f,"--n-padding":u,"--n-max-width":h,"--n-font-size":y,"--n-icon-margin":m,"--n-icon-size":v,"--n-close-icon-size":R,"--n-close-border-radius":z,"--n-close-size":g,"--n-close-margin":p,"--n-text-color":$,"--n-color":ne,"--n-box-shadow":Q,"--n-icon-color-info":x,"--n-icon-color-success":E,"--n-icon-color-warning":C,"--n-icon-color-error":A,"--n-icon-color-loading":S,"--n-close-color-hover":L,"--n-close-color-pressed":le,"--n-close-icon-color":w,"--n-close-icon-color-pressed":D,"--n-close-icon-color-hover":q,"--n-line-height":P,"--n-border-radius":_}}),l=t?ft("message",F(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:n,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:n.placement}},render(){const{render:e,type:t,closable:o,content:n,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:d}=this;s==null||s();let u;return b("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):b("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(u=X0(l,t,r))&&d?b("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},b(wf,null,{default:()=>u})):null,b("div",{class:`${r}-message__content`},je(n)),o?b(wi,{clsPrefix:r,class:`${r}-message__close`,onClick:c,absolute:!0}):null))}});function X0(e,t,o){if(typeof e=="function")return e();{const n=t==="loading"?b(Sf,{clsPrefix:o,strokeWidth:24,scale:.85}):G0[t]();return n?b(nn,{clsPrefix:o,key:t},{default:()=>n}):null}}const Y0=se({name:"MessageEnvironment",props:Object.assign(Object.assign({},sd),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=B(!0);wt(()=>{n()});function n(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function r(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&n()}function a(){const{onHide:d}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function s(){const{onClose:d}=e;d&&d(),a()}function l(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:f,internalKey:h}=e;d&&d(),u&&u(h),f&&f()}function c(){a()}return{show:o,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:r,deactivate:c}},render(){return b(bs,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?b(q0,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Z0=Object.assign(Object.assign({},ke.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),J0=se({name:"MessageProvider",props:Z0,setup(e){const{mergedClsPrefixRef:t}=Xe(e),o=B([]),n=B({}),r={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};ve(cd,{props:e,mergedClsPrefixRef:t}),ve(U0,r);function i(l,c){const d=Vn(),u=Zo(Object.assign(Object.assign({},c),{content:l,key:d,destroy:()=>{var h;(h=n.value[d])===null||h===void 0||h.hide()}})),{max:f}=e;return f&&o.value.length>=f&&o.value.shift(),o.value.push(u),u}function a(l){o.value.splice(o.value.findIndex(c=>c.key===l),1),delete n.value[l]}function s(){Object.values(n.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:n,messageList:o,handleAfterLeave:a},r)},render(){var e,t,o;return b(mt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?b(mi,{to:(o=this.to)!==null&&o!==void 0?o:"body"},b("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(n=>b(Y0,Object.assign({ref:r=>{r&&(this.messageRefs[n.key]=r)},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave},_i(n,["destroy"],void 0),{duration:n.duration===void 0?this.duration:n.duration,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover,closable:n.closable===void 0?this.closable:n.closable}))))):null)}}),Q0={name:"QrCode",common:V,self:e=>({borderRadius:e.borderRadius})},ex={name:"Skeleton",common:V,self(e){const{heightSmall:t,heightMedium:o,heightLarge:n,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:o,heightLarge:n}}},tx={name:"Split",common:V},dd=ze("n-tabs"),ox={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},nx=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},_i(ox,["displayDirective"])),Hn=se({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:nx,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:n,closableRef:r,tabStyleRef:i,addTabStyleRef:a,tabClassRef:s,addTabClassRef:l,tabChangeIdRef:c,onBeforeLeaveRef:d,triggerRef:u,handleAdd:f,activateTab:h,handleClose:m}=me(dd);return{trigger:u,mergedClosable:F(()=>{if(e.internalAddable)return!1;const{closable:p}=e;return p===void 0?r.value:p}),style:i,addStyle:a,tabClass:s,addTabClass:l,clsPrefix:t,value:o,type:n,handleClose(p){p.stopPropagation(),!e.disabled&&m(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}const{name:p}=e,g=++c.id;if(p!==o.value){const{value:v}=d;v?Promise.resolve(v(e.name,o.value)).then(y=>{y&&c.id===g&&h(p)}):h(p)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:n,label:r,tab:i,value:a,mergedClosable:s,trigger:l,$slots:{default:c}}=this,d=r??i;return b("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?b("div",{class:`${t}-tabs-tab-pad`}):null,b("div",Object.assign({key:o,"data-name":o,"data-disabled":n?!0:void 0},xo({class:[`${t}-tabs-tab`,a===o&&`${t}-tabs-tab--active`,n&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:l==="click"?this.activateTab:void 0,onMouseenter:l==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),b("span",{class:`${t}-tabs-tab__label`},e?b(mt,null,b("div",{class:`${t}-tabs-tab__height-placeholder`}," "),b(nn,{clsPrefix:t},{default:()=>b(Mm,null)})):c?c():typeof d=="object"?d:je(d??o)),s&&this.type==="card"?b(wi,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:n}):null))}}),rx=T("tabs",` box-sizing: border-box; width: 100%; display: flex; @@ -1136,7 +1136,7 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d border-top: 1px solid var(--n-tab-border-color); `),T("tabs-pad",` border-top: 1px solid var(--n-tab-border-color); - `)])])])]),ix=Object.assign(Object.assign({},ke.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]}),ax=se({name:"Tabs",props:ix,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:s}=Xe(e),l=ke("Tabs","-tabs",rx,Yb,e,a),c=B(null),d=B(null),u=B(null),f=B(null),h=B(null),m=B(null),p=B(!0),g=B(!0),v=Mn(e,["labelSize","size"]),y=Mn(e,["activeName","value"]),P=B((n=(o=y.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(r=lo(t.default())[0])===null||r===void 0?void 0:r.props)===null||i===void 0?void 0:i.name:null),E=fo(y,P),x={id:0},_=F(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});Le(E,()=>{x.id=0,z(),$()});function C(){var W;const{value:H}=E;return H===null?null:(W=c.value)===null||W===void 0?void 0:W.querySelector(`[data-name="${H}"]`)}function A(W){if(e.type==="card")return;const{value:H}=d;if(!H)return;const X=H.style.opacity==="0";if(W){const fe=`${a.value}-tabs-bar--disabled`,{barWidth:Ee,placement:Ke}=e;if(W.dataset.disabled==="true"?H.classList.add(fe):H.classList.remove(fe),["top","bottom"].includes(Ke)){if(R(["top","maxHeight","height"]),typeof Ee=="number"&&W.offsetWidth>=Ee){const Ge=Math.floor((W.offsetWidth-Ee)/2)+W.offsetLeft;H.style.left=`${Ge}px`,H.style.maxWidth=`${Ee}px`}else H.style.left=`${W.offsetLeft}px`,H.style.maxWidth=`${W.offsetWidth}px`;H.style.width="8192px",X&&(H.style.transition="none"),H.offsetWidth,X&&(H.style.transition="",H.style.opacity="1")}else{if(R(["left","maxWidth","width"]),typeof Ee=="number"&&W.offsetHeight>=Ee){const Ge=Math.floor((W.offsetHeight-Ee)/2)+W.offsetTop;H.style.top=`${Ge}px`,H.style.maxHeight=`${Ee}px`}else H.style.top=`${W.offsetTop}px`,H.style.maxHeight=`${W.offsetHeight}px`;H.style.height="8192px",X&&(H.style.transition="none"),H.offsetHeight,X&&(H.style.transition="",H.style.opacity="1")}}}function S(){if(e.type==="card")return;const{value:W}=d;W&&(W.style.opacity="0")}function R(W){const{value:H}=d;if(H)for(const X of W)H.style[X]=""}function z(){if(e.type==="card")return;const W=C();W?A(W):S()}function $(){var W;const H=(W=h.value)===null||W===void 0?void 0:W.$el;if(!H)return;const X=C();if(!X)return;const{scrollLeft:fe,offsetWidth:Ee}=H,{offsetLeft:Ke,offsetWidth:Ge}=X;fe>Ke?H.scrollTo({top:0,left:Ke,behavior:"smooth"}):Ke+Ge>fe+Ee&&H.scrollTo({top:0,left:Ke+Ge-Ee,behavior:"smooth"})}const Q=B(null);let ne=0,L=null;function le(W){const H=Q.value;if(H){ne=W.getBoundingClientRect().height;const X=`${ne}px`,fe=()=>{H.style.height=X,H.style.maxHeight=X};L?(fe(),L(),L=null):L=fe}}function w(W){const H=Q.value;if(H){const X=W.getBoundingClientRect().height,fe=()=>{document.body.offsetHeight,H.style.maxHeight=`${X}px`,H.style.height=`${Math.max(ne,X)}px`};L?(L(),L=null,fe()):L=fe}}function D(){const W=Q.value;if(W){W.style.maxHeight="",W.style.height="";const{paneWrapperStyle:H}=e;if(typeof H=="string")W.style.cssText=H;else if(H){const{maxHeight:X,height:fe}=H;X!==void 0&&(W.style.maxHeight=X),fe!==void 0&&(W.style.height=fe)}}}const q={value:[]},te=B("next");function U(W){const H=E.value;let X="next";for(const fe of q.value){if(fe===H)break;if(fe===W){X="prev";break}}te.value=X,oe(W)}function oe(W){const{onActiveNameChange:H,onUpdateValue:X,"onUpdate:value":fe}=e;H&&Oe(H,W),X&&Oe(X,W),fe&&Oe(fe,W),P.value=W}function M(W){const{onClose:H}=e;H&&Oe(H,W)}function ae(){const{value:W}=d;if(!W)return;const H="transition-disabled";W.classList.add(H),z(),W.classList.remove(H)}const ce=B(null);function Pe({transitionDisabled:W}){const H=c.value;if(!H)return;W&&H.classList.add("transition-disabled");const X=C();X&&ce.value&&(ce.value.style.width=`${X.offsetWidth}px`,ce.value.style.height=`${X.offsetHeight}px`,ce.value.style.transform=`translateX(${X.offsetLeft-_f(getComputedStyle(H).paddingLeft)}px)`,W&&ce.value.offsetWidth),W&&H.classList.remove("transition-disabled")}Le([E],()=>{e.type==="segment"&&qe(()=>{Pe({transitionDisabled:!1})})}),wt(()=>{e.type==="segment"&&Pe({transitionDisabled:!0})});let O=0;function Y(W){var H;if(W.contentRect.width===0&&W.contentRect.height===0||O===W.contentRect.width)return;O=W.contentRect.width;const{type:X}=e;if((X==="line"||X==="bar")&&ae(),X!=="segment"){const{placement:fe}=e;ue((fe==="top"||fe==="bottom"?(H=h.value)===null||H===void 0?void 0:H.$el:m.value)||null)}}const k=Cr(Y,64);Le([()=>e.justifyContent,()=>e.size],()=>{qe(()=>{const{type:W}=e;(W==="line"||W==="bar")&&ae()})});const Z=B(!1);function we(W){var H;const{target:X,contentRect:{width:fe,height:Ee}}=W,Ke=X.parentElement.parentElement.offsetWidth,Ge=X.parentElement.parentElement.offsetHeight,{placement:G}=e;if(!Z.value)G==="top"||G==="bottom"?Kere.$el.offsetWidth&&(Z.value=!1):Ge-Ee>re.$el.offsetHeight&&(Z.value=!1)}ue(((H=h.value)===null||H===void 0?void 0:H.$el)||null)}const Ie=Cr(we,64);function ge(){const{onAdd:W}=e;W&&W(),qe(()=>{const H=C(),{value:X}=h;!H||!X||X.scrollTo({left:H.offsetLeft,top:0,behavior:"smooth"})})}function ue(W){if(!W)return;const{placement:H}=e;if(H==="top"||H==="bottom"){const{scrollLeft:X,scrollWidth:fe,offsetWidth:Ee}=W;p.value=X<=0,g.value=X+Ee>=fe}else{const{scrollTop:X,scrollHeight:fe,offsetHeight:Ee}=W;p.value=X<=0,g.value=X+Ee>=fe}}const Ae=Cr(W=>{ue(W.target)},64);ve(dd,{triggerRef:be(e,"trigger"),tabStyleRef:be(e,"tabStyle"),tabClassRef:be(e,"tabClass"),addTabStyleRef:be(e,"addTabStyle"),addTabClassRef:be(e,"addTabClass"),paneClassRef:be(e,"paneClass"),paneStyleRef:be(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:be(e,"type"),closableRef:be(e,"closable"),valueRef:E,tabChangeIdRef:x,onBeforeLeaveRef:be(e,"onBeforeLeave"),activateTab:U,handleClose:M,handleAdd:ge}),ki(()=>{z(),$()}),At(()=>{const{value:W}=u;if(!W)return;const{value:H}=a,X=`${H}-tabs-nav-scroll-wrapper--shadow-start`,fe=`${H}-tabs-nav-scroll-wrapper--shadow-end`;p.value?W.classList.remove(X):W.classList.add(X),g.value?W.classList.remove(fe):W.classList.add(fe)});const De={syncBarPosition:()=>{z()}},Ne=()=>{Pe({transitionDisabled:!0})},Jt=F(()=>{const{value:W}=v,{type:H}=e,X={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[H],fe=`${W}${X}`,{self:{barColor:Ee,closeIconColor:Ke,closeIconColorHover:Ge,closeIconColorPressed:G,tabColor:re,tabBorderColor:pe,paneTextColor:Ce,tabFontWeight:Fe,tabBorderRadius:st,tabFontWeightActive:dr,colorSegment:ur,fontWeightStrong:Eu,tabColorSegment:Pu,closeSize:ku,closeIconSize:Tu,closeColorHover:Ru,closeColorPressed:Ou,closeBorderRadius:$u,[Re("panePadding",W)]:dn,[Re("tabPadding",fe)]:Iu,[Re("tabPaddingVertical",fe)]:Au,[Re("tabGap",fe)]:zu,[Re("tabGap",`${fe}Vertical`)]:Mu,[Re("tabTextColor",H)]:Lu,[Re("tabTextColorActive",H)]:Bu,[Re("tabTextColorHover",H)]:Hu,[Re("tabTextColorDisabled",H)]:Du,[Re("tabFontSize",W)]:Nu},common:{cubicBezierEaseInOut:Fu}}=l.value;return{"--n-bezier":Fu,"--n-color-segment":ur,"--n-bar-color":Ee,"--n-tab-font-size":Nu,"--n-tab-text-color":Lu,"--n-tab-text-color-active":Bu,"--n-tab-text-color-disabled":Du,"--n-tab-text-color-hover":Hu,"--n-pane-text-color":Ce,"--n-tab-border-color":pe,"--n-tab-border-radius":st,"--n-close-size":ku,"--n-close-icon-size":Tu,"--n-close-color-hover":Ru,"--n-close-color-pressed":Ou,"--n-close-border-radius":$u,"--n-close-icon-color":Ke,"--n-close-icon-color-hover":Ge,"--n-close-icon-color-pressed":G,"--n-tab-color":re,"--n-tab-font-weight":Fe,"--n-tab-font-weight-active":dr,"--n-tab-padding":Iu,"--n-tab-padding-vertical":Au,"--n-tab-gap":zu,"--n-tab-gap-vertical":Mu,"--n-pane-padding-left":Oo(dn,"left"),"--n-pane-padding-right":Oo(dn,"right"),"--n-pane-padding-top":Oo(dn,"top"),"--n-pane-padding-bottom":Oo(dn,"bottom"),"--n-font-weight-strong":Eu,"--n-tab-color-segment":Pu}}),de=s?ft("tabs",F(()=>`${v.value[0]}${e.type[0]}`),Jt,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:E,renderedNames:new Set,segmentCapsuleElRef:ce,tabsPaneWrapperRef:Q,tabsElRef:c,barElRef:d,addTabInstRef:f,xScrollInstRef:h,scrollWrapperElRef:u,addTabFixed:Z,tabWrapperStyle:_,handleNavResize:k,mergedSize:v,handleScroll:Ae,handleTabsResize:Ie,cssVars:s?void 0:Jt,themeClass:de==null?void 0:de.themeClass,animationDirection:te,renderNameListRef:q,yScrollElRef:m,handleSegmentResize:Ne,onAnimationBeforeLeave:le,onAnimationEnter:w,onAnimationAfterEnter:D,onRender:de==null?void 0:de.onRender},De)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:n,addable:r,mergedSize:i,renderNameListRef:a,onRender:s,paneWrapperClass:l,paneWrapperStyle:c,$slots:{default:d,prefix:u,suffix:f}}=this;s==null||s();const h=d?lo(d()).filter(x=>x.type.__TAB_PANE__===!0):[],m=d?lo(d()).filter(x=>x.type.__TAB__===!0):[],p=!m.length,g=t==="card",v=t==="segment",y=!g&&!v&&this.justifyContent;a.value=[];const P=()=>{const x=b("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:b("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),p?h.map((_,C)=>(a.value.push(_.props.name),Pr(b(Hn,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0&&(!y||y==="center"||y==="start"||y==="end")}),_.children?{default:_.children.tab}:void 0)))):m.map((_,C)=>(a.value.push(_.props.name),Pr(C!==0&&!y?il(_):_))),!n&&r&&g?rl(r,(p?h.length:m.length)!==0):null,y?null:b("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return b("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},g&&r?b(Sn,{onResize:this.handleTabsResize},{default:()=>x}):x,g?b("div",{class:`${e}-tabs-pad`}):null,g?null:b("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},E=v?"top":o;return b("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${E}`],style:this.cssVars},b("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${E}`,`${e}-tabs-nav`]},$t(u,x=>x&&b("div",{class:`${e}-tabs-nav__prefix`},x)),v?b(Sn,{onResize:this.handleSegmentResize},{default:()=>b("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},b("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},b("div",{class:`${e}-tabs-wrapper`},b("div",{class:`${e}-tabs-tab`}))),p?h.map((x,_)=>(a.value.push(x.props.name),b(Hn,Object.assign({},x.props,{internalCreatedByPane:!0,internalLeftPadded:_!==0}),x.children?{default:x.children.tab}:void 0))):m.map((x,_)=>(a.value.push(x.props.name),_===0?x:il(x))))}):b(Sn,{onResize:this.handleNavResize},{default:()=>b("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(E)?b(uh,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:P}):b("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},P()))}),n&&r&&g?rl(r,!0):null,$t(f,x=>x&&b("div",{class:`${e}-tabs-nav__suffix`},x))),p&&(this.animated&&(E==="top"||E==="bottom")?b("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,l]},nl(h,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):nl(h,this.mergedValue,this.renderedNames)))}});function nl(e,t,o,n,r,i,a){const s=[];return e.forEach(l=>{const{name:c,displayDirective:d,"display-directive":u}=l.props,f=m=>d===m||u===m,h=t===c;if(l.key!==void 0&&(l.key=c),h||f("show")||f("show:lazy")&&o.has(c)){o.has(c)||o.add(c);const m=!f("if");s.push(m?Ct(l,[[Uo,h]]):l)}}),a?b(Ef,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>s}):s}function rl(e,t){return b(Hn,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function il(e){const t=Ci(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Pr(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const lx=K([T("watermark-container",` + `)])])])]),ix=Object.assign(Object.assign({},ke.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]}),ax=se({name:"Tabs",props:ix,setup(e,{slots:t}){var o,n,r,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:s}=Xe(e),l=ke("Tabs","-tabs",rx,Yb,e,a),c=B(null),d=B(null),u=B(null),f=B(null),h=B(null),m=B(null),p=B(!0),g=B(!0),v=Mn(e,["labelSize","size"]),y=Mn(e,["activeName","value"]),P=B((n=(o=y.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&n!==void 0?n:t.default?(i=(r=lo(t.default())[0])===null||r===void 0?void 0:r.props)===null||i===void 0?void 0:i.name:null),_=fo(y,P),x={id:0},E=F(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});Le(_,()=>{x.id=0,z(),$()});function C(){var W;const{value:H}=_;return H===null?null:(W=c.value)===null||W===void 0?void 0:W.querySelector(`[data-name="${H}"]`)}function A(W){if(e.type==="card")return;const{value:H}=d;if(!H)return;const X=H.style.opacity==="0";if(W){const fe=`${a.value}-tabs-bar--disabled`,{barWidth:Ee,placement:Ke}=e;if(W.dataset.disabled==="true"?H.classList.add(fe):H.classList.remove(fe),["top","bottom"].includes(Ke)){if(R(["top","maxHeight","height"]),typeof Ee=="number"&&W.offsetWidth>=Ee){const Ge=Math.floor((W.offsetWidth-Ee)/2)+W.offsetLeft;H.style.left=`${Ge}px`,H.style.maxWidth=`${Ee}px`}else H.style.left=`${W.offsetLeft}px`,H.style.maxWidth=`${W.offsetWidth}px`;H.style.width="8192px",X&&(H.style.transition="none"),H.offsetWidth,X&&(H.style.transition="",H.style.opacity="1")}else{if(R(["left","maxWidth","width"]),typeof Ee=="number"&&W.offsetHeight>=Ee){const Ge=Math.floor((W.offsetHeight-Ee)/2)+W.offsetTop;H.style.top=`${Ge}px`,H.style.maxHeight=`${Ee}px`}else H.style.top=`${W.offsetTop}px`,H.style.maxHeight=`${W.offsetHeight}px`;H.style.height="8192px",X&&(H.style.transition="none"),H.offsetHeight,X&&(H.style.transition="",H.style.opacity="1")}}}function S(){if(e.type==="card")return;const{value:W}=d;W&&(W.style.opacity="0")}function R(W){const{value:H}=d;if(H)for(const X of W)H.style[X]=""}function z(){if(e.type==="card")return;const W=C();W?A(W):S()}function $(){var W;const H=(W=h.value)===null||W===void 0?void 0:W.$el;if(!H)return;const X=C();if(!X)return;const{scrollLeft:fe,offsetWidth:Ee}=H,{offsetLeft:Ke,offsetWidth:Ge}=X;fe>Ke?H.scrollTo({top:0,left:Ke,behavior:"smooth"}):Ke+Ge>fe+Ee&&H.scrollTo({top:0,left:Ke+Ge-Ee,behavior:"smooth"})}const Q=B(null);let ne=0,L=null;function le(W){const H=Q.value;if(H){ne=W.getBoundingClientRect().height;const X=`${ne}px`,fe=()=>{H.style.height=X,H.style.maxHeight=X};L?(fe(),L(),L=null):L=fe}}function w(W){const H=Q.value;if(H){const X=W.getBoundingClientRect().height,fe=()=>{document.body.offsetHeight,H.style.maxHeight=`${X}px`,H.style.height=`${Math.max(ne,X)}px`};L?(L(),L=null,fe()):L=fe}}function D(){const W=Q.value;if(W){W.style.maxHeight="",W.style.height="";const{paneWrapperStyle:H}=e;if(typeof H=="string")W.style.cssText=H;else if(H){const{maxHeight:X,height:fe}=H;X!==void 0&&(W.style.maxHeight=X),fe!==void 0&&(W.style.height=fe)}}}const q={value:[]},te=B("next");function U(W){const H=_.value;let X="next";for(const fe of q.value){if(fe===H)break;if(fe===W){X="prev";break}}te.value=X,oe(W)}function oe(W){const{onActiveNameChange:H,onUpdateValue:X,"onUpdate:value":fe}=e;H&&Oe(H,W),X&&Oe(X,W),fe&&Oe(fe,W),P.value=W}function M(W){const{onClose:H}=e;H&&Oe(H,W)}function ae(){const{value:W}=d;if(!W)return;const H="transition-disabled";W.classList.add(H),z(),W.classList.remove(H)}const ce=B(null);function Pe({transitionDisabled:W}){const H=c.value;if(!H)return;W&&H.classList.add("transition-disabled");const X=C();X&&ce.value&&(ce.value.style.width=`${X.offsetWidth}px`,ce.value.style.height=`${X.offsetHeight}px`,ce.value.style.transform=`translateX(${X.offsetLeft-_f(getComputedStyle(H).paddingLeft)}px)`,W&&ce.value.offsetWidth),W&&H.classList.remove("transition-disabled")}Le([_],()=>{e.type==="segment"&&qe(()=>{Pe({transitionDisabled:!1})})}),wt(()=>{e.type==="segment"&&Pe({transitionDisabled:!0})});let O=0;function Y(W){var H;if(W.contentRect.width===0&&W.contentRect.height===0||O===W.contentRect.width)return;O=W.contentRect.width;const{type:X}=e;if((X==="line"||X==="bar")&&ae(),X!=="segment"){const{placement:fe}=e;ue((fe==="top"||fe==="bottom"?(H=h.value)===null||H===void 0?void 0:H.$el:m.value)||null)}}const k=Cr(Y,64);Le([()=>e.justifyContent,()=>e.size],()=>{qe(()=>{const{type:W}=e;(W==="line"||W==="bar")&&ae()})});const Z=B(!1);function we(W){var H;const{target:X,contentRect:{width:fe,height:Ee}}=W,Ke=X.parentElement.parentElement.offsetWidth,Ge=X.parentElement.parentElement.offsetHeight,{placement:G}=e;if(!Z.value)G==="top"||G==="bottom"?Kere.$el.offsetWidth&&(Z.value=!1):Ge-Ee>re.$el.offsetHeight&&(Z.value=!1)}ue(((H=h.value)===null||H===void 0?void 0:H.$el)||null)}const Ie=Cr(we,64);function ge(){const{onAdd:W}=e;W&&W(),qe(()=>{const H=C(),{value:X}=h;!H||!X||X.scrollTo({left:H.offsetLeft,top:0,behavior:"smooth"})})}function ue(W){if(!W)return;const{placement:H}=e;if(H==="top"||H==="bottom"){const{scrollLeft:X,scrollWidth:fe,offsetWidth:Ee}=W;p.value=X<=0,g.value=X+Ee>=fe}else{const{scrollTop:X,scrollHeight:fe,offsetHeight:Ee}=W;p.value=X<=0,g.value=X+Ee>=fe}}const Ae=Cr(W=>{ue(W.target)},64);ve(dd,{triggerRef:be(e,"trigger"),tabStyleRef:be(e,"tabStyle"),tabClassRef:be(e,"tabClass"),addTabStyleRef:be(e,"addTabStyle"),addTabClassRef:be(e,"addTabClass"),paneClassRef:be(e,"paneClass"),paneStyleRef:be(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:be(e,"type"),closableRef:be(e,"closable"),valueRef:_,tabChangeIdRef:x,onBeforeLeaveRef:be(e,"onBeforeLeave"),activateTab:U,handleClose:M,handleAdd:ge}),ki(()=>{z(),$()}),At(()=>{const{value:W}=u;if(!W)return;const{value:H}=a,X=`${H}-tabs-nav-scroll-wrapper--shadow-start`,fe=`${H}-tabs-nav-scroll-wrapper--shadow-end`;p.value?W.classList.remove(X):W.classList.add(X),g.value?W.classList.remove(fe):W.classList.add(fe)});const De={syncBarPosition:()=>{z()}},Ne=()=>{Pe({transitionDisabled:!0})},Jt=F(()=>{const{value:W}=v,{type:H}=e,X={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[H],fe=`${W}${X}`,{self:{barColor:Ee,closeIconColor:Ke,closeIconColorHover:Ge,closeIconColorPressed:G,tabColor:re,tabBorderColor:pe,paneTextColor:Ce,tabFontWeight:Fe,tabBorderRadius:st,tabFontWeightActive:dr,colorSegment:ur,fontWeightStrong:Eu,tabColorSegment:Pu,closeSize:ku,closeIconSize:Tu,closeColorHover:Ru,closeColorPressed:Ou,closeBorderRadius:$u,[Re("panePadding",W)]:dn,[Re("tabPadding",fe)]:Iu,[Re("tabPaddingVertical",fe)]:Au,[Re("tabGap",fe)]:zu,[Re("tabGap",`${fe}Vertical`)]:Mu,[Re("tabTextColor",H)]:Lu,[Re("tabTextColorActive",H)]:Bu,[Re("tabTextColorHover",H)]:Hu,[Re("tabTextColorDisabled",H)]:Du,[Re("tabFontSize",W)]:Nu},common:{cubicBezierEaseInOut:Fu}}=l.value;return{"--n-bezier":Fu,"--n-color-segment":ur,"--n-bar-color":Ee,"--n-tab-font-size":Nu,"--n-tab-text-color":Lu,"--n-tab-text-color-active":Bu,"--n-tab-text-color-disabled":Du,"--n-tab-text-color-hover":Hu,"--n-pane-text-color":Ce,"--n-tab-border-color":pe,"--n-tab-border-radius":st,"--n-close-size":ku,"--n-close-icon-size":Tu,"--n-close-color-hover":Ru,"--n-close-color-pressed":Ou,"--n-close-border-radius":$u,"--n-close-icon-color":Ke,"--n-close-icon-color-hover":Ge,"--n-close-icon-color-pressed":G,"--n-tab-color":re,"--n-tab-font-weight":Fe,"--n-tab-font-weight-active":dr,"--n-tab-padding":Iu,"--n-tab-padding-vertical":Au,"--n-tab-gap":zu,"--n-tab-gap-vertical":Mu,"--n-pane-padding-left":Oo(dn,"left"),"--n-pane-padding-right":Oo(dn,"right"),"--n-pane-padding-top":Oo(dn,"top"),"--n-pane-padding-bottom":Oo(dn,"bottom"),"--n-font-weight-strong":Eu,"--n-tab-color-segment":Pu}}),de=s?ft("tabs",F(()=>`${v.value[0]}${e.type[0]}`),Jt,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:_,renderedNames:new Set,segmentCapsuleElRef:ce,tabsPaneWrapperRef:Q,tabsElRef:c,barElRef:d,addTabInstRef:f,xScrollInstRef:h,scrollWrapperElRef:u,addTabFixed:Z,tabWrapperStyle:E,handleNavResize:k,mergedSize:v,handleScroll:Ae,handleTabsResize:Ie,cssVars:s?void 0:Jt,themeClass:de==null?void 0:de.themeClass,animationDirection:te,renderNameListRef:q,yScrollElRef:m,handleSegmentResize:Ne,onAnimationBeforeLeave:le,onAnimationEnter:w,onAnimationAfterEnter:D,onRender:de==null?void 0:de.onRender},De)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:n,addable:r,mergedSize:i,renderNameListRef:a,onRender:s,paneWrapperClass:l,paneWrapperStyle:c,$slots:{default:d,prefix:u,suffix:f}}=this;s==null||s();const h=d?lo(d()).filter(x=>x.type.__TAB_PANE__===!0):[],m=d?lo(d()).filter(x=>x.type.__TAB__===!0):[],p=!m.length,g=t==="card",v=t==="segment",y=!g&&!v&&this.justifyContent;a.value=[];const P=()=>{const x=b("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:b("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),p?h.map((E,C)=>(a.value.push(E.props.name),Pr(b(Hn,Object.assign({},E.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0&&(!y||y==="center"||y==="start"||y==="end")}),E.children?{default:E.children.tab}:void 0)))):m.map((E,C)=>(a.value.push(E.props.name),Pr(C!==0&&!y?il(E):E))),!n&&r&&g?rl(r,(p?h.length:m.length)!==0):null,y?null:b("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return b("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},g&&r?b(Sn,{onResize:this.handleTabsResize},{default:()=>x}):x,g?b("div",{class:`${e}-tabs-pad`}):null,g?null:b("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},_=v?"top":o;return b("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${_}`],style:this.cssVars},b("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${_}`,`${e}-tabs-nav`]},$t(u,x=>x&&b("div",{class:`${e}-tabs-nav__prefix`},x)),v?b(Sn,{onResize:this.handleSegmentResize},{default:()=>b("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},b("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},b("div",{class:`${e}-tabs-wrapper`},b("div",{class:`${e}-tabs-tab`}))),p?h.map((x,E)=>(a.value.push(x.props.name),b(Hn,Object.assign({},x.props,{internalCreatedByPane:!0,internalLeftPadded:E!==0}),x.children?{default:x.children.tab}:void 0))):m.map((x,E)=>(a.value.push(x.props.name),E===0?x:il(x))))}):b(Sn,{onResize:this.handleNavResize},{default:()=>b("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(_)?b(uh,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:P}):b("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},P()))}),n&&r&&g?rl(r,!0):null,$t(f,x=>x&&b("div",{class:`${e}-tabs-nav__suffix`},x))),p&&(this.animated&&(_==="top"||_==="bottom")?b("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,l]},nl(h,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):nl(h,this.mergedValue,this.renderedNames)))}});function nl(e,t,o,n,r,i,a){const s=[];return e.forEach(l=>{const{name:c,displayDirective:d,"display-directive":u}=l.props,f=m=>d===m||u===m,h=t===c;if(l.key!==void 0&&(l.key=c),h||f("show")||f("show:lazy")&&o.has(c)){o.has(c)||o.add(c);const m=!f("if");s.push(m?Ct(l,[[Uo,h]]):l)}}),a?b(Ef,{name:`${a}-transition`,onBeforeLeave:n,onEnter:r,onAfterEnter:i},{default:()=>s}):s}function rl(e,t){return b(Hn,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function il(e){const t=Ci(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Pr(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const lx=K([T("watermark-container",` position: relative; `,[at("selectable",` user-select: none; @@ -1164,15 +1164,15 @@ import{e as is,r as B,m as In,t as as,i as uo,a as pi,b as be,c as me,w as Le,d position: absolute; height: max(284vh, 284vw); width: max(284vh, 284vw); - `)])]);function sx(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const cx=Object.assign(Object.assign({},ke.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),dx=se({name:"Watermark",props:cx,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=Xe(e),n=ke("Watermark","-watermark",lx,c0,e,o),r=B(""),i=cs?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,s=B(!1);return ki(()=>s.value=!0),At(()=>{if(!i)return;s.value;const l=sx(a),{xGap:c,yGap:d,width:u,height:f,yOffset:h,xOffset:m,rotate:p,image:g,content:v,fontColor:y,fontStyle:P,fontVariant:E,fontStretch:x,fontWeight:_,fontFamily:C,fontSize:A,lineHeight:S,debug:R}=e,z=(c+u)*l,$=(d+f)*l,Q=m*l,ne=h*l;if(i.width=z,i.height=$,a){a.translate(0,0);const L=u*l,le=f*l;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,L,le)),a.rotate(p*(Math.PI/180)),g){const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=g,w.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:D,imageHeight:q}=e;a.drawImage(w,Q,ne,(e.imageWidth||(q?w.width*q/w.height:w.width))*l,(e.imageHeight||(D?w.height*D/w.width:w.height))*l),r.value=i.toDataURL()}}else if(v){R&&(a.strokeStyle="green",a.strokeRect(0,0,L,le)),a.font=`${P} ${E} ${_} ${x} ${A*l}px/${S*l}px ${C||n.value.self.fontFamily}`,a.fillStyle=y;let w=0;const{textAlign:D}=e;v.split(` + `)])]);function sx(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const cx=Object.assign(Object.assign({},ke.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),dx=se({name:"Watermark",props:cx,setup(e,{slots:t}){const{mergedClsPrefixRef:o}=Xe(e),n=ke("Watermark","-watermark",lx,c0,e,o),r=B(""),i=cs?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,s=B(!1);return ki(()=>s.value=!0),At(()=>{if(!i)return;s.value;const l=sx(a),{xGap:c,yGap:d,width:u,height:f,yOffset:h,xOffset:m,rotate:p,image:g,content:v,fontColor:y,fontStyle:P,fontVariant:_,fontStretch:x,fontWeight:E,fontFamily:C,fontSize:A,lineHeight:S,debug:R}=e,z=(c+u)*l,$=(d+f)*l,Q=m*l,ne=h*l;if(i.width=z,i.height=$,a){a.translate(0,0);const L=u*l,le=f*l;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,L,le)),a.rotate(p*(Math.PI/180)),g){const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=g,w.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:D,imageHeight:q}=e;a.drawImage(w,Q,ne,(e.imageWidth||(q?w.width*q/w.height:w.width))*l,(e.imageHeight||(D?w.height*D/w.width:w.height))*l),r.value=i.toDataURL()}}else if(v){R&&(a.strokeStyle="green",a.strokeRect(0,0,L,le)),a.font=`${P} ${_} ${E} ${x} ${A*l}px/${S*l}px ${C||n.value.self.fontFamily}`,a.fillStyle=y;let w=0;const{textAlign:D}=e;v.split(` `).map(q=>{const te=a.measureText(q).width;return w=Math.max(w,te),{width:te,line:q}}).forEach(({line:q,width:te},U)=>{const oe=D==="left"?0:D==="center"?(w-te)/2:w-te;a.fillText(q,Q+oe,ne+S*l*(U+1))}),r.value=i.toDataURL()}else v||(a.clearRect(0,0,i.width,i.height),r.value=i.toDataURL())}else Pf("watermark","Canvas is not supported in the browser.")}),()=>{var l;const{globalRotate:c,fullscreen:d,zIndex:u}=e,f=o.value,h=c!==0&&d,m="max(142vh, 142vw)",p=b("div",{class:[`${f}-watermark`,c!==0&&`${f}-watermark--global-rotate`,d&&`${f}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:h?void 0:u,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${m} + ${e.width/2}px) calc(${m} + ${e.height/2}px), ${m} ${m}`:m,backgroundImage:e.cross?`url(${r.value}), url(${r.value})`:`url(${r.value})`}});return e.fullscreen&&!c?p:b("div",{class:[`${f}-watermark-container`,c!==0&&`${f}-watermark-container--global-rotate`,d&&`${f}-watermark-container--fullscreen`,e.selectable&&`${f}-watermark-container--selectable`],style:{zIndex:h?u:void 0}},(l=t.default)===null||l===void 0?void 0:l.call(t),p)}}}),ux=()=>({}),fx={name:"Equation",common:V,self:ux},hx={name:"FloatButtonGroup",common:V,self(e){const{popoverColor:t,dividerColor:o,borderRadius:n}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},px={name:"dark",common:V,Alert:wg,Anchor:kg,AutoComplete:Tg,Avatar:dc,AvatarGroup:Og,BackTop:Ig,Badge:Ag,Breadcrumb:Lg,Button:et,ButtonGroup:ub,Calendar:Dg,Card:uc,Carousel:Wg,Cascader:Gg,Checkbox:Co,Code:hc,Collapse:Xg,CollapseTransition:Zg,ColorPicker:Fg,DataTable:uv,DatePicker:Tv,Descriptions:$v,Dialog:zc,Divider:Gv,Drawer:Xv,Dropdown:Fi,DynamicInput:Zv,DynamicTags:Qv,Element:eb,Empty:Xt,Ellipsis:yc,Equation:fx,Flex:ob,Form:rb,GradientText:fb,Icon:pv,IconWrapper:p0,Image:m0,Input:lt,InputNumber:hb,LegacyTransfer:R0,Layout:pb,List:gb,LoadingBar:vb,Log:yb,Menu:_b,Mention:Cb,Message:db,Modal:Hv,Notification:lb,PageHeader:kb,Pagination:bc,Popconfirm:Ob,Popover:Yt,Popselect:pc,Progress:Gc,QrCode:Q0,Radio:wc,Rate:Ib,Result:Mb,Row:d0,Scrollbar:Qe,Select:gc,Skeleton:ex,Slider:Bb,Space:Fc,Spin:Db,Statistic:Fb,Steps:Vb,Switch:Kb,Table:qb,Tabs:Zb,Tag:ic,Thing:Jb,TimePicker:Oc,Timeline:e0,Tooltip:er,Transfer:o0,Tree:Zc,TreeSelect:r0,Typography:a0,Upload:l0,Watermark:s0,Split:tx,FloatButton:u0,FloatButtonGroup:hx};var ud={};Object.defineProperty(ud,"__esModule",{value:!0});const Ft=nt,mx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},gx=(0,Ft.createElementVNode)("path",{d:"M28 16v6H4V6h11V4H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v4H8v2h16v-2h-4v-4h8a2 2 0 0 0 2-2v-6zM18 28h-4v-4h4z",fill:"currentColor"},null,-1),vx=(0,Ft.createElementVNode)("path",{d:"M18 4h12v2H18z",fill:"currentColor"},null,-1),bx=(0,Ft.createElementVNode)("path",{d:"M18 8h12v2H18z",fill:"currentColor"},null,-1),xx=(0,Ft.createElementVNode)("path",{d:"M18 12h6v2h-6z",fill:"currentColor"},null,-1),yx=[gx,vx,bx,xx];var Cx=ud.default=(0,Ft.defineComponent)({name:"CloudLogging",render:function(t,o){return(0,Ft.openBlock)(),(0,Ft.createElementBlock)("svg",mx,yx)}}),fd={};Object.defineProperty(fd,"__esModule",{value:!0});const co=nt,wx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},Sx=(0,co.createElementVNode)("path",{d:"M30 30h-8V4h8z",fill:"currentColor"},null,-1),_x=(0,co.createElementVNode)("path",{d:"M20 30h-8V12h8z",fill:"currentColor"},null,-1),Ex=(0,co.createElementVNode)("path",{d:"M10 30H2V18h8z",fill:"currentColor"},null,-1),Px=[Sx,_x,Ex];var kx=fd.default=(0,co.defineComponent)({name:"SkillLevelAdvanced",render:function(t,o){return(0,co.openBlock)(),(0,co.createElementBlock)("svg",wx,Px)}}),hd={};Object.defineProperty(hd,"__esModule",{value:!0});const Pn=nt,Tx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 640 512"},Rx=(0,Pn.createElementVNode)("path",{d:"M640 51.2l-.3 12.2c-28.1.8-45 15.8-55.8 40.3c-25 57.8-103.3 240-155.3 358.6H415l-81.9-193.1c-32.5 63.6-68.3 130-99.2 193.1c-.3.3-15 0-15-.3C172 352.3 122.8 243.4 75.8 133.4C64.4 106.7 26.4 63.4.2 63.7c0-3.1-.3-10-.3-14.2h161.9v13.9c-19.2 1.1-52.8 13.3-43.3 34.2c21.9 49.7 103.6 240.3 125.6 288.6c15-29.7 57.8-109.2 75.3-142.8c-13.9-28.3-58.6-133.9-72.8-160c-9.7-17.8-36.1-19.4-55.8-19.7V49.8l142.5.3v13.1c-19.4.6-38.1 7.8-29.4 26.1c18.9 40 30.6 68.1 48.1 104.7c5.6-10.8 34.7-69.4 48.1-100.8c8.9-20.6-3.9-28.6-38.6-29.4c.3-3.6 0-10.3.3-13.6c44.4-.3 111.1-.3 123.1-.6v13.6c-22.5.8-45.8 12.8-58.1 31.7l-59.2 122.8c6.4 16.1 63.3 142.8 69.2 156.7L559.2 91.8c-8.6-23.1-36.4-28.1-47.2-28.3V49.6l127.8 1.1l.2.5z",fill:"currentColor"},null,-1),Ox=[Rx];var $x=hd.default=(0,Pn.defineComponent)({name:"WikipediaW",render:function(t,o){return(0,Pn.openBlock)(),(0,Pn.createElementBlock)("svg",Tx,Ox)}}),pd={};Object.defineProperty(pd,"__esModule",{value:!0});const kn=nt,Ix={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ax=(0,kn.createElementVNode)("path",{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36l-67.88-11.31l-11.31-67.88l74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16c-47.38-11.74-99.55.91-136.58 37.93c-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5c24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22c37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z",fill:"currentColor"},null,-1),zx=[Ax];var Mx=pd.default=(0,kn.defineComponent)({name:"Wrench",render:function(t,o){return(0,kn.openBlock)(),(0,kn.createElementBlock)("svg",Ix,zx)}}),md={};Object.defineProperty(md,"__esModule",{value:!0});const jt=nt,Lx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Bx=(0,jt.createElementVNode)("path",{d:"M480 496H48a32 32 0 0 1-32-32V32a16 16 0 0 1 32 0v432h432a16 16 0 0 1 0 32z",fill:"currentColor"},null,-1),Hx=(0,jt.createElementVNode)("path",{d:"M156 432h-40a36 36 0 0 1-36-36V244a36 36 0 0 1 36-36h40a36 36 0 0 1 36 36v152a36 36 0 0 1-36 36z",fill:"currentColor"},null,-1),Dx=(0,jt.createElementVNode)("path",{d:"M300 432h-40a36 36 0 0 1-36-36V196a36 36 0 0 1 36-36h40a36 36 0 0 1 36 36v200a36 36 0 0 1-36 36z",fill:"currentColor"},null,-1),Nx=(0,jt.createElementVNode)("path",{d:"M443.64 432h-40a36 36 0 0 1-36-36V132a36 36 0 0 1 36-36h40a36 36 0 0 1 36 36v264a36 36 0 0 1-36 36z",fill:"currentColor"},null,-1),Fx=[Bx,Hx,Dx,Nx];var jx=md.default=(0,jt.defineComponent)({name:"BarChart",render:function(t,o){return(0,jt.openBlock)(),(0,jt.createElementBlock)("svg",Lx,Fx)}}),gd={};Object.defineProperty(gd,"__esModule",{value:!0});const Mo=nt,Wx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Vx=(0,Mo.createElementVNode)("path",{d:"M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0 1 16 16v288a16 16 0 0 1-16 16c-128 0-177.45 25.81-208 64c-30.37-38-80-64-208-64c-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0 1 16-16c131.57.59 192 32.84 208 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Ux=(0,Mo.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 160v288"},null,-1),Kx=[Vx,Ux];var al=gd.default=(0,Mo.defineComponent)({name:"BookOutline",render:function(t,o){return(0,Mo.openBlock)(),(0,Mo.createElementBlock)("svg",Wx,Kx)}}),vd={};Object.defineProperty(vd,"__esModule",{value:!0});const Tn=nt,Gx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},qx=(0,Tn.createElementVNode)("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192s192-86 192-192S362 64 256 64zm-6 304a20 20 0 1 1 20-20a20 20 0 0 1-20 20zm33.44-102C267.23 276.88 265 286.85 265 296a14 14 0 0 1-28 0c0-21.91 10.08-39.33 30.82-53.26C287.1 229.8 298 221.6 298 203.57c0-12.26-7-21.57-21.49-28.46c-3.41-1.62-11-3.2-20.34-3.09c-11.72.15-20.82 2.95-27.83 8.59C215.12 191.25 214 202.83 214 203a14 14 0 1 1-28-1.35c.11-2.43 1.8-24.32 24.77-42.8c11.91-9.58 27.06-14.56 45-14.78c12.7-.15 24.63 2 32.72 5.82C312.7 161.34 326 180.43 326 203.57c0 33.83-22.61 49.02-42.56 62.43z",fill:"currentColor"},null,-1),Xx=[qx];var ll=vd.default=(0,Tn.defineComponent)({name:"HelpCircle",render:function(t,o){return(0,Tn.openBlock)(),(0,Tn.createElementBlock)("svg",Gx,Xx)}}),bd={};Object.defineProperty(bd,"__esModule",{value:!0});const Lo=nt,Yx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Zx=(0,Lo.createElementVNode)("path",{d:"M261.56 101.28a8 8 0 0 0-11.06 0L66.4 277.15a8 8 0 0 0-2.47 5.79L63.9 448a32 32 0 0 0 32 32H192a16 16 0 0 0 16-16V328a8 8 0 0 1 8-8h80a8 8 0 0 1 8 8v136a16 16 0 0 0 16 16h96.06a32 32 0 0 0 32-32V282.94a8 8 0 0 0-2.47-5.79z",fill:"currentColor"},null,-1),Jx=(0,Lo.createElementVNode)("path",{d:"M490.91 244.15l-74.8-71.56V64a16 16 0 0 0-16-16h-48a16 16 0 0 0-16 16v32l-57.92-55.38C272.77 35.14 264.71 32 256 32c-8.68 0-16.72 3.14-22.14 8.63l-212.7 203.5c-6.22 6-7 15.87-1.34 22.37A16 16 0 0 0 43 267.56L250.5 69.28a8 8 0 0 1 11.06 0l207.52 198.28a16 16 0 0 0 22.59-.44c6.14-6.36 5.63-16.86-.76-22.97z",fill:"currentColor"},null,-1),Qx=[Zx,Jx];var sl=bd.default=(0,Lo.defineComponent)({name:"Home",render:function(t,o){return(0,Lo.openBlock)(),(0,Lo.createElementBlock)("svg",Yx,Qx)}}),xd={};Object.defineProperty(xd,"__esModule",{value:!0});const Bo=nt,ey={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ty=(0,Bo.createElementVNode)("path",{d:"M66.1 357a16 16 0 0 1-14.61-9.46A224 224 0 0 1 256 32a16 16 0 0 1 16 16v208a16 16 0 0 1-9.47 14.61l-189.9 84.95A15.93 15.93 0 0 1 66.1 357z",fill:"currentColor"},null,-1),oy=(0,Bo.createElementVNode)("path",{d:"M313.59 68.18A8 8 0 0 0 304 76v180a48.07 48.07 0 0 1-28.4 43.82L103.13 377a8 8 0 0 0-3.35 11.81a208.42 208.42 0 0 0 48.46 50.41A206.32 206.32 0 0 0 272 480c114.69 0 208-93.31 208-208c0-100.45-71.58-184.5-166.41-203.82z",fill:"currentColor"},null,-1),ny=[ty,oy];var ry=xd.default=(0,Bo.defineComponent)({name:"PieChart",render:function(t,o){return(0,Bo.openBlock)(),(0,Bo.createElementBlock)("svg",ey,ny)}}),yd={};Object.defineProperty(yd,"__esModule",{value:!0});const Wt=nt,iy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ay=(0,Wt.createElementVNode)("rect",{x:"96",y:"48",width:"320",height:"416",rx:"48",ry:"48",fill:"none",stroke:"currentColor","stroke-linejoin":"round","stroke-width":"32"},null,-1),ly=(0,Wt.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 128h160"},null,-1),sy=(0,Wt.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 208h160"},null,-1),cy=(0,Wt.createElementVNode)("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 288h80"},null,-1),dy=[ay,ly,sy,cy];var uy=yd.default=(0,Wt.defineComponent)({name:"ReaderOutline",render:function(t,o){return(0,Wt.openBlock)(),(0,Wt.createElementBlock)("svg",iy,dy)}}),Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const Ho=nt,fy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},hy=(0,Ho.createElementVNode)("circle",{cx:"256",cy:"256",r:"48",fill:"currentColor"},null,-1),py=(0,Ho.createElementVNode)("path",{d:"M470.39 300l-.47-.38l-31.56-24.75a16.11 16.11 0 0 1-6.1-13.33v-11.56a16 16 0 0 1 6.11-13.22L469.92 212l.47-.38a26.68 26.68 0 0 0 5.9-34.06l-42.71-73.9a1.59 1.59 0 0 1-.13-.22A26.86 26.86 0 0 0 401 92.14l-.35.13l-37.1 14.93a15.94 15.94 0 0 1-14.47-1.29q-4.92-3.1-10-5.86a15.94 15.94 0 0 1-8.19-11.82l-5.59-39.59l-.12-.72A27.22 27.22 0 0 0 298.76 26h-85.52a26.92 26.92 0 0 0-26.45 22.39l-.09.56l-5.57 39.67a16 16 0 0 1-8.13 11.82a175.21 175.21 0 0 0-10 5.82a15.92 15.92 0 0 1-14.43 1.27l-37.13-15l-.35-.14a26.87 26.87 0 0 0-32.48 11.34l-.13.22l-42.77 73.95a26.71 26.71 0 0 0 5.9 34.1l.47.38l31.56 24.75a16.11 16.11 0 0 1 6.1 13.33v11.56a16 16 0 0 1-6.11 13.22L42.08 300l-.47.38a26.68 26.68 0 0 0-5.9 34.06l42.71 73.9a1.59 1.59 0 0 1 .13.22a26.86 26.86 0 0 0 32.45 11.3l.35-.13l37.07-14.93a15.94 15.94 0 0 1 14.47 1.29q4.92 3.11 10 5.86a15.94 15.94 0 0 1 8.19 11.82l5.56 39.59l.12.72A27.22 27.22 0 0 0 213.24 486h85.52a26.92 26.92 0 0 0 26.45-22.39l.09-.56l5.57-39.67a16 16 0 0 1 8.18-11.82c3.42-1.84 6.76-3.79 10-5.82a15.92 15.92 0 0 1 14.43-1.27l37.13 14.95l.35.14a26.85 26.85 0 0 0 32.48-11.34a2.53 2.53 0 0 1 .13-.22l42.71-73.89a26.7 26.7 0 0 0-5.89-34.11zm-134.48-40.24a80 80 0 1 1-83.66-83.67a80.21 80.21 0 0 1 83.66 83.67z",fill:"currentColor"},null,-1),my=[hy,py];var cl=Cd.default=(0,Ho.defineComponent)({name:"Settings",render:function(t,o){return(0,Ho.openBlock)(),(0,Ho.createElementBlock)("svg",fy,my)}}),wd={};Object.defineProperty(wd,"__esModule",{value:!0});const Vt=nt,gy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},vy=(0,Vt.createElementVNode)("path",{d:"M104 496H72a24 24 0 0 1-24-24V328a24 24 0 0 1 24-24h32a24 24 0 0 1 24 24v144a24 24 0 0 1-24 24z",fill:"currentColor"},null,-1),by=(0,Vt.createElementVNode)("path",{d:"M328 496h-32a24 24 0 0 1-24-24V232a24 24 0 0 1 24-24h32a24 24 0 0 1 24 24v240a24 24 0 0 1-24 24z",fill:"currentColor"},null,-1),xy=(0,Vt.createElementVNode)("path",{d:"M440 496h-32a24 24 0 0 1-24-24V120a24 24 0 0 1 24-24h32a24 24 0 0 1 24 24v352a24 24 0 0 1-24 24z",fill:"currentColor"},null,-1),yy=(0,Vt.createElementVNode)("path",{d:"M216 496h-32a24 24 0 0 1-24-24V40a24 24 0 0 1 24-24h32a24 24 0 0 1 24 24v432a24 24 0 0 1-24 24z",fill:"currentColor"},null,-1),Cy=[vy,by,xy,yy];var dl=wd.default=(0,Vt.defineComponent)({name:"StatsChart",render:function(t,o){return(0,Vt.openBlock)(),(0,Vt.createElementBlock)("svg",gy,Cy)}}),Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});const Do=nt,wy={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Sy=(0,Do.createElementVNode)("path",{d:"M480 448h-12a4 4 0 0 1-4-4V273.51a4 4 0 0 0-5.24-3.86a104.92 104.92 0 0 1-28.32 4.78c-1.18 0-2.3.05-3.4.05a108.22 108.22 0 0 1-52.85-13.64a8.23 8.23 0 0 0-8 0a108.18 108.18 0 0 1-52.84 13.64a106.11 106.11 0 0 1-52.46-13.79a8.21 8.21 0 0 0-8.09 0a108.14 108.14 0 0 1-53.16 13.8a106.19 106.19 0 0 1-52.77-14a8.25 8.25 0 0 0-8.16 0a106.19 106.19 0 0 1-52.77 14c-1.09 0-2.19 0-3.37-.05h-.06a104.91 104.91 0 0 1-29.28-5.09a4 4 0 0 0-5.23 3.8V444a4 4 0 0 1-4 4H32.5c-8.64 0-16.1 6.64-16.48 15.28A16 16 0 0 0 32 480h447.5c8.64 0 16.1-6.64 16.48-15.28A16 16 0 0 0 480 448zm-256-68a4 4 0 0 1-4 4h-88a4 4 0 0 1-4-4v-64a12 12 0 0 1 12-12h72a12 12 0 0 1 12 12zm156 68h-72a4 4 0 0 1-4-4V316a12 12 0 0 1 12-12h56a12 12 0 0 1 12 12v128a4 4 0 0 1-4 4z",fill:"currentColor"},null,-1),_y=(0,Do.createElementVNode)("path",{d:"M492.57 170.28l-42.92-98.49C438.41 47.62 412.74 32 384.25 32H127.7c-28.49 0-54.16 15.62-65.4 39.79l-42.92 98.49c-9 19.41 2.89 39.34 2.9 39.35l.28.45c.49.78 1.36 2 1.89 2.78c.05.06.09.13.14.2l5 6.05a7.45 7.45 0 0 0 .6.65l5 4.83l.42.36a69.65 69.65 0 0 0 9.39 6.78v.05a74 74 0 0 0 36 10.67h2.47a76.08 76.08 0 0 0 51.89-20.31l.33-.31a7.94 7.94 0 0 1 10.89 0l.33.31a77.3 77.3 0 0 0 104.46 0a8 8 0 0 1 10.87 0a77.31 77.31 0 0 0 104.21.23a7.88 7.88 0 0 1 10.71 0a76.81 76.81 0 0 0 52.31 20.08h2.49a71.35 71.35 0 0 0 35-10.7c.95-.57 1.86-1.17 2.78-1.77A71.33 71.33 0 0 0 488 212.17l1.74-2.63q.26-.4.48-.84c1.66-3.38 10.56-20.76 2.35-38.42z",fill:"currentColor"},null,-1),Ey=[Sy,_y];var Py=Sd.default=(0,Do.defineComponent)({name:"Storefront",render:function(t,o){return(0,Do.openBlock)(),(0,Do.createElementBlock)("svg",wy,Ey)}});/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const io=typeof document<"u";function _d(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ky(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&_d(e.default)}const Se=Object.assign;function kr(e,t){const o={};for(const n in t){const r=t[n];o[n]=dt(r)?r.map(e):e(r)}return o}const No=()=>{},dt=Array.isArray,Ed=/#/g,Ty=/&/g,Ry=/\//g,Oy=/=/g,$y=/\?/g,Pd=/\+/g,Iy=/%5B/g,Ay=/%5D/g,kd=/%5E/g,zy=/%60/g,Td=/%7B/g,My=/%7C/g,Rd=/%7D/g,Ly=/%20/g;function Zi(e){return encodeURI(""+e).replace(My,"|").replace(Iy,"[").replace(Ay,"]")}function By(e){return Zi(e).replace(Td,"{").replace(Rd,"}").replace(kd,"^")}function ti(e){return Zi(e).replace(Pd,"%2B").replace(Ly,"+").replace(Ed,"%23").replace(Ty,"%26").replace(zy,"`").replace(Td,"{").replace(Rd,"}").replace(kd,"^")}function Hy(e){return ti(e).replace(Oy,"%3D")}function Dy(e){return Zi(e).replace(Ed,"%23").replace($y,"%3F")}function Ny(e){return e==null?"":Dy(e).replace(Ry,"%2F")}function Ko(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Fy=/\/$/,jy=e=>e.replace(Fy,"");function Tr(e,t,o="/"){let n,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=Ky(n??t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:Ko(a)}}function Wy(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function ul(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vy(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&po(t.matched[n],o.matched[r])&&Od(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Od(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!Uy(e[o],t[o]))return!1;return!0}function Uy(e,t){return dt(e)?fl(e,t):dt(t)?fl(t,e):e===t}function fl(e,t){return dt(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function Ky(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,s;for(a=0;a1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(a).join("/")}const _t={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Go;(function(e){e.pop="pop",e.push="push"})(Go||(Go={}));var Fo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Fo||(Fo={}));function Gy(e){if(!e)if(io){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jy(e)}const qy=/^[^#]+#/;function Xy(e,t){return e.replace(qy,"#")+t}function Yy(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 nr=()=>({left:window.scrollX,top:window.scrollY});function Zy(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=Yy(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 hl(e,t){return(history.state?history.state.position-t:-1)+e}const oi=new Map;function Jy(e,t){oi.set(e,t)}function Qy(e){const t=oi.get(e);return oi.delete(e),t}let eC=()=>location.protocol+"//"+location.host;function $d(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let s=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(s);return l[0]!=="/"&&(l="/"+l),ul(l,"")}return ul(o,e)+n+r}function tC(e,t,o,n){let r=[],i=[],a=null;const s=({state:f})=>{const h=$d(e,location),m=o.value,p=t.value;let g=0;if(f){if(o.value=h,t.value=f,a&&a===m){a=null;return}g=p?f.position-p.position:0}else n(h);r.forEach(v=>{v(o.value,m,{delta:g,type:Go.pop,direction:g?g>0?Fo.forward:Fo.back:Fo.unknown})})};function l(){a=o.value}function c(f){r.push(f);const h=()=>{const m=r.indexOf(f);m>-1&&r.splice(m,1)};return i.push(h),h}function d(){const{history:f}=window;f.state&&f.replaceState(Se({},f.state,{scroll:nr()}),"")}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function pl(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?nr():null}}function oC(e){const{history:t,location:o}=window,n={value:$d(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(l,c,d){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+l:eC()+e+l;try{t[d?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),o[d?"replace":"assign"](f)}}function a(l,c){const d=Se({},t.state,pl(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,d,!0),n.value=l}function s(l,c){const d=Se({},r.value,t.state,{forward:l,scroll:nr()});i(d.current,d,!0);const u=Se({},pl(n.value,l,null),{position:d.position+1},c);i(l,u,!1),n.value=l}return{location:n,state:r,push:s,replace:a}}function nC(e){e=Gy(e);const t=oC(e),o=tC(e,t.state,t.location,t.replace);function n(i,a=!0){a||o.pauseListeners(),history.go(i)}const r=Se({location:"",base:e,go:n,createHref:Xy.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 rC(e){return typeof e=="string"||e&&typeof e=="object"}function Id(e){return typeof e=="string"||typeof e=="symbol"}const Ad=Symbol("");var ml;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ml||(ml={}));function mo(e,t){return Se(new Error,{type:e,[Ad]:!0},t)}function xt(e,t){return e instanceof Error&&Ad in e&&(t==null||!!(e.type&t))}const gl="[^/]+?",iC={sensitive:!1,strict:!1,start:!0,end:!0},aC=/[.+*?^${}()[\]/\\]/g;function lC(e,t){const o=Se({},iC,t),n=[];let r=o.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[90];o.strict&&!c.length&&(r+="/");for(let u=0;ut.length?t.length===1&&t[0]===80?1:-1:0}function zd(e,t){let o=0;const n=e.score,r=t.score;for(;o0&&t[t.length-1]<0}const cC={type:0,value:""},dC=/[a-zA-Z0-9_]/;function uC(e){if(!e)return[[]];if(e==="/")return[[cC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${c}": ${h}`)}let o=0,n=o;const r=[];let i;function a(){i&&r.push(i),i=[]}let s=0,l,c="",d="";function u(){c&&(o===0?i.push({type:0,value:c}):o===1||o===2||o===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s{a(P)}:No}function a(u){if(Id(u)){const f=n.get(u);f&&(n.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&n.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function s(){return o}function l(u){const f=gC(u,o);o.splice(f,0,u),u.record.name&&!yl(u)&&n.set(u.record.name,u)}function c(u,f){let h,m={},p,g;if("name"in u&&u.name){if(h=n.get(u.name),!h)throw mo(1,{location:u});g=h.record.name,m=Se(bl(f.params,h.keys.filter(P=>!P.optional).concat(h.parent?h.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),u.params&&bl(u.params,h.keys.map(P=>P.name))),p=h.stringify(m)}else if(u.path!=null)p=u.path,h=o.find(P=>P.re.test(p)),h&&(m=h.parse(p),g=h.record.name);else{if(h=f.name?n.get(f.name):o.find(P=>P.re.test(f.path)),!h)throw mo(1,{location:u,currentLocation:f});g=h.record.name,m=Se({},f.params,u.params),p=h.stringify(m)}const v=[];let y=h;for(;y;)v.unshift(y.record),y=y.parent;return{name:g,path:p,params:m,matched:v,meta:mC(v)}}e.forEach(u=>i(u));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:c,removeRoute:a,clearRoutes:d,getRoutes:s,getRecordMatcher:r}}function bl(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function xl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:pC(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 pC(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 yl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mC(e){return e.reduce((t,o)=>Se(t,o.meta),{})}function Cl(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function gC(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;zd(e,t[i])<0?n=i:o=i+1}const r=vC(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function vC(e){let t=e;for(;t=t.parent;)if(Md(t)&&zd(e,t)===0)return t}function Md({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bC(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&ti(i)):[n&&ti(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function xC(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=dt(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const yC=Symbol(""),Sl=Symbol(""),Ji=Symbol(""),Ld=Symbol(""),ni=Symbol("");function To(){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 Rt(e,t,o,n,r,i=a=>a()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(mo(4,{from:o,to:t})):f instanceof Error?l(f):rC(f)?l(mo(2,{from:t,to:f})):(a&&n.enterCallbacks[r]===a&&typeof f=="function"&&a.push(f),s())},d=i(()=>e.call(n&&n.instances[r],t,o,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(f=>l(f))})}function Rr(e,t,o,n,r=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(_d(l)){const d=(l.__vccOpts||l)[t];d&&i.push(Rt(d,o,n,a,s,r))}else{let c=l();i.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const u=ky(d)?d.default:d;a.mods[s]=d,a.components[s]=u;const h=(u.__vccOpts||u)[t];return h&&Rt(h,o,n,a,s,r)()}))}}return i}function _l(e){const t=me(Ji),o=me(Ld),n=F(()=>{const l=Te(e.to);return t.resolve(l)}),r=F(()=>{const{matched:l}=n.value,{length:c}=l,d=l[c-1],u=o.matched;if(!d||!u.length)return-1;const f=u.findIndex(po.bind(null,d));if(f>-1)return f;const h=El(l[c-2]);return c>1&&El(d)===h&&u[u.length-1].path!==h?u.findIndex(po.bind(null,l[c-2])):f}),i=F(()=>r.value>-1&&SC(o.params,n.value.params)),a=F(()=>r.value>-1&&r.value===o.matched.length-1&&Od(o.params,n.value.params));function s(l={}){return wC(l)?t[Te(e.replace)?"replace":"push"](Te(e.to)).catch(No):Promise.resolve()}return{route:n,href:F(()=>n.value.href),isActive:i,isExactActive:a,navigate:s}}const CC=se({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:_l,setup(e,{slots:t}){const o=Zo(_l(e)),{options:n}=me(Ji),r=F(()=>({[Pl(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Pl(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:b("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}}),ct=CC;function wC(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 SC(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(!dt(r)||r.length!==n.length||n.some((i,a)=>i!==r[a]))return!1}return!0}function El(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Pl=(e,t,o)=>e??t??o,_C=se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=me(ni),r=F(()=>e.route||n.value),i=me(Sl,0),a=F(()=>{let c=Te(i);const{matched:d}=r.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),s=F(()=>r.value.matched[a.value]);ve(Sl,F(()=>a.value+1)),ve(yC,s),ve(ni,r);const l=B();return Le(()=>[l.value,s.value,e.name],([c,d,u],[f,h,m])=>{d&&(d.instances[u]=c,h&&h!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),c&&d&&(!h||!po(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=r.value,d=e.name,u=s.value,f=u&&u.components[d];if(!f)return kl(o.default,{Component:f,route:c});const h=u.props[d],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,g=b(f,Se({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return kl(o.default,{Component:g,route:c})||g}}});function kl(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const EC=_C;function PC(e){const t=hC(e.routes,e),o=e.parseQuery||bC,n=e.stringifyQuery||wl,r=e.history,i=To(),a=To(),s=To(),l=kf(_t);let c=_t;io&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=kr.bind(null,O=>""+O),u=kr.bind(null,Ny),f=kr.bind(null,Ko);function h(O,Y){let k,Z;return Id(O)?(k=t.getRecordMatcher(O),Z=Y):Z=O,t.addRoute(Z,k)}function m(O){const Y=t.getRecordMatcher(O);Y&&t.removeRoute(Y)}function p(){return t.getRoutes().map(O=>O.record)}function g(O){return!!t.getRecordMatcher(O)}function v(O,Y){if(Y=Se({},Y||l.value),typeof O=="string"){const ue=Tr(o,O,Y.path),Ae=t.resolve({path:ue.path},Y),De=r.createHref(ue.fullPath);return Se(ue,Ae,{params:f(Ae.params),hash:Ko(ue.hash),redirectedFrom:void 0,href:De})}let k;if(O.path!=null)k=Se({},O,{path:Tr(o,O.path,Y.path).path});else{const ue=Se({},O.params);for(const Ae in ue)ue[Ae]==null&&delete ue[Ae];k=Se({},O,{params:u(ue)}),Y.params=u(Y.params)}const Z=t.resolve(k,Y),we=O.hash||"";Z.params=d(f(Z.params));const Ie=Wy(n,Se({},O,{hash:By(we),path:Z.path})),ge=r.createHref(Ie);return Se({fullPath:Ie,hash:we,query:n===wl?xC(O.query):O.query||{}},Z,{redirectedFrom:void 0,href:ge})}function y(O){return typeof O=="string"?Tr(o,O,l.value.path):Se({},O)}function P(O,Y){if(c!==O)return mo(8,{from:Y,to:O})}function E(O){return C(O)}function x(O){return E(Se(y(O),{replace:!0}))}function _(O){const Y=O.matched[O.matched.length-1];if(Y&&Y.redirect){const{redirect:k}=Y;let Z=typeof k=="function"?k(O):k;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=y(Z):{path:Z},Z.params={}),Se({query:O.query,hash:O.hash,params:Z.path!=null?{}:O.params},Z)}}function C(O,Y){const k=c=v(O),Z=l.value,we=O.state,Ie=O.force,ge=O.replace===!0,ue=_(k);if(ue)return C(Se(y(ue),{state:typeof ue=="object"?Se({},we,ue.state):we,force:Ie,replace:ge}),Y||k);const Ae=k;Ae.redirectedFrom=Y;let De;return!Ie&&Vy(n,Z,k)&&(De=mo(16,{to:Ae,from:Z}),U(Z,Z,!0,!1)),(De?Promise.resolve(De):R(Ae,Z)).catch(Ne=>xt(Ne)?xt(Ne,2)?Ne:te(Ne):D(Ne,Ae,Z)).then(Ne=>{if(Ne){if(xt(Ne,2))return C(Se({replace:ge},y(Ne.to),{state:typeof Ne.to=="object"?Se({},we,Ne.to.state):we,force:Ie}),Y||Ae)}else Ne=$(Ae,Z,!0,ge,we);return z(Ae,Z,Ne),Ne})}function A(O,Y){const k=P(O,Y);return k?Promise.reject(k):Promise.resolve()}function S(O){const Y=ae.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(O):O()}function R(O,Y){let k;const[Z,we,Ie]=kC(O,Y);k=Rr(Z.reverse(),"beforeRouteLeave",O,Y);for(const ue of Z)ue.leaveGuards.forEach(Ae=>{k.push(Rt(Ae,O,Y))});const ge=A.bind(null,O,Y);return k.push(ge),Pe(k).then(()=>{k=[];for(const ue of i.list())k.push(Rt(ue,O,Y));return k.push(ge),Pe(k)}).then(()=>{k=Rr(we,"beforeRouteUpdate",O,Y);for(const ue of we)ue.updateGuards.forEach(Ae=>{k.push(Rt(Ae,O,Y))});return k.push(ge),Pe(k)}).then(()=>{k=[];for(const ue of Ie)if(ue.beforeEnter)if(dt(ue.beforeEnter))for(const Ae of ue.beforeEnter)k.push(Rt(Ae,O,Y));else k.push(Rt(ue.beforeEnter,O,Y));return k.push(ge),Pe(k)}).then(()=>(O.matched.forEach(ue=>ue.enterCallbacks={}),k=Rr(Ie,"beforeRouteEnter",O,Y,S),k.push(ge),Pe(k))).then(()=>{k=[];for(const ue of a.list())k.push(Rt(ue,O,Y));return k.push(ge),Pe(k)}).catch(ue=>xt(ue,8)?ue:Promise.reject(ue))}function z(O,Y,k){s.list().forEach(Z=>S(()=>Z(O,Y,k)))}function $(O,Y,k,Z,we){const Ie=P(O,Y);if(Ie)return Ie;const ge=Y===_t,ue=io?history.state:{};k&&(Z||ge?r.replace(O.fullPath,Se({scroll:ge&&ue&&ue.scroll},we)):r.push(O.fullPath,we)),l.value=O,U(O,Y,k,ge),te()}let Q;function ne(){Q||(Q=r.listen((O,Y,k)=>{if(!ce.listening)return;const Z=v(O),we=_(Z);if(we){C(Se(we,{replace:!0}),Z).catch(No);return}c=Z;const Ie=l.value;io&&Jy(hl(Ie.fullPath,k.delta),nr()),R(Z,Ie).catch(ge=>xt(ge,12)?ge:xt(ge,2)?(C(ge.to,Z).then(ue=>{xt(ue,20)&&!k.delta&&k.type===Go.pop&&r.go(-1,!1)}).catch(No),Promise.reject()):(k.delta&&r.go(-k.delta,!1),D(ge,Z,Ie))).then(ge=>{ge=ge||$(Z,Ie,!1),ge&&(k.delta&&!xt(ge,8)?r.go(-k.delta,!1):k.type===Go.pop&&xt(ge,20)&&r.go(-1,!1)),z(Z,Ie,ge)}).catch(No)}))}let L=To(),le=To(),w;function D(O,Y,k){te(O);const Z=le.list();return Z.length?Z.forEach(we=>we(O,Y,k)):console.error(O),Promise.reject(O)}function q(){return w&&l.value!==_t?Promise.resolve():new Promise((O,Y)=>{L.add([O,Y])})}function te(O){return w||(w=!O,ne(),L.list().forEach(([Y,k])=>O?k(O):Y()),L.reset()),O}function U(O,Y,k,Z){const{scrollBehavior:we}=e;if(!io||!we)return Promise.resolve();const Ie=!k&&Qy(hl(O.fullPath,0))||(Z||!k)&&history.state&&history.state.scroll||null;return qe().then(()=>we(O,Y,Ie)).then(ge=>ge&&Zy(ge)).catch(ge=>D(ge,O,Y))}const oe=O=>r.go(O);let M;const ae=new Set,ce={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:p,resolve:v,options:e,push:E,replace:x,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:le.add,isReady:q,install(O){const Y=this;O.component("RouterLink",ct),O.component("RouterView",EC),O.config.globalProperties.$router=Y,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>Te(l)}),io&&!M&&l.value===_t&&(M=!0,E(r.location).catch(we=>{}));const k={};for(const we in _t)Object.defineProperty(k,we,{get:()=>l.value[we],enumerable:!0});O.provide(Ji,Y),O.provide(Ld,Tf(k)),O.provide(ni,l);const Z=O.unmount;ae.add(O),O.unmount=function(){ae.delete(O),ae.size<1&&(c=_t,Q&&Q(),Q=null,l.value=_t,M=!1,w=!1),Z()}}};function Pe(O){return O.reduce((Y,k)=>Y.then(()=>S(k)),Promise.resolve())}return ce}function kC(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;apo(c,s))?n.push(s):o.push(s));const l=e.matched[a];l&&(t.matched.find(c=>po(c,l))||r.push(l))}return[o,n,r]}function Bd(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 o=e[t],n=typeof o;(n==="object"||n==="function")&&!Object.isFrozen(o)&&Bd(o)}),e}let Tl=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Hd(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Ot(e,...t){const o=Object.create(null);for(const n in e)o[n]=e[n];return t.forEach(function(n){for(const r in n)o[r]=n[r]}),o}const TC="",Rl=e=>!!e.scope,RC=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const o=e.split(".");return[`${t}${o.shift()}`,...o.map((n,r)=>`${n}${"_".repeat(r+1)}`)].join(" ")}return`${t}${e}`};class OC{constructor(t,o){this.buffer="",this.classPrefix=o.classPrefix,t.walk(this)}addText(t){this.buffer+=Hd(t)}openNode(t){if(!Rl(t))return;const o=RC(t.scope,{prefix:this.classPrefix});this.span(o)}closeNode(t){Rl(t)&&(this.buffer+=TC)}value(){return this.buffer}span(t){this.buffer+=``}}const Ol=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Qi{constructor(){this.rootNode=Ol(),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 o=Ol({scope:t});this.add(o),this.stack.push(o)}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,o){return typeof o=="string"?t.addText(o):o.children&&(t.openNode(o),o.children.forEach(n=>this._walk(t,n)),t.closeNode(o)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(o=>typeof o=="string")?t.children=[t.children.join("")]:t.children.forEach(o=>{Qi._collapse(o)}))}}class $C extends Qi{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,o){const n=t.root;o&&(n.scope=`language:${o}`),this.add(n)}toHTML(){return new OC(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function qo(e){return e?typeof e=="string"?e:e.source:null}function Dd(e){return Zt("(?=",e,")")}function IC(e){return Zt("(?:",e,")*")}function AC(e){return Zt("(?:",e,")?")}function Zt(...e){return e.map(o=>qo(o)).join("")}function zC(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ea(...e){return"("+(zC(e).capture?"":"?:")+e.map(n=>qo(n)).join("|")+")"}function Nd(e){return new RegExp(e.toString()+"|").exec("").length-1}function MC(e,t){const o=e&&e.exec(t);return o&&o.index===0}const LC=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ta(e,{joinWith:t}){let o=0;return e.map(n=>{o+=1;const r=o;let i=qo(n),a="";for(;i.length>0;){const s=LC.exec(i);if(!s){a+=i;break}a+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+r):(a+=s[0],s[0]==="("&&o++)}return a}).map(n=>`(${n})`).join(t)}const BC=/\b\B/,Fd="[a-zA-Z]\\w*",oa="[a-zA-Z_]\\w*",jd="\\b\\d+(\\.\\d+)?",Wd="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Vd="\\b(0b[01]+)",HC="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",DC=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Zt(t,/.*\b/,e.binary,/\b.*/)),Ot({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(o,n)=>{o.index!==0&&n.ignoreMatch()}},e)},Xo={begin:"\\\\[\\s\\S]",relevance:0},NC={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Xo]},FC={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Xo]},jC={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/},rr=function(e,t,o={}){const n=Ot({scope:"comment",begin:e,end:t,contains:[]},o);n.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 r=ea("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 n.contains.push({begin:Zt(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},WC=rr("//","$"),VC=rr("/\\*","\\*/"),UC=rr("#","$"),KC={scope:"number",begin:jd,relevance:0},GC={scope:"number",begin:Wd,relevance:0},qC={scope:"number",begin:Vd,relevance:0},XC={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Xo,{begin:/\[/,end:/\]/,relevance:0,contains:[Xo]}]},YC={scope:"title",begin:Fd,relevance:0},ZC={scope:"title",begin:oa,relevance:0},JC={begin:"\\.\\s*"+oa,relevance:0},QC=function(e){return Object.assign(e,{"on:begin":(t,o)=>{o.data._beginMatch=t[1]},"on:end":(t,o)=>{o.data._beginMatch!==t[1]&&o.ignoreMatch()}})};var yn=Object.freeze({__proto__:null,APOS_STRING_MODE:NC,BACKSLASH_ESCAPE:Xo,BINARY_NUMBER_MODE:qC,BINARY_NUMBER_RE:Vd,COMMENT:rr,C_BLOCK_COMMENT_MODE:VC,C_LINE_COMMENT_MODE:WC,C_NUMBER_MODE:GC,C_NUMBER_RE:Wd,END_SAME_AS_BEGIN:QC,HASH_COMMENT_MODE:UC,IDENT_RE:Fd,MATCH_NOTHING_RE:BC,METHOD_GUARD:JC,NUMBER_MODE:KC,NUMBER_RE:jd,PHRASAL_WORDS_MODE:jC,QUOTE_STRING_MODE:FC,REGEXP_MODE:XC,RE_STARTERS_RE:HC,SHEBANG:DC,TITLE_MODE:YC,UNDERSCORE_IDENT_RE:oa,UNDERSCORE_TITLE_MODE:ZC});function e1(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function t1(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function o1(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=e1,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function n1(e,t){Array.isArray(e.illegal)&&(e.illegal=ea(...e.illegal))}function r1(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 i1(e,t){e.relevance===void 0&&(e.relevance=1)}const a1=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const o=Object.assign({},e);Object.keys(e).forEach(n=>{delete e[n]}),e.keywords=o.keywords,e.begin=Zt(o.beforeMatch,Dd(o.begin)),e.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},e.relevance=0,delete o.beforeMatch},l1=["of","and","for","in","not","or","if","then","parent","list","value"],s1="keyword";function Ud(e,t,o=s1){const n=Object.create(null);return typeof e=="string"?r(o,e.split(" ")):Array.isArray(e)?r(o,e):Object.keys(e).forEach(function(i){Object.assign(n,Ud(e[i],t,i))}),n;function r(i,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");n[l[0]]=[i,c1(l[0],l[1])]})}}function c1(e,t){return t?Number(t):d1(e)?0:1}function d1(e){return l1.includes(e.toLowerCase())}const $l={},Ut=e=>{console.error(e)},Il=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ro=(e,t)=>{$l[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),$l[`${e}/${t}`]=!0)},Dn=new Error;function Kd(e,t,{key:o}){let n=0;const r=e[o],i={},a={};for(let s=1;s<=t.length;s++)a[s+n]=r[s],i[s+n]=!0,n+=Nd(t[s-1]);e[o]=a,e[o]._emit=i,e[o]._multi=!0}function u1(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ut("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Dn;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ut("beginScope must be object"),Dn;Kd(e,e.begin,{key:"beginScope"}),e.begin=ta(e.begin,{joinWith:""})}}function f1(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ut("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Dn;if(typeof e.endScope!="object"||e.endScope===null)throw Ut("endScope must be object"),Dn;Kd(e,e.end,{key:"endScope"}),e.end=ta(e.end,{joinWith:""})}}function h1(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function p1(e){h1(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),u1(e),f1(e)}function m1(e){function t(a,s){return new RegExp(qo(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Nd(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(ta(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((u,f)=>f>0&&u!==void 0),d=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,d)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new o;return this.rules.slice(s).forEach(([c,d])=>l.addRule(c,d)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(a){const s=new n;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function i(a,s){const l=a;if(a.isCompiled)return l;[t1,r1,p1,a1].forEach(d=>d(a,s)),e.compilerExtensions.forEach(d=>d(a,s)),a.__beforeBegin=null,[o1,n1,i1].forEach(d=>d(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=Ud(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=qo(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(d){return g1(d==="self"?a:d)})),a.contains.forEach(function(d){i(d,l)}),a.starts&&i(a.starts,s),l.matcher=r(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=Ot(e.classNameAliases||{}),i(e)}function Gd(e){return e?e.endsWithParent||Gd(e.starts):!1}function g1(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Ot(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Gd(e)?Ot(e,{starts:e.starts?Ot(e.starts):null}):Object.isFrozen(e)?Ot(e):e}var v1="11.10.0";class b1 extends Error{constructor(t,o){super(t),this.name="HTMLInjectionError",this.html=o}}const Or=Hd,Al=Ot,zl=Symbol("nomatch"),x1=7,qd=function(e){const t=Object.create(null),o=Object.create(null),n=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:$C};function l(w){return s.noHighlightRe.test(w)}function c(w){let D=w.className+" ";D+=w.parentNode?w.parentNode.className:"";const q=s.languageDetectRe.exec(D);if(q){const te=S(q[1]);return te||(Il(i.replace("{}",q[1])),Il("Falling back to no-highlight mode for this block.",w)),te?q[1]:"no-highlight"}return D.split(/\s+/).find(te=>l(te)||S(te))}function d(w,D,q){let te="",U="";typeof D=="object"?(te=w,q=D.ignoreIllegals,U=D.language):(ro("10.7.0","highlight(lang, code, ...args) has been deprecated."),ro("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),U=w,te=D),q===void 0&&(q=!0);const oe={code:te,language:U};L("before:highlight",oe);const M=oe.result?oe.result:u(oe.language,oe.code,q);return M.code=oe.code,L("after:highlight",M),M}function u(w,D,q,te){const U=Object.create(null);function oe(G,re){return G.keywords[re]}function M(){if(!de.keywords){H.addText(X);return}let G=0;de.keywordPatternRe.lastIndex=0;let re=de.keywordPatternRe.exec(X),pe="";for(;re;){pe+=X.substring(G,re.index);const Ce=De.case_insensitive?re[0].toLowerCase():re[0],Fe=oe(de,Ce);if(Fe){const[st,dr]=Fe;if(H.addText(pe),pe="",U[Ce]=(U[Ce]||0)+1,U[Ce]<=x1&&(fe+=dr),st.startsWith("_"))pe+=re[0];else{const ur=De.classNameAliases[st]||st;Pe(re[0],ur)}}else pe+=re[0];G=de.keywordPatternRe.lastIndex,re=de.keywordPatternRe.exec(X)}pe+=X.substring(G),H.addText(pe)}function ae(){if(X==="")return;let G=null;if(typeof de.subLanguage=="string"){if(!t[de.subLanguage]){H.addText(X);return}G=u(de.subLanguage,X,!0,W[de.subLanguage]),W[de.subLanguage]=G._top}else G=h(X,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(fe+=G.relevance),H.__addSublanguage(G._emitter,G.language)}function ce(){de.subLanguage!=null?ae():M(),X=""}function Pe(G,re){G!==""&&(H.startScope(re),H.addText(G),H.endScope())}function O(G,re){let pe=1;const Ce=re.length-1;for(;pe<=Ce;){if(!G._emit[pe]){pe++;continue}const Fe=De.classNameAliases[G[pe]]||G[pe],st=re[pe];Fe?Pe(st,Fe):(X=st,M(),X=""),pe++}}function Y(G,re){return G.scope&&typeof G.scope=="string"&&H.openNode(De.classNameAliases[G.scope]||G.scope),G.beginScope&&(G.beginScope._wrap?(Pe(X,De.classNameAliases[G.beginScope._wrap]||G.beginScope._wrap),X=""):G.beginScope._multi&&(O(G.beginScope,re),X="")),de=Object.create(G,{parent:{value:de}}),de}function k(G,re,pe){let Ce=MC(G.endRe,pe);if(Ce){if(G["on:end"]){const Fe=new Tl(G);G["on:end"](re,Fe),Fe.isMatchIgnored&&(Ce=!1)}if(Ce){for(;G.endsParent&&G.parent;)G=G.parent;return G}}if(G.endsWithParent)return k(G.parent,re,pe)}function Z(G){return de.matcher.regexIndex===0?(X+=G[0],1):(Ge=!0,0)}function we(G){const re=G[0],pe=G.rule,Ce=new Tl(pe),Fe=[pe.__beforeBegin,pe["on:begin"]];for(const st of Fe)if(st&&(st(G,Ce),Ce.isMatchIgnored))return Z(re);return pe.skip?X+=re:(pe.excludeBegin&&(X+=re),ce(),!pe.returnBegin&&!pe.excludeBegin&&(X=re)),Y(pe,G),pe.returnBegin?0:re.length}function Ie(G){const re=G[0],pe=D.substring(G.index),Ce=k(de,G,pe);if(!Ce)return zl;const Fe=de;de.endScope&&de.endScope._wrap?(ce(),Pe(re,de.endScope._wrap)):de.endScope&&de.endScope._multi?(ce(),O(de.endScope,G)):Fe.skip?X+=re:(Fe.returnEnd||Fe.excludeEnd||(X+=re),ce(),Fe.excludeEnd&&(X=re));do de.scope&&H.closeNode(),!de.skip&&!de.subLanguage&&(fe+=de.relevance),de=de.parent;while(de!==Ce.parent);return Ce.starts&&Y(Ce.starts,G),Fe.returnEnd?0:re.length}function ge(){const G=[];for(let re=de;re!==De;re=re.parent)re.scope&&G.unshift(re.scope);G.forEach(re=>H.openNode(re))}let ue={};function Ae(G,re){const pe=re&&re[0];if(X+=G,pe==null)return ce(),0;if(ue.type==="begin"&&re.type==="end"&&ue.index===re.index&&pe===""){if(X+=D.slice(re.index,re.index+1),!r){const Ce=new Error(`0 width match regex (${w})`);throw Ce.languageName=w,Ce.badRule=ue.rule,Ce}return 1}if(ue=re,re.type==="begin")return we(re);if(re.type==="illegal"&&!q){const Ce=new Error('Illegal lexeme "'+pe+'" for mode "'+(de.scope||"")+'"');throw Ce.mode=de,Ce}else if(re.type==="end"){const Ce=Ie(re);if(Ce!==zl)return Ce}if(re.type==="illegal"&&pe==="")return 1;if(Ke>1e5&&Ke>re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=pe,pe.length}const De=S(w);if(!De)throw Ut(i.replace("{}",w)),new Error('Unknown language: "'+w+'"');const Ne=m1(De);let Jt="",de=te||Ne;const W={},H=new s.__emitter(s);ge();let X="",fe=0,Ee=0,Ke=0,Ge=!1;try{if(De.__emitTokens)De.__emitTokens(D,H);else{for(de.matcher.considerAll();;){Ke++,Ge?Ge=!1:de.matcher.considerAll(),de.matcher.lastIndex=Ee;const G=de.matcher.exec(D);if(!G)break;const re=D.substring(Ee,G.index),pe=Ae(re,G);Ee=G.index+pe}Ae(D.substring(Ee))}return H.finalize(),Jt=H.toHTML(),{language:w,value:Jt,relevance:fe,illegal:!1,_emitter:H,_top:de}}catch(G){if(G.message&&G.message.includes("Illegal"))return{language:w,value:Or(D),illegal:!0,relevance:0,_illegalBy:{message:G.message,index:Ee,context:D.slice(Ee-100,Ee+100),mode:G.mode,resultSoFar:Jt},_emitter:H};if(r)return{language:w,value:Or(D),illegal:!1,relevance:0,errorRaised:G,_emitter:H,_top:de};throw G}}function f(w){const D={value:Or(w),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return D._emitter.addText(w),D}function h(w,D){D=D||s.languages||Object.keys(t);const q=f(w),te=D.filter(S).filter(z).map(ce=>u(ce,w,!1));te.unshift(q);const U=te.sort((ce,Pe)=>{if(ce.relevance!==Pe.relevance)return Pe.relevance-ce.relevance;if(ce.language&&Pe.language){if(S(ce.language).supersetOf===Pe.language)return 1;if(S(Pe.language).supersetOf===ce.language)return-1}return 0}),[oe,M]=U,ae=oe;return ae.secondBest=M,ae}function m(w,D,q){const te=D&&o[D]||q;w.classList.add("hljs"),w.classList.add(`language-${te}`)}function p(w){let D=null;const q=c(w);if(l(q))return;if(L("before:highlightElement",{el:w,language:q}),w.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",w);return}if(w.children.length>0&&(s.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(w)),s.throwUnescapedHTML))throw new b1("One of your code blocks includes unescaped HTML.",w.innerHTML);D=w;const te=D.textContent,U=q?d(te,{language:q,ignoreIllegals:!0}):h(te);w.innerHTML=U.value,w.dataset.highlighted="yes",m(w,q,U.language),w.result={language:U.language,re:U.relevance,relevance:U.relevance},U.secondBest&&(w.secondBest={language:U.secondBest.language,relevance:U.secondBest.relevance}),L("after:highlightElement",{el:w,result:U,text:te})}function g(w){s=Al(s,w)}const v=()=>{E(),ro("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){E(),ro("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let P=!1;function E(){if(document.readyState==="loading"){P=!0;return}document.querySelectorAll(s.cssSelector).forEach(p)}function x(){P&&E()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",x,!1);function _(w,D){let q=null;try{q=D(e)}catch(te){if(Ut("Language definition for '{}' could not be registered.".replace("{}",w)),r)Ut(te);else throw te;q=a}q.name||(q.name=w),t[w]=q,q.rawDefinition=D.bind(null,e),q.aliases&&R(q.aliases,{languageName:w})}function C(w){delete t[w];for(const D of Object.keys(o))o[D]===w&&delete o[D]}function A(){return Object.keys(t)}function S(w){return w=(w||"").toLowerCase(),t[w]||t[o[w]]}function R(w,{languageName:D}){typeof w=="string"&&(w=[w]),w.forEach(q=>{o[q.toLowerCase()]=D})}function z(w){const D=S(w);return D&&!D.disableAutodetect}function $(w){w["before:highlightBlock"]&&!w["before:highlightElement"]&&(w["before:highlightElement"]=D=>{w["before:highlightBlock"](Object.assign({block:D.el},D))}),w["after:highlightBlock"]&&!w["after:highlightElement"]&&(w["after:highlightElement"]=D=>{w["after:highlightBlock"](Object.assign({block:D.el},D))})}function Q(w){$(w),n.push(w)}function ne(w){const D=n.indexOf(w);D!==-1&&n.splice(D,1)}function L(w,D){const q=w;n.forEach(function(te){te[q]&&te[q](D)})}function le(w){return ro("10.7.0","highlightBlock will be removed entirely in v12.0"),ro("10.7.0","Please use highlightElement now."),p(w)}Object.assign(e,{highlight:d,highlightAuto:h,highlightAll:E,highlightElement:p,highlightBlock:le,configure:g,initHighlighting:v,initHighlightingOnLoad:y,registerLanguage:_,unregisterLanguage:C,listLanguages:A,getLanguage:S,registerAliases:R,autoDetection:z,inherit:Al,addPlugin:Q,removePlugin:ne}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=v1,e.regex={concat:Zt,lookahead:Dd,either:ea,optional:AC,anyNumberOfTimes:IC};for(const w in yn)typeof yn[w]=="object"&&Bd(yn[w]);return Object.assign(e,yn),e},go=qd({});go.newInstance=()=>qd({});var y1=go;go.HighlightJS=go;go.default=go;const $r=Rf(y1);function C1(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},o={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],r={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[t,o,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Xd(e){return JSON.parse(JSON.stringify(e))}function Yd(e,t){return function(){return e.apply(t,arguments)}}const{toString:w1}=Object.prototype,{getPrototypeOf:na}=Object,ir=(e=>t=>{const o=w1.call(t);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>ir(t)===e),ar=e=>t=>typeof t===e,{isArray:wo}=Array,Yo=ar("undefined");function S1(e){return e!==null&&!Yo(e)&&e.constructor!==null&&!Yo(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Zd=ht("ArrayBuffer");function _1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zd(e.buffer),t}const E1=ar("string"),ot=ar("function"),Jd=ar("number"),lr=e=>e!==null&&typeof e=="object",P1=e=>e===!0||e===!1,Rn=e=>{if(ir(e)!=="object")return!1;const t=na(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},k1=ht("Date"),T1=ht("File"),R1=ht("Blob"),O1=ht("FileList"),$1=e=>lr(e)&&ot(e.pipe),I1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=ir(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},A1=ht("URLSearchParams"),[z1,M1,L1,B1]=["ReadableStream","Request","Response","Headers"].map(ht),H1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sn(e,t,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),wo(e))for(n=0,r=e.length;n0;)if(r=o[n],t===r.toLowerCase())return r;return null}const Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eu=e=>!Yo(e)&&e!==Nt;function ri(){const{caseless:e}=eu(this)&&this||{},t={},o=(n,r)=>{const i=e&&Qd(t,r)||r;Rn(t[i])&&Rn(n)?t[i]=ri(t[i],n):Rn(n)?t[i]=ri({},n):wo(n)?t[i]=n.slice():t[i]=n};for(let n=0,r=arguments.length;n(sn(t,(r,i)=>{o&&ot(r)?e[i]=Yd(r,o):e[i]=r},{allOwnKeys:n}),e),N1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),F1=(e,t,o,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),o&&Object.assign(e.prototype,o)},j1=(e,t,o,n)=>{let r,i,a;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=o!==!1&&na(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},W1=(e,t,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=t.length;const n=e.indexOf(t,o);return n!==-1&&n===o},V1=e=>{if(!e)return null;if(wo(e))return e;let t=e.length;if(!Jd(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},U1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&na(Uint8Array)),K1=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},G1=(e,t)=>{let o;const n=[];for(;(o=e.exec(t))!==null;)n.push(o);return n},q1=ht("HTMLFormElement"),X1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,n,r){return n.toUpperCase()+r}),Ml=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),Y1=ht("RegExp"),tu=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),n={};sn(o,(r,i)=>{let a;(a=t(r,i,e))!==!1&&(n[i]=a||r)}),Object.defineProperties(e,n)},Z1=e=>{tu(e,(t,o)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(ot(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},J1=(e,t)=>{const o={},n=r=>{r.forEach(i=>{o[i]=!0})};return wo(e)?n(e):n(String(e).split(t)),o},Q1=()=>{},ew=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ir="abcdefghijklmnopqrstuvwxyz",Ll="0123456789",ou={DIGIT:Ll,ALPHA:Ir,ALPHA_DIGIT:Ir+Ir.toUpperCase()+Ll},tw=(e=16,t=ou.ALPHA_DIGIT)=>{let o="";const{length:n}=t;for(;e--;)o+=t[Math.random()*n|0];return o};function ow(e){return!!(e&&ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nw=e=>{const t=new Array(10),o=(n,r)=>{if(lr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;const i=wo(n)?[]:{};return sn(n,(a,s)=>{const l=o(a,r+1);!Yo(l)&&(i[s]=l)}),t[r]=void 0,i}}return n};return o(e,0)},rw=ht("AsyncFunction"),iw=e=>e&&(lr(e)||ot(e))&&ot(e.then)&&ot(e.catch),nu=((e,t)=>e?setImmediate:t?((o,n)=>(Nt.addEventListener("message",({source:r,data:i})=>{r===Nt&&i===o&&n.length&&n.shift()()},!1),r=>{n.push(r),Nt.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",ot(Nt.postMessage)),aw=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||nu,I={isArray:wo,isArrayBuffer:Zd,isBuffer:S1,isFormData:I1,isArrayBufferView:_1,isString:E1,isNumber:Jd,isBoolean:P1,isObject:lr,isPlainObject:Rn,isReadableStream:z1,isRequest:M1,isResponse:L1,isHeaders:B1,isUndefined:Yo,isDate:k1,isFile:T1,isBlob:R1,isRegExp:Y1,isFunction:ot,isStream:$1,isURLSearchParams:A1,isTypedArray:U1,isFileList:O1,forEach:sn,merge:ri,extend:D1,trim:H1,stripBOM:N1,inherits:F1,toFlatObject:j1,kindOf:ir,kindOfTest:ht,endsWith:W1,toArray:V1,forEachEntry:K1,matchAll:G1,isHTMLForm:q1,hasOwnProperty:Ml,hasOwnProp:Ml,reduceDescriptors:tu,freezeMethods:Z1,toObjectSet:J1,toCamelCase:X1,noop:Q1,toFiniteNumber:ew,findKey:Qd,global:Nt,isContextDefined:eu,ALPHABET:ou,generateString:tw,isSpecCompliantForm:ow,toJSONObject:nw,isAsyncFn:rw,isThenable:iw,setImmediate:nu,asap:aw};function he(e,t,o,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}I.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const ru=he.prototype,iu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{iu[e]={value:e}});Object.defineProperties(he,iu);Object.defineProperty(ru,"isAxiosError",{value:!0});he.from=(e,t,o,n,r,i)=>{const a=Object.create(ru);return I.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),he.call(a,e.message,t,o,n,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const lw=null;function ii(e){return I.isPlainObject(e)||I.isArray(e)}function au(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Bl(e,t,o){return e?e.concat(t).map(function(r,i){return r=au(r),!o&&i?"["+r+"]":r}).join(o?".":""):t}function sw(e){return I.isArray(e)&&!e.some(ii)}const cw=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function sr(e,t,o){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,o=I.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!I.isUndefined(g[p])});const n=o.metaTokens,r=o.visitor||d,i=o.dots,a=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(r))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(I.isDate(m))return m.toISOString();if(!l&&I.isBlob(m))throw new he("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(m)||I.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,p,g){let v=m;if(m&&!g&&typeof m=="object"){if(I.endsWith(p,"{}"))p=n?p:p.slice(0,-2),m=JSON.stringify(m);else if(I.isArray(m)&&sw(m)||(I.isFileList(m)||I.endsWith(p,"[]"))&&(v=I.toArray(m)))return p=au(p),v.forEach(function(P,E){!(I.isUndefined(P)||P===null)&&t.append(a===!0?Bl([p],E,i):a===null?p:p+"[]",c(P))}),!1}return ii(m)?!0:(t.append(Bl(g,p,i),c(m)),!1)}const u=[],f=Object.assign(cw,{defaultVisitor:d,convertValue:c,isVisitable:ii});function h(m,p){if(!I.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(m),I.forEach(m,function(v,y){(!(I.isUndefined(v)||v===null)&&r.call(t,v,I.isString(y)?y.trim():y,p,f))===!0&&h(v,p?p.concat(y):[y])}),u.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Hl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ra(e,t){this._pairs=[],e&&sr(e,this,t)}const lu=ra.prototype;lu.append=function(t,o){this._pairs.push([t,o])};lu.toString=function(t){const o=t?function(n){return t.call(this,n,Hl)}:Hl;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function dw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function su(e,t,o){if(!t)return e;const n=o&&o.encode||dw,r=o&&o.serialize;let i;if(r?i=r(t,o):i=I.isURLSearchParams(t)?t.toString():new ra(t,o).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Dl{constructor(){this.handlers=[]}use(t,o,n){return this.handlers.push({fulfilled:t,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(n){n!==null&&t(n)})}}const cu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uw=typeof URLSearchParams<"u"?URLSearchParams:ra,fw=typeof FormData<"u"?FormData:null,hw=typeof Blob<"u"?Blob:null,pw={isBrowser:!0,classes:{URLSearchParams:uw,FormData:fw,Blob:hw},protocols:["http","https","file","blob","url","data"]},ia=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,mw=ia&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),gw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vw=ia&&window.location.href||"http://localhost",bw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ia,hasStandardBrowserEnv:mw,hasStandardBrowserWebWorkerEnv:gw,navigator:ai,origin:vw},Symbol.toStringTag,{value:"Module"})),Ze={...bw,...pw};function xw(e,t){return sr(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(o,n,r,i){return Ze.isNode&&I.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yw(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cw(e){const t={},o=Object.keys(e);let n;const r=o.length;let i;for(n=0;n=o.length;return a=!a&&I.isArray(r)?r.length:a,l?(I.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):((!r[a]||!I.isObject(r[a]))&&(r[a]=[]),t(o,n,r[a],i)&&I.isArray(r[a])&&(r[a]=Cw(r[a])),!s)}if(I.isFormData(e)&&I.isFunction(e.entries)){const o={};return I.forEachEntry(e,(n,r)=>{t(yw(n),r,o,0)}),o}return null}function ww(e,t,o){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const cn={transitional:cu,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const n=o.getContentType()||"",r=n.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return r?JSON.stringify(du(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xw(t,this.formSerializer).toString();if((s=I.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return sr(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(o.setContentType("application/json",!1),ww(t)):t}],transformResponse:[function(t){const o=this.transitional||cn.transitional,n=o&&o.forcedJSONParsing,r=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(n&&!this.responseType||r)){const a=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?he.from(s,he.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{cn.headers[e]={}});const Sw=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_w=e=>{const t={};let o,n,r;return e&&e.split(` + */const io=typeof document<"u";function _d(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ky(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&_d(e.default)}const Se=Object.assign;function kr(e,t){const o={};for(const n in t){const r=t[n];o[n]=dt(r)?r.map(e):e(r)}return o}const No=()=>{},dt=Array.isArray,Ed=/#/g,Ty=/&/g,Ry=/\//g,Oy=/=/g,$y=/\?/g,Pd=/\+/g,Iy=/%5B/g,Ay=/%5D/g,kd=/%5E/g,zy=/%60/g,Td=/%7B/g,My=/%7C/g,Rd=/%7D/g,Ly=/%20/g;function Zi(e){return encodeURI(""+e).replace(My,"|").replace(Iy,"[").replace(Ay,"]")}function By(e){return Zi(e).replace(Td,"{").replace(Rd,"}").replace(kd,"^")}function ti(e){return Zi(e).replace(Pd,"%2B").replace(Ly,"+").replace(Ed,"%23").replace(Ty,"%26").replace(zy,"`").replace(Td,"{").replace(Rd,"}").replace(kd,"^")}function Hy(e){return ti(e).replace(Oy,"%3D")}function Dy(e){return Zi(e).replace(Ed,"%23").replace($y,"%3F")}function Ny(e){return e==null?"":Dy(e).replace(Ry,"%2F")}function Ko(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Fy=/\/$/,jy=e=>e.replace(Fy,"");function Tr(e,t,o="/"){let n,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(n=n||t.slice(0,s),a=t.slice(s,t.length)),n=Ky(n??t,o),{fullPath:n+(i&&"?")+i+a,path:n,query:r,hash:Ko(a)}}function Wy(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function ul(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vy(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&po(t.matched[n],o.matched[r])&&Od(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Od(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!Uy(e[o],t[o]))return!1;return!0}function Uy(e,t){return dt(e)?fl(e,t):dt(t)?fl(t,e):e===t}function fl(e,t){return dt(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function Ky(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,s;for(a=0;a1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(a).join("/")}const _t={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Go;(function(e){e.pop="pop",e.push="push"})(Go||(Go={}));var Fo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Fo||(Fo={}));function Gy(e){if(!e)if(io){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jy(e)}const qy=/^[^#]+#/;function Xy(e,t){return e.replace(qy,"#")+t}function Yy(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 nr=()=>({left:window.scrollX,top:window.scrollY});function Zy(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=Yy(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 hl(e,t){return(history.state?history.state.position-t:-1)+e}const oi=new Map;function Jy(e,t){oi.set(e,t)}function Qy(e){const t=oi.get(e);return oi.delete(e),t}let eC=()=>location.protocol+"//"+location.host;function $d(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let s=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(s);return l[0]!=="/"&&(l="/"+l),ul(l,"")}return ul(o,e)+n+r}function tC(e,t,o,n){let r=[],i=[],a=null;const s=({state:f})=>{const h=$d(e,location),m=o.value,p=t.value;let g=0;if(f){if(o.value=h,t.value=f,a&&a===m){a=null;return}g=p?f.position-p.position:0}else n(h);r.forEach(v=>{v(o.value,m,{delta:g,type:Go.pop,direction:g?g>0?Fo.forward:Fo.back:Fo.unknown})})};function l(){a=o.value}function c(f){r.push(f);const h=()=>{const m=r.indexOf(f);m>-1&&r.splice(m,1)};return i.push(h),h}function d(){const{history:f}=window;f.state&&f.replaceState(Se({},f.state,{scroll:nr()}),"")}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function pl(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?nr():null}}function oC(e){const{history:t,location:o}=window,n={value:$d(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(l,c,d){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+l:eC()+e+l;try{t[d?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),o[d?"replace":"assign"](f)}}function a(l,c){const d=Se({},t.state,pl(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,d,!0),n.value=l}function s(l,c){const d=Se({},r.value,t.state,{forward:l,scroll:nr()});i(d.current,d,!0);const u=Se({},pl(n.value,l,null),{position:d.position+1},c);i(l,u,!1),n.value=l}return{location:n,state:r,push:s,replace:a}}function nC(e){e=Gy(e);const t=oC(e),o=tC(e,t.state,t.location,t.replace);function n(i,a=!0){a||o.pauseListeners(),history.go(i)}const r=Se({location:"",base:e,go:n,createHref:Xy.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 rC(e){return typeof e=="string"||e&&typeof e=="object"}function Id(e){return typeof e=="string"||typeof e=="symbol"}const Ad=Symbol("");var ml;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ml||(ml={}));function mo(e,t){return Se(new Error,{type:e,[Ad]:!0},t)}function xt(e,t){return e instanceof Error&&Ad in e&&(t==null||!!(e.type&t))}const gl="[^/]+?",iC={sensitive:!1,strict:!1,start:!0,end:!0},aC=/[.+*?^${}()[\]/\\]/g;function lC(e,t){const o=Se({},iC,t),n=[];let r=o.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[90];o.strict&&!c.length&&(r+="/");for(let u=0;ut.length?t.length===1&&t[0]===80?1:-1:0}function zd(e,t){let o=0;const n=e.score,r=t.score;for(;o0&&t[t.length-1]<0}const cC={type:0,value:""},dC=/[a-zA-Z0-9_]/;function uC(e){if(!e)return[[]];if(e==="/")return[[cC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${c}": ${h}`)}let o=0,n=o;const r=[];let i;function a(){i&&r.push(i),i=[]}let s=0,l,c="",d="";function u(){c&&(o===0?i.push({type:0,value:c}):o===1||o===2||o===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s{a(P)}:No}function a(u){if(Id(u)){const f=n.get(u);f&&(n.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&n.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function s(){return o}function l(u){const f=gC(u,o);o.splice(f,0,u),u.record.name&&!yl(u)&&n.set(u.record.name,u)}function c(u,f){let h,m={},p,g;if("name"in u&&u.name){if(h=n.get(u.name),!h)throw mo(1,{location:u});g=h.record.name,m=Se(bl(f.params,h.keys.filter(P=>!P.optional).concat(h.parent?h.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),u.params&&bl(u.params,h.keys.map(P=>P.name))),p=h.stringify(m)}else if(u.path!=null)p=u.path,h=o.find(P=>P.re.test(p)),h&&(m=h.parse(p),g=h.record.name);else{if(h=f.name?n.get(f.name):o.find(P=>P.re.test(f.path)),!h)throw mo(1,{location:u,currentLocation:f});g=h.record.name,m=Se({},f.params,u.params),p=h.stringify(m)}const v=[];let y=h;for(;y;)v.unshift(y.record),y=y.parent;return{name:g,path:p,params:m,matched:v,meta:mC(v)}}e.forEach(u=>i(u));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:c,removeRoute:a,clearRoutes:d,getRoutes:s,getRecordMatcher:r}}function bl(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function xl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:pC(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 pC(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 yl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mC(e){return e.reduce((t,o)=>Se(t,o.meta),{})}function Cl(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}function gC(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;zd(e,t[i])<0?n=i:o=i+1}const r=vC(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function vC(e){let t=e;for(;t=t.parent;)if(Md(t)&&zd(e,t)===0)return t}function Md({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bC(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&ti(i)):[n&&ti(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function xC(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=dt(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const yC=Symbol(""),Sl=Symbol(""),Ji=Symbol(""),Ld=Symbol(""),ni=Symbol("");function To(){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 Rt(e,t,o,n,r,i=a=>a()){const a=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(mo(4,{from:o,to:t})):f instanceof Error?l(f):rC(f)?l(mo(2,{from:t,to:f})):(a&&n.enterCallbacks[r]===a&&typeof f=="function"&&a.push(f),s())},d=i(()=>e.call(n&&n.instances[r],t,o,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(f=>l(f))})}function Rr(e,t,o,n,r=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(_d(l)){const d=(l.__vccOpts||l)[t];d&&i.push(Rt(d,o,n,a,s,r))}else{let c=l();i.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const u=ky(d)?d.default:d;a.mods[s]=d,a.components[s]=u;const h=(u.__vccOpts||u)[t];return h&&Rt(h,o,n,a,s,r)()}))}}return i}function _l(e){const t=me(Ji),o=me(Ld),n=F(()=>{const l=Te(e.to);return t.resolve(l)}),r=F(()=>{const{matched:l}=n.value,{length:c}=l,d=l[c-1],u=o.matched;if(!d||!u.length)return-1;const f=u.findIndex(po.bind(null,d));if(f>-1)return f;const h=El(l[c-2]);return c>1&&El(d)===h&&u[u.length-1].path!==h?u.findIndex(po.bind(null,l[c-2])):f}),i=F(()=>r.value>-1&&SC(o.params,n.value.params)),a=F(()=>r.value>-1&&r.value===o.matched.length-1&&Od(o.params,n.value.params));function s(l={}){return wC(l)?t[Te(e.replace)?"replace":"push"](Te(e.to)).catch(No):Promise.resolve()}return{route:n,href:F(()=>n.value.href),isActive:i,isExactActive:a,navigate:s}}const CC=se({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:_l,setup(e,{slots:t}){const o=Zo(_l(e)),{options:n}=me(Ji),r=F(()=>({[Pl(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Pl(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:b("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}}),ct=CC;function wC(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 SC(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(!dt(r)||r.length!==n.length||n.some((i,a)=>i!==r[a]))return!1}return!0}function El(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Pl=(e,t,o)=>e??t??o,_C=se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=me(ni),r=F(()=>e.route||n.value),i=me(Sl,0),a=F(()=>{let c=Te(i);const{matched:d}=r.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),s=F(()=>r.value.matched[a.value]);ve(Sl,F(()=>a.value+1)),ve(yC,s),ve(ni,r);const l=B();return Le(()=>[l.value,s.value,e.name],([c,d,u],[f,h,m])=>{d&&(d.instances[u]=c,h&&h!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),c&&d&&(!h||!po(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=r.value,d=e.name,u=s.value,f=u&&u.components[d];if(!f)return kl(o.default,{Component:f,route:c});const h=u.props[d],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,g=b(f,Se({},m,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return kl(o.default,{Component:g,route:c})||g}}});function kl(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const EC=_C;function PC(e){const t=hC(e.routes,e),o=e.parseQuery||bC,n=e.stringifyQuery||wl,r=e.history,i=To(),a=To(),s=To(),l=kf(_t);let c=_t;io&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=kr.bind(null,O=>""+O),u=kr.bind(null,Ny),f=kr.bind(null,Ko);function h(O,Y){let k,Z;return Id(O)?(k=t.getRecordMatcher(O),Z=Y):Z=O,t.addRoute(Z,k)}function m(O){const Y=t.getRecordMatcher(O);Y&&t.removeRoute(Y)}function p(){return t.getRoutes().map(O=>O.record)}function g(O){return!!t.getRecordMatcher(O)}function v(O,Y){if(Y=Se({},Y||l.value),typeof O=="string"){const ue=Tr(o,O,Y.path),Ae=t.resolve({path:ue.path},Y),De=r.createHref(ue.fullPath);return Se(ue,Ae,{params:f(Ae.params),hash:Ko(ue.hash),redirectedFrom:void 0,href:De})}let k;if(O.path!=null)k=Se({},O,{path:Tr(o,O.path,Y.path).path});else{const ue=Se({},O.params);for(const Ae in ue)ue[Ae]==null&&delete ue[Ae];k=Se({},O,{params:u(ue)}),Y.params=u(Y.params)}const Z=t.resolve(k,Y),we=O.hash||"";Z.params=d(f(Z.params));const Ie=Wy(n,Se({},O,{hash:By(we),path:Z.path})),ge=r.createHref(Ie);return Se({fullPath:Ie,hash:we,query:n===wl?xC(O.query):O.query||{}},Z,{redirectedFrom:void 0,href:ge})}function y(O){return typeof O=="string"?Tr(o,O,l.value.path):Se({},O)}function P(O,Y){if(c!==O)return mo(8,{from:Y,to:O})}function _(O){return C(O)}function x(O){return _(Se(y(O),{replace:!0}))}function E(O){const Y=O.matched[O.matched.length-1];if(Y&&Y.redirect){const{redirect:k}=Y;let Z=typeof k=="function"?k(O):k;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=y(Z):{path:Z},Z.params={}),Se({query:O.query,hash:O.hash,params:Z.path!=null?{}:O.params},Z)}}function C(O,Y){const k=c=v(O),Z=l.value,we=O.state,Ie=O.force,ge=O.replace===!0,ue=E(k);if(ue)return C(Se(y(ue),{state:typeof ue=="object"?Se({},we,ue.state):we,force:Ie,replace:ge}),Y||k);const Ae=k;Ae.redirectedFrom=Y;let De;return!Ie&&Vy(n,Z,k)&&(De=mo(16,{to:Ae,from:Z}),U(Z,Z,!0,!1)),(De?Promise.resolve(De):R(Ae,Z)).catch(Ne=>xt(Ne)?xt(Ne,2)?Ne:te(Ne):D(Ne,Ae,Z)).then(Ne=>{if(Ne){if(xt(Ne,2))return C(Se({replace:ge},y(Ne.to),{state:typeof Ne.to=="object"?Se({},we,Ne.to.state):we,force:Ie}),Y||Ae)}else Ne=$(Ae,Z,!0,ge,we);return z(Ae,Z,Ne),Ne})}function A(O,Y){const k=P(O,Y);return k?Promise.reject(k):Promise.resolve()}function S(O){const Y=ae.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(O):O()}function R(O,Y){let k;const[Z,we,Ie]=kC(O,Y);k=Rr(Z.reverse(),"beforeRouteLeave",O,Y);for(const ue of Z)ue.leaveGuards.forEach(Ae=>{k.push(Rt(Ae,O,Y))});const ge=A.bind(null,O,Y);return k.push(ge),Pe(k).then(()=>{k=[];for(const ue of i.list())k.push(Rt(ue,O,Y));return k.push(ge),Pe(k)}).then(()=>{k=Rr(we,"beforeRouteUpdate",O,Y);for(const ue of we)ue.updateGuards.forEach(Ae=>{k.push(Rt(Ae,O,Y))});return k.push(ge),Pe(k)}).then(()=>{k=[];for(const ue of Ie)if(ue.beforeEnter)if(dt(ue.beforeEnter))for(const Ae of ue.beforeEnter)k.push(Rt(Ae,O,Y));else k.push(Rt(ue.beforeEnter,O,Y));return k.push(ge),Pe(k)}).then(()=>(O.matched.forEach(ue=>ue.enterCallbacks={}),k=Rr(Ie,"beforeRouteEnter",O,Y,S),k.push(ge),Pe(k))).then(()=>{k=[];for(const ue of a.list())k.push(Rt(ue,O,Y));return k.push(ge),Pe(k)}).catch(ue=>xt(ue,8)?ue:Promise.reject(ue))}function z(O,Y,k){s.list().forEach(Z=>S(()=>Z(O,Y,k)))}function $(O,Y,k,Z,we){const Ie=P(O,Y);if(Ie)return Ie;const ge=Y===_t,ue=io?history.state:{};k&&(Z||ge?r.replace(O.fullPath,Se({scroll:ge&&ue&&ue.scroll},we)):r.push(O.fullPath,we)),l.value=O,U(O,Y,k,ge),te()}let Q;function ne(){Q||(Q=r.listen((O,Y,k)=>{if(!ce.listening)return;const Z=v(O),we=E(Z);if(we){C(Se(we,{replace:!0}),Z).catch(No);return}c=Z;const Ie=l.value;io&&Jy(hl(Ie.fullPath,k.delta),nr()),R(Z,Ie).catch(ge=>xt(ge,12)?ge:xt(ge,2)?(C(ge.to,Z).then(ue=>{xt(ue,20)&&!k.delta&&k.type===Go.pop&&r.go(-1,!1)}).catch(No),Promise.reject()):(k.delta&&r.go(-k.delta,!1),D(ge,Z,Ie))).then(ge=>{ge=ge||$(Z,Ie,!1),ge&&(k.delta&&!xt(ge,8)?r.go(-k.delta,!1):k.type===Go.pop&&xt(ge,20)&&r.go(-1,!1)),z(Z,Ie,ge)}).catch(No)}))}let L=To(),le=To(),w;function D(O,Y,k){te(O);const Z=le.list();return Z.length?Z.forEach(we=>we(O,Y,k)):console.error(O),Promise.reject(O)}function q(){return w&&l.value!==_t?Promise.resolve():new Promise((O,Y)=>{L.add([O,Y])})}function te(O){return w||(w=!O,ne(),L.list().forEach(([Y,k])=>O?k(O):Y()),L.reset()),O}function U(O,Y,k,Z){const{scrollBehavior:we}=e;if(!io||!we)return Promise.resolve();const Ie=!k&&Qy(hl(O.fullPath,0))||(Z||!k)&&history.state&&history.state.scroll||null;return qe().then(()=>we(O,Y,Ie)).then(ge=>ge&&Zy(ge)).catch(ge=>D(ge,O,Y))}const oe=O=>r.go(O);let M;const ae=new Set,ce={currentRoute:l,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:p,resolve:v,options:e,push:_,replace:x,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:le.add,isReady:q,install(O){const Y=this;O.component("RouterLink",ct),O.component("RouterView",EC),O.config.globalProperties.$router=Y,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>Te(l)}),io&&!M&&l.value===_t&&(M=!0,_(r.location).catch(we=>{}));const k={};for(const we in _t)Object.defineProperty(k,we,{get:()=>l.value[we],enumerable:!0});O.provide(Ji,Y),O.provide(Ld,Tf(k)),O.provide(ni,l);const Z=O.unmount;ae.add(O),O.unmount=function(){ae.delete(O),ae.size<1&&(c=_t,Q&&Q(),Q=null,l.value=_t,M=!1,w=!1),Z()}}};function Pe(O){return O.reduce((Y,k)=>Y.then(()=>S(k)),Promise.resolve())}return ce}function kC(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;apo(c,s))?n.push(s):o.push(s));const l=e.matched[a];l&&(t.matched.find(c=>po(c,l))||r.push(l))}return[o,n,r]}function Bd(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 o=e[t],n=typeof o;(n==="object"||n==="function")&&!Object.isFrozen(o)&&Bd(o)}),e}let Tl=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Hd(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function Ot(e,...t){const o=Object.create(null);for(const n in e)o[n]=e[n];return t.forEach(function(n){for(const r in n)o[r]=n[r]}),o}const TC="",Rl=e=>!!e.scope,RC=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const o=e.split(".");return[`${t}${o.shift()}`,...o.map((n,r)=>`${n}${"_".repeat(r+1)}`)].join(" ")}return`${t}${e}`};class OC{constructor(t,o){this.buffer="",this.classPrefix=o.classPrefix,t.walk(this)}addText(t){this.buffer+=Hd(t)}openNode(t){if(!Rl(t))return;const o=RC(t.scope,{prefix:this.classPrefix});this.span(o)}closeNode(t){Rl(t)&&(this.buffer+=TC)}value(){return this.buffer}span(t){this.buffer+=``}}const Ol=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Qi{constructor(){this.rootNode=Ol(),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 o=Ol({scope:t});this.add(o),this.stack.push(o)}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,o){return typeof o=="string"?t.addText(o):o.children&&(t.openNode(o),o.children.forEach(n=>this._walk(t,n)),t.closeNode(o)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(o=>typeof o=="string")?t.children=[t.children.join("")]:t.children.forEach(o=>{Qi._collapse(o)}))}}class $C extends Qi{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,o){const n=t.root;o&&(n.scope=`language:${o}`),this.add(n)}toHTML(){return new OC(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function qo(e){return e?typeof e=="string"?e:e.source:null}function Dd(e){return Zt("(?=",e,")")}function IC(e){return Zt("(?:",e,")*")}function AC(e){return Zt("(?:",e,")?")}function Zt(...e){return e.map(o=>qo(o)).join("")}function zC(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function ea(...e){return"("+(zC(e).capture?"":"?:")+e.map(n=>qo(n)).join("|")+")"}function Nd(e){return new RegExp(e.toString()+"|").exec("").length-1}function MC(e,t){const o=e&&e.exec(t);return o&&o.index===0}const LC=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ta(e,{joinWith:t}){let o=0;return e.map(n=>{o+=1;const r=o;let i=qo(n),a="";for(;i.length>0;){const s=LC.exec(i);if(!s){a+=i;break}a+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+r):(a+=s[0],s[0]==="("&&o++)}return a}).map(n=>`(${n})`).join(t)}const BC=/\b\B/,Fd="[a-zA-Z]\\w*",oa="[a-zA-Z_]\\w*",jd="\\b\\d+(\\.\\d+)?",Wd="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Vd="\\b(0b[01]+)",HC="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",DC=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Zt(t,/.*\b/,e.binary,/\b.*/)),Ot({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(o,n)=>{o.index!==0&&n.ignoreMatch()}},e)},Xo={begin:"\\\\[\\s\\S]",relevance:0},NC={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Xo]},FC={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Xo]},jC={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/},rr=function(e,t,o={}){const n=Ot({scope:"comment",begin:e,end:t,contains:[]},o);n.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 r=ea("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 n.contains.push({begin:Zt(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},WC=rr("//","$"),VC=rr("/\\*","\\*/"),UC=rr("#","$"),KC={scope:"number",begin:jd,relevance:0},GC={scope:"number",begin:Wd,relevance:0},qC={scope:"number",begin:Vd,relevance:0},XC={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Xo,{begin:/\[/,end:/\]/,relevance:0,contains:[Xo]}]},YC={scope:"title",begin:Fd,relevance:0},ZC={scope:"title",begin:oa,relevance:0},JC={begin:"\\.\\s*"+oa,relevance:0},QC=function(e){return Object.assign(e,{"on:begin":(t,o)=>{o.data._beginMatch=t[1]},"on:end":(t,o)=>{o.data._beginMatch!==t[1]&&o.ignoreMatch()}})};var yn=Object.freeze({__proto__:null,APOS_STRING_MODE:NC,BACKSLASH_ESCAPE:Xo,BINARY_NUMBER_MODE:qC,BINARY_NUMBER_RE:Vd,COMMENT:rr,C_BLOCK_COMMENT_MODE:VC,C_LINE_COMMENT_MODE:WC,C_NUMBER_MODE:GC,C_NUMBER_RE:Wd,END_SAME_AS_BEGIN:QC,HASH_COMMENT_MODE:UC,IDENT_RE:Fd,MATCH_NOTHING_RE:BC,METHOD_GUARD:JC,NUMBER_MODE:KC,NUMBER_RE:jd,PHRASAL_WORDS_MODE:jC,QUOTE_STRING_MODE:FC,REGEXP_MODE:XC,RE_STARTERS_RE:HC,SHEBANG:DC,TITLE_MODE:YC,UNDERSCORE_IDENT_RE:oa,UNDERSCORE_TITLE_MODE:ZC});function e1(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function t1(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function o1(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=e1,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function n1(e,t){Array.isArray(e.illegal)&&(e.illegal=ea(...e.illegal))}function r1(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 i1(e,t){e.relevance===void 0&&(e.relevance=1)}const a1=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const o=Object.assign({},e);Object.keys(e).forEach(n=>{delete e[n]}),e.keywords=o.keywords,e.begin=Zt(o.beforeMatch,Dd(o.begin)),e.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},e.relevance=0,delete o.beforeMatch},l1=["of","and","for","in","not","or","if","then","parent","list","value"],s1="keyword";function Ud(e,t,o=s1){const n=Object.create(null);return typeof e=="string"?r(o,e.split(" ")):Array.isArray(e)?r(o,e):Object.keys(e).forEach(function(i){Object.assign(n,Ud(e[i],t,i))}),n;function r(i,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");n[l[0]]=[i,c1(l[0],l[1])]})}}function c1(e,t){return t?Number(t):d1(e)?0:1}function d1(e){return l1.includes(e.toLowerCase())}const $l={},Ut=e=>{console.error(e)},Il=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ro=(e,t)=>{$l[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),$l[`${e}/${t}`]=!0)},Dn=new Error;function Kd(e,t,{key:o}){let n=0;const r=e[o],i={},a={};for(let s=1;s<=t.length;s++)a[s+n]=r[s],i[s+n]=!0,n+=Nd(t[s-1]);e[o]=a,e[o]._emit=i,e[o]._multi=!0}function u1(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ut("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Dn;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ut("beginScope must be object"),Dn;Kd(e,e.begin,{key:"beginScope"}),e.begin=ta(e.begin,{joinWith:""})}}function f1(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ut("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Dn;if(typeof e.endScope!="object"||e.endScope===null)throw Ut("endScope must be object"),Dn;Kd(e,e.end,{key:"endScope"}),e.end=ta(e.end,{joinWith:""})}}function h1(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function p1(e){h1(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),u1(e),f1(e)}function m1(e){function t(a,s){return new RegExp(qo(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=Nd(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(ta(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((u,f)=>f>0&&u!==void 0),d=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,d)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new o;return this.rules.slice(s).forEach(([c,d])=>l.addRule(c,d)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(a){const s=new n;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function i(a,s){const l=a;if(a.isCompiled)return l;[t1,r1,p1,a1].forEach(d=>d(a,s)),e.compilerExtensions.forEach(d=>d(a,s)),a.__beforeBegin=null,[o1,n1,i1].forEach(d=>d(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=Ud(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=qo(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(d){return g1(d==="self"?a:d)})),a.contains.forEach(function(d){i(d,l)}),a.starts&&i(a.starts,s),l.matcher=r(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=Ot(e.classNameAliases||{}),i(e)}function Gd(e){return e?e.endsWithParent||Gd(e.starts):!1}function g1(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Ot(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Gd(e)?Ot(e,{starts:e.starts?Ot(e.starts):null}):Object.isFrozen(e)?Ot(e):e}var v1="11.10.0";class b1 extends Error{constructor(t,o){super(t),this.name="HTMLInjectionError",this.html=o}}const Or=Hd,Al=Ot,zl=Symbol("nomatch"),x1=7,qd=function(e){const t=Object.create(null),o=Object.create(null),n=[];let r=!0;const i="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:$C};function l(w){return s.noHighlightRe.test(w)}function c(w){let D=w.className+" ";D+=w.parentNode?w.parentNode.className:"";const q=s.languageDetectRe.exec(D);if(q){const te=S(q[1]);return te||(Il(i.replace("{}",q[1])),Il("Falling back to no-highlight mode for this block.",w)),te?q[1]:"no-highlight"}return D.split(/\s+/).find(te=>l(te)||S(te))}function d(w,D,q){let te="",U="";typeof D=="object"?(te=w,q=D.ignoreIllegals,U=D.language):(ro("10.7.0","highlight(lang, code, ...args) has been deprecated."),ro("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),U=w,te=D),q===void 0&&(q=!0);const oe={code:te,language:U};L("before:highlight",oe);const M=oe.result?oe.result:u(oe.language,oe.code,q);return M.code=oe.code,L("after:highlight",M),M}function u(w,D,q,te){const U=Object.create(null);function oe(G,re){return G.keywords[re]}function M(){if(!de.keywords){H.addText(X);return}let G=0;de.keywordPatternRe.lastIndex=0;let re=de.keywordPatternRe.exec(X),pe="";for(;re;){pe+=X.substring(G,re.index);const Ce=De.case_insensitive?re[0].toLowerCase():re[0],Fe=oe(de,Ce);if(Fe){const[st,dr]=Fe;if(H.addText(pe),pe="",U[Ce]=(U[Ce]||0)+1,U[Ce]<=x1&&(fe+=dr),st.startsWith("_"))pe+=re[0];else{const ur=De.classNameAliases[st]||st;Pe(re[0],ur)}}else pe+=re[0];G=de.keywordPatternRe.lastIndex,re=de.keywordPatternRe.exec(X)}pe+=X.substring(G),H.addText(pe)}function ae(){if(X==="")return;let G=null;if(typeof de.subLanguage=="string"){if(!t[de.subLanguage]){H.addText(X);return}G=u(de.subLanguage,X,!0,W[de.subLanguage]),W[de.subLanguage]=G._top}else G=h(X,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(fe+=G.relevance),H.__addSublanguage(G._emitter,G.language)}function ce(){de.subLanguage!=null?ae():M(),X=""}function Pe(G,re){G!==""&&(H.startScope(re),H.addText(G),H.endScope())}function O(G,re){let pe=1;const Ce=re.length-1;for(;pe<=Ce;){if(!G._emit[pe]){pe++;continue}const Fe=De.classNameAliases[G[pe]]||G[pe],st=re[pe];Fe?Pe(st,Fe):(X=st,M(),X=""),pe++}}function Y(G,re){return G.scope&&typeof G.scope=="string"&&H.openNode(De.classNameAliases[G.scope]||G.scope),G.beginScope&&(G.beginScope._wrap?(Pe(X,De.classNameAliases[G.beginScope._wrap]||G.beginScope._wrap),X=""):G.beginScope._multi&&(O(G.beginScope,re),X="")),de=Object.create(G,{parent:{value:de}}),de}function k(G,re,pe){let Ce=MC(G.endRe,pe);if(Ce){if(G["on:end"]){const Fe=new Tl(G);G["on:end"](re,Fe),Fe.isMatchIgnored&&(Ce=!1)}if(Ce){for(;G.endsParent&&G.parent;)G=G.parent;return G}}if(G.endsWithParent)return k(G.parent,re,pe)}function Z(G){return de.matcher.regexIndex===0?(X+=G[0],1):(Ge=!0,0)}function we(G){const re=G[0],pe=G.rule,Ce=new Tl(pe),Fe=[pe.__beforeBegin,pe["on:begin"]];for(const st of Fe)if(st&&(st(G,Ce),Ce.isMatchIgnored))return Z(re);return pe.skip?X+=re:(pe.excludeBegin&&(X+=re),ce(),!pe.returnBegin&&!pe.excludeBegin&&(X=re)),Y(pe,G),pe.returnBegin?0:re.length}function Ie(G){const re=G[0],pe=D.substring(G.index),Ce=k(de,G,pe);if(!Ce)return zl;const Fe=de;de.endScope&&de.endScope._wrap?(ce(),Pe(re,de.endScope._wrap)):de.endScope&&de.endScope._multi?(ce(),O(de.endScope,G)):Fe.skip?X+=re:(Fe.returnEnd||Fe.excludeEnd||(X+=re),ce(),Fe.excludeEnd&&(X=re));do de.scope&&H.closeNode(),!de.skip&&!de.subLanguage&&(fe+=de.relevance),de=de.parent;while(de!==Ce.parent);return Ce.starts&&Y(Ce.starts,G),Fe.returnEnd?0:re.length}function ge(){const G=[];for(let re=de;re!==De;re=re.parent)re.scope&&G.unshift(re.scope);G.forEach(re=>H.openNode(re))}let ue={};function Ae(G,re){const pe=re&&re[0];if(X+=G,pe==null)return ce(),0;if(ue.type==="begin"&&re.type==="end"&&ue.index===re.index&&pe===""){if(X+=D.slice(re.index,re.index+1),!r){const Ce=new Error(`0 width match regex (${w})`);throw Ce.languageName=w,Ce.badRule=ue.rule,Ce}return 1}if(ue=re,re.type==="begin")return we(re);if(re.type==="illegal"&&!q){const Ce=new Error('Illegal lexeme "'+pe+'" for mode "'+(de.scope||"")+'"');throw Ce.mode=de,Ce}else if(re.type==="end"){const Ce=Ie(re);if(Ce!==zl)return Ce}if(re.type==="illegal"&&pe==="")return 1;if(Ke>1e5&&Ke>re.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=pe,pe.length}const De=S(w);if(!De)throw Ut(i.replace("{}",w)),new Error('Unknown language: "'+w+'"');const Ne=m1(De);let Jt="",de=te||Ne;const W={},H=new s.__emitter(s);ge();let X="",fe=0,Ee=0,Ke=0,Ge=!1;try{if(De.__emitTokens)De.__emitTokens(D,H);else{for(de.matcher.considerAll();;){Ke++,Ge?Ge=!1:de.matcher.considerAll(),de.matcher.lastIndex=Ee;const G=de.matcher.exec(D);if(!G)break;const re=D.substring(Ee,G.index),pe=Ae(re,G);Ee=G.index+pe}Ae(D.substring(Ee))}return H.finalize(),Jt=H.toHTML(),{language:w,value:Jt,relevance:fe,illegal:!1,_emitter:H,_top:de}}catch(G){if(G.message&&G.message.includes("Illegal"))return{language:w,value:Or(D),illegal:!0,relevance:0,_illegalBy:{message:G.message,index:Ee,context:D.slice(Ee-100,Ee+100),mode:G.mode,resultSoFar:Jt},_emitter:H};if(r)return{language:w,value:Or(D),illegal:!1,relevance:0,errorRaised:G,_emitter:H,_top:de};throw G}}function f(w){const D={value:Or(w),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return D._emitter.addText(w),D}function h(w,D){D=D||s.languages||Object.keys(t);const q=f(w),te=D.filter(S).filter(z).map(ce=>u(ce,w,!1));te.unshift(q);const U=te.sort((ce,Pe)=>{if(ce.relevance!==Pe.relevance)return Pe.relevance-ce.relevance;if(ce.language&&Pe.language){if(S(ce.language).supersetOf===Pe.language)return 1;if(S(Pe.language).supersetOf===ce.language)return-1}return 0}),[oe,M]=U,ae=oe;return ae.secondBest=M,ae}function m(w,D,q){const te=D&&o[D]||q;w.classList.add("hljs"),w.classList.add(`language-${te}`)}function p(w){let D=null;const q=c(w);if(l(q))return;if(L("before:highlightElement",{el:w,language:q}),w.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",w);return}if(w.children.length>0&&(s.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(w)),s.throwUnescapedHTML))throw new b1("One of your code blocks includes unescaped HTML.",w.innerHTML);D=w;const te=D.textContent,U=q?d(te,{language:q,ignoreIllegals:!0}):h(te);w.innerHTML=U.value,w.dataset.highlighted="yes",m(w,q,U.language),w.result={language:U.language,re:U.relevance,relevance:U.relevance},U.secondBest&&(w.secondBest={language:U.secondBest.language,relevance:U.secondBest.relevance}),L("after:highlightElement",{el:w,result:U,text:te})}function g(w){s=Al(s,w)}const v=()=>{_(),ro("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){_(),ro("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let P=!1;function _(){if(document.readyState==="loading"){P=!0;return}document.querySelectorAll(s.cssSelector).forEach(p)}function x(){P&&_()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",x,!1);function E(w,D){let q=null;try{q=D(e)}catch(te){if(Ut("Language definition for '{}' could not be registered.".replace("{}",w)),r)Ut(te);else throw te;q=a}q.name||(q.name=w),t[w]=q,q.rawDefinition=D.bind(null,e),q.aliases&&R(q.aliases,{languageName:w})}function C(w){delete t[w];for(const D of Object.keys(o))o[D]===w&&delete o[D]}function A(){return Object.keys(t)}function S(w){return w=(w||"").toLowerCase(),t[w]||t[o[w]]}function R(w,{languageName:D}){typeof w=="string"&&(w=[w]),w.forEach(q=>{o[q.toLowerCase()]=D})}function z(w){const D=S(w);return D&&!D.disableAutodetect}function $(w){w["before:highlightBlock"]&&!w["before:highlightElement"]&&(w["before:highlightElement"]=D=>{w["before:highlightBlock"](Object.assign({block:D.el},D))}),w["after:highlightBlock"]&&!w["after:highlightElement"]&&(w["after:highlightElement"]=D=>{w["after:highlightBlock"](Object.assign({block:D.el},D))})}function Q(w){$(w),n.push(w)}function ne(w){const D=n.indexOf(w);D!==-1&&n.splice(D,1)}function L(w,D){const q=w;n.forEach(function(te){te[q]&&te[q](D)})}function le(w){return ro("10.7.0","highlightBlock will be removed entirely in v12.0"),ro("10.7.0","Please use highlightElement now."),p(w)}Object.assign(e,{highlight:d,highlightAuto:h,highlightAll:_,highlightElement:p,highlightBlock:le,configure:g,initHighlighting:v,initHighlightingOnLoad:y,registerLanguage:E,unregisterLanguage:C,listLanguages:A,getLanguage:S,registerAliases:R,autoDetection:z,inherit:Al,addPlugin:Q,removePlugin:ne}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString=v1,e.regex={concat:Zt,lookahead:Dd,either:ea,optional:AC,anyNumberOfTimes:IC};for(const w in yn)typeof yn[w]=="object"&&Bd(yn[w]);return Object.assign(e,yn),e},go=qd({});go.newInstance=()=>qd({});var y1=go;go.HighlightJS=go;go.default=go;const $r=Rf(y1);function C1(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},o={match:/[{}[\],:]/,className:"punctuation",relevance:0},n=["true","false","null"],r={scope:"literal",beginKeywords:n.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:n},contains:[t,o,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Xd(e){return JSON.parse(JSON.stringify(e))}function Yd(e,t){return function(){return e.apply(t,arguments)}}const{toString:w1}=Object.prototype,{getPrototypeOf:na}=Object,ir=(e=>t=>{const o=w1.call(t);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>ir(t)===e),ar=e=>t=>typeof t===e,{isArray:wo}=Array,Yo=ar("undefined");function S1(e){return e!==null&&!Yo(e)&&e.constructor!==null&&!Yo(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Zd=ht("ArrayBuffer");function _1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zd(e.buffer),t}const E1=ar("string"),ot=ar("function"),Jd=ar("number"),lr=e=>e!==null&&typeof e=="object",P1=e=>e===!0||e===!1,Rn=e=>{if(ir(e)!=="object")return!1;const t=na(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},k1=ht("Date"),T1=ht("File"),R1=ht("Blob"),O1=ht("FileList"),$1=e=>lr(e)&&ot(e.pipe),I1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=ir(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},A1=ht("URLSearchParams"),[z1,M1,L1,B1]=["ReadableStream","Request","Response","Headers"].map(ht),H1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sn(e,t,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),wo(e))for(n=0,r=e.length;n0;)if(r=o[n],t===r.toLowerCase())return r;return null}const Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eu=e=>!Yo(e)&&e!==Nt;function ri(){const{caseless:e}=eu(this)&&this||{},t={},o=(n,r)=>{const i=e&&Qd(t,r)||r;Rn(t[i])&&Rn(n)?t[i]=ri(t[i],n):Rn(n)?t[i]=ri({},n):wo(n)?t[i]=n.slice():t[i]=n};for(let n=0,r=arguments.length;n(sn(t,(r,i)=>{o&&ot(r)?e[i]=Yd(r,o):e[i]=r},{allOwnKeys:n}),e),N1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),F1=(e,t,o,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),o&&Object.assign(e.prototype,o)},j1=(e,t,o,n)=>{let r,i,a;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=o!==!1&&na(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},W1=(e,t,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=t.length;const n=e.indexOf(t,o);return n!==-1&&n===o},V1=e=>{if(!e)return null;if(wo(e))return e;let t=e.length;if(!Jd(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},U1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&na(Uint8Array)),K1=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},G1=(e,t)=>{let o;const n=[];for(;(o=e.exec(t))!==null;)n.push(o);return n},q1=ht("HTMLFormElement"),X1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,n,r){return n.toUpperCase()+r}),Ml=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),Y1=ht("RegExp"),tu=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),n={};sn(o,(r,i)=>{let a;(a=t(r,i,e))!==!1&&(n[i]=a||r)}),Object.defineProperties(e,n)},Z1=e=>{tu(e,(t,o)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(ot(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},J1=(e,t)=>{const o={},n=r=>{r.forEach(i=>{o[i]=!0})};return wo(e)?n(e):n(String(e).split(t)),o},Q1=()=>{},ew=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ir="abcdefghijklmnopqrstuvwxyz",Ll="0123456789",ou={DIGIT:Ll,ALPHA:Ir,ALPHA_DIGIT:Ir+Ir.toUpperCase()+Ll},tw=(e=16,t=ou.ALPHA_DIGIT)=>{let o="";const{length:n}=t;for(;e--;)o+=t[Math.random()*n|0];return o};function ow(e){return!!(e&&ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nw=e=>{const t=new Array(10),o=(n,r)=>{if(lr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;const i=wo(n)?[]:{};return sn(n,(a,s)=>{const l=o(a,r+1);!Yo(l)&&(i[s]=l)}),t[r]=void 0,i}}return n};return o(e,0)},rw=ht("AsyncFunction"),iw=e=>e&&(lr(e)||ot(e))&&ot(e.then)&&ot(e.catch),nu=((e,t)=>e?setImmediate:t?((o,n)=>(Nt.addEventListener("message",({source:r,data:i})=>{r===Nt&&i===o&&n.length&&n.shift()()},!1),r=>{n.push(r),Nt.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",ot(Nt.postMessage)),aw=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||nu,I={isArray:wo,isArrayBuffer:Zd,isBuffer:S1,isFormData:I1,isArrayBufferView:_1,isString:E1,isNumber:Jd,isBoolean:P1,isObject:lr,isPlainObject:Rn,isReadableStream:z1,isRequest:M1,isResponse:L1,isHeaders:B1,isUndefined:Yo,isDate:k1,isFile:T1,isBlob:R1,isRegExp:Y1,isFunction:ot,isStream:$1,isURLSearchParams:A1,isTypedArray:U1,isFileList:O1,forEach:sn,merge:ri,extend:D1,trim:H1,stripBOM:N1,inherits:F1,toFlatObject:j1,kindOf:ir,kindOfTest:ht,endsWith:W1,toArray:V1,forEachEntry:K1,matchAll:G1,isHTMLForm:q1,hasOwnProperty:Ml,hasOwnProp:Ml,reduceDescriptors:tu,freezeMethods:Z1,toObjectSet:J1,toCamelCase:X1,noop:Q1,toFiniteNumber:ew,findKey:Qd,global:Nt,isContextDefined:eu,ALPHABET:ou,generateString:tw,isSpecCompliantForm:ow,toJSONObject:nw,isAsyncFn:rw,isThenable:iw,setImmediate:nu,asap:aw};function he(e,t,o,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}I.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const ru=he.prototype,iu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{iu[e]={value:e}});Object.defineProperties(he,iu);Object.defineProperty(ru,"isAxiosError",{value:!0});he.from=(e,t,o,n,r,i)=>{const a=Object.create(ru);return I.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),he.call(a,e.message,t,o,n,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const lw=null;function ii(e){return I.isPlainObject(e)||I.isArray(e)}function au(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Bl(e,t,o){return e?e.concat(t).map(function(r,i){return r=au(r),!o&&i?"["+r+"]":r}).join(o?".":""):t}function sw(e){return I.isArray(e)&&!e.some(ii)}const cw=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function sr(e,t,o){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,o=I.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!I.isUndefined(g[p])});const n=o.metaTokens,r=o.visitor||d,i=o.dots,a=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(r))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(I.isDate(m))return m.toISOString();if(!l&&I.isBlob(m))throw new he("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(m)||I.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,p,g){let v=m;if(m&&!g&&typeof m=="object"){if(I.endsWith(p,"{}"))p=n?p:p.slice(0,-2),m=JSON.stringify(m);else if(I.isArray(m)&&sw(m)||(I.isFileList(m)||I.endsWith(p,"[]"))&&(v=I.toArray(m)))return p=au(p),v.forEach(function(P,_){!(I.isUndefined(P)||P===null)&&t.append(a===!0?Bl([p],_,i):a===null?p:p+"[]",c(P))}),!1}return ii(m)?!0:(t.append(Bl(g,p,i),c(m)),!1)}const u=[],f=Object.assign(cw,{defaultVisitor:d,convertValue:c,isVisitable:ii});function h(m,p){if(!I.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(m),I.forEach(m,function(v,y){(!(I.isUndefined(v)||v===null)&&r.call(t,v,I.isString(y)?y.trim():y,p,f))===!0&&h(v,p?p.concat(y):[y])}),u.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Hl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ra(e,t){this._pairs=[],e&&sr(e,this,t)}const lu=ra.prototype;lu.append=function(t,o){this._pairs.push([t,o])};lu.toString=function(t){const o=t?function(n){return t.call(this,n,Hl)}:Hl;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function dw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function su(e,t,o){if(!t)return e;const n=o&&o.encode||dw,r=o&&o.serialize;let i;if(r?i=r(t,o):i=I.isURLSearchParams(t)?t.toString():new ra(t,o).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Dl{constructor(){this.handlers=[]}use(t,o,n){return this.handlers.push({fulfilled:t,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(n){n!==null&&t(n)})}}const cu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uw=typeof URLSearchParams<"u"?URLSearchParams:ra,fw=typeof FormData<"u"?FormData:null,hw=typeof Blob<"u"?Blob:null,pw={isBrowser:!0,classes:{URLSearchParams:uw,FormData:fw,Blob:hw},protocols:["http","https","file","blob","url","data"]},ia=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,mw=ia&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),gw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vw=ia&&window.location.href||"http://localhost",bw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ia,hasStandardBrowserEnv:mw,hasStandardBrowserWebWorkerEnv:gw,navigator:ai,origin:vw},Symbol.toStringTag,{value:"Module"})),Ze={...bw,...pw};function xw(e,t){return sr(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(o,n,r,i){return Ze.isNode&&I.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yw(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cw(e){const t={},o=Object.keys(e);let n;const r=o.length;let i;for(n=0;n=o.length;return a=!a&&I.isArray(r)?r.length:a,l?(I.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s):((!r[a]||!I.isObject(r[a]))&&(r[a]=[]),t(o,n,r[a],i)&&I.isArray(r[a])&&(r[a]=Cw(r[a])),!s)}if(I.isFormData(e)&&I.isFunction(e.entries)){const o={};return I.forEachEntry(e,(n,r)=>{t(yw(n),r,o,0)}),o}return null}function ww(e,t,o){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const cn={transitional:cu,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const n=o.getContentType()||"",r=n.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return r?JSON.stringify(du(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xw(t,this.formSerializer).toString();if((s=I.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return sr(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(o.setContentType("application/json",!1),ww(t)):t}],transformResponse:[function(t){const o=this.transitional||cn.transitional,n=o&&o.forcedJSONParsing,r=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(n&&!this.responseType||r)){const a=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?he.from(s,he.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{cn.headers[e]={}});const Sw=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_w=e=>{const t={};let o,n,r;return e&&e.split(` `).forEach(function(a){r=a.indexOf(":"),o=a.substring(0,r).trim().toLowerCase(),n=a.substring(r+1).trim(),!(!o||t[o]&&Sw[o])&&(o==="set-cookie"?t[o]?t[o].push(n):t[o]=[n]:t[o]=t[o]?t[o]+", "+n:n)}),t},Nl=Symbol("internals");function Ro(e){return e&&String(e).trim().toLowerCase()}function On(e){return e===!1||e==null?e:I.isArray(e)?e.map(On):String(e)}function Ew(e){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)t[n[1]]=n[2];return t}const Pw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ar(e,t,o,n,r){if(I.isFunction(n))return n.call(this,t,o);if(r&&(t=o),!!I.isString(t)){if(I.isString(n))return t.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(t)}}function kw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,o,n)=>o.toUpperCase()+n)}function Tw(e,t){const o=I.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(r,i,a){return this[n].call(this,t,r,i,a)},configurable:!0})})}class Je{constructor(t){t&&this.set(t)}set(t,o,n){const r=this;function i(s,l,c){const d=Ro(l);if(!d)throw new Error("header name must be a non-empty string");const u=I.findKey(r,d);(!u||r[u]===void 0||c===!0||c===void 0&&r[u]!==!1)&&(r[u||l]=On(s))}const a=(s,l)=>I.forEach(s,(c,d)=>i(c,d,l));if(I.isPlainObject(t)||t instanceof this.constructor)a(t,o);else if(I.isString(t)&&(t=t.trim())&&!Pw(t))a(_w(t),o);else if(I.isHeaders(t))for(const[s,l]of t.entries())i(l,s,n);else t!=null&&i(o,t,n);return this}get(t,o){if(t=Ro(t),t){const n=I.findKey(this,t);if(n){const r=this[n];if(!o)return r;if(o===!0)return Ew(r);if(I.isFunction(o))return o.call(this,r,n);if(I.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=Ro(t),t){const n=I.findKey(this,t);return!!(n&&this[n]!==void 0&&(!o||Ar(this,this[n],n,o)))}return!1}delete(t,o){const n=this;let r=!1;function i(a){if(a=Ro(a),a){const s=I.findKey(n,a);s&&(!o||Ar(n,n[s],s,o))&&(delete n[s],r=!0)}}return I.isArray(t)?t.forEach(i):i(t),r}clear(t){const o=Object.keys(this);let n=o.length,r=!1;for(;n--;){const i=o[n];(!t||Ar(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const o=this,n={};return I.forEach(this,(r,i)=>{const a=I.findKey(n,i);if(a){o[a]=On(r),delete o[i];return}const s=t?kw(i):String(i).trim();s!==i&&delete o[i],o[s]=On(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return I.forEach(this,(n,r)=>{n!=null&&n!==!1&&(o[r]=t&&I.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const n=new this(t);return o.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[Nl]=this[Nl]={accessors:{}}).accessors,r=this.prototype;function i(a){const s=Ro(a);n[s]||(Tw(r,a),n[s]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}}Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Je.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[o]=n}}});I.freezeMethods(Je);function zr(e,t){const o=this||cn,n=t||o,r=Je.from(n.headers);let i=n.data;return I.forEach(e,function(s){i=s.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function uu(e){return!!(e&&e.__CANCEL__)}function So(e,t,o){he.call(this,e??"canceled",he.ERR_CANCELED,t,o),this.name="CanceledError"}I.inherits(So,he,{__CANCEL__:!0});function fu(e,t,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new he("Request failed with status code "+o.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Rw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ow(e,t){e=e||10;const o=new Array(e),n=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=n[i];a||(a=c),o[r]=l,n[r]=c;let u=i,f=0;for(;u!==r;)f+=o[u++],u=u%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-a{o=d,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),u=d-o;u>=n?a(c,d):(r=c,i||(i=setTimeout(()=>{i=null,a(r)},n-u)))},()=>r&&a(r)]}const Nn=(e,t,o=3)=>{let n=0;const r=Ow(50,250);return $w(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-n,c=r(l),d=a<=s;n=a;const u={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},o)},Fl=(e,t)=>{const o=e!=null;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},jl=e=>(...t)=>I.asap(()=>e(...t)),Iw=Ze.hasStandardBrowserEnv?function(){const t=Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent),o=document.createElement("a");let n;function r(i){let a=i;return t&&(o.setAttribute("href",a),a=o.href),o.setAttribute("href",a),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return n=r(window.location.href),function(a){const s=I.isString(a)?r(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),Aw=Ze.hasStandardBrowserEnv?{write(e,t,o,n,r,i){const a=[e+"="+encodeURIComponent(t)];I.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),I.isString(n)&&a.push("path="+n),I.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hu(e,t){return e&&!zw(t)?Mw(e,t):t}const Wl=e=>e instanceof Je?{...e}:e;function qt(e,t){t=t||{};const o={};function n(c,d,u){return I.isPlainObject(c)&&I.isPlainObject(d)?I.merge.call({caseless:u},c,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function r(c,d,u){if(I.isUndefined(d)){if(!I.isUndefined(c))return n(void 0,c,u)}else return n(c,d,u)}function i(c,d){if(!I.isUndefined(d))return n(void 0,d)}function a(c,d){if(I.isUndefined(d)){if(!I.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function s(c,d,u){if(u in t)return n(c,d);if(u in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,d)=>r(Wl(c),Wl(d),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=l[d]||r,f=u(e[d],t[d],d);I.isUndefined(f)&&u!==s||(o[d]=f)}),o}const pu=e=>{const t=qt({},e);let{data:o,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Je.from(a),t.url=su(hu(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(I.isFormData(o)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...d]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Ze.hasStandardBrowserEnv&&(n&&I.isFunction(n)&&(n=n(t)),n||n!==!1&&Iw(t.url))){const c=r&&i&&Aw.read(i);c&&a.set(r,c)}return t},Lw=typeof XMLHttpRequest<"u",Bw=Lw&&function(e){return new Promise(function(o,n){const r=pu(e);let i=r.data;const a=Je.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=r,d,u,f,h,m;function p(){h&&h(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function v(){if(!g)return;const P=Je.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:P,config:e,request:g};fu(function(C){o(C),p()},function(C){n(C),p()},x),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new he("Request aborted",he.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let E=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||cu;r.timeoutErrorMessage&&(E=r.timeoutErrorMessage),n(new he(E,x.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,g)),g=null},i===void 0&&a.setContentType(null),"setRequestHeader"in g&&I.forEach(a.toJSON(),function(E,x){g.setRequestHeader(x,E)}),I.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),s&&s!=="json"&&(g.responseType=r.responseType),c&&([f,m]=Nn(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([u,h]=Nn(l),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(d=P=>{g&&(n(!P||P.type?new So(null,e,g):P),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const y=Rw(r.url);if(y&&Ze.protocols.indexOf(y)===-1){n(new he("Unsupported protocol "+y+":",he.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Hw=(e,t)=>{const{length:o}=e=e?e.filter(Boolean):[];if(t||o){let n=new AbortController,r;const i=function(c){if(!r){r=!0,s();const d=c instanceof Error?c:this.reason;n.abort(d instanceof he?d:new So(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>I.asap(s),l}},Dw=function*(e,t){let o=e.byteLength;if(o{const r=Nw(e,t);let i=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await r.next();if(c){s(),l.close();return}let u=d.byteLength;if(o){let f=i+=u;o(f)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),r.return()}},{highWaterMark:2})},cr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mu=cr&&typeof ReadableStream=="function",jw=cr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ww=mu&&gu(()=>{let e=!1;const t=new Request(Ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ul=64*1024,li=mu&&gu(()=>I.isReadableStream(new Response("").body)),Fn={stream:li&&(e=>e.body)};cr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fn[t]&&(Fn[t]=I.isFunction(e[t])?o=>o[t]():(o,n)=>{throw new he(`Response type '${t}' is not supported`,he.ERR_NOT_SUPPORT,n)})})})(new Response);const Vw=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Ze.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await jw(e)).byteLength},Uw=async(e,t)=>{const o=I.toFiniteNumber(e.getContentLength());return o??Vw(t)},Kw=cr&&(async e=>{let{url:t,method:o,data:n,signal:r,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:f}=pu(e);c=c?(c+"").toLowerCase():"text";let h=Hw([r,i&&i.toAbortSignal()],a),m;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Ww&&o!=="get"&&o!=="head"&&(g=await Uw(d,n))!==0){let x=new Request(t,{method:"POST",body:n,duplex:"half"}),_;if(I.isFormData(n)&&(_=x.headers.get("content-type"))&&d.setContentType(_),x.body){const[C,A]=Fl(g,Nn(jl(l)));n=Vl(x.body,Ul,C,A)}}I.isString(u)||(u=u?"include":"omit");const v="credentials"in Request.prototype;m=new Request(t,{...f,signal:h,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:v?u:void 0});let y=await fetch(m);const P=li&&(c==="stream"||c==="response");if(li&&(s||P&&p)){const x={};["status","statusText","headers"].forEach(S=>{x[S]=y[S]});const _=I.toFiniteNumber(y.headers.get("content-length")),[C,A]=s&&Fl(_,Nn(jl(s),!0))||[];y=new Response(Vl(y.body,Ul,C,()=>{A&&A(),p&&p()}),x)}c=c||"text";let E=await Fn[I.findKey(Fn,c)||"text"](y,e);return!P&&p&&p(),await new Promise((x,_)=>{fu(x,_,{data:E,headers:Je.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:m})})}catch(v){throw p&&p(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,e,m),{cause:v.cause||v}):he.from(v,v&&v.code,e,m)}}),si={http:lw,xhr:Bw,fetch:Kw};I.forEach(si,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kl=e=>`- ${e}`,Gw=e=>I.isFunction(e)||e===null||e===!1,vu={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let o,n;const r={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const n=new this(t);return o.forEach(r=>n.set(r)),n}static accessor(t){const n=(this[Nl]=this[Nl]={accessors:{}}).accessors,r=this.prototype;function i(a){const s=Ro(a);n[s]||(Tw(r,a),n[s]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}}Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Je.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[o]=n}}});I.freezeMethods(Je);function zr(e,t){const o=this||cn,n=t||o,r=Je.from(n.headers);let i=n.data;return I.forEach(e,function(s){i=s.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function uu(e){return!!(e&&e.__CANCEL__)}function So(e,t,o){he.call(this,e??"canceled",he.ERR_CANCELED,t,o),this.name="CanceledError"}I.inherits(So,he,{__CANCEL__:!0});function fu(e,t,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new he("Request failed with status code "+o.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Rw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ow(e,t){e=e||10;const o=new Array(e),n=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=n[i];a||(a=c),o[r]=l,n[r]=c;let u=i,f=0;for(;u!==r;)f+=o[u++],u=u%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-a{o=d,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),u=d-o;u>=n?a(c,d):(r=c,i||(i=setTimeout(()=>{i=null,a(r)},n-u)))},()=>r&&a(r)]}const Nn=(e,t,o=3)=>{let n=0;const r=Ow(50,250);return $w(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-n,c=r(l),d=a<=s;n=a;const u={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},o)},Fl=(e,t)=>{const o=e!=null;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},jl=e=>(...t)=>I.asap(()=>e(...t)),Iw=Ze.hasStandardBrowserEnv?function(){const t=Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent),o=document.createElement("a");let n;function r(i){let a=i;return t&&(o.setAttribute("href",a),a=o.href),o.setAttribute("href",a),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return n=r(window.location.href),function(a){const s=I.isString(a)?r(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),Aw=Ze.hasStandardBrowserEnv?{write(e,t,o,n,r,i){const a=[e+"="+encodeURIComponent(t)];I.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),I.isString(n)&&a.push("path="+n),I.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hu(e,t){return e&&!zw(t)?Mw(e,t):t}const Wl=e=>e instanceof Je?{...e}:e;function qt(e,t){t=t||{};const o={};function n(c,d,u){return I.isPlainObject(c)&&I.isPlainObject(d)?I.merge.call({caseless:u},c,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function r(c,d,u){if(I.isUndefined(d)){if(!I.isUndefined(c))return n(void 0,c,u)}else return n(c,d,u)}function i(c,d){if(!I.isUndefined(d))return n(void 0,d)}function a(c,d){if(I.isUndefined(d)){if(!I.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function s(c,d,u){if(u in t)return n(c,d);if(u in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,d)=>r(Wl(c),Wl(d),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=l[d]||r,f=u(e[d],t[d],d);I.isUndefined(f)&&u!==s||(o[d]=f)}),o}const pu=e=>{const t=qt({},e);let{data:o,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Je.from(a),t.url=su(hu(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(I.isFormData(o)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...d]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Ze.hasStandardBrowserEnv&&(n&&I.isFunction(n)&&(n=n(t)),n||n!==!1&&Iw(t.url))){const c=r&&i&&Aw.read(i);c&&a.set(r,c)}return t},Lw=typeof XMLHttpRequest<"u",Bw=Lw&&function(e){return new Promise(function(o,n){const r=pu(e);let i=r.data;const a=Je.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=r,d,u,f,h,m;function p(){h&&h(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function v(){if(!g)return;const P=Je.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:P,config:e,request:g};fu(function(C){o(C),p()},function(C){n(C),p()},x),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new he("Request aborted",he.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||cu;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),n(new he(_,x.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,g)),g=null},i===void 0&&a.setContentType(null),"setRequestHeader"in g&&I.forEach(a.toJSON(),function(_,x){g.setRequestHeader(x,_)}),I.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),s&&s!=="json"&&(g.responseType=r.responseType),c&&([f,m]=Nn(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([u,h]=Nn(l),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(d=P=>{g&&(n(!P||P.type?new So(null,e,g):P),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const y=Rw(r.url);if(y&&Ze.protocols.indexOf(y)===-1){n(new he("Unsupported protocol "+y+":",he.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Hw=(e,t)=>{const{length:o}=e=e?e.filter(Boolean):[];if(t||o){let n=new AbortController,r;const i=function(c){if(!r){r=!0,s();const d=c instanceof Error?c:this.reason;n.abort(d instanceof he?d:new So(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>I.asap(s),l}},Dw=function*(e,t){let o=e.byteLength;if(o{const r=Nw(e,t);let i=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await r.next();if(c){s(),l.close();return}let u=d.byteLength;if(o){let f=i+=u;o(f)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),r.return()}},{highWaterMark:2})},cr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mu=cr&&typeof ReadableStream=="function",jw=cr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ww=mu&&gu(()=>{let e=!1;const t=new Request(Ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ul=64*1024,li=mu&&gu(()=>I.isReadableStream(new Response("").body)),Fn={stream:li&&(e=>e.body)};cr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fn[t]&&(Fn[t]=I.isFunction(e[t])?o=>o[t]():(o,n)=>{throw new he(`Response type '${t}' is not supported`,he.ERR_NOT_SUPPORT,n)})})})(new Response);const Vw=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Ze.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await jw(e)).byteLength},Uw=async(e,t)=>{const o=I.toFiniteNumber(e.getContentLength());return o??Vw(t)},Kw=cr&&(async e=>{let{url:t,method:o,data:n,signal:r,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:f}=pu(e);c=c?(c+"").toLowerCase():"text";let h=Hw([r,i&&i.toAbortSignal()],a),m;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Ww&&o!=="get"&&o!=="head"&&(g=await Uw(d,n))!==0){let x=new Request(t,{method:"POST",body:n,duplex:"half"}),E;if(I.isFormData(n)&&(E=x.headers.get("content-type"))&&d.setContentType(E),x.body){const[C,A]=Fl(g,Nn(jl(l)));n=Vl(x.body,Ul,C,A)}}I.isString(u)||(u=u?"include":"omit");const v="credentials"in Request.prototype;m=new Request(t,{...f,signal:h,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:v?u:void 0});let y=await fetch(m);const P=li&&(c==="stream"||c==="response");if(li&&(s||P&&p)){const x={};["status","statusText","headers"].forEach(S=>{x[S]=y[S]});const E=I.toFiniteNumber(y.headers.get("content-length")),[C,A]=s&&Fl(E,Nn(jl(s),!0))||[];y=new Response(Vl(y.body,Ul,C,()=>{A&&A(),p&&p()}),x)}c=c||"text";let _=await Fn[I.findKey(Fn,c)||"text"](y,e);return!P&&p&&p(),await new Promise((x,E)=>{fu(x,E,{data:_,headers:Je.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:m})})}catch(v){throw p&&p(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,e,m),{cause:v.cause||v}):he.from(v,v&&v.code,e,m)}}),si={http:lw,xhr:Bw,fetch:Kw};I.forEach(si,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kl=e=>`- ${e}`,Gw=e=>I.isFunction(e)||e===null||e===!1,vu={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let o,n;const r={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : `+i.map(Kl).join(` `):" "+Kl(i[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:si};function Mr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new So(null,e)}function Gl(e){return Mr(e),e.headers=Je.from(e.headers),e.data=zr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vu.getAdapter(e.adapter||cn.adapter)(e).then(function(n){return Mr(e),n.data=zr.call(e,e.transformResponse,n),n.headers=Je.from(n.headers),n},function(n){return uu(n)||(Mr(e),n&&n.response&&(n.response.data=zr.call(e,e.transformResponse,n.response),n.response.headers=Je.from(n.response.headers))),Promise.reject(n)})}const bu="1.7.7",aa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{aa[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ql={};aa.transitional=function(t,o,n){function r(i,a){return"[Axios v"+bu+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new he(r(a," has been removed"+(o?" in "+o:"")),he.ERR_DEPRECATED);return o&&!ql[a]&&(ql[a]=!0,console.warn(r(a," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(i,a,s):!0}};function qw(e,t,o){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const i=n[r],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new he("option "+i+" must be "+l,he.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new he("Unknown option "+i,he.ERR_BAD_OPTION)}}const ci={assertOptions:qw,validators:aa},Et=ci.validators;class Kt{constructor(t){this.defaults=t,this.interceptors={request:new Dl,response:new Dl}}async request(t,o){try{return await this._request(t,o)}catch(n){if(n instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+i):n.stack=i}catch{}}throw n}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=qt(this.defaults,o);const{transitional:n,paramsSerializer:r,headers:i}=o;n!==void 0&&ci.assertOptions(n,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),r!=null&&(I.isFunction(r)?o.paramsSerializer={serialize:r}:ci.assertOptions(r,{encode:Et.function,serialize:Et.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let a=i&&I.merge(i.common,i[o.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),o.headers=Je.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let d,u=0,f;if(!l){const m=[Gl.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),f=m.length,d=Promise.resolve(o);u{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(r);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new So(i,a,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const t=new AbortController,o=n=>{t.abort(n)};return this.subscribe(o),t.signal.unsubscribe=()=>this.unsubscribe(o),t.signal}static source(){let t;return{token:new la(function(r){t=r}),cancel:t}}}function Xw(e){return function(o){return e.apply(null,o)}}function Yw(e){return I.isObject(e)&&e.isAxiosError===!0}const di={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(di).forEach(([e,t])=>{di[t]=e});function xu(e){const t=new Kt(e),o=Yd(Kt.prototype.request,t);return I.extend(o,Kt.prototype,t,{allOwnKeys:!0}),I.extend(o,t,null,{allOwnKeys:!0}),o.create=function(r){return xu(qt(e,r))},o}const _e=xu(cn);_e.Axios=Kt;_e.CanceledError=So;_e.CancelToken=la;_e.isCancel=uu;_e.VERSION=bu;_e.toFormData=sr;_e.AxiosError=he;_e.Cancel=_e.CanceledError;_e.all=function(t){return Promise.all(t)};_e.spread=Xw;_e.isAxiosError=Yw;_e.mergeConfig=qt;_e.AxiosHeaders=Je;_e.formToJSON=e=>du(I.isHTMLForm(e)?new FormData(e):e);_e.getAdapter=vu.getAdapter;_e.HttpStatusCode=di;_e.default=_e;const yu=Xn("config",()=>{const e=B([]);async function t(){const{data:d}=await _e.get("/shop"),u=[];for(const f of d)u.push({value:f,label:f});e.value=u}const o=B({webview:{scale:1}}),n=["enable_party","leifeng_mode","maa_enable","maa_rg_enable","mail_enable","skland_enable"],r=["free_blacklist","reload_room","maa_mall_buy","maa_mall_blacklist"];function i(d){for(const u of n)d[u]=d[u]!=0;for(const u of r)d[u]=d[u]==""?[]:d[u].split(",");return d.package_type=d.package_type==1?"official":"bilibili",d.resting_threshold=d.resting_threshold*100,d.tap_to_launch_game.enable=d.tap_to_launch_game.enable?"tap":"adb",d}async function a(){const{data:d}=await _e.get("/conf");o.value=i(d)}function s(){const d=Xd(o.value);for(const u of n)d[u]=d[u]?1:0;for(const u of r)d[u]=d[u].join(",");return d.package_type=d.package_type=="official"?1:0,d.resting_threshold=d.resting_threshold/100,d.tap_to_launch_game.enable=d.tap_to_launch_game.enable=="tap",d}const l=B(0),c=B(!1);return Le(o,()=>{if(!c.value){c.value=!0;return}l.value=Date.now(),_e.post("/conf",{time:l.value,data:s()})},{deep:!0}),{load_config:a,load_shop:t,parse_config:i,shop_list:e,timestamp:l,post_conf:c,conf:o}});/*! ***************************************************************************** @@ -1194,6 +1194,6 @@ and limitations under the License. * https://github.com/pladaria/reconnecting-websocket * License MIT */var oS=function(){if(typeof WebSocket<"u")return WebSocket},nS=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},Lt={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},rS=function(){function e(t,o,n){var r=this;n===void 0&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(i){r._debug("open event");var a=r._options.minUptime,s=a===void 0?Lt.minUptime:a;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},s),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(l){return r._ws.send(l)}),r._messageQueue=[],r.onopen&&r.onopen(i),r._listeners.open.forEach(function(l){return r._callEventListener(i,l)})},this._handleMessage=function(i){r._debug("message event"),r.onmessage&&r.onmessage(i),r._listeners.message.forEach(function(a){return r._callEventListener(i,a)})},this._handleError=function(i){r._debug("error event",i.message),r._disconnect(void 0,i.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(i),r._debug("exec error listeners"),r._listeners.error.forEach(function(a){return r._callEventListener(i,a)}),r._connect()},this._handleClose=function(i){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(i),r._listeners.close.forEach(function(a){return r._callEventListener(i,a)})},this._url=t,this._protocols=o,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(o,n){return typeof n=="string"?o+=n.length:n instanceof Blob?o+=n.size:o+=n.byteLength,o},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,o){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,o)},e.prototype.reconnect=function(t,o){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,o),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var o=this._options.maxEnqueuedMessages,n=o===void 0?Lt.maxEnqueuedMessages:o;this._messageQueue.length"],t))},e.prototype._getNextDelay=function(){var t=this._options,o=t.reconnectionDelayGrowFactor,n=o===void 0?Lt.reconnectionDelayGrowFactor:o,r=t.minReconnectionDelay,i=r===void 0?Lt.minReconnectionDelay:r,a=t.maxReconnectionDelay,s=a===void 0?Lt.maxReconnectionDelay:a,l=0;return this._retryCount>0&&(l=i*Math.pow(n,this._retryCount-1),l>s&&(l=s)),this._debug("next delay",l),l},e.prototype._wait=function(){var t=this;return new Promise(function(o){setTimeout(o,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var o=t();if(typeof o=="string")return Promise.resolve(o);if(o.then)return o}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var o=this._options,n=o.maxRetries,r=n===void 0?Lt.maxRetries:n,i=o.connectionTimeout,a=i===void 0?Lt.connectionTimeout:i,s=o.WebSocket,l=s===void 0?oS():s;if(this._retryCount>=r){this._debug("max retries reached",this._retryCount,">=",r);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!nS(l))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(c){t._closeCalled||(t._debug("connect",{url:c,protocols:t._protocols}),t._ws=t._protocols?new l(c,t._protocols):new l(c),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},a))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new eS(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,o){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,o),this._handleClose(new tS(t,o,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,o){"handleEvent"in o?o.handleEvent(t):o(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();const iS=Xn("mower",()=>{const e=B([]),t=F(()=>e.value.join(` -`)),o=/^[0-9].*/,n=F(()=>{const v=[];for(const y of e.value)y.match(o)?v.push(y.substring(15)):v.push(y);return v.join(` -`)}),r=B(null),i=B(!1),a=B(!1),s=B(0),l=B([]),c=yu(),{conf:d,timestamp:u,post_conf:f}=_n(c),{parse_config:h}=c;function m(){let v;v=location.origin;const y=v.replace(/^http/,"ws")+"/ws";r.value=new rS(y),r.value.onmessage=({data:P})=>{P=JSON.parse(P),P.type=="log"?e.value=e.value.concat(P.data.split(` -`)).slice(-100):P.type=="conf"&&u.value{const e=B(1),t=B([]),o=B([]),n=B([]),r=B([]),i=B([]),a=B([]),s=B({}),l=B([]),c=B([]),d=[],u={central:5,meeting:2,factory:1,contact:1,train:2};for(let S=1;S<=3;++S)for(let R=1;R<=3;++R){const z=`room_${S}_${R}`,$=`B${S}0${R}`;u[z]=3,d.push({label:$,value:z})}for(let S=1;S<=4;++S)u[`dormitory_${S}`]=5;function f(S){return S.join(",")}function h(S){return S&&S!=""?S.split(","):[]}const m=["exhaust_require","rest_in_full","resting_priority","workaholic","free_blacklist","refresh_trading"];function p(S){for(const R in u){let z=0;if(!S[R])z=u[R],S[R]={name:"",plans:[]};else{let $=u[R];S[R].name=="发电站"?$=1:S[R].name=="贸易站"?["lmd","orundum"].includes(S[R].product)||(S[R].product="lmd"):S[R].name=="制造站"&&(["gold","exp3","orirock"].includes(S[R].product)||(S[R].product="gold")),S[R].plans.length<$&&(z=$-S[R].plans.length)}for(let $=0;${x.value&&_e.post("/plan",E())});const _=F(()=>{const S=[];for(const R in s.value)for(const z of s.value[R].plans)z.group&&S.push(z.group);return[...new Set(S)]}),C=B("main"),A=F(()=>C.value=="main"?s.value:l.value[C.value].plan);return{load_plan:y,load_operators:P,ling_xi:e,max_resting_count:t,exhaust_require:o,rest_in_full:n,resting_priority:r,workaholic:i,refresh_trading:a,plan:s,operators:c,facility_operator_limit:u,left_side_facility:d,build_plan:E,groups:_,backup_plans:l,sub_plan:C,current_plan:A,fill_empty:p}}),lS=Xn("watermark",()=>{async function e(){return(await _e.get("/getwatermark")).data.toString()}return{getwatermarkinfo:e}}),sS={style:{display:"flex","flex-direction":"column","align-items":"center"}},cS={style:{display:"flex","flex-direction":"column","align-items":"center"}},dS={style:{display:"flex","flex-direction":"column","align-items":"center"}},uS={style:{display:"flex","flex-direction":"column","align-items":"center"}},fS={style:{display:"flex","flex-direction":"column","align-items":"center"}},hS={__name:"App",setup(e){const t=B(!1);function o(z){return()=>b(Bt,null,{default:()=>b(z)})}const n=[{label:()=>b(ct,{to:{path:"/"}},{default:()=>"运行日志"}),icon:o(al),key:"go-to-log"},{label:()=>b(ct,{to:{path:"/settings"}},{default:()=>"全部设置"}),icon:o(cl),key:"go-to-allsetting"},{label:()=>b(ct,{to:{path:"/plan-editor"}},{default:()=>"排班编辑"}),icon:o(sl),key:"go-to-plan"},{label:()=>"数据图表",key:"building-report",icon:o(dl),children:[{label:()=>b(ct,{to:{path:"/record/line"}},{default:()=>"干员心情报表"}),icon:o(jx),key:"go-to-record-line"},{label:()=>b(ct,{to:{path:"/record/pie"}},{default:()=>"工休比报表"}),icon:o(ry),key:"go-to-record-pie"},{label:()=>b(ct,{to:{path:"/record/depot"}},{default:()=>"仓库"}),icon:o(Py),key:"go-to-record-depot"},{label:()=>b(ct,{to:{path:"/record/report"}},{default:()=>"基建报表"}),icon:o(uy),key:"go-to-record-report"}]},{label:()=>b(ct,{to:{path:"/debug"}},{default:()=>"日志查看器"}),icon:o(Cx),key:"debug"},{label:()=>b(ct,{to:{path:"/doc"}},{default:()=>"帮助文档"}),icon:o(ll),key:"go-to-doc"},{label:()=>b(ct,{to:{path:"/BasementSkill"}},{default:()=>"基建技能"}),icon:o(kx),key:"BasementSkill"},{label:()=>b("a",{href:"https://arkntools.app/ ",target:"_blank",rel:"noopenner noreferrer"},"明日方舟工具箱"),key:"toolbox",icon:o(Mx)},{label:()=>b("a",{href:"https://prts.wiki/w/%E9%A6%96%E9%A1%B5",target:"_blank",rel:"noopenner noreferrer"},"明日方舟PRTS"),key:"wiki",icon:o($x)}];$r.registerLanguage("json",C1);const r=lS(),{getwatermarkinfo:i}=r,a=B("mower"),s=yu(),{load_config:l,load_shop:c}=s,{conf:d}=_n(s),u=aS(),{operators:f}=_n(u),{load_plan:h,load_operators:m}=u,p=iS(),{ws:g,running:v,log_lines:y}=_n(p),{get_running:P,listen_ws:E}=p,x=me("axios");function _(){v.value=!0,y.value=[],x.get("/start")}function C(){document.documentElement.style.setProperty("--app-height",`${window.innerHeight/d.value.webview.scale}px`),document.documentElement.style.setProperty("--app-width",`${window.innerWidth/d.value.webview.scale}px`),A.value=window.innerWidth<800*d.value.webview.scale}const A=B(!0);ve("mobile",A);const S=me("loaded"),R=F(()=>[{value:"Current",label:"Current"},{value:"Free",label:"Free"}].concat(f.value));return wt(async()=>{C(),window.addEventListener("resize",()=>{C()});const $=new URLSearchParams(document.location.search).get("token");ve("token",$),x.defaults.headers.common.token=$,await Promise.all([l(),c(),m(),P()]),await h(),S.value=!0;const Q=RegExp(R.value.map(ne=>"'"+ne.value).join("|"));$r.registerLanguage("mower",()=>({contains:[{begin:Q,end:/'/,className:"operator",relevance:0},{begin:/宿舍黑名单|重设上次房间为空/,relevance:10},{begin:/[0-9]+(-[0-9]+)+/,className:"date"},{begin:/[0-9]+:[0-9]+:[0-9]+((\.|,)[0-9]+)?/,className:"time"},{begin:/room_[0-9]_[0-9]|dormitory_[0-9]|central|contact|factory|meeting/,className:"room"},{begin:/INFO/,className:"info"},{begin:/WARNING/,className:"warning"},{begin:/ERROR/,className:"error"},{begin:/Scene [0-9]+:.*/,className:"scene"}]})),g.value||E(),d.value.start_automatically&&_(),a.value=await i()}),Le(()=>d.value.webview.scale,z=>{const $=document.querySelector("#app");$.style.transform=`scale(${d.value.webview.scale})`,C()}),(z,$)=>{const Q=f0,ne=dx,L=V0,le=k0,w=$f("router-view"),D=x0,q=Hn,te=Dr,U=ms,oe=Dc,M=ax,ae=w0,ce=b0,Pe=z0,O=J0,Y=Kv,k=Qg;return un(),fn(k,{locale:Te(Qp),"date-locale":Te(zm),class:"provider",theme:Te(d).theme=="dark"?Te(px):void 0,hljs:Te($r),style:{"user-select":"none"}},{default:Me(()=>[$e(Q),$e(Y,null,{default:Me(()=>[$e(O,null,{default:Me(()=>[$e(Pe,null,{default:Me(()=>[$e(ne,{content:Te(a),cross:"",fullscreen:"","font-size":16,"line-height":32,width:400,height:384,"x-offset":12,"y-offset":60,rotate:-15},null,8,["content"]),$e(ce,{"has-sider":!Te(A),class:"outer-layout"},{default:Me(()=>[Te(A)?hr("",!0):(un(),fn(le,{key:0,bordered:"","collapse-mode":"width","collapsed-width":64,width:210,"show-trigger":""},{default:Me(()=>[$e(L,{indent:24,"collapsed-width":64,"collapsed-icon-size":22,options:n})]),_:1})),$e(D,{class:"layout-content-container"},{default:Me(()=>[Te(S)?(un(),fn(w,{key:0})):hr("",!0)]),_:1}),Te(A)?(un(),fn(ae,{key:1},{default:Me(()=>[$e(M,{type:"line","justify-content":"space-evenly",size:"small"},{default:Me(()=>[$e(q,{name:"日志",onClick:$[0]||($[0]=Z=>z.$router.push("/"))},{default:Me(()=>[gt("div",sS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(al)},null,8,["component"]),$[10]||($[10]=tt(" 日志 "))])]),_:1}),$e(q,{name:"设置",onClick:$[1]||($[1]=Z=>z.$router.push("/settings"))},{default:Me(()=>[gt("div",cS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(cl)},null,8,["component"]),$[11]||($[11]=tt(" 设置 "))])]),_:1}),$e(q,{name:"排班",onClick:$[2]||($[2]=Z=>z.$router.push("/plan-editor"))},{default:Me(()=>[gt("div",dS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(sl)},null,8,["component"]),$[12]||($[12]=tt(" 排班 "))])]),_:1}),$e(q,{name:"报表",onClick:$[8]||($[8]=Z=>t.value=!0)},{default:Me(()=>[gt("div",uS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(dl)},null,8,["component"]),$[13]||($[13]=tt(" 报表 "))]),$e(oe,{show:Te(t),"onUpdate:show":$[7]||($[7]=Z=>uo(t)?t.value=Z:null)},{default:Me(()=>[$e(U,{style:{width:"300px"},title:"基建报表",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:Me(()=>[gt("div",null,[$e(te,{onClick:$[3]||($[3]=Z=>{t.value=!1,z.$router.push("/record/line")})},{default:Me(()=>$[14]||($[14]=[tt(" 心情曲线 ")])),_:1})]),gt("div",null,[$e(te,{onClick:$[4]||($[4]=Z=>{t.value=!1,z.$router.push("/record/pie")})},{default:Me(()=>$[15]||($[15]=[tt(" 心情饼图 ")])),_:1})]),gt("div",null,[$e(te,{onClick:$[5]||($[5]=Z=>{t.value=!1,z.$router.push("/record/depot")})},{default:Me(()=>$[16]||($[16]=[tt(" 仓库 ")])),_:1})]),gt("div",null,[$e(te,{onClick:$[6]||($[6]=Z=>{t.value=!1,z.$router.push("/record/report")})},{default:Me(()=>$[17]||($[17]=[tt(" 基建报告 ")])),_:1})])]),_:1})]),_:1},8,["show"])]),_:1}),$e(q,{name:"帮助",onClick:$[9]||($[9]=Z=>z.$router.push("/doc"))},{default:Me(()=>[gt("div",fS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(ll)},null,8,["component"]),$[18]||($[18]=tt(" 帮助 "))])]),_:1})]),_:1})]),_:1})):hr("",!0)]),_:1},8,["has-sider"])]),_:1})]),_:1})]),_:1})]),_:1},8,["locale","date-locale","theme","hljs"])}}},pS=Of(hS,[["__scopeId","data-v-1c09e2c8"]]),mS="modulepreload",gS=function(e){return"/"+e},Xl={},it=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(o.map(l=>{if(l=gS(l),l in Xl)return;Xl[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":mS,c||(u.as="script"),u.crossOrigin="",u.href=l,s&&u.setAttribute("nonce",s),document.head.appendChild(u),c)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return r.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},vS=[{path:"/",children:[{path:"",component:()=>it(()=>import("./Log.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),meta:{title:"日志"},name:"log"},{path:"plan-editor",component:()=>it(()=>import("./Plan.js"),__vite__mapDeps([20,21,2,22,15,6,23,9,13,5,7,8,10,11,12,14,24,1,3,4,16,17,25,26,27,28])),meta:{title:"排班"},name:"plan"},{path:"settings",component:()=>it(()=>import("./Settings.js"),__vite__mapDeps([29,2,5,6,7,8,9,10,11,12,13,14,15,21,22,23,24,30,31,27,32,33,1,3,34,35,36])),meta:{title:"设置"},name:"settings"},{path:"aio",component:()=>it(()=>import("./Material_all_in_one.js"),__vite__mapDeps([37,2,7,6,8,9,10,27,12,16,23])),meta:{title:"设置"},name:"aio"},{path:"doc",component:()=>it(()=>import("./Doc.js"),__vite__mapDeps([38,2,31,12,39])),meta:{title:"文档"},name:"doc"},{path:"BasementSkill",component:()=>it(()=>import("./BasementSkill.js"),__vite__mapDeps([40,2,14,15,8,13,10,31,12,9,6,41])),meta:{title:"基建技能"},name:"BasementSkill"},{path:"debug",component:()=>it(()=>import("./DebugConsole.js"),__vite__mapDeps([42,25,2,11,31,12,22,15,6,23,35])),meta:{title:"日志"},name:"DebugConsole"},{path:"record",children:[{path:"line",component:()=>it(()=>import("./RecordLine.js"),__vite__mapDeps([43,44,2,34,12,45])),meta:{title:"心情曲线"},name:"record_line"},{path:"depot",component:()=>it(()=>import("./depot.js"),__vite__mapDeps([46,2,33,34,12,32,14,15,8])),meta:{title:"仓库数据"},name:"depot"},{path:"pie",component:()=>it(()=>import("./RecordPie.js"),__vite__mapDeps([47,44,2,34,12,48])),meta:{title:"心情饼图"},name:"record_pie"},{path:"report",component:()=>it(()=>import("./report.js"),__vite__mapDeps([49,1,2,3,30,34,12,50])),meta:{title:"基建报告"},name:"report"}]}]},{path:"/:pathMatch(.*)",component:()=>it(()=>import("./NotFound.js"),__vite__mapDeps([51,2,33]))}],Su=PC({history:nC(),routes:vS});Su.beforeEach((e,t)=>{if(t.query.token&&!e.query.token)return{path:e.path,query:t.query}});function jn(e){return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function $n(e,t){if(!e.vueAxiosInstalled){var o=_u(t)?yS(t):t;if(CS(o)){var n=wS(e);if(n){var r=n<3?bS:xS;Object.keys(o).forEach(function(i){r(e,i,o[i])}),e.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function bS(e,t,o){Object.defineProperty(e.prototype,t,{get:function(){return o}}),e[t]=o}function xS(e,t,o){e.config.globalProperties[t]=o,e[t]=o}function _u(e){return e&&typeof e.get=="function"&&typeof e.post=="function"}function yS(e){return{axios:e,$http:e}}function CS(e){return jn(e)==="object"&&Object.keys(e).every(function(t){return _u(e[t])})}function wS(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports>"u"?"undefined":jn(exports))=="object"?module.exports=$n:typeof define=="function"&&define.amd?define([],function(){return $n}):window.Vue&&window.axios&&window.Vue.use&&Vue.use($n,window.axios);const SS=se({inject:["manager"],props:{index:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},data(){return{}},watch:{index(e){this.$el&&this.$el.sortableInfo&&(this.$el.sortableInfo.index=e)},disabled(e){e?this.removeDraggable():this.setDraggable(this.index)}},mounted(){const{disabled:e,index:t}=this.$props;e||this.setDraggable(t)},beforeUnmount(){this.disabled||this.removeDraggable()},methods:{setDraggable(e){const t=this.$el;t.sortableInfo={index:e,manager:this.manager},this.ref={node:t},this.manager.add(this.ref)},removeDraggable(){this.manager.remove(this.ref)}}});class _S{constructor(){this.refs=[],this.active=null}add(t){this.refs||(this.refs=[]),this.refs.push(t)}remove(t){const o=this.getIndex(t);o!==-1&&this.refs.splice(o,1)}isActive(){return!!this.active}getActive(){return this.refs.find(({node:t})=>{var o,n;return((o=t==null?void 0:t.sortableInfo)===null||o===void 0?void 0:o.index)==((n=this===null||this===void 0?void 0:this.active)===null||n===void 0?void 0:n.index)})||null}getIndex(t){return this.refs.indexOf(t)}getRefs(){return this.refs}getOrderedRefs(){return this.refs.sort((t,o)=>t.node.sortableInfo.index-o.node.sortableInfo.index)}}const jo=e=>e.touches!=null;function fi(e,t){return!!e&&Object.prototype.hasOwnProperty.call(e,t)}function ES(e,t,o){const n=e.slice(0);if(o>=n.length){let r=o-n.length;for(;r--+1;)n.push(void 0)}return n.splice(o,0,n.splice(t,1)[0]),n}function PS(e,t){const o=e.slice(0);return t>=o.length||o.splice(t,1),o}function kS(e,t,o){const n=e.slice(0);return t===n.length?n.push(o):n.splice(t,0,o),n}const Pt={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","mouseup"],cancel:["touchcancel","keyup"]};function Yl(e,t){for(;e;){if(t(e))return e;e=e.parentNode}}function Zl(e,t,o){return ot?t:o}function Cn(e){return e.substr(-2)==="px"?parseFloat(e):0}function Jl(e){const t=window.getComputedStyle(e);return{top:Cn(t.marginTop),right:Cn(t.marginRight),bottom:Cn(t.marginBottom),left:Cn(t.marginLeft)}}function Io(e,t="page"){const o=`${t}X`,n=`${t}Y`;return{x:jo(e)?e.touches[0][o]:e[o],y:jo(e)?e.touches[0][n]:e[n]}}function Ql(e){const t=[e];for(;e;e=e.offsetParent)t.unshift(e);return t}function TS(e,t){const o=Ql(e),n=Ql(t);if(o[0]!=n[0])throw"No common ancestor!";for(let r=0;r{r.type!=="file"&&t[i]&&(r.value=t[i].value)}),o}function RS(e,t,o){if(typeof e=="string"&&(e=+e),Array.isArray(e)||(e=[e,e]),e.length!==2)throw new Error(`lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given ${e}`);const[n,r]=e;return[ts(n,t,o),ts(r,t,o)]}function ts(e,t,o){let n=e,r=e,i="px";if(typeof e=="string"){const a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);if(a===null)throw new Error(`lockOffset value should be a number or a string of a number followed by "px" or "%". Given ${e}`);n=r=parseFloat(e),i=a[1]}if(!isFinite(n)||!isFinite(r))throw new Error(`lockOffset value should be a finite. Given ${e}`);return i==="%"&&(n=n*t/100,r=r*o/100),{x:n,y:r}}function OS(e,t,o,n){const r=e-o,i=t-n;return Math.sqrt(r*r+i*i)}function $S(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}function os(e=[]){for(let t=0,o=e.length;t[]},lockAxis:{type:String,default:""},helperClass:{type:String,default:""},contentWindow:{type:Object,default:null},shouldCancelStart:{type:Function,default:e=>["input","textarea","select","option","button"].indexOf(e.target.tagName.toLowerCase())!==-1},getHelperDimensions:{type:Function,default:({node:e})=>({width:e.offsetWidth,height:e.offsetHeight})}},emits:["sort-start","sort-move","sort-end","sort-cancel","sort-insert","sort-remove","update:list"],data(){let e=!1;return this.group&&this.SlicksortHub&&(e=!0),{sorting:!1,hub:e?this.SlicksortHub:null,manager:new _S}},mounted(){this.hub&&(this.id=this.hub.getId()),this.container=this.$el,this.document=this.container.ownerDocument||document,this._window=this.contentWindow||window,this.scrollContainer=this.useWindowAsScrollContainer?{scrollLeft:0,scrollTop:0}:this.container,this.events={start:this.handleStart,move:this.handleMove,end:this.handleEnd};for(const e in this.events)fi(this.events,e)&&Pt[e].forEach(t=>this.container.addEventListener(t,this.events[e]));this.hub&&this.hub.addContainer(this)},beforeUnmount(){for(const e in this.events)fi(this.events,e)&&Pt[e].forEach(t=>this.container.removeEventListener(t,this.events[e]));this.hub&&this.hub.removeContainer(this),this.dragendTimer&&clearTimeout(this.dragendTimer),this.cancelTimer&&clearTimeout(this.cancelTimer),this.pressTimer&&clearTimeout(this.pressTimer),this.autoscrollInterval&&clearInterval(this.autoscrollInterval)},methods:{handleStart(e){const{distance:t,shouldCancelStart:o}=this.$props;if(!jo(e)&&e.button===2||o(e))return!1;this._touched=!0,this._pos=Io(e);const n=e.target,r=Yl(n,i=>i.sortableInfo!=null);if(r&&r.sortableInfo&&this.nodeIsChild(r)&&!this.sorting){const{useDragHandle:i}=this.$props,{index:a}=r.sortableInfo;if(i&&!Yl(n,s=>s.sortableHandle!=null))return;this.manager.active={index:a},n.tagName.toLowerCase()==="a"&&e.preventDefault(),t||(this.pressDelay===0?this.handlePress(e):this.pressTimer=Lr(()=>this.handlePress(e),this.pressDelay))}},nodeIsChild(e){return e.sortableInfo.manager===this.manager},handleMove(e){const{distance:t,pressThreshold:o}=this.$props;if(!this.sorting&&this._touched){const n=Io(e);this._delta={x:this._pos.x-n.x,y:this._pos.y-n.y};const r=Math.abs(this._delta.x)+Math.abs(this._delta.y);!t&&(!o||o&&r>=o)?(this.cancelTimer&&clearTimeout(this.cancelTimer),this.cancelTimer=Lr(this.cancel,0)):t&&r>=t&&this.manager.isActive()&&this.handlePress(e)}},handleEnd(){if(!this._touched)return;const{distance:e}=this.$props;this._touched=!1,e||this.cancel()},cancel(){this.sorting||(this.pressTimer&&clearTimeout(this.pressTimer),this.manager.active=null,this.hub&&this.hub.cancel())},handleSortCancel(e){(jo(e)||e.key===this.cancelKey)&&(this.newIndex=this.index,this.canceling=!0,this.translate={x:0,y:0},this.animateNodes(),this.handleSortEnd(e))},handlePress(e){e.stopPropagation();const t=this.manager.getActive();if(t){const{getHelperDimensions:o,helperClass:n,hideSortableGhost:r,appendTo:i}=this.$props,{node:a}=t,{index:s}=a.sortableInfo,l=Jl(a),c=this.container.getBoundingClientRect(),d=o({index:s,node:a});this.node=a,this.margin=l,this.width=d.width,this.height=d.height,this.marginOffset={x:this.margin.left+this.margin.right,y:Math.max(this.margin.top,this.margin.bottom)},this.boundingClientRect=a.getBoundingClientRect(),this.containerBoundingRect=c,this.index=s,this.newIndex=s;const u=es(a);this.helper=this.document.querySelector(i).appendChild(u),this.helper.style.position="fixed",this.helper.style.top=`${this.boundingClientRect.top-l.top}px`,this.helper.style.left=`${this.boundingClientRect.left-l.left}px`,this.helper.style.width=`${this.width}px`,this.helper.style.height=`${this.height}px`,this.helper.style.boxSizing="border-box",this.helper.style.pointerEvents="none",r&&(this.sortableGhost=a,a.style.visibility="hidden",a.style.opacity="0"),this.hub&&(this.hub.sortStart(this),this.hub.helper=this.helper,this.hub.ghost=this.sortableGhost),this.intializeOffsets(e,this.boundingClientRect),this.offsetEdge=Ht(a,this.container),n&&this.helper.classList.add(...n.split(" ")),this.listenerNode=jo(e)?a:this._window,Pt.move.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortMove)),Pt.end.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortEnd)),Pt.cancel.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortCancel)),this.sorting=!0,this.$emit("sort-start",{event:e,node:a,index:s})}},handleSortMove(e){if(e.preventDefault(),this.updatePosition(e),this.hub){const t=this.list[this.index];this.hub.handleSortMove(e,t)}(!this.hub||this.hub.isDest(this))&&(this.animateNodes(),this.autoscroll()),this.$emit("sort-move",{event:e})},handleDropOut(){const e=this.list[this.index],t=PS(this.list,this.index);return this.$emit("sort-remove",{oldIndex:this.index}),this.$emit("update:list",t),e},handleDropIn(e){const t=kS(this.list,this.newIndex,e);this.$emit("sort-insert",{newIndex:this.newIndex,value:e}),this.$emit("update:list",t),this.handleDragEnd()},handleDragOut(){this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),this.hub.isSource(this)?(this.translate={x:1e4,y:1e4},this.animateNodes()):(this.manager.getRefs().forEach(e=>{e.node.style.transform=""}),this.dragendTimer=Lr(this.handleDragEnd,this.transitionDuration||0))},handleDragEnd(){this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),os(this.manager.getRefs()),this.sortableGhost&&(this.sortableGhost.remove(),this.sortableGhost=null),this.dragendTimer&&(clearTimeout(this.dragendTimer),this.dragendTimer=null),this.manager.active=null,this._touched=!1,this.sorting=!1},intializeOffsets(e,t){const{useWindowAsScrollContainer:o,containerBoundingRect:n,_window:r}=this;this.marginOffset={x:this.margin.left+this.margin.right,y:Math.max(this.margin.top,this.margin.bottom)},this._axis={x:this.axis.indexOf("x")>=0,y:this.axis.indexOf("y")>=0},this.initialOffset=Io(e),this.initialScroll={top:this.scrollContainer.scrollTop,left:this.scrollContainer.scrollLeft},this.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset},this.translate={x:0,y:0},this.minTranslate={},this.maxTranslate={},this._axis.x&&(this.minTranslate.x=(o?0:n.left)-t.left-this.width/2,this.maxTranslate.x=(o?r.innerWidth:n.left+n.width)-t.left-this.width/2),this._axis.y&&(this.minTranslate.y=(o?0:n.top)-t.top-this.height/2,this.maxTranslate.y=(o?r.innerHeight:n.top+n.height)-t.top-this.height/2)},handleDragIn(e,t,o){if(this.hub.isSource(this))return;this.dragendTimer&&(this.handleDragEnd(),clearTimeout(this.dragendTimer),this.dragendTimer=null);const n=this.manager.getRefs();this.index=n.length,this.manager.active={index:this.index};const r=this.container.getBoundingClientRect(),i=o.getBoundingClientRect();this.containerBoundingRect=r,this.sortableGhost=es(t),this.container.appendChild(this.sortableGhost);const a=this.sortableGhost.getBoundingClientRect();this.boundingClientRect=a,this.margin=Jl(this.sortableGhost),this.width=a.width,this.height=a.height,this.offsetEdge=Ht(this.sortableGhost,this.container),this.intializeOffsets(e,a),this.initialOffset.x+=a.x-i.x,this.initialOffset.y+=a.y-i.y,this.sorting=!0},handleSortEnd(e){this.listenerNode&&(Pt.move.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortMove)),Pt.end.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortEnd)),Pt.cancel.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortCancel)));const t=this.manager.getRefs();this.helper&&this.helperClass&&this.helper.classList.remove(...this.helperClass.split(" ")),this.autoscrollInterval&&clearInterval(this.autoscrollInterval),this.autoscrollInterval=null;const o=()=>{this.helper&&(this.helper.remove(),this.helper=null),this.hideSortableGhost&&this.sortableGhost&&(this.sortableGhost.style.visibility="",this.sortableGhost.style.opacity=""),os(t),this.hub&&!this.hub.isDest(this)?this.canceling?this.hub.cancel():this.hub.handleSortEnd():this.canceling?this.$emit("sort-cancel",{event:e}):(this.$emit("sort-end",{event:e,oldIndex:this.index,newIndex:this.newIndex}),this.$emit("update:list",ES(this.list,this.index,this.newIndex))),this.manager.active=null,this._touched=!1,this.canceling=!1,this.sorting=!1};this.transitionDuration||this.draggedSettlingDuration?this.transitionHelperIntoPlace(t,o):o()},transitionHelperIntoPlace(e,t){if(this.draggedSettlingDuration===0||e.length===0||!this.helper)return Promise.resolve();const o=e[this.index].node;let n=0,r=0;const i={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};if(this.hub&&!this.hub.isDest(this)&&!this.canceling){const c=this.hub.getDest();if(!c)return;const d=c.newIndex,u=c.manager.getOrderedRefs(),f=d0?n+=c.offsetLeft+c.offsetWidth-(o.offsetLeft+o.offsetWidth):n+=c.offsetLeft-o.offsetLeft,r=-d.top,this.translate&&this.translate.y>0?r+=c.offsetTop+c.offsetHeight-(o.offsetTop+o.offsetHeight):r+=c.offsetTop-o.offsetTop}const a=this.draggedSettlingDuration!==null?this.draggedSettlingDuration:this.transitionDuration;hi(this.helper,`translate3d(${n}px,${r}px, 0)`,`${a}ms`);const s=c=>{(!c||c.propertyName==="transform")&&(clearTimeout(l),hi(this.helper),t())},l=setTimeout(s,a+10);this.helper.addEventListener("transitionend",s)},updatePosition(e){const{lockAxis:t,lockToContainerEdges:o}=this.$props,n=Io(e),r={x:n.x-this.initialOffset.x,y:n.y-this.initialOffset.y};if(r.y-=window.pageYOffset-this.initialWindowScroll.top,r.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=r,o){const[i,a]=RS(this.lockOffset,this.height,this.width),s={x:this.width/2-i.x,y:this.height/2-i.y},l={x:this.width/2-a.x,y:this.height/2-a.y};this.minTranslate.x&&this.maxTranslate.x&&(r.x=Zl(this.minTranslate.x+s.x,this.maxTranslate.x-l.x,r.x)),this.minTranslate.y&&this.maxTranslate.y&&(r.y=Zl(this.minTranslate.y+s.y,this.maxTranslate.y-l.y,r.y))}t==="x"?r.y=0:t==="y"&&(r.x=0),this.helper&&(this.helper.style.transform=`translate3d(${r.x}px,${r.y}px, 0)`)},animateNodes(){const{transitionDuration:e,hideSortableGhost:t}=this.$props,o=this.manager.getOrderedRefs(),n={left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top},r={left:this.offsetEdge.left+this.translate.x+n.left,top:this.offsetEdge.top+this.translate.y+n.top},i={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};this.newIndex=null;for(let a=0,s=o.length;ad?d/2:this.width/2,height:this.height>u?u/2:this.height/2},h={x:0,y:0};let{edgeOffset:m}=o[a];m||(o[a].edgeOffset=m=Ht(l,this.container));const p=a0&&o[a-1];if(p&&!p.edgeOffset&&(p.edgeOffset=Ht(p.node,this.container)),c===this.index){t&&(this.sortableGhost=l,l.style.visibility="hidden",l.style.opacity="0");continue}e&&(l.style.transitionDuration=`${e}ms`),this._axis.x?this._axis.y?cthis.containerBoundingRect.width-f.width&&p&&(h.x=p.edgeOffset.left-m.left,h.y=p.edgeOffset.top-m.top),this.newIndex===null&&(this.newIndex=c)):c>this.index&&(r.left+i.left+f.width>=m.left&&r.top+i.top+f.height>=m.top||r.top+i.top+f.height>=m.top+u)&&(h.x=-(this.width+this.marginOffset.x),m.left+h.xthis.index&&r.left+i.left+f.width>=m.left?(h.x=-(this.width+this.marginOffset.x),this.newIndex=c):cthis.index&&r.top+i.top+f.height>=m.top?(h.y=-(this.height+this.marginOffset.y),this.newIndex=c):c=this.maxTranslate.y-this.height/2?(t.y=1,o.y=n.y*Math.abs((this.maxTranslate.y-this.height/2-e.y)/this.height)):e.x>=this.maxTranslate.x-this.width/2?(t.x=1,o.x=n.x*Math.abs((this.maxTranslate.x-this.width/2-e.x)/this.width)):e.y<=this.minTranslate.y+this.height/2?(t.y=-1,o.y=n.y*Math.abs((e.y-this.height/2-this.minTranslate.y)/this.height)):e.x<=this.minTranslate.x+this.width/2&&(t.x=-1,o.x=n.x*Math.abs((e.x-this.width/2-this.minTranslate.x)/this.width)),this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),(t.x!==0||t.y!==0)&&(this.autoscrollInterval=window.setInterval(()=>{const r={left:1*o.x*t.x,top:1*o.y*t.y};this.useWindowAsScrollContainer?this._window.scrollBy(r.left,r.top):(this.scrollContainer.scrollTop+=r.top,this.scrollContainer.scrollLeft+=r.left),this.translate.x+=r.left,this.translate.y+=r.top,this.animateNodes()},5))}}}),AS={beforeMount(e){e.sortableHandle=!0}},zS=se({name:"SlickItem",mixins:[SS],props:{tag:{type:String,default:"div"}},render(){var e,t;return b(this.tag,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),o2=se({name:"SlickList",mixins:[IS],props:{tag:{type:String,default:"div"},itemKey:{type:[String,Function],default:"id"}},render(){var e,t;return this.$slots.item?b(this.tag,this.list.map((o,n)=>{let r;if(o!=null){if(typeof this.itemKey=="function")r=this.itemKey(o);else if(typeof o=="object"&&fi(o,this.itemKey)&&typeof o[this.itemKey]=="string")r=o[this.itemKey];else if(typeof o=="string")r=o;else throw new Error("Cannot find key for item, use the item-key prop and pass a function or string");return b(zS,{key:r,index:n},{default:()=>{var i,a;return(a=(i=this.$slots).item)===null||a===void 0?void 0:a.call(i,{item:o,index:n})}})}})):b(this.tag,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});let MS=1;function LS(e,t,o){return t.id===e.id?!0:e.block&&e.block.includes(t.group)?!1:typeof e.accept=="function"?e.accept({dest:e,source:t,payload:o}):typeof e.accept=="boolean"?e.accept:!!(e.accept&&e.accept.includes(t.group)||e.group===t.group)}function BS({x:e,y:t},o,n){if(rs({x:e,y:t},n.container.getBoundingClientRect()))return n;let r=null,i=1/0;for(let a=0;ao.id!==t.id)}sortStart(t){this.source=t,this.dest=t}handleSortMove(t,o){var n,r,i,a;const s=this.dest,l=this.source;if(!s||!l)return;const c=this.refs,d=Io(t,"client"),u=BS(d,c,s)||s;s.id!==u.id&&LS(u,l,o)&&(this.dest=u,s.handleDragOut(),u.handleDragIn(t,this.ghost,this.helper)),s.id!==((n=this.source)===null||n===void 0?void 0:n.id)&&((r=this.dest)===null||r===void 0||r.updatePosition(t),(i=this.dest)===null||i===void 0||i.animateNodes(),(a=this.dest)===null||a===void 0||a.autoscroll())}handleSortEnd(){var t,o,n,r;if(((t=this.source)===null||t===void 0?void 0:t.id)===((o=this.dest)===null||o===void 0?void 0:o.id))return;const i=(n=this.source)===null||n===void 0?void 0:n.handleDropOut();(r=this.dest)===null||r===void 0||r.handleDropIn(i),this.reset()}reset(){this.source=null,this.dest=null,this.helper=null,this.ghost=null}cancel(){var t;(t=this.dest)===null||t===void 0||t.handleDragEnd(),this.reset()}}const DS={install(e){e.directive("drag-handle",AS),e.provide("SlicksortHub",new HS)}},zt=If(pS);zt.use(Su);zt.use($n,_e);zt.provide("axios",zt.config.globalProperties.axios);zt.use(zf());zt.provide("loaded",B(!1));zt.mount("#app");zt.use(DS);export{jf as $,Mm as A,$s as B,t0 as C,QS as D,Mn as E,XS as F,Hh as G,U0 as H,Ks as I,Yr as J,$b as K,lc as L,e2 as M,o2 as N,zS as O,om as P,nm as Q,Pv as R,Gs as S,Yv as T,Jv as U,Is as V,qs as W,lo as X,ZS as Y,tv as Z,Dc as _,yu as a,_i as a0,rc as a1,Qn as a2,rv as a3,av as a4,hv as a5,Us as a6,Ff as a7,KS as a8,sv as a9,je as aa,jS as ab,Bi as ac,WS as ad,Yf as ae,yg as af,hh as ag,ov as ah,Ri as ai,Dt as aj,YS as ak,Lb as al,Di as am,As as an,Ti as ao,tb as ap,JS as aq,Xn as ar,qS as as,US as at,bg as au,Cg as av,Pi as aw,ho as b,Ub as c,VS as d,En as e,ec as f,jr as g,zs as h,Ur as i,aS as j,Xd as k,O0 as l,em as m,Xf as n,qa as o,GS as p,FS as q,ba as r,_n as s,Cr as t,iS as u,_e as v,_v as w,yt as x,Ug as y,Li as z}; +`)),o=/^[0-9].*/,n=F(()=>{const y=[];for(const P of e.value)P.match(o)?y.push(P.substring(15)):y.push(P);return y.join(` +`)}),r=B(null),i=B(!1),a=B(!1),s=B(0),l=B([]),c=yu(),{conf:d,timestamp:u,post_conf:f}=_n(c),{parse_config:h}=c,m=B("");function p(){let y;y=location.origin;const P=y.replace(/^http/,"ws")+"/ws";r.value=new rS(P),r.value.onmessage=({data:_})=>{_=JSON.parse(_),_.type=="log"?e.value=e.value.concat(_.data.split(` +`)).slice(-100):_.type=="conf"?u.value<_.time&&(f.value=!1,u.value=_.time,d.value=h(_.data)):_.type=="sc"&&(m.value=_.data)}}async function g(){const y=await _e.get("/running");i.value=y.data}async function v(){if(i.value){const y=await _e.get("/task");l.value=y.data,s.value=setTimeout(v,3e3)}else l.value=[]}return{log:t,log_mobile:n,log_lines:e,ws:r,sc_uri:m,running:i,waiting:a,listen_ws:p,get_running:g,task_list:l,get_task_id:s,get_tasks:v}}),aS=Xn("plan",()=>{const e=B(1),t=B([]),o=B([]),n=B([]),r=B([]),i=B([]),a=B([]),s=B({}),l=B([]),c=B([]),d=[],u={central:5,meeting:2,factory:1,contact:1,train:2};for(let S=1;S<=3;++S)for(let R=1;R<=3;++R){const z=`room_${S}_${R}`,$=`B${S}0${R}`;u[z]=3,d.push({label:$,value:z})}for(let S=1;S<=4;++S)u[`dormitory_${S}`]=5;function f(S){return S.join(",")}function h(S){return S&&S!=""?S.split(","):[]}const m=["exhaust_require","rest_in_full","resting_priority","workaholic","free_blacklist","refresh_trading"];function p(S){for(const R in u){let z=0;if(!S[R])z=u[R],S[R]={name:"",plans:[]};else{let $=u[R];S[R].name=="发电站"?$=1:S[R].name=="贸易站"?["lmd","orundum"].includes(S[R].product)||(S[R].product="lmd"):S[R].name=="制造站"&&(["gold","exp3","orirock"].includes(S[R].product)||(S[R].product="gold")),S[R].plans.length<$&&(z=$-S[R].plans.length)}for(let $=0;${x.value&&_e.post("/plan",_())});const E=F(()=>{const S=[];for(const R in s.value)for(const z of s.value[R].plans)z.group&&S.push(z.group);return[...new Set(S)]}),C=B("main"),A=F(()=>C.value=="main"?s.value:l.value[C.value].plan);return{load_plan:y,load_operators:P,ling_xi:e,max_resting_count:t,exhaust_require:o,rest_in_full:n,resting_priority:r,workaholic:i,refresh_trading:a,plan:s,operators:c,facility_operator_limit:u,left_side_facility:d,build_plan:_,groups:E,backup_plans:l,sub_plan:C,current_plan:A,fill_empty:p}}),lS=Xn("watermark",()=>{async function e(){return(await _e.get("/getwatermark")).data.toString()}return{getwatermarkinfo:e}}),sS={style:{display:"flex","flex-direction":"column","align-items":"center"}},cS={style:{display:"flex","flex-direction":"column","align-items":"center"}},dS={style:{display:"flex","flex-direction":"column","align-items":"center"}},uS={style:{display:"flex","flex-direction":"column","align-items":"center"}},fS={style:{display:"flex","flex-direction":"column","align-items":"center"}},hS={__name:"App",setup(e){const t=B(!1);function o(z){return()=>b(Bt,null,{default:()=>b(z)})}const n=[{label:()=>b(ct,{to:{path:"/"}},{default:()=>"运行日志"}),icon:o(al),key:"go-to-log"},{label:()=>b(ct,{to:{path:"/settings"}},{default:()=>"全部设置"}),icon:o(cl),key:"go-to-allsetting"},{label:()=>b(ct,{to:{path:"/plan-editor"}},{default:()=>"排班编辑"}),icon:o(sl),key:"go-to-plan"},{label:()=>"数据图表",key:"building-report",icon:o(dl),children:[{label:()=>b(ct,{to:{path:"/record/line"}},{default:()=>"干员心情报表"}),icon:o(jx),key:"go-to-record-line"},{label:()=>b(ct,{to:{path:"/record/pie"}},{default:()=>"工休比报表"}),icon:o(ry),key:"go-to-record-pie"},{label:()=>b(ct,{to:{path:"/record/depot"}},{default:()=>"仓库"}),icon:o(Py),key:"go-to-record-depot"},{label:()=>b(ct,{to:{path:"/record/report"}},{default:()=>"基建报表"}),icon:o(uy),key:"go-to-record-report"}]},{label:()=>b(ct,{to:{path:"/debug"}},{default:()=>"日志查看器"}),icon:o(Cx),key:"debug"},{label:()=>b(ct,{to:{path:"/doc"}},{default:()=>"帮助文档"}),icon:o(ll),key:"go-to-doc"},{label:()=>b(ct,{to:{path:"/BasementSkill"}},{default:()=>"基建技能"}),icon:o(kx),key:"BasementSkill"},{label:()=>b("a",{href:"https://arkntools.app/ ",target:"_blank",rel:"noopenner noreferrer"},"明日方舟工具箱"),key:"toolbox",icon:o(Mx)},{label:()=>b("a",{href:"https://prts.wiki/w/%E9%A6%96%E9%A1%B5",target:"_blank",rel:"noopenner noreferrer"},"明日方舟PRTS"),key:"wiki",icon:o($x)}];$r.registerLanguage("json",C1);const r=lS(),{getwatermarkinfo:i}=r,a=B("mower"),s=yu(),{load_config:l,load_shop:c}=s,{conf:d}=_n(s),u=aS(),{operators:f}=_n(u),{load_plan:h,load_operators:m}=u,p=iS(),{ws:g,running:v,log_lines:y}=_n(p),{get_running:P,listen_ws:_}=p,x=me("axios");function E(){v.value=!0,y.value=[],x.get("/start")}function C(){document.documentElement.style.setProperty("--app-height",`${window.innerHeight/d.value.webview.scale}px`),document.documentElement.style.setProperty("--app-width",`${window.innerWidth/d.value.webview.scale}px`),A.value=window.innerWidth<800*d.value.webview.scale}const A=B(!0);ve("mobile",A);const S=me("loaded"),R=F(()=>[{value:"Current",label:"Current"},{value:"Free",label:"Free"}].concat(f.value));return wt(async()=>{C(),window.addEventListener("resize",()=>{C()});const $=new URLSearchParams(document.location.search).get("token");ve("token",$),x.defaults.headers.common.token=$,await Promise.all([l(),c(),m(),P()]),await h(),S.value=!0;const Q=RegExp(R.value.map(ne=>"'"+ne.value).join("|"));$r.registerLanguage("mower",()=>({contains:[{begin:Q,end:/'/,className:"operator",relevance:0},{begin:/宿舍黑名单|重设上次房间为空/,relevance:10},{begin:/[0-9]+(-[0-9]+)+/,className:"date"},{begin:/[0-9]+:[0-9]+:[0-9]+((\.|,)[0-9]+)?/,className:"time"},{begin:/room_[0-9]_[0-9]|dormitory_[0-9]|central|contact|factory|meeting/,className:"room"},{begin:/INFO/,className:"info"},{begin:/WARNING/,className:"warning"},{begin:/ERROR/,className:"error"},{begin:/Scene [0-9]+:.*/,className:"scene"}]})),g.value||_(),d.value.start_automatically&&E(),a.value=await i()}),Le(()=>d.value.webview.scale,z=>{const $=document.querySelector("#app");$.style.transform=`scale(${d.value.webview.scale})`,C()}),(z,$)=>{const Q=f0,ne=dx,L=V0,le=k0,w=$f("router-view"),D=x0,q=Hn,te=Dr,U=ms,oe=Dc,M=ax,ae=w0,ce=b0,Pe=z0,O=J0,Y=Kv,k=Qg;return un(),fn(k,{locale:Te(Qp),"date-locale":Te(zm),class:"provider",theme:Te(d).theme=="dark"?Te(px):void 0,hljs:Te($r),style:{"user-select":"none"}},{default:Me(()=>[$e(Q),$e(Y,null,{default:Me(()=>[$e(O,null,{default:Me(()=>[$e(Pe,null,{default:Me(()=>[$e(ne,{content:Te(a),cross:"",fullscreen:"","font-size":16,"line-height":32,width:400,height:384,"x-offset":12,"y-offset":60,rotate:-15},null,8,["content"]),$e(ce,{"has-sider":!Te(A),class:"outer-layout"},{default:Me(()=>[Te(A)?hr("",!0):(un(),fn(le,{key:0,bordered:"","collapse-mode":"width","collapsed-width":64,width:210,"show-trigger":""},{default:Me(()=>[$e(L,{indent:24,"collapsed-width":64,"collapsed-icon-size":22,options:n})]),_:1})),$e(D,{class:"layout-content-container"},{default:Me(()=>[Te(S)?(un(),fn(w,{key:0})):hr("",!0)]),_:1}),Te(A)?(un(),fn(ae,{key:1},{default:Me(()=>[$e(M,{type:"line","justify-content":"space-evenly",size:"small"},{default:Me(()=>[$e(q,{name:"日志",onClick:$[0]||($[0]=Z=>z.$router.push("/"))},{default:Me(()=>[gt("div",sS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(al)},null,8,["component"]),$[10]||($[10]=tt(" 日志 "))])]),_:1}),$e(q,{name:"设置",onClick:$[1]||($[1]=Z=>z.$router.push("/settings"))},{default:Me(()=>[gt("div",cS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(cl)},null,8,["component"]),$[11]||($[11]=tt(" 设置 "))])]),_:1}),$e(q,{name:"排班",onClick:$[2]||($[2]=Z=>z.$router.push("/plan-editor"))},{default:Me(()=>[gt("div",dS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(sl)},null,8,["component"]),$[12]||($[12]=tt(" 排班 "))])]),_:1}),$e(q,{name:"报表",onClick:$[8]||($[8]=Z=>t.value=!0)},{default:Me(()=>[gt("div",uS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(dl)},null,8,["component"]),$[13]||($[13]=tt(" 报表 "))]),$e(oe,{show:Te(t),"onUpdate:show":$[7]||($[7]=Z=>uo(t)?t.value=Z:null)},{default:Me(()=>[$e(U,{style:{width:"300px"},title:"基建报表",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:Me(()=>[gt("div",null,[$e(te,{onClick:$[3]||($[3]=Z=>{t.value=!1,z.$router.push("/record/line")})},{default:Me(()=>$[14]||($[14]=[tt(" 心情曲线 ")])),_:1})]),gt("div",null,[$e(te,{onClick:$[4]||($[4]=Z=>{t.value=!1,z.$router.push("/record/pie")})},{default:Me(()=>$[15]||($[15]=[tt(" 心情饼图 ")])),_:1})]),gt("div",null,[$e(te,{onClick:$[5]||($[5]=Z=>{t.value=!1,z.$router.push("/record/depot")})},{default:Me(()=>$[16]||($[16]=[tt(" 仓库 ")])),_:1})]),gt("div",null,[$e(te,{onClick:$[6]||($[6]=Z=>{t.value=!1,z.$router.push("/record/report")})},{default:Me(()=>$[17]||($[17]=[tt(" 基建报告 ")])),_:1})])]),_:1})]),_:1},8,["show"])]),_:1}),$e(q,{name:"帮助",onClick:$[9]||($[9]=Z=>z.$router.push("/doc"))},{default:Me(()=>[gt("div",fS,[$e(Te(Bt),{size:"20",style:{"margin-bottom":"-1px"},component:Te(ll)},null,8,["component"]),$[18]||($[18]=tt(" 帮助 "))])]),_:1})]),_:1})]),_:1})):hr("",!0)]),_:1},8,["has-sider"])]),_:1})]),_:1})]),_:1})]),_:1},8,["locale","date-locale","theme","hljs"])}}},pS=Of(hS,[["__scopeId","data-v-1c09e2c8"]]),mS="modulepreload",gS=function(e){return"/"+e},Xl={},it=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(o.map(l=>{if(l=gS(l),l in Xl)return;Xl[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":mS,c||(u.as="script"),u.crossOrigin="",u.href=l,s&&u.setAttribute("nonce",s),document.head.appendChild(u),c)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return r.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},vS=[{path:"/",children:[{path:"",component:()=>it(()=>import("./Log.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])),meta:{title:"日志"},name:"log"},{path:"plan-editor",component:()=>it(()=>import("./Plan.js"),__vite__mapDeps([21,22,2,11,12,6,13,9,15,5,7,8,10,14,16,23,1,3,4,17,18,24,25,26,27])),meta:{title:"排班"},name:"plan"},{path:"settings",component:()=>it(()=>import("./Settings.js"),__vite__mapDeps([28,2,5,6,7,8,9,10,11,12,13,14,15,16,22,23,29,30,26,31,32,1,3,33,34,35])),meta:{title:"设置"},name:"settings"},{path:"aio",component:()=>it(()=>import("./Material_all_in_one.js"),__vite__mapDeps([36,2,7,6,8,9,10,26,14,17,13])),meta:{title:"设置"},name:"aio"},{path:"doc",component:()=>it(()=>import("./Doc.js"),__vite__mapDeps([37,2,30,14,38])),meta:{title:"文档"},name:"doc"},{path:"BasementSkill",component:()=>it(()=>import("./BasementSkill.js"),__vite__mapDeps([39,2,16,12,8,15,10,30,14,9,6,40])),meta:{title:"基建技能"},name:"BasementSkill"},{path:"debug",component:()=>it(()=>import("./DebugConsole.js"),__vite__mapDeps([41,24,2,11,12,6,13,30,14,34])),meta:{title:"日志"},name:"DebugConsole"},{path:"record",children:[{path:"line",component:()=>it(()=>import("./RecordLine.js"),__vite__mapDeps([42,43,2,33,14,44])),meta:{title:"心情曲线"},name:"record_line"},{path:"depot",component:()=>it(()=>import("./depot.js"),__vite__mapDeps([45,2,32,33,14,31,16,12,8])),meta:{title:"仓库数据"},name:"depot"},{path:"pie",component:()=>it(()=>import("./RecordPie.js"),__vite__mapDeps([46,43,2,33,14,47])),meta:{title:"心情饼图"},name:"record_pie"},{path:"report",component:()=>it(()=>import("./report.js"),__vite__mapDeps([48,1,2,3,29,33,14,49])),meta:{title:"基建报告"},name:"report"}]}]},{path:"/:pathMatch(.*)",component:()=>it(()=>import("./NotFound.js"),__vite__mapDeps([50,2,32]))}],Su=PC({history:nC(),routes:vS});Su.beforeEach((e,t)=>{if(t.query.token&&!e.query.token)return{path:e.path,query:t.query}});function jn(e){return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function $n(e,t){if(!e.vueAxiosInstalled){var o=_u(t)?yS(t):t;if(CS(o)){var n=wS(e);if(n){var r=n<3?bS:xS;Object.keys(o).forEach(function(i){r(e,i,o[i])}),e.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function bS(e,t,o){Object.defineProperty(e.prototype,t,{get:function(){return o}}),e[t]=o}function xS(e,t,o){e.config.globalProperties[t]=o,e[t]=o}function _u(e){return e&&typeof e.get=="function"&&typeof e.post=="function"}function yS(e){return{axios:e,$http:e}}function CS(e){return jn(e)==="object"&&Object.keys(e).every(function(t){return _u(e[t])})}function wS(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports>"u"?"undefined":jn(exports))=="object"?module.exports=$n:typeof define=="function"&&define.amd?define([],function(){return $n}):window.Vue&&window.axios&&window.Vue.use&&Vue.use($n,window.axios);const SS=se({inject:["manager"],props:{index:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},data(){return{}},watch:{index(e){this.$el&&this.$el.sortableInfo&&(this.$el.sortableInfo.index=e)},disabled(e){e?this.removeDraggable():this.setDraggable(this.index)}},mounted(){const{disabled:e,index:t}=this.$props;e||this.setDraggable(t)},beforeUnmount(){this.disabled||this.removeDraggable()},methods:{setDraggable(e){const t=this.$el;t.sortableInfo={index:e,manager:this.manager},this.ref={node:t},this.manager.add(this.ref)},removeDraggable(){this.manager.remove(this.ref)}}});class _S{constructor(){this.refs=[],this.active=null}add(t){this.refs||(this.refs=[]),this.refs.push(t)}remove(t){const o=this.getIndex(t);o!==-1&&this.refs.splice(o,1)}isActive(){return!!this.active}getActive(){return this.refs.find(({node:t})=>{var o,n;return((o=t==null?void 0:t.sortableInfo)===null||o===void 0?void 0:o.index)==((n=this===null||this===void 0?void 0:this.active)===null||n===void 0?void 0:n.index)})||null}getIndex(t){return this.refs.indexOf(t)}getRefs(){return this.refs}getOrderedRefs(){return this.refs.sort((t,o)=>t.node.sortableInfo.index-o.node.sortableInfo.index)}}const jo=e=>e.touches!=null;function fi(e,t){return!!e&&Object.prototype.hasOwnProperty.call(e,t)}function ES(e,t,o){const n=e.slice(0);if(o>=n.length){let r=o-n.length;for(;r--+1;)n.push(void 0)}return n.splice(o,0,n.splice(t,1)[0]),n}function PS(e,t){const o=e.slice(0);return t>=o.length||o.splice(t,1),o}function kS(e,t,o){const n=e.slice(0);return t===n.length?n.push(o):n.splice(t,0,o),n}const Pt={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","mouseup"],cancel:["touchcancel","keyup"]};function Yl(e,t){for(;e;){if(t(e))return e;e=e.parentNode}}function Zl(e,t,o){return ot?t:o}function Cn(e){return e.substr(-2)==="px"?parseFloat(e):0}function Jl(e){const t=window.getComputedStyle(e);return{top:Cn(t.marginTop),right:Cn(t.marginRight),bottom:Cn(t.marginBottom),left:Cn(t.marginLeft)}}function Io(e,t="page"){const o=`${t}X`,n=`${t}Y`;return{x:jo(e)?e.touches[0][o]:e[o],y:jo(e)?e.touches[0][n]:e[n]}}function Ql(e){const t=[e];for(;e;e=e.offsetParent)t.unshift(e);return t}function TS(e,t){const o=Ql(e),n=Ql(t);if(o[0]!=n[0])throw"No common ancestor!";for(let r=0;r{r.type!=="file"&&t[i]&&(r.value=t[i].value)}),o}function RS(e,t,o){if(typeof e=="string"&&(e=+e),Array.isArray(e)||(e=[e,e]),e.length!==2)throw new Error(`lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given ${e}`);const[n,r]=e;return[ts(n,t,o),ts(r,t,o)]}function ts(e,t,o){let n=e,r=e,i="px";if(typeof e=="string"){const a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);if(a===null)throw new Error(`lockOffset value should be a number or a string of a number followed by "px" or "%". Given ${e}`);n=r=parseFloat(e),i=a[1]}if(!isFinite(n)||!isFinite(r))throw new Error(`lockOffset value should be a finite. Given ${e}`);return i==="%"&&(n=n*t/100,r=r*o/100),{x:n,y:r}}function OS(e,t,o,n){const r=e-o,i=t-n;return Math.sqrt(r*r+i*i)}function $S(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}function os(e=[]){for(let t=0,o=e.length;t[]},lockAxis:{type:String,default:""},helperClass:{type:String,default:""},contentWindow:{type:Object,default:null},shouldCancelStart:{type:Function,default:e=>["input","textarea","select","option","button"].indexOf(e.target.tagName.toLowerCase())!==-1},getHelperDimensions:{type:Function,default:({node:e})=>({width:e.offsetWidth,height:e.offsetHeight})}},emits:["sort-start","sort-move","sort-end","sort-cancel","sort-insert","sort-remove","update:list"],data(){let e=!1;return this.group&&this.SlicksortHub&&(e=!0),{sorting:!1,hub:e?this.SlicksortHub:null,manager:new _S}},mounted(){this.hub&&(this.id=this.hub.getId()),this.container=this.$el,this.document=this.container.ownerDocument||document,this._window=this.contentWindow||window,this.scrollContainer=this.useWindowAsScrollContainer?{scrollLeft:0,scrollTop:0}:this.container,this.events={start:this.handleStart,move:this.handleMove,end:this.handleEnd};for(const e in this.events)fi(this.events,e)&&Pt[e].forEach(t=>this.container.addEventListener(t,this.events[e]));this.hub&&this.hub.addContainer(this)},beforeUnmount(){for(const e in this.events)fi(this.events,e)&&Pt[e].forEach(t=>this.container.removeEventListener(t,this.events[e]));this.hub&&this.hub.removeContainer(this),this.dragendTimer&&clearTimeout(this.dragendTimer),this.cancelTimer&&clearTimeout(this.cancelTimer),this.pressTimer&&clearTimeout(this.pressTimer),this.autoscrollInterval&&clearInterval(this.autoscrollInterval)},methods:{handleStart(e){const{distance:t,shouldCancelStart:o}=this.$props;if(!jo(e)&&e.button===2||o(e))return!1;this._touched=!0,this._pos=Io(e);const n=e.target,r=Yl(n,i=>i.sortableInfo!=null);if(r&&r.sortableInfo&&this.nodeIsChild(r)&&!this.sorting){const{useDragHandle:i}=this.$props,{index:a}=r.sortableInfo;if(i&&!Yl(n,s=>s.sortableHandle!=null))return;this.manager.active={index:a},n.tagName.toLowerCase()==="a"&&e.preventDefault(),t||(this.pressDelay===0?this.handlePress(e):this.pressTimer=Lr(()=>this.handlePress(e),this.pressDelay))}},nodeIsChild(e){return e.sortableInfo.manager===this.manager},handleMove(e){const{distance:t,pressThreshold:o}=this.$props;if(!this.sorting&&this._touched){const n=Io(e);this._delta={x:this._pos.x-n.x,y:this._pos.y-n.y};const r=Math.abs(this._delta.x)+Math.abs(this._delta.y);!t&&(!o||o&&r>=o)?(this.cancelTimer&&clearTimeout(this.cancelTimer),this.cancelTimer=Lr(this.cancel,0)):t&&r>=t&&this.manager.isActive()&&this.handlePress(e)}},handleEnd(){if(!this._touched)return;const{distance:e}=this.$props;this._touched=!1,e||this.cancel()},cancel(){this.sorting||(this.pressTimer&&clearTimeout(this.pressTimer),this.manager.active=null,this.hub&&this.hub.cancel())},handleSortCancel(e){(jo(e)||e.key===this.cancelKey)&&(this.newIndex=this.index,this.canceling=!0,this.translate={x:0,y:0},this.animateNodes(),this.handleSortEnd(e))},handlePress(e){e.stopPropagation();const t=this.manager.getActive();if(t){const{getHelperDimensions:o,helperClass:n,hideSortableGhost:r,appendTo:i}=this.$props,{node:a}=t,{index:s}=a.sortableInfo,l=Jl(a),c=this.container.getBoundingClientRect(),d=o({index:s,node:a});this.node=a,this.margin=l,this.width=d.width,this.height=d.height,this.marginOffset={x:this.margin.left+this.margin.right,y:Math.max(this.margin.top,this.margin.bottom)},this.boundingClientRect=a.getBoundingClientRect(),this.containerBoundingRect=c,this.index=s,this.newIndex=s;const u=es(a);this.helper=this.document.querySelector(i).appendChild(u),this.helper.style.position="fixed",this.helper.style.top=`${this.boundingClientRect.top-l.top}px`,this.helper.style.left=`${this.boundingClientRect.left-l.left}px`,this.helper.style.width=`${this.width}px`,this.helper.style.height=`${this.height}px`,this.helper.style.boxSizing="border-box",this.helper.style.pointerEvents="none",r&&(this.sortableGhost=a,a.style.visibility="hidden",a.style.opacity="0"),this.hub&&(this.hub.sortStart(this),this.hub.helper=this.helper,this.hub.ghost=this.sortableGhost),this.intializeOffsets(e,this.boundingClientRect),this.offsetEdge=Ht(a,this.container),n&&this.helper.classList.add(...n.split(" ")),this.listenerNode=jo(e)?a:this._window,Pt.move.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortMove)),Pt.end.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortEnd)),Pt.cancel.forEach(f=>this.listenerNode.addEventListener(f,this.handleSortCancel)),this.sorting=!0,this.$emit("sort-start",{event:e,node:a,index:s})}},handleSortMove(e){if(e.preventDefault(),this.updatePosition(e),this.hub){const t=this.list[this.index];this.hub.handleSortMove(e,t)}(!this.hub||this.hub.isDest(this))&&(this.animateNodes(),this.autoscroll()),this.$emit("sort-move",{event:e})},handleDropOut(){const e=this.list[this.index],t=PS(this.list,this.index);return this.$emit("sort-remove",{oldIndex:this.index}),this.$emit("update:list",t),e},handleDropIn(e){const t=kS(this.list,this.newIndex,e);this.$emit("sort-insert",{newIndex:this.newIndex,value:e}),this.$emit("update:list",t),this.handleDragEnd()},handleDragOut(){this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),this.hub.isSource(this)?(this.translate={x:1e4,y:1e4},this.animateNodes()):(this.manager.getRefs().forEach(e=>{e.node.style.transform=""}),this.dragendTimer=Lr(this.handleDragEnd,this.transitionDuration||0))},handleDragEnd(){this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),os(this.manager.getRefs()),this.sortableGhost&&(this.sortableGhost.remove(),this.sortableGhost=null),this.dragendTimer&&(clearTimeout(this.dragendTimer),this.dragendTimer=null),this.manager.active=null,this._touched=!1,this.sorting=!1},intializeOffsets(e,t){const{useWindowAsScrollContainer:o,containerBoundingRect:n,_window:r}=this;this.marginOffset={x:this.margin.left+this.margin.right,y:Math.max(this.margin.top,this.margin.bottom)},this._axis={x:this.axis.indexOf("x")>=0,y:this.axis.indexOf("y")>=0},this.initialOffset=Io(e),this.initialScroll={top:this.scrollContainer.scrollTop,left:this.scrollContainer.scrollLeft},this.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset},this.translate={x:0,y:0},this.minTranslate={},this.maxTranslate={},this._axis.x&&(this.minTranslate.x=(o?0:n.left)-t.left-this.width/2,this.maxTranslate.x=(o?r.innerWidth:n.left+n.width)-t.left-this.width/2),this._axis.y&&(this.minTranslate.y=(o?0:n.top)-t.top-this.height/2,this.maxTranslate.y=(o?r.innerHeight:n.top+n.height)-t.top-this.height/2)},handleDragIn(e,t,o){if(this.hub.isSource(this))return;this.dragendTimer&&(this.handleDragEnd(),clearTimeout(this.dragendTimer),this.dragendTimer=null);const n=this.manager.getRefs();this.index=n.length,this.manager.active={index:this.index};const r=this.container.getBoundingClientRect(),i=o.getBoundingClientRect();this.containerBoundingRect=r,this.sortableGhost=es(t),this.container.appendChild(this.sortableGhost);const a=this.sortableGhost.getBoundingClientRect();this.boundingClientRect=a,this.margin=Jl(this.sortableGhost),this.width=a.width,this.height=a.height,this.offsetEdge=Ht(this.sortableGhost,this.container),this.intializeOffsets(e,a),this.initialOffset.x+=a.x-i.x,this.initialOffset.y+=a.y-i.y,this.sorting=!0},handleSortEnd(e){this.listenerNode&&(Pt.move.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortMove)),Pt.end.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortEnd)),Pt.cancel.forEach(n=>this.listenerNode.removeEventListener(n,this.handleSortCancel)));const t=this.manager.getRefs();this.helper&&this.helperClass&&this.helper.classList.remove(...this.helperClass.split(" ")),this.autoscrollInterval&&clearInterval(this.autoscrollInterval),this.autoscrollInterval=null;const o=()=>{this.helper&&(this.helper.remove(),this.helper=null),this.hideSortableGhost&&this.sortableGhost&&(this.sortableGhost.style.visibility="",this.sortableGhost.style.opacity=""),os(t),this.hub&&!this.hub.isDest(this)?this.canceling?this.hub.cancel():this.hub.handleSortEnd():this.canceling?this.$emit("sort-cancel",{event:e}):(this.$emit("sort-end",{event:e,oldIndex:this.index,newIndex:this.newIndex}),this.$emit("update:list",ES(this.list,this.index,this.newIndex))),this.manager.active=null,this._touched=!1,this.canceling=!1,this.sorting=!1};this.transitionDuration||this.draggedSettlingDuration?this.transitionHelperIntoPlace(t,o):o()},transitionHelperIntoPlace(e,t){if(this.draggedSettlingDuration===0||e.length===0||!this.helper)return Promise.resolve();const o=e[this.index].node;let n=0,r=0;const i={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};if(this.hub&&!this.hub.isDest(this)&&!this.canceling){const c=this.hub.getDest();if(!c)return;const d=c.newIndex,u=c.manager.getOrderedRefs(),f=d0?n+=c.offsetLeft+c.offsetWidth-(o.offsetLeft+o.offsetWidth):n+=c.offsetLeft-o.offsetLeft,r=-d.top,this.translate&&this.translate.y>0?r+=c.offsetTop+c.offsetHeight-(o.offsetTop+o.offsetHeight):r+=c.offsetTop-o.offsetTop}const a=this.draggedSettlingDuration!==null?this.draggedSettlingDuration:this.transitionDuration;hi(this.helper,`translate3d(${n}px,${r}px, 0)`,`${a}ms`);const s=c=>{(!c||c.propertyName==="transform")&&(clearTimeout(l),hi(this.helper),t())},l=setTimeout(s,a+10);this.helper.addEventListener("transitionend",s)},updatePosition(e){const{lockAxis:t,lockToContainerEdges:o}=this.$props,n=Io(e),r={x:n.x-this.initialOffset.x,y:n.y-this.initialOffset.y};if(r.y-=window.pageYOffset-this.initialWindowScroll.top,r.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=r,o){const[i,a]=RS(this.lockOffset,this.height,this.width),s={x:this.width/2-i.x,y:this.height/2-i.y},l={x:this.width/2-a.x,y:this.height/2-a.y};this.minTranslate.x&&this.maxTranslate.x&&(r.x=Zl(this.minTranslate.x+s.x,this.maxTranslate.x-l.x,r.x)),this.minTranslate.y&&this.maxTranslate.y&&(r.y=Zl(this.minTranslate.y+s.y,this.maxTranslate.y-l.y,r.y))}t==="x"?r.y=0:t==="y"&&(r.x=0),this.helper&&(this.helper.style.transform=`translate3d(${r.x}px,${r.y}px, 0)`)},animateNodes(){const{transitionDuration:e,hideSortableGhost:t}=this.$props,o=this.manager.getOrderedRefs(),n={left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top},r={left:this.offsetEdge.left+this.translate.x+n.left,top:this.offsetEdge.top+this.translate.y+n.top},i={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};this.newIndex=null;for(let a=0,s=o.length;ad?d/2:this.width/2,height:this.height>u?u/2:this.height/2},h={x:0,y:0};let{edgeOffset:m}=o[a];m||(o[a].edgeOffset=m=Ht(l,this.container));const p=a0&&o[a-1];if(p&&!p.edgeOffset&&(p.edgeOffset=Ht(p.node,this.container)),c===this.index){t&&(this.sortableGhost=l,l.style.visibility="hidden",l.style.opacity="0");continue}e&&(l.style.transitionDuration=`${e}ms`),this._axis.x?this._axis.y?cthis.containerBoundingRect.width-f.width&&p&&(h.x=p.edgeOffset.left-m.left,h.y=p.edgeOffset.top-m.top),this.newIndex===null&&(this.newIndex=c)):c>this.index&&(r.left+i.left+f.width>=m.left&&r.top+i.top+f.height>=m.top||r.top+i.top+f.height>=m.top+u)&&(h.x=-(this.width+this.marginOffset.x),m.left+h.xthis.index&&r.left+i.left+f.width>=m.left?(h.x=-(this.width+this.marginOffset.x),this.newIndex=c):cthis.index&&r.top+i.top+f.height>=m.top?(h.y=-(this.height+this.marginOffset.y),this.newIndex=c):c=this.maxTranslate.y-this.height/2?(t.y=1,o.y=n.y*Math.abs((this.maxTranslate.y-this.height/2-e.y)/this.height)):e.x>=this.maxTranslate.x-this.width/2?(t.x=1,o.x=n.x*Math.abs((this.maxTranslate.x-this.width/2-e.x)/this.width)):e.y<=this.minTranslate.y+this.height/2?(t.y=-1,o.y=n.y*Math.abs((e.y-this.height/2-this.minTranslate.y)/this.height)):e.x<=this.minTranslate.x+this.width/2&&(t.x=-1,o.x=n.x*Math.abs((e.x-this.width/2-this.minTranslate.x)/this.width)),this.autoscrollInterval&&(clearInterval(this.autoscrollInterval),this.autoscrollInterval=null),(t.x!==0||t.y!==0)&&(this.autoscrollInterval=window.setInterval(()=>{const r={left:1*o.x*t.x,top:1*o.y*t.y};this.useWindowAsScrollContainer?this._window.scrollBy(r.left,r.top):(this.scrollContainer.scrollTop+=r.top,this.scrollContainer.scrollLeft+=r.left),this.translate.x+=r.left,this.translate.y+=r.top,this.animateNodes()},5))}}}),AS={beforeMount(e){e.sortableHandle=!0}},zS=se({name:"SlickItem",mixins:[SS],props:{tag:{type:String,default:"div"}},render(){var e,t;return b(this.tag,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),o2=se({name:"SlickList",mixins:[IS],props:{tag:{type:String,default:"div"},itemKey:{type:[String,Function],default:"id"}},render(){var e,t;return this.$slots.item?b(this.tag,this.list.map((o,n)=>{let r;if(o!=null){if(typeof this.itemKey=="function")r=this.itemKey(o);else if(typeof o=="object"&&fi(o,this.itemKey)&&typeof o[this.itemKey]=="string")r=o[this.itemKey];else if(typeof o=="string")r=o;else throw new Error("Cannot find key for item, use the item-key prop and pass a function or string");return b(zS,{key:r,index:n},{default:()=>{var i,a;return(a=(i=this.$slots).item)===null||a===void 0?void 0:a.call(i,{item:o,index:n})}})}})):b(this.tag,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});let MS=1;function LS(e,t,o){return t.id===e.id?!0:e.block&&e.block.includes(t.group)?!1:typeof e.accept=="function"?e.accept({dest:e,source:t,payload:o}):typeof e.accept=="boolean"?e.accept:!!(e.accept&&e.accept.includes(t.group)||e.group===t.group)}function BS({x:e,y:t},o,n){if(rs({x:e,y:t},n.container.getBoundingClientRect()))return n;let r=null,i=1/0;for(let a=0;ao.id!==t.id)}sortStart(t){this.source=t,this.dest=t}handleSortMove(t,o){var n,r,i,a;const s=this.dest,l=this.source;if(!s||!l)return;const c=this.refs,d=Io(t,"client"),u=BS(d,c,s)||s;s.id!==u.id&&LS(u,l,o)&&(this.dest=u,s.handleDragOut(),u.handleDragIn(t,this.ghost,this.helper)),s.id!==((n=this.source)===null||n===void 0?void 0:n.id)&&((r=this.dest)===null||r===void 0||r.updatePosition(t),(i=this.dest)===null||i===void 0||i.animateNodes(),(a=this.dest)===null||a===void 0||a.autoscroll())}handleSortEnd(){var t,o,n,r;if(((t=this.source)===null||t===void 0?void 0:t.id)===((o=this.dest)===null||o===void 0?void 0:o.id))return;const i=(n=this.source)===null||n===void 0?void 0:n.handleDropOut();(r=this.dest)===null||r===void 0||r.handleDropIn(i),this.reset()}reset(){this.source=null,this.dest=null,this.helper=null,this.ghost=null}cancel(){var t;(t=this.dest)===null||t===void 0||t.handleDragEnd(),this.reset()}}const DS={install(e){e.directive("drag-handle",AS),e.provide("SlicksortHub",new HS)}},zt=If(pS);zt.use(Su);zt.use($n,_e);zt.provide("axios",zt.config.globalProperties.axios);zt.use(zf());zt.provide("loaded",B(!1));zt.mount("#app");zt.use(DS);export{jf as $,Mm as A,$s as B,t0 as C,QS as D,Mn as E,XS as F,Hh as G,U0 as H,Ks as I,Yr as J,$b as K,lc as L,e2 as M,o2 as N,zS as O,om as P,nm as Q,Pv as R,Gs as S,Yv as T,Jv as U,Is as V,qs as W,lo as X,ZS as Y,tv as Z,Dc as _,yu as a,_i as a0,rc as a1,Qn as a2,rv as a3,av as a4,hv as a5,Us as a6,Ff as a7,KS as a8,sv as a9,je as aa,jS as ab,Bi as ac,WS as ad,Yf as ae,yg as af,hh as ag,ov as ah,Ri as ai,Dt as aj,YS as ak,Lb as al,Di as am,As as an,Ti as ao,tb as ap,JS as aq,Xn as ar,qS as as,US as at,bg as au,Cg as av,Pi as aw,ho as b,Ub as c,VS as d,En as e,ec as f,jr as g,zs as h,Ur as i,aS as j,Xd as k,O0 as l,em as m,Xf as n,qa as o,GS as p,FS as q,ba as r,_n as s,Cr as t,iS as u,_e as v,_v as w,yt as x,Ug as y,Li as z}; diff --git a/ui/dist/assets/op_select.js b/ui/dist/assets/op_select.js index 4c65318..bfc4b9d 100644 --- a/ui/dist/assets/op_select.js +++ b/ui/dist/assets/op_select.js @@ -1,4 +1,4 @@ -var _r=Object.defineProperty;var Fr=(t,n,e)=>n in t?_r(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var h=(t,n,e)=>Fr(t,typeof n!="symbol"?n+"":n,e);import{B as le,H as u,ai as Rr,bH as Vr,z as En,c as bt,j as F,r as te,b3 as De,b8 as at,ar as V,as as K,av as se,au as Ye,at as An,ay as fe,ax as Je,bF as $n,w as lt,b as Be,aI as Xt,n as ut,D as zn,aC as dt,J as Yr,b2 as ke,aD as Hr,E as Sr,aL as Z,M as Br,ap as Un,an as Ln,aO as qn,aV as Wn,bN as Er,b0 as vt,b4 as ft,bM as dn,bR as Nt,t as _t,L as Ar,N as $r,aY as ct,bS as zr,bj as fn,C as Ur,A as Pe,aj as Lr,aG as mn,v as hn,bL as gn,a_ as qr,bT as Wr}from"./_plugin-vue_export-helper.js";import{m as k,o as Te,P as et,Q as jr,f as Qr,b as qt,R as Gr,n as Xr,B as Zr,V as Kr,h as Jr,i as ea,q as pn,r as ta,T as na,A as Wt,U as ra,X as aa,Y as oa}from"./main.js";import{e as jn,u as Zt}from"./use-locale.js";import{F as ia,A as sa}from"./Select.js";import{_ as Ze}from"./Input.js";import{_ as la}from"./Scrollbar.js";import{g as ua}from"./get-slot.js";import{m as ca}from"./index.js";import{_ as Qn}from"./Avatar.js";import{_ as da}from"./Tag.js";const fa=le({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}}),Gn=le({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` +var _r=Object.defineProperty;var Fr=(t,n,e)=>n in t?_r(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var h=(t,n,e)=>Fr(t,typeof n!="symbol"?n+"":n,e);import{B as le,H as u,ai as Rr,bH as Vr,z as En,c as bt,j as F,r as te,b3 as De,b8 as at,ar as V,as as K,av as se,au as Ye,at as An,ay as fe,ax as Je,bF as $n,w as lt,b as Be,aI as Xt,n as ut,D as zn,aC as dt,J as Yr,b2 as ke,aD as Hr,E as Sr,aL as Z,M as Br,ap as Un,an as Ln,aO as qn,aV as Wn,bN as Er,b0 as vt,b4 as ft,bM as dn,bR as Nt,t as _t,L as Ar,N as $r,aY as ct,bS as zr,bj as fn,C as Ur,A as Pe,aj as Lr,aG as mn,v as hn,bL as gn,a_ as qr,bT as Wr}from"./_plugin-vue_export-helper.js";import{m as k,o as Te,P as et,Q as jr,f as Qr,b as qt,R as Gr,n as Xr,B as Zr,V as Kr,h as Jr,i as ea,q as pn,r as ta,T as na,A as Wt,U as ra,X as aa,Y as oa}from"./main.js";import{e as jn,u as Zt}from"./use-locale.js";import{F as ia,A as sa}from"./Select.js";import{_ as Ze}from"./Input.js";import{a as la}from"./Scrollbar.js";import{g as ua}from"./get-slot.js";import{m as ca}from"./index.js";import{_ as Qn}from"./Avatar.js";import{_ as da}from"./Tag.js";const fa=le({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}}),Gn=le({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/ui/public/black.jpg b/ui/public/black.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5397eab008dd6f6848506fa85ac769454605d939 GIT binary patch literal 2766 zcmeHHO=uHA7=5#AvPrYCiH%Uh)^0Ugg|uiIw1SeFXiKEU5G%AQXtGJ$K$3<{N-u&Q z1g`}T{#;u1;KhR{y^8cI2!ggMQapL^r07NJ_{}yntu!s3n+KbH`M&qf?7YnjU*Jpd zoa>MGgAsx(2=G5>iJ93{C7aQwbCn5wAU>4fU!-U8SnO&ddA>hBc$Usccdh|?GkI%m2KQ`XR>7jU^=z?jFMR) zevSCC=}JlPd&GUlL@Go4De<654@i7L)YB{co8aRXmx#h=4ku%DHXm_)d<{>p;l_kn zAWfJwflQ%D>q{dmJR|sZ!3+5*dNvE&*MD`2&ecM!1^^bo<3=X?pvD+Mq zqBxz7Ce`OwT`qOcu9jwBo4d-nu{|){MUI*LBmSpCIE{$2)s-eYf$g;lTEBKqSQTZ$joMAr8t7vq?AFg~GeBLS`(&HdRP9McrNOk?JmW k6)e(0yHrza{nt@&8)!JNO&!=GlAbLiSygNjIH6el3-DmnCIA2c literal 0 HcmV?d00001 diff --git a/ui/src/pages/Log.vue b/ui/src/pages/Log.vue index 064cafc..517d3ec 100644 --- a/ui/src/pages/Log.vue +++ b/ui/src/pages/Log.vue @@ -3,7 +3,7 @@ import { storeToRefs } from 'pinia' import { useMowerStore } from '@/stores/mower' const mower_store = useMowerStore() -const { log, log_mobile, running, log_lines, task_list, waiting, get_task_id } = +const { log, log_mobile, running, log_lines, task_list, waiting, get_task_id, sc_uri } = storeToRefs(mower_store) const { get_tasks } = mower_store const axios = inject('axios') @@ -54,19 +54,19 @@ function stop() { }) } -import PlayIcon from '@vicons/ionicons5/Play' -import StopIcon from '@vicons/ionicons5/Stop' -import AddIcon from '@vicons/ionicons5/Add' +import { useConfigStore } from '@/stores/config' +import FullscreenIcon from '@vicons/fluent/ArrowMaximize20Regular' import CollapseIcon from '@vicons/fluent/PanelTopContract20Regular' import ExpandIcon from '@vicons/fluent/PanelTopExpand20Regular' -import FullscreenIcon from '@vicons/fluent/ArrowMaximize20Regular' +import AddIcon from '@vicons/ionicons5/Add' +import PlayIcon from '@vicons/ionicons5/Play' +import StopIcon from '@vicons/ionicons5/Stop' const show_task_table = ref(true) const show_task = ref(false) const add_task = ref(true) provide('show_task', show_task) provide('add_task', add_task) -import { useConfigStore } from '@/stores/config' const config_store = useConfigStore() const { conf } = storeToRefs(config_store) @@ -88,13 +88,23 @@ const stop_options = [ function fullscreen() { document.documentElement.requestFullscreen() } + +const sc_preview = ref(true) + + + + + + 自动滚动 - - - - - - @@ -209,6 +219,7 @@ function fullscreen() { } .task-table { + position: relative; max-width: 600px; th { @@ -243,14 +254,14 @@ function fullscreen() { .toggle-table-collapse-btn { position: absolute; - top: 12px; - right: 12px; + top: 0; + right: 0; } .toggle-fullscreen-btn { position: absolute; - top: 12px; - right: 50px; + top: 0; + right: 38px; } .log-bg { @@ -266,6 +277,14 @@ function fullscreen() { background-size: cover; background-position: 65% 50%; pointer-events: none; + z-index: 14; +} + +.sc { + max-width: 480px; + max-height: 270px; + border-radius: 4px; + z-index: 15; } diff --git a/ui/src/stores/mower.js b/ui/src/stores/mower.js index daa4b7b..f89379a 100644 --- a/ui/src/stores/mower.js +++ b/ui/src/stores/mower.js @@ -36,6 +36,8 @@ export const useMowerStore = defineStore('mower', () => { const { conf, timestamp, post_conf } = storeToRefs(config_store) const { parse_config } = config_store + const sc_uri = ref('') + function listen_ws() { let backend_url if (import.meta.env.DEV) { @@ -55,6 +57,8 @@ export const useMowerStore = defineStore('mower', () => { timestamp.value = data.time conf.value = parse_config(data.data) } + } else if (data.type == 'sc') { + sc_uri.value = data.data } } } @@ -79,6 +83,7 @@ export const useMowerStore = defineStore('mower', () => { log_mobile, log_lines, ws, + sc_uri, running, waiting, listen_ws, From bbfdd005d5caabdaafefc661ab4cacb10eee4844 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 15:03:34 +0800 Subject: [PATCH 09/30] =?UTF-8?q?=E4=BF=9D=E5=85=A8=E6=88=98=E6=96=97?= =?UTF-8?q?=E5=89=8D=E5=A2=9E=E8=B0=83=E8=A3=85=E7=BD=AE=E9=80=82=E9=85=8D?= =?UTF-8?q?=E6=96=B0ui=EF=BC=8C=E5=8E=BB=E6=8E=89=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84sleep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/sss/sss_drop.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/mower/solvers/sss/sss_drop.py b/mower/solvers/sss/sss_drop.py index d1f12c1..0482b7d 100644 --- a/mower/solvers/sss/sss_drop.py +++ b/mower/solvers/sss/sss_drop.py @@ -10,6 +10,7 @@ from mower.utils.generate_image import generate_image from mower.utils.graph import SceneGraphSolver from mower.utils.image import cropimg, loadres, thres2 from mower.utils.log import logger +from mower.utils.rapidocr import ocr_rec from mower.utils.recognize import Scene from mower.utils.vector import ss, va @@ -109,12 +110,10 @@ class SSSDROPSolver(SceneGraphSolver): for drop in self.drops: if drop in opers: self.tap(opers[drop]) - self.sleep(0.5) self.choose = True return if len(opers): self.tap(opers.popitem()[1]) - self.sleep(0.5) self.choose = True return @@ -123,13 +122,11 @@ class SSSDROPSolver(SceneGraphSolver): if drop not in agent: if pos := self.find_EC(drop, 29, ((510, 700), (1480, 770))): self.tap(pos) - self.sleep(0.5) self.tap((1750, 550)) return else: if pos := self.find_PR_in_fight(drop, ((468, 735), (1321, 797))): self.tap(pos) - self.sleep(0.5) self.tap((1750, 550)) return self.tap("sss/abandon") @@ -142,13 +139,15 @@ class SSSDROPSolver(SceneGraphSolver): self.tap((1794, 900)) return else: + ec_pos = [((470, 400), (800, 450)), ((1200, 400), (1530, 450))] + res = {} + for pos in ec_pos: + img = cropimg(config.recog.img, pos) + res[ocr_rec(img)] = pos for drop in self.drops: - if drop not in agent: - if pos := self.find_EC(drop, 30, ((640, 630), (1280, 700))): - self.tap(pos) - self.sleep(0.5) - self.choose = True - return + if drop in res: + self.tap(res[drop]) + self.choose = True elif scene == Scene.SSS_ABANDON_DROP_IN_FIGHT: self.scene_graph_step(Scene.OPERATOR_FIGHT) From 904153b2adc33268894c2149cbae1700be071b1b Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 15:04:24 +0800 Subject: [PATCH 10/30] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=96=B9=E5=90=91?= =?UTF-8?q?=E5=B0=8F=E5=86=99=E8=BD=AC=E5=A4=A7=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/translate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mower/utils/translate.py b/mower/utils/translate.py index 6aa625b..1c5f816 100644 --- a/mower/utils/translate.py +++ b/mower/utils/translate.py @@ -34,6 +34,11 @@ direction_translation = { "左": "Left", "右": "Right", "无": "None", + "up": "Up", + "down": "Down", + "left": "Left", + "right": "Right", + "none": "None", } From 570bc1938155e7ee16d8b0a6de858ff02e81e59c Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 15:04:59 +0800 Subject: [PATCH 11/30] =?UTF-8?q?=E8=AF=86=E5=88=AB=E4=BF=9D=E5=85=A8?= =?UTF-8?q?=E5=85=B3=E5=8D=A1=E6=94=B9=E4=B8=BAocr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/sss/__init__.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/mower/solvers/sss/__init__.py b/mower/solvers/sss/__init__.py index 7a3df1f..b19905c 100644 --- a/mower/solvers/sss/__init__.py +++ b/mower/solvers/sss/__init__.py @@ -1,13 +1,11 @@ from datetime import datetime, timedelta -import cv2 - from mower.utils import config from mower.utils.email import send_message -from mower.utils.generate_image import generate_image from mower.utils.graph import SceneGraphSolver from mower.utils.image import cropimg from mower.utils.log import logger +from mower.utils.rapidocr import ocr_rec from mower.utils.recognize import Scene from .sss_choose import SSSChooseSolver @@ -41,16 +39,9 @@ class SSSSolver(SceneGraphSolver): self.stages[stage_name] = stage def detect_stage(self): - for stage in self.stages: - stage_name_size = 40 if len(stage) < 6 else 34 - res = generate_image(stage, stage_name_size) - img = cropimg(config.recog.gray, ((180, 400), (420, 480))) - result = cv2.matchTemplate(img, res, cv2.TM_CCOEFF_NORMED) - min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(result) - logger.debug(f"stage:{stage},max_val:{max_val}") - if max_val > 0.85: - return stage - return None + img = cropimg(config.recog.img, ((180, 400), (420, 480))) + res = ocr_rec(img) + return res def transition(self): if self.deadline and self.deadline < datetime.now(): From 429184dda7cff7962d40e010322f470030dc61e7 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 15:06:06 +0800 Subject: [PATCH 12/30] =?UTF-8?q?get=5Fpos=E9=99=90=E5=88=B6=E8=8C=83?= =?UTF-8?q?=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/reclamation_algorithm.py | 2 +- mower/utils/solver.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mower/solvers/reclamation_algorithm.py b/mower/solvers/reclamation_algorithm.py index c6bae22..d2f0f24 100644 --- a/mower/solvers/reclamation_algorithm.py +++ b/mower/solvers/reclamation_algorithm.py @@ -83,7 +83,7 @@ class ReclamationAlgorithm(SceneGraphSolver): def tap_loop(self, pos): while not self.event.is_set(): - config.device.tap(pos) + self.tap(pos) def fast_tap(self, pos): self.event.clear() diff --git a/mower/utils/solver.py b/mower/utils/solver.py index f09508e..8d76e25 100644 --- a/mower/utils/solver.py +++ b/mower/utils/solver.py @@ -134,6 +134,8 @@ class BaseSolver: else: # tp.Coordinate x, y = poly + x = max(0, min(x, 1920)) + y = max(0, min(y, 1080)) return (int(x), int(y)) def sleep(self, interval: float = 1) -> None: From 7924e339ef592792c48b5faed7c0a04f0cd56b02 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 15:06:55 +0800 Subject: [PATCH 13/30] =?UTF-8?q?skill=5Fready=E5=A2=9E=E5=8A=A0=E6=A8=AA?= =?UTF-8?q?=E5=90=91=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/fight/mixin.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mower/solvers/fight/mixin.py b/mower/solvers/fight/mixin.py index 0596c57..7e6511e 100644 --- a/mower/solvers/fight/mixin.py +++ b/mower/solvers/fight/mixin.py @@ -148,7 +148,7 @@ class FightMixin: def toggle_speed(self): target = 1 if self.speed == 2 else 2 logger.info(f"切换至{target}倍速") - config.device.tap((1650, 80)) + self.tap((1650, 80)) self.speed = target self.complete_action() @@ -243,7 +243,7 @@ class FightMixin: "选中干员" pos = self.calc.get_character_screen_pos(x, y, False, False) pos = int(pos.x), int(pos.y) - config.device.tap(pos) + self.tap(pos) def withdraw(self): "撤下干员" @@ -261,7 +261,7 @@ class FightMixin: self.Bullet_Time = False pos = self.calc.get_with_draw_screen_pos(x, y) pos = int(pos.x), int(pos.y) - config.device.tap(pos) + self.tap(pos) self.sleep(0.5) self.clear_op() self.complete_action() @@ -360,7 +360,7 @@ class FightMixin: width = right - left height = bottom - top logger.debug(f"{width=} {height=}") - return width < 900 and height < 850 + return width < 950 and height < 850 except Exception as e: logger.exception(e) return False @@ -400,7 +400,7 @@ class FightMixin: skill_ready = loadres("fight/skill_ready", True) pos = self.calc.get_character_screen_pos(x, y, False, False) pos = int(pos.x), int(pos.y) - img = cropimg(config.recog.gray, sa(((-15, -168), (20, -118)), pos)) + img = cropimg(config.recog.gray, sa(((-25, -168), (25, -118)), pos)) mask = np.ones_like(skill_ready, dtype=np.float32) mask[8:17, :] = 0.3 result = cv2.matchTemplate( @@ -457,7 +457,7 @@ class FightMixin: else: dir = (0, 400) dir = va(pos, dir) - self.swipe_ext([start, pos], [config.conf.first_swipe_duration], 100, 0) + self.swipe_ext([start, pos], [config.conf.first_swipe_duration], 100, 50) if direction == "None": self.clear_op() self.location[(x, y)] = name From fe79e9ac1d46c77d3f33066920975b0e1b68fed9 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 15:07:54 +0800 Subject: [PATCH 14/30] =?UTF-8?q?rapidocr=E4=BF=AE=E6=AD=A3=E7=BB=93?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/rapidocr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mower/utils/rapidocr.py b/mower/utils/rapidocr.py index a131961..5fd5b1e 100644 --- a/mower/utils/rapidocr.py +++ b/mower/utils/rapidocr.py @@ -8,9 +8,12 @@ engine = RapidOCR(text_score=0.3) logger.info("OCR加载完成") +replacement = {"酪酊之旅": "酩酊之旅"} + + def ocr_rec(img: tp.Image | tp.GrayImage) -> str | None: result, elapse = engine(img, use_det=False, use_cls=False, use_rec=True) elapse = round(elapse[0] * 1000) text = result[0][0].strip() logger.debug(f"{elapse}ms {text}") - return text + return text if text not in replacement else replacement[text] From 7a06e924bc72347708a747eaf1ca9716e95ed47d Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 15:09:03 +0800 Subject: [PATCH 15/30] =?UTF-8?q?=E8=AF=BB=E5=8F=96=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E9=80=82=E9=85=8D=E6=97=A7type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/config/work.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mower/utils/config/work.py b/mower/utils/config/work.py index 3280572..0e4314f 100644 --- a/mower/utils/config/work.py +++ b/mower/utils/config/work.py @@ -46,6 +46,7 @@ class Action(BaseModel): "MoveCamera", "调配干员", "CheckIfStartOver", + "GetDrops", ] = "Deploy" name: Optional[str] = None costs: Optional[int] = None From 7ec0694151e848acb2cbbdc9e30096b6c1b1edba Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 15:22:13 +0800 Subject: [PATCH 16/30] =?UTF-8?q?fix:=E7=AC=AC=E4=B8=80=E6=AE=B5=E6=BB=91?= =?UTF-8?q?=E5=8A=A8=E5=8F=82=E6=95=B0=E5=86=99=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/fight/mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mower/solvers/fight/mixin.py b/mower/solvers/fight/mixin.py index 7e6511e..c1973c4 100644 --- a/mower/solvers/fight/mixin.py +++ b/mower/solvers/fight/mixin.py @@ -457,7 +457,7 @@ class FightMixin: else: dir = (0, 400) dir = va(pos, dir) - self.swipe_ext([start, pos], [config.conf.first_swipe_duration], 100, 50) + self.swipe_ext([start, pos], [config.conf.first_swipe_duration], 100, 0.05) if direction == "None": self.clear_op() self.location[(x, y)] = name From 97b66d57efc8614c23b8a63486e6d813de6542da Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sat, 7 Dec 2024 16:13:05 +0800 Subject: [PATCH 17/30] =?UTF-8?q?=E5=A4=B4=E5=83=8F=E5=90=8C=E5=90=8Dtrap?= =?UTF-8?q?=5F=E5=8E=BB=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_get_res_new.py | 7 +++++++ mower/static/avatar.pkl | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/auto_get_res_new.py b/auto_get_res_new.py index 882e9a6..62f8bf0 100644 --- a/auto_get_res_new.py +++ b/auto_get_res_new.py @@ -508,7 +508,10 @@ class Arknights数据处理器: mask = full.copy() name_list = [] i = 0 + trap_list = [] for filename in file_list: + if filename == "char_017_huang2.png": + continue x = (i % col) * w y = (i // col) * h mx, my = sa(scope, (x, y)) @@ -517,6 +520,10 @@ class Arknights数据处理器: # j: char_285_medic2 # k: Lancet-2 if filename.startswith(j): + if filename.startswith("trap_"): + if k in trap_list: + break + trap_list.append(k) img = loadimg(os.path.join(data_path, filename), True) if img.shape != (h, w): img = cv2.resize(img, (w, h)) diff --git a/mower/static/avatar.pkl b/mower/static/avatar.pkl index d12da95..64800a5 100644 --- a/mower/static/avatar.pkl +++ b/mower/static/avatar.pkl @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0820d0052e1dbfbb6caf145666e4d862c7a8e41f37e2b21073e8fa6f17f67010 -size 19313924 +oid sha256:8e2ebecd024693b8501ec4b29730968e7cb7e8ef8c7ef40eb1bde418f5eaf2cd +size 18988500 From d07fb4f865083d4dad3ff9748a7c5d61d7c9fc47 Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sat, 7 Dec 2024 19:00:44 +0800 Subject: [PATCH 18/30] scrcpy virtual display --- mower/utils/config/conf.py | 2 +- mower/utils/device/device.py | 13 - mower/utils/device/method/adb/__init__.py | 17 -- mower/utils/device/method/scrcpy/const.py | 319 +------------------- mower/utils/device/method/scrcpy/control.py | 8 + mower/utils/device/method/scrcpy/core.py | 61 +++- mower/utils/solver.py | 11 - ui/dist/assets/Settings.css | 2 +- ui/dist/assets/Settings.js | 2 +- ui/src/pages/Settings.vue | 3 + 10 files changed, 66 insertions(+), 372 deletions(-) diff --git a/mower/utils/config/conf.py b/mower/utils/config/conf.py index b11ab98..365f57d 100644 --- a/mower/utils/config/conf.py +++ b/mower/utils/config/conf.py @@ -409,7 +409,7 @@ class EmulatorPart(ConfModel): "截图方案" control_strategy: Literal["scrcpy", "mumuipc"] = "scrcpy" "触控方案" - app_control_strategy: Literal["adb", "mumumanager"] = "adb" + app_control_strategy: Literal["adb", "mumumanager", "scrcpy"] = "adb" "应用控制方案" diff --git a/mower/utils/device/device.py b/mower/utils/device/device.py index 0b6c630..14eef83 100644 --- a/mower/utils/device/device.py +++ b/mower/utils/device/device.py @@ -69,11 +69,6 @@ class Device: logger.debug(keycode) self.control.send_keyevent(keycode) - def send_text(self, text: str) -> None: - """send a text""" - logger.debug(repr(text)) - self.app_control.send_text(text) - def screencap(self) -> bytes: start_time = datetime.now() if config.conf.screencap_strategy != "scrcpy": @@ -105,14 +100,6 @@ class Device: save_screenshot(img) return img - def current_focus(self) -> str: - """detect current focus app""" - return self.app_control.current_focus() - - def display_frames(self) -> tuple[int, int, int]: - """get display frames if in compatibility mode""" - return self.app_control.display_frames() - def tap(self, point: tuple[int, int]) -> None: """tap""" logger.debug(point) diff --git a/mower/utils/device/method/adb/__init__.py b/mower/utils/device/method/adb/__init__.py index 7cd6c4a..8ea3c8c 100644 --- a/mower/utils/device/method/adb/__init__.py +++ b/mower/utils/device/method/adb/__init__.py @@ -221,29 +221,12 @@ class ADB: "am start -a android.intent.action.MAIN -c android.intent.category.HOME" ) - def send_text(self, text: str) -> None: - """send a text""" - text = text.replace('"', '\\"') - command = f'input text "{text}"' - self.adb_shell(command) - def current_focus(self) -> str: """detect current focus app""" command = "dumpsys window | grep mCurrentFocus" line = self.adb_shell(command) return line.strip()[:-1].split(" ")[-1] - def display_frames(self) -> tuple[int, int, int]: - """get display frames if in compatibility mode""" - if not config.MNT_COMPATIBILITY_MODE: - return None - - command = "dumpsys window | grep DisplayFrames" - line = self.adb_shell(command) - """ eg. DisplayFrames w=1920 h=1080 r=3 """ - res = line.strip().replace("=", " ").split(" ") - return int(res[2]), int(res[4]), int(res[6]) - def check_current_focus(self) -> bool: """check if the application is in the foreground""" update = False diff --git a/mower/utils/device/method/scrcpy/const.py b/mower/utils/device/method/scrcpy/const.py index b82cf16..d50066e 100644 --- a/mower/utils/device/method/scrcpy/const.py +++ b/mower/utils/device/method/scrcpy/const.py @@ -1,329 +1,12 @@ -""" -This module includes all consts used in this project -""" - # Action ACTION_DOWN = 0 ACTION_UP = 1 ACTION_MOVE = 2 # KeyCode -KEYCODE_UNKNOWN = 0 -KEYCODE_SOFT_LEFT = 1 -KEYCODE_SOFT_RIGHT = 2 -KEYCODE_HOME = 3 KEYCODE_BACK = 4 -KEYCODE_CALL = 5 -KEYCODE_ENDCALL = 6 -KEYCODE_0 = 7 -KEYCODE_1 = 8 -KEYCODE_2 = 9 -KEYCODE_3 = 10 -KEYCODE_4 = 11 -KEYCODE_5 = 12 -KEYCODE_6 = 13 -KEYCODE_7 = 14 -KEYCODE_8 = 15 -KEYCODE_9 = 16 -KEYCODE_STAR = 17 -KEYCODE_POUND = 18 -KEYCODE_DPAD_UP = 19 -KEYCODE_DPAD_DOWN = 20 -KEYCODE_DPAD_LEFT = 21 -KEYCODE_DPAD_RIGHT = 22 -KEYCODE_DPAD_CENTER = 23 -KEYCODE_VOLUME_UP = 24 -KEYCODE_VOLUME_DOWN = 25 -KEYCODE_POWER = 26 -KEYCODE_CAMERA = 27 -KEYCODE_CLEAR = 28 -KEYCODE_A = 29 -KEYCODE_B = 30 -KEYCODE_C = 31 -KEYCODE_D = 32 -KEYCODE_E = 33 -KEYCODE_F = 34 -KEYCODE_G = 35 -KEYCODE_H = 36 -KEYCODE_I = 37 -KEYCODE_J = 38 -KEYCODE_K = 39 -KEYCODE_L = 40 -KEYCODE_M = 41 -KEYCODE_N = 42 -KEYCODE_O = 43 -KEYCODE_P = 44 -KEYCODE_Q = 45 -KEYCODE_R = 46 -KEYCODE_S = 47 -KEYCODE_T = 48 -KEYCODE_U = 49 -KEYCODE_V = 50 -KEYCODE_W = 51 -KEYCODE_X = 52 -KEYCODE_Y = 53 -KEYCODE_Z = 54 -KEYCODE_COMMA = 55 -KEYCODE_PERIOD = 56 -KEYCODE_ALT_LEFT = 57 -KEYCODE_ALT_RIGHT = 58 -KEYCODE_SHIFT_LEFT = 59 -KEYCODE_SHIFT_RIGHT = 60 -KEYCODE_TAB = 61 -KEYCODE_SPACE = 62 -KEYCODE_SYM = 63 -KEYCODE_EXPLORER = 64 -KEYCODE_ENVELOPE = 65 -KEYCODE_ENTER = 66 -KEYCODE_DEL = 67 -KEYCODE_GRAVE = 68 -KEYCODE_MINUS = 69 -KEYCODE_EQUALS = 70 -KEYCODE_LEFT_BRACKET = 71 -KEYCODE_RIGHT_BRACKET = 72 -KEYCODE_BACKSLASH = 73 -KEYCODE_SEMICOLON = 74 -KEYCODE_APOSTROPHE = 75 -KEYCODE_SLASH = 76 -KEYCODE_AT = 77 -KEYCODE_NUM = 78 -KEYCODE_HEADSETHOOK = 79 -KEYCODE_PLUS = 81 -KEYCODE_MENU = 82 -KEYCODE_NOTIFICATION = 83 -KEYCODE_SEARCH = 84 -KEYCODE_MEDIA_PLAY_PAUSE = 85 -KEYCODE_MEDIA_STOP = 86 -KEYCODE_MEDIA_NEXT = 87 -KEYCODE_MEDIA_PREVIOUS = 88 -KEYCODE_MEDIA_REWIND = 89 -KEYCODE_MEDIA_FAST_FORWARD = 90 -KEYCODE_MUTE = 91 -KEYCODE_PAGE_UP = 92 -KEYCODE_PAGE_DOWN = 93 -KEYCODE_BUTTON_A = 96 -KEYCODE_BUTTON_B = 97 -KEYCODE_BUTTON_C = 98 -KEYCODE_BUTTON_X = 99 -KEYCODE_BUTTON_Y = 100 -KEYCODE_BUTTON_Z = 101 -KEYCODE_BUTTON_L1 = 102 -KEYCODE_BUTTON_R1 = 103 -KEYCODE_BUTTON_L2 = 104 -KEYCODE_BUTTON_R2 = 105 -KEYCODE_BUTTON_THUMBL = 106 -KEYCODE_BUTTON_THUMBR = 107 -KEYCODE_BUTTON_START = 108 -KEYCODE_BUTTON_SELECT = 109 -KEYCODE_BUTTON_MODE = 110 -KEYCODE_ESCAPE = 111 -KEYCODE_FORWARD_DEL = 112 -KEYCODE_CTRL_LEFT = 113 -KEYCODE_CTRL_RIGHT = 114 -KEYCODE_CAPS_LOCK = 115 -KEYCODE_SCROLL_LOCK = 116 -KEYCODE_META_LEFT = 117 -KEYCODE_META_RIGHT = 118 -KEYCODE_FUNCTION = 119 -KEYCODE_SYSRQ = 120 -KEYCODE_BREAK = 121 -KEYCODE_MOVE_HOME = 122 -KEYCODE_MOVE_END = 123 -KEYCODE_INSERT = 124 -KEYCODE_FORWARD = 125 -KEYCODE_MEDIA_PLAY = 126 -KEYCODE_MEDIA_PAUSE = 127 -KEYCODE_MEDIA_CLOSE = 128 -KEYCODE_MEDIA_EJECT = 129 -KEYCODE_MEDIA_RECORD = 130 -KEYCODE_F1 = 131 -KEYCODE_F2 = 132 -KEYCODE_F3 = 133 -KEYCODE_F4 = 134 -KEYCODE_F5 = 135 -KEYCODE_F6 = 136 -KEYCODE_F7 = 137 -KEYCODE_F8 = 138 -KEYCODE_F9 = 139 -KEYCODE_F10 = 140 -KEYCODE_F11 = 141 -KEYCODE_F12 = 142 -KEYCODE_NUM_LOCK = 143 -KEYCODE_NUMPAD_0 = 144 -KEYCODE_NUMPAD_1 = 145 -KEYCODE_NUMPAD_2 = 146 -KEYCODE_NUMPAD_3 = 147 -KEYCODE_NUMPAD_4 = 148 -KEYCODE_NUMPAD_5 = 149 -KEYCODE_NUMPAD_6 = 150 -KEYCODE_NUMPAD_7 = 151 -KEYCODE_NUMPAD_8 = 152 -KEYCODE_NUMPAD_9 = 153 -KEYCODE_NUMPAD_DIVIDE = 154 -KEYCODE_NUMPAD_MULTIPLY = 155 -KEYCODE_NUMPAD_SUBTRACT = 156 -KEYCODE_NUMPAD_ADD = 157 -KEYCODE_NUMPAD_DOT = 158 -KEYCODE_NUMPAD_COMMA = 159 -KEYCODE_NUMPAD_ENTER = 160 -KEYCODE_NUMPAD_EQUALS = 161 -KEYCODE_NUMPAD_LEFT_PAREN = 162 -KEYCODE_NUMPAD_RIGHT_PAREN = 163 -KEYCODE_VOLUME_MUTE = 164 -KEYCODE_INFO = 165 -KEYCODE_CHANNEL_UP = 166 -KEYCODE_CHANNEL_DOWN = 167 -KEYCODE_ZOOM_IN = 168 -KEYCODE_ZOOM_OUT = 169 -KEYCODE_TV = 170 -KEYCODE_WINDOW = 171 -KEYCODE_GUIDE = 172 -KEYCODE_DVR = 173 -KEYCODE_BOOKMARK = 174 -KEYCODE_CAPTIONS = 175 -KEYCODE_SETTINGS = 176 -KEYCODE_TV_POWER = 177 -KEYCODE_TV_INPUT = 178 -KEYCODE_STB_POWER = 179 -KEYCODE_STB_INPUT = 180 -KEYCODE_AVR_POWER = 181 -KEYCODE_AVR_INPUT = 182 -KEYCODE_PROG_RED = 183 -KEYCODE_PROG_GREEN = 184 -KEYCODE_PROG_YELLOW = 185 -KEYCODE_PROG_BLUE = 186 -KEYCODE_APP_SWITCH = 187 -KEYCODE_BUTTON_1 = 188 -KEYCODE_BUTTON_2 = 189 -KEYCODE_BUTTON_3 = 190 -KEYCODE_BUTTON_4 = 191 -KEYCODE_BUTTON_5 = 192 -KEYCODE_BUTTON_6 = 193 -KEYCODE_BUTTON_7 = 194 -KEYCODE_BUTTON_8 = 195 -KEYCODE_BUTTON_9 = 196 -KEYCODE_BUTTON_10 = 197 -KEYCODE_BUTTON_11 = 198 -KEYCODE_BUTTON_12 = 199 -KEYCODE_BUTTON_13 = 200 -KEYCODE_BUTTON_14 = 201 -KEYCODE_BUTTON_15 = 202 -KEYCODE_BUTTON_16 = 203 -KEYCODE_LANGUAGE_SWITCH = 204 -KEYCODE_MANNER_MODE = 205 -KEYCODE_3D_MODE = 206 -KEYCODE_CONTACTS = 207 -KEYCODE_CALENDAR = 208 -KEYCODE_MUSIC = 209 -KEYCODE_CALCULATOR = 210 -KEYCODE_ZENKAKU_HANKAKU = 211 -KEYCODE_EISU = 212 -KEYCODE_MUHENKAN = 213 -KEYCODE_HENKAN = 214 -KEYCODE_KATAKANA_HIRAGANA = 215 -KEYCODE_YEN = 216 -KEYCODE_RO = 217 -KEYCODE_KANA = 218 -KEYCODE_ASSIST = 219 -KEYCODE_BRIGHTNESS_DOWN = 220 -KEYCODE_BRIGHTNESS_UP = 221 -KEYCODE_MEDIA_AUDIO_TRACK = 222 -KEYCODE_SLEEP = 223 -KEYCODE_WAKEUP = 224 -KEYCODE_PAIRING = 225 -KEYCODE_MEDIA_TOP_MENU = 226 -KEYCODE_11 = 227 -KEYCODE_12 = 228 -KEYCODE_LAST_CHANNEL = 229 -KEYCODE_TV_DATA_SERVICE = 230 -KEYCODE_VOICE_ASSIST = 231 -KEYCODE_TV_RADIO_SERVICE = 232 -KEYCODE_TV_TELETEXT = 233 -KEYCODE_TV_NUMBER_ENTRY = 234 -KEYCODE_TV_TERRESTRIAL_ANALOG = 235 -KEYCODE_TV_TERRESTRIAL_DIGITAL = 236 -KEYCODE_TV_SATELLITE = 237 -KEYCODE_TV_SATELLITE_BS = 238 -KEYCODE_TV_SATELLITE_CS = 239 -KEYCODE_TV_SATELLITE_SERVICE = 240 -KEYCODE_TV_NETWORK = 241 -KEYCODE_TV_ANTENNA_CABLE = 242 -KEYCODE_TV_INPUT_HDMI_1 = 243 -KEYCODE_TV_INPUT_HDMI_2 = 244 -KEYCODE_TV_INPUT_HDMI_3 = 245 -KEYCODE_TV_INPUT_HDMI_4 = 246 -KEYCODE_TV_INPUT_COMPOSITE_1 = 247 -KEYCODE_TV_INPUT_COMPOSITE_2 = 248 -KEYCODE_TV_INPUT_COMPONENT_1 = 249 -KEYCODE_TV_INPUT_COMPONENT_2 = 250 -KEYCODE_TV_INPUT_VGA_1 = 251 -KEYCODE_TV_AUDIO_DESCRIPTION = 252 -KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP = 253 -KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN = 254 -KEYCODE_TV_ZOOM_MODE = 255 -KEYCODE_TV_CONTENTS_MENU = 256 -KEYCODE_TV_MEDIA_CONTEXT_MENU = 257 -KEYCODE_TV_TIMER_PROGRAMMING = 258 -KEYCODE_HELP = 259 -KEYCODE_NAVIGATE_PREVIOUS = 260 -KEYCODE_NAVIGATE_NEXT = 261 -KEYCODE_NAVIGATE_IN = 262 -KEYCODE_NAVIGATE_OUT = 263 -KEYCODE_STEM_PRIMARY = 264 -KEYCODE_STEM_1 = 265 -KEYCODE_STEM_2 = 266 -KEYCODE_STEM_3 = 267 -KEYCODE_DPAD_UP_LEFT = 268 -KEYCODE_DPAD_DOWN_LEFT = 269 -KEYCODE_DPAD_UP_RIGHT = 270 -KEYCODE_DPAD_DOWN_RIGHT = 271 -KEYCODE_MEDIA_SKIP_FORWARD = 272 -KEYCODE_MEDIA_SKIP_BACKWARD = 273 -KEYCODE_MEDIA_STEP_FORWARD = 274 -KEYCODE_MEDIA_STEP_BACKWARD = 275 -KEYCODE_SOFT_SLEEP = 276 -KEYCODE_CUT = 277 -KEYCODE_COPY = 278 -KEYCODE_PASTE = 279 -KEYCODE_SYSTEM_NAVIGATION_UP = 280 -KEYCODE_SYSTEM_NAVIGATION_DOWN = 281 -KEYCODE_SYSTEM_NAVIGATION_LEFT = 282 -KEYCODE_SYSTEM_NAVIGATION_RIGHT = 283 -KEYCODE_KEYCODE_ALL_APPS = 284 -KEYCODE_KEYCODE_REFRESH = 285 -KEYCODE_KEYCODE_THUMBS_UP = 286 -KEYCODE_KEYCODE_THUMBS_DOWN = 287 - -# Event -EVENT_INIT = "init" -EVENT_FRAME = "frame" # Type TYPE_INJECT_KEYCODE = 0 -TYPE_INJECT_TEXT = 1 TYPE_INJECT_TOUCH_EVENT = 2 -TYPE_INJECT_SCROLL_EVENT = 3 -TYPE_BACK_OR_SCREEN_ON = 4 -TYPE_EXPAND_NOTIFICATION_PANEL = 5 -TYPE_EXPAND_SETTINGS_PANEL = 6 -TYPE_COLLAPSE_PANELS = 7 -TYPE_GET_CLIPBOARD = 8 -TYPE_SET_CLIPBOARD = 9 -TYPE_SET_SCREEN_POWER_MODE = 10 -TYPE_ROTATE_DEVICE = 11 - -COPY_KEY_NONE = 0 -COPY_KEY_COPY = 1 -COPY_KEY_CUT = 2 - -# Lock screen orientation -LOCK_SCREEN_ORIENTATION_UNLOCKED = -1 -LOCK_SCREEN_ORIENTATION_INITIAL = -2 -LOCK_SCREEN_ORIENTATION_0 = 0 -LOCK_SCREEN_ORIENTATION_1 = 1 -LOCK_SCREEN_ORIENTATION_2 = 2 -LOCK_SCREEN_ORIENTATION_3 = 3 - -# Screen power mode -POWER_MODE_OFF = 0 -POWER_MODE_NORMAL = 2 +TYPE_START_APP = 16 diff --git a/mower/utils/device/method/scrcpy/control.py b/mower/utils/device/method/scrcpy/control.py index 91c62fd..9cc8f05 100644 --- a/mower/utils/device/method/scrcpy/control.py +++ b/mower/utils/device/method/scrcpy/control.py @@ -3,6 +3,8 @@ import struct from time import sleep from typing import TYPE_CHECKING +from mower.utils import config + from . import const if TYPE_CHECKING: @@ -83,6 +85,12 @@ class ControlSender: buttons, ) + @inject(const.TYPE_START_APP) + def start_app(self): + app_name = config.conf.APPNAME.encode("utf-8") + length = len(app_name) + return struct.pack(f"!B{length}s", length, app_name) + def tap(self, x, y, hold_time: float = 0.07) -> None: """ Tap on screen diff --git a/mower/utils/device/method/scrcpy/core.py b/mower/utils/device/method/scrcpy/core.py index bd37913..2ba32fd 100644 --- a/mower/utils/device/method/scrcpy/core.py +++ b/mower/utils/device/method/scrcpy/core.py @@ -2,6 +2,7 @@ import socket import struct import threading import time +from datetime import datetime from functools import cached_property, wraps from queue import Queue from typing import Any, Callable, Optional @@ -11,7 +12,7 @@ from adbutils import AdbConnection, Network from mower.utils import config from mower.utils import typealias as tp -from mower.utils.csleep import MowerExit +from mower.utils.csleep import MowerExit, csleep from mower.utils.device import swipe_update from mower.utils.device.method.adb import ADB from mower.utils.device.method.adb.const import KeyCode @@ -44,15 +45,12 @@ def retry_scrcpy(func): class Client: - def __init__(self, displayid: Optional[int] = None): + def __init__(self): # User accessible self.last_frame: Optional[np.ndarray] = None self.resolution = (1920, 1080) self.control = ControlSender(self) - # Params - self.displayid = displayid - # Need to destroy self.__server_stream: Optional[AdbConnection] = None self.control_socket: Optional[socket.socket] = None @@ -103,13 +101,13 @@ class Client: cmdline = f"CLASSPATH={SCR_PATH} app_process /" cmdline += f" com.genymobile.scrcpy.Server {SCR_VER} audio=false" cmdline += " control=true tunnel_forward=true send_device_meta=false" - if config.conf.screencap_strategy != "scrcpy": - cmdline += " video=false" - else: + if config.conf.screencap_strategy == "scrcpy": cmdline += f" send_codec_meta=false max_fps={1000 / config.conf.screenshot_interval}" cmdline += " video_bit_rate=128000000 video_codec=h264" - if self.displayid: - cmdline += f" display_id={self.displayid}" + if config.conf.app_control_strategy == "scrcpy": + cmdline += " new_display=1920x1080/280 vd_system_decorations=false" + else: + cmdline += " video=false" self.__server_stream: AdbConnection = self.adb.adb_shell(cmdline, True) # Wait for server to start self.__server_stream.conn.settimeout(3) @@ -286,3 +284,46 @@ class Client: """send a key event""" logger.debug(keycode) self.control.send_keyevent(keycode) + + @retry_scrcpy + def launch(self): + self.control.start_app() + + @retry_scrcpy + def exit(self): + self.adb.exit() + + @retry_scrcpy + def home(self): + self.adb.exit() + + @retry_scrcpy + def check_device_screen(self): + return True + + @retry_scrcpy + def check_current_focus(self) -> bool: + """check if the application is in the foreground""" + update = False + start_time = datetime.now() + while True: + try: + focus = self.adb.adb_shell("dumpsys window | grep Window") + if ( + f"{config.conf.APPNAME}/{config.APP_ACTIVITY_NAME}" not in focus + and "com.hypergryph.arknights.bilibili/com.gsc.welcome.WelcomeActivity" + not in focus + ): + if (datetime.now() - start_time).total_seconds() > 40: + self.exit() # 应用卡死 + start_time = datetime.now() + self.launch() + update = True + csleep(1) + continue + return update + except MowerExit: + raise + except Exception as e: + logger.exception(e) + update = True diff --git a/mower/utils/solver.py b/mower/utils/solver.py index 8d76e25..5704625 100644 --- a/mower/utils/solver.py +++ b/mower/utils/solver.py @@ -1,5 +1,4 @@ import random -import time from abc import abstractmethod from datetime import datetime, timedelta from typing import Any, Callable, Literal, Optional, Tuple @@ -143,16 +142,6 @@ class BaseSolver: csleep(interval) config.recog.update() - def input(self, referent: str, input_area: tp.Scope, text: str = None) -> None: - """input text""" - logger.debug(f"{referent=} {input_area=}") - config.device.tap(self.get_pos(input_area)) - time.sleep(0.5) - if text is None: - text = input(referent).strip() - config.device.send_text(str(text)) - config.device.tap((0, 0)) - def find( self, res: tp.Res, diff --git a/ui/dist/assets/Settings.css b/ui/dist/assets/Settings.css index 458376b..7168921 100644 --- a/ui/dist/assets/Settings.css +++ b/ui/dist/assets/Settings.css @@ -1 +1 @@ -.sss-container[data-v-2dffb781]{display:flex;width:100%;gap:8px}.wrapper[data-v-2dffb781]{white-space:pre-wrap;-webkit-user-select:text;user-select:text}.title[data-v-2dffb781]{font-size:18px;font-weight:500;margin-bottom:6px}p[data-v-d479d5bf]{margin:0 0 10px}.misc-container[data-v-d479d5bf]{display:flex;align-items:center;gap:12px}.header[data-v-d479d5bf]{margin:12px 0}.tasktable[data-v-6e42e723]{margin-top:4px;width:100%;overflow:scroll}.tasktable table[data-v-6e42e723]{border-collapse:collapse;width:100%}.btn-clear[data-v-6e42e723]{margin:4px}@media screen and (max-width: 1399px){.tasktable[data-v-6e42e723]{max-height:300px}.tasktable td[data-v-6e42e723]{width:10.2857142857%}.tasktable td[data-v-6e42e723]:first-child{width:10%}.tasktable td[data-v-6e42e723]:nth-child(2){width:18%}.tasktable thead[data-v-6e42e723]{position:sticky;top:0;background-color:#7ea5b4;z-index:1}}@media screen and (min-width: 1400px){.tasktable td[data-v-6e42e723]{width:10.2857142857%}.tasktable td[data-v-6e42e723]:first-child{width:10%}.tasktable td[data-v-6e42e723]:nth-child(2){width:18%}.tasktable thead[data-v-6e42e723]{background-color:#7ea5b4}}.class1[data-v-6e42e723]{background-color:var(--06f96d6a);text-align:center;vertical-align:middle}.class2[data-v-6e42e723]{background-color:var(--292d8683);text-align:center;vertical-align:middle}.custom-tag[data-v-6e42e723]{width:100%;height:100%;justify-content:space-between}.today[data-v-6e42e723]{font-weight:400;font-size:12px}.activity[data-v-6e42e723]{align-items:center;gap:4px!important}.card-title[data-v-6e42e723]{transition:.3s}.disabled[data-v-6e42e723]{color:var(--6d545694)}.form-item[data-v-6e42e723]{margin:0 0 4px}p[data-v-748f667d]{margin:2px 0}h4[data-v-748f667d]{margin:12px 0 8px}table[data-v-748f667d]{width:100%}td[data-v-748f667d]:nth-child(1){width:80px}.ignore-blacklist[data-v-748f667d]{margin-bottom:10px;display:flex;gap:12px}.h4[data-v-748f667d]{font-size:16px;font-weight:500}.maa-shop[data-v-748f667d]{margin:8px 0}.item[data-v-748f667d]{font-weight:500;font-size:16px}p[data-v-707c6f48]{margin:0 0 8px}h4[data-v-707c6f48]{margin:12px 0 10px}.big-table[data-v-707c6f48]{margin-top:10px;max-width:320px}.big-table th[data-v-707c6f48]{text-align:center}.big-table tr[data-v-707c6f48]{width:70px}.big-table td[data-v-707c6f48]{height:24px}.big-table td[data-v-707c6f48]:nth-child(1){width:70px;text-align:center}.big-table td[data-v-707c6f48]:nth-child(2){width:420px}.final[data-v-707c6f48]{margin:16px 0 0}.item[data-v-e95953da]{font-weight:500;font-size:16px}.n-divider[data-v-e95953da]:not(.n-divider--vertical){margin:6px 0}.subtitle[data-v-31c5d919]{margin:12px 0 6px}.misc-container{margin-top:12px;display:flex;align-items:center;gap:12px}.email-title[data-v-7cbc22ce]{width:100%}.expand[data-v-7cbc22ce]{flex-grow:1}.email-table[data-v-7cbc22ce]{width:100%;margin-bottom:12px}.email-test[data-v-7cbc22ce]{display:flex;align-items:center;gap:16px}.email-mode[data-v-7cbc22ce]{margin-left:20px}.email-label[data-v-7cbc22ce]{width:68px}p[data-v-7cbc22ce]{margin:0 0 10px}.mt-16[data-v-7cbc22ce]{margin-top:16px}.threshold[data-v-7e026566]{display:flex;align-items:center;gap:14px;width:100%}.mower-basic[data-v-7e026566]{width:100%}.mower-basic td[data-v-7e026566]:nth-child(1){width:120px}.mower-basic td[data-v-7e026566]:nth-child(3){padding-left:6px;width:40px}.riic-conf[data-v-7e026566]{width:100%}.riic-conf td[data-v-7e026566]:nth-child(1){width:130px}.riic-conf td[data-v-7e026566]:nth-child(3){padding-left:12px;width:120px}.coord td[data-v-7e026566]{width:120px}.coord td[data-v-7e026566]:nth-child(1),.coord td[data-v-7e026566]:nth-child(3){width:30px}.coord td[data-v-7e026566]:nth-child(2){padding-right:30px}.coord-label[data-v-7e026566]{width:40px;padding-left:8px}p[data-v-7e026566]{margin:0 0 8px}h4[data-v-7e026566]{margin:12px 0 10px}.time-table[data-v-7e026566]{width:100%;margin-bottom:12px}.time-table td[data-v-7e026566]:nth-child(1){width:40px}.scale[data-v-7e026566]{width:60px;text-align:right}.scale-apply[data-v-7e026566]{margin-left:24px}.waiting-table th[data-v-7e026566],.waiting-table td[data-v-7e026566]{padding:4px;min-width:70px;width:100px}.waiting-table th[data-v-7e026566]:first-child,.waiting-table td[data-v-7e026566]:first-child{width:auto;padding:4px 8px}@media (max-width: 1399px){.grid-two{margin:0 0 -10px;width:100%;max-width:600px}.grid-left{display:grid;row-gap:10px;grid-template-columns:100%}.grid-right{display:grid;row-gap:10px;grid-template-columns:100%;margin-top:10px}}@media (min-width: 1400px){.grid-two{display:grid;grid-template-columns:minmax(0px,1fr) minmax(0px,1fr);align-items:flex-start;gap:5px}.grid-left,.grid-right{display:grid;gap:5px;grid-template-columns:100%;max-width:600px}}.n-divider:not(.n-divider--vertical){margin:14px 0 8px} +.sss-container[data-v-2dffb781]{display:flex;width:100%;gap:8px}.wrapper[data-v-2dffb781]{white-space:pre-wrap;-webkit-user-select:text;user-select:text}.title[data-v-2dffb781]{font-size:18px;font-weight:500;margin-bottom:6px}p[data-v-d479d5bf]{margin:0 0 10px}.misc-container[data-v-d479d5bf]{display:flex;align-items:center;gap:12px}.header[data-v-d479d5bf]{margin:12px 0}.tasktable[data-v-6e42e723]{margin-top:4px;width:100%;overflow:scroll}.tasktable table[data-v-6e42e723]{border-collapse:collapse;width:100%}.btn-clear[data-v-6e42e723]{margin:4px}@media screen and (max-width: 1399px){.tasktable[data-v-6e42e723]{max-height:300px}.tasktable td[data-v-6e42e723]{width:10.2857142857%}.tasktable td[data-v-6e42e723]:first-child{width:10%}.tasktable td[data-v-6e42e723]:nth-child(2){width:18%}.tasktable thead[data-v-6e42e723]{position:sticky;top:0;background-color:#7ea5b4;z-index:1}}@media screen and (min-width: 1400px){.tasktable td[data-v-6e42e723]{width:10.2857142857%}.tasktable td[data-v-6e42e723]:first-child{width:10%}.tasktable td[data-v-6e42e723]:nth-child(2){width:18%}.tasktable thead[data-v-6e42e723]{background-color:#7ea5b4}}.class1[data-v-6e42e723]{background-color:var(--06f96d6a);text-align:center;vertical-align:middle}.class2[data-v-6e42e723]{background-color:var(--292d8683);text-align:center;vertical-align:middle}.custom-tag[data-v-6e42e723]{width:100%;height:100%;justify-content:space-between}.today[data-v-6e42e723]{font-weight:400;font-size:12px}.activity[data-v-6e42e723]{align-items:center;gap:4px!important}.card-title[data-v-6e42e723]{transition:.3s}.disabled[data-v-6e42e723]{color:var(--6d545694)}.form-item[data-v-6e42e723]{margin:0 0 4px}p[data-v-748f667d]{margin:2px 0}h4[data-v-748f667d]{margin:12px 0 8px}table[data-v-748f667d]{width:100%}td[data-v-748f667d]:nth-child(1){width:80px}.ignore-blacklist[data-v-748f667d]{margin-bottom:10px;display:flex;gap:12px}.h4[data-v-748f667d]{font-size:16px;font-weight:500}.maa-shop[data-v-748f667d]{margin:8px 0}.item[data-v-748f667d]{font-weight:500;font-size:16px}p[data-v-707c6f48]{margin:0 0 8px}h4[data-v-707c6f48]{margin:12px 0 10px}.big-table[data-v-707c6f48]{margin-top:10px;max-width:320px}.big-table th[data-v-707c6f48]{text-align:center}.big-table tr[data-v-707c6f48]{width:70px}.big-table td[data-v-707c6f48]{height:24px}.big-table td[data-v-707c6f48]:nth-child(1){width:70px;text-align:center}.big-table td[data-v-707c6f48]:nth-child(2){width:420px}.final[data-v-707c6f48]{margin:16px 0 0}.item[data-v-e95953da]{font-weight:500;font-size:16px}.n-divider[data-v-e95953da]:not(.n-divider--vertical){margin:6px 0}.subtitle[data-v-31c5d919]{margin:12px 0 6px}.misc-container{margin-top:12px;display:flex;align-items:center;gap:12px}.email-title[data-v-7cbc22ce]{width:100%}.expand[data-v-7cbc22ce]{flex-grow:1}.email-table[data-v-7cbc22ce]{width:100%;margin-bottom:12px}.email-test[data-v-7cbc22ce]{display:flex;align-items:center;gap:16px}.email-mode[data-v-7cbc22ce]{margin-left:20px}.email-label[data-v-7cbc22ce]{width:68px}p[data-v-7cbc22ce]{margin:0 0 10px}.mt-16[data-v-7cbc22ce]{margin-top:16px}.threshold[data-v-32cd0fe1]{display:flex;align-items:center;gap:14px;width:100%}.mower-basic[data-v-32cd0fe1]{width:100%}.mower-basic td[data-v-32cd0fe1]:nth-child(1){width:120px}.mower-basic td[data-v-32cd0fe1]:nth-child(3){padding-left:6px;width:40px}.riic-conf[data-v-32cd0fe1]{width:100%}.riic-conf td[data-v-32cd0fe1]:nth-child(1){width:130px}.riic-conf td[data-v-32cd0fe1]:nth-child(3){padding-left:12px;width:120px}.coord td[data-v-32cd0fe1]{width:120px}.coord td[data-v-32cd0fe1]:nth-child(1),.coord td[data-v-32cd0fe1]:nth-child(3){width:30px}.coord td[data-v-32cd0fe1]:nth-child(2){padding-right:30px}.coord-label[data-v-32cd0fe1]{width:40px;padding-left:8px}p[data-v-32cd0fe1]{margin:0 0 8px}h4[data-v-32cd0fe1]{margin:12px 0 10px}.time-table[data-v-32cd0fe1]{width:100%;margin-bottom:12px}.time-table td[data-v-32cd0fe1]:nth-child(1){width:40px}.scale[data-v-32cd0fe1]{width:60px;text-align:right}.scale-apply[data-v-32cd0fe1]{margin-left:24px}.waiting-table th[data-v-32cd0fe1],.waiting-table td[data-v-32cd0fe1]{padding:4px;min-width:70px;width:100px}.waiting-table th[data-v-32cd0fe1]:first-child,.waiting-table td[data-v-32cd0fe1]:first-child{width:auto;padding:4px 8px}@media (max-width: 1399px){.grid-two{margin:0 0 -10px;width:100%;max-width:600px}.grid-left{display:grid;row-gap:10px;grid-template-columns:100%}.grid-right{display:grid;row-gap:10px;grid-template-columns:100%;margin-top:10px}}@media (min-width: 1400px){.grid-two{display:grid;grid-template-columns:minmax(0px,1fr) minmax(0px,1fr);align-items:flex-start;gap:5px}.grid-left,.grid-right{display:grid;gap:5px;grid-template-columns:100%;max-width:600px}}.n-divider:not(.n-divider--vertical){margin:14px 0 8px} diff --git a/ui/dist/assets/Settings.js b/ui/dist/assets/Settings.js index 2d31b73..b159b67 100644 --- a/ui/dist/assets/Settings.js +++ b/ui/dist/assets/Settings.js @@ -163,4 +163,4 @@ import{x as et,y as $t,z as Tt,C as zt,D as Pt,E as At,a as te,s as Z,v as ut,j color: var(--n-code-text-color); background-color: var(--n-code-color); border: var(--n-code-border); - `)]),Pl=Object.assign(Object.assign({},Ve.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),Al=ve({name:"Text",props:Pl,setup(p){const{mergedClsPrefixRef:y,inlineThemeDisabled:n}=dt(p),u=Ve("Typography","-text",zl,Pt,p,y),r=L(()=>{const{depth:i,type:v}=p,h=v==="default"?i===void 0?"textColor":`textColor${i}Depth`:Ce("textColor",v),{common:{fontWeightStrong:f,fontFamilyMono:P,cubicBezierEaseInOut:c},self:{codeTextColor:C,codeBorderRadius:w,codeColor:m,codeBorder:x,[h]:b}}=u.value;return{"--n-bezier":c,"--n-text-color":b,"--n-font-weight-strong":f,"--n-font-famliy-mono":P,"--n-code-border-radius":w,"--n-code-text-color":C,"--n-code-color":m,"--n-code-border":x}}),a=n?Qt("text",L(()=>`${p.type[0]}${p.depth||""}`),r,p):void 0;return{mergedClsPrefix:y,compitableTag:At(p,["as","tag"]),cssVars:n?void 0:r,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var p,y,n;const{mergedClsPrefix:u}=this;(p=this.onRender)===null||p===void 0||p.call(this);const r=[`${u}-text`,this.themeClass,{[`${u}-text--code`]:this.code,[`${u}-text--delete`]:this.delete,[`${u}-text--strong`]:this.strong,[`${u}-text--italic`]:this.italic,[`${u}-text--underline`]:this.underline}],a=(n=(y=this.$slots).default)===null||n===void 0?void 0:n.call(y);return this.code?T("code",{class:r,style:this.cssVars},this.delete?T("del",null,a):a):this.delete?T("del",{class:r,style:this.cssVars},a):T(this.compitableTag||"span",{class:r,style:this.cssVars},a)}}),Ol={__name:"SecretFront",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=[{label:"1A→2A→3A→结局A",value:"结局A"},{label:"1A→2A→3A→结局B",value:"结局B"},{label:"1A→2A→3B→结局C",value:"结局C"},{label:"1A→2B→3C→结局D",value:"结局D"},{label:"1A→2B→3C→结局E",value:"结局E"}];return(a,i)=>{const v=xe,h=re,f=ge,P=ie;return g(),O(P,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(h,{label:"超时时长"},{default:l(()=>[e(v,{value:t(u).reclamation_algorithm.timeout,"onUpdate:value":i[0]||(i[0]=c=>t(u).reclamation_algorithm.timeout=c)},{suffix:l(()=>i[2]||(i[2]=[d("秒")])),_:1},8,["value"])]),_:1}),e(h,{label:"选择路线"},{default:l(()=>[e(f,{value:t(u).secret_front.target,"onUpdate:value":i[1]||(i[1]=c=>t(u).secret_front.target=c),options:r},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])}}},Bl={__name:"ReclamationAlgorithm",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n);return(r,a)=>{const i=xe,v=re,h=ie;return g(),O(h,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(v,{label:"超时时长"},{default:l(()=>[e(i,{value:t(u).reclamation_algorithm.timeout,"onUpdate:value":a[0]||(a[0]=f=>t(u).reclamation_algorithm.timeout=f)},{suffix:l(()=>a[1]||(a[1]=[d("秒")])),_:1},8,["value"])]),_:1})]),_:1},8,["label-placement"])}}},Il={class:"sss-container"},Fl={key:0,class:"wrapper"},Ml={class:"title"},Dl={key:1},Vl={__name:"Sss",setup(p){const y=G("mobile"),n=G("axios"),u="/sss-copilot",r=j({exists:!1});pt(async()=>{const{data:x}=await n.get(u);r.value=x});function a({event:x}){r.value=JSON.parse(x.target.response)}const i=G("token"),v=j(!1),h=j(""),f=j(!1),P=j(null);function c(){h.value="",v.value=!0,Xt(()=>P.value.focus())}async function C(){f.value=!0;const x=h.value.replace("maa://",""),{data:b}=await n.get(`https://prts.maa.plus/copilot/get/${x}`,{transformRequest:[(R,S)=>(delete S.token,JSON.stringify(R))]}),F=new FormData;F.append("copilot",new Blob([b.data.content],{type:"application/json"}));const D=await n.post(u,F);r.value=D.data,v.value=!1,f.value=!1}const w=te(),{conf:m}=Z(w);return(x,b)=>{const F=mt,D=ze,R=Te,S=Pe,A=re,Y=ue,N=Ae,U=ce,k=al,V=dl,M=Ye,H=ie;return g(),O(R,{vertical:""},{default:l(()=>[e(F,{title:"请检查作业并修正其中的错误!",type:"warning"}),e(H,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(A,{label:"难度选择"},{default:l(()=>[e(S,{value:t(m).sss.mode,"onUpdate:value":b[0]||(b[0]=z=>t(m).sss.mode=z)},{default:l(()=>[e(R,null,{default:l(()=>[e(D,{value:"normal"},{default:l(()=>b[5]||(b[5]=[d("标准补给模式")])),_:1}),e(D,{value:"ex"},{default:l(()=>b[6]||(b[6]=[d("应急补给模式")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(A,{"show-label":!1},{default:l(()=>[e(Y,{checked:t(m).sss.choose_agent,"onUpdate:checked":b[1]||(b[1]=z=>t(m).sss.choose_agent=z)},{default:l(()=>b[7]||(b[7]=[d(" 自动编队(缺人时自动借助战) ")])),_:1},8,["checked"])]),_:1}),e(A,{"show-label":!1},{default:l(()=>[e(Y,{checked:t(m).sss.finish_while_full,"onUpdate:checked":b[2]||(b[2]=z=>t(m).sss.finish_while_full=z)},{default:l(()=>b[8]||(b[8]=[d("模组刷满时直接结束")])),_:1},8,["checked"])]),_:1}),e(A,{label:"导入作业"},{default:l(()=>[s("div",Il,[t(v)?(g(),B(X,{key:0},[e(N,{ref_key:"code",ref:P,value:t(h),"onUpdate:value":b[3]||(b[3]=z=>_t(h)?h.value=z:null),type:"text",placeholder:"maa://114514",disabled:t(f)},null,8,["value","disabled"]),e(U,{onClick:C,loading:t(f),disabled:t(f)},{default:l(()=>b[9]||(b[9]=[d(" 下载 ")])),_:1},8,["loading","disabled"]),e(U,{onClick:b[4]||(b[4]=z=>v.value=!1)},{default:l(()=>b[10]||(b[10]=[d("取消")])),_:1})],64)):(g(),B(X,{key:1},[e(U,{style:{"flex-grow":"1"},onClick:c},{default:l(()=>b[11]||(b[11]=[d("输入“神秘代码”")])),_:1}),e(k,{style:{width:"auto","flex-grow":"1"},"trigger-style":"width: 100%",action:u,headers:{token:t(i)},"show-file-list":!1,name:"copilot",onFinish:a},{default:l(()=>[e(U,{style:{width:"100%"}},{default:l(()=>b[12]||(b[12]=[d("选择作业文件")])),_:1})]),_:1},8,["headers"])],64))])]),_:1}),e(A,{label:"作业信息"},{default:l(()=>[e(R,{vertical:""},{default:l(()=>[t(r).exists?(g(),B("div",Fl,[s("div",Ml,J(t(r).title),1),e(V,{style:{"max-height":"240px"},"content-style":"padding-right: 12px",trigger:"none"},{default:l(()=>[d(J(t(r).details),1)]),_:1})])):(g(),B("div",Dl,"未选择作业")),(g(!0),B(X,null,ye(t(r).operators,z=>(g(),O(R,{align:"center"},{default:l(()=>[e(M,{src:`avatar/${z.name}.webp`},null,8,["src"]),s("div",null,J(z.name)+"("+J(z.skill)+"技能)",1)]),_:2},1024))),256))]),_:1})]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},Ll=be(Vl,[["__scopeId","data-v-2dffb781"]]);async function Nl(){return(await ut.get("/dialog/file")).data}async function bt(){return(await ut.get("/dialog/folder")).data}const El={class:"misc-container"},jl={__name:"MaaBasic",setup(p){const y=G("axios"),n=G("mobile"),u=te(),{conf:r}=Z(u);async function a(){const c=await bt();c&&(r.value.maa_path=c)}const i=j("");async function v(){i.value="正在测试……";const c=await y.get("/check-maa");i.value=c.data}const h=j([]);async function f(){const c=await y.get("/maa-conn-preset");r.value.maa_conn_presets=c.data.map(C=>({label:C,value:C}))}const P=["maatouch","minitouch","adb"].map(c=>({label:c,value:c}));return(c,C)=>{const w=Ue,m=Ze,x=Ae,b=ce,F=re,D=ge,R=ie;return g(),B(X,null,[e(w),e(m,{class:"header"},{default:l(()=>C[3]||(C[3]=[d("Maa设置")])),_:1}),e(R,{"label-placement":t(n)?"top":"left","show-feedback":!1,"label-width":"96","label-align":"left"},{default:l(()=>[e(F,{label:"Maa目录"},{default:l(()=>[e(x,{type:"textarea",autosize:!0,value:t(r).maa_path,"onUpdate:value":C[0]||(C[0]=S=>t(r).maa_path=S)},null,8,["value"]),e(b,{onClick:a,class:"dialog-btn"},{default:l(()=>C[4]||(C[4]=[d("...")])),_:1})]),_:1}),e(F,{label:"连接配置"},{default:l(()=>[e(D,{options:t(h),value:t(r).maa_conn_preset,"onUpdate:value":C[1]||(C[1]=S=>t(r).maa_conn_preset=S)},null,8,["options","value"]),e(b,{onClick:f,class:"dialog-btn"},{default:l(()=>C[5]||(C[5]=[d("刷新")])),_:1})]),_:1}),e(F,{label:"触控模式"},{default:l(()=>[e(D,{value:t(r).maa_touch_option,"onUpdate:value":C[2]||(C[2]=S=>t(r).maa_touch_option=S),options:t(P)},null,8,["value","options"])]),_:1})]),_:1},8,["label-placement"]),e(w),s("div",El,[e(b,{onClick:v},{default:l(()=>C[6]||(C[6]=[d("测试设置")])),_:1}),s("div",null,J(t(i)),1)]),e(w,{style:{margin:"12px 0 16px"}})],64)}}},ql=be(jl,[["__scopeId","data-v-d479d5bf"]]),Hl={__name:"MaaRogue",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=Qe(),{operators:a}=Z(r),i=[{label:"傀影与猩红孤钻",value:"Phantom"},{label:"水月与深蓝之树",value:"Mizuki"},{label:"探索者的银凇止境",value:"Sami"},{label:"萨卡兹的无终奇语",value:"Sarkaz"}],v={Phantom:["研究","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Mizuki:["心胜于物","物尽其用","以人为本","研究","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Sami:["永恒狩猎","生活至上","科学主义","特训","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Sarkaz:["因地制宜","魂灵护送","博闻广记","蓝图测绘","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"]};for(const C in v)v[C]=v[C].map(w=>({label:w+"分队",value:w+"分队"}));const h=[{label:"先手必胜(先锋、狙击、特种)",value:"先手必胜"},{label:"稳扎稳打(重装、术师、狙击)",value:"稳扎稳打"},{label:"取长补短(近卫、辅助、医疗)",value:"取长补短"},{label:"随心所欲(随机)",value:"随心所欲"}],f=[{label:"刷蜡烛,尽可能稳定地打更多层数",value:0},{label:"刷源石锭,第一层投资完就退出",value:1},{label:"【即将弃用】兼顾",value:2},{label:"刷开局,到达第三层后直接退出",value:4},{label:"刷坍缩范式",value:5}],P=["去量化","去量深化","实质性坍缩","蔓延性坍缩","非线性移动","非线性行动","情绪实体","恐怖实体","泛社会悖论","泛文明悖论","气压异常","气压失序","触发性损伤","触发性危殆","趋同性消耗","趋同性缺失","目空一些","睁眼瞎","图像损坏","一抹黑"],c=[];for(const C of P)c.push({label:C,value:C});return(C,w)=>{const m=ql,x=ge,b=re,F=ue,D=ie;return g(),B(X,null,[e(m),e(D,{"label-placement":t(y)?"top":"left","show-feedback":!1,class:"conf.rogue"},{default:l(()=>[e(b,{label:"主题"},{default:l(()=>[e(x,{value:t(u).maa_rg_theme,"onUpdate:value":w[0]||(w[0]=R=>t(u).maa_rg_theme=R),options:i},null,8,["value"])]),_:1}),e(b,{label:"分队"},{default:l(()=>[e(x,{value:t(u).rogue.squad,"onUpdate:value":w[1]||(w[1]=R=>t(u).rogue.squad=R),options:v[t(u).maa_rg_theme]},null,8,["value","options"])]),_:1}),e(b,{label:"职业"},{default:l(()=>[e(x,{value:t(u).rogue.roles,"onUpdate:value":w[2]||(w[2]=R=>t(u).rogue.roles=R),options:h},null,8,["value"])]),_:1}),e(b,{label:"干员"},{default:l(()=>[e(x,{filterable:"",options:t(a),value:t(u).rogue.core_char,"onUpdate:value":w[3]||(w[3]=R=>t(u).rogue.core_char=R),filter:(R,S)=>t(Xe)(S.label,R),"render-label":t(De)},null,8,["options","value","filter","render-label"])]),_:1}),e(b,{"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.use_support,"onUpdate:checked":w[4]||(w[4]=R=>t(u).rogue.use_support=R)},{default:l(()=>w[9]||(w[9]=[d("开局干员使用助战")])),_:1},8,["checked"])]),_:1}),t(u).rogue.use_support?(g(),O(b,{key:0,"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.use_nonfriend_support,"onUpdate:checked":w[5]||(w[5]=R=>t(u).rogue.use_nonfriend_support=R)},{default:l(()=>w[10]||(w[10]=[d("开局干员使用非好友助战")])),_:1},8,["checked"])]),_:1})):E("",!0),e(b,{label:"策略"},{default:l(()=>[e(x,{options:f,value:t(u).rogue.mode,"onUpdate:value":w[6]||(w[6]=R=>t(u).rogue.mode=R)},null,8,["value"])]),_:1}),e(b,{"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.refresh_trader_with_dice,"onUpdate:checked":w[7]||(w[7]=R=>t(u).rogue.refresh_trader_with_dice=R)},{default:l(()=>w[11]||(w[11]=[d("刷新商店(指路鳞)")])),_:1},8,["checked"])]),_:1}),e(b,{label:"坍缩范式"},{default:l(()=>[e(x,{multiple:"",options:c,value:t(u).rogue.expected_collapsal_paradigms,"onUpdate:value":w[8]||(w[8]=R=>t(u).rogue.expected_collapsal_paradigms=R)},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])],64)}}},Gl={key:0},Kl={__name:"LongTasks",setup(p){const y=te(),{conf:n}=Z(y),u=G("mobile"),r=[{label:"集成战略 (Maa)",value:"rogue"},{label:"保全派驻",value:"sss"},{label:"生息演算",value:"ra"},{label:"隐秘战线",value:"sf"}];return(a,i)=>{const v=ue,h=_e,f=ge,P=tl,c=wl,C=vl,w=ie,m=Hl,x=Ll,b=Bl,F=Ol,D=pe;return g(),O(D,null,{header:l(()=>[e(v,{checked:t(n).maa_rg_enable,"onUpdate:checked":i[0]||(i[0]=R=>t(n).maa_rg_enable=R),disabled:!t(n).maa_enable},{default:l(()=>i[4]||(i[4]=[s("div",{class:"card-title"},"大型任务",-1)])),_:1},8,["checked","disabled"]),e(h,null,{default:l(()=>[t(n).maa_enable?(g(),B(X,{key:1},[i[5]||(i[5]=s("div",null,"开始与结束时间设置为相同值时全天开启。",-1)),i[6]||(i[6]=s("div",null,"若结束时间早于开始时间,则表示开启至次日。例如:",-1)),i[7]||(i[7]=s("ul",null,[s("li",null,"23:00开始、8:00结束:表示从23:00至次日8:00执行大型任务;"),s("li",null,"10:00开始、14:00结束:表示从10:00至当日14:00执行大型任务。")],-1))],64)):(g(),B("div",Gl,"需开启日常任务"))]),_:1}),e(f,{value:t(n).maa_long_task_type,"onUpdate:value":i[1]||(i[1]=R=>t(n).maa_long_task_type=R),options:r},null,8,["value"])]),default:l(()=>[e(w,{"label-placement":t(u)?"top":"left","show-feedback":!1,style:{"margin-bottom":"12px"}},{default:l(()=>[e(C,{cols:"2"},{default:l(()=>[e(c,{label:"开始时间"},{default:l(()=>[e(P,{format:"H:mm","formatted-value":t(n).maa_rg_sleep_max,"onUpdate:formattedValue":i[2]||(i[2]=R=>t(n).maa_rg_sleep_max=R)},null,8,["formatted-value"])]),_:1}),e(c,{label:"停止时间"},{default:l(()=>[e(P,{format:"H:mm","formatted-value":t(n).maa_rg_sleep_min,"onUpdate:formattedValue":i[3]||(i[3]=R=>t(n).maa_rg_sleep_min=R)},null,8,["formatted-value"])]),_:1})]),_:1})]),_:1},8,["label-placement"]),t(n).maa_long_task_type=="rogue"?(g(),O(m,{key:0})):t(n).maa_long_task_type=="sss"?(g(),O(x,{key:1})):t(n).maa_long_task_type=="ra"?(g(),O(b,{key:2})):t(n).maa_long_task_type=="sf"?(g(),O(F,{key:3})):E("",!0)]),_:1})}}};var gt={};Object.defineProperty(gt,"__esModule",{value:!0});const $e=Jt,Wl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Yl=(0,$e.createElementVNode)("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[(0,$e.createElementVNode)("path",{d:"M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4"}),(0,$e.createElementVNode)("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})],-1),Ql=[Yl];var Xl=gt.default=(0,$e.defineComponent)({name:"Refresh",render:function(y,n){return(0,$e.openBlock)(),(0,$e.createElementBlock)("svg",Wl,Ql)}});const Jl={key:0},Zl={key:1},en={class:"tasktable"},tn={key:0,class:"today"},ln={key:1},nn={__name:"WeeklyPlan",setup(p){Zt(U=>({"06f96d6a":t(x),"292d8683":t(b),"6d545694":t(N)}));const y=te(),{conf:n}=Z(y);function u(){const U=new Date().getDay();return U==0?6:U-1}const r=["一","二","三","四","五","六","日"],a=["","Annihilation"],i=["1-7","LS-6","CE-6","AP-5","SK-5","CA-5","PR-A-2","PR-A-1","PR-B-2","PR-B-1","PR-C-2","PR-C-1","PR-D-2","PR-D-1"],v={CE:[1,3,5,6],AP:[0,3,5,6],SK:[0,2,4,5],CA:[1,2,4,6],"PR-A":[0,3,4,6],"PR-B":[0,1,4,5],"PR-C":[2,3,5,6],"PR-D":[1,2,5,6]};function h(U){switch(U){case"":return"上次作战";case"Annihilation":return"当期剿灭";case"LS-6":return"经验书";case"CE-6":return"龙门币";case"AP-5":return"红票";case"SK-5":return"碳本";case"CA-5":return"技能书";case"PR-A-1":return"医疗重装1";case"PR-A-2":return"医疗重装2";case"PR-B-1":return"狙击术师1";case"PR-B-2":return"狙击术师2";case"PR-C-1":return"先锋辅助1";case"PR-C-2":return"先锋辅助2";case"PR-D-1":return"近卫特种1";case"PR-D-2":return"近卫特种2";default:return U}}const f=L(()=>{const U=[];for(const k of a){const V=[];for(let M=0;M<7;++M)V.push({available:!0,enable:n.value.weekly_plan[M].general.includes(k)});U.push({stage:k,week:V})}for(const k of n.value.custom_stages){const V=[];for(let M=0;M<7;++M)V.push({available:!0,enable:n.value.weekly_plan[M].custom.includes(k)});U.push({stage:k,week:V})}for(const k of i){let V=[0,1,2,3,4,5,6];for(const[H,z]of Object.entries(v))if(k.includes(H)){V=z;break}const M=[];for(let H=0;H<7;++H)M.push({available:V.includes(H),enable:n.value.weekly_plan[H].general.includes(k)});U.push({stage:k,week:M})}return U});function P(U){const k=[];for(let V=0;V<7;++V){const M={general:[],custom:[]};for(const{stage:H,week:z}of U)z[V].enable&&H!=null&&(n.value.custom_stages.includes(H)?M.custom.push(H):M.general.push(H));k.push(M)}n.value.weekly_plan=k}function c(U){const k=tt(f.value);let V=!1;for(const M of k[U].week)M.enable!=M.available&&(V=!0,M.enable=M.available);if(!V)for(const M of k[U].week)M.enable=!1;P(k)}function C(U,k){const V=tt(f.value);V[U].week[k].enable=!V[U].week[k].enable,P(V)}function w(U){return U=U.toUpperCase(),U==" "||U=="上次作战"?{label:"上次作战",value:""}:U=="当期剿灭"?{label:"当期剿灭",value:"Annihilation"}:U.endsWith("磨难")||U.endsWith("标准")?(U=U.slice(0,-2),{label:U,value:U}):{label:U,value:U}}const m=G("mobile"),x=L(()=>n.value.theme=="light"?"hsl(33, 30%, 91%)":"hsl(33, 15%, 50%)"),b=L(()=>n.value.theme=="light"?"hsl(200, 90%, 65%)":"hsl(200, 80%, 30%)"),F="/activity",D=j([]),R=G("axios");async function S(){const{data:U}=await R.get(F);D.value=U.reverse()}pt(()=>{S()});function A(U,k){k.dataTransfer.setData("text",U)}function Y(U,k){k.preventDefault();const V=k.dataTransfer.getData("text");n.value.custom_stages[U-2]=V}const N=L(()=>n.value.theme=="light"?"rgba(194, 194, 194, 1)":"rgba(255, 255, 255, 0.38)");return(U,k)=>{const V=_e,M=ue,H=re,z=Te,q=ie,le=vt,de=el,I=ce,o=ge,ne=pe;return g(),O(ne,null,{header:l(()=>[s("div",{class:nt(["card-title",{disabled:!t(n).maa_enable}])},"刷理智周计划",2),e(V,null,{default:l(()=>[t(n).maa_enable?(g(),B(X,{key:1},[k[5]||(k[5]=s("div",null,"支持所有主线关卡;",-1)),k[6]||(k[6]=s("div",null,"含磨难的主线关卡仅需填写关卡名,会自动选择难度。",-1))],64)):(g(),B("div",Jl,"需开启日常任务"))]),_:1})]),default:l(()=>[e(q,{"label-placement":t(m)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left",style:{"margin-bottom":"16px"}},{default:l(()=>[e(H,{class:"form-item","show-label":!1},{default:l(()=>[e(M,{checked:t(n).use_all_medicine,"onUpdate:checked":k[0]||(k[0]=$=>t(n).use_all_medicine=$)},{default:l(()=>k[7]||(k[7]=[d("自动使用全部理智药")])),_:1},8,["checked"])]),_:1}),e(H,{class:"form-item","show-label":!1},{default:l(()=>[e(z,null,{default:l(()=>[e(M,{checked:t(n).maa_expiring_medicine,"onUpdate:checked":k[1]||(k[1]=$=>t(n).maa_expiring_medicine=$),disabled:t(n).use_all_medicine},{default:l(()=>k[8]||(k[8]=[d(" 自动使用将要过期(约3天)的理智药 ")])),_:1},8,["checked","disabled"]),e(M,{checked:t(n).exipring_medicine_on_weekend,"onUpdate:checked":k[2]||(k[2]=$=>t(n).exipring_medicine_on_weekend=$),disabled:t(n).use_all_medicine||!t(n).maa_expiring_medicine},{default:l(()=>k[9]||(k[9]=[d(" 仅在周末使用 ")])),_:1},8,["checked","disabled"])]),_:1})]),_:1})]),_:1},8,["label-placement"]),e(z,{class:"activity"},{default:l(()=>[t(D).length>0?(g(!0),B(X,{key:0},ye(t(D),$=>(g(),O(le,{draggable:"true",onDragstart:K=>A($,K)},{default:l(()=>[d(J($),1)]),_:2},1032,["onDragstart"]))),256)):(g(),B("div",Zl,"当前暂无活动开放")),e(I,{text:"",type:"primary",onClick:S},{icon:l(()=>[e(de,null,{default:l(()=>[e(t(Xl))]),_:1})]),_:1})]),_:1}),s("div",en,[s("table",null,[s("thead",null,[s("tr",null,[k[10]||(k[10]=s("th",null,"全选",-1)),k[11]||(k[11]=s("th",null,"关卡",-1)),(g(),B(X,null,ye(7,$=>s("th",{key:$},[d(J(r[$-1])+" ",1),u()==$-1?(g(),B("div",tn,"今天")):E("",!0)])),64))])]),s("tbody",null,[(g(!0),B(X,null,ye(t(f),({stage:$,week:K},Q)=>(g(),B("tr",{key:Q},[s("td",null,[e(I,{quaternary:"",class:"class1",onClick:W=>c(Q),style:{width:"100%",height:"100%"}},null,8,["onClick"])]),s("td",null,[2<=Q&&Q<5?(g(),B(X,{key:0},[$==null?(g(),O(o,{key:0,placeholder:"关卡",value:t(n).custom_stages[Q-2],"onUpdate:value":[W=>t(n).custom_stages[Q-2]=W,W=>{t(n).custom_stages[Q-2]=W[0]}],filterable:"",multiple:"",tag:"",show:!1,"show-arrow":!1,"on-create":w,onDragover:k[3]||(k[3]=ot(()=>{},["prevent"])),onDrop:W=>Y(Q,W)},null,8,["value","onUpdate:value","onDrop"])):(g(),O(le,{key:1,closable:"",class:"custom-tag",onClose:()=>{t(n).custom_stages[Q-2]=null,P(t(f))},onDragover:k[4]||(k[4]=ot(()=>{},["prevent"])),onDrop:W=>Y(Q,W)},{default:l(()=>[d(J($),1)]),_:2},1032,["onClose","onDrop"]))],64)):(g(),B("span",ln,J(h($)),1))]),(g(!0),B(X,null,ye(K,(W,ee)=>(g(),B("td",{class:nt({class2:W.enable,class1:W.available})},[W.available?(g(),O(I,{key:0,quaternary:"",style:{width:"100%",height:"100%"},onClick:ke=>C(Q,ee)},{default:l(()=>[s("span",null,[W.enable?(g(),B(X,{key:0},[d("打")],64)):E("",!0)])]),_:2},1032,["onClick"])):E("",!0)],2))),256))]))),128))])])])]),_:1})}}},on=be(nn,[["__scopeId","data-v-6e42e723"]]),an={key:0},sn={key:1},rn={__name:"Clue",setup(p){const y=te(),{conf:n,shop_list:u}=Z(y),r=Qe(),{operators:a}=Z(r),i=G("mobile");function v({option:w,handleClose:m}){return T(vt,{type:w.type,closable:!0,onMousedown:x=>{x.preventDefault()},onClose:x=>{x.stopPropagation(),m()}},{default:()=>w.label,avatar:()=>T(Ye,{src:`/shop/${w.label}.png`})})}function h(w){return T("div",{style:{display:"flex","align-items":"center",gap:"6px",padding:"2px 0"}},[T(Ye,{src:`/shop/${w.label}.png`}),w.label])}const f=[{label:"向上",value:"Up"},{label:"向下",value:"Down"},{label:"向左",value:"Left"},{label:"向右",value:"Right"}],P=[{label:"第一编队",value:1},{label:"第二编队",value:2},{label:"第三编队",value:3},{label:"第四编队",value:4}],c=[{label:"一技能",value:1},{label:"二技能",value:2},{label:"三技能",value:3}],C=j(!1);return(w,m)=>{const x=ue,b=Ue,F=ce,D=_e,R=Ze,S=ze,A=Je,Y=Pe,N=re,U=ge,k=xe,V=ct,M=ie,H=pe;return g(),O(H,null,{header:l(()=>[e(x,{checked:t(n).enable_party,"onUpdate:checked":m[0]||(m[0]=z=>t(n).enable_party=z)},{default:l(()=>m[14]||(m[14]=[s("div",{class:"card-title"},"线索收集与信用",-1)])),_:1},8,["checked"])]),default:l(()=>[e(x,{checked:t(n).leifeng_mode,"onUpdate:checked":m[1]||(m[1]=z=>t(n).leifeng_mode=z)},{default:l(()=>m[15]||(m[15]=[d("赠送多余的线索")])),_:1},8,["checked"]),e(b),e(R,null,{default:l(()=>[m[19]||(m[19]=d(" 信用商店购物 ")),e(D,null,{default:l(()=>[m[17]||(m[17]=s("span",null,"性价比参考:",-1)),e(F,{text:"",tag:"a",href:"https://github.com/Bidgecfah/Rhodes-Island-Bureau-of-Price",target:"_blank",type:"primary"},{default:l(()=>m[16]||(m[16]=[d(" 罗德岛物价局 ")])),_:1}),m[18]||(m[18]=s("p",null,"注意:跑单时赤金与作战记录均大幅升值",-1))]),_:1})]),_:1}),e(M,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(N,{label:"信用溢出"},{default:l(()=>[e(Y,{value:t(n).maa_mall_ignore_blacklist_when_full,"onUpdate:value":m[2]||(m[2]=z=>t(n).maa_mall_ignore_blacklist_when_full=z)},{default:l(()=>[e(A,null,{default:l(()=>[e(S,{value:!1},{default:l(()=>m[20]||(m[20]=[d("停止购买")])),_:1}),e(S,{value:!0},{default:l(()=>m[21]||(m[21]=[d("无视黑名单继续购买,直至不再溢出")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(N,{label:"优先购买"},{default:l(()=>[e(Y,{value:t(n).maa_mall_ignore_blacklist_when_full,"onUpdate:value":m[4]||(m[4]=z=>t(n).maa_mall_ignore_blacklist_when_full=z)},{default:l(()=>[e(U,{multiple:"",filterable:"",tag:"",options:t(u),value:t(n).maa_mall_buy,"onUpdate:value":m[3]||(m[3]=z=>t(n).maa_mall_buy=z),"render-tag":v,"render-label":h},null,8,["options","value"])]),_:1},8,["value"])]),_:1}),e(N,{label:"黑名单"},{default:l(()=>[e(U,{multiple:"",filterable:"",tag:"",options:t(u),value:t(n).maa_mall_blacklist,"onUpdate:value":m[5]||(m[5]=z=>t(n).maa_mall_blacklist=z),"render-tag":v,"render-label":h},null,8,["options","value"])]),_:1}),e(b),e(M,{"label-placement":t(i)?"top":"left","show-feedback":!1,class:"rogue"},{default:l(()=>[e(N,{"show-label":!1},{default:l(()=>[e(x,{checked:t(n).maa_credit_fight,"onUpdate:checked":m[6]||(m[6]=z=>t(n).maa_credit_fight=z),disabled:!t(n).maa_enable},{default:l(()=>m[22]||(m[22]=[s("div",{class:"item"},"信用作战",-1)])),_:1},8,["checked","disabled"]),e(D,null,{default:l(()=>[t(n).maa_enable?(g(),B("div",sn,"借助战打OF-1")):(g(),B("div",an,"需开启日常任务"))]),_:1})]),_:1}),e(N,{label:"编队"},{default:l(()=>[e(U,{options:P,value:t(n).credit_fight.squad,"onUpdate:value":m[7]||(m[7]=z=>t(n).credit_fight.squad=z)},null,8,["value"])]),_:1}),e(N,{label:"干员"},{default:l(()=>[e(U,{style:{flex:"3","margin-right":"8px"},filterable:"",options:t(a),value:t(n).credit_fight.operator,"onUpdate:value":m[8]||(m[8]=z=>t(n).credit_fight.operator=z),filter:(z,q)=>t(Xe)(q.label,z),"render-label":t(De)},null,8,["options","value","filter","render-label"]),e(U,{style:{flex:"2"},options:c,value:t(n).credit_fight.skill,"onUpdate:value":m[9]||(m[9]=z=>t(n).credit_fight.skill=z)},null,8,["value"])]),_:1}),e(N,{label:"部署"},{default:l(()=>[m[23]||(m[23]=s("div",{style:{width:"40px","text-align":"right"}},"X",-1)),e(k,{style:{margin:"0 8px"},value:t(n).credit_fight.x,"onUpdate:value":m[10]||(m[10]=z=>t(n).credit_fight.x=z),"show-button":!1},null,8,["value"]),m[24]||(m[24]=s("div",{style:{width:"40px","text-align":"right"}},"Y",-1)),e(k,{style:{margin:"0 8px"},value:t(n).credit_fight.y,"onUpdate:value":m[11]||(m[11]=z=>t(n).credit_fight.y=z),"show-button":!1},null,8,["value"]),e(U,{style:{width:"250px","margin-right":"8px"},options:f,value:t(n).credit_fight.direction,"onUpdate:value":m[12]||(m[12]=z=>t(n).credit_fight.direction=z)},null,8,["value"]),e(F,{onClick:m[13]||(m[13]=z=>C.value=!t(C))},{default:l(()=>[d(J(t(C)?"隐藏":"显示")+"OF-1地图",1)]),_:1})]),_:1}),t(C)?(g(),O(N,{key:0,"show-label":!1},{default:l(()=>[e(V,{src:"/map-OF-1.webp",width:"100%"})]),_:1})):E("",!0)]),_:1},8,["label-placement"])]),_:1},8,["label-placement"])]),_:1})}}},un=be(rn,[["__scopeId","data-v-748f667d"]]),dn={style:{display:"flex","align-items":"center",width:"100%"}},pn={style:{"margin-right":"24px"}},_n={__name:"Depotswitch",setup(p){const y=te(),{conf:n}=Z(y);return(u,r)=>{const a=ue,i=_e,v=ze,h=Te,f=Pe,P=pe;return g(),O(P,null,{header:l(()=>[e(a,{checked:t(n).maa_depot_enable,"onUpdate:checked":r[0]||(r[0]=c=>t(n).maa_depot_enable=c)},{default:l(()=>r[1]||(r[1]=[s("div",{class:"card-title"},"仓库物品混合读取",-1)])),_:1},8,["checked"]),e(i,null,{default:l(()=>r[2]||(r[2]=[d("请调整森空岛账号顺序,仅读取"),s("strong",null,"第一个",-1),d("账户"),s("strong",null,"指定服务器",-1),d("的材料")])),_:1})]),default:l(()=>[(g(!0),B(X,null,ye(t(n).skland_info,c=>(g(),B("div",{key:c.account},[s("div",dn,[s("div",pn,"森空岛账号:"+J(c.account),1),e(f,{value:c.cultivate_select,"onUpdate:value":C=>c.cultivate_select=C},{default:l(()=>[e(h,null,{default:l(()=>[e(v,{value:!0},{default:l(()=>r[3]||(r[3]=[d("官服")])),_:1}),e(v,{value:!1},{default:l(()=>r[4]||(r[4]=[d("B服")])),_:1})]),_:1})]),_:2},1032,["value","onUpdate:value"])])]))),128))]),_:1})}}},fn={__name:"Recruit",setup(p){const y=te(),{conf:n}=Z(y),u=G("mobile");return(r,a)=>{const i=ue,v=_e,h=xe,f=re,P=ze,c=Je,C=Pe,w=ie,m=pe;return g(),O(m,null,{header:l(()=>[e(i,{checked:t(n).recruit_enable,"onUpdate:checked":a[0]||(a[0]=x=>t(n).recruit_enable=x)},{default:l(()=>a[6]||(a[6]=[s("div",{class:"card-title"},"公开招募",-1)])),_:1},8,["checked"])]),default:l(()=>[e(w,{"label-placement":t(u)?"top":"left","show-feedback":!1,"label-width":"140","label-align":"left"},{default:l(()=>[e(f,null,{label:l(()=>[a[8]||(a[8]=s("span",null,"启动间隔",-1)),e(v,null,{default:l(()=>a[7]||(a[7]=[d("可填小数")])),_:1})]),default:l(()=>[e(h,{value:t(n).recruit_gap,"onUpdate:value":a[1]||(a[1]=x=>t(n).recruit_gap=x)},{suffix:l(()=>a[9]||(a[9]=[d("小时")])),_:1},8,["value"])]),_:1}),e(f,null,{label:l(()=>[a[11]||(a[11]=s("span",null,"三星招募阈值",-1)),e(v,null,{default:l(()=>a[10]||(a[10]=[d("剩余公招券大于此阈值时招募三星干员")])),_:1})]),default:l(()=>[e(h,{value:t(n).recruitment_permit,"onUpdate:value":a[2]||(a[2]=x=>t(n).recruitment_permit=x)},{suffix:l(()=>a[12]||(a[12]=[d("张")])),_:1},8,["value"])]),_:1}),e(f,{label:"五星招募策略"},{default:l(()=>[e(C,{value:t(n).recruit_auto_5,"onUpdate:value":a[3]||(a[3]=x=>t(n).recruit_auto_5=x)},{default:l(()=>[e(c,{justify:"start"},{default:l(()=>[e(P,{value:1},{default:l(()=>a[13]||(a[13]=[d("自动选择")])),_:1}),e(P,{value:2},{default:l(()=>a[14]||(a[14]=[d("手动选择")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(n).recruit_auto_5===2?(g(),O(f,{key:0,"show-label":!1},{default:l(()=>[e(i,{checked:t(n).recruit_auto_only5,"onUpdate:checked":a[4]||(a[4]=x=>t(n).recruit_auto_only5=x)},{default:l(()=>a[15]||(a[15]=[d("五星词条组合唯一时自动选择")])),_:1},8,["checked"])]),_:1})):E("",!0),e(f,{"show-label":!1},{default:l(()=>[e(i,{checked:t(n).recruit_robot,"onUpdate:checked":a[5]||(a[5]=x=>t(n).recruit_robot=x)},{default:l(()=>a[16]||(a[16]=[d("保留支援机械标签")])),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},mn=be(fn,[["__scopeId","data-v-707c6f48"]]),cn={__name:"DailyMission",setup(p){const y=te(),{conf:n}=Z(y);return(u,r)=>{const a=ue,i=Te,v=Ue,h=_e,f=xe,P=pe;return g(),O(P,{title:"每日任务"},{default:l(()=>[e(i,{vertical:""},{default:l(()=>[e(a,{checked:t(n).skland_enable,"onUpdate:checked":r[0]||(r[0]=c=>t(n).skland_enable=c)},{default:l(()=>r[9]||(r[9]=[s("div",{class:"item"},"森空岛签到",-1)])),_:1},8,["checked"]),(g(!0),B(X,null,ye(t(n).skland_info,c=>(g(),B("div",{key:c.account},[e(i,null,{default:l(()=>[e(a,{checked:c.isCheck,"onUpdate:checked":C=>c.isCheck=C,style:{"margin-right":"12px"}},{default:l(()=>[d(" 森空岛账号:"+J(c.account),1)]),_:2},1032,["checked","onUpdate:checked"]),e(a,{checked:c.sign_in_official,"onUpdate:checked":C=>c.sign_in_official=C,style:{"margin-right":"12px"}},{default:l(()=>r[10]||(r[10]=[d(" 官服签到 ")])),_:2},1032,["checked","onUpdate:checked"]),e(a,{checked:c.sign_in_bilibili,"onUpdate:checked":C=>c.sign_in_bilibili=C,style:{"margin-right":"12px"}},{default:l(()=>r[11]||(r[11]=[d(" B服签到 ")])),_:2},1032,["checked","onUpdate:checked"])]),_:2},1024)]))),128)),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).check_mail_enable,"onUpdate:checked":r[1]||(r[1]=c=>t(n).check_mail_enable=c)},{default:l(()=>r[12]||(r[12]=[s("div",{class:"item"},"领取邮件",-1)])),_:1},8,["checked"]),e(a,{checked:t(n).delete_read_mail,"onUpdate:checked":r[2]||(r[2]=c=>t(n).delete_read_mail=c)},{default:l(()=>r[13]||(r[13]=[d("删除已读邮件")])),_:1},8,["checked"])]),_:1}),e(v),e(a,{checked:t(n).visit_friend,"onUpdate:checked":r[3]||(r[3]=c=>t(n).visit_friend=c)},{default:l(()=>r[14]||(r[14]=[s("div",{class:"item"},"访问好友",-1)])),_:1},8,["checked"]),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).report_enable,"onUpdate:checked":r[4]||(r[4]=c=>t(n).report_enable=c)},{default:l(()=>r[15]||(r[15]=[s("div",{class:"item"},"读取基报",-1)])),_:1},8,["checked"])]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).sign_in.enable,"onUpdate:checked":r[5]||(r[5]=c=>t(n).sign_in.enable=c)},{default:l(()=>r[16]||(r[16]=[s("div",{class:"item"},"签到活动",-1)])),_:1},8,["checked"]),e(h,null,{default:l(()=>r[17]||(r[17]=[d("游戏内签到、矿区、限定池每日单抽等")])),_:1})]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).switch_assistants,"onUpdate:checked":r[6]||(r[6]=c=>t(n).switch_assistants=c)},{default:l(()=>r[18]||(r[18]=[s("div",{class:"item"},"基建副手",-1)])),_:1},8,["checked"]),e(f,{style:{"max-width":"220px"},value:t(n).trust_limit,"onUpdate:value":r[7]||(r[7]=c=>t(n).trust_limit=c),min:100,max:200,precision:0},{prefix:l(()=>r[19]||(r[19]=[d("信赖值阈值(≥)")])),suffix:l(()=>r[20]||(r[20]=[d("%")])),_:1},8,["value"])]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).trade_token,"onUpdate:checked":r[8]||(r[8]=c=>t(n).trade_token=c)},{default:l(()=>r[21]||(r[21]=[s("div",{class:"item"},"信物兑换",-1)])),_:1},8,["checked"])]),_:1})]),_:1})]),_:1})}}},vn=be(cn,[["__scopeId","data-v-e95953da"]]),bn={__name:"AutoFight",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=[{label:"精零",value:0},{label:"精一",value:1},{label:"精二",value:2}];return(a,i)=>{const v=ue,h=re,f=_e,P=xe,c=Ue,C=Ze,w=ge,m=ie,x=pe;return g(),O(x,{title:"自动战斗设置"},{default:l(()=>[e(m,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"110","label-align":"left"},{default:l(()=>[e(h,{"show-label":!1},{default:l(()=>[e(v,{checked:t(u).avatar_recog_pause,"onUpdate:checked":i[0]||(i[0]=b=>t(u).avatar_recog_pause=b)},{default:l(()=>i[6]||(i[6]=[d("识别干员时暂停")])),_:1},8,["checked"])]),_:1}),e(h,null,{label:l(()=>[i[8]||(i[8]=s("span",null,"第一段滑动",-1)),e(f,null,{default:l(()=>i[7]||(i[7]=[s("div",null,"把干员从待部署区域拖到地图上的对应位置",-1),s("div",null,"默认值:400毫秒",-1)])),_:1})]),default:l(()=>[e(P,{value:t(u).first_swipe_duration,"onUpdate:value":i[1]||(i[1]=b=>t(u).first_swipe_duration=b),precision:0},{suffix:l(()=>i[9]||(i[9]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e(h,null,{label:l(()=>[i[11]||(i[11]=s("span",null,"第二段滑动",-1)),e(f,null,{default:l(()=>i[10]||(i[10]=[s("div",null,"确认部署方向",-1),s("div",null,"默认值:200毫秒",-1)])),_:1})]),default:l(()=>[e(P,{value:t(u).second_swipe_duration,"onUpdate:value":i[2]||(i[2]=b=>t(u).second_swipe_duration=b),precision:0},{suffix:l(()=>i[12]||(i[12]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e(c),e(C,{class:"subtitle"},{default:l(()=>i[13]||(i[13]=[d("借助战")])),_:1}),e(h,{label:"精英化限制"},{default:l(()=>[e(w,{value:t(u).support.elite,"onUpdate:value":i[3]||(i[3]=b=>t(u).support.elite=b),options:r},null,8,["value"])]),_:1}),e(h,{label:"等级限制"},{default:l(()=>[e(P,{value:t(u).support.level,"onUpdate:value":i[4]||(i[4]=b=>t(u).support.level=b),min:1,max:90},null,8,["value"])]),_:1}),e(h,{label:"最大刷新次数"},{default:l(()=>[e(P,{value:t(u).support.refresh,"onUpdate:value":i[5]||(i[5]=b=>t(u).support.refresh=b),min:1},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},gn=be(bn,[["__scopeId","data-v-31c5d919"]]),kn={style:{display:"flex","align-items":"center",width:"100%"}},yn={class:"misc-container"},xn={__name:"SKLand",setup(p){const y=G("axios"),n=te(),{conf:u}=Z(n);function r(){return{isCheck:!0,account:"",password:"",sign_in_official:!0,sign_in_bilibili:!0,cultivate_select:!0}}const a=j("");async function i(){a.value="正在测试……";const v=await y.get("/check-skland");a.value=v.data}return(v,h)=>{const f=_e,P=Ae,c=ft,C=Ue,w=ce,m=pe;return g(),O(m,null,{header:l(()=>[h[2]||(h[2]=s("div",{class:"card-title"},"森空岛账号",-1)),e(f,null,{default:l(()=>h[1]||(h[1]=[s("div",null,"连接失败时,请尝试:",-1),s("ol",{style:{margin:"0"}},[s("li",null,"同步系统时间后再试;"),s("li",null,"检查账号密码是否正确;"),s("li",null,"关闭代理软件或设置分流规则;"),s("li",null,"登录森空岛App,查看是否需要人机验证。")],-1)])),_:1})]),default:l(()=>[e(c,{value:t(u).skland_info,"onUpdate:value":h[0]||(h[0]=x=>t(u).skland_info=x),"on-create":r,"show-sort-button":""},{default:l(({value:x})=>[s("div",kn,[e(P,{style:{"margin-right":"10px"},value:x.account,"onUpdate:value":b=>x.account=b,type:"text",placeholder:"账号"},null,8,["value","onUpdate:value"]),e(P,{value:x.password,"onUpdate:value":b=>x.password=b,type:"password","show-password-on":"click",placeholder:"密码"},null,8,["value","onUpdate:value"])])]),_:1},8,["value"]),e(C),s("div",yn,[e(w,{onClick:i},{default:l(()=>h[3]||(h[3]=[d("测试设置")])),_:1}),s("div",null,J(t(a)),1)])]),_:1})}}},hn={key:0},wn={key:1},Cn={key:0},Un={class:"email-test mt-16"},Sn={__name:"Email",setup(p){const y=te(),n=G("axios"),u=G("mobile"),r=j(""),{conf:a}=Z(y);async function i(){r.value="正在发送……";const h=await n.get("/test-email");r.value=h.data}const v=[{label:"INFO - 基建任务、刷理智、公招汇总、基报、活动签到等",value:"INFO"},{label:"WARNING - 版本过旧、组内心情差过大、漏单、公招稀有标签等",value:"WARNING"},{label:"ERROR - 无法排班、专精失败、Maa调用出错、森空岛签到失败、活动签到超时、OF-1失败等",value:"ERROR"}];return(h,f)=>{const P=ue,c=ce,C=xl,w=Pe,m=Ae,x=re,b=ze,F=Te,D=xe,R=_e,S=ge,A=ft,Y=ie,N=Ue,U=pe;return g(),O(U,null,{header:l(()=>[e(P,{checked:t(a).mail_enable,"onUpdate:checked":f[0]||(f[0]=k=>t(a).mail_enable=k),class:"email-title"},{default:l(()=>f[11]||(f[11]=[s("div",{class:"card-title"},"邮件提醒",-1),s("div",{class:"expand"},null,-1)])),_:1},8,["checked"]),t(u)?(g(),O(c,{key:0,onClick:f[1]||(f[1]=k=>t(a).custom_smtp_server.enable=!t(a).custom_smtp_server.enable),type:"primary",ghost:""},{default:l(()=>[d(J(t(a).custom_smtp_server.enable?"自定义邮箱":"QQ邮箱"),1)]),_:1})):(g(),O(w,{key:1,class:"email-mode",value:t(a).custom_smtp_server.enable,"onUpdate:value":f[2]||(f[2]=k=>t(a).custom_smtp_server.enable=k)},{default:l(()=>[e(C,{value:!1,label:"QQ邮箱"}),e(C,{value:!0,label:"自定义邮箱"})]),_:1},8,["value"]))]),default:l(()=>[e(Y,{"label-placement":t(u)?"top":"left","show-feedback":!1,"label-width":"96","label-align":"left"},{default:l(()=>[t(a).custom_smtp_server.enable?(g(),O(x,{key:0,label:"SMTP服务器"},{default:l(()=>[e(m,{value:t(a).custom_smtp_server.server,"onUpdate:value":f[3]||(f[3]=k=>t(a).custom_smtp_server.server=k)},null,8,["value"])]),_:1})):E("",!0),t(a).custom_smtp_server.enable?(g(),O(x,{key:1,label:"加密方式"},{default:l(()=>[e(w,{value:t(a).custom_smtp_server.encryption,"onUpdate:value":f[4]||(f[4]=k=>t(a).custom_smtp_server.encryption=k)},{default:l(()=>[e(F,null,{default:l(()=>[e(b,{value:"tls",label:"SSL/TLS"}),e(b,{value:"starttls",label:"STARTTLS"})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0),t(a).custom_smtp_server.enable?(g(),O(x,{key:2,label:"端口号"},{default:l(()=>[e(D,{value:t(a).custom_smtp_server.ssl_port,"onUpdate:value":f[5]||(f[5]=k=>t(a).custom_smtp_server.ssl_port=k)},null,8,["value"])]),_:1})):E("",!0),e(x,null,{label:l(()=>[t(a).custom_smtp_server.enable?(g(),B("span",hn,"账号")):(g(),B("span",wn,"QQ邮箱"))]),default:l(()=>[e(m,{value:t(a).account,"onUpdate:value":f[6]||(f[6]=k=>t(a).account=k)},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[t(a).custom_smtp_server.enable?(g(),B("span",Cn,"密码")):(g(),B(X,{key:1},[f[13]||(f[13]=s("span",null,"授权码",-1)),e(R,null,{default:l(()=>[e(c,{text:"",tag:"a",href:"https://service.mail.qq.com/detail/0/75",target:"_blank",type:"primary"},{default:l(()=>f[12]||(f[12]=[d(" https://service.mail.qq.com/detail/0/75 ")])),_:1})]),_:1})],64))]),default:l(()=>[e(m,{value:t(a).pass_code,"onUpdate:value":f[7]||(f[7]=k=>t(a).pass_code=k),type:"password","show-password-on":"click"},null,8,["value"])]),_:1}),e(x,{label:"通知等级"},{default:l(()=>[e(S,{value:t(a).notification_level,"onUpdate:value":f[8]||(f[8]=k=>t(a).notification_level=k),options:v},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[f[15]||(f[15]=s("span",null,"标题前缀",-1)),e(R,null,{default:l(()=>f[14]||(f[14]=[d("可用于区分来自多个Mower的邮件")])),_:1})]),default:l(()=>[e(m,{value:t(a).mail_subject,"onUpdate:value":f[9]||(f[9]=k=>t(a).mail_subject=k)},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[f[17]||(f[17]=s("span",null,"收件人",-1)),e(R,null,{default:l(()=>f[16]||(f[16]=[d("不填时将邮件发给自己")])),_:1})]),default:l(()=>[e(A,{value:t(a).recipient,"onUpdate:value":f[10]||(f[10]=k=>t(a).recipient=k)},null,8,["value"])]),_:1})]),_:1},8,["label-placement"]),e(N),s("div",Un,[e(c,{onClick:i},{default:l(()=>f[18]||(f[18]=[d("发送测试邮件")])),_:1}),s("div",null,J(t(r)),1)])]),_:1})}}},Rn=be(Sn,[["__scopeId","data-v-7cbc22ce"]]),$n={class:"grid-two"},Tn={class:"grid-left"},zn={key:0},Pn={class:"threshold"},An={class:"grid-right"},On={__name:"Settings",setup(p){const y=te(),{conf:n}=Z(y),u=Qe(),{operators:r}=Z(u),{left_side_facility:a}=u,i=G("mobile"),v=L(()=>[{label:"(加速任意贸易站)",value:""}].concat(a)),h=[{label:"夜神",value:"夜神"},{label:"MuMu模拟器12",value:"MuMu12"},{label:"Waydroid",value:"Waydroid"},{label:"雷电模拟器9",value:"雷电9"},{label:"ReDroid",value:"ReDroid"},{label:"MuMu模拟器Pro",value:"MuMuPro"},{label:"Genymotion",value:"Genymotion"},{label:"其它",value:""}],f=[{label:"使用adb命令启动",value:"adb"},{label:"点击屏幕启动",value:"tap"}],P=[{label:"什么都不做",value:"do_nothing"},{label:"返回桌面",value:"switch_to_home"},{label:"退出游戏",value:"exit_game"},{label:"退出模拟器",value:"close_emulator"}];async function c(){const I=await bt();I&&(n.value.emulator.emulator_folder=I)}const C={},w=[.5,1,1.5,2,3];for(let I=.5;I<=3;I+=.25)C[I]=w.includes(I)?`${I*100}%`:"";const m=j(n.value.webview.scale);async function x(){const I=await Nl();I&&(n.value.maa_adb_path=I)}const b=L(()=>{const I=[{label:"DroidCast_raw(主动,无损,较快)",value:"droidcast_raw"},{label:"ADB+Gzip(主动,无损,很慢)",value:"adb"},{label:"DroidCast(主动,有损,较快)",value:"droidcast"},{label:"scrcpy(被动,有损,特殊)",value:"scrcpy"},{label:"自定义(以下命令需要向STDOUT打印截图文件)",value:"diy"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12截图API(主动,无损,超快)",value:"mumuipc"}),I}),F=L(()=>{const I=[{label:"scrcpy",value:"scrcpy"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12触控API",value:"mumuipc"}),I}),D=L(()=>{const I=[{label:"ADB",value:"adb"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12应用管理器",value:"mumumanager"}),I}),R=j(!1),S=j(""),A=j(0),Y=j(!0),N=j(""),U=j(!1),k=G("axios");async function V(){U.value=!0,R.value=!1;try{const{data:I}=await k.get("/test-screenshot");Y.value=I.success,Y.value?(S.value=I.screenshot,A.value=I.elapsed):N.value=I.reason}finally{U.value=!1,R.value=!0}}const M={CONNECTING:"正在提交反馈至神经",UNKNOWN:"未知",UNKNOWN_WITH_NAVBAR:"有导航栏的未知场景",LOADING:"场景跳转时的等待界面",LOGIN_LOADING:"登录中",LOGIN_MAIN_NOENTRY:"登录页面(无按钮入口)",OPERATOR_ONGOING:"代理作战"},H=L(()=>A.value<=50?"success":A.value<=200?"default":A.value<=500?"warning":"error"),z=L(()=>["夜神","MuMu12","雷电9","ReDroid","Waydroid"].includes(n.value.emulator.name)),q=j(!1);async function le(){q.value=!0;const[I,o]=await Promise.all([k.get("/auto-get-path"),k.get("/get-adb-serial")]);q.value=!1,o.data!="OK"?de.error("请填写正确的多开编号!"):de.success("自动填写成功!")}const de=sl();return(I,o)=>{const ne=ge,$=re,K=_e,Q=Ae,W=ce,ee=xe,ke=Ue,Le=mt,oe=ze,he=Te,we=Pe,Be=Al,Ne=ct,Ie=Je,fe=ue,Se=ie,Re=pe,Ee=Tl,je=rl,Fe=kl,qe=Rn,kt=xn,yt=gn,xt=ll,ht=vn,wt=mn,Ct=_n,Ut=un,St=on,Rt=Kl;return g(),B("div",$n,[s("div",Tn,[s("div",null,[e(Re,{title:"设备与游戏设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"120","label-align":"left"},{default:l(()=>[e($,{label:"模拟器"},{default:l(()=>[e(ne,{value:t(n).emulator.name,"onUpdate:value":o[0]||(o[0]=_=>t(n).emulator.name=_),options:h},null,8,["value"])]),_:1}),t(n).emulator.name?(g(),O($,{key:0},{label:l(()=>[o[43]||(o[43]=s("span",null,"多开编号",-1)),e(K,null,{default:l(()=>o[42]||(o[42]=[s("div",null,"MuMu模拟器12的多开器中,第一个实例(锁形图标)的序号为0",-1),s("div",null,"夜神模拟器单开请填写-1",-1),s("div",null,"其它模拟器请填写多开器中的序号",-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.index,"onUpdate:value":o[1]||(o[1]=_=>t(n).emulator.index=_)},null,8,["value"]),t(z)?(g(),O(W,{key:0,class:"dialog-btn",onClick:le,loading:t(q)},{default:l(()=>o[44]||(o[44]=[d(" 自动填写设置 ")])),_:1},8,["loading"])):E("",!0)]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:1},{label:l(()=>[o[46]||(o[46]=s("span",null,"模拟器文件夹",-1)),e(K,null,{default:l(()=>o[45]||(o[45]=[s("div",null,"夜神:写到bin文件夹",-1),s("div",null,"MuMu12: 写到shell文件夹",-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.emulator_folder,"onUpdate:value":o[2]||(o[2]=_=>t(n).emulator.emulator_folder=_),type:"textarea",autosize:!0},null,8,["value"]),e(W,{onClick:c,class:"dialog-btn"},{default:l(()=>o[47]||(o[47]=[d("...")])),_:1})]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:2,label:"模拟器启动时间"},{default:l(()=>[e(ee,{value:t(n).emulator.wait_time,"onUpdate:value":o[3]||(o[3]=_=>t(n).emulator.wait_time=_)},{suffix:l(()=>o[48]||(o[48]=[d("秒")])),_:1},8,["value"])]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:3},{label:l(()=>[o[54]||(o[54]=s("span",null,"模拟器老板键",-1)),e(K,null,{default:l(()=>[o[51]||(o[51]=s("div",null,"启动模拟器后按此快捷键",-1)),o[52]||(o[52]=s("div",null,"若不需要此功能,请留空",-1)),o[53]||(o[53]=s("div",null,"加号分隔按键,不要空格",-1)),s("div",null,[o[50]||(o[50]=d(" 按键名参考 ")),e(W,{text:"",tag:"a",href:"https://pyautogui.readthedocs.io/en/latest/keyboard.html#keyboard-keys",target:"_blank",type:"primary"},{default:l(()=>o[49]||(o[49]=[d(" KEYBOARD_KEYS ")])),_:1})])]),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.hotkey,"onUpdate:value":o[4]||(o[4]=_=>t(n).emulator.hotkey=_),placeholder:"留空停用;组合键用加号分隔"},null,8,["value"])]),_:1})):E("",!0),e(ke),e($,{label:"ADB路径"},{default:l(()=>[e(Q,{type:"textarea",autosize:!0,value:t(n).maa_adb_path,"onUpdate:value":o[5]||(o[5]=_=>t(n).maa_adb_path=_)},null,8,["value"]),e(W,{onClick:x,class:"dialog-btn"},{default:l(()=>o[55]||(o[55]=[d("...")])),_:1})]),_:1}),e($,null,{label:l(()=>[o[57]||(o[57]=s("span",null,"ADB连接地址",-1)),e(K,null,{default:l(()=>o[56]||(o[56]=[s("div",null,"不同模拟器adb地址不同。如不填,系统会自动去寻找adb device中的第一个。",-1),s("div",null,[d("夜神:"),s("code",null,"127.0.0.1:62001")],-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).adb,"onUpdate:value":o[6]||(o[6]=_=>t(n).adb=_)},null,8,["value"])]),_:1}),e(ke),e($,{label:"截图方案"},{default:l(()=>[e(ne,{value:t(n).screencap_strategy,"onUpdate:value":o[7]||(o[7]=_=>t(n).screencap_strategy=_),options:t(b)},null,8,["value","options"])]),_:1}),t(n).emulator.name=="MuMu12"&&t(n).screencap_strategy!="mumuipc"?(g(),O(Le,{key:4,title:"推荐使用MuMu模拟器12专属截图",closable:"",style:{margin:"8px 0"},type:"success"},{default:l(()=>o[58]||(o[58]=[d(" 通过共享内存的方式直接获取无损截图,避免了编码、解码、跨进程传输等环节的开销,截图速度远高于通用截图方案。 ")])),_:1})):E("",!0),e($,{label:"触控方案"},{default:l(()=>[e(ne,{value:t(n).control_strategy,"onUpdate:value":o[8]||(o[8]=_=>t(n).control_strategy=_),options:t(F)},null,8,["value","options"])]),_:1}),e($,{label:"应用控制方案"},{default:l(()=>[e(ne,{value:t(n).app_control_strategy,"onUpdate:value":o[9]||(o[9]=_=>t(n).app_control_strategy=_),options:t(D)},null,8,["value","options"])]),_:1}),t(n).screencap_strategy=="droidcast"?(g(),O($,{key:5,label:"旋转截图"},{default:l(()=>[e(we,{value:t(n).droidcast.rotate,"onUpdate:value":o[10]||(o[10]=_=>t(n).droidcast.rotate=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:!1},{default:l(()=>o[59]||(o[59]=[d("不旋转")])),_:1}),e(oe,{value:!0},{default:l(()=>o[60]||(o[60]=[d("旋转180度")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0),t(n).screencap_strategy=="droidcast_raw"?(g(),B(X,{key:6},[e($,{label:"屏幕朝向"},{default:l(()=>[e(we,{value:t(n).droidcast_raw.orientation,"onUpdate:value":o[11]||(o[11]=_=>t(n).droidcast_raw.orientation=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:"portrait"},{default:l(()=>o[61]||(o[61]=[d("竖屏")])),_:1}),e(oe,{value:"landscape"},{default:l(()=>o[62]||(o[62]=[d("横屏")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(n).screencap_strategy=="droidcast_raw"?(g(),O($,{key:0,label:"旋转截图"},{default:l(()=>[e(we,{value:t(n).droidcast_raw.rotate,"onUpdate:value":o[12]||(o[12]=_=>t(n).droidcast_raw.rotate=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:0},{default:l(()=>o[63]||(o[63]=[d("不旋转")])),_:1}),e(oe,{value:90},{default:l(()=>o[64]||(o[64]=[d("旋转90度")])),_:1}),e(oe,{value:180},{default:l(()=>o[65]||(o[65]=[d("旋转180度")])),_:1}),e(oe,{value:270},{default:l(()=>o[66]||(o[66]=[d("旋转270度")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0)],64)):E("",!0),t(n).screencap_strategy=="diy"?(g(),O($,{key:7,label:"截图命令"},{default:l(()=>[e(Q,{value:t(n).custom_screenshot.command,"onUpdate:value":o[13]||(o[13]=_=>t(n).custom_screenshot.command=_),type:"textarea",autosize:!0},null,8,["value"])]),_:1})):E("",!0),e($,{"show-label":!1},{default:l(()=>[e(he,{vertical:"",style:{gap:"12px"}},{default:l(()=>[e(he,{align:"center",style:{gap:"12px"}},{default:l(()=>[e(W,{onClick:V,loading:t(U)},{default:l(()=>o[67]||(o[67]=[d("测试截图设置")])),_:1},8,["loading"]),t(R)?(g(),B(X,{key:0},[t(Y)?(g(),B("div",zn,[o[68]||(o[68]=d(" 截图用时:")),e(Be,{strong:"",type:t(H)},{default:l(()=>[d(J(t(A))+"ms",1)]),_:1},8,["type"])])):(g(),B(X,{key:1},[e(Be,{type:"error"},{default:l(()=>o[69]||(o[69]=[d("截图失败!")])),_:1}),s("div",null,J(t(N)),1)],64))],64)):E("",!0)]),_:1}),t(R)&&t(Y)?(g(),O(Ne,{key:0,src:"data:image/jpeg;base64,"+t(S),width:"100%"},null,8,["src"])):E("",!0)]),_:1})]),_:1}),e(ke),e($,{label:"游戏服务器"},{default:l(()=>[e(we,{value:t(n).package_type,"onUpdate:value":o[14]||(o[14]=_=>t(n).package_type=_)},{default:l(()=>[e(Ie,null,{default:l(()=>[e(oe,{value:"official"},{default:l(()=>o[70]||(o[70]=[d("官服")])),_:1}),e(oe,{value:"bilibili"},{default:l(()=>o[71]||(o[71]=[d("BiliBili服")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e($,{label:"启动游戏"},{default:l(()=>[e(ne,{value:t(n).tap_to_launch_game.enable,"onUpdate:value":o[15]||(o[15]=_=>t(n).tap_to_launch_game.enable=_),options:f},null,8,["value"])]),_:1}),t(n).tap_to_launch_game.enable=="tap"?(g(),O($,{key:8,label:"点击坐标"},{default:l(()=>[o[72]||(o[72]=s("span",{class:"coord-label"},"X:",-1)),e(ee,{value:t(n).tap_to_launch_game.x,"onUpdate:value":o[16]||(o[16]=_=>t(n).tap_to_launch_game.x=_)},null,8,["value"]),o[73]||(o[73]=s("span",{class:"coord-label"},"Y:",-1)),e(ee,{value:t(n).tap_to_launch_game.y,"onUpdate:value":o[17]||(o[17]=_=>t(n).tap_to_launch_game.y=_)},null,8,["value"])]),_:1})):E("",!0),e($,{label:"任务结束"},{default:l(()=>[e(ne,{value:t(n).strategy_when_idle,"onUpdate:value":o[18]||(o[18]=_=>t(n).strategy_when_idle=_),options:P},null,8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).kill_server_when_idle,"onUpdate:checked":o[19]||(o[19]=_=>t(n).kill_server_when_idle=_)},{default:l(()=>[o[75]||(o[75]=s("span",null,"任务结束时关闭ADB Server",-1)),e(K,null,{default:l(()=>o[74]||(o[74]=[d("建议开启,多开不受影响")])),_:1})]),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(Re,{title:"基建设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"160","label-align":"left"},{default:l(()=>[e($,{label:"宿舍黑名单(非主力)"},{default:l(()=>[t(i)?(g(),O(Ee,{key:0,"virtual-scroll":"","source-filterable":"","target-filterable":"",options:t(r),value:t(n).free_blacklist,"onUpdate:value":o[20]||(o[20]=_=>t(n).free_blacklist=_),"render-source-label":_=>t(De)(_.option),"render-target-label":_=>t(De)(_.option),filter:(_,He)=>_?t(Xe)(He.label,_):!0},null,8,["options","value","render-source-label","render-target-label","filter"])):(g(),O(je,{key:1,modelValue:t(n).free_blacklist,"onUpdate:modelValue":o[21]||(o[21]=_=>t(n).free_blacklist=_)},null,8,["modelValue"]))]),_:1}),e($,null,{label:l(()=>[o[77]||(o[77]=s("span",null,"跑单前置延时",-1)),e(K,null,{default:l(()=>o[76]||(o[76]=[s("div",null,"推荐范围5-10",-1),s("div",null,"可填小数",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).run_order_delay,"onUpdate:value":o[22]||(o[22]=_=>t(n).run_order_delay=_)},{suffix:l(()=>o[78]||(o[78]=[d("分钟")])),_:1},8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).run_order_grandet_mode.enable,"onUpdate:checked":o[23]||(o[23]=_=>t(n).run_order_grandet_mode.enable=_)},{default:l(()=>o[79]||(o[79]=[d("葛朗台跑单")])),_:1},8,["checked"])]),_:1}),t(n).run_order_grandet_mode.enable?(g(),O($,{key:0},{label:l(()=>[o[81]||(o[81]=s("span",null,"葛朗台缓冲时间",-1)),e(K,null,{default:l(()=>o[80]||(o[80]=[d("推荐范围:15-30")])),_:1})]),default:l(()=>[e(ee,{value:t(n).run_order_grandet_mode.buffer_time,"onUpdate:value":o[24]||(o[24]=_=>t(n).run_order_grandet_mode.buffer_time=_)},{suffix:l(()=>o[82]||(o[82]=[d("秒")])),_:1},8,["value"])]),_:1})):E("",!0),t(n).run_order_grandet_mode.enable?(g(),O($,{key:1,"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).run_order_grandet_mode.back_to_index,"onUpdate:checked":o[25]||(o[25]=_=>t(n).run_order_grandet_mode.back_to_index=_)},{default:l(()=>o[83]||(o[83]=[d(" 跑单前返回主界面以保持登录状态 ")])),_:1},8,["checked"])]),_:1})):E("",!0),e($,null,{label:l(()=>[o[85]||(o[85]=s("span",null,"无人机使用房间",-1)),e(K,null,{default:l(()=>o[84]||(o[84]=[s("div",null,"加速制造站为指定制造站加速",-1),s("div",null,"(加速任意贸易站)只会加速有跑单人员作备班的站",-1),s("div",null,"例:没填龙舌兰但书的卖玉站 (加速任意贸易站) 不会被加速",-1),s("div",null,"如需要加速特定某个贸易站请指定对应房间",-1)])),_:1})]),default:l(()=>[e(ne,{options:t(v),value:t(n).drone_room,"onUpdate:value":o[26]||(o[26]=_=>t(n).drone_room=_)},null,8,["options","value"])]),_:1}),e($,null,{label:l(()=>[o[87]||(o[87]=s("span",null,"无人机使用阈值",-1)),e(K,null,{default:l(()=>o[86]||(o[86]=[s("div",null,"如加速贸易,推荐大于 贸易站数*x + 92",-1),s("div",null,"如加速制造,推荐大于 贸易站数*x",-1),s("div",null,"葛朗台跑单模式下x=0,非葛朗台推荐x=10",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).drone_count_limit,"onUpdate:value":o[27]||(o[27]=_=>t(n).drone_count_limit=_)},null,8,["value"])]),_:1}),e($,null,{label:l(()=>[o[89]||(o[89]=s("span",null,"无人机加速间隔",-1)),e(K,null,{default:l(()=>o[88]||(o[88]=[s("div",null,"可填小数",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).drone_interval,"onUpdate:value":o[28]||(o[28]=_=>t(n).drone_interval=_)},{suffix:l(()=>o[90]||(o[90]=[d("小时")])),_:1},8,["value"])]),_:1}),e($,{label:"搓玉补货房间"},{default:l(()=>[e(ne,{multiple:"",filterable:"",tag:"",options:t(a),value:t(n).reload_room,"onUpdate:value":o[29]||(o[29]=_=>t(n).reload_room=_)},null,8,["options","value"])]),_:1}),e($,null,{label:l(()=>[o[92]||(o[92]=s("span",null,"心情阈值",-1)),e(K,null,{default:l(()=>o[91]||(o[91]=[s("div",null,"2电站推荐不低于65%",-1),s("div",null,"3电站推荐不低于50%",-1),s("div",null,"即将大更新推荐设置成80%",-1)])),_:1})]),default:l(()=>[s("div",Pn,[e(Fe,{value:t(n).resting_threshold,"onUpdate:value":o[30]||(o[30]=_=>t(n).resting_threshold=_),step:5,min:50,max:80,"format-tooltip":_=>`${_}%`},null,8,["value","format-tooltip"]),e(ee,{value:t(n).resting_threshold,"onUpdate:value":o[31]||(o[31]=_=>t(n).resting_threshold=_),step:5,min:50,max:80},{suffix:l(()=>o[93]||(o[93]=[d("%")])),_:1},8,["value"])])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).free_room,"onUpdate:checked":o[32]||(o[32]=_=>t(n).free_room=_)},{default:l(()=>[o[95]||(o[95]=d(" 宿舍不养闲人 ")),e(K,null,{default:l(()=>o[94]||(o[94]=[d("干员心情回满后,立即释放宿舍空位")])),_:1})]),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(qe)]),s("div",null,[e(kt)]),s("div",null,[e(yt)]),s("div",null,[e(Re,{title:"外观、性能与其它设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"120","label-align":"left"},{default:l(()=>[e($,{label:"界面缩放"},{default:l(()=>[e(Fe,{value:t(m),"onUpdate:value":o[33]||(o[33]=_=>_t(m)?m.value=_:null),step:.25,min:.5,max:3,marks:C,"format-tooltip":_=>`${_*100}%`},null,8,["value","format-tooltip"]),e(W,{class:"scale-apply",disabled:t(m)==t(n).webview.scale,onClick:o[34]||(o[34]=_=>t(n).webview.scale=t(m))},{default:l(()=>o[96]||(o[96]=[d(" 应用 ")])),_:1},8,["disabled"])]),_:1}),e($,{label:"显示主题"},{default:l(()=>[e(we,{value:t(n).theme,"onUpdate:value":o[35]||(o[35]=_=>t(n).theme=_)},{default:l(()=>[e(Ie,null,{default:l(()=>[e(oe,{value:"light"},{default:l(()=>o[97]||(o[97]=[d("亮色")])),_:1}),e(oe,{value:"dark"},{default:l(()=>o[98]||(o[98]=[d("暗色")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).webview.tray,"onUpdate:checked":o[36]||(o[36]=_=>t(n).webview.tray=_)},{default:l(()=>[o[100]||(o[100]=d(" 使用托盘图标 ")),e(K,null,{default:l(()=>o[99]||(o[99]=[d("重启生效")])),_:1})]),_:1},8,["checked"])]),_:1}),e(ke),e($,{label:"截图最短间隔"},{default:l(()=>[e(ee,{value:t(n).screenshot_interval,"onUpdate:value":o[37]||(o[37]=_=>t(n).screenshot_interval=_),precision:0},{suffix:l(()=>o[101]||(o[101]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e($,null,{label:l(()=>[o[103]||(o[103]=s("span",null,"截图保存时间",-1)),e(K,null,{default:l(()=>o[102]||(o[102]=[d("可填小数")])),_:1})]),default:l(()=>[e(ee,{value:t(n).screenshot,"onUpdate:value":o[38]||(o[38]=_=>t(n).screenshot=_)},{suffix:l(()=>o[104]||(o[104]=[d("小时")])),_:1},8,["value"])]),_:1}),e($,{label:"等待时间"},{default:l(()=>[e(xt,{size:"small",class:"waiting-table"},{default:l(()=>[o[107]||(o[107]=s("thead",null,[s("tr",null,[s("th",null,"场景"),s("th",null,"截图间隔"),s("th",null,"超时时长")])],-1)),s("tbody",null,[(g(!0),B(X,null,ye(t(n).waiting_scene_v2,(_,He)=>(g(),B("tr",null,[s("td",null,J(M[He]),1),s("td",null,[e(ee,{value:_[0],"onUpdate:value":Ge=>_[0]=Ge,"show-button":!1,precision:0},{suffix:l(()=>o[105]||(o[105]=[d("毫秒")])),_:2},1032,["value","onUpdate:value"])]),s("td",null,[e(ee,{value:_[1],"onUpdate:value":Ge=>_[1]=Ge,"show-button":!1,precision:0},{suffix:l(()=>o[106]||(o[106]=[d("秒")])),_:2},1032,["value","onUpdate:value"])])]))),256))])]),_:1})]),_:1}),e(ke),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).start_automatically,"onUpdate:checked":o[39]||(o[39]=_=>t(n).start_automatically=_)},{default:l(()=>o[108]||(o[108]=[d("启动mower-ng后直接开始运行")])),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})])]),s("div",An,[s("div",null,[e(ht)]),s("div",null,[e(wt)]),s("div",null,[e(Ct)]),s("div",null,[e(Re,null,{header:l(()=>[e(fe,{checked:t(n).maa_enable,"onUpdate:checked":o[40]||(o[40]=_=>t(n).maa_enable=_)},{default:l(()=>o[109]||(o[109]=[s("div",{class:"card-title"},"日常任务",-1)])),_:1},8,["checked"]),e(K,null,{default:l(()=>o[110]||(o[110]=[s("div",null,"刷理智周计划、每日/每周任务、信用作战",-1)])),_:1})]),default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"100","label-align":"left"},{default:l(()=>[e($,null,{label:l(()=>[o[112]||(o[112]=s("span",null,"任务间隔",-1)),e(K,null,{default:l(()=>o[111]||(o[111]=[s("div",null,"可填小数",-1),s("div",null,"清理智、日常/周常任务领取、借助战打OF-1",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).maa_gap,"onUpdate:value":o[41]||(o[41]=_=>t(n).maa_gap=_)},{suffix:l(()=>o[113]||(o[113]=[d("小时")])),_:1},8,["value"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(Ut)]),s("div",null,[e(St)]),s("div",null,[e(Rt)])])])}}},no=be(On,[["__scopeId","data-v-7e026566"]]);export{no as default}; + `)]),Pl=Object.assign(Object.assign({},Ve.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),Al=ve({name:"Text",props:Pl,setup(p){const{mergedClsPrefixRef:y,inlineThemeDisabled:n}=dt(p),u=Ve("Typography","-text",zl,Pt,p,y),r=L(()=>{const{depth:i,type:v}=p,h=v==="default"?i===void 0?"textColor":`textColor${i}Depth`:Ce("textColor",v),{common:{fontWeightStrong:f,fontFamilyMono:P,cubicBezierEaseInOut:c},self:{codeTextColor:C,codeBorderRadius:w,codeColor:m,codeBorder:x,[h]:b}}=u.value;return{"--n-bezier":c,"--n-text-color":b,"--n-font-weight-strong":f,"--n-font-famliy-mono":P,"--n-code-border-radius":w,"--n-code-text-color":C,"--n-code-color":m,"--n-code-border":x}}),a=n?Qt("text",L(()=>`${p.type[0]}${p.depth||""}`),r,p):void 0;return{mergedClsPrefix:y,compitableTag:At(p,["as","tag"]),cssVars:n?void 0:r,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var p,y,n;const{mergedClsPrefix:u}=this;(p=this.onRender)===null||p===void 0||p.call(this);const r=[`${u}-text`,this.themeClass,{[`${u}-text--code`]:this.code,[`${u}-text--delete`]:this.delete,[`${u}-text--strong`]:this.strong,[`${u}-text--italic`]:this.italic,[`${u}-text--underline`]:this.underline}],a=(n=(y=this.$slots).default)===null||n===void 0?void 0:n.call(y);return this.code?T("code",{class:r,style:this.cssVars},this.delete?T("del",null,a):a):this.delete?T("del",{class:r,style:this.cssVars},a):T(this.compitableTag||"span",{class:r,style:this.cssVars},a)}}),Ol={__name:"SecretFront",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=[{label:"1A→2A→3A→结局A",value:"结局A"},{label:"1A→2A→3A→结局B",value:"结局B"},{label:"1A→2A→3B→结局C",value:"结局C"},{label:"1A→2B→3C→结局D",value:"结局D"},{label:"1A→2B→3C→结局E",value:"结局E"}];return(a,i)=>{const v=xe,h=re,f=ge,P=ie;return g(),O(P,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(h,{label:"超时时长"},{default:l(()=>[e(v,{value:t(u).reclamation_algorithm.timeout,"onUpdate:value":i[0]||(i[0]=c=>t(u).reclamation_algorithm.timeout=c)},{suffix:l(()=>i[2]||(i[2]=[d("秒")])),_:1},8,["value"])]),_:1}),e(h,{label:"选择路线"},{default:l(()=>[e(f,{value:t(u).secret_front.target,"onUpdate:value":i[1]||(i[1]=c=>t(u).secret_front.target=c),options:r},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])}}},Bl={__name:"ReclamationAlgorithm",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n);return(r,a)=>{const i=xe,v=re,h=ie;return g(),O(h,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(v,{label:"超时时长"},{default:l(()=>[e(i,{value:t(u).reclamation_algorithm.timeout,"onUpdate:value":a[0]||(a[0]=f=>t(u).reclamation_algorithm.timeout=f)},{suffix:l(()=>a[1]||(a[1]=[d("秒")])),_:1},8,["value"])]),_:1})]),_:1},8,["label-placement"])}}},Il={class:"sss-container"},Fl={key:0,class:"wrapper"},Ml={class:"title"},Dl={key:1},Vl={__name:"Sss",setup(p){const y=G("mobile"),n=G("axios"),u="/sss-copilot",r=j({exists:!1});pt(async()=>{const{data:x}=await n.get(u);r.value=x});function a({event:x}){r.value=JSON.parse(x.target.response)}const i=G("token"),v=j(!1),h=j(""),f=j(!1),P=j(null);function c(){h.value="",v.value=!0,Xt(()=>P.value.focus())}async function C(){f.value=!0;const x=h.value.replace("maa://",""),{data:b}=await n.get(`https://prts.maa.plus/copilot/get/${x}`,{transformRequest:[(R,S)=>(delete S.token,JSON.stringify(R))]}),F=new FormData;F.append("copilot",new Blob([b.data.content],{type:"application/json"}));const D=await n.post(u,F);r.value=D.data,v.value=!1,f.value=!1}const w=te(),{conf:m}=Z(w);return(x,b)=>{const F=mt,D=ze,R=Te,S=Pe,A=re,Y=ue,N=Ae,U=ce,k=al,V=dl,M=Ye,H=ie;return g(),O(R,{vertical:""},{default:l(()=>[e(F,{title:"请检查作业并修正其中的错误!",type:"warning"}),e(H,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(A,{label:"难度选择"},{default:l(()=>[e(S,{value:t(m).sss.mode,"onUpdate:value":b[0]||(b[0]=z=>t(m).sss.mode=z)},{default:l(()=>[e(R,null,{default:l(()=>[e(D,{value:"normal"},{default:l(()=>b[5]||(b[5]=[d("标准补给模式")])),_:1}),e(D,{value:"ex"},{default:l(()=>b[6]||(b[6]=[d("应急补给模式")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(A,{"show-label":!1},{default:l(()=>[e(Y,{checked:t(m).sss.choose_agent,"onUpdate:checked":b[1]||(b[1]=z=>t(m).sss.choose_agent=z)},{default:l(()=>b[7]||(b[7]=[d(" 自动编队(缺人时自动借助战) ")])),_:1},8,["checked"])]),_:1}),e(A,{"show-label":!1},{default:l(()=>[e(Y,{checked:t(m).sss.finish_while_full,"onUpdate:checked":b[2]||(b[2]=z=>t(m).sss.finish_while_full=z)},{default:l(()=>b[8]||(b[8]=[d("模组刷满时直接结束")])),_:1},8,["checked"])]),_:1}),e(A,{label:"导入作业"},{default:l(()=>[s("div",Il,[t(v)?(g(),B(X,{key:0},[e(N,{ref_key:"code",ref:P,value:t(h),"onUpdate:value":b[3]||(b[3]=z=>_t(h)?h.value=z:null),type:"text",placeholder:"maa://114514",disabled:t(f)},null,8,["value","disabled"]),e(U,{onClick:C,loading:t(f),disabled:t(f)},{default:l(()=>b[9]||(b[9]=[d(" 下载 ")])),_:1},8,["loading","disabled"]),e(U,{onClick:b[4]||(b[4]=z=>v.value=!1)},{default:l(()=>b[10]||(b[10]=[d("取消")])),_:1})],64)):(g(),B(X,{key:1},[e(U,{style:{"flex-grow":"1"},onClick:c},{default:l(()=>b[11]||(b[11]=[d("输入“神秘代码”")])),_:1}),e(k,{style:{width:"auto","flex-grow":"1"},"trigger-style":"width: 100%",action:u,headers:{token:t(i)},"show-file-list":!1,name:"copilot",onFinish:a},{default:l(()=>[e(U,{style:{width:"100%"}},{default:l(()=>b[12]||(b[12]=[d("选择作业文件")])),_:1})]),_:1},8,["headers"])],64))])]),_:1}),e(A,{label:"作业信息"},{default:l(()=>[e(R,{vertical:""},{default:l(()=>[t(r).exists?(g(),B("div",Fl,[s("div",Ml,J(t(r).title),1),e(V,{style:{"max-height":"240px"},"content-style":"padding-right: 12px",trigger:"none"},{default:l(()=>[d(J(t(r).details),1)]),_:1})])):(g(),B("div",Dl,"未选择作业")),(g(!0),B(X,null,ye(t(r).operators,z=>(g(),O(R,{align:"center"},{default:l(()=>[e(M,{src:`avatar/${z.name}.webp`},null,8,["src"]),s("div",null,J(z.name)+"("+J(z.skill)+"技能)",1)]),_:2},1024))),256))]),_:1})]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},Ll=be(Vl,[["__scopeId","data-v-2dffb781"]]);async function Nl(){return(await ut.get("/dialog/file")).data}async function bt(){return(await ut.get("/dialog/folder")).data}const El={class:"misc-container"},jl={__name:"MaaBasic",setup(p){const y=G("axios"),n=G("mobile"),u=te(),{conf:r}=Z(u);async function a(){const c=await bt();c&&(r.value.maa_path=c)}const i=j("");async function v(){i.value="正在测试……";const c=await y.get("/check-maa");i.value=c.data}const h=j([]);async function f(){const c=await y.get("/maa-conn-preset");r.value.maa_conn_presets=c.data.map(C=>({label:C,value:C}))}const P=["maatouch","minitouch","adb"].map(c=>({label:c,value:c}));return(c,C)=>{const w=Ue,m=Ze,x=Ae,b=ce,F=re,D=ge,R=ie;return g(),B(X,null,[e(w),e(m,{class:"header"},{default:l(()=>C[3]||(C[3]=[d("Maa设置")])),_:1}),e(R,{"label-placement":t(n)?"top":"left","show-feedback":!1,"label-width":"96","label-align":"left"},{default:l(()=>[e(F,{label:"Maa目录"},{default:l(()=>[e(x,{type:"textarea",autosize:!0,value:t(r).maa_path,"onUpdate:value":C[0]||(C[0]=S=>t(r).maa_path=S)},null,8,["value"]),e(b,{onClick:a,class:"dialog-btn"},{default:l(()=>C[4]||(C[4]=[d("...")])),_:1})]),_:1}),e(F,{label:"连接配置"},{default:l(()=>[e(D,{options:t(h),value:t(r).maa_conn_preset,"onUpdate:value":C[1]||(C[1]=S=>t(r).maa_conn_preset=S)},null,8,["options","value"]),e(b,{onClick:f,class:"dialog-btn"},{default:l(()=>C[5]||(C[5]=[d("刷新")])),_:1})]),_:1}),e(F,{label:"触控模式"},{default:l(()=>[e(D,{value:t(r).maa_touch_option,"onUpdate:value":C[2]||(C[2]=S=>t(r).maa_touch_option=S),options:t(P)},null,8,["value","options"])]),_:1})]),_:1},8,["label-placement"]),e(w),s("div",El,[e(b,{onClick:v},{default:l(()=>C[6]||(C[6]=[d("测试设置")])),_:1}),s("div",null,J(t(i)),1)]),e(w,{style:{margin:"12px 0 16px"}})],64)}}},ql=be(jl,[["__scopeId","data-v-d479d5bf"]]),Hl={__name:"MaaRogue",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=Qe(),{operators:a}=Z(r),i=[{label:"傀影与猩红孤钻",value:"Phantom"},{label:"水月与深蓝之树",value:"Mizuki"},{label:"探索者的银凇止境",value:"Sami"},{label:"萨卡兹的无终奇语",value:"Sarkaz"}],v={Phantom:["研究","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Mizuki:["心胜于物","物尽其用","以人为本","研究","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Sami:["永恒狩猎","生活至上","科学主义","特训","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"],Sarkaz:["因地制宜","魂灵护送","博闻广记","蓝图测绘","指挥","集群","后勤","矛头","突击战术","堡垒战术","远程战术","破坏战术","高规格"]};for(const C in v)v[C]=v[C].map(w=>({label:w+"分队",value:w+"分队"}));const h=[{label:"先手必胜(先锋、狙击、特种)",value:"先手必胜"},{label:"稳扎稳打(重装、术师、狙击)",value:"稳扎稳打"},{label:"取长补短(近卫、辅助、医疗)",value:"取长补短"},{label:"随心所欲(随机)",value:"随心所欲"}],f=[{label:"刷蜡烛,尽可能稳定地打更多层数",value:0},{label:"刷源石锭,第一层投资完就退出",value:1},{label:"【即将弃用】兼顾",value:2},{label:"刷开局,到达第三层后直接退出",value:4},{label:"刷坍缩范式",value:5}],P=["去量化","去量深化","实质性坍缩","蔓延性坍缩","非线性移动","非线性行动","情绪实体","恐怖实体","泛社会悖论","泛文明悖论","气压异常","气压失序","触发性损伤","触发性危殆","趋同性消耗","趋同性缺失","目空一些","睁眼瞎","图像损坏","一抹黑"],c=[];for(const C of P)c.push({label:C,value:C});return(C,w)=>{const m=ql,x=ge,b=re,F=ue,D=ie;return g(),B(X,null,[e(m),e(D,{"label-placement":t(y)?"top":"left","show-feedback":!1,class:"conf.rogue"},{default:l(()=>[e(b,{label:"主题"},{default:l(()=>[e(x,{value:t(u).maa_rg_theme,"onUpdate:value":w[0]||(w[0]=R=>t(u).maa_rg_theme=R),options:i},null,8,["value"])]),_:1}),e(b,{label:"分队"},{default:l(()=>[e(x,{value:t(u).rogue.squad,"onUpdate:value":w[1]||(w[1]=R=>t(u).rogue.squad=R),options:v[t(u).maa_rg_theme]},null,8,["value","options"])]),_:1}),e(b,{label:"职业"},{default:l(()=>[e(x,{value:t(u).rogue.roles,"onUpdate:value":w[2]||(w[2]=R=>t(u).rogue.roles=R),options:h},null,8,["value"])]),_:1}),e(b,{label:"干员"},{default:l(()=>[e(x,{filterable:"",options:t(a),value:t(u).rogue.core_char,"onUpdate:value":w[3]||(w[3]=R=>t(u).rogue.core_char=R),filter:(R,S)=>t(Xe)(S.label,R),"render-label":t(De)},null,8,["options","value","filter","render-label"])]),_:1}),e(b,{"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.use_support,"onUpdate:checked":w[4]||(w[4]=R=>t(u).rogue.use_support=R)},{default:l(()=>w[9]||(w[9]=[d("开局干员使用助战")])),_:1},8,["checked"])]),_:1}),t(u).rogue.use_support?(g(),O(b,{key:0,"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.use_nonfriend_support,"onUpdate:checked":w[5]||(w[5]=R=>t(u).rogue.use_nonfriend_support=R)},{default:l(()=>w[10]||(w[10]=[d("开局干员使用非好友助战")])),_:1},8,["checked"])]),_:1})):E("",!0),e(b,{label:"策略"},{default:l(()=>[e(x,{options:f,value:t(u).rogue.mode,"onUpdate:value":w[6]||(w[6]=R=>t(u).rogue.mode=R)},null,8,["value"])]),_:1}),e(b,{"show-label":!1},{default:l(()=>[e(F,{checked:t(u).rogue.refresh_trader_with_dice,"onUpdate:checked":w[7]||(w[7]=R=>t(u).rogue.refresh_trader_with_dice=R)},{default:l(()=>w[11]||(w[11]=[d("刷新商店(指路鳞)")])),_:1},8,["checked"])]),_:1}),e(b,{label:"坍缩范式"},{default:l(()=>[e(x,{multiple:"",options:c,value:t(u).rogue.expected_collapsal_paradigms,"onUpdate:value":w[8]||(w[8]=R=>t(u).rogue.expected_collapsal_paradigms=R)},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])],64)}}},Gl={key:0},Kl={__name:"LongTasks",setup(p){const y=te(),{conf:n}=Z(y),u=G("mobile"),r=[{label:"集成战略 (Maa)",value:"rogue"},{label:"保全派驻",value:"sss"},{label:"生息演算",value:"ra"},{label:"隐秘战线",value:"sf"}];return(a,i)=>{const v=ue,h=_e,f=ge,P=tl,c=wl,C=vl,w=ie,m=Hl,x=Ll,b=Bl,F=Ol,D=pe;return g(),O(D,null,{header:l(()=>[e(v,{checked:t(n).maa_rg_enable,"onUpdate:checked":i[0]||(i[0]=R=>t(n).maa_rg_enable=R),disabled:!t(n).maa_enable},{default:l(()=>i[4]||(i[4]=[s("div",{class:"card-title"},"大型任务",-1)])),_:1},8,["checked","disabled"]),e(h,null,{default:l(()=>[t(n).maa_enable?(g(),B(X,{key:1},[i[5]||(i[5]=s("div",null,"开始与结束时间设置为相同值时全天开启。",-1)),i[6]||(i[6]=s("div",null,"若结束时间早于开始时间,则表示开启至次日。例如:",-1)),i[7]||(i[7]=s("ul",null,[s("li",null,"23:00开始、8:00结束:表示从23:00至次日8:00执行大型任务;"),s("li",null,"10:00开始、14:00结束:表示从10:00至当日14:00执行大型任务。")],-1))],64)):(g(),B("div",Gl,"需开启日常任务"))]),_:1}),e(f,{value:t(n).maa_long_task_type,"onUpdate:value":i[1]||(i[1]=R=>t(n).maa_long_task_type=R),options:r},null,8,["value"])]),default:l(()=>[e(w,{"label-placement":t(u)?"top":"left","show-feedback":!1,style:{"margin-bottom":"12px"}},{default:l(()=>[e(C,{cols:"2"},{default:l(()=>[e(c,{label:"开始时间"},{default:l(()=>[e(P,{format:"H:mm","formatted-value":t(n).maa_rg_sleep_max,"onUpdate:formattedValue":i[2]||(i[2]=R=>t(n).maa_rg_sleep_max=R)},null,8,["formatted-value"])]),_:1}),e(c,{label:"停止时间"},{default:l(()=>[e(P,{format:"H:mm","formatted-value":t(n).maa_rg_sleep_min,"onUpdate:formattedValue":i[3]||(i[3]=R=>t(n).maa_rg_sleep_min=R)},null,8,["formatted-value"])]),_:1})]),_:1})]),_:1},8,["label-placement"]),t(n).maa_long_task_type=="rogue"?(g(),O(m,{key:0})):t(n).maa_long_task_type=="sss"?(g(),O(x,{key:1})):t(n).maa_long_task_type=="ra"?(g(),O(b,{key:2})):t(n).maa_long_task_type=="sf"?(g(),O(F,{key:3})):E("",!0)]),_:1})}}};var gt={};Object.defineProperty(gt,"__esModule",{value:!0});const $e=Jt,Wl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Yl=(0,$e.createElementVNode)("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[(0,$e.createElementVNode)("path",{d:"M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4"}),(0,$e.createElementVNode)("path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"})],-1),Ql=[Yl];var Xl=gt.default=(0,$e.defineComponent)({name:"Refresh",render:function(y,n){return(0,$e.openBlock)(),(0,$e.createElementBlock)("svg",Wl,Ql)}});const Jl={key:0},Zl={key:1},en={class:"tasktable"},tn={key:0,class:"today"},ln={key:1},nn={__name:"WeeklyPlan",setup(p){Zt(U=>({"06f96d6a":t(x),"292d8683":t(b),"6d545694":t(N)}));const y=te(),{conf:n}=Z(y);function u(){const U=new Date().getDay();return U==0?6:U-1}const r=["一","二","三","四","五","六","日"],a=["","Annihilation"],i=["1-7","LS-6","CE-6","AP-5","SK-5","CA-5","PR-A-2","PR-A-1","PR-B-2","PR-B-1","PR-C-2","PR-C-1","PR-D-2","PR-D-1"],v={CE:[1,3,5,6],AP:[0,3,5,6],SK:[0,2,4,5],CA:[1,2,4,6],"PR-A":[0,3,4,6],"PR-B":[0,1,4,5],"PR-C":[2,3,5,6],"PR-D":[1,2,5,6]};function h(U){switch(U){case"":return"上次作战";case"Annihilation":return"当期剿灭";case"LS-6":return"经验书";case"CE-6":return"龙门币";case"AP-5":return"红票";case"SK-5":return"碳本";case"CA-5":return"技能书";case"PR-A-1":return"医疗重装1";case"PR-A-2":return"医疗重装2";case"PR-B-1":return"狙击术师1";case"PR-B-2":return"狙击术师2";case"PR-C-1":return"先锋辅助1";case"PR-C-2":return"先锋辅助2";case"PR-D-1":return"近卫特种1";case"PR-D-2":return"近卫特种2";default:return U}}const f=L(()=>{const U=[];for(const k of a){const V=[];for(let M=0;M<7;++M)V.push({available:!0,enable:n.value.weekly_plan[M].general.includes(k)});U.push({stage:k,week:V})}for(const k of n.value.custom_stages){const V=[];for(let M=0;M<7;++M)V.push({available:!0,enable:n.value.weekly_plan[M].custom.includes(k)});U.push({stage:k,week:V})}for(const k of i){let V=[0,1,2,3,4,5,6];for(const[H,z]of Object.entries(v))if(k.includes(H)){V=z;break}const M=[];for(let H=0;H<7;++H)M.push({available:V.includes(H),enable:n.value.weekly_plan[H].general.includes(k)});U.push({stage:k,week:M})}return U});function P(U){const k=[];for(let V=0;V<7;++V){const M={general:[],custom:[]};for(const{stage:H,week:z}of U)z[V].enable&&H!=null&&(n.value.custom_stages.includes(H)?M.custom.push(H):M.general.push(H));k.push(M)}n.value.weekly_plan=k}function c(U){const k=tt(f.value);let V=!1;for(const M of k[U].week)M.enable!=M.available&&(V=!0,M.enable=M.available);if(!V)for(const M of k[U].week)M.enable=!1;P(k)}function C(U,k){const V=tt(f.value);V[U].week[k].enable=!V[U].week[k].enable,P(V)}function w(U){return U=U.toUpperCase(),U==" "||U=="上次作战"?{label:"上次作战",value:""}:U=="当期剿灭"?{label:"当期剿灭",value:"Annihilation"}:U.endsWith("磨难")||U.endsWith("标准")?(U=U.slice(0,-2),{label:U,value:U}):{label:U,value:U}}const m=G("mobile"),x=L(()=>n.value.theme=="light"?"hsl(33, 30%, 91%)":"hsl(33, 15%, 50%)"),b=L(()=>n.value.theme=="light"?"hsl(200, 90%, 65%)":"hsl(200, 80%, 30%)"),F="/activity",D=j([]),R=G("axios");async function S(){const{data:U}=await R.get(F);D.value=U.reverse()}pt(()=>{S()});function A(U,k){k.dataTransfer.setData("text",U)}function Y(U,k){k.preventDefault();const V=k.dataTransfer.getData("text");n.value.custom_stages[U-2]=V}const N=L(()=>n.value.theme=="light"?"rgba(194, 194, 194, 1)":"rgba(255, 255, 255, 0.38)");return(U,k)=>{const V=_e,M=ue,H=re,z=Te,q=ie,le=vt,de=el,I=ce,o=ge,ne=pe;return g(),O(ne,null,{header:l(()=>[s("div",{class:nt(["card-title",{disabled:!t(n).maa_enable}])},"刷理智周计划",2),e(V,null,{default:l(()=>[t(n).maa_enable?(g(),B(X,{key:1},[k[5]||(k[5]=s("div",null,"支持所有主线关卡;",-1)),k[6]||(k[6]=s("div",null,"含磨难的主线关卡仅需填写关卡名,会自动选择难度。",-1))],64)):(g(),B("div",Jl,"需开启日常任务"))]),_:1})]),default:l(()=>[e(q,{"label-placement":t(m)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left",style:{"margin-bottom":"16px"}},{default:l(()=>[e(H,{class:"form-item","show-label":!1},{default:l(()=>[e(M,{checked:t(n).use_all_medicine,"onUpdate:checked":k[0]||(k[0]=$=>t(n).use_all_medicine=$)},{default:l(()=>k[7]||(k[7]=[d("自动使用全部理智药")])),_:1},8,["checked"])]),_:1}),e(H,{class:"form-item","show-label":!1},{default:l(()=>[e(z,null,{default:l(()=>[e(M,{checked:t(n).maa_expiring_medicine,"onUpdate:checked":k[1]||(k[1]=$=>t(n).maa_expiring_medicine=$),disabled:t(n).use_all_medicine},{default:l(()=>k[8]||(k[8]=[d(" 自动使用将要过期(约3天)的理智药 ")])),_:1},8,["checked","disabled"]),e(M,{checked:t(n).exipring_medicine_on_weekend,"onUpdate:checked":k[2]||(k[2]=$=>t(n).exipring_medicine_on_weekend=$),disabled:t(n).use_all_medicine||!t(n).maa_expiring_medicine},{default:l(()=>k[9]||(k[9]=[d(" 仅在周末使用 ")])),_:1},8,["checked","disabled"])]),_:1})]),_:1})]),_:1},8,["label-placement"]),e(z,{class:"activity"},{default:l(()=>[t(D).length>0?(g(!0),B(X,{key:0},ye(t(D),$=>(g(),O(le,{draggable:"true",onDragstart:K=>A($,K)},{default:l(()=>[d(J($),1)]),_:2},1032,["onDragstart"]))),256)):(g(),B("div",Zl,"当前暂无活动开放")),e(I,{text:"",type:"primary",onClick:S},{icon:l(()=>[e(de,null,{default:l(()=>[e(t(Xl))]),_:1})]),_:1})]),_:1}),s("div",en,[s("table",null,[s("thead",null,[s("tr",null,[k[10]||(k[10]=s("th",null,"全选",-1)),k[11]||(k[11]=s("th",null,"关卡",-1)),(g(),B(X,null,ye(7,$=>s("th",{key:$},[d(J(r[$-1])+" ",1),u()==$-1?(g(),B("div",tn,"今天")):E("",!0)])),64))])]),s("tbody",null,[(g(!0),B(X,null,ye(t(f),({stage:$,week:K},Q)=>(g(),B("tr",{key:Q},[s("td",null,[e(I,{quaternary:"",class:"class1",onClick:W=>c(Q),style:{width:"100%",height:"100%"}},null,8,["onClick"])]),s("td",null,[2<=Q&&Q<5?(g(),B(X,{key:0},[$==null?(g(),O(o,{key:0,placeholder:"关卡",value:t(n).custom_stages[Q-2],"onUpdate:value":[W=>t(n).custom_stages[Q-2]=W,W=>{t(n).custom_stages[Q-2]=W[0]}],filterable:"",multiple:"",tag:"",show:!1,"show-arrow":!1,"on-create":w,onDragover:k[3]||(k[3]=ot(()=>{},["prevent"])),onDrop:W=>Y(Q,W)},null,8,["value","onUpdate:value","onDrop"])):(g(),O(le,{key:1,closable:"",class:"custom-tag",onClose:()=>{t(n).custom_stages[Q-2]=null,P(t(f))},onDragover:k[4]||(k[4]=ot(()=>{},["prevent"])),onDrop:W=>Y(Q,W)},{default:l(()=>[d(J($),1)]),_:2},1032,["onClose","onDrop"]))],64)):(g(),B("span",ln,J(h($)),1))]),(g(!0),B(X,null,ye(K,(W,ee)=>(g(),B("td",{class:nt({class2:W.enable,class1:W.available})},[W.available?(g(),O(I,{key:0,quaternary:"",style:{width:"100%",height:"100%"},onClick:ke=>C(Q,ee)},{default:l(()=>[s("span",null,[W.enable?(g(),B(X,{key:0},[d("打")],64)):E("",!0)])]),_:2},1032,["onClick"])):E("",!0)],2))),256))]))),128))])])])]),_:1})}}},on=be(nn,[["__scopeId","data-v-6e42e723"]]),an={key:0},sn={key:1},rn={__name:"Clue",setup(p){const y=te(),{conf:n,shop_list:u}=Z(y),r=Qe(),{operators:a}=Z(r),i=G("mobile");function v({option:w,handleClose:m}){return T(vt,{type:w.type,closable:!0,onMousedown:x=>{x.preventDefault()},onClose:x=>{x.stopPropagation(),m()}},{default:()=>w.label,avatar:()=>T(Ye,{src:`/shop/${w.label}.png`})})}function h(w){return T("div",{style:{display:"flex","align-items":"center",gap:"6px",padding:"2px 0"}},[T(Ye,{src:`/shop/${w.label}.png`}),w.label])}const f=[{label:"向上",value:"Up"},{label:"向下",value:"Down"},{label:"向左",value:"Left"},{label:"向右",value:"Right"}],P=[{label:"第一编队",value:1},{label:"第二编队",value:2},{label:"第三编队",value:3},{label:"第四编队",value:4}],c=[{label:"一技能",value:1},{label:"二技能",value:2},{label:"三技能",value:3}],C=j(!1);return(w,m)=>{const x=ue,b=Ue,F=ce,D=_e,R=Ze,S=ze,A=Je,Y=Pe,N=re,U=ge,k=xe,V=ct,M=ie,H=pe;return g(),O(H,null,{header:l(()=>[e(x,{checked:t(n).enable_party,"onUpdate:checked":m[0]||(m[0]=z=>t(n).enable_party=z)},{default:l(()=>m[14]||(m[14]=[s("div",{class:"card-title"},"线索收集与信用",-1)])),_:1},8,["checked"])]),default:l(()=>[e(x,{checked:t(n).leifeng_mode,"onUpdate:checked":m[1]||(m[1]=z=>t(n).leifeng_mode=z)},{default:l(()=>m[15]||(m[15]=[d("赠送多余的线索")])),_:1},8,["checked"]),e(b),e(R,null,{default:l(()=>[m[19]||(m[19]=d(" 信用商店购物 ")),e(D,null,{default:l(()=>[m[17]||(m[17]=s("span",null,"性价比参考:",-1)),e(F,{text:"",tag:"a",href:"https://github.com/Bidgecfah/Rhodes-Island-Bureau-of-Price",target:"_blank",type:"primary"},{default:l(()=>m[16]||(m[16]=[d(" 罗德岛物价局 ")])),_:1}),m[18]||(m[18]=s("p",null,"注意:跑单时赤金与作战记录均大幅升值",-1))]),_:1})]),_:1}),e(M,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"72","label-align":"left"},{default:l(()=>[e(N,{label:"信用溢出"},{default:l(()=>[e(Y,{value:t(n).maa_mall_ignore_blacklist_when_full,"onUpdate:value":m[2]||(m[2]=z=>t(n).maa_mall_ignore_blacklist_when_full=z)},{default:l(()=>[e(A,null,{default:l(()=>[e(S,{value:!1},{default:l(()=>m[20]||(m[20]=[d("停止购买")])),_:1}),e(S,{value:!0},{default:l(()=>m[21]||(m[21]=[d("无视黑名单继续购买,直至不再溢出")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(N,{label:"优先购买"},{default:l(()=>[e(Y,{value:t(n).maa_mall_ignore_blacklist_when_full,"onUpdate:value":m[4]||(m[4]=z=>t(n).maa_mall_ignore_blacklist_when_full=z)},{default:l(()=>[e(U,{multiple:"",filterable:"",tag:"",options:t(u),value:t(n).maa_mall_buy,"onUpdate:value":m[3]||(m[3]=z=>t(n).maa_mall_buy=z),"render-tag":v,"render-label":h},null,8,["options","value"])]),_:1},8,["value"])]),_:1}),e(N,{label:"黑名单"},{default:l(()=>[e(U,{multiple:"",filterable:"",tag:"",options:t(u),value:t(n).maa_mall_blacklist,"onUpdate:value":m[5]||(m[5]=z=>t(n).maa_mall_blacklist=z),"render-tag":v,"render-label":h},null,8,["options","value"])]),_:1}),e(b),e(M,{"label-placement":t(i)?"top":"left","show-feedback":!1,class:"rogue"},{default:l(()=>[e(N,{"show-label":!1},{default:l(()=>[e(x,{checked:t(n).maa_credit_fight,"onUpdate:checked":m[6]||(m[6]=z=>t(n).maa_credit_fight=z),disabled:!t(n).maa_enable},{default:l(()=>m[22]||(m[22]=[s("div",{class:"item"},"信用作战",-1)])),_:1},8,["checked","disabled"]),e(D,null,{default:l(()=>[t(n).maa_enable?(g(),B("div",sn,"借助战打OF-1")):(g(),B("div",an,"需开启日常任务"))]),_:1})]),_:1}),e(N,{label:"编队"},{default:l(()=>[e(U,{options:P,value:t(n).credit_fight.squad,"onUpdate:value":m[7]||(m[7]=z=>t(n).credit_fight.squad=z)},null,8,["value"])]),_:1}),e(N,{label:"干员"},{default:l(()=>[e(U,{style:{flex:"3","margin-right":"8px"},filterable:"",options:t(a),value:t(n).credit_fight.operator,"onUpdate:value":m[8]||(m[8]=z=>t(n).credit_fight.operator=z),filter:(z,q)=>t(Xe)(q.label,z),"render-label":t(De)},null,8,["options","value","filter","render-label"]),e(U,{style:{flex:"2"},options:c,value:t(n).credit_fight.skill,"onUpdate:value":m[9]||(m[9]=z=>t(n).credit_fight.skill=z)},null,8,["value"])]),_:1}),e(N,{label:"部署"},{default:l(()=>[m[23]||(m[23]=s("div",{style:{width:"40px","text-align":"right"}},"X",-1)),e(k,{style:{margin:"0 8px"},value:t(n).credit_fight.x,"onUpdate:value":m[10]||(m[10]=z=>t(n).credit_fight.x=z),"show-button":!1},null,8,["value"]),m[24]||(m[24]=s("div",{style:{width:"40px","text-align":"right"}},"Y",-1)),e(k,{style:{margin:"0 8px"},value:t(n).credit_fight.y,"onUpdate:value":m[11]||(m[11]=z=>t(n).credit_fight.y=z),"show-button":!1},null,8,["value"]),e(U,{style:{width:"250px","margin-right":"8px"},options:f,value:t(n).credit_fight.direction,"onUpdate:value":m[12]||(m[12]=z=>t(n).credit_fight.direction=z)},null,8,["value"]),e(F,{onClick:m[13]||(m[13]=z=>C.value=!t(C))},{default:l(()=>[d(J(t(C)?"隐藏":"显示")+"OF-1地图",1)]),_:1})]),_:1}),t(C)?(g(),O(N,{key:0,"show-label":!1},{default:l(()=>[e(V,{src:"/map-OF-1.webp",width:"100%"})]),_:1})):E("",!0)]),_:1},8,["label-placement"])]),_:1},8,["label-placement"])]),_:1})}}},un=be(rn,[["__scopeId","data-v-748f667d"]]),dn={style:{display:"flex","align-items":"center",width:"100%"}},pn={style:{"margin-right":"24px"}},_n={__name:"Depotswitch",setup(p){const y=te(),{conf:n}=Z(y);return(u,r)=>{const a=ue,i=_e,v=ze,h=Te,f=Pe,P=pe;return g(),O(P,null,{header:l(()=>[e(a,{checked:t(n).maa_depot_enable,"onUpdate:checked":r[0]||(r[0]=c=>t(n).maa_depot_enable=c)},{default:l(()=>r[1]||(r[1]=[s("div",{class:"card-title"},"仓库物品混合读取",-1)])),_:1},8,["checked"]),e(i,null,{default:l(()=>r[2]||(r[2]=[d("请调整森空岛账号顺序,仅读取"),s("strong",null,"第一个",-1),d("账户"),s("strong",null,"指定服务器",-1),d("的材料")])),_:1})]),default:l(()=>[(g(!0),B(X,null,ye(t(n).skland_info,c=>(g(),B("div",{key:c.account},[s("div",dn,[s("div",pn,"森空岛账号:"+J(c.account),1),e(f,{value:c.cultivate_select,"onUpdate:value":C=>c.cultivate_select=C},{default:l(()=>[e(h,null,{default:l(()=>[e(v,{value:!0},{default:l(()=>r[3]||(r[3]=[d("官服")])),_:1}),e(v,{value:!1},{default:l(()=>r[4]||(r[4]=[d("B服")])),_:1})]),_:1})]),_:2},1032,["value","onUpdate:value"])])]))),128))]),_:1})}}},fn={__name:"Recruit",setup(p){const y=te(),{conf:n}=Z(y),u=G("mobile");return(r,a)=>{const i=ue,v=_e,h=xe,f=re,P=ze,c=Je,C=Pe,w=ie,m=pe;return g(),O(m,null,{header:l(()=>[e(i,{checked:t(n).recruit_enable,"onUpdate:checked":a[0]||(a[0]=x=>t(n).recruit_enable=x)},{default:l(()=>a[6]||(a[6]=[s("div",{class:"card-title"},"公开招募",-1)])),_:1},8,["checked"])]),default:l(()=>[e(w,{"label-placement":t(u)?"top":"left","show-feedback":!1,"label-width":"140","label-align":"left"},{default:l(()=>[e(f,null,{label:l(()=>[a[8]||(a[8]=s("span",null,"启动间隔",-1)),e(v,null,{default:l(()=>a[7]||(a[7]=[d("可填小数")])),_:1})]),default:l(()=>[e(h,{value:t(n).recruit_gap,"onUpdate:value":a[1]||(a[1]=x=>t(n).recruit_gap=x)},{suffix:l(()=>a[9]||(a[9]=[d("小时")])),_:1},8,["value"])]),_:1}),e(f,null,{label:l(()=>[a[11]||(a[11]=s("span",null,"三星招募阈值",-1)),e(v,null,{default:l(()=>a[10]||(a[10]=[d("剩余公招券大于此阈值时招募三星干员")])),_:1})]),default:l(()=>[e(h,{value:t(n).recruitment_permit,"onUpdate:value":a[2]||(a[2]=x=>t(n).recruitment_permit=x)},{suffix:l(()=>a[12]||(a[12]=[d("张")])),_:1},8,["value"])]),_:1}),e(f,{label:"五星招募策略"},{default:l(()=>[e(C,{value:t(n).recruit_auto_5,"onUpdate:value":a[3]||(a[3]=x=>t(n).recruit_auto_5=x)},{default:l(()=>[e(c,{justify:"start"},{default:l(()=>[e(P,{value:1},{default:l(()=>a[13]||(a[13]=[d("自动选择")])),_:1}),e(P,{value:2},{default:l(()=>a[14]||(a[14]=[d("手动选择")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(n).recruit_auto_5===2?(g(),O(f,{key:0,"show-label":!1},{default:l(()=>[e(i,{checked:t(n).recruit_auto_only5,"onUpdate:checked":a[4]||(a[4]=x=>t(n).recruit_auto_only5=x)},{default:l(()=>a[15]||(a[15]=[d("五星词条组合唯一时自动选择")])),_:1},8,["checked"])]),_:1})):E("",!0),e(f,{"show-label":!1},{default:l(()=>[e(i,{checked:t(n).recruit_robot,"onUpdate:checked":a[5]||(a[5]=x=>t(n).recruit_robot=x)},{default:l(()=>a[16]||(a[16]=[d("保留支援机械标签")])),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},mn=be(fn,[["__scopeId","data-v-707c6f48"]]),cn={__name:"DailyMission",setup(p){const y=te(),{conf:n}=Z(y);return(u,r)=>{const a=ue,i=Te,v=Ue,h=_e,f=xe,P=pe;return g(),O(P,{title:"每日任务"},{default:l(()=>[e(i,{vertical:""},{default:l(()=>[e(a,{checked:t(n).skland_enable,"onUpdate:checked":r[0]||(r[0]=c=>t(n).skland_enable=c)},{default:l(()=>r[9]||(r[9]=[s("div",{class:"item"},"森空岛签到",-1)])),_:1},8,["checked"]),(g(!0),B(X,null,ye(t(n).skland_info,c=>(g(),B("div",{key:c.account},[e(i,null,{default:l(()=>[e(a,{checked:c.isCheck,"onUpdate:checked":C=>c.isCheck=C,style:{"margin-right":"12px"}},{default:l(()=>[d(" 森空岛账号:"+J(c.account),1)]),_:2},1032,["checked","onUpdate:checked"]),e(a,{checked:c.sign_in_official,"onUpdate:checked":C=>c.sign_in_official=C,style:{"margin-right":"12px"}},{default:l(()=>r[10]||(r[10]=[d(" 官服签到 ")])),_:2},1032,["checked","onUpdate:checked"]),e(a,{checked:c.sign_in_bilibili,"onUpdate:checked":C=>c.sign_in_bilibili=C,style:{"margin-right":"12px"}},{default:l(()=>r[11]||(r[11]=[d(" B服签到 ")])),_:2},1032,["checked","onUpdate:checked"])]),_:2},1024)]))),128)),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).check_mail_enable,"onUpdate:checked":r[1]||(r[1]=c=>t(n).check_mail_enable=c)},{default:l(()=>r[12]||(r[12]=[s("div",{class:"item"},"领取邮件",-1)])),_:1},8,["checked"]),e(a,{checked:t(n).delete_read_mail,"onUpdate:checked":r[2]||(r[2]=c=>t(n).delete_read_mail=c)},{default:l(()=>r[13]||(r[13]=[d("删除已读邮件")])),_:1},8,["checked"])]),_:1}),e(v),e(a,{checked:t(n).visit_friend,"onUpdate:checked":r[3]||(r[3]=c=>t(n).visit_friend=c)},{default:l(()=>r[14]||(r[14]=[s("div",{class:"item"},"访问好友",-1)])),_:1},8,["checked"]),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).report_enable,"onUpdate:checked":r[4]||(r[4]=c=>t(n).report_enable=c)},{default:l(()=>r[15]||(r[15]=[s("div",{class:"item"},"读取基报",-1)])),_:1},8,["checked"])]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).sign_in.enable,"onUpdate:checked":r[5]||(r[5]=c=>t(n).sign_in.enable=c)},{default:l(()=>r[16]||(r[16]=[s("div",{class:"item"},"签到活动",-1)])),_:1},8,["checked"]),e(h,null,{default:l(()=>r[17]||(r[17]=[d("游戏内签到、矿区、限定池每日单抽等")])),_:1})]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).switch_assistants,"onUpdate:checked":r[6]||(r[6]=c=>t(n).switch_assistants=c)},{default:l(()=>r[18]||(r[18]=[s("div",{class:"item"},"基建副手",-1)])),_:1},8,["checked"]),e(f,{style:{"max-width":"220px"},value:t(n).trust_limit,"onUpdate:value":r[7]||(r[7]=c=>t(n).trust_limit=c),min:100,max:200,precision:0},{prefix:l(()=>r[19]||(r[19]=[d("信赖值阈值(≥)")])),suffix:l(()=>r[20]||(r[20]=[d("%")])),_:1},8,["value"])]),_:1}),e(v),e(i,null,{default:l(()=>[e(a,{checked:t(n).trade_token,"onUpdate:checked":r[8]||(r[8]=c=>t(n).trade_token=c)},{default:l(()=>r[21]||(r[21]=[s("div",{class:"item"},"信物兑换",-1)])),_:1},8,["checked"])]),_:1})]),_:1})]),_:1})}}},vn=be(cn,[["__scopeId","data-v-e95953da"]]),bn={__name:"AutoFight",setup(p){const y=G("mobile"),n=te(),{conf:u}=Z(n),r=[{label:"精零",value:0},{label:"精一",value:1},{label:"精二",value:2}];return(a,i)=>{const v=ue,h=re,f=_e,P=xe,c=Ue,C=Ze,w=ge,m=ie,x=pe;return g(),O(x,{title:"自动战斗设置"},{default:l(()=>[e(m,{"label-placement":t(y)?"top":"left","show-feedback":!1,"label-width":"110","label-align":"left"},{default:l(()=>[e(h,{"show-label":!1},{default:l(()=>[e(v,{checked:t(u).avatar_recog_pause,"onUpdate:checked":i[0]||(i[0]=b=>t(u).avatar_recog_pause=b)},{default:l(()=>i[6]||(i[6]=[d("识别干员时暂停")])),_:1},8,["checked"])]),_:1}),e(h,null,{label:l(()=>[i[8]||(i[8]=s("span",null,"第一段滑动",-1)),e(f,null,{default:l(()=>i[7]||(i[7]=[s("div",null,"把干员从待部署区域拖到地图上的对应位置",-1),s("div",null,"默认值:400毫秒",-1)])),_:1})]),default:l(()=>[e(P,{value:t(u).first_swipe_duration,"onUpdate:value":i[1]||(i[1]=b=>t(u).first_swipe_duration=b),precision:0},{suffix:l(()=>i[9]||(i[9]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e(h,null,{label:l(()=>[i[11]||(i[11]=s("span",null,"第二段滑动",-1)),e(f,null,{default:l(()=>i[10]||(i[10]=[s("div",null,"确认部署方向",-1),s("div",null,"默认值:200毫秒",-1)])),_:1})]),default:l(()=>[e(P,{value:t(u).second_swipe_duration,"onUpdate:value":i[2]||(i[2]=b=>t(u).second_swipe_duration=b),precision:0},{suffix:l(()=>i[12]||(i[12]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e(c),e(C,{class:"subtitle"},{default:l(()=>i[13]||(i[13]=[d("借助战")])),_:1}),e(h,{label:"精英化限制"},{default:l(()=>[e(w,{value:t(u).support.elite,"onUpdate:value":i[3]||(i[3]=b=>t(u).support.elite=b),options:r},null,8,["value"])]),_:1}),e(h,{label:"等级限制"},{default:l(()=>[e(P,{value:t(u).support.level,"onUpdate:value":i[4]||(i[4]=b=>t(u).support.level=b),min:1,max:90},null,8,["value"])]),_:1}),e(h,{label:"最大刷新次数"},{default:l(()=>[e(P,{value:t(u).support.refresh,"onUpdate:value":i[5]||(i[5]=b=>t(u).support.refresh=b),min:1},null,8,["value"])]),_:1})]),_:1},8,["label-placement"])]),_:1})}}},gn=be(bn,[["__scopeId","data-v-31c5d919"]]),kn={style:{display:"flex","align-items":"center",width:"100%"}},yn={class:"misc-container"},xn={__name:"SKLand",setup(p){const y=G("axios"),n=te(),{conf:u}=Z(n);function r(){return{isCheck:!0,account:"",password:"",sign_in_official:!0,sign_in_bilibili:!0,cultivate_select:!0}}const a=j("");async function i(){a.value="正在测试……";const v=await y.get("/check-skland");a.value=v.data}return(v,h)=>{const f=_e,P=Ae,c=ft,C=Ue,w=ce,m=pe;return g(),O(m,null,{header:l(()=>[h[2]||(h[2]=s("div",{class:"card-title"},"森空岛账号",-1)),e(f,null,{default:l(()=>h[1]||(h[1]=[s("div",null,"连接失败时,请尝试:",-1),s("ol",{style:{margin:"0"}},[s("li",null,"同步系统时间后再试;"),s("li",null,"检查账号密码是否正确;"),s("li",null,"关闭代理软件或设置分流规则;"),s("li",null,"登录森空岛App,查看是否需要人机验证。")],-1)])),_:1})]),default:l(()=>[e(c,{value:t(u).skland_info,"onUpdate:value":h[0]||(h[0]=x=>t(u).skland_info=x),"on-create":r,"show-sort-button":""},{default:l(({value:x})=>[s("div",kn,[e(P,{style:{"margin-right":"10px"},value:x.account,"onUpdate:value":b=>x.account=b,type:"text",placeholder:"账号"},null,8,["value","onUpdate:value"]),e(P,{value:x.password,"onUpdate:value":b=>x.password=b,type:"password","show-password-on":"click",placeholder:"密码"},null,8,["value","onUpdate:value"])])]),_:1},8,["value"]),e(C),s("div",yn,[e(w,{onClick:i},{default:l(()=>h[3]||(h[3]=[d("测试设置")])),_:1}),s("div",null,J(t(a)),1)])]),_:1})}}},hn={key:0},wn={key:1},Cn={key:0},Un={class:"email-test mt-16"},Sn={__name:"Email",setup(p){const y=te(),n=G("axios"),u=G("mobile"),r=j(""),{conf:a}=Z(y);async function i(){r.value="正在发送……";const h=await n.get("/test-email");r.value=h.data}const v=[{label:"INFO - 基建任务、刷理智、公招汇总、基报、活动签到等",value:"INFO"},{label:"WARNING - 版本过旧、组内心情差过大、漏单、公招稀有标签等",value:"WARNING"},{label:"ERROR - 无法排班、专精失败、Maa调用出错、森空岛签到失败、活动签到超时、OF-1失败等",value:"ERROR"}];return(h,f)=>{const P=ue,c=ce,C=xl,w=Pe,m=Ae,x=re,b=ze,F=Te,D=xe,R=_e,S=ge,A=ft,Y=ie,N=Ue,U=pe;return g(),O(U,null,{header:l(()=>[e(P,{checked:t(a).mail_enable,"onUpdate:checked":f[0]||(f[0]=k=>t(a).mail_enable=k),class:"email-title"},{default:l(()=>f[11]||(f[11]=[s("div",{class:"card-title"},"邮件提醒",-1),s("div",{class:"expand"},null,-1)])),_:1},8,["checked"]),t(u)?(g(),O(c,{key:0,onClick:f[1]||(f[1]=k=>t(a).custom_smtp_server.enable=!t(a).custom_smtp_server.enable),type:"primary",ghost:""},{default:l(()=>[d(J(t(a).custom_smtp_server.enable?"自定义邮箱":"QQ邮箱"),1)]),_:1})):(g(),O(w,{key:1,class:"email-mode",value:t(a).custom_smtp_server.enable,"onUpdate:value":f[2]||(f[2]=k=>t(a).custom_smtp_server.enable=k)},{default:l(()=>[e(C,{value:!1,label:"QQ邮箱"}),e(C,{value:!0,label:"自定义邮箱"})]),_:1},8,["value"]))]),default:l(()=>[e(Y,{"label-placement":t(u)?"top":"left","show-feedback":!1,"label-width":"96","label-align":"left"},{default:l(()=>[t(a).custom_smtp_server.enable?(g(),O(x,{key:0,label:"SMTP服务器"},{default:l(()=>[e(m,{value:t(a).custom_smtp_server.server,"onUpdate:value":f[3]||(f[3]=k=>t(a).custom_smtp_server.server=k)},null,8,["value"])]),_:1})):E("",!0),t(a).custom_smtp_server.enable?(g(),O(x,{key:1,label:"加密方式"},{default:l(()=>[e(w,{value:t(a).custom_smtp_server.encryption,"onUpdate:value":f[4]||(f[4]=k=>t(a).custom_smtp_server.encryption=k)},{default:l(()=>[e(F,null,{default:l(()=>[e(b,{value:"tls",label:"SSL/TLS"}),e(b,{value:"starttls",label:"STARTTLS"})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0),t(a).custom_smtp_server.enable?(g(),O(x,{key:2,label:"端口号"},{default:l(()=>[e(D,{value:t(a).custom_smtp_server.ssl_port,"onUpdate:value":f[5]||(f[5]=k=>t(a).custom_smtp_server.ssl_port=k)},null,8,["value"])]),_:1})):E("",!0),e(x,null,{label:l(()=>[t(a).custom_smtp_server.enable?(g(),B("span",hn,"账号")):(g(),B("span",wn,"QQ邮箱"))]),default:l(()=>[e(m,{value:t(a).account,"onUpdate:value":f[6]||(f[6]=k=>t(a).account=k)},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[t(a).custom_smtp_server.enable?(g(),B("span",Cn,"密码")):(g(),B(X,{key:1},[f[13]||(f[13]=s("span",null,"授权码",-1)),e(R,null,{default:l(()=>[e(c,{text:"",tag:"a",href:"https://service.mail.qq.com/detail/0/75",target:"_blank",type:"primary"},{default:l(()=>f[12]||(f[12]=[d(" https://service.mail.qq.com/detail/0/75 ")])),_:1})]),_:1})],64))]),default:l(()=>[e(m,{value:t(a).pass_code,"onUpdate:value":f[7]||(f[7]=k=>t(a).pass_code=k),type:"password","show-password-on":"click"},null,8,["value"])]),_:1}),e(x,{label:"通知等级"},{default:l(()=>[e(S,{value:t(a).notification_level,"onUpdate:value":f[8]||(f[8]=k=>t(a).notification_level=k),options:v},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[f[15]||(f[15]=s("span",null,"标题前缀",-1)),e(R,null,{default:l(()=>f[14]||(f[14]=[d("可用于区分来自多个Mower的邮件")])),_:1})]),default:l(()=>[e(m,{value:t(a).mail_subject,"onUpdate:value":f[9]||(f[9]=k=>t(a).mail_subject=k)},null,8,["value"])]),_:1}),e(x,null,{label:l(()=>[f[17]||(f[17]=s("span",null,"收件人",-1)),e(R,null,{default:l(()=>f[16]||(f[16]=[d("不填时将邮件发给自己")])),_:1})]),default:l(()=>[e(A,{value:t(a).recipient,"onUpdate:value":f[10]||(f[10]=k=>t(a).recipient=k)},null,8,["value"])]),_:1})]),_:1},8,["label-placement"]),e(N),s("div",Un,[e(c,{onClick:i},{default:l(()=>f[18]||(f[18]=[d("发送测试邮件")])),_:1}),s("div",null,J(t(r)),1)])]),_:1})}}},Rn=be(Sn,[["__scopeId","data-v-7cbc22ce"]]),$n={class:"grid-two"},Tn={class:"grid-left"},zn={key:0},Pn={class:"threshold"},An={class:"grid-right"},On={__name:"Settings",setup(p){const y=te(),{conf:n}=Z(y),u=Qe(),{operators:r}=Z(u),{left_side_facility:a}=u,i=G("mobile"),v=L(()=>[{label:"(加速任意贸易站)",value:""}].concat(a)),h=[{label:"夜神",value:"夜神"},{label:"MuMu模拟器12",value:"MuMu12"},{label:"Waydroid",value:"Waydroid"},{label:"雷电模拟器9",value:"雷电9"},{label:"ReDroid",value:"ReDroid"},{label:"MuMu模拟器Pro",value:"MuMuPro"},{label:"Genymotion",value:"Genymotion"},{label:"其它",value:""}],f=[{label:"使用adb命令启动",value:"adb"},{label:"点击屏幕启动",value:"tap"}],P=[{label:"什么都不做",value:"do_nothing"},{label:"返回桌面",value:"switch_to_home"},{label:"退出游戏",value:"exit_game"},{label:"退出模拟器",value:"close_emulator"}];async function c(){const I=await bt();I&&(n.value.emulator.emulator_folder=I)}const C={},w=[.5,1,1.5,2,3];for(let I=.5;I<=3;I+=.25)C[I]=w.includes(I)?`${I*100}%`:"";const m=j(n.value.webview.scale);async function x(){const I=await Nl();I&&(n.value.maa_adb_path=I)}const b=L(()=>{const I=[{label:"DroidCast_raw(主动,无损,较快)",value:"droidcast_raw"},{label:"ADB+Gzip(主动,无损,很慢)",value:"adb"},{label:"DroidCast(主动,有损,较快)",value:"droidcast"},{label:"scrcpy(被动,有损,特殊)",value:"scrcpy"},{label:"自定义(以下命令需要向STDOUT打印截图文件)",value:"diy"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12截图API(主动,无损,超快)",value:"mumuipc"}),I}),F=L(()=>{const I=[{label:"scrcpy",value:"scrcpy"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12触控API",value:"mumuipc"}),I}),D=L(()=>{const I=[{label:"ADB",value:"adb"}];return n.value.emulator.name=="MuMu12"&&I.push({label:"MuMu模拟器12应用管理器",value:"mumumanager"}),n.value.screencap_strategy=="scrcpy"&&n.value.control_strategy=="scrcpy"&&I.push({label:"scrcpy virtual display",value:"scrcpy"}),I}),R=j(!1),S=j(""),A=j(0),Y=j(!0),N=j(""),U=j(!1),k=G("axios");async function V(){U.value=!0,R.value=!1;try{const{data:I}=await k.get("/test-screenshot");Y.value=I.success,Y.value?(S.value=I.screenshot,A.value=I.elapsed):N.value=I.reason}finally{U.value=!1,R.value=!0}}const M={CONNECTING:"正在提交反馈至神经",UNKNOWN:"未知",UNKNOWN_WITH_NAVBAR:"有导航栏的未知场景",LOADING:"场景跳转时的等待界面",LOGIN_LOADING:"登录中",LOGIN_MAIN_NOENTRY:"登录页面(无按钮入口)",OPERATOR_ONGOING:"代理作战"},H=L(()=>A.value<=50?"success":A.value<=200?"default":A.value<=500?"warning":"error"),z=L(()=>["夜神","MuMu12","雷电9","ReDroid","Waydroid"].includes(n.value.emulator.name)),q=j(!1);async function le(){q.value=!0;const[I,o]=await Promise.all([k.get("/auto-get-path"),k.get("/get-adb-serial")]);q.value=!1,o.data!="OK"?de.error("请填写正确的多开编号!"):de.success("自动填写成功!")}const de=sl();return(I,o)=>{const ne=ge,$=re,K=_e,Q=Ae,W=ce,ee=xe,ke=Ue,Le=mt,oe=ze,he=Te,we=Pe,Be=Al,Ne=ct,Ie=Je,fe=ue,Se=ie,Re=pe,Ee=Tl,je=rl,Fe=kl,qe=Rn,kt=xn,yt=gn,xt=ll,ht=vn,wt=mn,Ct=_n,Ut=un,St=on,Rt=Kl;return g(),B("div",$n,[s("div",Tn,[s("div",null,[e(Re,{title:"设备与游戏设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"120","label-align":"left"},{default:l(()=>[e($,{label:"模拟器"},{default:l(()=>[e(ne,{value:t(n).emulator.name,"onUpdate:value":o[0]||(o[0]=_=>t(n).emulator.name=_),options:h},null,8,["value"])]),_:1}),t(n).emulator.name?(g(),O($,{key:0},{label:l(()=>[o[43]||(o[43]=s("span",null,"多开编号",-1)),e(K,null,{default:l(()=>o[42]||(o[42]=[s("div",null,"MuMu模拟器12的多开器中,第一个实例(锁形图标)的序号为0",-1),s("div",null,"夜神模拟器单开请填写-1",-1),s("div",null,"其它模拟器请填写多开器中的序号",-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.index,"onUpdate:value":o[1]||(o[1]=_=>t(n).emulator.index=_)},null,8,["value"]),t(z)?(g(),O(W,{key:0,class:"dialog-btn",onClick:le,loading:t(q)},{default:l(()=>o[44]||(o[44]=[d(" 自动填写设置 ")])),_:1},8,["loading"])):E("",!0)]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:1},{label:l(()=>[o[46]||(o[46]=s("span",null,"模拟器文件夹",-1)),e(K,null,{default:l(()=>o[45]||(o[45]=[s("div",null,"夜神:写到bin文件夹",-1),s("div",null,"MuMu12: 写到shell文件夹",-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.emulator_folder,"onUpdate:value":o[2]||(o[2]=_=>t(n).emulator.emulator_folder=_),type:"textarea",autosize:!0},null,8,["value"]),e(W,{onClick:c,class:"dialog-btn"},{default:l(()=>o[47]||(o[47]=[d("...")])),_:1})]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:2,label:"模拟器启动时间"},{default:l(()=>[e(ee,{value:t(n).emulator.wait_time,"onUpdate:value":o[3]||(o[3]=_=>t(n).emulator.wait_time=_)},{suffix:l(()=>o[48]||(o[48]=[d("秒")])),_:1},8,["value"])]),_:1})):E("",!0),t(n).emulator.name?(g(),O($,{key:3},{label:l(()=>[o[54]||(o[54]=s("span",null,"模拟器老板键",-1)),e(K,null,{default:l(()=>[o[51]||(o[51]=s("div",null,"启动模拟器后按此快捷键",-1)),o[52]||(o[52]=s("div",null,"若不需要此功能,请留空",-1)),o[53]||(o[53]=s("div",null,"加号分隔按键,不要空格",-1)),s("div",null,[o[50]||(o[50]=d(" 按键名参考 ")),e(W,{text:"",tag:"a",href:"https://pyautogui.readthedocs.io/en/latest/keyboard.html#keyboard-keys",target:"_blank",type:"primary"},{default:l(()=>o[49]||(o[49]=[d(" KEYBOARD_KEYS ")])),_:1})])]),_:1})]),default:l(()=>[e(Q,{value:t(n).emulator.hotkey,"onUpdate:value":o[4]||(o[4]=_=>t(n).emulator.hotkey=_),placeholder:"留空停用;组合键用加号分隔"},null,8,["value"])]),_:1})):E("",!0),e(ke),e($,{label:"ADB路径"},{default:l(()=>[e(Q,{type:"textarea",autosize:!0,value:t(n).maa_adb_path,"onUpdate:value":o[5]||(o[5]=_=>t(n).maa_adb_path=_)},null,8,["value"]),e(W,{onClick:x,class:"dialog-btn"},{default:l(()=>o[55]||(o[55]=[d("...")])),_:1})]),_:1}),e($,null,{label:l(()=>[o[57]||(o[57]=s("span",null,"ADB连接地址",-1)),e(K,null,{default:l(()=>o[56]||(o[56]=[s("div",null,"不同模拟器adb地址不同。如不填,系统会自动去寻找adb device中的第一个。",-1),s("div",null,[d("夜神:"),s("code",null,"127.0.0.1:62001")],-1)])),_:1})]),default:l(()=>[e(Q,{value:t(n).adb,"onUpdate:value":o[6]||(o[6]=_=>t(n).adb=_)},null,8,["value"])]),_:1}),e(ke),e($,{label:"截图方案"},{default:l(()=>[e(ne,{value:t(n).screencap_strategy,"onUpdate:value":o[7]||(o[7]=_=>t(n).screencap_strategy=_),options:t(b)},null,8,["value","options"])]),_:1}),t(n).emulator.name=="MuMu12"&&t(n).screencap_strategy!="mumuipc"?(g(),O(Le,{key:4,title:"推荐使用MuMu模拟器12专属截图",closable:"",style:{margin:"8px 0"},type:"success"},{default:l(()=>o[58]||(o[58]=[d(" 通过共享内存的方式直接获取无损截图,避免了编码、解码、跨进程传输等环节的开销,截图速度远高于通用截图方案。 ")])),_:1})):E("",!0),e($,{label:"触控方案"},{default:l(()=>[e(ne,{value:t(n).control_strategy,"onUpdate:value":o[8]||(o[8]=_=>t(n).control_strategy=_),options:t(F)},null,8,["value","options"])]),_:1}),e($,{label:"应用控制方案"},{default:l(()=>[e(ne,{value:t(n).app_control_strategy,"onUpdate:value":o[9]||(o[9]=_=>t(n).app_control_strategy=_),options:t(D)},null,8,["value","options"])]),_:1}),t(n).screencap_strategy=="droidcast"?(g(),O($,{key:5,label:"旋转截图"},{default:l(()=>[e(we,{value:t(n).droidcast.rotate,"onUpdate:value":o[10]||(o[10]=_=>t(n).droidcast.rotate=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:!1},{default:l(()=>o[59]||(o[59]=[d("不旋转")])),_:1}),e(oe,{value:!0},{default:l(()=>o[60]||(o[60]=[d("旋转180度")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0),t(n).screencap_strategy=="droidcast_raw"?(g(),B(X,{key:6},[e($,{label:"屏幕朝向"},{default:l(()=>[e(we,{value:t(n).droidcast_raw.orientation,"onUpdate:value":o[11]||(o[11]=_=>t(n).droidcast_raw.orientation=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:"portrait"},{default:l(()=>o[61]||(o[61]=[d("竖屏")])),_:1}),e(oe,{value:"landscape"},{default:l(()=>o[62]||(o[62]=[d("横屏")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(n).screencap_strategy=="droidcast_raw"?(g(),O($,{key:0,label:"旋转截图"},{default:l(()=>[e(we,{value:t(n).droidcast_raw.rotate,"onUpdate:value":o[12]||(o[12]=_=>t(n).droidcast_raw.rotate=_)},{default:l(()=>[e(he,null,{default:l(()=>[e(oe,{value:0},{default:l(()=>o[63]||(o[63]=[d("不旋转")])),_:1}),e(oe,{value:90},{default:l(()=>o[64]||(o[64]=[d("旋转90度")])),_:1}),e(oe,{value:180},{default:l(()=>o[65]||(o[65]=[d("旋转180度")])),_:1}),e(oe,{value:270},{default:l(()=>o[66]||(o[66]=[d("旋转270度")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1})):E("",!0)],64)):E("",!0),t(n).screencap_strategy=="diy"?(g(),O($,{key:7,label:"截图命令"},{default:l(()=>[e(Q,{value:t(n).custom_screenshot.command,"onUpdate:value":o[13]||(o[13]=_=>t(n).custom_screenshot.command=_),type:"textarea",autosize:!0},null,8,["value"])]),_:1})):E("",!0),e($,{"show-label":!1},{default:l(()=>[e(he,{vertical:"",style:{gap:"12px"}},{default:l(()=>[e(he,{align:"center",style:{gap:"12px"}},{default:l(()=>[e(W,{onClick:V,loading:t(U)},{default:l(()=>o[67]||(o[67]=[d("测试截图设置")])),_:1},8,["loading"]),t(R)?(g(),B(X,{key:0},[t(Y)?(g(),B("div",zn,[o[68]||(o[68]=d(" 截图用时:")),e(Be,{strong:"",type:t(H)},{default:l(()=>[d(J(t(A))+"ms",1)]),_:1},8,["type"])])):(g(),B(X,{key:1},[e(Be,{type:"error"},{default:l(()=>o[69]||(o[69]=[d("截图失败!")])),_:1}),s("div",null,J(t(N)),1)],64))],64)):E("",!0)]),_:1}),t(R)&&t(Y)?(g(),O(Ne,{key:0,src:"data:image/jpeg;base64,"+t(S),width:"100%"},null,8,["src"])):E("",!0)]),_:1})]),_:1}),e(ke),e($,{label:"游戏服务器"},{default:l(()=>[e(we,{value:t(n).package_type,"onUpdate:value":o[14]||(o[14]=_=>t(n).package_type=_)},{default:l(()=>[e(Ie,null,{default:l(()=>[e(oe,{value:"official"},{default:l(()=>o[70]||(o[70]=[d("官服")])),_:1}),e(oe,{value:"bilibili"},{default:l(()=>o[71]||(o[71]=[d("BiliBili服")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e($,{label:"启动游戏"},{default:l(()=>[e(ne,{value:t(n).tap_to_launch_game.enable,"onUpdate:value":o[15]||(o[15]=_=>t(n).tap_to_launch_game.enable=_),options:f},null,8,["value"])]),_:1}),t(n).tap_to_launch_game.enable=="tap"?(g(),O($,{key:8,label:"点击坐标"},{default:l(()=>[o[72]||(o[72]=s("span",{class:"coord-label"},"X:",-1)),e(ee,{value:t(n).tap_to_launch_game.x,"onUpdate:value":o[16]||(o[16]=_=>t(n).tap_to_launch_game.x=_)},null,8,["value"]),o[73]||(o[73]=s("span",{class:"coord-label"},"Y:",-1)),e(ee,{value:t(n).tap_to_launch_game.y,"onUpdate:value":o[17]||(o[17]=_=>t(n).tap_to_launch_game.y=_)},null,8,["value"])]),_:1})):E("",!0),e($,{label:"任务结束"},{default:l(()=>[e(ne,{value:t(n).strategy_when_idle,"onUpdate:value":o[18]||(o[18]=_=>t(n).strategy_when_idle=_),options:P},null,8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).kill_server_when_idle,"onUpdate:checked":o[19]||(o[19]=_=>t(n).kill_server_when_idle=_)},{default:l(()=>[o[75]||(o[75]=s("span",null,"任务结束时关闭ADB Server",-1)),e(K,null,{default:l(()=>o[74]||(o[74]=[d("建议开启,多开不受影响")])),_:1})]),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(Re,{title:"基建设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"160","label-align":"left"},{default:l(()=>[e($,{label:"宿舍黑名单(非主力)"},{default:l(()=>[t(i)?(g(),O(Ee,{key:0,"virtual-scroll":"","source-filterable":"","target-filterable":"",options:t(r),value:t(n).free_blacklist,"onUpdate:value":o[20]||(o[20]=_=>t(n).free_blacklist=_),"render-source-label":_=>t(De)(_.option),"render-target-label":_=>t(De)(_.option),filter:(_,He)=>_?t(Xe)(He.label,_):!0},null,8,["options","value","render-source-label","render-target-label","filter"])):(g(),O(je,{key:1,modelValue:t(n).free_blacklist,"onUpdate:modelValue":o[21]||(o[21]=_=>t(n).free_blacklist=_)},null,8,["modelValue"]))]),_:1}),e($,null,{label:l(()=>[o[77]||(o[77]=s("span",null,"跑单前置延时",-1)),e(K,null,{default:l(()=>o[76]||(o[76]=[s("div",null,"推荐范围5-10",-1),s("div",null,"可填小数",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).run_order_delay,"onUpdate:value":o[22]||(o[22]=_=>t(n).run_order_delay=_)},{suffix:l(()=>o[78]||(o[78]=[d("分钟")])),_:1},8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).run_order_grandet_mode.enable,"onUpdate:checked":o[23]||(o[23]=_=>t(n).run_order_grandet_mode.enable=_)},{default:l(()=>o[79]||(o[79]=[d("葛朗台跑单")])),_:1},8,["checked"])]),_:1}),t(n).run_order_grandet_mode.enable?(g(),O($,{key:0},{label:l(()=>[o[81]||(o[81]=s("span",null,"葛朗台缓冲时间",-1)),e(K,null,{default:l(()=>o[80]||(o[80]=[d("推荐范围:15-30")])),_:1})]),default:l(()=>[e(ee,{value:t(n).run_order_grandet_mode.buffer_time,"onUpdate:value":o[24]||(o[24]=_=>t(n).run_order_grandet_mode.buffer_time=_)},{suffix:l(()=>o[82]||(o[82]=[d("秒")])),_:1},8,["value"])]),_:1})):E("",!0),t(n).run_order_grandet_mode.enable?(g(),O($,{key:1,"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).run_order_grandet_mode.back_to_index,"onUpdate:checked":o[25]||(o[25]=_=>t(n).run_order_grandet_mode.back_to_index=_)},{default:l(()=>o[83]||(o[83]=[d(" 跑单前返回主界面以保持登录状态 ")])),_:1},8,["checked"])]),_:1})):E("",!0),e($,null,{label:l(()=>[o[85]||(o[85]=s("span",null,"无人机使用房间",-1)),e(K,null,{default:l(()=>o[84]||(o[84]=[s("div",null,"加速制造站为指定制造站加速",-1),s("div",null,"(加速任意贸易站)只会加速有跑单人员作备班的站",-1),s("div",null,"例:没填龙舌兰但书的卖玉站 (加速任意贸易站) 不会被加速",-1),s("div",null,"如需要加速特定某个贸易站请指定对应房间",-1)])),_:1})]),default:l(()=>[e(ne,{options:t(v),value:t(n).drone_room,"onUpdate:value":o[26]||(o[26]=_=>t(n).drone_room=_)},null,8,["options","value"])]),_:1}),e($,null,{label:l(()=>[o[87]||(o[87]=s("span",null,"无人机使用阈值",-1)),e(K,null,{default:l(()=>o[86]||(o[86]=[s("div",null,"如加速贸易,推荐大于 贸易站数*x + 92",-1),s("div",null,"如加速制造,推荐大于 贸易站数*x",-1),s("div",null,"葛朗台跑单模式下x=0,非葛朗台推荐x=10",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).drone_count_limit,"onUpdate:value":o[27]||(o[27]=_=>t(n).drone_count_limit=_)},null,8,["value"])]),_:1}),e($,null,{label:l(()=>[o[89]||(o[89]=s("span",null,"无人机加速间隔",-1)),e(K,null,{default:l(()=>o[88]||(o[88]=[s("div",null,"可填小数",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).drone_interval,"onUpdate:value":o[28]||(o[28]=_=>t(n).drone_interval=_)},{suffix:l(()=>o[90]||(o[90]=[d("小时")])),_:1},8,["value"])]),_:1}),e($,{label:"搓玉补货房间"},{default:l(()=>[e(ne,{multiple:"",filterable:"",tag:"",options:t(a),value:t(n).reload_room,"onUpdate:value":o[29]||(o[29]=_=>t(n).reload_room=_)},null,8,["options","value"])]),_:1}),e($,null,{label:l(()=>[o[92]||(o[92]=s("span",null,"心情阈值",-1)),e(K,null,{default:l(()=>o[91]||(o[91]=[s("div",null,"2电站推荐不低于65%",-1),s("div",null,"3电站推荐不低于50%",-1),s("div",null,"即将大更新推荐设置成80%",-1)])),_:1})]),default:l(()=>[s("div",Pn,[e(Fe,{value:t(n).resting_threshold,"onUpdate:value":o[30]||(o[30]=_=>t(n).resting_threshold=_),step:5,min:50,max:80,"format-tooltip":_=>`${_}%`},null,8,["value","format-tooltip"]),e(ee,{value:t(n).resting_threshold,"onUpdate:value":o[31]||(o[31]=_=>t(n).resting_threshold=_),step:5,min:50,max:80},{suffix:l(()=>o[93]||(o[93]=[d("%")])),_:1},8,["value"])])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).free_room,"onUpdate:checked":o[32]||(o[32]=_=>t(n).free_room=_)},{default:l(()=>[o[95]||(o[95]=d(" 宿舍不养闲人 ")),e(K,null,{default:l(()=>o[94]||(o[94]=[d("干员心情回满后,立即释放宿舍空位")])),_:1})]),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(qe)]),s("div",null,[e(kt)]),s("div",null,[e(yt)]),s("div",null,[e(Re,{title:"外观、性能与其它设置"},{default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"120","label-align":"left"},{default:l(()=>[e($,{label:"界面缩放"},{default:l(()=>[e(Fe,{value:t(m),"onUpdate:value":o[33]||(o[33]=_=>_t(m)?m.value=_:null),step:.25,min:.5,max:3,marks:C,"format-tooltip":_=>`${_*100}%`},null,8,["value","format-tooltip"]),e(W,{class:"scale-apply",disabled:t(m)==t(n).webview.scale,onClick:o[34]||(o[34]=_=>t(n).webview.scale=t(m))},{default:l(()=>o[96]||(o[96]=[d(" 应用 ")])),_:1},8,["disabled"])]),_:1}),e($,{label:"显示主题"},{default:l(()=>[e(we,{value:t(n).theme,"onUpdate:value":o[35]||(o[35]=_=>t(n).theme=_)},{default:l(()=>[e(Ie,null,{default:l(()=>[e(oe,{value:"light"},{default:l(()=>o[97]||(o[97]=[d("亮色")])),_:1}),e(oe,{value:"dark"},{default:l(()=>o[98]||(o[98]=[d("暗色")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).webview.tray,"onUpdate:checked":o[36]||(o[36]=_=>t(n).webview.tray=_)},{default:l(()=>[o[100]||(o[100]=d(" 使用托盘图标 ")),e(K,null,{default:l(()=>o[99]||(o[99]=[d("重启生效")])),_:1})]),_:1},8,["checked"])]),_:1}),e(ke),e($,{label:"截图最短间隔"},{default:l(()=>[e(ee,{value:t(n).screenshot_interval,"onUpdate:value":o[37]||(o[37]=_=>t(n).screenshot_interval=_),precision:0},{suffix:l(()=>o[101]||(o[101]=[d("毫秒")])),_:1},8,["value"])]),_:1}),e($,null,{label:l(()=>[o[103]||(o[103]=s("span",null,"截图保存时间",-1)),e(K,null,{default:l(()=>o[102]||(o[102]=[d("可填小数")])),_:1})]),default:l(()=>[e(ee,{value:t(n).screenshot,"onUpdate:value":o[38]||(o[38]=_=>t(n).screenshot=_)},{suffix:l(()=>o[104]||(o[104]=[d("小时")])),_:1},8,["value"])]),_:1}),e($,{label:"等待时间"},{default:l(()=>[e(xt,{size:"small",class:"waiting-table"},{default:l(()=>[o[107]||(o[107]=s("thead",null,[s("tr",null,[s("th",null,"场景"),s("th",null,"截图间隔"),s("th",null,"超时时长")])],-1)),s("tbody",null,[(g(!0),B(X,null,ye(t(n).waiting_scene_v2,(_,He)=>(g(),B("tr",null,[s("td",null,J(M[He]),1),s("td",null,[e(ee,{value:_[0],"onUpdate:value":Ge=>_[0]=Ge,"show-button":!1,precision:0},{suffix:l(()=>o[105]||(o[105]=[d("毫秒")])),_:2},1032,["value","onUpdate:value"])]),s("td",null,[e(ee,{value:_[1],"onUpdate:value":Ge=>_[1]=Ge,"show-button":!1,precision:0},{suffix:l(()=>o[106]||(o[106]=[d("秒")])),_:2},1032,["value","onUpdate:value"])])]))),256))])]),_:1})]),_:1}),e(ke),e($,{"show-label":!1},{default:l(()=>[e(fe,{checked:t(n).start_automatically,"onUpdate:checked":o[39]||(o[39]=_=>t(n).start_automatically=_)},{default:l(()=>o[108]||(o[108]=[d("启动mower-ng后直接开始运行")])),_:1},8,["checked"])]),_:1})]),_:1},8,["label-placement"])]),_:1})])]),s("div",An,[s("div",null,[e(ht)]),s("div",null,[e(wt)]),s("div",null,[e(Ct)]),s("div",null,[e(Re,null,{header:l(()=>[e(fe,{checked:t(n).maa_enable,"onUpdate:checked":o[40]||(o[40]=_=>t(n).maa_enable=_)},{default:l(()=>o[109]||(o[109]=[s("div",{class:"card-title"},"日常任务",-1)])),_:1},8,["checked"]),e(K,null,{default:l(()=>o[110]||(o[110]=[s("div",null,"刷理智周计划、每日/每周任务、信用作战",-1)])),_:1})]),default:l(()=>[e(Se,{"label-placement":t(i)?"top":"left","show-feedback":!1,"label-width":"100","label-align":"left"},{default:l(()=>[e($,null,{label:l(()=>[o[112]||(o[112]=s("span",null,"任务间隔",-1)),e(K,null,{default:l(()=>o[111]||(o[111]=[s("div",null,"可填小数",-1),s("div",null,"清理智、日常/周常任务领取、借助战打OF-1",-1)])),_:1})]),default:l(()=>[e(ee,{value:t(n).maa_gap,"onUpdate:value":o[41]||(o[41]=_=>t(n).maa_gap=_)},{suffix:l(()=>o[113]||(o[113]=[d("小时")])),_:1},8,["value"])]),_:1})]),_:1},8,["label-placement"])]),_:1})]),s("div",null,[e(Ut)]),s("div",null,[e(St)]),s("div",null,[e(Rt)])])])}}},no=be(On,[["__scopeId","data-v-32cd0fe1"]]);export{no as default}; diff --git a/ui/src/pages/Settings.vue b/ui/src/pages/Settings.vue index ebc1c1c..cafba77 100644 --- a/ui/src/pages/Settings.vue +++ b/ui/src/pages/Settings.vue @@ -95,6 +95,9 @@ const app_control_options = computed(() => { if (conf.value.emulator.name == 'MuMu12') { result.push({ label: 'MuMu模拟器12应用管理器', value: 'mumumanager' }) } + if (conf.value.screencap_strategy == 'scrcpy' && conf.value.control_strategy == 'scrcpy') { + result.push({ label: 'scrcpy virtual display', value: 'scrcpy' }) + } return result }) From 228270d9c503c147a9f29cdb3bf81e268fc58525 Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sat, 7 Dec 2024 19:03:41 +0800 Subject: [PATCH 19/30] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=94=B6=E5=88=B0?= =?UTF-8?q?=E6=88=AA=E5=9B=BE=E5=89=8D=E6=98=BE=E7=A4=BA=E9=BB=91=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/dist/assets/Log.css | 2 +- ui/dist/assets/Log.js | 8 ++++---- ui/src/pages/Log.vue | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/dist/assets/Log.css b/ui/dist/assets/Log.css index ce5c18d..24cd9eb 100644 --- a/ui/dist/assets/Log.css +++ b/ui/dist/assets/Log.css @@ -1 +1 @@ -.log[data-v-18e9594d]{overflow:hidden;flex:1}.task-table[data-v-18e9594d]{position:relative;max-width:600px}.task-table th[data-v-18e9594d]{padding:2px 16px}.task-table td[data-v-18e9594d]{height:24px;padding:2px 8px}.task-table td[data-v-18e9594d]:last-child{width:100%}.action-container[data-v-18e9594d]{display:flex;align-items:center;gap:12px}.scroll-container[data-v-18e9594d]{display:flex;align-items:center;gap:4px}.expand[data-v-18e9594d]{flex-grow:1}.toggle-table-collapse-btn[data-v-18e9594d]{position:absolute;top:0;right:0}.toggle-fullscreen-btn[data-v-18e9594d]{position:absolute;top:0;right:38px}.log-bg[data-v-18e9594d]{content:"";width:100%;height:100%;position:absolute;top:0;left:0;opacity:var(--66c01514);background-image:url(/bg.webp);background-repeat:no-repeat;background-size:cover;background-position:65% 50%;pointer-events:none;z-index:14}.sc[data-v-18e9594d]{max-width:480px;max-height:270px;border-radius:4px;z-index:15}.hljs-date{color:#f0a020!important;font-weight:700}.hljs-time{color:#2080f0!important;font-weight:700}.hljs-room{color:#18a058!important;font-weight:700}.hljs-operator{color:#d03050!important}.hljs-info{font-weight:700}.hljs-warning{color:#f0a020!important;font-weight:700}.hljs-error{color:#d03050!important;font-weight:700}.hljs-scene{font-style:italic} +.log[data-v-c4feeca6]{overflow:hidden;flex:1}.task-table[data-v-c4feeca6]{position:relative;max-width:600px}.task-table th[data-v-c4feeca6]{padding:2px 16px}.task-table td[data-v-c4feeca6]{height:24px;padding:2px 8px}.task-table td[data-v-c4feeca6]:last-child{width:100%}.action-container[data-v-c4feeca6]{display:flex;align-items:center;gap:12px}.scroll-container[data-v-c4feeca6]{display:flex;align-items:center;gap:4px}.expand[data-v-c4feeca6]{flex-grow:1}.toggle-table-collapse-btn[data-v-c4feeca6]{position:absolute;top:0;right:0}.toggle-fullscreen-btn[data-v-c4feeca6]{position:absolute;top:0;right:38px}.log-bg[data-v-c4feeca6]{content:"";width:100%;height:100%;position:absolute;top:0;left:0;opacity:var(--55f59a8a);background-image:url(/bg.webp);background-repeat:no-repeat;background-size:cover;background-position:65% 50%;pointer-events:none;z-index:14}.sc[data-v-c4feeca6]{max-width:480px;max-height:270px;border-radius:6px;z-index:15}.hljs-date{color:#f0a020!important;font-weight:700}.hljs-time{color:#2080f0!important;font-weight:700}.hljs-room{color:#18a058!important;font-weight:700}.hljs-operator{color:#d03050!important}.hljs-info{font-weight:700}.hljs-warning{color:#f0a020!important;font-weight:700}.hljs-error{color:#d03050!important;font-weight:700}.hljs-scene{font-style:italic} diff --git a/ui/dist/assets/Log.js b/ui/dist/assets/Log.js index 715da4b..141047d 100644 --- a/ui/dist/assets/Log.js +++ b/ui/dist/assets/Log.js @@ -1,4 +1,4 @@ -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 o,bu as A,bx as W,bw as R,bv as _,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:w}=e;return{loaderFontSize:c,loaderTextColor:l,loaderColor:a,loaderBorder:`1px solid ${i}`,loadingColor:w}}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),w=M(null),x=O(()=>l.value?e.line.trim():e.line);function h(){w.value&&(w.value.innerHTML=H(i.value,x.value))}function H(y,B){const{value:p}=c;return p&&y&&p.getLanguage(y)?p.highlight(B,{language:y}).value:B}return Me(()=>{a.value&&h()}),je(ce(e,"line"),()=>{a.value&&h()}),{highlight:a,selfRef:w,maybeTrimmedLines:x}},render(){const{highlight:e,maybeTrimmedLines:l}=this;return s("pre",{ref:"selfRef"},e?null:l)}}),Bt=ne("log",` +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); @@ -40,8 +40,8 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y 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),w=O(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),x=O(()=>{const{log:d}=e;return d?d.split(` -`):e.lines}),h=M(null),H=ue("Log","-log",Bt,kt,e,l);function y(d){const b=d.target,z=b.firstElementChild;if(i.value){$e(()=>{i.value=!1});return}const V=b.offsetHeight,v=b.scrollTop,$=z.offsetHeight,n=v,F=$-v-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(p,300);function p(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,v=b.scrollTop,$=z.offsetHeight,n=v,F=$-v-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 t(d){const{value:b}=h;if(!b)return;const{silent:z,top:V,position:v}=d;z&&(i.value=!0),V!==void 0?b.scrollTo({left:0,top:V}):(v==="bottom"||v==="top")&&b.scrollTo({position:v})}function k(d=!1){Se("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),t({position:"top",silent:d})}function T(d=!1){Se("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),t({position:"bottom",silent:d})}Re(Pe,{languageRef:ce(e,"language"),mergedHljsRef:Ue(e),trimRef:ce(e,"trim"),highlightRef:c});const Z={scrollTo:t},G=O(()=>{const{self:{loaderFontSize:d,loaderTextColor:b,loaderColor:z,loaderBorder:V,loadingColor:v},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":v}}),j=a?Ne("log",void 0,G,e):void 0;return Object.assign(Object.assign({},Z),{mergedClsPrefix:l,scrollbarRef:h,mergedTheme:H,styleHeight:w,mergedLines:x,scrollToTop:k,scrollToBottom:T,handleWheel:B,handleScroll:y,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",` + `)])]),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; @@ -142,4 +142,4 @@ import{_ as We}from"./HelpText.js";import{c as Ae,u as Ue,_ as qe,a as Ke,b as Y `)]),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:w,mergedDisabledRef:x}=c,h=M(e.defaultValue),H=ce(e,"value"),y=ot(H,h),B=O(()=>y.value===e.checkedValue),p=M(!1),t=M(!1),k=O(()=>{const{railStyle:n}=e;if(n)return n({focused:t.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||x.value||(y.value!==e.checkedValue?T(e.checkedValue):T(e.uncheckedValue))}function d(){t.value=!0,Z()}function b(){t.value=!1,G(),p.value=!1}function z(n){e.loading||x.value||n.key===" "&&(y.value!==e.checkedValue?T(e.checkedValue):T(e.uncheckedValue),p.value=!1)}function V(n){e.loading||x.value||n.key===" "&&(n.preventDefault(),p.value=!0)}const v=O(()=>{const{value:n}=w,{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(()=>w.value[0]),v,e):void 0;return{handleClick:j,handleBlur:b,handleFocus:d,handleKeyup:z,handleKeydown:V,mergedRailStyle:k,pressed:p,mergedClsPrefix:l,mergedValue:y,checked:B,mergedDisabled:x,cssVars:a?void 0:v,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:l,checked:a,mergedRailStyle:i,onRender:c,$slots:w}=this;c==null||c();const{checked:x,unchecked:h,icon:H,"checked-icon":y,"unchecked-icon":B}=w,p=!(we(H)&&we(y)&&we(B));return s("div",{role:"switch","aria-checked":a,class:[`${e}-switch`,this.themeClass,p&&`${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(x,t=>Y(h,k=>t||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`}),t),s("div",{class:`${e}-switch__rail-placeholder`},s("div",{class:`${e}-switch__button-placeholder`}),k)):null)),s("div",{class:`${e}-switch__button`},Y(H,t=>Y(y,k=>Y(B,T=>s(nt,null,{default:()=>this.loading?s(Le,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(k||t)?s("div",{class:`${e}-switch__button-icon`,key:k?"checked-icon":"icon"},k||t):!this.checked&&(T||t)?s("div",{class:`${e}-switch__button-icon`,key:T?"unchecked-icon":"icon"},T||t):null})))),Y(x,t=>t&&s("div",{key:"checked",class:`${e}-switch__checked`},t)),Y(h,t=>t&&s("div",{key:"unchecked",class:`${e}-switch__unchecked`},t)))))}});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=>({"66c01514":o($)}));const l=mt(),{log:a,log_mobile:i,running:c,log_lines:w,task_list:x,waiting:h,get_task_id:H,sc_uri:y}=Ve(l),{get_tasks:B}=l,p=Ce("axios"),t=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,x],()=>{Z()},{deep:!0}),Me(()=>{B()}),at(()=>{clearTimeout(H.value)});function G(){c.value=!0,w.value=[],p.get("/start"),B()}function j(){h.value=!0,p.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:v}=Ve(V),$=O(()=>v.value.theme=="light"?.2:.3);function n(){p.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)),o(f)?(m(),A(fe,{key:0,"preview-disabled":"",width:"100%",class:"sc",src:o(y),"object-fit":"scale-down"},null,8,["src"])):W("",!0),R(ge,{class:"task-table",size:"small","single-line":!1},{default:_(()=>[u("thead",{onClick:g[0]||(g[0]=S=>f.value=!o(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(o(x),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,!o(t)||o(d)]]),o(t)?(m(),A(q,{key:0,class:"toggle-table-collapse-btn",size:"small",onClick:g[1]||(g[1]=S=>d.value=!o(d)),focusable:!1},{icon:_(()=>[R(U,null,{default:_(()=>[o(d)?(m(),A(o(It),{key:0})):(m(),A(o(Ut),{key:1}))]),_:1})]),_:1})):W("",!0),o(t)?(m(),A(q,{key:1,class:"toggle-fullscreen-btn",size:"small",onClick:C,focusable:!1},{icon:_(()=>[R(U,null,{default:_(()=>[R(o(Nt))]),_:1})]),_:1})):W("",!0)]),_:1}),R(P,{class:"log",log:o(t)?o(i):o(a),language:"mower",style:{"user-select":"text"}},null,8,["log"]),u("div",eo,[o(c)?(m(),A(me,{key:0,select:n,options:F,type:"error",up:!0},{default:_(()=>[R(q,{type:"error",onClick:j,loading:o(h),disabled:o(h)},{icon:_(()=>[R(U,null,{default:_(()=>[R(o(Xt))]),_:1})]),default:_(()=>[o(t)?W("",!0):(m(),L(Q,{key:0},[ke("立即停止")],64))]),_:1},8,["loading","disabled"])]),_:1})):(m(),A(q,{key:1,type:"primary",onClick:G,loading:o(h),disabled:o(h)},{icon:_(()=>[R(U,null,{default:_(()=>[R(o(pt))]),_:1})]),default:_(()=>[o(t)?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:_(()=>[R(U,null,{default:_(()=>[R(o(vt))]),_:1})]),default:_(()=>[o(t)?W("",!0):(m(),L(Q,{key:0},[ke("新增任务")],64))]),_:1}),o(t)?W("",!0):(m(),A(E,{key:2},{default:_(()=>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:o(k),"onUpdate:value":g[3]||(g[3]=S=>rt(k)?k.value=S:null)},null,8,["value"]),o(t)?W("",!0):(m(),L("span",oo,"自动滚动"))])])])}}},ko=lt(no,[["__scopeId","data-v-18e9594d"]]);export{ko as default}; + `)])]),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}; diff --git a/ui/src/pages/Log.vue b/ui/src/pages/Log.vue index 517d3ec..1d540f7 100644 --- a/ui/src/pages/Log.vue +++ b/ui/src/pages/Log.vue @@ -100,7 +100,7 @@ const sc_preview = ref(true) preview-disabled width="100%" class="sc" - :src="sc_uri" + :src="sc_uri == '' ? '/black.jpg' : sc_uri" object-fit="scale-down" /> @@ -283,7 +283,7 @@ const sc_preview = ref(true) .sc { max-width: 480px; max-height: 270px; - border-radius: 4px; + border-radius: 6px; z-index: 15; } From ffc36ec2d2807b47318b640266f5667e11d4aa7d Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sat, 7 Dec 2024 19:18:06 +0800 Subject: [PATCH 20/30] =?UTF-8?q?av=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/requirements.in b/requirements.in index 828f665..29ecddc 100644 --- a/requirements.in +++ b/requirements.in @@ -63,4 +63,7 @@ cryptography==43.0.1 SQLAlchemy==2.0.35 # ADB -adbutils==2.8.0 \ No newline at end of file +adbutils==2.8.0 + +# scrcpy截图 +av==14.0.1 From 3c5c02e441b6db44930111e09b81fc47ec5113ba Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sat, 7 Dec 2024 19:25:53 +0800 Subject: [PATCH 21/30] =?UTF-8?q?scrcpy=E5=90=AF=E5=8A=A8=E5=BA=94?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/device/method/scrcpy/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mower/utils/device/method/scrcpy/core.py b/mower/utils/device/method/scrcpy/core.py index 2ba32fd..54f7890 100644 --- a/mower/utils/device/method/scrcpy/core.py +++ b/mower/utils/device/method/scrcpy/core.py @@ -151,6 +151,9 @@ class Client: else: self.control_socket = first_socket + if config.conf.app_control_strategy == "scrcpy": + self.launch() + except socket.timeout: raise ConnectionError("Failed to connect scrcpy-server") From 85c40dd426682c79718917479604b20bb1b1a3d1 Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sat, 7 Dec 2024 19:43:15 +0800 Subject: [PATCH 22/30] =?UTF-8?q?=E5=85=81=E8=AE=B8=E4=B8=8D=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/utils/log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mower/utils/log.py b/mower/utils/log.py index 0b6a4e3..cb92064 100644 --- a/mower/utils/log.py +++ b/mower/utils/log.py @@ -136,5 +136,6 @@ Thread(target=screenshot_worker, daemon=True).start() def save_screenshot(img: tp.Image) -> None: filename = f"{time.time_ns()}.jpg" logger.debug(filename) - screenshot_queue.put((img, filename)) + if config.conf.screenshot > 0: + screenshot_queue.put((img, filename)) config.sc_queue.put(img) From 183898e5eaf73c708556966b0ae26359aae9922d Mon Sep 17 00:00:00 2001 From: EightyDollars Date: Sat, 7 Dec 2024 20:11:39 +0800 Subject: [PATCH 23/30] =?UTF-8?q?=E4=BF=AE=E6=94=B9swipe=5Fupdate=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/infra/base_choose.py | 109 +++++++++++++++++------------ 1 file changed, 65 insertions(+), 44 deletions(-) diff --git a/mower/solvers/infra/base_choose.py b/mower/solvers/infra/base_choose.py index 8451a76..128a875 100644 --- a/mower/solvers/infra/base_choose.py +++ b/mower/solvers/infra/base_choose.py @@ -10,7 +10,7 @@ from mower.solvers.infra.riic_tag_choose import RIICTagChoose from mower.utils import config from mower.utils.character_recognize import operator_room_select from mower.utils.graph.utils import SceneGraphSolver -from mower.utils.image import cropimg +from mower.utils.image import cropimg, diff_ratio from mower.utils.log import logger from mower.utils.scene import Scene @@ -25,6 +25,7 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): agents (list): 选人名单 wait_time (float, optional): 选人完成到按确定的时间 """ + logger.info(f"安排干员:{agents}") self.agents = agents self.room = room self.wait_time = wait_time @@ -40,6 +41,9 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): self.tap_time = datetime.now() self.tmp_swipe = None + self.recog_agents = None + self.before = None + self.solver_update_before_transition = True self.choosed = [] logger.debug(f"待选名单:{self.agents}") @@ -60,36 +64,39 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): """ self.agent = [self.agents_copy.pop(0), False, False] logger.info(f"开始选择干员:{self.agent[0]}") - else: if self.wait_time > 0: self.sleep(self.check_wait_time()) self.success = True self.tap("confirm_blue") - return + if self.before is not None: + self.sleep(0.1) + if diff_ratio(self.before, config.recog.gray): + logger.debug("滑动还在继续") + self.before = config.recog.gray + self.recog_agents = None + return + self.before = None - agents = operator_room_select(config.recog.img) - agents_dict = dict(agents) + if self.recog_agents is None: + self.recog_agents = dict(operator_room_select(config.recog.img)) if len(self.agents) > 1: - for i in agents_dict: - if self.is_choosed(agents_dict[i]) and agents_dict[i][0][0] < 1600: + for i in self.recog_agents: + if ( + self.is_choosed(self.recog_agents[i]) + and self.recog_agents[i][0][0] < 1600 + ): if i not in self.agents and i not in self.choosed: logger.info(f"存在错选 {i}") self.tap("choose_agent/clear", interval=self.interval) self.agents_copy = deepcopy(self.agents) self.choosed = [] + self.recog_agents = None self.agent = None return - if self.tmp_swipe: - if self.tmp_swipe[-1][0] == agents[-1][0]: - if self.tmp_swipe[-1][1][0][0] != agents[-1][1][0][0]: - logger.debug(f"滑动未停: {self.tmp_swipe[-1]}, {agents[-1]}") - self.tmp_swipe = agents - return - self.tmp_swipe = None agent_name = self.agent[0] if agent_name == "Free": @@ -97,20 +104,28 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): self.agent = None return - if agent_name in agents_dict.keys(): - is_choosed = self.is_choosed(agents_dict[agent_name]) - logger.debug(f"{agent_name} 是否被选上:{is_choosed}") + if agent_name in self.recog_agents.keys(): + is_choosed = self.is_choosed(self.recog_agents[agent_name]) if is_choosed: logger.info(f"{agent_name}选择完成") + self.recog_agents = None self.choosed.append(agent_name) self.agent = None else: - if agents_dict[agent_name][0][0] > 1650: - self.swipe_noinertia((1000, 540), (-500, 0), interval=0.5) + if self.recog_agents[agent_name][0][0] > 1650: + logger.debug(f"滑动调整位置 {self.recog_agents[agent_name]}") + self.swipe_update( + [(700, 770), (400, 770), (400, 500)], + [200, 200], + up_wait=200, + interval=0.2, + ) + self.recog_agents = None return logger.debug(f"tap {agent_name} ") - self.ctap(agents_dict[agent_name], 2, self.interval, agent_name) + self.ctap(self.recog_agents[agent_name], 5, self.interval, agent_name) + self.recog_agents = None return logger.debug(f"选tag和左滑 {self.agent}") @@ -121,37 +136,42 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): if RIICTagChoose().run(tag): self.agent[1] = True + self.recog_agents = None return if self.agent[2] is False: - if self.tmp_left is None: - self.tmp_left = list(agents_dict.keys())[0] - self.swipe_noinertia((1000, 540), (300, 0), interval=0.5) - return - elif self.tmp_left != list(agents_dict.keys())[0]: - self.swipe_noinertia((1000, 540), (1000, 0), interval=0.5) - self.tmp_left = list(agents_dict.keys())[0] - return - self.agent[2] = True + tmp_recog = self.swipe_update( + [(700, 770), (1600, 770), (1600, 500)], + [200, 200], + up_wait=200, + interval=0.2, + func=operator_room_select, + ) + if tmp_recog[0][0] == list(self.recog_agents.keys())[0]: + self.agent[2] = True + self.recog_agents = None return # 右滑 - self.before_swipe = agents - self.swipe_update( - [(1000, 540), (-2500, 0)], [500], self.interval, interval=self.interval + self.recog_agents = dict( + self.swipe_update( + [(1600, 770), (600, 770), (600, 900)], + [300, 500], + up_wait=200, + interval=0.2, + func=operator_room_select, + ) ) - self.swipe_update([(1000, 540), (1000, 500)], [10], 0, interval=self.interval) - self.tmp_swipe = operator_room_select(config.recog.img) - logger.debug(f"右滑 {self.before_swipe},{self.tmp_swipe}") - if self.tmp_swipe: - if self.tmp_swipe[-1][0] == self.before_swipe[-1][0]: - if self.tmp_swipe[-1][1][0][0] == self.before_swipe[-1][1][0][0]: - logger.error(RuntimeError("滑动失败")) - return True - else: - self.tmp_swipe[-1][1][0][0] != self.before_swipe[-1][1][0][0] - raise RuntimeError(f"缺少干员 {self.agent[0]}") + tmp_img = config.recog.gray + config.recog.update() + if diff_ratio(tmp_img, config.recog.gray): + if agent_name not in self.recog_agents.keys(): + logger.info(f"缺少:{agent_name}") + return True + + self.before = config.recog.gray def is_choosed(self, scope) -> bool: + # logger.info(scope) up_pt = cropimg( config.recog.img, [ @@ -167,8 +187,9 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin): [scope[0][0] + 1, scope[1][1] + 213], ], )[0][0][0] + logger.debug(f"is_choosed: {up_pt},{down_pt}") - if (up_pt < 50) and down_pt < 50: + if up_pt < 50 and down_pt < 50: return True return False From bd3d83851e8664dfd15cadafd4521004b86697f0 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 20:15:08 +0800 Subject: [PATCH 24/30] requirements.txt --- requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements.txt b/requirements.txt index e1b4ae9..3c5972f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,6 +11,8 @@ annotated-types==0.7.0 # via pydantic apkutils2==1.0.0 # via adbutils +av==14.0.1 + # via -r requirements.in base45==0.4.4 # via -r requirements.in blinker==1.8.2 From 36ed947ee40f904d2f9259d7ef9ac636436de988 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 21:12:08 +0800 Subject: [PATCH 25/30] =?UTF-8?q?add:=E4=BF=9D=E5=85=A8=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E4=B8=8E=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/data/scene.json | 4 ++++ mower/resources/sss/ope/elimi_agency_on.png | 3 +++ mower/resources/sss/ope/prts.png | 3 +++ mower/resources/sss/ope/use.png | 3 +++ mower/utils/graph/sss.py | 6 +++++- mower/utils/recognize/__init__.py | 2 ++ mower/utils/recognize/data.py | 3 +++ mower/utils/scene.py | 3 +++ mower/utils/typealias/res.py | 3 +++ 9 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 mower/resources/sss/ope/elimi_agency_on.png create mode 100644 mower/resources/sss/ope/prts.png create mode 100644 mower/resources/sss/ope/use.png diff --git a/mower/data/scene.json b/mower/data/scene.json index ff4f874..7301401 100644 --- a/mower/data/scene.json +++ b/mower/data/scene.json @@ -615,6 +615,10 @@ "label": "SSS_CHOOSE_EC", "comment": "选择定向元件" }, + "1019": { + "label": "SSS_ELIMI_AGENCY", + "comment": "保全扫荡确认" + }, "1101": { "label": "SF_ENTRANCE", "comment": "隐秘战线入口" diff --git a/mower/resources/sss/ope/elimi_agency_on.png b/mower/resources/sss/ope/elimi_agency_on.png new file mode 100644 index 0000000..437a05c --- /dev/null +++ b/mower/resources/sss/ope/elimi_agency_on.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96c92bf10e3b318ac3d207574a694c3010e9e85bfb875728e379509128502add +size 9395 diff --git a/mower/resources/sss/ope/prts.png b/mower/resources/sss/ope/prts.png new file mode 100644 index 0000000..4d324d2 --- /dev/null +++ b/mower/resources/sss/ope/prts.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44c888cc17c531f316dc8e37692c042274682261280553be6199eeabcad6f50f +size 6859 diff --git a/mower/resources/sss/ope/use.png b/mower/resources/sss/ope/use.png new file mode 100644 index 0000000..8b05628 --- /dev/null +++ b/mower/resources/sss/ope/use.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c578b3824009dd46933b9353af6177c35abfdb5a67d40b72b17322fb33e7d4e +size 15280 diff --git a/mower/utils/graph/sss.py b/mower/utils/graph/sss.py index 7d5f06d..c38bcec 100644 --- a/mower/utils/graph/sss.py +++ b/mower/utils/graph/sss.py @@ -28,11 +28,15 @@ def enter_sss(solver: BaseSolver): @edge(Scene.SSS_DEVICE, Scene.SSS_EXIT_CONFIRM) @edge(Scene.SSS_OPERATION_COMPLETE, Scene.SSS_DEPLOY) @edge(Scene.SSS_SQUAD, Scene.SSS_EXIT_CONFIRM) -@edge(Scene.SSS_TERMINATED, Scene.SSS_START) def sss_back(solver: BaseSolver): solver.back() +@edge(Scene.SSS_TERMINATED, Scene.SSS_START) +def sss_terminated(solver: BaseSolver): + solver.tap((960, 540)) + + @edge(Scene.SSS_ABANDON_DROP_IN_FIGHT, Scene.OPERATOR_FIGHT) @edge(Scene.SSS_EXIT_CONFIRM, Scene.SSS_TERMINATED) def sss_exit(solver: BaseSolver): diff --git a/mower/utils/recognize/__init__.py b/mower/utils/recognize/__init__.py index e46f1d9..fae39ef 100644 --- a/mower/utils/recognize/__init__.py +++ b/mower/utils/recognize/__init__.py @@ -311,6 +311,8 @@ class Recognizer: self.scene = Scene.SSS_ACTION elif self.find("sss/accomplished"): self.scene = Scene.SSS_ACCOMPLISHED + elif self.find("sss/ope/use"): + self.scene = Scene.SSS_ELIMI_AGENCY elif self.find("login_captcha"): self.scene = Scene.LOGIN_CAPTCHA elif self.find("sign_in/banner"): diff --git a/mower/utils/recognize/data.py b/mower/utils/recognize/data.py index 4ee42a7..5c8a505 100644 --- a/mower/utils/recognize/data.py +++ b/mower/utils/recognize/data.py @@ -150,6 +150,9 @@ color = { "sss/loading_ex": (1647, 524), "sss/main": (1569, 256), "sss/no_drop_check": (1669, 865), + "sss/ope/elimi_agency_on": (1653, 857), + "sss/ope/prts": (1369, 857), + "sss/ope/use": (1627, 965), "sss/redeploy": (1644, 970), "sss/redeploy_ex": (1642, 968), "sss/settlement_commission": (1593, 31), diff --git a/mower/utils/scene.py b/mower/utils/scene.py index f2d6b76..d2a6276 100644 --- a/mower/utils/scene.py +++ b/mower/utils/scene.py @@ -307,6 +307,8 @@ class Scene: "应急模式额外元件" SSS_CHOOSE_EC = 1018 "选择定向元件" + SSS_ELIMI_AGENCY = 1019 + "保全扫荡确认" SF_ENTRANCE = 1101 "隐秘战线入口" SF_EXIT = 1102 @@ -520,6 +522,7 @@ SceneComment = { 1016: "保全作战完成或终止", 1017: "应急模式额外元件", 1018: "选择定向元件", + 1019: "保全扫荡确认", 1101: "隐秘战线入口", 1102: "暂离行动", 1103: "选择小队", diff --git a/mower/utils/typealias/res.py b/mower/utils/typealias/res.py index 583f7e4..f3437a5 100644 --- a/mower/utils/typealias/res.py +++ b/mower/utils/typealias/res.py @@ -496,6 +496,9 @@ Res = Literal[ "sss/loading_ex", "sss/main", "sss/no_drop_check", + "sss/ope/elimi_agency_on", + "sss/ope/prts", + "sss/ope/use", "sss/operation_complete", "sss/redeploy", "sss/redeploy_ex", From c517e512a8a1fccebba03226aa327e8f9b5e8df7 Mon Sep 17 00:00:00 2001 From: zhbaor Date: Sat, 7 Dec 2024 22:43:16 +0800 Subject: [PATCH 26/30] scrcpy kill_server --- mower/utils/device/method/scrcpy/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mower/utils/device/method/scrcpy/core.py b/mower/utils/device/method/scrcpy/core.py index 54f7890..63d3fe9 100644 --- a/mower/utils/device/method/scrcpy/core.py +++ b/mower/utils/device/method/scrcpy/core.py @@ -330,3 +330,6 @@ class Client: except Exception as e: logger.exception(e) update = True + + def kill_server(self): + self.adb.kill_server() From ee7eda936a52670fe99b9b273e537d8b6e12b505 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 23:16:07 +0800 Subject: [PATCH 27/30] =?UTF-8?q?number=E5=8C=B9=E9=85=8D=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/infra/get_agent_from_room.py | 5 ++--- mower/utils/number.py | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mower/solvers/infra/get_agent_from_room.py b/mower/solvers/infra/get_agent_from_room.py index 026aaa4..1f2dc97 100644 --- a/mower/solvers/infra/get_agent_from_room.py +++ b/mower/solvers/infra/get_agent_from_room.py @@ -65,9 +65,8 @@ class GetAgentFromRoomSolver(SceneGraphSolver, BaseMixin): img = cv2.resize(img, None, None, scale, scale) img = thres2(img, thres) img = cv2.bitwise_not(img) - return ( - config.recog.num.number_int("riic_base", img=img, target_range=range(1, 6)) - + 1 + return config.recog.num.number_int( + "riic_base", img=img, target_range=range(1, 6) ) @staticmethod diff --git a/mower/utils/number.py b/mower/utils/number.py index b590787..5bd9a85 100644 --- a/mower/utils/number.py +++ b/mower/utils/number.py @@ -63,13 +63,13 @@ class NumberRecognizer: digit = cv2.copyMakeBorder( digit, 10, 10, 10, 10, cv2.BORDER_CONSTANT, None, (0,) ) - score = [] + score = {} for i in target_range: im = templates[i] result = cv2.matchTemplate(digit, im, cv2.TM_SQDIFF_NORMED) min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(result) - score.append(min_val) - value += str(score.index(min(score))) + score[min_val] = i + value += str(score[(min(score))]) return value From d7a949ad54520b4bb88710e29b6d6843bc4a199d Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sat, 7 Dec 2024 23:46:23 +0800 Subject: [PATCH 28/30] =?UTF-8?q?=E4=BF=9D=E5=85=A8=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/sss/__init__.py | 9 ++++++- mower/solvers/sss/sss_navi.py | 3 +++ mower/solvers/sss/sss_ope.py | 48 +++++++++++++++++++++++++++++++++++ mower/solvers/sss/utils.py | 4 +-- mower/utils/config/conf.py | 4 ++- mower/utils/graph/sss.py | 6 +++++ 6 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 mower/solvers/sss/sss_ope.py diff --git a/mower/solvers/sss/__init__.py b/mower/solvers/sss/__init__.py index b19905c..f215471 100644 --- a/mower/solvers/sss/__init__.py +++ b/mower/solvers/sss/__init__.py @@ -11,6 +11,7 @@ from mower.utils.recognize import Scene from .sss_choose import SSSChooseSolver from .sss_fight import SSSFightSolver from .sss_navi import SSSNaviSolver +from .sss_ope import SSSOpeSolver from .utils import is_full @@ -67,7 +68,13 @@ class SSSSolver(SceneGraphSolver): send_message("保全模组条与仪已刷满", level="WARNING") self.full = True return True - + elif ( + scene == Scene.SSS_START + and config.conf.sss.finish_while_full + and self.find("sss/ope/prts") + ): + self.full = SSSOpeSolver().run() + return self.full elif scene == Scene.SSS_DROP_AGENT_BEFORE_FIGHT: self.scene_graph_step(Scene.SSS_DEPLOY) diff --git a/mower/solvers/sss/sss_navi.py b/mower/solvers/sss/sss_navi.py index 9611f1d..27ea058 100644 --- a/mower/solvers/sss/sss_navi.py +++ b/mower/solvers/sss/sss_navi.py @@ -77,6 +77,9 @@ class SSSNaviSolver(SceneGraphSolver): elif self.mode == "ex" and self.find("sss/switch_to_ex"): self.tap("sss/switch_to_ex") return + if config.conf.sss.finish_while_full and self.find("sss/ope/prts"): + return True + self.tap((1555, 966)) elif scene == Scene.SSS_CHOOSE_EC: for scope in ec_pos: diff --git a/mower/solvers/sss/sss_ope.py b/mower/solvers/sss/sss_ope.py new file mode 100644 index 0000000..cf067d2 --- /dev/null +++ b/mower/solvers/sss/sss_ope.py @@ -0,0 +1,48 @@ +from mower.utils import config +from mower.utils.graph import SceneGraphSolver +from mower.utils.recognize import Scene + +from .utils import is_full + + +class SSSOpeSolver(SceneGraphSolver): + solver_name = "保全代理" + + def run(self) -> bool: + self.success = False # 是否刷满 + self.check = False # 是否可代理层数小于设置要求 + super().run() + return self.success + + def transition(self): + if (scene := self.scene()) == Scene.SSS_START: + if self.find("sss/ope/prts") and not self.check: + self.tap("sss/ope/prts") + return + elif self.find("sss/ope/elimi_agency_on") and self.check: + self.tap("sss/ope/elimi_agency_on") + return + self.tap((1555, 966)) + + elif scene in [Scene.SSS_EC, Scene.SSS_EC_EX] and self.check: + return True + elif scene == Scene.SSS_ELIMI_AGENCY: + if is_full(): + self.success = True + return True + if ( + config.recog.num.number_int( + "riic_base", + ((1750, 50), (1850, 150)), + 50, + 120, + target_range=range(1, 7), + ) + < config.conf.sss.ope_limit_stage + ): + self.scene_graph_step(Scene.SSS_START) + self.check = True + return + self.tap("sss/ope/use") + else: + self.scene_graph_step(Scene.SSS_START) diff --git a/mower/solvers/sss/utils.py b/mower/solvers/sss/utils.py index 486fb72..855e652 100644 --- a/mower/solvers/sss/utils.py +++ b/mower/solvers/sss/utils.py @@ -9,8 +9,8 @@ def number(scope: tp.Scope, height: int, thres: int) -> int: def is_full() -> bool: "判断模块增补仪和条是否刷满" - if number(((150, 975), (300, 1030)), 50, 120) != 60: + if number(((150, 975), (300, 1030)), 50, 100) != 60: return False - if number(((530, 975), (680, 1030)), 50, 120) != 24: + if number(((530, 975), (680, 1030)), 50, 100) != 24: return False return True diff --git a/mower/utils/config/conf.py b/mower/utils/config/conf.py index 365f57d..0feb943 100644 --- a/mower/utils/config/conf.py +++ b/mower/utils/config/conf.py @@ -221,10 +221,12 @@ class LongTaskPart(ConfModel): class SSSConf(ConfModel): choose_agent: bool = True "自动编队" - mode: str = "normal" + mode: Literal["normal", "ex"] = "normal" "难度:正常为normal,应急为ex" finish_while_full: bool = True "模组刷满时直接结束" + ope_limit_stage: int = 6 + "使用代理卡最低层数要求" maa_rg_enable: int = 0 "大型任务" diff --git a/mower/utils/graph/sss.py b/mower/utils/graph/sss.py index c38bcec..3fe8abc 100644 --- a/mower/utils/graph/sss.py +++ b/mower/utils/graph/sss.py @@ -24,6 +24,7 @@ def enter_sss(solver: BaseSolver): @edge(Scene.SSS_DEPLOY, Scene.SSS_MAIN) @edge(Scene.SSS_REDEPLOY, Scene.SSS_MAIN) @edge(Scene.SSS_CHOOSE_EC, Scene.SSS_MAIN) +@edge(Scene.SSS_ELIMI_AGENCY, Scene.SSS_MAIN) @edge(Scene.SSS_EC, Scene.SSS_EXIT_CONFIRM) @edge(Scene.SSS_DEVICE, Scene.SSS_EXIT_CONFIRM) @edge(Scene.SSS_OPERATION_COMPLETE, Scene.SSS_DEPLOY) @@ -37,6 +38,11 @@ def sss_terminated(solver: BaseSolver): solver.tap((960, 540)) +@edge(Scene.SSS_ELIMI_AGENCY, Scene.SSS_START) +def sss_elimi_agency(solver: BaseSolver): + solver.tap((1500, 1000)) + + @edge(Scene.SSS_ABANDON_DROP_IN_FIGHT, Scene.OPERATOR_FIGHT) @edge(Scene.SSS_EXIT_CONFIRM, Scene.SSS_TERMINATED) def sss_exit(solver: BaseSolver): From 0dd1c28a2a4970ed61d9391eb32c24eb3214fbf5 Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sun, 8 Dec 2024 00:33:28 +0800 Subject: [PATCH 29/30] =?UTF-8?q?=E5=87=8F=E5=B0=91=E5=A4=9A=E4=BD=99back?= =?UTF-8?q?=E5=9B=9E=E4=B8=BB=E9=A1=B5=E7=9A=84=E5=8F=91=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/base_schedule.py | 4 ++-- mower/solvers/infra/enter_room.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mower/solvers/base_schedule.py b/mower/solvers/base_schedule.py index d7078b4..553532e 100644 --- a/mower/solvers/base_schedule.py +++ b/mower/solvers/base_schedule.py @@ -831,9 +831,9 @@ class BaseSchedulerSolver(SceneGraphSolver, BaseMixin): if error_count > 3: raise e error_count += 1 - self.back() + self.cback(3) continue - self.back() + self.cback(3) plan = self.op_data.plan fix_plan = {} for key in plan: diff --git a/mower/solvers/infra/enter_room.py b/mower/solvers/infra/enter_room.py index d5f18f5..be47e93 100644 --- a/mower/solvers/infra/enter_room.py +++ b/mower/solvers/infra/enter_room.py @@ -102,7 +102,7 @@ class EnterRoomSolver(SceneGraphSolver, BaseMixin): super().run() def timeout(self) -> bool: - return datetime.now() > self.start_time + timedelta(seconds=3) + return datetime.now() > self.start_time + timedelta(seconds=5) def bug_timeout(self) -> bool: return datetime.now() > self.avoid_bug_start_time + timedelta(seconds=60) @@ -147,8 +147,8 @@ class EnterRoomSolver(SceneGraphSolver, BaseMixin): elif scene in [Scene.CTRLCENTER_ASSISTANT, Scene.INFRA_DETAILS]: if self.detect_room() == self.room: - if not self.detail: - self.tap((960, 540), interval=0) + if not self.detail and self.find("arrange_check_in_on"): + self.tap((960, 540)) return True if self.find("room_detail"): return True From 0e853f68a5f777e2924b177878d1c1776a41ef4f Mon Sep 17 00:00:00 2001 From: Elaina <2901432375@qq.com> Date: Sun, 8 Dec 2024 00:39:09 +0800 Subject: [PATCH 30/30] =?UTF-8?q?=E5=87=8F=E6=85=A2=E5=A1=ABfree=E7=9A=84?= =?UTF-8?q?=E6=BB=91=E5=8A=A8=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mower/solvers/base_schedule.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mower/solvers/base_schedule.py b/mower/solvers/base_schedule.py index 553532e..61adb42 100644 --- a/mower/solvers/base_schedule.py +++ b/mower/solvers/base_schedule.py @@ -1946,7 +1946,9 @@ class BaseSchedulerSolver(SceneGraphSolver, BaseMixin): else: st = ret[-2][1][0] # 起点 ed = ret[0][1][0] # 终点 - self.swipe_noinertia(st, (ed[0] - st[0], 0), interval=1) + self.swipe_noinertia( + st, (ed[0] - st[0], 0), duration=400, interval=1 + ) while self.find("confirm_blue"): self.tap("confirm_blue")